// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_haszevarzy
static bool mw_mirth_type_StackType_haszevarzy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Var_2, struct mirth_type_StackType in_StackType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	bool branch_Bool_7;
	switch ((in_StackType_3).tag) {
		case mirth_type_StackType_Error: {
			bool v8 = false;
			branch_Bool_7 = v8;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Ignore: {
			bool v9 = false;
			branch_Bool_7 = v9;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Unit: {
			bool v10 = false;
			branch_Bool_7 = v10;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Meta: {
			uint64_t v11 = mtp_mirth_type_StackType_Meta(in_StackType_3);
			struct mirth_mirth_zaMirth* v12;
			bool v13 = mw_mirth_type_MetaVar_haszevarzy(in_zaMirth_1, in_Var_2, v11, &v12);
			branch_Bool_7 = v13;
			branch_zaMirth_6 = v12;
		} break;
		case mirth_type_StackType_Var: {
			uint64_t v14 = mtp_mirth_type_StackType_Var(in_StackType_3);
			uint64_t v15 = v14;
			uint64_t v16 = in_Var_2;
			bool v17 = (v15 == v16);
			branch_Bool_7 = v17;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v18;
			struct mirth_type_StackType v19 = mtp_mirth_type_StackType_Cons(in_StackType_3, &v18);
			struct mirth_mirth_zaMirth* v20;
			bool v21 = mw_mirth_type_Type_haszevarzy(in_zaMirth_1, in_Var_2, v18, &v20);
			struct mirth_mirth_zaMirth* branch_zaMirth_22;
			bool branch_Bool_23;
			if (v21) {
				decref(MK_mirth_type_StackType(v19));
				bool v24 = true;
				branch_Bool_23 = v24;
				branch_zaMirth_22 = v20;
			} else {
				struct mirth_mirth_zaMirth* v25;
				bool v26 = mw_mirth_type_StackType_haszevarzy(v20, in_Var_2, v19, &v25);
				branch_Bool_23 = v26;
				branch_zaMirth_22 = v25;
			}
			branch_Bool_7 = branch_Bool_23;
			branch_zaMirth_6 = branch_zaMirth_22;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v27;
			struct mirth_type_StackType v28 = mtp_mirth_type_StackType_With(in_StackType_3, &v27);
			struct mirth_mirth_zaMirth* v29;
			bool v30 = mw_mirth_type_Resource_haszevarzy(in_zaMirth_1, in_Var_2, v27, &v29);
			struct mirth_mirth_zaMirth* branch_zaMirth_31;
			bool branch_Bool_32;
			if (v30) {
				decref(MK_mirth_type_StackType(v28));
				bool v33 = true;
				branch_Bool_32 = v33;
				branch_zaMirth_31 = v29;
			} else {
				struct mirth_mirth_zaMirth* v34;
				bool v35 = mw_mirth_type_StackType_haszevarzy(v29, in_Var_2, v28, &v34);
				branch_Bool_32 = v35;
				branch_zaMirth_31 = v34;
			}
			branch_Bool_7 = branch_Bool_32;
			branch_zaMirth_6 = branch_zaMirth_31;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v36;
			uint64_t v37;
			struct mirth_type_StackType v38 = mtp_mirth_type_StackType_ConsLabel(in_StackType_3, &v36, &v37);
			struct mirth_mirth_zaMirth* v39;
			bool v40 = mw_mirth_type_Type_haszevarzy(in_zaMirth_1, in_Var_2, v36, &v39);
			struct mirth_mirth_zaMirth* branch_zaMirth_41;
			bool branch_Bool_42;
			if (v40) {
				decref(MK_mirth_type_StackType(v38));
				bool v43 = true;
				branch_Bool_42 = v43;
				branch_zaMirth_41 = v39;
			} else {
				struct mirth_mirth_zaMirth* v44;
				bool v45 = mw_mirth_type_StackType_haszevarzy(v39, in_Var_2, v38, &v44);
				branch_Bool_42 = v45;
				branch_zaMirth_41 = v44;
			}
			branch_Bool_7 = branch_Bool_42;
			branch_zaMirth_6 = branch_zaMirth_41;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v46;
			uint64_t v47;
			struct mirth_type_StackType v48 = mtp_mirth_type_StackType_WithLabel(in_StackType_3, &v46, &v47);
			struct mirth_mirth_zaMirth* v49;
			bool v50 = mw_mirth_type_Resource_haszevarzy(in_zaMirth_1, in_Var_2, v46, &v49);
			struct mirth_mirth_zaMirth* branch_zaMirth_51;
			bool branch_Bool_52;
			if (v50) {
				decref(MK_mirth_type_StackType(v48));
				bool v53 = true;
				branch_Bool_52 = v53;
				branch_zaMirth_51 = v49;
			} else {
				struct mirth_mirth_zaMirth* v54;
				bool v55 = mw_mirth_type_StackType_haszevarzy(v49, in_Var_2, v48, &v54);
				branch_Bool_52 = v55;
				branch_zaMirth_51 = v54;
			}
			branch_Bool_7 = branch_Bool_52;
			branch_zaMirth_6 = branch_zaMirth_51;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_4 = branch_zaMirth_6;
	return branch_Bool_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x330, %rsp            # imm = 0x330
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0x328(%rbp)
subq $0x8, %rax
ja 0x287e7e
movq -0x328(%rbp), %rax
leaq 0xcbfe8(%rip), %rcx     # 0x3535b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x0, -0x32(%rbp)
movb -0x32(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movb $0x0, -0x33(%rbp)
movb -0x33(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movb $0x0, -0x34(%rbp)
movb -0x34(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0xba280
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x48(%rbp), %rcx
callq 0x287480
andb $0x1, %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0xba520
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
cmpq -0x68(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0xba570
movl %eax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x80(%rbp), %edx
movq -0x78(%rbp), %rcx
leaq -0x98(%rbp), %r8
callq 0x286f70
andb $0x1, %al
movb %al, -0x99(%rbp)
testb $0x1, -0x99(%rbp)
je 0x287831
jmp 0x2876f7
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x28780a
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
cmpq $0x0, %rax
je 0x28780a
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x28780a
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xf0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x287808
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6f140
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x127c0
jmp 0x28780a
jmp 0x28780c
movb $0x1, -0x101(%rbp)
movb -0x101(%rbp), %al
andb $0x1, %al
movb %al, -0xa9(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xa8(%rbp)
jmp 0x287879
movq -0x98(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x90(%rbp), %edx
movq -0x88(%rbp), %rcx
leaq -0x110(%rbp), %r8
callq 0x287590
andb $0x1, %al
movb %al, -0x111(%rbp)
movb -0x111(%rbp), %al
andb $0x1, %al
movb %al, -0xa9(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xa8(%rbp)
movb -0xa9(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x128(%rbp), %rdx
callq 0xba740
movl %eax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x128(%rbp), %edx
movq -0x120(%rbp), %rcx
leaq -0x140(%rbp), %r8
callq 0x288270
andb $0x1, %al
movb %al, -0x141(%rbp)
testb $0x1, -0x141(%rbp)
je 0x287a26
jmp 0x2878ec
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6f140
movq %rax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x160(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2879ff
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6f140
movq %rax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x178(%rbp), %rax
cmpq $0x0, %rax
je 0x2879ff
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6f140
movq %rax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movq -0x188(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x2879ff
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6f140
movq %rax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x198(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x2879fd
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movq -0x1a8(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
callq 0x127c0
jmp 0x2879ff
jmp 0x287a01
movb $0x1, -0x1a9(%rbp)
movb -0x1a9(%rbp), %al
andb $0x1, %al
movb %al, -0x151(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0x287a6e
movq -0x140(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x138(%rbp), %edx
movq -0x130(%rbp), %rcx
leaq -0x1b8(%rbp), %r8
callq 0x287590
andb $0x1, %al
movb %al, -0x1b9(%rbp)
movb -0x1b9(%rbp), %al
andb $0x1, %al
movb %al, -0x151(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x150(%rbp)
movb -0x151(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
leaq -0x1d8(%rbp), %rcx
callq 0xba980
movl %eax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x1d0(%rbp), %edx
movq -0x1c8(%rbp), %rcx
leaq -0x1f0(%rbp), %r8
callq 0x286f70
andb $0x1, %al
movb %al, -0x1f1(%rbp)
testb $0x1, -0x1f1(%rbp)
je 0x287c22
jmp 0x287ae8
movl -0x1e8(%rbp), %edi
movq -0x1e0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movq -0x210(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x287bfb
movl -0x1e8(%rbp), %edi
movq -0x1e0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x228(%rbp), %rax
cmpq $0x0, %rax
je 0x287bfb
movl -0x1e8(%rbp), %edi
movq -0x1e0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movq -0x238(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x287bfb
movl -0x1e8(%rbp), %edi
movq -0x1e0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x248(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x287bf9
movl -0x1e8(%rbp), %edi
movq -0x1e0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movq -0x258(%rbp), %rdi
movq -0x250(%rbp), %rsi
callq 0x127c0
jmp 0x287bfb
jmp 0x287bfd
movb $0x1, -0x259(%rbp)
movb -0x259(%rbp), %al
andb $0x1, %al
movb %al, -0x201(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x200(%rbp)
jmp 0x287c6a
movq -0x1f0(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x1e8(%rbp), %edx
movq -0x1e0(%rbp), %rcx
leaq -0x268(%rbp), %r8
callq 0x287590
andb $0x1, %al
movb %al, -0x269(%rbp)
movb -0x269(%rbp), %al
andb $0x1, %al
movb %al, -0x201(%rbp)
movq -0x268(%rbp), %rax
movq %rax, -0x200(%rbp)
movb -0x201(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x280(%rbp), %rdx
leaq -0x288(%rbp), %rcx
callq 0xbab70
movl %eax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x280(%rbp), %edx
movq -0x278(%rbp), %rcx
leaq -0x2a0(%rbp), %r8
callq 0x288270
andb $0x1, %al
movb %al, -0x2a1(%rbp)
testb $0x1, -0x2a1(%rbp)
je 0x287e1e
jmp 0x287ce4
movl -0x298(%rbp), %edi
movq -0x290(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x287df7
movl -0x298(%rbp), %edi
movq -0x290(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2d8(%rbp), %rax
cmpq $0x0, %rax
je 0x287df7
movl -0x298(%rbp), %edi
movq -0x290(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movq -0x2e8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x287df7
movl -0x298(%rbp), %edi
movq -0x290(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2f8(%rbp)
movq %rdx, -0x2f0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2f8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x287df5
movl -0x298(%rbp), %edi
movq -0x290(%rbp), %rsi
callq 0x6f140
movq %rax, -0x308(%rbp)
movq %rdx, -0x300(%rbp)
movq -0x308(%rbp), %rdi
movq -0x300(%rbp), %rsi
callq 0x127c0
jmp 0x287df7
jmp 0x287df9
movb $0x1, -0x309(%rbp)
movb -0x309(%rbp), %al
andb $0x1, %al
movb %al, -0x2b1(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0x2b0(%rbp)
jmp 0x287e66
movq -0x2a0(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x298(%rbp), %edx
movq -0x290(%rbp), %rcx
leaq -0x318(%rbp), %r8
callq 0x287590
andb $0x1, %al
movb %al, -0x319(%rbp)
movb -0x319(%rbp), %al
andb $0x1, %al
movb %al, -0x2b1(%rbp)
movq -0x318(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movb -0x2b1(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x2b0(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x287e97
leaq 0xcbffc(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movb -0x31(%rbp), %al
andb $0x1, %al
addq $0x330, %rsp            # imm = 0x330
popq %rbp
retq