	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fold                           ## -- Begin function fold
	.p2align	4, 0x90
_fold:                                  ## @fold
	.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
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_getwchar
	movq	_WEOF@GOTPCREL(%rip), %r12
	cmpb	(%r12), %al
	jne	LBB0_1
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r13d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_fold.buf(%rip), %rax
	movslq	%ebx, %rcx
	incl	%ebx
	movb	%r13b, (%rax,%rcx)
	xorl	%eax, %eax
	callq	_getwchar
	movl	%eax, %r13d
	cmpb	(%r12), %al
	je	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	cmpb	$10, %r13b
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_fold.buf(%rip), %rdx
	leaq	l_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_wprintf
	xorl	%eax, %eax
	callq	_getwchar
	cmpb	(%r12), %al
	je	LBB0_24
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	cmpb	$10, %al
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%r13b, %r15d
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_newpos
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_sflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r15d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %r12
	movq	%rcx, %r14
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	-1(%r12), %r15
	movq	_fold.buf(%rip), %rax
	movl	%r15d, %ecx
	movsbl	(%rax,%rcx), %edi
	callq	_iswblank
	leaq	1(%r14), %rcx
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_sflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_fold.buf(%rip), %rdx
	leaq	l_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_wprintf
	movq	_fold.buf(%rip), %rdi
	movslq	%ebx, %rsi
	addq	%rdi, %rsi
	subq	%r14, %rsi
	movl	%r14d, %edx
	callq	_wmemmove
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_fold.buf(%rip), %rcx
	movsbl	(%rcx,%rbx), %esi
	movl	%eax, %edi
	callq	_newpos
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_fold.buf(%rip), %rdx
	leaq	l_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_wprintf
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_WEOF@GOTPCREL(%rip), %r12
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_newpos
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movl	_fold.buf_max(%rip), %esi
	cmpl	%esi, %ebx
	jl	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LINE_MAX@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movl	%esi, _fold.buf_max(%rip)
	movq	_fold.buf(%rip), %rdi
	callq	_realloc
	movq	%rax, _fold.buf(%rip)
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
	jmp	LBB0_22
LBB0_23:
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.26:
	movq	_fold.buf(%rip), %rdx
	leaq	l_.str.2(%rip), %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fold.buf,8,3    ## @fold.buf
.zerofill __DATA,__bss,_fold.buf_max,4,2 ## @fold.buf_max
	.comm	_WEOF,1,0                       ## @WEOF
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	37                              ## 0x25
	.long	46                              ## 0x2e
	.long	42                              ## 0x2a
	.long	108                             ## 0x6c
	.long	115                             ## 0x73
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.comm	_sflag,8,3                      ## @sflag
	.comm	_LINE_MAX,8,3                   ## @LINE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"realloc()"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.2
l_.str.2:
	.long	37                              ## 0x25
	.long	46                              ## 0x2e
	.long	42                              ## 0x2a
	.long	108                             ## 0x6c
	.long	115                             ## 0x73
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fold                           ; -- Begin function fold
	.p2align	2
_fold:                                  ; @fold
	.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
	mov	x19, x0
	bl	_getwchar
Lloh0:
	adrp	x26, _WEOF@GOTPAGE
Lloh1:
	ldr	x26, [x26, _WEOF@GOTPAGEOFF]
	ldrb	w8, [x26]
	cmp	w8, w0, uxtb
	b.ne	LBB0_2
LBB0_1:
	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_2:
	mov	x22, x0
	mov	w25, #0
	mov	w24, #0
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	adrp	x27, _fold.buf@PAGE
	adrp	x21, _fold.buf_max@PAGE
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w23, #1
	ldr	x8, [x27, _fold.buf@PAGEOFF]
	strb	w22, [x8, w23, sxtw]
	bl	_getwchar
	mov	x22, x0
	ldrb	w8, [x26]
	cmp	w8, w0, uxtb
	b.eq	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	and	w8, w22, #0xff
	mov	x23, x24
	cmp	w8, #10
	b.ne	LBB0_8
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x27, _fold.buf@PAGEOFF]
	mov	x0, x20
	mov	x1, x23
	bl	_wprintf
	bl	_getwchar
	ldrb	w8, [x26]
	cmp	w8, w0, uxtb
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x22, x0
	mov	w23, #0
	cmp	w0, #10
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x23
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w24, w22
	mov	x0, x25
	mov	x1, x24
	bl	_newpos
	cmp	w0, w19
	b.le	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _sflag@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sflag@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	mov	w28, w23
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x25, x8
	add	x8, x28, x8
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	sub	x8, x8, #1
	ldr	x9, [x27, _fold.buf@PAGEOFF]
	ldrsb	w0, [x9, w8, uxtw]
	bl	_iswblank
	sub	x8, x25, #1
	cbz	w0, LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w28, w25
Lloh7:
	adrp	x9, _sflag@GOTPAGE
Lloh8:
	ldr	x9, [x9, _sflag@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x27, _fold.buf@PAGEOFF]
	mov	x0, x20
	mov	x1, x23
	bl	_wprintf
	mov	w23, #0
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x24
	bl	_newpos
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	w8, [x21, _fold.buf_max@PAGEOFF]
	cmp	w23, w8
	b.lt	LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x9, _LINE_MAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LINE_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	add	w1, w8, w9
	str	w1, [x21, _fold.buf_max@PAGEOFF]
	ldr	x0, [x27, _fold.buf@PAGEOFF]
	bl	_realloc
	str	x0, [x27, _fold.buf@PAGEOFF]
	cbnz	x0, LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w28, w25
	ldr	x2, [x27, _fold.buf@PAGEOFF]
	mov	x0, x20
	bl	_wprintf
	ldr	x0, [x27, _fold.buf@PAGEOFF]
	add	x8, x0, w23, sxtw
	add	x1, x8, x25
	neg	x23, x25
	mov	x2, x23
	bl	_wmemmove
	cmp	w23, #0
	b.le	LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	mov	w0, #0
LBB0_22:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27, _fold.buf@PAGEOFF]
	ldrsb	w1, [x8, x28]
	bl	_newpos
	add	x28, x28, #1
	cmn	x25, x28
	b.ne	LBB0_22
	b	LBB0_16
LBB0_23:
	cbz	w24, LBB0_1
; %bb.24:
	ldr	x2, [x27, _fold.buf@PAGEOFF]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x24
	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	_wprintf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fold.buf,8,3    ; @fold.buf
.zerofill __DATA,__bss,_fold.buf_max,4,2 ; @fold.buf_max
	.comm	_WEOF,1,0                       ; @WEOF
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	37                              ; 0x25
	.long	46                              ; 0x2e
	.long	42                              ; 0x2a
	.long	108                             ; 0x6c
	.long	115                             ; 0x73
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.comm	_sflag,8,3                      ; @sflag
	.comm	_LINE_MAX,8,3                   ; @LINE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"realloc()"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.2
l_.str.2:
	.long	37                              ; 0x25
	.long	46                              ; 0x2e
	.long	42                              ; 0x2a
	.long	108                             ; 0x6c
	.long	115                             ; 0x73
	.long	0                               ; 0x0

.subsections_via_symbols
