// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_elabzedefzebodyzx
static struct mirth_type_StackType mw_mirth_elab_elabzedefzebodyzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, struct mirth_type_StackType in_StackType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_arrow_Arrow* *out_zaAB_5) {
	struct mirth_arrow_Arrow* v7;
	uint64_t v8 = mw_mirth_elab_zaAB_abzetokenzo(in_zaAB_2, &v7);
	struct mirth_mirth_zaMirth* v9;
	struct std_maybe_Maybe_1 v10 = mw_mirth_token_Token_runzearrowzy(in_zaMirth_1, v8, &v9);
	int64_t v11 = (v10).tag;
	decref(MK_std_maybe_Maybe_1(v10));
	INT v12 = WRAP_I63(0LL);
	INT v13 = v12;
	INT v14 = i64_to_int(v11);
	bool v15 = int_eq(v14, v13);
	bool v16 = !v15;
	struct mirth_mirth_zaMirth* branch_zaMirth_17;
	struct mirth_arrow_Arrow* branch_zaAB_18;
	bool branch_Bool_19;
	if (v16) {
		bool v20 = true;
		branch_Bool_19 = v20;
		branch_zaAB_18 = v7;
		branch_zaMirth_17 = v9;
	} else {
		struct mirth_arrow_Arrow* v21;
		uint64_t v22 = mw_mirth_elab_zaAB_abzetokenzo(v7, &v21);
		struct mirth_mirth_zaMirth* v23;
		struct std_maybe_Maybe_1 v24 = mw_mirth_token_Token_lcurlyzy(v9, v22, &v23);
		int64_t v25 = (v24).tag;
		decref(MK_std_maybe_Maybe_1(v24));
		INT v26 = WRAP_I63(0LL);
		INT v27 = v26;
		INT v28 = i64_to_int(v25);
		bool v29 = int_eq(v28, v27);
		bool v30 = !v29;
		branch_Bool_19 = v30;
		branch_zaAB_18 = v21;
		branch_zaMirth_17 = v23;
	}
	struct mirth_type_StackType branch_StackType_31;
	struct mirth_mirth_zaMirth* branch_zaMirth_32;
	struct mirth_arrow_Arrow* branch_zaAB_33;
	if (branch_Bool_19) {
		incref(MK_mirth_type_StackType(in_StackType_3));
		struct mirth_arrow_Arrow* v34;
		uint64_t v35 = mw_mirth_elab_zaAB_abzetokenzo(branch_zaAB_18, &v34);
		struct mirth_mirth_zaMirth* v36;
		struct mirth_arrow_Arrow* v37;
		mw_mirth_elab_zaAB_elabzematchzeatzx(branch_zaMirth_17, v34, in_StackType_3, v35, &v36, &v37);
		branch_zaAB_33 = v37;
		branch_zaMirth_32 = v36;
		branch_StackType_31 = in_StackType_3;
	} else {
		struct mirth_mirth_zaMirth* v38;
		struct mirth_arrow_Arrow* v39;
		mw_mirth_elab_zaAB_elabzeatomszx(branch_zaMirth_17, branch_zaAB_18, &v38, &v39);
		branch_zaAB_33 = v39;
		branch_zaMirth_32 = v38;
		branch_StackType_31 = in_StackType_3;
	}
	*out_zaAB_5 = branch_zaAB_33;
	*out_zaMirth_4 = branch_zaMirth_32;
	return branch_StackType_31;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, -0x50(%rbp)
movq %r8, -0x58(%rbp)
movq %rcx, %rbx
movl %edx, %r12d
movq %rsi, %rax
movq %rdi, %r13
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x48(%rbp), %rsi
movq %rax, %rdi
callq 0x44725
leaq -0x40(%rbp), %rdx
movq %r13, %rdi
movq %rax, %rsi
callq 0x35079
movl %eax, %r15d
leaq 0xd0e07(%rip), %r13     # 0x1152c1
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x444e5
decl (%rax)
jne 0x444e5
movq %r15, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
movq %r13, %rsi
callq 0xd4e3
leaq 0x1(,%r15,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
je 0x44507
movq -0x48(%rbp), %rsi
movb $0x1, %al
movq -0x40(%rbp), %r13
jmp 0x44571
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x44725
movq -0x40(%rbp), %rdi
leaq -0x30(%rbp), %rdx
movq %rax, %rsi
callq 0x310fd
movl %eax, %r15d
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x44552
decl (%rax)
jne 0x44552
movq %r15, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
movq %r13, %rsi
callq 0xd4e3
leaq 0x1(,%r15,2), %rdi
movl $0x1, %esi
callq 0xec04
testl %eax, %eax
setne %al
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %r13
testb %al, %al
je 0x445bc
andq %rbx, %r14
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x44588
incl (%r14)
leaq -0x38(%rbp), %r14
movq %rsi, %rdi
movq %r14, %rsi
callq 0x44725
movq (%r14), %rsi
leaq -0x60(%rbp), %r15
movq %r15, (%rsp)
leaq -0x30(%rbp), %r14
movq %r13, %rdi
movl %r12d, %edx
movq %rbx, %rcx
movq %rax, %r8
movq %r14, %r9
callq 0x4bb18
jmp 0x445d2
leaq -0x38(%rbp), %r14
leaq -0x30(%rbp), %r15
movq %r13, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x4c351
movq (%r15), %rax
movq (%r14), %rcx
movq -0x50(%rbp), %rdx
movq %rax, (%rdx)
movq -0x58(%rbp), %rax
movq %rcx, (%rax)
movl %r12d, %eax
movq %rbx, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq