	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_gem_object_unset_pages  ## -- Begin function __i915_gem_object_unset_pages
	.p2align	4, 0x90
___i915_gem_object_unset_pages:         ## @__i915_gem_object_unset_pages
	.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
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_fetch_and_zero
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_i915_gem_object_make_unshrinkable
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	callq	_page_mask_bits
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_is_vmalloc_addr
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_vunmap
	jmp	LBB0_5
LBB0_4:
	callq	_kmap_to_page
	movl	%eax, %edi
	callq	_kunmap
LBB0_5:
	movq	$0, 16(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	___i915_gem_object_reset_page_iter
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___i915_gem_object_unset_pages  ; -- Begin function __i915_gem_object_unset_pages
	.p2align	2
___i915_gem_object_unset_pages:         ; @__i915_gem_object_unset_pages
	.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	x19, x0
	add	x0, x0, #24
	bl	_fetch_and_zero
	mov	x20, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_i915_gem_object_make_unshrinkable
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.2:
	bl	_page_mask_bits
	mov	x21, x0
	bl	_is_vmalloc_addr
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_vunmap
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_kmap_to_page
	bl	_kunmap
LBB0_5:
	str	xzr, [x19, #16]
LBB0_6:
	mov	x0, x19
	bl	___i915_gem_object_reset_page_iter
	stp	xzr, xzr, [x19]
LBB0_7:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
