	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_print_autowrap                 ## -- Begin function print_autowrap
	.p2align	4, 0x90
_print_autowrap:                        ## @print_autowrap
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %r14
	callq	_strcpy
	movq	%r15, %rdi
	callq	_strlen
	movl	%ebx, %edx
	subl	%r13d, %edx
	subl	%r13d, %edx
	cmpl	%edx, %eax
	jle	LBB0_22
## %bb.1:
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	cmpb	$0, (%r15)
	je	LBB0_20
## %bb.2:
	movl	$1, %ebx
	movl	%r14d, %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	%cl, %al
	addl	%eax, %r12d
	cmpb	$0, (%r15)
	je	LBB0_20
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strpbrk
	testq	%rax, %rax
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$10, (%rax)
	movl	$0, %ecx
	cmoveq	%rax, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	incq	%r15
	movb	$0, (%rax)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	subl	%r13d, %r12d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	cmpl	%r12d, %eax
	jle	LBB0_7
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	cmpl	$3, %eax
	jg	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	incl	%eax
	cmpl	%r12d, %eax
	jle	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movslq	%r14d, %rcx
	subq	%r15, %rcx
	addq	%rax, %rcx
	movslq	%r12d, %rax
	cmpq	%rax, %rcx
	jg	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_wmove
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_waddstr
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_getyx
	incl	%r13d
	xorl	%eax, %eax
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	setne	%cl
	cmovnel	%r14d, %r13d
	testq	%r15, %r15
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	cmpb	$32, (%r15)
	jne	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, 1(%r15)
	leaq	1(%r15), %r15
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movl	$1, %ebx
	jmp	LBB0_19
LBB0_22:
	subl	%eax, %ebx
	movl	%ebx, %edx
	shrl	$31, %edx
	addl	%ebx, %edx
	sarl	%edx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_wmove
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_waddstr
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LEN,4,2                    ## @MAX_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_print_autowrap                 ; -- Begin function print_autowrap
	.p2align	2
_print_autowrap:                        ; @print_autowrap
	.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	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, 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, _MAX_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	mov	x0, x25
	bl	_strcpy
	mov	x0, x25
	bl	_strlen
	sub	w8, w22, w21, lsl #1
	cmp	w0, w8
	b.le	LBB0_20
; %bb.1:
	ldrb	w8, [x25]
	cbz	w8, LBB0_21
; %bb.2:
	mov	w28, #1
	mov	x24, x21
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w28, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x26]
	mov	x25, x26
	cbz	w8, LBB0_21
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x25
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strpbrk
	mov	x26, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x26]
	cmp	w8, #10
	csel	x27, x26, xzr, eq
	strb	wzr, [x26], #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w23, w22, w24
	mov	x0, x25
	bl	_strlen
	cmp	w0, w23
	b.le	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	mov	x24, x21
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_wmove
	mov	x0, x19
	mov	x1, x25
	bl	_waddstr
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_getyx
	cmp	x27, #0
	cinc	w20, w20, ne
	csinc	w24, w21, w24, ne
	cbz	x26, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x26]
	cmp	w8, #32
	b.ne	LBB0_3
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x26, #1]!
	cmp	w8, #32
	b.eq	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	mov	w28, #1
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w28, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #3
	b.gt	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	x26, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w28, w0, #1
	mov	x0, x26
	bl	_strlen
	add	w8, w0, w28
	cmp	w8, w23
	b.le	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strpbrk
	cbz	x0, LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w28
	sub	x8, x8, x26
	add	x8, x8, x0
	cmp	x8, w23, sxtw
	b.gt	LBB0_9
	b	LBB0_10
LBB0_20:
	sub	w8, w22, w0
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x19
	mov	x1, x20
	bl	_wmove
	mov	x0, x19
	mov	x1, x25
	bl	_waddstr
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	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_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LEN,4,2                    ; @MAX_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n "

.subsections_via_symbols
