	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_changes                ## -- Begin function process_changes
	.p2align	4, 0x90
_process_changes:                       ## @process_changes
	.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	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_SUBSCR@GOTPCREL(%rip), %r15
	cmpl	%ecx, (%r15)
	jge	LBB0_3
## %bb.2:
	movq	_LOG_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	movl	%r14d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_dl_log_add
	movl	(%r15), %r14d
LBB0_3:
	movq	_sb@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cnt_srt
	movq	_process_changes_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STAT
	movq	_changes_len_max@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_STAT_MAX
	movq	_process_changes_total_len@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	_changes_add_rev_len@GOTPCREL(%rip), %rax
	cmoveq	_changes_add_len@GOTPCREL(%rip), %rax
	movq	_changes_del_rev_len@GOTPCREL(%rip), %rbx
	cmoveq	_changes_del_len@GOTPCREL(%rip), %rbx
	movq	_changes_del_rev_cnt@GOTPCREL(%rip), %rcx
	cmoveq	_changes_del_cnt@GOTPCREL(%rip), %rcx
	movq	_changes_add_rev_cnt@GOTPCREL(%rip), %rdx
	cmoveq	_changes_add_cnt@GOTPCREL(%rip), %rdx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovneq	%rax, %rbx
	cmoveq	%rcx, %rdx
	movl	(%rdx), %edi
	callq	_STAT
	addl	%r14d, (%rbx)
	testl	%r14d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	js	LBB0_17
## %bb.4:
	movl	%r14d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	incl	%r14d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %r12
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	shlq	$3, %r12
	movq	_sb@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movl	%r13d, %edx
	subl	%r14d, %edx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_send_to_news_
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, %r14d
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	jae	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %eax
	movq	_treap_cnt@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	_sb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,8), %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rax,%r13,8), %r12d
	xorl	%eax, %eax
	callq	_rand
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_treap_add
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_treap_del
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %eax
	movq	_treap_cnt@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r13, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_sb@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax,%r13,8), %edi
	callq	_dl_abs
	cltd
	movq	_engine_n@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %ebx
	movq	(%r15), %rax
	movslq	%r14d, %r12
	movl	(%rax,%r12,8), %edi
	callq	_dl_abs
	cltd
	movq	_engine_n@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	cmpl	%edx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_14
	jmp	LBB0_15
LBB0_16:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.18:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush_news                     ## TAILCALL
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SUBSCR,4,2                 ## @MAX_SUBSCR
	.comm	_LOG_DEF,4,2                    ## @LOG_DEF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Too many subscribers %d [id = %lld]\n"

	.comm	_sb,8,3                         ## @sb
	.comm	_process_changes_cnt,4,2        ## @process_changes_cnt
	.comm	_changes_len_max,4,2            ## @changes_len_max
	.comm	_process_changes_total_len,4,2  ## @process_changes_total_len
	.comm	_changes_add_rev_cnt,4,2        ## @changes_add_rev_cnt
	.comm	_changes_add_rev_len,4,2        ## @changes_add_rev_len
	.comm	_changes_add_cnt,4,2            ## @changes_add_cnt
	.comm	_changes_add_len,4,2            ## @changes_add_len
	.comm	_changes_del_rev_cnt,4,2        ## @changes_del_rev_cnt
	.comm	_changes_del_rev_len,4,2        ## @changes_del_rev_len
	.comm	_changes_del_cnt,4,2            ## @changes_del_cnt
	.comm	_changes_del_len,4,2            ## @changes_del_len
	.comm	_treap_cnt,4,2                  ## @treap_cnt
	.comm	_engine_n,4,2                   ## @engine_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_changes                ; -- Begin function process_changes
	.p2align	2
