	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_perfmon_stop               ## -- Begin function vc4_perfmon_stop
	.p2align	4, 0x90
_vc4_perfmon_stop:                      ## @vc4_perfmon_stop
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	sete	%cl
	cmpq	%rsi, %rax
	setne	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$0, (%r15)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_V3D_PCTR
	movl	%eax, %edi
	callq	_V3D_READ
	movq	8(%r15), %rcx
	addl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	movq	_V3D_PCTRE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_V3D_WRITE
	movq	$0, (%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V3D_PCTRE,4,2                  ## @V3D_PCTRE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc4_perfmon_stop               ; -- Begin function vc4_perfmon_stop
	.p2align	2
_vc4_perfmon_stop:                      ; @vc4_perfmon_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	ccmp	x8, x1, #0, ne
	cset	w0, ne
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_6
; %bb.1:
	cbz	w21, LBB0_5
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_V3D_PCTR
	bl	_V3D_READ
	ldr	x8, [x20, #8]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
	add	x21, x21, #1
	ldr	w8, [x20]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_5:
Lloh0:
	adrp	x8, _V3D_PCTRE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V3D_PCTRE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_V3D_WRITE
	str	xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V3D_PCTRE,4,2                  ; @V3D_PCTRE
.subsections_via_symbols
