// File: /workspace/github_c_makefile_star2_O1/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 0x8ec3c
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0x54cf4(%rip), %rcx     # 0xe3670
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x8eb7f
movq %rdx, %rdi
callq 0x5030
jmp 0x8eb7f
leaq -0x38(%rbp), %r13
movq %rdx, %rdi
movq %r13, %rsi
callq 0x2e294
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 0x8e9e8
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0x8e9e8
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x87106(%rip), %rsi     # 0x115ae9
callq 0xd4e3
leaq -0x40(%rbp), %r13
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x8e953
movq (%r13), %r14
jmp 0x8ebd5
movq %rdx, %rdi
callq 0x2e31b
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x8eb7f
decl (%rcx)
jne 0x8eb7f
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x870a4(%rip), %rsi     # 0x115ae9
jmp 0x8eb77
movq %rdx, %rdi
callq 0x2e254
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rcx
callq 0x8f2fb
movq (%r15), %r14
jmp 0x8ebd5
movl 0x4(%rdx), %r15d
decl (%rdx)
jne 0x8ea7b
movq %rdx, %rdi
callq 0x5030
cmpl $0x15, %r15d
ja 0x8ec3c
movl %r15d, %eax
leaq 0x54c19(%rip), %rcx     # 0xe36a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x86672(%rip), %rsi     # 0x115111
movl $0x1, %edi
jmp 0x8eb3a
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x8ebbf
movq %rdx, %rdi
callq 0x5030
jmp 0x8ebbf
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x8ead2
movq %rdx, %rdi
callq 0x5030
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8ecde
jmp 0x8ebd1
movq %rdx, %rdi
callq 0x2e35b
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x8eb7f
decl (%rcx)
jne 0x8eb7f
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x870e9(%rip), %rsi     # 0x115c09
jmp 0x8eb77
decl (%rdx)
jne 0x8eb2e
movq %rdx, %rdi
callq 0x5030
leaq 0x865dc(%rip), %rsi     # 0x115111
movl $0x81, %edi
callq 0x95f6
movl $0x1, %eax
jmp 0x8ebd5
movq %rdx, %rdi
callq 0x2e219
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x8eb7f
decl (%rcx)
jne 0x8eb7f
leaq 0x87002(%rip), %rsi     # 0x115b79
movq %rax, %rdi
callq 0xd4e3
xorl %eax, %eax
xorl %edx, %edx
jmp 0x8ebd5
movq %rdx, %rdi
callq 0x2e1de
movq 0x8(%rax), %r15
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x8ebbf
decl (%rcx)
jne 0x8ebbf
leaq 0x86f7a(%rip), %rsi     # 0x115b31
movq %rax, %rdi
callq 0xd4e3
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8ee09
movq (%r12), %r14
movq %r14, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x86523(%rip), %rsi     # 0x115111
movl $0x41, %edi
jmp 0x8eb3a
leaq 0x86512(%rip), %rsi     # 0x115111
movl $0x11, %edi
jmp 0x8eb3a
leaq 0x86501(%rip), %rsi     # 0x115111
movl $0x21, %edi
jmp 0x8eb3a
leaq 0x864f0(%rip), %rsi     # 0x115111
movl $0x3, %edi
jmp 0x8eb3a
leaq 0x864df(%rip), %rsi     # 0x115111
movl $0x61, %edi
jmp 0x8eb3a
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x55af8(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x55afd(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5