// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r9, %r14
movq %r8, %rbx
movq %rsi, %r12
movq %rdi, %r15
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
leaq -0xa0(%rbp), %rsi
movb $0x1, %al
movq %rcx, %rdi
testb $0x1, %al
je 0x672f3
xorl %eax, %eax
movl $0x0, %ecx
testl %edx, %edx
je 0x671bd
movq %r14, -0x30(%rbp)
cmpl $0x1, %edx
jne 0x67337
movq %rbx, %r14
callq 0xce01
movq %rax, %r13
movq %rdx, %rbx
leaq -0x88(%rbp), %rax
movq %rax, (%rsp)
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
pushq $0x1
popq %r8
leaq -0x90(%rbp), %r9
callq 0x4d0c4
testb $0x1, %bl
je 0x67238
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x67238
incl (%rax)
movq -0x90(%rbp), %rdi
movq %r13, %rsi
leaq -0x80(%rbp), %rdx
callq 0x1a10b
movq -0x80(%rbp), %rdi
movq %rax, %rsi
leaq -0x78(%rbp), %rdx
callq 0x3c78f
movq -0x78(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rax, %rdx
leaq -0x70(%rbp), %rcx
leaq -0x68(%rbp), %r8
callq 0x4d027
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x58(%rbp), %rax
movq %rax, (%rsp)
xorl %edx, %edx
xorl %ecx, %ecx
pushq $0x3
popq %r8
leaq -0x60(%rbp), %r9
callq 0x4d0c4
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %r13, %rdx
leaq -0x50(%rbp), %rcx
leaq -0x48(%rbp), %r8
callq 0x4fa9f
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x38(%rbp), %rax
movq %rax, (%rsp)
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x9a, %r8d
leaq -0x40(%rbp), %r9
callq 0x4d0c4
movl -0xa0(%rbp), %edx
movq -0x98(%rbp), %rcx
movq -0x40(%rbp), %r12
movq -0x38(%rbp), %r15
movq %r14, %rbx
movq -0x30(%rbp), %r14
jmp 0x671aa
andq %rdi, %r8
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x6731f
decl (%r8)
jne 0x6731f
shlq $0x30, %rdx
orq %rdi, %rdx
leaq 0xa0f62(%rip), %rsi     # 0x108279
movq %rdx, %rdi
callq 0xce94
movq %r12, (%r14)
movq %r15, (%rbx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6d4cf(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6