	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_perf_init              ## -- Begin function nouveau_perf_init
	.p2align	4, 0x90
_nouveau_perf_init:                     ## @nouveau_perf_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_pm
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	_NVBIOS_BMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%r14), %rax
	movslq	24(%r14), %rcx
	cmpl	$36, 24(%rax,%rcx,4)
	jg	LBB0_2
## %bb.32:
	movq	%rbx, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_legacy_perf_init               ## TAILCALL
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_nouveau_perf_table
	leaq	-44(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_nouveau_perf_entry
	testq	%rax, %rax
	je	LBB0_31
## %bb.3:
	movq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$1, %r15d
	leaq	-52(%rbp), %r12
	leaq	-44(%rbp), %r13
	leaq	-56(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r13,%r12), %esi
	leaq	(%r12,%r13), %rdx
	addq	$68, %rdx
	movq	%rbx, %rdi
	callq	_nouveau_mem_timing_calc
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_NV_DEBUG
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-52(%rbp), %r12
	leaq	-44(%rbp), %r13
	leaq	-56(%rbp), %rbx
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%rbx, %r8
	leaq	-48(%rbp), %r9
	callq	_nouveau_perf_entry
	movq	%rax, %r14
	incl	%r15d
	testq	%rax, %rax
	je	LBB0_31
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%r14)
	je	LBB0_30
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	24(%rax), %r13
	shlq	$7, %r12
	leaq	(%r12,%r13), %rsi
	movl	-52(%rbp), %eax
	addl	$-18, %eax
	cmpl	$46, %eax
	ja	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	220(%r14), %eax
	movq	%rsi, %rbx
	movl	%eax, (%rsi)
	cmpl	$57, -44(%rbp)
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	224(%r14), %eax
	movl	%eax, 4(%r13,%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r14), %edi
	callq	_ROM32
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, 8(%r13,%r12)
	movl	20(%r14), %edi
	callq	_ROM32
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,4), %eax
	jmp	LBB0_13
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	64(%r13,%r12), %edi
	movl	$4, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	movl	%r14d, 32(%r13,%r12)
	leaq	(%r12,%r13), %rbx
	addq	$40, %rbx
	movl	56(%r13,%r12), %edi
	movl	$4, %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	movq	_nouveau_pm_static_profile_func@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r13,%r12)
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_list_add_tail
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incq	(%rax)
	jmp	LBB0_29
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r14), %eax
	movq	%rsi, %rbx
	movl	%eax, (%rsi)
	movl	20(%r14), %eax
	movl	%eax, 4(%r13,%r12)
	movl	24(%r14), %edi
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 16(%r13,%r12)
	movl	%eax, 8(%r13,%r12)
	movsbl	32(%r14), %ecx
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	addl	%eax, %ecx
	movl	%ecx, 8(%r13,%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_nv_device
	cmpl	$73, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_nv_device
	cmpl	$75, (%rax)
	jne	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	44(%r14), %edi
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	jmp	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r14), %eax
	movl	%eax, (%rsi)
	movl	20(%r14), %eax
	movl	%eax, 4(%r13,%r12)
	movl	24(%r14), %edi
	movq	%rsi, %rbx
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 8(%r13,%r12)
	movl	40(%r14), %edi
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 16(%r13,%r12)
	movl	48(%r14), %edi
	callq	_ROM16
	movq	%rbx, %rsi
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 12(%r13,%r12)
	jmp	LBB0_22
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r14), %edi
	movq	%rsi, %rbx
	callq	_ROM16
	movq	%rbx, %rsi
	movl	%eax, 20(%r13,%r12)
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r14), %eax
	movl	%eax, (%rsi)
	movl	28(%r14), %eax
	movl	%eax, 4(%r13,%r12)
	movl	32(%r14), %edi
	movq	%rsi, %rbx
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 8(%r13,%r12)
	movl	40(%r14), %edi
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 16(%r13,%r12)
	movl	48(%r14), %edi
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 12(%r13,%r12)
	movl	64(%r14), %edi
	callq	_ROM16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 24(%r13,%r12)
	movl	80(%r14), %edi
	callq	_ROM16
	movq	%rbx, %rsi
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 28(%r13,%r12)
	jmp	LBB0_22
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	$0, (%rsi)
	movl	8(%r14), %eax
	movl	%eax, 4(%r13,%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_nv_device
	movl	4(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_NV_50@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	-44(%rbp), %rax
	movl	(%r14,%rax,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cmpl	%ebx, -76(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 8(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	addq	%rax, %rcx
	movl	(%r14,%rcx,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 16(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rax,%rcx,2), %rax
	movl	(%r14,%rax,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 12(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	%rax, %rcx
	movl	(%r14,%rcx,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 24(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rax,%rcx,4), %rax
	movl	(%r14,%rax,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	%rax, 120(%r13,%r12)
	jmp	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	44(%r14), %edi
	callq	_ROM16
	imull	$2000, %eax, %eax               ## imm = 0x7D0
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 12(%r13,%r12)
	movq	%rbx, %rsi
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r15), %r14d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_perf_voltage
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r13,%r12), %esi
	testl	%esi, %esi
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_nouveau_volt_vid_lookup
	testl	%eax, %eax
	jns	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_NV_DEBUG
	jmp	LBB0_29
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %eax
	movq	%rax, 112(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	addq	%rax, %rcx
	movl	(%r14,%rcx,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	%rax, 104(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rax,%rcx,2), %rax
	movl	(%r14,%rax,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	%rax, 96(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	%rax, %rcx
	movl	(%r14,%rcx,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 16(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rax,%rcx,4), %rax
	movl	(%r14,%rax,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	%rax, 88(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	addq	%rax, %rcx
	movl	(%r14,%rcx,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 12(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,2), %rax
	movl	(%r14,%rax,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 24(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,2), %rax
	movl	(%r14,%rax,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	%rax, 80(%r13,%r12)
	movslq	-44(%rbp), %rax
	movslq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,4), %rdx
	leaq	(%rcx,%rdx,2), %rcx
	addq	%rax, %rcx
	movl	(%r14,%rcx,4), %edi
	callq	_ROM16
	andl	$4095, %eax                     ## imm = 0xFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	%rax, 72(%r13,%r12)
	movl	16(%r13,%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%r13,%r12)
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_31:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_22
	.long	L0_0_set_7
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_10
	.long	L0_0_set_22
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_16
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_17
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_NVBIOS_BMP,8,3                 ## @NVBIOS_BMP
	.comm	_NV_50,4,2                      ## @NV_50
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"perflvl %d, bad vid\n"

L_.str.1:                               ## @.str.1
	.asciz	"perflvl %d, bad timing: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"performance_level_%d"

L_.str.3:                               ## @.str.3
	.asciz	"%d"

	.comm	_nouveau_pm_static_profile_func,4,2 ## @nouveau_pm_static_profile_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_perf_init              ; -- Begin function nouveau_perf_init
	.p2align	2
_nouveau_perf_init:                     ; @nouveau_perf_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_nouveau_drm
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_pm
	mov	x21, x0
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _NVBIOS_BMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVBIOS_BMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x20, #24]
	add	x8, x8, x9, lsl #2
	ldr	w8, [x8, #24]
	cmp	w8, #36
	b.gt	LBB0_3
; %bb.2:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_legacy_perf_init
LBB0_3:
	add	x1, sp, #44
	mov	x0, x19
	bl	_nouveau_perf_table
	add	x2, sp, #44
	add	x3, sp, #40
	add	x4, sp, #36
	add	x5, sp, #32
	mov	x0, x19
	mov	w1, #0
	bl	_nouveau_perf_entry
	cbz	x0, LBB0_32
; %bb.4:
	mov	x27, x0
	add	x8, x21, #8
	stp	x20, x8, [sp, #16]              ; 16-byte Folded Spill
	mov	w26, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22, #64]
	mov	w1, #4
Lloh3:
	adrp	x2, l_.str.2@PAGE
Lloh4:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x27
	bl	_snprintf
	str	w27, [x22, #32]
	add	x28, x22, #40
	ldr	w0, [x22, #56]
	mov	w1, #4
Lloh5:
	adrp	x2, l_.str.3@PAGE
Lloh6:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x27
	bl	_snprintf
Lloh7:
	adrp	x8, _nouveau_pm_static_profile_func@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nouveau_pm_static_profile_func@GOTPAGEOFF]
	str	x8, [x22, #48]
	mov	x0, x28
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_list_add_tail
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x2, sp, #44
	add	x3, sp, #40
	add	x4, sp, #36
	add	x5, sp, #32
	mov	x0, x19
	mov	x1, x26
	bl	_nouveau_perf_entry
	mov	x27, x0
	add	w26, w26, #1
	cbz	x0, LBB0_32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cmp	w8, #255
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x25, [x21, #24]
	ldr	x22, [x21]
	add	x28, x25, x22, lsl #7
	ldr	w8, [sp, #44]
	sub	w8, w8, #18
	cmp	w8, #46
	b.hi	LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x11, lJTI0_0@PAGE
Lloh10:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_10
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27, #220]
	str	w8, [x28]
	ldr	w8, [sp, #40]
	cmp	w8, #57
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27, #224]
	add	x9, x25, x22, lsl #7
	str	w8, [x9, #4]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x27, #4]
	bl	_ROM32
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	add	x24, x25, x22, lsl #7
	str	w8, [x24, #8]
	ldr	w0, [x27, #20]
	bl	_ROM32
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #2
	str	w8, [x24, #12]
	b	LBB0_25
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27, #16]
	str	w8, [x28]
	ldr	w8, [x27, #20]
	add	x24, x25, x22, lsl #7
	str	w8, [x24, #4]
	ldr	w0, [x27, #24]
	bl	_ROM16
	mov	w10, #1000
	mul	w8, w0, w10
	str	w8, [x24, #16]
	str	w8, [x24, #8]
	ldrsb	w9, [x27, #32]
	mov	w23, #1000
	madd	w8, w9, w10, w8
	str	w8, [x24, #8]
	ldr	w0, [x20]
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #73
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20]
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #75
	b.ne	LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x27, #44]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27, #16]
	str	w8, [x28]
	ldr	w8, [x27, #20]
	add	x24, x25, x22, lsl #7
	str	w8, [x24, #4]
	ldr	w0, [x27, #24]
	bl	_ROM16
	mov	w23, #1000
	mul	w8, w0, w23
	str	w8, [x24, #8]
	ldr	w0, [x27, #40]
	bl	_ROM16
	mul	w8, w0, w23
	str	w8, [x24, #16]
	ldr	w0, [x27, #48]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_ROM16
	mul	w8, w0, w23
	str	w8, [x24, #12]
	b	LBB0_25
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x27, #8]
	bl	_ROM16
	add	x8, x25, x22, lsl #7
	str	w0, [x8, #20]
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x27, #24]
	str	w8, [x28]
	ldr	w8, [x27, #28]
	add	x24, x25, x22, lsl #7
	str	w8, [x24, #4]
	ldr	w0, [x27, #32]
	bl	_ROM16
	mov	w23, #1000
	mul	w8, w0, w23
	str	w8, [x24, #8]
	ldr	w0, [x27, #40]
	bl	_ROM16
	mul	w8, w0, w23
	str	w8, [x24, #16]
	ldr	w0, [x27, #48]
	bl	_ROM16
	mul	w8, w0, w23
	str	w8, [x24, #12]
	ldr	w0, [x27, #64]
	bl	_ROM16
	mul	w8, w0, w23
	str	w8, [x24, #24]
	ldr	w0, [x27, #80]
	bl	_ROM16
	mul	w8, w0, w23
	str	w8, [x24, #28]
	b	LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x28]
	ldr	w8, [x27, #8]
	add	x24, x25, x22, lsl #7
	str	w8, [x24, #4]
	ldr	w0, [x20]
	bl	_nv_device
	ldr	w23, [x0, #4]
Lloh11:
	adrp	x8, _NV_50@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NV_50@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	ldrsw	x8, [sp, #40]
	ldr	w0, [x27, x8, lsl #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mov	w9, #1000
	mul	w8, w8, w9
	cmp	w23, w20
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	str	w8, [x24, #8]
	ldr	w8, [sp, #40]
	mov	w20, #1000
	ldr	w9, [sp, #32]
	add	w8, w9, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	w8, [x24, #16]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	add	w8, w8, w9, lsl #1
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	w8, [x24, #12]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	add	w9, w9, w9, lsl #1
	add	w8, w9, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	w8, [x24, #24]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	add	w8, w8, w9, lsl #2
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	x8, [x24, #120]
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x27, #44]
	bl	_ROM16
	mov	w8, #2000
	mul	w8, w0, w8
	add	x9, x25, x22, lsl #7
	str	w8, [x9, #12]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [x24, #112]
	ldr	w8, [sp, #40]
	mov	w20, #1000
	ldr	w9, [sp, #32]
	add	w8, w9, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	x8, [x24, #104]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	add	w8, w8, w9, lsl #1
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	x8, [x24, #96]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	add	w9, w9, w9, lsl #1
	add	w8, w9, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	w8, [x24, #16]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	add	w8, w8, w9, lsl #2
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	x8, [x24, #88]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	add	w9, w9, w9, lsl #2
	add	w8, w9, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	w8, [x24, #12]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	mov	w10, #6
	madd	w8, w9, w10, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	w8, [x24, #24]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	mov	w10, #10
	madd	w8, w9, w10, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	x8, [x24, #80]
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #32]
	mov	w10, #11
	madd	w8, w9, w10, w8
	ldr	w0, [x27, w8, sxtw #2]
	bl	_ROM16
	and	w8, w0, #0xfff
	mul	w8, w8, w20
	str	x8, [x24, #72]
	ldr	w8, [x24, #16]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x24, #8]
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w27, w26, #1
	mov	x0, x19
	mov	x1, x28
	bl	_nouveau_perf_voltage
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x25, x22, lsl #7
	ldr	w1, [x8, #4]
	cbz	w1, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_nouveau_volt_vid_lookup
	tbnz	w0, #31, LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x25, x22, lsl #7
	ldr	w1, [x22, #12]
	add	x2, x22, #68
	mov	x0, x19
	bl	_nouveau_mem_timing_calc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.29:                               ;   in Loop: Header=BB0_7 Depth=1
	str	x0, [sp]
	mov	x0, x20
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x27
	bl	_NV_DEBUG
	b	LBB0_6
LBB0_32:
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_18-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_19-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_20-LBB0_10)>>2
                                        ; -- End function
	.comm	_NVBIOS_BMP,8,3                 ; @NVBIOS_BMP
	.comm	_NV_50,4,2                      ; @NV_50
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"perflvl %d, bad vid\n"

l_.str.1:                               ; @.str.1
	.asciz	"perflvl %d, bad timing: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"performance_level_%d"

l_.str.3:                               ; @.str.3
	.asciz	"%d"

	.comm	_nouveau_pm_static_profile_func,4,2 ; @nouveau_pm_static_profile_func
.subsections_via_symbols
