// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99Stack_popzeresourcezy
static void mw_mirth_c99_zaC99Stack_popzeresourcezy (struct mirth_c99_zaC99Stack in_zaC99Stack_1, struct std_maybe_zaMaybe_1 *out_zaMaybe_2, struct mirth_c99_zaC99Stack *out_zaC99Stack_3) {
	struct std_maybe_zaMaybe_1 branch_zaMaybe_4;
	struct mirth_c99_zaC99Stack branch_zaC99Stack_5;
	switch ((in_zaC99Stack_1).tag) {
		case mirth_c99_zaC99Stack_zaNil: {
			struct std_maybe_zaMaybe_1 v6 = { .tag=std_maybe_zaMaybe_1_zaNone };
			struct mirth_c99_zaC99Stack v7 = { .tag=mirth_c99_zaC99Stack_zaNil };
			branch_zaC99Stack_5 = v7;
			branch_zaMaybe_4 = v6;
		} break;
		case mirth_c99_zaC99Stack_zaWith: {
			struct mirth_c99_zaC99Stack v8;
			struct mirth_c99_zaC99Resource* v9;
			mtp_mirth_c99_zaC99Stack_zaWith(in_zaC99Stack_1, &v8, &v9);
			struct std_maybe_zaMaybe_1 v10;
			mtw_std_maybe_zaMaybe_1_zaSome(MK_mirth_c99_zaC99Resource(v9), &v10);
			branch_zaC99Stack_5 = v8;
			branch_zaMaybe_4 = v10;
		} break;
		case mirth_c99_zaC99Stack_zaCons: {
			struct mirth_c99_zaC99Stack v11;
			struct mirth_c99_zaC99Value* v12;
			mtp_mirth_c99_zaC99Stack_zaCons(in_zaC99Stack_1, &v11, &v12);
			struct std_maybe_zaMaybe_1 v13;
			struct mirth_c99_zaC99Stack v14;
			mw_mirth_c99_zaC99Stack_popzeresourcezy(v11, &v13, &v14);
			struct mirth_c99_zaC99Stack v15;
			mtw_mirth_c99_zaC99Stack_zaCons(v14, v12, &v15);
			branch_zaC99Stack_5 = v15;
			branch_zaMaybe_4 = v13;
		} break;
		case mirth_c99_zaC99Stack_zaConsLabel: {
			struct mirth_c99_zaC99Stack v16;
			struct mirth_c99_zaC99Value* v17;
			uint64_t v18 = mtp_mirth_c99_zaC99Stack_zaConsLabel(in_zaC99Stack_1, &v16, &v17);
			struct std_maybe_zaMaybe_1 v19;
			struct mirth_c99_zaC99Stack v20;
			mw_mirth_c99_zaC99Stack_popzeresourcezy(v16, &v19, &v20);
			struct mirth_c99_zaC99Stack v21;
			mtw_mirth_c99_zaC99Stack_zaConsLabel(v20, v17, v18, &v21);
			branch_zaC99Stack_5 = v21;
			branch_zaMaybe_4 = v19;
		} break;
		case mirth_c99_zaC99Stack_zaWithLabel: {
			struct mirth_c99_zaC99Stack v22;
			struct mirth_c99_zaC99Resource* v23;
			uint64_t v24 = mtp_mirth_c99_zaC99Stack_zaWithLabel(in_zaC99Stack_1, &v22, &v23);
			struct std_maybe_zaMaybe_1 v25;
			struct mirth_c99_zaC99Stack v26;
			mw_mirth_c99_zaC99Stack_popzeresourcezy(v22, &v25, &v26);
			struct mirth_c99_zaC99Stack v27;
			mtw_mirth_c99_zaC99Stack_zaWithLabel(v26, v23, v24, &v27);
			branch_zaC99Stack_5 = v27;
			branch_zaMaybe_4 = v25;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99Stack_3 = branch_zaC99Stack_5;
	*out_zaMaybe_2 = branch_zaMaybe_4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movl %edi, -0x10(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0x188(%rbp)
subq $0x4, %rax
ja 0x29d2a3
movq -0x188(%rbp), %rax
leaq 0xb66b4(%rip), %rcx     # 0x3536e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x60(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x29d2bc
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x70(%rbp), %rdx
leaq -0x78(%rbp), %rcx
callq 0x295cb0
movq -0x78(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0xf6278(%rip), %rax     # 0x393318
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x1b0f60
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x29d2bc
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0x295c50
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
leaq -0xd0(%rbp), %rcx
callq 0x29cff0
movq -0xb0(%rbp), %rdx
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
leaq -0xe0(%rbp), %rcx
callq 0x28cdf0
movq -0xe0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x29d2bc
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
leaq -0xf8(%rbp), %rcx
callq 0x295d80
movq %rax, -0x100(%rbp)
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
leaq -0x110(%rbp), %rdx
leaq -0x120(%rbp), %rcx
callq 0x29cff0
movq -0xf8(%rbp), %rdx
movq -0x100(%rbp), %rcx
movl -0x120(%rbp), %edi
movq -0x118(%rbp), %rsi
leaq -0x130(%rbp), %r8
callq 0x28cea0
movq -0x130(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x29d2bc
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x140(%rbp), %rdx
leaq -0x148(%rbp), %rcx
callq 0x295d10
movq %rax, -0x150(%rbp)
movl -0x140(%rbp), %edi
movq -0x138(%rbp), %rsi
leaq -0x160(%rbp), %rdx
leaq -0x170(%rbp), %rcx
callq 0x29cff0
movq -0x148(%rbp), %rdx
movq -0x150(%rbp), %rcx
movl -0x170(%rbp), %edi
movq -0x168(%rbp), %rsi
leaq -0x180(%rbp), %r8
callq 0x28d100
movq -0x180(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x29d2bc
leaq 0xb6bd7(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nopl (%rax,%rax)