	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_parse_power_table
_ni_parse_power_table:                  ## @ni_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PowerPlayInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	16(%r14), %rdi
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %rcx
	leaq	-92(%rbp), %r8
	leaq	-64(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	16(%r14), %rax
	movq	(%rax), %r12
	movq	-64(%rbp), %r13
	movl	(%r13,%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	(%r12,%r13), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	(%r12,%r13), %rax
	cmpq	%rax, %rcx
	jge	LBB0_11
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	-64(%rbp), %rbx
	addq	(%rax), %rbx
	movl	24(%r12,%r13), %edi
	callq	_le16_to_cpu
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	4(%r12,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	-64(%rbp), %r15
	addq	(%rax), %r15
	movl	20(%r12,%r13), %edi
	callq	_le16_to_cpu
	cmpl	$1, 4(%r12,%r13)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	imulq	%rax, %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rcx,%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	8(%r12,%r13), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	imulq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%r15, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rdi,%rcx,8), %rsi
	movq	%rax, (%rdi,%rcx,8)
	movl	8(%r12,%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_ni_parse_pplib_non_clock_info
	cmpl	$2, 4(%r12,%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jl	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rcx,%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rax
	movq	-64(%rbp), %r15
	addq	(%rax), %r15
	movl	16(%r12,%r13), %edi
	callq	_le16_to_cpu
	addq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax,%rbx,4), %rax
	movslq	12(%r12,%r13), %rcx
	imulq	%rax, %rcx
	addq	%r15, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %rsi
	addq	8(%r14), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ni_parse_pplib_clock_info
	incq	%rbx
	movslq	4(%r12,%r13), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jl	LBB0_9
	jmp	LBB0_4
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	callq	_kfree
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_14:
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$56, %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
	.no_dead_strip	_ni_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 ni_parse_power_table
_ni_parse_power_table:                  ; @ni_parse_power_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.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, #16]
	add	x3, sp, #4
	mov	x4, sp
	add	x5, sp, #8
	mov	x2, #0
	bl	_atom_parse_data_header
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	add	x22, x9, x8
	ldr	w0, [x22]
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_13
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x24, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x19, #16]
	ldr	x27, [x8]
	ldr	x28, [sp, #8]
	ldr	w0, [x22, #24]
	bl	_le16_to_cpu
	mov	x21, x0
	ldrsw	x23, [x22, #4]
	ldr	x8, [x19, #16]
	ldr	x25, [x8]
	ldr	x26, [sp, #8]
	ldr	w0, [x22, #20]
	bl	_le16_to_cpu
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	add	x8, x28, x27
	add	x8, x8, x21
	sxtw	x9, w24
	madd	x21, x23, x9, x8
	ldrsw	x23, [x21]
	ldrsw	x27, [x22, #8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x26, x25
	add	x9, x9, x20
	madd	x2, x27, x23, x9
	add	x1, x0, x24, lsl #3
	str	x8, [x1]
	ldr	w3, [x22, #8]
	mov	x0, x19
	bl	_ni_parse_pplib_non_clock_info
	ldr	w8, [x22, #4]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
	ldr	x21, [x21, #8]
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	add	x23, x9, x8
	ldr	w0, [x22, #16]
	bl	_le16_to_cpu
	add	x8, x23, x0
	ldrsw	x9, [x21, x20, lsl #2]
	ldrsw	x10, [x22, #12]
	madd	x3, x10, x9, x8
	ldr	x8, [x19, #8]
	add	x1, x8, x24, lsl #3
	mov	x0, x19
	mov	x2, x20
	bl	_ni_parse_pplib_clock_info
	add	x20, x20, #1
	ldrsw	x8, [x22, #4]
	sub	x8, x8, #1
	cmp	x20, x8
	b.lt	LBB0_9
	b	LBB0_4
LBB0_10:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_15
LBB0_12:
	bl	_kfree
LBB0_13:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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
	.no_dead_strip	_ni_parse_power_table
.subsections_via_symbols
