	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vegam_populate_avfs_parameters
_vegam_populate_avfs_parameters:        ## @vegam_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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -24
	movq	16(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -16(%rbp)
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	leaq	-112(%rbp), %rsi
	callq	_atomctrl_get_avfs_information
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vegam_populate_avfs_parameters.cold.1
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function vegam_populate_avfs_parameters.cold.1
_vegam_populate_avfs_parameters.cold.1: ## @vegam_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	%rsi, %rbx
	movq	%rdi, %r14
	movl	96(%rsi), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	92(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	88(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movl	84(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 40(%rcx)
	movl	80(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 32(%rcx)
	movl	76(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	16(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	72(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	8(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	(%rbx), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	68(%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	64(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	8(%r14), %rcx
	movq	%rax, 56(%rcx)
	movl	4(%rbx), %edi
	callq	_PP_HOST_TO_SMC_US
	movq	8(%r14), %rcx
	movq	%rax, 48(%rcx)
	movl	60(%rbx), %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	8(%r14), %rcx
	movq	%rax, 40(%rcx)
	movq	%r15, 32(%rcx)
	movl	8(%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	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ## @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU75_Firmware_Header,4,2      ## @SMU75_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	_vegam_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 vegam_populate_avfs_parameters
_vegam_populate_avfs_parameters:        ; @vegam_populate_avfs_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	ldr	x19, [x0, #16]
	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]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x1, sp
	bl	_atomctrl_get_avfs_information
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x1, sp
	mov	x0, x19
	bl	_vegam_populate_avfs_parameters.cold.1
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vegam_populate_avfs_parameters.cold.1
lCPI1_0:
	.long	24                              ; 0x18
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vegam_populate_avfs_parameters.cold.1: ; @vegam_populate_avfs_parameters.cold.1
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #96]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #16]
	str	x0, [x8, #16]
	ldr	w0, [x19, #92]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #16]
	str	x0, [x8, #8]
	ldr	w0, [x19, #88]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #16]
	str	x0, [x8]
	ldr	w0, [x19, #84]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #16]
	str	x0, [x8, #40]
	ldr	w0, [x19, #80]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #16]
	str	x0, [x8, #32]
	ldr	w0, [x19, #76]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #16]
	str	x0, [x8, #24]
	ldr	w0, [x19, #72]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #8]
	str	x0, [x8, #24]
	ldr	w0, [x19]
	bl	_PP_HOST_TO_SMC_US
	ldr	x8, [x20, #8]
	str	x0, [x8, #16]
	ldr	w0, [x19, #68]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
Lloh0:
	adrp	x9, lCPI1_0@PAGE
Lloh1:
	ldr	d8, [x9, lCPI1_0@PAGEOFF]
	str	d8, [x8]
	ldr	w0, [x19, #64]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #8]
	str	x0, [x8, #56]
	ldr	w0, [x19, #4]
	bl	_PP_HOST_TO_SMC_US
	ldr	x8, [x20, #8]
	str	x0, [x8, #48]
	ldr	w0, [x19, #60]
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20, #8]
	str	x0, [x8, #40]
	str	d8, [x8, #32]
	ldr	w0, [x19, #8]
	bl	_PP_HOST_TO_SMC_US
	str	x0, [x20]
	ldr	w0, [x19, #56]
	bl	_PP_HOST_TO_SMC_UL
	brk	#0x1
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ; @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU75_Firmware_Header,4,2      ; @SMU75_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	_vegam_populate_avfs_parameters
.subsections_via_symbols
