// File: /workspace/github_c_makefile_star2_O3/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 $0x28, %rsp
movq %rcx, %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
cmpl $0x1, %r8d
je 0xb2fd3
testl %r8d, %r8d
jne 0xb3048
movq (%r9), %r13
movq %r9, %rdi
callq 0x5030
leaq -0x30(%rbp), %r10
leaq -0x38(%rbp), %rax
leaq -0x40(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %r14d, %ecx
movq %rbx, %r8
movq %r9, %r14
pushq %r10
movq %r10, %r15
pushq %rax
movq %rax, %rbx
callq 0xb31b6
addq $0x10, %rsp
movq (%r15), %rdi
leaq -0x50(%rbp), %rsi
callq 0xb2efb
jmp 0xb301a
movq (%r9), %r13
movq %r9, %rdi
callq 0x5030
leaq -0x30(%rbp), %r10
leaq -0x38(%rbp), %rax
leaq -0x40(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
movl %r14d, %ecx
movq %rbx, %r8
movq %r9, %r14
pushq %r10
movq %r10, %r15
pushq %rax
movq %rax, %rbx
callq 0xb3248
addq $0x10, %rsp
movq (%r15), %rdi
leaq -0x50(%rbp), %rsi
callq 0xb2a4b
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 $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x2d66c(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x2d671(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302