	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_data
_read_data:                             ## @read_data
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	56(%rdi), %rax
	movq	(%rax), %r15
	cmpl	$0, 64(%rdi)
	je	LBB0_11
LBB0_1:
	movq	16(%rbx), %rdi
	subq	8(%rbx), %rdi
	jle	LBB0_3
## %bb.2:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMIN
	movl	%eax, %r12d
	movl	48(%rbx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movslq	%r12d, %rax
	addq	%rax, 8(%rbx)
	jmp	LBB0_21
LBB0_3:
	movq	40(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_get_current_fragment
	movq	%rax, %rsi
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_17
LBB0_5:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_read_from_url
	movl	%eax, %r12d
	testl	%eax, %eax
	jg	LBB0_21
## %bb.6:
	cmpq	$0, (%r15)
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	cmpq	24(%rbx), %rax
	jge	LBB0_21
LBB0_8:
	cmpl	$0, 32(%rbx)
	jne	LBB0_10
## %bb.9:
	incq	(%rbx)
LBB0_10:
	movl	$1, 32(%rbx)
	jmp	LBB0_21
LBB0_11:
	leaq	40(%rbx), %r13
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_free_fragment
	movq	%rbx, %rdi
	callq	_get_current_fragment
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_update_init_section
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	40(%rbx), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_open_input
	testl	%eax, %eax
	jns	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	8(%r15), %edi
	callq	_ff_check_interrupt
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%rbx), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	52(%rbx), %ecx
	movq	%r14, %rdx
	callq	_av_log
	incq	(%rbx)
	cmpl	$0, 64(%rbx)
	je	LBB0_12
	jmp	LBB0_1
LBB0_17:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movl	%eax, %r12d
	jmp	LBB0_21
LBB0_19:
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %r12d
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open fragment of playlist %d\n"

	.no_dead_strip	_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_data
_read_data:                             ; @read_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #56]
	ldr	x21, [x8]
	ldr	w8, [x0, #64]
	cbz	w8, LBB0_11
LBB0_1:
	ldp	x8, x9, [x19, #8]
	subs	x0, x9, x8
	b.le	LBB0_3
; %bb.2:
	mov	x1, x22
	bl	_FFMIN
	mov	x23, x0
	ldr	w1, [x19, #48]
	mov	x0, x20
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, w23, sxtw
	str	x8, [x19, #8]
	b	LBB0_21
LBB0_3:
	ldr	x1, [x19, #40]
	cbnz	x1, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_get_current_fragment
	mov	x1, x0
	str	x0, [x19, #40]
	cbz	x0, LBB0_17
LBB0_5:
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_read_from_url
	mov	x23, x0
	cmp	w0, #0
	b.gt	LBB0_21
; %bb.6:
	ldr	x8, [x21]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_21
LBB0_8:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_10:
	mov	w8, #1
	str	w8, [x19, #32]
	b	LBB0_21
LBB0_11:
	add	x24, x19, #40
Lloh0:
	adrp	x26, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	adrp	x25, l_.str@PAGE
Lloh3:
	add	x25, x25, l_.str@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_free_fragment
	mov	x0, x19
	bl	_get_current_fragment
	str	x0, [x19, #40]
	cbz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_update_init_section
	cbnz	w0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x2, [x19, #40]
	mov	x0, x21
	mov	x1, x19
	bl	_open_input
	tbz	w0, #31, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x21, #8]
	bl	_ff_check_interrupt
	cbnz	x0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x19, #56]
	ldr	w1, [x26]
	ldr	w3, [x19, #52]
	mov	x2, x25
	bl	_av_log
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_12
	b	LBB0_1
LBB0_17:
Lloh4:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	x23, x0
	b	LBB0_21
LBB0_19:
Lloh6:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
LBB0_20:
	ldr	w23, [x8]
LBB0_21:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open fragment of playlist %d\n"

	.no_dead_strip	_read_data
.subsections_via_symbols
