	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_news_recommend
_process_news_recommend:                ## @process_news_recommend
	.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	_now@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_min_logevent_time@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	movl	20(%rdi), %edi
	movl	$1, %esi
	callq	_get_user_f
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	_RECOMMEND_MODE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movzbl	(%r12), %r15d
	movl	%r15d, %edi
	callq	_valid_type
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rbx
	xorl	%eax, %eax
	callq	_new_recommend_item
	movq	%rbx, 40(%rax)
	movq	%rax, 32(%rbx)
	movq	%r14, 32(%rax)
	movq	%rax, 8(%r14)
	incl	(%r14)
	movl	16(%r12), %ecx
	movl	%ecx, 24(%rax)
	movl	12(%r12), %ecx
	movl	%ecx, 20(%rax)
	movl	8(%r12), %ecx
	movl	%ecx, 16(%rax)
	movq	(%r13), %rcx
	movq	%rcx, 8(%rax)
	movl	%r15d, (%rax)
	movl	4(%r12), %ecx
	movl	%ecx, 4(%rax)
	movq	%r14, %rdi
	callq	_remove_old_recommend_items
	movq	_items_removed_in_process_new@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_now,8,3                        ## @now
	.comm	_min_logevent_time,8,3          ## @min_logevent_time
	.comm	_RECOMMEND_MODE,4,2             ## @RECOMMEND_MODE
	.comm	_items_removed_in_process_new,4,2 ## @items_removed_in_process_new
	.no_dead_strip	_process_news_recommend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_news_recommend
_process_news_recommend:                ; @process_news_recommend
	.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
Lloh0:
	adrp	x22, _now@GOTPAGE
Lloh1:
	ldr	x22, [x22, _now@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _min_logevent_time@GOTPAGE
Lloh3:
	ldr	x9, [x9, _min_logevent_time@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #20]
	mov	w1, #1
	bl	_get_user_f
Lloh5:
	adrp	x8, _RECOMMEND_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RECOMMEND_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_5
; %bb.3:
	mov	x20, x0
	ldrb	w21, [x19]
	mov	x0, x21
	bl	_valid_type
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x23, [x20, #8]
	bl	_new_recommend_item
	str	x0, [x23, #32]
	stp	x20, x23, [x0, #32]
	str	x0, [x20, #8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	w8, [x19, #16]
	str	w8, [x0, #24]
	ldr	d0, [x19, #8]
	str	d0, [x0, #16]
	ldr	x8, [x22]
	str	x8, [x0, #8]
	ldr	w8, [x19, #4]
	stp	w21, w8, [x0]
	mov	x0, x20
	bl	_remove_old_recommend_items
Lloh8:
	adrp	x8, _items_removed_in_process_new@GOTPAGE
Lloh9:
	ldr	x8, [x8, _items_removed_in_process_new@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_now,8,3                        ; @now
	.comm	_min_logevent_time,8,3          ; @min_logevent_time
	.comm	_RECOMMEND_MODE,4,2             ; @RECOMMEND_MODE
	.comm	_items_removed_in_process_new,4,2 ; @items_removed_in_process_new
	.no_dead_strip	_process_news_recommend
.subsections_via_symbols
