// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movq %rcx, %rbx
movq %rdi, %r15
cmpl $0x1, %esi
je 0xcf411
testl %esi, %esi
jne 0xcf4a7
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x48(%rbp), %r12
movq %rdx, %rdi
movq %r12, %rsi
callq 0xa8b74
movq (%r12), %r12
movq 0x10(%r12), %rsi
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xcf3ce
incl (%rax)
movl (%r12), %edx
movq 0x8(%r12), %rcx
andq %rcx, %r13
sete %al
testb $0x3, %cl
setne %dil
orb %al, %dil
jne 0xcf3ed
incl (%r13)
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movq %r13, %r8
callq 0xcf725
movq %rax, %r15
movq (%r13), %r13
leaq -0x38(%rbp), %rsi
movq %r12, %rdi
callq 0xa8d15
jmp 0xcf48a
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x48(%rbp), %r12
movq %rdx, %rdi
movq %r12, %rsi
callq 0xa8c28
movq (%r12), %r12
movq 0x10(%r12), %rsi
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xcf449
incl (%rax)
movl (%r12), %edx
movq 0x8(%r12), %rcx
andq %rcx, %r13
sete %al
testb $0x3, %cl
setne %dil
orb %al, %dil
jne 0xcf468
incl (%r13)
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movq %r13, %r8
callq 0xcf725
movq %rax, %r15
movq (%r13), %r13
leaq -0x38(%rbp), %rsi
movq %r12, %rdi
callq 0xa8828
movups -0x38(%rbp), %xmm0
movups %xmm0, (%r14)
movq %r13, (%rbx)
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x535f(%rip), %rdi      # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6