// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_unifyzeerrorzx
static struct mirth_type_Type mw_mirth_type_Type_unifyzeerrorzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_Type in_Type_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct mirth_type_Type v6 = mw_mirth_type_Type_expand(in_zaMirth_1, in_Type_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_type_Type branch_Type_8;
	switch ((v6).tag) {
		case mirth_type_Type_Error: {
			struct mirth_type_Type v9 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v9;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_Ignore: {
			struct mirth_type_Type v10 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v10;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_Hole: {
			uint64_t v11 = mtp_mirth_type_Type_Hole(v6);
			struct mirth_type_Type v12 = { .tag=mirth_type_Type_Error };
			struct mirth_mirth_zaMirth* v13;
			struct mirth_type_Type v14 = mw_mirth_type_typezeholezeunifyzx(v5, v12, v11, &v13);
			branch_Type_8 = v14;
			branch_zaMirth_7 = v13;
		} break;
		case mirth_type_Type_Meta: {
			uint64_t v15 = mtp_mirth_type_Type_Meta(v6);
			struct mirth_mirth_zaMirth* v16;
			struct mirth_type_Type v17 = mw_mirth_type_MetaVar_unifyzeerrorzx(v5, v15, &v16);
			branch_Type_8 = v17;
			branch_zaMirth_7 = v16;
		} break;
		case mirth_type_Type_Value: {
			struct mirth_type_Value v18 = mtp_mirth_type_Type_Value(v6);
			struct mirth_mirth_zaMirth* v19;
			struct mirth_type_Type v20 = mw_mirth_type_Value_unifyzeerrorzx(v5, v18, &v19);
			branch_Type_8 = v20;
			branch_zaMirth_7 = v19;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v21 = mtp_mirth_type_Type_Var(v6);
			struct mirth_type_Type v22 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v22;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v23 = mtp_mirth_type_Type_Prim(v6);
			struct mirth_type_Type v24 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v24;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v25 = mtp_mirth_type_Type_Data(v6);
			struct mirth_type_Type v26 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v26;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_DataPartial: {
			struct mirth_data_DataPartial* v27 = mtp_mirth_type_Type_DataPartial(v6);
			decref(MK_mirth_data_DataPartial(v27));
			struct mirth_type_Type v28 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v28;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_Table: {
			uint64_t v29 = mtp_mirth_type_Type_Table(v6);
			struct mirth_type_Type v30 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v30;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v31 = mtp_mirth_type_Type_Stack(v6);
			struct mirth_mirth_zaMirth* v32;
			struct mirth_type_StackType v33 = mw_mirth_type_StackType_unifyzeerrorzx(v5, v31, &v32);
			decref(MK_mirth_type_StackType(v33));
			struct mirth_type_Type v34 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v34;
			branch_zaMirth_7 = v32;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v35 = mtp_mirth_type_Type_Arrow(v6);
			struct mirth_mirth_zaMirth* v36;
			struct mirth_type_ArrowType* v37 = mw_mirth_type_ArrowType_unifyzeerrorzx(v5, v35, &v36);
			decref(MK_mirth_type_ArrowType(v37));
			struct mirth_type_Type v38 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v38;
			branch_zaMirth_7 = v36;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v39;
			struct mirth_type_Type v40 = mtp_mirth_type_Type_App(v6, &v39);
			struct mirth_mirth_zaMirth* v41;
			struct mirth_type_Type v42 = mw_mirth_type_Type_unifyzeerrorzx(v5, v40, &v41);
			decref(MK_mirth_type_Type(v42));
			struct mirth_mirth_zaMirth* v43;
			struct mirth_type_Type v44 = mw_mirth_type_Type_unifyzeerrorzx(v41, v39, &v43);
			decref(MK_mirth_type_Type(v44));
			struct mirth_type_Type v45 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v45;
			branch_zaMirth_7 = v43;
		} break;
		case mirth_type_Type_Mut: {
			struct mirth_type_Type v46 = mtp_mirth_type_Type_Mut(v6);
			struct mirth_mirth_zaMirth* v47;
			struct mirth_type_Type v48 = mw_mirth_type_Type_unifyzeerrorzx(v5, v46, &v47);
			decref(MK_mirth_type_Type(v48));
			struct mirth_type_Type v49 = { .tag=mirth_type_Type_Error };
			branch_Type_8 = v49;
			branch_zaMirth_7 = v47;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_Type_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
leaq -0x30(%rbp), %rcx
callq 0x2ab4b
cmpl $0xd, %eax
ja 0x3448b
movl %eax, %eax
leaq 0x9e913(%rip), %rcx     # 0xd2918
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
jmpq *%rax
movq %rdx, %rdi
callq 0x2aa5d
jmp 0x342ec
leaq -0x40(%rbp), %rsi
movq %rdx, %rdi
callq 0x2ad00
movq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rcx
movl %eax, %esi
callq 0x33fd6
leaq 0xd4aa2(%rip), %r14     # 0x108ae9
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x34073
decl (%rcx)
jne 0x34073
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0xce94
movq -0x50(%rbp), %rdi
movl -0x40(%rbp), %esi
movq -0x38(%rbp), %rdx
leaq -0x60(%rbp), %rcx
callq 0x33fd6
andq %rdx, %r15
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x340b0
decl (%r15)
jne 0x340b0
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0xce94
movq -0x60(%rbp), %r15
jmp 0x34163
movq %rdx, %rdi
callq 0x2abd6
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r14
xorl %esi, %esi
xorl %edx, %edx
movq %rax, %rcx
movq %r14, %r8
callq 0x344ca
jmp 0x341bb
movq %rdx, %rdi
callq 0x2ad87
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x33fd6
andq %rdx, %r15
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x3415f
decl (%r15)
jne 0x3415f
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd49d0(%rip), %rsi     # 0x108ae9
jmp 0x34157
movq %rdx, %rdi
callq 0x2acc0
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x34b1c
andq %rdx, %r15
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x3415f
decl (%r15)
jne 0x3415f
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd4a6a(%rip), %rsi     # 0x108bc1
movq %rax, %rdi
callq 0xce94
movq -0x40(%rbp), %r15
xorl %eax, %eax
jmp 0x342f2
movq %rdx, %rdi
callq 0x2aabf
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r14
movq %rax, %rsi
movq %r14, %rdx
callq 0x34656
jmp 0x341bb
movq %rdx, %rdi
callq 0x2ac2d
jmp 0x342ec
movq %rdx, %rdi
callq 0x2abf3
jmp 0x342ec
movq %rdx, %rdi
callq 0x2adc7
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r14
movl %eax, %esi
movq %r14, %rcx
callq 0x349e0
movq (%r14), %r15
jmp 0x342f4
movq %rdx, %rdi
callq 0x2ac10
jmp 0x342ec
movq %rbx, -0x48(%rbp)
movq %rdx, %rdi
callq 0x2ac85
movq %rax, %r14
movq %rax, %rbx
andq %r15, %rbx
setne %cl
testb $0x3, %r14b
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x341f7
incl (%rbx)
movl 0x8(%r14), %r8d
movq 0x10(%r14), %r13
movq %r13, %rcx
andq %r15, %rcx
sete %dl
testb $0x3, %r13b
setne %sil
orb %dl, %sil
jne 0x34217
incl (%rcx)
movq -0x30(%rbp), %r12
testb %al, %al
je 0x3423a
decl (%rbx)
jne 0x3423a
movq %r14, %rdi
leaq 0xd494c(%rip), %rsi     # 0x108b79
movl %r8d, -0x54(%rbp)
callq 0xce94
movl -0x54(%rbp), %r8d
leaq -0x40(%rbp), %rcx
movq %r12, %rdi
movl %r8d, %esi
movq %r13, %rdx
callq 0x34b1c
movl %eax, %r13d
movl (%r14), %r12d
cmpl $0x2, %r12d
jb 0x34306
movq %rdx, %rbx
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0x344a2
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
movq 0x20(%r14), %rdx
movq %rdx, 0x20(%rax)
movl %r13d, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dl
orb %sil, %dl
jne 0x342ad
incl (%rcx)
movl (%r14), %r12d
decl %r12d
movl %r12d, (%r14)
movq %rax, %rbx
andq %r15, %rbx
movq %rax, %r14
jmp 0x34349
movq %rdx, %rdi
callq 0x2ac4a
andq %rax, %r15
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
jne 0x342ec
decl (%r15)
jne 0x342ec
leaq 0xd484d(%rip), %rsi     # 0x108b31
movq %rax, %rdi
callq 0xce94
xorl %eax, %eax
movq -0x30(%rbp), %r15
xorl %edx, %edx
movq %r15, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rcx
movq %rcx, %rax
andq %r15, %rax
sete %sil
testb $0x3, %cl
setne %cl
orb %sil, %cl
jne 0x34341
decl (%rax)
jne 0x34341
movl 0x8(%r14), %edi
shlq $0x30, %rdi
orq 0x10(%r14), %rdi
movq %rdx, %r12
leaq 0xd4888(%rip), %rsi     # 0x108bc1
callq 0xce94
movq %r12, %rdx
movl %r13d, 0x8(%r14)
movq %rdx, 0x10(%r14)
testq %rbx, %rbx
setne %cl
testb $0x3, %r14b
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x3435e
incl (%rbx)
movl 0x18(%r14), %r12d
movq 0x20(%r14), %r13
movq %r13, %rcx
andq %r15, %rcx
sete %dl
testb $0x3, %r13b
setne %sil
orb %dl, %sil
jne 0x3437e
incl (%rcx)
testb %al, %al
je 0x34395
decl (%rbx)
jne 0x34395
movq %r14, %rdi
leaq 0xd47e9(%rip), %rsi     # 0x108b79
callq 0xce94
movq -0x40(%rbp), %rdi
leaq -0x50(%rbp), %rcx
movl %r12d, %esi
movq %r13, %rdx
callq 0x34b1c
movl %eax, %r12d
movl (%r14), %r13d
cmpl $0x2, %r13d
jb 0x3441a
movq %rdx, %rbx
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0x344ab
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rax)
movq 0x20(%r14), %rcx
movq %rcx, 0x20(%rax)
movups %xmm0, (%rax)
movq 0x10(%rax), %rdx
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dl
orb %sil, %dl
jne 0x34401
incl (%rcx)
movl (%r14), %r13d
movl %r12d, 0x18(%rax)
movq %rbx, 0x20(%rax)
decl %r13d
movl %r13d, (%r14)
movq %rax, %rbx
andq %r15, %rbx
movq %rax, %r14
jmp 0x34458
movq 0x20(%r14), %rax
andq %rax, %r15
sete %cl
testb $0x3, %al
setne %al
orb %cl, %al
jne 0x34450
decl (%r15)
jne 0x34450
movl 0x18(%r14), %edi
shlq $0x30, %rdi
orq 0x20(%r14), %rdi
leaq 0xd477c(%rip), %rsi     # 0x108bc1
movq %rdx, %r15
callq 0xce94
movq %r15, %rdx
movl %r12d, 0x18(%r14)
movq %rdx, 0x20(%r14)
movq -0x50(%rbp), %r15
xorl %eax, %eax
testq %rbx, %rbx
je 0x34480
movl %r14d, %ecx
andl $0x3, %ecx
jne 0x34480
decl (%rbx)
jne 0x3447e
movq %r14, %rdi
leaq 0xd4700(%rip), %rsi     # 0x108b79
callq 0xce94
xorl %eax, %eax
xorl %edx, %edx
movq -0x48(%rbp), %rbx
jmp 0x342f4
leaq 0xa037b(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6
leaq 0xa49f1(%rip), %rsi     # 0xd8e9a
jmp 0x344b2
leaq 0xa4a1c(%rip), %rsi     # 0xd8ece
pushq $0x2
popq %rdi
pushq $0x33
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130