	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function s10_free_buffer_count
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_s10_free_buffer_count:                 ## @s10_free_buffer_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NUM_SVC_BUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	cmpq	$4, %rcx
	jae	LBB0_5
## %bb.3:
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	%rcx, %rsi
	andq	$-4, %rsi
	leaq	-4(%rsi), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r8, %rax
	andq	$-2, %rax
	pxor	%xmm2, %xmm2
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,1]
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,4), %xmm4            ## xmm4 = mem[0],zero
	movq	8(%rdx,%rdi,4), %xmm5           ## xmm5 = mem[0],zero
	pcmpeqd	%xmm2, %xmm4
	pmovzxdq	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,xmm4[1],zero
	pand	%xmm3, %xmm4
	paddq	%xmm0, %xmm4
	pcmpeqd	%xmm2, %xmm5
	pmovzxdq	%xmm5, %xmm5                    ## xmm5 = xmm5[0],zero,xmm5[1],zero
	pand	%xmm3, %xmm5
	paddq	%xmm1, %xmm5
	movq	16(%rdx,%rdi,4), %xmm0          ## xmm0 = mem[0],zero
	movq	24(%rdx,%rdi,4), %xmm1          ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm0
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	pand	%xmm3, %xmm0
	paddq	%xmm4, %xmm0
	pcmpeqd	%xmm2, %xmm1
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	pand	%xmm3, %xmm1
	paddq	%xmm5, %xmm1
	addq	$8, %rdi
	addq	$-2, %rax
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movq	(%rdx,%rdi,4), %xmm2            ## xmm2 = mem[0],zero
	movq	8(%rdx,%rdi,4), %xmm3           ## xmm3 = mem[0],zero
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm2
	pmovzxdq	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,xmm2[1],zero
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [1,1]
	pand	%xmm5, %xmm2
	paddq	%xmm2, %xmm0
	pcmpeqd	%xmm4, %xmm3
	pmovzxdq	%xmm3, %xmm2                    ## xmm2 = xmm3[0],zero,xmm3[1],zero
	pand	%xmm5, %xmm2
	paddq	%xmm2, %xmm1
LBB0_11:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	jmp	LBB0_12
LBB0_6:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_4:
	cmpl	$1, (%rdx,%rsi,4)
	adcq	$0, %rax
	incq	%rsi
LBB0_12:
	cmpq	%rsi, %rcx
	jne	LBB0_4
## %bb.13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_SVC_BUFS,8,3               ## @NUM_SVC_BUFS
	.no_dead_strip	_s10_free_buffer_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s10_free_buffer_count
_s10_free_buffer_count:                 ; @s10_free_buffer_count
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NUM_SVC_BUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_SVC_BUFS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x0]
	ldr	x9, [x9]
	cmp	x8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	x0, #0
	b	LBB0_7
LBB0_3:
	mov	x0, #0
	ret
LBB0_4:
	and	x10, x8, #0xfffffffffffffff8
	add	x11, x9, #16
	movi.2d	v0, #0000000000000000
	mov	w12, #1
	dup.2d	v1, x12
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d5, d6, [x11, #-16]
	ldp	d7, d16, [x11], #32
	cmeq.2s	v5, v5, #0
	ushll.2d	v5, v5, #0
	and.16b	v5, v5, v1
	cmeq.2s	v6, v6, #0
	ushll.2d	v6, v6, #0
	and.16b	v6, v6, v1
	cmeq.2s	v7, v7, #0
	ushll.2d	v7, v7, #0
	and.16b	v7, v7, v1
	cmeq.2s	v16, v16, #0
	ushll.2d	v16, v16, #0
	and.16b	v16, v16, v1
	add.2d	v0, v0, v5
	add.2d	v2, v2, v6
	add.2d	v3, v3, v7
	add.2d	v4, v4, v16
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x0, d0
	cmp	x8, x10
	b.eq	LBB0_9
LBB0_7:
	sub	x8, x8, x10
	add	x9, x9, x10, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	cmp	w10, #0
	cinc	x0, x0, eq
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_SVC_BUFS,8,3               ; @NUM_SVC_BUFS
	.no_dead_strip	_s10_free_buffer_count
.subsections_via_symbols
