	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function trinity_dpm_init
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_1:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_trinity_dpm_init
	.p2align	4, 0x90
_trinity_dpm_init:                      ## @trinity_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	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	movq	_SUMO_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:
	movq	56(%rbx), %rcx
	xorl	%edx, %edx
	movq	_TRINITY_AT_DFLT@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_4
LBB0_5:
	movq	_radeon_bapm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	cmpl	$5218, (%rax)                   ## imm = 0x1462
	jne	LBB0_8
LBB0_9:
	movl	$1, (%rbx)
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_8:
	movl	$0, (%rbx)
LBB0_10:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, 4(%rbx)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [0,0,0,1]
	movups	%xmm0, 20(%rbx)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 36(%rbx)
	movq	%r14, %rdi
	callq	_trinity_parse_sys_info_table
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%r14, %rdi
	callq	_trinity_construct_boot_state
	movq	%r14, %rdi
	callq	_r600_get_platform_caps
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	callq	_r600_parse_extended_power_table
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	callq	_trinity_parse_power_table
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	48(%rbx), %eax
	movl	%eax, 52(%rbx)
	movl	$1, 44(%rbx)
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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	_radeon_bapm,4,2                ## @radeon_bapm
.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 trinity_dpm_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_trinity_dpm_init
	.p2align	2
_trinity_dpm_init:                      ; @trinity_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, #64
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	str	x0, [x20, #8]
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_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #56]
Lloh5:
	adrp	x11, _TRINITY_AT_DFLT@GOTPAGE
Lloh6:
	ldr	x11, [x11, _TRINITY_AT_DFLT@GOTPAGEOFF]
LBB0_3:                                 ; =>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_3
LBB0_4:
Lloh7:
	adrp	x8, _radeon_bapm@GOTPAGE
Lloh8:
	ldr	x8, [x8, _radeon_bapm@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.5:
	cmn	w8, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	w8, [x8]
	mov	w9, #5218
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_9:
	str	wzr, [x19]
LBB0_10:
	movi.4s	v0, #1
	stur	q0, [x19, #4]
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #20]
Lloh15:
	adrp	x8, lCPI0_1@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #36]
	mov	x0, x20
	bl	_trinity_parse_sys_info_table
	cbnz	w0, LBB0_15
; %bb.11:
	mov	x0, x20
	bl	_trinity_construct_boot_state
	mov	x0, x20
	bl	_r600_get_platform_caps
	cbnz	w0, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_r600_parse_extended_power_table
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_trinity_parse_power_table
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w8, [x19, #48]
	str	w8, [x19, #52]
	mov	w8, #1
	str	w8, [x19, #44]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.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	_radeon_bapm,4,2                ; @radeon_bapm
.subsections_via_symbols
