	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Outline_New               ## -- Begin function HPDF_Outline_New
	.p2align	4, 0x90
_HPDF_Outline_New:                      ## @HPDF_Outline_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.1:
	testq	%r12, %r12
	je	LBB0_14
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r15
	movq	_BeforeWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_HPDF_Xref_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.5:
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_HPDF_String_New
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r14
	movq	_HPDF_OUTLINE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_HPDF_Number_New
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	addq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	movq	_HPDF_OTYPE_HIDDEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r12
	addq	%r14, %r12
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_AddChild
	addq	%rbx, %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.8:
	movq	_HPDF_OSUBCLASS_OUTLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_14
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Outline_New\n"

	.comm	_BeforeWrite,4,2                ## @BeforeWrite
L_.str.1:                               ## @.str.1
	.asciz	"Title"

	.comm	_HPDF_OUTLINE_OPENED,4,2        ## @HPDF_OUTLINE_OPENED
	.comm	_HPDF_OTYPE_HIDDEN,4,2          ## @HPDF_OTYPE_HIDDEN
L_.str.2:                               ## @.str.2
	.asciz	"_OPENED"

L_.str.3:                               ## @.str.3
	.asciz	"Type"

L_.str.4:                               ## @.str.4
	.asciz	"Outlines"

	.comm	_HPDF_OSUBCLASS_OUTLINE,4,2     ## @HPDF_OSUBCLASS_OUTLINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Outline_New               ; -- Begin function HPDF_Outline_New
	.p2align	2
_HPDF_Outline_New:                      ; @HPDF_Outline_New
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HPDF_OK@GOTPAGEOFF]
	ldr	x26, [x25]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x19, #0
	cbz	w21, LBB0_10
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	cbz	w24, LBB0_10
; %bb.3:
	mov	x0, x21
	bl	_HPDF_Dict_New
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.4:
Lloh4:
	adrp	x8, _BeforeWrite@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BeforeWrite@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x24
	mov	x1, x19
	bl	_HPDF_Xref_Add
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_HPDF_String_New
	cbz	x0, LBB0_9
; %bb.6:
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_Add
	mov	x22, x0
Lloh9:
	adrp	x8, _HPDF_OUTLINE_OPENED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_OUTLINE_OPENED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_HPDF_Number_New
	cbz	x0, LBB0_9
; %bb.7:
	mov	x2, x0
	add	x21, x22, x26
Lloh12:
	adrp	x8, _HPDF_OTYPE_HIDDEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HPDF_OTYPE_HIDDEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_Add
	add	x21, x21, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddName
	add	x21, x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_AddChild
	ldr	x8, [x25]
	add	x9, x21, x0
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
Lloh21:
	adrp	x8, _HPDF_OSUBCLASS_OUTLINE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HPDF_OSUBCLASS_OUTLINE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Outline_New\n"

	.comm	_BeforeWrite,4,2                ; @BeforeWrite
l_.str.1:                               ; @.str.1
	.asciz	"Title"

	.comm	_HPDF_OUTLINE_OPENED,4,2        ; @HPDF_OUTLINE_OPENED
	.comm	_HPDF_OTYPE_HIDDEN,4,2          ; @HPDF_OTYPE_HIDDEN
l_.str.2:                               ; @.str.2
	.asciz	"_OPENED"

l_.str.3:                               ; @.str.3
	.asciz	"Type"

l_.str.4:                               ; @.str.4
	.asciz	"Outlines"

	.comm	_HPDF_OSUBCLASS_OUTLINE,4,2     ; @HPDF_OSUBCLASS_OUTLINE
.subsections_via_symbols
