// File: /workspace/github_c_makefile_star2_O2/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 %rsi, %rax
movq %rdi, %rbx
leaq -0x50(%rbp), %rsi
movq %rax, %rdi
callq 0x3f5b0
leaq -0x78(%rbp), %r13
movq %rbx, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x2f684
movl %eax, %r14d
movq %rdx, %r15
xorl %edi, %edi
xorl %esi, %esi
callq 0xcd32
movq %rdx, %r12
movq (%r13), %rbx
leaq -0x50(%rbp), %rcx
movq (%rcx), %r13
leaq -0x70(%rbp), %rdx
movb $0x1, %cl
movq %r15, %rdi
testb $0x1, %cl
je 0x4fc53
xorl %ecx, %ecx
movl $0x0, %r15d
testl %r14d, %r14d
je 0x4fbdb
cmpl $0x1, %r14d
jne 0x4fcb5
movl %eax, %r15d
movq %rdx, %r14
movq %rdx, %rsi
callq 0xce01
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
leaq -0x48(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0x4fdf0
movq %rax, %rdi
leaq 0xb9a90(%rip), %rsi     # 0x1096b8
movl %r15d, %edx
movq %r12, %rcx
leaq -0x60(%rbp), %r8
callq 0x8e35
movq %r14, %rdx
movl -0x70(%rbp), %r14d
movq -0x68(%rbp), %r15
movl -0x60(%rbp), %eax
movq -0x58(%rbp), %r12
movq -0x40(%rbp), %r13
movq -0x48(%rbp), %rbx
jmp 0x4fbd9
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rsi
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x4fc8e
decl (%rsi)
jne 0x4fc8e
shlq $0x30, %r14
orq %rdi, %r14
movl %eax, %r15d
leaq 0xb85f6(%rip), %rsi     # 0x108279
movq %r14, %rdi
callq 0xce94
movl %r15d, %eax
movl %eax, %edi
movq %r12, %rsi
callq 0xcd32
movq -0x30(%rbp), %rcx
movq %r13, (%rcx)
movq -0x38(%rbp), %rcx
movq %rbx, (%rcx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x84b51(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6