	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_purge_deleted_user_messages ## -- Begin function dyn_purge_deleted_user_messages
	.p2align	4, 0x90
_dyn_purge_deleted_user_messages:       ## @dyn_purge_deleted_user_messages
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movslq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.3:
	movq	24(%rdi), %r11
	testq	%r11, %r11
	je	LBB0_17
## %bb.4:
	leaq	24(%rdi), %rsi
	leaq	(%rax,%rcx,4), %rcx
	addq	$-4, %rcx
	movl	12(%rdi), %r8d
	movl	16(%rdi), %r10d
	movq	_purged_msgs_cnt@GOTPCREL(%rip), %r9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
	movq	%r11, %rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	je	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	%r10d, %edi
	jl	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rdx), %rdx
	movq	%rdx, (%rsi)
	incl	(%r9)
	testq	%rdx, %rdx
	je	LBB0_17
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
	movl	(%rdx), %edi
	testl	%edi, %edi
	jg	LBB0_10
	.p2align	4, 0x90
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rax, %rcx
	jb	LBB0_19
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%edi, (%rax)
	jge	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	addq	$4, %rax
	cmpq	%rax, %rcx
	jae	LBB0_8
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=3
	addq	$-4, %rcx
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rax, %rcx
	jb	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	cmpl	%edi, (%rcx)
	jg	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	je	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	%r8d, %edi
	jle	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdx), %r11
	addq	$8, %rdx
	movq	%rdx, %rsi
	testq	%r11, %r11
	jne	LBB0_5
LBB0_17:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_purged_msgs_cnt,4,2            ## @purged_msgs_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dyn_purge_deleted_user_messages ; -- Begin function dyn_purge_deleted_user_messages
	.p2align	2
_dyn_purge_deleted_user_messages:       ; @dyn_purge_deleted_user_messages
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_19
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.2:
	ldrsw	x9, [x0, #8]
	cbz	w9, LBB0_19
; %bb.3:
	mov	x13, x0
	ldr	x15, [x13, #24]!
	cbz	x15, LBB0_19
; %bb.4:
	add	x9, x8, x9, lsl #2
	sub	x9, x9, #4
	ldp	w10, w11, [x0, #12]
Lloh0:
	adrp	x12, _purged_msgs_cnt@GOTPAGE
Lloh1:
	ldr	x12, [x12, _purged_msgs_cnt@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
	mov	x14, x15
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	cmp	w15, w11
	b.lt	LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x14, [x14, #8]
	str	x14, [x13]
	ldr	w15, [x12]
	add	w15, w15, #1
	str	w15, [x12]
	cbz	x14, LBB0_19
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_13 Depth 3
	ldr	w15, [x14]
	cmp	w15, #0
	b.gt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	x9, x8
	b.lo	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w16, [x8]
	cmp	w16, w15
	b.ge	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	add	x8, x8, #4
	cmp	x9, x8
	b.hs	LBB0_10
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	sub	x9, x9, #4
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x9, x8
	b.lo	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	w16, [x9]
	cmp	w16, w15
	b.gt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	ccmp	w15, w10, #4, ne
	b.le	LBB0_7
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	ccmp	w15, w11, #0, ne
	b.ge	LBB0_7
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w15, w10
	b.le	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x14, #8]!
	mov	x13, x14
	cbnz	x15, LBB0_5
LBB0_19:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_purged_msgs_cnt,4,2            ; @purged_msgs_cnt
.subsections_via_symbols
