	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function BotChat_Random
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
LCPI0_1:
	.quad	0x3fd0000000000000              ## double 0.25
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BotChat_Random
	.p2align	4, 0x90
_BotChat_Random:                        ## @BotChat_Random
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_bot_nochat@GOTPCREL(%rip), %rax
	movq	_qfalse@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rax)
	jne	LBB0_19
## %bb.1:
	movq	%rdi, %r12
	callq	_BotIsObserver
	testq	%rax, %rax
	jne	LBB0_19
## %bb.2:
	movq	(%r12), %r14
	xorl	%eax, %eax
	callq	_FloatTime
	movq	_TIME_BETWEENCHATTING@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	cmpq	%rax, %r14
	jg	LBB0_19
## %bb.3:
	movq	_gametype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_TOURNAMENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.4:
	movq	8(%r12), %rax
	movq	_LTG_TEAMHELP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.5:
	movq	_LTG_TEAMACCOMPANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.6:
	movq	_LTG_RUSHBASE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.7:
	movl	44(%r12), %edi
	movq	_CHARACTERISTIC_CHAT_RANDOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_trap_Characteristic_BFloat
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_random
	movsd	16(%r12), %xmm1                 ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	ja	LBB0_19
## %bb.8:
	movq	_bot_fastchat@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
LBB0_11:
	xorl	%eax, %eax
	callq	_BotNumActivePlayers
	cmpl	$2, %eax
	jl	LBB0_19
## %bb.12:
	movq	%r12, %rdi
	callq	_BotValidChatPosition
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movq	%r12, %rdi
	callq	_BotVisibleEnemies
	testq	%rax, %rax
	jne	LBB0_19
## %bb.14:
	movq	24(%r12), %rdi
	cmpq	32(%r12), %rdi
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	callq	_BotRandomOpponentName
	leaq	-80(%rbp), %rdi
	movl	%eax, %esi
	callq	_strcpy
	jmp	LBB0_17
