	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_drop_caches_set
_i915_drop_caches_set:                  ## @i915_drop_caches_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_DROP_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%esi, %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DROP_RESET_ACTIVE@GOTPCREL(%rip), %rbx
	testl	%r13d, (%rbx)
	je	LBB0_3
## %bb.1:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_intel_engines_are_idle
	movq	_I915_IDLE_ENGINES_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_wait_for
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_intel_gt_set_wedged
LBB0_3:
	movq	%r14, %r15
	movq	_DROP_ACTIVE@GOTPCREL(%rip), %r12
	movq	_DROP_IDLE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	(%r12), %eax
	movq	_DROP_RETIRE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DROP_RESET_SEQNO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r13d, %eax
	je	LBB0_16
## %bb.4:
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.5:
	movq	_DROP_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	testl	%r13d, %ecx
	je	LBB0_8
## %bb.6:
	movq	_I915_WAIT_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movq	_I915_WAIT_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i915_gem_wait_for_idle
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	_DROP_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	testl	%r13d, %eax
	je	LBB0_9
## %bb.10:
	movq	_I915_WAIT_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movq	_I915_WAIT_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i915_gem_wait_for_idle
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_9:
	xorl	%r12d, %r12d
LBB0_11:
	movq	_DROP_RETIRE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_i915_retire_requests
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	movq	_DROP_IDLE@GOTPCREL(%rip), %r14
	movq	_DROP_RESET_ACTIVE@GOTPCREL(%rip), %rbx
	jne	LBB0_16
## %bb.14:
	testl	%r13d, (%r14)
	je	LBB0_16
## %bb.15:
	leaq	8(%r15), %rdi
	callq	_intel_gt_pm_wait_for_idle
LBB0_16:
	testl	%r13d, (%rbx)
	movq	%r15, %r12
	je	LBB0_19
## %bb.17:
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_intel_gt_terminally_wedged
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_ALL_ENGINES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_intel_gt_handle_error
LBB0_19:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_fs_reclaim_acquire
	movq	_DROP_BOUND@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_21
## %bb.20:
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I915_SHRINK_BOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_i915_gem_shrink
LBB0_21:
	movq	_DROP_UNBOUND@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_23
## %bb.22:
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I915_SHRINK_UNBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_i915_gem_shrink
LBB0_23:
	movq	_DROP_SHRINK_ALL@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_25
## %bb.24:
	movq	%r12, %rdi
	callq	_i915_gem_shrink_all
LBB0_25:
	movl	(%r15), %edi
	callq	_fs_reclaim_release
	testl	%r13d, (%r14)
	je	LBB0_27
## %bb.26:
	leaq	4(%r12), %rdi
	callq	_flush_delayed_work
	movq	%r12, %rdi
	callq	_flush_work
LBB0_27:
	movq	_DROP_FREED@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r13d, (%rax)
	je	LBB0_29
## %bb.28:
	movq	%r12, %rdi
	callq	_i915_gem_drain_freed_objects
LBB0_29:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dropping caches: 0x%08llx [0x%08llx]\n"

	.comm	_DROP_ALL,4,2                   ## @DROP_ALL
	.comm	_DROP_RESET_ACTIVE,4,2          ## @DROP_RESET_ACTIVE
	.comm	_I915_IDLE_ENGINES_TIMEOUT,4,2  ## @I915_IDLE_ENGINES_TIMEOUT
	.comm	_DROP_ACTIVE,4,2                ## @DROP_ACTIVE
	.comm	_DROP_IDLE,4,2                  ## @DROP_IDLE
	.comm	_DROP_RETIRE,4,2                ## @DROP_RETIRE
	.comm	_DROP_RESET_SEQNO,4,2           ## @DROP_RESET_SEQNO
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ## @I915_WAIT_INTERRUPTIBLE
	.comm	_I915_WAIT_LOCKED,4,2           ## @I915_WAIT_LOCKED
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_ALL_ENGINES,4,2                ## @ALL_ENGINES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DROP_BOUND,4,2                 ## @DROP_BOUND
	.comm	_LONG_MAX,4,2                   ## @LONG_MAX
	.comm	_I915_SHRINK_BOUND,4,2          ## @I915_SHRINK_BOUND
	.comm	_DROP_UNBOUND,4,2               ## @DROP_UNBOUND
	.comm	_I915_SHRINK_UNBOUND,4,2        ## @I915_SHRINK_UNBOUND
	.comm	_DROP_SHRINK_ALL,4,2            ## @DROP_SHRINK_ALL
	.comm	_DROP_FREED,4,2                 ## @DROP_FREED
	.no_dead_strip	_i915_drop_caches_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_drop_caches_set
_i915_drop_caches_set:                  ; @i915_drop_caches_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DROP_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DROP_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w2, w8, w1
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh5:
	adrp	x24, _DROP_RESET_ACTIVE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DROP_RESET_ACTIVE@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	add	x21, x19, #8
	mov	x0, x21
	bl	_intel_engines_are_idle
Lloh7:
	adrp	x8, _I915_IDLE_ENGINES_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I915_IDLE_ENGINES_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_wait_for
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_intel_gt_set_wedged
LBB0_3:
Lloh10:
	adrp	x22, _DROP_ACTIVE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DROP_ACTIVE@GOTPAGEOFF]
