	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gm20b_pllg_slide
_gm20b_pllg_slide:                      ## @gm20b_pllg_slide
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_gm20b_dvfs_calc_ndiv
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_gm20b_pllg_read_mnp
	movq	-56(%rbp), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax
	xorl	%r12d, %r12d
	cmpq	-72(%rbp), %rax
	je	LBB0_3
LBB0_2:
	movq	_GPCPLL_NDIV_SLOWDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_BIT
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_nvkm_mask
	movq	_GPCPLL_CFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPCPLL_CFG2_SDM_DIN_NEW_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	movq	_GPCPLL_CFG2_SDM_DIN_NEW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_nvkm_mask
	movq	-56(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$1, %edi
	callq	_udelay
	movq	%r15, %rdi
	leaq	-64(%rbp), %rsi
	callq	_gk20a_pllg_write_mnp
	movl	$1, %edi
	callq	_udelay
	movq	_GPCPLL_NDIV_SLOWDOWN@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movq	_GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_BIT
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_nvkm_mask
	movq	_GPC_BCAST_NDIV_SLOWDOWN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GPC_BCAST_NDIV_SLOWDOWN_DEBUG_PLL_DYNRAMP_DONE_SYNCED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movl	%ecx, %r8d
	callq	_nvkm_wait_usec
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movq	%rax, %r12
	sarq	$63, %r12
	andl	%edx, %r12d
	movq	_GPCPLL_CFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPCPLL_CFG2_SDM_DIN_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	movq	_GPCPLL_CFG2_SDM_DIN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_nvkm_mask
	movl	(%r13), %r15d
	movq	_GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%rax, %rbx
	movq	_GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orq	%rax, %rbx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_nvkm_rd32
LBB0_3:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPCPLL_NDIV_SLOWDOWN,4,2       ## @GPCPLL_NDIV_SLOWDOWN
	.comm	_GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT,4,2 ## @GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT
	.comm	_GPCPLL_CFG2,4,2                ## @GPCPLL_CFG2
	.comm	_GPCPLL_CFG2_SDM_DIN_NEW_MASK,8,3 ## @GPCPLL_CFG2_SDM_DIN_NEW_MASK
	.comm	_GPCPLL_CFG2_SDM_DIN_NEW_SHIFT,8,3 ## @GPCPLL_CFG2_SDM_DIN_NEW_SHIFT
	.comm	_GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT,4,2 ## @GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT
	.comm	_GPC_BCAST_NDIV_SLOWDOWN_DEBUG,4,2 ## @GPC_BCAST_NDIV_SLOWDOWN_DEBUG
	.comm	_GPC_BCAST_NDIV_SLOWDOWN_DEBUG_PLL_DYNRAMP_DONE_SYNCED_MASK,4,2 ## @GPC_BCAST_NDIV_SLOWDOWN_DEBUG_PLL_DYNRAMP_DONE_SYNCED_MASK
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_GPCPLL_CFG2_SDM_DIN_MASK,8,3   ## @GPCPLL_CFG2_SDM_DIN_MASK
	.comm	_GPCPLL_CFG2_SDM_DIN_SHIFT,8,3  ## @GPCPLL_CFG2_SDM_DIN_SHIFT
	.no_dead_strip	_gm20b_pllg_slide
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gm20b_pllg_slide
_gm20b_pllg_slide:                      ; @gm20b_pllg_slide
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0]
	add	x2, sp, #8
	mov	x3, sp
	bl	_gm20b_dvfs_calc_ndiv
	add	x21, sp, #16
	add	x1, sp, #16
	mov	x0, x20
	bl	_gm20b_pllg_read_mnp
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #24]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [sp]
	ldr	x9, [sp, #16]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
	add	x21, x21, #8
Lloh0:
	adrp	x24, _GPCPLL_NDIV_SLOWDOWN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GPCPLL_NDIV_SLOWDOWN@GOTPAGEOFF]
	ldr	w22, [x24]
Lloh2:
	adrp	x25, _GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT
	mov	x23, x0
	ldr	w0, [x25]
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_nvkm_mask
Lloh4:
	adrp	x22, _GPCPLL_CFG2@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GPCPLL_CFG2@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _GPCPLL_CFG2_SDM_DIN_NEW_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPCPLL_CFG2_SDM_DIN_NEW_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x8]
	ldr	x8, [sp]
