	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_news_subscr                ## -- Begin function set_news_subscr
	.p2align	4, 0x90
_set_news_subscr:                       ## @set_news_subscr
	.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	%edx, %r15d
	movq	%rsi, %r12
	movl	$1, %esi
	callq	_get_news_queue
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	8(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_dl_qsort_pli
	movq	_to_del_n@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_to_add_n@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_gd_a@GOTPCREL(%rip), %r13
	movq	%r12, (%r13)
	movslq	%r15d, %rax
	leaq	(%r12,%rax,8), %rcx
	movq	_news_subscr_len@GOTPCREL(%rip), %rdx
	addl	%eax, (%rdx)
	movq	_news_subscr_cnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_gd_b@GOTPCREL(%rip), %rbx
	movq	%rcx, (%rbx)
	movq	(%r14), %r15
	movl	(%r15), %edi
	callq	_gen_diff_go
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_insert_to_add
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	addq	$8, %rax
	movq	%rax, (%r13)
	cmpq	(%rbx), %rax
	jne	LBB0_4
LBB0_6:
	movq	_to_del_n@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_to_add_n@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	leal	(%rax,%rcx), %edx
	movq	_news_subscr_actual_len@GOTPCREL(%rip), %rsi
	addl	%edx, (%rsi)
	xorl	%edx, %edx
	addq	%rcx, %rax
	setne	%dl
	movq	_news_subscr_missed@GOTPCREL(%rip), %rax
	addl	%edx, (%rax)
	movq	_to_del@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_process_changes
	movq	_to_add@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rcx
	movl	$1, %ebx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_process_changes
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_to_del_n,8,3                   ## @to_del_n
	.comm	_to_add_n,8,3                   ## @to_add_n
	.comm	_gd_a,8,3                       ## @gd_a
	.comm	_gd_b,8,3                       ## @gd_b
	.comm	_news_subscr_len,4,2            ## @news_subscr_len
	.comm	_news_subscr_cnt,4,2            ## @news_subscr_cnt
	.comm	_news_subscr_actual_len,4,2     ## @news_subscr_actual_len
	.comm	_news_subscr_missed,4,2         ## @news_subscr_missed
	.comm	_to_del,4,2                     ## @to_del
	.comm	_to_add,4,2                     ## @to_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_news_subscr                ; -- Begin function set_news_subscr
	.p2align	2
_set_news_subscr:                       ; @set_news_subscr
	.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
	mov	x20, x2
	mov	x22, x1
	mov	w1, #1
	bl	_get_news_queue
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w19, [x21, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_dl_qsort_pli
Lloh0:
	adrp	x24, _to_del_n@GOTPAGE
Lloh1:
	ldr	x24, [x24, _to_del_n@GOTPAGEOFF]
	str	xzr, [x24]
Lloh2:
	adrp	x23, _to_add_n@GOTPAGE
Lloh3:
	ldr	x23, [x23, _to_add_n@GOTPAGEOFF]
Lloh4:
	adrp	x25, _gd_a@GOTPAGE
Lloh5:
	ldr	x25, [x25, _gd_a@GOTPAGEOFF]
	str	xzr, [x23]
	str	x22, [x25]
	add	x8, x22, w20, sxtw #3
Lloh6:
	adrp	x22, _gd_b@GOTPAGE
Lloh7:
	ldr	x22, [x22, _gd_b@GOTPAGEOFF]
	str	x8, [x22]
Lloh8:
	adrp	x8, _news_subscr_len@GOTPAGE
Lloh9:
	ldr	x8, [x8, _news_subscr_len@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w20
Lloh10:
	adrp	x10, _news_subscr_cnt@GOTPAGE
Lloh11:
	ldr	x10, [x10, _news_subscr_cnt@GOTPAGEOFF]
	str	w9, [x8]
	ldr	w8, [x10]
	add	w8, w8, #1
	str	w8, [x10]
	ldr	x20, [x21]
	ldr	w0, [x20]
	bl	_gen_diff_go
	ldr	x8, [x25]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [x8]
	bl	_insert_to_add
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x25]
	add	x8, x8, #8
	str	x8, [x25]
	b	LBB0_2
LBB0_5:
	ldr	x3, [x24]
	ldr	x8, [x23]
Lloh12:
	adrp	x9, _news_subscr_actual_len@GOTPAGE
Lloh13:
	ldr	x9, [x9, _news_subscr_actual_len@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w11, w8, w3
	add	w10, w10, w11
	str	w10, [x9]
	cmn	x3, x8
Lloh14:
	adrp	x8, _news_subscr_missed@GOTPAGE
Lloh15:
	ldr	x8, [x8, _news_subscr_missed@GOTPAGEOFF]
	ldr	w9, [x8]
	cinc	w9, w9, ne
	str	w9, [x8]
Lloh16:
	adrp	x8, _to_del@GOTPAGE
Lloh17:
	ldr	x8, [x8, _to_del@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	mov	w5, #0
	bl	_process_changes
Lloh19:
	adrp	x8, _to_add@GOTPAGE
Lloh20:
	ldr	x8, [x8, _to_add@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	x3, [x23]
	mov	w21, #1
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	mov	w5, #0
	bl	_process_changes
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_to_del_n,8,3                   ; @to_del_n
	.comm	_to_add_n,8,3                   ; @to_add_n
	.comm	_gd_a,8,3                       ; @gd_a
	.comm	_gd_b,8,3                       ; @gd_b
	.comm	_news_subscr_len,4,2            ; @news_subscr_len
	.comm	_news_subscr_cnt,4,2            ; @news_subscr_cnt
	.comm	_news_subscr_actual_len,4,2     ; @news_subscr_actual_len
	.comm	_news_subscr_missed,4,2         ; @news_subscr_missed
	.comm	_to_del,4,2                     ; @to_del
	.comm	_to_add,4,2                     ; @to_add
.subsections_via_symbols
