	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_tables_init
_navi10_tables_init:                    ## @navi10_tables_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SMU_TABLE_PPTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_AMDGPU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_SMU_TABLE_INIT
	movq	_SMU_TABLE_WATERMARKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_SMU_TABLE_INIT
	movq	_SMU_TABLE_SMU_METRICS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_SMU_TABLE_INIT
	movq	_SMU_TABLE_OVERDRIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_SMU_TABLE_INIT
	movq	_SMU_TABLE_PMSTATUSLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMU11_TOOL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	callq	_SMU_TABLE_INIT
	movq	_SMU_TABLE_ACTIVITY_MONITOR_COEFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_SMU_TABLE_INIT
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_TABLE_PPTABLE,4,2          ## @SMU_TABLE_PPTABLE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ## @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_SMU_TABLE_WATERMARKS,4,2       ## @SMU_TABLE_WATERMARKS
	.comm	_SMU_TABLE_SMU_METRICS,4,2      ## @SMU_TABLE_SMU_METRICS
	.comm	_SMU_TABLE_OVERDRIVE,4,2        ## @SMU_TABLE_OVERDRIVE
	.comm	_SMU_TABLE_PMSTATUSLOG,4,2      ## @SMU_TABLE_PMSTATUSLOG
	.comm	_SMU11_TOOL_SIZE,4,2            ## @SMU11_TOOL_SIZE
	.comm	_SMU_TABLE_ACTIVITY_MONITOR_COEFF,4,2 ## @SMU_TABLE_ACTIVITY_MONITOR_COEFF
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_navi10_tables_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_tables_init
_navi10_tables_init:                    ; @navi10_tables_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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SMU_TABLE_PPTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_TABLE_PPTABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh5:
	adrp	x22, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_SMU_TABLE_INIT
Lloh7:
	adrp	x8, _SMU_TABLE_WATERMARKS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SMU_TABLE_WATERMARKS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x21]
	ldr	w4, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_SMU_TABLE_INIT
Lloh10:
	adrp	x8, _SMU_TABLE_SMU_METRICS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMU_TABLE_SMU_METRICS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w3, [x21]
	ldr	w4, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_SMU_TABLE_INIT
Lloh13:
	adrp	x8, _SMU_TABLE_OVERDRIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMU_TABLE_OVERDRIVE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w3, [x21]
	ldr	w4, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_SMU_TABLE_INIT
Lloh16:
	adrp	x8, _SMU_TABLE_PMSTATUSLOG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SMU_TABLE_PMSTATUSLOG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SMU11_TOOL_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SMU11_TOOL_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	w3, [x21]
	ldr	w4, [x22]
	mov	x0, x20
	bl	_SMU_TABLE_INIT
Lloh22:
	adrp	x8, _SMU_TABLE_ACTIVITY_MONITOR_COEFF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SMU_TABLE_ACTIVITY_MONITOR_COEFF@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w3, [x21]
	ldr	w4, [x22]
	mov	x0, x20
	mov	w2, #4
	bl	_SMU_TABLE_INIT
Lloh25:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	w0, [x19, #8]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_3
LBB0_2:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	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	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_TABLE_PPTABLE,4,2          ; @SMU_TABLE_PPTABLE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ; @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_SMU_TABLE_WATERMARKS,4,2       ; @SMU_TABLE_WATERMARKS
	.comm	_SMU_TABLE_SMU_METRICS,4,2      ; @SMU_TABLE_SMU_METRICS
	.comm	_SMU_TABLE_OVERDRIVE,4,2        ; @SMU_TABLE_OVERDRIVE
	.comm	_SMU_TABLE_PMSTATUSLOG,4,2      ; @SMU_TABLE_PMSTATUSLOG
	.comm	_SMU11_TOOL_SIZE,4,2            ; @SMU11_TOOL_SIZE
	.comm	_SMU_TABLE_ACTIVITY_MONITOR_COEFF,4,2 ; @SMU_TABLE_ACTIVITY_MONITOR_COEFF
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_navi10_tables_init
.subsections_via_symbols
