	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_perfctr_init
_nv40_perfctr_init:                     ## @nv40_perfctr_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	(%rdi), %r15
	movl	(%rdx), %r14d
	movq	8(%rdx), %rax
	movl	4(%rax), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movl	8(%rax), %edx
	shll	$16, %edx
	movl	12(%rax), %ebx
	shll	$24, %ebx
	orl	%edx, %ebx
	movl	$42944, %esi                    ## imm = 0xA7C0
	addq	8(%r13), %rsi
	orl	%ecx, %ebx
	movl	(%r13), %edx
	shll	$4, %edx
	orl	$1, %edx
	movq	%r15, %rdi
	callq	_nvkm_wr32
	movq	8(%r13), %rax
	movslq	16(%r12), %rcx
	shlq	$6, %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$41984, %rsi                    ## imm = 0xA400
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	8(%r13), %rax
	movslq	16(%r12), %rcx
	shlq	$6, %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$42016, %rsi                    ## imm = 0xA420
	movq	%r15, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv40_perfctr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_perfctr_init
_nv40_perfctr_init:                     ; @nv40_perfctr_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	w22, [x2]
	ldr	x8, [x2, #8]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #16
	orr	w23, w9, w8, lsl #24
	ldr	x8, [x1, #8]
	mov	w9, #42944
	add	x1, x8, x9
	ldr	w8, [x20]
	mov	w2, #1
	bfi	w2, w8, #4, #28
	mov	x0, x21
	bl	_nvkm_wr32
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19, #16]
	add	x8, x8, x9, lsl #6
	mov	w9, #41984
	add	x1, x8, x9
	mov	x0, x21
	mov	x2, x23
	bl	_nvkm_wr32
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19, #16]
	add	x8, x8, x9, lsl #6
	mov	w9, #42016
	add	x1, x8, x9
	mov	x0, x21
	mov	x2, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvkm_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv40_perfctr_init
.subsections_via_symbols
