	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hls_read_seek
_hls_read_seek:                         ## @hls_read_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	%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	_AVSEEK_FLAG_BYTE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%ecx, %r13d
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movq	32(%rdi), %rax
	movq	_AVFMTCTX_UNSEEKABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
LBB0_2:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	(%rax), %r12
	cmoveq	%r14, %r12
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	8(%r15), %rax
	movslq	%esi, %rsi
	movq	(%rax,%rsi,8), %rax
	movl	(%rax), %eax
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.6:
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movq	%rdx, %rdi
	movl	%r8d, %esi
	movl	%eax, %edx
	callq	_av_rescale_rnd
	movq	(%r15), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	cmovneq	%rcx, %r14
	testq	%r14, %r14
	jle	LBB0_9
## %bb.8:
	movq	%rax, %rcx
	subq	%r12, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_9
## %bb.27:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movl	8(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_19
## %bb.10:
	movq	%rbx, %r14
	movq	24(%rbx), %r9
	xorl	%edx, %edx
	xorl	%r12d, %r12d
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%esi, %ecx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%r10, %r12
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	cmpq	%r8, %rdx
	je	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	(%r9,%rdx,8), %r10
	movl	(%r10), %edi
	testl	%edi, %edi
	jle	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	104(%r10), %rbx
	movq	8(%r15), %rcx
	movq	(%rcx,%r11,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, (%rbx,%rsi,8)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rsi
	cmpq	%rsi, %rdi
	jne	LBB0_13
	jmp	LBB0_16
LBB0_17:
	testq	%r12, %r12
	je	LBB0_19
## %bb.18:
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_find_timestamp_in_playlist
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	-56(%rbp), %eax
	movl	%eax, 4(%r12)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r12)
	cmpl	$0, 8(%r14)
	jle	LBB0_25
## %bb.21:
	xorl	%r15d, %r15d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%r15
	movslq	8(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_25
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	movl	84(%rbx), %edi
	leaq	96(%rbx), %rsi
	callq	_ff_format_io_close
	movq	$0, 88(%rbx)
	movl	84(%rbx), %edi
	leaq	80(%rbx), %rsi
	callq	_ff_format_io_close
	movq	$0, 72(%rbx)
	leaq	64(%rbx), %rdi
	callq	_av_packet_unref
	movq	$0, 56(%rbx)
	movl	24(%rbx), %edi
	movl	40(%rbx), %eax
	movl	%eax, 44(%rbx)
	movl	%eax, 48(%rbx)
	movq	$0, 32(%rbx)
	callq	_ff_read_frame_flush
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 16(%rbx)
	movl	%r13d, 12(%rbx)
	cmpq	%r12, %rbx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	4(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_find_timestamp_in_playlist
	movl	$-1, 8(%rbx)
	movq	_AVSEEK_FLAG_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	jmp	LBB0_24
LBB0_19:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_26
LBB0_25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ## @AVSEEK_FLAG_BYTE
	.comm	_AVFMTCTX_UNSEEKABLE,4,2        ## @AVFMTCTX_UNSEEKABLE
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AVSEEK_FLAG_ANY,4,2            ## @AVSEEK_FLAG_ANY
	.no_dead_strip	_hls_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hls_read_seek
_hls_read_seek:                         ; @hls_read_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BYTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.ne	LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVFMTCTX_UNSEEKABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVFMTCTX_UNSEEKABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_3:
	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
	add	sp, sp, #96
	b	_AVERROR
LBB0_4:
	mov	x19, x3
	mov	x24, x1
	ldr	x8, [x20]
Lloh8:
	adrp	x22, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	csel	x25, xzr, x8, eq
Lloh10:
	adrp	x8, _AV_TIME_BASE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_TIME_BASE@GOTPAGEOFF]
	ldr	x9, [x23, #8]
	ldr	x9, [x9, w1, sxtw #3]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x9]
Lloh13:
	adrp	x9, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh15:
	adrp	x10, _AV_ROUND_DOWN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AV_ROUND_DOWN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x11, _AV_ROUND_UP@GOTPAGE
Lloh19:
	ldr	x11, [x11, _AV_ROUND_UP@GOTPAGEOFF]
	tst	w9, w3
	csel	x9, x11, x10, eq
	ldr	w3, [x9]
	mov	x0, x2
	mov	x2, x8
	bl	_av_rescale_rnd
	ldr	x8, [x23]
	ldr	x9, [x22]
	cmp	x8, x9
	csel	x8, xzr, x8, eq
	sub	x9, x0, x25
	cmp	x8, #1
	ccmp	x8, x9, #0, ge
	b.lt	LBB0_13
; %bb.5:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.6:
	mov	x21, x0
	mov	x9, #0
	mov	x22, #0
	sxtw	x10, w24
	ldr	x11, [x20, #24]
                                        ; implicit-def: $w24
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x14
	mov	x22, x12
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_14
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x12, [x11, x9, lsl #3]
	ldr	w13, [x12]
	cmp	w13, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x14, #0
	ldr	x15, [x12, #104]
	ldr	x16, [x23, #8]
	ldr	x16, [x16, x10, lsl #3]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x17, [x15, x14, lsl #3]
	cmp	x17, x16
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x14, x14, #1
	cmp	x13, x14
	b.ne	LBB0_11
	b	LBB0_8
LBB0_13:
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_14:
	cbz	x22, LBB0_21
; %bb.15:
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_find_timestamp_in_playlist
	cbz	w0, LBB0_21
; %bb.16:
	ldr	w8, [sp, #12]
	stp	w8, w24, [x22, #4]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x24, #0
	mov	w25, #-1
Lloh22:
	adrp	x26, _AVSEEK_FLAG_ANY@GOTPAGE
Lloh23:
	ldr	x26, [x26, _AVSEEK_FLAG_ANY@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20, #8]
	cmp	x24, x8
	b.ge	LBB0_22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x23, [x8, x24, lsl #3]
	ldr	w0, [x23, #84]
	add	x1, x23, #96
	bl	_ff_format_io_close
	str	xzr, [x23, #88]
	ldr	w0, [x23, #84]
	add	x1, x23, #80
	bl	_ff_format_io_close
	str	xzr, [x23, #72]
	add	x0, x23, #64
	bl	_av_packet_unref
	str	xzr, [x23, #56]
	ldr	w8, [x23, #40]
	stp	w8, w8, [x23, #44]
	str	xzr, [x23, #32]
	ldr	w0, [x23, #24]
	bl	_ff_read_frame_flush
	str	x21, [x23, #16]
	str	w19, [x23, #12]
	cmp	x23, x22
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x3, x23, #4
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_find_timestamp_in_playlist
	ldr	w8, [x26]
	ldr	w9, [x23, #12]
	orr	w8, w9, w8
	stp	w25, w8, [x23, #8]
	b	LBB0_18
LBB0_21:
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_23
LBB0_22:
	mov	w0, #0
	str	x21, [x20, #16]
LBB0_23:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BYTE,4,2           ; @AVSEEK_FLAG_BYTE
	.comm	_AVFMTCTX_UNSEEKABLE,4,2        ; @AVFMTCTX_UNSEEKABLE
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AVSEEK_FLAG_ANY,4,2            ; @AVSEEK_FLAG_ANY
	.no_dead_strip	_hls_read_seek
.subsections_via_symbols
