// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %rcx, %rbx
leaq -0x30(%rbp), %rcx
callq 0x2e18a
cmpl $0xd, %eax
ja 0x38684
movl %eax, %eax
leaq 0xaa712(%rip), %rcx     # 0xe2904
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x384e8
movq %rdx, %rdi
callq 0x5030
jmp 0x384e8
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq -0x40(%rbp), %rsi
movq %rdx, %rdi
callq 0x2e294
movq -0x30(%rbp), %rdi
leaq -0x48(%rbp), %rcx
movl %eax, %esi
callq 0x381c3
leaq 0xdd8ad(%rip), %r14     # 0x115ae9
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x38268
decl (%rcx)
jne 0x38268
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0xd4e3
movq -0x48(%rbp), %rdi
movl -0x40(%rbp), %esi
movq -0x38(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0x381c3
andq %rdx, %r15
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x382a5
decl (%r15)
jne 0x382a5
shlq $0x30, %rax
orq %rdx, %rax
movq %rax, %rdi
movq %r14, %rsi
callq 0xd4e3
movq -0x50(%rbp), %r15
jmp 0x38348
movq %rdx, %rdi
callq 0x2e31b
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x381c3
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x38344
decl (%rcx)
jne 0x38344
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdd7f5(%rip), %rsi     # 0x115ae9
jmp 0x3833c
movq %rdx, %rdi
callq 0x2e254
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x38e71
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x38344
decl (%rcx)
jne 0x38344
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdd885(%rip), %rsi     # 0x115bc1
movq %rax, %rdi
callq 0xd4e3
movq -0x40(%rbp), %r15
xorl %eax, %eax
jmp 0x384ee
movq 0x8(%rdx), %r14
decl (%rdx)
jne 0x3835f
movq %rdx, %rdi
callq 0x5030
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x3888b
jmp 0x3839b
movq 0x8(%rdx), %r14
decl (%rdx)
jne 0x38384
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 0x386e2
movq (%r15), %r15
jmp 0x384f0
movq %rdx, %rdi
callq 0x2e35b
movq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %r14
movl %eax, %esi
movq %r14, %rcx
callq 0x38cfc
movq (%r14), %r15
jmp 0x384f0
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0x2e219
movq %rax, %r14
andq %r12, %rax
setne %dl
testb $0x3, %r14b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x383f0
incl (%rax)
movl 0x8(%r14), %r15d
movq 0x10(%r14), %r13
movq %r13, %rdx
andq %r12, %rdx
sete %sil
testb $0x3, %r13b
setne %dil
orb %sil, %dil
jne 0x38411
incl (%rdx)
movq -0x30(%rbp), %r12
testb %cl, %cl
je 0x3842c
decl (%rax)
jne 0x3842c
movq %r14, %rdi
leaq 0xdd752(%rip), %rsi     # 0x115b79
callq 0xd4e3
leaq -0x40(%rbp), %rcx
movq %r12, %rdi
movl %r15d, %esi
movq %r13, %rdx
callq 0x38e71
movl %eax, %r13d
movq %rdx, %r15
cmpl $0x2, (%r14)
jb 0x38502
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
testq %rax, %rax
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
je 0x386b4
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
andq %r12, %rcx
sete %sil
testb $0x3, %dl
setne %dl
orb %sil, %dl
jne 0x384a7
incl (%rcx)
decl (%r14)
movq %rax, %r14
jmp 0x38547
movq %rdx, %rdi
callq 0x2e1de
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x384e8
decl (%rcx)
jne 0x384e8
leaq 0xdd651(%rip), %rsi     # 0x115b31
movq %rax, %rdi
callq 0xd4e3
xorl %eax, %eax
movq -0x30(%rbp), %r15
xorl %edx, %edx
movq %r15, (%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r14), %rcx
movq %rcx, %rax
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x3853f
decl (%rax)
jne 0x3853f
movl 0x8(%r14), %edi
shlq $0x30, %rdi
orq 0x10(%r14), %rdi
leaq 0xdd687(%rip), %rsi     # 0x115bc1
callq 0xd4e3
movl %r13d, 0x8(%r14)
movq %r15, 0x10(%r14)
movq %r14, %rax
andq %r12, %rax
setne %dl
testb $0x3, %r14b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x38560
incl (%rax)
movl 0x18(%r14), %r15d
movq 0x20(%r14), %r13
movq %r13, %rdx
andq %r12, %rdx
sete %sil
testb $0x3, %r13b
setne %dil
orb %sil, %dil
jne 0x38581
incl (%rdx)
testb %cl, %cl
je 0x38598
decl (%rax)
jne 0x38598
movq %r14, %rdi
leaq 0xdd5e6(%rip), %rsi     # 0x115b79
callq 0xd4e3
movq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rcx
movl %r15d, %esi
movq %r13, %rdx
callq 0x38e71
movl %eax, %r15d
movq %rdx, %r13
cmpl $0x2, (%r14)
jb 0x38612
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
testq %rax, %rax
je 0x386bd
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 %r12, %rcx
sete %sil
testb $0x3, %dl
setne %dl
orb %sil, %dl
jne 0x38602
incl (%rcx)
movl %r15d, 0x18(%rax)
movq %r13, 0x20(%rax)
decl (%r14)
movq %rax, %r14
jmp 0x3864d
movq 0x20(%r14), %rcx
movq %rcx, %rax
andq %r12, %rax
sete %dl
testb $0x3, %cl
setne %cl
orb %dl, %cl
jne 0x38645
decl (%rax)
jne 0x38645
movl 0x18(%r14), %edi
shlq $0x30, %rdi
orq 0x20(%r14), %rdi
leaq 0xdd581(%rip), %rsi     # 0x115bc1
callq 0xd4e3
movl %r15d, 0x18(%r14)
movq %r13, 0x20(%r14)
movq -0x48(%rbp), %r15
andq %r14, %r12
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x38348
decl (%r12)
jne 0x38348
movq %r14, %rdi
leaq 0xdd4ff(%rip), %rsi     # 0x115b79
callq 0xd4e3
jmp 0x38348
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xac0b0(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xac0b5(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
leaq 0xb076a(%rip), %rsi     # 0xe8e25
jmp 0x386c4
leaq 0xb0795(%rip), %rsi     # 0xe8e59
movl $0x33, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130