// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_datazegetzelabelzetype
static struct mirth_type_ArrowType* mw_mirth_data_datazegetzelabelzetype (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_data_TagField* in_TagField_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	uint64_t v5;
	uint64_t v6;
	struct std_either_Either_2 v7;
	mtp_mirth_data_TagField_TagField(in_TagField_2, &v5, &v6, &v7);
	uint64_t branch_Label_8;
	uint64_t branch_Tag_9;
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_type_ArrowType* branch_ArrowType_11;
	switch ((v7).tag) {
		case std_either_Either_2_Left: {
			VAL v12 = mtp_std_either_Either_2_Left(v7);
			struct mirth_type_StackType v13 = mw_mirth_type_T0();
			struct mirth_mirth_zaMirth* v14;
			struct std_either_Either_2 v15 = mw_mirth_data_Tag_outputzetype(in_zaMirth_1, v5, &v14);
			struct mirth_type_StackType v16 = mw_mirth_type_Tzmza(v13, v15);
			struct mirth_type_StackType v17 = mw_mirth_type_T1(V_mirth_type_Type(v12));
			struct mirth_mirth_zaMirth* v18;
			uint64_t v19 = mw_mirth_data_Tag_data(v14, v5, &v18);
			struct mirth_mirth_zaMirth* v20;
			bool v21 = mw_mirth_data_Data_iszeresourcezy(v18, v19, &v20);
			uint64_t branch_Tag_22;
			struct mirth_mirth_zaMirth* branch_zaMirth_23;
			struct mirth_type_StackType branch_StackType_24;
			if (v21) {
				struct mirth_mirth_zaMirth* v25;
				struct std_either_Either_2 v26 = mw_mirth_data_Tag_outputzetype(v20, v5, &v25);
				struct mirth_type_StackType v27 = mw_mirth_type_Tzmza(v17, v26);
				branch_StackType_24 = v27;
				branch_zaMirth_23 = v25;
				branch_Tag_22 = v5;
			} else {
				branch_StackType_24 = v17;
				branch_zaMirth_23 = v20;
				branch_Tag_22 = v5;
			}
			struct mirth_type_ArrowType* v28 = mw_mirth_type_Tzezg(v16, branch_StackType_24);
			branch_ArrowType_11 = v28;
			branch_zaMirth_10 = branch_zaMirth_23;
			branch_Tag_9 = branch_Tag_22;
			branch_Label_8 = v6;
		} break;
		case std_either_Either_2_Right: {
			VAL v29 = mtp_std_either_Either_2_Right(v7);
			struct mirth_type_StackType v30 = mw_mirth_type_T0();
			struct mirth_mirth_zaMirth* v31;
			struct std_either_Either_2 v32 = mw_mirth_data_Tag_outputzetype(in_zaMirth_1, v5, &v31);
			struct mirth_type_StackType v33 = mw_mirth_type_Tzmza(v30, v32);
			struct mirth_type_StackType v34 = mw_mirth_type_T0();
			struct mirth_type_StackType v35 = mw_mirth_type_Tza(v34, V_mirth_type_Type(v29));
			struct mirth_mirth_zaMirth* v36;
			struct std_either_Either_2 v37 = mw_mirth_data_Tag_outputzetypezeexceptzefield(v31, v6, v5, &v36);
			struct mirth_type_StackType v38 = mw_mirth_type_Tzmza(v35, v37);
			struct mirth_type_ArrowType* v39 = mw_mirth_type_Tzezg(v33, v38);
			branch_ArrowType_11 = v39;
			branch_zaMirth_10 = v36;
			branch_Tag_9 = v5;
			branch_Label_8 = v6;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_10;
	return branch_ArrowType_11;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x40(%rbp)
movq %rsi, %rax
movq %rdi, %r15
leaq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
leaq -0x60(%rbp), %rbx
movq %rax, %rdi
movq %rbx, %rcx
callq 0x5d03c
movl (%rbx), %eax
cmpl $0x1, %eax
je 0x58006
testl %eax, %eax
jne 0x580ce
movq -0x58(%rbp), %rdi
callq 0x20a5a
movq %rax, %r13
movq -0x38(%rbp), %r12
leaq -0x48(%rbp), %rbx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x5d0c5
movq %rdx, %rcx
movl $0x2, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0x2031e
movl %eax, %r14d
movq %rdx, %r15
movq %r13, %rdx
shrq $0x30, %rdx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %r13, %rcx
movl $0x2, %edi
xorl %esi, %esi
callq 0x205af
movq %rdx, %r13
movq (%rbx), %rbx
leaq 0x10bcc31(%rip), %rdi   # 0x1114be0
movq %r12, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
leaq -0x30(%rbp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x207b0
testb %al, %al
je 0x5809f
movq -0x30(%rbp), %rdi
leaq -0x68(%rbp), %rbx
movq %r12, %rsi
movq %rbx, %rdx
callq 0x5d0c5
movq %rdx, %rcx
movl $0x5, %edi
movq %r13, %rsi
movl %eax, %edx
callq 0x2031e
movq %rdx, %r13
movq (%rbx), %rbx
jmp 0x580a8
movq -0x58(%rbp), %rdi
callq 0x20aa1
movq %rax, %r13
movq -0x38(%rbp), %r14
leaq -0x48(%rbp), %rbx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x5d0c5
movq %rdx, %rcx
movl $0x2, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0x2031e
movl %eax, %r15d
movq %rdx, %r12
movq %r13, %rdx
shrq $0x30, %rdx
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %r13, %rcx
movl $0x2, %edi
xorl %esi, %esi
callq 0x20ae8
movq %rdx, %r13
movq (%rbx), %rdi
movq -0x50(%rbp), %rsi
leaq -0x30(%rbp), %rbx
movq %r14, %rdx
movq %rbx, %rcx
callq 0x5d45e
movq %rdx, %rcx
movl $0x7, %edi
movq %r13, %rsi
movl %eax, %edx
callq 0x2031e
movq %rdx, %rcx
movl %r15d, %edi
movq %r12, %rsi
movl %eax, %edx
callq 0x20b5f
movq (%rbx), %rbx
jmp 0x580b8
movl $0x5, %eax
movq -0x30(%rbp), %rbx
movl %r14d, %edi
movq %r15, %rsi
movl %eax, %edx
movq %r13, %rcx
callq 0x20b5f
movq -0x40(%rbp), %rcx
movq %rbx, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x885e6(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x885eb(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302