	.file	"extr_i915_debugfs.c_i915_drop_caches_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Dropping caches: 0x%08llx [0x%08llx]\n"
	.text
	.p2align 4
	.type	i915_drop_caches_set, @function
i915_drop_caches_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR DROP_ALL[rip]
	and	edx, esi
	call	DRM_DEBUG@PLT
	test	DWORD PTR DROP_RESET_ACTIVE[rip], ebx
	jne	.L57
	mov	eax, DWORD PTR DROP_ACTIVE[rip]
	or	eax, DWORD PTR DROP_IDLE[rip]
	or	eax, DWORD PTR DROP_RETIRE[rip]
	or	eax, DWORD PTR DROP_RESET_SEQNO[rip]
	test	eax, ebx
	jne	.L4
.L13:
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	fs_reclaim_acquire@PLT
	test	DWORD PTR DROP_BOUND[rip], ebx
	jne	.L58
.L15:
	test	DWORD PTR DROP_UNBOUND[rip], ebx
	jne	.L59
.L16:
	test	DWORD PTR DROP_SHRINK_ALL[rip], ebx
	jne	.L60
.L17:
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	fs_reclaim_release@PLT
	test	DWORD PTR DROP_IDLE[rip], ebx
	jne	.L61
.L18:
	mov	eax, ebx
	and	eax, DWORD PTR DROP_FREED[rip]
	jne	.L62
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	r12, 12[rbp]
	mov	rdi, r12
	call	mutex_lock_interruptible@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR DROP_IDLE[rip]
	mov	edx, DWORD PTR DROP_ACTIVE[rip]
	or	edx, eax
	test	edx, ebx
	jne	.L63
.L7:
	test	ebx, eax
	jne	.L64
	test	DWORD PTR DROP_RETIRE[rip], ebx
	jne	.L65
.L55:
	mov	rdi, r12
	call	mutex_unlock@PLT
.L19:
	test	DWORD PTR DROP_IDLE[rip], ebx
	je	.L5
	lea	rdi, 8[rbp]
	call	intel_gt_pm_wait_for_idle@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L57:
	lea	r12, 8[rbp]
	mov	r13d, DWORD PTR I915_IDLE_ENGINES_TIMEOUT[rip]
	mov	rdi, r12
	call	intel_engines_are_idle@PLT
	mov	esi, r13d
	mov	edi, eax
	call	wait_for@PLT
	test	rax, rax
	jne	.L66
.L3:
	mov	eax, DWORD PTR DROP_ACTIVE[rip]
	or	eax, DWORD PTR DROP_IDLE[rip]
	or	eax, DWORD PTR DROP_RETIRE[rip]
	or	eax, DWORD PTR DROP_RESET_SEQNO[rip]
	test	eax, ebx
	jne	.L4
