	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CountUserBackends              ## -- Begin function CountUserBackends
	.p2align	4, 0x90
_CountUserBackends:                     ## @CountUserBackends
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ProcArrayLock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%rbx), %rcx
	movq	_allProcs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%rsi,4), %rdi
	leaq	(%rdi,%rdi,2), %rdi
	cmpq	$0, (%rdx,%rdi,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rdx,%rdi,8)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	cmpq	%r14, 8(%rdx,%rdi,8)
	sete	%bl
	addl	%ebx, %r12d
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
LBB0_7:
	movl	(%r15), %edi
	callq	_LWLockRelease
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_allProcs,8,3                   ## @allProcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CountUserBackends              ; -- Begin function CountUserBackends
	.p2align	2
_CountUserBackends:                     ; @CountUserBackends
	.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	x19, x0
Lloh0:
	adrp	x8, _procArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x21, _ProcArrayLock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w20, #0
	ldr	x9, [x22, #8]
Lloh8:
	adrp	x10, _allProcs@GOTPAGE
Lloh9:
	ldr	x10, [x10, _allProcs@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	mov	w11, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x9]
	mul	x13, x12, x11
	ldr	x13, [x10, x13]
	cbz	x13, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x13, x12, x11, x10
	ldr	x13, [x13, #16]
	cbnz	x13, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x12, x12, x11, x10
	ldr	x12, [x12, #8]
	cmp	x12, x19
	cinc	w20, w20, eq
	b	LBB0_2
LBB0_6:
	mov	w20, #0
LBB0_7:
	ldr	w0, [x21]
	bl	_LWLockRelease
	mov	x0, x20
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_allProcs,8,3                   ; @allProcs
.subsections_via_symbols
