	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preadbuffer                    ## -- Begin function preadbuffer
	.p2align	4, 0x90
_preadbuffer:                           ## @preadbuffer
	.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	_parsefile@GOTPCREL(%rip), %r14
	movq	_parsenleft@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_popstring
	movl	(%r13), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r13)
	testl	%eax, %eax
	jg	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	16(%rax), %rcx
	movl	(%r13), %edx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %edx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	$32, %eax
	jmp	LBB0_36
LBB0_7:
	movq	_EOF_NLEFT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	je	LBB0_9
## %bb.8:
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.10:
	movq	_parselleft@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jg	LBB0_13
	jmp	LBB0_11
LBB0_6:
	movq	_parsenextc@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rax)
	movsbl	(%rcx), %eax
	jmp	LBB0_36
LBB0_9:
	movq	_PEOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_36
LBB0_11:
	xorl	%eax, %eax
	callq	_preadfd
	movl	%eax, (%r15)
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_13:
	movq	_parsenextc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	cltq
	leaq	(%r12,%rax), %rbx
	movb	$0, (%r12,%rax)
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strchrnul
	cmpq	%rbx, %rax
	je	LBB0_24
## %bb.14:
	cmpb	$0, (%rax)
	jne	LBB0_22
## %bb.15:
	movq	%rax, %rcx
	incq	%rcx
	xorl	%edx, %edx
	testb	%dl, %dl
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:
	movb	%dl, (%rax)
	incq	%rax
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rcx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movzbl	(%rcx), %edx
	incq	%rcx
	testb	%dl, %dl
	jne	LBB0_17
	jmp	LBB0_18
LBB0_20:
	subl	%ebx, %eax
	addl	(%r15), %eax
	movl	%eax, (%r15)
	je	LBB0_11
## %bb.21:
	cltq
	leaq	(%r12,%rax), %rbx
	movb	$0, (%r12,%rax)
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strchrnul
LBB0_22:
	cmpq	%rbx, %rax
	je	LBB0_23
## %bb.25:
	incq	%rax
	movq	_parsenextc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %ecx
	subl	%edx, %ecx
	movl	(%r15), %edx
	subl	%ecx, %edx
	movq	%rax, %rbx
	jmp	LBB0_26
LBB0_12:
	movq	_EOF_NLEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_23:
	movq	%rax, %rbx
LBB0_24:
	movl	(%r15), %ecx
	xorl	%edx, %edx
LBB0_26:
	movl	%edx, (%r15)
	decl	%ecx
	movl	%ecx, (%r13)
	movb	(%rbx), %r15b
	movb	$0, (%rbx)
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	movq	_parsenextc@GOTPCREL(%rip), %r13
	jne	LBB0_33
## %bb.27:
	movq	_hist@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_33
## %bb.28:
	movq	(%r13), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strspn
	cmpb	$0, (%r12,%rax)
	je	LBB0_33
## %bb.29:
	movq	_whichprompt@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_30
## %bb.31:
	movq	_H_ENTER@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_30:
	movq	_H_ADD@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_history
LBB0_33:
	movq	_vflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_35
## %bb.34:
	movq	(%r13), %rdi
	callq	_out2str
	movq	_out2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flushout
LBB0_35:
	movb	%r15b, (%rbx)
	movq	(%r13), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r13)
	movsbl	(%rax), %eax
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_parsefile,8,3                  ## @parsefile
	.comm	_parsenleft,4,2                 ## @parsenleft
	.comm	_parsenextc,8,3                 ## @parsenextc
	.comm	_EOF_NLEFT,4,2                  ## @EOF_NLEFT
	.comm	_PEOF,4,2                       ## @PEOF
	.comm	_parselleft,4,2                 ## @parselleft
	.comm	_hist,8,3                       ## @hist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" \t\n"

	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_whichprompt,4,2                ## @whichprompt
	.comm	_H_ENTER,4,2                    ## @H_ENTER
	.comm	_H_ADD,4,2                      ## @H_ADD
	.comm	_INTON,4,2                      ## @INTON
	.comm	_vflag,8,3                      ## @vflag
	.comm	_out2,4,2                       ## @out2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_preadbuffer                    ; -- Begin function preadbuffer
	.p2align	2
_preadbuffer:                           ; @preadbuffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x20, _parsefile@GOTPAGE
Lloh1:
	ldr	x20, [x20, _parsefile@GOTPAGEOFF]
Lloh2:
	adrp	x22, _parsenleft@GOTPAGE
Lloh3:
	ldr	x22, [x22, _parsenleft@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_popstring
	ldr	w8, [x22]
	subs	w8, w8, #1
	str	w8, [x22]
	b.ge	LBB0_9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	ldr	w10, [x22]
	cbz	x9, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w10, #1
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x9]
	cbz	x8, LBB0_1
; %bb.5:
	mov	w0, #32
	b	LBB0_31
