	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_event_to_news              ## -- Begin function add_event_to_news
	.p2align	4, 0x90
_add_event_to_news:                     ## @add_event_to_news
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	movl	24(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %r13
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_to_add_n@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_to_del_n@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cltq
	addq	%r13, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ebx
	xorl	%r14d, %r14d
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12,%r13,4), %edi
	callq	_insert_to_del
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	%r14, %rbx
	je	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12,%r14,8), %edi
	callq	_IS_UID
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%r14), %r13
	movl	4(%r12,%r13,4), %edi
	xorl	%esi, %esi
	callq	_get_news_queue
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpq	$0, 24(%rax)
	setne	%dil
	callq	_assert
	movq	24(%r15), %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_treap_fnd
	movl	%ebx, %esi
	movq	%rax, %rbx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12,%r13,4), %edx
	movl	16(%r15), %ecx
	movl	12(%r15), %r8d
	movl	8(%r15), %r9d
	movl	(%r15), %r10d
	movl	4(%r15), %r11d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	pushq	%r11
	callq	_critical
	addq	$32, %rsp
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12,%r14,8), %esi
	movl	(%rbx), %edx
	movl	%edx, %r9d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	andl	%ecx, %r9d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%r8
	callq	_critical
	addq	$16, %rsp
	jmp	LBB0_9
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_critical
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edx
	cmpl	(%r12,%r14,8), %edx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12,%r13,4), %edi
	movl	%edx, %esi
	callq	_insert_to_add
	movl	(%rbx), %edx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%edx, %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
                                        ## kill: def $eax killed $eax def $rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leal	(%rax,%rcx), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_add_event
	jmp	LBB0_16
LBB0_17:
	movq	_to_add_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_to_del_n@GOTPCREL(%rip), %r14
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_18
LBB0_1:
	xorl	%ecx, %ecx
LBB0_18:
	movq	_to_add@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_process_changes
	movq	_to_del@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rcx
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_process_changes                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_to_add_n,8,3                   ## @to_add_n
	.comm	_to_del_n,8,3                   ## @to_del_n
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BAD REDIRECT from %lld to %lld[%s](we are here) : ref_cnt = %d, ev_first = %p, keys_cnt = %d, subscr_cnt = %d, ttl = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"  ids[i].y = %d, v->val = %d, x = %d, y = %d, %d =?= %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"<!>%d"

L_.str.3:                               ## @.str.3
	.asciz	"BAD REDIRECT from %lld to NULL, ttl = %d\n"

	.comm	_to_add,4,2                     ## @to_add
	.comm	_to_del,4,2                     ## @to_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_event_to_news              ; -- Begin function add_event_to_news
	.p2align	2
_add_event_to_news:                     ; @add_event_to_news
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x20, x7
	mov	x21, x6
	mov	x27, x5
	mov	x28, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	mov	x0, x6
	bl	_strlen
Lloh0:
	adrp	x8, _to_add_n@GOTPAGE
Lloh1:
	ldr	x8, [x8, _to_add_n@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x25, _to_del_n@GOTPAGE
Lloh4:
	ldr	x25, [x25, _to_del_n@GOTPAGEOFF]
	str	xzr, [x25]
	cmp	w27, #1
	b.lt	LBB0_17
; %bb.1:
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	add	x8, x21, w0, sxtw
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	add	x26, x28, #4
	mov	w25, w27
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	bl	_insert_to_del
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #8
	subs	x25, x25, #1
	b.eq	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_IS_UID
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	mov	w1, #0
	bl	_get_news_queue
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	ldr	x8, [x0, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x27, #24]
	mov	x1, x19
	bl	_treap_fnd
	mov	x28, x0
	cbz	w20, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x26]
	ldp	w9, w8, [x27, #12]
	ldp	w11, w10, [x27, #4]
	ldr	w12, [x27]
	stp	x12, x22, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_critical
	cbz	x28, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w1, [x26, #-4]
	ldr	w2, [x28]
	and	w8, w2, w24
	stp	x8, x23, [sp, #16]
	stp	x24, x23, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_critical
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w20, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	bl	_critical
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x28, LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x28]
	ldur	w8, [x26, #-4]
	cmp	w2, w8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	mov	x1, x2
	bl	_insert_to_add
	ldr	w2, [x28]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w2, w24
	cmp	w8, w23
	b.ne	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	add	w2, w0, w8
	mov	x0, x27
	mov	x1, x21
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_add_event
	b	LBB0_3
LBB0_16:
Lloh13:
	adrp	x8, _to_add_n@GOTPAGE
Lloh14:
	ldr	x8, [x8, _to_add_n@GOTPAGEOFF]
Lloh15:
	ldr	x3, [x8]
Lloh16:
	adrp	x25, _to_del_n@GOTPAGE
Lloh17:
	ldr	x25, [x25, _to_del_n@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	mov	x3, #0
LBB0_18:
Lloh18:
	adrp	x8, _to_add@GOTPAGE
Lloh19:
	ldr	x8, [x8, _to_add@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w4, #1
	mov	w5, #1
	bl	_process_changes
Lloh21:
	adrp	x8, _to_del@GOTPAGE
Lloh22:
	ldr	x8, [x8, _to_del@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	x3, [x25]
	mov	x0, x19
	mov	x1, #0
	mov	w4, #0
	mov	w5, #1
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_process_changes
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_to_add_n,8,3                   ; @to_add_n
	.comm	_to_del_n,8,3                   ; @to_del_n
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BAD REDIRECT from %lld to %lld[%s](we are here) : ref_cnt = %d, ev_first = %p, keys_cnt = %d, subscr_cnt = %d, ttl = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"  ids[i].y = %d, v->val = %d, x = %d, y = %d, %d =?= %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"<!>%d"

l_.str.3:                               ; @.str.3
	.asciz	"BAD REDIRECT from %lld to NULL, ttl = %d\n"

	.comm	_to_add,4,2                     ; @to_add
	.comm	_to_del,4,2                     ; @to_del
.subsections_via_symbols
