// File: /workspace/github_c_makefile_star2_O2/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, %r13   # imm = 0xFFFFFFFFFFFC
movq %rdi, -0x50(%rbp)
movq 0x78(%rdi), %rdi
leaq -0x60(%rbp), %r14
movq %r14, %rdx
callq 0x130e4
movq %rax, %r15
movq (%r14), %rcx
movq %rcx, %rdx
andq %r13, %rdx
setne %al
movq %rcx, -0x40(%rbp)
testb $0x3, %cl
sete %cl
andb %al, %cl
movb %cl, -0x29(%rbp)
cmpb $0x1, %cl
jne 0x12ce5
incl (%rdx)
movq %rdx, -0x48(%rbp)
pushq $-0x1
popq %rdi
callq 0xdbc8
movq %rax, -0x38(%rbp)
movq %r15, %rbx
andq %r13, %rbx
setne %al
testb $0x3, %r15b
sete %r14b
andb %al, %r14b
cmpb $0x1, %r14b
jne 0x12d11
incl (%rbx)
pushq $0x1
popq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x89cc
movq %r12, %rcx
andb %al, %r14b
testb %al, %al
movq %r15, %r12
cmovneq %rcx, %r12
cmpb $0x1, %r14b
jne 0x12d50
decl (%rbx)
je 0x12d3e
movq %rcx, %r12
jmp 0x12d50
movq %r15, %rdi
movq %rcx, %r12
leaq 0xf56de(%rip), %rsi     # 0x108429
callq 0xce94
movq %r12, %rbx
andq %r13, %rbx
setne %al
testb $0x3, %r12b
sete %r14b
andb %al, %r14b
cmpb $0x1, %r14b
movq -0x38(%rbp), %rdi
jne 0x12d70
incl (%rbx)
movq %rdi, %r15
andq %r13, %r15
setne %al
testb $0x3, %dil
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0x12d8d
incl (%r15)
movq %r12, %rsi
callq 0x89cc
testb %al, %al
je 0x12db9
testb %r14b, %r14b
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
je 0x12de3
decl (%rbx)
movq %r12, %rdi
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %r12
jne 0x12df7
jmp 0x12dd5
testb %r13b, %r13b
movq -0x40(%rbp), %r14
je 0x12ded
decl (%r15)
movq -0x38(%rbp), %rdi
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
jne 0x12df7
leaq 0xf564d(%rip), %rsi     # 0x108429
callq 0xce94
jmp 0x12df7
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %r12
jmp 0x12df7
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %r12, %rdi
callq 0xdc43
testq %r14, %r14
je 0x12ec8
cmpq %rax, 0x10(%r14)
jbe 0x12ed6
movq %r14, %rdi
movq %rax, %rsi
callq 0x11ca8
movq %rax, %r12
movq %rdx, %rbx
testb $0x1, %bl
je 0x12e3e
movq %r12, %rax
andq %r15, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x12e3e
incl (%rax)
cmpb $0x0, -0x29(%rbp)
je 0x12e5b
movq -0x48(%rbp), %rax
decl (%rax)
jne 0x12e5b
leaq 0xf5816(%rip), %rsi     # 0x108669
movq %r14, %rdi
callq 0xce94
movq %r14, %rdi
callq 0x11d0e
movq %rax, %r14
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12f3d
movq -0x50(%rbp), %rbx
movq %r14, 0x78(%rbx)
movq %r12, %rdi
callq 0xdbc8
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0xd759
testb %al, %al
je 0x12e96
xorl %eax, %eax
xorl %edx, %edx
jmp 0x12eb2
xorl %edi, %edi
cmpq %r12, 0x10f8639(%rip)   # 0x110b4d8
cmovaeq %r12, %rdi
leaq 0xf584e(%rip), %rsi     # 0x1086f8
callq 0x8d0c
pushq $0x1
popq %rax
movq -0x58(%rbp), %rcx
movq %rbx, (%rcx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc3507(%rip), %rsi     # 0xd63d6
pushq $0x2
popq %rdi
pushq $0x31
jmp 0x12ee2
leaq 0xc352b(%rip), %rsi     # 0xd6408
pushq $0x2
popq %rdi
pushq $0x3b
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130