	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function est_probe
_est_probe:                             ## @est_probe
	.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
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_resource_disabled
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_2:
	movq	%r14, %rdi
	callq	_device_get_parent
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	$-1, %edx
	callq	_device_find_child
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_device_is_attached
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_CPUFREQ_DRV_TYPE
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_CPUFREQ_FLAG_INFO_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_1
LBB0_6:
	movq	_MSR_MISC_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rdmsr
	movq	_MSR_SS_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%eax, %esi
	jne	LBB0_11
## %bb.7:
	movl	(%rbx), %edi
	orl	%eax, %esi
	callq	_wrmsr
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_printf
LBB0_9:
	movl	(%rbx), %edi
	callq	_rdmsr
	testl	%eax, (%r15)
	je	LBB0_10
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_set_desc
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_printf
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"est"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"acpi_perf"

	.comm	_CPUFREQ_FLAG_INFO_ONLY,4,2     ## @CPUFREQ_FLAG_INFO_ONLY
	.comm	_MSR_MISC_ENABLE,4,2            ## @MSR_MISC_ENABLE
	.comm	_MSR_SS_ENABLE,4,2              ## @MSR_SS_ENABLE
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.2:                               ## @.str.2
	.asciz	"enabling SpeedStep\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to enable SpeedStep\n"

L_.str.4:                               ## @.str.4
	.asciz	"Enhanced SpeedStep Frequency Control"

	.no_dead_strip	_est_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function est_probe
_est_probe:                             ; @est_probe
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_resource_disabled
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_2:
	mov	x0, x19
	bl	_device_get_parent
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #-1
	bl	_device_find_child
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	bl	_device_is_attached
	cbz	x0, LBB0_6
; %bb.4:
	add	x1, sp, #12
	mov	x0, x20
	bl	_CPUFREQ_DRV_TYPE
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x9, _CPUFREQ_FLAG_INFO_ONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CPUFREQ_FLAG_INFO_ONLY@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
LBB0_6:
Lloh10:
	adrp	x20, _MSR_MISC_ENABLE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _MSR_MISC_ENABLE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rdmsr
Lloh12:
	adrp	x21, _MSR_SS_ENABLE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MSR_SS_ENABLE@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w0
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x20]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_wrmsr
Lloh14:
	adrp	x8, _bootverbose@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_9:
	ldr	w0, [x20]
	bl	_rdmsr
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_12
LBB0_10:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
	mov	w0, #0
LBB0_11:
	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
LBB0_12:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"est"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"acpi_perf"

	.comm	_CPUFREQ_FLAG_INFO_ONLY,4,2     ; @CPUFREQ_FLAG_INFO_ONLY
	.comm	_MSR_MISC_ENABLE,4,2            ; @MSR_MISC_ENABLE
	.comm	_MSR_SS_ENABLE,4,2              ; @MSR_SS_ENABLE
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.2:                               ; @.str.2
	.asciz	"enabling SpeedStep\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to enable SpeedStep\n"

l_.str.4:                               ; @.str.4
	.asciz	"Enhanced SpeedStep Frequency Control"

	.no_dead_strip	_est_probe
.subsections_via_symbols
