	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function est_msr_info
_est_msr_info:                          ## @est_msr_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_msr_info_enabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%edi, %r13d
	movq	_tsc_freq@GOTPCREL(%rip), %rdi
	callq	_atomic_load_acq_64
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	callq	_bus_speed_ok
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	callq	_bus_speed_ok
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	movslq	%r14d, %rax
	imulq	$1125899907, %rax, %r14         ## imm = 0x431BDE83
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$50, %r14
	addl	%eax, %r14d
	movl	%r13d, %edi
	callq	_device_get_softc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$48, %edi
	callq	_malloc
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movl	%r14d, (%rax)
	movl	$0, 4(%rax)
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 16(%r15)
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_device_printf
	movq	(%rbx), %rax
	xorl	%ebx, %ebx
	movq	%rax, 40(%r15)
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$2, (%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msr_info_enabled,4,2           ## @msr_info_enabled
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_tsc_freq,4,2                   ## @tsc_freq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Guessed bus clock (high) of %d MHz\n"

L_.str.1:                               ## @.str.1
	.asciz	"Guessed bus clock (low) of %d MHz\n"

	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_CPUFREQ_VAL_UNKNOWN,8,3        ## @CPUFREQ_VAL_UNKNOWN
L_.str.2:                               ## @.str.2
	.asciz	"Guessed high setting of %d MHz @ %d Mv\n"

L_.str.3:                               ## @.str.3
	.asciz	"Guessed low setting of %d MHz @ %d Mv\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_est_msr_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function est_msr_info
_est_msr_info:                          ; @est_msr_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _msr_info_enabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msr_info_enabled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
Lloh3:
	adrp	x0, _tsc_freq@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tsc_freq@GOTPAGEOFF]
	bl	_atomic_load_acq_64
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_device_printf
	bl	_bus_speed_ok
	cbnz	w0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_device_printf
	bl	_bus_speed_ok
	cbz	w0, LBB0_4
LBB0_3:
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w22, w8
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w22, w8, w9
	mov	x0, x21
	bl	_device_get_softc
	mov	x23, x0
Lloh9:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh11:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #48
	bl	_malloc
	mov	x24, x0
	stp	w22, wzr, [x0]
Lloh18:
	adrp	x25, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x25, [x25, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x0, #16]
	str	xzr, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_device_printf
	ldr	x8, [x25]
	str	x8, [x24, #40]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_device_printf
	mov	w0, #0
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x23]
	str	x24, [x20]
	mov	w8, #2
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
Lloh27:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_msr_info_enabled,4,2           ; @msr_info_enabled
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_tsc_freq,4,2                   ; @tsc_freq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Guessed bus clock (high) of %d MHz\n"

l_.str.1:                               ; @.str.1
	.asciz	"Guessed bus clock (low) of %d MHz\n"

	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_CPUFREQ_VAL_UNKNOWN,8,3        ; @CPUFREQ_VAL_UNKNOWN
l_.str.2:                               ; @.str.2
	.asciz	"Guessed high setting of %d MHz @ %d Mv\n"

l_.str.3:                               ; @.str.3
	.asciz	"Guessed low setting of %d MHz @ %d Mv\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_est_msr_info
.subsections_via_symbols
