	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_probe
_pn_probe:                              ## @pn_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r15
	movq	$0, 16(%rax)
	movq	_MSR_AMDK7_FIDVID_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_cpu_get_pcpu
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	(%rax), %edi
	leaq	-36(%rbp), %rsi
	callq	_cpu_est_clockrate
	movq	_cpu_id@GOTPCREL(%rip), %rcx
	movl	$3840, %eax                     ## imm = 0xF00
	andl	(%rcx), %eax
	cmpl	$3840, %eax                     ## imm = 0xF00
	je	LBB0_6
## %bb.2:
	cmpl	$1536, %eax                     ## imm = 0x600
	jne	LBB0_10
## %bb.3:
	movl	%ebx, %edi
	callq	_PN7_STA_SFID
	movl	%ebx, %edi
	callq	_PN7_STA_MFID
	movl	%ebx, %edi
	callq	_PN7_STA_CFID
	movq	%rax, %rcx
	movq	_PN7_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movslq	-36(%rbp), %rax
	imulq	$351843721, %rax, %rax          ## imm = 0x14F8B589
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$45, %rax
	addl	%edx, %eax
	movq	_pn7_fid_to_mult@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rsi,%rcx,4)
	movl	%eax, (%r15)
	movl	%ebx, %edi
	callq	_PN7_STA_SFID
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_PN7_STA_MFID
	cmpq	%rax, %r12
	jne	LBB0_4
## %bb.5:
	movq	_pn7_desktop_vid_to_volts@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_6:
	movl	%ebx, %edi
	callq	_PN8_STA_SFID
	movl	%ebx, %edi
	callq	_PN8_STA_MFID
	movl	%ebx, %edi
	callq	_PN8_STA_CFID
	movq	%rax, %rcx
	movq	_PN8_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_pn8_vid_to_volts@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movslq	-36(%rbp), %rax
	imulq	$351843721, %rax, %rax          ## imm = 0x14F8B589
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$45, %rax
	addl	%edx, %eax
	movq	_pn8_fid_to_mult@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rsi,%rcx,4)
	movl	%eax, (%r15)
	movl	%ebx, %edi
	callq	_PN8_STA_SFID
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_PN8_STA_MFID
	cmpq	%rax, %r15
	jne	LBB0_7
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movq	_pn7_mobile_vid_to_volts@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movl	%r14d, %edi
	callq	_device_set_desc
	xorl	%eax, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ## @MSR_AMDK7_FIDVID_STATUS
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_cpu_id,4,2                     ## @cpu_id
	.comm	_PN7_TYPE,4,2                   ## @PN7_TYPE
	.comm	_pn7_fid_to_mult,8,3            ## @pn7_fid_to_mult
	.comm	_pn7_mobile_vid_to_volts,4,2    ## @pn7_mobile_vid_to_volts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PowerNow! K7"

	.comm	_pn7_desktop_vid_to_volts,4,2   ## @pn7_desktop_vid_to_volts
L_.str.1:                               ## @.str.1
	.asciz	"Cool`n'Quiet K7"

	.comm	_PN8_TYPE,4,2                   ## @PN8_TYPE
	.comm	_pn8_vid_to_volts,4,2           ## @pn8_vid_to_volts
	.comm	_pn8_fid_to_mult,8,3            ## @pn8_fid_to_mult
L_.str.2:                               ## @.str.2
	.asciz	"PowerNow! K8"

L_.str.3:                               ## @.str.3
	.asciz	"Cool`n'Quiet K8"

	.no_dead_strip	_pn_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_probe
_pn_probe:                              ; @pn_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
	bl	_device_get_softc
	mov	x20, x0
	str	xzr, [x0, #16]
Lloh0:
	adrp	x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rdmsr
	mov	x21, x0
	mov	x0, x19
	bl	_cpu_get_pcpu
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x0]
	add	x1, sp, #12
	bl	_cpu_est_clockrate
Lloh3:
	adrp	x8, _cpu_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_id@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, #0xf00
	cmp	w8, #3840
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #1536
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_PN7_STA_SFID
	mov	x0, x21
	bl	_PN7_STA_MFID
	mov	x0, x21
	bl	_PN7_STA_CFID
Lloh6:
	adrp	x8, _PN7_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PN7_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldrsw	x8, [sp, #12]
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #45
Lloh9:
	adrp	x10, _pn7_fid_to_mult@GOTPAGE
Lloh10:
	ldr	x10, [x10, _pn7_fid_to_mult@GOTPAGEOFF]
	add	w8, w8, w9
Lloh11:
	ldr	x9, [x10]
	ldr	w9, [x9, x0, lsl #2]
	sdiv	w8, w8, w9
	str	w8, [x20]
	mov	x0, x21
	bl	_PN7_STA_SFID
	mov	x22, x0
	mov	x0, x21
	bl	_PN7_STA_MFID
	cmp	x22, x0
	b.ne	LBB0_8
; %bb.4:
Lloh12:
	adrp	x8, _pn7_desktop_vid_to_volts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pn7_desktop_vid_to_volts@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_6:
	mov	x0, x21
	bl	_PN8_STA_SFID
	mov	x0, x21
	bl	_PN8_STA_MFID
	mov	x0, x21
	bl	_PN8_STA_CFID
Lloh20:
	adrp	x8, _PN8_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PN8_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _pn8_vid_to_volts@GOTPAGE
Lloh24:
	ldr	x9, [x9, _pn8_vid_to_volts@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	ldrsw	x8, [sp, #12]
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #45
Lloh26:
	adrp	x10, _pn8_fid_to_mult@GOTPAGE
Lloh27:
	ldr	x10, [x10, _pn8_fid_to_mult@GOTPAGEOFF]
	add	w8, w8, w9
Lloh28:
	ldr	x9, [x10]
	ldr	w9, [x9, x0, lsl #2]
	sdiv	w8, w8, w9
	str	w8, [x20]
	mov	x0, x21
	bl	_PN8_STA_SFID
	mov	x20, x0
	mov	x0, x21
	bl	_PN8_STA_MFID
	cmp	x20, x0
	b.ne	LBB0_9
; %bb.7:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh31:
	adrp	x8, _pn7_mobile_vid_to_volts@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pn7_mobile_vid_to_volts@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ; @MSR_AMDK7_FIDVID_STATUS
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_cpu_id,4,2                     ; @cpu_id
	.comm	_PN7_TYPE,4,2                   ; @PN7_TYPE
	.comm	_pn7_fid_to_mult,8,3            ; @pn7_fid_to_mult
	.comm	_pn7_mobile_vid_to_volts,4,2    ; @pn7_mobile_vid_to_volts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PowerNow! K7"

	.comm	_pn7_desktop_vid_to_volts,4,2   ; @pn7_desktop_vid_to_volts
l_.str.1:                               ; @.str.1
	.asciz	"Cool`n'Quiet K7"

	.comm	_PN8_TYPE,4,2                   ; @PN8_TYPE
	.comm	_pn8_vid_to_volts,4,2           ; @pn8_vid_to_volts
	.comm	_pn8_fid_to_mult,8,3            ; @pn8_fid_to_mult
l_.str.2:                               ; @.str.2
	.asciz	"PowerNow! K8"

l_.str.3:                               ; @.str.3
	.asciz	"Cool`n'Quiet K8"

	.no_dead_strip	_pn_probe
.subsections_via_symbols
