// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
cmpl $0x3, %ecx
ja 0x38ccc
movq %r9, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movl %ecx, %eax
leaq 0xa9d76(%rip), %rcx     # 0xe293c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r8, %rdi
callq 0x2e51d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x38c05
decl (%rcx)
jne 0x38c05
leaq 0xdc82c(%rip), %rsi     # 0x115429
movq %rax, %rdi
callq 0xd4e3
movl $0x5, %edi
jmp 0x38c94
movq %r8, %rdi
callq 0x2e558
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x38c45
decl (%rcx)
jne 0x38c45
leaq 0xdc51c(%rip), %rsi     # 0x115159
movq %rax, %rdi
callq 0xd4e3
movl $0x12, %edi
jmp 0x38c94
movq %rbx, -0x38(%rbp)
movq 0x8(%r8), %r13
decl (%r8)
jne 0x38c61
movq %r8, %rdi
callq 0x5030
leaq -0x30(%rbp), %rbx
movq %r12, %rdi
movq %r13, %rsi
movl %r15d, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x3bed8
movq (%rbx), %rcx
movq -0x38(%rbp), %rbx
jmp 0x38cba
decl (%r8)
jne 0x38c8f
movq %r8, %rdi
callq 0x5030
movl $0x10, %edi
callq 0x1ef8a
movq %rdx, %r8
leaq -0x30(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl $0x2, %ecx
movq %r13, %r9
callq 0x36df1
movq (%r13), %rcx
movq %rcx, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xaba68(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xaba6d(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5