// File: /workspace/github_c_makefile_star2_O3/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)
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
cmpl $0x1, %edx
jne 0x57279
movq %rdi, -0x48(%rbp)
movq %rcx, %rdi
leaq -0x60(%rbp), %rsi
callq 0xd0aa
movq %rax, %r15
movq %rdx, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0x90ba
movq %r15, %rbx
andq %r14, %rbx
movq 0x8(%rbx), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x90ba
movq 0x18(%rbx), %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x90ba
movq %r15, %rdi
callq 0x910b
movq %r13, %rdx
shrq $0x30, %rdx
andq %r14, %r13
movq -0x48(%rbp), %rdi
movq %rbx, %rsi
movq %r13, %rcx
leaq -0x50(%rbp), %r8
callq 0x3ab8d
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x57269
decl (%rcx)
jne 0x57269
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
leaq 0xba885(%rip), %rsi     # 0x111ae9
callq 0xd13d
movq -0x50(%rbp), %rdi
movl -0x60(%rbp), %edx
movq -0x58(%rbp), %rcx
jmp 0x571c6
testl %edx, %edx
jne 0x5729e
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movq %rdi, (%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 0x89416(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x8941b(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302