	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_reader_init               ## -- Begin function file_reader_init
	.p2align	4, 0x90
_file_reader_init:                      ## @file_reader_init
	.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	%rdi, %rbx
	testq	%rdi, %rdi
	leaq	L_.str(%rip), %r15
	cmoveq	%r15, %rbx
	movl	$80, %edi
	callq	_sort_malloc
	movq	%rax, %r14
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_sort_opts_vals@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$10, %eax
	cmovnel	%r12d, %eax
	movb	%al, (%r14)
	movq	%rbx, %rdi
	callq	_sort_strdup
	movl	%eax, 72(%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_compress_program@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.2:
	movq	_use_mmap@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.3:
	movq	_MAP_NOCORE@GOTPCREL(%rip), %rax
	movq	_MAP_NOSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_5:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	-48(%rbp), %r13
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	_MAP_FAILED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.8:
	movl	%r15d, 4(%r14)
	movq	%rax, 56(%r14)
	movq	%r13, 8(%r14)
	movq	%rax, 64(%r14)
LBB0_9:
	cmpq	$0, 56(%r14)
	jne	LBB0_16
	jmp	LBB0_10
LBB0_6:
	movl	%r15d, %edi
	callq	_close
	cmpq	$0, 56(%r14)
	jne	LBB0_16
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_openfile
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_READ_CHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 16(%r14)
	callq	_sort_malloc
	movq	%rax, 40(%r14)
	movq	$0, 24(%r14)
	movq	$0, 48(%r14)
	movl	16(%r14), %edx
	movq	32(%r14), %rcx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_fread
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movq	32(%r14), %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_16:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_sort_opts_vals,8,3             ## @sort_opts_vals
	.comm	_compress_program,8,3           ## @compress_program
	.comm	_use_mmap,8,3                   ## @use_mmap
	.comm	_MAP_NOCORE,4,2                 ## @MAP_NOCORE
	.comm	_MAP_NOSYNC,4,2                 ## @MAP_NOSYNC
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_READ_CHUNK,4,2                 ## @READ_CHUNK
	.comm	_MAP_PREFAULT_READ,4,2          ## @MAP_PREFAULT_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_reader_init               ; -- Begin function file_reader_init
	.p2align	2
_file_reader_init:                      ; @file_reader_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x20, x21, x0, eq
	mov	w0, #80
	bl	_sort_malloc
	mov	x19, x0
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh2:
	adrp	x8, _sort_opts_vals@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sort_opts_vals@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #10
	csel	w8, w8, wzr, eq
	strb	w8, [x19]
	mov	x0, x20
	bl	_sort_strdup
	str	w0, [x19, #72]
	mov	x0, x20
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _compress_program@GOTPAGE
Lloh6:
	ldr	x8, [x8, _compress_program@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _use_mmap@GOTPAGE
Lloh9:
	ldr	x9, [x9, _use_mmap@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_7
; %bb.2:
Lloh11:
	adrp	x8, _MAP_NOCORE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAP_NOCORE@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _MAP_NOSYNC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAP_NOSYNC@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
Lloh17:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	mov	w0, #2
	mov	x1, #0
	bl	_err
LBB0_4:
	add	x1, sp, #8
	mov	x0, x21
	bl	_fstat
	tbnz	x0, #63, LBB0_8
; %bb.5:
	orr	w3, w23, w22
	ldr	x22, [sp, #8]
Lloh20:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, x22
	mov	x4, x21
	mov	w5, #0
	bl	_mmap
Lloh23:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.6:
	str	w21, [x19, #4]
	str	x22, [x19, #8]
	stp	x0, x0, [x19, #56]
LBB0_7:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_15
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_close
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_15
LBB0_9:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_openfile
	str	x0, [x19, #32]
	cbnz	x0, LBB0_11
; %bb.10:
	mov	w0, #2
	mov	x1, #0
	bl	_err
LBB0_11:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.12:
Lloh30:
	adrp	x8, _READ_CHUNK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _READ_CHUNK@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	str	w0, [x19, #16]
	bl	_sort_malloc
	str	xzr, [x19, #24]
	stp	x0, xzr, [x19, #40]
	ldr	w2, [x19, #16]
	ldr	x3, [x19, #32]
	mov	w1, #1
	bl	_fread
	str	x0, [x19, #24]
	cbnz	x0, LBB0_15
; %bb.13:
	ldr	x0, [x19, #32]
	bl	_ferror
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #2
	mov	x1, #0
	bl	_err
LBB0_15:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_sort_opts_vals,8,3             ; @sort_opts_vals
	.comm	_compress_program,8,3           ; @compress_program
	.comm	_use_mmap,8,3                   ; @use_mmap
	.comm	_MAP_NOCORE,4,2                 ; @MAP_NOCORE
	.comm	_MAP_NOSYNC,4,2                 ; @MAP_NOSYNC
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_READ_CHUNK,4,2                 ; @READ_CHUNK
	.comm	_MAP_PREFAULT_READ,4,2          ; @MAP_PREFAULT_READ
.subsections_via_symbols
