	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clean_index
_clean_index:                           ## @clean_index
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	xorl	%edx, %edx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%rdi), %rcx
	movq	(%rcx,%rdx,8), %rsi
	cmpl	$1, (%rsi)
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsi), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r12d
	leal	(%r12,%r12), %ecx
	cmpl	$1024, %r12d                    ## imm = 0x400
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rsi), %rcx
	movq	8(%rcx), %rbx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %r14
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_FFMIN
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r15
	subq	%rax, %rbx
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.no_dead_strip	_clean_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clean_index
_clean_index:                           ; @clean_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x10, #0
Lloh0:
	adrp	x20, _AVINDEX_KEYFRAME@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AVINDEX_KEYFRAME@GOTPAGEOFF]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, w8, sxtw
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x0, #8]
	ldr	x19, [x9, x10, lsl #3]
	ldr	w9, [x19]
	cmp	w9, #1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	cbz	w9, LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x21, x9
	lsl	w9, w9, #1
	cmp	w21, #1024
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #8]
	ldr	x27, [x9, #8]
	cmp	x27, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	ldr	x8, [x9]
	stp	x10, x8, [sp, #16]              ; 16-byte Folded Spill
	ldr	x26, [x9, #16]
	mov	w25, w21
	mov	x22, x27
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x23, x8, x28
	add	x24, x26, x28
	mov	x0, x21
	mov	x1, x22
	bl	_FFMIN
	mov	x3, x0
	ldr	w5, [x20]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	w4, #0
	bl	_av_add_index_entry
	sub	x22, x22, x25
	add	x28, x28, x25
	cmp	x27, x28
	b.gt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x0, x10, [sp, #8]               ; 16-byte Folded Reload
	ldr	w8, [x0]
	b	LBB0_2
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.no_dead_strip	_clean_index
.subsections_via_symbols
