// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Stack_popzestackzepartzetozestackzx
static void mw_mirth_c99_zaC99Stack_popzestackzepartzetozestackzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_zaC99Stack in_zaC99Stack_3, struct mirth_type_StackTypePart in_StackTypePart_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct mirth_c99_zaC99Branch* *out_zaC99Branch_6, struct mirth_c99_zaC99Stack *out_zaC99Stack_7) {
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_9;
	struct mirth_c99_zaC99Stack branch_zaC99Stack_10;
	switch ((in_StackTypePart_4).tag) {
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v11 = mtp_mirth_type_StackTypePart_Cons(in_StackTypePart_4);
			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_popzevaluezx(v12, v13, v14, &v15, &v16, &v17);
			struct mirth_c99_zaC99Stack v18;
			mtw_mirth_c99_zaC99Stack_zaCons(in_zaC99Stack_3, v17, &v18);
			branch_zaC99Stack_10 = v18;
			branch_zaC99Branch_9 = v16;
			branch_zaMirth_8 = v15;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v19 = mtp_mirth_type_StackTypePart_With(in_StackTypePart_4);
			struct mirth_mirth_zaMirth* v20;
			struct mirth_c99_zaC99Branch* v21;
			struct mirth_c99_C99ReprType v22 = mw_mirth_c99_zaC99Branch_resourcezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v19, &v20, &v21);
			struct mirth_mirth_zaMirth* v23;
			struct mirth_c99_zaC99Branch* v24;
			struct mirth_c99_zaC99Resource* v25;
			mw_mirth_c99_zaC99Branch_popzeresourcezx(v20, v21, v22, &v23, &v24, &v25);
			struct mirth_c99_zaC99Stack v26;
			mtw_mirth_c99_zaC99Stack_zaWith(in_zaC99Stack_3, v25, &v26);
			branch_zaC99Stack_10 = v26;
			branch_zaC99Branch_9 = v24;
			branch_zaMirth_8 = v23;
		} break;
		case mirth_type_StackTypePart_ConsLabel: {
			uint64_t v27;
			struct mirth_type_Type v28 = mtp_mirth_type_StackTypePart_ConsLabel(in_StackTypePart_4, &v27);
			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_popzevaluezelabelzx(v29, v30, v31, v27, &v32, &v33, &v34);
			struct mirth_c99_zaC99Stack v35;
			mtw_mirth_c99_zaC99Stack_zaConsLabel(in_zaC99Stack_3, v34, v27, &v35);
			branch_zaC99Stack_10 = v35;
			branch_zaC99Branch_9 = v33;
			branch_zaMirth_8 = v32;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v36;
			struct mirth_type_Type v37 = mtp_mirth_type_StackTypePart_WithLabel(in_StackTypePart_4, &v36);
			struct mirth_mirth_zaMirth* v38;
			struct mirth_c99_zaC99Branch* v39;
			struct mirth_c99_C99ReprType v40 = mw_mirth_c99_zaC99Branch_resourcezetozec99zerepr(in_zaMirth_1, in_zaC99Branch_2, v37, &v38, &v39);
			struct mirth_mirth_zaMirth* v41;
			struct mirth_c99_zaC99Branch* v42;
			struct mirth_c99_zaC99Resource* v43;
			mw_mirth_c99_zaC99Branch_popzeresourcezelabelzx(v38, v39, v40, v36, &v41, &v42, &v43);
			struct mirth_c99_zaC99Stack v44;
			mtw_mirth_c99_zaC99Stack_zaWithLabel(in_zaC99Stack_3, v43, v36, &v44);
			branch_zaC99Stack_10 = v44;
			branch_zaC99Branch_9 = v42;
			branch_zaMirth_8 = v41;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Stack_7 = branch_zaC99Stack_10;
	*out_zaC99Branch_6 = branch_zaC99Branch_9;
	*out_zaMirth_5 = branch_zaMirth_8;
}

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