	.file	"extr_be_ai_chat.c_BotChooseInitialChatMessage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotChooseInitialChatMessage
	.type	BotChooseInitialChatMessage, @function
BotChooseInitialChatMessage:
.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, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	rbp, QWORD PTR [rax]
	test	rbp, rbp
	je	.L2
	mov	r12, rsi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	je	.L2
.L15:
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, r12
	call	Q_stricmp@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L3
	mov	r12, QWORD PTR 0[rbp]
	test	r12, r12
	je	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	movss	xmm1, DWORD PTR [r12]
	xor	eax, eax
	movss	DWORD PTR 12[rsp], xmm1
	call	AAS_Time@PLT
	movss	xmm1, DWORD PTR 12[rsp]
	xor	eax, eax
	mov	r12, QWORD PTR 16[r12]
	ucomiss	xmm1, xmm0
	setbe	al
	add	ebx, eax
	test	r12, r12
	jne	.L6
	test	ebx, ebx
	jne	.L7
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L2
	pxor	xmm2, xmm2
	movaps	xmm0, xmm2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L42:
	jne	.L18
	mov	r12, rax
	mov	rax, QWORD PTR 16[rax]
	movaps	xmm0, xmm1
	test	rax, rax
	je	.L41
.L10:
	ucomiss	xmm0, xmm2
	movss	xmm1, DWORD PTR [rax]
	jnp	.L42
.L18:
	comiss	xmm0, xmm1
	minss	xmm1, xmm0
	cmova	r12, rax
	mov	rax, QWORD PTR 16[rax]
	movaps	xmm0, xmm1
	test	rax, rax
	jne	.L10
.L41:
	test	r12, r12
	je	.L2
	mov	rax, QWORD PTR 8[r12]
	add	rsp, 16
	.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
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	random@PLT
	mov	rbp, QWORD PTR 0[rbp]
	imul	ebx, eax
	test	rbp, rbp
	je	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	movss	xmm1, DWORD PTR 0[rbp]
	xor	eax, eax
	movss	DWORD PTR 12[rsp], xmm1
	call	AAS_Time@PLT
	movss	xmm1, DWORD PTR 12[rsp]
	comiss	xmm1, xmm0
	ja	.L13
	sub	ebx, 1
	js	.L43
.L13:
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
.L1:
	add	rsp, 16
	.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
.L43:
	.cfi_restore_state
	xor	eax, eax
	call	AAS_Time@PLT
	addss	xmm0, DWORD PTR CHATMESSAGE_RECENTTIME[rip]
	mov	rax, QWORD PTR 8[rbp]
	movss	DWORD PTR 0[rbp], xmm0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	BotChooseInitialChatMessage, .-BotChooseInitialChatMessage
	.comm	CHATMESSAGE_RECENTTIME,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_BotChooseInitialChatMessage.c"
	.text
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmpeq
	.global	__aeabi_fcmplt
	.global	__aeabi_fadd
	.align	2
	.global	BotChooseInitialChatMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotChooseInitialChatMessage, %function
BotChooseInitialChatMessage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L2
	mov	r6, r1
	b	.L14
.L3:
	ldr	r5, [r5, #8]
	cmp	r5, #0
	beq	.L2
.L14:
	mov	r1, r6
	ldr	r0, [r5, #4]
	bl	Q_stricmp
	subs	r4, r0, #0
	bne	.L3
	ldr	r6, [r5]
	cmp	r6, #0
	beq	.L2
.L6:
	ldr	r7, [r6]	@ float
	bl	AAS_Time
	mov	r1, r0
	mov	r0, r7
	bl	__aeabi_fcmpgt
	ldr	r6, [r6, #8]
	cmp	r0, #0
	addeq	r4, r4, #1
	cmp	r6, #0
	bne	.L6
	cmp	r4, #0
	bne	.L7
	ldr	r4, [r5]
	cmp	r4, #0
	beq	.L2
	mov	r5, #0
	mov	r8, r5
.L9:
	mov	r1, r8
	mov	r0, r5
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	ldr	r7, [r4]	@ float
	bne	.L16
	mov	r1, r5
	mov	r0, r7
	bl	__aeabi_fcmplt
	cmp	r0, #0
	beq	.L8
.L16:
	mov	r5, r7
	mov	r6, r4
.L8:
	ldr	r4, [r4, #8]
	cmp	r4, #0
	bne	.L9
	cmp	r6, #0
	beq	.L2
	ldr	r0, [r6, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	bl	random
	ldr	r5, [r5]
	mul	r4, r0, r4
	cmp	r5, #0
	beq	.L2
.L13:
	ldr	r6, [r5]	@ float
	bl	AAS_Time
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L12
	subs	r4, r4, #1
	bmi	.L39
.L12:
	ldr	r5, [r5, #8]
	cmp	r5, #0
	bne	.L13
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L39:
	bl	AAS_Time
	ldr	r3, .L40
	mov	r1, r0
	ldr	r0, [r3]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r0, [r5, #4]
	str	r3, [r5]	@ float
	pop	{r4, r5, r6, r7, r8, pc}
.L41:
	.align	2
.L40:
	.word	CHATMESSAGE_RECENTTIME
	.size	BotChooseInitialChatMessage, .-BotChooseInitialChatMessage
	.comm	CHATMESSAGE_RECENTTIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
