// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99ValuezfResource_convertzevaluezfresourcezx
static void mw_mirth_c99_zaC99ValuezfResource_convertzevaluezfresourcezx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99Branch* in_zaC99Branch_2, struct mirth_c99_C99ReprType in_C99ReprType_3, struct std_either_zaEither_2 in_zaC99ValuezfResource_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct mirth_c99_zaC99Branch* *out_zaC99Branch_6, struct std_either_zaEither_2 *out_zaC99ValuezfResource_7) {
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	struct mirth_c99_zaC99Branch* branch_zaC99Branch_9;
	struct std_either_zaEither_2 branch_zaEither_10;
	switch ((in_zaC99ValuezfResource_4).tag) {
		case std_either_zaEither_2_zaLeft: {
			VAL v11;
			mtp_std_either_zaEither_2_zaLeft(in_zaC99ValuezfResource_4, &v11);
			struct mirth_mirth_zaMirth* v12;
			struct mirth_c99_zaC99Branch* v13;
			struct mirth_c99_zaC99Value* v14;
			mw_mirth_c99_zaC99Value_convertzevaluezx(in_zaMirth_1, in_zaC99Branch_2, V_mirth_c99_zaC99Value(v11), in_C99ReprType_3, &v12, &v13, &v14);
			struct std_either_zaEither_2 v15;
			mtw_std_either_zaEither_2_zaLeft(MK_mirth_c99_zaC99Value(v14), &v15);
			branch_zaEither_10 = v15;
			branch_zaC99Branch_9 = v13;
			branch_zaMirth_8 = v12;
		} break;
		case std_either_zaEither_2_zaRight: {
			VAL v16;
			mtp_std_either_zaEither_2_zaRight(in_zaC99ValuezfResource_4, &v16);
			struct mirth_mirth_zaMirth* v17;
			struct mirth_c99_zaC99Branch* v18;
			struct mirth_c99_zaC99Resource* v19;
			mw_mirth_c99_zaC99Resource_convertzeresourcezx(in_zaMirth_1, in_zaC99Branch_2, V_mirth_c99_zaC99Resource(v16), in_C99ReprType_3, &v17, &v18, &v19);
			struct std_either_zaEither_2 v20;
			mtw_std_either_zaEither_2_zaRight(MK_mirth_c99_zaC99Resource(v19), &v20);
			branch_zaEither_10 = v20;
			branch_zaC99Branch_9 = v18;
			branch_zaMirth_8 = v17;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99ValuezfResource_7 = branch_zaEither_10;
	*out_zaC99Branch_6 = branch_zaC99Branch_9;
	*out_zaMirth_5 = branch_zaMirth_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
cmpl $0x1, %r8d
je 0xa8de1
testl %r8d, %r8d
jne 0xa8e57
leaq -0x60(%rbp), %r13
movq %r9, %rdi
movq %r13, %rsi
callq 0xa8b74
movq (%r13), %rdx
leaq -0x30(%rbp), %r13
leaq -0x38(%rbp), %rax
leaq -0x40(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %ecx
movq %rbx, %r8
movq %r9, %r14
pushq %r13
pushq %rax
movq %rax, %rbx
callq 0xa8f46
popq %rax
popq %rcx
movq (%r13), %rdi
leaq -0x50(%rbp), %rsi
callq 0xa8d15
jmp 0xa8e29
leaq -0x60(%rbp), %r13
movq %r9, %rdi
movq %r13, %rsi
callq 0xa8c28
movq (%r13), %rdx
leaq -0x30(%rbp), %r13
leaq -0x38(%rbp), %rax
leaq -0x40(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %ecx
movq %rbx, %r8
movq %r9, %r14
pushq %r13
pushq %rax
movq %rax, %rbx
callq 0xa8fd8
popq %rax
popq %rcx
movq (%r13), %rdi
leaq -0x50(%rbp), %rsi
callq 0xa8828
movq (%rbx), %rax
movq (%r14), %rcx
movq 0x20(%rbp), %rdx
movq 0x18(%rbp), %rsi
movq 0x10(%rbp), %rdi
movups -0x50(%rbp), %xmm0
movups %xmm0, (%rdx)
movq %rax, (%rsi)
movq %rcx, (%rdi)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b9af(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6