	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn_decode_acpi
_pn_decode_acpi:                        ## @pn_decode_acpi
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_POWERNOW_MAX_STATES@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%r14), %eax
	movl	%eax, -68(%rbp)
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	leaq	-68(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_CPUFREQ_DRV_SETTINGS
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	leaq	-116(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_CPUFREQ_DRV_TYPE
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_38
## %bb.6:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_CPUFREQ_FLAG_INFO_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -116(%rbp)
	je	LBB0_3
## %bb.8:
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_device_get_softc
	movq	%rax, %r12
	leaq	-64(%rbp), %rsi
	movl	$-2147483647, %edi              ## imm = 0x80000001
	callq	_do_cpuid
	movl	$4095, %eax                     ## imm = 0xFFF
	andl	-64(%rbp), %eax
	cmpl	$1888, %eax                     ## imm = 0x760
	jne	LBB0_10
## %bb.9:
	movq	_A0_ERRATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_10:
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	movq	$0, 48(%r12)
	cmpl	$0, -68(%rbp)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_26
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%r15d, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	addq	16(%r12), %rdi
	leaq	-112(%rbp), %rsi
	movl	$24, %edx
	callq	_memcpy
	incl	%r14d
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	movslq	-68(%rbp), %rax
	cmpq	%rax, %r13
	jge	LBB0_27
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movq	%r13, %r15
	shlq	$4, %r15
	movq	8(%rbx,%r15), %rax
	movq	_PX_SPEC_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$129, %eax
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rbx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ACPI_PN7_CTRL_TO_FID
	movq	%rax, -112(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %r12
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	callq	_ACPI_PN7_CTRL_TO_VID
	movl	%eax, -96(%rbp)
	movq	_A0_ERRATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_pn7_fid_to_mult@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-112(%rbp), %rcx
	movslq	(%rax,%rcx,4), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	cmpl	$5, %eax
	je	LBB0_15
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ACPI_PN8_CTRL_TO_FID
	movq	%rax, -112(%rbp)
	movq	%rbx, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	callq	_ACPI_PN8_CTRL_TO_VID
	movl	%eax, -96(%rbp)
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	imull	$1000, (%rbx,%r15), %ecx        ## imm = 0x3E8
	movl	%ecx, -104(%rbp)
	movl	4(%rbx,%r15), %eax
	movl	%eax, -100(%rbp)
	movl	%r14d, %r15d
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r14d, %r15d
	movq	16(%r12), %rdi
	leal	-1(%r14), %eax
	leaq	(%rax,%rax,2), %rdx
	cmpl	%ecx, 8(%rdi,%rdx,8)
	jge	LBB0_13
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	(,%r15,8), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,8), %rsi
	addq	%rbx, %rdi
	movl	$24, %edx
	callq	_memcpy
	cmpq	$2, %r15
	jb	LBB0_12
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	16(%r12), %rdi
	leal	-2(%r15), %eax
	leaq	(%rax,%rax,2), %rcx
	movl	8(%rdi,%rcx,8), %ecx
	decq	%r15
	addq	$-24, %rbx
	cmpl	-104(%rbp), %ecx
	jl	LBB0_24
	jmp	LBB0_13
LBB0_26:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_27:
	movl	%r14d, 8(%r12)
	movq	16(%r12), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -96(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	_MSR_AMDK7_FIDVID_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movl	%eax, %ebx
	movl	4(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_31
## %bb.28:
	cmpl	$129, %eax
	movq	-128(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_35
## %bb.29:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_ACPI_PN7_CTRL_TO_SGTC
	movq	%rax, 48(%r12)
	movl	%ebx, %edi
	callq	_PN7_STA_MFID
	cmpq	-112(%rbp), %rax
	jne	LBB0_36
## %bb.30:
	movq	%rax, %rcx
	movslq	-104(%rbp), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %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)
	jmp	LBB0_34
LBB0_31:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ACPI_PN8_CTRL_TO_VST
	movl	%eax, 44(%r12)
	movq	%rbx, %rdi
	callq	_ACPI_PN8_CTRL_TO_MVS
	movl	%eax, 40(%r12)
	movq	%rbx, %rdi
	callq	_ACPI_PN8_CTRL_TO_PLL
	movl	%eax, 36(%r12)
	movq	%rbx, %rdi
	callq	_ACPI_PN8_CTRL_TO_RVO
	movl	%eax, 32(%r12)
	movq	%rbx, %rdi
	callq	_ACPI_PN8_CTRL_TO_IRT
	movl	%eax, 28(%r12)
	movl	$0, 24(%r12)
	movl	8(%r12), %eax
	cmpl	$2, %eax
	movq	-128(%rbp), %r15                ## 8-byte Reload
	jl	LBB0_33
## %bb.32:
	movq	16(%r12), %rcx
	addl	$-2, %eax
	leaq	(%rax,%rax,2), %rax
	cmpq	$7, (%rcx,%rax,8)
	jbe	LBB0_37
LBB0_33:
	movslq	-104(%rbp), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movq	_pn8_fid_to_mult@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-112(%rbp), %rsi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rcx,%rsi,4)
LBB0_34:
	movl	%eax, 12(%r12)
LBB0_35:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_36:
	leaq	L_.str(%rip), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	callq	_device_printf
LBB0_37:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POWERNOW_MAX_STATES,4,2        ## @POWERNOW_MAX_STATES
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_CPUFREQ_FLAG_INFO_ONLY,4,2     ## @CPUFREQ_FLAG_INFO_ONLY
	.comm	_A0_ERRATA,4,2                  ## @A0_ERRATA
	.comm	_PX_SPEC_CONTROL,8,3            ## @PX_SPEC_CONTROL
	.comm	_pn7_fid_to_mult,8,3            ## @pn7_fid_to_mult
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ## @MSR_AMDK7_FIDVID_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACPI MAX frequency not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pn8_fid_to_mult,8,3            ## @pn8_fid_to_mult
	.no_dead_strip	_pn_decode_acpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn_decode_acpi
_pn_decode_acpi:                        ; @pn_decode_acpi
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x19, x1
	mov	x20, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _POWERNOW_MAX_STATES@GOTPAGE
Lloh4:
	ldr	x12, [x12, _POWERNOW_MAX_STATES@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x12]
	stur	w8, [x29, #-132]
	cbz	x1, LBB0_3
; %bb.1:
	sub	x2, x29, #132
	mov	x0, x19
	mov	x1, x21
	bl	_CPUFREQ_DRV_SETTINGS
	cbnz	w0, LBB0_3
; %bb.2:
	sub	x1, x29, #136
	mov	x0, x19
	bl	_CPUFREQ_DRV_TYPE
	cbz	w0, LBB0_7
LBB0_3:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	mov	sp, x23
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.6:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldur	w8, [x29, #-136]
Lloh12:
	adrp	x9, _CPUFREQ_FLAG_INFO_ONLY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CPUFREQ_FLAG_INFO_ONLY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.8:
	mov	x0, x20
	bl	_device_get_softc
	mov	x19, x0
	sub	x1, x29, #104
	mov	w0, #-2147483647
	bl	_do_cpuid
	ldur	w8, [x29, #-104]
	and	w8, w8, #0xfff
	cmp	w8, #1888
	b.ne	LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _A0_ERRATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _A0_ERRATA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	str	xzr, [x19, #48]
	ldur	w8, [x29, #-132]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.11:
	mov	x26, #0
	mov	w25, #0
	mov	w24, #24
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w28, #0
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #16]
	smaddl	x0, w28, w24, x8
	sub	x1, x29, #128
	mov	w2, #24
	bl	_memcpy
	add	w25, w25, #1
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, #1
	ldursw	x8, [x29, #-132]
	cmp	x26, x8
	b.ge	LBB0_26
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	add	x8, x21, x26, lsl #4
	ldr	x8, [x8, #8]
Lloh18:
	adrp	x9, _PX_SPEC_CONTROL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PX_SPEC_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x22, [x8, x9, lsl #3]
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, #129
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	bl	_ACPI_PN7_CTRL_TO_FID
	stur	x0, [x29, #-128]
	mov	x0, x22
	bl	_ACPI_PN7_CTRL_TO_VID
	stur	w0, [x29, #-112]
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _A0_ERRATA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _A0_ERRATA@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh24:
	adrp	x8, _pn7_fid_to_mult@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pn7_fid_to_mult@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldur	x9, [x29, #-128]
	ldrsw	x8, [x8, x9, lsl #2]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	mov	w10, #10
	msub	w8, w9, w10, w8
	cmp	w8, #5
	b.eq	LBB0_14
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	bl	_ACPI_PN8_CTRL_TO_FID
	stur	x0, [x29, #-128]
	mov	x0, x22
	bl	_ACPI_PN8_CTRL_TO_VID
	stur	w0, [x29, #-112]
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x21, x26, lsl #4
	ldp	w9, w8, [x8]
	mov	w10, #1000
	mul	w10, w9, w10
	stp	w10, w8, [x29, #-120]
	mov	x28, x25
	subs	w8, w25, #1
	b.lt	LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w28, w25
	ldr	x9, [x19, #16]
	umaddl	x11, w8, w24, x9
	ldr	w11, [x11, #8]
	cmp	w11, w10
	b.ge	LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x10, x28, x28, lsl #1
	lsl	x27, x10, #3
LBB0_23:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x1, x8, x24, x9
	add	x0, x9, x27
	mov	w2, #24
	bl	_memcpy
	cmp	x28, #2
	b.lo	LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	ldur	w10, [x29, #-120]
	ldr	x9, [x19, #16]
	sub	w8, w28, #2
	umaddl	x11, w8, w24, x9
	ldr	w11, [x11, #8]
	sub	x28, x28, #1
	sub	x27, x27, #24
	cmp	w11, w10
	b.lt	LBB0_23
	b	LBB0_13
LBB0_25:
	mov	x22, #0
	mov	w25, #0
LBB0_26:
	str	w25, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	stur	q0, [x29, #-128]
	stur	x9, [x29, #-112]
Lloh27:
	adrp	x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSR_AMDK7_FIDVID_STATUS@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_rdmsr
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_30
; %bb.27:
	cmp	w8, #129
	b.ne	LBB0_34
; %bb.28:
	mov	x21, x0
	mov	x0, x22
	bl	_ACPI_PN7_CTRL_TO_SGTC
	str	x0, [x19, #48]
	mov	x0, x21
	bl	_PN7_STA_MFID
	ldur	x9, [x29, #-128]
	cmp	x0, x9
	b.ne	LBB0_35
; %bb.29:
	mov	x8, x0
	mov	w0, #0
	ldursw	x9, [x29, #-120]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
Lloh30:
	adrp	x11, _pn7_fid_to_mult@GOTPAGE
Lloh31:
	ldr	x11, [x11, _pn7_fid_to_mult@GOTPAGEOFF]
	add	w9, w9, w10
Lloh32:
	ldr	x10, [x11]
	ldr	w8, [x10, x8, lsl #2]
	sdiv	w8, w9, w8
	b	LBB0_33
LBB0_30:
	mov	x0, x22
	bl	_ACPI_PN8_CTRL_TO_VST
	str	w0, [x19, #44]
	mov	x0, x22
	bl	_ACPI_PN8_CTRL_TO_MVS
	str	w0, [x19, #40]
	mov	x0, x22
	bl	_ACPI_PN8_CTRL_TO_PLL
	str	w0, [x19, #36]
	mov	x0, x22
	bl	_ACPI_PN8_CTRL_TO_RVO
	str	w0, [x19, #32]
	mov	x0, x22
	bl	_ACPI_PN8_CTRL_TO_IRT
	stp	wzr, w0, [x19, #24]
	ldr	w8, [x19, #8]
	subs	w8, w8, #2
	b.lt	LBB0_32
; %bb.31:
	ldr	x9, [x19, #16]
	mov	w10, #24
	umull	x8, w8, w10
	ldr	x8, [x9, x8]
	cmp	x8, #7
	b.ls	LBB0_36
LBB0_32:
	mov	w0, #0
	ldursw	x8, [x29, #-120]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
Lloh33:
	adrp	x9, _pn8_fid_to_mult@GOTPAGE
Lloh34:
	ldr	x9, [x9, _pn8_fid_to_mult@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	ldur	x10, [x29, #-128]
	ldr	w9, [x9, x10, lsl #2]
	sdiv	w8, w8, w9
LBB0_33:
	str	w8, [x19, #12]
	b	LBB0_5
LBB0_34:
	mov	w0, #0
	b	LBB0_5
LBB0_35:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_device_printf
LBB0_36:
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_POWERNOW_MAX_STATES,4,2        ; @POWERNOW_MAX_STATES
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_CPUFREQ_FLAG_INFO_ONLY,4,2     ; @CPUFREQ_FLAG_INFO_ONLY
	.comm	_A0_ERRATA,4,2                  ; @A0_ERRATA
	.comm	_PX_SPEC_CONTROL,8,3            ; @PX_SPEC_CONTROL
	.comm	_pn7_fid_to_mult,8,3            ; @pn7_fid_to_mult
	.comm	_MSR_AMDK7_FIDVID_STATUS,4,2    ; @MSR_AMDK7_FIDVID_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACPI MAX frequency not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pn8_fid_to_mult,8,3            ; @pn8_fid_to_mult
	.no_dead_strip	_pn_decode_acpi
.subsections_via_symbols
