// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaAB_elabzeargszx
static struct std_list_List_1 mw_mirth_elab_zaAB_elabzeargszx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_arrow_Arrow* *out_zaAB_4) {
	struct mirth_arrow_Arrow* v6;
	uint64_t v7 = mw_mirth_elab_zaAB_abzetokenzo(in_zaAB_2, &v6);
	struct mirth_mirth_zaMirth* v8;
	struct std_list_List_1 v9 = mw_mirth_token_Token_args(in_zaMirth_1, v7, &v8);
	struct std_list_List_1 v10 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v11;
	mw_std_list_List_1_buildzx(v10, &v11);
	bool v12 = true;
	struct mirth_mirth_zaMirth* r13 = v8;
	struct mirth_arrow_Arrow* r14 = v6;
	struct std_list_List_1 r15 = v11;
	struct std_list_List_1 v16 = v9;
	bool v17 = v12;
	bool v18 = v12;
	while (v18) {
		struct mirth_mirth_zaMirth* r19 = r13;
		struct mirth_arrow_Arrow* r20 = r14;
		struct std_list_List_1 r21 = r15;
		struct std_list_List_1 v22 = v16;
		bool v23 = v17;
		struct mirth_mirth_zaMirth* branch_zaMirth_24;
		struct mirth_arrow_Arrow* branch_zaAB_25;
		struct std_list_List_1 branch_zaLister_26;
		struct std_list_List_1 branch_List_27;
		bool branch_Bool_28;
		switch ((v22).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v29;
				VAL v30 = mtp_std_list_List_1_Cons(v22, &v29);
				struct mirth_mirth_zaMirth* v31;
				struct mirth_arrow_Arrow* v32;
				uint64_t v33 = mw_mirth_elab_zaAB_elabzeblockzeatzx(r19, r20, V_mirth_token_Token(v30), &v31, &v32);
				struct std_list_List_1 v34;
				mw_std_list_zaLister_1_pushzx(MK_mirth_arrow_Block(v33), r21, &v34);
				bool v35 = true;
				branch_Bool_28 = v35;
				branch_List_27 = v29;
				branch_zaLister_26 = v34;
				branch_zaAB_25 = v32;
				branch_zaMirth_24 = v31;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v36 = { .tag=std_list_List_1_Nil };
				bool v37 = false;
				branch_Bool_28 = v37;
				branch_List_27 = v36;
				branch_zaLister_26 = r21;
				branch_zaAB_25 = r20;
				branch_zaMirth_24 = r19;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v18 = branch_Bool_28;
		v17 = branch_Bool_28;
		v16 = branch_List_27;
		r15 = branch_zaLister_26;
		r14 = branch_zaAB_25;
		r13 = branch_zaMirth_24;
	}
	decref(MK_std_list_List_1(v16));
	struct std_list_List_1 v38 = mw_std_list_zaLister_1_donezx(r15);
	*out_zaAB_4 = r14;
	*out_zaMirth_3 = r13;
	return v38;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movq %rdi, %r14
leaq -0x78(%rbp), %rbx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x44725
leaq -0x70(%rbp), %r13
movq %r14, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x330da
movl %eax, %r14d
movq %rdx, %r15
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movq %r15, %rdi
movl %eax, %r12d
movq %rdx, %r8
movq (%r13), %r15
movq (%rbx), %r13
testl %r14d, %r14d
je 0x55a56
cmpl $0x1, %r14d
jne 0x55ac5
movq %r8, %rbx
leaq -0x68(%rbp), %rsi
callq 0xd450
movq %r15, %rdi
movq %r13, %rsi
movq %rax, %rdx
leaq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0x55c41
movq %rax, %rdi
leaq 0xc0c8d(%rip), %rsi     # 0x1166b8
movl %r12d, %edx
movq %rbx, %rcx
leaq -0x58(%rbp), %r8
callq 0x9741
movl -0x68(%rbp), %r14d
movq -0x60(%rbp), %rdi
movl -0x58(%rbp), %r12d
movq -0x50(%rbp), %r8
movq -0x40(%rbp), %r13
movq -0x48(%rbp), %r15
movb $0x1, %al
jmp 0x55a5a
xorl %eax, %eax
xorl %edi, %edi
testb %al, %al
jne 0x559f0
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x55a99
decl (%rax)
jne 0x55a99
shlq $0x30, %r14
orq %rdi, %r14
leaq 0xbf7ee(%rip), %rsi     # 0x115279
movq %r14, %rdi
movq %r8, %r14
callq 0xd4e3
movq %r14, %r8
xorl %edi, %edi
xorl %esi, %esi
movl %r12d, %edx
movq %r8, %rcx
callq 0xd37c
movq -0x30(%rbp), %rcx
movq %r13, (%rcx)
movq -0x38(%rbp), %rcx
movq %r15, (%rcx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x8ec6f(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x8ec74(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5