	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_rps_boost                 ## -- Begin function gen6_rps_boost
	.p2align	4, 0x90
_gen6_rps_boost:                        ## @gen6_rps_boost
	.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	16(%rdi), %r14
	cmpl	$0, 24(%r14)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	callq	_i915_request_signaled
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_i915_request_has_waitboost
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	leaq	8(%rbx), %rdi
	callq	_dma_fence_is_signaled_locked
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	leaq	20(%r14), %rdi
	callq	_atomic_fetch_inc
	movl	%eax, %r15d
	movq	_I915_REQUEST_WAITBOOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.5:
	movl	16(%r14), %edi
	callq	_READ_ONCE
	cmpq	(%r14), %rax
	jge	LBB0_7
## %bb.6:
	leaq	12(%r14), %rdi
	callq	_schedule_work
LBB0_7:
	addq	$8, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_inc                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_REQUEST_WAITBOOST,4,2     ## @I915_REQUEST_WAITBOOST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_rps_boost                 ; -- Begin function gen6_rps_boost
	.p2align	2
_gen6_rps_boost:                        ; @gen6_rps_boost
	.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
	ldr	x21, [x0, #16]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_i915_request_signaled
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_i915_request_has_waitboost
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, x19, #8
	bl	_dma_fence_is_signaled_locked
	cbz	w0, LBB0_6
LBB0_5:
	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	_spin_unlock_irqrestore
LBB0_6:
	add	x0, x21, #20
	bl	_atomic_fetch_inc
	mov	x20, x0
Lloh0:
	adrp	x8, _I915_REQUEST_WAITBOOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_REQUEST_WAITBOOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbnz	w20, LBB0_2
; %bb.7:
	ldr	w0, [x21, #16]
	bl	_READ_ONCE
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_9
; %bb.8:
	add	x0, x21, #12
	bl	_schedule_work
LBB0_9:
	add	x0, x21, #8
	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	_atomic_inc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_REQUEST_WAITBOOST,4,2     ; @I915_REQUEST_WAITBOOST
.subsections_via_symbols
