	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpufreq_unregister_driver      ## -- Begin function cpufreq_unregister_driver
	.p2align	4, 0x90
_cpufreq_unregister_driver:             ## @cpufreq_unregister_driver
	.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	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cpufreq_debug_disable_ratelimit
	movq	_cpufreq_driver@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.3:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_cpu_sysdev_class@GOTPCREL(%rip), %rdi
	movq	_cpufreq_sysdev_driver@GOTPCREL(%rip), %rsi
	callq	_sysdev_driver_unregister
	movq	_cpufreq_cpu_notifier@GOTPCREL(%rip), %rdi
	callq	_unregister_hotcpu_notifier
	movq	_cpufreq_driver_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_write_lock_irqsave
	movq	$0, (%r15)
	movq	%rbx, %rdi
	callq	_write_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_cpufreq_debug_enable_ratelimit
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpufreq_driver,8,3             ## @cpufreq_driver
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unregistering driver %s\n"

	.comm	_cpu_sysdev_class,4,2           ## @cpu_sysdev_class
	.comm	_cpufreq_sysdev_driver,4,2      ## @cpufreq_sysdev_driver
	.comm	_cpufreq_cpu_notifier,4,2       ## @cpufreq_cpu_notifier
	.comm	_cpufreq_driver_lock,4,2        ## @cpufreq_driver_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpufreq_unregister_driver      ; -- Begin function cpufreq_unregister_driver
	.p2align	2
_cpufreq_unregister_driver:             ; @cpufreq_unregister_driver
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_cpufreq_debug_disable_ratelimit
Lloh0:
	adrp	x20, _cpufreq_driver@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cpufreq_driver@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	ccmp	x8, x19, #0, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_cpufreq_debug_enable_ratelimit
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh7:
	adrp	x0, _cpu_sysdev_class@GOTPAGE
Lloh8:
	ldr	x0, [x0, _cpu_sysdev_class@GOTPAGEOFF]
Lloh9:
	adrp	x1, _cpufreq_sysdev_driver@GOTPAGE
Lloh10:
	ldr	x1, [x1, _cpufreq_sysdev_driver@GOTPAGEOFF]
	bl	_sysdev_driver_unregister
Lloh11:
	adrp	x0, _cpufreq_cpu_notifier@GOTPAGE
Lloh12:
	ldr	x0, [x0, _cpufreq_cpu_notifier@GOTPAGEOFF]
	bl	_unregister_hotcpu_notifier
Lloh13:
	adrp	x19, _cpufreq_driver_lock@GOTPAGE
Lloh14:
	ldr	x19, [x19, _cpufreq_driver_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_write_lock_irqsave
	str	xzr, [x20]
	mov	x0, x19
	bl	_write_unlock_irqrestore
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cpufreq_driver,8,3             ; @cpufreq_driver
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unregistering driver %s\n"

	.comm	_cpu_sysdev_class,4,2           ; @cpu_sysdev_class
	.comm	_cpufreq_sysdev_driver,4,2      ; @cpufreq_sysdev_driver
	.comm	_cpufreq_cpu_notifier,4,2       ; @cpufreq_cpu_notifier
	.comm	_cpufreq_driver_lock,4,2        ; @cpufreq_driver_lock
.subsections_via_symbols
