	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk20a_pllg_enable
_gk20a_pllg_enable:                     ## @gk20a_pllg_enable
	.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
	movq	(%rdi), %rbx
	movq	_GPCPLL_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_GPCPLL_CFG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_nvkm_mask
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movq	_GPCPLL_CFG_LOCK_DET_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_nvkm_wr32
LBB0_2:
	movl	(%r14), %edx
	movq	_GPCPLL_CFG_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	movl	%ecx, %r8d
	callq	_nvkm_wait_usec
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_SEL_VCO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SEL_VCO_GPC2CLK_OUT_SHIFT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_BIT
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_nvkm_mask
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPCPLL_CFG,4,2                 ## @GPCPLL_CFG
	.comm	_GPCPLL_CFG_ENABLE,4,2          ## @GPCPLL_CFG_ENABLE
	.comm	_GPCPLL_CFG_LOCK_DET_OFF,4,2    ## @GPCPLL_CFG_LOCK_DET_OFF
	.comm	_GPCPLL_CFG_LOCK,4,2            ## @GPCPLL_CFG_LOCK
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SEL_VCO,4,2                    ## @SEL_VCO
	.comm	_SEL_VCO_GPC2CLK_OUT_SHIFT,4,2  ## @SEL_VCO_GPC2CLK_OUT_SHIFT
	.no_dead_strip	_gk20a_pllg_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk20a_pllg_enable
_gk20a_pllg_enable:                     ; @gk20a_pllg_enable
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x20, _GPCPLL_CFG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GPCPLL_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _GPCPLL_CFG_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPCPLL_CFG_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_nvkm_mask
	ldr	w1, [x20]
	mov	x0, x19
	bl	_nvkm_rd32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_nvkm_rd32
Lloh5:
	adrp	x8, _GPCPLL_CFG_LOCK_DET_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPCPLL_CFG_LOCK_DET_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_nvkm_wr32
LBB0_2:
	ldr	w2, [x20]
Lloh8:
	adrp	x8, _GPCPLL_CFG_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPCPLL_CFG_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #300
	mov	x4, x3
	bl	_nvkm_wait_usec
	tbnz	x0, #63, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _SEL_VCO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEL_VCO@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
Lloh14:
	adrp	x22, _SEL_VCO_GPC2CLK_OUT_SHIFT@GOTPAGE
Lloh15:
	ldr	x22, [x22, _SEL_VCO_GPC2CLK_OUT_SHIFT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_BIT
	mov	x21, x0
	ldr	w0, [x22]
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nvkm_mask
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GPCPLL_CFG,4,2                 ; @GPCPLL_CFG
	.comm	_GPCPLL_CFG_ENABLE,4,2          ; @GPCPLL_CFG_ENABLE
	.comm	_GPCPLL_CFG_LOCK_DET_OFF,4,2    ; @GPCPLL_CFG_LOCK_DET_OFF
	.comm	_GPCPLL_CFG_LOCK,4,2            ; @GPCPLL_CFG_LOCK
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SEL_VCO,4,2                    ; @SEL_VCO
	.comm	_SEL_VCO_GPC2CLK_OUT_SHIFT,4,2  ; @SEL_VCO_GPC2CLK_OUT_SHIFT
	.no_dead_strip	_gk20a_pllg_enable
.subsections_via_symbols
