	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gm20b_clk_prog
_gm20b_clk_prog:                        ## @gm20b_clk_prog
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_gm20b_clk
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_4
## %bb.1:
	leaq	28(%rbx), %rdi
	movq	_nv_clk_src_gpc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nvkm_clk_read
	cmpq	16(%rbx), %rax
	jle	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	8(%rbx), %rax
	setge	%cl
	movl	24(%rbx,%rcx,8), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gm20b_dvfs_calc_safe_pll
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gm20b_pllg_program_mnp_slide
	testl	%eax, %eax
	jne	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gm20b_dvfs_program_coeff
	leaq	36(%rbx), %r14
	movl	40(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gm20b_dvfs_program_ext_cal
	movl	36(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gm20b_dvfs_program_coeff
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gm20b_dvfs_program_dfs_detection
	movq	8(%rbx), %rax
LBB0_4:
	movq	%rax, (%rbx)
	movq	36(%rbx), %rax
	movq	%rax, 44(%rbx)
	movq	%rbx, %rsi
	addq	$24, %rsi
	movl	32(%rbx), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_gm20b_pllg_program_mnp_slide
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nv_clk_src_gpc,4,2             ## @nv_clk_src_gpc
	.no_dead_strip	_gm20b_clk_prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gm20b_clk_prog
_gm20b_clk_prog:                        ; @gm20b_clk_prog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_gm20b_clk
	mov	x19, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	add	x0, x19, #28
Lloh0:
	adrp	x8, _nv_clk_src_gpc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nv_clk_src_gpc@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nvkm_clk_read
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.le	LBB0_3
; %bb.2:
	ldp	x8, x9, [x19]
	mov	w10, #32
	mov	w11, #24
	cmp	x8, x9
	csel	x8, x11, x10, lt
	ldr	w8, [x19, x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_gm20b_dvfs_calc_safe_pll
	add	x1, sp, #8
	mov	x0, x19
	bl	_gm20b_pllg_program_mnp_slide
	cbnz	w0, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_gm20b_dvfs_program_coeff
	ldr	w1, [x19, #40]
	mov	x0, x19
	bl	_gm20b_dvfs_program_ext_cal
	mov	x20, x19
	ldr	w1, [x20, #36]!
	mov	x0, x19
	bl	_gm20b_dvfs_program_coeff
	mov	x0, x19
	mov	x1, x20
	bl	_gm20b_dvfs_program_dfs_detection
	ldr	x8, [x19, #8]
LBB0_4:
	str	x8, [x19]
	ldur	x8, [x19, #36]
	stur	x8, [x19, #44]
	ldr	w8, [x19, #32]
	mov	x1, x19
	str	w8, [x1, #24]!
	mov	x0, x19
	bl	_gm20b_pllg_program_mnp_slide
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_nv_clk_src_gpc,4,2             ; @nv_clk_src_gpc
	.no_dead_strip	_gm20b_clk_prog
.subsections_via_symbols
