	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode1
_encode1:                               ## @encode1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_TERMP_NOBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.29:
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	4(%rbx), %esi
	addl	$7, %esi
	movq	24(%rbx), %rdi
	cmpl	(%rdi), %esi
	jl	LBB0_3
## %bb.2:
	callq	_adjbuf
LBB0_3:
	movq	_ASCII_HYPH@GOTPCREL(%rip), %r15
	cmpl	$127, %r14d
	jg	LBB0_7
## %bb.4:
	cmpl	%r14d, (%r15)
	je	LBB0_7
## %bb.5:
	movl	%r14d, %edi
	callq	_isgraph
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	16(%rbx), %rax
	shlq	$2, %rax
	addq	8(%rbx), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_TERMFONT_NONE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ecx
	movl	(%rbx), %edx
	movq	_TERMP_BACKBEFORE@GOTPCREL(%rip), %r8
	movl	(%r8), %esi
	testl	%edx, %esi
	je	LBB0_14
## %bb.9:
	movq	24(%rbx), %rax
	movq	8(%rax), %r9
	movslq	4(%rbx), %rdi
	movb	-1(%r9,%rdi), %al
	cmpb	$32, %al
	je	LBB0_11
## %bb.10:
	cmpb	$9, %al
	jne	LBB0_12
LBB0_11:
	decq	%rdi
	movl	%edi, 4(%rbx)
	jmp	LBB0_13
LBB0_12:
	leal	1(%rdi), %eax
	movl	%eax, 4(%rbx)
	movb	$8, (%r9,%rdi)
	movl	(%r8), %esi
	movl	(%rbx), %edx
LBB0_13:
	notl	%esi
	andl	%edx, %esi
	movl	%esi, (%rbx)
LBB0_14:
	movq	_TERMFONT_UNDER@GOTPCREL(%rip), %rax
	movq	_TERMFONT_BI@GOTPCREL(%rip), %rdx
	cmpl	(%rax), %ecx
	je	LBB0_16
## %bb.15:
	movl	(%rdx), %eax
	cmpl	%eax, %ecx
	jne	LBB0_17
LBB0_16:
	movq	24(%rbx), %rax
	movq	8(%rax), %rax
	movslq	4(%rbx), %rsi
	leal	1(%rsi), %edi
	movl	%edi, 4(%rbx)
	movb	$95, (%rax,%rsi)
	movq	24(%rbx), %rax
	movq	8(%rax), %rax
	movslq	4(%rbx), %rsi
	leal	1(%rsi), %edi
	movl	%edi, 4(%rbx)
	movb	$8, (%rax,%rsi)
	movl	(%rdx), %eax
LBB0_17:
	movq	_TERMFONT_BOLD@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_19
## %bb.18:
	cmpl	%eax, %ecx
	jne	LBB0_20
