	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_next_sw
_ring_next_sw:                          ## @ring_next_sw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	setg	%al
	movzbl	%al, %eax
	leal	(%rax,%rsi,2), %eax
	movq	(%rdi), %rcx
	shlq	$4, %rax
	cmpl	$0, 8(%rcx,%rax)
	je	LBB0_4
## %bb.2:
	xorl	%esi, %esi
	testl	%edx, %edx
	setg	%sil
	movq	(%rcx,%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %rax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ring_next_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_next_sw
_ring_next_sw:                          ; @ring_next_sw
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_3
; %bb.1:
	cmp	w2, #0
	cset	w8, gt
	bfi	w8, w1, #1, #31
	ldr	x9, [x0]
	add	x10, x9, w8, uxtw #4
	ldr	w10, [x10, #8]
	cbz	w10, LBB0_3
; %bb.2:
	cmp	w2, #0
	lsl	x8, x8, #4
	ldr	x8, [x9, x8]
	cset	w9, gt
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x0, [x8, w9, uxtw #3]
	ret
LBB0_3:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ring_next_sw
.subsections_via_symbols
