	.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_lines
LCPI0_0:
	.byte	10                              ## 0xa
	.byte	10                              ## 0xa
	.byte	10                              ## 0xa
	.byte	10                              ## 0xa
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_count_lines:                           ## @count_lines
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leal	-1(%rsi), %r9d
	xorl	%ecx, %ecx
	cmpl	$7, %r9d
	jb	LBB0_11
## %bb.3:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %rax
	shrq	$3, %rax
	incq	%rax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdx
	andq	$-2, %rdx
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = <10,10,10,10,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [1,1,1,1]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movd	(%rdi,%rcx), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	movd	4(%rdi,%rcx), %xmm5             ## xmm5 = mem[0],zero,zero,zero
	pcmpeqb	%xmm3, %xmm2
	pmovzxbd	%xmm2, %xmm6                    ## xmm6 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	pand	%xmm4, %xmm6
	paddd	%xmm0, %xmm6
	pcmpeqb	%xmm3, %xmm5
	pmovzxbd	%xmm5, %xmm5                    ## xmm5 = xmm5[0],zero,zero,zero,xmm5[1],zero,zero,zero,xmm5[2],zero,zero,zero,xmm5[3],zero,zero,zero
	pand	%xmm4, %xmm5
	paddd	%xmm1, %xmm5
	movd	8(%rdi,%rcx), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movd	12(%rdi,%rcx), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	pcmpeqb	%xmm3, %xmm1
	pmovzxbd	%xmm1, %xmm2                    ## xmm2 = xmm1[0],zero,zero,zero,xmm1[1],zero,zero,zero,xmm1[2],zero,zero,zero,xmm1[3],zero,zero,zero
	pcmpeqb	%xmm3, %xmm0
	pmovzxbd	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	pand	%xmm4, %xmm0
	paddd	%xmm6, %xmm0
	movdqa	%xmm2, %xmm1
	pand	%xmm4, %xmm1
	paddd	%xmm5, %xmm1
	addq	$16, %rcx
	addq	$-2, %rdx
	jne	LBB0_6
## %bb.7:
	testb	$1, %al
	je	LBB0_9
LBB0_8:
	movd	(%rdi,%rcx), %xmm3              ## xmm3 = mem[0],zero,zero,zero
	movd	4(%rdi,%rcx), %xmm2             ## xmm2 = mem[0],zero,zero,zero
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = <10,10,10,10,u,u,u,u,u,u,u,u,u,u,u,u>
	pcmpeqb	%xmm4, %xmm2
	pmovzxbd	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	pcmpeqb	%xmm4, %xmm3
	pmovzxbd	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [1,1,1,1]
	pand	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	pand	%xmm2, %xmm4
	paddd	%xmm4, %xmm1
LBB0_9:
	paddd	%xmm1, %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, %ecx
	cmpq	%r8, %r9
	jne	LBB0_10
## %bb.15:
	pextrb	$12, %xmm2, %eax
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_10:
	subl	%r8d, %esi
	addq	%r8, %rdi
LBB0_11:
	incl	%esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpb	$10, (%rdi)
	leaq	1(%rdi), %rdi
	sete	%al
	addl	%eax, %ecx
	decl	%esi
	cmpl	$1, %esi
	ja	LBB0_12
LBB0_13:
	notb	%al
	movzbl	%al, %eax
	andl	$1, %eax
	addl	%ecx, %eax
	popq	%rbp
	retq
LBB0_4:
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
                                        ## implicit-def: $xmm2
	pxor	%xmm1, %xmm1
	testb	$1, %al
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_count_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_lines
_count_lines:                           ; @count_lines
	.cfi_startproc
; %bb.0:
	subs	w9, w1, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w9, #7
	b.hs	LBB0_4
; %bb.2:
	mov	w10, #0
	b	LBB0_17
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	add	x8, x9, #1
	cmp	w9, #63
	b.hs	LBB0_6
; %bb.5:
	mov	w10, #0
	mov	x9, #0
	b	LBB0_11
