	.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
	.space	1
	.space	1
	.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:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_count_lines
	.p2align	4, 0x90
_count_lines:                           ## @count_lines
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_HCBUFSIZ_LARGE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	incq	%rdi
	callq	_hcmalloc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_hc_feof
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_hcfree
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movb	$10, %r13b
	xorl	%ebx, %ebx
	pmovzxbq	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_hc_feof
	testl	%eax, %eax
	jne	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r12), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_hc_fread
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$4, %rax
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	andq	$-4, %rcx
	movq	%rbx, %xmm0
	movzbl	%r13b, %edx
	movd	%edx, %xmm2
	psllw	$8, %xmm2
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	movdqa	-64(%rbp), %xmm4                ## 16-byte Reload
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [1,1]
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzwl	(%r15,%rdx), %esi
	movd	%esi, %xmm3
	movzwl	2(%r15,%rdx), %esi
	psrlw	$8, %xmm2
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	pcmpeqb	%xmm4, %xmm2
	pand	%xmm5, %xmm2
	paddq	%xmm2, %xmm0
	movd	%esi, %xmm2
	psrlw	$8, %xmm3
	punpcklqdq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0]
	pcmpeqb	%xmm4, %xmm3
	pand	%xmm5, %xmm3
	paddq	%xmm3, %xmm1
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	paddq	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rbx
	pextrb	$1, %xmm2, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	cmpb	$10, %r13b
	sete	%dl
	addq	%rdx, %rbx
	movb	(%r15,%rcx), %r13b
	incq	%rcx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_6
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_HCBUFSIZ_LARGE,8,3             ## @HCBUFSIZ_LARGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_lines                    ; -- Begin function count_lines
	.p2align	2
_count_lines:                           ; @count_lines
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x22, _HCBUFSIZ_LARGE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HCBUFSIZ_LARGE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, #1
	bl	_hcmalloc
	mov	x19, x0
	mov	x0, x20
	bl	_hc_feof
	mov	x21, #0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x19
	bl	_hcfree
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w24, #10
	mov	w23, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_hc_feof
	cbnz	w0, LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x2, [x22]
	mov	x0, x19
	mov	w1, #1
	mov	x3, x20
	bl	_hc_fread
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, #16
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	x8, x0, #0xfffffffffffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x21
	dup.16b	v3, w24
	mov	x9, x8
	mov	x10, x19
	movi.2d	v4, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.16b	v26, #10
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov.16b	v17, v3
	ldr	q3, [x10], #16
	ext.16b	v17, v17, v3, #15
	cmeq.16b	v17, v17, v26
	ushll.8h	v18, v17, #0
	ushll.4s	v19, v18, #0
	ushll.2d	v20, v19, #0
	dup.2d	v21, x23
	and.16b	v20, v20, v21
	ushll2.2d	v19, v19, #0
	and.16b	v19, v19, v21
	ushll2.4s	v18, v18, #0
	ushll.2d	v22, v18, #0
	and.16b	v22, v22, v21
	ushll2.8h	v17, v17, #0
	ushll.4s	v23, v17, #0
	ushll.2d	v24, v23, #0
	and.16b	v24, v24, v21
	ushll2.2d	v18, v18, #0
	and.16b	v18, v18, v21
	ushll2.2d	v23, v23, #0
	and.16b	v23, v23, v21
	ushll2.4s	v17, v17, #0
	ushll.2d	v25, v17, #0
	and.16b	v25, v25, v21
	ushll2.2d	v17, v17, #0
	and.16b	v17, v17, v21
	add.2d	v6, v6, v17
	add.2d	v16, v16, v25
	add.2d	v5, v5, v23
	add.2d	v2, v2, v18
	add.2d	v7, v7, v24
	add.2d	v4, v4, v22
	add.2d	v0, v0, v19
	add.2d	v1, v1, v20
	subs	x9, x9, #16
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add.2d	v1, v1, v7
	add.2d	v4, v4, v16
	add.2d	v1, v1, v4
	add.2d	v0, v0, v5
	add.2d	v2, v2, v6
	add.2d	v0, v0, v2
	add.2d	v0, v1, v0
	addp.2d	d0, v0
	fmov	x21, d0
	umov.b	w24, v3[15]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x0, x8
	add	x8, x19, x8
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w10, w24, #0xff
	cmp	w10, #10
	cinc	x21, x21, eq
	ldrb	w24, [x8], #1
	subs	x9, x9, #1
	b.ne	LBB0_11
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HCBUFSIZ_LARGE,8,3             ; @HCBUFSIZ_LARGE
.subsections_via_symbols
