	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rssadapt_updatestats
_rssadapt_updatestats:                  ## @rssadapt_updatestats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	addl	4(%rdi), %eax
	leal	(%rax,%rax,4), %eax
	addl	%eax, %eax
	addl	(%rdi), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	sarl	%eax
	movl	%eax, (%rdi)
	movq	$0, 4(%rdi)
	andl	$-2, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	$1, %edi
	callq	_MAX
	movl	%eax, %ecx
	movl	$10000, %eax                    ## imm = 0x2710
	xorl	%edx, %edx
	idivl	%ecx
	movl	$10000, %edi                    ## imm = 0x2710
	movl	%eax, %esi
	callq	_MAX
	movslq	%eax, %rdi
	callq	_msecs_to_ticks
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rssadapt_updatestats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rssadapt_updatestats
_rssadapt_updatestats:                  ; @rssadapt_updatestats
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w8, w9, [x0]
	ldr	w10, [x0, #8]
	add	w9, w10, w9
	mov	w10, #10
	madd	w8, w9, w10, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	wzr, wzr, [x0, #4]
	str	w8, [x0]
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
	mov	w0, #1
	bl	_MAX
	mov	w8, #10000
	sdiv	w1, w8, w0
	mov	w0, #10000
	bl	_MAX
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_msecs_to_ticks
	str	w0, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rssadapt_updatestats
.subsections_via_symbols
