	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_ring_next_wptr
_safexcel_ring_next_wptr:               ## @safexcel_ring_next_wptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rsi), %rax
	movl	4(%rsi), %edi
	movl	8(%rsi), %ecx
	movl	%edi, %edx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	je	LBB0_4
## %bb.1:
	movl	12(%rsi), %edx
	movl	16(%rsi), %r8d
	cmpl	%edx, %edi
	jne	LBB0_3
## %bb.2:
	cmpl	%r8d, %eax
	jne	LBB0_3
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	addl	%eax, %ecx
	cmpl	%r8d, %eax
	cmovel	%edx, %ecx
	movl	%ecx, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_safexcel_ring_next_wptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_ring_next_wptr
_safexcel_ring_next_wptr:               ; @safexcel_ring_next_wptr
	.cfi_startproc
; %bb.0:
	ldp	w0, w9, [x1]
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	ldr	w8, [x1, #8]
	sub	w10, w9, w8
	cmp	w0, w10
	b.eq	LBB0_3
; %bb.1:
	ldp	w10, w11, [x1, #12]
	cmp	w9, w10
	ccmp	w0, w11, #0, eq
	b.eq	LBB0_3
; %bb.2:
	add	w8, w8, w0
	cmp	w0, w11
	csel	w8, w10, w8, eq
	str	w8, [x1]
	ret
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_safexcel_ring_next_wptr
.subsections_via_symbols
