	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gm20b_dvfs_program_ext_cal
_gm20b_dvfs_program_ext_cal:            ## @gm20b_dvfs_program_ext_cal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	(%rdi), %r14
	movq	_GPC_BCAST_GPCPLL_DVFS2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DFS_DET_RANGE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_MASK
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_nvkm_mask
	movl	$1, %edi
	callq	_udelay
	movq	_GPCPLL_DVFS1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r15d
	movl	$25, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$25, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$16, %edi
	callq	_BIT
	orl	%r15d, %ebx
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPC_BCAST_GPCPLL_DVFS2,4,2     ## @GPC_BCAST_GPCPLL_DVFS2
	.comm	_DFS_DET_RANGE,8,3              ## @DFS_DET_RANGE
	.comm	_GPCPLL_DVFS1,4,2               ## @GPCPLL_DVFS1
	.no_dead_strip	_gm20b_dvfs_program_ext_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gm20b_dvfs_program_ext_cal
_gm20b_dvfs_program_ext_cal:            ; @gm20b_dvfs_program_ext_cal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
Lloh0:
	adrp	x8, _GPC_BCAST_GPCPLL_DVFS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPC_BCAST_GPCPLL_DVFS2@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _DFS_DET_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DFS_DET_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x8, #1
	bl	_MASK
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_nvkm_mask
	mov	w0, #1
	bl	_udelay
Lloh6:
	adrp	x22, _GPCPLL_DVFS1@GOTPAGE
Lloh7:
	ldr	x22, [x22, _GPCPLL_DVFS1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x20, x0
	mov	w0, #25
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #25
	bl	_BIT
	mov	x21, x0
	mov	w0, #16
	bl	_BIT
	orr	w8, w21, w20
	orr	w2, w8, w0
	ldr	w1, [x22]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nvkm_wr32
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPC_BCAST_GPCPLL_DVFS2,4,2     ; @GPC_BCAST_GPCPLL_DVFS2
	.comm	_DFS_DET_RANGE,8,3              ; @DFS_DET_RANGE
	.comm	_GPCPLL_DVFS1,4,2               ; @GPCPLL_DVFS1
	.no_dead_strip	_gm20b_dvfs_program_ext_cal
.subsections_via_symbols
