// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_std_list_List_1_for_1_sp77
static void mw_std_list_List_1_for_1_sp77 (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, struct std_list_List_1 in_List_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_arrow_Arrow* *out_zaAB_5) {
	bool v6 = true;
	struct mirth_mirth_zaMirth* r7 = in_zaMirth_1;
	struct mirth_arrow_Arrow* r8 = in_zaAB_2;
	struct std_list_List_1 v9 = in_List_3;
	bool v10 = v6;
	bool v11 = v6;
	while (v11) {
		struct mirth_mirth_zaMirth* r12 = r7;
		struct mirth_arrow_Arrow* r13 = r8;
		struct std_list_List_1 v14 = v9;
		bool v15 = v10;
		struct mirth_mirth_zaMirth* branch_zaMirth_16;
		struct mirth_arrow_Arrow* branch_zaAB_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);
				VAL v22 = ((TUP*)PTRPTR(value_tup(v21)))->cells[0];
				VAL v23 = ((TUP*)PTRPTR(value_tup(v21)))->cells[1];
				tup_decref_outer(value_tup(v21));
				struct mirth_mirth_zaMirth* v24;
				struct mirth_arrow_Arrow* v25;
				mw_mirth_elab_zaAB_abzeargzeunifyzetypezx(r12, r13, V_mirth_type_Type(v22), V_mirth_arrow_Block(v23), &v24, &v25);
				bool v26 = true;
				branch_Bool_19 = v26;
				branch_List_18 = v20;
				branch_zaAB_17 = v25;
				branch_zaMirth_16 = v24;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v27 = { .tag=std_list_List_1_Nil };
				bool v28 = false;
				branch_Bool_19 = v28;
				branch_List_18 = v27;
				branch_zaAB_17 = r13;
				branch_zaMirth_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_zaAB_17;
		r7 = branch_zaMirth_16;
	}
	decref(MK_std_list_List_1(v9));
	*out_zaAB_5 = r8;
	*out_zaMirth_4 = r7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, -0x38(%rbp)
movq %r8, -0x40(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdi, %r14
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
testl %edx, %edx
je 0x58a7e
cmpl $0x1, %edx
jne 0x58ad9
movq %rcx, %rdi
leaq -0x58(%rbp), %rsi
callq 0xd450
movq %rax, %r15
movq %rdx, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0x9363
movq %r15, %rbx
andq %r13, %rbx
movq 0x8(%rbx), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x9363
movq 0x18(%rbx), %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x9363
movq %r15, %rdi
callq 0x93b4
movq %r13, %rdx
shrq $0x30, %rdx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rcx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x48(%rbp), %r8
callq 0x3bed8
movq %rdx, %rcx
andq %r13, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x58a6f
decl (%rcx)
jne 0x58a6f
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
leaq 0xbd07f(%rip), %rsi     # 0x115ae9
callq 0xd4e3
movq -0x48(%rbp), %r14
movl -0x58(%rbp), %edx
movq -0x50(%rbp), %rcx
movb $0x1, %al
jmp 0x58a82
xorl %eax, %eax
xorl %ecx, %ecx
testb %al, %al
jne 0x589b5
andq %rcx, %r13
sete %al
testb $0x3, %cl
setne %sil
orb %al, %sil
jne 0x58ab8
decl (%r13)
jne 0x58ab8
shlq $0x30, %rdx
orq %rcx, %rdx
leaq 0xbc7c9(%rip), %rsi     # 0x115279
movq %rdx, %rdi
callq 0xd4e3
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x40(%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 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x8bc5b(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x8bc60(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5