// File: /workspace/github_c_makefile_star2_O0/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
subq $0x120, %rsp            # imm = 0x120
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x20(%rbp), %rax
movups 0x8(%rax), %xmm0
movaps %xmm0, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rcx
movl -0x40(%rbp), %esi
movq -0x38(%rbp), %rdx
movq %rsp, %rax
leaq -0x68(%rbp), %r8
movq %r8, (%rax)
leaq -0x48(%rbp), %r8
leaq -0x58(%rbp), %r9
callq 0x29ac80
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rax
movups -0x58(%rbp), %xmm0
movups %xmm0, 0x8(%rax)
movl -0x68(%rbp), %eax
movl %eax, -0x104(%rbp)
testl %eax, %eax
je 0x29472a
jmp 0x2945ef
movl -0x104(%rbp), %eax
subl $0x1, %eax
jne 0x294786
jmp 0x294600
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x1b1000
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x294708
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb8(%rbp), %rax
cmpq $0x0, %rax
je 0x294708
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x294708
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x294706
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x127c0
jmp 0x294708
jmp 0x29470a
movq -0x98(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x29479f
movq -0x48(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x70(%rbp), %r8
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rcx
leaq -0xf0(%rbp), %r9
leaq -0xf8(%rbp), %r10
leaq -0x100(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x29b1a0
movq -0x100(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x29479f
leaq 0xbf6f4(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x88(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x80(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x78(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopl (%rax)