	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movq	%rsi, %rbx
	xorl	%eax, %eax
	cmpl	$2, %edi
	sete	%al
	movl	%eax, %edi
	callq	_assert
	movq	8(%rbx), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	_ifd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	_N@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	_cur_offs@GOTPCREL(%rip), %r13
	movq	_load_offs@GOTPCREL(%rip), %r15
	movq	_r@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	(%r14), %rcx
	shlq	$5, %rcx
	movq	%rax, 24(%rsi,%rcx)
	movl	8(%r15,%rbx,4), %eax
	movq	(%r14), %rdx
	shlq	$5, %rdx
	movl	%eax, (%rsi,%rdx)
	movl	12(%r15,%rbx,4), %ecx
	movl	%ecx, 4(%rsi,%rdx)
	movq	$0, 16(%rsi,%rdx)
	movq	(%r13), %rdx
	movq	(%r14), %rdi
	shlq	$5, %rdi
	movq	%rdx, 8(%rsi,%rdi)
	movq	(%r14), %rdx
	movq	%rdx, %rdi
	shlq	$5, %rdi
	addq	%rsi, %rdi
	movq	_P@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdi, (%rsi,%rdx,8)
	incq	%rdx
	movq	%rdx, (%r14)
	movq	(%r13), %rsi
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_load_offs@GOTPCREL(%rip), %r15
	shll	$4, %eax
	leal	(%rax,%rcx,4), %eax
	cltq
	addq	%rsi, %rax
	movq	%rax, (%r13)
	xorl	%edi, %edi
	movq	_MAX_USERS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	setbe	%dil
	callq	_assert
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	leaq	24(%rbx), %rcx
	movq	(%r15), %rax
	movslq	(%r12), %rdx
	addq	%rax, %rdx
	cmpq	%rdx, %rcx
	jbe	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ifd@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_lseek
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_assert
	movq	(%r15), %rdi
	movq	_load_offs@GOTPCREL(%rip), %r15
	movq	_buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_READ_AHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_read
	movl	%eax, (%r12)
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_assert
	movq	(%r13), %rax
	movq	%rax, (%r15)
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	cmpl	$24, %eax
	setae	%dil
	callq	_assert
	movq	(%r13), %rbx
	movq	(%r15), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_buff@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	subq	%rax, %rbx
	movq	(%r15,%rbx,4), %rax
	xorl	%edi, %edi
	movq	_MAIL_INDEX_BLOCK_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	cmpq	$2147483647, 16(%r15,%rbx,4)    ## imm = 0x7FFFFFFF
	ja	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$16777215, 8(%r15,%rbx,4)       ## imm = 0xFFFFFF
	ja	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$67108864, 12(%r15,%rbx,4)      ## imm = 0x4000000
	setb	%al
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	(%r13), %rsi
	addq	$24, %rsi
	movq	%rsi, (%r13)
	movq	16(%r15,%rbx,4), %rax
	leaq	-1(%rax), %rcx
	cmpq	$67108863, %rcx                 ## imm = 0x3FFFFFF
	jb	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15,%rbx,4), %eax
	movl	12(%r15,%rbx,4), %ecx
	movq	(%r14), %rdx
	jmp	LBB0_2
LBB0_13:
	movq	(%r14), %rsi
	decq	%rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_my_sort
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.14:
	xorl	%eax, %eax
	movq	_B@GOTPCREL(%rip), %r8
	xorl	%edx, %edx
	movq	_P@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rsi
	movq	(%rcx), %rdi
	movq	(%rdi,%rax), %rdi
	movups	(%rdi), %xmm0
	movups	16(%rdi), %xmm1
	movups	%xmm1, 16(%rsi,%rax,4)
	movups	%xmm0, (%rsi,%rax,4)
	incq	%rdx
	movq	(%r14), %rbx
	addq	$8, %rax
	cmpq	%rdx, %rbx
	ja	LBB0_15
## %bb.16:
	shlq	$2, %rbx
LBB0_17:
	movq	_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_write
	cltq
	movq	(%r14), %rcx
	shlq	$2, %rcx
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_ifd,8,3                        ## @ifd
	.comm	_N,8,3                          ## @N
	.comm	_cur_offs,8,3                   ## @cur_offs
	.comm	_load_offs,8,3                  ## @load_offs
	.comm	_r,4,2                          ## @r
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_buff,8,3                       ## @buff
	.comm	_READ_AHEAD,4,2                 ## @READ_AHEAD
	.comm	_MAIL_INDEX_BLOCK_MAGIC,8,3     ## @MAIL_INDEX_BLOCK_MAGIC
	.comm	_A,8,3                          ## @A
	.comm	_P,8,3                          ## @P
	.comm	_MAX_USERS,8,3                  ## @MAX_USERS
	.comm	_B,8,3                          ## @B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	cmp	w0, #2
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
Lloh3:
	adrp	x21, _ifd@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ifd@GOTPAGEOFF]
	str	x0, [x21]
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
Lloh5:
	adrp	x19, _N@GOTPAGE
Lloh6:
	ldr	x19, [x19, _N@GOTPAGEOFF]
Lloh7:
	adrp	x22, _cur_offs@GOTPAGE
Lloh8:
	ldr	x22, [x22, _cur_offs@GOTPAGEOFF]
