	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_parse_power_table
_si_parse_power_table:                  ## @si_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, %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PowerPlayInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rdi
	xorl	%ebx, %ebx
	leaq	-120(%rbp), %rcx
	leaq	-116(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_amdgpu_atom_parse_data_header
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	24(%r12), %rax
	movslq	(%rax), %rbx
	movslq	-44(%rbp), %r13
	movq	%r12, %rdi
	callq	_amdgpu_add_thermal_controller
	movq	24(%r12), %rax
	movslq	(%rax), %rax
	movslq	-44(%rbp), %r15
	addq	%rax, %r15
	movl	8(%r13,%rbx), %edi
	callq	_le16_to_cpu
	movslq	%eax, %r14
	movq	24(%r12), %rax
	movslq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r13,%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	24(%r12), %rax
	movslq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%r13,%rbx), %edi
	movq	%r14, %rbx
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	(%rbx,%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movslq	-96(%rbp), %r13                 ## 4-byte Folded Reload
	movl	(%rbx,%r15), %eax
	testl	%eax, %eax
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_14
## %bb.3:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	movslq	%r14d, %rdx
	movq	8(%rbx,%r15), %r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	cltq
	leaq	(%r12,%rax,4), %r12
	addq	$8, %r12
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movslq	(%rbx,%r15), %rax
	movq	%rdx, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jge	LBB0_14
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movslq	(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rdx,%rcx), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	movq	%rcx, %r15
	movq	%r12, %r14
	movq	%rdx, %r12
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rbx,%rcx,4), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rdi), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rcx,%rbx,8), %rsi
	movq	%rax, (%rcx,%rbx,8)
	movl	(%r12,%r15), %ecx
	callq	_si_parse_pplib_non_clock_info
	movl	4(%r14), %eax
	testl	%eax, %eax
	movq	%r14, %r12
	jle	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=2
	movslq	4(%r13,%rsi), %rcx
	imulq	%rdx, %rcx
	shlq	$2, %rcx
	addq	8(%r13,%rsi), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	16(%rdi), %rsi
	movl	%ebx, %edx
	callq	_si_parse_pplib_clock_info
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incl	%ebx
	movl	4(%r12), %eax
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_5
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r14,%r15,4), %rdx
	cmpl	(%r13,%rsi), %edx
	jge	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_SISLANDS_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jl	LBB0_9
	jmp	LBB0_5
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_14:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	cmpl	$0, 4(%rcx)
	jle	LBB0_17
## %bb.15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rax,%rbx), %rax
	movq	8(%r13,%rsi), %r14
	movslq	4(%r13,%rsi), %r12
	imulq	%rax, %r12
	movl	12(%r14,%r12,4), %edi
	callq	_le16_to_cpu
	movl	(%r14,%r12,4), %r15d
	movl	8(%r14,%r12,4), %edi
	shll	$16, %r15d
	orl	%eax, %r15d
	callq	_le16_to_cpu
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	4(%r14,%r12,4), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	8(%rdx), %rax
	movl	%r15d, 4(%rax,%rbx)
	movl	%ecx, 8(%rax,%rbx)
	incq	%rdi
	movslq	4(%rdx), %rcx
	addq	$12, %rbx
	cmpq	%rcx, %rdi
	jl	LBB0_16
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	callq	_kfree
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	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	_SISLANDS_MAX_HARDWARE_POWERLEVELS,4,2 ## @SISLANDS_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_si_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 si_parse_power_table
_si_parse_power_table:                  ; @si_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, #24]
	add	x3, sp, #8
	add	x4, sp, #4
	add	x5, sp, #12
	mov	x2, #0
	bl	_amdgpu_atom_parse_data_header
	cbz	w0, LBB0_12
; %bb.1:
	ldr	x8, [x19, #24]
	ldrsw	x8, [x8]
	ldrsw	x9, [sp, #12]
	add	x21, x9, x8
	mov	x0, x19
	bl	_amdgpu_add_thermal_controller
	ldr	x8, [x19, #24]
	ldrsw	x8, [x8]
	ldrsw	x9, [sp, #12]
	add	x20, x9, x8
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	add	x23, x20, w0, sxtw
	ldr	x8, [x19, #24]
	ldr	w22, [x8]
	ldr	w25, [sp, #12]
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w24, [x8]
	ldr	w26, [sp, #12]
	ldr	w0, [x21]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	w0, [x23]
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, #16]
	cbz	x0, LBB0_18
; %bb.2:
	add	w8, w25, w22
	add	w8, w8, w20
	sxtw	x22, w8
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:
	mov	x25, #0
	add	w8, w26, w24
	add	w8, w8, w21
	sxtw	x21, w8
	ldr	x26, [x23, #8]
Lloh9:
	adrp	x27, _SISLANDS_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh10:
	ldr	x27, [x27, _SISLANDS_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, #2
	add	x26, x26, w8, sxtw #2
	add	x25, x25, #1
	ldrsw	x8, [x23]
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldrsw	x20, [x26]
	ldr	x24, [x21, #8]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, x24, x20, lsl #2
	ldr	x8, [x19, #16]
	add	x1, x8, x25, lsl #3
	str	x0, [x1]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_si_parse_pplib_non_clock_info
	ldr	w8, [x26, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
	mov	w20, #0
	ldr	x24, [x26, #8]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x22, #8]
	ldr	w10, [x22, #4]
	mul	w9, w10, w9
	add	x3, x8, w9, sxtw #2
	ldr	x8, [x19, #16]
	add	x1, x8, x25, lsl #3
	mov	x0, x19
	mov	x2, x20
	bl	_si_parse_pplib_clock_info
	add	w20, w20, #1
	ldr	w8, [x26, #4]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x24, x28, lsl #2]
	ldr	w10, [x22]
	cmp	w9, w10
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w10, [x27]
	cmp	w20, w10
	b.lt	LBB0_8
	b	LBB0_4
LBB0_12:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_13:
	str	w8, [x19]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x20, #0
	mov	x21, #0
	ldr	x8, [x19, #8]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x8, x20]
	ldr	x9, [x22, #8]
	ldr	w10, [x22, #4]
	mul	w8, w10, w8
	add	x23, x9, w8, sxtw #2
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	ldr	w8, [x23]
	orr	w24, w0, w8, lsl #16
	ldr	w0, [x23, #8]
	bl	_le16_to_cpu
	ldr	w8, [x23, #4]
	orr	w9, w0, w8, lsl #16
	ldr	x8, [x19, #8]
	add	x10, x8, x20
	stp	w24, w9, [x10, #4]
	add	x21, x21, #1
	ldrsw	x9, [x19, #4]
	add	x20, x20, #12
	cmp	x21, x9
	b.lt	LBB0_15
LBB0_16:
	mov	w0, #0
	b	LBB0_20
LBB0_17:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_18:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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 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	_SISLANDS_MAX_HARDWARE_POWERLEVELS,4,2 ; @SISLANDS_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_si_parse_power_table
.subsections_via_symbols
