	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk104_clk_calc
_gk104_clk_calc:                        ## @gk104_clk_calc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_gk104_clk
	movq	%rax, %rbx
	movq	_nv_clk_src_gpc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_calc_clk
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_nv_clk_src_rop@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_calc_clk
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_nv_clk_src_hubk07@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_calc_clk
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_nv_clk_src_hubk06@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$7, %edx
	callq	_calc_clk
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_nv_clk_src_hubk01@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_calc_clk
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_nv_clk_src_pmu@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_calc_clk
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_nv_clk_src_vdec@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$14, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_calc_clk                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nv_clk_src_gpc,4,2             ## @nv_clk_src_gpc
	.comm	_nv_clk_src_rop,4,2             ## @nv_clk_src_rop
	.comm	_nv_clk_src_hubk07,4,2          ## @nv_clk_src_hubk07
	.comm	_nv_clk_src_hubk06,4,2          ## @nv_clk_src_hubk06
	.comm	_nv_clk_src_hubk01,4,2          ## @nv_clk_src_hubk01
	.comm	_nv_clk_src_pmu,4,2             ## @nv_clk_src_pmu
	.comm	_nv_clk_src_vdec,4,2            ## @nv_clk_src_vdec
	.no_dead_strip	_gk104_clk_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk104_clk_calc
_gk104_clk_calc:                        ; @gk104_clk_calc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_gk104_clk
	mov	x20, x0
Lloh0:
	adrp	x8, _nv_clk_src_gpc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nv_clk_src_gpc@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x19
	mov	w2, #0
	bl	_calc_clk
	cbnz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _nv_clk_src_rop@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nv_clk_src_rop@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_calc_clk
	cbnz	w0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _nv_clk_src_hubk07@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nv_clk_src_hubk07@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_calc_clk
	cbnz	w0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _nv_clk_src_hubk06@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nv_clk_src_hubk06@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #7
	bl	_calc_clk
	cbnz	w0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _nv_clk_src_hubk01@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nv_clk_src_hubk01@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #8
	bl	_calc_clk
	cbnz	w0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _nv_clk_src_pmu@GOTPAGE
Lloh16:
	ldr	x8, [x8, _nv_clk_src_pmu@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #12
	bl	_calc_clk
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh18:
	adrp	x8, _nv_clk_src_vdec@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nv_clk_src_vdec@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #14
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_calc_clk
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_nv_clk_src_gpc,4,2             ; @nv_clk_src_gpc
	.comm	_nv_clk_src_rop,4,2             ; @nv_clk_src_rop
	.comm	_nv_clk_src_hubk07,4,2          ; @nv_clk_src_hubk07
	.comm	_nv_clk_src_hubk06,4,2          ; @nv_clk_src_hubk06
	.comm	_nv_clk_src_hubk01,4,2          ; @nv_clk_src_hubk01
	.comm	_nv_clk_src_pmu,4,2             ; @nv_clk_src_pmu
	.comm	_nv_clk_src_vdec,4,2            ; @nv_clk_src_vdec
	.no_dead_strip	_gk104_clk_calc
.subsections_via_symbols
