	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumo_parse_sys_info_table
_sumo_parse_sys_info_table:             ## @sumo_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	_sumo_get_pi
	movq	%rax, %r12
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IntegratedSystemInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	(%rbx), %rdi
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-64(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	-44(%rbp), %edx
	cmpl	$6, %edx
	jne	LBB0_2
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %r13
	movq	-64(%rbp), %rbx
	movl	92(%rbx,%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 128(%r12)
	movl	88(%rbx,%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 120(%r12)
	movl	84(%rbx,%r13), %edi
	callq	_le32_to_cpu
	movq	%rax, 112(%r12)
	movl	80(%rbx,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, 104(%r12)
	movl	(%rbx,%r13), %eax
	testl	%eax, %eax
	movl	$203, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%r12)
	movl	4(%rbx,%r13), %eax
	testl	%eax, %eax
	movl	$5, %edx
	cmovnel	%eax, %edx
	movl	%edx, 4(%r12)
	cmpl	%edx, %ecx
	jg	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_5:
	movq	_NUMBER_OF_M3ARB_PARAM_SETS@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	72(%r13,%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_le32_to_cpu
	movq	96(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	64(%r13,%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_le32_to_cpu
	movq	88(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	56(%r13,%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_le32_to_cpu
	movq	80(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jl	LBB0_7
LBB0_8:
	movl	48(%r13,%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 72(%r12)
	movl	44(%r13,%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 64(%r12)
	movl	40(%r13,%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%r12)
	movl	36(%r13,%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%r12)
	movl	32(%r13,%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r12)
	movl	28(%r13,%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 32(%r12)
	movl	24(%r13,%rbx), %eax
	movl	%eax, 24(%r12)
	xorl	%eax, %eax
	cmpq	$0, 16(%r13,%rbx)
	setne	%al
	movl	%eax, 8(%r12)
	leaq	20(%r12), %rsi
	movl	12(%r13,%rbx), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_sumo_construct_display_voltage_mapping_table
	leaq	16(%r12), %rsi
	movl	8(%r13,%rbx), %edx
	movq	%r14, %rdi
	callq	_sumo_construct_sclk_voltage_mapping_table
	addq	$12, %r12
	movl	8(%r13,%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sumo_construct_vid_mapping_table
	xorl	%r14d, %r14d
	jmp	LBB0_9
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_9:
	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	_NUMBER_OF_M3ARB_PARAM_SETS,4,2 ## @NUMBER_OF_M3ARB_PARAM_SETS
	.no_dead_strip	_sumo_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 sumo_parse_sys_info_table
_sumo_parse_sys_info_table:             ; @sumo_parse_sys_info_table
	.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
	bl	_sumo_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]
	add	x3, sp, #28
	add	x4, sp, #24
	add	x5, sp, #16
	mov	x2, #0
	bl	_atom_parse_data_header
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w8, [sp, #24]
	cmp	w8, #6
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [sp, #16]
	add	x21, x9, x8
	ldr	w0, [x21, #92]
	bl	_le32_to_cpu
	str	x0, [x20, #128]
	ldr	w0, [x21, #88]
	bl	_le32_to_cpu
	str	x0, [x20, #120]
	ldr	w0, [x21, #84]
	bl	_le32_to_cpu
	str	x0, [x20, #112]
	ldr	w0, [x21, #80]
	bl	_le16_to_cpu
	str	x0, [x20, #104]
	ldr	w8, [x21]
	mov	w9, #203
	cmp	w8, #0
	csel	w8, w9, w8, eq
	str	w8, [x20]
	ldr	w9, [x21, #4]
	mov	w10, #5
	cmp	w9, #0
	csel	w9, w10, w9, eq
	str	w9, [x20, #4]
	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:
Lloh8:
	adrp	x22, _NUMBER_OF_M3ARB_PARAM_SETS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _NUMBER_OF_M3ARB_PARAM_SETS@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, #72]
	lsl	x24, x23, #2
	ldr	w0, [x8, x24]
	bl	_le32_to_cpu
	ldr	x8, [x20, #96]
	lsl	x25, x23, #3
	str	x0, [x8, x25]
	ldr	x8, [x21, #64]
	ldr	w0, [x8, x24]
	bl	_le32_to_cpu
	ldr	x8, [x20, #88]
	str	x0, [x8, x25]
	ldr	x8, [x21, #56]
	ldr	w0, [x8, x24]
	bl	_le32_to_cpu
	ldr	x8, [x20, #80]
	str	x0, [x8, x25]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	w0, [x21, #48]
	bl	_le32_to_cpu
	str	x0, [x20, #72]
	ldr	w0, [x21, #44]
	bl	_le32_to_cpu
	str	x0, [x20, #64]
	ldr	w0, [x21, #40]
	bl	_le16_to_cpu
	str	x0, [x20, #56]
	ldr	w0, [x21, #36]
	bl	_le16_to_cpu
	str	x0, [x20, #48]
	ldr	w0, [x21, #32]
	bl	_le16_to_cpu
	str	x0, [x20, #40]
	ldr	w0, [x21, #28]
	bl	_le32_to_cpu
	str	x0, [x20, #32]
	ldr	w8, [x21, #24]
	str	w8, [x20, #24]
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x20, #8]
	add	x1, x20, #20
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_sumo_construct_display_voltage_mapping_table
	add	x1, x20, #16
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_sumo_construct_sclk_voltage_mapping_table
	add	x1, x20, #12
	ldr	w2, [x21, #8]
	mov	x0, x19
	bl	_sumo_construct_vid_mapping_table
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	w9, [sp, #28]
	stp	x9, x8, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.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	_NUMBER_OF_M3ARB_PARAM_SETS,4,2 ; @NUMBER_OF_M3ARB_PARAM_SETS
	.no_dead_strip	_sumo_parse_sys_info_table
.subsections_via_symbols
