	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_space
_ring_space:                            ## @ring_space
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HEAD_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movl	4(%rdi), %ecx
	movq	_I915_RING_FREE_SPACE@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	subl	%ecx, %eax
	js	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	addl	8(%rdi), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEAD_ADDR,4,2                  ## @HEAD_ADDR
	.comm	_I915_RING_FREE_SPACE,4,2       ## @I915_RING_FREE_SPACE
	.no_dead_strip	_ring_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_space
_ring_space:                            ; @ring_space
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HEAD_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEAD_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x0]
	and	w8, w8, w9
Lloh3:
	adrp	x9, _I915_RING_FREE_SPACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_RING_FREE_SPACE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w9, w10, w9
	subs	w8, w8, w9
	b.mi	LBB0_2
; %bb.1:
	mov	x0, x8
	ret
LBB0_2:
	ldr	w9, [x0, #8]
	add	w8, w8, w9
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HEAD_ADDR,4,2                  ; @HEAD_ADDR
	.comm	_I915_RING_FREE_SPACE,4,2       ; @I915_RING_FREE_SPACE
	.no_dead_strip	_ring_space
.subsections_via_symbols
