	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_flush_count
_p54_flush_count:                       ## @p54_flush_count
	.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
	movq	%rdi, %r15
	movq	_P54_QUEUE_NUM@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	(%rdi), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	seta	%dil
	callq	_BUILD_BUG_ON
	movq	_P54_QUEUE_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	jae	LBB0_11
## %bb.1:
	movq	(%r15), %rsi
	movq	%rdx, %r10
	subq	%rcx, %r10
	xorl	%eax, %eax
	cmpq	$4, %r10
	jb	LBB0_10
## %bb.2:
	movq	%r10, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rax
	movq	%rax, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r9, %rax
	andq	$-2, %rax
	leaq	(%rsi,%rcx,8), %rdi
	addq	$48, %rdi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rdi,%rbx,8), %xmm2
	movdqu	-32(%rdi,%rbx,8), %xmm3
	movdqu	-16(%rdi,%rbx,8), %xmm4
	movdqu	(%rdi,%rbx,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rbx
	addq	$-2, %rax
	jne	LBB0_5
## %bb.6:
	testb	$1, %r9b
	je	LBB0_8
LBB0_7:
	addq	%rcx, %rbx
	movdqu	(%rsi,%rbx,8), %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_8:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%r8, %r10
	je	LBB0_11
## %bb.9:
	addq	%r8, %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rsi,%rcx,8), %eax
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	testb	$1, %r9b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_P54_QUEUE_NUM,4,2              ## @P54_QUEUE_NUM
	.comm	_P54_QUEUE_MGMT,4,2             ## @P54_QUEUE_MGMT
	.no_dead_strip	_p54_flush_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_flush_count
_p54_flush_count:                       ; @p54_flush_count
	.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	x20, _P54_QUEUE_NUM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _P54_QUEUE_NUM@GOTPAGEOFF]
	ldr	w21, [x20]
	ldr	x0, [x0]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	cset	w0, hi
	bl	_BUILD_BUG_ON
Lloh2:
	adrp	x8, _P54_QUEUE_MGMT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P54_QUEUE_MGMT@GOTPAGEOFF]
Lloh4:
	ldr	w13, [x8]
	ldr	w8, [x20]
	cmp	w13, w8
	b.hs	LBB0_3
; %bb.1:
	ldr	x9, [x19]
	sub	x11, x8, x13
	cmp	x11, #8
	b.hs	LBB0_4
; %bb.2:
	mov	w0, #0
	mov	x10, x13
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	and	x12, x11, #0xfffffffffffffff8
	add	x10, x12, x13
	add	x13, x9, x13, lsl #3
	add	x13, x13, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x14, x14, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
	cmp	x11, x12
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w0, w0, w10
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_P54_QUEUE_NUM,4,2              ; @P54_QUEUE_NUM
	.comm	_P54_QUEUE_MGMT,4,2             ; @P54_QUEUE_MGMT
	.no_dead_strip	_p54_flush_count
.subsections_via_symbols
