	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_clk_setup_slide          ## -- Begin function gk20a_clk_setup_slide
	.p2align	4, 0x90
_gk20a_clk_setup_slide:                 ## @gk20a_clk_setup_slide
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	movl	(%rdi), %eax
	movl	$11, %r15d
	movl	$43, %r8d
	cmpl	$12999999, %eax                 ## imm = 0xC65D3F
	jle	LBB0_1
## %bb.4:
	cmpl	$13000000, %eax                 ## imm = 0xC65D40
	je	LBB0_9
## %bb.5:
	cmpl	$38400000, %eax                 ## imm = 0x249F000
	je	LBB0_8
## %bb.6:
	cmpl	$19200000, %eax                 ## imm = 0x124F800
	jne	LBB0_3
## %bb.7:
	movl	$8, %r15d
	movl	$18, %r8d
	jmp	LBB0_9
LBB0_1:
	cmpl	$12000000, %eax                 ## imm = 0xB71B00
	je	LBB0_9
## %bb.2:
	cmpl	$12800000, %eax                 ## imm = 0xC35000
	je	LBB0_9
LBB0_3:
	addq	$8, %rdi
	movq	_KHZ@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_nvkm_error
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_8:
	movl	$5, %r15d
	movl	$4, %r8d
LBB0_9:
	movq	_GPCPLL_CFG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPCPLL_CFG2_PLL_STEPA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$255, %edx
	shll	%cl, %edx
	movl	$255, %ebx
	shll	%cl, %r8d
	movq	%r14, %rdi
	movl	%r8d, %ecx
	callq	_nvkm_mask
	movq	_GPCPLL_CFG3@GOTPCREL(%rip), %rax
	movq	_GPCPLL_CFG3_PLL_STEPB_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	(%rax), %esi
	shll	%cl, %r15d
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_nvkm_mask
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid parent clock rate %u KHz"

	.comm	_KHZ,4,2                        ## @KHZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GPCPLL_CFG2,4,2                ## @GPCPLL_CFG2
	.comm	_GPCPLL_CFG2_PLL_STEPA_SHIFT,4,2 ## @GPCPLL_CFG2_PLL_STEPA_SHIFT
	.comm	_GPCPLL_CFG3,4,2                ## @GPCPLL_CFG3
	.comm	_GPCPLL_CFG3_PLL_STEPB_SHIFT,4,2 ## @GPCPLL_CFG3_PLL_STEPB_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_clk_setup_slide          ; -- Begin function gk20a_clk_setup_slide
	.p2align	2
_gk20a_clk_setup_slide:                 ; @gk20a_clk_setup_slide
	.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	w9, [x0]
	ldr	x19, [x0, #8]!
	mov	w20, #11
	mov	w8, #43
	mov	w10, #23871
	movk	w10, #198, lsl #16
	cmp	w9, w10
	b.le	LBB0_5
; %bb.1:
	mov	w10, #23872
	movk	w10, #198, lsl #16
	cmp	w9, w10
	b.eq	LBB0_9
; %bb.2:
	mov	w8, #61440
	movk	w8, #585, lsl #16
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.3:
	mov	w8, #63488
	movk	w8, #292, lsl #16
	cmp	w9, w8
	b.ne	LBB0_7
; %bb.4:
	mov	w20, #8
	mov	w8, #18
	b	LBB0_9
LBB0_5:
	mov	w10, #6912
	movk	w10, #183, lsl #16
	cmp	w9, w10
	b.eq	LBB0_9
; %bb.6:
	cmp	w9, #3125, lsl #12              ; =12800000
	b.eq	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _KHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KHZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w2, w9, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nvkm_error
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	mov	w20, #5
	mov	w8, #4
LBB0_9:
Lloh8:
	adrp	x9, _GPCPLL_CFG2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GPCPLL_CFG2@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
Lloh11:
	adrp	x9, _GPCPLL_CFG2_PLL_STEPA_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GPCPLL_CFG2_PLL_STEPA_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	w21, #255
	lsl	w2, w21, w9
	lsl	w3, w8, w9
	mov	x0, x19
	bl	_nvkm_mask
Lloh14:
	adrp	x8, _GPCPLL_CFG3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GPCPLL_CFG3@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _GPCPLL_CFG3_PLL_STEPB_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GPCPLL_CFG3_PLL_STEPB_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w2, w21, w8
	lsl	w3, w20, w8
	mov	x0, x19
	bl	_nvkm_mask
	mov	w0, #0
LBB0_10:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid parent clock rate %u KHz"

	.comm	_KHZ,4,2                        ; @KHZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GPCPLL_CFG2,4,2                ; @GPCPLL_CFG2
	.comm	_GPCPLL_CFG2_PLL_STEPA_SHIFT,4,2 ; @GPCPLL_CFG2_PLL_STEPA_SHIFT
	.comm	_GPCPLL_CFG3,4,2                ; @GPCPLL_CFG3
	.comm	_GPCPLL_CFG3_PLL_STEPB_SHIFT,4,2 ; @GPCPLL_CFG3_PLL_STEPB_SHIFT
.subsections_via_symbols
