	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gm20b_clk_init
_gm20b_clk_init:                        ## @gm20b_clk_init
	.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, %r14
	callq	_gk20a_clk
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	_GPCPLL_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_GPCPLL_CFG_IDDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
	movl	$5, %edi
	callq	_udelay
	movq	_GPC2CLK_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPC2CLK_OUT_INIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GPC2CLK_OUT_INIT_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_nvkm_mask
	movq	_BYPASSCTRL_SYS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_BYPASSCTRL_SYS_GPCPLL_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MASK
	movq	_BYPASSCTRL_SYS_GPCPLL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	%r15, %rdi
	callq	_gk20a_clk_setup_slide
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	movl	$137540, %esi                   ## imm = 0x21944
	callq	_nvkm_rd32
	testb	$3, %al
	jne	LBB0_3
## %bb.2:
	orl	$2, %eax
	movq	%r12, %rdi
	movl	$137540, %esi                   ## imm = 0x21944
	movl	%eax, %edx
	callq	_nvkm_wr32
	movq	%r12, %rdi
	movl	$137544, %esi                   ## imm = 0x21948
	callq	_nvkm_rd32
	orl	$1, %eax
	movq	%r12, %rdi
	movl	$137544, %esi                   ## imm = 0x21948
	movl	%eax, %edx
	callq	_nvkm_wr32
LBB0_3:
	movq	%r12, %rdi
	movl	$131424, %esi                   ## imm = 0x20160
	movl	$4128768, %edx                  ## imm = 0x3F0000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movq	(%r15), %rax
	cmpq	_gm20b_clk@GOTPCREL(%rip), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_gm20b_clk
	movq	%rax, %rbx
	movq	(%r12), %rdi
	callq	_nvkm_volt_get
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_gm20b_clk_init_dvfs
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	callq	*16(%rax)
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	movl	$0, %eax
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	addq	$8, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvkm_error
	movl	%ebx, %eax
LBB0_7:
	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_IDDQ,4,2            ## @GPCPLL_CFG_IDDQ
	.comm	_GPC2CLK_OUT,4,2                ## @GPC2CLK_OUT
	.comm	_GPC2CLK_OUT_INIT_MASK,4,2      ## @GPC2CLK_OUT_INIT_MASK
	.comm	_GPC2CLK_OUT_INIT_VAL,4,2       ## @GPC2CLK_OUT_INIT_VAL
	.comm	_BYPASSCTRL_SYS,4,2             ## @BYPASSCTRL_SYS
	.comm	_BYPASSCTRL_SYS_GPCPLL_WIDTH,4,2 ## @BYPASSCTRL_SYS_GPCPLL_WIDTH
	.comm	_BYPASSCTRL_SYS_GPCPLL_SHIFT,4,2 ## @BYPASSCTRL_SYS_GPCPLL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot initialize clock\n"

	.no_dead_strip	_gm20b_clk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gm20b_clk_init
_gm20b_clk_init:                        ; @gm20b_clk_init
	.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
	mov	x20, x0
	bl	_gk20a_clk
	mov	x22, x0
	mov	x19, x0
	ldr	x21, [x19, #8]!
Lloh0:
	adrp	x23, _GPCPLL_CFG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GPCPLL_CFG@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x8, _GPCPLL_CFG_IDDQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPCPLL_CFG_IDDQ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #0
	bl	_nvkm_mask
	ldr	w1, [x23]
	mov	x0, x21
	bl	_nvkm_rd32
	mov	w0, #5
	bl	_udelay
Lloh5:
	adrp	x8, _GPC2CLK_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPC2CLK_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _GPC2CLK_OUT_INIT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPC2CLK_OUT_INIT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _GPC2CLK_OUT_INIT_VAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPC2CLK_OUT_INIT_VAL@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_nvkm_mask
Lloh14:
	adrp	x8, _BYPASSCTRL_SYS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BYPASSCTRL_SYS@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
Lloh17:
	adrp	x8, _BYPASSCTRL_SYS_GPCPLL_WIDTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BYPASSCTRL_SYS_GPCPLL_WIDTH@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_MASK
Lloh20:
	adrp	x8, _BYPASSCTRL_SYS_GPCPLL_SHIFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BYPASSCTRL_SYS_GPCPLL_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	lsl	w2, w0, w8
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	bl	_nvkm_mask
	mov	x0, x22
	bl	_gk20a_clk_setup_slide
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.1:
	mov	w23, #6468
	movk	w23, #2, lsl #16
	mov	x0, x21
	mov	w1, #6468
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	tst	w0, #0x3
	b.ne	LBB0_3
; %bb.2:
	orr	w2, w0, #0x2
	mov	x0, x21
	mov	w1, #6468
	movk	w1, #2, lsl #16
	bl	_nvkm_wr32
	add	w23, w23, #4
	mov	x0, x21
	mov	x1, x23
	bl	_nvkm_rd32
	orr	w2, w0, #0x1
	mov	x0, x21
	mov	x1, x23
	bl	_nvkm_wr32
LBB0_3:
	mov	x0, x21
	mov	w1, #352
	movk	w1, #2, lsl #16
	mov	w2, #4128768
	mov	w3, #0
	bl	_nvkm_mask
	ldr	x8, [x22]
Lloh23:
	adrp	x9, _gm20b_clk@GOTPAGE
Lloh24:
	ldr	x9, [x9, _gm20b_clk@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_gm20b_clk
	mov	x22, x0
	ldr	x0, [x21]
	bl	_nvkm_volt_get
	str	w0, [x22]
	mov	x0, x22
	bl	_gm20b_clk_init_dvfs
	mov	x23, x0
	cbnz	w0, LBB0_7
LBB0_5:
	ldr	x8, [x20]
	ldp	x1, x9, [x8, #8]
	mov	x0, x20
	blr	x9
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_error
LBB0_7:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GPCPLL_CFG,4,2                 ; @GPCPLL_CFG
	.comm	_GPCPLL_CFG_IDDQ,4,2            ; @GPCPLL_CFG_IDDQ
	.comm	_GPC2CLK_OUT,4,2                ; @GPC2CLK_OUT
	.comm	_GPC2CLK_OUT_INIT_MASK,4,2      ; @GPC2CLK_OUT_INIT_MASK
	.comm	_GPC2CLK_OUT_INIT_VAL,4,2       ; @GPC2CLK_OUT_INIT_VAL
	.comm	_BYPASSCTRL_SYS,4,2             ; @BYPASSCTRL_SYS
	.comm	_BYPASSCTRL_SYS_GPCPLL_WIDTH,4,2 ; @BYPASSCTRL_SYS_GPCPLL_WIDTH
	.comm	_BYPASSCTRL_SYS_GPCPLL_SHIFT,4,2 ; @BYPASSCTRL_SYS_GPCPLL_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot initialize clock\n"

	.no_dead_strip	_gm20b_clk_init
.subsections_via_symbols
