	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Destination_New           ## -- Begin function HPDF_Destination_New
	.p2align	4, 0x90
_HPDF_Destination_New:                  ## @HPDF_Destination_New
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%r14d, %edi
	callq	_HPDF_Page_Validate
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_HPDF_Array_New
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movq	_HPDF_OSUBCLASS_DESTINATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_HPDF_Xref_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_HPDF_Array_Add
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.4:
	movq	_HPDF_DESTINATION_TYPE_NAMES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HPDF_FIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_HPDF_Array_AddName
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	cmoveq	%r12, %rbx
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movl	(%rbx), %edi
	movq	_HPDF_INVALID_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_HPDF_SetError
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Destination_New\n"

	.comm	_HPDF_INVALID_PAGE,4,2          ## @HPDF_INVALID_PAGE
	.comm	_HPDF_OSUBCLASS_DESTINATION,4,2 ## @HPDF_OSUBCLASS_DESTINATION
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_DESTINATION_TYPE_NAMES,8,3 ## @HPDF_DESTINATION_TYPE_NAMES
	.comm	_HPDF_FIT,8,3                   ## @HPDF_FIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Destination_New           ; -- Begin function HPDF_Destination_New
	.p2align	2
_HPDF_Destination_New:                  ; @HPDF_Destination_New
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x20
	bl	_HPDF_Page_Validate
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_HPDF_Array_New
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh2:
	adrp	x8, _HPDF_OSUBCLASS_DESTINATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_OSUBCLASS_DESTINATION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	mov	x0, x21
	mov	x1, x19
	bl	_HPDF_Xref_Add
Lloh5:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_HPDF_Array_Add
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _HPDF_DESTINATION_TYPE_NAMES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_DESTINATION_TYPE_NAMES@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _HPDF_FIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HPDF_FIT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_HPDF_Array_AddName
	ldr	x8, [x21]
	cmp	x0, x8
	csel	x0, x19, xzr, eq
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _HPDF_INVALID_PAGE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HPDF_INVALID_PAGE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
LBB0_6:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Destination_New\n"

	.comm	_HPDF_INVALID_PAGE,4,2          ; @HPDF_INVALID_PAGE
	.comm	_HPDF_OSUBCLASS_DESTINATION,4,2 ; @HPDF_OSUBCLASS_DESTINATION
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_DESTINATION_TYPE_NAMES,8,3 ; @HPDF_DESTINATION_TYPE_NAMES
	.comm	_HPDF_FIT,8,3                   ; @HPDF_FIT
.subsections_via_symbols
