// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99ValuezfResource_peekzedatazetag
static STR* mw_mirth_c99_zaC99ValuezfResource_peekzedatazetag (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_either_zaEither_2 in_zaC99ValuezfResource_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct std_either_zaEither_2 *out_zaC99ValuezfResource_5) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	STR* branch_Str_7;
	struct std_either_zaEither_2 branch_zaEither_8;
	switch ((in_zaC99ValuezfResource_2).tag) {
		case std_either_zaEither_2_zaLeft: {
			VAL v9;
			mtp_std_either_zaEither_2_zaLeft(in_zaC99ValuezfResource_2, &v9);
			struct mirth_mirth_zaMirth* v10;
			struct mirth_c99_zaC99Value* v11;
			STR* v12 = mw_mirth_c99_zaC99Value_peekzedatazetag(in_zaMirth_1, V_mirth_c99_zaC99Value(v9), &v10, &v11);
			struct std_either_zaEither_2 v13;
			mtw_std_either_zaEither_2_zaLeft(MK_mirth_c99_zaC99Value(v11), &v13);
			branch_zaEither_8 = v13;
			branch_Str_7 = v12;
			branch_zaMirth_6 = v10;
		} break;
		case std_either_zaEither_2_zaRight: {
			VAL v14;
			mtp_std_either_zaEither_2_zaRight(in_zaC99ValuezfResource_2, &v14);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_c99_zaC99Resource* v16;
			STR* v17 = mw_mirth_c99_zaC99Resource_peekzedatazetag(in_zaMirth_1, V_mirth_c99_zaC99Resource(v14), &v15, &v16);
			struct std_either_zaEither_2 v18;
			mtw_std_either_zaEither_2_zaRight(MK_mirth_c99_zaC99Resource(v16), &v18);
			branch_zaEither_8 = v18;
			branch_Str_7 = v17;
			branch_zaMirth_6 = v15;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaC99ValuezfResource_5 = branch_zaEither_8;
	*out_zaMirth_3 = branch_zaMirth_6;
	return branch_Str_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xdc(%rbp)
testl %eax, %eax
je 0x33ed71
jmp 0x33ed5d
movl -0xdc(%rbp), %eax
subl $0x1, %eax
je 0x33edef
jmp 0x33ee8b
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x29e0c0
movq -0x18(%rbp), %rdi
movq -0x58(%rbp), %rsi
leaq -0x60(%rbp), %rdx
leaq -0x68(%rbp), %rcx
callq 0x341f30
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x54524(%rip), %rax     # 0x3932d0
movq %rax, -0x88(%rbp)
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0x29e5a0
movq -0x80(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x33eea4
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x29e300
movq -0x18(%rbp), %rdi
movq -0xa0(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0x342120
movq %rax, -0xb8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x544dc(%rip), %rax     # 0x393318
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0x29be80
movq -0xc8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x33eea4
leaq 0x14fef(%rip), %rdi     # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x28(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, (%rax)
movq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
nop