	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffmpeg_seek
_ffmpeg_seek:                           ## @ffmpeg_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_2
## %bb.1:
	cvtss2sd	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r14), %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ffmpeg_initial_timestamp
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %rcx
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	movq	%rcx, %r8
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_ffmpeg_initial_timestamp
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movq	%rax, %r8
LBB0_3:
	callq	_avformat_seek_file
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
LBB0_5:
	movl	$1, (%rbx)
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"avformat_seek_file failed"

	.no_dead_strip	_ffmpeg_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_seek
_ffmpeg_seek:                           ; @ffmpeg_seek
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	ldr	x20, [x0, #8]
	fcmp	s0, #0.0
	b.le	LBB0_2
; %bb.1:
	fcvt	d8, s0
	ldr	d0, [x20]
	scvtf	d9, d0
	mov	x0, x19
	bl	_ffmpeg_initial_timestamp
	scvtf	d0, x0
	fmadd	d0, d9, d8, d0
	fcvtzs	x3, d0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ffmpeg_initial_timestamp
	mov	x3, x0
LBB0_3:
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x0, x20
	mov	w1, #-1
	mov	w2, #0
	mov	x4, x3
	bl	_avformat_seek_file
	tbz	w0, #31, LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"avformat_seek_file failed"

	.no_dead_strip	_ffmpeg_seek
.subsections_via_symbols
