	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function BotCheckAttack
LCPI0_0:
	.quad	0xbfb999999999999a              ## double -0.10000000000000001
LCPI0_1:
	.long	0x42480000                      ## float 50
	.long	0x42f00000                      ## float 120
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BotCheckAttack
	.p2align	4, 0x90
_BotCheckAttack:                        ## @BotCheckAttack
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	leaq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	_BotEntityInfo
	movl	88(%rbx), %edi
	movq	_CHARACTERISTIC_REACTIONTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_trap_Characteristic_BFloat
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_FloatTime
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	subss	-40(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	ja	LBB0_14
## %bb.1:
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_FloatTime
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	subss	-40(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	ja	LBB0_14
## %bb.2:
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_FloatTime
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_14
## %bb.3:
	movl	24(%rbx), %r15d
	xorl	%eax, %eax
	callq	_FloatTime
	cmpl	%eax, %r15d
	jg	LBB0_14
## %bb.4:
	movl	88(%rbx), %edi
	movq	_CHARACTERISTIC_FIRETHROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_trap_Characteristic_BFloat
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	movl	28(%rbx), %r15d
	xorl	%eax, %eax
	callq	_FloatTime
	cmpl	%eax, %r15d
	jge	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	callq	_random
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_FloatTime
	movss	-40(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_7
## %bb.6:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, 24(%rbx)
	movl	$0, 28(%rbx)
	jmp	LBB0_8
LBB0_7:
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	subss	%xmm1, %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, 28(%rbx)
	movl	$0, 24(%rbx)
LBB0_8:
	movq	32(%rbx), %rdi
	movq	40(%rbx), %rsi
	callq	_VectorSubtract
	movq	48(%rbx), %rax
	movq	_WP_GAUNTLET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	callq	_VectorLengthSquared
	movq	%rax, %r15
	movl	$60, %edi
	callq	_Square
	cmpq	%rax, %r15
	jg	LBB0_14
LBB0_10:
	callq	_VectorLengthSquared
	movq	%rax, %r15
	movl	$100, %edi
	callq	_Square
	xorl	%ecx, %ecx
	cmpq	%rax, %r15
	setl	%cl
	leaq	LCPI0_1(%rip), %rax
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -40(%rbp)                ## 4-byte Spill
	callq	_vectoangles
	movl	68(%rbx), %edi
	movss	-40(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_InFieldOfVision
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	32(%rbx), %r8
	movq	40(%rbx), %rsi
	movl	60(%rbx), %r9d
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rax
	movq	_CONTENTS_PLAYERCLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_BotAI_Trace
	cmpl	$0, -48(%rbp)
	jg	LBB0_13
## %bb.12:
	cmpl	%r14d, -44(%rbp)
	je	LBB0_13
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	48(%rbx), %rsi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_BotCheckAttack.cold.1
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function BotCheckAttack.cold.1
_BotCheckAttack.cold.1:                 ## @BotCheckAttack.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	84(%rdi), %edi
	movq	(%rsi), %rsi
	callq	_trap_BotGetWeaponInfo
	movl	80(%rbx), %edi
	callq	_VectorCopy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_CHARACTERISTIC_REACTIONTIME,4,2 ## @CHARACTERISTIC_REACTIONTIME
	.comm	_CHARACTERISTIC_FIRETHROTTLE,4,2 ## @CHARACTERISTIC_FIRETHROTTLE
	.comm	_WP_GAUNTLET,8,3                ## @WP_GAUNTLET
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.comm	_CONTENTS_PLAYERCLIP,4,2        ## @CONTENTS_PLAYERCLIP
	.comm	_MASK_SHOT,4,2                  ## @MASK_SHOT
	.comm	_DAMAGETYPE_RADIAL,4,2          ## @DAMAGETYPE_RADIAL
	.comm	_WFL_FIRERELEASED,4,2           ## @WFL_FIRERELEASED
	.comm	_BFL_ATTACKED,4,2               ## @BFL_ATTACKED
	.comm	_blueobelisk,8,3                ## @blueobelisk
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_redobelisk,8,3                 ## @redobelisk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotCheckAttack                 ; -- Begin function BotCheckAttack
	.p2align	2
_BotCheckAttack:                        ; @BotCheckAttack
	.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
	mov	x19, x0
	ldr	w20, [x0]
	mov	x1, sp
	mov	x0, x20
	bl	_BotEntityInfo
	ldr	w0, [x19, #88]
Lloh0:
	adrp	x8, _CHARACTERISTIC_REACTIONTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHARACTERISTIC_REACTIONTIME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1
	bl	_trap_Characteristic_BFloat
	fmov	s8, s0
	ldr	s9, [x19, #4]
	bl	_FloatTime
	scvtf	s0, w0
	fsub	s0, s0, s8
	fcmp	s9, s0
	b.gt	LBB0_13
; %bb.1:
	ldr	s9, [x19, #8]
	bl	_FloatTime
	scvtf	s0, w0
	fsub	s0, s0, s8
	fcmp	s9, s0
	b.gt	LBB0_13
; %bb.2:
	ldr	d8, [x19, #16]
	bl	_FloatTime
	scvtf	d0, w0
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #49081, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	fcmp	d8, d0
	b.gt	LBB0_13
; %bb.3:
	ldr	w21, [x19, #24]
	bl	_FloatTime
	cmp	w21, w0
	b.gt	LBB0_13
; %bb.4:
	ldr	w0, [x19, #88]
Lloh3:
	adrp	x8, _CHARACTERISTIC_FIRETHROTTLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHARACTERISTIC_FIRETHROTTLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1
	bl	_trap_Characteristic_BFloat
	fmov	s8, s0
	ldr	w21, [x19, #28]
	bl	_FloatTime
	cmp	w21, w0
	b.ge	LBB0_8
; %bb.5:
	bl	_random
	fmov	s9, s0
	bl	_FloatTime
	fcmp	s9, s8
	b.le	LBB0_7
; %bb.6:
	scvtf	s0, w0
	fadd	s0, s8, s0
	fcvtzs	w8, s0
	stp	w8, wzr, [x19, #24]
	b	LBB0_8
LBB0_7:
	add	w8, w0, #1
	scvtf	s0, w8
	fsub	s0, s0, s8
	fcvtzs	w8, s0
	stp	wzr, w8, [x19, #24]
LBB0_8:
	ldp	x0, x1, [x19, #32]
	bl	_VectorSubtract
	mov	x21, x19
	ldr	x8, [x21, #48]!
Lloh6:
	adrp	x9, _WP_GAUNTLET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WP_GAUNTLET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	bl	_VectorLengthSquared
	mov	x22, x0
	mov	w0, #60
	bl	_Square
	cmp	x22, x0
	b.gt	LBB0_13
LBB0_10:
	bl	_VectorLengthSquared
	mov	x22, x0
	mov	w0, #100
	bl	_Square
	cmp	x22, x0
	mov	w8, #1112014848
	fmov	s0, w8
	mov	w8, #1123024896
	fmov	s1, w8
	fcsel	s8, s1, s0, lt
	bl	_vectoangles
	ldr	w0, [x19, #68]
	fmov	s0, s8
	bl	_InFieldOfVision
	cbz	w0, LBB0_13
; %bb.11:
	ldp	x4, x1, [x19, #32]
Lloh9:
	adrp	x8, _CONTENTS_SOLID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONTENTS_SOLID@GOTPAGEOFF]
	ldr	w5, [x19, #60]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _CONTENTS_PLAYERCLIP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CONTENTS_PLAYERCLIP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w6, w9, w8
	add	x0, sp, #40
	mov	x2, #0
	mov	x3, #0
	bl	_BotAI_Trace
	ldr	w8, [sp, #40]
	cmp	w8, #0
	b.gt	LBB0_14
; %bb.12:
	ldr	w8, [sp, #44]
	cmp	w8, w20
	b.eq	LBB0_14
LBB0_13:
	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_14:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_BotCheckAttack.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function BotCheckAttack.cold.1
_BotCheckAttack.cold.1:                 ; @BotCheckAttack.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #84]
	ldr	x1, [x1]
	bl	_trap_BotGetWeaponInfo
	ldr	w0, [x19, #80]
	bl	_VectorCopy
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_CHARACTERISTIC_REACTIONTIME,4,2 ; @CHARACTERISTIC_REACTIONTIME
	.comm	_CHARACTERISTIC_FIRETHROTTLE,4,2 ; @CHARACTERISTIC_FIRETHROTTLE
	.comm	_WP_GAUNTLET,8,3                ; @WP_GAUNTLET
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.comm	_CONTENTS_PLAYERCLIP,4,2        ; @CONTENTS_PLAYERCLIP
	.comm	_MASK_SHOT,4,2                  ; @MASK_SHOT
	.comm	_DAMAGETYPE_RADIAL,4,2          ; @DAMAGETYPE_RADIAL
	.comm	_WFL_FIRERELEASED,4,2           ; @WFL_FIRERELEASED
	.comm	_BFL_ATTACKED,4,2               ; @BFL_ATTACKED
	.comm	_blueobelisk,8,3                ; @blueobelisk
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_redobelisk,8,3                 ; @redobelisk
.subsections_via_symbols
