// File: /workspace/github_c_makefile_star2_O0/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
subq $0x100, %rsp            # imm = 0x100
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movl %r8d, -0x20(%rbp)
movq %r9, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0xe4(%rbp)
testl %eax, %eax
je 0x29e691
jmp 0x29e67d
movl -0xe4(%rbp), %eax
subl $0x1, %eax
je 0x29e729
jmp 0x29e7d9
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0x29e0c0
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x60(%rbp), %rdx
movl -0x10(%rbp), %ecx
movq -0x8(%rbp), %r8
leaq -0x68(%rbp), %r9
leaq -0x70(%rbp), %r10
leaq -0x78(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x29e970
movq -0x78(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0xf4bf0(%rip), %rax     # 0x3932d0
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0x88(%rbp), %rdx
callq 0x29e5a0
movq -0x88(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x29e7f2
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x29e300
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movl -0x10(%rbp), %ecx
movq -0x8(%rbp), %r8
leaq -0xb0(%rbp), %r9
leaq -0xb8(%rbp), %r10
leaq -0xc0(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x29eaa0
movq -0xc0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0xf4b8e(%rip), %rax     # 0x393318
movq %rax, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x29be80
movq -0xd0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x29e7f2
leaq 0xb56a1(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq 0x20(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
movq -0x48(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)