// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_exceptzefield
static struct mirth_type_Type mw_mirth_type_Type_exceptzefield (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Label_2, uint64_t in_Tag_3, struct mirth_type_Type in_Type_4, struct mirth_mirth_zaMirth* *out_zaMirth_5) {
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_type_Type branch_Type_8;
	switch ((in_Type_4).tag) {
		case mirth_type_Type_Meta: {
			uint64_t v9 = mtp_mirth_type_Type_Meta(in_Type_4);
			struct mirth_mirth_zaMirth* v10;
			struct std_maybe_Maybe_1 v11 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, v9, &v10);
			struct mirth_mirth_zaMirth* branch_zaMirth_12;
			struct mirth_type_Type branch_Type_13;
			switch ((v11).tag) {
				case std_maybe_Maybe_1_None: {
					STR* v14;
					STRLIT(v14, "Type.except-field on metavar", 28);
					do_panic(v14);
				} break;
				case std_maybe_Maybe_1_Some: {
					VAL v17 = mtp_std_maybe_Maybe_1_Some(v11);
					struct mirth_mirth_zaMirth* v18;
					struct mirth_type_Type v19 = mw_mirth_type_Type_expand(v10, V_mirth_type_Type(v17), &v18);
					incref(MK_mirth_type_Type(v19));
					struct std_maybe_Maybe_1 v20 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v19));
					struct mirth_mirth_zaMirth* v21;
					mw_mirth_type_MetaVar_typezyzx(v18, v20, v9, &v21);
					struct mirth_mirth_zaMirth* v22;
					struct mirth_type_Type v23 = mw_mirth_type_Type_exceptzefield(v21, in_Label_2, in_Tag_3, v19, &v22);
					branch_Type_13 = v23;
					branch_zaMirth_12 = v22;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Type_8 = branch_Type_13;
			branch_zaMirth_7 = branch_zaMirth_12;
		} break;
		case mirth_type_Type_Data: {
			uint64_t v24 = mtp_mirth_type_Type_Data(in_Type_4);
			struct mirth_data_DataPartial* v25 = mtw_mirth_data_DataPartial_DataPartial(v24, in_Label_2);
			struct mirth_type_Type v26 = mtw_mirth_type_Type_DataPartial(v25);
			branch_Type_8 = v26;
			branch_zaMirth_7 = in_zaMirth_1;
		} break;
		case mirth_type_Type_App: {
			struct mirth_type_Type v27;
			struct mirth_type_Type v28 = mtp_mirth_type_Type_App(in_Type_4, &v27);
			struct mirth_mirth_zaMirth* v29;
			struct mirth_type_Type v30 = mw_mirth_type_Type_exceptzefield(in_zaMirth_1, in_Label_2, in_Tag_3, v28, &v29);
			struct mirth_type_Type v31 = mtw_mirth_type_Type_App(v30, v27);
			branch_Type_8 = v31;
			branch_zaMirth_7 = v29;
		} break;
		default: {
			STR* v32;
			STRLIT(v32, "Type.except-field on unexpected type", 36);
			do_panic(v32);
		} break;
	}
	*out_zaMirth_5 = branch_zaMirth_7;
	return branch_Type_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movq %rsi, %r13
movq %rdi, %r15
cmpl $0xb, %edx
je 0x5d773
cmpl $0x7, %edx
je 0x5d72e
cmpl $0x3, %edx
jne 0x5d810
movq 0x8(%rcx), %rbx
decl (%rcx)
jne 0x5d659
movq %rcx, %rdi
callq 0x5030
movq %r13, -0x48(%rbp)
leaq -0x58(%rbp), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2d45d
cmpl $0x1, %eax
jne 0x5d7c8
movq %rbx, -0x38(%rbp)
movq %r12, -0x40(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xd745
movq -0x58(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r15, %rax
leaq -0x30(%rbp), %rcx
movq %rax, %rdx
callq 0x2d4cc
movl %eax, %ebx
movq %rdx, %r13
movq %rbx, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xb442a(%rip), %rsi     # 0x111ae9
movq %rdx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x5d6d5
incl (%rax)
callq 0x9353
movq %rdx, %r12
movq -0x30(%rbp), %r14
leaq 0x10b7d40(%rip), %rdi   # 0x1115428
movq -0x38(%rbp), %rsi
callq 0x13c85
addq $0x4, %r15
orq %r12, %r15
leaq 0xb3bc2(%rip), %rsi     # 0x1112c1
movq %r15, %rdi
movq %rax, %rdx
callq 0x14766
leaq -0x60(%rbp), %r15
movq %r14, %rdi
movq -0x48(%rbp), %rsi
movl %ebx, %edx
movq %r13, %rcx
movq %r15, %r8
callq 0x5d614
movq (%r15), %r15
movq -0x40(%rbp), %r12
jmp 0x5d7b5
movq 0x8(%rcx), %rbx
decl (%rcx)
jne 0x5d73e
movq %rcx, %rdi
callq 0x5030
movl $0x1, %edi
movl $0x18, %esi
callq 0x50c0
testq %rax, %rax
je 0x5d877
movl $0x1, (%rax)
movq %r13, 0x10(%rax)
movq %rbx, 0x8(%rax)
movq %rax, %rdi
callq 0x3de7a
movl $0x8, %eax
jmp 0x5d7b5
leaq -0x58(%rbp), %rbx
movq %rcx, %rdi
movq %rbx, %rsi
callq 0x2d5d6
movq %rdx, %rcx
leaq -0x30(%rbp), %r14
movq %r15, %rdi
movq %r13, %rsi
movl %eax, %edx
movq %r14, %r8
callq 0x5d614
movl (%rbx), %r8d
movq 0x8(%rbx), %rcx
movl %eax, %edi
movq %rdx, %rsi
movl %r8d, %edx
callq 0x1f39c
movq (%r14), %r15
movl $0xb, %eax
movq %r15, (%r12)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
jne 0x5d89c
movq 0x10b85b9(%rip), %rdi   # 0x1115d90
testq %rdi, %rdi
jne 0x5d855
movl $0x1c, %edi
callq 0xf5e4
movq %rax, %rdi
movq $0x1c, 0x10(%rax)
movups 0x88f05(%rip), %xmm0    # 0xe66fd
movups %xmm0, 0x18(%rax)
movups 0x88f06(%rip), %xmm0    # 0xe6709
movups %xmm0, 0x24(%rax)
movq %rax, 0x10b8582(%rip)   # 0x1115d90
jmp 0x5d855
movq 0x10b8581(%rip), %rdi   # 0x1115d98
testq %rdi, %rdi
jne 0x5d855
movl $0x24, %edi
callq 0xf5e4
movq %rax, %rdi
movq $0x24, 0x10(%rax)
movups 0x88ee2(%rip), %xmm0    # 0xe671a
movups %xmm0, 0x18(%rax)
movups 0x88ee7(%rip), %xmm0    # 0xe672a
movups %xmm0, 0x28(%rax)
movl $0x65707974, 0x38(%rax) # imm = 0x65707974
movq %rax, 0x10b8543(%rip)   # 0x1115d98
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x5d872
incl (%rax)
callq 0x9302
leaq 0x88ec1(%rip), %rsi     # 0xe673f
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x82e18(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x82e1d(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302