// File: /workspace/github_c_makefile_star2_O3/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 0x37b34
movq %r9, %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
movl %ecx, %eax
leaq 0xa6f22(%rip), %rcx     # 0xde950
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r8, %rdi
callq 0x2d85f
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x37a6d
decl (%rcx)
jne 0x37a6d
leaq 0xd99c4(%rip), %rsi     # 0x111429
movq %rax, %rdi
callq 0xd13d
movl $0x5, %edi
jmp 0x37afc
movq %r8, %rdi
callq 0x2d89a
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x37aad
decl (%rcx)
jne 0x37aad
leaq 0xd96b4(%rip), %rsi     # 0x111159
movq %rax, %rdi
callq 0xd13d
movl $0x12, %edi
jmp 0x37afc
movq %rbx, -0x38(%rbp)
movq 0x8(%r8), %r13
decl (%r8)
jne 0x37ac9
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 0x3ab8d
movq (%rbx), %rcx
movq -0x38(%rbp), %rbx
jmp 0x37b22
decl (%r8)
jne 0x37af7
movq %r8, %rdi
callq 0x5030
movl $0x10, %edi
callq 0x1eb4d
movq %rdx, %r8
leaq -0x30(%rbp), %r13
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movl $0x2, %ecx
movq %r13, %r9
callq 0x35be8
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 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xa8b80(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xa8b85(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302