// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_c99zecodipzearrowzx
static void mw_mirth_c99_c99zecodipzearrowzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_arrow_Arrow* in_Arrow_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	incref(MK_mirth_arrow_Arrow(in_Arrow_3));
	struct mirth_type_ArrowType* v6 = mw_mirth_arrow_Arrow_type(in_Arrow_3);
	struct mirth_type_StackType v7;
	struct mirth_type_StackType v8;
	mtp_mirth_type_ArrowType_ArrowType(v6, &v7, &v8);
	struct mirth_mirth_zaMirth* v9;
	struct std_list_List_1 v10;
	struct mirth_type_StackTypeBase v11 = mw_mirth_type_StackType_splitzeparts(in_zaMirth_1, v8, &v9, &v10);
	struct mirth_mirth_zaMirth* v12;
	struct std_list_List_1 v13;
	struct mirth_type_StackTypeBase v14 = mw_mirth_type_StackType_splitzeparts(v9, v7, &v12, &v13);
	struct mirth_mirth_zaMirth* v15;
	bool v16 = mw_mirth_type_StackTypeBase_unitzy(v12, v11, &v15);
	struct mirth_mirth_zaMirth* v17;
	bool v18 = mw_mirth_type_StackTypeBase_unitzy(v15, v14, &v17);
	bool v19 = (v16 && v18);
	struct mirth_mirth_zaMirth* branch_zaMirth_20;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_21;
	if (v19) {
		struct mirth_mirth_zaMirth* v22;
		struct mirth_c99_zaC99Branch* v23;
		struct mirth_c99_zaC99Stack v24;
		mw_mirth_c99_zaC99Branch_popzestackzx(v17, in_zaC99Branch_2, v13, &v22, &v23, &v24);
		struct mirth_c99_zaC99Stack r25 = v23->mzastack;
		struct mirth_c99_zaC99Stack v26 = { .tag=mirth_c99_zaC99Stack_zaNil };
		v23->mzastack = v26;
		struct mirth_mirth_zaMirth* v27;
		struct mirth_c99_zaC99Branch* v28;
		mw_mirth_c99_zaC99Stack_pushzestackzx(v22, v23, v24, &v27, &v28);
		struct mirth_mirth_zaMirth* v29;
		struct mirth_c99_zaC99Branch* v30;
		mw_mirth_c99_c99zearrowzx(v27, v28, in_Arrow_3, &v29, &v30);
		struct mirth_mirth_zaMirth* v31;
		struct mirth_c99_zaC99Branch* v32;
		struct mirth_c99_zaC99Stack v33;
		mw_mirth_c99_zaC99Branch_popzestackzx(v29, v30, v10, &v31, &v32, &v33);
		struct mirth_c99_zaC99Stack r34 = v32->mzastack;
		mw_mirth_c99_zaC99Stack_rdrop(r34);
		v32->mzastack = r25;
		struct mirth_mirth_zaMirth* v35;
		struct mirth_c99_zaC99Branch* v36;
		mw_mirth_c99_zaC99Stack_pushzestackzx(v31, v32, v33, &v35, &v36);
		branch_zaC99Branch_21 = v36;
		branch_zaMirth_20 = v35;
	} else {
		decref(MK_std_list_List_1(v13));
		decref(MK_std_list_List_1(v10));
		struct mirth_mirth_zaMirth* v37;
		struct mirth_c99_zaC99Branch* v38;
		mw_mirth_c99_c99zearrowzx(v17, in_zaC99Branch_2, in_Arrow_3, &v37, &v38);
		branch_zaC99Branch_21 = v38;
		branch_zaMirth_20 = v37;
	}
	*out_zaC99Branch_5 = branch_zaC99Branch_21;
	*out_zaMirth_4 = branch_zaMirth_20;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, -0x68(%rbp)
