// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_popzeresourcezelabelzx
static void mw_mirth_c99_zaC99Branch_popzeresourcezelabelzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_C99ReprType in_C99ReprType_3, uint64_t in_Label_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct mirth_c99_zaC99Branch* *out_zaC99Branch_6, struct mirth_c99_zaC99Resource* *out_zaC99Resource_7) {
	struct mirth_c99_zaC99Stack r8 = in_zaC99Branch_2->mzastack;
	struct mirth_mirth_zaMirth* v9;
	struct mirth_c99_zaC99Stack v10;
	struct std_maybe_zaMaybe_1 v11;
	uint64_t v12 = mw_mirth_c99_zaC99Stack_popzeresourcezelabelzy(in_zaMirth_1, r8, in_Label_4, &v9, &v10, &v11);
	in_zaC99Branch_2->mzastack = v10;
	struct mirth_mirth_zaMirth* branch_zaMirth_13;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_14;
	struct mirth_c99_zaC99Resource* branch_zaC99Resource_15;
	switch ((v11).tag) {
		case std_maybe_zaMaybe_1_zaSome: {
			VAL v16;
			mtp_std_maybe_zaMaybe_1_zaSome(v11, &v16);
			decref(MK_mirth_c99_C99ReprType(in_C99ReprType_3));
			branch_zaC99Resource_15 = V_mirth_c99_zaC99Resource(v16);
			branch_zaC99Branch_14 = in_zaC99Branch_2;
			branch_zaMirth_13 = v9;
		} break;
		case std_maybe_zaMaybe_1_zaNone: {
			struct mirth_mirth_zaMirth* v17;
			struct mirth_c99_zaC99Branch* v18;
			struct mirth_c99_zaC99Resource* v19;
			mw_mirth_c99_popzeresourcezelabelzedirectzx(v9, in_zaC99Branch_2, in_C99ReprType_3, v12, &v17, &v18, &v19);
			branch_zaC99Resource_15 = v19;
			branch_zaC99Branch_14 = v18;
			branch_zaMirth_13 = v17;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Resource_7 = branch_zaC99Resource_15;
	*out_zaC99Branch_6 = branch_zaC99Branch_14;
	*out_zaMirth_5 = branch_zaMirth_13;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %r9, %r15
movq %r8, %rax
movq %rcx, %r12
movq %rdx, -0x30(%rbp)
movq %rsi, %r14
movl 0x8(%rsi), %esi
movq 0x10(%r14), %rdx
subq $0x8, %rsp
leaq -0xf0(%rbp), %rbx
leaq -0x58(%rbp), %r8
leaq -0x120(%rbp), %r13
movq %rax, %rcx
movq %r13, %r9
pushq %rbx
callq 0xb5511
addq $0x10, %rsp
movups (%r13), %xmm0
movups %xmm0, 0x8(%r14)
movl (%rbx), %ecx
testl %ecx, %ecx
je 0xb29e2
cmpl $0x1, %ecx
jne 0xb2d6d
movq -0xe8(%rbp), %rdi
movq (%rdi), %rbx
callq 0x5030
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r12, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xb29d9
decl (%rax)
jne 0xb29d9
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x64555(%rip), %rsi     # 0x116f29
callq 0xd4e3
movq -0x58(%rbp), %r13
jmp 0xb2d4a
movq %rax, -0x50(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq -0x58(%rbp), %rdi
movq %r12, %rcx
andq %rbx, %rcx
setne %al
testb $0x3, %r12b
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0xb2a10
incl (%rcx)
movq %rcx, -0x48(%rbp)
leaq -0x60(%rbp), %rcx
movq -0x30(%rbp), %rsi
movq %r12, %rdx
callq 0xa9de0
testb %al, %al
movq %r15, -0x70(%rbp)
je 0xb2cba
movq (%r14), %rsi
movq -0x60(%rbp), %rdi
leaq -0xe0(%rbp), %rbx
leaq -0xd8(%rbp), %r15
movq %rbx, %rdx
movq %r15, %rcx
callq 0xb5814
movq %rax, -0x38(%rbp)
movq (%r15), %rsi
movq %rsi, (%r14)
movl 0x18(%rsi), %ecx
xorl %eax, %eax
cmpb $0x0, 0x28(%r14)
movl %ecx, -0x3c(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq (%rbx), %rdi
leaq -0xd0(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x95d84
testb %r13b, %r13b
je 0xb2a8e
movq -0x48(%rbp), %rax
incl (%rax)
movq -0xd0(%rbp), %rdi
leaq -0x110(%rbp), %rbx
movq -0x30(%rbp), %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0xa85ed
movq (%rbx), %rdi
movq -0xc8(%rbp), %rsi
leaq -0xc0(%rbp), %rcx
leaq -0xb8(%rbp), %r8
movq %rax, %rdx
callq 0x94972
cmpq $0x0, 0x106918d(%rip)   # 0x111bc60
jne 0xb2af2
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x20, 0x18(%rax)
movq %rax, 0x106916e(%rip)   # 0x111bc60
movq 0x1069167(%rip), %rdx   # 0x111bc60
movq %rdx, %rax
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb2b1a
incl (%rax)
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x94972
movq -0x38(%rbp), %rdx
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0xb2b54
incl (%rax)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
movq -0x38(%rbp), %rdx
callq 0x94972
cmpq $0x0, 0x10690e7(%rip)   # 0x111bc68
jne 0xb2ba6
movl $0x3, %edi
callq 0xf9f7
movq $0x3, 0x10(%rax)
movw $0x3d20, 0x18(%rax)     # imm = 0x3D20
movb $0x20, 0x1a(%rax)
movq %rax, 0x10690c2(%rip)   # 0x111bc68
movq 0x10690bb(%rip), %rdx   # 0x111bc68
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb2bc4
incl (%rax)
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0x90(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0x94972
testb %r13b, %r13b
je 0xb2bf0
movq -0x48(%rbp), %rax
incl (%rax)
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %r8
leaq -0x78(%rbp), %rax
leaq -0x80(%rbp), %r10
leaq -0x108(%rbp), %r9
movq -0x50(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %r12, %rdx
pushq %rax
pushq %r10
callq 0xb3cb9
addq $0x10, %rsp
cmpq $0x0, 0x1069044(%rip)   # 0x111bc70
jne 0xb2c4b
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x1069025(%rip)   # 0x111bc70
movq 0x106901e(%rip), %rdx   # 0x111bc70
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xb2c64
incl (%rbx)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
leaq -0x100(%rbp), %rbx
leaq -0xf8(%rbp), %r15
movq %rbx, %rcx
movq %r15, %r8
callq 0x94972
movq (%rbx), %r13
movq (%r15), %r15
cmpb $0x1, 0x18(%r15)
jne 0xb2cae
movq 0x28(%r15), %rsi
leaq -0x68(%rbp), %rbx
movl $0xa, %edi
movq %rbx, %rdx
callq 0x95160
movq (%rbx), %rax
movq %rax, 0x28(%r15)
movl -0x3c(%rbp), %eax
movb %al, 0x18(%r15)
movq %r15, (%r14)
jmp 0xb2d2c
cmpq $0x0, 0x1068fb6(%rip)   # 0x111bc78
jne 0xb2ce1
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x30, 0x18(%rax)
movq %rax, 0x1068f97(%rip)   # 0x111bc78
movq 0x1068f90(%rip), %rcx   # 0x111bc78
andq %rcx, %rbx
sete %al
movq %rcx, -0x38(%rbp)
testb $0x3, %cl
setne %cl
orb %al, %cl
jne 0xb2cfe
incl (%rbx)
movq -0x60(%rbp), %rsi
leaq -0x68(%rbp), %rcx
leaq -0xe0(%rbp), %rbx
leaq -0xd8(%rbp), %r15
movq -0x50(%rbp), %rdi
movq %r14, %rdx
movq %rbx, %r8
movq %r15, %r9
callq 0xb3e6a
movq (%r15), %r14
movq (%rbx), %r13
leaq -0x68(%rbp), %rbx
movq -0x30(%rbp), %rdi
movq %r12, %rsi
movq -0x38(%rbp), %rdx
movq %rbx, %rcx
callq 0xb1525
movq (%rbx), %rbx
movq -0x70(%rbp), %r15
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rcx
movq %rbx, (%rax)
movq %r14, (%rcx)
movq %r13, (%r15)
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x319c7(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x319cc(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5