	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_reader_readline           ## -- Begin function file_reader_readline
	.p2align	4, 0x90
_file_reader_readline:                  ## @file_reader_readline
	.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, %r13
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movslq	8(%r13), %rax
	addq	%rax, %rbx
	movq	16(%r13), %r14
	cmpq	%rbx, %r14
	jae	LBB0_2
## %bb.3:
	movq	%rbx, %r12
	subq	%r14, %r12
	movl	68(%r13), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	%r15d, %esi
	subl	%r14d, %esi
	movq	%r14, %rdi
	callq	_bwscsbdup
	incq	%r15
	movq	%r15, 16(%r13)
	jmp	LBB0_31
LBB0_6:
	movq	24(%r13), %rdi
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.30:
	movq	$0, -48(%rbp)
	movq	_sort_opts_vals@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$64, %r13
	leaq	-48(%rbp), %rsi
	movq	%r13, %rcx
	callq	_bwsfgetln
	jmp	LBB0_31
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_7:
	movq	32(%r13), %rax
	xorl	%ebx, %ebx
	subq	40(%r13), %rax
	cmovbq	%rbx, %rax
	movq	_READ_CHUNK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r14
	movq	%rax, %rdx
	subq	%rbx, %rdx
	jbe	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	48(%r13), %rdi
	addq	40(%r13), %rdi
	addq	%rbx, %rdi
	movl	68(%r13), %esi
	callq	_memchr
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%r13), %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	32(%r13), %rax
	cmpq	56(%r13), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$2, %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	(%r15), %rsi
	movl	%esi, %eax
	sarl	%eax
	cltq
	cmpq	%rax, %r14
	jbe	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	56(%r13), %rbx
	movq	40(%r13), %r12
	movq	48(%r13), %rdi
	addq	%rbx, %rsi
	movq	%rsi, 56(%r13)
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sort_realloc
	movq	%rax, 48(%r13)
	addq	32(%r13), %rax
	movslq	(%r15), %rdx
	movq	24(%r13), %rcx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_fread
	testq	%rax, %rax
	je	LBB0_16
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	subq	%r12, %rbx
	addq	%rax, 32(%r13)
	addq	%rax, %r14
	movq	%r14, %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r14, %r14
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	40(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	48(%r13), %rdi
	addq	%rdi, %rsi
	movq	%r14, %rdx
	callq	_memmove
LBB0_28:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, 40(%r13)
	movq	48(%r13), %rdi
	addq	%r14, %rdi
	movq	24(%r13), %rcx
	movq	56(%r13), %rdx
	subq	%r14, %rdx
	movl	$1, %esi
	callq	_fread
	testq	%rax, %rax
	je	LBB0_16
## %bb.29:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%r14, %rax
	movq	%rax, 32(%r13)
	movq	%r14, %rbx
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bwscsbdup
	movq	%rbx, 16(%r13)
	jmp	LBB0_31
LBB0_16:
	movq	24(%r13), %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_18:
	movq	48(%r13), %r12
	addq	32(%r13), %r12
	jmp	LBB0_19
LBB0_10:
	movq	%rax, %r12
	movl	$1, %r14d
LBB0_19:
	movq	40(%r13), %rdx
	movq	48(%r13), %rcx
	leaq	(%rcx,%rdx), %rdi
	xorl	%eax, %eax
	cmpq	%r12, %rdi
	ja	LBB0_23
## %bb.20:
	cmpq	32(%r13), %rdx
	jae	LBB0_23
## %bb.21:
	testq	%r14, %r14
	je	LBB0_23
## %bb.22:
	addl	%ecx, %edx
	movl	%r12d, %esi
	subl	%edx, %esi
	callq	_bwscsbdup
	movq	48(%r13), %rcx
LBB0_23:
	subq	%rcx, %r12
	incq	%r12
	movq	%r12, 40(%r13)
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,8,3                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File read software error 1"

	.comm	_READ_CHUNK,4,2                 ## @READ_CHUNK
	.comm	_sort_opts_vals,4,2             ## @sort_opts_vals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_reader_readline           ; -- Begin function file_reader_readline
	.p2align	2
_file_reader_readline:                  ; @file_reader_readline
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldrsw	x9, [x19, #8]
	ldr	x20, [x19, #16]
	add	x23, x8, x9
	cmp	x20, x23
	b.hs	LBB0_6
; %bb.2:
	sub	x21, x23, x20
	ldr	w1, [x19, #68]
	mov	x0, x20
	mov	x2, x21
	bl	_memchr
	cbz	x0, LBB0_21
; %bb.3:
	mov	x22, x0
	sub	w1, w22, w20
	mov	x0, x20
	bl	_bwscsbdup
	add	x8, x22, #1
	str	x8, [x19, #16]
	b	LBB0_32
LBB0_4:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x8, _stdin@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _sort_opts_vals@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sort_opts_vals@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, x19, #64
	add	x1, sp, #8
	bl	_bwsfgetln
	b	LBB0_32
LBB0_6:
	mov	x0, #0
	b	LBB0_32
LBB0_7:
	mov	x8, #0
	ldp	x9, x10, [x19, #32]
	subs	x9, x9, x10
	csel	x9, xzr, x9, lo
Lloh6:
	adrp	x23, _READ_CHUNK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _READ_CHUNK@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x9
	subs	x2, x9, x8
	b.ls	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	x10, x9, [x19, #40]
	add	x9, x9, x10
	add	x0, x9, x8
	ldr	w1, [x19, #68]
	bl	_memchr
	cbnz	x0, LBB0_25
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19, #24]
	bl	_feof
	cbnz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #56]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #2
	mov	x1, x21
	bl	_err
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x23]
	asr	w9, w8, #1
	cmp	x20, w9, sxtw
	b.ls	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldp	x0, x22, [x19, #48]
	add	x1, x22, x8
	str	x1, [x19, #56]
	ldr	x24, [x19, #40]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_sort_realloc
	str	x0, [x19, #48]
	ldp	x3, x8, [x19, #24]
	add	x0, x0, x8
	ldrsw	x2, [x23]
	mov	w1, #1
	bl	_fread
	cbz	x0, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x8, x22, x24
	ldr	x9, [x19, #32]
	add	x9, x9, x0
	str	x9, [x19, #32]
	add	x9, x0, x20
	b	LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x20, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19, #48]
	add	x1, x0, x8
	mov	x2, x20
	bl	_memmove
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x19, #40]
	ldp	x8, x9, [x19, #48]
	add	x0, x8, x20
	sub	x2, x9, x20
	ldr	x3, [x19, #24]
	mov	w1, #1
	bl	_fread
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x0, x20
	str	x9, [x19, #32]
	mov	x8, x20
	b	LBB0_8
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	bl	_bwscsbdup
	str	x23, [x19, #16]
	b	LBB0_32
LBB0_22:
	ldr	x0, [x19, #24]
	bl	_ferror
	cbz	x0, LBB0_24
; %bb.23:
	mov	w0, #2
	mov	x1, #0
	bl	_err
LBB0_24:
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #32]
	add	x22, x8, x9
	b	LBB0_26
LBB0_25:
	mov	x22, x0
	mov	w20, #1
LBB0_26:
	ldp	x10, x9, [x19, #40]
	add	x8, x9, x10
	cmp	x8, x22
	b.ls	LBB0_28
; %bb.27:
	mov	x0, #0
	b	LBB0_31
LBB0_28:
	mov	x0, #0
	ldr	x11, [x19, #32]
	cmp	x10, x11
	b.hs	LBB0_31
; %bb.29:
	cbz	x20, LBB0_31
; %bb.30:
	add	w9, w10, w9
	sub	w1, w22, w9
	mov	x0, x8
	bl	_bwscsbdup
	ldr	x9, [x19, #48]
LBB0_31:
	sub	x8, x22, x9
	add	x8, x8, #1
	str	x8, [x19, #40]
LBB0_32:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,8,3                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File read software error 1"

	.comm	_READ_CHUNK,4,2                 ; @READ_CHUNK
	.comm	_sort_opts_vals,4,2             ; @sort_opts_vals
.subsections_via_symbols
