// File: /workspace/github_c_makefile_star2_O1/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 0xb5ab7
movups (%r12), %xmm0
movq %r15, -0x40(%rbp)
movups %xmm0, 0x8(%r15)
movl (%rbx), %eax
testl %eax, %eax
je 0xb346a
cmpl $0x1, %eax
jne 0xb3983
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 0xb3955
decl (%rax)
movq -0x40(%rbp), %r13
movq -0x30(%rbp), %r14
jne 0xb395d
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x63ac9(%rip), %rsi     # 0x116f29
callq 0xd4e3
jmp 0xb395d
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 0xb3495
incl (%r15)
leaq -0x80(%rbp), %rcx
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %r12, %rdx
callq 0xa9de0
testb %al, %al
movq -0x40(%rbp), %r13
movq %r12, -0x58(%rbp)
je 0xb380a
movq (%r13), %rsi
movq -0x80(%rbp), %rdi
leaq -0x78(%rbp), %r14
leaq -0x70(%rbp), %r12
movq %r14, %rdx
movq %r12, %rcx
callq 0xb5814
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 0x95d84
testb %bl, %bl
je 0xb350a
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 0xa85ed
movq (%r14), %rdi
movq -0x60(%rbp), %rsi
leaq -0xf8(%rbp), %rcx
leaq -0xf0(%rbp), %r8
movq %rax, %rdx
callq 0x94972
cmpq $0x0, 0x106876b(%rip)   # 0x111bcb8
jne 0xb356c
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x20, 0x18(%rax)
movq %rax, 0x106874c(%rip)   # 0x111bcb8
movq 0x1068745(%rip), %rdx   # 0x111bcb8
movq %rdx, %rax
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb3594
incl (%rax)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
leaq -0xe8(%rbp), %rcx
leaq -0xe0(%rbp), %r8
callq 0x94972
movq -0x30(%rbp), %rdx
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0xb35ce
incl (%rax)
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
leaq -0xd8(%rbp), %rcx
leaq -0xd0(%rbp), %r8
movq -0x30(%rbp), %rdx
callq 0x94972
cmpq $0x0, 0x10686c5(%rip)   # 0x111bcc0
jne 0xb3620
movl $0x3, %edi
callq 0xf9f7
movq $0x3, 0x10(%rax)
movw $0x3d20, 0x18(%rax)     # imm = 0x3D20
movb $0x20, 0x1a(%rax)
movq %rax, 0x10686a0(%rip)   # 0x111bcc0
movq 0x1068699(%rip), %rdx   # 0x111bcc0
movq %rdx, %rax
andq %r14, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0xb363e
incl (%rax)
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
leaq -0xc8(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x94972
testb %bl, %bl
je 0xb3666
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 0xb403c
movq (%r14), %rdi
movq -0xc0(%rbp), %rsi
leaq -0xb0(%rbp), %rcx
leaq -0xa8(%rbp), %r8
movq %rax, %rdx
callq 0x94972
cmpq $0x0, 0x1068616(%rip)   # 0x111bcc8
jne 0xb36e9
movl $0xe, %edi
callq 0xf9f7
movq $0xe, 0x10(%rax)
movabsq $0x6f7365725f706f70, %rcx # imm = 0x6F7365725F706F70
movq %rcx, 0x18(%rax)
movabsq $0x2928656372756f73, %rcx # imm = 0x2928656372756F73
movq %rcx, 0x1e(%rax)
movq %rax, 0x10685df(%rip)   # 0x111bcc8
movq 0x10685d8(%rip), %rdx   # 0x111bcc8
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 0xb3715
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 0x94972
movq (%r14), %rdi
movq (%r12), %rsi
movq -0xb8(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x94972
cmpq $0x0, 0x106856b(%rip)   # 0x111bcd0
jne 0xb3784
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x3b, 0x18(%rax)
movq %rax, 0x106854c(%rip)   # 0x111bcd0
movq 0x1068545(%rip), %rdx   # 0x111bcd0
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rsi
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xb37a7
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 0x94972
movq (%r14), %r14
movq (%r12), %rbx
cmpb $0x1, 0x18(%rbx)
jne 0xb37fb
movq 0x28(%rbx), %rsi
leaq -0x88(%rbp), %r12
movl $0xa, %edi
movq %r12, %rdx
callq 0x95160
movq (%r12), %rax
movq %rax, 0x28(%rbx)
movl -0x44(%rbp), %eax
movb %al, 0x18(%rbx)
movq %rbx, (%r13)
jmp 0xb3934
cmpq $0x0, 0x10684c6(%rip)   # 0x111bcd8
jne 0xb3831
movl $0x1, %edi
callq 0xf9f7
movq $0x1, 0x10(%rax)
movb $0x30, 0x18(%rax)
movq %rax, 0x10684a7(%rip)   # 0x111bcd8
movq 0x10684a0(%rip), %rdx   # 0x111bcd8
movq %rdx, %rax
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
andq %r14, %rax
sete %cl
movq %rdx, -0x30(%rbp)
testb $0x3, %dl
setne %dl
orb %cl, %dl
jne 0xb385b
incl (%rax)
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 0x95d84
cmpq $0x0, 0x1068458(%rip)   # 0x111bce0
jne 0xb38bf
movl $0xf, %edi
callq 0xf9f7
movq $0xf, 0x10(%rax)
movabsq $0x6f7365725f706f70, %rcx # imm = 0x6F7365725F706F70
movq %rcx, 0x18(%rax)
movabsq $0x3b2928656372756f, %rcx # imm = 0x3B2928656372756F
movq %rcx, 0x1f(%rax)
movq %rax, 0x1068421(%rip)   # 0x111bce0
movq 0x106841a(%rip), %rdx   # 0x111bce0
andq %rdx, %r14
sete %al
testb $0x3, %dl
setne %cl
orb %al, %cl
jne 0xb38d9
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 0x94972
movq (%r14), %r14
movq (%r12), %r13
cmpb $0x1, 0x18(%r13)
jne 0xb3922
movq 0x28(%r13), %rsi
leaq -0x88(%rbp), %r12
movl $0xa, %edi
movq %r12, %rdx
callq 0x95160
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 0xb1525
movq (%r12), %rbx
jmp 0xb395d
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 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x30db1(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x30db6(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5