// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Value_unifyzetypezx
static struct mirth_type_Type mw_mirth_type_Value_unifyzetypezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_Type in_Type_2, struct mirth_type_Value in_Value_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	struct mirth_type_Type branch_Type_7;
	switch ((in_Value_3).tag) {
		case mirth_type_Value_Int: {
			INT v8 = mtp_mirth_type_Value_Int(in_Value_3);
			decref(MKINT(v8));
			struct mirth_type_Type v9 = mw_mirth_type_Type_Int();
			struct mirth_mirth_zaMirth* v10;
			struct mirth_type_Type v11 = mw_mirth_type_Type_unifyzx(in_zaMirth_1, in_Type_2, v9, &v10);
			branch_Type_7 = v11;
			branch_zaMirth_6 = v10;
		} break;
		case mirth_type_Value_Str: {
			STR* v12 = mtp_mirth_type_Value_Str(in_Value_3);
			decref(MKSTR(v12));
			struct mirth_type_Type v13 = mw_mirth_type_Type_Str();
			struct mirth_mirth_zaMirth* v14;
			struct mirth_type_Type v15 = mw_mirth_type_Type_unifyzx(in_zaMirth_1, in_Type_2, v13, &v14);
			branch_Type_7 = v15;
			branch_zaMirth_6 = v14;
		} break;
		case mirth_type_Value_F64: {
			double v16 = mtp_mirth_type_Value_F64(in_Value_3);
			struct mirth_type_Type v17 = mw_mirth_type_Type_F64();
			struct mirth_mirth_zaMirth* v18;
			struct mirth_type_Type v19 = mw_mirth_type_Type_unifyzx(in_zaMirth_1, in_Type_2, v17, &v18);
			branch_Type_7 = v19;
			branch_zaMirth_6 = v18;
		} break;
		case mirth_type_Value_Block: {
			uint64_t v20 = mtp_mirth_type_Value_Block(in_Value_3);
			struct mirth_mirth_zaMirth* v21;
			struct mirth_type_Type v22 = mw_mirth_type_Type_unifyzeblockzx(in_zaMirth_1, v20, in_Type_2, &v21);
			branch_Type_7 = v22;
			branch_zaMirth_6 = v21;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_4 = branch_zaMirth_6;
	return branch_Type_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x3, %ecx
ja 0x349c9
movq %r9, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movl %ecx, %eax
leaq 0x9e06a(%rip), %rcx     # 0xd2950
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r8, %rdi
callq 0x2af3e
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x34925
decl (%rcx)
jne 0x34925
leaq 0xd3b0c(%rip), %rsi     # 0x108429
movq %rax, %rdi
callq 0xce94
callq 0x3707e
jmp 0x34998
movq %r8, %rdi
callq 0x2afa0
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x34962
decl (%rcx)
jne 0x34962
leaq 0xd37ff(%rip), %rsi     # 0x108159
movq %rax, %rdi
callq 0xce94
callq 0x3709c
jmp 0x34998
movq %r8, %rdi
callq 0x2afdb
leaq -0x30(%rbp), %r13
movq %r12, %rdi
movq %rax, %rsi
movl %r15d, %edx
movq %r14, %rcx
movq %r13, %r8
callq 0x37895
jmp 0x349b3
movq %r8, %rdi
callq 0x2af79
callq 0x3708d
movq %rdx, %r8
pushq $0x2
popq %rcx
leaq -0x30(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movq %r13, %r9
callq 0x32ede
movq (%r13), %rcx
movq %rcx, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9fe3d(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6