	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_add_wrapped_text        ## -- Begin function strbuf_add_wrapped_text
	.p2align	4, 0x90
_strbuf_add_wrapped_text:               ## @strbuf_add_wrapped_text
	.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
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_2
## %bb.1:
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	negl	%r13d
	cmovsl	%edx, %r13d
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%edx, %edx
	movl	$0, %r12d
	cmovsq	%rdi, %r12
	movq	%rdi, %r15
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	addq	-48(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_display_mode_esc_sequence_len
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %rax
	movzbl	(%rax), %r14d
	testb	%r14b, %r14b
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movsbl	%r14b, %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_26
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	cmpl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	testq	%r12, %r12
	je	LBB0_11
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movsbl	(%r12), %edi
	callq	_isspace
	movslq	%eax, %r15
	addq	%r12, %r15
	movq	%r15, -48(%rbp)
	xorl	%r12d, %r12d
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %rdx
	testb	%r14b, %r14b
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%r15, %rdx
	je	LBB0_31
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	testq	%r12, %r12
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_strbuf_addchars
	movq	-48(%rbp), %rdx
	movq	%r15, %r12
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	subl	%r12d, %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strbuf_add
	testb	%r14b, %r14b
	je	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %r12
	cmpb	$10, %r14b
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$9, %r14b
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=2
	orl	$7, %r13d
	movq	%r12, %rax
	jmp	LBB0_25
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=2
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_utf8_width
	cmpq	$0, -48(%rbp)
	je	LBB0_3
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=2
	addl	%eax, %r13d
	movq	-48(%rbp), %rdi
	jmp	LBB0_6
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	movzbl	1(%r12), %eax
	incq	%r12
	cmpb	$10, %al
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	jmp	LBB0_22
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rax
	jmp	LBB0_25
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=2
	incl	%r13d
	incq	-48(%rbp)
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	-48(%rbp), %rdi
	jmp	LBB0_6
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=2
	movsbl	%al, %edi
	callq	_isalnum
	testl	%eax, %eax
	je	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_strbuf_addch
	movq	-48(%rbp), %rax
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=2
	incl	%r13d
	incq	%rax
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rdi
	jmp	LBB0_6
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -48(%rbp)
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_setlen
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	-48(%rbp), %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_4
LBB0_31:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strbuf_add_indented_text       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strbuf_add_wrapped_text        ; -- Begin function strbuf_add_wrapped_text
	.p2align	2
_strbuf_add_wrapped_text:               ; @strbuf_add_wrapped_text
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x26, x3
	mov	x27, x2
	mov	x23, x0
	str	x1, [sp, #24]
	cmp	w4, #1
	b.lt	LBB0_28
; %bb.1:
	mov	x21, x4
	ldr	x8, [x23]
	stp	x8, x1, [sp, #8]                ; 16-byte Folded Spill
	cmp	w27, #0
	cneg	w19, w27, mi
	mov	w28, #1
	mov	x0, x1
	str	w19, [sp, #4]                   ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cmp	w27, #0
	csel	x25, x0, xzr, lt
	mov	x24, x0
	mov	x20, x27
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [sp, #24]
	add	x0, x8, x0
	str	x0, [sp, #24]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_display_mode_esc_sequence_len
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [sp, #24]
	ldrb	w22, [x8]
	cbz	w22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	sxtb	w0, w22
	bl	_isspace
	cbz	w0, LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w19, w21
	b.le	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	cbz	x25, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	mov	w1, #10
	bl	_strbuf_addch
	ldrsb	w0, [x25]
	bl	_isspace
	add	x24, x25, w0, sxtw
	str	x24, [sp, #24]
	mov	x19, x26
	mov	x20, x26
	mov	x25, #0
	mov	x0, x24
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [sp, #24]
	cmp	w22, #0
	ccmp	x8, x24, #0, eq
	b.eq	LBB0_27
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=2
	cbnz	x25, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	mov	w1, #32
	mov	x2, x20
	bl	_strbuf_addchars
	ldr	x8, [sp, #24]
	mov	x25, x24
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=2
	sub	w2, w8, w25
	mov	x0, x23
	mov	x1, x25
	bl	_strbuf_add
	cbz	w22, LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [sp, #24]
	cmp	w22, #10
	b.eq	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=2
	orr	w9, w19, #0x7
	cmp	w22, #9
	csel	w19, w19, w9, ne
	mov	x25, x8
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w19, w19, #1
	b	LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=2
	cbz	w28, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=2
	add	x0, sp, #24
	mov	x1, #0
	bl	_utf8_width
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_26
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=2
	add	w19, w19, w0
	ldr	x0, [sp, #24]
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=2
	ldrb	w9, [x8, #1]!
	mov	x25, x8
	cmp	w9, #10
	b.ne	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	mov	w1, #10
	bl	_strbuf_addch
	b	LBB0_9
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w19, w19, #1
	ldr	x8, [sp, #24]
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x8, x8, #1
	str	x8, [sp, #24]
	mov	x0, x8
	b	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=2
	sxtb	w0, w9
	bl	_isalnum
	cbz	w0, LBB0_9
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x23
	mov	w1, #32
	bl	_strbuf_addch
	ldr	x8, [sp, #24]
	b	LBB0_16
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x1, x8, [sp, #8]                ; 16-byte Folded Reload
	str	x8, [sp, #24]
	mov	x0, x23
	bl	_strbuf_setlen
	mov	w28, #0
	ldr	x0, [sp, #24]
	ldr	w19, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_2
LBB0_27:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_28:
	mov	x0, x23
	mov	x2, x27
	mov	x3, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_strbuf_add_indented_text
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
