	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_safexcel_ring_next_rptr        ## -- Begin function safexcel_ring_next_rptr
	.p2align	4, 0x90
_safexcel_ring_next_rptr:               ## @safexcel_ring_next_rptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rsi), %rax
	cmpq	%rax, 32(%rsi)
	je	LBB0_5
## %bb.1:
	cmpq	24(%rsi), %rax
	je	LBB0_2
## %bb.3:
	movslq	(%rsi), %rcx
	addq	%rax, %rcx
	jmp	LBB0_4
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	16(%rsi), %rcx
LBB0_4:
	movq	%rcx, 8(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_safexcel_ring_next_rptr        ; -- Begin function safexcel_ring_next_rptr
	.p2align	2
_safexcel_ring_next_rptr:               ; @safexcel_ring_next_rptr
	.cfi_startproc
; %bb.0:
	ldr	x0, [x1, #8]
	ldr	x8, [x1, #32]
	cmp	x8, x0
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x1, #24]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	ldrsw	x8, [x1]
	add	x8, x0, x8
	str	x8, [x1, #8]
	ret
LBB0_3:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	_ERR_PTR
LBB0_4:
	ldr	x8, [x1, #16]
	str	x8, [x1, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
