	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_perf_timing            ## -- Begin function nouveau_perf_timing
	.p2align	4, 0x90
_nouveau_perf_timing:                   ## @nouveau_perf_timing
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_nouveau_drm
	movq	(%rax), %rax
	movq	_NVBIOS_BMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	leaq	-64(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_nouveau_perf_entry
	testq	%rax, %rax
	je	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$21, (%rbx)
	jne	LBB0_23
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	20(%rax), %edi
	callq	_ROM32
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,4), %eax
	incl	%r13d
	cmpl	%r15d, %eax
	jl	LBB0_2
## %bb.5:
	movl	$0, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$14, (%rax)
	addq	$164, %r14
	movq	%r14, %rax
	jmp	LBB0_24
LBB0_6:
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	movl	$80, %esi
	callq	_bit_table
	testl	%eax, %eax
	je	LBB0_8
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-64(%rbp), %eax
	cmpl	$1, %eax
	je	LBB0_13
## %bb.9:
	cmpl	$2, %eax
	jne	LBB0_23
## %bb.10:
	movl	$8, %eax
	jmp	LBB0_14
LBB0_13:
	movl	$4, %eax
LBB0_14:
	movq	-56(%rbp), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	%r12, %rdi
	callq	_ROMPTR
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	movq	%rax, %r14
	cmpl	$16, (%rax)
	jne	LBB0_23
## %bb.16:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_nouveau_perf_ramcfg
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movl	4(%rax), %ecx
	cmpl	8(%r14), %ecx
	jge	LBB0_23
## %bb.18:
	movl	(%r14), %ecx
	movl	%ecx, (%rbx)
	movl	12(%r14), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movslq	4(%r14), %rcx
	leaq	(%r14,%rcx,4), %rcx
	movslq	4(%rax), %rax
	movslq	12(%r14), %rdx
	imulq	%rax, %rdx
	leaq	(%rcx,%rdx,4), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_NVBIOS_BMP,8,3                 ## @NVBIOS_BMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_perf_timing            ; -- Begin function nouveau_perf_timing
	.p2align	2
_nouveau_perf_timing:                   ; @nouveau_perf_timing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_nouveau_drm
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NVBIOS_BMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVBIOS_BMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #16
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x5, x19
	bl	_nouveau_perf_entry
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	cmp	w8, #21
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	ldr	w0, [x0, #20]
	bl	_ROM32
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #2
	add	w23, w23, #1
	cmp	w8, w21
	b.lt	LBB0_2
; %bb.5:
	str	wzr, [x20]
	mov	w8, #14
	str	w8, [x19]
	add	x0, x24, #164
	b	LBB0_8
LBB0_6:
	add	x2, sp, #16
	mov	x0, x22
	mov	w1, #80
	bl	_bit_table
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.11:
	mov	w8, #8
	b	LBB0_13
LBB0_12:
	mov	w8, #4
LBB0_13:
	ldr	x9, [sp, #24]
	ldr	w1, [x9, x8, lsl #2]
	mov	x0, x22
	bl	_ROMPTR
	cbz	x0, LBB0_8
; %bb.14:
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #16
	b.ne	LBB0_7
; %bb.15:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_nouveau_perf_ramcfg
	cbz	x0, LBB0_8
; %bb.16:
	ldr	w8, [x0, #4]
	ldr	w9, [x23, #8]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.17:
	ldr	w8, [x23]
	str	w8, [x20]
	ldr	w8, [x23, #12]
	str	w8, [x19]
	ldrsw	x8, [x23, #4]
	add	x8, x23, x8, lsl #2
	ldr	w9, [x0, #4]
	ldr	w10, [x23, #12]
	mul	w9, w10, w9
	add	x0, x8, w9, sxtw #2
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVBIOS_BMP,8,3                 ; @NVBIOS_BMP
.subsections_via_symbols
