// File: /workspace/github_c_makefile_star2_O3/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 $0x38, %rsp
movq %r9, -0x40(%rbp)
movq %r8, -0x48(%rbp)
movq %rsi, %r15
movq %rdi, %r14
leaq -0x38(%rbp), %r13
cmpl $0x1, %edx
jne 0x6cfe6
movq %rcx, %rdi
leaq -0x60(%rbp), %rsi
callq 0xd0aa
movq %rax, %rbx
movq %rdx, %r12
movl $0x1, %edi
callq 0x54fbd
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
leaq -0x30(%rbp), %rax
pushq %rax
pushq %r13
callq 0x43977
addq $0x10, %rsp
testb $0x1, %r12b
je 0x6cee6
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x6cee6
incl (%rax)
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %r15
leaq 0x10a8083(%rip), %rdi   # 0x1114f78
movq %rbx, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %r15, %rdi
movq %rax, %rsi
leaq -0x50(%rbp), %rdx
callq 0x4006e
movq -0x50(%rbp), %r15
movq %rax, %rdi
callq 0x54f6a
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xd, %r8d
movq %rax, %r9
leaq -0x30(%rbp), %r12
pushq %r12
pushq %r13
callq 0x43977
addq $0x10, %rsp
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %r15
movl $0x3, %edi
callq 0x54fbd
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
pushq %r12
pushq %r13
callq 0x43977
addq $0x10, %rsp
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %r15
movq %rbx, %rdi
callq 0x543f9
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x4, %r8d
movq %rax, %r9
pushq %r12
pushq %r13
callq 0x43977
addq $0x10, %rsp
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
movl $0x9a, %edi
callq 0x54fbd
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
pushq %r12
pushq %r13
callq 0x43977
addq $0x10, %rsp
movq -0x30(%rbp), %r14
movq -0x38(%rbp), %r15
movl -0x60(%rbp), %edx
movq -0x58(%rbp), %rcx
jmp 0x6ce7c
testl %edx, %edx
jne 0x6d007
movq -0x40(%rbp), %rax
movq %r15, (%rax)
movq -0x48(%rbp), %rax
movq %r14, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x736ad(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x736b2(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302