.L5:
	test	DWORD PTR DROP_RESET_ACTIVE[rip], ebx
	je	.L13
	lea	r12, 8[rbp]
	mov	rdi, r12
	call	intel_gt_terminally_wedged@PLT
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR ALL_ENGINES[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, r12
	call	intel_gt_handle_error@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L62:
	mov	rdi, rbp
	call	i915_gem_drain_freed_objects@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L61:
	.cfi_restore_state
	lea	rdi, 4[rbp]
	call	flush_delayed_work@PLT
	mov	rdi, rbp
	call	flush_work@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L60:
	mov	rdi, rbp
	call	i915_gem_shrink_all@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L59:
	mov	ecx, DWORD PTR I915_SHRINK_UNBOUND[rip]
	mov	esi, DWORD PTR LONG_MAX[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	i915_gem_shrink@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L58:
	mov	ecx, DWORD PTR I915_SHRINK_BOUND[rip]
	mov	esi, DWORD PTR LONG_MAX[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	i915_gem_shrink@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L63:
	mov	edx, DWORD PTR MAX_SCHEDULE_TIMEOUT[rip]
	mov	esi, DWORD PTR I915_WAIT_INTERRUPTIBLE[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR I915_WAIT_LOCKED[rip]
	call	i915_gem_wait_for_idle@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L67
	test	DWORD PTR DROP_RETIRE[rip], ebx
	jne	.L21
	mov	rdi, r12
	call	mutex_unlock@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L66:
	mov	rdi, r12
	call	intel_gt_set_wedged@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L64:
	mov	edx, DWORD PTR MAX_SCHEDULE_TIMEOUT[rip]
	mov	esi, DWORD PTR I915_WAIT_INTERRUPTIBLE[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR I915_WAIT_LOCKED[rip]
	call	i915_gem_wait_for_idle@PLT
	mov	r13d, eax
	test	DWORD PTR DROP_RETIRE[rip], ebx
	jne	.L21
.L10:
	mov	rdi, r12
	call	mutex_unlock@PLT
	test	r13d, r13d
	jne	.L5
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L65:
	mov	rdi, rbp
	call	i915_retire_requests@PLT
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	i915_retire_requests@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L67:
	mov	eax, DWORD PTR DROP_IDLE[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	i915_drop_caches_set, .-i915_drop_caches_set
	.comm	MAX_SCHEDULE_TIMEOUT,4,4
	.comm	LONG_MAX,4,4
	.comm	I915_WAIT_LOCKED,4,4
	.comm	I915_WAIT_INTERRUPTIBLE,4,4
	.comm	I915_SHRINK_UNBOUND,4,4
	.comm	I915_SHRINK_BOUND,4,4
	.comm	I915_IDLE_ENGINES_TIMEOUT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	DROP_UNBOUND,4,4
	.comm	DROP_SHRINK_ALL,4,4
	.comm	DROP_RETIRE,4,4
	.comm	DROP_RESET_SEQNO,4,4
	.comm	DROP_RESET_ACTIVE,4,4
	.comm	DROP_IDLE,4,4
	.comm	DROP_FREED,4,4
	.comm	DROP_BOUND,4,4
	.comm	DROP_ALL,4,4
	.comm	DROP_ACTIVE,4,4
	.comm	ALL_ENGINES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_i915_debugfs.c_i915_drop_caches_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Dropping caches: 0x%08llx [0x%08llx]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i915_drop_caches_set, %function
i915_drop_caches_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r3, .L67
	ldr	r7, .L67+4
	ldr	r2, [r3]
	mov	r5, r0
	and	r2, r2, r1
	ldr	r0, .L67+8
	bl	DRM_DEBUG
	ldr	r3, [r7]
	tst	r4, r3
	bne	.L57
	ldr	r9, .L67+12
	ldr	r6, .L67+16
	ldr	r8, .L67+20
	ldr	r1, [r6]
	ldr	r3, [r9]
	ldr	r2, .L67+24
	orr	r3, r3, r1
	ldr	r1, [r8]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	tst	r3, r4
	bne	.L4
.L13:
	ldr	r7, .L67+28
	ldr	r0, [r7]
	bl	fs_reclaim_acquire
	ldr	r3, .L67+32
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L58
.L15:
	ldr	r3, .L67+36
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L59
.L16:
	ldr	r3, .L67+40
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L60
.L17:
	ldr	r0, [r7]
	bl	fs_reclaim_release
	ldr	r3, [r6]
	tst	r4, r3
	bne	.L61
.L18:
	ldr	r3, .L67+44
	ldr	r3, [r3]
	ands	r0, r4, r3
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r0, r5
	bl	i915_gem_drain_freed_objects
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	add	r10, r5, #12
	mov	r0, r10
	bl	mutex_lock_interruptible
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r9]
	ldr	r2, [r6]
	orr	r3, r2, r3
	tst	r3, r4
	bne	.L62
.L7:
	tst	r4, r2
	bne	.L63
	ldr	r3, [r8]
	tst	r4, r3
	bne	.L64
.L55:
	mov	r0, r10
	bl	mutex_unlock
.L19:
	ldr	r3, [r6]
	tst	r4, r3
	beq	.L5
	add	r0, r5, #8
	bl	intel_gt_pm_wait_for_idle
	b	.L5
.L57:
	add	r6, r5, #8
	mov	r0, r6
	bl	intel_engines_are_idle
	ldr	r3, .L67+48
	ldr	r1, [r3]
	bl	wait_for
	cmp	r0, #0
	bne	.L65
.L3:
	ldr	r9, .L67+12
	ldr	r6, .L67+16
	ldr	r8, .L67+20
	ldr	r1, [r6]
	ldr	r3, [r9]
	ldr	r2, .L67+24
	orr	r3, r3, r1
	ldr	r1, [r8]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	tst	r3, r4
	bne	.L4
.L5:
	ldr	r3, [r7]
	tst	r4, r3
	beq	.L13
	add	r7, r5, #8
	mov	r0, r7
	bl	intel_gt_terminally_wedged
	cmp	r0, #0
	beq	.L13
	mov	r3, #0
	ldr	r1, .L67+52
	mov	r0, r7
	mov	r2, r3
	ldr	r1, [r1]
	bl	intel_gt_handle_error
	b	.L13
.L61:
	add	r0, r5, #4
	bl	flush_delayed_work
	mov	r0, r5
	bl	flush_work
	b	.L18
.L60:
	mov	r0, r5
	bl	i915_gem_shrink_all
	b	.L17
.L59:
	ldr	r2, .L67+56
	ldr	r3, .L67+60
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	ldr	r3, [r3]
	bl	i915_gem_shrink
	b	.L16
.L58:
	ldr	r2, .L67+56
	ldr	r3, .L67+64
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	ldr	r3, [r3]
	bl	i915_gem_shrink
	b	.L15
.L62:
	ldr	r2, .L67+68
	ldr	r3, .L67+72
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L67+76
	orr	r1, r1, r2
	mov	r0, r5
	ldr	r2, [r3]
	bl	i915_gem_wait_for_idle
	subs	r9, r0, #0
	beq	.L66
	ldr	r3, [r8]
	tst	r4, r3
	bne	.L21
	mov	r0, r10
	bl	mutex_unlock
	b	.L5
.L65:
	mov	r0, r6
	bl	intel_gt_set_wedged
	b	.L3
.L63:
	ldr	r2, .L67+68
	ldr	r3, .L67+72
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L67+76
	orr	r1, r1, r2
	mov	r0, r5
	ldr	r2, [r3]
	bl	i915_gem_wait_for_idle
	ldr	r3, [r8]
	mov	r9, r0
	tst	r4, r3
	bne	.L21
.L10:
	mov	r0, r10
	bl	mutex_unlock
	cmp	r9, #0
	bne	.L5
	b	.L19
.L64:
	mov	r0, r5
	bl	i915_retire_requests
	b	.L55
.L21:
	mov	r0, r5
	bl	i915_retire_requests
	b	.L10
.L66:
	ldr	r2, [r6]
	b	.L7
.L68:
	.align	2
.L67:
	.word	DROP_ALL
	.word	DROP_RESET_ACTIVE
	.word	.LC0
	.word	DROP_ACTIVE
	.word	DROP_IDLE
	.word	DROP_RETIRE
	.word	DROP_RESET_SEQNO
	.word	GFP_KERNEL
	.word	DROP_BOUND
	.word	DROP_UNBOUND
	.word	DROP_SHRINK_ALL
	.word	DROP_FREED
	.word	I915_IDLE_ENGINES_TIMEOUT
	.word	ALL_ENGINES
	.word	LONG_MAX
	.word	I915_SHRINK_UNBOUND
	.word	I915_SHRINK_BOUND
	.word	I915_WAIT_INTERRUPTIBLE
	.word	I915_WAIT_LOCKED
	.word	MAX_SCHEDULE_TIMEOUT
	.size	i915_drop_caches_set, .-i915_drop_caches_set
	.comm	MAX_SCHEDULE_TIMEOUT,4,4
	.comm	LONG_MAX,4,4
	.comm	I915_WAIT_LOCKED,4,4
	.comm	I915_WAIT_INTERRUPTIBLE,4,4
	.comm	I915_SHRINK_UNBOUND,4,4
	.comm	I915_SHRINK_BOUND,4,4
	.comm	I915_IDLE_ENGINES_TIMEOUT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	DROP_UNBOUND,4,4
	.comm	DROP_SHRINK_ALL,4,4
	.comm	DROP_RETIRE,4,4
	.comm	DROP_RESET_SEQNO,4,4
	.comm	DROP_RESET_ACTIVE,4,4
	.comm	DROP_IDLE,4,4
	.comm	DROP_FREED,4,4
	.comm	DROP_BOUND,4,4
	.comm	DROP_ALL,4,4
	.comm	DROP_ACTIVE,4,4
	.comm	ALL_ENGINES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
