// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rdi, %rbx
leaq -0x38(%rbp), %r13
testl %edx, %edx
je 0x6ec2d
cmpl $0x1, %edx
jne 0x6ec8c
movq %rcx, %rdi
leaq -0x60(%rbp), %rsi
callq 0xd450
movq %rax, %r15
movq %rdx, %r12
movl $0x1, %edi
callq 0x567d6
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
leaq -0x30(%rbp), %rax
pushq %rax
pushq %r13
callq 0x44e2b
addq $0x10, %rsp
testb $0x1, %r12b
je 0x6eb2e
movq %r15, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x6eb2e
incl (%rax)
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
leaq 0x10aa43b(%rip), %rdi   # 0x1118f78
movq %r15, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %r14, %rdi
movq %rax, %rsi
leaq -0x50(%rbp), %rdx
callq 0x4140d
movq -0x50(%rbp), %r14
movq %rax, %rdi
callq 0x56783
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0xd, %r8d
movq %rax, %r9
leaq -0x30(%rbp), %r12
pushq %r12
pushq %r13
callq 0x44e2b
addq $0x10, %rsp
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
movl $0x3, %edi
callq 0x567d6
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
pushq %r12
pushq %r13
callq 0x44e2b
addq $0x10, %rsp
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
movq %r15, %rdi
callq 0x55bee
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x4, %r8d
movq %rax, %r9
pushq %r12
pushq %r13
callq 0x44e2b
addq $0x10, %rsp
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
movl $0x9a, %edi
callq 0x567d6
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
pushq %r12
pushq %r13
callq 0x44e2b
addq $0x10, %rsp
movq -0x30(%rbp), %rbx
movq -0x38(%rbp), %r14
movl -0x60(%rbp), %edx
movq -0x58(%rbp), %rcx
movb $0x1, %al
jmp 0x6ec31
xorl %eax, %eax
xorl %ecx, %ecx
testb %al, %al
jne 0x6eabb
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rdi
sete %al
testb $0x3, %cl
setne %sil
orb %al, %sil
jne 0x6ec6f
decl (%rdi)
jne 0x6ec6f
shlq $0x30, %rdx
orq %rcx, %rdx
leaq 0xa6612(%rip), %rsi     # 0x115279
movq %rdx, %rdi
callq 0xd4e3
movq -0x40(%rbp), %rax
movq %r14, (%rax)
movq -0x48(%rbp), %rax
movq %rbx, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x75aa8(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x75aad(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5