	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function docid_to_itemid
_docid_to_itemid:                       ## @docid_to_itemid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	shrl	$31, %edi
	callq	_unlikely
	movq	%rax, %rcx
	movq	$-1, %rax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.1:
	movq	_idx_items@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_MAX_ITEM_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IndexItems@GOTPCREL(%rip), %rcx
	movslq	%ebx, %rax
	shlq	$3, %rax
	addq	(%rcx), %rax
LBB0_4:
	movq	(%rax), %rax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idx_items,4,2                  ## @idx_items
	.comm	_MAX_ITEM_ID,8,3                ## @MAX_ITEM_ID
	.comm	_IndexItems,8,3                 ## @IndexItems
	.no_dead_strip	_docid_to_itemid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function docid_to_itemid
_docid_to_itemid:                       ; @docid_to_itemid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, #-1
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _idx_items@GOTPAGE
Lloh1:
	ldr	x8, [x8, _idx_items@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, le
	bl	_unlikely
Lloh3:
	adrp	x8, _IndexItems@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IndexItems@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #3
Lloh6:
	adrp	x9, _MAX_ITEM_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_ITEM_ID@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	x0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_idx_items,4,2                  ; @idx_items
	.comm	_MAX_ITEM_ID,8,3                ; @MAX_ITEM_ID
	.comm	_IndexItems,8,3                 ; @IndexItems
	.no_dead_strip	_docid_to_itemid
.subsections_via_symbols
