	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vega20_hwmgr_backend_init
LCPI0_0:
	.long	2                               ## 0x2
	.long	50                              ## 0x32
	.long	536871936                       ## 0x20000400
	.long	500                             ## 0x1f4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vega20_hwmgr_backend_init:             ## @vega20_hwmgr_backend_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	64(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, 56(%rbx)
	movq	8(%rbx), %rax
	movq	_PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movb	(%rax,%rdx,4), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movq	%rdx, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movq	%rbx, %rdi
	callq	_vega20_set_default_registry_data
	movl	$255, (%r14)
	movq	_VEGA20_VOLTAGE_CONTROL_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	movq	%rax, 40(%r14)
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movl	$0, 4(%r14)
	movq	%rbx, %rdi
	callq	_vega20_set_features_platform_caps
	movq	%rbx, %rdi
	callq	_vega20_init_dpm_defaults
	movq	%rbx, %rdi
	callq	_vega20_set_private_data_based_on_pptable
	movl	$0, 8(%r14)
	movq	_VEGA20_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,50,536871936,500]
	movups	%xmm0, 32(%rbx)
	movl	$500, 48(%rbx)                  ## imm = 0x1F4
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
	movl	$0, 12(%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT,8,3 ## @PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT
	.comm	_VEGA20_VOLTAGE_CONTROL_NONE,8,3 ## @VEGA20_VOLTAGE_CONTROL_NONE
	.comm	_VEGA20_MAX_HARDWARE_POWERLEVELS,4,2 ## @VEGA20_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_vega20_hwmgr_backend_init
.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 vega20_hwmgr_backend_init
lCPI0_0:
	.long	2                               ; 0x2
	.long	50                              ; 0x32
	.long	536871936                       ; 0x20000400
	.long	500                             ; 0x1f4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vega20_hwmgr_backend_init:             ; @vega20_hwmgr_backend_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0, #64]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	x0, [x19, #56]
	mov	w10, #1
	lsl	w8, w10, w8
	str	w8, [x19]
	stp	x9, x9, [x19, #16]
	mov	x0, x19
	bl	_vega20_set_default_registry_data
	mov	w8, #255
Lloh6:
	adrp	x9, _VEGA20_VOLTAGE_CONTROL_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VEGA20_VOLTAGE_CONTROL_NONE@GOTPAGEOFF]
	str	x8, [x20]
Lloh8:
	ldr	x8, [x9]
	stp	x8, x8, [x20, #40]
	stp	xzr, x8, [x20, #24]
	mov	x0, x19
	bl	_vega20_set_features_platform_caps
	mov	x0, x19
	bl	_vega20_init_dpm_defaults
	mov	x0, x19
	bl	_vega20_set_private_data_based_on_pptable
	mov	w0, #0
	str	wzr, [x20, #8]
Lloh9:
	adrp	x8, _VEGA20_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VEGA20_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x19, #32]
	mov	w9, #500
	stp	w9, w8, [x19, #48]
	ldr	w8, [x21]
	stp	wzr, w8, [x20, #12]
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT,8,3 ; @PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT
	.comm	_VEGA20_VOLTAGE_CONTROL_NONE,8,3 ; @VEGA20_VOLTAGE_CONTROL_NONE
	.comm	_VEGA20_MAX_HARDWARE_POWERLEVELS,4,2 ; @VEGA20_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_vega20_hwmgr_backend_init
.subsections_via_symbols
