	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function kv_dpm_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_kv_dpm_init
	.p2align	4, 0x90
_kv_dpm_init:                           ## @kv_dpm_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$112, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	callq	_r600_get_platform_caps
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	%r14, %rdi
	callq	_r600_parse_extended_power_table
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	_SUMO_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.5:
	movq	104(%rbx), %rcx
	xorl	%edx, %edx
	movq	_TRINITY_AT_DFLT@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_6
LBB0_7:
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	8(%r14), %rax
	xorl	%ecx, %ecx
	cmpl	$6217, (%rax)                   ## imm = 0x1849
	setne	%cl
	movl	%ecx, (%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rbx)
	movl	$0, 12(%rbx)
	movq	%rax, 32(%rbx)
	movl	$0, 40(%rbx)
	movq	_radeon_bapm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.9:
	movq	(%r14), %rax
	movq	_CHIP_KABINI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_CHIP_MULLINS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
LBB0_11:
	movl	$0, 44(%rbx)
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movl	$1, 44(%rbx)
LBB0_13:
	movq	$0, 88(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,1,1]
	movups	%xmm0, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movq	%r14, %rdi
	callq	_kv_parse_sys_info_table
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_kv_patch_voltage_values
	movq	%r14, %rdi
	callq	_kv_construct_boot_state
	movq	%r14, %rdi
	callq	_kv_parse_power_table
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movl	$1, 80(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,4,2 ## @SUMO_MAX_HARDWARE_POWERLEVELS
	.comm	_TRINITY_AT_DFLT,4,2            ## @TRINITY_AT_DFLT
	.comm	_SMC_RAM_END,4,2                ## @SMC_RAM_END
	.comm	_radeon_bapm,4,2                ## @radeon_bapm
	.comm	_CHIP_KABINI,8,3                ## @CHIP_KABINI
	.comm	_CHIP_MULLINS,8,3               ## @CHIP_MULLINS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function kv_dpm_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_kv_dpm_init
	.p2align	2
_kv_dpm_init:                           ; @kv_dpm_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #112
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	str	x0, [x20, #16]
	mov	x0, x20
	bl	_r600_get_platform_caps
	cbnz	w0, LBB0_12
; %bb.2:
	mov	x0, x20
	bl	_r600_parse_extended_power_table
	cbnz	w0, LBB0_12
; %bb.3:
Lloh3:
	adrp	x8, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x9, #0
	ldr	x10, [x19, #104]
Lloh5:
	adrp	x11, _TRINITY_AT_DFLT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TRINITY_AT_DFLT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_5
LBB0_6:
Lloh7:
	adrp	x8, _SMC_RAM_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SMC_RAM_END@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #96]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	mov	w9, #6217
	cmp	w8, w9
	cset	w8, ne
	str	w8, [x19]
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	str	wzr, [x19, #12]
	str	d0, [x19, #32]
	str	wzr, [x19, #40]
Lloh10:
	adrp	x8, _radeon_bapm@GOTPAGE
Lloh11:
	ldr	x8, [x8, _radeon_bapm@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.7:
	cmn	w8, #1
	b.ne	LBB0_13
; %bb.8:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _CHIP_KABINI@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CHIP_KABINI@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.9:
Lloh16:
	adrp	x9, _CHIP_MULLINS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CHIP_MULLINS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_10:
	str	wzr, [x19, #44]
	b	LBB0_14
LBB0_11:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w8, #1
	str	w8, [x19, #44]
LBB0_14:
	str	xzr, [x19, #88]
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19, #48]
	stp	xzr, xzr, [x19, #64]
	mov	x0, x20
	bl	_kv_parse_sys_info_table
	cbnz	w0, LBB0_12
; %bb.15:
	mov	x0, x20
	bl	_kv_patch_voltage_values
	mov	x0, x20
	bl	_kv_construct_boot_state
	mov	x0, x20
	bl	_kv_parse_power_table
	cbnz	w0, LBB0_12
; %bb.16:
	mov	w8, #1
	str	w8, [x19, #80]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,4,2 ; @SUMO_MAX_HARDWARE_POWERLEVELS
	.comm	_TRINITY_AT_DFLT,4,2            ; @TRINITY_AT_DFLT
	.comm	_SMC_RAM_END,4,2                ; @SMC_RAM_END
	.comm	_radeon_bapm,4,2                ; @radeon_bapm
	.comm	_CHIP_KABINI,8,3                ; @CHIP_KABINI
	.comm	_CHIP_MULLINS,8,3               ; @CHIP_MULLINS
.subsections_via_symbols
