	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_delayed_letters        ## -- Begin function process_delayed_letters
	.p2align	4, 0x90
_process_delayed_letters:               ## @process_delayed_letters
	.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, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_letter_get
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_now@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAX_DELAY@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%ebx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rax,%rdx), %rdi
	incq	%rdi
	callq	_GET_DELAYED_ID
	movq	_last_process_delayed_time@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %edi
	jne	LBB0_3
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	$1, %eax
	movl	%eax, (%r15)
	jae	LBB0_12
## %bb.11:
	movq	_DELAYED_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	%eax, (%r15)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
	movq	_DELAYED_TABLE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	movl	$0, %eax
	cmovel	%eax, %edi
	movl	%edi, (%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	cmpl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_delayed_head_letter@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%edi, %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rcx,%rdx,8), %rsi
	movq	32(%rcx,%rdx,8), %r14
	cmpq	%rsi, %r14
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rax
	movl	4(%rax), %edi
	callq	_strlen
	movl	%eax, %ebx
	movq	24(%r14), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setl	%dil
	callq	_assert
	movq	_letter_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	24(%r14), %rax
	movl	4(%rax), %esi
	incl	%ebx
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_get_fields
	xorl	%edi, %edi
	cmpl	$4, %eax
	setge	%dil
	callq	_assert
	xorl	%r12d, %r12d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rbx
	movl	16(%r14), %r13d
	movl	20(%r14), %edi
	callq	_delete_letter
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_is_deleted_task
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_letter_add
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_now,8,3                        ## @now
	.comm	_MAX_DELAY,4,2                  ## @MAX_DELAY
	.comm	_last_process_delayed_time,4,2  ## @last_process_delayed_time
	.comm	_delayed_head_letter,8,3        ## @delayed_head_letter
	.comm	_letter_buf,8,3                 ## @letter_buf
	.comm	_DELAYED_TABLE_SIZE,4,2         ## @DELAYED_TABLE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_delayed_letters        ; -- Begin function process_delayed_letters
	.p2align	2
_process_delayed_letters:               ; @process_delayed_letters
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_letter_get
	cbnz	x0, LBB0_1
; %bb.2:
Lloh0:
	adrp	x8, _now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MAX_DELAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_DELAY@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	sxtw	x10, w20
	madd	x8, x9, x10, x8
	add	x0, x8, #1
	bl	_GET_DELAYED_ID
	mov	x20, x0
Lloh6:
	adrp	x24, _last_process_delayed_time@GOTPAGE
Lloh7:
	ldr	x24, [x24, _last_process_delayed_time@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w0
	b.ne	LBB0_6
LBB0_3:
	sub	w8, w20, #1
	str	w8, [x24]
	cbnz	w20, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _DELAYED_TABLE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DELAYED_TABLE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w8, w8, #1
	str	w8, [x24]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh11:
	adrp	x25, _delayed_head_letter@GOTPAGE
Lloh12:
	ldr	x25, [x25, _delayed_head_letter@GOTPAGEOFF]
	mov	w26, #40
Lloh13:
	adrp	x28, _letter_buf@GOTPAGE
Lloh14:
	ldr	x28, [x28, _letter_buf@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w9, w8, #1
Lloh15:
	adrp	x10, _DELAYED_TABLE_SIZE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DELAYED_TABLE_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w10
	csinc	w8, wzr, w8, eq
	str	w8, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24]
	cmp	w8, w20
	b.eq	LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	smaddl	x9, w8, w26, x9
	ldr	x27, [x9, #32]
	cmp	x27, x9
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x27, #24]
	ldr	w0, [x8, #4]
	bl	_strlen
	mov	x21, x0
	ldr	x8, [x27, #24]
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, lt
	bl	_assert
	ldr	x8, [x28]
	ldr	w0, [x8]
	ldr	x8, [x27, #24]
	ldr	w1, [x8, #4]
	add	w2, w21, #1
	bl	_memcpy
	ldr	x8, [x28]
	ldr	w0, [x8]
	bl	_get_fields
	cmp	w0, #3
	cset	w0, gt
	bl	_assert
	cbz	w19, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w21, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w21, [x27]
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x22, [x27, #8]
	ldp	w23, w0, [x27, #16]
	bl	_delete_letter
	mov	x0, x22
	mov	x1, x23
	bl	_is_deleted_task
	cbnz	w0, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	w1, #0
	bl	_letter_add
	b	LBB0_8
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_now,8,3                        ; @now
	.comm	_MAX_DELAY,4,2                  ; @MAX_DELAY
	.comm	_last_process_delayed_time,4,2  ; @last_process_delayed_time
	.comm	_delayed_head_letter,8,3        ; @delayed_head_letter
	.comm	_letter_buf,8,3                 ; @letter_buf
	.comm	_DELAYED_TABLE_SIZE,4,2         ; @DELAYED_TABLE_SIZE
.subsections_via_symbols
