	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function BotVisibleTeamMatesAndEnemies
LCPI0_0:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BotVisibleTeamMatesAndEnemies
	.p2align	4, 0x90
_BotVisibleTeamMatesAndEnemies:         ## @BotVisibleTeamMatesAndEnemies
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	%rdi, %r13
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	$0, (%rsi)
LBB0_2:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	$0, (%rdx)
LBB0_4:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_maxclients@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.5:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.6:
	movl	$1, %r12d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %ebx
	cmpl	(%r13), %ebx
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	leaq	-48(%rbp), %rsi
	callq	_BotEntityInfo
	cmpl	$0, -44(%rbp)
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_EntityCarriesFlag
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %edi
	movl	16(%r13), %esi
	callq	_VectorSubtract
	callq	_VectorLengthSquared
	movq	%r15, %r13
	movq	%r14, %r15
	movq	%rax, %r14
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_Square
	cmpq	%rax, %r14
	movq	%r15, %r14
	movq	%r13, %r15
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jg	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%r13), %edi
	movl	4(%r13), %edx
	movl	8(%r13), %esi
	movl	$360, %ecx                      ## imm = 0x168
	movl	%ebx, %r8d
	callq	_BotEntityVisible
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jae	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_BotSameTeam
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %rax
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	incl	(%rax)
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	(%r15), %r12d
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r12), %eax
	cmpl	(%r14), %r12d
	movl	%eax, %r12d
	jl	LBB0_7
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maxclients,4,2                 ## @maxclients
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotVisibleTeamMatesAndEnemies  ; -- Begin function BotVisibleTeamMatesAndEnemies
	.p2align	2
_BotVisibleTeamMatesAndEnemies:         ; @BotVisibleTeamMatesAndEnemies
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	fmov	s8, s0
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x1, LBB0_2
; %bb.1:
	str	wzr, [x20]
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	str	wzr, [x19]
LBB0_4:
Lloh0:
	adrp	x24, _maxclients@GOTPAGE
Lloh1:
	ldr	x24, [x24, _maxclients@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _MAX_CLIENTS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w8, #1
	ccmp	w9, #1, #8, ge
	b.ge	LBB0_6
LBB0_5:
	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	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	w26, #1
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, x19
	cbz	x19, LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x25]
	cmp	w26, w8
	ccmp	w26, w9, #0, lt
	add	w26, w26, #1
	b.ge	LBB0_5
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w22, w26, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_BotEntityInfo
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	bl	_EntityCarriesFlag
	cbz	w0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [sp, #8]
	ldr	w1, [x21, #16]
	bl	_VectorSubtract
	bl	_VectorLengthSquared
	mov	x23, x0
	fmov	s0, s8
	bl	_Square
	cmp	x23, x0
	b.gt	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	w1, w0, [x21, #8]
	ldr	w2, [x21, #4]
	mov	w3, #360
	mov	x4, x22
	bl	_BotEntityVisible
	fcmp	s0, #0.0
	b.ls	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_BotSameTeam
	cbz	x0, LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, x20
	cbnz	x20, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_maxclients,4,2                 ; @maxclients
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
.subsections_via_symbols
