	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_perf_table
_nouveau_perf_table:                    ## @nouveau_perf_table
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r15
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_bit_table
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$2, %eax
	jg	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ROMPTR
	movq	%rax, %rcx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_4:
	movq	(%r15), %rax
	movq	_NVBIOS_BMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:
	movq	8(%r15), %rax
	movslq	16(%r15), %rcx
	cmpl	$37, 24(%rax,%rcx,4)
	jl	LBB0_11
## %bb.6:
	movl	592(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	_ROMPTR
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %rcx
	addq	$4, %rcx
LBB0_8:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVBIOS_BMP,8,3                 ## @NVBIOS_BMP
	.no_dead_strip	_nouveau_perf_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_perf_table
_nouveau_perf_table:                    ; @nouveau_perf_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_nouveau_drm
	mov	x21, x0
	mov	x2, sp
	mov	x0, x20
	mov	w1, #80
	bl	_bit_table
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w8, [sp]
	cmp	w8, #0
	ccmp	w8, #2, #0, ne
	b.gt	LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ROMPTR
	mov	x8, x0
	cbnz	x0, LBB0_7
LBB0_3:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NVBIOS_BMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVBIOS_BMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	w9, [x21, #16]
	add	w10, w9, #6
	ldr	w10, [x8, w10, sxtw #2]
	cmp	w10, #37
	b.lt	LBB0_8
; %bb.5:
	add	w9, w9, #148
	ldr	w1, [x8, w9, sxtw #2]
	mov	x0, x20
	bl	_ROMPTR
	cbz	x0, LBB0_9
; %bb.6:
	add	x8, x0, #4
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVBIOS_BMP,8,3                 ; @NVBIOS_BMP
	.no_dead_strip	_nouveau_perf_table
.subsections_via_symbols
