// File: /workspace/github_c_makefile_star2_O1/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 $0xc8, %rsp
movq %r9, -0x58(%rbp)
movq %r8, -0x60(%rbp)
movq %rcx, %r14
movq %rdx, %rcx
movl %esi, %edx
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq (%r14), %rsi
leaq -0x29(%rbp), %rax
leaq -0xe8(%rbp), %rbx
leaq -0x70(%rbp), %r9
movl $0x3, %r8d
pushq %rax
pushq %rbx
callq 0xae028
addq $0x10, %rsp
movq (%rbx), %rcx
movq %rcx, (%r14)
movq %rdx, %rsi
andq %r15, %rsi
sete %cl
testb $0x3, %dl
setne %dil
orb %cl, %dil
jne 0xda0a4
incl (%rsi)
movq -0x70(%rbp), %rbx
movq %rdx, -0x50(%rbp)
movq %rdx, %rsi
movl %eax, -0x40(%rbp)
movl %eax, %edi
movq %r14, -0x68(%rbp)
testl %edi, %edi
je 0xda33e
cmpl $0x1, %edi
jne 0xda43b
movq %rsi, %rdi
leaq -0xe0(%rbp), %rsi
callq 0xd450
movq %rax, %r13
movq %rax, %r15
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r15
setne %al
testb $0x3, %r13b
sete %r12b
andb %al, %r12b
cmpb $0x1, %r12b
jne 0xda102
incl (%r15)
movq %rbx, %rdi
movq %r13, %rsi
leaq -0x48(%rbp), %rdx
callq 0xaf87a
testb %al, %al
je 0xda344
movq (%r14), %rsi
movl 0x18(%rsi), %ecx
cmpb $0x0, 0x28(%r14)
movl $0x0, %eax
movl %ecx, -0x38(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq -0x48(%rbp), %rdi
leaq -0xc8(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
callq 0x95d84
testb %r12b, %r12b
je 0xda151
incl (%r15)
movl 0x18(%r13), %ebx
movq 0x20(%r13), %r14
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0xda179
incl (%rax)
testb %r12b, %r12b
je 0xda192
decl (%r15)
jne 0xda192
movq %r13, %rdi
leaq 0x3cf04(%rip), %rsi     # 0x117091
callq 0xd4e3
movq -0xc8(%rbp), %rdi
movl %ebx, %esi
movq %r14, %rdx
leaq -0xb8(%rbp), %rcx
callq 0xa85ed
movq -0xb8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq %rax, %rdx
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x94972
cmpq $0x0, 0x1043162(%rip)   # 0x111d338
jne 0xda1f5
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x20, 0x18(%rax)
movq %rax, 0x1043143(%rip)   # 0x111d338
movq 0x104313c(%rip), %rdx   # 0x111d338
movq %rdx, %rax
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xda21d
incl (%rax)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x94972
testb %r12b, %r12b
je 0xda246
incl (%r15)
movq 0x28(%r13), %rbx
movq %rbx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xda25f
incl (%rax)
testb %r12b, %r12b
je 0xda278
decl (%r15)
jne 0xda278
movq %r13, %rdi
leaq 0x3ce1e(%rip), %rsi     # 0x117091
callq 0xd4e3
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq %rbx, %rdx
leaq -0x90(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0x94972
cmpq $0x0, 0x104309c(%rip)   # 0x111d340
jne 0xda2c3
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x104307d(%rip)   # 0x111d340
movq 0x1043076(%rip), %rdx   # 0x111d340
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xda2e1
incl (%rax)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0x80(%rbp), %rcx
leaq -0x78(%rbp), %r8
callq 0x94972
movq -0x80(%rbp), %rbx
movq -0x78(%rbp), %r14
cmpb $0x1, 0x18(%r14)
jne 0xda32b
movq 0x28(%r14), %rsi
movl $0xa, %edi
leaq -0xd0(%rbp), %rdx
callq 0x95160
movq -0xd0(%rbp), %rax
movq %rax, 0x28(%r14)
movl -0x38(%rbp), %eax
movb %al, 0x18(%r14)
movq -0x68(%rbp), %rax
movq %r14, (%rax)
movq %rax, %r14
jmp 0xda348
xorl %ecx, %ecx
xorl %esi, %esi
jmp 0xda370
movq -0x48(%rbp), %rbx
testb %r12b, %r12b
je 0xda361
decl (%r15)
jne 0xda361
movq %r13, %rdi
leaq 0x3cd35(%rip), %rsi     # 0x117091
callq 0xd4e3
movl -0xe0(%rbp), %edi
movq -0xd8(%rbp), %rsi
movb $0x1, %cl
testb %cl, %cl
jne 0xda0b8
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rsi, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xda3aa
decl (%rax)
jne 0xda3aa
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x3aed4(%rip), %rsi     # 0x115279
callq 0xd4e3
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movl 0x8(%r14), %eax
movl %eax, -0x3c(%rbp)
movq 0x10(%r14), %r12
movl 0x18(%r14), %r13d
movq %r14, %rdi
movq 0x20(%r14), %r14
movb 0x28(%rdi), %r15b
callq 0x5030
movl $0x1, %edi
movl $0x40, %esi
callq 0x50c0
testq %rax, %rax
je 0xda46b
andb $0x1, %r15b
movb $0x0, 0x39(%rax)
movb %r15b, 0x38(%rax)
movl -0x40(%rbp), %ecx
movl %ecx, 0x28(%rax)
movq -0x50(%rbp), %rcx
movq %rcx, 0x30(%rax)
movl %r13d, 0x18(%rax)
movq %r14, 0x20(%rax)
movl -0x3c(%rbp), %ecx
movl %ecx, 0x8(%rax)
movq %r12, 0x10(%rax)
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq %rax, (%rcx)
movq -0x60(%rbp), %rax
movq %rbx, (%rax)
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xa2f9(%rip), %xmm0     # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xa2fe(%rip), %xmm0     # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
leaq 0x24212(%rip), %rsi     # 0xfe684
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130