	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function last_lines
_last_lines:                            ## @last_lines
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_fseek
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_ftell
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_23
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_dlg_exiterr
	testq	%rbx, %rbx
	je	LBB0_23
LBB0_4:
	movq	%rbx, %rsi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leal	1(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	cmpq	%r14, %rsi
	cmovlq	%rsi, %r14
	subq	%r14, %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_fseek
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_dlg_exiterr
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_fread
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_dlg_exiterr
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%r14, %rbx
	cmpq	$1, %r14
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%rbx, %rax
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	decq	%r14
	movq	%rax, %rbx
	cmpq	$1, %r14
	je	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, -1(%r13,%r14)
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	leal	1(%r15), %ecx
	movq	%r14, %rax
	cmpl	%r12d, %r15d
	movl	%ecx, %r15d
	jle	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	jg	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rsi, %rsi
	jne	LBB0_5
LBB0_19:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
LBB0_20:
	addq	%rsi, %rbx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_fseek
	cmpl	$-1, %eax
	je	LBB0_21
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.22:
	leaq	L_.str(%rip), %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dlg_exiterr                    ## TAILCALL
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error moving file pointer in last_lines()."

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"Error reading file in last_lines()."

	.no_dead_strip	_last_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function last_lines
_last_lines:                            ; @last_lines
	.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
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_fseek
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ftell
	mov	x22, x0
	tbnz	x0, #63, LBB0_4
; %bb.2:
	cbnz	x22, LBB0_5
	b	LBB0_22
LBB0_3:
	mov	x22, #0
LBB0_4:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlg_exiterr
	cbz	x22, LBB0_22
LBB0_5:
	mov	w23, #0
	mov	x28, #0
	add	w24, w20, #1
	sub	x26, x21, #1
Lloh13:
	adrp	x27, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x27, [x27, _SEEK_SET@GOTPAGEOFF]
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
Lloh15:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	cmp	x22, x8
	csel	x25, x22, x8, lt
	sub	x22, x22, x25
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x22
	bl	_fseek
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlg_exiterr
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	w1, #1
	mov	x2, x25
	mov	x3, x19
	bl	_fread
	mov	x25, x0
	mov	x0, x19
	bl	_ferror
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dlg_exiterr
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x25, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x25, x28
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x28
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	sub	x25, x25, #1
	mov	x28, x0
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x25, #1
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrb	w8, [x26, x25]
	cmp	w8, #10
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	add	w8, w23, #1
	mov	x0, x25
	cmp	w23, w20
	mov	x23, x8
	b.le	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, w24
	b.gt	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x22, LBB0_6
; %bb.19:
	mov	x28, #0
	b	LBB0_21
LBB0_20:
	mov	x28, #0
	mov	x22, #0
LBB0_21:
	add	x1, x22, x28
	ldr	w2, [x27]
	mov	x0, x19
	bl	_fseek
	cmn	w0, #1
	b.eq	LBB0_24
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.23:
	sub	sp, x29, #80
	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_24:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	sub	sp, x29, #80
	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
	b	_dlg_exiterr
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error moving file pointer in last_lines()."

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"Error reading file in last_lines()."

	.no_dead_strip	_last_lines
.subsections_via_symbols