Lloh9:
	adrp	x23, _load_offs@GOTPAGE
Lloh10:
	ldr	x23, [x23, _load_offs@GOTPAGEOFF]
Lloh11:
	adrp	x24, _r@GOTPAGE
Lloh12:
	ldr	x24, [x24, _r@GOTPAGEOFF]
Lloh13:
	adrp	x26, _buff@GOTPAGE
Lloh14:
	ldr	x26, [x26, _buff@GOTPAGEOFF]
	str	xzr, [x19]
Lloh15:
	adrp	x28, _MAIL_INDEX_BLOCK_MAGIC@GOTPAGE
Lloh16:
	ldr	x28, [x28, _MAIL_INDEX_BLOCK_MAGIC@GOTPAGEOFF]
	mov	w25, #67108863
Lloh17:
	adrp	x27, _MAX_USERS@GOTPAGE
Lloh18:
	ldr	x27, [x27, _MAX_USERS@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x9, _A@GOTPAGE
Lloh20:
	ldr	x9, [x9, _A@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x9]
	ldr	x9, [x19]
	add	x9, x10, x9, lsl #5
	str	x8, [x9, #24]
	ldr	x8, [x19]
	add	x11, x10, x8, lsl #5
	ldp	w8, w9, [x20, #8]
	stp	w8, w9, [x11]
	str	xzr, [x11, #16]
	ldr	x11, [x22]
	ldr	x12, [x19]
	add	x12, x10, x12, lsl #5
	str	x11, [x12, #8]
	ldr	x11, [x19]
	add	x10, x10, x11, lsl #5
Lloh22:
	adrp	x12, _P@GOTPAGE
Lloh23:
	ldr	x12, [x12, _P@GOTPAGEOFF]
Lloh24:
	ldr	x12, [x12]
	str	x10, [x12, x11, lsl #3]
	add	x11, x11, #1
	str	x11, [x19]
	ldr	x10, [x22]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	w9, w9, #2
	add	w8, w9, w8, lsl #4
	add	x8, x10, w8, sxtw
	str	x8, [x22]
	ldr	x8, [x27]
	cmp	x11, x8
	cset	w0, ls
	bl	_assert
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	add	x9, x1, #24
	ldr	x8, [x23]
	ldrsw	x10, [x24]
	add	x10, x8, x10
	cmp	x9, x10
	b.ls	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21]
Lloh25:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	bl	_lseek
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	x0, [x21]
	ldr	x1, [x26]
Lloh28:
	adrp	x8, _READ_AHEAD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _READ_AHEAD@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	bl	_read
	str	w0, [x24]
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	ldr	x8, [x22]
	str	x8, [x23]
	ldr	w8, [x24]
	cbz	w8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #23
	cset	w0, hi
	bl	_assert
	ldr	x1, [x22]
	ldr	x8, [x23]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26]
	sub	x8, x1, x8
	add	x20, x9, x8, lsl #2
	ldr	x8, [x20]
	ldr	x9, [x28]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #16]
	lsr	x8, x8, #31
	cbnz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x20, #11]
	cbnz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #12]
	lsr	w8, w8, #26
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_assert
	ldr	x8, [x22]
	add	x10, x8, #24
	str	x10, [x22]
	ldr	x8, [x20, #16]
	sub	x9, x8, #1
	cmp	x9, x25
	b.lo	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldp	w8, w9, [x20, #8]
	ldr	x11, [x19]
	b	LBB0_2
LBB0_12:
	ldr	x8, [x19]
	sub	x1, x8, #1
	mov	w0, #0
	bl	_my_sort
	ldr	x9, [x19]
Lloh31:
	adrp	x8, _B@GOTPAGE
Lloh32:
	ldr	x8, [x8, _B@GOTPAGEOFF]
	cbz	x9, LBB0_16
; %bb.13:
	mov	x9, #0
	mov	x10, #0
Lloh33:
	adrp	x13, _P@GOTPAGE
Lloh34:
	ldr	x13, [x13, _P@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	ldr	x12, [x13]
	ldr	x12, [x12, x10, lsl #3]
	add	x11, x11, x9
	ldp	q0, q1, [x12]
	stp	q0, q1, [x11]
	add	x10, x10, #1
	ldr	x11, [x19]
	add	x9, x9, #32
	cmp	x11, x10
	b.hi	LBB0_14
; %bb.15:
	lsl	x2, x11, #2
	b	LBB0_17
LBB0_16:
	mov	x2, #0
LBB0_17:
	ldr	x1, [x8]
	mov	w0, #1
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19]
	cmp	x8, x9, lsl #2
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_ifd,8,3                        ; @ifd
	.comm	_N,8,3                          ; @N
	.comm	_cur_offs,8,3                   ; @cur_offs
	.comm	_load_offs,8,3                  ; @load_offs
	.comm	_r,4,2                          ; @r
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_buff,8,3                       ; @buff
	.comm	_READ_AHEAD,4,2                 ; @READ_AHEAD
	.comm	_MAIL_INDEX_BLOCK_MAGIC,8,3     ; @MAIL_INDEX_BLOCK_MAGIC
	.comm	_A,8,3                          ; @A
	.comm	_P,8,3                          ; @P
	.comm	_MAX_USERS,8,3                  ; @MAX_USERS
	.comm	_B,8,3                          ; @B
.subsections_via_symbols
