	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ring_consumed                  ## -- Begin function ring_consumed
	.p2align	4, 0x90
_ring_consumed:                         ## @ring_consumed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	48(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_ring_subtract
	cmpl	%r14d, %eax
	jge	LBB0_4
## %bb.3:
	movq	$0, 48(%rbx)
LBB0_4:
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ring_increment
	movq	%rax, (%rbx)
	movq	_ring_clock@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	%rcx, 40(%rbx)
	movq	%rbx, %rdi
	callq	_ring_empty
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	24(%rbx), %rax
	movq	%rax, 32(%rbx)
	movq	%rax, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ring_clock,8,3                 ## @ring_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ring_consumed                  ; -- Begin function ring_consumed
	.p2align	2
_ring_consumed:                         ; @ring_consumed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w1, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x1, [x0, #48]
	cbz	x1, LBB0_4
; %bb.2:
	ldr	x2, [x19]
	mov	x0, x19
	bl	_ring_subtract
	cmp	w0, w20
	b.ge	LBB0_4
; %bb.3:
	str	xzr, [x19, #48]
LBB0_4:
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x20
	bl	_ring_increment
	str	x0, [x19]
Lloh0:
	adrp	x8, _ring_clock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ring_clock@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	str	x9, [x19, #40]
	mov	x0, x19
	bl	_ring_empty
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	str	x8, [x19, #32]
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ring_clock,8,3                 ; @ring_clock
.subsections_via_symbols
