	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_message0               ## -- Begin function process_message0
	.p2align	4, 0x90
_process_message0:                      ## @process_message0
	.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	%esi, %ebx
	movq	%rdi, %r13
	movl	24(%rdi), %edi
	callq	_conv_uid
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %r14d
	movq	_last_global_id@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_User@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	%r15d, %r12d
	cmpq	$0, (%rax,%r12,8)
	jne	LBB0_4
## %bb.3:
	movl	$4, %edi
	callq	_zmalloc0
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r12,8)
	movl	24(%r13), %eax
	movq	(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, (%rcx)
	movq	_tot_users@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	movq	8(%r13), %rsi
	movl	16(%r13), %ecx
	movq	_MAX_EXTRA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	andl	%ecx, %edx
	movq	_LEV_TX_ADD_MESSAGE_EXT_LL@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jne	LBB0_6
## %bb.5:
	movl	%esi, %edi
	movslq	20(%r13), %rbx
	movabsq	$-4294967296, %rsi              ## imm = 0xFFFFFFFF00000000
	andq	%rbx, %rsi
	orq	%rdi, %rsi
LBB0_6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_min_legacy_id@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jge	LBB0_8
## %bb.7:
	movq	%rsi, (%rdi)
LBB0_8:
	movq	_max_legacy_id@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jle	LBB0_10
## %bb.9:
	movq	%rsi, (%rdi)
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	andl	%ecx, %eax
	movq	_current_extra_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	sete	%al
	jmp	LBB0_13
LBB0_1:
	movl	$1, %r14d
	movq	_discarded_rec@GOTPCREL(%rip), %r12
	jmp	LBB0_19
LBB0_12:
	movq	_LEV_TX_ADD_MESSAGE_EXT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	setne	%cl
	movq	_LEV_TX_ADD_MESSAGE_EXT_ZF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	setne	%al
	andb	%cl, %al
LBB0_13:
	movzbl	%al, %edi
	callq	_assert
	movslq	%ebx, %rbx
	movq	32(%r13), %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_preprocess_text
	movq	_search_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.14:
	addq	32(%r13), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_compute_message_distinct_words
	movq	_tot_search_words@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	cltq
	movq	_UserSearchWords@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rcx,%r12,8), %rax
	movq	%rax, (%rcx,%r12,8)
	movq	_max_user_search_words@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_16
## %bb.15:
	movq	%rax, (%rcx)
	movl	24(%r13), %eax
	movq	_max_user_search_id@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_16:
	movq	_msgs_read@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_msgs_bytes@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movq	_max_uid@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_18
## %bb.17:
	movl	%r15d, (%rax)
LBB0_18:
	movq	_UserMsgCnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%r12,4)
	shlq	$2, %r12
	movq	_UserMsgBytes@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
LBB0_19:
	addl	%r14d, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_discarded_rec,4,2              ## @discarded_rec
	.comm	_last_global_id,4,2             ## @last_global_id
	.comm	_User,8,3                       ## @User
	.comm	_tot_users,4,2                  ## @tot_users
	.comm	_MAX_EXTRA_MASK,4,2             ## @MAX_EXTRA_MASK
	.comm	_LEV_TX_ADD_MESSAGE_EXT_LL,4,2  ## @LEV_TX_ADD_MESSAGE_EXT_LL
	.comm	_min_legacy_id,8,3              ## @min_legacy_id
	.comm	_max_legacy_id,8,3              ## @max_legacy_id
	.comm	_current_extra_mask,4,2         ## @current_extra_mask
	.comm	_LEV_TX_ADD_MESSAGE_EXT,4,2     ## @LEV_TX_ADD_MESSAGE_EXT
	.comm	_LEV_TX_ADD_MESSAGE_EXT_ZF,4,2  ## @LEV_TX_ADD_MESSAGE_EXT_ZF
	.comm	_search_enabled,8,3             ## @search_enabled
	.comm	_tot_search_words,4,2           ## @tot_search_words
	.comm	_UserSearchWords,8,3            ## @UserSearchWords
	.comm	_max_user_search_words,8,3      ## @max_user_search_words
	.comm	_max_user_search_id,4,2         ## @max_user_search_id
	.comm	_msgs_read,4,2                  ## @msgs_read
	.comm	_msgs_bytes,4,2                 ## @msgs_bytes
	.comm	_max_uid,4,2                    ## @max_uid
	.comm	_UserMsgCnt,8,3                 ## @UserMsgCnt
	.comm	_UserMsgBytes,8,3               ## @UserMsgBytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_message0               ; -- Begin function process_message0
	.p2align	2