Lloh9:
	adrp	x9, _GPCPLL_CFG2_SDM_DIN_NEW_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GPCPLL_CFG2_SDM_DIN_NEW_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	lsl	x3, x8, x9
	mov	x0, x19
	bl	_nvkm_mask
	ldr	x8, [sp, #8]
	str	x8, [sp, #24]
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	mov	x1, x21
	bl	_gk20a_pllg_write_mnp
	mov	w0, #1
	bl	_udelay
	ldr	w20, [x24]
Lloh12:
	adrp	x23, _GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT@GOTPAGE
Lloh13:
	ldr	x23, [x23, _GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT
	mov	x21, x0
	ldr	w0, [x23]
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nvkm_mask
Lloh14:
	adrp	x8, _GPC_BCAST_NDIV_SLOWDOWN_DEBUG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GPC_BCAST_NDIV_SLOWDOWN_DEBUG@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _GPC_BCAST_NDIV_SLOWDOWN_DEBUG_PLL_DYNRAMP_DONE_SYNCED_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GPC_BCAST_NDIV_SLOWDOWN_DEBUG_PLL_DYNRAMP_DONE_SYNCED_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #500
	mov	x4, x3
	bl	_nvkm_wait_usec
Lloh20:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	asr	x9, x0, #63
	neg	w8, w8
	and	w20, w9, w8
	ldr	w1, [x22]
Lloh23:
	adrp	x8, _GPCPLL_CFG2_SDM_DIN_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GPCPLL_CFG2_SDM_DIN_MASK@GOTPAGEOFF]
Lloh25:
	ldr	x2, [x8]
	ldr	x8, [sp]
Lloh26:
	adrp	x9, _GPCPLL_CFG2_SDM_DIN_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GPCPLL_CFG2_SDM_DIN_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	lsl	x3, x8, x9
	mov	x0, x19
	bl	_nvkm_mask
	ldr	w21, [x24]
	ldr	w0, [x25]
	bl	_BIT
	mov	x22, x0
	ldr	w0, [x23]
	bl	_BIT
	orr	x2, x0, x22
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	bl	_nvkm_mask
	ldr	w1, [x24]
	mov	x0, x19
	bl	_nvkm_rd32
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPCPLL_NDIV_SLOWDOWN,4,2       ; @GPCPLL_NDIV_SLOWDOWN
	.comm	_GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT,4,2 ; @GPCPLL_NDIV_SLOWDOWN_SLOWDOWN_USING_PLL_SHIFT
	.comm	_GPCPLL_CFG2,4,2                ; @GPCPLL_CFG2
	.comm	_GPCPLL_CFG2_SDM_DIN_NEW_MASK,8,3 ; @GPCPLL_CFG2_SDM_DIN_NEW_MASK
	.comm	_GPCPLL_CFG2_SDM_DIN_NEW_SHIFT,8,3 ; @GPCPLL_CFG2_SDM_DIN_NEW_SHIFT
	.comm	_GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT,4,2 ; @GPCPLL_NDIV_SLOWDOWN_EN_DYNRAMP_SHIFT
	.comm	_GPC_BCAST_NDIV_SLOWDOWN_DEBUG,4,2 ; @GPC_BCAST_NDIV_SLOWDOWN_DEBUG
	.comm	_GPC_BCAST_NDIV_SLOWDOWN_DEBUG_PLL_DYNRAMP_DONE_SYNCED_MASK,4,2 ; @GPC_BCAST_NDIV_SLOWDOWN_DEBUG_PLL_DYNRAMP_DONE_SYNCED_MASK
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_GPCPLL_CFG2_SDM_DIN_MASK,8,3   ; @GPCPLL_CFG2_SDM_DIN_MASK
	.comm	_GPCPLL_CFG2_SDM_DIN_SHIFT,8,3  ; @GPCPLL_CFG2_SDM_DIN_SHIFT
	.no_dead_strip	_gm20b_pllg_slide
.subsections_via_symbols
