// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_topzevaluezeiszefinezy
static bool mw_mirth_type_StackType_topzevaluezeiszefinezy (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_StackType(v10));
			struct mirth_mirth_zaMirth* v11;
			bool v12 = mw_mirth_type_Type_errorzy(v5, v9, &v11);
			bool v13 = !v12;
			branch_Bool_8 = v13;
			branch_zaMirth_7 = v11;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v14;
			uint64_t v15;
			struct mirth_type_StackType v16 = mtp_mirth_type_StackType_ConsLabel(v6, &v14, &v15);
			decref(MK_mirth_type_Type(v14));
			struct mirth_mirth_zaMirth* v17;
			bool v18 = mw_mirth_type_StackType_topzevaluezeiszefinezy(v5, v16, &v17);
			branch_Bool_8 = v18;
			branch_zaMirth_7 = v17;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v19;
			struct mirth_type_StackType v20 = mtp_mirth_type_StackType_With(v6, &v19);
			decref(MK_mirth_type_Type(v19));
			struct mirth_mirth_zaMirth* v21;
			bool v22 = mw_mirth_type_StackType_topzevaluezeiszefinezy(v5, v20, &v21);
			branch_Bool_8 = v22;
			branch_zaMirth_7 = v21;
		} 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_topzevaluezeiszefinezy(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 0x1029be
movq -0x280(%rbp), %rax
leaq 0x24fcb5(%rip), %rcx    # 0x351ffc
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 -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x6f140
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x102450
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x6f140
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0x102450
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x6f140
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x102450
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x6f140
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 0x10244e
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x6f140
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x127c0
jmp 0x102450
jmp 0x102452
movq -0x28(%rbp), %rdi
movl -0x58(%rbp), %esi
movq -0x50(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
callq 0xda310
andb $0x1, %al
movb %al, -0xc1(%rbp)
movb -0xc1(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0xc2(%rbp)
movb -0xc2(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1029d7
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 0x1025d6
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 0x1025d6
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 0x1025d6
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 0x1025d4
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 0x1025d6
jmp 0x1025d8
movq -0x28(%rbp), %rdi
movl -0xf0(%rbp), %esi
movq -0xe8(%rbp), %rdx
leaq -0x148(%rbp), %rcx
callq 0x1022f0
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 0x1029d7
movl -0x38(%rbp), %edi
movq -0x30(%rbp), %rsi
leaq -0x160(%rbp), %rdx
callq 0xba740
movl %eax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movl -0x160(%rbp), %edi
movq -0x158(%rbp), %rsi
callq 0x6e780
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x178(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x10274b
movl -0x160(%rbp), %edi
movq -0x158(%rbp), %rsi
callq 0x6e780
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rax
cmpq $0x0, %rax
je 0x10274b
movl -0x160(%rbp), %edi
movq -0x158(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x10274b
movl -0x160(%rbp), %edi
movq -0x158(%rbp), %rsi
callq 0x6e780
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 0x102749
movl -0x160(%rbp), %edi
movq -0x158(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x127c0
jmp 0x10274b
jmp 0x10274d
movq -0x28(%rbp), %rdi
movl -0x170(%rbp), %esi
movq -0x168(%rbp), %rdx
leaq -0x1c8(%rbp), %rcx
callq 0x1022f0
andb $0x1, %al
movb %al, -0x1c9(%rbp)
movb -0x1c9(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1029d7
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 0x1028c7
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 0x1028c7
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 0x1028c7
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 0x1028c5
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 0x1028c7
jmp 0x1028c9
movq -0x28(%rbp), %rdi
movl -0x1f8(%rbp), %esi
movq -0x1f0(%rbp), %rdx
leaq -0x250(%rbp), %rcx
callq 0x1022f0
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 0x1029d7
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 0x1029d7
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 0x1029d7
movb $0x1, -0x272(%rbp)
movb -0x272(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1029d7
movb $0x0, -0x273(%rbp)
movb -0x273(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1029d7
movb $0x0, -0x274(%rbp)
movb -0x274(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1029d7
leaq 0x2514bc(%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