	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unsafe_drop_pages
_unsafe_drop_pages:                     ## @unsafe_drop_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_I915_SHRINK_ACTIVE@GOTPCREL(%rip), %rax
	andq	(%rax), %rsi
	je	LBB0_2
## %bb.1:
	movq	_I915_GEM_OBJECT_UNBIND_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_2:
	movq	%rbx, %rdi
	callq	_i915_gem_object_unbind
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_I915_MM_SHRINKER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___i915_gem_object_put_pages
LBB0_4:
	movq	%rbx, %rdi
	callq	_i915_gem_object_has_pages
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_SHRINK_ACTIVE,8,3         ## @I915_SHRINK_ACTIVE
	.comm	_I915_GEM_OBJECT_UNBIND_ACTIVE,8,3 ## @I915_GEM_OBJECT_UNBIND_ACTIVE
	.comm	_I915_MM_SHRINKER,4,2           ## @I915_MM_SHRINKER
	.no_dead_strip	_unsafe_drop_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unsafe_drop_pages
_unsafe_drop_pages:                     ; @unsafe_drop_pages
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _I915_SHRINK_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_SHRINK_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _I915_GEM_OBJECT_UNBIND_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I915_GEM_OBJECT_UNBIND_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	tst	x8, x1
	csel	x1, xzr, x9, eq
	bl	_i915_gem_object_unbind
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _I915_MM_SHRINKER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I915_MM_SHRINKER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___i915_gem_object_put_pages
LBB0_2:
	mov	x0, x19
	bl	_i915_gem_object_has_pages
	cmp	w0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_SHRINK_ACTIVE,8,3         ; @I915_SHRINK_ACTIVE
	.comm	_I915_GEM_OBJECT_UNBIND_ACTIVE,8,3 ; @I915_GEM_OBJECT_UNBIND_ACTIVE
	.comm	_I915_MM_SHRINKER,4,2           ; @I915_MM_SHRINKER
	.no_dead_strip	_unsafe_drop_pages
.subsections_via_symbols
