	.file	"extr_ai_chat.c_BotChat_EnterGame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[invalid var]"
.LC1:
	.string	"game_enter"
	.text
	.p2align 4
	.globl	BotChat_EnterGame
	.type	BotChat_EnterGame, @function
BotChat_EnterGame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR bot_nochat[rip], 0
	je	.L2
.L14:
	mov	eax, DWORD PTR qfalse[rip]
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, QWORD PTR [rdi]
	xor	eax, eax
	mov	rbx, rdi
	call	FloatTime@PLT
	sub	rax, QWORD PTR TIME_BETWEENCHATTING[rip]
	cmp	rbp, rax
	jg	.L14
	xor	eax, eax
	call	TeamPlayIsOn@PLT
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR GT_TOURNAMENT[rip]
	cmp	QWORD PTR gametype[rip], rax
	je	.L14
	mov	esi, DWORD PTR CHARACTERISTIC_CHAT_ENTEREXITGAME[rip]
	mov	edi, DWORD PTR 16[rbx]
	mov	ecx, 1
	xor	edx, edx
	call	trap_Characteristic_BFloat@PLT
	mov	esi, DWORD PTR bot_fastchat[rip]
	movss	DWORD PTR 12[rsp], xmm0
	test	esi, esi
	jne	.L7
	xor	eax, eax
	call	random@PLT
	movss	xmm1, DWORD PTR 12[rsp]
	mov	eax, DWORD PTR qfalse[rip]
	comiss	xmm0, xmm1
	ja	.L1
.L7:
	xor	eax, eax
	call	BotNumActivePlayers@PLT
	cmp	eax, 1
	jle	.L14
	mov	rdi, rbx
	call	BotValidChatPosition@PLT
	test	eax, eax
	je	.L14
	xor	eax, eax
	call	BotMapTitle@PLT
	mov	rdi, rbx
	mov	ebp, eax
	call	BotRandomOpponentName@PLT
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, 16[rsp]
	mov	edx, 32
	mov	r12d, eax
	call	EasyClientName@PLT
	push	0
	.cfi_def_cfa_offset 104
	mov	ecx, r12d
	mov	rdi, rbx
	push	rbp
	.cfi_def_cfa_offset 112
	lea	r9, .LC0[rip]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	r8, r9
	call	BotAI_BotInitialChat@PLT
	xor	eax, eax
	call	FloatTime@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR CHAT_ALL[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR qtrue[rip]
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BotChat_EnterGame, .-BotChat_EnterGame
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	gametype,8,8
	.comm	bot_nochat,8,8
	.comm	bot_fastchat,4,4
	.comm	TIME_BETWEENCHATTING,8,8
	.comm	GT_TOURNAMENT,8,8
	.comm	CHAT_ALL,4,4
	.comm	CHARACTERISTIC_CHAT_ENTEREXITGAME,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_ai_chat.c_BotChat_EnterGame.c"
	.text
	.global	__aeabi_fcmpgt
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"game_enter\000"
	.align	2
.LC1:
	.ascii	"[invalid var]\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BotChat_EnterGame
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotChat_EnterGame, %function
BotChat_EnterGame:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L17
	ldr	r2, .L17+4
	ldr	r3, [r3]
	sub	sp, sp, #56
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	beq	.L2
.L14:
	ldr	r3, .L17+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r5, [r0]
	mov	r4, r0
	bl	FloatTime
	ldr	r3, .L17+12
	ldr	r3, [r3]
	sub	r0, r0, r3
	cmp	r5, r0
	bgt	.L14
	bl	TeamPlayIsOn
	subs	r2, r0, #0
	bne	.L14
	ldr	r1, .L17+16
	ldr	r3, .L17+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L14
	ldr	r3, .L17+24
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	mov	r3, #1
	bl	trap_Characteristic_BFloat
	ldr	r3, .L17+28
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	bl	random
	mov	r1, r5
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L14
.L7:
	bl	BotNumActivePlayers
	cmp	r0, #1
	ble	.L14
	mov	r0, r4
	bl	BotValidChatPosition
	cmp	r0, #0
	beq	.L14
	mov	r2, #32
	add	r1, sp, #20
	ldr	r0, [r4, #8]
	bl	EasyClientName
	mov	r5, r0
	mov	r0, r4
	bl	BotRandomOpponentName
	mov	r6, r0
	bl	BotMapTitle
	mov	ip, #0
	ldr	r1, .L17+32
	mov	r3, r6
	mov	r2, r5
	str	r0, [sp, #8]
	str	ip, [sp, #12]
	str	r1, [sp, #4]
	str	r1, [sp]
	mov	r0, r4
	ldr	r1, .L17+36
	bl	BotAI_BotInitialChat
	bl	FloatTime
	mov	r2, r0
	ldr	r3, .L17+40
	ldr	r1, .L17+44
	ldr	r3, [r3]
	ldr	r0, [r1]
	stm	r4, {r2, r3}
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	bot_nochat
	.word	.LC2
	.word	qfalse
	.word	TIME_BETWEENCHATTING
	.word	gametype
	.word	GT_TOURNAMENT
	.word	CHARACTERISTIC_CHAT_ENTEREXITGAME
	.word	bot_fastchat
	.word	.LC1
	.word	.LC0
	.word	CHAT_ALL
	.word	qtrue
	.size	BotChat_EnterGame, .-BotChat_EnterGame
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	gametype,4,4
	.comm	bot_nochat,4,4
	.comm	bot_fastchat,4,4
	.comm	TIME_BETWEENCHATTING,4,4
	.comm	GT_TOURNAMENT,4,4
	.comm	CHAT_ALL,4,4
	.comm	CHARACTERISTIC_CHAT_ENTEREXITGAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
