	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddChild
_AddChild:                              ## @AddChild
	.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	%rsi, %r13
	movq	%rdi, %r15
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_HPDF_Dict_GetItem
	movl	%eax, %ebx
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_HPDF_Dict_GetItem
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
	callq	_HPDF_PTRACE
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_5
LBB0_4:
	movslq	%r12d, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_HPDF_Dict_Add
	movq	%r13, %rbx
	movq	%rax, %r13
	addq	%r14, %r13
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r14
	addq	%r13, %r14
	movq	%rbx, %r13
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %rbx
	addq	%r14, %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_HPDF_Dict_Add
	addq	%rbx, %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r14
	testl	%r12d, %r12d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"First"

	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
L_.str.1:                               ## @.str.1
	.asciz	"Last"

L_.str.2:                               ## @.str.2
	.asciz	" AddChild\n"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"Parent"

	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.no_dead_strip	_AddChild
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddChild
_AddChild:                              ; @AddChild
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _HPDF_OCLASS_DICT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HPDF_OCLASS_DICT@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_HPDF_Dict_GetItem
	mov	x22, x0
	ldr	w2, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_GetItem
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	w22, LBB0_6
; %bb.1:
	mov	x22, #0
	cbz	w21, LBB0_3
LBB0_2:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_HPDF_Dict_Add
	add	x22, x0, x22
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_HPDF_Dict_Add
	add	x22, x22, x0
LBB0_3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_HPDF_Dict_Add
	add	x21, x0, x22
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_HPDF_Dict_Add
Lloh16:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x0, x21, x0
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	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
LBB0_5:
	ldr	w0, [x19]
	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
	b	_HPDF_Error_GetCode
LBB0_6:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_HPDF_Dict_Add
	mov	x22, x0
	cbnz	w21, LBB0_2
	b	LBB0_3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"First"

	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
l_.str.1:                               ; @.str.1
	.asciz	"Last"

l_.str.2:                               ; @.str.2
	.asciz	" AddChild\n"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"Parent"

	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.no_dead_strip	_AddChild
.subsections_via_symbols
