// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Value_unifyzeerrorzx
static struct mirth_type_Type mw_mirth_type_Value_unifyzeerrorzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_Value in_Value_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	struct mirth_type_Type branch_Type_6;
	switch ((in_Value_2).tag) {
		case mirth_type_Value_Int: {
			INT v7 = mtp_mirth_type_Value_Int(in_Value_2);
			decref(MKINT(v7));
			struct mirth_type_Type v8 = { .tag=mirth_type_Type_Error };
			branch_Type_6 = v8;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Value_Str: {
			STR* v9 = mtp_mirth_type_Value_Str(in_Value_2);
			decref(MKSTR(v9));
			struct mirth_type_Type v10 = { .tag=mirth_type_Type_Error };
			branch_Type_6 = v10;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Value_F64: {
			double v11 = mtp_mirth_type_Value_F64(in_Value_2);
			struct mirth_type_Type v12 = { .tag=mirth_type_Type_Error };
			branch_Type_6 = v12;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Value_Block: {
			uint64_t v13 = mtp_mirth_type_Value_Block(in_Value_2);
			struct mirth_type_Type v14 = { .tag=mirth_type_Type_Error };
			struct mirth_mirth_zaMirth* v15;
			struct mirth_type_Type v16 = mw_mirth_type_Type_unifyzeblockzx(in_zaMirth_1, v13, v14, &v15);
			branch_Type_6 = v16;
			branch_zaMirth_5 = v15;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Type_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x158(%rbp)
subq $0x3, %rax
ja 0xb52bf
movq -0x158(%rbp), %rax
leaq 0x29cc80(%rip), %rcx    # 0x351bec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x88310
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x2dc494(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb5065
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x2dc46b(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0xb5065
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x2dc43c(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xb5065
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x2dc417(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x78(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xb5063
movq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x2dc3e3(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x127c0
jmp 0xb5065
jmp 0xb5067
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0xa0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xb52d8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x88460
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x2dc093(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xb51c3
movq -0xa8(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x2dc05e(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
cmpq $0x0, %rax
je 0xb51c3
movq -0xa8(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x2dc023(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xb51c3
movq -0xa8(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x2dbff2(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xb51c1
movq -0xa8(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x2dbfb5(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x127c0
jmp 0xb51c3
jmp 0xb51c5
leaq -0x108(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x108(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xb52d8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x88410
movsd %xmm0, -0x110(%rbp)
leaq -0x120(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x120(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xb52d8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x88560
movq %rax, -0x128(%rbp)
leaq -0x138(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x28(%rbp), %rdi
movq -0x128(%rbp), %rsi
movl -0x138(%rbp), %edx
movq -0x130(%rbp), %rcx
leaq -0x140(%rbp), %r8
callq 0xc40f0
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xb52d8
leaq 0x29ebbb(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
nopw %cs:(%rax,%rax)