// File: /workspace/github_c_makefile_star2_O2/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 0x3f5b0
leaq -0x40(%rbp), %rdx
movq %r13, %rdi
movq %rax, %rsi
callq 0x31376
movl %eax, %r13d
leaq 0xc8f56(%rip), %r15     # 0x1082c1
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x3f396
decl (%rax)
jne 0x3f396
movq %r13, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
movq %r15, %rsi
callq 0xce94
movq %r13, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
testb %al, %al
je 0x3f433
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3f5b0
movq -0x40(%rbp), %rdi
leaq -0x30(%rbp), %rdx
movq %rax, %rsi
callq 0x2d978
movl %eax, %r13d
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x3f3fc
decl (%rax)
jne 0x3f3fc
movq %r13, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
movq %r15, %rsi
callq 0xce94
movq %r13, %rdi
callq 0xd86d
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %r13
testb %al, %al
je 0x3f43b
leaq -0x38(%rbp), %r14
leaq -0x30(%rbp), %r15
movq %r13, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x469df
jmp 0x3f480
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %r13
andq %rbx, %r14
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0x3f44e
incl (%r14)
leaq -0x38(%rbp), %r14
movq %rsi, %rdi
movq %r14, %rsi
callq 0x3f5b0
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 0x461f9
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