	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function smu8_get_system_info_data
LCPI0_0:
	.long	5                               ## 0x5
	.long	203                             ## 0xcb
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_smu8_get_system_info_data:             ## @smu8_get_system_info_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	movl	8(%rdi), %r15d
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IntegratedSystemInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	leaq	-60(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_smu_atom_get_data_table
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	-44(%rbp), %edx
	cmpl	$9, %edx
	jne	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movl	72(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r13)
	movl	68(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 4(%r13)
	movl	64(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 8(%r13)
	movl	56(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, 12(%r13)
	movl	60(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, 72(%r13)
	movq	(%r15), %xmm1                   ## xmm1 = mem[0],zero
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	blendvps	%xmm0, LCPI0_0(%rip), %xmm1
	movss	%xmm1, 16(%r13)
	extractps	$1, %xmm1, 20(%r13)
	movd	%xmm1, %eax
	pextrd	$1, %xmm1, %ecx
	cmpl	%eax, %ecx
	jle	LBB0_7
## %bb.8:
	cmpq	$0, 80(%r13)
	je	LBB0_9
## %bb.10:
	movl	56(%r15), %edi
	callq	_le32_to_cpu
	shrl	$3, %eax
	andl	$1, %eax
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movl	-48(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 24(%r13)
	movq	_SMU8_NUM_NBPSTATES@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.30:
	xorl	%ebx, %ebx
	movq	_SMU8_NUM_NBPMEMORYCLOCK@GOTPCREL(%rip), %r14
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=1
	movq	40(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	40(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r14), %rbx
	jae	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	32(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_33
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	movq	_MAX_DISPLAY_CLOCK_LEVEL@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	48(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_15
## %bb.16:
	movq	(%r12), %rax
LBB0_17:
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_26
## %bb.18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le16_to_cpu
	movq	64(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jb	LBB0_19
## %bb.20:
	cmpl	$0, 24(%r13)
	jne	LBB0_26
## %bb.21:
	cmpq	$2, %rax
	jb	LBB0_26
## %bb.22:
	movq	_SMU8_NUM_NBPMEMORYCLOCK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, %edx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	40(%r13), %rsi
	movl	(%rsi), %edi
	movl	%edi, (%rsi,%rdx,4)
	movq	64(%r13), %rsi
	movq	(%rsi), %rdi
	movq	%rdi, (%rsi,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rdx
	jae	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	32(%r13), %rsi
	movl	(%rsi), %edi
	movl	%edi, (%rsi,%rdx,4)
	jmp	LBB0_25
LBB0_26:
	movl	20(%r15), %edi
	callq	_le32_to_cpu
	movq	_SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.27:
	movl	4(%r14), %edi
	movq	_PHM_PlatformCaps_EnableDFSBypass@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_28:
	movl	16(%r15), %eax
	movl	%eax, 56(%r13)
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_smu8_construct_max_power_limits_table
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	callq	_smu8_init_dynamic_state_adjustment_rule_settings
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_IntegratedSystemInfo,4,2       ## @IntegratedSystemInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not retrieve the Integrated System Info Table!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported IGP table: %d %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"The htcTmpLmt should be larger than htcHystLmt.\n"

	.comm	_SMU8_NUM_NBPSTATES,8,3         ## @SMU8_NUM_NBPSTATES
	.comm	_SMU8_NUM_NBPMEMORYCLOCK,8,3    ## @SMU8_NUM_NBPMEMORYCLOCK
	.comm	_MAX_DISPLAY_CLOCK_LEVEL,8,3    ## @MAX_DISPLAY_CLOCK_LEVEL
	.comm	_SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS,4,2 ## @SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS
	.comm	_PHM_PlatformCaps_EnableDFSBypass,4,2 ## @PHM_PlatformCaps_EnableDFSBypass
	.no_dead_strip	_smu8_get_system_info_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function smu8_get_system_info_data
lCPI0_0:
	.long	5                               ; 0x5
	.long	203                             ; 0xcb
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smu8_get_system_info_data:             ; @smu8_get_system_info_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	w20, [x0, #8]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _IntegratedSystemInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IntegratedSystemInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	add	x2, sp, #20
	add	x3, sp, #28
	add	x4, sp, #24
	mov	x0, x20
	bl	_smu_atom_get_data_table
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [sp, #24]
	cmp	w8, #9
	b.ne	LBB0_11
; %bb.2:
	mov	x20, x0
	ldr	w0, [x0, #72]
	bl	_le32_to_cpu
	str	w0, [x21]
	ldr	w0, [x20, #68]
	bl	_le32_to_cpu
	str	w0, [x21, #4]
	ldr	w0, [x20, #64]
	bl	_le32_to_cpu
	str	w0, [x21, #8]
	ldr	w0, [x20, #56]
	bl	_le32_to_cpu
	str	w0, [x21, #12]
	ldr	w0, [x20, #60]
	bl	_le16_to_cpu
	str	x0, [x21, #72]
	ldr	d0, [x20]
	cmeq.2s	v1, v0, #0
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d2, [x8, lCPI0_0@PAGEOFF]
	bit.8b	v0, v2, v1
	str	d0, [x21, #16]
	dup.2s	v1, v0[1]
	cmgt.2s	v0, v1, v0
	fmov	w8, s0
	tbz	w8, #0, LBB0_12
; %bb.3:
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20, #56]
	bl	_le32_to_cpu
	ubfx	w8, w0, #3, #1
LBB0_5:
	str	w8, [x21, #24]
Lloh8:
	adrp	x22, _SMU8_NUM_NBPSTATES@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SMU8_NUM_NBPSTATES@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.6:
	mov	x23, #0
Lloh10:
	adrp	x24, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #40]
	ldr	w0, [x8, x25]
	bl	_le32_to_cpu
	ldr	x8, [x21, #40]
	str	w0, [x8, x25]
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.hs	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x25, x23, #2
	cmp	x23, x8
	b.hs	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #48]
	ldr	w0, [x8, x25]
	bl	_le32_to_cpu
	ldr	x8, [x21, #32]
	str	w0, [x8, x25]
	b	LBB0_7
LBB0_10:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	w9, [sp, #28]
	stp	x9, x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_pr_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
Lloh21:
	adrp	x23, _MAX_DISPLAY_CLOCK_LEVEL@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MAX_DISPLAY_CLOCK_LEVEL@GOTPAGEOFF]
	ldr	x9, [x23]
	cbz	x9, LBB0_19
; %bb.16:
	mov	x24, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	lsl	x25, x24, #2
	ldr	w0, [x8, x25]
	bl	_le32_to_cpu
	ldr	x8, [x21, #48]
	str	w0, [x8, x25]
	add	x24, x24, #1
	ldr	x8, [x23]
	cmp	x24, x8
	b.lo	LBB0_17
; %bb.18:
	ldr	x8, [x22]
LBB0_19:
	cbz	x8, LBB0_23
; %bb.20:
	mov	x23, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x23, lsl #2]
	bl	_le16_to_cpu
	ldr	x8, [x21, #64]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lo	LBB0_21
; %bb.22:
	ldr	w9, [x21, #24]
	cmp	w9, #0
	ccmp	x8, #2, #0, eq
	b.hs	LBB0_26
LBB0_23:
	ldr	w0, [x20, #20]
	bl	_le32_to_cpu
Lloh23:
	adrp	x8, _SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_25
; %bb.24:
	ldr	w0, [x19, #4]
Lloh26:
	adrp	x8, _PHM_PlatformCaps_EnableDFSBypass@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PHM_PlatformCaps_EnableDFSBypass@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_25:
	ldr	w8, [x20, #16]
	str	w8, [x21, #56]
	mov	x0, x19
	mov	x1, x19
	bl	_smu8_construct_max_power_limits_table
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_smu8_init_dynamic_state_adjustment_rule_settings
	mov	w0, #0
	b	LBB0_14
LBB0_26:
Lloh29:
	adrp	x9, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	mov	w10, #1
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x11, [x21, #40]
	ldr	w12, [x11]
	str	w12, [x11, x10, lsl #2]
	ldr	x11, [x21, #64]
	ldr	x12, [x11]
	str	x12, [x11, x10, lsl #3]
	add	x10, x10, #1
	cmp	x8, x10
	b.eq	LBB0_23
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	cmp	x10, x9
	b.hs	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x11, [x21, #32]
	ldr	w12, [x11]
	str	w12, [x11, x10, lsl #2]
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_IntegratedSystemInfo,4,2       ; @IntegratedSystemInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not retrieve the Integrated System Info Table!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported IGP table: %d %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"The htcTmpLmt should be larger than htcHystLmt.\n"

	.comm	_SMU8_NUM_NBPSTATES,8,3         ; @SMU8_NUM_NBPSTATES
	.comm	_SMU8_NUM_NBPMEMORYCLOCK,8,3    ; @SMU8_NUM_NBPMEMORYCLOCK
	.comm	_MAX_DISPLAY_CLOCK_LEVEL,8,3    ; @MAX_DISPLAY_CLOCK_LEVEL
	.comm	_SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS,4,2 ; @SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS
	.comm	_PHM_PlatformCaps_EnableDFSBypass,4,2 ; @PHM_PlatformCaps_EnableDFSBypass
	.no_dead_strip	_smu8_get_system_info_data
.subsections_via_symbols
