// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_c99zeapizeenterzx
static void mw_mirth_c99_c99zeapizeenterzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, struct mirth_c99_C99API* in_C99API_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	incref(MK_mirth_c99_C99API(in_C99API_3));
	struct std_list_List_1 v6 = in_C99API_3->minzeparams;
	incref(MK_std_list_List_1(v6));
	decref(MK_mirth_c99_C99API(in_C99API_3));
	INT v7 = mw_std_list_List_1_len(v6);
	incref(MK_mirth_c99_C99API(in_C99API_3));
	struct std_list_List_1 v8 = in_C99API_3->moutzeparamsze1;
	incref(MK_std_list_List_1(v8));
	decref(MK_mirth_c99_C99API(in_C99API_3));
	INT v9 = mw_std_list_List_1_len(v8);
	INT v10 = v7;
	INT v11 = v9;
	INT v12 = int_add(v10, v11);
	INT v13 = v12;
	incref(MK_mirth_c99_C99API(in_C99API_3));
	struct std_list_List_1 v14 = in_C99API_3->moutzeparamsze2;
	incref(MK_std_list_List_1(v14));
	decref(MK_mirth_c99_C99API(in_C99API_3));
	INT v15 = mw_std_list_List_1_len(v14);
	INT v16 = v13;
	INT v17 = v15;
	INT v18 = int_add(v16, v17);
	INT v19 = v18;
	incref(MK_mirth_c99_C99API(in_C99API_3));
	struct std_maybe_Maybe_1 v20 = in_C99API_3->mreturnzeparam;
	incref(MK_std_maybe_Maybe_1(v20));
	decref(MK_mirth_c99_C99API(in_C99API_3));
	int64_t v21 = (v20).tag;
	decref(MK_std_maybe_Maybe_1(v20));
	INT v22 = WRAP_I63(0LL);
	INT v23 = v22;
	INT v24 = i64_to_int(v21);
	bool v25 = int_eq(v24, v23);
	bool v26 = !v25;
	INT branch_Nat_27;
	if (v26) {
		INT v28 = WRAP_I63(1LL);
		INT v29 = v19;
		INT v30 = v28;
		INT v31 = int_add(v29, v30);
		INT v32 = v31;
		branch_Nat_27 = v32;
	} else {
		branch_Nat_27 = v19;
	}
	INT v33 = WRAP_I63(1LL);
	INT v34 = branch_Nat_27;
	INT v35 = v33;
	INT v36 = int_add(v34, v35);
	INT v37 = v36;
	INT v38 = in_zaC99_2->mfreshzecounter;
	decref(MKNAT(v38));
	in_zaC99_2->mfreshzecounter = v37;
	bool v39 = true;
	struct std_list_List_1 v40 = { .tag=std_list_List_1_Nil };
	struct mirth_mirth_zaMirth* v41;
	struct mirth_c99_zaC99Branch* v42;
	mw_mirth_c99_zaC99_startzebranchzx(in_zaMirth_1, in_zaC99_2, v39, v40, &v41, &v42);
	incref(MK_mirth_c99_C99API(in_C99API_3));
	struct std_list_List_1 v43 = in_C99API_3->minzeparams;
	incref(MK_std_list_List_1(v43));
	decref(MK_mirth_c99_C99API(in_C99API_3));
	struct mirth_mirth_zaMirth* v44;
	struct mirth_c99_zaC99Branch* v45;
	mw_std_list_List_1_for_1_sp23(v41, v42, v43, &v44, &v45);
	decref(MK_mirth_c99_C99API(in_C99API_3));
	*out_zaC99Branch_5 = v45;
	*out_zaMirth_4 = v44;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, -0x68(%rbp)
