// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_data_datazesetzelabelzetype
static struct mirth_type_ArrowType* mw_mirth_data_datazesetzelabelzetype (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_T1(V_mirth_type_Type(v12));
			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_T0();
			struct mirth_mirth_zaMirth* v18;
			struct std_either_Either_2 v19 = mw_mirth_data_Tag_outputzetype(v14, v5, &v18);
			struct mirth_type_StackType v20 = mw_mirth_type_Tzmza(v17, v19);
			struct mirth_type_ArrowType* v21 = mw_mirth_type_Tzezg(v16, v20);
			branch_ArrowType_11 = v21;
			branch_zaMirth_10 = v18;
			branch_Tag_9 = v5;
			branch_Label_8 = v6;
		} break;
		case std_either_Either_2_Right: {
			VAL v22 = mtp_std_either_Either_2_Right(v7);
			struct mirth_type_StackType v23 = mw_mirth_type_T0();
			struct mirth_type_StackType v24 = mw_mirth_type_Tza(v23, V_mirth_type_Type(v22));
			struct mirth_mirth_zaMirth* v25;
			struct std_either_Either_2 v26 = mw_mirth_data_Tag_outputzetypezeexceptzefield(in_zaMirth_1, v6, v5, &v25);
			struct mirth_type_StackType v27 = mw_mirth_type_Tzmza(v24, v26);
			struct mirth_type_StackType v28 = mw_mirth_type_T0();
			struct mirth_mirth_zaMirth* v29;
			struct std_either_Either_2 v30 = mw_mirth_data_Tag_outputzetype(v25, v5, &v29);
			struct mirth_type_StackType v31 = mw_mirth_type_Tzmza(v28, v30);
			struct mirth_type_ArrowType* v32 = mw_mirth_type_Tzezg(v27, v31);
			branch_ArrowType_11 = v32;
			branch_zaMirth_10 = v29;
			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 $0x38, %rsp
movq %rdx, -0x38(%rbp)
movq %rsi, %rax
movq %rdi, %r14
leaq -0x30(%rbp), %rsi
leaq -0x50(%rbp), %rdx
leaq -0x60(%rbp), %r15
movq %rax, %rdi
movq %r15, %rcx
callq 0x58345
movl (%r15), %eax
cmpl $0x1, %eax
je 0x53ac7
testl %eax, %eax
jne 0x53b6f
movq -0x58(%rbp), %rdi
callq 0x1e79d
movabsq $0xfffffffffffc, %rsi   # imm = 0xFFFFFFFFFFFC
andq %rax, %rsi
movq %rax, %rdi
shrq $0x30, %rdi
callq 0x57b81
movq %rax, %r15
movq -0x30(%rbp), %r12
leaq -0x48(%rbp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x583ce
movq %rdx, %rcx
pushq $0x5
popq %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x1e0af
movl %eax, %r15d
movq %rdx, %rbx
movq (%r13), %rdi
leaq -0x40(%rbp), %r14
movq %r12, %rsi
movq %r14, %rdx
callq 0x583ce
movq %rdx, %rcx
pushq $0x2
popq %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0x1e0af
movq %rdx, %rcx
movl %r15d, %edi
movq %rbx, %rsi
movl %eax, %edx
callq 0x1e896
movq (%r14), %rcx
jmp 0x53b59
movq -0x58(%rbp), %rdi
callq 0x1e7e4
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
movq %rax, %rdx
shrq $0x30, %rdx
pushq $0x2
popq %r15
movl %r15d, %edi
xorl %esi, %esi
callq 0x1e82b
movq %rdx, %rbx
movq -0x50(%rbp), %rsi
movq -0x30(%rbp), %r12
leaq -0x48(%rbp), %r13
movq %r14, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x58721
movq %rdx, %rcx
pushq $0x7
popq %rdi
movq %rbx, %rsi
movl %eax, %edx
callq 0x1e0af
movl %eax, %ebx
movq %rdx, %r14
movq (%r13), %rdi
leaq -0x40(%rbp), %r13
movq %r12, %rsi
movq %r13, %rdx
callq 0x583ce
movq %rdx, %rcx
movl %r15d, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0x1e0af
movq %rdx, %rcx
movl %ebx, %edi
movq %r14, %rsi
movl %eax, %edx
callq 0x1e896
movq (%r13), %rcx
movq -0x38(%rbp), %rdx
movq %rcx, (%rdx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x80c97(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6