// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_haszemetazy
static bool mw_mirth_type_Type_haszemetazy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_MetaVar_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_Meta: {
			uint64_t v8 = mtp_mirth_type_Type_Meta(in_Type_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_Type_Error: {
			bool v11 = false;
			branch_Bool_7 = v11;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Ignore: {
			bool v12 = false;
			branch_Bool_7 = v12;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v13 = mtp_mirth_type_Type_Prim(in_Type_3);
			bool v14 = false;
			branch_Bool_7 = v14;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v15 = mtp_mirth_type_Type_Var(in_Type_3);
			bool v16 = false;
			branch_Bool_7 = v16;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Hole: {
			uint64_t v17 = mtp_mirth_type_Type_Hole(in_Type_3);
			bool v18 = false;
			branch_Bool_7 = v18;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v19 = mtp_mirth_type_Type_Stack(in_Type_3);
			struct mirth_mirth_zaMirth* v20;
			bool v21 = mw_mirth_type_StackType_haszemetazy(in_zaMirth_1, in_MetaVar_2, v19, &v20);
			branch_Bool_7 = v21;
			branch_zaMirth_6 = v20;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v22 = mtp_mirth_type_Type_Arrow(in_Type_3);
			struct mirth_mirth_zaMirth* v23;
			bool v24 = mw_mirth_type_ArrowType_haszemetazy(in_zaMirth_1, in_MetaVar_2, v22, &v23);
			branch_Bool_7 = v24;
			branch_zaMirth_6 = v23;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v25;
			struct mirth_type_Type v26 = mtp_mirth_type_Type_App(in_Type_3, &v25);
			struct mirth_mirth_zaMirth* v27;
			bool v28 = mw_mirth_type_Type_haszemeta2zy(in_zaMirth_1, in_MetaVar_2, v26, v25, &v27);
			branch_Bool_7 = v28;
			branch_zaMirth_6 = v27;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v29 = mtp_mirth_type_Type_Data(in_Type_3);
			bool v30 = false;
			branch_Bool_7 = v30;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_DataPartial: {
			struct mirth_data_DataPartial* v31 = mtp_mirth_type_Type_DataPartial(in_Type_3);
			decref(MK_mirth_data_DataPartial(v31));
			bool v32 = false;
			branch_Bool_7 = v32;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Table: {
			uint64_t v33 = mtp_mirth_type_Type_Table(in_Type_3);
			bool v34 = false;
			branch_Bool_7 = v34;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Value: {
			struct mirth_type_Value v35 = mtp_mirth_type_Type_Value(in_Type_3);
			struct mirth_mirth_zaMirth* v36;
			bool v37 = mw_mirth_type_Value_haszemetazy(in_zaMirth_1, in_MetaVar_2, v35, &v36);
			branch_Bool_7 = v37;
			branch_zaMirth_6 = v36;
		} break;
		case mirth_type_Type_Mut: {
			struct mirth_type_Type v38 = mtp_mirth_type_Type_Mut(in_Type_3);
			struct mirth_mirth_zaMirth* v39;
			bool v40 = mw_mirth_type_Type_haszemetazy(in_zaMirth_1, in_MetaVar_2, v38, &v39);
			branch_Bool_7 = v40;
			branch_zaMirth_6 = v39;
		} 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 $0xd, %edx
ja 0x3a66d
movq %r8, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl %edx, %eax
leaq 0xa460a(%rip), %rdx     # 0xdea3c
movslq (%rdx,%rax,4), %rax
addq %rdx, %rax
jmpq *%rax
decl (%rcx)
jne 0x3a61e
movq %rcx, %rdi
callq 0x5030
jmp 0x3a61e
leaq -0x58(%rbp), %r12
movq %rcx, %rdi
movq %r12, %rsi
callq 0x2d5d6
movq %rax, -0x48(%rbp)
movq %rdx, %r13
movl (%r12), %edx
movq 0x8(%r12), %rcx
leaq -0x38(%rbp), %r8
movq %r14, %rdi
movq %r15, %rsi
callq 0x3a406
testb %al, %al
je 0x3a632
movq -0x48(%rbp), %rdi
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r13, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x3a4bc
decl (%rax)
jne 0x3a4bc
shlq $0x30, %rdi
orq %r13, %rdi
leaq 0xd7632(%rip), %rsi     # 0x111ae9
callq 0xd13d
movb $0x1, %al
movq -0x38(%rbp), %r14
jmp 0x3a620
movq %rcx, %rdi
callq 0x2d65d
movq %rdx, %rcx
leaq -0x58(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
movq %r12, %r8
callq 0x3a406
jmp 0x3a507
movq %rcx, %rdi
callq 0x2d596
movq %rdx, %rcx
leaq -0x58(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
movq %r12, %r8
callq 0x3a8d0
movq (%r12), %r14
jmp 0x3a620
movq 0x8(%rcx), %r12
decl (%rcx)
jne 0x3a520
movq %rcx, %rdi
callq 0x5030
leaq -0x58(%rbp), %r13
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x3a829
movq (%r13), %r14
jmp 0x3a620
movq %rcx, %rdi
callq 0x2d69d
leaq -0x58(%rbp), %r12
movq %r14, %rdi
movl %eax, %esi
movq %r12, %rcx
callq 0x39cf8
movq %rdx, %rcx
movq (%r12), %rdi
leaq -0x38(%rbp), %r14
movq %r15, %rsi
movl %eax, %edx
jmp 0x3a644
movq %rcx, %rdi
callq 0x2d55b
leaq -0x58(%rbp), %r12
leaq -0x38(%rbp), %rdx
movq %rax, %rdi
movq %r12, %rsi
callq 0x3a145
movl (%r12), %edx
movq 0x8(%r12), %rcx
leaq -0x40(%rbp), %r8
movq %r14, %rdi
movq %r15, %rsi
callq 0x3a8d0
testb %al, %al
je 0x3a64e
movq -0x30(%rbp), %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x3a5e0
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0x3a5e0
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0xd75e6(%rip), %rsi     # 0x111bc1
callq 0xd13d
movb $0x1, %al
movq -0x40(%rbp), %r14
jmp 0x3a620
movq %rcx, %rdi
callq 0x2d520
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x3a61e
decl (%rcx)
jne 0x3a61e
leaq 0xd751b(%rip), %rsi     # 0x111b31
movq %rax, %rdi
callq 0xd13d
xorl %eax, %eax
movq %r14, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %r14
movq %r15, %rsi
movq -0x48(%rbp), %rdx
movq %r13, %rcx
movq %r14, %r8
callq 0x3a406
jmp 0x3a668
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %edx
movq -0x30(%rbp), %rcx
leaq -0x60(%rbp), %r14
movq %r15, %rsi
movq %r14, %r8
callq 0x3a8d0
movq (%r14), %r14
jmp 0x3a620
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xa6047(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xa604c(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302