	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_rps_mark_interactive     ## -- Begin function intel_rps_mark_interactive
	.p2align	4, 0x90
_intel_rps_mark_interactive:            ## @intel_rps_mark_interactive
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_INTEL_GEN
	cmpl	$6, %eax
	jge	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %eax
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.2:
	leal	1(%rax), %ecx
	movl	%ecx, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	(%rbx), %edi
	callq	_READ_ONCE
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_HIGH_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rps_set_power
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	decl	8(%rbx)
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HIGH_POWER,4,2                 ## @HIGH_POWER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_rps_mark_interactive     ; -- Begin function intel_rps_mark_interactive
	.p2align	2
_intel_rps_mark_interactive:            ; @intel_rps_mark_interactive
	.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	x21, x1
	mov	x19, x0
	bl	_INTEL_GEN
	cmp	w0, #6
	b.ge	LBB0_2
; %bb.1:
	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_2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19, #8]
	cbz	w21, LBB0_6
; %bb.3:
	add	w9, w8, #1
	str	w9, [x19, #8]
	cbnz	w8, LBB0_7
; %bb.4:
	ldr	w0, [x19]
	bl	_READ_ONCE
	cbz	x0, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _HIGH_POWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIGH_POWER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rps_set_power
	b	LBB0_7
LBB0_6:
	cmp	w8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HIGH_POWER,4,2                 ; @HIGH_POWER
.subsections_via_symbols
