	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gt_boost_freq_mhz_store
_gt_boost_freq_mhz_store:               ## @gt_boost_freq_mhz_store
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_kdev_minor_to_i915
	movq	%rax, %r12
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtou32
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_intel_freq_opcode
	movq	%rax, -40(%rbp)
	cmpq	(%r12), %rax
	jl	LBB0_3
## %bb.2:
	cmpq	8(%r12), %rax
	jle	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	28(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-40(%rbp), %rax
	cmpq	16(%r12), %rax
	jne	LBB0_5
## %bb.7:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_5:
	movq	%rax, 16(%r12)
	leaq	32(%r12), %rdi
	callq	_atomic_read
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_schedule_work
LBB0_8:
	movq	%r14, %rax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_gt_boost_freq_mhz_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gt_boost_freq_mhz_store
_gt_boost_freq_mhz_store:               ; @gt_boost_freq_mhz_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x21, x2
	bl	_kdev_minor_to_i915
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtou32
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_intel_freq_opcode
	str	x0, [sp, #8]
	ldr	x8, [x20]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.le	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_9
LBB0_4:
	add	x21, x20, #28
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_8
LBB0_6:
	str	x8, [x20, #16]
	add	x0, x20, #32
	bl	_atomic_read
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbz	w22, LBB0_8
; %bb.7:
	add	x0, x20, #24
	bl	_schedule_work
LBB0_8:
	mov	x0, x19
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_gt_boost_freq_mhz_store
.subsections_via_symbols
