// File: /workspace/github_c_makefile_star2_O3/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, -0x50(%rbp)
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rdi, -0x48(%rbp)
movq 0x78(%rdi), %rdi
leaq -0x58(%rbp), %rbx
movq %rbx, %rdx
callq 0x13def
movq %rax, %r12
movq (%rbx), %r15
movq %r15, %rcx
andq %r14, %rcx
setne %al
testb $0x3, %r15b
sete %dl
andb %al, %dl
movb %dl, -0x29(%rbp)
cmpb $0x1, %dl
jne 0x139da
incl (%rcx)
movq %rcx, -0x40(%rbp)
movl $0x4, %edi
callq 0x524c
movq %rax, %r13
movq $0x3, 0x10(%rax)
movq $-0x1, 0x18(%rax)
movl $0x0, 0x20(%rax)
movq %r12, %r14
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r14
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x13a4d
incl (%r14)
movl $0x1, %ebx
movl $0x1, %esi
movq %r12, %rdi
callq 0xe83a
movl (%r14), %ecx
testl %eax, %eax
js 0x13ad1
incl %ecx
movl %ecx, (%r14)
movb $0x1, %al
movq %rax, -0x38(%rbp)
jmp 0x13a74
movl $0x1, %ebx
movl $0x1, %esi
movq %r12, %rdi
callq 0xe83a
xorl %ecx, %ecx
testl %eax, %eax
movl $0x0, %eax
movq %rax, -0x38(%rbp)
cmovsq %rcx, %r14
cmovsq %rbx, %r12
movq %r12, %rbx
movq %r13, %r12
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r12
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
jne 0x13ab3
incl (%r12)
movq %r13, %rdi
movq %rbx, %rsi
callq 0xe83a
testl %eax, %eax
js 0x13af4
decl (%r12)
jne 0x13b1a
movq %r13, %rax
jmp 0x13b0b
movq %r13, %rdi
movq %rbx, %rsi
callq 0xe83a
testl %eax, %eax
sets %al
movq %r13, %rdi
cmovnsq %rbx, %rdi
testb %al, -0x38(%rbp)
jne 0x13afd
jmp 0x13b1d
decl %ecx
movl %ecx, (%r14)
jne 0x13ae7
movq %r12, %rdi
leaq 0xfd947(%rip), %rsi     # 0x111429
callq 0xd13d
movq $0x0, -0x38(%rbp)
xorl %r14d, %r14d
jmp 0x13a77
movq %r13, %rdi
cmpb $0x0, -0x38(%rbp)
je 0x13b1d
decl (%r14)
movq %rbx, %rax
movq %r13, %rbx
movq %r13, %rdi
jne 0x13b1d
movq %rax, %rdi
leaq 0xfd914(%rip), %rsi     # 0x111429
callq 0xd13d
movq %rbx, %rdi
callq 0xe445
testq %r15, %r15
je 0x13c01
cmpq %rax, 0x10(%r15)
jbe 0x13c0f
movq %r15, %rdi
movq %rax, %rsi
callq 0x128cb
movq %rax, %rbx
movq %rdx, %r12
testb $0x1, %r12b
je 0x13b6b
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x13b6b
incl (%rax)
cmpb $0x0, -0x29(%rbp)
je 0x13b88
movq -0x40(%rbp), %rax
decl (%rax)
jne 0x13b88
leaq 0xfdae9(%rip), %rsi     # 0x111669
movq %r15, %rdi
callq 0xd13d
movq 0x10(%r15), %rdx
movq 0x20(%r15), %rsi
movq %r15, %rdi
callq 0x12937
movq %rax, %r15
movq %rbx, %rdi
movq %r12, %rsi
callq 0x13c34
movq -0x48(%rbp), %r14
movq %r15, 0x78(%r14)
movq %rbx, %rdi
callq 0xe3d6
movl $0x1, %esi
movq %rax, %rdi
callq 0xe83a
testl %eax, %eax
je 0x13be7
xorl %edi, %edi
cmpq %rbx, 0x1100908(%rip)   # 0x11144d8
cmovaeq %rbx, %rdi
leaq 0xfdb1d(%rip), %rsi     # 0x1116f8
callq 0x9353
movl $0x1, %eax
jmp 0x13beb
xorl %eax, %eax
xorl %edx, %edx
movq -0x50(%rbp), %rcx
movq %r14, (%rcx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xce685(%rip), %rsi     # 0xe228d
movl $0x31, %edx
jmp 0x13c1b
leaq 0xce6a9(%rip), %rsi     # 0xe22bf
movl $0x3b, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130