	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpufreq_register_driver        ## -- Begin function cpufreq_register_driver
	.p2align	4, 0x90
_cpufreq_register_driver:               ## @cpufreq_register_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, 24(%rdi)
	je	LBB0_5
## %bb.2:
	cmpl	$0, 20(%r14)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%r14)
	jne	LBB0_7
## %bb.4:
	cmpl	$0, 16(%r14)
	je	LBB0_5
LBB0_7:
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movq	_CPUFREQ_CONST_LOOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_9:
	movq	_cpufreq_driver_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_irqsave
	movq	_cpufreq_driver@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_11
## %bb.10:
	movq	_cpufreq_driver_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, (%r12)
	movq	_cpufreq_driver_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irqrestore
	movq	_cpu_sysdev_class@GOTPCREL(%rip), %rdi
	movq	_cpufreq_sysdev_driver@GOTPCREL(%rip), %rsi
	callq	_sysdev_driver_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.12:
	movq	(%r12), %rax
	movq	_CPUFREQ_STICKY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
LBB0_20:
	movq	_cpufreq_cpu_notifier@GOTPCREL(%rip), %rdi
	callq	_register_hotcpu_notifier
	movl	4(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_dprintk
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cpufreq_debug_enable_ratelimit
	jmp	LBB0_21
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_nr_cpu_ids@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_18
## %bb.14:
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%r15d
	cmpl	(%r13), %r15d
	jge	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_cpu_possible
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_cpufreq_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_per_cpu
	testq	%rax, %rax
	je	LBB0_17
	jmp	LBB0_20
LBB0_18:
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.19:
	negl	%ebx
	movl	4(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_dprintk
	movq	_cpu_sysdev_class@GOTPCREL(%rip), %rdi
	movq	_cpufreq_sysdev_driver@GOTPCREL(%rip), %rsi
	callq	_sysdev_driver_unregister
	movq	_cpufreq_driver_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	movq	$0, (%r12)
	movq	%r14, %rdi
	callq	_write_unlock_irqrestore
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to register driver %s\n"

	.comm	_CPUFREQ_CONST_LOOPS,4,2        ## @CPUFREQ_CONST_LOOPS
	.comm	_cpufreq_driver_lock,4,2        ## @cpufreq_driver_lock
	.comm	_cpufreq_driver,8,3             ## @cpufreq_driver
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_cpu_sysdev_class,4,2           ## @cpu_sysdev_class
	.comm	_cpufreq_sysdev_driver,4,2      ## @cpufreq_sysdev_driver
	.comm	_CPUFREQ_STICKY,4,2             ## @CPUFREQ_STICKY
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.comm	_cpufreq_cpu_data,4,2           ## @cpufreq_cpu_data
L_.str.1:                               ## @.str.1
	.asciz	"no CPU initialized for driver %s\n"

	.comm	_cpufreq_cpu_notifier,4,2       ## @cpufreq_cpu_notifier
L_.str.2:                               ## @.str.2
	.asciz	"driver %s up and running\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpufreq_register_driver        ; -- Begin function cpufreq_register_driver
	.p2align	2
_cpufreq_register_driver:               ; @cpufreq_register_driver
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
LBB0_5:
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _CPUFREQ_CONST_LOOPS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPUFREQ_CONST_LOOPS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
Lloh5:
	adrp	x0, _cpufreq_driver_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _cpufreq_driver_lock@GOTPAGEOFF]
	bl	_write_lock_irqsave
Lloh7:
	adrp	x21, _cpufreq_driver@GOTPAGE
Lloh8:
	ldr	x21, [x21, _cpufreq_driver@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.8:
Lloh9:
	adrp	x0, _cpufreq_driver_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _cpufreq_driver_lock@GOTPAGEOFF]
	bl	_write_unlock_irqrestore
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	str	x19, [x21]
Lloh15:
	adrp	x0, _cpufreq_driver_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _cpufreq_driver_lock@GOTPAGEOFF]
	bl	_write_unlock_irqrestore
Lloh17:
	adrp	x0, _cpu_sysdev_class@GOTPAGE
Lloh18:
	ldr	x0, [x0, _cpu_sysdev_class@GOTPAGEOFF]
Lloh19:
	adrp	x1, _cpufreq_sysdev_driver@GOTPAGE
Lloh20:
	ldr	x1, [x1, _cpufreq_sysdev_driver@GOTPAGEOFF]
	bl	_sysdev_driver_register
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.13:
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CPUFREQ_STICKY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CPUFREQ_STICKY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_14:
Lloh24:
	adrp	x0, _cpufreq_cpu_notifier@GOTPAGE
Lloh25:
	ldr	x0, [x0, _cpufreq_cpu_notifier@GOTPAGEOFF]
	bl	_register_hotcpu_notifier
	ldr	w1, [x19, #4]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	bl	_cpufreq_debug_enable_ratelimit
	mov	w20, #0
	b	LBB0_11
LBB0_15:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
Lloh31:
	adrp	x23, _nr_cpu_ids@GOTPAGE
Lloh32:
	ldr	x23, [x23, _nr_cpu_ids@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	w20, #0
Lloh33:
	adrp	x24, _cpufreq_cpu_data@GOTPAGE
Lloh34:
	ldr	x24, [x24, _cpufreq_cpu_data@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w20, w20, #1
	ldr	w8, [x23]
	cmp	w20, w8
	b.ge	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_cpu_possible
	cbz	x0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	bl	_per_cpu
	cbz	x0, LBB0_17
	b	LBB0_14
LBB0_20:
	cbz	w22, LBB0_14
; %bb.21:
	neg	w20, w22
	ldr	w1, [x19, #4]
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
Lloh37:
	adrp	x0, _cpu_sysdev_class@GOTPAGE
Lloh38:
	ldr	x0, [x0, _cpu_sysdev_class@GOTPAGEOFF]
Lloh39:
	adrp	x1, _cpufreq_sysdev_driver@GOTPAGE
Lloh40:
	ldr	x1, [x1, _cpufreq_sysdev_driver@GOTPAGEOFF]
	bl	_sysdev_driver_unregister
Lloh41:
	adrp	x19, _cpufreq_driver_lock@GOTPAGE
Lloh42:
	ldr	x19, [x19, _cpufreq_driver_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_write_lock_irqsave
	str	xzr, [x21]
	mov	x0, x19
	bl	_write_unlock_irqrestore
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to register driver %s\n"

	.comm	_CPUFREQ_CONST_LOOPS,4,2        ; @CPUFREQ_CONST_LOOPS
	.comm	_cpufreq_driver_lock,4,2        ; @cpufreq_driver_lock
	.comm	_cpufreq_driver,8,3             ; @cpufreq_driver
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_cpu_sysdev_class,4,2           ; @cpu_sysdev_class
	.comm	_cpufreq_sysdev_driver,4,2      ; @cpufreq_sysdev_driver
	.comm	_CPUFREQ_STICKY,4,2             ; @CPUFREQ_STICKY
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.comm	_cpufreq_cpu_data,4,2           ; @cpufreq_cpu_data
l_.str.1:                               ; @.str.1
	.asciz	"no CPU initialized for driver %s\n"

	.comm	_cpufreq_cpu_notifier,4,2       ; @cpufreq_cpu_notifier
l_.str.2:                               ; @.str.2
	.asciz	"driver %s up and running\n"

.subsections_via_symbols
