// File: /workspace/github_c_makefile_star2_O3/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 0xab392
addq $0x10, %rsp
movl %eax, -0x30(%rbp)
movq (%rbx), %rax
movq %rax, (%r14)
movq %rdx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xd5aac
incl (%rax)
movq -0x70(%rbp), %r13
movq %rdx, -0x50(%rbp)
movq %rdx, %rdi
movl -0x30(%rbp), %eax
movq %r14, -0x68(%rbp)
cmpl $0x1, %eax
jne 0xd5d7f
leaq -0xe0(%rbp), %rsi
callq 0xd0aa
movq %rax, %rbx
movq %rax, %r12
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r12
setne %al
testb $0x3, %bl
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0xd5afd
incl (%r12)
movq %r13, %rdi
movq %rbx, %rsi
leaq -0x48(%rbp), %rdx
callq 0xacba1
testb %al, %al
je 0xd5d4f
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 0x93675
testb %r15b, %r15b
je 0xd5b4d
incl (%r12)
movl 0x18(%rbx), %r13d
movq 0x20(%rbx), %r14
movq %r14, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0xd5b75
incl (%rax)
testb %r15b, %r15b
je 0xd5b8f
decl (%r12)
jne 0xd5b8f
movq %rbx, %rdi
leaq 0x3d507(%rip), %rsi     # 0x113091
callq 0xd13d
movq -0xc8(%rbp), %rdi
movl %r13d, %esi
movq %r14, %rdx
leaq -0xb8(%rbp), %rcx
callq 0xa59d1
movq -0xb8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
movq %rax, %rdx
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x9221b
movq 0x1043765(%rip), %rdx   # 0x1119338
testq %rdx, %rdx
jne 0xd5bf8
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x20, 0x18(%rax)
movq %rax, 0x1043740(%rip)   # 0x1119338
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xd5c19
incl (%rax)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x9221b
testb %r15b, %r15b
je 0xd5c43
incl (%r12)
movq 0x28(%rbx), %r13
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xd5c67
incl (%rax)
testb %r15b, %r15b
je 0xd5c81
decl (%r12)
jne 0xd5c81
movq %rbx, %rdi
leaq 0x3d415(%rip), %rsi     # 0x113091
callq 0xd13d
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq %r13, %rdx
leaq -0x90(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0x9221b
movq 0x1043694(%rip), %rdx   # 0x1119340
testq %rdx, %rdx
jne 0xd5cd1
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x104366f(%rip)   # 0x1119340
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xd5cf2
incl (%rax)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0x80(%rbp), %rcx
leaq -0x78(%rbp), %r8
callq 0x9221b
movq -0x80(%rbp), %r13
movq -0x78(%rbp), %r14
cmpb $0x1, 0x18(%r14)
jne 0xd5d3c
movq 0x28(%r14), %rsi
movl $0xa, %edi
leaq -0xd0(%rbp), %rdx
callq 0x92a13
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 0xd5d53
movq -0x48(%rbp), %r13
testb %r15b, %r15b
je 0xd5d6d
decl (%r12)
jne 0xd5d6d
movq %rbx, %rdi
leaq 0x3d329(%rip), %rsi     # 0x113091
callq 0xd13d
movl -0xe0(%rbp), %eax
movq -0xd8(%rbp), %rdi
jmp 0xd5abe
testl %eax, %eax
jne 0xd5e10
movq (%r14), %rax
movq %rax, -0x38(%rbp)
movl 0x8(%r14), %eax
movl %eax, -0x3c(%rbp)
movq 0x10(%r14), %r15
movl 0x18(%r14), %r12d
movq 0x20(%r14), %rbx
movq %r14, %rdi
movb 0x28(%r14), %r14b
callq 0x5030
movl $0x1, %edi
movl $0x40, %esi
callq 0x50c0
testq %rax, %rax
je 0xd5e40
andb $0x1, %r14b
movb %r14b, 0x38(%rax)
movl -0x30(%rbp), %ecx
movl %ecx, 0x28(%rax)
movq -0x50(%rbp), %rcx
movq %rcx, 0x30(%rax)
movl %r12d, 0x18(%rax)
movq %rbx, 0x20(%rax)
movl -0x3c(%rbp), %ecx
movl %ecx, 0x8(%rax)
movq %r15, 0x10(%rax)
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rcx
movq %rax, (%rcx)
movq -0x60(%rbp), %rax
movq %r13, (%rax)
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xa8a4(%rip), %xmm0     # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xa8a9(%rip), %xmm0     # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
leaq 0x2470c(%rip), %rsi     # 0xfa553
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130