// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99ValuezfResource_rdup
static void mw_mirth_c99_zaC99ValuezfResource_rdup (struct std_either_zaEither_2 in_zaC99ValuezfResource_1, struct std_either_zaEither_2 *out_zaC99ValuezfResource_2, struct std_either_zaEither_2 *out_zaC99ValuezfResource_3) {
	struct std_either_zaEither_2 branch_zaEither_4;
	struct std_either_zaEither_2 branch_zaEither_5;
	switch ((in_zaC99ValuezfResource_1).tag) {
		case std_either_zaEither_2_zaLeft: {
			VAL v6;
			mtp_std_either_zaEither_2_zaLeft(in_zaC99ValuezfResource_1, &v6);
			struct mirth_c99_zaC99Value* v7;
			struct mirth_c99_zaC99Value* v8;
			mw_mirth_c99_zaC99Value_rdup(V_mirth_c99_zaC99Value(v6), &v7, &v8);
			struct std_either_zaEither_2 v9;
			mtw_std_either_zaEither_2_zaLeft(MK_mirth_c99_zaC99Value(v7), &v9);
			struct std_either_zaEither_2 v10;
			mtw_std_either_zaEither_2_zaLeft(MK_mirth_c99_zaC99Value(v8), &v10);
			branch_zaEither_5 = v10;
			branch_zaEither_4 = v9;
		} break;
		case std_either_zaEither_2_zaRight: {
			VAL v11;
			mtp_std_either_zaEither_2_zaRight(in_zaC99ValuezfResource_1, &v11);
			struct mirth_c99_zaC99Resource* v12;
			struct mirth_c99_zaC99Resource* v13;
			mw_mirth_c99_zaC99Resource_rdup(V_mirth_c99_zaC99Resource(v11), &v12, &v13);
			struct std_either_zaEither_2 v14;
			mtw_std_either_zaEither_2_zaRight(MK_mirth_c99_zaC99Resource(v12), &v14);
			struct std_either_zaEither_2 v15;
			mtw_std_either_zaEither_2_zaRight(MK_mirth_c99_zaC99Resource(v13), &v15);
			branch_zaEither_5 = v15;
			branch_zaEither_4 = v14;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99ValuezfResource_3 = branch_zaEither_5;
	*out_zaC99ValuezfResource_2 = branch_zaEither_4;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movl %edi, -0x10(%rbp)
movq %rsi, -0x8(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x104(%rbp)
testl %eax, %eax
je 0x33ef0d
jmp 0x33eef9
movl -0x104(%rbp), %eax
subl $0x1, %eax
je 0x33efb0
jmp 0x33f077
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x29e0c0
movq -0x50(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x60(%rbp), %rdx
callq 0x32daf0
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x54393(%rip), %rax     # 0x3932d0
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq 0x29e5a0
movq -0x60(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq 0x5436c(%rip), %rax     # 0x3932d0
movq %rax, -0x98(%rbp)
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x29e5a0
movq -0x90(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x33f090
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x29e300
movq -0xb0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
callq 0x32e0f0
movq -0xb8(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x54326(%rip), %rax     # 0x393318
movq %rax, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x29be80
movq -0xc0(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x542f0(%rip), %rax     # 0x393318
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rdi
movq -0xf8(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x29be80
movq -0xf0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x33f090
leaq 0x14e03(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x8(%rax)
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nop