	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ring_cacheline_align     ## -- Begin function intel_ring_cacheline_align
	.p2align	4, 0x90
_intel_ring_cacheline_align:            ## @intel_ring_cacheline_align
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	_CACHELINE_BYTES@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	decl	%eax
	andl	(%rcx), %eax
	cmpl	$4, %eax
	jb	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	sarl	$2, %eax
	movq	_CACHELINE_DWORDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subl	%eax, %ebx
	movl	%ebx, %edi
	andl	$1, %edi
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_intel_ring_begin
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movl	%ebx, %edx
	shrl	$31, %edx
	addl	%ebx, %edx
	sarl	%edx
	movq	%r15, %rdi
	callq	_memset64
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_intel_ring_advance
	movq	(%r14), %rax
	movl	(%r12), %edi
	decl	%edi
	andl	(%rax), %edi
	callq	_GEM_BUG_ON
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHELINE_BYTES,4,2            ## @CACHELINE_BYTES
	.comm	_CACHELINE_DWORDS,4,2           ## @CACHELINE_DWORDS
	.comm	_MI_NOOP,4,2                    ## @MI_NOOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ring_cacheline_align     ; -- Begin function intel_ring_cacheline_align
	.p2align	2
_intel_ring_cacheline_align:            ; @intel_ring_cacheline_align
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x22, _CACHELINE_BYTES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CACHELINE_BYTES@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w9, w9, #1
	and	w8, w9, w8
	cmp	w8, #4
	b.lo	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x9, _CACHELINE_DWORDS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CACHELINE_DWORDS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sub	w20, w9, w8, asr #2
	and	w0, w20, #0x1
	bl	_GEM_BUG_ON
	mov	x0, x19
	mov	x1, x20
	bl	_intel_ring_begin
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_memset64
	mov	x0, x19
	mov	x1, x21
	bl	_intel_ring_advance
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w9, w9, #1
	and	w0, w9, w8
	bl	_GEM_BUG_ON
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHELINE_BYTES,4,2            ; @CACHELINE_BYTES
	.comm	_CACHELINE_DWORDS,4,2           ; @CACHELINE_DWORDS
	.comm	_MI_NOOP,4,2                    ; @MI_NOOP
.subsections_via_symbols
