	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atombios_parse_power_table_6
_radeon_atombios_parse_power_table_6:   ## @radeon_atombios_parse_power_table_6
	.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	$104, %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	%r13d, %r13d
	leaq	-136(%rbp), %rcx
	leaq	-132(%rbp), %r8
	leaq	-48(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testl	%eax, %eax
	je	LBB0_31
## %bb.1:
	movq	24(%r12), %rax
	movq	(%rax), %r14
	movq	-48(%rbp), %r15
	leaq	(%r15,%r14), %rsi
	addq	$12, %rsi
	movq	%r12, %rdi
	callq	_radeon_atombios_add_pplib_thermal_controller
	movq	24(%r12), %rax
	movq	-48(%rbp), %rbx
	addq	(%rax), %rbx
	movl	8(%r15,%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rax
	movq	-48(%rbp), %rcx
	addq	(%rax), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	4(%r15,%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rax
	movq	-48(%rbp), %rcx
	addq	(%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	(%r15,%r14), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_le16_to_cpu
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%r15,%rbx), %edi
	testl	%edi, %edi
	je	LBB0_31
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_31
## %bb.3:
	movq	%r12, %r14
	cmpl	$0, (%r15,%rbx)
	jle	LBB0_4
## %bb.8:
	movq	8(%r15,%rbx), %r12
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%r13d, %rax
	shlq	$5, %rax
	movl	$0, (%rcx,%rax)
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	4(%r12), %rax
	leaq	(%r12,%rax,4), %r12
	addq	$8, %r12
	incq	%rsi
	movslq	(%r15,%rbx), %rax
	cmpq	%rax, %rsi
	jge	LBB0_5
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movslq	(%r12), %rdx
	shlq	$2, %rdx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	addq	(%rcx,%rax), %rdx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movl	4(%r12), %edi
	testl	%edi, %edi
	movl	$1, %eax
	cmovel	%eax, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%r14), %rcx
	movq	%rsi, %rdx
	shlq	$5, %rdx
	movq	%rax, 8(%rcx,%rdx)
	testq	%rax, %rax
	je	LBB0_31
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, 4(%r12)
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rax
	movslq	(%rax,%r14,4), %rax
	movslq	(%rbx,%r13), %rcx
	imulq	%rax, %rcx
	shlq	$2, %rcx
	addq	8(%rbx,%r13), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	_radeon_atombios_parse_pplib_clock_info
	cmpl	$1, %eax
	sbbl	$-1, %r15d
	incq	%r14
	movslq	4(%r12), %rax
	cmpq	%rax, %r14
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movslq	%r13d, %rcx
	shlq	$5, %rcx
	movl	%r15d, (%rax,%rcx)
	testl	%r15d, %r15d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	20(%r14), %eax
	movslq	%r13d, %rdx
	shlq	$5, %rdx
	movq	8(%rcx,%rdx), %rsi
	movl	%eax, 8(%rsi)
	movl	16(%r14), %eax
	movl	%eax, 4(%rsi)
	movl	$1, (%rcx,%rdx)
	movl	$1, %r15d
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	callq	_radeon_atombios_parse_pplib_non_clock_info
	incl	%r13d
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_29
LBB0_5:
	testl	%r13d, %r13d
	jle	LBB0_29
## %bb.6:
	movq	8(%r14), %r8
	movl	%r13d, %r9d
	cmpl	$1, %r13d
	jne	LBB0_20
## %bb.7:
	xorl	%edx, %edx
LBB0_26:
	testb	$1, %r9b
	je	LBB0_29
## %bb.27:
	shlq	$5, %rdx
	cmpl	$2, (%r8,%rdx)
	jl	LBB0_29
## %bb.28:
	movq	_RADEON_PM_MODE_NO_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r8,%rdx), %rcx
	orl	%eax, (%rcx)
LBB0_29:
	cmpl	$-1, (%r14)
	jne	LBB0_31
## %bb.30:
	movq	_POWER_STATE_TYPE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, 24(%rcx)
	movl	$0, (%r14)
	movq	8(%rcx), %rax
	movq	%rax, 16(%rcx)
LBB0_31:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	40(%r8), %rdi
	xorl	%edx, %edx
	movq	_RADEON_PM_MODE_NO_DISPLAY@GOTPCREL(%rip), %rbx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	addq	$2, %rdx
	addq	$64, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_26
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, -40(%rdi)
	jl	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rbx), %eax
	movq	-32(%rdi), %rcx
	orl	%eax, (%rcx)
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$2, -8(%rdi)
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rbx), %eax
	movq	(%rdi), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_PowerPlayInfo,4,2              ## @PowerPlayInfo
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RADEON_PM_MODE_NO_DISPLAY,4,2  ## @RADEON_PM_MODE_NO_DISPLAY
	.comm	_POWER_STATE_TYPE_DEFAULT,4,2   ## @POWER_STATE_TYPE_DEFAULT
	.no_dead_strip	_radeon_atombios_parse_power_table_6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atombios_parse_power_table_6
