// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_popzestackzepartzx
static void mw_mirth_c99_popzestackzepartzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_type_StackTypePart in_StackTypePart_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5, struct std_either_zaEither_2 *out_zaC99ValuezfResource_6) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_8;
	struct std_either_zaEither_2 branch_zaC99ValuezfResource_9;
	switch ((in_StackTypePart_3).tag) {
		case mirth_type_StackTypePart_ConsLabel: {
			uint64_t v10;
			struct mirth_type_Type v11 = mtp_mirth_type_StackTypePart_ConsLabel(in_StackTypePart_3, &v10);
			struct mirth_mirth_zaMirth* v12;
			struct mirth_c99_zaC99Branch* v13;
			struct mirth_c99_C99ReprType v14 = mw_mirth_c99_zaC99Branch_typezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v11, &v12, &v13);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_c99_zaC99Branch* v16;
			struct mirth_c99_zaC99Value* v17;
			mw_mirth_c99_zaC99Branch_popzevaluezelabelzx(v12, v13, v14, v10, &v15, &v16, &v17);
			struct std_either_zaEither_2 v18;
			mw_mirth_c99_zaC99ValuezfResource_zaLeft(v17, &v18);
			branch_zaC99ValuezfResource_9 = v18;
			branch_zaC99Branch_8 = v16;
			branch_zaMirth_7 = v15;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v19;
			struct mirth_type_Type v20 = mtp_mirth_type_StackTypePart_WithLabel(in_StackTypePart_3, &v19);
			struct mirth_mirth_zaMirth* v21;
			struct mirth_c99_zaC99Branch* v22;
			struct mirth_c99_C99ReprType v23 = mw_mirth_c99_zaC99Branch_resourcezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v20, &v21, &v22);
			struct mirth_mirth_zaMirth* v24;
			struct mirth_c99_zaC99Branch* v25;
			struct mirth_c99_zaC99Resource* v26;
			mw_mirth_c99_zaC99Branch_popzeresourcezelabelzx(v21, v22, v23, v19, &v24, &v25, &v26);
			struct std_either_zaEither_2 v27;
			mw_mirth_c99_zaC99ValuezfResource_zaRight(v26, &v27);
			branch_zaC99ValuezfResource_9 = v27;
			branch_zaC99Branch_8 = v25;
			branch_zaMirth_7 = v24;
		} break;
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v28 = mtp_mirth_type_StackTypePart_Cons(in_StackTypePart_3);
			struct mirth_mirth_zaMirth* v29;
			struct mirth_c99_zaC99Branch* v30;
			struct mirth_c99_C99ReprType v31 = mw_mirth_c99_zaC99Branch_typezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v28, &v29, &v30);
			struct mirth_mirth_zaMirth* v32;
			struct mirth_c99_zaC99Branch* v33;
			struct mirth_c99_zaC99Value* v34;
			mw_mirth_c99_zaC99Branch_popzevaluezx(v29, v30, v31, &v32, &v33, &v34);
			struct std_either_zaEither_2 v35;
			mw_mirth_c99_zaC99ValuezfResource_zaLeft(v34, &v35);
			branch_zaC99ValuezfResource_9 = v35;
			branch_zaC99Branch_8 = v33;
			branch_zaMirth_7 = v32;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v36 = mtp_mirth_type_StackTypePart_With(in_StackTypePart_3);
			struct mirth_mirth_zaMirth* v37;
			struct mirth_c99_zaC99Branch* v38;
			struct mirth_c99_C99ReprType v39 = mw_mirth_c99_zaC99Branch_resourcezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v36, &v37, &v38);
			struct mirth_mirth_zaMirth* v40;
			struct mirth_c99_zaC99Branch* v41;
			struct mirth_c99_zaC99Resource* v42;
			mw_mirth_c99_zaC99Branch_popzeresourcezx(v37, v38, v39, &v40, &v41, &v42);
			struct std_either_zaEither_2 v43;
			mw_mirth_c99_zaC99ValuezfResource_zaRight(v42, &v43);
			branch_zaC99ValuezfResource_9 = v43;
			branch_zaC99Branch_8 = v41;
			branch_zaMirth_7 = v40;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99ValuezfResource_6 = branch_zaC99ValuezfResource_9;
	*out_zaC99Branch_5 = branch_zaC99Branch_8;
	*out_zaMirth_4 = branch_zaMirth_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
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)
movl -0x10(%rbp), %eax
movq %rax, -0x1c8(%rbp)
subq $0x3, %rax
ja 0x29417c
movq -0x1c8(%rbp), %rax
leaq 0xbf7e0(%rip), %rcx     # 0x353628
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0xcf210
movl %eax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x68(%rbp), %edx
movq -0x60(%rbp), %rcx
leaq -0x70(%rbp), %r8
leaq -0x78(%rbp), %r9
callq 0x294250
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x70(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x58(%rbp), %r8
movl -0x88(%rbp), %edx
movq -0x80(%rbp), %rcx
leaq -0x90(%rbp), %r9
leaq -0x98(%rbp), %r10
leaq -0xa0(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x2942b0
movq -0xa0(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x293c40
movq -0xb0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x294195
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0xcf430
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0xc8(%rbp), %edx
movq -0xc0(%rbp), %rcx
leaq -0xd0(%rbp), %r8
leaq -0xd8(%rbp), %r9
callq 0x294510
movl %eax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
movq -0xb8(%rbp), %r8
movl -0xe8(%rbp), %edx
movq -0xe0(%rbp), %rcx
leaq -0xf0(%rbp), %r9
leaq -0xf8(%rbp), %r10
leaq -0x100(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x294570
movq -0x100(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x2947d0
movq -0x110(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x294195
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0xcf110
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x120(%rbp), %edx
movq -0x118(%rbp), %rcx
leaq -0x128(%rbp), %r8
leaq -0x130(%rbp), %r9
callq 0x294250
movl %eax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x128(%rbp), %rdi
movq -0x130(%rbp), %rsi
movl -0x140(%rbp), %edx
movq -0x138(%rbp), %rcx
leaq -0x148(%rbp), %r8
leaq -0x150(%rbp), %r9
leaq -0x158(%rbp), %rax
movq %rax, (%rsp)
callq 0x294820
movq -0x158(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x293c40
movq -0x168(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x294195
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0xcf330
movl %eax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x178(%rbp), %edx
movq -0x170(%rbp), %rcx
leaq -0x180(%rbp), %r8
leaq -0x188(%rbp), %r9
callq 0x294510
movl %eax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movq -0x180(%rbp), %rdi
movq -0x188(%rbp), %rsi
movl -0x198(%rbp), %edx
movq -0x190(%rbp), %rcx
leaq -0x1a0(%rbp), %r8
leaq -0x1a8(%rbp), %r9
leaq -0x1b0(%rbp), %rax
movq %rax, (%rsp)
callq 0x294a50
movq -0x1b0(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x2947d0
movq -0x1c0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x294195
leaq 0xbfcfe(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq 0x10(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
nopw (%rax,%rax)