	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ring_sync_index
_intel_ring_sync_index:                 ## @intel_ring_sync_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	%rdi, %rsi
	shrq	$2, %rsi
	leal	-1(%rsi), %eax
	movq	_I915_NUM_RINGS@GOTPCREL(%rip), %rcx
	sarl	$31, %eax
	andl	(%rcx), %eax
	addl	%esi, %eax
	decl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_NUM_RINGS,8,3             ## @I915_NUM_RINGS
	.no_dead_strip	_intel_ring_sync_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ring_sync_index
_intel_ring_sync_index:                 ; @intel_ring_sync_index
	.cfi_startproc
; %bb.0:
	sub	x8, x1, x0
	lsr	x8, x8, #2
	sub	w8, w8, #1
Lloh0:
	adrp	x9, _I915_NUM_RINGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_NUM_RINGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8, asr #31
	add	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_NUM_RINGS,8,3             ; @I915_NUM_RINGS
	.no_dead_strip	_intel_ring_sync_index
.subsections_via_symbols
