	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_decode_pst
_pn_decode_pst:                         ## @pn_decode_pst
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_device_get_softc
	movq	%rax, %r15
	leaq	-64(%rbp), %rsi
	movl	$-2147483647, %edi              ## imm = 0x80000001
	callq	_do_cpuid
	movl	-64(%rbp), %r12d
	movl	%r12d, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	cmpl	$1888, %eax                     ## imm = 0x760
	jne	LBB0_2
## %bb.1:
	movq	_A0_ERRATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%r15)
LBB0_2:
	movq	_MSR_AMDK7_FIDVID_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movl	%eax, %ebx
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_28
## %bb.4:
	movl	%ebx, %edi
	callq	_PN7_STA_MFID
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PN7_STA_SVID
	jmp	LBB0_6
LBB0_5:
	movl	%ebx, %edi
	callq	_PN8_STA_MFID
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PN8_STA_MVID
LBB0_6:
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_bootverbose@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_device_printf
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_device_printf
	cmpl	$129, (%r15)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_device_printf
LBB0_8:
	movq	_PSB_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PSB_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PSB_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PSB_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PSB_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_bios_sigsearch
	testq	%rax, %rax
	je	LBB0_28
## %bb.9:
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	callq	_BIOS_PADDRTOVADDR
	movq	%rax, %r14
	movl	(%rax), %eax
	cmpl	$18, %eax
	je	LBB0_15
## %bb.10:
	cmpl	$20, %eax
	jne	LBB0_28
## %bb.11:
	cmpl	$128, (%r15)
	jne	LBB0_12
## %bb.13:
	movl	4(%r14), %eax
	movl	%eax, 4(%r15)
	movl	8(%r14), %edi
	callq	_PN8_PSB_TO_RVO
	movl	%eax, 32(%r15)
	movl	8(%r14), %edi
	callq	_PN8_PSB_TO_IRT
	movl	%eax, 28(%r15)
	movl	8(%r14), %edi
	callq	_PN8_PSB_TO_MVS
	movl	%eax, 24(%r15)
	movl	8(%r14), %edi
	callq	_PN8_PSB_TO_BATT
	movl	%eax, 20(%r15)
	cmpq	$0, (%r13)
	je	LBB0_17
## %bb.14:
	movl	4(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movl	32(%r15), %edx
	movl	28(%r15), %ecx
	movl	20(%r15), %r9d
	movl	24(%r15), %r8d
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_17
LBB0_15:
	cmpl	$129, (%r15)
	jne	LBB0_12
## %bb.16:
	movl	12(%r15), %eax
	movl	4(%r14), %ecx
	imull	%eax, %ecx
	imull	$100, %eax, %eax
	cmpl	%eax, %ecx
	cmovlel	%eax, %ecx
	movl	%ecx, 8(%r15)
LBB0_17:
	addq	$48, %r14
	movl	$-200, %ebx
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%r13), %r12d
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	cmpl	4(%r13), %eax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	8(%r13), %eax
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	12(%r13), %edx
	movl	%edx, 16(%r15)
	cmpl	$129, (%r15)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	12(%r15), %eax
	subl	16(%r13), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	cmpl	$5, %ecx
	ja	LBB0_25
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movslq	12(%r13), %rax
	leaq	80(%r13,%rax,8), %r13
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r14), %edi
	callq	_cpuid_is_k7
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_18 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_18
LBB0_27:
	leaq	L_.str.7(%rip), %rsi
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_28:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_32
## %bb.31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_23:
	addq	$80, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_decode_pst
	jmp	LBB0_30
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_A0_ERRATA,4,2                  ## @A0_ERRATA
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ## @MSR_AMDK7_FIDVID_STATUS
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STATUS: 0x%jx\n"

L_.str.1:                               ## @.str.1
	.asciz	"STATUS: maxfid: 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"STATUS: %s: 0x%02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"startvid"

L_.str.4:                               ## @.str.4
	.asciz	"maxvid"

	.comm	_PSB_START,4,2                  ## @PSB_START
	.comm	_PSB_SIG,4,2                    ## @PSB_SIG
	.comm	_PSB_LEN,4,2                    ## @PSB_LEN
	.comm	_PSB_STEP,4,2                   ## @PSB_STEP
	.comm	_PSB_OFF,4,2                    ## @PSB_OFF
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.5:                               ## @.str.5
	.asciz	"PSB: VST: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"PSB: RVO %x IRT %d MVS %d BATT %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"no match for extended cpuid %.3x\n"

	.no_dead_strip	_pn_decode_pst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_decode_pst
