	.file	"extr_be_ai_chat.c_StringReplaceWords.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	StringReplaceWords
	.type	StringReplaceWords, @function
StringReplaceWords:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR qfalse[rip]
	call	StringContainsWord@PLT
	test	rax, rax
	je	.L1
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR qfalse[rip]
	mov	rsi, r12
	mov	rdi, r14
	call	StringContainsWord@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	rbx, rbp
	ja	.L6
	mov	rdi, r12
	call	strlen@PLT
	cdqe
	add	rax, rbx
	cmp	rbp, rax
	jb	.L8
.L6:
	mov	edx, DWORD PTR qfalse[rip]
	lea	rdi, 1[rbx]
	mov	rsi, r12
	call	StringContainsWord@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L5
.L3:
	mov	rdi, r13
	call	strlen@PLT
	movsx	rdi, eax
	add	rdi, rbp
	call	strlen@PLT
	mov	rdi, r13
	mov	ebx, eax
	call	strlen@PLT
	mov	rdi, r12
	movsx	r15, eax
	call	strlen@PLT
	add	r15, rbp
	lea	edx, 1[rbx]
	movsx	rdi, eax
	mov	rsi, r15
	add	rdi, rbp
	call	memmove@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, eax
	call	Com_Memcpy@PLT
.L8:
	mov	rdi, r12
	mov	r15d, DWORD PTR qfalse[rip]
	call	strlen@PLT
	mov	rsi, r13
	movsx	rdi, eax
	mov	edx, r15d
	add	rdi, rbp
	call	StringContainsWord@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L7
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	StringReplaceWords, .-StringReplaceWords
	.comm	qfalse,4,4
	.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_be_ai_chat.c_StringReplaceWords.c"
	.text
	.align	2
	.global	StringReplaceWords
	.syntax unified
	.arm
	.fpu softvfp
	.type	StringReplaceWords, %function
StringReplaceWords:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L17
	mov	r6, r2
	ldr	r2, [r7]
	mov	r9, r0
	mov	r8, r1
	bl	StringContainsWord
	subs	r5, r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r1, r6
	mov	r0, r9
	ldr	r2, [r7]
	bl	StringContainsWord
	subs	r4, r0, #0
	beq	.L3
.L6:
	cmp	r5, r4
	bcc	.L4
	mov	r0, r6
	bl	strlen
	add	r3, r4, r0
	cmp	r5, r3
	bcc	.L5
.L4:
	add	r0, r4, #1
	mov	r1, r6
	ldr	r2, [r7]
	bl	StringContainsWord
	subs	r4, r0, #0
	bne	.L6
.L3:
	mov	r0, r6
	bl	strlen
	mov	r10, r0
	mov	r0, r8
	bl	strlen
	add	r4, r5, r0
	mov	r0, r4
	bl	strlen
	mov	r2, r0
	mov	r1, r4
	add	r2, r2, #1
	add	r0, r5, r10
	bl	memmove
	mov	r0, r6
	bl	strlen
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	Com_Memcpy
	mov	r0, r6
	bl	strlen
.L5:
	add	r0, r5, r0
	mov	r1, r8
	ldr	r2, [r7]
	bl	StringContainsWord
	subs	r5, r0, #0
	bne	.L2
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	.align	2
.L17:
	.word	qfalse
	.size	StringReplaceWords, .-StringReplaceWords
	.comm	qfalse,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
