	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_find_last_ts                ## -- Begin function ff_find_last_ts
	.p2align	4, 0x90
_ff_find_last_ts:                       ## @ff_find_last_ts
	.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
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_avio_size
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	-1(%rax), %r12
	movq	%r12, -48(%rbp)
	movl	$1024, %ebx                     ## imm = 0x400
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %esi
	subl	%ebx, %esi
	xorl	%edi, %edi
	callq	_FFMAX
	movq	%rax, -48(%rbp)
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_ff_read_timestamp
	movq	%rax, %r15
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r15
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rbx, %rbx
	addq	%r12, %r12
	cmpq	%rbx, %r12
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %r12
	jmp	LBB0_1
LBB0_4:
	movl	$-1, %eax
	cmpq	%rcx, %r15
	je	LBB0_15
## %bb.5:
	movq	-48(%rbp), %rax
	incq	%rax
	movq	%rax, -56(%rbp)
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_ff_read_timestamp
	movq	%rax, %r12
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_11
## %bb.6:
	movq	-56(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax
	setg	%dil
	callq	_av_assert0
	movq	-56(%rbp), %rax
	movq	%rax, -48(%rbp)
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jge	LBB0_7
## %bb.8:
	leaq	-56(%rbp), %r14
	movq	%r12, %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incq	%rax
	movq	%rax, -56(%rbp)
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_ff_read_timestamp
	movq	%rax, %rbx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax
	setg	%dil
	callq	_av_assert0
	movq	-56(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	%rbx, %r15
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_10
	jmp	LBB0_11
LBB0_7:
	movq	%r12, %r15
LBB0_11:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, (%rax)
LBB0_13:
	xorl	%eax, %eax
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%rdx)
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_find_last_ts                ; -- Begin function ff_find_last_ts
	.p2align	2
_ff_find_last_ts:                       ; @ff_find_last_ts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_avio_size
	mov	x24, x0
	sub	x26, x0, #1
	str	x26, [sp, #8]
	mov	w28, #1024
Lloh0:
	adrp	x27, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _AV_NOPTS_VALUE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w26, w28
	mov	w0, #0
	bl	_FFMAX
	str	x0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x3, x26
	mov	x4, x21
	bl	_ff_read_timestamp
	lsl	x28, x28, #1
	ldr	x8, [x27]
	lsl	x9, x26, #1
	cmp	x0, x8
	ccmp	x9, x28, #4, eq
	b.le	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x26, [sp, #8]
	b	LBB0_1
LBB0_3:
	mov	x25, x0
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #-1
	b	LBB0_13
LBB0_5:
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp]
Lloh2:
	adrp	x28, _INT64_MAX@GOTPAGE
Lloh3:
	ldr	x28, [x28, _INT64_MAX@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x28]
	mov	x2, sp
	mov	x0, x23
	mov	x1, x22
	mov	x4, x21
	bl	_ff_read_timestamp
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x0
	ldp	x8, x9, [sp]
	cmp	x8, x9
	cset	w0, gt
	bl	_av_assert0
	ldr	x8, [sp]
	str	x8, [sp, #8]
	mov	x25, x26
	cmp	x8, x24
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	str	x8, [sp]
	b	LBB0_6
LBB0_9:
	cbz	x20, LBB0_11
; %bb.10:
	str	x25, [x20]
LBB0_11:
	mov	w0, #0
	cbz	x19, LBB0_13
; %bb.12:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
.subsections_via_symbols
