	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Xref_GetEntryByObjectId   ## -- Begin function HPDF_Xref_GetEntryByObjectId
	.p2align	4, 0x90
_HPDF_Xref_GetEntryByObjectId:          ## @HPDF_Xref_GetEntryByObjectId
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r14, %r14
	je	LBB0_13
## %bb.1:
	movl	$16, %r8d
	movq	%r14, %rdi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%rdi), %rsi
	movq	16(%rdi), %rax
	movq	(%rax), %rcx
	leaq	(%rsi,%rcx), %rax
	cmpq	%rbx, %rax
	jg	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, %rsi
	jge	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdx
	subq	%rsi, %rdx
	leaq	-1(%rcx), %rsi
	cmpq	%rsi, %rdx
	cmovbq	%rdx, %rsi
	incq	%rsi
	cmpq	$17, %rsi
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %eax
	andl	$15, %eax
	testq	%rax, %rax
	cmoveq	%r8, %rax
	subq	%rax, %rsi
	movq	%rsi, %rax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	$-16, %rax
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rsi, %rdx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_HPDF_Xref_GetEntry             ## TAILCALL
LBB0_3:
	movl	24(%r14), %edi
	movq	_HPDF_INVALID_OBJ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_HPDF_SetError
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Xref_GetEntryByObjectId\n"

	.comm	_HPDF_INVALID_OBJ_ID,4,2        ## @HPDF_INVALID_OBJ_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Xref_GetEntryByObjectId   ; -- Begin function HPDF_Xref_GetEntryByObjectId
	.p2align	2
_HPDF_Xref_GetEntryByObjectId:          ; @HPDF_Xref_GetEntryByObjectId
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x19, LBB0_13
; %bb.1:
	mov	w8, #16
	mov	x0, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x9, [x0, #16]
	ldr	x9, [x9]
	ldr	x10, [x0]
	add	x11, x10, x9
	cmp	x11, x20
	b.gt	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x10, x20
	ccmp	x9, #1, #8, lt
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x11, x9, #1
	sub	x10, x20, x10
	cmp	x10, x11
	csel	x11, x10, x11, lo
	add	x11, x11, #1
	cmp	x11, #17
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ands	x12, x11, #0xf
	csel	x12, x8, x12, eq
	sub	x1, x11, x12
	mov	x11, x1
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	subs	x11, x11, #16
	b.ne	LBB0_8
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x10, x1
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x1, x1, #1
	cmp	x9, x1
	b.ne	LBB0_9
	b	LBB0_2
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_HPDF_Xref_GetEntry
LBB0_12:
	ldr	w0, [x19, #24]
Lloh2:
	adrp	x8, _HPDF_INVALID_OBJ_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_INVALID_OBJ_ID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
LBB0_13:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Xref_GetEntryByObjectId\n"

	.comm	_HPDF_INVALID_OBJ_ID,4,2        ; @HPDF_INVALID_OBJ_ID
.subsections_via_symbols
