	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upd_stat_                      ## -- Begin function upd_stat_
	.p2align	4, 0x90
_upd_stat_:                             ## @upd_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
	cmpl	$-1, %esi
	je	LBB0_2
## %bb.1:
	cmpl	$1, %esi
	jne	LBB0_13
LBB0_2:
	movl	%esi, %ebx
	negl	%ebx
	movl	%edi, %r14d
	negl	%r14d
	cmovsl	%edi, %r14d
	testl	%edi, %edi
	cmovnsl	%esi, %ebx
	setne	%al
	movq	_idn@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	%r14d, %edi
	callq	_add_q
	movl	%eax, %r14d
	movq	_STAT_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%ecx, %r14d
	movq	_q_entry@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%r14d, %r15
	shlq	$4, %r15
	movl	(%rax,%r15), %eax
	movq	_STAT_BUCKET_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	addl	%esi, %eax
	decl	%eax
	cltd
	idivl	%esi
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setl	%dil
	callq	_assert
	movq	(%r12), %rax
	addl	(%rax,%r15), %ebx
	movl	%ebx, (%rax,%r15)
	movq	_STAT_MAX_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %ebx
	cmovgel	%ecx, %ebx
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	cmovlel	%r12d, %ebx
	movl	%ebx, (%rax,%r15)
	movq	_STAT_BUCKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%rbx), %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	xorl	%edi, %edi
	movq	_STAT_ST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	setl	%dil
	callq	_assert
	cmpl	%r13d, %r15d
	je	LBB0_12
## %bb.3:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.4:
	movl	%r14d, %edi
	callq	_del_bucket
	movq	_q_entry@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rcx
	movl	%r13d, %r12d
	cmpl	%r15d, %r13d
	jle	LBB0_6
## %bb.5:
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movl	4(%rax,%rdx), %r12d
LBB0_6:
	shlq	$4, %rcx
	cmpl	%r13d, 8(%rax,%rcx)
	jne	LBB0_8
## %bb.7:
	movslq	4(%rax,%rcx), %r12
	movslq	12(%rax,%rcx), %rcx
	movq	%r12, %rdx
	shlq	$4, %rdx
	movl	%ecx, 12(%rax,%rdx)
	shlq	$4, %rcx
	movl	%r12d, 4(%rax,%rcx)
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.9:
	movq	_q_entry@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	shlq	$4, %rcx
	cmpl	%r15d, 8(%rax,%rcx)
	jne	LBB0_11
## %bb.10:
	movslq	%r12d, %rdx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	movslq	12(%rax,%rsi), %rdi
	movl	%edi, 12(%rax,%rcx)
	shlq	$4, %rdi
	movl	%r15d, 4(%rax,%rdi)
	movl	%r15d, 12(%rax,%rsi)
	movl	%edx, 4(%rax,%rcx)
LBB0_11:
	movl	%r14d, %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_bucket                     ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_idn,4,2                        ## @idn
	.comm	_STAT_ST,4,2                    ## @STAT_ST
	.comm	_q_entry,8,3                    ## @q_entry
	.comm	_STAT_BUCKET_SIZE,4,2           ## @STAT_BUCKET_SIZE
	.comm	_STAT_MAX_RATE,4,2              ## @STAT_MAX_RATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upd_stat_                      ; -- Begin function upd_stat_
	.p2align	2
_upd_stat_:                             ; @upd_stat_
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmn	w1, #1
	b.eq	LBB0_2
; %bb.1:
	cmp	w1, #1
	b.ne	LBB0_12
LBB0_2:
	cmp	w0, #0
	cneg	w20, w1, lt
	cneg	w19, w0, mi
	cset	w8, ne
Lloh0:
	adrp	x9, _idn@GOTPAGE
Lloh1:
	ldr	x9, [x9, _idn@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w19, w9
	cset	w9, le
	and	w0, w8, w9
	bl	_assert
	mov	x0, x19
	bl	_add_q
Lloh3:
	adrp	x23, _STAT_ST@GOTPAGE
Lloh4:
	ldr	x23, [x23, _STAT_ST@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w19, w8, w0
Lloh5:
	adrp	x21, _q_entry@GOTPAGE
Lloh6:
	ldr	x21, [x21, _q_entry@GOTPAGEOFF]
	ldr	x9, [x21]
	sbfiz	x24, x19, #4, #32
	ldr	w9, [x9, x24]
Lloh7:
	adrp	x25, _STAT_BUCKET_SIZE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _STAT_BUCKET_SIZE@GOTPAGEOFF]
	ldr	w10, [x25]
	add	w9, w9, w10
	sub	w9, w9, #1
	sdiv	w22, w9, w10
	cmp	w22, w8
	cset	w0, lt
	bl	_assert
	ldr	x8, [x21]
	ldr	w9, [x8, x24]
	add	w9, w9, w20
	str	w9, [x8, x24]
Lloh9:
	adrp	x10, _STAT_MAX_RATE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _STAT_MAX_RATE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	csel	w9, w9, w10, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x8, x24]
	ldr	w8, [x25]
	add	w9, w8, w9
	sub	w9, w9, #1
	sdiv	w20, w9, w8
	ldr	w8, [x23]
	cmp	w20, w8
	cset	w0, lt
	bl	_assert
	cmp	w20, w22
	b.eq	LBB0_14
; %bb.3:
	cbz	w22, LBB0_13
; %bb.4:
	mov	x0, x19
	bl	_del_bucket
	ldr	x9, [x21]
	sxtw	x10, w22
	mov	x8, x22
	cmp	w22, w20
	b.le	LBB0_6
; %bb.5:
	add	x8, x9, x10, lsl #4
	ldr	w8, [x8, #4]
LBB0_6:
	add	x10, x9, x10, lsl #4
	ldr	w11, [x10, #8]
	cmp	w11, w22
	b.ne	LBB0_8
; %bb.7:
	ldrsw	x8, [x10, #4]
	ldrsw	x10, [x10, #12]
	add	x11, x9, x8, lsl #4
	str	w10, [x11, #12]
	add	x9, x9, x10, lsl #4
	str	w8, [x9, #4]
LBB0_8:
	cbz	w20, LBB0_14
LBB0_9:
	ldr	x9, [x21]
	add	x10, x9, w20, sxtw #4
	ldr	w10, [x10, #8]
	cmp	w10, w20
	b.ne	LBB0_11
; %bb.10:
	sxtw	x10, w20
	add	x11, x9, w8, sxtw #4
	ldrsw	x12, [x11, #12]
	add	x10, x9, x10, lsl #4
	str	w12, [x10, #12]
	add	x9, x9, x12, lsl #4
	str	w20, [x9, #4]
	str	w20, [x11, #12]
	str	w8, [x10, #4]
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_add_bucket
LBB0_12:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_assert
LBB0_13:
	mov	w8, #0
	cbnz	w20, LBB0_9
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_idn,4,2                        ; @idn
	.comm	_STAT_ST,4,2                    ; @STAT_ST
	.comm	_q_entry,8,3                    ; @q_entry
	.comm	_STAT_BUCKET_SIZE,4,2           ; @STAT_BUCKET_SIZE
	.comm	_STAT_MAX_RATE,4,2              ; @STAT_MAX_RATE
.subsections_via_symbols