LBB0_19:
	cmpl	%r14d, (%r15)
	movl	$45, %eax
	cmovnel	%r14d, %eax
	movq	24(%rbx), %rcx
	movq	8(%rcx), %rcx
	movslq	4(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%rbx)
	movb	%al, (%rcx,%rdx)
	movq	24(%rbx), %rax
	movq	8(%rax), %rax
	movslq	4(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 4(%rbx)
	movb	$8, (%rax,%rcx)
LBB0_20:
	movq	24(%rbx), %rcx
	movl	16(%rcx), %edx
	movl	4(%rbx), %esi
	cmpl	%esi, %edx
	jle	LBB0_23
## %bb.21:
	cmpl	$32, %r14d
	je	LBB0_24
## %bb.22:
	movq	_ASCII_NBRSP@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_24
LBB0_23:
	movslq	%esi, %rax
	movq	8(%rcx), %rcx
	movb	%r14b, (%rcx,%rax)
	movq	24(%rbx), %rcx
	movl	16(%rcx), %edx
	movl	4(%rbx), %esi
LBB0_24:
	leal	1(%rsi), %eax
	movl	%eax, 4(%rbx)
	cmpl	%esi, %edx
	jg	LBB0_26
## %bb.25:
	movl	%eax, 16(%rcx)
LBB0_26:
	movl	(%rbx), %eax
	movq	_TERMP_BACKAFTER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.27:
	orl	(%r8), %eax
	movl	%eax, (%rbx)
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TERMP_NOBUF,4,2                ## @TERMP_NOBUF
	.comm	_ASCII_HYPH,4,2                 ## @ASCII_HYPH
	.comm	_TERMFONT_NONE,4,2              ## @TERMFONT_NONE
	.comm	_TERMP_BACKBEFORE,4,2           ## @TERMP_BACKBEFORE
	.comm	_TERMFONT_UNDER,4,2             ## @TERMFONT_UNDER
	.comm	_TERMFONT_BI,4,2                ## @TERMFONT_BI
	.comm	_TERMFONT_BOLD,4,2              ## @TERMFONT_BOLD
	.comm	_ASCII_NBRSP,4,2                ## @ASCII_NBRSP
	.comm	_TERMP_BACKAFTER,4,2            ## @TERMP_BACKAFTER
	.no_dead_strip	_encode1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode1
_encode1:                               ; @encode1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, 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_2
; %bb.1:
	ldr	x2, [x19, #32]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	ldr	w8, [x19, #4]
	add	w1, w8, #7
	ldr	x0, [x19, #24]
	ldr	w8, [x0]
	cmp	w1, w8
	b.lt	LBB0_4
; %bb.3:
	bl	_adjbuf
LBB0_4:
Lloh3:
	adrp	x21, _ASCII_HYPH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ASCII_HYPH@GOTPAGEOFF]
	cmp	w20, #127
	b.gt	LBB0_7
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_isgraph
	cbz	x0, LBB0_8
LBB0_7:
	ldp	x8, x9, [x19, #8]
	add	x8, x8, x9, lsl #2
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _TERMFONT_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TERMFONT_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x8]
	ldr	w10, [x19]
Lloh7:
	adrp	x8, _TERMP_BACKBEFORE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TERMP_BACKBEFORE@GOTPAGEOFF]
	ldr	w11, [x8]
	tst	w11, w10
	b.eq	LBB0_14
; %bb.10:
	ldr	x12, [x19, #24]
	ldr	x12, [x12, #8]
	ldrsw	x13, [x19, #4]
	sub	x14, x13, #1
	ldrb	w15, [x12, x14]
	cmp	w15, #32
	ccmp	w15, #9, #4, ne
	b.ne	LBB0_12
; %bb.11:
	str	w14, [x19, #4]
	b	LBB0_13
LBB0_12:
	add	w10, w13, #1
	str	w10, [x19, #4]
	mov	w10, #8
	strb	w10, [x12, x13]
	ldr	w11, [x8]
	ldr	w10, [x19]
LBB0_13:
	bic	w10, w10, w11
	str	w10, [x19]
LBB0_14:
Lloh9:
	adrp	x10, _TERMFONT_UNDER@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TERMFONT_UNDER@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x10]
Lloh12:
	adrp	x10, _TERMFONT_BI@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TERMFONT_BI@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w9, w12
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_16
; %bb.15:
	ldr	x11, [x19, #24]
	ldr	x11, [x11, #8]
	ldrsw	x12, [x19, #4]
	add	w13, w12, #1
	str	w13, [x19, #4]
	mov	w13, #95
	strb	w13, [x11, x12]
	ldr	x11, [x19, #24]
	ldr	x11, [x11, #8]
	ldrsw	x12, [x19, #4]
	add	w13, w12, #1
	str	w13, [x19, #4]
	mov	w13, #8
	strb	w13, [x11, x12]
	ldr	w11, [x10]
LBB0_16:
Lloh14:
	adrp	x10, _TERMFONT_BOLD@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TERMFONT_BOLD@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_18
; %bb.17:
	ldr	w9, [x21]
	mov	w10, #45
	cmp	w9, w20
	csel	w9, w10, w20, eq
	ldr	x10, [x19, #24]
	ldr	x10, [x10, #8]
	ldrsw	x11, [x19, #4]
	add	w12, w11, #1
	str	w12, [x19, #4]
	strb	w9, [x10, x11]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	ldrsw	x10, [x19, #4]
	add	w11, w10, #1
	str	w11, [x19, #4]
	mov	w11, #8
	strb	w11, [x9, x10]
LBB0_18:
	ldr	x9, [x19, #24]
	ldr	w10, [x9, #16]
	ldr	w11, [x19, #4]
	cmp	w10, w11
	b.le	LBB0_21
; %bb.19:
	cmp	w20, #32
	b.eq	LBB0_22
; %bb.20:
Lloh17:
	adrp	x12, _ASCII_NBRSP@GOTPAGE
Lloh18:
	ldr	x12, [x12, _ASCII_NBRSP@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	cmp	w12, w20
	b.eq	LBB0_22
LBB0_21:
	sxtw	x10, w11
	ldr	x9, [x9, #8]
	strb	w20, [x9, x10]
	ldr	x9, [x19, #24]
	ldr	w10, [x9, #16]
	ldr	w11, [x19, #4]
LBB0_22:
	add	w12, w11, #1
	str	w12, [x19, #4]
	cmp	w10, w11
	b.gt	LBB0_24
; %bb.23:
	str	w12, [x9, #16]
LBB0_24:
	ldr	w10, [x19]
Lloh20:
	adrp	x9, _TERMP_BACKAFTER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TERMP_BACKAFTER@GOTPAGEOFF]
	ldr	w11, [x9]
	tst	w11, w10
	b.eq	LBB0_26
; %bb.25:
	ldr	w8, [x8]
	orr	w8, w8, w10
	str	w8, [x19]
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TERMP_NOBUF,4,2                ; @TERMP_NOBUF
	.comm	_ASCII_HYPH,4,2                 ; @ASCII_HYPH
	.comm	_TERMFONT_NONE,4,2              ; @TERMFONT_NONE
	.comm	_TERMP_BACKBEFORE,4,2           ; @TERMP_BACKBEFORE
	.comm	_TERMFONT_UNDER,4,2             ; @TERMFONT_UNDER
	.comm	_TERMFONT_BI,4,2                ; @TERMFONT_BI
	.comm	_TERMFONT_BOLD,4,2              ; @TERMFONT_BOLD
	.comm	_ASCII_NBRSP,4,2                ; @ASCII_NBRSP
	.comm	_TERMP_BACKAFTER,4,2            ; @TERMP_BACKAFTER
	.no_dead_strip	_encode1
.subsections_via_symbols
