	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_stats                   ## -- Begin function update_stats
	.p2align	4, 0x90
_update_stats:                          ## @update_stats
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	_min_stats@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	$127, %esi
	movl	$24, %edx
	callq	_memset
	movq	_max_stats@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	movl	$24, %edx
	callq	_memset
	movq	_sum_stats@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_total@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_STATS_DOUBLE_NUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%rdx), %r12
	cmpq	%r12, %rcx
	jl	LBB0_2
LBB0_3:
	movq	_nodes_num@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_30
## %bb.4:
	movq	_nodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r10
	movq	8(%rbx), %r11
	movq	(%r15), %r8
	movq	8(%r15), %r9
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rbx
	movq	16(%r15), %rcx
	movq	16(%r14), %r14
	xorl	%r15d, %r15d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_nodes_num@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_total@GOTPCREL(%rip), %rax
	incq	(%rax)
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	%edx, %rax
	cmpq	%rax, %r15
	jge	LBB0_30
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	testl	%r13d, %r13d
	jne	LBB0_29
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	_STATS_INT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdx
	shlq	$5, %rdx
	addq	-48(%rbp), %rdx                 ## 8-byte Folded Reload
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, (%rsi,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %r13
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx), %rax
	movq	(%rax,%rdi,8), %rax
	cmpq	%rax, (%r11,%rdi,8)
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rax, (%r11,%rdi,8)
	movq	(%rdx), %rax
	movq	(%rax,%rdi,8), %rax
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpq	%rax, (%r9,%rdi,8)
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%rax, (%r9,%rdi,8)
	movq	(%rdx), %rax
	movq	(%rax,%rdi,8), %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_STATS_LONG_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jle	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rax
	shlq	$5, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rax, %rdx
	addq	$8, %rdx
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=2
	addq	%rsi, (%r14,%rax,8)
	incq	%rax
	cmpq	%rax, %rdi
	je	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx), %rsi
	movq	(%rsi,%rax,8), %rsi
	cmpq	%rsi, (%rbx,%rax,8)
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rsi, (%rbx,%rax,8)
	movq	(%rdx), %rsi
	movq	(%rsi,%rax,8), %rsi
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	cmpq	%rsi, (%rcx,%rax,8)
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%rsi, (%rcx,%rax,8)
	movq	(%rdx), %rsi
	movq	(%rsi,%rax,8), %rsi
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	jle	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rax
	shlq	$5, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax), %rdi
	addq	$16, %rdi
	xorl	%edx, %edx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addl	%eax, (%rsi,%rdx,4)
	incq	%rdx
	movq	_STATS_DOUBLE_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	cmpq	%r12, %rdx
	jge	LBB0_27
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r10,%rdx,4), %rsi
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %rax
	cmpq	%rsi, %rax
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, (%r10,%rdx,4)
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %rax
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=2
	movslq	(%r8,%rdx,4), %rsi
	cmpq	%rsi, %rax
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, (%r8,%rdx,4)
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %rax
	jmp	LBB0_26
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_min_stats,24,3                 ## @min_stats
	.comm	_max_stats,24,3                 ## @max_stats
	.comm	_sum_stats,24,3                 ## @sum_stats
	.comm	_total,8,3                      ## @total
	.comm	_STATS_DOUBLE_NUM,4,2           ## @STATS_DOUBLE_NUM
	.comm	_nodes_num,4,2                  ## @nodes_num
	.comm	_nodes,8,3                      ## @nodes
	.comm	_STATS_INT_NUM,4,2              ## @STATS_INT_NUM
	.comm	_STATS_LONG_NUM,4,2             ## @STATS_LONG_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_stats                   ; -- Begin function update_stats
	.p2align	2
_update_stats:                          ; @update_stats
	.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	x19, x0
Lloh0:
	adrp	x20, _min_stats@GOTPAGE
Lloh1:
	ldr	x20, [x20, _min_stats@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #127
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x21, _max_stats@GOTPAGE
Lloh3:
	ldr	x21, [x21, _max_stats@GOTPAGEOFF]
	mov	x0, x21
	mov	w1, #128
	mov	w2, #24
	bl	_memset
Lloh4:
	adrp	x22, _sum_stats@GOTPAGE
Lloh5:
	ldr	x22, [x22, _sum_stats@GOTPAGEOFF]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh6:
	adrp	x8, _total@GOTPAGE
Lloh7:
	ldr	x8, [x8, _total@GOTPAGEOFF]
	str	xzr, [x8]
Lloh8:
	adrp	x9, _STATS_DOUBLE_NUM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _STATS_DOUBLE_NUM@GOTPAGEOFF]
	ldr	w6, [x9]
	cmp	w6, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x10, #0
	ldr	x11, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x11, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x6, [x9]
	cmp	x10, x6
	b.lt	LBB0_2
