	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_top                            ## -- Begin function top
	.p2align	4, 0x90
_top:                                   ## @top
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LINESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rdi
	callq	_value
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_atoi
	cmpl	$10001, %eax                    ## imm = 0x2711
	movl	$5, %ecx
	cmovbl	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$5, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movq	_msgCount@GOTPCREL(%rip), %r13
	movq	%r12, %rbx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	cmpq	%r13, %r14
	sete	%al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	_msgCount@GOTPCREL(%rip), %r13
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %eax
	addq	$4, %rbx
	testl	%eax, %eax
	je	LBB0_18
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%rbx, %rcx
	subq	%r12, %rcx
	sarq	$2, %rcx
	movslq	(%r13), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_message@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	leaq	(%rcx,%rax,4), %r14
	addq	$-4, %r14
	movq	%r14, %rdi
	callq	_touch
	movq	_dot@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	leaq	L_.str.1(%rip), %rdi
	callq	_value
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_setinput
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ebx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	jg	LBB0_11
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_putchar
	testl	%ebx, %ebx
	jle	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_readline
	testq	%rax, %rax
	js	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_puts
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strspn
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r13
	cmpl	%ebx, %r12d
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	leal	-1(%r12), %eax
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_readline
	incl	%r12d
	testq	%rax, %rax
	jns	LBB0_14
	jmp	LBB0_16
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LINESIZE,4,2                   ## @LINESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"toplines"

	.comm	_msgCount,4,2                   ## @msgCount
	.comm	_message,8,3                    ## @message
	.comm	_dot,8,3                        ## @dot
L_.str.1:                               ## @.str.1
	.asciz	"quiet"

L_.str.2:                               ## @.str.2
	.asciz	"Message %d:\n"

L_.str.4:                               ## @.str.4
	.asciz	" \t"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_top                            ; -- Begin function top
	.p2align	2
_top:                                   ; @top
	.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	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _LINESIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINESIZE@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_value
	mov	w28, #5
	cbz	x0, LBB0_2
; %bb.1:
	bl	_atoi
	mov	w8, #10000
	cmp	w0, w8
	csel	w28, w28, w0, hi
LBB0_2:
	ldr	w8, [x22]
	cbz	w8, LBB0_17
; %bb.3:
	mov	w27, #1
	mov	x19, x22
Lloh10:
	adrp	x24, l_.str.4@PAGE
Lloh11:
	add	x24, x24, l_.str.4@PAGEOFF
	stur	x22, [x29, #-96]                ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x26, x27
	cset	w27, eq
	ldur	x22, [x29, #-96]                ; 8-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #4]!
	cbz	w8, LBB0_17
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	sub	x9, x19, x22
Lloh12:
	adrp	x10, _msgCount@GOTPAGE
Lloh13:
	ldr	x10, [x10, _msgCount@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	cmp	x10, x9, asr #2
	b.le	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh15:
	adrp	x9, _message@GOTPAGE
Lloh16:
	ldr	x9, [x9, _message@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	sub	w8, w8, #1
	add	x26, x9, w8, sxtw #2
	mov	x0, x26
	bl	_touch
Lloh18:
	adrp	x8, _dot@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dot@GOTPAGEOFF]
Lloh20:
	str	x26, [x8]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_value
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	str	x8, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_setinput
	mov	x25, x0
	ldr	w23, [x26]
	cbz	w27, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, #1
	b.ge	LBB0_12
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #10
	bl	_putchar
	cmp	w23, #1
	b.lt	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x21
	mov	x2, x20
	bl	_readline
	tbnz	x0, #63, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #1
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_puts
	mov	x0, x21
	mov	x1, x24
	bl	_strspn
	mov	x26, x0
	mov	x0, x21
	bl	_strlen
	mov	x27, x0
	cmp	w22, w23
	b.ge	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	sub	w8, w22, #1
	cmp	w8, w28
	b.ge	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x25
	mov	x1, x21
	mov	x2, x20
	bl	_readline
	add	w22, w22, #1
	tbz	x0, #63, LBB0_14
	b	LBB0_4
LBB0_17:
	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_19
; %bb.18:
	mov	w0, #0
	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_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LINESIZE,4,2                   ; @LINESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"toplines"

	.comm	_msgCount,4,2                   ; @msgCount
	.comm	_message,8,3                    ; @message
	.comm	_dot,8,3                        ; @dot
l_.str.1:                               ; @.str.1
	.asciz	"quiet"

l_.str.2:                               ; @.str.2
	.asciz	"Message %d:\n"

l_.str.4:                               ; @.str.4
	.asciz	" \t"

.subsections_via_symbols
