	.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_4_5
_radeon_atombios_parse_power_table_4_5: ## @radeon_atombios_parse_power_table_4_5
	.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	24(%rbx), %rdi
	xorl	%r15d, %r15d
	leaq	-128(%rbp), %rcx
	leaq	-124(%rbp), %r8
	leaq	-56(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testl	%eax, %eax
	je	LBB0_32
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%rax), %r14
	movq	-56(%rbp), %r12
	leaq	(%r12,%r14), %rsi
	addq	$28, %rsi
	movq	%rbx, %rdi
	callq	_radeon_atombios_add_pplib_thermal_controller
	movl	(%r12,%r14), %edi
	testl	%edi, %edi
	je	LBB0_32
## %bb.2:
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_32
## %bb.3:
	addq	%r14, %r12
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.8:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%r14d, %rax
	shlq	$5, %rax
	movl	$0, (%rcx,%rax)
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jge	LBB0_5
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	movq	-56(%rbp), %r15
	addq	(%rax), %r15
	movl	24(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
	addq	%r15, %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rax
	movslq	%r15d, %r13
	imulq	%rax, %r13
	movq	24(%rbx), %rax
	movq	-56(%rbp), %rcx
	addq	(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movslq	(%r13,%r12), %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	8(%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	leal	-4(,%rax,4), %edi
                                        ## kill: def $eax killed $eax killed $rax
	decl	%eax
	movl	$4, %eax
	cmovel	%eax, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	8(%rbx), %rcx
	movq	%r15, %rdx
	shlq	$5, %rdx
	movq	%rax, 8(%rcx,%rdx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$1, 4(%r12)
	jne	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	20(%rbx), %eax
	movslq	%r14d, %rdx
	shlq	$5, %rdx
	movq	8(%rcx,%rdx), %rsi
	movl	%eax, 8(%rsi)
	movl	16(%rbx), %eax
	movl	%eax, 4(%rsi)
	movl	$1, (%rcx,%rdx)
	movl	$1, %r12d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	jle	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%rbx), %rax
	movq	%r14, %rbx
	movq	-56(%rbp), %r14
	addq	(%rax), %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	16(%r13), %edi
	callq	_le16_to_cpu
	addq	%rax, %r14
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx,%rax), %rax
	movslq	(%rax,%r15,4), %rax
	movslq	12(%r13), %rcx
	imulq	%rax, %rcx
	addq	%r14, %rcx
	movq	%rbx, %r14
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_radeon_atombios_parse_pplib_clock_info
	cmpl	$1, %eax
	sbbl	$-1, %r12d
	incq	%r15
	movslq	4(%r13), %rax
	decq	%rax
	cmpq	%rax, %r15
	jl	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	shlq	$5, %rcx
	movl	%r12d, (%rax,%rcx)
	testl	%r12d, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	imulq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rax, %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_radeon_atombios_parse_pplib_non_clock_info
	incl	%r14d
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_10:
	movq	%r14, %r15
	jmp	LBB0_32
LBB0_5:
	testl	%r14d, %r14d
	jle	LBB0_30
## %bb.6:
	movq	8(%rbx), %r8
	movl	%r14d, %r9d
	cmpl	$1, %r14d
	jne	LBB0_21
## %bb.7:
	xorl	%edx, %edx
LBB0_27:
	testb	$1, %r9b
	je	LBB0_30
## %bb.28:
	shlq	$5, %rdx
	cmpl	$2, (%r8,%rdx)
	jl	LBB0_30
## %bb.29:
	movq	_RADEON_PM_MODE_NO_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r8,%rdx), %rcx
	orl	%eax, (%rcx)
LBB0_30:
	movq	%r14, %r15
	cmpl	$-1, (%rbx)
	jne	LBB0_32
## %bb.31:
	movq	_POWER_STATE_TYPE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, 24(%rcx)
	movl	$0, (%rbx)
	movq	8(%rcx), %rax
	movq	%rax, 16(%rcx)
LBB0_32:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	40(%r8), %rdi
	xorl	%edx, %edx
	movq	_RADEON_PM_MODE_NO_DISPLAY@GOTPCREL(%rip), %r10
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$2, %rdx
	addq	$64, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_27
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, -40(%rdi)
	jl	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%r10), %eax
	movq	-32(%rdi), %rcx
	orl	%eax, (%rcx)
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$2, -8(%rdi)
	jl	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%r10), %eax
	movq	(%rdi), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_26
	.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_4_5
.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_4_5
_radeon_atombios_parse_power_table_4_5: ; @radeon_atombios_parse_power_table_4_5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, #36
	add	x4, sp, #32
	add	x5, sp, #40
	mov	x2, #0
	bl	_atom_parse_data_header
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [sp, #40]
	add	x23, x9, x8
	add	x1, x23, #28
	mov	x0, x19
	bl	_radeon_atombios_add_pplib_thermal_controller
	ldr	w8, [x23]
	cbz	w8, LBB0_5
; %bb.2:
	lsl	w0, w8, #2
Lloh6:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x25, #0
	mov	w20, #0
	mov	w28, #4
	b	LBB0_9
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, x20
	sbfiz	x9, x9, #5, #32
	str	wzr, [x8, x9]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	cmp	x25, x8
	b.ge	LBB0_18
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [sp, #40]
	add	x21, x9, x8
	ldr	w0, [x23, #24]
	bl	_le16_to_cpu
	add	x8, x21, x0
	ldrsw	x9, [x23, #4]
	sxtw	x10, w25
	madd	x27, x9, x10, x8
	ldr	x8, [x19, #24]
	ldr	x22, [x8]
	ldr	x8, [sp, #40]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w0, [x23, #20]
	bl	_le16_to_cpu
	mov	x21, x0
	ldrsw	x8, [x27]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldp	w8, w24, [x23, #4]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	subs	w8, w8, #1
	lsl	w8, w8, #2
	csel	w0, w28, w8, eq
	ldr	w1, [x26]
	bl	_kzalloc
	ldr	x8, [x19, #8]
	add	x9, x8, x25, lsl #5
	str	x0, [x9, #8]
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x23, #4]
	cmp	w9, #1
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	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]
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	b.le	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	mov	x28, #0
	mov	w22, #0
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [sp, #40]
	add	x26, x9, x8
	ldr	w0, [x23, #16]
	bl	_le16_to_cpu
	add	x8, x26, x0
	ldr	x9, [x27, #8]
	ldrsw	x9, [x9, x28, lsl #2]
	ldrsw	x10, [x23, #12]
	madd	x3, x10, x9, x8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_radeon_atombios_parse_pplib_clock_info
	cmp	w0, #0
	cinc	w22, w22, ne
	add	x28, x28, #1
	ldrsw	x8, [x23, #4]
	sub	x8, x8, #1
	cmp	x28, x8
	b.lt	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	sbfiz	x9, x20, #5, #32
	str	w22, [x8, x9]
Lloh8:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	mov	w28, #4
	cbz	w22, LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x9, x8
	add	x8, x8, x21
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	madd	x3, x24, x9, x8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_radeon_atombios_parse_pplib_non_clock_info
	add	w20, w20, #1
	b	LBB0_8
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
Lloh10:
	adrp	x10, _RADEON_PM_MODE_NO_DISPLAY@GOTPAGE
Lloh11:
	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_6
; %bb.24:
Lloh12:
	adrp	x8, _POWER_STATE_TYPE_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POWER_STATE_TYPE_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9, #24]
	str	wzr, [x19]
	ldr	x8, [x9, #8]
	str	x8, [x9, #16]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_4_5
.subsections_via_symbols
