// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %r8, %r14
movq %rcx, %rbx
movq %rdi, %r15
cmpl $0x1, %esi
je 0xdb2c4
testl %esi, %esi
jne 0xdb352
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq (%rdx), %r12
movq %rdx, %rdi
callq 0x5030
movq 0x10(%r12), %rsi
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xdb281
incl (%rax)
movl (%r12), %edx
movq 0x8(%r12), %rcx
andq %rcx, %r13
sete %al
testb $0x3, %cl
setne %dil
orb %al, %dil
jne 0xdb2a0
incl (%r13)
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movq %r13, %r8
callq 0xdb626
movq %rax, %r15
movq (%r13), %r13
leaq -0x38(%rbp), %rsi
movq %r12, %rdi
callq 0xb2efb
jmp 0xdb335
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq (%rdx), %r12
movq %rdx, %rdi
callq 0x5030
movq 0x10(%r12), %rsi
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0xdb2f4
incl (%rax)
movl (%r12), %edx
movq 0x8(%r12), %rcx
andq %rcx, %r13
sete %al
testb $0x3, %cl
setne %dil
orb %al, %dil
jne 0xdb313
incl (%r13)
leaq -0x38(%rbp), %r13
movq %r15, %rdi
movq %r13, %r8
callq 0xdb626
movq %rax, %r15
movq (%r13), %r13
leaq -0x38(%rbp), %rsi
movq %r12, %rdi
callq 0xb2a4b
movups -0x38(%rbp), %xmm0
movups %xmm0, (%r14)
movq %r13, (%rbx)
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x5362(%rip), %xmm0     # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x5367(%rip), %xmm0     # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302