	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_gem_object_release_shmem ## -- Begin function __i915_gem_object_release_shmem
	.p2align	4, 0x90
___i915_gem_object_release_shmem:       ## @__i915_gem_object_release_shmem
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	___I915_MADV_PURGED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	8(%rbx), %rax
	movq	_I915_MADV_DONTNEED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$0, 16(%rbx)
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	movq	_I915_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.4:
	movq	_I915_BO_CACHE_COHERENT_FOR_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_drm_clflush_sg
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___start_cpu_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___I915_MADV_PURGED,8,3         ## @__I915_MADV_PURGED
	.comm	_I915_MADV_DONTNEED,8,3         ## @I915_MADV_DONTNEED
	.comm	_I915_GEM_DOMAIN_CPU,4,2        ## @I915_GEM_DOMAIN_CPU
	.comm	_I915_BO_CACHE_COHERENT_FOR_READ,4,2 ## @I915_BO_CACHE_COHERENT_FOR_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_gem_object_release_shmem ; -- Begin function __i915_gem_object_release_shmem
	.p2align	2
___i915_gem_object_release_shmem:       ; @__i915_gem_object_release_shmem
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, ___I915_MADV_PURGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___I915_MADV_PURGED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _I915_MADV_DONTNEED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_MADV_DONTNEED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [x19, #16]
LBB0_2:
	cbz	w21, LBB0_6
; %bb.3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _I915_GEM_DOMAIN_CPU@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I915_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #4]
Lloh9:
	adrp	x9, _I915_BO_CACHE_COHERENT_FOR_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I915_BO_CACHE_COHERENT_FOR_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_drm_clflush_sg
LBB0_6:
	mov	x0, x19
	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	___start_cpu_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	___I915_MADV_PURGED,8,3         ; @__I915_MADV_PURGED
	.comm	_I915_MADV_DONTNEED,8,3         ; @I915_MADV_DONTNEED
	.comm	_I915_GEM_DOMAIN_CPU,4,2        ; @I915_GEM_DOMAIN_CPU
	.comm	_I915_BO_CACHE_COHERENT_FOR_READ,4,2 ; @I915_BO_CACHE_COHERENT_FOR_READ
.subsections_via_symbols
