// File: /workspace/github_c_makefile_star2_O2/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, %r13
movq %rsi, %r14
movq %rdi, %r15
cmpl $0xb, %edx
je 0x589b8
cmpl $0x7, %edx
je 0x5897f
cmpl $0x3, %edx
jne 0x58a3b
movq %r13, -0x38(%rbp)
movq %rcx, %rdi
callq 0x2aabf
movq %rax, %r12
leaq -0x48(%rbp), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x2aadc
cmpl $0x1, %eax
jne 0x58a0c
movq %rdx, %rdi
callq 0xd491
movq -0x48(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
leaq -0x30(%rbp), %rcx
movq %rax, %rdx
callq 0x2ab4b
movl %eax, %r13d
movq %rdx, %r15
movq %r13, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xb01b9(%rip), %rsi     # 0x108ae9
andq %rdx, %rbx
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x58943
incl (%rbx)
callq 0x8d0c
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rbx
movq %rdx, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2ab8f
movq (%rbx), %rdi
leaq -0x50(%rbp), %rbx
movq %r14, %rsi
movl %r13d, %edx
movq %r15, %rcx
movq %rbx, %r8
callq 0x58891
movq (%rbx), %r15
movq -0x38(%rbp), %r13
jmp 0x589f9
movq %rcx, %rdi
callq 0x2ac2d
movq %rax, %r12
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0x58a82
movl $0x1, (%rax)
movq %r14, 0x10(%rax)
movq %r12, 0x8(%rax)
movq %rax, %rdi
callq 0x3a85b
pushq $0x8
jmp 0x589f8
leaq -0x48(%rbp), %rbx
movq %rcx, %rdi
movq %rbx, %rsi
callq 0x2ad00
movq %rdx, %rcx
leaq -0x30(%rbp), %r12
movq %r15, %rdi
movq %r14, %rsi
movl %eax, %edx
movq %r12, %r8
callq 0x58891
movl (%rbx), %r8d
movq 0x8(%rbx), %rcx
movl %eax, %edi
movq %rdx, %rsi
movl %r8d, %edx
callq 0x1cff2
movq (%r12), %r15
pushq $0xb
popq %rax
movq %r15, (%r13)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
jne 0x58aa1
movq 0x10b4375(%rip), %rdi   # 0x110cd90
testq %rdi, %rdi
jne 0x58a60
leaq 0x81ea7(%rip), %rdi     # 0xda8ce
pushq $0x1c
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10b4357(%rip)   # 0x110cd90
jmp 0x58a60
movq 0x10b4356(%rip), %rdi   # 0x110cd98
testq %rdi, %rdi
jne 0x58a60
leaq 0x81e9d(%rip), %rdi     # 0xda8eb
pushq $0x24
popq %rsi
callq 0x8a21
movq %rax, %rdi
movq %rax, 0x10b4338(%rip)   # 0x110cd98
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rdi, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x58a7d
incl (%rax)
callq 0x8cc6
leaq 0x81e87(%rip), %rsi     # 0xda910
pushq $0x2
popq %rdi
pushq $0x31
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130
leaq 0x7bd65(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6