// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_name_Hash_namezo
static struct std_maybe_Maybe_1 mw_mirth_name_Hash_namezo (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Hash_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	ARR* r5 = in_zaMirth_1->mzanamehashmap;
	ARR* v6;
	uint64_t v7 = mw_mirth_name_zaNameHashMap_namezeindexzo(r5, in_Hash_2, &v6);
	in_zaMirth_1->mzanamehashmap = v6;
	INT v8 = WRAP_I63(0LL);
	INT v9 = v8;
	INT v10 = u64_to_int(v7);
	bool v11 = int_eq(v10, v9);
	struct mirth_mirth_zaMirth* branch_zaMirth_12;
	struct std_maybe_Maybe_1 branch_Maybe_13;
	if (v11) {
		struct std_maybe_Maybe_1 v14 = { .tag=std_maybe_Maybe_1_None };
		branch_Maybe_13 = v14;
		branch_zaMirth_12 = in_zaMirth_1;
	} else {
		struct mirth_mirth_zaMirth* v15;
		uint64_t v16 = mw_mirth_name_Name_fromzeindex(in_zaMirth_1, v7, &v15);
		struct std_maybe_Maybe_1 v17 = mtw_std_maybe_Maybe_1_Some(MK_mirth_name_Name(v16));
		branch_Maybe_13 = v17;
		branch_zaMirth_12 = v15;
	}
	*out_zaMirth_3 = branch_zaMirth_12;
	return branch_Maybe_13;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x58(%rbp)
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rdi, -0x50(%rbp)
movq 0x78(%rdi), %rdi
leaq -0x60(%rbp), %r15
movq %r15, %rdx
callq 0x1415d
movq %rax, %rbx
movq (%r15), %rcx
movq %rcx, %rdx
andq %r14, %rdx
setne %al
movq %rcx, -0x38(%rbp)
testb $0x3, %cl
sete %cl
andb %al, %cl
movb %cl, -0x29(%rbp)
cmpb $0x1, %cl
jne 0x13d5c
incl (%rdx)
movq %rdx, -0x48(%rbp)
movl $0x4, %edi
callq 0x524c
movq %rax, %r15
movq $0x3, 0x10(%rax)
movq $-0x1, 0x18(%rax)
movl $0x0, 0x20(%rax)
movq %rbx, %r14
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r14
sete %al
testb $0x3, %bl
setne %r13b
orb %al, %r13b
jne 0x13da6
incl (%r14)
movl $0x1, %esi
movq %rbx, %rdi
callq 0xec04
testl %eax, %eax
setns %al
movq %rbx, %r12
movl $0x1, %ecx
cmovsq %rcx, %r12
orb %al, %r13b
jne 0x13de3
decl (%r14)
jne 0x13ddd
movq %rbx, %rdi
leaq 0x101651(%rip), %rsi    # 0x115429
callq 0xd4e3
movl $0x1, %r12d
movq %r12, %rcx
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %rcx
setne %al
testb $0x3, %r12b
sete %r14b
andb %al, %r14b
cmpb $0x1, %r14b
jne 0x13e09
incl (%rcx)
movq %rcx, -0x40(%rbp)
movq %r15, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
setne %al
testb $0x3, %r15b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x13e32
incl (%r13)
movq %r15, %rdi
movq %r12, %rsi
callq 0xec04
testl %eax, %eax
js 0x13e54
testb %bl, %bl
je 0x13e6a
decl (%r13)
movq -0x38(%rbp), %r14
je 0x13e73
movq %r12, %r15
jmp 0x13e85
testb %r14b, %r14b
movq -0x38(%rbp), %r14
je 0x13e85
movq -0x40(%rbp), %rax
decl (%rax)
movq %r12, %rdi
jne 0x13e85
jmp 0x13e79
movq %r12, %r15
movq -0x38(%rbp), %r14
jmp 0x13e85
movq %r15, %rdi
movq %r12, %r15
leaq 0x1015a9(%rip), %rsi    # 0x115429
callq 0xd4e3
movq %r15, %rdi
callq 0xe818
testq %r14, %r14
je 0x13f6c
cmpq %rax, 0x10(%r14)
jbe 0x13f7a
movq %r14, %rdi
movq %rax, %rsi
callq 0x12c73
movq %rax, %r12
movq %rdx, %rbx
testb $0x1, %bl
je 0x13ed6
movq %r12, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x13ed6
incl (%rax)
cmpb $0x0, -0x29(%rbp)
je 0x13ef3
movq -0x48(%rbp), %rax
decl (%rax)
jne 0x13ef3
leaq 0x10177e(%rip), %rsi    # 0x115669
movq %r14, %rdi
callq 0xd4e3
movq 0x10(%r14), %rdx
movq 0x20(%r14), %rsi
movq %r14, %rdi
callq 0x12cdf
movq %rax, %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x13f9f
movq -0x50(%rbp), %rbx
movq %r15, 0x78(%rbx)
movq %r12, %rdi
callq 0xe7a9
movl $0x1, %esi
movq %rax, %rdi
callq 0xec04
testl %eax, %eax
je 0x13f52
xorl %edi, %edi
cmpq %r12, 0x110459d(%rip)   # 0x11184d8
cmovaeq %r12, %rdi
leaq 0x1017b2(%rip), %rsi    # 0x1156f8
callq 0x95f6
movl $0x1, %eax
jmp 0x13f56
xorl %eax, %eax
xorl %edx, %edx
movq -0x58(%rbp), %rcx
movq %rbx, (%rcx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd2419(%rip), %rsi     # 0xe638c
movl $0x31, %edx
jmp 0x13f86
leaq 0xd243d(%rip), %rsi     # 0xe63be
movl $0x3b, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130