	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_findcount                      ## -- Begin function findcount
	.p2align	4, 0x90
_findcount:                             ## @findcount
	.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, %r15d
	movl	%esi, %r14d
	movq	_findcount.cursor(%rip), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	cmpq	%rdi, (%rcx)
	je	LBB0_4
LBB0_2:
	callq	_findfile
	movq	%rax, %rcx
	movq	%rax, _findcount.cursor(%rip)
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movl	8(%rcx), %edx
	movl	$-1, %eax
	testl	%edx, %edx
	jle	LBB0_14
## %bb.5:
	movq	16(%rcx), %r8
	decl	%edx
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	decl	%edi
	movl	%edi, %edx
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%edx, %esi
	jg	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rdx), %ebx
	movl	%ebx, %edi
	shrl	$31, %edi
	addl	%ebx, %edi
	sarl	%edi
	movslq	%edi, %rbx
	leaq	(%rbx,%rbx,2), %rbx
	movl	(%r8,%rbx,4), %ecx
	cmpl	%r15d, %ecx
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r14d, 4(%r8,%rbx,4)
	jg	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%edi
	movl	%edi, %esi
	jmp	LBB0_12
LBB0_3:
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_13:
	movl	8(%r8,%rbx,4), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_findcount.cursor,8,3 ## @findcount.cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_findcount                      ; -- Begin function findcount
	.p2align	2
_findcount:                             ; @findcount
	.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, x2
	mov	x20, x1
	mov	x8, x0
	adrp	x21, _findcount.cursor@PAGE
	ldr	x0, [x21, _findcount.cursor@PAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x9, [x0]
	cmp	x9, x8
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x8
	bl	_findfile
	str	x0, [x21, _findcount.cursor@PAGEOFF]
	cbz	x0, LBB0_12
LBB0_3:
	ldr	w8, [x0, #8]
	subs	w9, w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	w11, #0
	ldr	x8, [x0, #16]
	mov	w10, #12
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w9, w12, #1
	cmp	w11, w9
	b.gt	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w11, w9
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w13, w12, #1
	sbfx	x12, x12, #1, #31
	smull	x13, w13, w10
	ldr	w13, [x8, x13]
	cmp	w13, w19
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x13, x12, x10, x8
	ldr	w13, [x13, #4]
	cmp	w13, w20
	b.gt	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	b.lt	LBB0_11
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w13, w19
	b.ge	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w11, w12, #1
	cmp	w11, w9
	b.le	LBB0_6
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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
LBB0_14:
	mov	w9, #12
	madd	x8, x12, x9, x8
	ldr	w0, [x8, #8]
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_findcount.cursor,8,3 ; @findcount.cursor
.subsections_via_symbols
