// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Value_type
static struct mirth_type_Type mw_mirth_type_Value_type (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 = mw_mirth_type_Type_Int();
			branch_Type_6 = v8;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Value_F64: {
			double v9 = mtp_mirth_type_Value_F64(in_Value_2);
			struct mirth_type_Type v10 = mw_mirth_type_Type_F64();
			branch_Type_6 = v10;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Value_Str: {
			STR* v11 = mtp_mirth_type_Value_Str(in_Value_2);
			decref(MKSTR(v11));
			struct mirth_type_Type v12 = mw_mirth_type_Type_Str();
			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_mirth_zaMirth* v14;
			struct mirth_type_ArrowType* v15 = mw_mirth_arrow_Block_type(in_zaMirth_1, v13, &v14);
			struct mirth_type_Type v16 = mtw_mirth_type_Type_Arrow(v15);
			branch_Type_6 = v16;
			branch_zaMirth_5 = v14;
		} 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 $0x150, %rsp            # imm = 0x150
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0x150(%rbp)
subq $0x3, %rax
ja 0xbeb1f
movq -0x150(%rbp), %rax
leaq 0x293520(%rip), %rcx    # 0x351cfc
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 0x2d2c24(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xbe8d5
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq 0x2d2bfb(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x58(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0xbe8d5
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x2d2bcc(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xbe8d5
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x2d2ba7(%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 0xbe8d3
movq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x2d2b73(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x88(%rbp)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x127c0
jmp 0xbe8d5
jmp 0xbe8d7
callq 0xc2610
movl %eax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
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 0xbeb38
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x88410
movsd %xmm0, -0xa8(%rbp)
callq 0xc2640
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xbeb38
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x88460
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x2d27db(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xbea7b
movq -0xc0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x2d27a6(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rax
cmpq $0x0, %rax
je 0xbea7b
movq -0xc0(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x2d276b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xbea7b
movq -0xc0(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x2d273a(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xbea79
movq -0xc0(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x2d26fd(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rsi
callq 0x127c0
jmp 0xbea7b
jmp 0xbea7d
callq 0xc2670
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
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 0xbeb38
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x88560
movq %rax, -0x128(%rbp)
movq -0x28(%rbp), %rdi
movq -0x128(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0xc26a0
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
callq 0xaf380
movl %eax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xbeb38
leaq 0x29535b(%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 $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopw %cs:(%rax,%rax)