// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_unifyzeerrorzx
static struct mirth_type_StackType mw_mirth_type_StackType_unifyzeerrorzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct mirth_type_StackType v6 = mw_mirth_type_StackType_expand(in_zaMirth_1, in_StackType_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_type_StackType branch_StackType_8;
	switch ((v6).tag) {
		case mirth_type_StackType_Error: {
			struct mirth_type_StackType v9 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v9;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Unit: {
			struct mirth_type_StackType v10 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v10;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Ignore: {
			struct mirth_type_StackType v11 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v11;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Meta: {
			uint64_t v12 = mtp_mirth_type_StackType_Meta(v6);
			struct mirth_mirth_zaMirth* v13;
			struct mirth_type_Type v14 = mw_mirth_type_MetaVar_unifyzeerrorzx(v5, v12, &v13);
			struct mirth_type_StackType v15 = mw_mirth_type_Type_zgStackType(v14);
			branch_StackType_8 = v15;
			branch_zaMirth_7 = v13;
		} break;
		case mirth_type_StackType_Var: {
			uint64_t v16 = mtp_mirth_type_StackType_Var(v6);
			struct mirth_type_StackType v17 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v17;
			branch_zaMirth_7 = v5;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v18;
			struct mirth_type_StackType v19 = mtp_mirth_type_StackType_Cons(v6, &v18);
			struct mirth_mirth_zaMirth* v20;
			struct mirth_type_StackType v21 = mw_mirth_type_StackType_unifyzeerrorzx(v5, v19, &v20);
			decref(MK_mirth_type_StackType(v21));
			struct mirth_mirth_zaMirth* v22;
			struct mirth_type_Type v23 = mw_mirth_type_Type_unifyzeerrorzx(v20, v18, &v22);
			decref(MK_mirth_type_Type(v23));
			struct mirth_type_StackType v24 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v24;
			branch_zaMirth_7 = v22;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v25;
			struct mirth_type_StackType v26 = mtp_mirth_type_StackType_With(v6, &v25);
			struct mirth_mirth_zaMirth* v27;
			struct mirth_type_StackType v28 = mw_mirth_type_StackType_unifyzeerrorzx(v5, v26, &v27);
			decref(MK_mirth_type_StackType(v28));
			struct mirth_mirth_zaMirth* v29;
			struct mirth_type_Type v30 = mw_mirth_type_Resource_unifyzeerrorzx(v27, v25, &v29);
			decref(MK_mirth_type_Type(v30));
			struct mirth_type_StackType v31 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v31;
			branch_zaMirth_7 = v29;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v32;
			uint64_t v33;
			struct mirth_type_StackType v34 = mtp_mirth_type_StackType_ConsLabel(v6, &v32, &v33);
			struct mirth_mirth_zaMirth* v35;
			struct mirth_type_StackType v36 = mw_mirth_type_StackType_unifyzeerrorzx(v5, v34, &v35);
			decref(MK_mirth_type_StackType(v36));
			struct mirth_mirth_zaMirth* v37;
			struct mirth_type_Type v38 = mw_mirth_type_Type_unifyzeerrorzx(v35, v32, &v37);
			decref(MK_mirth_type_Type(v38));
			struct mirth_type_StackType v39 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v39;
			branch_zaMirth_7 = v37;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v40;
			uint64_t v41;
			struct mirth_type_StackType v42 = mtp_mirth_type_StackType_WithLabel(v6, &v40, &v41);
			struct mirth_mirth_zaMirth* v43;
			struct mirth_type_StackType v44 = mw_mirth_type_StackType_unifyzeerrorzx(v5, v42, &v43);
			decref(MK_mirth_type_StackType(v44));
			struct mirth_mirth_zaMirth* v45;
			struct mirth_type_Type v46 = mw_mirth_type_Resource_unifyzeerrorzx(v43, v40, &v45);
			decref(MK_mirth_type_Type(v46));
			struct mirth_type_StackType v47 = { .tag=mirth_type_StackType_Error };
			branch_StackType_8 = v47;
			branch_zaMirth_7 = v45;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_StackType_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
leaq -0x20(%rbp), %rcx
callq 0x3917b
cmpl $0x8, %eax
ja 0x3914b
movl %eax, %eax
leaq 0xa9ac0(%rip), %rcx     # 0xe295c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
movq -0x20(%rbp), %r14
jmp 0x3913b
movq 0x8(%rdx), %r14
decl (%rdx)
jne 0x38ec0
movq %rdx, %rdi
callq 0x5030
movq -0x20(%rbp), %rdi
leaq -0x38(%rbp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x3888b
movl %eax, %edi
movq %rdx, %rsi
callq 0x391d9
movq (%r15), %r14
jmp 0x3913d
decl (%rdx)
jne 0x38ea5
movq %rdx, %rdi
callq 0x5030
jmp 0x38ea5
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
movq %rdx, %rdi
callq 0x39346
movq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rcx
movl %eax, %esi
callq 0x38e71
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x38f48
decl (%rcx)
jne 0x38f48
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdcc81(%rip), %rsi     # 0x115bc1
movq %rax, %rdi
callq 0xd4e3
movq -0x28(%rbp), %rdi
jmp 0x390f6
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
movq %rdx, %rdi
callq 0x392bf
movq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x38e71
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x38fa6
decl (%rcx)
jne 0x38fa6
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdcc23(%rip), %rsi     # 0x115bc1
movq %rax, %rdi
callq 0xd4e3
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
leaq -0x28(%rbp), %rcx
callq 0x381c3
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x38fe7
decl (%r14)
jne 0x38fe7
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdcb0a(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
movq -0x28(%rbp), %r14
jmp 0x39139
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x393cd
movq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rcx
movl %eax, %esi
callq 0x38e71
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x3904c
decl (%rcx)
jne 0x3904c
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdcb7d(%rip), %rsi     # 0x115bc1
movq %rax, %rdi
callq 0xd4e3
movq -0x28(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
leaq -0x48(%rbp), %rcx
callq 0x381c3
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x3908d
decl (%r14)
jne 0x3908d
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdca64(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
movq -0x48(%rbp), %r14
jmp 0x39139
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
leaq -0x28(%rbp), %rax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x39471
movq -0x20(%rbp), %rdi
leaq -0x48(%rbp), %rcx
movl %eax, %esi
callq 0x38e71
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x390f2
decl (%rcx)
jne 0x390f2
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdcad7(%rip), %rsi     # 0x115bc1
movq %rax, %rdi
callq 0xd4e3
movq -0x48(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %r14
movq %r14, %rcx
callq 0x381c3
movq (%r14), %r14
andq %rdx, %r15
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x39139
decl (%r15)
jne 0x39139
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xdc9b8(%rip), %rsi     # 0x115ae9
movq %rax, %rdi
callq 0xd4e3
xorl %eax, %eax
xorl %edx, %edx
movq %r14, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xab5e9(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xab5ee(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5