	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_List_RemoveByIndex        ## -- Begin function HPDF_List_RemoveByIndex
	.p2align	4, 0x90
_HPDF_List_RemoveByIndex:               ## @HPDF_List_RemoveByIndex
	.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, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	(%r15), %r9
	movq	%r9, %r10
	subq	%r14, %r10
	jbe	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	movq	(%rcx,%r14,8), %rax
	leaq	-1(%r9), %r8
	cmpq	%r14, %r8
	jbe	LBB0_10
## %bb.3:
	leaq	1(%r14), %rsi
	movq	8(%rcx,%r14,8), %rdi
	movq	%rdi, (%rcx,%r14,8)
	cmpq	%r8, %rsi
	je	LBB0_10
## %bb.4:
	movl	%r9d, %ecx
	subl	%r14d, %ecx
	addl	$2, %ecx
	addq	$-3, %r10
	andq	$3, %rcx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdx
	leaq	1(%rsi), %rdi
	movq	8(%rdx,%rsi,8), %rbx
	movq	%rbx, (%rdx,%rsi,8)
	movq	%rdi, %rsi
	decq	%rcx
	jne	LBB0_6
## %bb.7:
	cmpq	$3, %r10
	jae	LBB0_8
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	movq	%rsi, %rdi
	cmpq	$3, %r10
	jb	LBB0_10
LBB0_8:
	movq	%rdi, %rdx
	notq	%rdx
	addq	%r9, %rdx
	shlq	$3, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%rdi, %rsi
	movq	8(%rsi,%rcx,8), %rbx
	movq	%rbx, (%rsi,%rcx,8)
	movq	8(%r15), %rsi
	addq	%rdi, %rsi
	movq	16(%rsi,%rcx,8), %rbx
	movq	%rbx, 8(%rsi,%rcx,8)
	movq	8(%r15), %rsi
	addq	%rdi, %rsi
	movq	24(%rsi,%rcx,8), %rbx
	movq	%rbx, 16(%rsi,%rcx,8)
	movq	8(%r15), %rsi
	addq	%rdi, %rsi
	movq	32(%rsi,%rcx,8), %rbx
	movq	%rbx, 24(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_9
LBB0_10:
	movq	%r8, (%r15)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_List_RemoveByIndex\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_List_RemoveByIndex        ; -- Begin function HPDF_List_RemoveByIndex
	.p2align	2
_HPDF_List_RemoveByIndex:               ; @HPDF_List_RemoveByIndex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x9, [x19]
	cmp	x9, x20
	b.ls	LBB0_6
; %bb.1:
	ldr	x10, [x19, #8]
	ldr	x0, [x10, x20, lsl #3]
	sub	x8, x9, #1
	cmp	x8, x20
	b.ls	LBB0_5
; %bb.2:
	add	x11, x20, #1
	ldr	x12, [x10, x11, lsl #3]
	str	x12, [x10, x20, lsl #3]
	cmp	x11, x8
	b.eq	LBB0_5
; %bb.3:
	sub	x9, x9, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	add	x10, x10, x20, lsl #3
	ldr	x11, [x10, #16]
	str	x11, [x10, #8]
	add	x20, x20, #1
	cmp	x9, x20
	b.ne	LBB0_4
LBB0_5:
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_List_RemoveByIndex\n"

.subsections_via_symbols