LBB0_9:
	movsd	-88(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -88(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_random
	movss	-88(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	ja	LBB0_19
## %bb.10:
	xorl	%eax, %eax
	callq	_random
	ucomisd	LCPI0_1(%rip), %xmm0
	jbe	LBB0_11
	jmp	LBB0_19
LBB0_16:
	leaq	-80(%rbp), %rsi
	movl	$32, %edx
	callq	_EasyClientName
LBB0_17:
	xorl	%eax, %eax
	callq	_TeamPlayIsOn
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_random
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	movl	44(%r12), %edi
	movq	_CHARACTERISTIC_CHAT_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_trap_Characteristic_BFloat
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_BotRandomOpponentName
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_BotMapTitle
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_BotRandomWeaponName
                                        ## kill: def $eax killed $eax def $rax
	movsd	-96(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.2(%rip), %rsi
	cmovaq	%rcx, %rsi
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r8
	leaq	-80(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r14d, %edx
	movq	%r8, %r9
	pushq	$0
	pushq	%rax
	pushq	%r15
	callq	_BotAI_BotInitialChat
	addq	$32, %rsp
	xorl	%eax, %eax
	callq	_FloatTime
	movq	%rax, (%r12)
	movq	_CHAT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_qtrue@GOTPCREL(%rip), %rbx
LBB0_19:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_bot_nochat,8,3                 ## @bot_nochat
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_TIME_BETWEENCHATTING,8,3       ## @TIME_BETWEENCHATTING
	.comm	_gametype,8,3                   ## @gametype
	.comm	_GT_TOURNAMENT,8,3              ## @GT_TOURNAMENT
	.comm	_LTG_TEAMHELP,8,3               ## @LTG_TEAMHELP
	.comm	_LTG_TEAMACCOMPANY,8,3          ## @LTG_TEAMACCOMPANY
	.comm	_LTG_RUSHBASE,8,3               ## @LTG_RUSHBASE
	.comm	_CHARACTERISTIC_CHAT_RANDOM,4,2 ## @CHARACTERISTIC_CHAT_RANDOM
	.comm	_bot_fastchat,4,2               ## @bot_fastchat
	.comm	_CHARACTERISTIC_CHAT_MISC,4,2   ## @CHARACTERISTIC_CHAT_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"random_misc"

L_.str.1:                               ## @.str.1
	.asciz	"[invalid var]"

L_.str.2:                               ## @.str.2
	.asciz	"random_insult"

	.comm	_CHAT_ALL,4,2                   ## @CHAT_ALL
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotChat_Random                 ; -- Begin function BotChat_Random
	.p2align	2
_BotChat_Random:                        ; @BotChat_Random
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -56
	.cfi_offset b9, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _bot_nochat@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bot_nochat@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_BotIsObserver
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x20, [x19]
	bl	_FloatTime
Lloh6:
	adrp	x8, _TIME_BETWEENCHATTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIME_BETWEENCHATTING@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sub	x8, x0, x8
	cmp	x20, x8
	b.gt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _gametype@GOTPAGE
Lloh10:
	ldr	x8, [x8, _gametype@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _GT_TOURNAMENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GT_TOURNAMENT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _qfalse@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	x9, [x19, #8]
Lloh20:
	adrp	x8, _LTG_TEAMHELP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LTG_TEAMHELP@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x8]
Lloh23:
	adrp	x8, _qfalse@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.8:
Lloh25:
	adrp	x10, _LTG_TEAMACCOMPANY@GOTPAGE
Lloh26:
	ldr	x10, [x10, _LTG_TEAMACCOMPANY@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.9:
Lloh28:
	adrp	x10, _LTG_RUSHBASE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _LTG_RUSHBASE@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.10:
	ldr	w0, [x19, #44]
Lloh31:
	adrp	x8, _CHARACTERISTIC_CHAT_RANDOM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CHARACTERISTIC_CHAT_RANDOM@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1
	bl	_trap_Characteristic_BFloat
	fmov	d8, d0
	bl	_random
	ldr	d1, [x19, #16]
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16313, lsl #48
	fmov	d2, x8
	fmul	d1, d1, d2
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.11:
Lloh34:
	adrp	x8, _bot_fastchat@GOTPAGE
Lloh35:
	ldr	x8, [x8, _bot_fastchat@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cbz	w8, LBB0_17
LBB0_12:
	bl	_BotNumActivePlayers
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.13:
	mov	x0, x19
	bl	_BotValidChatPosition
	cbz	w0, LBB0_4
; %bb.14:
	mov	x0, x19
	bl	_BotVisibleEnemies
	cbnz	x0, LBB0_4
; %bb.15:
	ldp	x0, x8, [x19, #24]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_BotRandomOpponentName
	mov	x1, x0
	add	x0, sp, #8
	bl	_strcpy
	b	LBB0_20
LBB0_17:
	fcvt	s8, d8
	bl	_random
	fcvt	d1, s8
	fcmp	d0, d1
	b.gt	LBB0_4
; %bb.18:
	bl	_random
	fmov	d1, #0.25000000
	fcmp	d0, d1
	b.gt	LBB0_4
	b	LBB0_12
LBB0_19:
	add	x1, sp, #8
	mov	w2, #32
	bl	_EasyClientName
LBB0_20:
	bl	_TeamPlayIsOn
	cbnz	x0, LBB0_4
; %bb.21:
	bl	_random
	fmov	d8, d0
	ldr	w0, [x19, #44]
Lloh37:
	adrp	x8, _CHARACTERISTIC_CHAT_MISC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CHARACTERISTIC_CHAT_MISC@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1
	bl	_trap_Characteristic_BFloat
	fmov	d9, d0
	mov	x0, x19
	bl	_BotRandomOpponentName
	mov	x20, x0
	bl	_BotMapTitle
	mov	x21, x0
	bl	_BotRandomWeaponName
	mov	x7, x0
Lloh40:
	adrp	x8, l_.str.2@PAGE
Lloh41:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh42:
	adrp	x9, l_.str@PAGE
Lloh43:
	add	x9, x9, l_.str@PAGEOFF
	fcmp	d8, d9
	csel	x1, x9, x8, mi
	str	xzr, [sp]
Lloh44:
	adrp	x4, l_.str.1@PAGE
Lloh45:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x20
	mov	x5, x4
	mov	x6, x21
	bl	_BotAI_BotInitialChat
	bl	_FloatTime
	str	x0, [x19]
Lloh46:
	adrp	x8, _CHAT_ALL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CHAT_ALL@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh49:
	adrp	x8, _qtrue@GOTPAGE
Lloh50:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_5
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_bot_nochat,8,3                 ; @bot_nochat
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_TIME_BETWEENCHATTING,8,3       ; @TIME_BETWEENCHATTING
	.comm	_gametype,8,3                   ; @gametype
	.comm	_GT_TOURNAMENT,8,3              ; @GT_TOURNAMENT
	.comm	_LTG_TEAMHELP,8,3               ; @LTG_TEAMHELP
	.comm	_LTG_TEAMACCOMPANY,8,3          ; @LTG_TEAMACCOMPANY
	.comm	_LTG_RUSHBASE,8,3               ; @LTG_RUSHBASE
	.comm	_CHARACTERISTIC_CHAT_RANDOM,4,2 ; @CHARACTERISTIC_CHAT_RANDOM
	.comm	_bot_fastchat,4,2               ; @bot_fastchat
	.comm	_CHARACTERISTIC_CHAT_MISC,4,2   ; @CHARACTERISTIC_CHAT_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"random_misc"

l_.str.1:                               ; @.str.1
	.asciz	"[invalid var]"

l_.str.2:                               ; @.str.2
	.asciz	"random_insult"

	.comm	_CHAT_ALL,4,2                   ; @CHAT_ALL
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
