	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmm_ac_get_tspecs_count
_wmm_ac_get_tspecs_count:               ## @wmm_ac_get_tspecs_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_WMM_AC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	_TS_DIR_IDX_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %r11d
	andl	$-4, %r11d
	leaq	-4(%r11), %r8
	movq	%r8, %r9
	shrq	$2, %r9
	incq	%r9
	movq	%r9, %r10
	andq	$-2, %r10
	xorl	%esi, %esi
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm1
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%r14, %rsi
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	testl	%edx, %edx
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rcx
	movq	(%rcx,%rsi,8), %rbx
	cmpl	$4, %edx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movd	%eax, %xmm2
	pxor	%xmm3, %xmm3
	testq	%r8, %r8
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r10, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rbx,%rax,8), %xmm4
	movdqu	16(%rbx,%rax,8), %xmm5
	movdqu	32(%rbx,%rax,8), %xmm6
	movdqu	48(%rbx,%rax,8), %xmm7
	pcmpeqq	%xmm0, %xmm4
	pshufd	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm4
	pcmpeqq	%xmm0, %xmm5
	pshufd	$232, %xmm5, %xmm5              ## xmm5 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm5
	pcmpeqq	%xmm0, %xmm6
	pshufd	$232, %xmm6, %xmm2              ## xmm2 = xmm6[0,2,2,3]
	paddd	%xmm4, %xmm2
	pcmpeqq	%xmm0, %xmm7
	pshufd	$232, %xmm7, %xmm3              ## xmm3 = xmm7[0,2,2,3]
	paddd	%xmm5, %xmm3
	psubd	%xmm1, %xmm2
	psubd	%xmm1, %xmm2
	psubd	%xmm1, %xmm3
	psubd	%xmm1, %xmm3
	addq	$8, %rax
	addq	$-2, %rcx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r9b
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movdqu	(%rbx,%rax,8), %xmm4
	movdqu	16(%rbx,%rax,8), %xmm5
	pcmpeqq	%xmm0, %xmm4
	pshufd	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	paddd	%xmm4, %xmm2
	pcmpeqq	%xmm0, %xmm5
	pshufd	$232, %xmm5, %xmm4              ## xmm4 = xmm5[0,2,2,3]
	paddd	%xmm4, %xmm3
	psubd	%xmm1, %xmm2
	psubd	%xmm1, %xmm3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	paddd	%xmm3, %xmm2
	pshufd	$85, %xmm2, %xmm3               ## xmm3 = xmm2[1,1,1,1]
	paddd	%xmm2, %xmm3
	movd	%xmm3, %eax
	movq	%r11, %rcx
	cmpq	%rdx, %r11
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$1, (%rbx,%rcx,8)
	sbbl	$-1, %eax
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_13
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	testb	$1, %r9b
	jne	LBB0_11
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMM_AC_NUM,4,2                 ## @WMM_AC_NUM
	.comm	_TS_DIR_IDX_COUNT,4,2           ## @TS_DIR_IDX_COUNT
	.no_dead_strip	_wmm_ac_get_tspecs_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmm_ac_get_tspecs_count
_wmm_ac_get_tspecs_count:               ; @wmm_ac_get_tspecs_count
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _WMM_AC_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMM_AC_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x10, #0
	mov	w8, #0
Lloh3:
	adrp	x11, _TS_DIR_IDX_COUNT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _TS_DIR_IDX_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	and	x12, x11, #0xfffffff8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x0]
	ldr	x13, [x13, x10, lsl #3]
	cmp	w11, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	movi	d0, #0000000000000000
	mov.s	v0[0], w8
	movi.2d	v1, #0000000000000000
	add	x8, x13, #32
	mov	x14, x12
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x8, #-32]
	ldp	q6, q7, [x8], #64
	cmtst.2d	v4, v4, v4
	xtn.2s	v4, v4
	cmtst.2d	v5, v5, v5
	xtn.2s	v5, v5
	cmtst.2d	v6, v6, v6
	xtn.2s	v6, v6
	cmtst.2d	v7, v7, v7
	xtn.2s	v7, v7
	sub.2s	v0, v0, v4
	sub.2s	v1, v1, v5
	sub.2s	v2, v2, v6
	sub.2s	v3, v3, v7
	subs	x14, x14, #8
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w8, s0
	mov	x14, x12
	cmp	x12, x11
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, x14, lsl #3
	sub	x14, x11, x14
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x13], #8
	cmp	x15, #0
	cinc	w8, w8, ne
	subs	x14, x14, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	mov	x0, x8
	ret
LBB0_12:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WMM_AC_NUM,4,2                 ; @WMM_AC_NUM
	.comm	_TS_DIR_IDX_COUNT,4,2           ; @TS_DIR_IDX_COUNT
	.no_dead_strip	_wmm_ac_get_tspecs_count
.subsections_via_symbols
