	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_lookup
_cache_lookup:                          ## @cache_lookup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rdx, %rdi
	callq	_strlen
	movq	%rax, %rdx
	movq	(%r13), %rax
	movq	16(%r13), %r15
	leaq	(%rax,%rax,4), %rbx
	cmpq	%r12, (%r15,%rbx,8)
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.1:
	cmpq	%rdx, 8(%r15,%rbx,8)
	jne	LBB0_3
## %bb.2:
	movl	32(%r15,%rbx,8), %edi
	movq	%r14, %rsi
	callq	_memcmp
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hash_func
	movl	%eax, %ecx
	sarl	$16, %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	sarq	$8, %rax
	addq	%rdx, %rax
	movq	_BUCKET_COUNT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	movq	%r14, %rsi
	shrq	$32, %rdx
	je	LBB0_5
## %bb.4:
	cqto
	idivq	%rdi
	movq	%rdx, %rbx
	jmp	LBB0_6
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %ebx
LBB0_6:
	movq	16(%r13), %r15
	movq	%rbx, (%r13)
	leaq	(%rbx,%rbx,4), %r14
	cmpl	%ecx, 16(%r15,%r14,8)
	jne	LBB0_19
## %bb.7:
	cmpq	%r12, (%r15,%r14,8)
	jne	LBB0_19
## %bb.8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, 8(%r15,%r14,8)
	jne	LBB0_19
## %bb.9:
	movl	32(%r15,%r14,8), %edi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	movq	24(%r15,%r14,8), %rax
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_19
LBB0_14:
	movq	24(%r15,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	(%r13), %rbx
LBB0_17:
	movq	%rbx, 8(%r13)
	jmp	LBB0_20
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUCKET_COUNT,8,3               ## @BUCKET_COUNT
	.no_dead_strip	_cache_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_lookup
_cache_lookup:                          ; @cache_lookup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x2
	bl	_strlen
	mov	x21, x0
	ldr	x23, [x19, #16]
	ldr	x24, [x19]
	mov	w8, #40
	mul	x8, x24, x8
	ldr	x8, [x23, x8]
	cmp	x8, x22
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #40
	madd	x8, x24, x8, x23
	ldr	x8, [x8, #8]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #40
	madd	x8, x24, x8, x23
	ldr	w0, [x8, #32]
	mov	x1, x20
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_9
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_hash_func
	add	w8, w0, w0, asr #16
	sxtw	x8, w8
	add	x8, x8, x8, asr #8
Lloh0:
	adrp	x9, _BUCKET_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUCKET_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sdiv	x10, x8, x9
	msub	x23, x10, x9, x8
	ldr	x24, [x19, #16]
	str	x23, [x19]
	mov	w8, #40
	madd	x8, x23, x8, x24
	ldr	w8, [x8, #16]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.4:
	mov	w8, #40
	mul	x8, x23, x8
	ldr	x8, [x24, x8]
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.5:
	mov	w8, #40
	madd	x8, x23, x8, x24
	ldr	x8, [x8, #8]
	cmp	x8, x21
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #40
	madd	x8, x23, x8, x24
	ldr	w0, [x8, #32]
	mov	x1, x20
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_11
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w8, #40
	madd	x8, x24, x8, x23
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_8
; %bb.10:
	ldr	x23, [x19]
	b	LBB0_12
LBB0_11:
	mov	w8, #40
	madd	x8, x23, x8, x24
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_8
LBB0_12:
	str	x23, [x19, #8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUCKET_COUNT,8,3               ; @BUCKET_COUNT
	.no_dead_strip	_cache_lookup
.subsections_via_symbols
