// File: /workspace/github_c_makefile_star2_O2/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 $0x108, %rsp            # imm = 0x108
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 -0x130(%rbp), %r13
movq %rax, %rcx
movq %r13, %r9
pushq %rbx
callq 0xa84f9
addq $0x10, %rsp
movups (%r13), %xmm0
movups %xmm0, 0x8(%r14)
movl (%rbx), %ecx
testl %ecx, %ecx
movq %r15, -0x80(%rbp)
je 0xa5fff
cmpl $0x1, %ecx
jne 0xa634c
movq -0xe8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x7270b
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r12, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0xa5ff2
decl (%rax)
jne 0xa5ff2
movq -0x30(%rbp), %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x63f3c(%rip), %rsi     # 0x109f29
callq 0xce94
movq -0x78(%rbp), %rax
movq -0x58(%rbp), %r15
jmp 0xa6325
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 0xa602d
incl (%rcx)
movq %rcx, -0x48(%rbp)
leaq -0x78(%rbp), %rcx
movq -0x30(%rbp), %rsi
movq %r12, %rdx
callq 0x9e05c
testb %al, %al
je 0xa62a9
movq (%r14), %rsi
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rbx
leaq -0xe0(%rbp), %r15
movq %rbx, %rdx
movq %r15, %rcx
callq 0xa878e
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 -0x60(%rbp), %rdx
leaq -0xd8(%rbp), %rcx
callq 0x8bc28
testb %r13b, %r13b
je 0xa60a1
movq -0x48(%rbp), %rax
incl (%rax)
movq -0x60(%rbp), %rdi
leaq -0x120(%rbp), %rbx
movq -0x30(%rbp), %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x9c7be
movq (%rbx), %rdi
movq -0xd8(%rbp), %rsi
leaq -0xd0(%rbp), %rcx
leaq -0xc8(%rbp), %r8
movq %rax, %rdx
callq 0x8a8a9
movq 0x1068b86(%rip), %rdx   # 0x110ec68
testq %rdx, %rdx
jne 0xa6100
leaq 0x2fd19(%rip), %rdi     # 0xd5e07
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1068b68(%rip)   # 0x110ec68
movq %rdx, %rax
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xa6121
incl (%rax)
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
leaq -0xc0(%rbp), %rcx
leaq -0xb8(%rbp), %r8
callq 0x8a8a9
movq -0x38(%rbp), %rdx
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xa615d
incl (%rax)
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x8a8a9
movq 0x1068aeb(%rip), %rdx   # 0x110ec70
testq %rdx, %rdx
jne 0xa61a3
leaq 0x3654b(%rip), %rdi     # 0xdc6dc
pushq $0x3
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1068acd(%rip)   # 0x110ec70
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xa61ba
incl (%rax)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x8a8a9
testb %r13b, %r13b
je 0xa61e6
movq -0x48(%rbp), %rax
incl (%rax)
movq -0xa0(%rbp), %rcx
movq -0x98(%rbp), %r8
leaq -0x88(%rbp), %rax
leaq -0x90(%rbp), %r10
leaq -0x118(%rbp), %r9
movq -0x50(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq %r12, %rdx
pushq %rax
pushq %r10
callq 0xa7189
popq %rax
popq %rcx
movq 0x1068a53(%rip), %rdx   # 0x110ec78
testq %rdx, %rdx
jne 0xa6243
leaq 0x47edc(%rip), %rdi     # 0xee10d
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1068a35(%rip)   # 0x110ec78
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xa6255
incl (%rbx)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0x110(%rbp), %rbx
leaq -0x108(%rbp), %r15
movq %rbx, %rcx
movq %r15, %r8
callq 0x8a8a9
movq (%rbx), %rdi
movq (%r15), %rsi
leaq -0x100(%rbp), %rbx
leaq -0xf8(%rbp), %r15
movq %rbx, %rdx
movq %r15, %rcx
callq 0x8a92c
movq (%r15), %rax
movl -0x3c(%rbp), %ecx
movb %cl, 0x18(%rax)
movq %rax, (%r14)
jmp 0xa6308
movq 0x10689d0(%rip), %rax   # 0x110ec80
testq %rax, %rax
jne 0xa62cb
leaq 0x482b9(%rip), %rdi     # 0xee575
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, 0x10689b5(%rip)   # 0x110ec80
andq %rax, %rbx
sete %dl
movq %rax, -0x38(%rbp)
testb $0x3, %al
setne %cl
orb %dl, %cl
jne 0xa62e0
incl (%rbx)
movq -0x78(%rbp), %rsi
leaq -0x68(%rbp), %rcx
leaq -0xe0(%rbp), %rbx
leaq -0x60(%rbp), %r15
movq -0x50(%rbp), %rdi
movq %r14, %rdx
movq %rbx, %r8
movq %r15, %r9
callq 0xa7313
movq (%r15), %r14
movq (%rbx), %r15
leaq -0x68(%rbp), %rbx
movq -0x30(%rbp), %rdi
movq %r12, %rsi
movq -0x38(%rbp), %rdx
movq %rbx, %rcx
callq 0xa4c8e
movq (%rbx), %rax
movq 0x18(%rbp), %rcx
movq 0x10(%rbp), %rdx
movq %rax, (%rcx)
movq %r14, (%rdx)
movq -0x80(%rbp), %rax
movq %r15, (%rax)
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2e4ba(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6