// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_physicalzebitszy
static struct std_maybe_Maybe_1 mw_mirth_type_Type_physicalzebitszy (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_Type in_Type_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* branch_zaMirth_5;
	struct std_maybe_Maybe_1 branch_Maybe_6;
	switch ((in_Type_2).tag) {
		case mirth_type_Type_Error: {
			struct std_maybe_Maybe_1 v7 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v7;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Ignore: {
			struct std_maybe_Maybe_1 v8 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v8;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v9 = mtp_mirth_type_Type_Prim(in_Type_2);
			struct mirth_mirth_zaMirth* v10;
			struct std_maybe_Maybe_1 v11 = mw_mirth_type_PrimType_physicalzebitszy(in_zaMirth_1, v9, &v10);
			branch_Maybe_6 = v11;
			branch_zaMirth_5 = v10;
		} break;
		case mirth_type_Type_Meta: {
			uint64_t v12 = mtp_mirth_type_Type_Meta(in_Type_2);
			struct mirth_mirth_zaMirth* v13;
			struct std_maybe_Maybe_1 v14 = mw_mirth_type_MetaVar_expandzeif_2_sp4(in_zaMirth_1, v12, &v13);
			branch_Maybe_6 = v14;
			branch_zaMirth_5 = v13;
		} break;
		case mirth_type_Type_Hole: {
			uint64_t v15 = mtp_mirth_type_Type_Hole(in_Type_2);
			struct std_maybe_Maybe_1 v16 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v16;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v17 = mtp_mirth_type_Type_Var(in_Type_2);
			struct std_maybe_Maybe_1 v18 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v18;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Table: {
			uint64_t v19 = mtp_mirth_type_Type_Table(in_Type_2);
			INT v20 = WRAP_I63(64LL);
			struct std_maybe_Maybe_1 v21 = mtw_std_maybe_Maybe_1_Some(MKNAT(v20));
			branch_Maybe_6 = v21;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v22 = mtp_mirth_type_Type_Data(in_Type_2);
			struct mirth_mirth_zaMirth* v23;
			struct std_maybe_Maybe_1 v24 = mw_mirth_data_Data_physicalzebitszy(in_zaMirth_1, v22, &v23);
			branch_Maybe_6 = v24;
			branch_zaMirth_5 = v23;
		} break;
		case mirth_type_Type_DataPartial: {
			struct mirth_data_DataPartial* v25 = mtp_mirth_type_Type_DataPartial(in_Type_2);
			uint64_t v26 = v25->mdata;
			decref(MK_mirth_data_DataPartial(v25));
			struct mirth_mirth_zaMirth* v27;
			struct std_maybe_Maybe_1 v28 = mw_mirth_data_Data_physicalzebitszy(in_zaMirth_1, v26, &v27);
			branch_Maybe_6 = v28;
			branch_zaMirth_5 = v27;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v29 = mtp_mirth_type_Type_Stack(in_Type_2);
			struct mirth_mirth_zaMirth* v30;
			struct std_maybe_Maybe_1 v31 = mw_mirth_type_StackType_physicalzebitszy(in_zaMirth_1, v29, &v30);
			branch_Maybe_6 = v31;
			branch_zaMirth_5 = v30;
		} break;
		case mirth_type_Type_Arrow: {
			struct mirth_type_ArrowType* v32 = mtp_mirth_type_Type_Arrow(in_Type_2);
			decref(MK_mirth_type_ArrowType(v32));
			struct std_maybe_Maybe_1 v33 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v33;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v34;
			struct mirth_type_Type v35 = mtp_mirth_type_Type_App(in_Type_2, &v34);
			decref(MK_mirth_type_Type(v34));
			struct mirth_mirth_zaMirth* v36;
			struct std_maybe_Maybe_1 v37 = mw_mirth_type_Type_physicalzebitszy(in_zaMirth_1, v35, &v36);
			branch_Maybe_6 = v37;
			branch_zaMirth_5 = v36;
		} break;
		case mirth_type_Type_Mut: {
			struct mirth_type_Type v38 = mtp_mirth_type_Type_Mut(in_Type_2);
			decref(MK_mirth_type_Type(v38));
			struct std_maybe_Maybe_1 v39 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v39;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		case mirth_type_Type_Value: {
			struct mirth_type_Value v40 = mtp_mirth_type_Type_Value(in_Type_2);
			decref(MK_mirth_type_Value(v40));
			struct std_maybe_Maybe_1 v41 = { .tag=std_maybe_Maybe_1_None };
			branch_Maybe_6 = v41;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Maybe_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0xd, %esi
ja 0x850ba
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0x4e88f(%rip), %rcx     # 0xd36d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rdx, %rdi
callq 0x2aa5d
cmpl $0x15, %eax
ja 0x850ba
movl %eax, %eax
leaq 0x4e8a4(%rip), %rcx     # 0xd3710
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x1
jmp 0x85098
leaq -0x38(%rbp), %r13
movq %rdx, %rdi
movq %r13, %rsi
callq 0x2ad00
movl %eax, %r15d
movq %rdx, %r12
movq 0x8(%r13), %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x84eca
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0x84eca
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x83c24(%rip), %rsi     # 0x108ae9
callq 0xce94
leaq -0x40(%rbp), %r13
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x84e20
movq (%r13), %r14
jmp 0x850a8
movq %rdx, %rdi
callq 0x2abd6
jmp 0x85027
movq %rdx, %rdi
callq 0x2ad87
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x85027
decl (%rcx)
jne 0x85027
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x83bb5(%rip), %rsi     # 0x108ae9
jmp 0x8501f
movq %rdx, %rdi
callq 0x2acc0
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rcx
callq 0x856a4
jmp 0x84f8a
movq %rdx, %rdi
callq 0x2aabf
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x85127
jmp 0x84f8a
movq %rdx, %rdi
callq 0x2ac2d
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x85216
movq (%r15), %r14
jmp 0x850a8
movq %rdx, %rdi
callq 0x2abf3
jmp 0x85027
movq %rdx, %rdi
callq 0x2adc7
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x85027
decl (%rcx)
jne 0x85027
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x83c33(%rip), %rsi     # 0x108c09
jmp 0x8501f
movq %rdx, %rdi
callq 0x2ac10
leaq 0x8312a(%rip), %rsi     # 0x108111
movl $0x81, %edi
jmp 0x850a0
movq %rdx, %rdi
callq 0x2ac85
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x85027
decl (%rcx)
jne 0x85027
leaq 0x83b5a(%rip), %rsi     # 0x108b79
movq %rax, %rdi
callq 0xce94
xorl %eax, %eax
xorl %edx, %edx
jmp 0x850a8
movq %rdx, %rdi
callq 0x2ac4a
movq 0x8(%rax), %r15
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x85067
decl (%rcx)
jne 0x85067
leaq 0x83ad2(%rip), %rsi     # 0x108b31
movq %rax, %rdi
callq 0xce94
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x85216
movq (%r12), %r14
jmp 0x850a8
pushq $0x41
jmp 0x85098
movl $0x81, %edi
jmp 0x85099
pushq $0x21
jmp 0x85098
pushq $0x11
jmp 0x85098
pushq $0x3
jmp 0x85098
pushq $0x61
popq %rdi
leaq 0x83071(%rip), %rsi     # 0x108111
callq 0x8d0c
pushq $0x1
popq %rax
movq %r14, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4f74c(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6