	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_lines
_flush_lines:                           ## @flush_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	jle	LBB0_8
## %bb.1:
	movl	%edi, %r14d
	incl	%r14d
	movq	_lines@GOTPCREL(%rip), %r15
	movq	_nblank_lines@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r12)
	callq	_free
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_free_line
	decl	%r14d
	cmpl	$1, %r14d
	jbe	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	16(%rbx), %rax
	movq	%rax, (%r15)
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_flush_blanks
	movq	%rbx, %rdi
	callq	_flush_line
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r12)
	jmp	LBB0_7
LBB0_8:
	movq	_lines@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	$0, (%rax)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lines,8,3                      ## @lines
	.comm	_nblank_lines,4,2               ## @nblank_lines
	.no_dead_strip	_flush_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_lines
_flush_lines:                           ; @flush_lines
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _lines@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lines@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	add	w21, w0, #1
Lloh2:
	adrp	x22, _nblank_lines@GOTPAGE
Lloh3:
	ldr	x22, [x22, _nblank_lines@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	bl	_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_free_line
	sub	w21, w21, #1
	cmp	w21, #1
	b.ls	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x20]
	ldp	x9, x8, [x19, #8]
	str	x8, [x20]
	cbz	x9, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_flush_blanks
	mov	x0, x19
	bl	_flush_line
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_3
LBB0_9:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
	str	xzr, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_lines,8,3                      ; @lines
	.comm	_nblank_lines,4,2               ; @nblank_lines
	.no_dead_strip	_flush_lines
.subsections_via_symbols
