	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_buffer_task
_async_buffer_task:                     ## @async_buffer_task
	.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	%rdi, %r15
	movq	(%rdi), %r13
	leaq	32(%r13), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	%r15, %rdi
	callq	_async_check_interrupt
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	movl	$1, (%r13)
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	addq	$36, %r13
	movq	%r13, %rdi
	callq	_pthread_cond_signal
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	76(%r13), %r12
	leaq	36(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 16(%r13)
	movq	%rbx, 56(%r13)
	movq	$0, 48(%r13)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_cond_signal
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	%r15, %rdi
	callq	_async_check_interrupt
	testq	%rax, %rax
	jne	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%r13)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	72(%r13), %edi
	movl	64(%r13), %edx
	movl	68(%r13), %esi
	callq	_ffurl_seek
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%r13)
	movq	$0, 8(%r13)
	movq	%r12, %rdi
	callq	_ring_reset
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movq	%r12, %rdi
	callq	_ring_space
	cmpl	$0, (%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movl	$4096, %edi                     ## imm = 0x1000
	movl	%r12d, %esi
	callq	_FFMIN
	movq	_wrapped_url_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ring_generic_write
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	testl	%ebx, %ebx
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r13)
	movq	24(%r13), %rax
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%r13)
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_cond_signal
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	movq	%rbx, %r12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EXIT,8,3               ## @AVERROR_EXIT
	.comm	_wrapped_url_read,4,2           ## @wrapped_url_read
	.no_dead_strip	_async_buffer_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_buffer_task
_async_buffer_task:                     ; @async_buffer_task
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x25, [x0]
	add	x19, x25, #32
	mov	x0, x19
	bl	_pthread_mutex_lock
	mov	x0, x20
	bl	_async_check_interrupt
	cbz	x0, LBB0_2
LBB0_1:
	mov	w8, #1
	str	w8, [x25]
Lloh0:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x25, #8]
	add	x0, x25, #36
	bl	_pthread_cond_signal
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, #0
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x21, x25, #76
	add	x22, x25, #36
	add	x23, x25, #40
Lloh3:
	adrp	x26, _wrapped_url_read@GOTPAGE
Lloh4:
	ldr	x26, [x26, _wrapped_url_read@GOTPAGEOFF]
	mov	w27, #1
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w27, [x25, #16]
	stp	xzr, x24, [x25, #48]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_pthread_cond_signal
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, x19
	bl	_pthread_mutex_lock
	mov	x0, x20
	bl	_async_check_interrupt
	cbnz	x0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #48]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w1, w0, [x25, #68]
	ldr	w2, [x25, #64]
	bl	_ffurl_seek
	mov	x24, x0
	tbnz	x0, #63, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x25]
	str	xzr, [x25, #8]
	mov	x0, x21
	bl	_ring_reset
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_ring_space
	ldr	w8, [x25]
	cmp	w8, #0
	ccmp	w0, #0, #4, eq
	b.gt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_pthread_cond_signal
	mov	x0, x23
	mov	x1, x19
	bl	_pthread_cond_wait
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	w0, #4096
	mov	x1, x24
	bl	_FFMIN
	mov	x2, x0
	ldr	w3, [x26]
	mov	x0, x21
	mov	x1, x20
	bl	_ring_generic_write
	mov	x24, x0
	mov	x0, x19
	bl	_pthread_mutex_lock
	cmp	w24, #0
	b.gt	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w27, [x25]
	ldr	x8, [x25, #24]
	tbz	x8, #63, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x25, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EXIT,8,3               ; @AVERROR_EXIT
	.comm	_wrapped_url_read,4,2           ; @wrapped_url_read
	.no_dead_strip	_async_buffer_task
.subsections_via_symbols
