	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_init_pg
_gfx_v8_0_init_pg:                      ## @gfx_v8_0_init_pg
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CHIP_CARRIZO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_CHIP_STONEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	_CHIP_POLARIS11@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movq	_CHIP_POLARIS12@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_CHIP_VEGAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_gfx_v8_0_init_csb
	movq	%rbx, %rdi
	callq	_gfx_v8_0_init_save_restore_list
	movq	%rbx, %rdi
	callq	_gfx_v8_0_enable_save_restore_machine
	movq	_mmRLC_JUMP_TABLE_RESTORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	%rbx, %rdi
	callq	_gfx_v8_0_init_power_gating
	movq	_mmRLC_PG_ALWAYS_ON_CU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	callq	_gfx_v8_0_init_csb
	movq	%rbx, %rdi
	callq	_gfx_v8_0_init_save_restore_list
	movq	%rbx, %rdi
	callq	_gfx_v8_0_enable_save_restore_machine
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gfx_v8_0_init_power_gating     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_CARRIZO,8,3               ## @CHIP_CARRIZO
	.comm	_CHIP_STONEY,8,3                ## @CHIP_STONEY
	.comm	_mmRLC_JUMP_TABLE_RESTORE,4,2   ## @mmRLC_JUMP_TABLE_RESTORE
	.comm	_mmRLC_PG_ALWAYS_ON_CU_MASK,4,2 ## @mmRLC_PG_ALWAYS_ON_CU_MASK
	.comm	_CHIP_POLARIS11,8,3             ## @CHIP_POLARIS11
	.comm	_CHIP_POLARIS12,8,3             ## @CHIP_POLARIS12
	.comm	_CHIP_VEGAM,8,3                 ## @CHIP_VEGAM
	.no_dead_strip	_gfx_v8_0_init_pg
.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_pg
_gfx_v8_0_init_pg:                      ; @gfx_v8_0_init_pg
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_CARRIZO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_CARRIZO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CHIP_STONEY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHIP_STONEY@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_gfx_v8_0_init_csb
	mov	x0, x19
	bl	_gfx_v8_0_init_save_restore_list
	mov	x0, x19
	bl	_gfx_v8_0_enable_save_restore_machine
Lloh6:
	adrp	x8, _mmRLC_JUMP_TABLE_RESTORE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmRLC_JUMP_TABLE_RESTORE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x19, #12]
	asr	w1, w8, #8
	bl	_WREG32
	mov	x0, x19
	bl	_gfx_v8_0_init_power_gating
Lloh9:
	adrp	x8, _mmRLC_PG_ALWAYS_ON_CU_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mmRLC_PG_ALWAYS_ON_CU_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
LBB0_2:
Lloh12:
	adrp	x9, _CHIP_POLARIS11@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHIP_POLARIS11@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _CHIP_POLARIS12@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CHIP_POLARIS12@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _CHIP_VEGAM@GOTPAGE
Lloh19:
	ldr	x11, [x11, _CHIP_VEGAM@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_gfx_v8_0_init_csb
	mov	x0, x19
	bl	_gfx_v8_0_init_save_restore_list
	mov	x0, x19
	bl	_gfx_v8_0_enable_save_restore_machine
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gfx_v8_0_init_power_gating
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_CARRIZO,8,3               ; @CHIP_CARRIZO
	.comm	_CHIP_STONEY,8,3                ; @CHIP_STONEY
	.comm	_mmRLC_JUMP_TABLE_RESTORE,4,2   ; @mmRLC_JUMP_TABLE_RESTORE
	.comm	_mmRLC_PG_ALWAYS_ON_CU_MASK,4,2 ; @mmRLC_PG_ALWAYS_ON_CU_MASK
	.comm	_CHIP_POLARIS11,8,3             ; @CHIP_POLARIS11
	.comm	_CHIP_POLARIS12,8,3             ; @CHIP_POLARIS12
	.comm	_CHIP_VEGAM,8,3                 ; @CHIP_VEGAM
	.no_dead_strip	_gfx_v8_0_init_pg
.subsections_via_symbols