LBB0_6:
	movi.2d	v0, #0000000000000000
	and	x9, x8, #0x1ffffffc0
	movi.16b	v1, #10
	add	x10, x0, #32
	movi.4s	v2, #1
	mov	x11, x9
	movi.2d	v4, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v20, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v23, #0000000000000000
	movi.2d	v18, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v24, #0000000000000000
	movi.2d	v21, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v22, #0000000000000000
	movi.2d	v19, #0000000000000000
	movi.2d	v25, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q26, q27, [x10, #-32]
	cmeq.16b	v26, v26, v1
	ushll.8h	v28, v26, #0
	ushll2.8h	v26, v26, #0
	ushll2.4s	v29, v26, #0
	and.16b	v29, v29, v2
	add.4s	v5, v5, v29
	ushll.4s	v29, v28, #0
	and.16b	v29, v29, v2
	ushll2.4s	v28, v28, #0
	and.16b	v28, v28, v2
	ushll.4s	v26, v26, #0
	and.16b	v26, v26, v2
	cmeq.16b	v27, v27, v1
	add.4s	v3, v3, v26
	ushll2.8h	v30, v27, #0
	add.4s	v4, v4, v28
	ushll2.4s	v26, v30, #0
	and.16b	v26, v26, v2
	add.4s	v0, v0, v29
	add.4s	v23, v23, v26
	ldp	q28, q26, [x10], #64
	ushll.8h	v27, v27, #0
	ushll.4s	v29, v30, #0
	and.16b	v29, v29, v2
	add.4s	v17, v17, v29
	ushll.4s	v29, v27, #0
	and.16b	v29, v29, v2
	ushll2.4s	v27, v27, #0
	and.16b	v27, v27, v2
	cmeq.16b	v28, v28, v1
	add.4s	v20, v20, v27
	ushll.8h	v27, v28, #0
	ushll2.8h	v28, v28, #0
	add.4s	v6, v6, v29
	ushll2.4s	v29, v28, #0
	and.16b	v29, v29, v2
	add.4s	v21, v21, v29
	ushll.4s	v29, v27, #0
	and.16b	v29, v29, v2
	ushll2.4s	v27, v27, #0
	and.16b	v27, v27, v2
	ushll.4s	v28, v28, #0
	and.16b	v28, v28, v2
	add.4s	v24, v24, v28
	cmeq.16b	v28, v26, v1
	add.4s	v7, v7, v27
	ushll2.8h	v27, v28, #0
	add.4s	v18, v18, v29
	ushll2.4s	v29, v27, #0
	and.16b	v29, v29, v2
	add.4s	v25, v25, v29
	ushll.8h	v28, v28, #0
	ushll.4s	v27, v27, #0
	and.16b	v27, v27, v2
	add.4s	v19, v19, v27
	ushll2.4s	v27, v28, #0
	and.16b	v27, v27, v2
	add.4s	v22, v22, v27
	ushll.4s	v27, v28, #0
	and.16b	v27, v27, v2
	add.4s	v16, v16, v27
	subs	x11, x11, #64
	b.ne	LBB0_7
; %bb.8:
	add.4s	v1, v20, v4
	add.4s	v2, v23, v5
	add.4s	v0, v6, v0
	add.4s	v3, v17, v3
	add.4s	v3, v24, v3
	add.4s	v0, v18, v0
	add.4s	v2, v21, v2
	add.4s	v1, v7, v1
	add.4s	v1, v22, v1
	add.4s	v2, v25, v2
	add.4s	v0, v16, v0
	add.4s	v3, v19, v3
	add.4s	v0, v0, v3
	add.4s	v1, v1, v2
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w10, s0
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	movi.16b	v0, #10
	cmeq.16b	v0, v26, v0
	umov.b	w8, v0[15]
	b	LBB0_19
LBB0_10:
	tst	x8, #0x38
	b.eq	LBB0_16
LBB0_11:
	and	x12, x8, #0x1fffffff8
	sub	w1, w1, w12
	add	x11, x0, x12
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w10
	add	x10, x0, x9
	sub	x9, x9, x12
	movi.8b	v2, #10
	movi.4s	v3, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x10], #8
	cmeq.8b	v5, v4, v2
	ushll.8h	v5, v5, #0
	ushll.4s	v6, v5, #0
	and.16b	v6, v6, v3
	ushll2.4s	v5, v5, #0
	and.16b	v5, v5, v3
	add.4s	v0, v0, v5
	add.4s	v1, v1, v6
	adds	x9, x9, #8
	b.ne	LBB0_12
; %bb.13:
	add.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w10, s0
	cmp	x8, x12
	b.ne	LBB0_15
; %bb.14:
	movi.8b	v0, #10
	cmeq.8b	v0, v4, v0
	umov.b	w8, v0[7]
	b	LBB0_19
LBB0_15:
	mov	x0, x11
	b	LBB0_17
LBB0_16:
	add	x0, x0, x9
	sub	w1, w1, w9
LBB0_17:
	add	w9, w1, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0], #1
	cmp	w8, #10
	cset	w8, eq
	cinc	w10, w10, eq
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_18
LBB0_19:
	mvn	w8, w8
	and	w8, w8, #0x1
	add	w0, w10, w8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_count_lines
.subsections_via_symbols
