	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv6xx_setup_asic               ## -- Begin function rv6xx_setup_asic
	.p2align	4, 0x90
_rv6xx_setup_asic:                      ## @rv6xx_setup_asic
	.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
	callq	_r600_enable_acpi_pm
	movq	_radeon_aspm@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %eax
	movq	_ATOM_PP_PLATFORM_CAP_ASPM_L0s@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_rv6xx_enable_l0s
	movl	(%rbx), %eax
LBB0_3:
	movq	_ATOM_PP_PLATFORM_CAP_ASPM_L1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_rv6xx_enable_l1
	movl	(%rbx), %eax
LBB0_5:
	movq	_ATOM_PP_PLATFORM_CAP_TURNOFFPLL_ASPML1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rv6xx_enable_pll_sleep_in_l1   ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_radeon_aspm,8,3                ## @radeon_aspm
	.comm	_ATOM_PP_PLATFORM_CAP_ASPM_L0s,4,2 ## @ATOM_PP_PLATFORM_CAP_ASPM_L0s
	.comm	_ATOM_PP_PLATFORM_CAP_ASPM_L1,4,2 ## @ATOM_PP_PLATFORM_CAP_ASPM_L1
	.comm	_ATOM_PP_PLATFORM_CAP_TURNOFFPLL_ASPML1,4,2 ## @ATOM_PP_PLATFORM_CAP_TURNOFFPLL_ASPML1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv6xx_setup_asic               ; -- Begin function rv6xx_setup_asic
	.p2align	2
_rv6xx_setup_asic:                      ; @rv6xx_setup_asic
	.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	_r600_enable_acpi_pm
Lloh0:
	adrp	x8, _radeon_aspm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _radeon_aspm@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _ATOM_PP_PLATFORM_CAP_ASPM_L0s@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATOM_PP_PLATFORM_CAP_ASPM_L0s@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_rv6xx_enable_l0s
	ldr	w8, [x19]
LBB0_3:
Lloh6:
	adrp	x9, _ATOM_PP_PLATFORM_CAP_ASPM_L1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATOM_PP_PLATFORM_CAP_ASPM_L1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_rv6xx_enable_l1
	ldr	w8, [x19]
LBB0_5:
Lloh9:
	adrp	x9, _ATOM_PP_PLATFORM_CAP_TURNOFFPLL_ASPML1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATOM_PP_PLATFORM_CAP_TURNOFFPLL_ASPML1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rv6xx_enable_pll_sleep_in_l1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_radeon_aspm,8,3                ; @radeon_aspm
	.comm	_ATOM_PP_PLATFORM_CAP_ASPM_L0s,4,2 ; @ATOM_PP_PLATFORM_CAP_ASPM_L0s
	.comm	_ATOM_PP_PLATFORM_CAP_ASPM_L1,4,2 ; @ATOM_PP_PLATFORM_CAP_ASPM_L1
	.comm	_ATOM_PP_PLATFORM_CAP_TURNOFFPLL_ASPML1,4,2 ; @ATOM_PP_PLATFORM_CAP_TURNOFFPLL_ASPML1
.subsections_via_symbols