_radeon_atombios_parse_power_table_6:   ; @radeon_atombios_parse_power_table_6
	.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_15
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	add	x20, x9, x8
	add	x1, x20, #12
	mov	x0, x19
	bl	_radeon_atombios_add_pplib_thermal_controller
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	add	x21, x9, x8
	ldr	w0, [x20, #8]
	bl	_le16_to_cpu
	add	x23, x21, x0
	ldr	x8, [x19, #24]
	ldr	x28, [x8]
	ldr	x26, [sp, #24]
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	x27, [x8]
	ldr	x24, [sp, #24]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	w0, [x23]
	cbz	w0, LBB0_15
; %bb.2:
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_15
; %bb.3:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x25, #0
	mov	w20, #0
	add	x8, x26, x28
	add	x26, x8, x22
	ldr	x28, [x23, #8]
	add	x8, x24, x27
	stp	x23, x8, [sp]                   ; 16-byte Folded Spill
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, x20
	sxtw	x9, w9
	add	x8, x8, x9, lsl #5
	ldr	x9, [x8, #8]
	ldr	d0, [x19, #16]
	stur	d0, [x9, #4]
	mov	w22, #1
	str	w22, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x3, x24, x27, lsl #2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_radeon_atombios_parse_pplib_non_clock_info
	add	w20, w20, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x28, #4]
	add	x8, x28, x8, lsl #2
	add	x28, x8, #8
	add	x25, x25, #1
	ldrsw	x8, [x23]
	cmp	x25, x8
	b.ge	LBB0_18
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x24, [x21, x8]
	ldp	w27, w8, [x28]
                                        ; kill: def $w27 killed $w27 def $x27
	sxtw	x27, w27
	cmp	w8, #0
	csinc	w0, w8, wzr, ne
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	ldr	x8, [x19, #8]
	add	x9, x8, x25, lsl #5
	str	x0, [x9, #8]
	cbz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x28, #4]
	cbz	w9, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w9, #0
	b.le	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x21
	mov	x21, #0
	mov	w22, #0
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28, #8]
	ldr	w8, [x8, x21, lsl #2]
	ldr	x9, [x26, #8]
	ldr	w10, [x26]
	mul	w8, w10, w8
	add	x3, x9, w8, sxtw #2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_radeon_atombios_parse_pplib_clock_info
	cmp	w0, #0
	cinc	w22, w22, ne
	add	x21, x21, #1
	ldrsw	x8, [x28, #4]
	cmp	x21, x8
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	sbfiz	x9, x20, #5, #32
	str	w22, [x8, x9]
	mov	x21, x23
	ldr	x23, [sp]                       ; 8-byte Folded Reload
	cbnz	w22, LBB0_6
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, x20
	sbfiz	x9, x9, #5, #32
	str	wzr, [x8, x9]
	b	LBB0_7
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x20
	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
LBB0_17:
	mov	w20, #0
	b	LBB0_23
LBB0_18:
	cmp	w20, #1
	b.lt	LBB0_23
; %bb.19:
	ldr	x9, [x19, #8]
	mov	w8, w20
	add	x9, x9, #8
Lloh12:
	adrp	x10, _RADEON_PM_MODE_NO_DISPLAY@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RADEON_PM_MODE_NO_DISPLAY@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x9, x9, #32
	subs	x8, x8, #1
	b.eq	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x9, #-8]
	cmp	w11, #2
	b.lt	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w11, [x10]
	ldr	x12, [x9]
	ldr	w13, [x12]
	orr	w11, w13, w11
	str	w11, [x12]
	b	LBB0_20
LBB0_23:
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_16
; %bb.24:
Lloh14:
	adrp	x8, _POWER_STATE_TYPE_DEFAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POWER_STATE_TYPE_DEFAULT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9, #24]
	str	wzr, [x19]
	ldr	x8, [x9, #8]
	str	x8, [x9, #16]
	b	LBB0_16
	.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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_PowerPlayInfo,4,2              ; @PowerPlayInfo
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RADEON_PM_MODE_NO_DISPLAY,4,2  ; @RADEON_PM_MODE_NO_DISPLAY
	.comm	_POWER_STATE_TYPE_DEFAULT,4,2   ; @POWER_STATE_TYPE_DEFAULT
	.no_dead_strip	_radeon_atombios_parse_power_table_6
.subsections_via_symbols
