	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_word_wrap                      ## -- Begin function word_wrap
	.p2align	4, 0x90
_word_wrap:                             ## @word_wrap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$1, %r10d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
                                        ##       Child Loop BB0_24 Depth 3
                                        ##       Child Loop BB0_27 Depth 3
                                        ##     Child Loop BB0_37 Depth 2
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r12d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	movl	$0, %eax
	cmovnel	%eax, %r9d
	xorl	%eax, %eax
	cmpb	$10, (%r13,%r11)
	sete	%al
	leal	1(%r12,%r9), %r12d
	movl	$2, %ecx
	cmovel	%ecx, %r12d
	addl	%eax, %r10d
	cmpl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	ja	LBB0_29
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
                                        ##       Child Loop BB0_24 Depth 3
                                        ##       Child Loop BB0_27 Depth 3
	cmpl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax), %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_utf8skip
	movl	%eax, %edx
	subl	%r15d, %edx
	leal	-1(%rdx), %r9d
	cmpl	$32, %edx
	jb	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	leal	(%r14,%rbx), %ecx
	notl	%ecx
	addl	%eax, %ecx
	addl	%r14d, %ecx
	jae	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-72(%rbp), %r11                 ## 8-byte Reload
	leaq	(%r11,%r13), %rax
	subq	%r15, %rax
	cmpq	$32, %rax
	jb	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	%edx, %r8d
	andl	$-32, %r8d
	leal	-32(%r8), %ecx
	movl	%ecx, %esi
	shrl	$5, %esi
	incl	%esi
	movl	%esi, %r10d
	andl	$3, %r10d
	xorl	%edi, %edi
	cmpl	$96, %ecx
	jb	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	andl	$-4, %esi
	xorl	%edi, %edi
	movl	%r14d, %ecx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ecx, %eax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	%xmm0, (%r13,%rax)
	movups	%xmm1, 16(%r13,%rax)
	leal	32(%rcx), %eax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	%xmm0, (%r13,%rax)
	movups	%xmm1, 16(%r13,%rax)
	leal	64(%rcx), %eax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	%xmm0, (%r13,%rax)
	movups	%xmm1, 16(%r13,%rax)
	leal	96(%rcx), %eax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	%xmm0, (%r13,%rax)
	movups	%xmm1, 16(%r13,%rax)
	subl	$-128, %edi
	subl	$-128, %ecx
	addl	$-4, %esi
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	testl	%r10d, %r10d
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	addl	%r14d, %edi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%edi, %eax
	movups	(%rbx,%rax), %xmm0
	movups	16(%rbx,%rax), %xmm1
	movups	%xmm0, (%r13,%rax)
	movups	%xmm1, 16(%r13,%rax)
	addl	$32, %edi
	decl	%r10d
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	addl	%r8d, %r14d
	cmpl	%edx, %r8d
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	andl	$31, %edx
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=2
	leal	-1(%rdx), %r8d
	movl	%edx, %esi
	andl	$3, %esi
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%r14,%rcx), %edi
	movzbl	(%rbx,%rdi), %eax
	movb	%al, (%r13,%rdi)
	incl	%ecx
	cmpl	%ecx, %esi
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=2
	addl	%ecx, %r14d
	subl	%ecx, %edx
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$3, %r8d
	jb	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r14d, %eax
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r13,%rax)
	leal	1(%r14), %eax
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r13,%rax)
	leal	2(%r14), %eax
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r13,%rax)
	leal	3(%r14), %eax
	movzbl	(%rbx,%rax), %ecx
	movb	%cl, (%r13,%rax)
	addl	$4, %r14d
	addl	$-4, %edx
	jne	LBB0_27
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %esi
	movb	(%rbx,%rsi), %al
	cmpb	$32, %al
	jne	LBB0_30
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r10d
	jae	LBB0_41
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$10, (%r13,%rsi)
	incl	%r14d
	incl	%r10d
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jle	LBB0_40
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	setne	%cl
	cmpl	%r15d, %r10d
	setae	%dl
	andb	%cl, %dl
	movl	%r14d, %ecx
	cmpb	$32, %al
	jne	LBB0_37
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %ecx
	testb	%dl, %dl
	jne	LBB0_37
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %ecx
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$2, %ecx
	jl	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	decl	%ecx
	cmpb	$32, (%rbx,%rcx)
	setne	%al
	orb	%dl, %al
	jne	LBB0_37