movq %rcx, -0x70(%rbp)
movq %rdx, %r15
movq %rsi, -0x48(%rbp)
movq %rdi, -0x50(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %rdx, %r12
andq %rcx, %r12
setne %al
testb $0x3, %r15b
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0xa8201
incl (%r12)
movl 0x18(%r15), %r14d
movq 0x20(%r15), %rbx
movq %rbx, %rax
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xa821e
incl (%rax)
testb %r13b, %r13b
movq %r12, -0x30(%rbp)
je 0xa8250
decl (%r12)
jne 0xa823c
movq %r15, %rdi
leaq 0x6adca(%rip), %rsi     # 0x113001
callq 0xd13d
movl %r14d, %edi
movq %rbx, %rsi
callq 0x11653
movq %rax, %rbx
incl (%r12)
jmp 0xa825e
movl %r14d, %edi
movq %rbx, %rsi
callq 0x11653
movq %rax, %rbx
movl 0x28(%r15), %r14d
movq 0x30(%r15), %r12
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xa8286
incl (%rax)
testb %r13b, %r13b
je 0xa82a2
movq -0x30(%rbp), %rax
decl (%rax)
jne 0xa82a2
movq %r15, %rdi
leaq 0x6ad64(%rip), %rsi     # 0x113001
callq 0xd13d
movl %r14d, %edi
movq %r12, %rsi
callq 0x11653
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe50f
movq %rax, %rbx
testb %r13b, %r13b
je 0xa82c6
movq -0x30(%rbp), %rax
incl (%rax)
movl 0x48(%r15), %r14d
movq 0x50(%r15), %r12
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xa82ee
incl (%rax)
testb %r13b, %r13b
je 0xa830a
movq -0x30(%rbp), %rax
decl (%rax)
jne 0xa830a
movq %r15, %rdi
leaq 0x6acfc(%rip), %rsi     # 0x113001
callq 0xd13d
movl %r14d, %edi
movq %r12, %rsi
callq 0x11653
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe50f
movq %rax, -0x40(%rbp)
testb %r13b, %r13b
je 0xa832f
movq -0x30(%rbp), %rax
incl (%rax)
movl 0x38(%r15), %ecx
movq 0x40(%r15), %r14
movq %r14, %r12
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r12
setne %al
testb $0x3, %r14b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0xa835c
incl (%r12)
testb %r13b, %r13b
je 0xa8380
movq -0x30(%rbp), %rax
decl (%rax)
jne 0xa8380
movq %rcx, -0x60(%rbp)
movq %r15, %rdi
leaq 0x6ac8a(%rip), %rsi     # 0x113001
callq 0xd13d
movq -0x60(%rbp), %rcx
testb %bl, %bl
je 0xa83a6
decl (%r12)
jne 0xa83a6
movq %rcx, %rbx
movq %rcx, %rdi
shlq $0x30, %rdi
orq %r14, %rdi
leaq 0x68f23(%rip), %rsi     # 0x1112c1
callq 0xd13d
movq %rbx, %rcx
leaq 0x1(,%rcx,2), %rdi
movl $0x1, %esi
callq 0xe83a
testl %eax, %eax
je 0xa83d7
movl $0x3, %esi
movq -0x40(%rbp), %rdi
callq 0xe50f
movq %rax, %rdi
movq -0x30(%rbp), %r14
movq -0x48(%rbp), %r12
jmp 0xa83e3
movq -0x30(%rbp), %r14
movq -0x48(%rbp), %r12
movq -0x40(%rbp), %rdi
movl $0x3, %esi
callq 0xe50f
movq %rax, %rbx
movq 0x10(%r12), %rdi
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0xa8423
decl (%rax)
jne 0xa8423
leaq 0x68cf3(%rip), %rsi     # 0x111111
callq 0xd13d
movq %rbx, 0x10(%r12)
leaq -0x38(%rbp), %rax
movq %rax, (%rsp)
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xae344
testb %r13b, %r13b
je 0xa844f
incl (%r14)
movl 0x18(%r15), %r12d
movq 0x20(%r15), %rbx
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rdx
sete %al
testb $0x3, %bl
setne %cl
orb %al, %cl
jne 0xa8473
incl (%rdx)
movq -0x38(%rbp), %r14
testb %r13b, %r13b
je 0xa84c6
movq -0x30(%rbp), %r13
decl (%r13)
jne 0xa8495
movq %r15, %rdi
leaq 0x6ab71(%rip), %rsi     # 0x113001
callq 0xd13d
leaq -0x38(%rbp), %r8
leaq -0x58(%rbp), %r9
movq -0x50(%rbp), %rdi
movq %r14, %rsi
movl %r12d, %edx
movq %rbx, %rcx
callq 0xae293
decl (%r13)
jne 0xa84e0
movq %r15, %rdi
leaq 0x6ab42(%rip), %rsi     # 0x113001
callq 0xd13d
jmp 0xa84e0
leaq -0x38(%rbp), %r8
leaq -0x58(%rbp), %r9
movq -0x50(%rbp), %rdi
movq %r14, %rsi
movl %r12d, %edx
movq %rbx, %rcx
callq 0xae293
movq -0x58(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rax, (%rcx)
movq -0x38(%rbp), %rax
movq -0x70(%rbp), %rcx
movq %rax, (%rcx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq