	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_first_messages0         ## -- Begin function delete_first_messages0
	.p2align	4, 0x90
_delete_first_messages0:                ## @delete_first_messages0
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_conv_uid
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_ignore_delete_first_messages@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_2
## %bb.3:
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.5:
	movq	_UserMsgCnt@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %r15d
	movl	(%rcx,%r15,4), %eax
	incl	%eax
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setge	%dil
	jmp	LBB0_6
LBB0_2:
	movq	_discarded_rec@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %r15d
	xorl	%edi, %edi
LBB0_6:
	callq	_assert
	movq	_User@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpl	%ebx, 4(%rax)
	jge	LBB0_10
LBB0_9:
	movl	%ebx, 4(%rax)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$4, %edi
	callq	_zmalloc0
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	%r14d, (%rax)
	movq	_tot_users@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	cmpl	%ebx, 4(%rax)
	jl	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ignore_delete_first_messages,8,3 ## @ignore_delete_first_messages
	.comm	_discarded_rec,4,2              ## @discarded_rec
	.comm	_UserMsgCnt,8,3                 ## @UserMsgCnt
	.comm	_User,8,3                       ## @User
	.comm	_tot_users,4,2                  ## @tot_users
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_first_messages0         ; -- Begin function delete_first_messages0
	.p2align	2
_delete_first_messages0:                ; @delete_first_messages0
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_conv_uid
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ignore_delete_first_messages@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ignore_delete_first_messages@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.2:
	cmp	w19, #0
	b.le	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _UserMsgCnt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UserMsgCnt@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w21, w0
	ldr	w8, [x8, w0, uxtw #2]
	add	w8, w8, #1
	cmp	w8, w19
	cset	w8, ge
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _discarded_rec@GOTPAGE
Lloh7:
	ldr	x8, [x8, _discarded_rec@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_10
LBB0_5:
	mov	w8, #0
	mov	w21, w0
LBB0_6:
	mov	x0, x8
	bl	_assert
Lloh8:
	adrp	x22, _User@GOTPAGE
Lloh9:
	ldr	x22, [x22, _User@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	cbnz	x8, LBB0_8
; %bb.7:
	mov	w0, #4
	bl	_zmalloc0
	ldr	x8, [x22]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x22]
	ldr	x8, [x8, x9]
	str	w20, [x8]
Lloh10:
	adrp	x9, _tot_users@GOTPAGE
Lloh11:
	ldr	x9, [x9, _tot_users@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
LBB0_8:
	ldr	w9, [x8, #4]
	cmp	w9, w19
	b.ge	LBB0_10
; %bb.9:
	str	w19, [x8, #4]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ignore_delete_first_messages,8,3 ; @ignore_delete_first_messages
	.comm	_discarded_rec,4,2              ; @discarded_rec
	.comm	_UserMsgCnt,8,3                 ; @UserMsgCnt
	.comm	_User,8,3                       ; @User
	.comm	_tot_users,4,2                  ; @tot_users
.subsections_via_symbols
