	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function polaris10_populate_avfs_parameters
_polaris10_populate_avfs_parameters:    ## @polaris10_populate_avfs_parameters
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r15
	movq	32(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	$0, -32(%rbp)
	cmpl	$0, 12(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	-128(%rbp), %rsi
	callq	_atomctrl_get_avfs_information
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-128(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_polaris10_populate_avfs_parameters.cold.1
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function polaris10_populate_avfs_parameters.cold.1
LCPI1_0:
	.long	3931254227                      ## 0xea522dd3
	.long	353370                          ## 0x5645a
	.long	212894                          ## 0x33f9e
	.long	4294952396                      ## 0xffffc5cc
LCPI1_1:
	.long	4145607124                      ## 0xf718f1d4
	.long	205821                          ## 0x323fd
	.long	123989                          ## 0x1e455
	.long	0                               ## 0x0
LCPI1_2:
	.long	1                               ## 0x1
	.long	4165187179                      ## 0xf843b66b
	.long	367797                          ## 0x59cb5
	.long	4294912127                      ## 0xffff287f
LCPI1_3:
	.long	1                               ## 0x1
	.long	4138738909                      ## 0xf6b024dd
	.long	196702                          ## 0x3005e
	.long	100959                          ## 0x18a5f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_polaris10_populate_avfs_parameters.cold.1: ## @polaris10_populate_avfs_parameters.cold.1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	cmpl	$26607, %ecx                    ## imm = 0x67EF
	je	LBB1_5
## %bb.1:
	cmpl	$26623, %ecx                    ## imm = 0x67FF
	jne	LBB1_12
## %bb.2:
	movl	4(%rax), %r8d
	leal	-207(%r8), %edi
	cmpl	$48, %edi
	ja	LBB1_12
## %bb.3:
	movabsq	$281479271677953, %rsi          ## imm = 0x1000100000001
	btq	%rdi, %rsi
	jae	LBB1_12
## %bb.4:
	movl	$1, (%rbx)
	cmpl	$239, %r8d
	je	LBB1_8
	jmp	LBB1_23
LBB1_5:
	movl	4(%rax), %esi
	cmpl	$224, %esi
	je	LBB1_7
## %bb.6:
	cmpl	$229, %esi
	jne	LBB1_12
LBB1_7:
	movl	$1, (%rbx)
	cmpl	$229, %esi
	jne	LBB1_23
LBB1_8:
	movdqu	4(%rbx), %xmm0
	psubd	LCPI1_0(%rip), %xmm0
	ptest	%xmm0, %xmm0
	jne	LBB1_23
## %bb.9:
	cmpl	$6938, 20(%rbx)                 ## imm = 0x1B1A
	jne	LBB1_23
## %bb.10:
	cmpl	$-787, 24(%rbx)                 ## imm = 0xFCED
	jne	LBB1_23
## %bb.11:
	leaq	24(%rbx), %rax
	movdqa	LCPI1_1(%rip), %xmm0            ## xmm0 = [4145607124,205821,123989,0]
	movdqu	%xmm0, 4(%rbx)
	andl	$0, 20(%rbx)
	pushq	$35
	jmp	LBB1_21
LBB1_12:
	movq	(%rdx), %rsi
	movq	_CHIP_POLARIS12@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB1_14
## %bb.13:
	cmpl	$0, 8(%rdx)
	je	LBB1_20
LBB1_14:
	cmpl	$26591, %ecx                    ## imm = 0x67DF
	je	LBB1_17
## %bb.15:
	cmpl	$28639, %ecx                    ## imm = 0x6FDF
	jne	LBB1_23
## %bb.16:
	movl	4(%rax), %eax
	orl	$16, %eax
	cmpl	$255, %eax
	je	LBB1_19
	jmp	LBB1_23
LBB1_17:
	movl	$-224, %ecx
	addl	4(%rax), %ecx
	cmpl	$15, %ecx
	ja	LBB1_23
## %bb.18:
	movl	$32953, %eax                    ## imm = 0x80B9
	btl	%ecx, %eax
	jae	LBB1_23
LBB1_19:
	movdqa	LCPI1_2(%rip), %xmm0            ## xmm0 = [1,4165187179,367797,4294912127]
	movdqa	%xmm0, (%rbx)
	movabsq	$280525788938240, %rax          ## imm = 0xFF2300000000
	movq	%rax, 16(%rbx)
	leaq	24(%rbx), %rax
	pushq	$88
	jmp	LBB1_21
LBB1_20:
	movdqa	LCPI1_3(%rip), %xmm0            ## xmm0 = [1,4138738909,196702,100959]
	movdqa	%xmm0, (%rbx)
	movabsq	$280173601620757, %rax          ## imm = 0xFED100000315
	movq	%rax, 16(%rbx)
	leaq	24(%rbx), %rax
	pushq	$59
LBB1_21:
	popq	%rcx
	movl	%ecx, (%rax)
LBB1_23:
	movl	28(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	32(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	36(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movl	4(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 40(%rcx)
	movl	8(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 32(%rcx)
	movl	12(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	40(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	8(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	44(%rbx), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	48(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	movabsq	$51539607576, %r15              ## imm = 0xC00000018
	movq	%r15, (%rcx)
	movl	16(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	8(%r14), %rcx
	movq	%rax, 56(%rcx)
	movl	20(%rbx), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	8(%r14), %rcx
	movq	%rax, 48(%rcx)
	movl	24(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	8(%r14), %rcx
	movq	%rax, 40(%rcx)
	movq	%r15, 32(%rcx)
	movl	52(%rbx), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	%rax, (%r14)
	movl	56(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_POLARIS12,8,3             ## @CHIP_POLARIS12
	.comm	_NUM_VFT_COLUMNS,8,3            ## @NUM_VFT_COLUMNS
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ## @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU74_Firmware_Header,4,2      ## @SMU74_Firmware_Header
	.comm	_AvfsMeanNSigma,4,2             ## @AvfsMeanNSigma
	.comm	_SMC_RAM_END,4,2                ## @SMC_RAM_END
	.comm	_AvfsSclkOffsetTable,4,2        ## @AvfsSclkOffsetTable
	.comm	_BTCGB0_Vdroop_Enable_SHIFT,4,2 ## @BTCGB0_Vdroop_Enable_SHIFT
	.comm	_BTCGB1_Vdroop_Enable_SHIFT,4,2 ## @BTCGB1_Vdroop_Enable_SHIFT
	.comm	_AVFSGB0_Vdroop_Enable_SHIFT,4,2 ## @AVFSGB0_Vdroop_Enable_SHIFT
	.comm	_AVFSGB1_Vdroop_Enable_SHIFT,4,2 ## @AVFSGB1_Vdroop_Enable_SHIFT
	.no_dead_strip	_polaris10_populate_avfs_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function polaris10_populate_avfs_parameters
_polaris10_populate_avfs_parameters:    ; @polaris10_populate_avfs_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	ldp	x21, x20, [x0, #24]
	str	xzr, [sp, #96]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, sp
	bl	_atomctrl_get_avfs_information
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x1, sp
	mov	x0, x21
	mov	x2, x19
	mov	x3, x20
	bl	_polaris10_populate_avfs_parameters.cold.1
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function polaris10_populate_avfs_parameters.cold.1
lCPI1_0:
	.long	3931254227                      ; 0xea522dd3
	.long	353370                          ; 0x5645a
	.long	212894                          ; 0x33f9e
	.long	4294952396                      ; 0xffffc5cc
lCPI1_1:
	.long	4145607124                      ; 0xf718f1d4
	.long	205821                          ; 0x323fd
	.long	123989                          ; 0x1e455
	.long	0                               ; 0x0
lCPI1_2:
	.long	1                               ; 0x1
	.long	4165187179                      ; 0xf843b66b
	.long	367797                          ; 0x59cb5
	.long	4294912127                      ; 0xffff287f
lCPI1_4:
	.long	1                               ; 0x1
	.long	4138738909                      ; 0xf6b024dd
	.long	196702                          ; 0x3005e
	.long	100959                          ; 0x18a5f
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI1_3:
	.long	0                               ; 0x0
	.long	65315                           ; 0xff23
lCPI1_5:
	.long	789                             ; 0x315
	.long	65233                           ; 0xfed1
lCPI1_6:
	.long	24                              ; 0x18
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_polaris10_populate_avfs_parameters.cold.1: ; @polaris10_populate_avfs_parameters.cold.1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x3
	mov	x20, x1
	ldr	x8, [x0]
	ldr	w9, [x8]
	mov	w10, #26607
	cmp	w9, w10
	b.eq	LBB1_4
; %bb.1:
	mov	w10, #26623
	cmp	w9, w10
	b.ne	LBB1_10
; %bb.2:
	ldr	w10, [x8, #4]
	sub	w12, w10, #207
	cmp	w12, #48
	mov	w11, #1
	lsl	x12, x11, x12
	mov	x13, #281479271743489
	movk	x13, #0, lsl #16
	and	x12, x12, x13
	ccmp	x12, #0, #4, ls
	b.eq	LBB1_10
; %bb.3:
	str	w11, [x20]
	cmp	w10, #239
	b.eq	LBB1_7
	b	LBB1_19
LBB1_4:
	ldr	w10, [x8, #4]
	cmp	w10, #224
	b.eq	LBB1_6
; %bb.5:
	cmp	w10, #229
	b.ne	LBB1_10
LBB1_6:
	mov	w8, #1
	str	w8, [x20]
	cmp	w10, #229
	b.ne	LBB1_19
LBB1_7:
	mov	x8, x20
	ldr	w9, [x8, #24]!
	ldur	q0, [x8, #-20]
Lloh0:
	adrp	x10, lCPI1_0@PAGE
Lloh1:
	ldr	q1, [x10, lCPI1_0@PAGEOFF]
	cmeq.4s	v0, v0, v1
	mvn.16b	v0, v0
	xtn.4h	v0, v0
	umov.h	w10, v0[0]
	umov.h	w11, v0[1]
	and	w11, w11, #0x1
	bfi	w10, w11, #1, #1
	umov.h	w11, v0[2]
	and	w11, w11, #0x1
	bfi	w10, w11, #2, #1
	umov.h	w11, v0[3]
	bfi	w10, w11, #3, #29
	and	w10, w10, #0xf
	ldur	w11, [x8, #-4]
	cmp	w10, #0
	mov	w10, #6938
	ccmp	w11, w10, #0, eq
	b.ne	LBB1_19
; %bb.8:
	cmn	w9, #787
	b.ne	LBB1_19
; %bb.9:
Lloh2:
	adrp	x9, lCPI1_1@PAGE
Lloh3:
	ldr	q0, [x9, lCPI1_1@PAGEOFF]
	stur	q0, [x20, #4]
	str	wzr, [x20, #20]
	mov	w9, #35
	b	LBB1_18
LBB1_10:
	ldr	x10, [x2]
Lloh4:
	adrp	x11, _CHIP_POLARIS12@GOTPAGE
Lloh5:
	ldr	x11, [x11, _CHIP_POLARIS12@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB1_12
; %bb.11:
	ldr	w10, [x2, #8]
	cbz	w10, LBB1_17
LBB1_12:
	mov	w10, #26591
	cmp	w9, w10
	b.eq	LBB1_15
; %bb.13:
	mov	w10, #28639
	cmp	w9, w10
	b.ne	LBB1_19
; %bb.14:
	ldr	w8, [x8, #4]
	orr	w8, w8, #0x10
	cmp	w8, #255
	b.eq	LBB1_16
	b	LBB1_19
LBB1_15:
	ldr	w8, [x8, #4]
	sub	w8, w8, #224
	cmp	w8, #15
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #32953
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB1_19
LBB1_16:
Lloh7:
	adrp	x8, lCPI1_2@PAGE
Lloh8:
	ldr	q0, [x8, lCPI1_2@PAGEOFF]
	str	q0, [x20]
Lloh9:
	adrp	x8, lCPI1_3@PAGE
Lloh10:
	ldr	d0, [x8, lCPI1_3@PAGEOFF]
	str	d0, [x20, #16]
	add	x8, x20, #24
	mov	w9, #88
	b	LBB1_18
LBB1_17:
Lloh11:
	adrp	x8, lCPI1_4@PAGE
Lloh12:
	ldr	q0, [x8, lCPI1_4@PAGEOFF]
	str	q0, [x20]
Lloh13:
	adrp	x8, lCPI1_5@PAGE
Lloh14:
	ldr	d0, [x8, lCPI1_5@PAGEOFF]
	str	d0, [x20, #16]
	add	x8, x20, #24
	mov	w9, #59
LBB1_18:
	str	w9, [x8]
LBB1_19:
	ldr	w0, [x20, #28]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #16]
	str	x0, [x8, #16]
	ldr	w0, [x20, #32]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	ldr	w0, [x20, #36]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	w0, [x20, #4]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #16]
	str	x0, [x8, #40]
	ldr	w0, [x20, #8]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #16]
	str	x0, [x8, #32]
	ldr	w0, [x20, #12]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #16]
	str	x0, [x8, #24]
	ldr	w0, [x20, #40]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	ldr	w0, [x20, #44]
	bl	_PP_HOST_TO_SMC_US
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	ldr	w0, [x20, #48]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
Lloh15:
	adrp	x9, lCPI1_6@PAGE
Lloh16:
	ldr	d8, [x9, lCPI1_6@PAGEOFF]
	str	d8, [x8]
	ldr	w0, [x20, #16]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #8]
	str	x0, [x8, #56]
	ldr	w0, [x20, #20]
	bl	_PP_HOST_TO_SMC_US
	ldr	x8, [x19, #8]
	str	x0, [x8, #48]
	ldr	w0, [x20, #24]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x19, #8]
	str	x0, [x8, #40]
	str	d8, [x8, #32]
	ldr	w0, [x20, #52]
	bl	_PP_HOST_TO_SMC_US
	str	x0, [x19]
	ldr	w0, [x20, #56]
	bl	_PP_HOST_TO_SMC_UL
	brk	#0x1
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_POLARIS12,8,3             ; @CHIP_POLARIS12
	.comm	_NUM_VFT_COLUMNS,8,3            ; @NUM_VFT_COLUMNS
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ; @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU74_Firmware_Header,4,2      ; @SMU74_Firmware_Header
	.comm	_AvfsMeanNSigma,4,2             ; @AvfsMeanNSigma
	.comm	_SMC_RAM_END,4,2                ; @SMC_RAM_END
	.comm	_AvfsSclkOffsetTable,4,2        ; @AvfsSclkOffsetTable
	.comm	_BTCGB0_Vdroop_Enable_SHIFT,4,2 ; @BTCGB0_Vdroop_Enable_SHIFT
	.comm	_BTCGB1_Vdroop_Enable_SHIFT,4,2 ; @BTCGB1_Vdroop_Enable_SHIFT
	.comm	_AVFSGB0_Vdroop_Enable_SHIFT,4,2 ; @AVFSGB0_Vdroop_Enable_SHIFT
	.comm	_AVFSGB1_Vdroop_Enable_SHIFT,4,2 ; @AVFSGB1_Vdroop_Enable_SHIFT
	.no_dead_strip	_polaris10_populate_avfs_parameters
.subsections_via_symbols
