	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vega12_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
_vega12_hwmgr_backend_init:             ## @vega12_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, %r14
	movq	56(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 48(%r14)
	movq	%r14, %rdi
	callq	_vega12_set_default_registry_data
	movabsq	$1095216660735, %rax            ## imm = 0xFF000000FF
	movq	%rax, (%rbx)
	movq	_VEGA12_VOLTAGE_CONTROL_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rbx)
	movq	%rax, 56(%rbx)
	movq	%rax, 48(%rbx)
	movq	$0, 40(%rbx)
	movl	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_vega12_set_features_platform_caps
	movq	%r14, %rdi
	callq	_vega12_init_dpm_defaults
	movq	%r14, %rdi
	callq	_vega12_set_private_data_based_on_pptable
	movl	$0, 12(%rbx)
	movq	_VEGA12_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,50,536871936,500]
	movups	%xmm0, 24(%r14)
	movl	$500, 40(%r14)                  ## imm = 0x1F4
	movl	(%r15), %eax
	movl	%eax, 36(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 28(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 24(%rbx)
	movl	4(%r14), %eax
	imull	8(%r14), %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movl	%eax, 20(%rbx)
	movq	_PP_GFXOFF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	movl	$1, 16(%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movl	$0, 16(%rbx)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	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	_VEGA12_VOLTAGE_CONTROL_NONE,8,3 ## @VEGA12_VOLTAGE_CONTROL_NONE
	.comm	_VEGA12_MAX_HARDWARE_POWERLEVELS,4,2 ## @VEGA12_MAX_HARDWARE_POWERLEVELS
	.comm	_PP_GFXOFF_MASK,4,2             ## @PP_GFXOFF_MASK
	.no_dead_strip	_vega12_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 vega12_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
_vega12_hwmgr_backend_init:             ; @vega12_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	x20, x0
	ldr	x21, [x0, #56]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x0, [x20, #48]
	mov	x0, x20
	bl	_vega12_set_default_registry_data
	movi	d0, #0x0000ff000000ff
	str	d0, [x19]
Lloh3:
	adrp	x8, _VEGA12_VOLTAGE_CONTROL_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VEGA12_VOLTAGE_CONTROL_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #56]
	stp	xzr, x8, [x19, #40]
	str	wzr, [x19, #8]
	mov	x0, x20
	bl	_vega12_set_features_platform_caps
	mov	x0, x20
	bl	_vega12_init_dpm_defaults
	mov	x0, x20
	bl	_vega12_set_private_data_based_on_pptable
	str	wzr, [x19, #12]
Lloh6:
	adrp	x8, _VEGA12_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VEGA12_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, lCPI0_0@PAGE
Lloh10:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [x20, #24]
	mov	w9, #500
	stp	w9, w8, [x20, #40]
	ldr	w8, [x21]
	ldr	w9, [x20, #20]
	stp	w9, w8, [x19, #32]
	ldur	d0, [x20, #12]
	str	d0, [x19, #24]
	ldp	w9, w8, [x20, #4]
	ldr	w10, [x20]
	mul	w8, w9, w8
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	str	w8, [x19, #20]
Lloh11:
	adrp	x8, _PP_GFXOFF_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PP_GFXOFF_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	str	wzr, [x19, #16]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh9, Lloh10
	.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	_VEGA12_VOLTAGE_CONTROL_NONE,8,3 ; @VEGA12_VOLTAGE_CONTROL_NONE
	.comm	_VEGA12_MAX_HARDWARE_POWERLEVELS,4,2 ; @VEGA12_MAX_HARDWARE_POWERLEVELS
	.comm	_PP_GFXOFF_MASK,4,2             ; @PP_GFXOFF_MASK
	.no_dead_strip	_vega12_hwmgr_backend_init
.subsections_via_symbols
