// File: /workspace/github_c_makefile_star2_O3/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 0x2d4cc
cmpl $0xd, %eax
ja 0x374f9
movl %eax, %eax
leaq 0xa7906(%rip), %rcx     # 0xde918
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x37325
movq %rdx, %rdi
callq 0x5030
jmp 0x37325
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq -0x40(%rbp), %rsi
movq %rdx, %rdi
callq 0x2d5d6
movq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rcx
movl %eax, %esi
callq 0x36fe3
leaq 0xdaa8d(%rip), %r14     # 0x111ae9
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x37088
decl (%rcx)
jne 0x37088
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0xd13d
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %esi
movq -0x38(%rbp), %rdx
leaq -0x58(%rbp), %rcx
callq 0x36fe3
andq %rdx, %r15
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x370c5
decl (%r15)
jne 0x370c5
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0xd13d
movq -0x58(%rbp), %r12
jmp 0x37168
movq %rdx, %rdi
callq 0x2d65d
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x36fe3
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x37164
decl (%rcx)
jne 0x37164
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xda9d5(%rip), %rsi     # 0x111ae9
jmp 0x3715c
movq %rdx, %rdi
callq 0x2d596
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x37cd9
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x37164
decl (%rcx)
jne 0x37164
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdaa65(%rip), %rsi     # 0x111bc1
movq %rax, %rdi
callq 0xd13d
movq -0x40(%rbp), %r12
xorl %eax, %eax
jmp 0x3732b
movq 0x8(%rdx), %r14
decl (%rdx)
jne 0x3717f
movq %rdx, %rdi
callq 0x5030
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x376fa
jmp 0x371bb
movq 0x8(%rdx), %r14
decl (%rdx)
jne 0x371a4
movq %rdx, %rdi
callq 0x5030
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r15
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %rcx
movq %r15, %r8
callq 0x37557
movq (%r15), %r12
jmp 0x3732d
movq %rdx, %rdi
callq 0x2d69d
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r14
movl %eax, %esi
movq %r14, %rcx
callq 0x37b64
movq (%r14), %r12
jmp 0x3732d
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0x2d55b
movq %r14, %rdx
movq %rax, %r14
movq %rax, %r15
andq %rdx, %r15
setne %cl
testb $0x3, %r14b
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x37216
incl (%r15)
movl 0x8(%r14), %r8d
movq 0x10(%r14), %r13
movq %r13, %rcx
andq %rdx, %rcx
sete %dl
testb $0x3, %r13b
setne %sil
orb %dl, %sil
jne 0x37236
incl (%rcx)
movq -0x30(%rbp), %r12
testb %al, %al
je 0x3725a
decl (%r15)
jne 0x3725a
movq %r14, %rdi
leaq 0xda92c(%rip), %rsi     # 0x111b79
movl %r8d, -0x4c(%rbp)
callq 0xd13d
movl -0x4c(%rbp), %r8d
leaq -0x40(%rbp), %rcx
movq %r12, %rdi
movl %r8d, %esi
movq %r13, %rdx
callq 0x37cd9
movl %eax, %r13d
movl (%r14), %r12d
cmpl $0x2, %r12d
jb 0x3733f
movq %rdx, %r15
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
testq %rax, %rax
je 0x37529
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 %r15, 0x10(%rax)
movq %rdx, %rcx
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rcx
sete %sil
testb $0x3, %dl
setne %dl
orb %sil, %dl
jne 0x372db
incl (%rcx)
movl (%r14), %r12d
decl %r12d
movl %r12d, (%r14)
movq %rax, %r15
andq %rdi, %r15
movq %rax, %r14
jmp 0x37396
movq %rdx, %rdi
callq 0x2d520
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x37325
decl (%rcx)
jne 0x37325
leaq 0xda814(%rip), %rsi     # 0x111b31
movq %rax, %rdi
callq 0xd13d
xorl %eax, %eax
movq -0x30(%rbp), %r12
xorl %edx, %edx
movq %r12, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rcx
movq %rcx, %rax
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %sil
testb $0x3, %cl
setne %cl
orb %sil, %cl
jne 0x3738e
decl (%rax)
jne 0x3738e
movl 0x8(%r14), %edi
shlq $0x30, %rdi
orq 0x10(%r14), %rdi
movq %rdx, %r12
leaq 0xda845(%rip), %rsi     # 0x111bc1
callq 0xd13d
movq %r12, %rdx
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
movl %r13d, 0x8(%r14)
movq %rdx, 0x10(%r14)
testq %r15, %r15
setne %cl
testb $0x3, %r14b
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x373ac
incl (%r15)
movl 0x18(%r14), %r12d
movq 0x20(%r14), %r13
movq %r13, %rcx
andq %rdi, %rcx
sete %dl
testb $0x3, %r13b
setne %sil
orb %dl, %sil
jne 0x373cc
incl (%rcx)
testb %al, %al
je 0x373e4
decl (%r15)
jne 0x373e4
movq %r14, %rdi
leaq 0xda79a(%rip), %rsi     # 0x111b79
callq 0xd13d
movq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rcx
movl %r12d, %esi
movq %r13, %rdx
callq 0x37cd9
movl %eax, %r12d
movq %rdx, %rsi
movl (%r14), %r13d
cmpl $0x2, %r13d
jb 0x3747a
movq %rsi, %r15
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
testq %rax, %rax
je 0x37532
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
movabsq $0xfffffffffffc, %rdi   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rcx
sete %sil
testb $0x3, %dl
setne %dl
orb %sil, %dl
jne 0x37461
incl (%rcx)
movl (%r14), %r13d
movl %r12d, 0x18(%rax)
movq %r15, 0x20(%rax)
decl %r13d
movl %r13d, (%r14)
movq %rax, %r15
andq %rdi, %r15
movq %rax, %r14
jmp 0x374c1
movq 0x20(%r14), %rax
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rdx
sete %cl
testb $0x3, %al
setne %al
orb %cl, %al
jne 0x374b9
decl (%rdx)
jne 0x374b9
movl 0x18(%r14), %edi
shlq $0x30, %rdi
orq 0x20(%r14), %rdi
movq %rsi, %r13
leaq 0xda710(%rip), %rsi     # 0x111bc1
callq 0xd13d
movq %r13, %rsi
movl %r12d, 0x18(%r14)
movq %rsi, 0x20(%r14)
movq -0x48(%rbp), %r12
xorl %eax, %eax
testq %r15, %r15
je 0x3732b
movl %r14d, %ecx
andl $0x3, %ecx
jne 0x3732b
decl (%r15)
jne 0x37168
movq %r14, %rdi
leaq 0xda68a(%rip), %rsi     # 0x111b79
callq 0xd13d
jmp 0x37168
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xa91bb(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xa91c0(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
leaq 0xad7c4(%rip), %rsi     # 0xe4cf4
jmp 0x37539
leaq 0xad7ef(%rip), %rsi     # 0xe4d28
movl $0x33, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130