	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parsemsg_remove_unsafe_characters
_parsemsg_remove_unsafe_characters:     ## @parsemsg_remove_unsafe_characters
	.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	%rsi, %r14
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_18
## %bb.1:
	leaq	(%r14,%rdx), %r12
	addq	$-4, %r12
	cmpq	%r14, %r12
	jbe	LBB0_18
## %bb.2:
	movq	%rdi, %r15
	incq	%r15
	movq	_mask_C1@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %ebx
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	$-128, %al
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$-97, %al
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$127, %ebx
	movw	$11597, (%r14)                  ## imm = 0x2D4D
	addq	$2, %r14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_isascii
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_iscntrl
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$9, %bl
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$10, %bl
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$32, (%r14)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	%bl, (%r14)
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r15), %eax
	testb	%al, %al
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	%r12, %r14
	jb	LBB0_3
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$9, (%r14)
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$94, (%r14)
	xorb	$64, %bl
	movb	%bl, 1(%r14)
	addq	$2, %r14
	jmp	LBB0_16
LBB0_18:
	movb	$0, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mask_C1,8,3                    ## @mask_C1
	.no_dead_strip	_parsemsg_remove_unsafe_characters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parsemsg_remove_unsafe_characters
_parsemsg_remove_unsafe_characters:     ; @parsemsg_remove_unsafe_characters
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	add	x8, x1, x2
	sub	x21, x8, #4
	ldrb	w20, [x0]
	cmp	w20, #0
	ccmp	x21, x1, #0, ne
	b.hi	LBB0_2
LBB0_1:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x22, x0, #1
Lloh0:
	adrp	x23, _mask_C1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mask_C1@GOTPAGEOFF]
	mov	w24, #9
	mov	w25, #32
	mov	w26, #94
	mov	w27, #11597
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	w20, #7, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #159
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w20, w20, #0x7f
	strh	w27, [x19], #2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_isascii
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_iscntrl
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w20, #0xff
	cmp	w8, #9
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #10
	b.ne	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	strb	w25, [x19], #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w20, [x19], #1
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w20, [x22], #1
	cbz	w20, LBB0_1
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x19, x21
	b.lo	LBB0_3
	b	LBB0_1
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w24, [x19], #1
	b	LBB0_13
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w26, [x19]
	eor	w8, w20, #0x40
	strb	w8, [x19, #1]
	add	x19, x19, #2
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mask_C1,8,3                    ; @mask_C1
	.no_dead_strip	_parsemsg_remove_unsafe_characters
.subsections_via_symbols
