	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_name
_lookup_name:                           ## @lookup_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r8
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ecx
	jmp	LBB0_5
LBB0_2:
	movq	%rsi, %r13
	movq	%r8, %rbx
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	%rax, (%r13)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_lafe_errc
	movq	(%r13), %r12
LBB0_4:
	movq	_name_cache_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	%rbx, %r8
LBB0_5:
	incl	20(%r12)
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movq	8(%r12), %rcx
	movslq	%edx, %rbx
	shlq	$4, %rbx
	movq	(%rcx,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	cmpl	%r14d, 8(%rcx,%rbx)
	jne	LBB0_8
## %bb.7:
	incl	16(%r12)
	jmp	LBB0_15
LBB0_8:
	movq	%rax, %rdi
	movq	%r8, %r13
	callq	_free
	movq	%r13, %r8
	movq	8(%r12), %rax
	movq	$0, (%rax,%rbx)
LBB0_9:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	*%r8
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	leaq	-64(%rbp), %r15
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	$16, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	movq	%r15, -72(%rbp)
	jmp	LBB0_12
LBB0_10:
	movq	-72(%rbp), %r15
LBB0_12:
	movq	%r15, %rdi
	callq	_strdup
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	%r14d, 8(%rcx,%rbx)
	jmp	LBB0_15
LBB0_13:
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No more memory"

	.comm	_name_cache_size,4,2            ## @name_cache_size
L_.str.1:                               ## @.str.1
	.asciz	"%u"

	.no_dead_strip	_lookup_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_name
_lookup_name:                           ; @lookup_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x1]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	b	LBB0_5
LBB0_2:
	mov	x23, x1
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x20, x0
	str	x0, [x23]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_lafe_errc
	ldr	x20, [x23]
LBB0_4:
Lloh8:
	adrp	x8, _name_cache_size@GOTPAGE
Lloh9:
	ldr	x8, [x8, _name_cache_size@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_5:
	ldr	w9, [x20, #20]
	add	w9, w9, #1
	str	w9, [x20, #20]
	sdiv	w9, w19, w8
	msub	w9, w9, w8, w19
	ldr	x8, [x20, #8]
	sxtw	x23, w9
	sbfiz	x9, x9, #4, #32
	ldr	x0, [x8, x9]
	lsl	x24, x23, #4
	cbz	x0, LBB0_9
; %bb.6:
	add	x8, x8, x23, lsl #4
	ldr	w8, [x8, #8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_14
LBB0_8:
	bl	_free
	ldr	x8, [x20, #8]
	str	xzr, [x8, x24]
LBB0_9:
	mov	x1, sp
	mov	x0, x22
	mov	x2, x19
	blr	x21
	cbz	w0, LBB0_11
; %bb.10:
	add	x21, sp, #8
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	mov	x3, x19
	bl	_snprintf
	str	x21, [sp]
	b	LBB0_12
LBB0_11:
	ldr	x21, [sp]
LBB0_12:
	mov	x0, x21
	bl	_strdup
	ldr	x8, [x20, #8]
	str	x0, [x8, x24]
	cbz	x0, LBB0_14
; %bb.13:
	add	x8, x8, x23, lsl #4
	str	w19, [x8, #8]
LBB0_14:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No more memory"

	.comm	_name_cache_size,4,2            ; @name_cache_size
l_.str.1:                               ; @.str.1
	.asciz	"%u"

	.no_dead_strip	_lookup_name
.subsections_via_symbols
