	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_letters_clear                  ## -- Begin function letters_clear
	.p2align	4, 0x90
_letters_clear:                         ## @letters_clear
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movl	%edi, %ebx
	callq	_get_drive_buffer_size
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_header@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%ebx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_head_letter@GOTPCREL(%rip), %r12
	movq	8(%r12), %rax
	cmpq	%r12, %rax
	je	LBB0_9
## %bb.4:
	movq	_expired_letters@GOTPCREL(%rip), %r14
	movq	%r12, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%rax), %edi
	callq	_delete_letter
	incl	(%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r13), %rax
	cmpq	%r12, %rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	shlq	$5, %rbx
	leaq	(%r15,%rbx), %rax
	addq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	4(%r15,%rbx), %rsi
	movl	%esi, (%r15,%rbx)
	movl	%esi, 8(%r15,%rbx)
	movq	%rsi, %rax
	addq	$8, %rax
	movslq	16(%r15,%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_12
LBB0_1:
	xorl	%edi, %edi
	callq	_get_drive_buffer_size
	movq	%rax, %rbx
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_process_delayed_letters
	movq	%rbx, %rax
	jmp	LBB0_2
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:
	movl	%edx, 12(%r15,%rbx)
	movq	$0, 24(%r15,%rbx)
	movl	$8, 20(%r15,%rbx)
	movq	_FILE_END@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_memory_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx)
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax,%r13,4), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_lseek
	xorl	%edi, %edi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	24(%r15,%rbx), %rcx
	movq	(%rcx,%rax), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_assert
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_header,8,3                     ## @header
	.comm	_head_letter,24,3               ## @head_letter
	.comm	_expired_letters,4,2            ## @expired_letters
	.comm	_FILE_END,8,3                   ## @FILE_END
	.comm	_memory_buf,8,3                 ## @memory_buf
	.comm	_fd,8,3                         ## @fd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_letters_clear                  ; -- Begin function letters_clear
	.p2align	2
_letters_clear:                         ; @letters_clear
	.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
	cbz	w0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_get_drive_buffer_size
	mov	x19, x0
Lloh0:
	adrp	x8, _header@GOTPAGE
Lloh1:
	ldr	x8, [x8, _header@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	sxtw	x21, w20
Lloh3:
	adrp	x23, _head_letter@GOTPAGE
Lloh4:
	ldr	x23, [x23, _head_letter@GOTPAGEOFF]
	ldr	x8, [x23, #8]
	cmp	x8, x23
	b.eq	LBB0_7
; %bb.2:
Lloh5:
	adrp	x24, _expired_letters@GOTPAGE
Lloh6:
	ldr	x24, [x24, _expired_letters@GOTPAGEOFF]
	mov	x25, x23
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8, #16]
	bl	_delete_letter
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, #8]
	cmp	x8, x23
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, w20
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x8
	b	LBB0_4
LBB0_7:
	add	x20, x22, x21, lsl #5
	ldrsw	x1, [x20, #4]
	str	w1, [x20]
	add	x8, x1, #8
	ldrsw	x9, [x20, #16]
	udiv	x10, x8, x9
	msub	w8, w10, w9, w8
	stp	w1, w8, [x20, #8]
	str	xzr, [x20, #24]
	mov	w8, #8
	str	w8, [x20, #20]
Lloh7:
	adrp	x22, _FILE_END@GOTPAGE
Lloh8:
	ldr	x22, [x22, _FILE_END@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh9:
	adrp	x23, _memory_buf@GOTPAGE
Lloh10:
	ldr	x23, [x23, _memory_buf@GOTPAGEOFF]
	ldr	x9, [x23]
	lsl	x24, x21, #3
	ldr	x9, [x9, x24]
	str	x8, [x9]
Lloh11:
	adrp	x8, _fd@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x8, x8, x21, lsl #2
	ldr	w0, [x8, #8]
Lloh14:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_lseek
	ldr	w8, [x20, #4]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23]
	ldr	x8, [x8, x24]
	ldr	x9, [x20, #24]
	ldr	x8, [x9, x8]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	b	LBB0_9
LBB0_8:
	bl	_get_drive_buffer_size
	mov	x19, x0
	mov	w0, #1
	mov	w1, #0
	bl	_process_delayed_letters
LBB0_9:
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_header,8,3                     ; @header
	.comm	_head_letter,24,3               ; @head_letter
	.comm	_expired_letters,4,2            ; @expired_letters
	.comm	_FILE_END,8,3                   ; @FILE_END
	.comm	_memory_buf,8,3                 ; @memory_buf
	.comm	_fd,8,3                         ; @fd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
