	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v3_0_get_clockgating_state
_sdma_v3_0_get_clockgating_state:       ## @sdma_v3_0_get_clockgating_state
	.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	%rsi, %rbx
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
LBB0_2:
	movq	_mmSDMA0_CLK_CTRL@GOTPCREL(%rip), %rax
	movq	_sdma_offsets@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_RREG32
	movq	_SDMA0_CLK_CTRL__SOFT_OVERRIDE0_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_AMD_CG_SUPPORT_SDMA_MGCG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_4:
	movq	_mmSDMA0_POWER_CNTL@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_RREG32
	movq	_SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_AMD_CG_SUPPORT_SDMA_LS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSDMA0_CLK_CTRL,8,3           ## @mmSDMA0_CLK_CTRL
	.comm	_sdma_offsets,8,3               ## @sdma_offsets
	.comm	_SDMA0_CLK_CTRL__SOFT_OVERRIDE0_MASK,4,2 ## @SDMA0_CLK_CTRL__SOFT_OVERRIDE0_MASK
	.comm	_AMD_CG_SUPPORT_SDMA_MGCG,4,2   ## @AMD_CG_SUPPORT_SDMA_MGCG
	.comm	_mmSDMA0_POWER_CNTL,8,3         ## @mmSDMA0_POWER_CNTL
	.comm	_SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK,4,2 ## @SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK
	.comm	_AMD_CG_SUPPORT_SDMA_LS,4,2     ## @AMD_CG_SUPPORT_SDMA_LS
	.no_dead_strip	_sdma_v3_0_get_clockgating_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_v3_0_get_clockgating_state
_sdma_v3_0_get_clockgating_state:       ; @sdma_v3_0_get_clockgating_state
	.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, x1
	bl	_amdgpu_sriov_vf
	cbz	x0, LBB0_2
; %bb.1:
	str	wzr, [x19]
LBB0_2:
Lloh0:
	adrp	x8, _mmSDMA0_CLK_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSDMA0_CLK_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _sdma_offsets@GOTPAGE
Lloh4:
	ldr	x20, [x20, _sdma_offsets@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh5:
	adrp	x8, _SDMA0_CLK_CTRL__SOFT_OVERRIDE0_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDMA0_CLK_CTRL__SOFT_OVERRIDE0_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _AMD_CG_SUPPORT_SDMA_MGCG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AMD_CG_SUPPORT_SDMA_MGCG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
Lloh11:
	adrp	x8, _mmSDMA0_POWER_CNTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmSDMA0_POWER_CNTL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh14:
	adrp	x8, _SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _AMD_CG_SUPPORT_SDMA_LS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AMD_CG_SUPPORT_SDMA_LS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSDMA0_CLK_CTRL,8,3           ; @mmSDMA0_CLK_CTRL
	.comm	_sdma_offsets,8,3               ; @sdma_offsets
	.comm	_SDMA0_CLK_CTRL__SOFT_OVERRIDE0_MASK,4,2 ; @SDMA0_CLK_CTRL__SOFT_OVERRIDE0_MASK
	.comm	_AMD_CG_SUPPORT_SDMA_MGCG,4,2   ; @AMD_CG_SUPPORT_SDMA_MGCG
	.comm	_mmSDMA0_POWER_CNTL,8,3         ; @mmSDMA0_POWER_CNTL
	.comm	_SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK,4,2 ; @SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK
	.comm	_AMD_CG_SUPPORT_SDMA_LS,4,2     ; @AMD_CG_SUPPORT_SDMA_LS
	.no_dead_strip	_sdma_v3_0_get_clockgating_state
.subsections_via_symbols
