// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_Tag_outputzetypezeexceptzefield
static struct std_either_Either_2 mw_mirth_data_Tag_outputzetypezeexceptzefield (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Label_2, uint64_t in_Tag_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* v6;
	struct std_either_Either_2 v7 = mw_mirth_data_Tag_outputzetype(in_zaMirth_1, in_Tag_3, &v6);
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	struct std_either_Either_2 branch_Either_9;
	switch ((v7).tag) {
		case std_either_Either_2_Left: {
			VAL v10 = mtp_std_either_Either_2_Left(v7);
			struct mirth_mirth_zaMirth* v11;
			struct mirth_type_Type v12 = mw_mirth_type_Type_exceptzefield(v6, in_Label_2, in_Tag_3, V_mirth_type_Type(v10), &v11);
			struct std_either_Either_2 v13 = mtw_std_either_Either_2_Left(MK_mirth_type_Type(v12));
			branch_Either_9 = v13;
			branch_zaMirth_8 = v11;
		} break;
		case std_either_Either_2_Right: {
			VAL v14 = mtp_std_either_Either_2_Right(v7);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_type_Type v16 = mw_mirth_type_Resource_exceptzefield(v6, in_Label_2, in_Tag_3, V_mirth_type_Type(v14), &v15);
			struct std_either_Either_2 v17 = mtw_std_either_Either_2_Right(MK_mirth_type_Type(v16));
			branch_Either_9 = v17;
			branch_zaMirth_8 = v15;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_4 = branch_zaMirth_8;
	return branch_Either_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0x14fa40
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x104(%rbp)
testl %eax, %eax
je 0x1507a6
jmp 0x150792
movl -0x104(%rbp), %eax
subl $0x1, %eax
je 0x150883
jmp 0x150981
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x74840
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x6f100
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
movl %eax, %ecx
movq %rdx, %rax
movq -0x110(%rbp), %rdx
movl %ecx, -0x88(%rbp)
movq %rax, -0x80(%rbp)
movl -0x88(%rbp), %ecx
movq -0x80(%rbp), %r8
leaq -0x68(%rbp), %r9
callq 0x150ae0
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
callq 0x6e780
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x73f50
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x15099a
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
callq 0x748f0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x6f100
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rsi
movl %eax, %ecx
movq %rdx, %rax
movq -0x128(%rbp), %rdx
movl %ecx, -0xe0(%rbp)
movq %rax, -0xd8(%rbp)
movl -0xe0(%rbp), %ecx
movq -0xd8(%rbp), %r8
leaq -0xc0(%rbp), %r9
callq 0x151120
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x73fe0
movl %eax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x15099a
leaq 0x2034f9(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)