	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_stat                     ## -- Begin function write_stat
	.p2align	4, 0x90
_write_stat:                            ## @write_stat
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAXUSERS@GOTPCREL(%rip), %rax
	xorpd	%xmm0, %xmm0
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	_b@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movq	_a@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rcx
	incl	(%rdx,%rcx,4)
	movslq	%ebx, %rbx
	cmpq	%rbx, %rcx
	cmoval	%ecx, %ebx
	incq	%rdi
	movslq	(%rax), %rcx
	cmpq	%rcx, %rdi
	jl	LBB0_2
## %bb.3:
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.4:
	movq	(%r8), %r9
	movl	%ebx, %r8d
	leaq	-1(%r8), %rdx
	movl	%r8d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_8
## %bb.5:
	xorpd	%xmm0, %xmm0
	xorl	%r14d, %r14d
	movl	$1, %edx
	testq	%rcx, %rcx
	jne	LBB0_11
	jmp	LBB0_12
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_8:
	andl	$-4, %r8d
	xorpd	%xmm0, %xmm0
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rdx), %edi
	movl	4(%r9,%rdx,4), %esi
	imull	%esi, %edi
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edi, %xmm1
	movl	8(%r9,%rdx,4), %edi
	addsd	%xmm0, %xmm1
	addl	%esi, %r14d
	leal	2(%rdx), %esi
	imull	%edi, %esi
	xorps	%xmm0, %xmm0
	cvtsi2sd	%esi, %xmm0
	addsd	%xmm1, %xmm0
	addl	%edi, %r14d
	movl	12(%r9,%rdx,4), %esi
	leal	3(%rdx), %edi
	imull	%esi, %edi
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edi, %xmm1
	addsd	%xmm0, %xmm1
	movl	16(%r9,%rdx,4), %edi
	addq	$4, %rdx
	movl	%edx, %eax
	imull	%edi, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addl	%esi, %r14d
	addsd	%xmm1, %xmm0
	addl	%edi, %r14d
	cmpq	%rdx, %r8
	jne	LBB0_9
## %bb.10:
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rdx,4), %eax
	movl	%edx, %esi
	imull	%eax, %esi
	xorps	%xmm1, %xmm1
	cvtsi2sd	%esi, %xmm1
	addsd	%xmm1, %xmm0
	addl	%eax, %r14d
	incq	%rdx
	decq	%rcx
	jne	LBB0_11
LBB0_12:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r14d, %xmm1
	divsd	%xmm1, %xmm0
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	cvttsd2si	%xmm0, %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	movq	_b@GOTPCREL(%rip), %r13
	leaq	L_.str.3(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %ecx
	addl	%ecx, %r12d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %r8d
	subl	%r12d, %r8d
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	cmpq	$101, %rbx
	jne	LBB0_13
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %r11
	movq	_log_split_mod@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_17
## %bb.15:
	movq	_c@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	cmpl	$1, %r8d
	jne	LBB0_18
## %bb.16:
	xorl	%esi, %esi
	xorpd	%xmm1, %xmm1
	movl	$1000000000, %ebx               ## imm = 0x3B9ACA00
	movl	$-1, %r14d
	movl	$-1, %ecx
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_17:
	movl	$-1, %ecx
	movl	$1000000000, %ebx               ## imm = 0x3B9ACA00
	xorpd	%xmm1, %xmm1
	xorl	%edx, %edx
	movl	$-1, %r14d
	movq	%r11, %r15
	jmp	LBB0_22
LBB0_18:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%esi, %esi
	xorpd	%xmm1, %xmm1
	movl	$1000000000, %ebx               ## imm = 0x3B9ACA00
	movl	$-1, %r14d
	movl	$-1, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rsi,4), %eax
	cmpl	%eax, %edx
	cmovlel	%eax, %edx
	movl	4(%r10,%rsi,4), %edi
	cmovll	%esi, %ecx
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	cmovgl	%esi, %r14d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	leal	1(%rsi), %eax
	cmpl	%edi, %edx
	cmovlel	%edi, %edx
	cmovll	%eax, %ecx
	addsd	%xmm1, %xmm0
	cmpl	%edi, %ebx
	cmovgel	%edi, %ebx
	cmovgl	%eax, %r14d
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edi, %xmm1
	addsd	%xmm0, %xmm1
	addq	$2, %rsi
	cmpq	%r9, %rsi
	jne	LBB0_19
LBB0_20:
	movq	%r11, %r15
	testb	$1, %r8b
	je	LBB0_22
## %bb.21:
	movl	(%r10,%rsi,4), %eax
	cmpl	%eax, %edx
	cmovlel	%eax, %edx
	cmovll	%esi, %ecx
	cmpl	%eax, %ebx
	cmovgel	%eax, %ebx
	cmovgl	%esi, %r14d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	%xmm0, %xmm1
LBB0_22:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r8d, %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	cvttsd2si	-48(%rbp), %edx         ## 8-byte Folded Reload
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXUSERS,4,2                   ## @MAXUSERS
	.comm	_b,8,3                          ## @b
	.comm	_a,8,3                          ## @a
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mean bookmarks number is %lf\n"

L_.str.1:                               ## @.str.1
	.asciz	"maximal bookmarks number is %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"total users number is %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"number of users with %d bookmarks is %d (with more %d)\n"

	.comm	_log_split_mod,4,2              ## @log_split_mod
	.comm	_c,8,3                          ## @c
