	.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_HitTalking
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BotChat_HitTalking
	.p2align	4, 0x90
_BotChat_HitTalking:                    ## @BotChat_HitTalking
	.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), %r14
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	xorl	%eax, %eax
	callq	_FloatTime
	movq	_TIME_BETWEENCHATTING@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	cmpq	%rax, %rbx
	jg	LBB0_13
## %bb.2:
	xorl	%eax, %eax
	callq	_BotNumActivePlayers
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.3:
	movq	_g_entities@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	cmpq	%rax, %rcx
	je	LBB0_13
## %bb.5:
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
## %bb.7:
	movl	20(%r15), %edi
	movq	_CHARACTERISTIC_CHAT_HITTALKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_trap_Characteristic_BFloat
	movss	%xmm0, -84(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_TeamPlayIsOn
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movq	_gametype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_TOURNAMENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.9:
	movq	_bot_fastchat@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_random
	cvtss2sd	%xmm0, %xmm0
	movss	-84(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	mulsd	LCPI0_0(%rip), %xmm1
	ucomisd	%xmm1, %xmm0
	ja	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	callq	_BotValidChatPosition
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	(%r12), %rax
	movq	8(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %r14
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_ClientName
	movq	(%r12), %rax
	movq	8(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	4(%rax), %edi
	callq	_BotWeaponNameForMeansOfDeath
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_BotAI_BotInitialChat
	xorl	%eax, %eax
	callq	_FloatTime
	movq	%rax, (%r15)
	movq	_CHAT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_qtrue@GOTPCREL(%rip), %r14
LBB0_13:
	movl	(%r14), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	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	_g_entities,8,3                 ## @g_entities
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_CHARACTERISTIC_CHAT_HITTALKING,4,2 ## @CHARACTERISTIC_CHAT_HITTALKING
	.comm	_gametype,8,3                   ## @gametype
	.comm	_GT_TOURNAMENT,8,3              ## @GT_TOURNAMENT
	.comm	_bot_fastchat,4,2               ## @bot_fastchat
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hit_talking"

	.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_HitTalking             ; -- Begin function BotChat_HitTalking
	.p2align	2
_BotChat_HitTalking:                    ; @BotChat_HitTalking
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
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_12
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	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_12
; %bb.2:
	bl	_BotNumActivePlayers
	cmp	w0, #2
	b.lt	LBB0_12
; %bb.3:
Lloh9:
	adrp	x20, _g_entities@GOTPAGE
Lloh10:
	ldr	x20, [x20, _g_entities@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x10, [x19, #8]
	ldr	x8, [x8, x10, lsl #3]
	ldr	w9, [x8]
	sxtw	x8, w9
	cmp	w9, #0
	ccmp	x10, x8, #4, ne
	b.eq	LBB0_12
; %bb.4:
Lloh11:
	adrp	x8, _qfalse@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	tbnz	w9, #31, LBB0_13
; %bb.5:
Lloh13:
	adrp	x10, _MAX_CLIENTS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MAX_CLIENTS@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_13
; %bb.6:
	ldr	w0, [x19, #20]
Lloh16:
	adrp	x8, _CHARACTERISTIC_CHAT_HITTALKING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CHARACTERISTIC_CHAT_HITTALKING@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1
	bl	_trap_Characteristic_BFloat
	fmov	s8, s0
	bl	_TeamPlayIsOn
	cbnz	x0, LBB0_12
; %bb.7:
Lloh19:
	adrp	x8, _gametype@GOTPAGE
Lloh20:
	ldr	x8, [x8, _gametype@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _GT_TOURNAMENT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GT_TOURNAMENT@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.8:
Lloh25:
	adrp	x8, _bot_fastchat@GOTPAGE
Lloh26:
	ldr	x8, [x8, _bot_fastchat@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.9:
	bl	_random
	fcvt	d0, s0
	fcvt	d1, s8
	fmov	d2, #0.50000000
	fmul	d1, d1, d2
	fcmp	d1, d0
	b.mi	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_BotValidChatPosition
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #32
	bl	_ClientName
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8, #4]
	bl	_BotWeaponNameForMeansOfDeath
	mov	x3, x0
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	mov	x4, #0
	bl	_BotAI_BotInitialChat
	bl	_FloatTime
	str	x0, [x19]
Lloh30:
	adrp	x8, _CHAT_ALL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CHAT_ALL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh33:
	adrp	x8, _qtrue@GOTPAGE
Lloh34:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh35:
	adrp	x8, _qfalse@GOTPAGE
Lloh36:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.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	_g_entities,8,3                 ; @g_entities
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_CHARACTERISTIC_CHAT_HITTALKING,4,2 ; @CHARACTERISTIC_CHAT_HITTALKING
	.comm	_gametype,8,3                   ; @gametype
	.comm	_GT_TOURNAMENT,8,3              ; @GT_TOURNAMENT
	.comm	_bot_fastchat,4,2               ; @bot_fastchat
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hit_talking"

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