	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_lineno
_do_lineno:                             ## @do_lineno
	.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
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_3
## %bb.1:
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movq	_lineno@GOTPCREL(%rip), %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%r12), %rax
	jg	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movq	_nfiles@GOTPCREL(%rip), %rcx
	movq	_maxfiles@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, (%rcx)
	jge	LBB0_19
## %bb.7:
	movq	_EOF@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	xorl	%eax, %eax
	callq	_newfile
	movq	%rax, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_fputs
	cmpq	(%r13), %rax
	je	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	incq	%rax
	cmpq	%rbx, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	xorl	%eax, %eax
	callq	_get_line
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_sflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_ftello
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_currfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_reps@GOTPCREL(%rip), %rax
	subl	$1, (%rax)
	jb	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	_maxfiles@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movq	_nfiles@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_9
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bad line number"

	.comm	_lineno,8,3                     ## @lineno
L_.str.1:                               ## @.str.1
	.asciz	"%s: can't go backwards"

	.comm	_nfiles,4,2                     ## @nfiles
	.comm	_maxfiles,4,2                   ## @maxfiles
L_.str.2:                               ## @.str.2
	.asciz	"%ld: out of range"

	.comm	_EOF,8,3                        ## @EOF
	.comm	_sflag,4,2                      ## @sflag
L_.str.3:                               ## @.str.3
	.asciz	"%jd\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

	.comm	_currfile,4,2                   ## @currfile
	.comm	_reps,4,2                       ## @reps
	.no_dead_strip	_do_lineno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_lineno
_do_lineno:                             ; @do_lineno
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
Lloh0:
	adrp	x19, _errno@GOTPAGE
Lloh1:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	xzr, [x19]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtol
	mov	x28, x0
	ldr	x8, [x19]
	cmp	x0, #1
	ccmp	x8, #0, #0, ge
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_3
LBB0_2:
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
Lloh4:
	adrp	x25, _lineno@GOTPAGE
Lloh5:
	ldr	x25, [x25, _lineno@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x28, x8
	b.gt	LBB0_5
; %bb.4:
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
Lloh8:
	adrp	x26, _nfiles@GOTPAGE
Lloh9:
	ldr	x26, [x26, _nfiles@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh10:
	adrp	x27, _maxfiles@GOTPAGE
Lloh11:
	ldr	x27, [x27, _maxfiles@GOTPAGEOFF]
	ldr	w9, [x27]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_18
; %bb.6:
Lloh12:
	adrp	x20, _reps@GOTPAGE
Lloh13:
	ldr	x20, [x20, _reps@GOTPAGEOFF]
Lloh14:
	adrp	x21, _EOF@GOTPAGE
Lloh15:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	mov	x19, x28
Lloh16:
	adrp	x22, l_.str.2@PAGE
Lloh17:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	bl	_newfile
	mov	x23, x0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x24
	mov	x1, x23
	bl	_fputs
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_12
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	add	x8, x8, #1
	cmp	x8, x19
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	bl	_get_line
	mov	x24, x0
	cbnz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	str	x19, [sp]
	mov	w0, #1
	mov	x1, x22
	bl	_errx
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh18:
	adrp	x8, _sflag@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sflag@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_ftello
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printf
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_fclose
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh23:
	adrp	x8, _currfile@GOTPAGE
Lloh24:
	ldr	x8, [x8, _currfile@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	w0, #1
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	sub	w9, w8, #1
	str	w9, [x20]
	cbz	w8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x19, x28
	ldr	w8, [x26]
	ldr	w9, [x27]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_7
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bad line number"

	.comm	_lineno,8,3                     ; @lineno
l_.str.1:                               ; @.str.1
	.asciz	"%s: can't go backwards"

	.comm	_nfiles,4,2                     ; @nfiles
	.comm	_maxfiles,4,2                   ; @maxfiles
l_.str.2:                               ; @.str.2
	.asciz	"%ld: out of range"

	.comm	_EOF,8,3                        ; @EOF
	.comm	_sflag,4,2                      ; @sflag
l_.str.3:                               ; @.str.3
	.asciz	"%jd\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

	.comm	_currfile,4,2                   ; @currfile
	.comm	_reps,4,2                       ; @reps
	.no_dead_strip	_do_lineno
.subsections_via_symbols
