	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk20a_clk_init
_gk20a_clk_init:                        ## @gk20a_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	(%rax), %rbx
	movq	_GPCPLL_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GPCPLL_CFG_IDDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movl	(%r12), %esi
	movq	%rbx, %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	%rbx, %rdi
	callq	_nvkm_mask
	movq	%r15, %rdi
	callq	_gk20a_clk_setup_slide
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	callq	*16(%rax)
	movq	(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	movl	$0, %eax
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvkm_error
	movl	%ebx, %eax
LBB0_3:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot initialize clock\n"

	.no_dead_strip	_gk20a_clk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk20a_clk_init
_gk20a_clk_init:                        ; @gk20a_clk_init
	.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, x0
	bl	_gk20a_clk
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _GPCPLL_CFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GPCPLL_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
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, [x22]
	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
	mov	x0, x19
	bl	_gk20a_clk_setup_slide
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldp	x1, x9, [x8, #8]
	mov	x0, x20
	blr	x9
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_error
LBB0_3:
	mov	x0, x21
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot initialize clock\n"

	.no_dead_strip	_gk20a_clk_init
.subsections_via_symbols
