	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_sps
_remove_sps:                            ## @remove_sps
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movslq	%esi, %r12
	movq	(%rax,%r12,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	$0, 8(%r15)
LBB0_3:
	movq	16(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movq	(%rdi,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_remove_pps
	movq	16(%r15), %rdi
	jmp	LBB0_8
LBB0_9:
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	8(%r15), %rcx
	xorl	%edi, %edi
	cmpq	(%rax), %rcx
	setne	%dil
	jmp	LBB0_12
LBB0_10:
	movl	$1, %edi
LBB0_12:
	callq	_av_assert0
	movq	(%r15), %rax
LBB0_13:
	leaq	(%rax,%r12,8), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_buffer_unref                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_remove_sps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_sps
_remove_sps:                            ; @remove_sps
	.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
	ldr	x8, [x0]
	sxtw	x22, w20
	ldr	x9, [x8, w1, sxtw #3]
	cbz	x9, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	xzr, [x19, #8]
LBB0_3:
	ldr	x0, [x19, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x21, w0, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	x8, [x0, x21, lsl #3]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_remove_pps
	ldr	x0, [x19, #16]
	b	LBB0_5
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x9, [x19, #8]
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, ne
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	bl	_av_assert0
	ldr	x8, [x19]
LBB0_13:
	add	x0, x8, x22, lsl #3
	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	_av_buffer_unref
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_remove_sps
.subsections_via_symbols
