	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumo_parse_power_table
_sumo_parse_power_table:                ## @sumo_parse_power_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PowerPlayInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	24(%r12), %rdi
	xorl	%ebx, %ebx
	leaq	-128(%rbp), %rcx
	leaq	-124(%rbp), %r8
	leaq	-48(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	24(%r12), %rax
	movq	(%rax), %r14
	movq	-48(%rbp), %r15
	leaq	(%r15,%r14), %r13
	movl	8(%r15,%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	movq	24(%r12), %rax
	movq	-48(%rbp), %rcx
	addq	(%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	4(%r15,%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	24(%r12), %rax
	movq	-48(%rbp), %rcx
	addq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15,%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, %r14
	movl	(%rbx,%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movl	(%r13,%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:
	movq	%r13, %rax
	movq	8(%r13,%rbx), %r13
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rdi,%r15,8), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14,%rax), %ecx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_sumo_parse_pplib_non_clock_info
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movslq	4(%r13), %rax
	leaq	8(%r13,%rax,4), %r13
	incq	%r15
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rax,%rcx), %rax
	cmpq	%rax, %r15
	jge	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	16(%r12), %rax
	cmpl	$0, (%rax,%r15,4)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r13), %rbx
	shlq	$2, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	8(%r14,%rax), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	8(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, (%rdi,%r15,8)
	cmpl	$0, 4(%r13)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jle	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SUMO_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %r12
	xorl	%r14d, %r14d
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	-4(%r12,%r13,4), %rax
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movslq	(%rsi,%rdx), %rcx
	imulq	%rax, %rcx
	shlq	$2, %rcx
	addq	8(%rsi,%rdx), %rcx
	leaq	(%rdi,%r15,8), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_sumo_parse_pplib_clock_info
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rax
	movq	8(%rbx), %rdi
	cmpq	%rax, %r13
	jge	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	%r14d
	leaq	1(%r13), %rax
	movq	_SUMO_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	movq	%rax, %r13
	jg	LBB0_10
	jmp	LBB0_4
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	callq	_kfree
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_PowerPlayInfo,4,2              ## @PowerPlayInfo
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,4,2 ## @SUMO_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_sumo_parse_power_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_power_table
_sumo_parse_power_table:                ; @sumo_parse_power_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PowerPlayInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PowerPlayInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	ldr	x0, [x19, #24]
	add	x3, sp, #20
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x2, #0
	bl	_atom_parse_data_header
	cbz	w0, LBB0_11
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	add	x21, x9, x8
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	add	x26, x0, x21
	ldr	x8, [x19, #24]
	ldr	x23, [x8]
	ldr	x22, [sp, #24]
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	x27, [x8]
	ldr	x28, [sp, #24]
	ldr	w0, [x21]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	w0, [x26]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x24, #0
	add	x8, x22, x23
	add	x25, x8, x20
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x26, [x26, #8]
	add	x8, x28, x27
	add	x21, x8, x21
Lloh9:
	adrp	x27, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh10:
	ldr	x27, [x27, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x2, x23, x28, lsl #2
	ldr	w3, [x21]
	add	x1, x0, x24, lsl #3
	mov	x0, x19
	bl	_sumo_parse_pplib_non_clock_info
	ldrsw	x8, [x26, #4]
	add	x8, x26, x8, lsl #2
	add	x26, x8, #8
	add	x24, x24, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldrsw	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x24, lsl #2]
	cbz	w8, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x28, [x26]
	ldr	x23, [x21, #8]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x0, x24, lsl #3]
	ldr	w8, [x26, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
	ldr	x22, [x26, #8]
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x22, x20, lsl #2]
	ldr	x9, [x25, #8]
	ldr	w10, [x25]
	mul	w8, w10, w8
	add	x3, x9, w8, sxtw #2
	add	x1, x0, x24, lsl #3
	mov	x0, x19
	mov	x2, x20
	bl	_sumo_parse_pplib_clock_info
	add	x20, x20, #1
	ldrsw	x8, [x26, #4]
	ldr	w9, [x27]
	ldr	x0, [x19, #8]
	cmp	x20, x8
	ccmp	w9, w20, #4, lt
	b.gt	LBB0_10
	b	LBB0_4
LBB0_11:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_16
LBB0_13:
	bl	_kfree
LBB0_14:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_PowerPlayInfo,4,2              ; @PowerPlayInfo
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,4,2 ; @SUMO_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_sumo_parse_power_table
.subsections_via_symbols
