	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_doc_id
_get_doc_id:                            ## @get_doc_id
	.cfi_startproc
## %bb.0:
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_curword_docs@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jge	LBB0_4
## %bb.3:
	movq	_tot_items@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	retq
LBB0_4:
	movl	%edx, %eax
	movslq	(%rsi,%rax,4), %rax
	leaq	(%rdi,%rax,4), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curword_docs,4,2               ## @curword_docs
	.comm	_tot_items,4,2                  ## @tot_items
	.no_dead_strip	_get_doc_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_doc_id
_get_doc_id:                            ; @get_doc_id
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _curword_docs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curword_docs@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ge	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _tot_items@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tot_items@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_3:
	mov	w0, #-1
	ret
LBB0_4:
	ldrsw	x8, [x1, w2, uxtw #2]
	add	x8, x0, x8, lsl #2
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_curword_docs,4,2               ; @curword_docs
	.comm	_tot_items,4,2                  ; @tot_items
	.no_dead_strip	_get_doc_id
.subsections_via_symbols
