// File: /workspace/github_c_makefile_star2_O1/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 0x5efad
cmpl $0x7, %edx
je 0x5ef68
cmpl $0x3, %edx
jne 0x5f04c
movq 0x8(%rcx), %rbx
decl (%rcx)
jne 0x5ee93
movq %rcx, %rdi
callq 0x5030
movq %r13, -0x48(%rbp)
leaq -0x58(%rbp), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2e11b
cmpl $0x1, %eax
jne 0x5f002
movq %rbx, -0x38(%rbp)
movq %r12, -0x40(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xdaeb
movq -0x58(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r15, %rax
leaq -0x30(%rbp), %rcx
movq %rax, %rdx
callq 0x2e18a
movl %eax, %ebx
movq %rdx, %r13
movq %rbx, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xb6bf0(%rip), %rsi     # 0x115ae9
movq %rdx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x5ef0f
incl (%rax)
callq 0x95f6
movq %rdx, %r12
movq -0x30(%rbp), %r14
leaq 0x10ba506(%rip), %rdi   # 0x1119428
movq -0x38(%rbp), %rsi
callq 0x13ff0
addq $0x4, %r15
orq %r12, %r15
leaq 0xb6388(%rip), %rsi     # 0x1152c1
movq %r15, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq -0x60(%rbp), %r15
movq %r14, %rdi
movq -0x48(%rbp), %rsi
movl %ebx, %edx
movq %r13, %rcx
movq %r15, %r8
callq 0x5ee4e
movq (%r15), %r15
movq -0x40(%rbp), %r12
jmp 0x5efef
movq 0x8(%rcx), %rbx
decl (%rcx)
jne 0x5ef78
movq %rcx, %rdi
callq 0x5030
movl $0x1, %edi
movl $0x18, %esi
callq 0x50c0
testq %rax, %rax
je 0x5f0b5
movl $0x1, (%rax)
movq %r13, 0x10(%rax)
movq %rbx, 0x8(%rax)
movq %rax, %rdi
callq 0x3f1c1
movl $0x8, %eax
jmp 0x5efef
leaq -0x58(%rbp), %rbx
movq %rcx, %rdi
movq %rbx, %rsi
callq 0x2e294
movq %rdx, %rcx
leaq -0x30(%rbp), %r14
movq %r15, %rdi
movq %r13, %rsi
movl %eax, %edx
movq %r14, %r8
callq 0x5ee4e
movl (%rbx), %r8d
movq 0x8(%rbx), %rcx
movl %eax, %edi
movq %rdx, %rsi
movl %r8d, %edx
callq 0x1f801
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 0x5f0da
cmpq $0x0, 0x10bad7e(%rip)   # 0x1119d90
jne 0x5f043
movl $0x1c, %edi
callq 0xf9f7
movq $0x1c, 0x10(%rax)
movups 0x8b801(%rip), %xmm0    # 0xea82e
movups %xmm0, 0x18(%rax)
movups 0x8b802(%rip), %xmm0    # 0xea83a
movups %xmm0, 0x24(%rax)
movq %rax, 0x10bad4d(%rip)   # 0x1119d90
movq 0x10bad46(%rip), %rdi   # 0x1119d90
jmp 0x5f093
cmpq $0x0, 0x10bad44(%rip)   # 0x1119d98
jne 0x5f08c
movl $0x24, %edi
callq 0xf9f7
movq $0x24, 0x10(%rax)
movups 0x8b7dc(%rip), %xmm0    # 0xea84b
movups %xmm0, 0x18(%rax)
movups 0x8b7e1(%rip), %xmm0    # 0xea85b
movups %xmm0, 0x28(%rax)
movl $0x65707974, 0x38(%rax) # imm = 0x65707974
movq %rax, 0x10bad0c(%rip)   # 0x1119d98
movq 0x10bad05(%rip), %rdi   # 0x1119d98
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x5f0b0
incl (%rax)
callq 0x95a5
leaq 0x8b7b4(%rip), %rsi     # 0xea870
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x8565a(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x8565f(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5