	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_old_comments
_remove_old_comments:                   ## @remove_old_comments
	.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
	movq	%rdi, %r15
	movq	_COMM_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rdi
	cmpq	%r15, %rdi
	je	LBB0_3
## %bb.4:
	movq	_now@GOTPCREL(%rip), %rax
	movq	_max_news_days@GOTPCREL(%rip), %rcx
	imull	$-86400, (%rcx), %ecx           ## imm = 0xFFFEAE80
	movl	(%rax), %eax
	leal	(%rax,%rcx), %r12d
	addl	$-86400, %r12d                  ## imm = 0xFFFEAE80
	movq	_MAX_PLACE_COMMENTS@GOTPCREL(%rip), %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rdi), %r14
	callq	_free_comment
	decl	%ebx
	movq	%r14, %rdi
	cmpq	%r15, %r14
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%r13), %ebx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rdi), %eax
	movl	$2147483647, %ecx               ## imm = 0x7FFFFFFF
	andl	%ecx, %eax
	cmpl	%r12d, %eax
	jle	LBB0_7
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movl	%ebx, %r14d
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
LBB0_9:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_10:
	movq	%rdi, 8(%r15)
	movq	%r15, 8(%rdi)
	movl	%ebx, (%r15)
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	subl	%ebx, %r14d
	movl	%r14d, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMM_MODE,4,2                  ## @COMM_MODE
	.comm	_now,4,2                        ## @now
	.comm	_max_news_days,4,2              ## @max_news_days
	.comm	_MAX_PLACE_COMMENTS,4,2         ## @MAX_PLACE_COMMENTS
	.no_dead_strip	_remove_old_comments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_old_comments
_remove_old_comments:                   ; @remove_old_comments
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _COMM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_assert
	ldr	w20, [x19]
	cbz	w20, LBB0_6
; %bb.1:
	ldr	x0, [x19, #8]
	cmp	x0, x19
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _now@GOTPAGE
Lloh4:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _max_news_days@GOTPAGE
Lloh7:
	ldr	x9, [x9, _max_news_days@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	w10, #44672
	movk	w10, #65534, lsl #16
	madd	w8, w9, w10, w8
	add	w22, w8, w10
Lloh9:
	adrp	x23, _MAX_PLACE_COMMENTS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MAX_PLACE_COMMENTS@GOTPAGEOFF]
	mov	x21, x20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x0, #16]
	bl	_free_comment
	sub	w21, w21, #1
	mov	x0, x24
	cmp	x24, x19
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w21, w8
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x0]
	and	w8, w8, #0x7fffffff
	cmp	w8, w22
	b.le	LBB0_3
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	mov	x21, x20
	b	LBB0_9
LBB0_8:
	mov	x0, x19
LBB0_9:
	str	x0, [x19, #8]
	str	x19, [x0, #8]
	str	w21, [x19]
	mvn	w8, w21
	lsr	w0, w8, #31
	bl	_assert
	sub	w0, w20, w21
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_COMM_MODE,4,2                  ; @COMM_MODE
	.comm	_now,4,2                        ; @now
	.comm	_max_news_days,4,2              ; @max_news_days
	.comm	_MAX_PLACE_COMMENTS,4,2         ; @MAX_PLACE_COMMENTS
	.no_dead_strip	_remove_old_comments
.subsections_via_symbols
