	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode
_encode:                                ## @encode
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_TERMP_NOBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_22
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15,%rbx), %esi
	movq	%r12, %rdi
	callq	*16(%r12)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_3
	jmp	LBB0_22
LBB0_4:
	movslq	4(%r12), %rax
	leaq	(%r14,%r14,4), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$2, %rsi
	movq	8(%r12), %rdi
	movslq	(%rdi), %rax
	cmpq	%rax, %rsi
	jb	LBB0_6
## %bb.5:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_adjbuf
LBB0_6:
	testq	%r14, %r14
	je	LBB0_20
## %bb.7:
	xorl	%ebx, %ebx
	movq	_ASCII_HYPH@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	(%r15,%rbx), %eax
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movsbl	%al, %esi
	movq	%r12, %rdi
	callq	_encode1
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_20
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %eax
	movzbl	(%r15,%rbx), %ecx
	cmpb	%cl, %al
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%cl, %edi
	callq	_isgraph
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rcx
	movl	4(%r12), %eax
	movzbl	(%r15,%rbx), %edx
	cmpl	%eax, 4(%rcx)
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$32, %dl
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ASCII_NBRSP@GOTPCREL(%rip), %rsi
	cmpb	(%rsi), %dl
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	cltq
	movq	8(%rcx), %rcx
	movb	%dl, (%rcx,%rax)
	movl	4(%r12), %eax
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%eax
	movl	%eax, 4(%r12)
	cmpb	$8, (%r15,%rbx)
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %eax
	movq	_TERMP_BACKBEFORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	movq	_TERMP_BACKAFTER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	jmp	LBB0_19
LBB0_20:
	movq	8(%r12), %rax
	movl	4(%r12), %ecx
	cmpl	%ecx, 4(%rax)
	jge	LBB0_22
## %bb.21:
	movl	%ecx, 4(%rax)
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TERMP_NOBUF,4,2                ## @TERMP_NOBUF
	.comm	_ASCII_HYPH,1,0                 ## @ASCII_HYPH
	.comm	_ASCII_NBRSP,1,0                ## @ASCII_NBRSP
	.comm	_TERMP_BACKBEFORE,4,2           ## @TERMP_BACKBEFORE
	.comm	_TERMP_BACKAFTER,4,2            ## @TERMP_BACKAFTER
	.no_dead_strip	_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode
_encode:                                ; @encode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TERMP_NOBUF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TERMP_NOBUF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	cbz	x20, LBB0_21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldrsb	w1, [x21], #1
	mov	x0, x19
	blr	x8
	subs	x20, x20, #1
	b.ne	LBB0_2
	b	LBB0_21
LBB0_3:
	ldrsw	x8, [x19, #4]
	add	x9, x20, x20, lsl #2
	add	x8, x8, x9
	add	x1, x8, #2
	ldr	x0, [x19, #8]
	ldrsw	x8, [x0]
	cmp	x1, x8
	b.lo	LBB0_5
; %bb.4:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_adjbuf
LBB0_5:
	cbz	x20, LBB0_19
; %bb.6:
Lloh3:
	adrp	x22, _ASCII_HYPH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ASCII_HYPH@GOTPAGEOFF]
Lloh5:
	adrp	x23, _ASCII_NBRSP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ASCII_NBRSP@GOTPAGEOFF]
Lloh7:
	adrp	x24, _TERMP_BACKBEFORE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TERMP_BACKBEFORE@GOTPAGEOFF]
Lloh9:
	adrp	x25, _TERMP_BACKAFTER@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TERMP_BACKAFTER@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w8, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	sxtb	w1, w8
	mov	x0, x19
	bl	_encode1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	subs	x20, x20, #1
	b.eq	LBB0_19
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	ldrb	w0, [x21]
	cmp	w8, w0
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_isgraph
	cbnz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x19, #8]
	ldr	w11, [x9, #4]
	ldr	w8, [x19, #4]
	ldrb	w10, [x21]
	cmp	w11, w8
	b.le	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w10, #32
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w11, [x23]
	cmp	w10, w11
	b.eq	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	sxtw	x8, w8
	ldr	x9, [x9, #8]
	strb	w10, [x9, x8]
	ldr	w8, [x19, #4]
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldrb	w8, [x21]
	cmp	w8, #8
	b.ne	LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_9
LBB0_19:
	ldr	x8, [x19, #8]
	ldr	w10, [x8, #4]
	ldr	w9, [x19, #4]
	cmp	w10, w9
	b.ge	LBB0_21
; %bb.20:
	str	w9, [x8, #4]
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TERMP_NOBUF,4,2                ; @TERMP_NOBUF
	.comm	_ASCII_HYPH,1,0                 ; @ASCII_HYPH
	.comm	_ASCII_NBRSP,1,0                ; @ASCII_NBRSP
	.comm	_TERMP_BACKBEFORE,4,2           ; @TERMP_BACKBEFORE
	.comm	_TERMP_BACKAFTER,4,2            ; @TERMP_BACKAFTER
	.no_dead_strip	_encode
.subsections_via_symbols
