	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acp_set_powergating_state
_acp_set_powergating_state:             ## @acp_set_powergating_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AMD_PG_STATE_GATE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%esi, (%rax)
	sete	%al
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movb	%al, %dl
	movq	_AMD_IP_BLOCK_TYPE_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_amdgpu_dpm_set_powergating_by_smu
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_PG_STATE_GATE,4,2          ## @AMD_PG_STATE_GATE
	.comm	_AMD_IP_BLOCK_TYPE_ACP,4,2      ## @AMD_IP_BLOCK_TYPE_ACP
	.no_dead_strip	_acp_set_powergating_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acp_set_powergating_state
_acp_set_powergating_state:             ; @acp_set_powergating_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _AMD_PG_STATE_GATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD_PG_STATE_GATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w2, eq
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _AMD_IP_BLOCK_TYPE_ACP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMD_IP_BLOCK_TYPE_ACP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_amdgpu_dpm_set_powergating_by_smu
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_PG_STATE_GATE,4,2          ; @AMD_PG_STATE_GATE
	.comm	_AMD_IP_BLOCK_TYPE_ACP,4,2      ; @AMD_IP_BLOCK_TYPE_ACP
	.no_dead_strip	_acp_set_powergating_state
.subsections_via_symbols
