	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seek_frame_generic
_seek_frame_generic:                    ## @seek_frame_generic
	.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	%ecx, %r13d
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r12, %rdi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	movl	%r13d, %edx
	callq	_av_index_search_timestamp
	movl	%eax, %r15d
	movl	(%r12), %eax
	testl	%r15d, %r15d
	js	LBB0_1
## %bb.3:
	leal	-1(%rax), %ecx
	cmpl	%ecx, %r15d
	jne	LBB0_22
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	8(%r12), %rcx
	movl	$-1, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, (%rcx)
	jg	LBB0_26
LBB0_5:
	movq	8(%r12), %rdi
	callq	_av_assert0
	movq	8(%r12), %r14
	movslq	(%r12), %r15
	decq	%r15
	movl	(%rbx), %edi
	shlq	$4, %r15
	movl	8(%r14,%r15), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_26
## %bb.6:
	movq	(%r14,%r15), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ff_update_cur_dts
	jmp	LBB0_8
LBB0_7:
	movl	(%rbx), %edi
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_26
LBB0_8:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %r15
	movq	_EAGAIN@GOTPCREL(%rip), %r12
	jmp	LBB0_9
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ecx, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_av_packet_unref
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_av_read_frame
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_AVERROR
	cmpl	%eax, %r14d
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%r14d, %r14d
	js	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -96(%rbp)
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)
	jle	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -80(%rbp)
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	1(%r13), %ecx
	cmpl	$1001, %r13d                    ## imm = 0x3E9
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_CDGRAPHICS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_16
## %bb.18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
LBB0_19:
	leaq	-96(%rbp), %rdi
	callq	_av_packet_unref
LBB0_20:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_av_index_search_timestamp
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_21
LBB0_22:
	movq	%rbx, %rdi
	callq	_ff_read_frame_flush
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	*%rax
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_26
LBB0_24:
	movq	8(%r12), %r14
	movl	%r15d, %r15d
	movl	(%rbx), %edi
	shlq	$4, %r15
	movl	8(%r14,%r15), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_26
## %bb.25:
	movq	(%r14,%r15), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ff_update_cur_dts
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_21:
	movl	$-1, %eax
LBB0_26:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AV_CODEC_ID_CDGRAPHICS,8,3     ## @AV_CODEC_ID_CDGRAPHICS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"seek_frame_generic failed as this stream seems to contain no keyframes after the target timestamp, %d non keyframes found\n"

	.no_dead_strip	_seek_frame_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seek_frame_generic
_seek_frame_generic:                    ; @seek_frame_generic
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x20, [x8, w1, sxtw #3]
	mov	x0, x20
	mov	x1, x2
	mov	x2, x3
	bl	_av_index_search_timestamp
	ldr	w8, [x20]
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x24, x0
	sub	w9, w8, #1
	cmp	w0, w9
	b.ne	LBB0_20
; %bb.2:
	cbnz	w8, LBB0_5
	b	LBB0_7
LBB0_3:
	cbz	w8, LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, x22
	b.gt	LBB0_25
LBB0_5:
	ldr	x0, [x20, #8]
	bl	_av_assert0
	ldr	x24, [x20, #8]
	ldrsw	x8, [x20]
	sub	x25, x8, #1
	ldr	w0, [x19]
	add	x8, x24, x25, lsl #4
	ldr	w1, [x8, #8]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	x0, #63, LBB0_27
; %bb.6:
	lsl	x8, x25, #4
	ldr	x2, [x24, x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ff_update_cur_dts
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	x0, #63, LBB0_27
LBB0_8:
	mov	w28, #0
Lloh6:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
Lloh8:
	adrp	x26, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh9:
	ldr	x26, [x26, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh10:
	adrp	x27, _AV_CODEC_ID_CDGRAPHICS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _AV_CODEC_ID_CDGRAPHICS@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, x3
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #8
	bl	_av_packet_unref
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_av_read_frame
	mov	x24, x0
	ldr	w0, [x25]
	bl	_AVERROR
	cmp	w24, w0
	b.eq	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	tbnz	w24, #31, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #8]
	ldr	x9, [sp, #16]
	cmp	w8, w23
	ccmp	x9, x22, #4, eq
	b.le	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #24]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w3, w28, #1
	cmp	w28, #1001
	b.lt	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.17:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_18:
	add	x0, sp, #8
	bl	_av_packet_unref
LBB0_19:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_av_index_search_timestamp
	mov	x24, x0
	tbnz	w0, #31, LBB0_25
LBB0_20:
	mov	x0, x19
	bl	_ff_read_frame_flush
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	blr	x8
	tbz	x0, #63, LBB0_24
LBB0_22:
	ldr	x21, [x20, #8]
	ldr	w0, [x19]
	add	x8, x21, w24, uxtw #4
	ldr	w1, [x8, #8]
Lloh17:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	x0, #63, LBB0_26
; %bb.23:
	mov	w8, w24
	lsl	x8, x8, #4
	ldr	x2, [x21, x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ff_update_cur_dts
LBB0_24:
	mov	w0, #0
	b	LBB0_27
LBB0_25:
	mov	w0, #-1
	b	LBB0_27
LBB0_26:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_27:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AV_CODEC_ID_CDGRAPHICS,8,3     ; @AV_CODEC_ID_CDGRAPHICS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"seek_frame_generic failed as this stream seems to contain no keyframes after the target timestamp, %d non keyframes found\n"

	.no_dead_strip	_seek_frame_generic
.subsections_via_symbols
