	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_generic_read
_ring_generic_read:                     ## @ring_generic_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_ring_size
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setge	%dil
	callq	_av_assert2
	movl	16(%rbx), %edi
	movq	(%rbx), %rdx
	movq	%r12, %rsi
	movl	%r14d, %ecx
	movq	%r15, %r8
	callq	_av_fifo_generic_peek_at
	movslq	%r14d, %rsi
	addq	(%rbx), %rsi
	movl	%eax, %r14d
	movq	%rsi, (%rbx)
	subq	8(%rbx), %rsi
	jle	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_av_fifo_drain
	movq	8(%rbx), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ring_generic_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_generic_read
_ring_generic_read:                     ; @ring_generic_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_ring_size
	cmp	w0, w21
	cset	w0, ge
	bl	_av_assert2
	ldr	w0, [x19, #16]
	ldr	x2, [x19]
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	bl	_av_fifo_generic_peek_at
	mov	x20, x0
	ldp	x8, x9, [x19]
	add	x8, x8, w21, sxtw
	str	x8, [x19]
	subs	x1, x8, x9
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_av_fifo_drain
	ldr	x8, [x19, #8]
	str	x8, [x19]
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ring_generic_read
.subsections_via_symbols
