// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_haszemetazy
static bool mw_mirth_type_StackType_haszemetazy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_MetaVar_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_Meta: {
			uint64_t v8 = mtp_mirth_type_StackType_Meta(in_StackType_3);
			struct mirth_mirth_zaMirth* v9;
			bool v10 = mw_mirth_type_MetaVar_haszemetazy(in_zaMirth_1, in_MetaVar_2, v8, &v9);
			branch_Bool_7 = v10;
			branch_zaMirth_6 = v9;
		} break;
		case mirth_type_StackType_Error: {
			bool v11 = false;
			branch_Bool_7 = v11;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Ignore: {
			bool v12 = false;
			branch_Bool_7 = v12;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Var: {
			uint64_t v13 = mtp_mirth_type_StackType_Var(in_StackType_3);
			bool v14 = false;
			branch_Bool_7 = v14;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Unit: {
			bool v15 = false;
			branch_Bool_7 = v15;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v16;
			struct mirth_type_StackType v17 = mtp_mirth_type_StackType_Cons(in_StackType_3, &v16);
			struct mirth_mirth_zaMirth* v18;
			bool v19 = mw_mirth_type_Type_haszemetazy(in_zaMirth_1, in_MetaVar_2, v16, &v18);
			struct mirth_mirth_zaMirth* branch_zaMirth_20;
			bool branch_Bool_21;
			if (v19) {
				decref(MK_mirth_type_StackType(v17));
				bool v22 = true;
				branch_Bool_21 = v22;
				branch_zaMirth_20 = v18;
			} else {
				struct mirth_mirth_zaMirth* v23;
				bool v24 = mw_mirth_type_StackType_haszemetazy(v18, in_MetaVar_2, v17, &v23);
				branch_Bool_21 = v24;
				branch_zaMirth_20 = v23;
			}
			branch_Bool_7 = branch_Bool_21;
			branch_zaMirth_6 = branch_zaMirth_20;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v25;
			uint64_t v26;
			struct mirth_type_StackType v27 = mtp_mirth_type_StackType_ConsLabel(in_StackType_3, &v25, &v26);
			struct mirth_mirth_zaMirth* v28;
			bool v29 = mw_mirth_type_Type_haszemetazy(in_zaMirth_1, in_MetaVar_2, v25, &v28);
			struct mirth_mirth_zaMirth* branch_zaMirth_30;
			bool branch_Bool_31;
			if (v29) {
				decref(MK_mirth_type_StackType(v27));
				bool v32 = true;
				branch_Bool_31 = v32;
				branch_zaMirth_30 = v28;
			} else {
				struct mirth_mirth_zaMirth* v33;
				bool v34 = mw_mirth_type_StackType_haszemetazy(v28, in_MetaVar_2, v27, &v33);
				branch_Bool_31 = v34;
				branch_zaMirth_30 = v33;
			}
			branch_Bool_7 = branch_Bool_31;
			branch_zaMirth_6 = branch_zaMirth_30;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v35;
			struct mirth_type_StackType v36 = mtp_mirth_type_StackType_With(in_StackType_3, &v35);
			struct mirth_mirth_zaMirth* v37;
			bool v38 = mw_mirth_type_Resource_haszemetazy(in_zaMirth_1, in_MetaVar_2, v35, &v37);
			struct mirth_mirth_zaMirth* branch_zaMirth_39;
			bool branch_Bool_40;
			if (v38) {
				decref(MK_mirth_type_StackType(v36));
				bool v41 = true;
				branch_Bool_40 = v41;
				branch_zaMirth_39 = v37;
			} else {
				struct mirth_mirth_zaMirth* v42;
				bool v43 = mw_mirth_type_StackType_haszemetazy(v37, in_MetaVar_2, v36, &v42);
				branch_Bool_40 = v43;
				branch_zaMirth_39 = v42;
			}
			branch_Bool_7 = branch_Bool_40;
			branch_zaMirth_6 = branch_zaMirth_39;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v44;
			uint64_t v45;
			struct mirth_type_StackType v46 = mtp_mirth_type_StackType_WithLabel(in_StackType_3, &v44, &v45);
			struct mirth_mirth_zaMirth* v47;
			bool v48 = mw_mirth_type_Resource_haszemetazy(in_zaMirth_1, in_MetaVar_2, v44, &v47);
			struct mirth_mirth_zaMirth* branch_zaMirth_49;
			bool branch_Bool_50;
			if (v48) {
				decref(MK_mirth_type_StackType(v46));
				bool v51 = true;
				branch_Bool_50 = v51;
				branch_zaMirth_49 = v47;
			} else {
				struct mirth_mirth_zaMirth* v52;
				bool v53 = mw_mirth_type_StackType_haszemetazy(v47, in_MetaVar_2, v46, &v52);
				branch_Bool_50 = v53;
				branch_zaMirth_49 = v52;
			}
			branch_Bool_7 = branch_Bool_50;
			branch_zaMirth_6 = branch_zaMirth_49;
		} 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 $0x320, %rsp            # imm = 0x320
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, -0x318(%rbp)
subq $0x8, %rax
ja 0xc3c88
movq -0x318(%rbp), %rax
leaq 0x28e970(%rip), %rcx    # 0x351d90
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
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 0xc32a0
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 0xc3ca1
movb $0x0, -0x4a(%rbp)
movb -0x4a(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
movb $0x0, -0x4b(%rbp)
movb -0x4b(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0xba520
movq %rax, -0x58(%rbp)
movb $0x0, -0x59(%rbp)
movb -0x59(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
movb $0x0, -0x5a(%rbp)
movb -0x5a(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0xba570
movl %eax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x70(%rbp), %edx
movq -0x68(%rbp), %rcx
leaq -0x88(%rbp), %r8
callq 0xc29d0
andb $0x1, %al
movb %al, -0x89(%rbp)
testb $0x1, -0x89(%rbp)
je 0xc3641
jmp 0xc3525
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6f140
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xc361a
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6f140
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc0(%rbp), %rax
cmpq $0x0, %rax
je 0xc361a
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6f140
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movq -0xd0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xc361a
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6f140
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xc3618
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x6f140
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x127c0
jmp 0xc361a
jmp 0xc361c
movb $0x1, -0xf1(%rbp)
movb -0xf1(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xc3683
movq -0x88(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x80(%rbp), %edx
movq -0x78(%rbp), %rcx
leaq -0x100(%rbp), %r8
callq 0xc33e0
andb $0x1, %al
movb %al, -0x101(%rbp)
movb -0x101(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x118(%rbp), %rdx
leaq -0x120(%rbp), %rcx
callq 0xba980
movl %eax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x118(%rbp), %edx
movq -0x110(%rbp), %rcx
leaq -0x138(%rbp), %r8
callq 0xc29d0
andb $0x1, %al
movb %al, -0x139(%rbp)
testb $0x1, -0x139(%rbp)
je 0xc3837
jmp 0xc36fd
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x6f140
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x158(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xc3810
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x6f140
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x170(%rbp), %rax
cmpq $0x0, %rax
je 0xc3810
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x6f140
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x180(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xc3810
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x6f140
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xc380e
movl -0x130(%rbp), %edi
movq -0x128(%rbp), %rsi
callq 0x6f140
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %rsi
callq 0x127c0
jmp 0xc3810
jmp 0xc3812
movb $0x1, -0x1a1(%rbp)
movb -0x1a1(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x148(%rbp)
jmp 0xc387f
movq -0x138(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x130(%rbp), %edx
movq -0x128(%rbp), %rcx
leaq -0x1b0(%rbp), %r8
callq 0xc33e0
andb $0x1, %al
movb %al, -0x1b1(%rbp)
movb -0x1b1(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x148(%rbp)
movb -0x149(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x1c8(%rbp), %rdx
callq 0xba740
movl %eax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x1c8(%rbp), %edx
movq -0x1c0(%rbp), %rcx
leaq -0x1e0(%rbp), %r8
callq 0xc4080
andb $0x1, %al
movb %al, -0x1e1(%rbp)
testb $0x1, -0x1e1(%rbp)
je 0xc3a2c
jmp 0xc38f2
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x200(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xc3a05
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x218(%rbp), %rax
cmpq $0x0, %rax
je 0xc3a05
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x228(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xc3a05
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x6f140
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 0xc3a03
movl -0x1d8(%rbp), %edi
movq -0x1d0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x248(%rbp), %rdi
movq -0x240(%rbp), %rsi
callq 0x127c0
jmp 0xc3a05
jmp 0xc3a07
movb $0x1, -0x249(%rbp)
movb -0x249(%rbp), %al
andb $0x1, %al
movb %al, -0x1f1(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x1f0(%rbp)
jmp 0xc3a74
movq -0x1e0(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x1d8(%rbp), %edx
movq -0x1d0(%rbp), %rcx
leaq -0x258(%rbp), %r8
callq 0xc33e0
andb $0x1, %al
movb %al, -0x259(%rbp)
movb -0x259(%rbp), %al
andb $0x1, %al
movb %al, -0x1f1(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movb -0x1f1(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x270(%rbp), %rdx
leaq -0x278(%rbp), %rcx
callq 0xbab70
movl %eax, -0x288(%rbp)
movq %rdx, -0x280(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x270(%rbp), %edx
movq -0x268(%rbp), %rcx
leaq -0x290(%rbp), %r8
callq 0xc4080
andb $0x1, %al
movb %al, -0x291(%rbp)
testb $0x1, -0x291(%rbp)
je 0xc3c28
jmp 0xc3aee
movl -0x288(%rbp), %edi
movq -0x280(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movq -0x2b0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xc3c01
movl -0x288(%rbp), %edi
movq -0x280(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2c8(%rbp), %rax
cmpq $0x0, %rax
je 0xc3c01
movl -0x288(%rbp), %edi
movq -0x280(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movq -0x2d8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xc3c01
movl -0x288(%rbp), %edi
movq -0x280(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2e8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xc3bff
movl -0x288(%rbp), %edi
movq -0x280(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2f8(%rbp)
movq %rdx, -0x2f0(%rbp)
movq -0x2f8(%rbp), %rdi
movq -0x2f0(%rbp), %rsi
callq 0x127c0
jmp 0xc3c01
jmp 0xc3c03
movb $0x1, -0x2f9(%rbp)
movb -0x2f9(%rbp), %al
andb $0x1, %al
movb %al, -0x2a1(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x2a0(%rbp)
jmp 0xc3c70
movq -0x290(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x288(%rbp), %edx
movq -0x280(%rbp), %rcx
leaq -0x308(%rbp), %r8
callq 0xc33e0
andb $0x1, %al
movb %al, -0x309(%rbp)
movb -0x309(%rbp), %al
andb $0x1, %al
movb %al, -0x2a1(%rbp)
movq -0x308(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movb -0x2a1(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xc3ca1
leaq 0x2901f2(%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 $0x320, %rsp            # imm = 0x320
popq %rbp
retq
nopw (%rax,%rax)