	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avformat_seek_file             ## -- Begin function avformat_seek_file
	.p2align	4, 0x90
_avformat_seek_file:                    ## @avformat_seek_file
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	$-1, %eax
	subq	%rdx, %rcx
	jl	LBB0_16
## %bb.1:
	movq	%r8, %r15
	movq	%rdx, %r12
	movq	%r8, %rdx
	subq	%rbx, %rdx
	jl	LBB0_16
## %bb.2:
	movl	%esi, %r13d
	cmpl	$-1, %esi
	jl	LBB0_17
## %bb.3:
	movq	%rdi, %r14
	cmpl	%r13d, (%rdi)
	jle	LBB0_17
## %bb.4:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	jle	LBB0_6
## %bb.5:
	movq	_AVSEEK_FLAG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%r9d, %eax
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edi
	notl	%edi
	andl	%eax, %edi
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	callq	_ff_read_frame_flush
	cmpl	$-1, %r13d
	jne	LBB0_10
## %bb.8:
	movl	$-1, %r13d
	cmpl	$1, (%r14)
	jne	LBB0_10
## %bb.9:
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movl	8(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_av_rescale_q
	movq	%rax, %rbx
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	imulq	%r13, %rdx
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rax
	movq	_AV_ROUND_PASS_MINMAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_av_rescale_rnd
	movq	%rax, %r12
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	imulq	(%rax), %r13
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %rax
	movq	_AV_ROUND_PASS_MINMAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_av_rescale_rnd
	movq	%rax, %r15
	xorl	%r13d, %r13d
LBB0_10:
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movq	16(%r14), %rax
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avformat_queue_attached_pictures ## TAILCALL
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_12:
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	cmovgl	%esi, %eax
	movl	%edi, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	orl	%eax, %ecx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	callq	_av_seek_frame
	cmpq	%rbx, %r15
	je	LBB0_16
## %bb.13:
	cmpq	%r12, %rbx
	je	LBB0_16
## %bb.14:
	testl	%eax, %eax
	jns	LBB0_16
## %bb.15:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmoveq	%r12, %r15
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_av_seek_frame
	testl	%eax, %eax
	js	LBB0_16
## %bb.18:
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	(%rax), %ecx
	orl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_seek_frame                  ## TAILCALL
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVSEEK_FLAG_ANY,4,2            ## @AVSEEK_FLAG_ANY
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AV_TIME_BASE,8,3               ## @AV_TIME_BASE
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_AV_ROUND_PASS_MINMAX,4,2       ## @AV_ROUND_PASS_MINMAX
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avformat_seek_file             ; -- Begin function avformat_seek_file
	.p2align	2
_avformat_seek_file:                    ; @avformat_seek_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	mov	w0, #-1
	subs	x8, x3, x2
	b.lt	LBB0_17
; %bb.1:
	mov	x21, x4
	mov	x20, x3
	subs	x9, x4, x3
	b.lt	LBB0_17
; %bb.2:
	mov	x24, x1
	cmn	w1, #1
	b.lt	LBB0_8
; %bb.3:
	ldr	w10, [x19]
	cmp	w10, w24
	b.le	LBB0_8
; %bb.4:
	mov	x22, x2
Lloh0:
	adrp	x10, _AVSEEK_FLAG_ANY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AVSEEK_FLAG_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldp	x11, x12, [x19, #8]
	cmp	x11, #0
	csel	w10, w10, wzr, gt
	orr	w11, w10, w5
Lloh3:
	adrp	x26, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
	ldr	w10, [x26]
	bic	w23, w11, w10
	ldr	x11, [x12]
	cbz	x11, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_ff_read_frame_flush
	cmn	w24, #1
	b.ne	LBB0_15
; %bb.6:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldp	x24, x25, [x8]
Lloh5:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x24
	mov	x3, x25
	bl	_av_rescale_q
	mov	x20, x0
Lloh8:
	adrp	x26, _AV_TIME_BASE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _AV_TIME_BASE@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh10:
	adrp	x9, _AV_ROUND_UP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_ROUND_UP@GOTPAGEOFF]
	mul	x2, x8, x24
Lloh12:
	ldr	w8, [x9]
Lloh13:
	adrp	x27, _AV_ROUND_PASS_MINMAX@GOTPAGE
Lloh14:
	ldr	x27, [x27, _AV_ROUND_PASS_MINMAX@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x1, x25
	bl	_av_rescale_rnd
	mov	x22, x0
	ldr	x8, [x26]
	mul	x2, x8, x24
Lloh15:
	adrp	x8, _AV_ROUND_DOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_ROUND_DOWN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w3, w9, w8
	mov	x0, x21
	mov	x1, x25
	bl	_av_rescale_rnd
	mov	x21, x0
	mov	w24, #0
	b	LBB0_15
LBB0_8:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
	cmp	x8, x9
	csel	w27, w10, wzr, gt
	orr	w25, w23, w27
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	mov	x3, x25
	bl	_av_seek_frame
	cmp	x21, x20
	b.eq	LBB0_17
; %bb.10:
	cmp	x20, x22
	b.eq	LBB0_17
; %bb.11:
	tbz	w0, #31, LBB0_17
; %bb.12:
	cmp	w27, #0
	csel	x2, x22, x21, eq
	mov	x0, x19
	mov	x1, x24
	mov	x3, x25
	bl	_av_seek_frame
	tbnz	w0, #31, LBB0_17
; %bb.13:
	ldr	w8, [x26]
	eor	w8, w8, w27
	orr	w3, w8, w23
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_av_seek_frame
LBB0_14:
	mov	w24, #-1
LBB0_15:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x20
	mov	x4, x21
	mov	x5, x23
	blr	x8
	tbnz	w0, #31, LBB0_17
; %bb.16:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_avformat_queue_attached_pictures
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVSEEK_FLAG_ANY,4,2            ; @AVSEEK_FLAG_ANY
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AV_TIME_BASE,8,3               ; @AV_TIME_BASE
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_AV_ROUND_PASS_MINMAX,4,2       ; @AV_ROUND_PASS_MINMAX
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
.subsections_via_symbols