; %bb.3:
                                        ; kill: def $w6 killed $w6 killed $x6 def $x6
LBB0_4:
Lloh10:
	adrp	x10, _nodes_num@GOTPAGE
Lloh11:
	ldr	x10, [x10, _nodes_num@GOTPAGEOFF]
	ldr	w7, [x10]
	cmp	w7, #1
	b.lt	LBB0_31
; %bb.5:
	mov	x11, #0
Lloh12:
	adrp	x12, _nodes@GOTPAGE
Lloh13:
	ldr	x12, [x12, _nodes@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	ldp	x16, x13, [x20, #8]
	ldp	x0, x14, [x21, #8]
	ldp	x2, x15, [x22, #8]
	ldr	x17, [x20]
	ldr	x1, [x21]
	ldr	x3, [x22]
Lloh15:
	adrp	x4, _STATS_INT_NUM@GOTPAGE
Lloh16:
	ldr	x4, [x4, _STATS_INT_NUM@GOTPAGEOFF]
Lloh17:
	adrp	x5, _STATS_LONG_NUM@GOTPAGE
Lloh18:
	ldr	x5, [x5, _STATS_LONG_NUM@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w7, [x10]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x20, [x8]
	add	x20, x20, #1
	str	x20, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x11, #1
	cmp	x11, w7, sxtw
	b.ge	LBB0_31
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
	cbnz	w19, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w21, [x4]
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, #0
	lsl	x21, x21, #3
	add	x22, x12, x11, lsl #5
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x24, [x2, x20]
	add	x23, x24, x23
	str	x23, [x2, x20]
	add	x20, x20, #8
	cmp	x21, x20
	b.eq	LBB0_17
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x16, x20]
	ldr	x23, [x22]
	ldr	x23, [x23, x20]
	cmp	x24, x23
	b.le	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x23, [x16, x20]
	ldr	x23, [x22]
	ldr	x23, [x23, x20]
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x24, [x0, x20]
	cmp	x24, x23
	b.ge	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x23, [x0, x20]
	ldr	x23, [x22]
	ldr	x23, [x23, x20]
	b	LBB0_12
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w22, [x5]
	cmp	w22, #1
	b.lt	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, #0
	add	x21, x12, x11, lsl #5
	add	x21, x21, #8
	lsl	x22, x22, #3
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	x24, [x15, x20]
	add	x23, x24, x23
	str	x23, [x15, x20]
	add	x20, x20, #8
	cmp	x22, x20
	b.eq	LBB0_24
LBB0_20:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x24, [x13, x20]
	ldr	x23, [x21]
	ldr	x23, [x23, x20]
	cmp	x24, x23
	b.le	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	str	x23, [x13, x20]
	ldr	x23, [x21]
	ldr	x23, [x23, x20]
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	x24, [x14, x20]
	cmp	x24, x23
	b.ge	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=2
	str	x23, [x14, x20]
	ldr	x23, [x21]
	ldr	x23, [x23, x20]
	b	LBB0_19
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w6, #1
	b.lt	LBB0_7
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x7, #0
	add	x6, x12, x11, lsl #5
	add	x20, x6, #16
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	lsl	x21, x7, #2
	ldr	w22, [x3, x21]
	add	w6, w22, w6
	str	w6, [x3, x21]
	add	x7, x7, #1
	ldrsw	x6, [x9]
	cmp	x7, x6
	b.ge	LBB0_6
LBB0_27:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x21, [x17, x7, lsl #2]
	ldr	x6, [x20]
	ldr	x6, [x6, x7, lsl #3]
	cmp	x6, x21
	b.ge	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	str	w6, [x17, x7, lsl #2]
	ldr	x6, [x20]
	ldr	x6, [x6, x7, lsl #3]
LBB0_29:                                ;   in Loop: Header=BB0_27 Depth=2
	ldrsw	x21, [x1, x7, lsl #2]
	cmp	x6, x21
	b.le	LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=2
	str	w6, [x1, x7, lsl #2]
	ldr	x6, [x20]
	ldr	x6, [x6, x7, lsl #3]
	b	LBB0_26
LBB0_31:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_min_stats,24,3                 ; @min_stats
	.comm	_max_stats,24,3                 ; @max_stats
	.comm	_sum_stats,24,3                 ; @sum_stats
	.comm	_total,8,3                      ; @total
	.comm	_STATS_DOUBLE_NUM,4,2           ; @STATS_DOUBLE_NUM
	.comm	_nodes_num,4,2                  ; @nodes_num
	.comm	_nodes,8,3                      ; @nodes
	.comm	_STATS_INT_NUM,4,2              ; @STATS_INT_NUM
	.comm	_STATS_LONG_NUM,4,2             ; @STATS_LONG_NUM
.subsections_via_symbols
