	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_get
_pn_get:                                ## @pn_get
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_PENDING_STUCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_4:
	movq	_MSR_AMDK7_FIDVID_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movl	%eax, %r13d
	movl	4(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.7:
	movl	%r13d, %edi
	callq	_PN7_STA_CFID
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_PN7_STA_CVID
	jmp	LBB0_9
LBB0_8:
	movl	%r13d, %edi
	callq	_PN8_STA_CFID
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_PN8_STA_CVID
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
LBB0_9:
	movl	8(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.10:
	movq	24(%r15), %rcx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rsi
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$24, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%rcx,%rdx), %rbx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	8(%rcx,%rdx), %rax
	jne	LBB0_13
## %bb.17:
	movslq	16(%rcx,%rdx), %rsi
	imulq	$274877907, %rsi, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$38, %rsi
	addl	%edi, %esi
	movl	%esi, (%r12)
	movl	20(%rcx,%rdx), %ecx
	movl	%ecx, 20(%r12)
	movl	$200, 4(%r12)
	movq	16(%r15), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 16(%r12)
	movq	%r14, 8(%r12)
	jmp	LBB0_15
LBB0_14:
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$24, %edx
	callq	_memset
	movq	$0, 8(%r12)
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PENDING_STUCK,4,2              ## @PENDING_STUCK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ## @MSR_AMDK7_FIDVID_STATUS
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ## @CPUFREQ_VAL_UNKNOWN
	.no_dead_strip	_pn_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_get
_pn_get:                                ; @pn_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_device_get_softc
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PENDING_STUCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PENDING_STUCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_16
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	b	LBB0_16
LBB0_4:
	mov	x21, x0
Lloh9:
	adrp	x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_rdmsr
	mov	x23, x0
	ldr	w8, [x21, #4]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x23
	bl	_PN7_STA_CFID
	mov	x22, x0
	mov	x0, x23
	bl	_PN7_STA_CVID
	b	LBB0_9
LBB0_7:
	mov	x0, x23
	bl	_PN8_STA_CFID
	mov	x22, x0
	mov	x0, x23
	bl	_PN8_STA_CVID
	b	LBB0_9
LBB0_8:
	mov	x22, #0
	mov	x0, #0
LBB0_9:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:
	ldr	x9, [x21, #24]
	add	x9, x9, #16
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-16]
	cmp	x22, x10
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	x10, [x9, #-8]
	cmp	x0, x10
	b.ne	LBB0_11
; %bb.14:
	mov	w8, #0
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	ldp	w11, w9, [x9]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	mul	x10, x11, x10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	str	w9, [x19, #20]
	mov	w9, #200
	stp	w10, w9, [x19]
	ldr	x9, [x21, #16]
	ldr	w9, [x9, x0, lsl #2]
	str	w9, [x19, #16]
	str	x20, [x19, #8]
	b	LBB0_16
LBB0_15:
Lloh12:
	adrp	x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #24
	bl	_memset
	mov	w8, #0
	str	xzr, [x19, #8]
LBB0_16:
	mov	x0, x8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PENDING_STUCK,4,2              ; @PENDING_STUCK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ; @MSR_AMDK7_FIDVID_STATUS
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.no_dead_strip	_pn_get
.subsections_via_symbols