_process_changes:                       ; @process_changes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	w5, w4, [sp, #8]                ; 8-byte Folded Spill
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	cbz	w3, LBB0_20
; %bb.1:
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
Lloh0:
	adrp	x19, _MAX_SUBSCR@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MAX_SUBSCR@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, w3
	b.ge	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _LOG_DEF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG_DEF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	mov	x3, x23
	ldr	w4, [sp, #4]                    ; 4-byte Folded Reload
	bl	_dl_log_add
	ldr	w23, [x19]
LBB0_3:
Lloh7:
	adrp	x8, _sb@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sb@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	mov	x0, x24
	mov	x1, x23
	bl	_cnt_srt
Lloh10:
	adrp	x8, _process_changes_cnt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _process_changes_cnt@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_STAT
Lloh13:
	adrp	x8, _changes_len_max@GOTPAGE
Lloh14:
	ldr	x8, [x8, _changes_len_max@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_STAT_MAX
Lloh16:
	adrp	x8, _process_changes_total_len@GOTPAGE
Lloh17:
	ldr	x8, [x8, _process_changes_total_len@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w23
Lloh18:
	adrp	x10, _changes_add_rev_len@GOTPAGE
Lloh19:
	ldr	x10, [x10, _changes_add_rev_len@GOTPAGEOFF]
	str	w9, [x8]
Lloh20:
	adrp	x8, _changes_add_len@GOTPAGE
Lloh21:
	ldr	x8, [x8, _changes_add_len@GOTPAGEOFF]
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w9, #0
Lloh22:
	adrp	x9, _changes_del_rev_len@GOTPAGE
Lloh23:
	ldr	x9, [x9, _changes_del_rev_len@GOTPAGEOFF]
	csel	x8, x8, x10, eq
Lloh24:
	adrp	x10, _changes_del_len@GOTPAGE
Lloh25:
	ldr	x10, [x10, _changes_del_len@GOTPAGEOFF]
	csel	x9, x10, x9, eq
Lloh26:
	adrp	x10, _changes_del_cnt@GOTPAGE
Lloh27:
	ldr	x10, [x10, _changes_del_cnt@GOTPAGEOFF]
Lloh28:
	adrp	x11, _changes_del_rev_cnt@GOTPAGE
Lloh29:
	ldr	x11, [x11, _changes_del_rev_cnt@GOTPAGEOFF]
Lloh30:
	adrp	x12, _changes_add_cnt@GOTPAGE
Lloh31:
	ldr	x12, [x12, _changes_add_cnt@GOTPAGEOFF]
Lloh32:
	adrp	x13, _changes_add_rev_cnt@GOTPAGE
Lloh33:
	ldr	x13, [x13, _changes_add_rev_cnt@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	csel	x11, x12, x13, eq
	ldr	w12, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w12, #0
	csel	x19, x9, x8, eq
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	bl	_STAT
	ldr	w8, [x19]
	add	w8, w8, w23
	str	w8, [x19]
	tbnz	w23, #31, LBB0_20
; %bb.4:
	mov	x26, #0
	mov	w27, #0
	mov	w19, #0
	add	w20, w23, #1
	mov	w28, #4
Lloh34:
	adrp	x22, _treap_cnt@GOTPAGE
Lloh35:
	ldr	x22, [x22, _treap_cnt@GOTPAGEOFF]
	mov	w25, w23
	ldr	w24, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x19
	sxtw	x8, w8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh36:
	adrp	x9, _sb@GOTPAGE
Lloh37:
	ldr	x9, [x9, _sb@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8, lsl #3
	sub	w2, w26, w19
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x24
	bl	_send_to_news_
	mov	w27, #1
	mov	x19, x26
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	add	x28, x28, #8
	cmp	x20, x26
	b.eq	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x26, x25
	b.hs	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x22]
	add	w8, w9, w8
	str	w8, [x22]
Lloh39:
	adrp	x8, _sb@GOTPAGE
Lloh40:
	ldr	x8, [x8, _sb@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x9, x8, x28
	ldur	w23, [x9, #-4]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w24, [x8, x28]
	bl	_rand
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	ldr	w24, [sp, #8]                   ; 4-byte Folded Reload
	bl	_treap_add
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_treap_del
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x22]
	sub	w8, w9, w8
	str	w8, [x22]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x25, x26
	b.eq	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w27, [sp]                       ; 4-byte Folded Spill
	mov	x24, x22
	mov	x22, x20
Lloh42:
	adrp	x20, _sb@GOTPAGE
Lloh43:
	ldr	x20, [x20, _sb@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x8, x8, x28
	ldur	w0, [x8, #-4]
	bl	_dl_abs
Lloh44:
	adrp	x27, _engine_n@GOTPAGE
Lloh45:
	ldr	x27, [x27, _engine_n@GOTPAGEOFF]
	ldr	w8, [x27]
	sdiv	w9, w0, w8
	msub	w23, w9, w8, w0
	ldr	x8, [x20]
	sbfiz	x9, x19, #3, #32
	ldr	w0, [x8, x9]
	bl	_dl_abs
	ldr	w8, [x27]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	cmp	w23, w8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, x22
	mov	x22, x24
	ldr	w27, [sp]                       ; 4-byte Folded Reload
	ldr	w24, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x8, w19
	mov	x20, x22
	mov	x22, x24
	ldr	w24, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_6
LBB0_18:
	cbz	w27, LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_flush_news
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SUBSCR,4,2                 ; @MAX_SUBSCR
	.comm	_LOG_DEF,4,2                    ; @LOG_DEF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too many subscribers %d [id = %lld]\n"

	.comm	_sb,8,3                         ; @sb
	.comm	_process_changes_cnt,4,2        ; @process_changes_cnt
	.comm	_changes_len_max,4,2            ; @changes_len_max
	.comm	_process_changes_total_len,4,2  ; @process_changes_total_len
	.comm	_changes_add_rev_cnt,4,2        ; @changes_add_rev_cnt
	.comm	_changes_add_rev_len,4,2        ; @changes_add_rev_len
	.comm	_changes_add_cnt,4,2            ; @changes_add_cnt
	.comm	_changes_add_len,4,2            ; @changes_add_len
	.comm	_changes_del_rev_cnt,4,2        ; @changes_del_rev_cnt
	.comm	_changes_del_rev_len,4,2        ; @changes_del_rev_len
	.comm	_changes_del_cnt,4,2            ; @changes_del_cnt
	.comm	_changes_del_len,4,2            ; @changes_del_len
	.comm	_treap_cnt,4,2                  ; @treap_cnt
	.comm	_engine_n,4,2                   ; @engine_n
.subsections_via_symbols
