// File: /workspace/github_c_makefile_star2_O2/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, %r14
movq %r8, %rbx
movq %rsi, %r15
movq %rdi, %r12
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x58(%rbp), %rsi
movb $0x1, %al
movq %rcx, %rdi
testb $0x1, %al
je 0x52a5a
xorl %eax, %eax
movl $0x0, %ecx
testl %edx, %edx
je 0x52980
movq %r12, -0x30(%rbp)
movq %r15, -0x38(%rbp)
movq %r14, -0x40(%rbp)
movq %rbx, -0x48(%rbp)
cmpl $0x1, %edx
jne 0x52a9c
callq 0xce01
movq %rax, %r12
movq %rdx, %rbx
movq %rax, %rdi
movq %rdx, %rsi
callq 0x8a95
movq %r12, %r15
andq %r13, %r15
movq 0x8(%r15), %r14
movq %r12, %rdi
movq %rbx, %rsi
callq 0x8a95
movq 0x18(%r15), %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x8a95
movq %r12, %rdi
callq 0x8ae0
movq %r14, %rdx
shrq $0x30, %rdx
andq %r13, %r14
movq -0x30(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rcx
leaq -0x60(%rbp), %r8
callq 0x37895
movq %rdx, %rcx
andq %r13, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x52a3e
decl (%rcx)
jne 0x52a3e
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
leaq 0xb60b0(%rip), %rsi     # 0x108ae9
callq 0xce94
movq -0x60(%rbp), %r12
movl -0x58(%rbp), %edx
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rbx
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %r15
jmp 0x5297a
andq %rdi, %r13
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x52a87
decl (%r13)
jne 0x52a87
shlq $0x30, %rdx
orq %rdi, %rdx
leaq 0xb57fa(%rip), %rsi     # 0x108279
movq %rdx, %rdi
callq 0xce94
movq %r15, (%r14)
movq %r12, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x81d6a(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6