// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_for_1_sp137
static void mw_std_list_List_1_for_1_sp137 (struct mirth_arrow_Arrow* in_zaAB_1, struct mirth_mirth_zaMirth* in_zaMirth_2, struct std_list_List_1 in_List_3, struct mirth_arrow_Arrow* *out_zaAB_4, struct mirth_mirth_zaMirth* *out_zaMirth_5) {
	bool v6 = true;
	struct mirth_arrow_Arrow* r7 = in_zaAB_1;
	struct mirth_mirth_zaMirth* r8 = in_zaMirth_2;
	struct std_list_List_1 v9 = in_List_3;
	bool v10 = v6;
	bool v11 = v6;
	while (v11) {
		struct mirth_arrow_Arrow* r12 = r7;
		struct mirth_mirth_zaMirth* r13 = r8;
		struct std_list_List_1 v14 = v9;
		bool v15 = v10;
		struct mirth_arrow_Arrow* branch_zaAB_16;
		struct mirth_mirth_zaMirth* branch_zaMirth_17;
		struct std_list_List_1 branch_List_18;
		bool branch_Bool_19;
		switch ((v14).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v20;
				VAL v21 = mtp_std_list_List_1_Cons(v14, &v20);
				struct std_list_List_1 v22 = { .tag=std_list_List_1_Nil };
				enum mirth_prim_Prim v23 = mirth_prim_Prim_Dup;
				struct mirth_mirth_zaMirth* v24;
				struct mirth_arrow_Arrow* v25;
				mw_mirth_elab_zaAB_abzeprimzx(r13, r12, v22, v23, &v24, &v25);
				incref(v21);
				struct mirth_mirth_zaMirth* v26;
				uint64_t v27 = mw_mirth_table_Field_name(v24, V_mirth_table_Field(v21), &v26);
				struct mirth_mirth_zaMirth* v28;
				uint64_t v29 = mw_mirth_name_Name_label(v26, v27, &v28);
				struct mirth_mirth_zaMirth* v30;
				struct mirth_arrow_Arrow* v31;
				mw_mirth_elab_zaAB_abzelabelzepopzx(v28, v25, v29, &v30, &v31);
				struct std_list_List_1 v32 = { .tag=std_list_List_1_Nil };
				enum mirth_prim_Prim v33 = mirth_prim_Prim_Swap;
				struct mirth_mirth_zaMirth* v34;
				struct mirth_arrow_Arrow* v35;
				mw_mirth_elab_zaAB_abzeprimzx(v30, v31, v32, v33, &v34, &v35);
				struct mirth_mirth_zaMirth* v36;
				struct mirth_arrow_Arrow* v37;
				mw_mirth_elab_zaAB_abzefieldzx(v34, v35, V_mirth_table_Field(v21), &v36, &v37);
				struct std_list_List_1 v38 = { .tag=std_list_List_1_Nil };
				enum mirth_prim_Prim v39 = mirth_prim_Prim_MutSet;
				struct mirth_mirth_zaMirth* v40;
				struct mirth_arrow_Arrow* v41;
				mw_mirth_elab_zaAB_abzeprimzx(v36, v37, v38, v39, &v40, &v41);
				bool v42 = true;
				branch_Bool_19 = v42;
				branch_List_18 = v20;
				branch_zaMirth_17 = v40;
				branch_zaAB_16 = v41;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v43 = { .tag=std_list_List_1_Nil };
				bool v44 = false;
				branch_Bool_19 = v44;
				branch_List_18 = v43;
				branch_zaMirth_17 = r13;
				branch_zaAB_16 = r12;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v11 = branch_Bool_19;
		v10 = branch_Bool_19;
		v9 = branch_List_18;
		r8 = branch_zaMirth_17;
		r7 = branch_zaAB_16;
	}
	decref(MK_std_list_List_1(v9));
	*out_zaMirth_5 = r8;
	*out_zaAB_4 = r7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movb $0x1, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x59(%rbp)
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x5a(%rbp)
testb $0x1, -0x5a(%rbp)
je 0x18bf74
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x70(%rbp)
movups -0x58(%rbp), %xmm0
movaps %xmm0, -0x80(%rbp)
movb -0x59(%rbp), %al
andb $0x1, %al
movb %al, -0x81(%rbp)
movl -0x80(%rbp), %eax
movl %eax, -0x1fc(%rbp)
testl %eax, %eax
je 0x18beb8
jmp 0x18bc56
movl -0x1fc(%rbp), %eax
subl $0x1, %eax
jne 0x18bf14
jmp 0x18bc67
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0x125e0
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
leaq -0xe0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl $0x1, -0xe4(%rbp)
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
movl -0xe4(%rbp), %r8d
movl -0xe0(%rbp), %edx
movq -0xd8(%rbp), %rcx
leaq -0xf0(%rbp), %r9
leaq -0xf8(%rbp), %rax
movq %rax, (%rsp)
callq 0x10f930
movq -0xc8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x18bd29
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
cmpq $0x0, %rax
je 0x18bd29
movq -0xd0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x18bd29
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x18bd2b
movq -0xf0(%rbp), %rdi
movq -0xd0(%rbp), %rsi
leaq -0x100(%rbp), %rdx
callq 0x645f0
movq %rax, -0x108(%rbp)
movq -0x100(%rbp), %rdi
movq -0x108(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0xd23f0
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq -0x118(%rbp), %rdx
leaq -0x120(%rbp), %rcx
leaq -0x128(%rbp), %r8
callq 0x10f8a0
leaq -0x138(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl $0x3, -0x13c(%rbp)
movq -0x120(%rbp), %rdi
movq -0x128(%rbp), %rsi
movl -0x13c(%rbp), %r8d
movl -0x138(%rbp), %edx
movq -0x130(%rbp), %rcx
leaq -0x148(%rbp), %r9
leaq -0x150(%rbp), %rax
movq %rax, (%rsp)
callq 0x10f930
movq -0x148(%rbp), %rdi
movq -0x150(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0x158(%rbp), %rcx
leaq -0x160(%rbp), %r8
callq 0x114260
leaq -0x170(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl $0x9a, -0x174(%rbp)
movq -0x158(%rbp), %rdi
movq -0x160(%rbp), %rsi
movl -0x174(%rbp), %r8d
movl -0x170(%rbp), %edx
movq -0x168(%rbp), %rcx
leaq -0x180(%rbp), %r9
leaq -0x188(%rbp), %rax
movq %rax, (%rsp)
callq 0x10f930
movb $0x1, -0x189(%rbp)
movb -0x189(%rbp), %al
andb $0x1, %al
movb %al, -0xa9(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x18bf2d
leaq -0x1a0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x1a1(%rbp)
movb -0x1a1(%rbp), %al
andb $0x1, %al
movb %al, -0xa9(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x18bf2d
leaq 0x1c7f66(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xa9(%rbp), %al
andb $0x1, %al
movb %al, -0x5a(%rbp)
movb -0xa9(%rbp), %al
andb $0x1, %al
movb %al, -0x59(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x18bc16
jmp 0x18bf76
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x12780
movq %rax, -0x1b8(%rbp)
movq %rdx, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x18c06b
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rax
cmpq $0x0, %rax
je 0x18c06b
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x12780
movq %rax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movq -0x1d8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x18c06b
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1e8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x18c069
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x12780
movq %rax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq -0x1f8(%rbp), %rdi
movq -0x1f0(%rbp), %rsi
callq 0x127c0
jmp 0x18c06b
jmp 0x18c06d
movq -0x48(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
nopl (%rax)