// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_popzeresourcezx
static void mw_mirth_c99_zaC99Branch_popzeresourcezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_C99ReprType in_C99ReprType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5, struct mirth_c99_zaC99Resource* *out_zaC99Resource_6) {
	struct mirth_c99_zaC99Stack r7 = in_zaC99Branch_2->mzastack;
	struct std_maybe_zaMaybe_1 v8;
	struct mirth_c99_zaC99Stack v9;
	mw_mirth_c99_zaC99Stack_popzeresourcezy(r7, &v8, &v9);
	in_zaC99Branch_2->mzastack = v9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_11;
	struct mirth_c99_zaC99Resource* branch_zaC99Resource_12;
	switch ((v8).tag) {
		case std_maybe_zaMaybe_1_zaSome: {
			VAL v13;
			mtp_std_maybe_zaMaybe_1_zaSome(v8, &v13);
			decref(MK_mirth_c99_C99ReprType(in_C99ReprType_3));
			branch_zaC99Resource_12 = V_mirth_c99_zaC99Resource(v13);
			branch_zaC99Branch_11 = in_zaC99Branch_2;
			branch_zaMirth_10 = in_zaMirth_1;
		} break;
		case std_maybe_zaMaybe_1_zaNone: {
			struct mirth_mirth_zaMirth* v14;
			struct mirth_c99_zaC99Branch* v15;
			struct mirth_c99_zaC99Resource* v16;
			mw_mirth_c99_zaC99Branch_popzeresourcezedirectzx(in_zaMirth_1, in_zaC99Branch_2, in_C99ReprType_3, &v14, &v15, &v16);
			branch_zaC99Resource_12 = v16;
			branch_zaC99Branch_11 = v15;
			branch_zaMirth_10 = v14;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Resource_6 = branch_zaC99Resource_12;
	*out_zaC99Branch_5 = branch_zaC99Branch_11;
	*out_zaMirth_4 = branch_zaMirth_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %r9, -0x98(%rbp)
movq %r8, %r14
movq %rcx, %r12
movq %rdx, -0x38(%rbp)
movq %rsi, %r13
movq %rdi, -0x30(%rbp)
movl 0x8(%rsi), %edi
movq 0x10(%rsi), %rsi
leaq -0x110(%rbp), %rbx
leaq -0x158(%rbp), %r15
movq %rbx, %rdx
movq %r15, %rcx
callq 0xa89f9
movups (%r15), %xmm0
movq %r13, %r15
movups %xmm0, 0x8(%r13)
movl (%rbx), %eax
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
testl %eax, %eax
je 0xa6985
cmpl $0x1, %eax
jne 0xa6de0
movq -0x108(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x7270b
andq %r12, %rbx
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
movq %r14, %r13
jne 0xa6975
decl (%rbx)
jne 0xa6975
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0x635b9(%rip), %rsi     # 0x109f29
callq 0xce94
movq -0x90(%rbp), %rax
movq -0x30(%rbp), %rbx
jmp 0xa6db9
movq %r14, -0x58(%rbp)
movq %r12, %r14
andq %rbx, %r14
setne %al
testb $0x3, %r12b
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0xa69a6
incl (%r14)
leaq -0x90(%rbp), %rcx
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %r12, %rdx
callq 0x9e05c
testb %al, %al
movq %r12, -0x60(%rbp)
je 0xa6cb9
movq %r14, -0x50(%rbp)
movq (%r15), %rsi
movq -0x90(%rbp), %rdi
leaq -0x40(%rbp), %r14
leaq -0x80(%rbp), %r12
movq %r14, %rdx
movq %r12, %rcx
callq 0xa878e
movq %rax, -0x30(%rbp)
movq (%r12), %rsi
movq %rsi, (%r15)
movl 0x18(%rsi), %ecx
xorl %eax, %eax
cmpb $0x0, 0x28(%r15)
movl %ecx, -0x44(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq (%r14), %rdi
leaq -0x78(%rbp), %rdx
leaq -0x70(%rbp), %rcx
callq 0x8bc28
testb %r13b, %r13b
je 0xa6a23
movq -0x50(%rbp), %rax
incl (%rax)
movq -0x78(%rbp), %rdi
leaq -0x100(%rbp), %r14
movq -0x38(%rbp), %rsi
movq -0x60(%rbp), %r12
movq %r12, %rdx
movq %r14, %rcx
callq 0x9c7be
movq (%r14), %rdi
movq -0x70(%rbp), %rsi
leaq -0x68(%rbp), %rcx
leaq -0xf8(%rbp), %r8
movq %rax, %rdx
callq 0x8a8a9
movq 0x106825e(%rip), %rdx   # 0x110ecc0
testq %rdx, %rdx
jne 0xa6a80
leaq 0x2f399(%rip), %rdi     # 0xd5e07
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1068240(%rip)   # 0x110ecc0
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xa6a97
incl (%rax)
movq -0x68(%rbp), %rdi
movq -0xf8(%rbp), %rsi
leaq -0xf0(%rbp), %rcx
leaq -0xe8(%rbp), %r8
callq 0x8a8a9
movq -0x30(%rbp), %rdx
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
movq -0x50(%rbp), %r14
jne 0xa6ad4
incl (%rax)
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
leaq -0xe0(%rbp), %rcx
leaq -0xd8(%rbp), %r8
callq 0x8a8a9
movq 0x10681cc(%rip), %rdx   # 0x110ecc8
testq %rdx, %rdx
jne 0xa6b1a
leaq 0x35bd4(%rip), %rdi     # 0xdc6dc
pushq $0x3
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x10681ae(%rip)   # 0x110ecc8
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xa6b31
incl (%rax)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
leaq -0xd0(%rbp), %rcx
leaq -0xc8(%rbp), %r8
callq 0x8a8a9
testb %r13b, %r13b
je 0xa6b5a
incl (%r14)
movq -0xd0(%rbp), %rdi
leaq -0x148(%rbp), %r14
leaq -0xc0(%rbp), %r8
movq -0x38(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0xa74b2
movq (%r14), %rdi
movq -0xc8(%rbp), %rsi
leaq -0xb8(%rbp), %rcx
leaq -0xb0(%rbp), %r8
movq %rax, %rdx
callq 0x8a8a9
movq 0x106812b(%rip), %rdx   # 0x110ecd0
testq %rdx, %rdx
movq -0x58(%rbp), %r13
jne 0xa6bc7
leaq 0x4753b(%rip), %rdi     # 0xee0f0
pushq $0xe
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1068109(%rip)   # 0x110ecd0
movq %rdx, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xa6bde
incl (%rax)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
leaq -0x140(%rbp), %r14
leaq -0x138(%rbp), %r12
movq %r14, %rcx
movq %r12, %r8
callq 0x8a8a9
movq (%r14), %rdi
movq (%r12), %rsi
movq -0xc0(%rbp), %rdx
leaq -0xa8(%rbp), %rcx
leaq -0xa0(%rbp), %r8
callq 0x8a8a9
movq 0x10680ab(%rip), %rdx   # 0x110ecd8
testq %rdx, %rdx
jne 0xa6c4b
leaq 0x474d4(%rip), %rdi     # 0xee10d
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x106808d(%rip)   # 0x110ecd8
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xa6c5d
incl (%rbx)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
leaq -0x130(%rbp), %r14
leaq -0x128(%rbp), %r12
movq %r14, %rcx
movq %r12, %r8
callq 0x8a8a9
movq (%r14), %rdi
movq (%r12), %rsi
leaq -0x120(%rbp), %r14
leaq -0x118(%rbp), %r12
movq %r14, %rdx
movq %r12, %rcx
callq 0x8a92c
movq (%r12), %rax
movl -0x44(%rbp), %ecx
movb %cl, 0x18(%rax)
movq %rax, (%r15)
movq (%r14), %rbx
jmp 0xa6d9d
movq 0x1068020(%rip), %rax   # 0x110ece0
testq %rax, %rax
jne 0xa6cdb
leaq 0x478a9(%rip), %rdi     # 0xee575
pushq $0x1
popq %rsi
callq 0x8a21
movq %rax, 0x1068005(%rip)   # 0x110ece0
movq %rax, %rsi
andq %rbx, %rsi
sete %cl
movq %rax, -0x30(%rbp)
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0xa6cf3
incl (%rsi)
movq (%r15), %rsi
movl 0x18(%rsi), %r13d
xorl %eax, %eax
cmpb $0x0, 0x28(%r15)
cmovnel %r13d, %eax
movb %al, 0x18(%rsi)
movq -0x90(%rbp), %rdi
leaq -0x40(%rbp), %rdx
leaq -0x80(%rbp), %rcx
callq 0x8bc28
movq 0x1067fc5(%rip), %rdx   # 0x110ece8
testq %rdx, %rdx
jne 0xa6d41
leaq 0x473d0(%rip), %rdi     # 0xee0ff
pushq $0xf
popq %rsi
callq 0x8a21
movq %rax, %rdx
movq %rax, 0x1067fa7(%rip)   # 0x110ece8
andq %rdx, %rbx
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xa6d53
incl (%rbx)
movq -0x40(%rbp), %rdi
movq -0x80(%rbp), %rsi
leaq -0x78(%rbp), %r14
leaq -0x70(%rbp), %r12
movq %r14, %rcx
movq %r12, %r8
callq 0x8a8a9
movq (%r14), %rdi
movq (%r12), %rsi
leaq -0x100(%rbp), %r14
leaq -0x68(%rbp), %r12
movq %r14, %rdx
movq %r12, %rcx
callq 0x8a92c
movq (%r12), %rax
movb %r13b, 0x18(%rax)
movq %rax, (%r15)
movq (%r14), %rbx
movq -0x58(%rbp), %r13
leaq -0x40(%rbp), %r12
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq %r12, %rcx
callq 0xa4c8e
movq (%r12), %rax
movq 0x10(%rbp), %rcx
movq %rax, (%rcx)
movq -0x98(%rbp), %rax
movq %r15, (%rax)
movq %rbx, (%r13)
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2da26(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6