	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_first_messages          ## -- Begin function delete_first_messages
	.p2align	4, 0x90
_delete_first_messages:                 ## @delete_first_messages
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_conv_uid
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.1:
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movl	%ebx, %edi
	callq	_get_user
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_lookup_user_directory
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movl	(%rax), %eax
	incl	%eax
	cmpl	%r14d, %eax
	cmovgel	%r14d, %eax
	jmp	LBB0_6
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_first_messages          ; -- Begin function delete_first_messages
	.p2align	2
_delete_first_messages:                 ; @delete_first_messages
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_conv_uid
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.1:
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_get_user
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_lookup_user_directory
	cbz	x0, LBB0_5
LBB0_4:
	ldr	w8, [x0]
	add	w9, w8, #1
	cmp	w9, w19
	csinc	w0, w19, w8, ge
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
