// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_beginzebranchzesplitzx
static void mw_mirth_c99_zaC99Branch_beginzebranchzesplitzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_c99_zaC99Branch* in_zaC99Branch_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99BranchSplit* *out_zaC99BranchSplit_5) {
	enum mirth_c99_C99APIArgMode v6 = mirth_c99_C99APIArgMode_Branch;
	struct mirth_c99_zaC99* r7 = in_zaC99Branch_3->mzac99;
	struct mirth_mirth_zaMirth* v8;
	struct mirth_c99_zaC99* v9;
	bool v10;
	struct std_list_List_1 v11 = mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparams(in_zaMirth_1, r7, in_StackType_2, v6, &v8, &v9, &v10);
	in_zaC99Branch_3->mzac99 = v9;
	incref(MK_std_list_List_1(v11));
	bool v12 = true;
	struct mirth_mirth_zaMirth* r13 = v8;
	struct mirth_c99_zaC99Branch* r14 = in_zaC99Branch_3;
	struct std_list_List_1 v15 = v11;
	bool v16 = v12;
	bool v17 = v12;
	while (v17) {
		struct mirth_mirth_zaMirth* r18 = r13;
		struct mirth_c99_zaC99Branch* r19 = r14;
		struct std_list_List_1 v20 = v15;
		bool v21 = v16;
		struct mirth_mirth_zaMirth* branch_zaMirth_22;
		struct mirth_c99_zaC99Branch* branch_zaC99Branch_23;
		struct std_list_List_1 branch_List_24;
		bool branch_Bool_25;
		switch ((v20).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v26;
				VAL v27 = mtp_std_list_List_1_Cons(v20, &v26);
				struct mirth_mirth_zaMirth* v28;
				struct mirth_c99_zaC99Branch* v29;
				mw_mirth_c99_C99APIArg_reservezeaszeiszx(r18, r19, V_mirth_c99_C99APIArg(v27), &v28, &v29);
				bool v30 = true;
				branch_Bool_25 = v30;
				branch_List_24 = v26;
				branch_zaC99Branch_23 = v29;
				branch_zaMirth_22 = v28;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v31 = { .tag=std_list_List_1_Nil };
				bool v32 = false;
				branch_Bool_25 = v32;
				branch_List_24 = v31;
				branch_zaC99Branch_23 = r19;
				branch_zaMirth_22 = r18;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v17 = branch_Bool_25;
		v16 = branch_Bool_25;
		v15 = branch_List_24;
		r14 = branch_zaC99Branch_23;
		r13 = branch_zaMirth_22;
	}
	decref(MK_std_list_List_1(v15));
	struct mirth_c99_zaC99* v33;
	struct mirth_c99_zaC99Stack v34;
	struct std_list_List_1 v35;
	bool v36;
	mtp_mirth_c99_zaC99Branch_zaC99Branch(r14, &v33, &v34, &v35, &v36);
	bool v37 = false;
	struct mirth_c99_zaC99BranchSplit* v38;
	mtw_mirth_c99_zaC99BranchSplit_zaC99BranchSplit(v33, v34, v35, v11, v36, v37, &v38);
	*out_zaC99BranchSplit_5 = v38;
	*out_zaMirth_4 = r13;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r9, -0x78(%rbp)
movq %r8, -0x80(%rbp)
movq %rcx, %r15
movq %rdx, %rcx
movl %esi, %edx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq (%r15), %rsi
leaq -0x31(%rbp), %rax
leaq -0xf8(%rbp), %rbx
pushq $0x3
popq %r8
leaq -0x98(%rbp), %r9
pushq %rax
pushq %rbx
callq 0xa1905
addq $0x10, %rsp
movq %rdx, %r12
movq (%rbx), %rcx
movq %rcx, (%r15)
movq %rdx, %rsi
andq %r13, %rsi
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xca0b4
incl (%rsi)
movq -0x98(%rbp), %rcx
movq %rcx, -0x40(%rbp)
leaq 0x3ffcb(%rip), %r14     # 0x10a091
leaq -0x68(%rbp), %rsi
movl %eax, -0x44(%rbp)
movl %eax, %edi
movq %r12, %rcx
movq %r12, -0x70(%rbp)
movb $0x1, %dl
movq %rcx, %rax
testb $0x1, %dl
je 0xca3b2
xorl %edx, %edx
movl $0x0, %ecx
testl %edi, %edi
je 0xca0d8
cmpl $0x1, %edi
jne 0xca47b
movq %rax, %rdi
callq 0xce01
movq %rax, %rbx
andq %r13, %rax
movq %rax, -0x30(%rbp)
setne %al
testb $0x3, %bl
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0xca123
movq -0x30(%rbp), %rax
incl (%rax)
movq -0x40(%rbp), %rdi
movq %rbx, %rsi
leaq -0x90(%rbp), %rdx
callq 0xa2ec1
testb %al, %al
je 0xca375
movq (%r15), %rsi
movl 0x18(%rsi), %ecx
movq %r15, %r12
cmpb $0x0, 0x28(%r15)
movl $0x0, %eax
movl %ecx, -0x40(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq -0x90(%rbp), %rdi
leaq -0x58(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0x8bc28
testb %r13b, %r13b
je 0xca179
movq -0x30(%rbp), %rax
incl (%rax)
movl 0x18(%rbx), %r14d
movq 0x20(%rbx), %r15
movq %r15, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0xca1a1
incl (%rax)
testb %r13b, %r13b
je 0xca1bd
movq -0x30(%rbp), %rax
decl (%rax)
jne 0xca1bd
movq %rbx, %rdi
leaq 0x3fed9(%rip), %rsi     # 0x10a091
callq 0xce94
movq -0x58(%rbp), %rdi
movl %r14d, %esi
movq %r15, %rdx
leaq -0xf0(%rbp), %rcx
callq 0x9c7be
movq -0xf0(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %rax, %rdx
leaq -0xe8(%rbp), %rcx
leaq -0xe0(%rbp), %r8
callq 0x8a8a9
movq 0x1046145(%rip), %rdx   # 0x1110340
testq %rdx, %rdx
jne 0xca219
leaq 0xbc00(%rip), %rdi      # 0xd5e07
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1046127(%rip)   # 0x1110340
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
movq %r12, %r15
jne 0xca23d
incl (%rax)
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
leaq -0xd8(%rbp), %rcx
leaq -0xd0(%rbp), %r8
callq 0x8a8a9
testb %r13b, %r13b
je 0xca269
movq -0x30(%rbp), %rax
incl (%rax)
movq 0x28(%rbx), %r14
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0xca28d
incl (%rax)
testb %r13b, %r13b
je 0xca2a9
movq -0x30(%rbp), %rax
decl (%rax)
jne 0xca2a9
movq %rbx, %rdi
leaq 0x3fded(%rip), %rsi     # 0x10a091
callq 0xce94
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movq %r14, %rdx
leaq -0xc8(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x8a8a9
movq 0x1046074(%rip), %rdx   # 0x1110348
testq %rdx, %rdx
jne 0xca2f2
leaq 0x23e2d(%rip), %rdi     # 0xee10d
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1046056(%rip)   # 0x1110348
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
leaq 0x3fd7b(%rip), %r14     # 0x10a091
jne 0xca31a
incl (%rax)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
leaq -0xb8(%rbp), %rcx
leaq -0xb0(%rbp), %r8
callq 0x8a8a9
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
callq 0x8a92c
movq -0xa0(%rbp), %rax
movl -0x40(%rbp), %ecx
movb %cl, 0x18(%rax)
movq %rax, (%r15)
movq -0xa8(%rbp), %rax
jmp 0xca37c
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
testb %r13b, %r13b
je 0xca398
movq -0x30(%rbp), %rax
decl (%rax)
jne 0xca398
movq %rbx, %rdi
movq %r14, %rsi
callq 0xce94
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rcx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x68(%rbp), %rsi
jmp 0xca0d6
movq %r15, %r14
andq %rax, %r13
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0xca3dd
decl (%r13)
jne 0xca3dd
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x3dea1(%rip), %rsi     # 0x108279
callq 0xce94
leaq -0x58(%rbp), %rbx
leaq -0x68(%rbp), %r15
leaq -0x90(%rbp), %r12
leaq -0x50(%rbp), %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0xab49f
movq (%rbx), %rax
movq %rax, -0x30(%rbp)
movb (%r13), %r14b
movl (%r15), %r13d
movq 0x8(%r15), %r15
movl (%r12), %ebx
movq 0x8(%r12), %r12
pushq $0x1
popq %rdi
pushq $0x40
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0xca492
movb %r14b, 0x38(%rax)
movl -0x44(%rbp), %ecx
movl %ecx, 0x28(%rax)
movq -0x70(%rbp), %rcx
movq %rcx, 0x30(%rax)
movl %ebx, 0x18(%rax)
movq %r12, 0x20(%rax)
movl %r13d, 0x8(%rax)
movq %r15, 0x10(%rax)
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x78(%rbp), %rcx
movq %rax, (%rcx)
movq -0x80(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa38b(%rip), %rdi      # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6
leaq 0x24547(%rip), %rsi     # 0xee9e0
pushq $0x2
popq %rdi
pushq $0x31
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130