// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x8, %edx
ja 0xad4f4
movq %r8, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl %edx, %eax
leaq 0x32c0b(%rip), %rdx     # 0xdfea0
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %r15d, %r15d
jmp 0xad4df
leaq -0x50(%rbp), %r12
movq %rcx, %rdi
movq %r12, %rsi
callq 0x381ac
jmp 0xad3c2
movq %rbx, -0x30(%rbp)
leaq -0x50(%rbp), %r12
movq %rcx, %rdi
movq %r12, %rsi
callq 0x38125
movl %eax, %r13d
movq %rdx, %rbx
movl (%r12), %edx
movq 0x8(%r12), %rcx
leaq -0x38(%rbp), %r8
movq %r14, %rdi
movq %r15, %rsi
callq 0xacf0b
testb %al, %al
je 0xad49a
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0xad327
decl (%rax)
jne 0xad327
shlq $0x30, %r13
orq %rbx, %r13
leaq 0x648a2(%rip), %rsi     # 0x111bc1
movq %r13, %rdi
callq 0xd13d
movb $0x1, %r15b
movq -0x38(%rbp), %r14
jmp 0xad4b9
leaq -0x50(%rbp), %r12
leaq -0x38(%rbp), %rdx
movq %rcx, %rdi
movq %r12, %rsi
callq 0x38233
movq %rax, -0x30(%rbp)
movq %rdx, %r13
movl (%r12), %edx
movq 0x8(%r12), %rcx
leaq -0x40(%rbp), %r8
movq %r14, %rdi
movq %r15, %rsi
callq 0xacf0b
testb %al, %al
je 0xad4bf
movq -0x30(%rbp), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r13, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xad3a3
decl (%rax)
jne 0xad3a3
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0x64823(%rip), %rsi     # 0x111bc1
callq 0xd13d
movb $0x1, %r15b
movq -0x40(%rbp), %r14
jmp 0xad4df
leaq -0x50(%rbp), %r12
leaq -0x40(%rbp), %rdx
movq %rcx, %rdi
movq %r12, %rsi
callq 0x382d7
movq %rax, -0x30(%rbp)
movq %rdx, %r13
movl (%r12), %edx
movq 0x8(%r12), %rcx
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %r8
callq 0xacf0b
movq (%r12), %r14
testb %al, %al
je 0xad432
movq -0x30(%rbp), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r13, %rax
sete %cl
testb $0x3, %r13b
setne %dl
movb $0x1, %r15b
orb %cl, %dl
jne 0xad4df
decl (%rax)
jne 0xad4df
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0x64799(%rip), %rsi     # 0x111bc1
callq 0xd13d
jmp 0xad4df
movq %r14, %rdi
movq %r15, %rsi
movq -0x30(%rbp), %rdx
movq %r13, %rcx
movq %r12, %r8
callq 0xad269
movl %eax, %r15d
movq (%r12), %r14
jmp 0xad4df
movq 0x8(%rcx), %r12
decl (%rcx)
jne 0xad463
movq %rcx, %rdi
callq 0x5030
leaq -0x50(%rbp), %r13
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0xad1c6
movl %eax, %r15d
movq (%r13), %r14
jmp 0xad4df
movq 0x8(%rcx), %r12
decl (%rcx)
jne 0xad491
movq %rcx, %rdi
callq 0x5030
cmpq %r15, %r12
sete %r15b
jmp 0xad4df
movq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %r14
movq %r15, %rsi
movl %r13d, %edx
movq %rbx, %rcx
movq %r14, %r8
callq 0xad269
movl %eax, %r15d
movq (%r14), %r14
movq -0x30(%rbp), %rbx
jmp 0xad4df
movq -0x40(%rbp), %rdi
leaq -0x58(%rbp), %r14
movq %r15, %rsi
movq -0x30(%rbp), %rdx
movq %r13, %rcx
movq %r14, %r8
callq 0xad269
movl %eax, %r15d
movq (%r14), %r14
movq %r14, (%rbx)
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x331c0(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x331c5(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302