	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_hw_init
_gfx_v10_0_hw_init:                     ## @gfx_v10_0_hw_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
	callq	_gfx_v10_0_csb_vram_pin
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_amdgpu_emu_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_gfx_v10_0_init_golden_registers
LBB0_3:
	movq	8(%r14), %rax
	movq	_AMDGPU_FW_LOAD_DIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_smu_load_microcode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	callq	_smu_check_fw_status
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_gfx_v10_0_check_grbm_cam_remapping
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_gfx_v10_0_setup_grbm_cam_remapping
LBB0_9:
	movq	%r14, %rdi
	callq	_gfx_v10_0_constants_init
	movq	%r14, %rdi
	callq	_gfx_v10_0_rlc_resume
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_gfx_v10_0_tcp_harvest
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gfx_v10_0_cp_resume            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_emu_mode,4,2            ## @amdgpu_emu_mode
	.comm	_AMDGPU_FW_LOAD_DIRECT,8,3      ## @AMDGPU_FW_LOAD_DIRECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMC firmware status is not correct\n"

	.no_dead_strip	_gfx_v10_0_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v10_0_hw_init
_gfx_v10_0_hw_init:                     ; @gfx_v10_0_hw_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
	bl	_gfx_v10_0_csb_vram_pin
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _amdgpu_emu_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amdgpu_emu_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_gfx_v10_0_init_golden_registers
LBB0_4:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _AMDGPU_FW_LOAD_DIRECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDGPU_FW_LOAD_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_smu_load_microcode
	mov	x20, x0
	cbnz	w0, LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_smu_check_fw_status
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_1
LBB0_8:
	mov	x0, x19
	bl	_gfx_v10_0_check_grbm_cam_remapping
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_gfx_v10_0_setup_grbm_cam_remapping
LBB0_10:
	mov	x0, x19
	bl	_gfx_v10_0_constants_init
	mov	x0, x19
	bl	_gfx_v10_0_rlc_resume
	mov	x20, x0
	cbnz	w0, LBB0_1
; %bb.11:
	mov	x0, x19
	bl	_gfx_v10_0_tcp_harvest
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gfx_v10_0_cp_resume
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_emu_mode,4,2            ; @amdgpu_emu_mode
	.comm	_AMDGPU_FW_LOAD_DIRECT,8,3      ; @AMDGPU_FW_LOAD_DIRECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMC firmware status is not correct\n"

	.no_dead_strip	_gfx_v10_0_hw_init
.subsections_via_symbols
