	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_init_pg
_si_init_pg:                            ## @si_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
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_RADEON_PG_SUPPORT_SDMA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_si_init_dma_pg
LBB0_3:
	movq	%rbx, %rdi
	callq	_si_init_ao_cu_mask
	movq	_RADEON_PG_SUPPORT_GFX_PG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_si_init_gfx_cgpg
	jmp	LBB0_6
LBB0_7:
	movq	_RLC_SAVE_AND_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	_RLC_CLEAR_STATE_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	sarl	$8, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_5:
	movq	_RLC_SAVE_AND_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	_RLC_CLEAR_STATE_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_si_enable_dma_pg
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_si_enable_gfx_cgpg             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_PG_SUPPORT_SDMA,4,2     ## @RADEON_PG_SUPPORT_SDMA
	.comm	_RADEON_PG_SUPPORT_GFX_PG,4,2   ## @RADEON_PG_SUPPORT_GFX_PG
	.comm	_RLC_SAVE_AND_RESTORE_BASE,4,2  ## @RLC_SAVE_AND_RESTORE_BASE
	.comm	_RLC_CLEAR_STATE_RESTORE_BASE,4,2 ## @RLC_CLEAR_STATE_RESTORE_BASE
	.no_dead_strip	_si_init_pg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_init_pg
_si_init_pg:                            ; @si_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	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _RADEON_PG_SUPPORT_SDMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_PG_SUPPORT_SDMA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_si_init_dma_pg
LBB0_3:
	mov	x0, x19
	bl	_si_init_ao_cu_mask
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _RADEON_PG_SUPPORT_GFX_PG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RADEON_PG_SUPPORT_GFX_PG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_si_init_gfx_cgpg
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _RLC_SAVE_AND_RESTORE_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RLC_SAVE_AND_RESTORE_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
	asr	w1, w8, #8
	bl	_WREG32
Lloh9:
	adrp	x8, _RLC_CLEAR_STATE_RESTORE_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RLC_CLEAR_STATE_RESTORE_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	asr	w1, w8, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
LBB0_6:
Lloh12:
	adrp	x8, _RLC_SAVE_AND_RESTORE_BASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RLC_SAVE_AND_RESTORE_BASE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
	asr	w1, w8, #8
	bl	_WREG32
Lloh15:
	adrp	x8, _RLC_CLEAR_STATE_RESTORE_BASE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RLC_CLEAR_STATE_RESTORE_BASE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	asr	w1, w8, #8
	bl	_WREG32
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_si_enable_dma_pg
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_si_enable_gfx_cgpg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_PG_SUPPORT_SDMA,4,2     ; @RADEON_PG_SUPPORT_SDMA
	.comm	_RADEON_PG_SUPPORT_GFX_PG,4,2   ; @RADEON_PG_SUPPORT_GFX_PG
	.comm	_RLC_SAVE_AND_RESTORE_BASE,4,2  ; @RLC_SAVE_AND_RESTORE_BASE
	.comm	_RLC_CLEAR_STATE_RESTORE_BASE,4,2 ; @RLC_CLEAR_STATE_RESTORE_BASE
	.no_dead_strip	_si_init_pg
.subsections_via_symbols
