	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanchr
_cleanchr:                              ## @cleanchr
	.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, %ebx
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%r14), %r15
	jmp	LBB0_3
LBB0_1:
	leaq	_cleanchr.tmpbuf(%rip), %r15
LBB0_3:
	xorl	%eax, %eax
	testb	%bl, %bl
	js	LBB0_4
## %bb.5:
	cmpb	$31, %bl
	ja	LBB0_7
LBB0_6:
	movl	%eax, %ecx
	movb	$94, (%r15,%rcx)
	orq	$1, %rcx
	addb	$64, %bl
	addl	$2, %eax
	movb	%bl, (%r15,%rcx)
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	andb	$127, %bl
	movl	$2, %eax
	cmpb	$31, %bl
	jbe	LBB0_6
LBB0_7:
	movl	%eax, %edx
	movq	%rdx, %rcx
	orq	$1, %rcx
	cmpb	$127, %bl
	jne	LBB0_9
## %bb.8:
	movb	$94, (%r15,%rdx)
	addl	$2, %eax
	movb	$63, (%r15,%rcx)
	jmp	LBB0_10
LBB0_9:
	movb	%bl, (%r15,%rdx)
	movl	%ecx, %eax
LBB0_10:
	movl	%eax, %eax
	movb	$0, (%r15,%rax)
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	addq	%r15, %rax
	movq	%rax, (%r14)
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_cleanchr.tmpbuf,5,0 ## @cleanchr.tmpbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"M-"

	.no_dead_strip	_cleanchr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanchr
_cleanchr:                              ; @cleanchr
	.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	x21, x1
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x20, [x19]
	tbnz	w21, #7, LBB0_5
LBB0_2:
	mov	w8, #0
	cmp	w21, #31
	b.hi	LBB0_6
LBB0_3:
	mov	w9, w8
	orr	x10, x9, #0x1
	mov	w11, #94
	strb	w11, [x20, x9]
	add	w9, w21, #64
	add	w8, w8, #2
	strb	w9, [x20, x10]
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x20, _cleanchr.tmpbuf@PAGE
Lloh1:
	add	x20, x20, _cleanchr.tmpbuf@PAGEOFF
	tbz	w21, #7, LBB0_2
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcpy
	and	w21, w21, #0x7f
	mov	w8, #2
	cmp	w21, #31
	b.ls	LBB0_3
LBB0_6:
	mov	w10, w8
	orr	x9, x10, #0x1
	cmp	w21, #127
	b.ne	LBB0_8
; %bb.7:
	mov	w11, #94
	strb	w11, [x20, x10]
	add	w8, w8, #2
	mov	w10, #63
	strb	w10, [x20, x9]
	b	LBB0_9
LBB0_8:
	strb	w21, [x20, x10]
	mov	x8, x9
LBB0_9:
	add	x8, x20, w8, uxtw
	strb	wzr, [x8]
	cbz	x19, LBB0_11
; %bb.10:
	str	x8, [x19]
LBB0_11:
	mov	x0, 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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_cleanchr.tmpbuf,5,0 ; @cleanchr.tmpbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"M-"

	.no_dead_strip	_cleanchr
.subsections_via_symbols
