	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_parse_sys_info_table
_kv_parse_sys_info_table:               ## @kv_parse_sys_info_table
	.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
	callq	_kv_get_pi
	movq	%rax, %r12
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IntegratedSystemInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	8(%rbx), %rdi
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-64(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_amdgpu_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	-44(%rbp), %edx
	cmpl	$8, %edx
	jne	LBB0_2
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	(%rax), %r13
	movq	-64(%rbp), %rbx
	movl	44(%rbx,%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 8(%r12)
	movl	40(%rbx,%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 12(%r12)
	movl	36(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 56(%r12)
	movl	(%rbx,%r13), %eax
	testl	%eax, %eax
	movl	$203, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 16(%r12)
	movl	4(%rbx,%r13), %eax
	testl	%eax, %eax
	movl	$5, %edx
	cmovnel	%eax, %edx
	movl	%edx, 20(%r12)
	cmpl	%edx, %ecx
	jg	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_5:
	movl	32(%r13,%rbx), %edi
	callq	_le32_to_cpu
	shrl	$3, %eax
	andl	$1, %eax
	movl	%eax, 24(%r12)
	movq	_KV_NUM_NBPSTATES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13,%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_le32_to_cpu
	movq	32(%r12), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	16(%r13,%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_le32_to_cpu
	movq	40(%r12), %rcx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jl	LBB0_7
LBB0_8:
	movl	12(%r13,%rbx), %edi
	callq	_le32_to_cpu
	movq	_SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	$1, (%r12)
LBB0_10:
	leaq	52(%r12), %rsi
	movl	8(%r13,%rbx), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_sumo_construct_sclk_voltage_mapping_table
	addq	$48, %r12
	movl	8(%r13,%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sumo_construct_vid_mapping_table
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_kv_construct_max_power_limits_table
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_2:
	movl	-48(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_IntegratedSystemInfo,4,2       ## @IntegratedSystemInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported IGP table: %d %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"The htcTmpLmt should be larger than htcHystLmt.\n"

	.comm	_KV_NUM_NBPSTATES,4,2           ## @KV_NUM_NBPSTATES
	.comm	_SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS,4,2 ## @SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS
	.no_dead_strip	_kv_parse_sys_info_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_parse_sys_info_table
_kv_parse_sys_info_table:               ; @kv_parse_sys_info_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	bl	_kv_get_pi
	mov	x20, x0
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
	ldr	x0, [x19, #8]
	add	x3, sp, #28
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x2, #0
	bl	_amdgpu_atom_parse_data_header
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w8, [sp, #24]
	cmp	w8, #8
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [sp, #16]
	add	x21, x9, x8
	ldr	w0, [x21, #44]
	bl	_le32_to_cpu
	str	w0, [x20, #8]
	ldr	w0, [x21, #40]
	bl	_le32_to_cpu
	str	w0, [x20, #12]
	ldr	w0, [x21, #36]
	bl	_le16_to_cpu
	str	w0, [x20, #56]
	ldr	w8, [x21]
	mov	w9, #203
	cmp	w8, #0
	csel	w8, w9, w8, eq
	str	w8, [x20, #16]
	ldr	w9, [x21, #4]
	mov	w10, #5
	cmp	w9, #0
	csel	w9, w10, w9, eq
	str	w9, [x20, #20]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_4:
	ldr	w0, [x21, #32]
	bl	_le32_to_cpu
	ubfx	w8, w0, #3, #1
	str	w8, [x20, #24]
Lloh8:
	adrp	x22, _KV_NUM_NBPSTATES@GOTPAGE
Lloh9:
	ldr	x22, [x22, _KV_NUM_NBPSTATES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	lsl	x24, x23, #2
	ldr	w0, [x8, x24]
	bl	_le32_to_cpu
	ldr	x8, [x20, #32]
	str	w0, [x8, x24]
	ldr	x8, [x21, #16]
	ldr	w0, [x8, x24]
	bl	_le32_to_cpu
	ldr	x8, [x20, #40]
	str	w0, [x8, x24]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
Lloh10:
	adrp	x8, _SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x20]
LBB0_9:
	add	x1, x20, #52
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_sumo_construct_sclk_voltage_mapping_table
	add	x1, x20, #48
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_sumo_construct_vid_mapping_table
	mov	x0, x19
	mov	x1, x19
	bl	_kv_construct_max_power_limits_table
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	ldr	w9, [sp, #28]
	stp	x9, x8, [sp]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_IntegratedSystemInfo,4,2       ; @IntegratedSystemInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported IGP table: %d %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"The htcTmpLmt should be larger than htcHystLmt.\n"

	.comm	_KV_NUM_NBPSTATES,4,2           ; @KV_NUM_NBPSTATES
	.comm	_SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS,4,2 ; @SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS
	.no_dead_strip	_kv_parse_sys_info_table
.subsections_via_symbols
