	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_list_remove_samples
_frame_list_remove_samples:             ## @frame_list_remove_samples
	.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, %r15
	cmpl	%esi, (%rdi)
	jle	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	testl	%esi, %esi
	jle	LBB0_7
## %bb.2:
	movl	%r14d, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	decl	4(%r15)
	subl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_av_free
	movl	%ebx, %r14d
	testl	%ebx, %ebx
	jle	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r12
	movq	%r12, %rdi
	callq	_av_assert0
	movl	(%r12), %eax
	subl	%eax, %ebx
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rcx
	movq	%rcx, 16(%r15)
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%r15)
	jmp	LBB0_6
LBB0_8:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_frame_list_clear               ## TAILCALL
LBB0_9:
	subl	%r14d, %eax
	movl	%eax, (%r12)
	addl	%r14d, 4(%r12)
	subl	%r14d, (%r15)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_frame_list_remove_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_list_remove_samples
_frame_list_remove_samples:             ; @frame_list_remove_samples
	.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	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_6
; %bb.1:
	mov	x21, x1
	cmp	w1, #1
	b.ge	LBB0_3
	b	LBB0_8
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	movi.2d	v0, #0xffffffffffffffff
	mov.s	v0[0], w8
	ldr	d1, [x19]
	sub.2s	v0, v1, v0
	movi.2d	v2, #0xffffffffffffffff
	add.2s	v1, v1, v2
	mov.s	v0[1], v1[1]
	str	d0, [x19]
	mov	x0, x20
	bl	_av_free
	mov	x21, x22
	cmp	w22, #0
	b.le	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_av_assert0
	ldr	w8, [x20]
	subs	w22, w21, w8
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20, #8]
	str	x9, [x19, #16]
	cbnz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x19, #8]
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	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	_frame_list_clear
LBB0_7:
	sub	w8, w8, w21
	ldr	w9, [x20, #4]
	add	w9, w9, w21
	stp	w8, w9, [x20]
	ldr	w8, [x19]
	sub	w8, w8, w21
	str	w8, [x19]
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_frame_list_remove_samples
.subsections_via_symbols
