// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_topzeresourcezeiszefinezy
static bool mw_mirth_type_StackType_topzeresourcezeiszefinezy (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;
	bool branch_Bool_8;
	switch ((v6).tag) {
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v9;
			struct mirth_type_StackType v10 = mtp_mirth_type_StackType_Cons(v6, &v9);
			decref(MK_mirth_type_Type(v9));
			struct mirth_mirth_zaMirth* v11;
			bool v12 = mw_mirth_type_StackType_topzeresourcezeiszefinezy(v5, v10, &v11);
			branch_Bool_8 = v12;
			branch_zaMirth_7 = v11;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v13;
			uint64_t v14;
			struct mirth_type_StackType v15 = mtp_mirth_type_StackType_ConsLabel(v6, &v13, &v14);
			decref(MK_mirth_type_Type(v13));
			struct mirth_mirth_zaMirth* v16;
			bool v17 = mw_mirth_type_StackType_topzeresourcezeiszefinezy(v5, v15, &v16);
			branch_Bool_8 = v17;
			branch_zaMirth_7 = v16;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v18;
			struct mirth_type_StackType v19 = mtp_mirth_type_StackType_With(v6, &v18);
			decref(MK_mirth_type_StackType(v19));
			struct mirth_mirth_zaMirth* v20;
			bool v21 = mw_mirth_type_Type_errorzy(v5, v18, &v20);
			bool v22 = !v21;
			branch_Bool_8 = v22;
			branch_zaMirth_7 = v20;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v23;
			uint64_t v24;
			struct mirth_type_StackType v25 = mtp_mirth_type_StackType_WithLabel(v6, &v23, &v24);
			decref(MK_mirth_type_Type(v23));
			struct mirth_mirth_zaMirth* v26;
			bool v27 = mw_mirth_type_StackType_topzeresourcezeiszefinezy(v5, v25, &v26);
			branch_Bool_8 = v27;
			branch_zaMirth_7 = v26;
		} break;
		case mirth_type_StackType_Meta: {
			uint64_t v28 = mtp_mirth_type_StackType_Meta(v6);
			bool v29 = true;
			branch_Bool_8 = v29;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Var: {
			uint64_t v30 = mtp_mirth_type_StackType_Var(v6);
			bool v31 = true;
			branch_Bool_8 = v31;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Unit: {
			bool v32 = true;
			branch_Bool_8 = v32;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Error: {
			bool v33 = false;
			branch_Bool_8 = v33;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Ignore: {
			bool v34 = false;
			branch_Bool_8 = v34;
			branch_zaMirth_7 = v5;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Bool_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movl -0x10(%rbp), %esi
movq -0x8(%rbp), %rdx
leaq -0x28(%rbp), %rcx
callq 0xba1d0
movl %eax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movl -0x38(%rbp), %eax
movq %rax, -0x280(%rbp)
subq $0x8, %rax
ja 0x1030be
movq -0x280(%rbp), %rax
leaq 0x24f5d9(%rip), %rcx    # 0x352020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0xba570
movl %eax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x102b50
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x102b50
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x102b50
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x102b4e
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x6e780
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x127c0
jmp 0x102b50
jmp 0x102b52
movq -0x28(%rbp), %rdi
movl -0x68(%rbp), %esi
movq -0x60(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
callq 0x1029f0
andb $0x1, %al
movb %al, -0xc1(%rbp)
movb -0xc1(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
leaq -0xd8(%rbp), %rdx
leaq -0xe0(%rbp), %rcx
callq 0xba980
movl %eax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x102cc6
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rax
cmpq $0x0, %rax
je 0x102cc6
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x120(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x102cc6
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x130(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x102cc4
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x127c0
jmp 0x102cc6
jmp 0x102cc8
movq -0x28(%rbp), %rdi
movl -0xf0(%rbp), %esi
movq -0xe8(%rbp), %rdx
leaq -0x148(%rbp), %rcx
callq 0x1029f0
andb $0x1, %al
movb %al, -0x149(%rbp)
movb -0x149(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
leaq -0x160(%rbp), %rdx
callq 0xba740
movl %eax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movl -0x170(%rbp), %edi
movq -0x168(%rbp), %rsi
callq 0x6f140
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x178(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x102e3b
movl -0x170(%rbp), %edi
movq -0x168(%rbp), %rsi
callq 0x6f140
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
cmpq $0x0, %rax
je 0x102e3b
movl -0x170(%rbp), %edi
movq -0x168(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x102e3b
movl -0x170(%rbp), %edi
movq -0x168(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x102e39
movl -0x170(%rbp), %edi
movq -0x168(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x127c0
jmp 0x102e3b
jmp 0x102e3d
movq -0x28(%rbp), %rdi
movl -0x160(%rbp), %esi
movq -0x158(%rbp), %rdx
leaq -0x1c8(%rbp), %rcx
callq 0xda310
andb $0x1, %al
movb %al, -0x1c9(%rbp)
movb -0x1c9(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x1ca(%rbp)
movb -0x1ca(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
leaq -0x1e8(%rbp), %rcx
callq 0xbab70
movl %eax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movl -0x1e0(%rbp), %edi
movq -0x1d8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x200(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x102fc7
movl -0x1e0(%rbp), %edi
movq -0x1d8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x218(%rbp), %rax
cmpq $0x0, %rax
je 0x102fc7
movl -0x1e0(%rbp), %edi
movq -0x1d8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x228(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x102fc7
movl -0x1e0(%rbp), %edi
movq -0x1d8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x238(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x102fc5
movl -0x1e0(%rbp), %edi
movq -0x1d8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x248(%rbp), %rdi
movq -0x240(%rbp), %rsi
callq 0x127c0
jmp 0x102fc7
jmp 0x102fc9
movq -0x28(%rbp), %rdi
movl -0x1f8(%rbp), %esi
movq -0x1f0(%rbp), %rdx
leaq -0x250(%rbp), %rcx
callq 0x1029f0
andb $0x1, %al
movb %al, -0x251(%rbp)
movb -0x251(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0xba280
movq %rax, -0x260(%rbp)
movb $0x1, -0x261(%rbp)
movb -0x261(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
callq 0xba520
movq %rax, -0x270(%rbp)
movb $0x1, -0x271(%rbp)
movb -0x271(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movb $0x1, -0x272(%rbp)
movb -0x272(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movb $0x0, -0x273(%rbp)
movb -0x273(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
movb $0x0, -0x274(%rbp)
movb -0x274(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1030d7
leaq 0x250dbc(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x40(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movb -0x41(%rbp), %al
andb $0x1, %al
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq