// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_iszephysicalzy
static bool mw_mirth_type_Type_iszephysicalzy (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;
	bool branch_Bool_6;
	switch ((in_Type_2).tag) {
		case mirth_type_Type_Meta: {
			uint64_t v7 = mtp_mirth_type_Type_Meta(in_Type_2);
			struct mirth_mirth_zaMirth* v8;
			struct std_maybe_Maybe_1 v9 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, v7, &v8);
			struct mirth_mirth_zaMirth* branch_zaMirth_10;
			bool branch_Bool_11;
			switch ((v9).tag) {
				case std_maybe_Maybe_1_None: {
					STR* v12;
					STRLIT(v12, "[bug] unbound meta at Type.is-physical?", 39);
					do_panic(v12);
				} break;
				case std_maybe_Maybe_1_Some: {
					VAL v15 = mtp_std_maybe_Maybe_1_Some(v9);
					struct mirth_mirth_zaMirth* v16;
					struct mirth_type_Type v17 = mw_mirth_type_Type_expand(v8, V_mirth_type_Type(v15), &v16);
					incref(MK_mirth_type_Type(v17));
					struct std_maybe_Maybe_1 v18 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v17));
					struct mirth_mirth_zaMirth* v19;
					mw_mirth_type_MetaVar_typezyzx(v16, v18, v7, &v19);
					struct mirth_mirth_zaMirth* v20;
					bool v21 = mw_mirth_type_Type_iszephysicalzy(v19, v17, &v20);
					branch_Bool_11 = v21;
					branch_zaMirth_10 = v20;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Bool_6 = branch_Bool_11;
			branch_zaMirth_5 = branch_zaMirth_10;
		} break;
		case mirth_type_Type_Prim: {
			enum mirth_type_PrimType v22 = mtp_mirth_type_Type_Prim(in_Type_2);
			bool v23 = mw_mirth_type_PrimType_iszephysicalzy(v22);
			branch_Bool_6 = v23;
			branch_zaMirth_5 = in_zaMirth_1;
		} break;
		default: {
			struct mirth_mirth_zaMirth* v24;
			struct std_maybe_Maybe_1 v25 = mw_mirth_type_Type_physicalzebitszy(in_zaMirth_1, in_Type_2, &v24);
			bool v26 = mw_std_maybe_Maybe_1_has_1_sp1(v25);
			bool v27 = !v26;
			branch_Bool_6 = v27;
			branch_zaMirth_5 = v24;
		} break;
	}
	*out_zaMirth_3 = branch_zaMirth_5;
	return branch_Bool_6;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdi, %r15
cmpl $0x2, %esi
je 0x8e868
cmpl $0x3, %esi
jne 0x8e87f
movq 0x8(%rdx), %rbx
decl (%rdx)
jne 0x8e79c
movq %rdx, %rdi
callq 0x5030
leaq -0x30(%rbp), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2e11b
cmpl $0x1, %eax
jne 0x8e8af
movq %rbx, -0x38(%rbp)
movq %r14, -0x40(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xdaeb
movq -0x30(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r15, %rax
leaq -0x48(%rbp), %rcx
movq %rax, %rdx
callq 0x2e18a
movl %eax, %r13d
movq %rdx, %r12
movq %r13, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x872ea(%rip), %rsi     # 0x115ae9
movq %rdx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x8e815
incl (%rax)
callq 0x95f6
movq %rdx, %r14
movq -0x48(%rbp), %rbx
leaq 0x108ac00(%rip), %rdi   # 0x1119428
movq -0x38(%rbp), %rsi
callq 0x13ff0
addq $0x4, %r15
orq %r14, %r15
leaq 0x86a82(%rip), %rsi     # 0x1152c1
movq %r15, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq -0x50(%rbp), %r14
movq %rbx, %rdi
movl %r13d, %esi
movq %r12, %rdx
movq %r14, %rcx
callq 0x8e763
movq (%r14), %r15
movq -0x40(%rbp), %r14
jmp 0x8e89d
movl 0x4(%rdx), %ebx
decl (%rdx)
jne 0x8e877
movq %rdx, %rdi
callq 0x5030
cmpl $0x4, %ebx
setae %al
jmp 0x8e89d
leaq -0x30(%rbp), %rbx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x8e953
movl %eax, %edi
movq %rdx, %rsi
callq 0x8ec6c
xorb $0x1, %al
movq (%rbx), %r15
movq %r15, (%r14)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
jne 0x8e923
cmpq $0x0, 0x108bf5d(%rip)   # 0x111a818
jne 0x8e8fa
movl $0x27, %edi
callq 0xf9f7
movq $0x27, 0x10(%rax)
movabsq $0x3f6c616369737968, %rcx # imm = 0x3F6C616369737968
movq %rcx, 0x37(%rax)
movups 0x5e7c2(%rip), %xmm0    # 0xed0a6
movups %xmm0, 0x18(%rax)
movups 0x5e7c7(%rip), %xmm0    # 0xed0b6
movups %xmm0, 0x28(%rax)
movq %rax, 0x108bf1e(%rip)   # 0x111a818
movq 0x108bf17(%rip), %rdi   # 0x111a818
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x8e91e
incl (%rax)
callq 0x95a5
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x55e11(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x55e16(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5