// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Branch_popzevaluezx
static void mw_mirth_c99_zaC99Branch_popzevaluezx (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_zaC99Value* *out_zaC99Value_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_popzevaluezy(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_zaC99Value* branch_zaC99Value_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_zaC99Value_12 = V_mirth_c99_zaC99Value(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_zaC99Value* v16;
			mw_mirth_c99_C99ReprType_popzevaluezedirectzx(in_zaMirth_1, in_zaC99Branch_2, in_C99ReprType_3, &v14, &v15, &v16);
			branch_zaC99Value_12 = v16;
			branch_zaC99Branch_11 = v15;
			branch_zaMirth_10 = v14;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Value_6 = branch_zaC99Value_12;
	*out_zaC99Branch_5 = branch_zaC99Branch_11;
	*out_zaMirth_4 = branch_zaMirth_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
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)
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
leaq -0x60(%rbp), %rcx
callq 0x29bf20
movq -0x20(%rbp), %rax
movups -0x60(%rbp), %xmm0
movups %xmm0, 0x8(%rax)
movl -0x50(%rbp), %eax
movl %eax, -0xf4(%rbp)
testl %eax, %eax
je 0x2949bd
jmp 0x294885
movl -0xf4(%rbp), %eax
subl $0x1, %eax
jne 0x294a0d
jmp 0x294896
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x1b1000
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x29499e
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x29499e
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x29499e
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x29499c
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x2315b0
movq %rax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
callq 0x127c0
jmp 0x29499e
jmp 0x2949a0
movq -0x88(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x294a26
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x10(%rbp), %edx
movq -0x8(%rbp), %rcx
leaq -0xe0(%rbp), %r8
leaq -0xe8(%rbp), %r9
leaq -0xf0(%rbp), %rax
movq %rax, (%rsp)
callq 0x29c220
movq -0xf0(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0x294a26
leaq 0xbf46d(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x78(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x70(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x68(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq