// File: /workspace/github_c_makefile_star2_O3/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 $0x128, %rsp            # imm = 0x128
movq %r9, -0x90(%rbp)
movq %r8, %r14
movq %rcx, %r13
movq %rdx, -0x38(%rbp)
movq %rsi, %r15
movq %rdi, -0x30(%rbp)
movl 0x8(%rsi), %edi
movq 0x10(%rsi), %rsi
leaq -0x108(%rbp), %rbx
leaq -0x148(%rbp), %r12
movq %rbx, %rdx
movq %r12, %rcx
callq 0xb2c4b
movups (%r12), %xmm0
movq %r15, -0x40(%rbp)
movups %xmm0, 0x8(%r15)
movl (%rbx), %eax
testl %eax, %eax
je 0xb0612
cmpl $0x1, %eax
jne 0xb0b19
movq -0x100(%rbp), %rdi
movq (%rdi), %rbx
callq 0x5030
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r13, %rsi
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
movq %r14, %r15
jne 0xb0aeb
decl (%rax)
movq -0x40(%rbp), %r13
movq -0x30(%rbp), %r14
jne 0xb0af3
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x62921(%rip), %rsi     # 0x112f29
callq 0xd13d
jmp 0xb0af3
movq %r14, -0x50(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %r13, %r15
andq %rax, %r15
setne %al
testb $0x3, %r13b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
movq %r13, %r12
jne 0xb063d
incl (%r15)
leaq -0x80(%rbp), %rcx
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %r12, %rdx
callq 0xa717f
testb %al, %al
movq -0x40(%rbp), %r13
movq %r12, -0x58(%rbp)
je 0xb09a8
movq (%r13), %rsi
movq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %r14
leaq -0x70(%rbp), %r12
movq %r14, %rdx
movq %r12, %rcx
callq 0xb29aa
movq %rax, -0x30(%rbp)
movq (%r12), %rsi
movq %rsi, (%r13)
movl 0x18(%rsi), %ecx
xorl %eax, %eax
cmpb $0x0, 0x28(%r13)
movl %ecx, -0x44(%rbp)
cmovnel %ecx, %eax
movb %al, 0x18(%rsi)
movq (%r14), %rdi
leaq -0x68(%rbp), %rdx
leaq -0x60(%rbp), %rcx
callq 0x93675
testb %bl, %bl
je 0xb06b2
incl (%r15)
movq -0x68(%rbp), %rdi
leaq -0x138(%rbp), %r14
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %r12
movq %r12, %rdx
movq %r14, %rcx
callq 0xa59d1
movq (%r14), %rdi
movq -0x60(%rbp), %rsi
leaq -0xf8(%rbp), %rcx
leaq -0xf0(%rbp), %r8
movq %rax, %rdx
callq 0x9221b
movq 0x10675c4(%rip), %rdx   # 0x1117cb8
testq %rdx, %rdx
jne 0xb0719
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x20, 0x18(%rax)
movq %rax, 0x106759f(%rip)   # 0x1117cb8
movq %rdx, %rax
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb073a
incl (%rax)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
leaq -0xe8(%rbp), %rcx
leaq -0xe0(%rbp), %r8
callq 0x9221b
movq -0x30(%rbp), %rdx
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb0776
incl (%rax)
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
leaq -0xd8(%rbp), %rcx
leaq -0xd0(%rbp), %r8
callq 0x9221b
movq 0x1067522(%rip), %rdx   # 0x1117cc0
testq %rdx, %rdx
jne 0xb07c9
movl $0x3, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x3, 0x10(%rax)
movw $0x3d20, 0x18(%rax)     # imm = 0x3D20
movb $0x20, 0x1a(%rax)
movq %rax, 0x10674f7(%rip)   # 0x1117cc0
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb07e0
incl (%rax)
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
leaq -0xc8(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x9221b
testb %bl, %bl
je 0xb0808
incl (%r15)
movq -0xc8(%rbp), %rdi
leaq -0x130(%rbp), %r14
leaq -0xb8(%rbp), %r8
movq -0x38(%rbp), %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0xb11ca
movq (%r14), %rdi
movq -0xc0(%rbp), %rsi
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
movq %rax, %rdx
callq 0x9221b
movq 0x1067475(%rip), %rdx   # 0x1117cc8
testq %rdx, %rdx
jne 0xb0890
movl $0xe, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0xe, 0x10(%rax)
movabsq $0x6f7365725f706f70, %rax # imm = 0x6F7365725F706F70
movq %rax, 0x18(%rdx)
movabsq $0x2928656372756f73, %rax # imm = 0x2928656372756F73
movq %rax, 0x1e(%rdx)
movq %rdx, 0x1067438(%rip)   # 0x1117cc8
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
movq -0x50(%rbp), %r15
jne 0xb08b5
incl (%rax)
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
leaq -0x128(%rbp), %r14
leaq -0x120(%rbp), %r12
movq %r14, %rcx
movq %r12, %r8
callq 0x9221b
movq (%r14), %rdi
movq (%r12), %rsi
movq -0xb8(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x9221b
movq 0x10673cc(%rip), %rdx   # 0x1117cd0
testq %rdx, %rdx
jne 0xb0929
movl $0x1, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x10673a7(%rip)   # 0x1117cd0
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rsi
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xb0945
incl (%rsi)
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0x118(%rbp), %r14
leaq -0x110(%rbp), %r12
movq %r14, %rcx
movq %r12, %r8
callq 0x9221b
movq (%r14), %r14
movq (%r12), %rbx
cmpb $0x1, 0x18(%rbx)
jne 0xb0999
movq 0x28(%rbx), %rsi
leaq -0x88(%rbp), %r12
movl $0xa, %edi
movq %r12, %rdx
callq 0x92a13
movq (%r12), %rax
movq %rax, 0x28(%rbx)
movl -0x44(%rbp), %eax
movb %al, 0x18(%rbx)
movq %rbx, (%r13)
jmp 0xb0aca
movq 0x1067329(%rip), %rax   # 0x1117cd8
testq %rax, %rax
jne 0xb09d1
movl $0x1, %edi
callq 0xf5e4
movq $0x1, 0x10(%rax)
movb $0x30, 0x18(%rax)
movq %rax, 0x1067307(%rip)   # 0x1117cd8
movq %rax, %rsi
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %rsi
sete %cl
movq %rax, -0x30(%rbp)
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0xb09f3
incl (%rsi)
movq (%r13), %rsi
movl 0x18(%rsi), %ebx
xorl %eax, %eax
cmpb $0x0, 0x28(%r13)
cmovnel %ebx, %eax
movb %al, 0x18(%rsi)
movq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %rdx
leaq -0x70(%rbp), %rcx
callq 0x93675
movq 0x10672c1(%rip), %rdx   # 0x1117ce0
testq %rdx, %rdx
jne 0xb0a5c
movl $0xf, %edi
callq 0xf5e4
movq %rax, %rdx
movq $0xf, 0x10(%rax)
movabsq $0x6f7365725f706f70, %rax # imm = 0x6F7365725F706F70
movq %rax, 0x18(%rdx)
movabsq $0x3b2928656372756f, %rax # imm = 0x3B2928656372756F
movq %rax, 0x1f(%rdx)
movq %rdx, 0x1067284(%rip)   # 0x1117ce0
andq %rdx, %r14
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xb0a6f
incl (%r14)
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq -0x68(%rbp), %r14
leaq -0x60(%rbp), %r12
movq %r14, %rcx
movq %r12, %r8
callq 0x9221b
movq (%r14), %r14
movq (%r12), %r13
cmpb $0x1, 0x18(%r13)
jne 0xb0ab8
movq 0x28(%r13), %rsi
leaq -0x88(%rbp), %r12
movl $0xa, %edi
movq %r12, %rdx
callq 0x92a13
movq (%r12), %rax
movq %rax, 0x28(%r13)
movb %bl, 0x18(%r13)
movq -0x40(%rbp), %rax
movq %r13, (%rax)
movq %rax, %r13
movq -0x50(%rbp), %r15
leaq -0x88(%rbp), %r12
movq -0x38(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq %r12, %rcx
callq 0xae736
movq (%r12), %rbx
jmp 0xb0af3
movq -0x40(%rbp), %r13
movq -0x30(%rbp), %r14
movq 0x10(%rbp), %rax
movq %rbx, (%rax)
movq -0x90(%rbp), %rax
movq %r13, (%rax)
movq %r14, (%r15)
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x2fb9b(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x2fba0(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302