	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_init_power_gating
_gfx_v8_0_init_power_gating:            ## @gfx_v8_0_init_power_gating
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_CP_RB_WPTR_POLL_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDLE_POLL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edx
	callq	_WREG32_FIELD
	movq	_RLC_PG_DELAY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_POWER_UP_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$16, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_POWER_DOWN_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$16, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_CMD_PROPAGATE_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$16, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_MEM_SLEEP_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$16, %ecx
	callq	_REG_SET_FIELD
	movq	_mmRLC_PG_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_WREG32
	movq	_RLC_PG_DELAY_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SERDES_CMD_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_WREG32_FIELD
	movq	_RLC_AUTO_PG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRBM_REG_SAVE_GFX_IDLE_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$22000, %edx                    ## imm = 0x55F0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WREG32_FIELD                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_RB_WPTR_POLL_CNTL,4,2       ## @CP_RB_WPTR_POLL_CNTL
	.comm	_IDLE_POLL_COUNT,4,2            ## @IDLE_POLL_COUNT
	.comm	_RLC_PG_DELAY,4,2               ## @RLC_PG_DELAY
	.comm	_POWER_UP_DELAY,4,2             ## @POWER_UP_DELAY
	.comm	_POWER_DOWN_DELAY,4,2           ## @POWER_DOWN_DELAY
	.comm	_CMD_PROPAGATE_DELAY,4,2        ## @CMD_PROPAGATE_DELAY
	.comm	_MEM_SLEEP_DELAY,4,2            ## @MEM_SLEEP_DELAY
	.comm	_mmRLC_PG_DELAY,4,2             ## @mmRLC_PG_DELAY
	.comm	_RLC_PG_DELAY_2,4,2             ## @RLC_PG_DELAY_2
	.comm	_SERDES_CMD_DELAY,4,2           ## @SERDES_CMD_DELAY
	.comm	_RLC_AUTO_PG_CTRL,4,2           ## @RLC_AUTO_PG_CTRL
	.comm	_GRBM_REG_SAVE_GFX_IDLE_THRESHOLD,4,2 ## @GRBM_REG_SAVE_GFX_IDLE_THRESHOLD
	.no_dead_strip	_gfx_v8_0_init_power_gating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v8_0_init_power_gating
_gfx_v8_0_init_power_gating:            ; @gfx_v8_0_init_power_gating
	.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
Lloh0:
	adrp	x8, _CP_RB_WPTR_POLL_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_RB_WPTR_POLL_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _IDLE_POLL_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDLE_POLL_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #96
	bl	_WREG32_FIELD
Lloh6:
	adrp	x19, _RLC_PG_DELAY@GOTPAGE
Lloh7:
	ldr	x19, [x19, _RLC_PG_DELAY@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh8:
	adrp	x8, _POWER_UP_DELAY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_UP_DELAY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, #0
	mov	w3, #16
	bl	_REG_SET_FIELD
	ldr	w1, [x19]
Lloh11:
	adrp	x8, _POWER_DOWN_DELAY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POWER_DOWN_DELAY@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w3, #16
	bl	_REG_SET_FIELD
	ldr	w1, [x19]
Lloh14:
	adrp	x8, _CMD_PROPAGATE_DELAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_PROPAGATE_DELAY@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w3, #16
	bl	_REG_SET_FIELD
	ldr	w1, [x19]
Lloh17:
	adrp	x8, _MEM_SLEEP_DELAY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEM_SLEEP_DELAY@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w3, #16
	bl	_REG_SET_FIELD
	mov	x1, x0
Lloh20:
	adrp	x8, _mmRLC_PG_DELAY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mmRLC_PG_DELAY@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_WREG32
Lloh23:
	adrp	x8, _RLC_PG_DELAY_2@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RLC_PG_DELAY_2@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _SERDES_CMD_DELAY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SERDES_CMD_DELAY@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_WREG32_FIELD
Lloh29:
	adrp	x8, _RLC_AUTO_PG_CTRL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RLC_AUTO_PG_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _GRBM_REG_SAVE_GFX_IDLE_THRESHOLD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GRBM_REG_SAVE_GFX_IDLE_THRESHOLD@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #22000
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_FIELD
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_RB_WPTR_POLL_CNTL,4,2       ; @CP_RB_WPTR_POLL_CNTL
	.comm	_IDLE_POLL_COUNT,4,2            ; @IDLE_POLL_COUNT
	.comm	_RLC_PG_DELAY,4,2               ; @RLC_PG_DELAY
	.comm	_POWER_UP_DELAY,4,2             ; @POWER_UP_DELAY
	.comm	_POWER_DOWN_DELAY,4,2           ; @POWER_DOWN_DELAY
	.comm	_CMD_PROPAGATE_DELAY,4,2        ; @CMD_PROPAGATE_DELAY
	.comm	_MEM_SLEEP_DELAY,4,2            ; @MEM_SLEEP_DELAY
	.comm	_mmRLC_PG_DELAY,4,2             ; @mmRLC_PG_DELAY
	.comm	_RLC_PG_DELAY_2,4,2             ; @RLC_PG_DELAY_2
	.comm	_SERDES_CMD_DELAY,4,2           ; @SERDES_CMD_DELAY
	.comm	_RLC_AUTO_PG_CTRL,4,2           ; @RLC_AUTO_PG_CTRL
	.comm	_GRBM_REG_SAVE_GFX_IDLE_THRESHOLD,4,2 ; @GRBM_REG_SAVE_GFX_IDLE_THRESHOLD
	.no_dead_strip	_gfx_v8_0_init_power_gating
.subsections_via_symbols
