	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v5_0_get_clockgating_state
_sdma_v5_0_get_clockgating_state:       ## @sdma_v5_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, %r14
	movq	%rdi, %rbx
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$0, (%r14)
LBB0_2:
	movq	_mmSDMA0_CLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sdma_v5_0_get_reg_offset
	movl	%eax, %edi
	callq	_RREG32
	movq	_SDMA0_CLK_CTRL__SOFT_OVERRIDE7_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, (%r14)
LBB0_4:
	movq	_mmSDMA0_POWER_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sdma_v5_0_get_reg_offset
	movl	%eax, %edi
	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, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSDMA0_CLK_CTRL,4,2           ## @mmSDMA0_CLK_CTRL
	.comm	_SDMA0_CLK_CTRL__SOFT_OVERRIDE7_MASK,4,2 ## @SDMA0_CLK_CTRL__SOFT_OVERRIDE7_MASK
	.comm	_AMD_CG_SUPPORT_SDMA_MGCG,4,2   ## @AMD_CG_SUPPORT_SDMA_MGCG
	.comm	_mmSDMA0_POWER_CNTL,4,2         ## @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_v5_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_v5_0_get_clockgating_state
_sdma_v5_0_get_clockgating_state:       ; @sdma_v5_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
	mov	x20, x0
	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	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_sdma_v5_0_get_reg_offset
	bl	_RREG32
Lloh3:
	adrp	x8, _SDMA0_CLK_CTRL__SOFT_OVERRIDE7_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMA0_CLK_CTRL__SOFT_OVERRIDE7_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _AMD_CG_SUPPORT_SDMA_MGCG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMD_CG_SUPPORT_SDMA_MGCG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
Lloh9:
	adrp	x8, _mmSDMA0_POWER_CNTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mmSDMA0_POWER_CNTL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_sdma_v5_0_get_reg_offset
	bl	_RREG32
Lloh12:
	adrp	x8, _SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDMA0_POWER_CNTL__MEM_POWER_OVERRIDE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _AMD_CG_SUPPORT_SDMA_LS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AMD_CG_SUPPORT_SDMA_LS@GOTPAGEOFF]
Lloh17:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSDMA0_CLK_CTRL,4,2           ; @mmSDMA0_CLK_CTRL
	.comm	_SDMA0_CLK_CTRL__SOFT_OVERRIDE7_MASK,4,2 ; @SDMA0_CLK_CTRL__SOFT_OVERRIDE7_MASK
	.comm	_AMD_CG_SUPPORT_SDMA_MGCG,4,2   ; @AMD_CG_SUPPORT_SDMA_MGCG
	.comm	_mmSDMA0_POWER_CNTL,4,2         ; @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_v5_0_get_clockgating_state
.subsections_via_symbols
