// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_haszevarzy
static bool mw_mirth_type_Type_haszevarzy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Var_2, struct mirth_type_Type in_Type_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	bool branch_Bool_7;
	switch ((in_Type_3).tag) {
		case mirth_type_Type_Error: {
			bool v8 = true;
			branch_Bool_7 = v8;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Ignore: {
			bool v9 = true;
			branch_Bool_7 = v9;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v10 = mtp_mirth_type_Type_Var(in_Type_3);
			uint64_t v11 = v10;
			uint64_t v12 = in_Var_2;
			bool v13 = (v11 == v12);
			branch_Bool_7 = v13;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Meta: {
			uint64_t v14 = mtp_mirth_type_Type_Meta(in_Type_3);
			struct mirth_mirth_zaMirth* v15;
			bool v16 = mw_mirth_type_MetaVar_haszevarzy(in_zaMirth_1, in_Var_2, v14, &v15);
			branch_Bool_7 = v16;
			branch_zaMirth_6 = v15;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v17 = mtp_mirth_type_Type_Prim(in_Type_3);
			bool v18 = false;
			branch_Bool_7 = v18;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Hole: {
			uint64_t v19 = mtp_mirth_type_Type_Hole(in_Type_3);
			bool v20 = false;
			branch_Bool_7 = v20;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v21 = mtp_mirth_type_Type_Stack(in_Type_3);
			struct mirth_mirth_zaMirth* v22;
			bool v23 = mw_mirth_type_StackType_haszevarzy(in_zaMirth_1, in_Var_2, v21, &v22);
			branch_Bool_7 = v23;
			branch_zaMirth_6 = v22;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v24 = mtp_mirth_type_Type_Arrow(in_Type_3);
			struct mirth_mirth_zaMirth* v25;
			bool v26 = mw_mirth_type_ArrowType_haszevarzy(in_zaMirth_1, in_Var_2, v24, &v25);
			branch_Bool_7 = v26;
			branch_zaMirth_6 = v25;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v27;
			struct mirth_type_Type v28 = mtp_mirth_type_Type_App(in_Type_3, &v27);
			struct mirth_mirth_zaMirth* v29;
			bool v30 = mw_mirth_type_Type_haszevar2zy(in_zaMirth_1, in_Var_2, v28, v27, &v29);
			branch_Bool_7 = v30;
			branch_zaMirth_6 = v29;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v31 = mtp_mirth_type_Type_Data(in_Type_3);
			bool v32 = false;
			branch_Bool_7 = v32;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_DataPartial: {
			struct mirth_data_DataPartial* v33 = mtp_mirth_type_Type_DataPartial(in_Type_3);
			decref(MK_mirth_data_DataPartial(v33));
			bool v34 = false;
			branch_Bool_7 = v34;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Table: {
			uint64_t v35 = mtp_mirth_type_Type_Table(in_Type_3);
			bool v36 = false;
			branch_Bool_7 = v36;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Value: {
			struct mirth_type_Value v37 = mtp_mirth_type_Type_Value(in_Type_3);
			struct mirth_mirth_zaMirth* v38;
			bool v39 = mw_mirth_type_Value_haszevarzy(in_zaMirth_1, in_Var_2, v37, &v38);
			branch_Bool_7 = v39;
			branch_zaMirth_6 = v38;
		} break;
		case mirth_type_Type_Mut: {
			struct mirth_type_Type v40 = mtp_mirth_type_Type_Mut(in_Type_3);
			struct mirth_mirth_zaMirth* v41;
			bool v42 = mw_mirth_type_Type_haszevarzy(in_zaMirth_1, in_Var_2, v40, &v41);
			branch_Bool_7 = v42;
			branch_zaMirth_6 = v41;
		} 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 $0x48, %rsp
cmpl $0xd, %edx
ja 0xad196
movq %r8, %rbx
movq %rsi, %r12
movq %rdi, %r14
movb $0x1, %r15b
movl %edx, %eax
leaq 0x32f2e(%rip), %rdx     # 0xdfe68
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
decl (%rcx)
jne 0xad13f
movq %rcx, %rdi
callq 0x5030
jmp 0xad13f
leaq -0x60(%rbp), %r13
movq %rcx, %rdi
movq %r13, %rsi
callq 0x2d5d6
movq %rax, -0x48(%rbp)
movq %rdx, -0x50(%rbp)
movl (%r13), %edx
movq 0x8(%r13), %rcx
leaq -0x38(%rbp), %r8
movq %r14, %rdi
movq %r12, %rsi
callq 0xacf0b
testb %al, %al
je 0xad144
movq -0x48(%rbp), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq -0x50(%rbp), %rsi
andq %rsi, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xacfc8
decl (%rax)
jne 0xacfc8
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0x64b26(%rip), %rsi     # 0x111ae9
callq 0xd13d
movq -0x38(%rbp), %r14
jmp 0xad181
movq %rcx, %rdi
callq 0x2d65d
movq %rdx, %rcx
leaq -0x60(%rbp), %r13
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
movq %r13, %r8
callq 0xacf0b
jmp 0xad084
movq %rcx, %rdi
callq 0x2d596
movq %rdx, %rcx
leaq -0x60(%rbp), %r13
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
movq %r13, %r8
callq 0xad269
jmp 0xad084
movq 0x8(%rcx), %r15
decl (%rcx)
jne 0xad026
movq %rcx, %rdi
callq 0x5030
cmpq %r12, %r15
sete %r15b
jmp 0xad181
movq %rcx, %rdi
callq 0x2d69d
leaq -0x60(%rbp), %r15
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rcx
callq 0x39cf8
movq %rdx, %rcx
movq (%r15), %rdi
leaq -0x38(%rbp), %r14
movq %r12, %rsi
movl %eax, %edx
jmp 0xad157
movq 0x8(%rcx), %r15
decl (%rcx)
jne 0xad06f
movq %rcx, %rdi
callq 0x5030
leaq -0x60(%rbp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0xad1c6
movl %eax, %r15d
movq (%r13), %r14
jmp 0xad181
movq %rcx, %rdi
callq 0x2d55b
leaq -0x60(%rbp), %r13
leaq -0x38(%rbp), %rdx
movq %rax, %rdi
movq %r13, %rsi
callq 0x3a145
movl (%r13), %edx
movq 0x8(%r13), %rcx
leaq -0x40(%rbp), %r8
movq %r14, %rdi
movq %r12, %rsi
callq 0xad269
testb %al, %al
je 0xad161
movq -0x30(%rbp), %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0xad103
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0xad103
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x64ac3(%rip), %rsi     # 0x111bc1
callq 0xd13d
movq -0x40(%rbp), %r14
jmp 0xad181
movq %rcx, %rdi
callq 0x2d520
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0xad13f
decl (%rcx)
jne 0xad13f
leaq 0x649fa(%rip), %rsi     # 0x111b31
movq %rax, %rdi
callq 0xd13d
xorl %r15d, %r15d
jmp 0xad181
movq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %r14
movq %r12, %rsi
movq -0x48(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq %r14, %r8
callq 0xacf0b
jmp 0xad17b
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %edx
movq -0x30(%rbp), %rcx
leaq -0x68(%rbp), %r14
movq %r12, %rsi
movq %r14, %r8
callq 0xad269
movl %eax, %r15d
movq (%r14), %r14
movq %r14, (%rbx)
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x3351e(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x33523(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302