// File: /workspace/github_c_makefile_star2_O3/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 0x37fe3
cmpl $0x8, %eax
ja 0x37fb3
movl %eax, %eax
leaq 0xa6c6c(%rip), %rcx     # 0xde970
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
movq -0x20(%rbp), %r14
jmp 0x37fa3
movq 0x8(%rdx), %r14
decl (%rdx)
jne 0x37d28
movq %rdx, %rdi
callq 0x5030
movq -0x20(%rbp), %rdi
leaq -0x38(%rbp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x376fa
movl %eax, %edi
movq %rdx, %rsi
callq 0x38041
movq (%r15), %r14
jmp 0x37fa5
decl (%rdx)
jne 0x37d0d
movq %rdx, %rdi
callq 0x5030
jmp 0x37d0d
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
movq %rdx, %rdi
callq 0x381ac
movq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rcx
movl %eax, %esi
callq 0x37cd9
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x37db0
decl (%rcx)
jne 0x37db0
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd9e19(%rip), %rsi     # 0x111bc1
movq %rax, %rdi
callq 0xd13d
movq -0x28(%rbp), %rdi
jmp 0x37f5e
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
movq %rdx, %rdi
callq 0x38125
movq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rcx
movl %eax, %esi
callq 0x37cd9
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x37e0e
decl (%rcx)
jne 0x37e0e
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd9dbb(%rip), %rsi     # 0x111bc1
movq %rax, %rdi
callq 0xd13d
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
leaq -0x28(%rbp), %rcx
callq 0x36fe3
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x37e4f
decl (%r14)
jne 0x37e4f
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd9ca2(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
movq -0x28(%rbp), %r14
jmp 0x37fa1
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x38233
movq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rcx
movl %eax, %esi
callq 0x37cd9
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x37eb4
decl (%rcx)
jne 0x37eb4
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd9d15(%rip), %rsi     # 0x111bc1
movq %rax, %rdi
callq 0xd13d
movq -0x28(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
leaq -0x48(%rbp), %rcx
callq 0x36fe3
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x37ef5
decl (%r14)
jne 0x37ef5
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd9bfc(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
movq -0x48(%rbp), %r14
jmp 0x37fa1
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
leaq -0x38(%rbp), %rsi
leaq -0x28(%rbp), %rax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x382d7
movq -0x20(%rbp), %rdi
leaq -0x48(%rbp), %rcx
movl %eax, %esi
callq 0x37cd9
movq %rdx, %rcx
andq %r15, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x37f5a
decl (%rcx)
jne 0x37f5a
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd9c6f(%rip), %rsi     # 0x111bc1
movq %rax, %rdi
callq 0xd13d
movq -0x48(%rbp), %rdi
movl -0x38(%rbp), %esi
movq -0x30(%rbp), %rdx
leaq -0x40(%rbp), %r14
movq %r14, %rcx
callq 0x36fe3
movq (%r14), %r14
andq %rdx, %r15
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x37fa1
decl (%r15)
jne 0x37fa1
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd9b50(%rip), %rsi     # 0x111ae9
movq %rax, %rdi
callq 0xd13d
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 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xa8701(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xa8706(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302