	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_seek
_try_seek:                              ## @try_seek
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movq	%r8, %rax
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	(%rdi), %r12
	movq	8(%r12), %rdx
	movq	8(%rdx), %rsi
	subq	(%rdx), %rsi
	subq	%rsi, %rcx
	movq	%rcx, -48(%rbp)
	movq	_INT64_MIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rbx, %rdx
	subq	%rsi, %rdx
	cmpq	%rbx, %rdi
	cmoveq	%rdi, %rdx
	movq	%rdx, -56(%rbp)
	movq	_INT64_MAX@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	subq	%rsi, %r8
	cmpq	%rax, %rdi
	cmoveq	%rdi, %r8
	movq	%r8, -40(%rbp)
	testl	%r15d, %r15d
	js	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	cmpl	%r15d, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rax), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_rescale_interval
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %r8
LBB0_3:
	movq	(%r12), %rdi
	movl	%r15d, %esi
	movl	%r14d, %r9d
	callq	_avformat_seek_file
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MIN,8,3                  ## @INT64_MIN
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.no_dead_strip	_try_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_seek
_try_seek:                              ; @try_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x5
	mov	x20, x1
	ldr	x21, [x0]
	ldr	x8, [x21, #8]
	ldp	x8, x9, [x8]
	sub	x8, x9, x8
	sub	x3, x3, x8
	str	x3, [sp, #16]
Lloh0:
	adrp	x9, _INT64_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT64_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x10, x2, x8
	cmp	x9, x2
	csel	x2, x9, x10, eq
Lloh3:
	adrp	x9, _INT64_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT64_MAX@GOTPAGEOFF]
	str	x2, [sp, #24]
Lloh5:
	ldr	x9, [x9]
	sub	x8, x4, x8
	cmp	x9, x4
	csel	x4, x9, x8, eq
	str	x4, [sp, #8]
	tbnz	w1, #31, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, w20
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _AV_TIME_BASE_Q@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w20, uxtw #3]
	ldr	w1, [x8]
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	bl	_rescale_interval
	ldp	x3, x2, [sp, #16]
	ldr	x4, [sp, #8]
LBB0_3:
	ldr	x0, [x21]
	mov	x1, x20
	mov	x5, x19
	bl	_avformat_seek_file
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MIN,8,3                  ; @INT64_MIN
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.no_dead_strip	_try_seek
.subsections_via_symbols
