	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk104_pll_calc_hiclk
_gk104_pll_calc_hiclk:                  ## @gk104_pll_calc_hiclk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	movq	32(%rbp), %rcx
	movq	16(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rax
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	$1, (%r8)
	movl	$1, (%rax)
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	$1, (%rcx)
	movl	$37, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%edi, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	cmpl	$44, %r14d
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	$1, %esi
	movl	%r14d, %edx
	movl	$7, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_gk104_calc_pll_output
	movl	%eax, %r15d
	movl	%r13d, %eax
	cltd
	idivl	%r15d
	movl	%eax, %ebx
	movl	$61440, %edi                    ## imm = 0xF000
	movl	$1, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	%r15d, %r8d
	callq	_gk104_calc_pll_output
	movl	%r13d, %ecx
	subl	%eax, %ecx
	cmpl	%r12d, %ecx
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$7, (%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ecx, %r12d
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movl	$61440, %edi                    ## imm = 0xF000
	movl	$1, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	%r15d, %r8d
	callq	_gk104_calc_pll_output
	subl	%r13d, %eax
	cmpl	%r12d, %eax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	$7, (%rcx)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_6:
	movl	$37, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	cmpl	$44, %r14d
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	$1, %esi
	movl	%r14d, %edx
	movl	$6, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_gk104_calc_pll_output
	movl	%eax, %r15d
	movl	%r13d, %eax
	cltd
	idivl	%r15d
	movl	%eax, %ebx
	movl	$61440, %edi                    ## imm = 0xF000
	movl	$1, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	%r15d, %r8d
	callq	_gk104_calc_pll_output
	movl	%r13d, %ecx
	subl	%eax, %ecx
	cmpl	%r12d, %ecx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$6, (%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ecx, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	movl	$61440, %edi                    ## imm = 0xF000
	movl	$1, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	%r15d, %r8d
	callq	_gk104_calc_pll_output
	subl	%r13d, %eax
	cmpl	%r12d, %eax
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	$6, (%rcx)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %r12d
	jmp	LBB0_11
LBB0_12:
	movl	$37, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r14d
	cmpl	$44, %r14d
	je	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	$1, %esi
	movl	%r14d, %edx
	movl	$5, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_gk104_calc_pll_output
	movl	%eax, %r15d
	movl	%r13d, %eax
	cltd
	idivl	%r15d
	movl	%eax, %ebx
	movl	$61440, %edi                    ## imm = 0xF000
	movl	$1, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	movl	%r15d, %r8d
	callq	_gk104_calc_pll_output
	movl	%r13d, %ecx
	subl	%eax, %ecx
	cmpl	%r12d, %ecx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$5, (%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ecx, %r12d
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	movl	$61440, %edi                    ## imm = 0xF000
	movl	$1, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	movl	%r15d, %r8d
	callq	_gk104_calc_pll_output
	subl	%r13d, %eax
	cmpl	%r12d, %eax
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	$5, (%rcx)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %r12d
	jmp	LBB0_17
LBB0_18:
	movl	%r12d, %eax
	cltd
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	idivl	(%rcx)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx), %eax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	imull	(%rdx), %eax
	shll	$13, %eax
	cltd
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	idivl	%r8d
	movl	$1, %edi
	subl	%eax, %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%eax, %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%edi, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	(%rcx), %ecx
	movl	$1, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gk104_calc_pll_output          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gk104_pll_calc_hiclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk104_pll_calc_hiclk
_gk104_pll_calc_hiclk:                  ; @gk104_pll_calc_hiclk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x6
	mov	x20, x5
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	w23, #0
	ldr	x9, [x29, #16]
	mov	w8, #1
	stp	x9, x4, [sp, #8]                ; 16-byte Folded Spill
	str	w8, [x4]
	str	w8, [x7]
	str	w8, [x9]
	mov	w26, #37
	mov	x25, x0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w26, w26, #1
	cmp	w26, #44
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	w1, #1
	mov	x2, x26
	mov	w3, #7
	mov	x4, x19
	bl	_gk104_calc_pll_output
	mov	x27, x0
	sdiv	w28, w22, w0
	mov	w0, #61440
	mov	w1, #1
	mov	x2, x28
	mov	w3, #1
	mov	x4, x27
	bl	_gk104_calc_pll_output
	sub	w8, w22, w0
	cmp	w8, w25
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #0
	str	w28, [x24]
	str	w26, [x21]
	mov	x25, x8
	mov	w8, #7
	str	w8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w28, w28, #1
	mov	w0, #61440
	mov	w1, #1
	mov	x2, x28
	mov	w3, #1
	mov	x4, x27
	bl	_gk104_calc_pll_output
	sub	w8, w0, w22
	cmp	w8, w25
	b.ge	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w28, [x24]
	str	w26, [x21]
	mov	w23, #1
	mov	x25, x8
	mov	w8, #7
	str	w8, [x20]
	b	LBB0_1
LBB0_6:
	mov	w26, #37
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w26, w26, #1
	cmp	w26, #44
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	w1, #1
	mov	x2, x26
	mov	w3, #6
	mov	x4, x19
	bl	_gk104_calc_pll_output
	mov	x27, x0
	sdiv	w28, w22, w0
	mov	w0, #61440
	mov	w1, #1
	mov	x2, x28
	mov	w3, #1
	mov	x4, x27
	bl	_gk104_calc_pll_output
	sub	w8, w22, w0
	cmp	w8, w25
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w23, #0
	str	w28, [x24]
	str	w26, [x21]
	mov	x25, x8
	mov	w8, #6
	str	w8, [x20]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w28, w28, #1
	mov	w0, #61440
	mov	w1, #1
	mov	x2, x28
	mov	w3, #1
	mov	x4, x27
	bl	_gk104_calc_pll_output
	sub	w8, w0, w22
	cmp	w8, w25
	b.ge	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w28, [x24]
	str	w26, [x21]
	mov	w23, #1
	mov	x25, x8
	mov	w8, #6
	str	w8, [x20]
	b	LBB0_7
LBB0_12:
	mov	w26, #37
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w26, w26, #1
	cmp	w26, #44
	b.eq	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	w1, #1
	mov	x2, x26
	mov	w3, #5
	mov	x4, x19
	bl	_gk104_calc_pll_output
	mov	x27, x0
	sdiv	w28, w22, w0
	mov	w0, #61440
	mov	w1, #1
	mov	x2, x28
	mov	w3, #1
	mov	x4, x27
	bl	_gk104_calc_pll_output
	sub	w8, w22, w0
	cmp	w8, w25
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w23, #0
	str	w28, [x24]
	str	w26, [x21]
	mov	x25, x8
	mov	w8, #5
	str	w8, [x20]
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w28, w28, #1
	mov	w0, #61440
	mov	w1, #1
	mov	x2, x28
	mov	w3, #1
	mov	x4, x27
	bl	_gk104_calc_pll_output
	sub	w8, w0, w22
	cmp	w8, w25
	b.ge	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	str	w28, [x24]
	str	w26, [x21]
	mov	w23, #1
	mov	x25, x8
	mov	w8, #5
	str	w8, [x20]
	b	LBB0_13
LBB0_18:
	ldr	w8, [x24]
	sdiv	w8, w25, w8
	ldp	x9, x11, [sp, #8]               ; 16-byte Folded Reload
	ldr	w9, [x9]
	ldr	w10, [x20]
	ldr	w11, [x11]
	mul	w8, w8, w9
	mul	w8, w8, w10
	mul	w8, w8, w11
	lsl	w8, w8, #13
	sdiv	w8, w8, w19
	mov	w9, #1
	sub	w9, w9, w8
	cmp	w23, #0
	csel	w0, w8, w9, eq
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w0, [x8]
	ldr	w2, [x21]
	ldr	w3, [x20]
	mov	w1, #1
	mov	x4, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_gk104_calc_pll_output
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gk104_pll_calc_hiclk
.subsections_via_symbols