LBB0_39:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
	movb	$10, (%r13,%rax)
	incl	%ecx
	incl	%r10d
	movq	%rcx, %rsi
	movl	%ecx, %r14d
LBB0_40:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	cmpq	%rax, %rsi
	je	LBB0_44
LBB0_41:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	cmpl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	jb	LBB0_3
	jmp	LBB0_42
LBB0_7:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_43
LBB0_1:
	xorl	%r14d, %r14d
LBB0_42:
	movl	%r14d, %eax
LBB0_43:
	movb	$0, (%r13,%rax)
LBB0_44:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_word_wrap                      ; -- Begin function word_wrap
	.p2align	2
_word_wrap:                             ; @word_wrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	mov	x24, x0
	cbz	w24, LBB0_29
; %bb.1:
	mov	w28, #0
	mov	w26, #1
	str	w20, [sp, #8]                   ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
                                        ;     Child Loop BB0_21 Depth 2
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	cbz	w22, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
	cmp	w28, w24
	b.eq	LBB0_28
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	w27, w28
	add	x25, x23, x27
	mov	x0, x25
	mov	w1, #1
	bl	_utf8skip
	sub	w11, w0, w25
	sub	w9, w11, #1
	cmp	w11, #64
	b.lo	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w8, w28, w23
	mvn	w8, w8
	add	w8, w8, w0
	cmn	w28, w8
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x8, x19, x27
	sub	x8, x8, x25
	cmp	x8, #64
	b.hs	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x8, x28
	mov	x10, x11
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	w11, w8
	ldrb	w12, [x23, x11]
	strb	w12, [x19, x11]
	add	w8, w8, #1
	subs	w10, w10, #1
	b.ne	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w21, #0
	csel	w9, w9, wzr, eq
	ldrb	w10, [x19, x27]
	cmp	w10, #10
	cinc	w26, w26, eq
	add	w9, w20, w9
	mov	w10, #2
	csinc	w20, w10, w9, eq
	mov	x28, x8
	cmp	w20, w22
	b.ls	LBB0_4
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=2
	and	w12, w11, #0xffffffc0
	add	w8, w28, w12
	and	w10, w11, #0x3f
	mov	x13, x12
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	w14, w28
	add	x15, x23, x14
	ldp	q0, q1, [x15]
	ldp	q2, q3, [x15, #32]
	add	x14, x19, x14
	stp	q0, q1, [x14]
	stp	q2, q3, [x14, #32]
	add	w28, w28, #64
	subs	w13, w13, #64
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=2
	cmp	w12, w11
	b.ne	LBB0_9
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x28
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, w8
	ldrb	w10, [x23, x9]
	cmp	w10, #32
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w20, [sp, #8]                   ; 4-byte Folded Reload
	cbz	w20, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, w20
	b.hs	LBB0_27
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w10, #10
	strb	w10, [x19, x9]
	add	w8, w8, #1
	add	w26, w26, #1
	b	LBB0_27
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #1
	ldr	w20, [sp, #8]                   ; 4-byte Folded Reload
	b.lt	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #0
	ccmp	w26, w20, #0, ne
	cset	w11, hs
	cmp	w10, #32
	ccmp	w11, #0, #0, eq
	mov	x10, x8
	ldr	w13, [sp, #12]                  ; 4-byte Folded Reload
	b.eq	LBB0_24
LBB0_21:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, #2
	b.lt	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	sub	w10, w10, #1
	ldrb	w12, [x23, w10, uxtw]
	cmp	w12, #32
	cset	w12, ne
	orr	w12, w12, w11
	tbnz	w12, #0, LBB0_21
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w13, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x8
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #10
	strb	w8, [x19, w10, uxtw]
	add	w9, w10, #1
	add	w26, w26, #1
	mov	x8, x9
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, w13, sxtw
	b.eq	LBB0_32
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x8
	cmp	w8, w24
	b.lo	LBB0_2
	b	LBB0_30
LBB0_28:
	and	x8, x24, #0xffffffff
	b	LBB0_31
LBB0_29:
	mov	w8, #0
LBB0_30:
	mov	w8, w8
LBB0_31:
	strb	wzr, [x19, x8]
LBB0_32:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
