	.file	"extr_cg_servercmds.c_CG_RemoveChatEscapeChar.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CG_RemoveChatEscapeChar, @function
CG_RemoveChatEscapeChar:
.LFB0:
	.cfi_startproc
	endbr64
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	je	.L5
	lea	rdx, 1[rdi]
	xor	r8d, r8d
	xor	esi, esi
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rcx, [rdi+rsi]
	cmp	al, 25
	je	.L3
	add	r8d, 1
	mov	BYTE PTR [rcx], al
	movsx	rsi, r8d
	lea	rcx, [rdi+rsi]
.L3:
	movzx	eax, BYTE PTR [rdx]
	add	rdx, 1
	test	al, al
	jne	.L4
	mov	BYTE PTR [rcx], 0
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rcx, rdi
	mov	BYTE PTR [rcx], 0
	ret
	.cfi_endproc
.LFE0:
	.size	CG_RemoveChatEscapeChar, .-CG_RemoveChatEscapeChar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cg_servercmds.c_CG_RemoveChatEscapeChar.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_RemoveChatEscapeChar, %function
CG_RemoveChatEscapeChar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldrb	r3, [r0]	@ zero_extendqisi2
	str	lr, [sp, #-4]!
	cmp	r3, #0
	beq	.L5
	mov	ip, r0
	mov	r1, #0
	mov	r2, r0
.L4:
	cmp	r3, #25
	strbne	r3, [r2]
	addne	r1, r1, #1
	ldrb	r3, [ip, #1]!	@ zero_extendqisi2
	mov	lr, r2
	addne	r2, r0, r1
	movne	lr, r2
	cmp	r3, #0
	bne	.L4
.L2:
	mov	r3, #0
	strb	r3, [lr]
	ldr	pc, [sp], #4
.L5:
	mov	lr, r0
	b	.L2
	.size	CG_RemoveChatEscapeChar, .-CG_RemoveChatEscapeChar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
