	.file	"extr_kv_dpm.c_kv_parse_sys_info_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unsupported IGP table: %d %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"The htcTmpLmt should be larger than htcHystLmt.\n"
	.text
	.p2align 4
	.type	kv_parse_sys_info_table, @function
kv_parse_sys_info_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	kv_get_pi@PLT
	mov	esi, DWORD PTR IntegratedSystemInfo[rip]
	mov	edi, DWORD PTR DATA[rip]
	mov	r12, rax
	call	GetIndexIntoMasterTable@PLT
	mov	rdi, QWORD PTR 8[r14]
	lea	r8, 12[rsp]
	xor	edx, edx
	mov	esi, eax
	lea	rcx, 8[rsp]
	lea	r9, 16[rsp]
	call	atom_parse_data_header@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	mov	edx, DWORD PTR 12[rsp]
	cmp	edx, 8
	je	.L3
	mov	esi, DWORD PTR 8[rsp]
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r14]
	mov	r13, QWORD PTR 16[rsp]
	add	r13, QWORD PTR [rax]
	mov	edi, DWORD PTR 44[r13]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 40[r13]
	mov	DWORD PTR 8[r12], eax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 36[r13]
	mov	DWORD PTR 12[r12], eax
	call	le16_to_cpu@PLT
	mov	edx, DWORD PTR 0[r13]
	mov	DWORD PTR 56[r12], eax
	test	edx, edx
	je	.L4
	mov	eax, DWORD PTR 4[r13]
	mov	ecx, 5
	mov	DWORD PTR 16[r12], edx
	test	eax, eax
	cmove	eax, ecx
.L5:
	mov	DWORD PTR 20[r12], eax
	cmp	edx, eax
	jg	.L6
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_ERROR@PLT
.L6:
	mov	edi, DWORD PTR 32[r13]
	call	le32_to_cpu@PLT
	shr	eax, 3
	and	eax, 1
	mov	DWORD PTR 24[r12], eax
	mov	eax, DWORD PTR KV_NUM_NBPSTATES[rip]
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 24[r13]
	mov	r15, QWORD PTR 32[r12]
	lea	rbp, 0[0+rbx*4]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	r15, rbp
	call	le32_to_cpu@PLT
	add	rbp, QWORD PTR 40[r12]
	mov	DWORD PTR [r15], eax
	mov	rax, QWORD PTR 16[r13]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	le32_to_cpu@PLT
	mov	DWORD PTR 0[rbp], eax
	cmp	DWORD PTR KV_NUM_NBPSTATES[rip], ebx
	jg	.L8
.L7:
	mov	edi, DWORD PTR 12[r13]
	call	le32_to_cpu@PLT
	test	DWORD PTR SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS[rip], eax
	je	.L9
	mov	DWORD PTR [r12], 1
.L9:
	mov	edx, DWORD PTR 8[r13]
	lea	rsi, 52[r12]
	mov	rdi, r14
	call	sumo_construct_sclk_voltage_mapping_table@PLT
	mov	edx, DWORD PTR 8[r13]
	lea	rsi, 48[r12]
	mov	rdi, r14
	call	sumo_construct_vid_mapping_table@PLT
	mov	rsi, r14
	mov	rdi, r14
	call	kv_construct_max_power_limits_table@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 4[r13]
	mov	edx, 203
	mov	DWORD PTR 16[r12], 203
	test	eax, eax
	jne	.L5
	mov	DWORD PTR 20[r12], 5
	jmp	.L6
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kv_parse_sys_info_table, .-kv_parse_sys_info_table
	.comm	SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS,4,4
	.comm	KV_NUM_NBPSTATES,4,4
	.comm	IntegratedSystemInfo,4,4
	.comm	EINVAL,4,4
	.comm	DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kv_dpm.c_kv_parse_sys_info_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unsupported IGP table: %d %d\012\000"
	.align	2
.LC1:
	.ascii	"The htcTmpLmt should be larger than htcHystLmt.\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_parse_sys_info_table, %function
kv_parse_sys_info_table:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L24
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r7, r0
	bl	kv_get_pi
	ldr	r2, .L24+4
	ldr	r3, .L24+8
	ldr	r1, [r2]
	mov	r5, r0
	ldr	r0, [r3]
	bl	GetIndexIntoMasterTable
	add	r2, sp, #16
	add	r3, sp, #12
	mov	r1, r0
	ldr	r0, [r7, #4]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #0
	add	r3, sp, #8
	bl	atom_parse_data_header
	cmp	r0, #0
	beq	.L1
	ldr	r2, [sp, #12]
	cmp	r2, #8
	beq	.L3
	ldr	r1, [sp, #8]
	ldr	r0, .L24+12
	bl	DRM_ERROR
	ldr	r3, .L24+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	ldr	r3, [r7, #4]
	ldr	r4, [sp, #16]
	ldr	r8, [r3]
	add	r6, r8, r4
	ldr	r0, [r6, #36]
	bl	le32_to_cpu
	str	r0, [r5, #4]
	ldr	r0, [r6, #32]
	bl	le32_to_cpu
	str	r0, [r5, #8]
	ldr	r0, [r6, #28]
	bl	le16_to_cpu
	ldr	r3, [r8, r4]
	str	r0, [r5, #40]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [r6, #4]
	str	r3, [r5, #12]
	cmp	r2, #0
	moveq	r2, #5
.L5:
	cmp	r3, r2
	str	r2, [r5, #16]
	bgt	.L6
	ldr	r0, .L24+20
	bl	DRM_ERROR
.L6:
	ldr	r0, [r6, #24]
	bl	le32_to_cpu
	ldr	r9, .L24+24
	lsr	r0, r0, #3
	ldr	r3, [r9]
	and	r0, r0, #1
	cmp	r3, #0
	str	r0, [r5, #20]
	ble	.L7
	mov	r4, #0
.L8:
	ldr	r3, [r6, #20]
	ldr	r8, [r5, #24]
	ldr	r0, [r3, r4, lsl #2]
	bl	le32_to_cpu
	str	r0, [r8, r4, lsl #2]
	ldr	r3, [r6, #16]
	ldr	r8, [r5, #28]
	ldr	r0, [r3, r4, lsl #2]
	bl	le32_to_cpu
	str	r0, [r8, r4, lsl #2]
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L8
.L7:
	ldr	r0, [r6, #12]
	bl	le32_to_cpu
	ldr	r3, .L24+28
	ldr	r2, [r6, #8]
	ldr	r3, [r3]
	add	r1, r5, #36
	tst	r0, r3
	movne	r3, #1
	mov	r0, r7
	strne	r3, [r5]
	bl	sumo_construct_sclk_voltage_mapping_table
	ldr	r2, [r6, #8]
	add	r1, r5, #32
	mov	r0, r7
	bl	sumo_construct_vid_mapping_table
	mov	r1, r7
	mov	r0, r7
	bl	kv_construct_max_power_limits_table
	mov	r0, #0
	b	.L1
.L4:
	mov	r3, #203
	ldr	r2, [r6, #4]
	str	r3, [r5, #12]
	cmp	r2, #0
	moveq	r3, #5
	streq	r3, [r5, #16]
	beq	.L6
	b	.L5
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	IntegratedSystemInfo
	.word	DATA
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.word	KV_NUM_NBPSTATES
	.word	SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS
	.size	kv_parse_sys_info_table, .-kv_parse_sys_info_table
	.comm	SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS,4,4
	.comm	KV_NUM_NBPSTATES,4,4
	.comm	IntegratedSystemInfo,4,4
	.comm	EINVAL,4,4
	.comm	DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
