	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_time_stats_update          ## -- Begin function bch_time_stats_update
	.p2align	4, 0x90
_bch_time_stats_update:                 ## @bch_time_stats_update
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	addq	$12, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_local_clock
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_time_after64
	movl	%r15d, %ebx
	subl	%r14d, %ebx
	testq	%rax, %rax
	cmovel	%r12d, %ebx
	movl	(%r13), %esi
	movl	%r15d, %edi
	callq	_time_after64
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %eax
	movl	%r15d, %r12d
	subl	%eax, %r12d
LBB0_2:
	movl	16(%r13), %edi
	movl	%ebx, %esi
	callq	_max
	movl	%eax, 16(%r13)
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.3:
	movl	4(%r13), %edi
	movl	%ebx, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_ewma_add
	movl	8(%r13), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.4:
	movl	%r12d, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_ewma_add
	jmp	LBB0_7
LBB0_6:
	shll	$8, %ebx
	movl	%ebx, 4(%r13)
	jmp	LBB0_7
LBB0_5:
	shll	$8, %r12d
	movl	%r12d, 8(%r13)
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%r15d, %r15d
	movl	$1, %eax
	cmovnel	%r15d, %eax
	movl	%eax, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_time_stats_update          ; -- Begin function bch_time_stats_update
	.p2align	2
_bch_time_stats_update:                 ; @bch_time_stats_update
	.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	x22, x1
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock
	bl	_local_clock
	mov	x21, x0
	mov	x1, x22
	bl	_time_after64
	sub	w8, w21, w22
	cmp	x0, #0
	csel	w22, wzr, w8, eq
	ldr	w1, [x20]
	mov	x0, x21
	bl	_time_after64
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	sub	w23, w21, w8
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	ldr	w0, [x20, #16]
	mov	x1, x22
	bl	_max
	str	w0, [x20, #16]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w0, [x20, #4]
	mov	x1, x22
	mov	w2, #8
	mov	w3, #8
	bl	_ewma_add
	ldr	w0, [x20, #8]
	cbz	w0, LBB0_7
; %bb.5:
	mov	x1, x23
	mov	w2, #8
	mov	w3, #8
	bl	_ewma_add
	b	LBB0_8
LBB0_6:
	lsl	w8, w22, #8
	str	w8, [x20, #4]
	b	LBB0_8
LBB0_7:
	lsl	w8, w23, #8
	str	w8, [x20, #8]
LBB0_8:
	cmp	w21, #0
	csinc	w8, w21, wzr, ne
	str	w8, [x20]
	mov	x0, x19
	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
	b	_spin_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
