	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function count_bound_keys
LCPI0_0:
	.long	196608                          ## 0x30000
	.long	196608                          ## 0x30000
	.long	196608                          ## 0x30000
	.long	196608                          ## 0x30000
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_count_bound_keys:                      ## @count_bound_keys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movd	%edi, %xmm0
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	pslld	$16, %xmm3
	movq	_currentConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [196608,196608,196608,196608]
	movdqu	(%rax), %xmm0
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [1,1,1,1]
	movdqa	%xmm5, %xmm6
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movdqa	%xmm0, %xmm6
	pand	%xmm4, %xmm6
	pcmpeqd	%xmm3, %xmm6
LBB0_2:
	movdqu	16(%rax), %xmm7
	pand	%xmm1, %xmm0
	pxor	%xmm8, %xmm8
	pcmpeqd	%xmm8, %xmm0
	pandn	%xmm6, %xmm0
	pand	%xmm5, %xmm0
	movdqa	%xmm5, %xmm2
	js	LBB0_4
## %bb.3:
	movdqa	%xmm7, %xmm2
	pand	%xmm4, %xmm2
	pcmpeqd	%xmm3, %xmm2
LBB0_4:
	movdqu	32(%rax), %xmm6
	pand	%xmm1, %xmm7
	pcmpeqd	%xmm8, %xmm7
	pandn	%xmm2, %xmm7
	pand	%xmm5, %xmm7
	paddd	%xmm7, %xmm0
	movdqa	%xmm5, %xmm2
	js	LBB0_6
## %bb.5:
	movdqa	%xmm6, %xmm2
	pand	%xmm4, %xmm2
	pcmpeqd	%xmm3, %xmm2
LBB0_6:
	movdqu	48(%rax), %xmm7
	pand	%xmm1, %xmm6
	pcmpeqd	%xmm8, %xmm6
	pandn	%xmm2, %xmm6
	pand	%xmm5, %xmm6
	paddd	%xmm6, %xmm0
	movdqa	%xmm5, %xmm2
	js	LBB0_8
## %bb.7:
	movdqa	%xmm7, %xmm2
	pand	%xmm4, %xmm2
	pcmpeqd	%xmm3, %xmm2
LBB0_8:
	pand	%xmm1, %xmm7
	pcmpeqd	%xmm8, %xmm7
	pandn	%xmm2, %xmm7
	pand	%xmm5, %xmm7
	paddd	%xmm7, %xmm0
	movdqu	64(%rax), %xmm6
	movdqa	%xmm5, %xmm2
	js	LBB0_10
## %bb.9:
	movdqa	%xmm6, %xmm2
	pand	%xmm4, %xmm2
	pcmpeqd	%xmm3, %xmm2
LBB0_10:
	pand	%xmm1, %xmm6
	pcmpeqd	%xmm8, %xmm6
	pandn	%xmm2, %xmm6
	pand	%xmm5, %xmm6
	paddd	%xmm6, %xmm0
	movdqu	80(%rax), %xmm6
	movdqa	%xmm5, %xmm2
	js	LBB0_12
## %bb.11:
	movdqa	%xmm6, %xmm2
	pand	%xmm4, %xmm2
	pcmpeqd	%xmm3, %xmm2
LBB0_12:
	pand	%xmm1, %xmm6
	pcmpeqd	%xmm8, %xmm6
	pandn	%xmm2, %xmm6
	pand	%xmm5, %xmm6
	paddd	%xmm6, %xmm0
	movdqu	96(%rax), %xmm6
	movdqa	%xmm5, %xmm2
	js	LBB0_14
## %bb.13:
	movdqa	%xmm6, %xmm2
	pand	%xmm4, %xmm2
	pcmpeqd	%xmm3, %xmm2
LBB0_14:
	pand	%xmm1, %xmm6
	pcmpeqd	%xmm8, %xmm6
	pandn	%xmm2, %xmm6
	pand	%xmm5, %xmm6
	paddd	%xmm6, %xmm0
	movdqu	112(%rax), %xmm6
	movdqa	%xmm5, %xmm2
	js	LBB0_16
## %bb.15:
	pand	%xmm6, %xmm4
	pcmpeqd	%xmm3, %xmm4
	movdqa	%xmm4, %xmm2
