	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_clk_adjust
_nvkm_clk_adjust:                       ## @nvkm_clk_adjust
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %r13
	subq	$8, %rsp
	leaq	-64(%rbp), %rbx
	leaq	-120(%rbp), %rax
	leaq	-112(%rbp), %rcx
	leaq	-104(%rbp), %r8
	leaq	-96(%rbp), %r9
	movq	%r13, %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	pushq	%rbx
	callq	_nvbios_boostEm
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %ebx
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	-60(%rbp), %edi
	movl	%r14d, %esi
	callq	_max
	movl	-64(%rbp), %edi
	movl	%eax, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-88(%rbp), %r14
	leaq	-80(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	testl	%eax, %eax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-120(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-112(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	-104(%rbp), %r9
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r14, %rcx
	movq	%r12, %r8
	leaq	-144(%rbp), %rax
	pushq	%rax
	pushq	-96(%rbp)
	callq	_nvbios_boostSp
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, -144(%rbp)
	jne	LBB0_8
## %bb.4:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imull	-136(%rbp), %eax
	cltq
	imulq	$1374389535, %rax, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$37, %rsi
	addl	%eax, %esi
	jmp	LBB0_7
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_5:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_7:
	movl	-128(%rbp), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_max
	movl	-132(%rbp), %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_clk_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_clk_adjust
_nvkm_clk_adjust:                       ; @nvkm_clk_adjust
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x4
	mov	x21, x3
	mov	x8, x2
	mov	x20, x1
	ldr	x9, [x0]
	ldr	x22, [x9]
	add	x2, sp, #64
	add	x3, sp, #56
	add	x4, sp, #48
	add	x5, sp, #40
	sub	x6, x29, #56
	mov	x0, x22
	mov	x1, x8
	bl	_nvbios_boostEm
	cbz	w0, LBB0_7
; %bb.1:
	mov	x23, x0
	ldur	w0, [x29, #-52]
	mov	x1, x19
	bl	_max
	mov	x1, x0
	ldur	w0, [x29, #-56]
	bl	_min
	mov	x19, x0
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [sp, #64]
	ldp	x5, x8, [sp, #48]
	stp	x8, x9, [sp]
	ldr	x6, [sp, #40]
	add	x3, sp, #8
	mov	x4, sp
	add	x7, sp, #16
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_nvbios_boostSp
	ldr	x8, [sp, #16]
	cmp	w0, #0
	ccmp	x8, x21, #0, ne
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	cbnz	w0, LBB0_2
	b	LBB0_7
LBB0_4:
	cbz	w20, LBB0_6
; %bb.5:
	ldr	w8, [sp, #24]
	mul	w8, w8, w19
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w19, w8, w9
LBB0_6:
	ldr	w0, [sp, #32]
	mov	x1, x19
	bl	_max
	mov	x1, x0
	ldr	w0, [sp, #28]
	bl	_min
	mov	x19, x0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvkm_clk_adjust
.subsections_via_symbols
