	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_NameTree_Add              ## -- Begin function HPDF_NameTree_Add
	.p2align	4, 0x90
_HPDF_NameTree_Add:                     ## @HPDF_NameTree_Add
	.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	_HPDF_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	%rdx, %rbx
	movq	_HPDF_OCLASS_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_HPDF_Dict_GetItem
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r12d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %edi
	callq	_HPDF_Array_Items
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %rbx
	leaq	-2(%rax), %rsi
	movq	_HPDF_OCLASS_STRING@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%r12d, %edi
	callq	_HPDF_Array_GetItem
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_HPDF_String_Cmp
	testq	%rax, %rax
	jg	LBB0_12
## %bb.6:
	cmpq	$4, %rbx
	jl	LBB0_12
## %bb.7:
	addq	$-4, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r14
	movl	(%r13), %edx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_HPDF_Array_GetItem
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_HPDF_String_Cmp
	testq	%rax, %rax
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	leaq	-2(%rbx), %rax
	cmpq	$2, %rbx
	movq	%rax, %rbx
	movq	%r14, %r13
	jge	LBB0_9
LBB0_12:
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_HPDF_Array_Add
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_HPDF_Array_Add
LBB0_13:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	movq	_HPDF_INVALID_OBJECT@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_HPDF_Array_Insert
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_HPDF_Array_Insert
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_INVALID_PARAMETER,4,2     ## @HPDF_INVALID_PARAMETER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Names"

	.comm	_HPDF_OCLASS_ARRAY,4,2          ## @HPDF_OCLASS_ARRAY
	.comm	_HPDF_INVALID_OBJECT,4,2        ## @HPDF_INVALID_OBJECT
	.comm	_HPDF_OCLASS_STRING,4,2         ## @HPDF_OCLASS_STRING
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_NameTree_Add              ; -- Begin function HPDF_NameTree_Add
	.p2align	2
_HPDF_NameTree_Add:                     ; @HPDF_NameTree_Add
	.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
Lloh0:
	adrp	x8, _HPDF_INVALID_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_INVALID_PARAMETER@GOTPAGEOFF]
	cbz	w0, LBB0_12
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_12
; %bb.2:
	mov	x19, x2
Lloh2:
	adrp	x8, _HPDF_OCLASS_ARRAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_OCLASS_ARRAY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_HPDF_Dict_GetItem
	cbz	w0, LBB0_11
; %bb.3:
	mov	x21, x0
	bl	_HPDF_Array_Items
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	sub	x1, x0, #2
Lloh7:
	adrp	x24, _HPDF_OCLASS_STRING@GOTPAGE
Lloh8:
	ldr	x24, [x24, _HPDF_OCLASS_STRING@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_HPDF_Array_GetItem
	mov	x1, x0
	mov	x0, x20
	bl	_HPDF_String_Cmp
	cmp	x0, #1
	b.ge	LBB0_9
; %bb.5:
	subs	x22, x22, #4
	b.lt	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x22
	bl	_HPDF_Array_GetItem
	mov	x23, x0
	cbz	x22, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_HPDF_String_Cmp
	tbnz	x0, #63, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	subs	x22, x22, #2
	b.ge	LBB0_6
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	bl	_HPDF_Array_Add
	mov	x0, x21
	mov	x1, x19
	bl	_HPDF_Array_Add
LBB0_10:
Lloh9:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh11:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_HPDF_Array_Insert
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	bl	_HPDF_Array_Insert
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_INVALID_PARAMETER,4,2     ; @HPDF_INVALID_PARAMETER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Names"

	.comm	_HPDF_OCLASS_ARRAY,4,2          ; @HPDF_OCLASS_ARRAY
	.comm	_HPDF_INVALID_OBJECT,4,2        ; @HPDF_INVALID_OBJECT
	.comm	_HPDF_OCLASS_STRING,4,2         ; @HPDF_OCLASS_STRING
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
.subsections_via_symbols