LBB0_6:
Lloh4:
	adrp	x25, _EOF_NLEFT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _EOF_NLEFT@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w10, w9
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
Lloh6:
	adrp	x24, _parselleft@GOTPAGE
Lloh7:
	ldr	x24, [x24, _parselleft@GOTPAGEOFF]
	ldr	w0, [x24]
	cmp	w0, #0
	b.gt	LBB0_12
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _parsenextc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _parsenextc@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x10, x9, #1
	str	x10, [x8]
	ldrsb	w0, [x9]
	b	LBB0_31
LBB0_10:
Lloh10:
	adrp	x8, _PEOF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PEOF@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_31
LBB0_11:
	bl	_preadfd
	str	w0, [x24]
	cmn	w0, #1
	b.eq	LBB0_22
LBB0_12:
Lloh13:
	adrp	x21, _parsenextc@GOTPAGE
Lloh14:
	ldr	x21, [x21, _parsenextc@GOTPAGEOFF]
	ldr	x19, [x21]
	add	x23, x19, w0, sxtw
	strb	wzr, [x23]
	mov	x0, x19
	mov	w1, #10
	bl	_strchrnul
	cmp	x0, x23
	b.eq	LBB0_24
; %bb.13:
	ldrb	w8, [x0]
	cbnz	w8, LBB0_20
; %bb.14:
	mov	w9, #0
	add	x8, x0, #1
	cbz	w9, LBB0_16
LBB0_15:
	strb	w9, [x0], #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x23
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldrb	w9, [x8], #1
	cbnz	w9, LBB0_15
	b	LBB0_16
LBB0_18:
	ldr	w8, [x24]
	sub	w9, w0, w23
	adds	w8, w8, w9
	str	w8, [x24]
	b.eq	LBB0_11
; %bb.19:
	add	x23, x19, w8, sxtw
	strb	wzr, [x23]
	mov	x0, x19
	mov	w1, #10
	bl	_strchrnul
LBB0_20:
	cmp	x0, x23
	b.eq	LBB0_23
; %bb.21:
	add	x23, x0, #1
	ldr	w8, [x21]
	ldr	w9, [x24]
	sub	w8, w23, w8
	sub	w9, w9, w8
	b	LBB0_25
LBB0_22:
	ldr	w8, [x25]
	str	w8, [x22]
	str	w8, [x24]
	b	LBB0_10
LBB0_23:
	mov	x23, x0
LBB0_24:
	mov	w9, #0
	ldr	w8, [x24]
LBB0_25:
	str	w9, [x24]
	sub	w8, w8, #1
	str	w8, [x22]
	ldrb	w22, [x23]
	strb	wzr, [x23]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh15:
	adrp	x9, _hist@GOTPAGE
Lloh16:
	ldr	x9, [x9, _hist@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x9]
	cmp	x8, #0
	ccmp	x19, #0, #4, eq
	b.eq	LBB0_28
; %bb.26:
	ldr	x20, [x21]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strspn
	ldrb	w8, [x20, x0]
	cbz	w8, LBB0_28
; %bb.27:
Lloh20:
	adrp	x8, _whichprompt@GOTPAGE
Lloh21:
	ldr	x8, [x8, _whichprompt@GOTPAGEOFF]
Lloh22:
	adrp	x9, _H_ENTER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _H_ENTER@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x10, _H_ADD@GOTPAGE
Lloh26:
	ldr	x10, [x10, _H_ADD@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	mov	x3, x20
	bl	_history
LBB0_28:
Lloh27:
	adrp	x8, _vflag@GOTPAGE
Lloh28:
	ldr	x8, [x8, _vflag@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cbz	x8, LBB0_30
; %bb.29:
	ldr	x0, [x21]
	bl	_out2str
Lloh30:
	adrp	x8, _out2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _out2@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_flushout
LBB0_30:
	strb	w22, [x23]
	ldr	x8, [x21]
	add	x9, x8, #1
	str	x9, [x21]
	ldrsb	w0, [x8]
LBB0_31:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_parsefile,8,3                  ; @parsefile
	.comm	_parsenleft,4,2                 ; @parsenleft
	.comm	_parsenextc,8,3                 ; @parsenextc
	.comm	_EOF_NLEFT,4,2                  ; @EOF_NLEFT
	.comm	_PEOF,4,2                       ; @PEOF
	.comm	_parselleft,4,2                 ; @parselleft
	.comm	_hist,8,3                       ; @hist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" \t\n"

	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_whichprompt,4,2                ; @whichprompt
	.comm	_H_ENTER,4,2                    ; @H_ENTER
	.comm	_H_ADD,4,2                      ; @H_ADD
	.comm	_INTON,4,2                      ; @INTON
	.comm	_vflag,8,3                      ; @vflag
	.comm	_out2,4,2                       ; @out2
.subsections_via_symbols
