	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Catalog_AddPageLabel      ## -- Begin function HPDF_Catalog_AddPageLabel
	.p2align	4, 0x90
_HPDF_Catalog_AddPageLabel:             ## @HPDF_Catalog_AddPageLabel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_HPDF_Dict_GetItem
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r13, %r13
	je	LBB0_1
LBB0_4:
	movq	_HPDF_OCLASS_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_HPDF_Dict_GetItem
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_HPDF_Array_AddNumber
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Array_Add                 ## TAILCALL
LBB0_1:
	movl	8(%r12), %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
	jmp	LBB0_8
LBB0_5:
	movl	8(%r12), %edi
	callq	_HPDF_Array_New
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
	jmp	LBB0_8
LBB0_2:
	movq	(%r12), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PageLabels"

	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
L_.str.1:                               ## @.str.1
	.asciz	" HPDF_Catalog_AddPageLabel\n"

	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
L_.str.2:                               ## @.str.2
	.asciz	"Nums"

	.comm	_HPDF_OCLASS_ARRAY,4,2          ## @HPDF_OCLASS_ARRAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Catalog_AddPageLabel      ; -- Begin function HPDF_Catalog_AddPageLabel
	.p2align	2
_HPDF_Catalog_AddPageLabel:             ; @HPDF_Catalog_AddPageLabel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HPDF_OCLASS_DICT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_OCLASS_DICT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_HPDF_Dict_GetItem
	mov	x22, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x22, LBB0_4
LBB0_1:
Lloh7:
	adrp	x8, _HPDF_OCLASS_ARRAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_OCLASS_ARRAY@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_HPDF_Dict_GetItem
	mov	x23, x0
	cbz	x0, LBB0_6
LBB0_2:
	mov	x0, x23
	mov	x1, x20
	bl	_HPDF_Array_AddNumber
Lloh12:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x23
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_HPDF_Array_Add
LBB0_4:
	ldr	w0, [x21, #8]
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_HPDF_Dict_Add
Lloh17:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_1
	b	LBB0_9
LBB0_6:
	ldr	w0, [x21, #8]
	bl	_HPDF_Array_New
	cbz	x0, LBB0_8
; %bb.7:
	mov	x23, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_HPDF_Dict_Add
Lloh22:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_2
	b	LBB0_9
LBB0_8:
	ldr	x8, [x21]
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PageLabels"

	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
l_.str.1:                               ; @.str.1
	.asciz	" HPDF_Catalog_AddPageLabel\n"

	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
l_.str.2:                               ; @.str.2
	.asciz	"Nums"

	.comm	_HPDF_OCLASS_ARRAY,4,2          ; @HPDF_OCLASS_ARRAY
.subsections_via_symbols
