	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Array_GetItem             ## -- Begin function HPDF_Array_GetItem
	.p2align	4, 0x90
_HPDF_Array_GetItem:                    ## @HPDF_Array_GetItem
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	4(%r15), %edi
	movl	%ebx, %esi
	callq	_HPDF_List_ItemAt
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_HPDF_OCLASS_PROXY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rbx
	movl	(%rbx), %eax
LBB0_4:
	movq	_HPDF_OCLASS_ANY@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	%r14d, %eax
	je	LBB0_7
## %bb.5:
	movq	_HPDF_ARRAY_ITEM_UNEXPECTED_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_HPDF_ARRAY_ITEM_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%r15), %edi
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_HPDF_SetError
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Array_GetItem\n"

	.comm	_HPDF_ARRAY_ITEM_NOT_FOUND,4,2  ## @HPDF_ARRAY_ITEM_NOT_FOUND
	.comm	_HPDF_OCLASS_PROXY,4,2          ## @HPDF_OCLASS_PROXY
	.comm	_HPDF_OCLASS_ANY,4,2            ## @HPDF_OCLASS_ANY
	.comm	_HPDF_ARRAY_ITEM_UNEXPECTED_TYPE,4,2 ## @HPDF_ARRAY_ITEM_UNEXPECTED_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Array_GetItem             ; -- Begin function HPDF_Array_GetItem
	.p2align	2
_HPDF_Array_GetItem:                    ; @HPDF_Array_GetItem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_HPDF_List_ItemAt
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _HPDF_OCLASS_PROXY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HPDF_OCLASS_PROXY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x0]
	ldr	w8, [x0]
LBB0_3:
Lloh5:
	adrp	x9, _HPDF_OCLASS_ANY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HPDF_OCLASS_ANY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _HPDF_ARRAY_ITEM_UNEXPECTED_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_ARRAY_ITEM_UNEXPECTED_TYPE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _HPDF_ARRAY_ITEM_NOT_FOUND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HPDF_ARRAY_ITEM_NOT_FOUND@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x19]
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Array_GetItem\n"

	.comm	_HPDF_ARRAY_ITEM_NOT_FOUND,4,2  ; @HPDF_ARRAY_ITEM_NOT_FOUND
	.comm	_HPDF_OCLASS_PROXY,4,2          ; @HPDF_OCLASS_PROXY
	.comm	_HPDF_OCLASS_ANY,4,2            ; @HPDF_OCLASS_ANY
	.comm	_HPDF_ARRAY_ITEM_UNEXPECTED_TYPE,4,2 ; @HPDF_ARRAY_ITEM_UNEXPECTED_TYPE
.subsections_via_symbols
