	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Destination_Validate      ## -- Begin function HPDF_Destination_Validate
	.p2align	4, 0x90
_HPDF_Destination_Validate:             ## @HPDF_Destination_Validate
	.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	_HPDF_FALSE@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_HPDF_OCLASS_ARRAY@GOTPCREL(%rip), %rax
	movq	_HPDF_OSUBCLASS_DESTINATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	cmpl	%ecx, (%rdi)
	jne	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.3:
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_HPDF_Array_GetItem
	movq	%rax, %rdi
	callq	_HPDF_Page_Validate
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_HPDF_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_5:
	movl	(%rbx), %edi
	movq	_HPDF_INVALID_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_HPDF_SetError
LBB0_6:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OCLASS_ARRAY,4,2          ## @HPDF_OCLASS_ARRAY
	.comm	_HPDF_OSUBCLASS_DESTINATION,4,2 ## @HPDF_OSUBCLASS_DESTINATION
	.comm	_HPDF_FALSE,4,2                 ## @HPDF_FALSE
	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_PAGE,4,2          ## @HPDF_INVALID_PAGE
	.comm	_HPDF_TRUE,4,2                  ## @HPDF_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Destination_Validate      ; -- Begin function HPDF_Destination_Validate
	.p2align	2
_HPDF_Destination_Validate:             ; @HPDF_Destination_Validate
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HPDF_OCLASS_ARRAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HPDF_OCLASS_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HPDF_OSUBCLASS_DESTINATION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HPDF_OSUBCLASS_DESTINATION@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _HPDF_OCLASS_DICT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPDF_OCLASS_DICT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_HPDF_Array_GetItem
	bl	_HPDF_Page_Validate
	cbz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _HPDF_TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _HPDF_INVALID_PAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_INVALID_PAGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
LBB0_6:
Lloh14:
	adrp	x8, _HPDF_FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HPDF_FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OCLASS_ARRAY,4,2          ; @HPDF_OCLASS_ARRAY
	.comm	_HPDF_OSUBCLASS_DESTINATION,4,2 ; @HPDF_OSUBCLASS_DESTINATION
	.comm	_HPDF_FALSE,4,2                 ; @HPDF_FALSE
	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_PAGE,4,2          ; @HPDF_INVALID_PAGE
	.comm	_HPDF_TRUE,4,2                  ; @HPDF_TRUE
.subsections_via_symbols
