	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_perf_voltage
_nouveau_perf_voltage:                  ## @nouveau_perf_voltage
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r14
	movslq	(%r15), %r12
	movl	$0, (%r15)
	movq	(%rax), %rax
	cmpl	$63, (%rax)
	jg	LBB0_2
## %bb.1:
	imull	$10000, %r12d, %eax             ## imm = 0x2710
	movl	%eax, (%r15)
	movl	%eax, 4(%r15)
	jmp	LBB0_10
LBB0_2:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_bit_table
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	cmpl	$2, %edx
	jne	LBB0_5
## %bb.4:
	cmpl	$33, %ecx
	jle	LBB0_5
## %bb.6:
	movq	-40(%rbp), %rax
	movl	128(%rax), %esi
	movq	%rbx, %rdi
	callq	_ROMPTR
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	cmpl	12(%rax), %r12d
	jge	LBB0_10
## %bb.9:
	movslq	4(%rbx), %rax
	movslq	8(%rbx), %r14
	imulq	%r12, %r14
	addq	%rax, %r14
	movl	(%rbx,%r14,4), %edi
	callq	_ROM32
	movl	%eax, (%r15)
	movl	16(%rbx,%r14,4), %edi
	callq	_ROM32
	movl	%eax, 4(%r15)
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_DEBUG
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_DEBUG
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"where's our volt map table ptr? %d %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"volt map table pointer invalid\n"

	.no_dead_strip	_nouveau_perf_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_perf_voltage
_nouveau_perf_voltage:                  ; @nouveau_perf_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_nouveau_drm
	ldr	w22, [x19]
	str	wzr, [x19]
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #63
	b.gt	LBB0_2
; %bb.1:
	mov	w8, #10000
	mul	w8, w22, w8
	stp	w8, w8, [x19]
	b	LBB0_11
LBB0_2:
	mov	x20, x0
	add	x2, sp, #16
	mov	x0, x21
	mov	w1, #80
	bl	_bit_table
	ldp	w8, w9, [sp, #16]
	cbnz	x0, LBB0_8
; %bb.3:
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.4:
	cmp	w9, #33
	b.le	LBB0_8
; %bb.5:
	ldr	x8, [sp, #24]
	ldr	w1, [x8, #128]
	mov	x0, x21
	bl	_ROMPTR
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w8, [x0, #12]
	cmp	w22, w8
	b.ge	LBB0_11
; %bb.7:
	ldp	w8, w9, [x0, #4]
	madd	w8, w9, w22, w8
	add	x20, x0, w8, sxtw #2
	ldr	w0, [x20]
	bl	_ROM32
	str	w0, [x19]
	ldr	w0, [x20, #16]
	bl	_ROM32
	str	w0, [x19, #4]
	b	LBB0_11
LBB0_8:
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_NV_DEBUG
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"where's our volt map table ptr? %d %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"volt map table pointer invalid\n"

	.no_dead_strip	_nouveau_perf_voltage
.subsections_via_symbols
