// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_topzeresourcezy
static struct std_maybe_Maybe_1 mw_mirth_type_StackType_topzeresourcezy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct mirth_type_StackType v6 = mw_mirth_type_StackType_expand(in_zaMirth_1, in_StackType_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct std_maybe_Maybe_1 branch_Maybe_8;
	switch ((v6).tag) {
		case mirth_type_StackType_With: {
			struct mirth_type_Type v9;
			struct mirth_type_StackType v10 = mtp_mirth_type_StackType_With(v6, &v9);
			decref(MK_mirth_type_StackType(v10));
			struct std_maybe_Maybe_1 v11 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v9));
			branch_Maybe_8 = v11;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v12;
			struct mirth_type_StackType v13 = mtp_mirth_type_StackType_Cons(v6, &v12);
			decref(MK_mirth_type_Type(v12));
			struct mirth_mirth_zaMirth* v14;
			struct std_maybe_Maybe_1 v15 = mw_mirth_type_StackType_topzeresourcezy(v5, v13, &v14);
			branch_Maybe_8 = v15;
			branch_zaMirth_7 = v14;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v16;
			uint64_t v17;
			struct mirth_type_StackType v18 = mtp_mirth_type_StackType_ConsLabel(v6, &v16, &v17);
			decref(MK_mirth_type_Type(v16));
			struct mirth_mirth_zaMirth* v19;
			struct std_maybe_Maybe_1 v20 = mw_mirth_type_StackType_topzeresourcezy(v5, v18, &v19);
			branch_Maybe_8 = v20;
			branch_zaMirth_7 = v19;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v21;
			uint64_t v22;
			struct mirth_type_StackType v23 = mtp_mirth_type_StackType_WithLabel(v6, &v21, &v22);
			decref(MK_mirth_type_Type(v21));
			struct mirth_mirth_zaMirth* v24;
			struct std_maybe_Maybe_1 v25 = mw_mirth_type_StackType_topzeresourcezy(v5, v23, &v24);
			branch_Maybe_8 = v25;
			branch_zaMirth_7 = v24;
		} break;
		default: {
			decref(MK_mirth_type_StackType(v6));
			struct std_maybe_Maybe_1 v26 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_8 = v26;
			branch_zaMirth_7 = v5;
		} break;
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Maybe_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
leaq -0x38(%rbp), %rcx
callq 0xba1d0
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movl -0x48(%rbp), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, -0x2f0(%rbp)
subl $0x3, %eax
ja 0x122d93
movq -0x2f0(%rbp), %rax
leaq 0x22fa11(%rip), %rcx    # 0x35219c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0xba740
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0x6f140
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x78(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x122897
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0x6f140
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
cmpq $0x0, %rax
je 0x122897
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0x6f140
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0xa0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x122897
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0x6f140
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x122895
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0x6f140
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
callq 0x127c0
jmp 0x122897
jmp 0x122899
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x6e780
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0xca10
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x122ebd
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0xba570
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x122a29
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x122a29
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x122a29
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x122a27
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x127c0
jmp 0x122a29
jmp 0x122a2b
movq -0x38(%rbp), %rdi
movl -0x100(%rbp), %esi
movq -0xf8(%rbp), %rdx
leaq -0x158(%rbp), %rcx
callq 0x122730
movl %eax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x122ebd
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
leaq -0x178(%rbp), %rdx
leaq -0x180(%rbp), %rcx
callq 0xba980
movl %eax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movl -0x178(%rbp), %edi
movq -0x170(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x198(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x122bb5
movl -0x178(%rbp), %edi
movq -0x170(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rax
cmpq $0x0, %rax
je 0x122bb5
movl -0x178(%rbp), %edi
movq -0x170(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x122bb5
movl -0x178(%rbp), %edi
movq -0x170(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1d0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x122bb3
movl -0x178(%rbp), %edi
movq -0x170(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
callq 0x127c0
jmp 0x122bb5
jmp 0x122bb7
movq -0x38(%rbp), %rdi
movl -0x190(%rbp), %esi
movq -0x188(%rbp), %rdx
leaq -0x1e8(%rbp), %rcx
callq 0x122730
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x122ebd
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
leaq -0x208(%rbp), %rdx
leaq -0x210(%rbp), %rcx
callq 0xbab70
movl %eax, -0x220(%rbp)
movq %rdx, -0x218(%rbp)
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6e780
movq %rax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x228(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x122d41
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6e780
movq %rax, -0x240(%rbp)
movq %rdx, -0x238(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x240(%rbp), %rax
cmpq $0x0, %rax
je 0x122d41
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6e780
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x250(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x122d41
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6e780
movq %rax, -0x260(%rbp)
movq %rdx, -0x258(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x260(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x122d3f
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
callq 0x6e780
movq %rax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x270(%rbp), %rdi
movq -0x268(%rbp), %rsi
callq 0x127c0
jmp 0x122d41
jmp 0x122d43
movq -0x38(%rbp), %rdi
movl -0x220(%rbp), %esi
movq -0x218(%rbp), %rdx
leaq -0x278(%rbp), %rcx
callq 0x122730
movl %eax, -0x288(%rbp)
movq %rdx, -0x280(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x122ebd
jmp 0x122d95
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6f140
movq %rax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movq -0x290(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x122e8a
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2a8(%rbp), %rax
cmpq $0x0, %rax
je 0x122e8a
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movq -0x2b8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x122e8a
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2c8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x122e88
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movq -0x2d8(%rbp), %rdi
movq -0x2d0(%rbp), %rsi
callq 0x127c0
jmp 0x122e8a
jmp 0x122e8c
leaq -0x2e8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x2e8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2e0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopl (%rax,%rax)