	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_ih_update_clockgating_state
_navi10_ih_update_clockgating_state:    ## @navi10_ih_update_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AMD_CG_SUPPORT_IH_CG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	%esi, %r15d
	movq	_OSSSYS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_mmIH_CLK_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	%rax, %r14
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	sete	%bl
	movq	_IH_CLK_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBUS_MUX_CLK_SOFT_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_OSSSYS_SHARE_CLK_SOFT_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rcx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_LIMIT_SMN_CLK_SOFT_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rcx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_DYN_CLK_SOFT_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rcx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_REG_CLK_SOFT_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rbx, %rcx
	callq	_REG_SET_FIELD
	cmpq	%rax, %r14
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r12), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	movq	%rax, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_CG_SUPPORT_IH_CG,4,2       ## @AMD_CG_SUPPORT_IH_CG
	.comm	_OSSSYS,4,2                     ## @OSSSYS
	.comm	_mmIH_CLK_CTRL,4,2              ## @mmIH_CLK_CTRL
	.comm	_IH_CLK_CTRL,4,2                ## @IH_CLK_CTRL
	.comm	_DBUS_MUX_CLK_SOFT_OVERRIDE,4,2 ## @DBUS_MUX_CLK_SOFT_OVERRIDE
	.comm	_OSSSYS_SHARE_CLK_SOFT_OVERRIDE,4,2 ## @OSSSYS_SHARE_CLK_SOFT_OVERRIDE
	.comm	_LIMIT_SMN_CLK_SOFT_OVERRIDE,4,2 ## @LIMIT_SMN_CLK_SOFT_OVERRIDE
	.comm	_DYN_CLK_SOFT_OVERRIDE,4,2      ## @DYN_CLK_SOFT_OVERRIDE
	.comm	_REG_CLK_SOFT_OVERRIDE,4,2      ## @REG_CLK_SOFT_OVERRIDE
	.no_dead_strip	_navi10_ih_update_clockgating_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_ih_update_clockgating_state
_navi10_ih_update_clockgating_state:    ; @navi10_ih_update_clockgating_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AMD_CG_SUPPORT_IH_CG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMD_CG_SUPPORT_IH_CG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x1
Lloh3:
	adrp	x21, _OSSSYS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _OSSSYS@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x22, _mmIH_CLK_CTRL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _mmIH_CLK_CTRL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x19, x0
	cmp	w20, #0
	cset	w20, eq
Lloh7:
	adrp	x23, _IH_CLK_CTRL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IH_CLK_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh9:
	adrp	x8, _DBUS_MUX_CLK_SOFT_OVERRIDE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBUS_MUX_CLK_SOFT_OVERRIDE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_REG_SET_FIELD
	ldr	w1, [x23]
Lloh12:
	adrp	x8, _OSSSYS_SHARE_CLK_SOFT_OVERRIDE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OSSSYS_SHARE_CLK_SOFT_OVERRIDE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_REG_SET_FIELD
	ldr	w1, [x23]
Lloh15:
	adrp	x8, _LIMIT_SMN_CLK_SOFT_OVERRIDE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIMIT_SMN_CLK_SOFT_OVERRIDE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_REG_SET_FIELD
	ldr	w1, [x23]
Lloh18:
	adrp	x8, _DYN_CLK_SOFT_OVERRIDE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DYN_CLK_SOFT_OVERRIDE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_REG_SET_FIELD
	ldr	w1, [x23]
Lloh21:
	adrp	x8, _REG_CLK_SOFT_OVERRIDE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_CLK_SOFT_OVERRIDE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_REG_SET_FIELD
	cmp	x19, x0
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x3, x0
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WREG32_SOC15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_CG_SUPPORT_IH_CG,4,2       ; @AMD_CG_SUPPORT_IH_CG
	.comm	_OSSSYS,4,2                     ; @OSSSYS
	.comm	_mmIH_CLK_CTRL,4,2              ; @mmIH_CLK_CTRL
	.comm	_IH_CLK_CTRL,4,2                ; @IH_CLK_CTRL
	.comm	_DBUS_MUX_CLK_SOFT_OVERRIDE,4,2 ; @DBUS_MUX_CLK_SOFT_OVERRIDE
	.comm	_OSSSYS_SHARE_CLK_SOFT_OVERRIDE,4,2 ; @OSSSYS_SHARE_CLK_SOFT_OVERRIDE
	.comm	_LIMIT_SMN_CLK_SOFT_OVERRIDE,4,2 ; @LIMIT_SMN_CLK_SOFT_OVERRIDE
	.comm	_DYN_CLK_SOFT_OVERRIDE,4,2      ; @DYN_CLK_SOFT_OVERRIDE
	.comm	_REG_CLK_SOFT_OVERRIDE,4,2      ; @REG_CLK_SOFT_OVERRIDE
	.no_dead_strip	_navi10_ih_update_clockgating_state
.subsections_via_symbols
