	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpufreq_update_policy          ## -- Begin function cpufreq_update_policy
	.p2align	4, 0x90
_cpufreq_update_policy:                 ## @cpufreq_update_policy
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	callq	_cpufreq_cpu_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_lock_policy_rwsem_write
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	movl	$40, %edx
	callq	_memcpy
	movups	8(%r14), %xmm0
	movups	%xmm0, -40(%rbp)
	movq	_cpufreq_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movl	%r15d, %edi
	callq	*%rax
	movq	%rax, -64(%rbp)
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	cmpq	%rax, %rsi
	je	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	movq	%rax, %rdx
	callq	_cpufreq_out_of_sync
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	-64(%rbp), %rax
	movq	%rax, (%r14)
LBB0_9:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	___cpufreq_set_policy
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_unlock_policy_rwsem_write
LBB0_10:
	movq	%r14, %rdi
	callq	_cpufreq_cpu_put
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"updating policy for CPU %u\n"

	.comm	_cpufreq_driver,8,3             ## @cpufreq_driver
L_.str.1:                               ## @.str.1
	.asciz	"Driver did not initialize current freq"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpufreq_update_policy          ; -- Begin function cpufreq_update_policy
	.p2align	2
_cpufreq_update_policy:                 ; @cpufreq_update_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	bl	_cpufreq_cpu_get
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_lock_policy_rwsem_write
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	str	x20, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #40
	bl	_memcpy
	ldur	q0, [x19, #8]
	stur	q0, [sp, #32]
Lloh8:
	adrp	x8, _cpufreq_driver@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cpufreq_driver@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.5:
	mov	x0, x20
	blr	x8
	str	x0, [sp, #8]
	ldr	x1, [x19]
	cbz	x1, LBB0_8
; %bb.6:
	mov	x2, x0
	cmp	x1, x0
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_cpufreq_out_of_sync
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	bl	___cpufreq_set_policy
	mov	x21, x0
	mov	x0, x20
	bl	_unlock_policy_rwsem_write
LBB0_10:
	mov	x0, x19
	bl	_cpufreq_cpu_put
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"updating policy for CPU %u\n"

	.comm	_cpufreq_driver,8,3             ; @cpufreq_driver
l_.str.1:                               ; @.str.1
	.asciz	"Driver did not initialize current freq"

.subsections_via_symbols
