	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Array_Insert              ## -- Begin function HPDF_Array_Insert
	.p2align	4, 0x90
_HPDF_Array_Insert:                     ## @HPDF_Array_Insert
	.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, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r12, %r12
	je	LBB0_1
## %bb.5:
	movl	(%r12), %edx
	movq	_HPDF_OTYPE_DIRECT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	testl	%edx, %esi
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_HPDF_PTRACE
	jmp	LBB0_2
LBB0_1:
	movl	16(%r14), %edi
	callq	_HPDF_Error_GetCode
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_2:
	movl	16(%r14), %edi
	movq	_HPDF_INVALID_OBJECT@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_7:
	movq	8(%r14), %rdi
	movq	(%rdi), %rcx
	movq	_HPDF_LIMIT_MAX_ARRAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_8
## %bb.9:
	movq	_HPDF_OTYPE_INDIRECT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_12
## %bb.10:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_HPDF_Proxy_New
	testq	%rax, %rax
	je	LBB0_24
## %bb.11:
	movl	(%rbx), %ecx
	orl	%ecx, 8(%rax)
	movq	8(%r14), %rdi
	movq	(%rdi), %rcx
	movq	%rax, %r12
	testq	%rcx, %rcx
	jg	LBB0_14
	jmp	LBB0_21
LBB0_4:
	movq	_HPDF_INVALID_OBJECT@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_8:
	movq	%rax, %rdi
	callq	_HPDF_PTRACE
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_HPDF_Obj_Free
	movl	16(%r14), %edi
	movq	_HPDF_ARRAY_COUNT_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	orl	%edx, %esi
	movl	%esi, (%r12)
	testq	%rcx, %rcx
	jle	LBB0_21
LBB0_14:
	xorl	%ebx, %ebx
	movq	_HPDF_OCLASS_PROXY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_HPDF_List_ItemAt
	movq	8(%r12), %rdx
	movq	%rax, %rcx
	cmpq	(%r13), %rdx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rax), %rcx
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%r15, %rcx
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movq	8(%r14), %rdi
	cmpq	(%rdi), %rbx
	jl	LBB0_16
LBB0_21:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_HPDF_Obj_Free
	movq	_HPDF_ITEM_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rbx
LBB0_23:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_HPDF_Obj_Free
	movl	16(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
LBB0_19:
	movq	8(%r14), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_HPDF_List_Insert
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_23
## %bb.20:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_HPDF_Obj_Free
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Array_Insert\n"

	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_INVALID_OBJECT,8,3        ## @HPDF_INVALID_OBJECT
	.comm	_HPDF_OTYPE_DIRECT,4,2          ## @HPDF_OTYPE_DIRECT
	.comm	_HPDF_LIMIT_MAX_ARRAY,8,3       ## @HPDF_LIMIT_MAX_ARRAY
	.comm	_HPDF_ARRAY_COUNT_ERR,8,3       ## @HPDF_ARRAY_COUNT_ERR
	.comm	_HPDF_OTYPE_INDIRECT,4,2        ## @HPDF_OTYPE_INDIRECT
	.comm	_HPDF_OCLASS_PROXY,8,3          ## @HPDF_OCLASS_PROXY
	.comm	_HPDF_ITEM_NOT_FOUND,8,3        ## @HPDF_ITEM_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Array_Insert              ; -- Begin function HPDF_Array_Insert
	.p2align	2
_HPDF_Array_Insert:                     ; @HPDF_Array_Insert
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x20, LBB0_3
; %bb.1:
	ldr	w10, [x20]
Lloh2:
	adrp	x22, _HPDF_OTYPE_DIRECT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HPDF_OTYPE_DIRECT@GOTPAGEOFF]
	ldr	w11, [x22]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_HPDF_PTRACE
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_HPDF_Error_GetCode
Lloh4:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_4:
	ldr	w0, [x19, #16]
Lloh7:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
LBB0_5:
	ldr	x1, [x8]
	mov	w2, #0
	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_SetError
LBB0_6:
	ldr	x0, [x19, #8]
	ldr	x9, [x0]
Lloh9:
	adrp	x8, _HPDF_LIMIT_MAX_ARRAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_LIMIT_MAX_ARRAY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_11
; %bb.7:
Lloh12:
	adrp	x8, _HPDF_OTYPE_INDIRECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HPDF_OTYPE_INDIRECT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_12
; %bb.8:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Proxy_New
	cbz	x0, LBB0_21
; %bb.9:
	mov	x8, x0
	ldr	w9, [x22]
	ldr	w10, [x0, #8]
	orr	w9, w10, w9
	str	w9, [x0, #8]
	ldr	x0, [x19, #8]
	ldr	x9, [x0]
	mov	x20, x8
	cmp	x9, #1
	b.ge	LBB0_13
	b	LBB0_18
LBB0_10:
Lloh15:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
	mov	x0, x8
	bl	_HPDF_PTRACE
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Obj_Free
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x8, _HPDF_ARRAY_COUNT_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HPDF_ARRAY_COUNT_ERR@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	orr	w8, w11, w10
	str	w8, [x20]
	cmp	x9, #1
	b.lt	LBB0_18
LBB0_13:
	mov	x22, #0
Lloh19:
	adrp	x23, _HPDF_OCLASS_PROXY@GOTPAGE
Lloh20:
	ldr	x23, [x23, _HPDF_OCLASS_PROXY@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x22
	bl	_HPDF_List_ItemAt
	mov	x1, x0
	ldr	x9, [x20, #8]
	ldr	x10, [x23]
	mov	x8, x0
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x1]
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	x8, x21
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x22, #1
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cmp	x22, x8
	b.lt	LBB0_14
LBB0_18:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Obj_Free
Lloh21:
	adrp	x8, _HPDF_ITEM_NOT_FOUND@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HPDF_ITEM_NOT_FOUND@GOTPAGEOFF]
LBB0_19:
	ldr	x21, [x8]
LBB0_20:
	mov	x0, x21
	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_21:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Obj_Free
	ldr	w0, [x19, #16]
	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_Error_GetCode
LBB0_22:
	ldr	x0, [x19, #8]
	mov	x2, x20
	bl	_HPDF_List_Insert
	mov	x21, x0
Lloh23:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.23:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Obj_Free
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Array_Insert\n"

	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_INVALID_OBJECT,8,3        ; @HPDF_INVALID_OBJECT
	.comm	_HPDF_OTYPE_DIRECT,4,2          ; @HPDF_OTYPE_DIRECT
	.comm	_HPDF_LIMIT_MAX_ARRAY,8,3       ; @HPDF_LIMIT_MAX_ARRAY
	.comm	_HPDF_ARRAY_COUNT_ERR,8,3       ; @HPDF_ARRAY_COUNT_ERR
	.comm	_HPDF_OTYPE_INDIRECT,4,2        ; @HPDF_OTYPE_INDIRECT
	.comm	_HPDF_OCLASS_PROXY,8,3          ; @HPDF_OCLASS_PROXY
	.comm	_HPDF_ITEM_NOT_FOUND,8,3        ; @HPDF_ITEM_NOT_FOUND
.subsections_via_symbols
