	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpufreq_parse_governor
_cpufreq_parse_governor:                ## @cpufreq_parse_governor
	.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
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_cpufreq_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.2:
	movq	%rsi, %r12
	movq	_CPUFREQ_NAME_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strnicmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strnicmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	_CPUFREQ_POLICY_POWERSAVE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.8:
	movq	%rdx, %r15
	movq	_cpufreq_governor_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	___find_governor
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:
	movq	%r13, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_CPUFREQ_POLICY_PERFORMANCE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_kasprintf
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_cpufreq_governor_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	callq	_request_module
	movl	%eax, %r13d
	movq	_cpufreq_governor_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	testl	%r13d, %r13d
	je	LBB0_12
LBB0_11:
	movq	%r12, %rdi
	callq	_kfree
LBB0_14:
	movq	_cpufreq_governor_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	callq	___find_governor
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_kfree
	testq	%r13, %r13
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cpufreq_driver,8,3             ## @cpufreq_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"performance"

	.comm	_CPUFREQ_NAME_LEN,4,2           ## @CPUFREQ_NAME_LEN
	.comm	_CPUFREQ_POLICY_PERFORMANCE,4,2 ## @CPUFREQ_POLICY_PERFORMANCE
L_.str.1:                               ## @.str.1
	.asciz	"powersave"

	.comm	_CPUFREQ_POLICY_POWERSAVE,4,2   ## @CPUFREQ_POLICY_POWERSAVE
	.comm	_cpufreq_governor_mutex,4,2     ## @cpufreq_governor_mutex
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"cpufreq_%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.no_dead_strip	_cpufreq_parse_governor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpufreq_parse_governor
_cpufreq_parse_governor:                ; @cpufreq_parse_governor
	.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
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x8, _cpufreq_driver@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpufreq_driver@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.1:
	mov	x20, x0
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.2:
	mov	x22, x1
Lloh6:
	adrp	x21, _CPUFREQ_NAME_LEN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CPUFREQ_NAME_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strnicmp
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w2, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strnicmp
	cbnz	w0, LBB0_14
; %bb.4:
	mov	w19, #0
Lloh12:
	adrp	x8, _CPUFREQ_POLICY_POWERSAVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CPUFREQ_POLICY_POWERSAVE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.6:
	mov	x21, x2
Lloh14:
	adrp	x0, _cpufreq_governor_mutex@GOTPAGE
Lloh15:
	ldr	x0, [x0, _cpufreq_governor_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	___find_governor
	mov	x23, x0
	cbz	x0, LBB0_10
LBB0_7:
	mov	w19, #0
	str	x23, [x21]
	b	LBB0_13
LBB0_8:
	mov	w19, #0
Lloh16:
	adrp	x8, _CPUFREQ_POLICY_PERFORMANCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CPUFREQ_POLICY_PERFORMANCE@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x22]
	b	LBB0_14
LBB0_10:
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_kasprintf
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.11:
Lloh23:
	adrp	x23, _cpufreq_governor_mutex@GOTPAGE
Lloh24:
	ldr	x23, [x23, _cpufreq_governor_mutex@GOTPAGEOFF]
	mov	x0, x23
	bl	_mutex_unlock
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_request_module
	mov	x24, x0
	mov	x0, x23
	bl	_mutex_lock
	cbz	w24, LBB0_15
LBB0_12:
	mov	x0, x22
	bl	_kfree
LBB0_13:
Lloh27:
	adrp	x0, _cpufreq_governor_mutex@GOTPAGE
Lloh28:
	ldr	x0, [x0, _cpufreq_governor_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x19
	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_15:
	mov	x0, x20
	bl	___find_governor
	mov	x23, x0
	mov	x0, x22
	bl	_kfree
	cbnz	x23, LBB0_7
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cpufreq_driver,8,3             ; @cpufreq_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"performance"

	.comm	_CPUFREQ_NAME_LEN,4,2           ; @CPUFREQ_NAME_LEN
	.comm	_CPUFREQ_POLICY_PERFORMANCE,4,2 ; @CPUFREQ_POLICY_PERFORMANCE
l_.str.1:                               ; @.str.1
	.asciz	"powersave"

	.comm	_CPUFREQ_POLICY_POWERSAVE,4,2   ; @CPUFREQ_POLICY_POWERSAVE
	.comm	_cpufreq_governor_mutex,4,2     ; @cpufreq_governor_mutex
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"cpufreq_%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.no_dead_strip	_cpufreq_parse_governor
.subsections_via_symbols