_process_message0:                      ; @process_message0
	.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	x22, x1
	mov	x21, x0
	ldr	w0, [x0, #24]
	bl	_conv_uid
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	w19, [x21]
Lloh0:
	adrp	x8, _last_global_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _last_global_id@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
Lloh2:
	adrp	x25, _User@GOTPAGE
Lloh3:
	ldr	x25, [x25, _User@GOTPAGEOFF]
	str	w9, [x8]
	ldr	x8, [x25]
	mov	w23, w0
	ldr	x8, [x8, w0, uxtw #3]
	lsl	x24, x23, #3
	cbnz	x8, LBB0_3
; %bb.2:
	mov	w0, #4
	bl	_zmalloc0
	ldr	x8, [x25]
	str	x0, [x8, x24]
	ldr	w8, [x21, #24]
	ldr	x9, [x25]
	ldr	x9, [x9, x24]
	str	w8, [x9]
Lloh4:
	adrp	x8, _tot_users@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tot_users@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_3:
	ldr	x11, [x21, #8]
	ldr	w9, [x21, #16]
Lloh6:
	adrp	x8, _MAX_EXTRA_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_EXTRA_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
	bic	w8, w9, w10
Lloh9:
	adrp	x12, _LEV_TX_ADD_MESSAGE_EXT_LL@GOTPAGE
Lloh10:
	ldr	x12, [x12, _LEV_TX_ADD_MESSAGE_EXT_LL@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	cmp	w8, w12
	b.ne	LBB0_5
; %bb.4:
	ldrsw	x12, [x21, #20]
	bfxil	x12, x11, #0, #32
	mov	x11, x12
LBB0_5:
Lloh12:
	adrp	x12, _min_legacy_id@GOTPAGE
Lloh13:
	ldr	x12, [x12, _min_legacy_id@GOTPAGEOFF]
	ldr	x13, [x12]
	cmp	x11, x13
	b.ge	LBB0_7
; %bb.6:
	str	x11, [x12]
LBB0_7:
Lloh14:
	adrp	x12, _max_legacy_id@GOTPAGE
Lloh15:
	ldr	x12, [x12, _max_legacy_id@GOTPAGEOFF]
	ldr	x13, [x12]
	cmp	x11, x13
	b.le	LBB0_9
; %bb.8:
	str	x11, [x12]
LBB0_9:
	cbz	w22, LBB0_12
; %bb.10:
	and	w8, w10, w9
Lloh16:
	adrp	x9, _current_extra_mask@GOTPAGE
Lloh17:
	ldr	x9, [x9, _current_extra_mask@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	cset	w0, eq
	b	LBB0_13
LBB0_11:
	mov	w19, #1
Lloh19:
	adrp	x8, _discarded_rec@GOTPAGE
Lloh20:
	ldr	x8, [x8, _discarded_rec@GOTPAGEOFF]
	b	LBB0_19
LBB0_12:
Lloh21:
	adrp	x9, _LEV_TX_ADD_MESSAGE_EXT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LEV_TX_ADD_MESSAGE_EXT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh24:
	adrp	x9, _LEV_TX_ADD_MESSAGE_EXT_ZF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LEV_TX_ADD_MESSAGE_EXT_ZF@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
	cset	w0, ne
LBB0_13:
	bl	_assert
	ldr	x8, [x21, #32]
	sxtw	x22, w22
	add	x0, x8, x22
	mov	x1, x19
	bl	_preprocess_text
Lloh27:
	adrp	x8, _search_enabled@GOTPAGE
Lloh28:
	ldr	x8, [x8, _search_enabled@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x21, #32]
	add	x0, x8, x22
	mov	x1, x19
	bl	_compute_message_distinct_words
Lloh30:
	adrp	x8, _tot_search_words@GOTPAGE
Lloh31:
	ldr	x8, [x8, _tot_search_words@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
Lloh32:
	adrp	x8, _UserSearchWords@GOTPAGE
Lloh33:
	ldr	x8, [x8, _UserSearchWords@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x8]
	ldr	x8, [x9, x24]
	add	x8, x8, w0, sxtw
	str	x8, [x9, x24]
Lloh35:
	adrp	x9, _max_user_search_words@GOTPAGE
Lloh36:
	ldr	x9, [x9, _max_user_search_words@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.le	LBB0_16
; %bb.15:
	str	x8, [x9]
	ldr	w8, [x21, #24]
Lloh37:
	adrp	x9, _max_user_search_id@GOTPAGE
Lloh38:
	ldr	x9, [x9, _max_user_search_id@GOTPAGEOFF]
Lloh39:
	str	w8, [x9]
LBB0_16:
Lloh40:
	adrp	x8, _msgs_read@GOTPAGE
Lloh41:
	ldr	x8, [x8, _msgs_read@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh42:
	adrp	x8, _msgs_bytes@GOTPAGE
Lloh43:
	ldr	x8, [x8, _msgs_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
Lloh44:
	adrp	x8, _max_uid@GOTPAGE
Lloh45:
	ldr	x8, [x8, _max_uid@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w20, w9
	b.le	LBB0_18
; %bb.17:
	str	w20, [x8]
LBB0_18:
Lloh46:
	adrp	x8, _UserMsgCnt@GOTPAGE
Lloh47:
	ldr	x8, [x8, _UserMsgCnt@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	lsl	x9, x23, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
Lloh49:
	adrp	x8, _UserMsgBytes@GOTPAGE
Lloh50:
	ldr	x8, [x8, _UserMsgBytes@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	add	x8, x8, x9
LBB0_19:
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_discarded_rec,4,2              ; @discarded_rec
	.comm	_last_global_id,4,2             ; @last_global_id
	.comm	_User,8,3                       ; @User
	.comm	_tot_users,4,2                  ; @tot_users
	.comm	_MAX_EXTRA_MASK,4,2             ; @MAX_EXTRA_MASK
	.comm	_LEV_TX_ADD_MESSAGE_EXT_LL,4,2  ; @LEV_TX_ADD_MESSAGE_EXT_LL
	.comm	_min_legacy_id,8,3              ; @min_legacy_id
	.comm	_max_legacy_id,8,3              ; @max_legacy_id
	.comm	_current_extra_mask,4,2         ; @current_extra_mask
	.comm	_LEV_TX_ADD_MESSAGE_EXT,4,2     ; @LEV_TX_ADD_MESSAGE_EXT
	.comm	_LEV_TX_ADD_MESSAGE_EXT_ZF,4,2  ; @LEV_TX_ADD_MESSAGE_EXT_ZF
	.comm	_search_enabled,8,3             ; @search_enabled
	.comm	_tot_search_words,4,2           ; @tot_search_words
	.comm	_UserSearchWords,8,3            ; @UserSearchWords
	.comm	_max_user_search_words,8,3      ; @max_user_search_words
	.comm	_max_user_search_id,4,2         ; @max_user_search_id
	.comm	_msgs_read,4,2                  ; @msgs_read
	.comm	_msgs_bytes,4,2                 ; @msgs_bytes
	.comm	_max_uid,4,2                    ; @max_uid
	.comm	_UserMsgCnt,8,3                 ; @UserMsgCnt
	.comm	_UserMsgBytes,8,3               ; @UserMsgBytes
.subsections_via_symbols