_pn_decode_pst:                         ; @pn_decode_pst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_device_get_softc
	mov	x20, x0
	add	x1, sp, #40
	mov	w0, #-2147483647
	bl	_do_cpuid
	ldr	w24, [sp, #40]
	and	w8, w24, #0xfff
	cmp	w8, #1888
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _A0_ERRATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A0_ERRATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #36]
	orr	w8, w9, w8
	str	w8, [x20, #36]
LBB0_2:
Lloh6:
	adrp	x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_rdmsr
	mov	x23, x0
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_27
; %bb.4:
	mov	x0, x23
	bl	_PN7_STA_MFID
	mov	x21, x0
	mov	x0, x23
	bl	_PN7_STA_SVID
	b	LBB0_6
LBB0_5:
	mov	x0, x23
	bl	_PN8_STA_MFID
	mov	x21, x0
	mov	x0, x23
	bl	_PN8_STA_MVID
LBB0_6:
	mov	x22, x0
Lloh9:
	adrp	x25, _bootverbose@GOTPAGE
Lloh10:
	ldr	x25, [x25, _bootverbose@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_8
; %bb.7:
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldr	w8, [x20]
Lloh15:
	adrp	x9, l_.str.4@PAGE
Lloh16:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh17:
	adrp	x10, l_.str.3@PAGE
Lloh18:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, #129
	csel	x8, x10, x9, eq
	stp	x8, x22, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_8:
Lloh21:
	adrp	x8, _PSB_START@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PSB_START@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _PSB_SIG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PSB_SIG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _PSB_LEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PSB_LEN@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _PSB_STEP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PSB_STEP@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x8, _PSB_OFF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PSB_OFF@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	bl	_bios_sigsearch
	cbz	x0, LBB0_27
; %bb.9:
	bl	_BIOS_PADDRTOVADDR
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #18
	b.eq	LBB0_14
; %bb.10:
	cmp	w8, #20
	b.ne	LBB0_27
; %bb.11:
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_25
; %bb.12:
	ldr	w8, [x23, #4]
	str	w8, [x20, #4]
	ldr	w0, [x23, #8]
	bl	_PN8_PSB_TO_RVO
	str	w0, [x20, #32]
	ldr	w0, [x23, #8]
	bl	_PN8_PSB_TO_IRT
	str	w0, [x20, #28]
	ldr	w0, [x23, #8]
	bl	_PN8_PSB_TO_MVS
	str	w0, [x20, #24]
	ldr	w0, [x23, #8]
	bl	_PN8_PSB_TO_BATT
	str	w0, [x20, #20]
	ldr	x8, [x25]
	cbz	x8, LBB0_16
; %bb.13:
	ldr	w8, [x23, #4]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldp	w9, w8, [x20, #28]
	ldp	w11, w10, [x20, #20]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	b	LBB0_16
LBB0_14:
	ldr	w8, [x20]
	cmp	w8, #129
	b.ne	LBB0_25
; %bb.15:
	ldr	w8, [x23, #4]
	ldr	w9, [x20, #12]
	mul	w8, w9, w8
	mov	w10, #100
	mul	w9, w9, w10
	cmp	w8, w9
	csel	w8, w8, w9, gt
	str	w8, [x20, #8]
LBB0_16:
	add	x23, x23, #48
	mov	w25, #-200
	mov	x26, x23
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldrsw	x8, [x26, #12]
	add	x8, x26, x8, lsl #3
	add	x26, x8, #80
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x23]
	bl	_cpuid_is_k7
	cmp	x0, #0
	ccmp	w25, #0, #4, ne
	add	w25, w25, #1
	b.eq	LBB0_26
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	cmp	w24, w8
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x26, #4]
	cmp	w21, w8
	b.ne	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x26, #8]
	cmp	w22, w8
	b.ne	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w2, [x26, #12]
	str	w2, [x20, #16]
	ldr	w8, [x20]
	cmp	w8, #129
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x20, #12]
	ldr	w9, [x26, #16]
	subs	w8, w8, w9
	cneg	w8, w8, mi
	cmp	w8, #5
	b.hi	LBB0_18
LBB0_24:
	add	x1, x26, #80
	mov	x0, x20
	bl	_decode_pst
	b	LBB0_29
LBB0_25:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
	str	x24, [sp]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_27:
Lloh44:
	adrp	x8, _ENODEV@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x8]
LBB0_29:
	ldr	x8, [sp, #56]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_A0_ERRATA,4,2                  ; @A0_ERRATA
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ; @MSR_AMDK7_FIDVID_STATUS
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STATUS: 0x%jx\n"

l_.str.1:                               ; @.str.1
	.asciz	"STATUS: maxfid: 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"STATUS: %s: 0x%02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"startvid"

l_.str.4:                               ; @.str.4
	.asciz	"maxvid"

	.comm	_PSB_START,4,2                  ; @PSB_START
	.comm	_PSB_SIG,4,2                    ; @PSB_SIG
	.comm	_PSB_LEN,4,2                    ; @PSB_LEN
	.comm	_PSB_STEP,4,2                   ; @PSB_STEP
	.comm	_PSB_OFF,4,2                    ; @PSB_OFF
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.5:                               ; @.str.5
	.asciz	"PSB: VST: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"PSB: RVO %x IRT %d MVS %d BATT %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"no match for extended cpuid %.3x\n"

	.no_dead_strip	_pn_decode_pst
.subsections_via_symbols
