	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ringbuf_get                    ## -- Begin function ringbuf_get
	.p2align	4, 0x90
_ringbuf_get:                           ## @ringbuf_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	16(%rdi), %rcx
	addl	(%rdi), %eax
	cltd
	idivl	4(%rdi)
	movslq	8(%rdi), %rax
	movslq	%edx, %rdx
	imulq	%rax, %rdx
	leaq	(%rcx,%rdx,8), %rsi
	xorl	%eax, %eax
	cmpq	$0, (%rcx,%rdx,8)
	cmovgq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ringbuf_get                    ; -- Begin function ringbuf_get
	.p2align	2
_ringbuf_get:                           ; @ringbuf_get
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	ldp	w9, w10, [x0]
	add	w9, w9, w1
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	ldr	w10, [x0, #8]
	mul	w9, w10, w9
	add	x8, x8, w9, sxtw #3
	ldr	x9, [x8]
	cmp	x9, #0
	csel	x0, x8, xzr, gt
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
