	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function get_log_change_count
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
_get_log_change_count:                  ## @get_log_change_count
	.cfi_startproc
## %bb.0:
	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
	movslq	%esi, %rcx
	addq	%rdi, %rcx
	leaq	1(%rdi), %rdx
	cmpq	%rdx, %rcx
	cmovaq	%rcx, %rdx
	subq	%rdi, %rdx
	xorl	%eax, %eax
	cmpq	$8, %rdx
	jb	LBB0_11
## %bb.3:
	movq	%rdx, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r9, %rax
	andq	$-2, %rax
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <10,10,10,10,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [1,1,1,1]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movd	(%rdi,%rsi), %xmm4              ## xmm4 = mem[0],zero,zero,zero
	movd	4(%rdi,%rsi), %xmm5             ## xmm5 = mem[0],zero,zero,zero
	pcmpeqb	%xmm2, %xmm4
	pmovzxbd	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero,xmm4[2],zero,zero,zero,xmm4[3],zero,zero,zero
	pand	%xmm3, %xmm4
	paddd	%xmm0, %xmm4
	pcmpeqb	%xmm2, %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	%xmm3, %xmm5
	paddd	%xmm1, %xmm5
	movd	8(%rdi,%rsi), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movd	12(%rdi,%rsi), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	pcmpeqb	%xmm2, %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	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	pcmpeqb	%xmm2, %xmm1
	pmovzxbd	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,zero,zero,xmm1[1],zero,zero,zero,xmm1[2],zero,zero,zero,xmm1[3],zero,zero,zero
	pand	%xmm3, %xmm1
	paddd	%xmm5, %xmm1
	addq	$16, %rsi
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:
	testb	$1, %r9b
	je	LBB0_9
LBB0_8:
	movd	(%rdi,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	movd	4(%rdi,%rsi), %xmm3             ## xmm3 = 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
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [1,1,1,1]
	pand	%xmm5, %xmm2
	paddd	%xmm2, %xmm0
	pcmpeqb	%xmm4, %xmm3
	pmovzxbd	%xmm3, %xmm2                    ## xmm2 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	pand	%xmm5, %xmm2
	paddd	%xmm2, %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, %eax
	cmpq	%r8, %rdx
	je	LBB0_12
## %bb.10:
	addq	%r8, %rdi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpb	$10, (%rdi)
	sete	%dl
	addl	%edx, %eax
	incq	%rdi
	cmpq	%rcx, %rdi
	jb	LBB0_11
LBB0_12:
	shrl	%eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_4:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %r9b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_log_change_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_log_change_count
_get_log_change_count:                  ; @get_log_change_count
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	sxtw	x8, w1
	add	x9, x0, #1
	add	x8, x0, x8
	cmp	x8, x9
	csinc	x9, x8, x0, hi
	sub	x9, x9, x0
	cmp	x9, #8
	b.hs	LBB0_4
; %bb.2:
	mov	w12, #0
	mov	x11, x0
	b	LBB0_14
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	cmp	x9, #32
	b.hs	LBB0_6
; %bb.5:
	mov	w12, #0
	mov	x10, #0
	b	LBB0_10
LBB0_6:
	movi.2d	v0, #0000000000000000
	and	x10, x9, #0xffffffffffffffe0
	movi.16b	v1, #10
	add	x11, x0, #16
	movi.4s	v2, #1
	mov	x12, x10
	movi.2d	v4, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q18, q19, [x11, #-16]
	cmeq.16b	v18, v18, v1
	ushll.8h	v20, v18, #0
	ushll.4s	v21, v20, #0
	and.16b	v21, v21, v2
	ushll2.4s	v20, v20, #0
	and.16b	v20, v20, v2
	ushll2.8h	v18, v18, #0
	ushll.4s	v22, v18, #0
	and.16b	v22, v22, v2
	ushll2.4s	v18, v18, #0
	and.16b	v18, v18, v2
	cmeq.16b	v19, v19, v1
	ushll.8h	v23, v19, #0
	ushll.4s	v24, v23, #0
	and.16b	v24, v24, v2
	ushll2.4s	v23, v23, #0
	and.16b	v23, v23, v2
	ushll2.8h	v19, v19, #0
	ushll.4s	v25, v19, #0
	and.16b	v25, v25, v2
	ushll2.4s	v19, v19, #0
	and.16b	v19, v19, v2
	add.4s	v5, v5, v18
	add.4s	v3, v3, v22
	add.4s	v4, v4, v20
	add.4s	v0, v0, v21
	add.4s	v17, v17, v19
	add.4s	v7, v7, v25
	add.4s	v16, v16, v23
	add.4s	v6, v6, v24
	add	x11, x11, #32
	subs	x12, x12, #32
	b.ne	LBB0_7
; %bb.8:
	add.4s	v1, v16, v4
	add.4s	v2, v17, v5
	add.4s	v0, v6, v0
	add.4s	v3, v7, v3
	add.4s	v0, v0, v3
	add.4s	v1, v1, v2
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x9, x10
	b.eq	LBB0_15
; %bb.9:
	tst	x9, #0x18
	b.eq	LBB0_13
LBB0_10:
	and	x13, x9, #0xfffffffffffffff8
	add	x11, x0, x13
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w12
	add	x12, x0, x10
	sub	x10, x10, x13
	movi.8b	v2, #10
	movi.4s	v3, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x12], #8
	cmeq.8b	v4, v4, v2
	ushll.8h	v4, v4, #0
	ushll.4s	v5, v4, #0
	and.16b	v5, v5, v3
	ushll2.4s	v4, v4, #0
	and.16b	v4, v4, v3
	add.4s	v0, v0, v4
	add.4s	v1, v1, v5
	adds	x10, x10, #8
	b.ne	LBB0_11
; %bb.12:
	add.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x9, x13
	b.ne	LBB0_14
	b	LBB0_15
LBB0_13:
	add	x11, x0, x10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x11], #1
	cmp	w9, #10
	cinc	w12, w12, eq
	cmp	x11, x8
	b.lo	LBB0_14
LBB0_15:
	lsr	w0, w12, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_log_change_count
.subsections_via_symbols