LBB0_16:
	pand	%xmm1, %xmm6
	pcmpeqd	%xmm8, %xmm6
	pandn	%xmm2, %xmm6
	pand	%xmm5, %xmm6
	paddd	%xmm6, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_currentConfig,8,3              ## @currentConfig
	.no_dead_strip	_count_bound_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_bound_keys
_count_bound_keys:                      ; @count_bound_keys
	.cfi_startproc
; %bb.0:
	fmov	s1, wzr
	dup.4s	v0, w0
	lsl	w8, w1, #16
	dup.4s	v5, w8
Lloh0:
	adrp	x8, _currentConfig@GOTPAGE
Lloh1:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	fmov	s2, w1
	cmgt.2s	v1, v1, v2
	dup.2s	v6, v1[0]
	movi.4s	v7, #3, lsl #16
	ldp	q3, q1, [x8, #96]
	and.16b	v2, v1, v7
	cmeq.4s	v2, v2, v5
	xtn.4h	v2, v2
	orr.8b	v2, v2, v6
	and.16b	v4, v3, v7
	cmeq.4s	v4, v4, v5
	xtn.4h	v4, v4
	orr.8b	v4, v4, v6
	ldp	q17, q16, [x8, #64]
	and.16b	v18, v16, v7
	cmeq.4s	v18, v18, v5
	xtn.4h	v18, v18
	orr.8b	v18, v18, v6
	and.16b	v19, v17, v7
	cmeq.4s	v19, v19, v5
	xtn.4h	v19, v19
	orr.8b	v19, v19, v6
	ldp	q21, q20, [x8, #32]
	and.16b	v22, v20, v7
	cmeq.4s	v22, v22, v5
	xtn.4h	v22, v22
	orr.8b	v22, v22, v6
	and.16b	v23, v21, v7
	cmeq.4s	v23, v23, v5
	xtn.4h	v23, v23
	orr.8b	v23, v23, v6
	ldp	q25, q24, [x8]
	and.16b	v26, v24, v7
	cmeq.4s	v26, v26, v5
	xtn.4h	v26, v26
	orr.8b	v26, v26, v6
	and.16b	v7, v25, v7
	cmeq.4s	v5, v7, v5
	xtn.4h	v5, v5
	orr.8b	v5, v5, v6
	cmtst.4s	v6, v25, v0
	xtn.4h	v6, v6
	and.8b	v5, v5, v6
	ushll.4s	v5, v5, #0
	movi.4s	v6, #1
	and.16b	v5, v5, v6
	cmtst.4s	v7, v24, v0
	xtn.4h	v7, v7
	and.8b	v7, v26, v7
	ushll.4s	v7, v7, #0
	and.16b	v7, v7, v6
	add.4s	v5, v5, v7
	cmtst.4s	v7, v21, v0
	xtn.4h	v7, v7
	and.8b	v7, v23, v7
	ushll.4s	v7, v7, #0
	and.16b	v7, v7, v6
	add.4s	v5, v5, v7
	cmtst.4s	v7, v20, v0
	xtn.4h	v7, v7
	and.8b	v7, v22, v7
	ushll.4s	v7, v7, #0
	and.16b	v7, v7, v6
	add.4s	v5, v5, v7
	cmtst.4s	v7, v17, v0
	xtn.4h	v7, v7
	and.8b	v7, v19, v7
	ushll.4s	v7, v7, #0
	and.16b	v7, v7, v6
	add.4s	v5, v5, v7
	cmtst.4s	v7, v16, v0
	xtn.4h	v7, v7
	and.8b	v7, v18, v7
	ushll.4s	v7, v7, #0
	and.16b	v7, v7, v6
	add.4s	v5, v5, v7
	cmtst.4s	v3, v3, v0
	xtn.4h	v3, v3
	and.8b	v3, v4, v3
	ushll.4s	v3, v3, #0
	and.16b	v3, v3, v6
	add.4s	v3, v5, v3
	cmtst.4s	v0, v1, v0
	xtn.4h	v0, v0
	and.8b	v0, v2, v0
	ushll.4s	v0, v0, #0
	and.16b	v0, v0, v6
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w0, s0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_currentConfig,8,3              ; @currentConfig
	.no_dead_strip	_count_bound_keys
.subsections_via_symbols
