	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_predecessor
_replace_predecessor:                   ## @replace_predecessor
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	8(%rdi), %r10
	movq	16(%rdi), %rcx
	movslq	%esi, %rbx
	movq	%rbx, %r14
	shlq	$4, %r14
	movq	(%rcx,%r14), %rsi
	leaq	(%r10,%rsi,4), %r13
	movl	8(%rcx,%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	leaq	-1(%r8), %r9
	movl	%r8d, %eax
	andl	$3, %eax
	cmpq	$3, %r9
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_4
## %bb.3:
	movl	$-1, %r15d
	xorl	%ecx, %ecx
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%edi, %edi
	callq	_ZEND_ASSERT
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_4:
	andl	$-4, %r8d
	leaq	(%r10,%rsi,4), %r9
	addq	$12, %r9
	movl	$-1, %r15d
	xorl	%ecx, %ecx
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%r9,%rcx,4), %esi
	movl	-8(%r9,%rcx,4), %edi
	cmpl	%edx, %esi
	cmovel	%ecx, %ebx
	cmpl	%r12d, %esi
	cmovel	%ecx, %r15d
	leal	1(%rcx), %esi
	cmpl	%edx, %edi
	cmovel	%esi, %ebx
	cmpl	%r12d, %edi
	cmovel	%esi, %r15d
	movl	-4(%r9,%rcx,4), %esi
	leal	2(%rcx), %edi
	cmpl	%edx, %esi
	cmovel	%edi, %ebx
	cmpl	%r12d, %esi
	cmovel	%edi, %r15d
	movl	(%r9,%rcx,4), %esi
	leal	3(%rcx), %edi
	cmpl	%edx, %esi
	cmovel	%edi, %ebx
	cmpl	%r12d, %esi
	cmovel	%edi, %r15d
	addq	$4, %rcx
	cmpq	%r8, %rcx
	jne	LBB0_5
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rcx,4), %esi
	cmpl	%edx, %esi
	cmovel	%ecx, %ebx
	cmpl	%r12d, %esi
	cmovel	%ecx, %r15d
	incq	%rcx
	decq	%rax
	jne	LBB0_7
LBB0_8:
	xorl	%edi, %edi
	cmpl	$-1, %ebx
	setne	%dil
	callq	_ZEND_ASSERT
	cmpl	$-1, %r15d
	je	LBB0_9
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r14
	addq	$8, %r14
	movslq	%ebx, %r15
	leaq	(%r13,%r15,4), %rdi
	leaq	4(,%r15,4), %rsi
	addq	%r13, %rsi
	notl	%ebx
	movl	(%r14), %edx
	addl	%ebx, %edx
	shll	$2, %edx
	callq	_memmove
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	je	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	leaq	(%rax,%r15,4), %rdi
	leaq	(%rax,%r15,4), %rsi
	addq	$4, %rsi
	movl	(%r14), %edx
	addl	%ebx, %edx
	shll	$2, %edx
	callq	_memmove
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_11
LBB0_13:
	decl	(%r14)
	jmp	LBB0_14
LBB0_9:
	movslq	%ebx, %rax
	movl	%r12d, (%r13,%rax,4)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_replace_predecessor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_predecessor
_replace_predecessor:                   ; @replace_predecessor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
                                        ; kill: def $w1 killed $w1 def $x1
	ldp	x9, x8, [x0, #8]
	sbfiz	x10, x1, #4, #32
	add	x21, x8, x10
	ldr	x8, [x8, x10]
	add	x22, x9, x8, lsl #2
	ldr	w8, [x21, #8]!
	cmp	w8, #0
	b.le	LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x9, #0
	sxtw	x24, w1
	mov	w25, #-1
	mov	w23, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x22, x9, lsl #2]
	cmp	w10, w2
	csel	w23, w9, w23, eq
	cmp	w10, w19
	csel	w25, w9, w25, eq
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.3:
	cmn	w23, #1
	cset	w0, ne
	bl	_ZEND_ASSERT
	cmn	w25, #1
	b.eq	LBB0_9
; %bb.4:
	add	x0, x22, w23, sxtw #2
	add	x1, x0, #4
	ldr	w8, [x21]
	mvn	w19, w23
	add	w8, w8, w19
	lsl	w2, w8, #2
	bl	_memmove
	ldr	x8, [x20]
	ldr	x20, [x8, x24, lsl #3]
	cbz	x20, LBB0_7
; %bb.5:
	sxtw	x22, w23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22, lsl #2
	add	x1, x0, #4
	ldr	w8, [x21]
	add	w8, w8, w19
	lsl	w2, w8, #2
	bl	_memmove
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_6
LBB0_7:
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	bl	_ZEND_ASSERT
	mov	w23, #-1
LBB0_9:
	str	w19, [x22, w23, sxtw #2]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_replace_predecessor
.subsections_via_symbols
