// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_c99zefromzeenumzevaluezx
static void mw_mirth_c99_c99zefromzeenumzevaluezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, uint64_t in_Data_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_c99_zaC99Branch* *out_zaC99Branch_5) {
	struct mirth_mirth_zaMirth* v6;
	bool v7 = mw_mirth_data_Data_iszeenumzy(in_zaMirth_1, in_Data_3, &v6);
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	if (v7) {
		branch_zaMirth_8 = v6;
	} else {
		STR* v9;
		STRLIT(v9, "from-enum-value-unsafe on non-enum data type", 44);
		mw_mirth_mirth_zaMirth_fatalzeerrorzx(v6, v9);
	}
	struct mirth_mirth_zaMirth* v11;
	bool v12 = mw_mirth_data_Data_iszeresourcezy(branch_zaMirth_8, in_Data_3, &v11);
	struct mirth_mirth_zaMirth* branch_zaMirth_13;
	if (v12) {
		STR* v14;
		STRLIT(v14, "from-enum-value-unsafe on resource", 34);
		mw_mirth_mirth_zaMirth_fatalzeerrorzx(v11, v14);
	} else {
		branch_zaMirth_13 = v11;
	}
	struct mirth_c99_C99ReprType v16 = { .tag=mirth_c99_C99ReprType_I64 };
	struct mirth_mirth_zaMirth* v17;
	struct mirth_c99_zaC99Branch* v18;
	struct mirth_c99_zaC99Value* v19;
	mw_mirth_c99_zaC99Branch_popzevaluezx(branch_zaMirth_13, in_zaC99Branch_2, v16, &v17, &v18, &v19);
	struct mirth_c99_C99ReprType v20 = mtw_mirth_c99_C99ReprType_Data(in_Data_3);
	struct mirth_mirth_zaMirth* v21;
	struct mirth_c99_zaC99Branch* v22;
	struct mirth_c99_zaC99Value* v23;
	mw_mirth_c99_zaC99Value_convertzevaluezx(v17, v18, v19, v20, &v21, &v22, &v23);
	struct mirth_mirth_zaMirth* v24;
	struct mirth_c99_zaC99Branch* v25;
	mw_mirth_c99_zaC99Value_pushzevaluezx(v21, v22, v23, &v24, &v25);
	*out_zaC99Branch_5 = v25;
	*out_zaMirth_4 = v24;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x1a0550
andb $0x1, %al
movb %al, -0x31(%rbp)
testb $0x1, -0x31(%rbp)
je 0x316c08
movq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x316cff
jmp 0x316c0a
cmpq $0x0, 0x1082ca6(%rip)   # 0x13998b8
jne 0x316c2c
leaq 0x57b6e(%rip), %rdi     # 0x36e789
movl $0x2c, %esi
callq 0xb6c0
movq %rax, 0x1082c8c(%rip)   # 0x13998b8
jmp 0x316c2e
movq 0x1082c83(%rip), %rax   # 0x13998b8
movq %rax, -0x58(%rbp)
leaq 0x7a518(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x316ce5
movq 0x1082c57(%rip), %rax   # 0x13998b8
movq %rax, -0x68(%rbp)
leaq 0x7a4ec(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x316ce5
movq 0x1082c29(%rip), %rax   # 0x13998b8
movq %rax, -0x78(%rbp)
leaq 0x7a4be(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x316ce5
movq 0x1082c01(%rip), %rax   # 0x13998b8
movq %rax, -0x88(%rbp)
leaq 0x7a493(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x316ce7
movq 0x1082bca(%rip), %rax   # 0x13998b8
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x44a80
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x74100
andb $0x1, %al
movb %al, -0x91(%rbp)
testb $0x1, -0x91(%rbp)
je 0x316e48
jmp 0x316d2a
cmpq $0x0, 0x1082b8e(%rip)   # 0x13998c0
jne 0x316d4c
leaq 0x57a7b(%rip), %rdi     # 0x36e7b6
movl $0x22, %esi
callq 0xb6c0
movq %rax, 0x1082b74(%rip)   # 0x13998c0
jmp 0x316d4e
movq 0x1082b6b(%rip), %rax   # 0x13998c0
movq %rax, -0xb8(%rbp)
leaq 0x7a3f5(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x316e23
movq 0x1082b36(%rip), %rax   # 0x13998c0
movq %rax, -0xc8(%rbp)
leaq 0x7a3c0(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
cmpq $0x0, %rax
je 0x316e23
movq 0x1082aff(%rip), %rax   # 0x13998c0
movq %rax, -0xd8(%rbp)
leaq 0x7a389(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x316e23
movq 0x1082ace(%rip), %rax   # 0x13998c0
movq %rax, -0xe8(%rbp)
leaq 0x7a358(%rip), %rax     # 0x391158
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x316e25
movq 0x1082a94(%rip), %rax   # 0x13998c0
movq %rax, -0xa8(%rbp)
movq -0x90(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x44a80
jmp 0x316e56
movq -0x90(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq 0x57dfb(%rip), %rax     # 0x36ec58
movq %rax, -0xf8(%rbp)
movq 0x57df5(%rip), %rax     # 0x36ec60
movq %rax, -0xf0(%rbp)
movq -0xa0(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0xf8(%rbp), %edx
movq -0xf0(%rbp), %rcx
leaq -0x100(%rbp), %r8
leaq -0x108(%rbp), %r9
leaq -0x110(%rbp), %rax
movq %rax, (%rsp)
callq 0x294820
movq -0x18(%rbp), %rdi
callq 0x233590
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0x100(%rbp), %rdi
movq -0x108(%rbp), %rsi
movq -0x110(%rbp), %rdx
movl -0x120(%rbp), %ecx
movq -0x118(%rbp), %r8
leaq -0x128(%rbp), %r9
leaq -0x130(%rbp), %r10
leaq -0x138(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x29e970
movq -0x128(%rbp), %rdi
movq -0x130(%rbp), %rsi
movq -0x138(%rbp), %rdx
leaq -0x140(%rbp), %rcx
leaq -0x148(%rbp), %r8
callq 0x28cb50
movq -0x148(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x140(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq