	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Array_Add                 ## -- Begin function HPDF_Array_Add
	.p2align	4, 0x90
_HPDF_Array_Add:                        ## @HPDF_Array_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.5:
	movl	(%rbx), %ecx
	movq	_HPDF_OTYPE_DIRECT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	testl	%ecx, %edx
	jne	LBB0_2
## %bb.6:
	movq	8(%r14), %rdi
	movq	_HPDF_LIMIT_MAX_ARRAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rdi)
	jge	LBB0_7
## %bb.8:
	movq	_HPDF_OTYPE_INDIRECT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.9:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_HPDF_Proxy_New
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movl	(%r15), %ecx
	orl	%ecx, (%rax)
	movq	8(%r14), %rdi
	movq	%rax, %rbx
	jmp	LBB0_12
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	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_4:
	movq	_HPDF_INVALID_OBJECT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_14
LBB0_7:
	movq	%rax, %rdi
	callq	_HPDF_PTRACE
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_HPDF_Obj_Free
	movl	16(%r14), %edi
	movq	_HPDF_ARRAY_COUNT_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	orl	%ecx, %edx
	movl	%edx, (%rbx)
LBB0_12:
	movq	%rbx, %rsi
	callq	_HPDF_List_Add
	movq	%rax, %r15
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_14
## %bb.13:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_HPDF_Obj_Free
LBB0_14:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_HPDF_Obj_Free
	movl	16(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Array_Add\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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Array_Add                 ; -- Begin function HPDF_Array_Add
	.p2align	2
_HPDF_Array_Add:                        ; @HPDF_Array_Add
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x20, LBB0_6
; %bb.1:
	ldr	w9, [x20]
Lloh2:
	adrp	x21, _HPDF_OTYPE_DIRECT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HPDF_OTYPE_DIRECT@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w9
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x19, #8]
	ldr	x11, [x0]
Lloh4:
	adrp	x8, _HPDF_LIMIT_MAX_ARRAY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_LIMIT_MAX_ARRAY@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x11, x8
	b.ge	LBB0_10
; %bb.3:
Lloh7:
	adrp	x8, _HPDF_OTYPE_INDIRECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_OTYPE_INDIRECT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.4:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Proxy_New
	cbz	x0, LBB0_15
; %bb.5:
	mov	x8, x0
	ldr	w9, [x21]
	ldr	w10, [x0]
	orr	w9, w10, w9
	str	w9, [x0]
	ldr	x0, [x19, #8]
	mov	x20, x8
	b	LBB0_12
LBB0_6:
	ldr	w0, [x19, #16]
	bl	_HPDF_Error_GetCode
Lloh10:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_7:
	ldr	w0, [x19, #16]
Lloh13:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
LBB0_8:
	ldr	x1, [x8]
	mov	w2, #0
	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_SetError
LBB0_9:
Lloh15:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
Lloh17:
	ldr	x21, [x8]
	b	LBB0_14
LBB0_10:
	mov	x0, x8
	bl	_HPDF_PTRACE
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Obj_Free
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x8, _HPDF_ARRAY_COUNT_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HPDF_ARRAY_COUNT_ERR@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
	orr	w8, w10, w9
	str	w8, [x20]
LBB0_12:
	mov	x1, x20
	bl	_HPDF_List_Add
	mov	x21, x0
Lloh20:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Obj_Free
LBB0_14:
	mov	x0, x21
	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_15:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_HPDF_Obj_Free
	ldr	w0, [x19, #16]
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Array_Add\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
.subsections_via_symbols
