	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu10_hwmgr_backend_init
_smu10_hwmgr_backend_init:              ## @smu10_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 48(%r14)
	movq	%r14, %rdi
	callq	_smu10_initialize_dpm_defaults
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_smu10_populate_clock_table
	movq	%r14, %rdi
	callq	_smu10_get_system_info_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_smu10_construct_boot_state
	movq	_SMU10_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movl	$500, 16(%r14)                  ## imm = 0x1F4
	movabsq	$2147483648050, %rax            ## imm = 0x1F400000032
	movq	%rax, 8(%r14)
	movq	_SMU10_UMD_PSTATE_GFXCLK@GOTPCREL(%rip), %rax
	imull	$100, (%rax), %eax
	movl	%eax, (%r14)
	movq	_SMU10_UMD_PSTATE_FCLK@GOTPCREL(%rip), %rax
	imull	$100, (%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smu10_initialize_dpm_defaults failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"smu10_get_system_info_data failed\n"

	.comm	_SMU10_MAX_HARDWARE_POWERLEVELS,8,3 ## @SMU10_MAX_HARDWARE_POWERLEVELS
	.comm	_SMU10_UMD_PSTATE_GFXCLK,4,2    ## @SMU10_UMD_PSTATE_GFXCLK
	.comm	_SMU10_UMD_PSTATE_FCLK,4,2      ## @SMU10_UMD_PSTATE_FCLK
	.no_dead_strip	_smu10_hwmgr_backend_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function smu10_hwmgr_backend_init
lCPI0_0:
	.long	50                              ; 0x32
	.long	500                             ; 0x1f4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smu10_hwmgr_backend_init:              ; @smu10_hwmgr_backend_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [x19, #48]
	mov	x0, x19
	bl	_smu10_initialize_dpm_defaults
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_smu10_populate_clock_table
	mov	x0, x19
	bl	_smu10_get_system_info_data
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_smu10_construct_boot_state
	mov	w8, #500
	str	w8, [x19, #16]
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh12:
	adrp	x8, _SMU10_UMD_PSTATE_GFXCLK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMU10_UMD_PSTATE_GFXCLK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #100
	mul	w8, w8, w9
	str	w8, [x19]
Lloh15:
	adrp	x8, _SMU10_UMD_PSTATE_FCLK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMU10_UMD_PSTATE_FCLK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mul	w8, w8, w9
Lloh18:
	adrp	x9, _SMU10_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SMU10_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	stp	x9, x9, [x19, #32]
	str	xzr, [x19, #24]
	str	d0, [x19, #8]
	str	w8, [x19, #4]
LBB0_7:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smu10_initialize_dpm_defaults failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"smu10_get_system_info_data failed\n"

	.comm	_SMU10_MAX_HARDWARE_POWERLEVELS,8,3 ; @SMU10_MAX_HARDWARE_POWERLEVELS
	.comm	_SMU10_UMD_PSTATE_GFXCLK,4,2    ; @SMU10_UMD_PSTATE_GFXCLK
	.comm	_SMU10_UMD_PSTATE_FCLK,4,2      ; @SMU10_UMD_PSTATE_FCLK
	.no_dead_strip	_smu10_hwmgr_backend_init
.subsections_via_symbols
