	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seek_frame_internal
_seek_frame_internal:                   ## @seek_frame_internal
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_AVSEEK_FLAG_BYTE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rcx
	movq	_AVFMT_NO_BYTE_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-1, %eax
	testl	%edx, (%rcx)
	jne	LBB0_13
## %bb.2:
	movq	%rbx, %rdi
	callq	_ff_read_frame_flush
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_seek_frame_byte                ## TAILCALL
LBB0_3:
	testl	%r12d, %r12d
	jns	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_av_find_default_stream_index
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%eax, %r12d
	movq	8(%rbx), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	8(%rax), %esi
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	movl	%r14d, %edi
	callq	_av_rescale
	movl	%eax, %r14d
LBB0_7:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_ff_read_frame_flush
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	*8(%rax)
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_13
## %bb.9:
	movq	(%rbx), %rax
LBB0_10:
	cmpq	$0, 16(%rax)
	movl	(%rax), %ecx
	je	LBB0_12
## %bb.11:
	movq	_AVFMT_NOBINSEARCH@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_14
LBB0_12:
	movq	_AVFMT_NOGENSEARCH@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_13
## %bb.15:
	movq	%rbx, %rdi
	callq	_ff_read_frame_flush
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_seek_frame_generic             ## TAILCALL
LBB0_5:
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rbx, %rdi
	callq	_ff_read_frame_flush
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_seek_frame_binary           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ## @AVSEEK_FLAG_BYTE
	.comm	_AVFMT_NO_BYTE_SEEK,4,2         ## @AVFMT_NO_BYTE_SEEK
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AVFMT_NOBINSEARCH,4,2          ## @AVFMT_NOBINSEARCH
	.comm	_AVFMT_NOGENSEARCH,4,2          ## @AVFMT_NOGENSEARCH
	.no_dead_strip	_seek_frame_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seek_frame_internal
_seek_frame_internal:                   ; @seek_frame_internal
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVFMT_NO_BYTE_SEEK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVFMT_NO_BYTE_SEEK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_2:
	mov	w0, #-1
LBB0_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
	ret
LBB0_4:
	tbz	w22, #31, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_av_find_default_stream_index
	tbnz	w0, #31, LBB0_2
; %bb.6:
	mov	x22, x0
	ldr	x8, [x21, #8]
	ldr	x8, [x8, w0, uxtw #3]
	ldr	w1, [x8, #8]
Lloh6:
	adrp	x9, _AV_TIME_BASE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_TIME_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w8, [x8]
	mul	w2, w9, w8
	mov	x0, x20
	bl	_av_rescale
	mov	x20, x0
LBB0_7:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_12
; %bb.8:
	mov	x0, x21
	bl	_ff_read_frame_flush
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	blr	x8
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	w0, #0
	b	LBB0_3
LBB0_10:
	mov	x0, x21
	bl	_ff_read_frame_flush
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, 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	_seek_frame_byte
LBB0_11:
	ldr	x8, [x21]
LBB0_12:
	ldr	x9, [x8, #16]
	ldr	w8, [x8]
	cbz	x9, LBB0_14
; %bb.13:
Lloh9:
	adrp	x9, _AVFMT_NOBINSEARCH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AVFMT_NOBINSEARCH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
LBB0_14:
Lloh12:
	adrp	x9, _AVFMT_NOGENSEARCH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AVFMT_NOGENSEARCH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.15:
	mov	x0, x21
	bl	_ff_read_frame_flush
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, 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	_seek_frame_generic
LBB0_16:
	mov	x0, x21
	bl	_ff_read_frame_flush
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, 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	_ff_seek_frame_binary
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ; @AVSEEK_FLAG_BYTE
	.comm	_AVFMT_NO_BYTE_SEEK,4,2         ; @AVFMT_NO_BYTE_SEEK
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AVFMT_NOBINSEARCH,4,2          ; @AVFMT_NOBINSEARCH
	.comm	_AVFMT_NOGENSEARCH,4,2          ; @AVFMT_NOGENSEARCH
	.no_dead_strip	_seek_frame_internal
.subsections_via_symbols
