	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function est_get_info
_est_get_info:                          ## @est_get_info
	.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
	movl	%edi, %r12d
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	_MSR_PERF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movl	%eax, %r14d
	leaq	4(%rbx), %r13
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_est_table_info
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%r12d, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_est_acpi_info
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_est_msr_info
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_cpu_vendor@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_PERF_STATUS,4,2            ## @MSR_PERF_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"est: CPU supports Enhanced Speedstep, but is not recognized.\nest: cpu_vendor %s, msr %0jx\n"

	.comm	_cpu_vendor,8,3                 ## @cpu_vendor
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_est_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function est_get_info
_est_get_info:                          ; @est_get_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_device_get_softc
	mov	x21, x0
Lloh0:
	adrp	x8, _MSR_PERF_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_PERF_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rdmsr
	mov	x19, x0
	add	x22, x21, #4
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_est_table_info
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_est_acpi_info
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_est_msr_info
	cbz	w0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _cpu_vendor@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_vendor@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_printf
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_PERF_STATUS,4,2            ; @MSR_PERF_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"est: CPU supports Enhanced Speedstep, but is not recognized.\nest: cpu_vendor %s, msr %0jx\n"

	.comm	_cpu_vendor,8,3                 ; @cpu_vendor
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_est_get_info
.subsections_via_symbols
