// File: /workspace/github_c_makefile_star2_O3/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 0x8c63d
movq %rcx, %rbx
movq %rdi, %r14
movl %esi, %eax
leaq 0x53313(%rip), %rcx     # 0xdf6b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
decl (%rdx)
jne 0x8c597
movq %rdx, %rdi
callq 0x5030
jmp 0x8c597
leaq -0x38(%rbp), %r13
movq %rdx, %rdi
movq %r13, %rsi
callq 0x2d5d6
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 0x8c411
movl -0x38(%rbp), %edi
decl (%rcx)
jne 0x8c411
shlq $0x30, %rdi
orq %rax, %rdi
leaq 0x856dd(%rip), %rsi     # 0x111ae9
callq 0xd13d
leaq -0x40(%rbp), %r13
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x8c37c
movq (%r13), %r14
jmp 0x8c62b
movq %rdx, %rdi
callq 0x2d65d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x8c597
decl (%rcx)
jne 0x8c597
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x8567b(%rip), %rsi     # 0x111ae9
jmp 0x8c58f
movq %rdx, %rdi
callq 0x2d596
leaq -0x38(%rbp), %r15
movq %r14, %rdi
movl %eax, %esi
movq %r15, %rcx
callq 0x8cca7
movq (%r15), %r14
jmp 0x8c62b
movl 0x4(%rdx), %r15d
decl (%rdx)
jne 0x8c4a4
movq %rdx, %rdi
callq 0x5030
cmpl $0x15, %r15d
ja 0x8c63d
movl %r15d, %eax
leaq 0x53238(%rip), %rcx     # 0xdf6f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, %edi
jmp 0x8c61a
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x8c5da
movq %rdx, %rdi
callq 0x5030
jmp 0x8c5da
movq 0x8(%rdx), %r15
decl (%rdx)
jne 0x8c4f4
movq %rdx, %rdi
callq 0x5030
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8c6df
jmp 0x8c5ec
movq %rdx, %rdi
callq 0x2d69d
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x8c597
decl (%rcx)
jne 0x8c597
shlq $0x30, %rax
orq %rdx, %rax
leaq 0x856c7(%rip), %rsi     # 0x111c09
jmp 0x8c58f
decl (%rdx)
jne 0x8c550
movq %rdx, %rdi
callq 0x5030
leaq 0x84bba(%rip), %rsi     # 0x111111
movl $0x81, %edi
jmp 0x8c621
movq %rdx, %rdi
callq 0x2d55b
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x8c597
decl (%rcx)
jne 0x8c597
leaq 0x855ea(%rip), %rsi     # 0x111b79
movq %rax, %rdi
callq 0xd13d
xorl %eax, %eax
xorl %edx, %edx
jmp 0x8c62b
movq %rdx, %rdi
callq 0x2d520
movq 0x8(%rax), %r15
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
jne 0x8c5da
decl (%rcx)
jne 0x8c5da
leaq 0x8555f(%rip), %rsi     # 0x111b31
movq %rax, %rdi
callq 0xd13d
leaq -0x38(%rbp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8c80a
movq (%r12), %r14
jmp 0x8c62b
movl $0x41, %edi
jmp 0x8c61a
movl $0x81, %edi
jmp 0x8c61a
movl $0x21, %edi
jmp 0x8c61a
movl $0x11, %edi
jmp 0x8c61a
movl $0x3, %edi
jmp 0x8c61a
movl $0x61, %edi
leaq 0x84af0(%rip), %rsi     # 0x111111
callq 0x9353
movl $0x1, %eax
movq %r14, (%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 0x54077(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x5407c(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302