	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ringbuf_add                    ## -- Begin function ringbuf_add
	.p2align	4, 0x90
_ringbuf_add:                           ## @ringbuf_add
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	16(%rbx), %r15
	movl	(%rbx), %ecx
	movl	8(%rbx), %eax
	movl	%ecx, %edx
	imull	%eax, %edx
	incl	%eax
	movslq	%edx, %r12
	leaq	(%r15,%r12,8), %r14
	cltd
	idivl	4(%rbx)
	movl	%edx, 8(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ecx, %edx
	callq	_memset
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r15,%r12,8)
	movl	-40(%rbp), %eax
	movl	%eax, (%r15,%r12,8)
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_add                    ; -- Begin function ringbuf_add
	.p2align	2
_ringbuf_add:                           ; @ringbuf_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
	ldr	x8, [x19, #16]
	ldp	w11, w9, [x19, #4]
	add	w10, w9, #1
	ldr	w2, [x19]
	mul	w9, w2, w9
	add	x20, x8, w9, sxtw #3
	sdiv	w8, w10, w11
	msub	w8, w8, w11, w10
	str	w8, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	d0, [sp, #8]
	str	d0, [x20]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