Lloh12:
	adrp	x23, _DROP_IDLE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _DROP_IDLE@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh14:
	adrp	x25, _DROP_RETIRE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _DROP_RETIRE@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _DROP_RESET_SEQNO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DROP_RESET_SEQNO@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_16
; %bb.4:
	add	x21, x19, #12
	mov	x0, x21
	bl	_mutex_lock_interruptible
	cbnz	w0, LBB0_30
; %bb.5:
	ldr	w8, [x23]
	ldr	w9, [x22]
Lloh19:
	adrp	x27, _I915_WAIT_INTERRUPTIBLE@GOTPAGE
Lloh20:
	ldr	x27, [x27, _I915_WAIT_INTERRUPTIBLE@GOTPAGEOFF]
	orr	w9, w9, w8
Lloh21:
	adrp	x28, _I915_WAIT_LOCKED@GOTPAGE
Lloh22:
	ldr	x28, [x28, _I915_WAIT_LOCKED@GOTPAGEOFF]
Lloh23:
	adrp	x26, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x26, [x26, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
	tst	w9, w20
	b.eq	LBB0_8
; %bb.6:
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w1, w9, w8
	ldr	w2, [x26]
	mov	x0, x19
	bl	_i915_gem_wait_for_idle
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w8, [x23]
LBB0_8:
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w1, w9, w8
	ldr	w2, [x26]
	mov	x0, x19
	bl	_i915_gem_wait_for_idle
	mov	x22, x0
	b	LBB0_11
LBB0_10:
	mov	w22, #0
LBB0_11:
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_i915_retire_requests
LBB0_13:
	mov	x0, x21
	bl	_mutex_unlock
	cbnz	w22, LBB0_16
; %bb.14:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
	add	x0, x19, #8
	bl	_intel_gt_pm_wait_for_idle
LBB0_16:
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.17:
	add	x21, x19, #8
	mov	x0, x21
	bl	_intel_gt_terminally_wedged
	cbz	x0, LBB0_19
; %bb.18:
Lloh25:
	adrp	x8, _ALL_ENGINES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ALL_ENGINES@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	bl	_intel_gt_handle_error
LBB0_19:
Lloh28:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh29:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_fs_reclaim_acquire
Lloh30:
	adrp	x8, _DROP_BOUND@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DROP_BOUND@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x22, _LONG_MAX@GOTPAGE
Lloh34:
	ldr	x22, [x22, _LONG_MAX@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.20:
	ldr	w1, [x22]
Lloh35:
	adrp	x8, _I915_SHRINK_BOUND@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I915_SHRINK_BOUND@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_i915_gem_shrink
LBB0_21:
Lloh38:
	adrp	x8, _DROP_UNBOUND@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DROP_UNBOUND@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_23
; %bb.22:
	ldr	w1, [x22]
Lloh41:
	adrp	x8, _I915_SHRINK_UNBOUND@GOTPAGE
Lloh42:
	ldr	x8, [x8, _I915_SHRINK_UNBOUND@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_i915_gem_shrink
LBB0_23:
Lloh44:
	adrp	x8, _DROP_SHRINK_ALL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DROP_SHRINK_ALL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_i915_gem_shrink_all
LBB0_25:
	ldr	w0, [x21]
	bl	_fs_reclaim_release
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_27
; %bb.26:
	add	x0, x19, #4
	bl	_flush_delayed_work
	mov	x0, x19
	bl	_flush_work
LBB0_27:
Lloh47:
	adrp	x8, _DROP_FREED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DROP_FREED@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_29
; %bb.28:
	mov	x0, x19
	bl	_i915_gem_drain_freed_objects
LBB0_29:
	mov	w0, #0
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dropping caches: 0x%08llx [0x%08llx]\n"

	.comm	_DROP_ALL,4,2                   ; @DROP_ALL
	.comm	_DROP_RESET_ACTIVE,4,2          ; @DROP_RESET_ACTIVE
	.comm	_I915_IDLE_ENGINES_TIMEOUT,4,2  ; @I915_IDLE_ENGINES_TIMEOUT
	.comm	_DROP_ACTIVE,4,2                ; @DROP_ACTIVE
	.comm	_DROP_IDLE,4,2                  ; @DROP_IDLE
	.comm	_DROP_RETIRE,4,2                ; @DROP_RETIRE
	.comm	_DROP_RESET_SEQNO,4,2           ; @DROP_RESET_SEQNO
	.comm	_I915_WAIT_INTERRUPTIBLE,4,2    ; @I915_WAIT_INTERRUPTIBLE
	.comm	_I915_WAIT_LOCKED,4,2           ; @I915_WAIT_LOCKED
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_ALL_ENGINES,4,2                ; @ALL_ENGINES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DROP_BOUND,4,2                 ; @DROP_BOUND
	.comm	_LONG_MAX,4,2                   ; @LONG_MAX
	.comm	_I915_SHRINK_BOUND,4,2          ; @I915_SHRINK_BOUND
	.comm	_DROP_UNBOUND,4,2               ; @DROP_UNBOUND
	.comm	_I915_SHRINK_UNBOUND,4,2        ; @I915_SHRINK_UNBOUND
	.comm	_DROP_SHRINK_ALL,4,2            ; @DROP_SHRINK_ALL
	.comm	_DROP_FREED,4,2                 ; @DROP_FREED
	.no_dead_strip	_i915_drop_caches_set
.subsections_via_symbols
