	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_update_gfx_mg_power_gating
_gfx_v9_0_update_gfx_mg_power_gating:   ## @gfx_v9_0_update_gfx_mg_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_AMD_PG_SUPPORT_GFX_SMG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	setne	%al
	testl	%esi, %esi
	setne	%r14b
	andb	%r14b, %al
	movzbl	%al, %esi
	callq	_gfx_v9_0_enable_gfx_static_mg_power_gating
	movq	_AMD_PG_SUPPORT_GFX_DMG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	setne	%al
	andb	%r14b, %al
	movzbl	%al, %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gfx_v9_0_enable_gfx_dynamic_mg_power_gating ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_PG_SUPPORT_GFX_SMG,4,2     ## @AMD_PG_SUPPORT_GFX_SMG
	.comm	_AMD_PG_SUPPORT_GFX_DMG,4,2     ## @AMD_PG_SUPPORT_GFX_DMG
	.no_dead_strip	_gfx_v9_0_update_gfx_mg_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_v9_0_update_gfx_mg_power_gating
_gfx_v9_0_update_gfx_mg_power_gating:   ; @gfx_v9_0_update_gfx_mg_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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AMD_PG_SUPPORT_GFX_SMG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GFX_SMG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	cmp	w1, #0
	cset	w20, ne
	and	w1, w20, w8
	bl	_gfx_v9_0_enable_gfx_static_mg_power_gating
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _AMD_PG_SUPPORT_GFX_DMG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GFX_DMG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	and	w1, w20, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gfx_v9_0_enable_gfx_dynamic_mg_power_gating
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_PG_SUPPORT_GFX_SMG,4,2     ; @AMD_PG_SUPPORT_GFX_SMG
	.comm	_AMD_PG_SUPPORT_GFX_DMG,4,2     ; @AMD_PG_SUPPORT_GFX_DMG
	.no_dead_strip	_gfx_v9_0_update_gfx_mg_power_gating
.subsections_via_symbols
