	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup
_lookup:                                ## @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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r13
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%r8, %rcx
	callq	_calc_hash
	movl	%eax, %r15d
	movl	$16, %ebx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	addq	$24, %rbx
	cmpq	(%r13), %r14
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movzbl	-16(%rax,%rbx), %edx
	xorl	%ecx, %ecx
	subb	%dl, %cl
	movl	%r15d, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edx
	movl	%edx, -48(%rbp)
	movq	(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-8(%rax,%rbx), %edx
	movq	_cmp_key@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	$4, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.9:
	movq	_H2O_CACHE_DIGESTS_STATE_STALE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	cmpl	$0, 16(%rbp)
	jne	LBB0_6
## %bb.10:
	movq	_H2O_CACHE_DIGESTS_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_H2O_CACHE_DIGESTS_STATE_NOT_CACHED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_H2O_CACHE_DIGESTS_STATE_FRESH@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmp_key,4,2                    ## @cmp_key
	.comm	_H2O_CACHE_DIGESTS_STATE_FRESH,4,2 ## @H2O_CACHE_DIGESTS_STATE_FRESH
	.comm	_H2O_CACHE_DIGESTS_STATE_STALE,4,2 ## @H2O_CACHE_DIGESTS_STATE_STALE
	.comm	_H2O_CACHE_DIGESTS_STATE_NOT_CACHED,4,2 ## @H2O_CACHE_DIGESTS_STATE_NOT_CACHED
	.comm	_H2O_CACHE_DIGESTS_STATE_UNKNOWN,4,2 ## @H2O_CACHE_DIGESTS_STATE_UNKNOWN
	.no_dead_strip	_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup
_lookup:                                ; @lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x5
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	bl	_calc_hash
	mov	x22, x0
	mov	x23, #0
	mov	x24, #0
Lloh0:
	adrp	x25, _cmp_key@GOTPAGE
Lloh1:
	ldr	x25, [x25, _cmp_key@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldr	x8, [x21]
	add	x23, x23, #24
	cmp	x24, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x23
	ldr	w9, [x8]
	neg	w9, w9
	asr	w9, w22, w9
	str	w9, [sp, #12]
	ldr	x1, [x8, #16]
	cbz	x1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x8, #8]
	ldr	w4, [x25]
	add	x0, sp, #12
	mov	w3, #4
	bl	_bsearch
	cbz	x0, LBB0_2
; %bb.5:
Lloh2:
	adrp	x8, _H2O_CACHE_DIGESTS_STATE_FRESH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2O_CACHE_DIGESTS_STATE_FRESH@GOTPAGEOFF]
Lloh4:
	adrp	x9, _H2O_CACHE_DIGESTS_STATE_STALE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _H2O_CACHE_DIGESTS_STATE_STALE@GOTPAGEOFF]
	cmp	w20, #0
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _H2O_CACHE_DIGESTS_STATE_NOT_CACHED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_CACHE_DIGESTS_STATE_NOT_CACHED@GOTPAGEOFF]
Lloh8:
	adrp	x9, _H2O_CACHE_DIGESTS_STATE_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _H2O_CACHE_DIGESTS_STATE_UNKNOWN@GOTPAGEOFF]
	cmp	w19, #0
LBB0_7:
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cmp_key,4,2                    ; @cmp_key
	.comm	_H2O_CACHE_DIGESTS_STATE_FRESH,4,2 ; @H2O_CACHE_DIGESTS_STATE_FRESH
	.comm	_H2O_CACHE_DIGESTS_STATE_STALE,4,2 ; @H2O_CACHE_DIGESTS_STATE_STALE
	.comm	_H2O_CACHE_DIGESTS_STATE_NOT_CACHED,4,2 ; @H2O_CACHE_DIGESTS_STATE_NOT_CACHED
	.comm	_H2O_CACHE_DIGESTS_STATE_UNKNOWN,4,2 ; @H2O_CACHE_DIGESTS_STATE_UNKNOWN
	.no_dead_strip	_lookup
.subsections_via_symbols
