	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_OutlineRoot_New           ## -- Begin function HPDF_OutlineRoot_New
	.p2align	4, 0x90
_HPDF_OutlineRoot_New:                  ## @HPDF_OutlineRoot_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%r14d, %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	_BeforeWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_HPDF_Xref_Add
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.2:
	movq	_HPDF_OUTLINE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_HPDF_Number_New
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_HPDF_OTYPE_HIDDEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r14
	addq	%r13, %r14
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	callq	_HPDF_Dict_AddName
	addq	%r14, %rax
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.4:
	movq	_HPDF_OSUBCLASS_OUTLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %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_OutlineRoot_New\n"

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

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

L_.str.3:                               ## @.str.3
	.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_OutlineRoot_New           ; -- Begin function HPDF_OutlineRoot_New
	.p2align	2
_HPDF_OutlineRoot_New:                  ; @HPDF_OutlineRoot_New
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HPDF_OK@GOTPAGEOFF]
	ldr	x23, [x22]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x20
	bl	_HPDF_Dict_New
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh4:
	adrp	x8, _BeforeWrite@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BeforeWrite@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_HPDF_Xref_Add
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
Lloh7:
	adrp	x8, _HPDF_OUTLINE_OPENED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_OUTLINE_OPENED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_HPDF_Number_New
	cbz	x0, LBB0_5
; %bb.3:
	mov	x2, x0
Lloh10:
	adrp	x8, _HPDF_OTYPE_HIDDEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HPDF_OTYPE_HIDDEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_Add
	add	x20, x0, x23
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddName
	ldr	x8, [x22]
	add	x9, x20, x0
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
Lloh19:
	adrp	x8, _HPDF_OSUBCLASS_OUTLINE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HPDF_OSUBCLASS_OUTLINE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, 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
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_OutlineRoot_New\n"

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

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

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

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