// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x30, %rsp
movq %rcx, %rbx
leaq -0x18(%rbp), %rcx
callq 0x34dd2
cmpl $0x8, %eax
ja 0x34dbb
movl %eax, %eax
leaq 0x9de2b(%rip), %rcx     # 0xd2970
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdx, %rdi
callq 0x34edb
xorl %eax, %eax
movq -0x18(%rbp), %rcx
jmp 0x34dad
movq %rdx, %rdi
callq 0x34e20
movq -0x18(%rbp), %rdi
leaq -0x30(%rbp), %r14
movq %rax, %rsi
movq %r14, %rdx
callq 0x34656
movl %eax, %edi
movq %rdx, %rsi
callq 0x34e3d
movq (%r14), %rcx
jmp 0x34daf
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x30(%rbp), %rsi
movq %rdx, %rdi
callq 0x34f7f
movq -0x18(%rbp), %rdi
leaq -0x38(%rbp), %rcx
movl %eax, %esi
callq 0x34b1c
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x34be3
decl (%rcx)
jne 0x34be3
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd3fe6(%rip), %rsi     # 0x108bc1
movq %rax, %rdi
callq 0xce94
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x35006
jmp 0x34c62
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x30(%rbp), %rsi
movq %rdx, %rdi
callq 0x34ef8
movq -0x18(%rbp), %rdi
leaq -0x38(%rbp), %rcx
movl %eax, %esi
callq 0x34b1c
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x34c4e
decl (%rcx)
jne 0x34c4e
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd3f7b(%rip), %rsi     # 0x108bc1
movq %rax, %rdi
callq 0xce94
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x33fd6
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x34c8f
decl (%r14)
jne 0x34c8f
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd3e62(%rip), %rsi     # 0x108ae9
movq %rax, %rdi
callq 0xce94
movq -0x20(%rbp), %rcx
jmp 0x34dab
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x30(%rbp), %rsi
leaq -0x38(%rbp), %rax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x3502f
movq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rcx
movl %eax, %esi
callq 0x34b1c
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x34cf4
decl (%rcx)
jne 0x34cf4
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd3ed5(%rip), %rsi     # 0x108bc1
movq %rax, %rdi
callq 0xce94
movq -0x20(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x33fd6
jmp 0x34d7a
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x30(%rbp), %rsi
leaq -0x38(%rbp), %rax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x350d3
movq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rcx
movl %eax, %esi
callq 0x34b1c
movq %rdx, %rcx
andq %r14, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x34d66
decl (%rcx)
jne 0x34d66
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd3e63(%rip), %rsi     # 0x108bc1
movq %rax, %rdi
callq 0xce94
movq -0x20(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x35006
andq %rdx, %r14
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x34da7
decl (%r14)
jne 0x34da7
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xd3d4a(%rip), %rsi     # 0x108ae9
movq %rax, %rdi
callq 0xce94
movq -0x40(%rbp), %rcx
xorl %eax, %eax
xorl %edx, %edx
movq %rcx, (%rbx)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x9fa4b(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6