movq %rcx, -0x70(%rbp)
movq %rdx, %r8
movq %rsi, -0x30(%rbp)
movq %rdi, %r13
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rax
andq %rcx, %rax
sete %cl
testb $0x3, %r8b
setne %dl
orb %cl, %dl
jne 0xd80f5
incl (%rax)
movq %r8, -0x38(%rbp)
movq %r8, %rdi
callq 0x3c0f7
leaq -0x128(%rbp), %rbx
leaq -0x118(%rbp), %r14
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3b486
movl (%r14), %esi
movq 0x8(%r14), %rdx
leaq -0xf8(%rbp), %r14
leaq -0x60(%rbp), %r8
movq %r13, %rdi
movq %r14, %rcx
callq 0x363c1
movl %eax, %r13d
movq %rdx, %r12
movq (%r14), %rdi
movl (%rbx), %esi
movq 0x8(%rbx), %rdx
leaq -0xf0(%rbp), %rbx
leaq -0x50(%rbp), %r8
movq %rbx, %rcx
callq 0x363c1
movl %eax, %r14d
movq %rdx, %r15
movq (%rbx), %rdi
leaq -0xe8(%rbp), %rbx
movl %r13d, %esi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x366ca
movl %eax, %r12d
movq (%rbx), %rdi
leaq -0x40(%rbp), %rcx
movl %r14d, %esi
movq %r15, %rdx
callq 0x366ca
testb %r12b, %r12b
je 0xd82a3
testb %al, %al
je 0xd82a3
movq -0x40(%rbp), %rdi
movl -0x50(%rbp), %edx
movq -0x48(%rbp), %rcx
leaq -0xd0(%rbp), %r15
movq %r15, (%rsp)
leaq -0xe0(%rbp), %rbx
leaq -0xd8(%rbp), %r14
movq -0x30(%rbp), %rsi
movq %rbx, %r8
movq %r14, %r9
callq 0xd939e
movq (%r14), %rsi
movups 0x8(%rsi), %xmm0
movaps %xmm0, -0x80(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq (%rbx), %rdi
movl (%r15), %edx
movq 0x8(%r15), %rcx
leaq -0xc0(%rbp), %rbx
leaq -0xb8(%rbp), %r14
movq %rbx, %r8
movq %r14, %r9
callq 0xd963f
movq (%rbx), %rdi
movq (%r14), %rsi
leaq -0xb0(%rbp), %rbx
leaq -0xa8(%rbp), %r14
movq -0x38(%rbp), %rdx
movq %rbx, %rcx
movq %r14, %r8
callq 0xbdec7
movq (%rbx), %rdi
movq (%r14), %rsi
movl -0x60(%rbp), %edx
movq -0x58(%rbp), %rcx
leaq -0x108(%rbp), %r15
movq %r15, (%rsp)
leaq -0xa0(%rbp), %rbx
leaq -0x98(%rbp), %r14
movq %rbx, %r8
movq %r14, %r9
callq 0xd939e
movq (%r14), %r14
movl 0x8(%r14), %edi
movq 0x10(%r14), %rsi
callq 0xb890a
movaps -0x80(%rbp), %xmm0
movups %xmm0, 0x8(%r14)
movq (%rbx), %rdi
movl (%r15), %edx
movq 0x8(%r15), %rcx
leaq -0x90(%rbp), %rbx
leaq -0x88(%rbp), %r15
movq %r14, %rsi
movq %rbx, %r8
movq %r15, %r9
callq 0xd963f
movq (%r15), %rax
jmp 0xd8330
movq -0x48(%rbp), %rax
leaq 0x3cfcb(%rip), %r13     # 0x115279
movq %rax, %rcx
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0xd82e2
movl -0x50(%rbp), %edi
decl (%rcx)
jne 0xd82e2
shlq $0x30, %rdi
orq %rax, %rdi
movq %r13, %rsi
callq 0xd4e3
movq -0x58(%rbp), %rax
andq %rax, %rbx
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0xd830b
movl -0x60(%rbp), %edi
decl (%rbx)
jne 0xd830b
shlq $0x30, %rdi
orq %rax, %rdi
movq %r13, %rsi
callq 0xd4e3
movq -0x40(%rbp), %rdi
leaq -0xd0(%rbp), %rbx
leaq -0x80(%rbp), %r14
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
movq %rbx, %rcx
movq %r14, %r8
callq 0xbdec7
movq (%r14), %rax
movq (%rbx), %rcx
movq -0x68(%rbp), %rdx
movq %rax, (%rdx)
movq -0x70(%rbp), %rax
movq %rcx, (%rax)
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq