	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu10_smu_init
_smu10_smu_init:                        ## @smu10_smu_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	movq	(%r14), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_AMDGPU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	(%rax), %rax
	movq	_SMU10_WMTABLE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	leaq	16(%rax,%rsi,8), %r8
	leaq	12(%rax,%rsi,8), %r9
	leaq	(%rax,%rsi,8), %rax
	addq	$8, %rax
	movq	%rax, (%rsp)
	movl	$4, %esi
	callq	_amdgpu_bo_create_kernel
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movabsq	$17179869185, %rdx              ## imm = 0x400000001
	movq	%rdx, (%rax,%rcx,8)
	movq	_TABLE_WATERMARKS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rax,%rcx,8)
	movq	(%r14), %rdi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	_SMU10_CLOCKTABLE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	leaq	16(%rax,%rsi,8), %r8
	leaq	12(%rax,%rsi,8), %r9
	leaq	(%rax,%rsi,8), %rax
	addq	$8, %rax
	movq	%rax, (%rsp)
	movl	$4, %esi
	callq	_amdgpu_bo_create_kernel
	movq	(%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	(%r15), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,8), %rdi
	addq	$16, %rdi
	leaq	(%rcx,%rax,8), %rsi
	addq	$12, %rsi
	leaq	(%rcx,%rax,8), %rdx
	addq	$8, %rdx
	callq	_amdgpu_bo_free_kernel
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	movabsq	$17179869185, %rdx              ## imm = 0x400000001
	movq	%rdx, (%rcx,%rax,8)
	movq	_TABLE_DPMCLOCKS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rcx,%rax,8)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ## @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_SMU10_WMTABLE,8,3              ## @SMU10_WMTABLE
	.comm	_TABLE_WATERMARKS,4,2           ## @TABLE_WATERMARKS
	.comm	_SMU10_CLOCKTABLE,8,3           ## @SMU10_CLOCKTABLE
	.comm	_TABLE_DPMCLOCKS,4,2            ## @TABLE_DPMCLOCKS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu10_smu_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_smu_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smu10_smu_init:                        ; @smu10_smu_init
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x0, [x20, #8]
	ldr	x0, [x20]
Lloh3:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh5:
	adrp	x22, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
	ldr	w3, [x22]
	ldr	x8, [x19]
Lloh7:
	adrp	x21, _SMU10_WMTABLE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SMU10_WMTABLE@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x4, x8, #16
	add	x5, x8, #12
	add	x6, x8, #8
	mov	w1, #4
	bl	_amdgpu_bo_create_kernel
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x9, x9, x10, x8
Lloh9:
	adrp	x11, lCPI0_0@PAGE
Lloh10:
	ldr	d8, [x11, lCPI0_0@PAGEOFF]
	str	d8, [x9]
Lloh11:
	adrp	x11, _TABLE_WATERMARKS@GOTPAGE
Lloh12:
	ldr	x11, [x11, _TABLE_WATERMARKS@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	str	w11, [x9, #20]
	ldr	x0, [x20]
	ldr	w2, [x23]
Lloh14:
	adrp	x20, _SMU10_CLOCKTABLE@GOTPAGE
Lloh15:
	ldr	x20, [x20, _SMU10_CLOCKTABLE@GOTPAGEOFF]
	ldr	w3, [x22]
	ldr	x9, [x20]
	madd	x8, x9, x10, x8
	add	x4, x8, #16
	add	x5, x8, #12
	add	x6, x8, #8
	mov	w1, #4
	bl	_amdgpu_bo_create_kernel
	ldr	x8, [x19]
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x9, [x21]
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x0, x8, #16
	add	x1, x8, #12
	add	x2, x8, #8
	bl	_amdgpu_bo_free_kernel
LBB0_4:
	mov	x0, x19
	bl	_kfree
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x9, [x20]
	mov	w10, #24
	madd	x8, x9, x10, x8
	str	d8, [x8]
Lloh20:
	adrp	x9, _TABLE_DPMCLOCKS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TABLE_DPMCLOCKS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	str	w9, [x8, #20]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ; @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_SMU10_WMTABLE,8,3              ; @SMU10_WMTABLE
	.comm	_TABLE_WATERMARKS,4,2           ; @TABLE_WATERMARKS
	.comm	_SMU10_CLOCKTABLE,8,3           ; @SMU10_CLOCKTABLE
	.comm	_TABLE_DPMCLOCKS,4,2            ; @TABLE_DPMCLOCKS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu10_smu_init
.subsections_via_symbols
