	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_root_metrics
_set_root_metrics:                      ## @set_root_metrics
	.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	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %edx
	movl	%edi, %ebx
	movq	$0, -56(%rbp)
	movl	$0, -44(%rbp)
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_set_data_hits_keys
	movl	$1, %r13d
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_ht_get_bw
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_ht_get_cumts
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_ht_get_maxts
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_ht_get_visitors
	movl	%eax, %ebx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_new_gmetrics
	movq	%rax, %rcx
	movl	-44(%rbp), %esi
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, 28(%rcx)
	movl	%r14d, 24(%rcx)
	movl	%r12d, 20(%rcx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rcx)
	movq	-56(%rbp), %rax
	movq	%rax, (%rcx)
	movl	%esi, 8(%rcx)
	movl	%ebx, 12(%rcx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_2:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_root_metrics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_root_metrics
_set_root_metrics:                      ; @set_root_metrics
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x2, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	and	x1, x0, #0xffffffff
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	bl	_set_data_hits_keys
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_ht_get_bw
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ht_get_cumts
	mov	x23, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ht_get_maxts
	mov	x24, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ht_get_visitors
	mov	x20, x0
	bl	_new_gmetrics
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [sp, #4]
	sdiv	w10, w23, w9
	stp	w23, w10, [x8, #24]
	stp	w22, w24, [x8, #16]
	ldr	x10, [sp, #8]
	str	x10, [x8]
	stp	w9, w20, [x8, #8]
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_root_metrics
.subsections_via_symbols
