	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_avfs_information  ## -- Begin function atomctrl_get_avfs_information
	.p2align	4, 0x90
_atomctrl_get_avfs_information:         ## @atomctrl_get_avfs_information
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movl	(%rdi), %ebx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASIC_ProfilingInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_smu_atom_get_data_table
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	96(%rax), %edi
	callq	_le32_to_cpu
	movq	%rax, 176(%r15)
	movl	92(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 168(%r15)
	movl	88(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 160(%r15)
	movl	84(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 152(%r15)
	movl	80(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 144(%r15)
	movl	76(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 136(%r15)
	movl	72(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 128(%r15)
	movl	68(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 120(%r15)
	movl	64(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 112(%r15)
	movl	60(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 104(%r15)
	movl	56(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 96(%r15)
	movl	52(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 88(%r15)
	movl	48(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 80(%r15)
	movl	44(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 72(%r15)
	movl	40(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 64(%r15)
	movl	36(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 56(%r15)
	movl	32(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%r15)
	movl	28(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 40(%r15)
	movl	24(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r15)
	movups	8(%rbx), %xmm0
	movups	%xmm0, 16(%r15)
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 8(%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DATA,4,2                       ## @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ## @ASIC_ProfilingInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_avfs_information  ; -- Begin function atomctrl_get_avfs_information
	.p2align	2
_atomctrl_get_avfs_information:         ; @atomctrl_get_avfs_information
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASIC_ProfilingInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASIC_ProfilingInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_smu_atom_get_data_table
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0, #96]
	bl	_le32_to_cpu
	str	x0, [x19, #176]
	ldr	w0, [x20, #92]
	bl	_le32_to_cpu
	str	x0, [x19, #168]
	ldr	w0, [x20, #88]
	bl	_le32_to_cpu
	str	x0, [x19, #160]
	ldr	w0, [x20, #84]
	bl	_le16_to_cpu
	str	x0, [x19, #152]
	ldr	w0, [x20, #80]
	bl	_le16_to_cpu
	str	x0, [x19, #144]
	ldr	w0, [x20, #76]
	bl	_le16_to_cpu
	str	x0, [x19, #136]
	ldr	w0, [x20, #72]
	bl	_le32_to_cpu
	str	x0, [x19, #128]
	ldr	w0, [x20, #68]
	bl	_le32_to_cpu
	str	x0, [x19, #120]
	ldr	w0, [x20, #64]
	bl	_le32_to_cpu
	str	x0, [x19, #112]
	ldr	w0, [x20, #60]
	bl	_le32_to_cpu
	str	x0, [x19, #104]
	ldr	w0, [x20, #56]
	bl	_le32_to_cpu
	str	x0, [x19, #96]
	ldr	w0, [x20, #52]
	bl	_le32_to_cpu
	str	x0, [x19, #88]
	ldr	w0, [x20, #48]
	bl	_le32_to_cpu
	str	x0, [x19, #80]
	ldr	w0, [x20, #44]
	bl	_le16_to_cpu
	str	x0, [x19, #72]
	ldr	w0, [x20, #40]
	bl	_le32_to_cpu
	str	x0, [x19, #64]
	ldr	w0, [x20, #36]
	bl	_le32_to_cpu
	str	x0, [x19, #56]
	ldr	w0, [x20, #32]
	bl	_le16_to_cpu
	str	x0, [x19, #48]
	ldr	w0, [x20, #28]
	bl	_le32_to_cpu
	str	x0, [x19, #40]
	ldr	w0, [x20, #24]
	bl	_le16_to_cpu
	str	x0, [x19, #32]
	ldur	q0, [x20, #8]
	str	q0, [x19, #16]
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DATA,4,2                       ; @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ; @ASIC_ProfilingInfo
.subsections_via_symbols