L_.str.4:                               ## @.str.4
	.asciz	"max items in file %d (file %d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"min items in file %d (file %d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"mean items in file %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function write_stat
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_write_stat
	.p2align	2
_write_stat:                            ; @write_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
Lloh0:
	adrp	x8, _MAXUSERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXUSERS@GOTPAGEOFF]
	ldr	w9, [x8]
	movi	d0, #0000000000000000
Lloh2:
	adrp	x22, _b@GOTPAGE
Lloh3:
	ldr	x22, [x22, _b@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
	mov	w19, #0
	ldr	x10, [x22]
Lloh4:
	adrp	x11, _a@GOTPAGE
Lloh5:
	ldr	x11, [x11, _a@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x9, lsl #3]
	lsl	x13, x12, #2
	ldr	w14, [x10, x13]
	add	w14, w14, #1
	str	w14, [x10, x13]
	cmp	x12, w19, sxtw
	csel	w19, w12, w19, hi
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_2
; %bb.3:
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x22]
	add	w9, w19, #1
	sub	x11, x9, #1
	cmp	x11, #8
	b.hs	LBB0_8
; %bb.5:
	mov	w20, #0
	movi	d0, #0000000000000000
	mov	w10, #1
	b	LBB0_11
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	w20, #0
	b	LBB0_12
LBB0_8:
	and	x12, x11, #0xfffffffffffffff8
	orr	x10, x12, #0x1
Lloh7:
	adrp	x13, lCPI0_0@PAGE
Lloh8:
	ldr	q1, [x13, lCPI0_0@PAGEOFF]
	add	x13, x8, #20
	movi	d0, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.4s	v3, #4
	movi.4s	v4, #8
	mov	x14, x12
	movi.2d	v5, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v1, v3
	ldp	q7, q16, [x13, #-16]
	mul.4s	v17, v7, v1
	mul.4s	v6, v16, v6
	sshll2.2d	v18, v17, #0
	scvtf.2d	v18, v18
	mov	d19, v18[1]
	sshll.2d	v17, v17, #0
	scvtf.2d	v17, v17
	mov	d20, v17[1]
	sshll2.2d	v21, v6, #0
	scvtf.2d	v21, v21
	mov	d22, v21[1]
	sshll.2d	v6, v6, #0
	scvtf.2d	v6, v6
	mov	d23, v6[1]
	fadd	d0, d0, d17
	fadd	d0, d0, d20
	fadd	d0, d0, d18
	fadd	d0, d0, d19
	fadd	d0, d0, d6
	fadd	d0, d0, d23
	fadd	d0, d0, d21
	fadd	d0, d0, d22
	add.4s	v2, v7, v2
	add.4s	v5, v16, v5
	add.4s	v1, v1, v4
	add	x13, x13, #32
	subs	x14, x14, #8
	b.ne	LBB0_9
; %bb.10:
	add.4s	v1, v5, v2
	addv.4s	s1, v1
	fmov	w20, s1
	cmp	x11, x12
	b.eq	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, x10, lsl #2]
	mul	w12, w11, w10
	scvtf	d1, w12
	fadd	d0, d0, d1
	add	w20, w11, w20
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_11
LBB0_12:
	scvtf	d1, w20
	fdiv	d0, d0, d1
Lloh9:
	adrp	x23, _stderr@GOTPAGE
Lloh10:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w0, [x23]
	fcvtzs	w2, d0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	w0, [x23]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	w24, #0
	mov	w19, #1
Lloh17:
	adrp	x21, l_.str.3@PAGE
Lloh18:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w8, [x8, x19, lsl #2]
	ldr	w0, [x23]
	add	w24, w8, w24
	sub	w9, w20, w24
	stp	x8, x9, [sp]
	mov	x1, x21
	mov	x2, x19
	bl	_fprintf
	add	x19, x19, #1
	cmp	x19, #101
	b.ne	LBB0_13
; %bb.14:
	mov	w19, #51712
	movk	w19, #15258, lsl #16
Lloh19:
	adrp	x8, _log_split_mod@GOTPAGE
Lloh20:
	ldr	x8, [x8, _log_split_mod@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x10, #0
	mov	w2, #0
Lloh22:
	adrp	x9, _c@GOTPAGE
Lloh23:
	ldr	x9, [x9, _c@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x9]
	movi	d0, #0000000000000000
	mov	w20, #-1
	mov	w9, #-1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cmp	w2, w12
	csel	w2, w2, w12, gt
	csel	w9, w10, w9, lt
	cmp	w19, w12
	csel	w19, w19, w12, lt
	csel	w20, w10, w20, gt
	scvtf	d1, w12
	fadd	d0, d0, d1
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_16
	b	LBB0_18
LBB0_17:
	mov	w2, #0
	mov	w9, #-1
	movi	d0, #0000000000000000
	mov	w20, #-1
LBB0_18:
	scvtf	d1, w8
	fdiv	d8, d0, d1
	ldr	w0, [x23]
	str	x9, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
	str	x20, [sp]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	fcvtzs	w2, d8
	ldr	w0, [x23]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_fprintf
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXUSERS,4,2                   ; @MAXUSERS
	.comm	_b,8,3                          ; @b
	.comm	_a,8,3                          ; @a
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mean bookmarks number is %lf\n"

l_.str.1:                               ; @.str.1
	.asciz	"maximal bookmarks number is %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"total users number is %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"number of users with %d bookmarks is %d (with more %d)\n"

	.comm	_log_split_mod,4,2              ; @log_split_mod
	.comm	_c,8,3                          ; @c
l_.str.4:                               ; @.str.4
	.asciz	"max items in file %d (file %d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"min items in file %d (file %d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"mean items in file %d\n"

.subsections_via_symbols
