// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_datazegetzeenumzevaluezetype
static struct mirth_type_ArrowType* mw_mirth_elab_datazegetzeenumzevaluezetype (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Data_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_either_Either_2 v6 = mw_mirth_data_Data_fullzetype(in_zaMirth_1, in_Data_2, &v5);
	struct mirth_mirth_zaMirth* branch_zaMirth_7;
	struct mirth_type_ArrowType* branch_ArrowType_8;
	switch ((v6).tag) {
		case std_either_Either_2_Left: {
			VAL v9 = mtp_std_either_Either_2_Left(v6);
			struct mirth_type_StackType v10 = mw_mirth_type_T1(V_mirth_type_Type(v9));
			struct mirth_type_Type v11 = mw_mirth_type_Type_I64();
			struct mirth_type_StackType v12 = mw_mirth_type_T1(v11);
			struct mirth_type_ArrowType* v13 = mw_mirth_type_Tzezg(v10, v12);
			branch_ArrowType_8 = v13;
			branch_zaMirth_7 = v5;
		} break;
		case std_either_Either_2_Right: {
			VAL v14 = mtp_std_either_Either_2_Right(v6);
			struct mirth_type_StackType v15 = mw_mirth_type_T0();
			incref(v14);
			struct mirth_type_StackType v16 = mw_mirth_type_Tza(v15, V_mirth_type_Type(v14));
			struct mirth_type_Type v17 = mw_mirth_type_Type_I64();
			struct mirth_type_StackType v18 = mw_mirth_type_T1(v17);
			struct mirth_type_StackType v19 = mw_mirth_type_Tza(v18, V_mirth_type_Type(v14));
			struct mirth_type_ArrowType* v20 = mw_mirth_type_Tzezg(v16, v19);
			branch_ArrowType_8 = v20;
			branch_zaMirth_7 = v5;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_3 = branch_zaMirth_7;
	return branch_ArrowType_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0x73390
movl %eax, -0x30(%rbp)
movq %rdx, -0x28(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x124(%rbp)
testl %eax, %eax
je 0x1346a2
jmp 0x13468e
movl -0x124(%rbp), %eax
subl $0x1, %eax
je 0x13473a
jmp 0x1348bd
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x74840
movq %rax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x6f100
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0x14df80
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
callq 0x75530
movl %eax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x14df80
movl %eax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
movl -0x90(%rbp), %edx
movq -0x88(%rbp), %rcx
callq 0x735b0
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x1348d6
movl -0x30(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x748f0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
callq 0x73060
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xa0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1347b7
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x1347b7
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1347b7
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1347b9
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x6f100
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movl -0xb8(%rbp), %edi
movq -0xb0(%rbp), %rsi
movl -0xd8(%rbp), %edx
movq -0xd0(%rbp), %rcx
callq 0x749a0
movl %eax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
callq 0x75530
movl %eax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x14df80
movl %eax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x6f100
movl %eax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
movl -0x118(%rbp), %edx
movq -0x110(%rbp), %rcx
callq 0x749a0
movl %eax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movl -0xc8(%rbp), %edi
movq -0xc0(%rbp), %rsi
movl -0x108(%rbp), %edx
movq -0x100(%rbp), %rcx
callq 0x735b0
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x1348d6
leaq 0x21f5bd(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x38(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nop