	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_commands
_count_commands:                        ## @count_commands
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %rdx
	movq	_TODO_COMMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpl	$4, %ecx
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%ecx, %edi
	andl	$-4, %edi
	movq	%r9, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdi), %rax
	movq	%rax, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rsi
	andq	$-2, %rsi
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pcmpeqd	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rax,8), %xmm4
	movdqu	16(%rdx,%rax,8), %xmm5
	movdqu	32(%rdx,%rax,8), %xmm6
	movdqu	48(%rdx,%rax,8), %xmm7
	pcmpeqq	%xmm0, %xmm4
	pshufd	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	paddd	%xmm1, %xmm4
	pcmpeqq	%xmm0, %xmm5
	pshufd	$232, %xmm5, %xmm5              ## xmm5 = xmm5[0,2,2,3]
	paddd	%xmm2, %xmm5
	pcmpeqq	%xmm0, %xmm6
	pshufd	$232, %xmm6, %xmm1              ## xmm1 = xmm6[0,2,2,3]
	paddd	%xmm4, %xmm1
	pcmpeqq	%xmm0, %xmm7
	pshufd	$232, %xmm7, %xmm2              ## xmm2 = xmm7[0,2,2,3]
	paddd	%xmm5, %xmm2
	psubd	%xmm3, %xmm1
	psubd	%xmm3, %xmm1
	psubd	%xmm3, %xmm2
	psubd	%xmm3, %xmm2
	addq	$8, %rax
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rdx,%rax,8), %xmm3
	movdqu	16(%rdx,%rax,8), %xmm4
	pcmpeqq	%xmm0, %xmm3
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm3, %xmm1
	pcmpeqq	%xmm0, %xmm4
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm0, %xmm2
	pcmpeqd	%xmm0, %xmm0
	psubd	%xmm0, %xmm1
	psubd	%xmm0, %xmm2
LBB0_10:
	paddd	%xmm2, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%rcx, %rdi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpq	%r9, (%rdx,%rdi,8)
	setne	%sil
	addl	%esi, %eax
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_TODO_COMMENT,8,3               ## @TODO_COMMENT
	.no_dead_strip	_count_commands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_commands
_count_commands:                        ; @count_commands
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x10, [x0, #8]
Lloh0:
	adrp	x8, _TODO_COMMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TODO_COMMENT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w9, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	and	x11, x9, #0xfffffff8
	dup.2d	v1, x8
	movi.2d	v0, #0000000000000000
	add	x12, x10, #32
	mov	x13, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x12, #-32]
	ldp	q7, q16, [x12], #64
	cmeq.2d	v5, v5, v1
	mvn.16b	v5, v5
	xtn.2s	v5, v5
	cmeq.2d	v6, v6, v1
	mvn.16b	v6, v6
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, v1
	mvn.16b	v7, v7
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, v1
	mvn.16b	v16, v16
	xtn.2s	v16, v16
	sub.2s	v0, v0, v5
	sub.2s	v2, v2, v6
	sub.2s	v3, v3, v7
	sub.2s	v4, v4, v16
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	add.2s	v0, v4, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
	cmp	x11, x9
	b.eq	LBB0_9
LBB0_7:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	cmp	x11, x8
	cinc	w0, w0, ne
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TODO_COMMENT,8,3               ; @TODO_COMMENT
	.no_dead_strip	_count_commands
.subsections_via_symbols
