	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindEnemyByName                ## -- Begin function FindEnemyByName
	.p2align	4, 0x90
_FindEnemyByName:                       ## @FindEnemyByName
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	_FindEnemyByName.maxclients(%rip), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_VariableIntegerValue
	movl	%eax, _FindEnemyByName.maxclients(%rip)
LBB0_2:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_BotSameTeam
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ClientName
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	movl	_FindEnemyByName.maxclients(%rip), %eax
	movl	(%r15), %ecx
	cmpl	%eax, %r14d
	jge	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ecx, %r14d
	jl	LBB0_5
LBB0_8:
	movl	$-1, %r14d
	testl	%eax, %eax
	jle	LBB0_16
## %bb.9:
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.10:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_BotSameTeam
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ClientName
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_stristr
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	cmpl	_FindEnemyByName.maxclients(%rip), %ebx
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	(%r15), %ebx
	jl	LBB0_11
	jmp	LBB0_16
LBB0_13:
	movl	%ebx, %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.17:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
.zerofill __DATA,__bss,_FindEnemyByName.maxclients,4,2 ## @FindEnemyByName.maxclients
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sv_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	_FindEnemyByName                ; -- Begin function FindEnemyByName
	.p2align	2
_FindEnemyByName:                       ; @FindEnemyByName
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_INFO_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INFO_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	adrp	x24, _FindEnemyByName.maxclients@PAGE
	ldr	w0, [x24, _FindEnemyByName.maxclients@PAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_VariableIntegerValue
	str	w0, [x24, _FindEnemyByName.maxclients@PAGEOFF]
LBB0_2:
Lloh10:
	adrp	x25, _MAX_CLIENTS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, #1
	ccmp	w8, #1, #8, ge
	b.ge	LBB0_7
LBB0_3:
	cmp	w0, #1
	ccmp	w8, #1, #8, ge
	b.ge	LBB0_11
LBB0_4:
	mov	w23, #-1
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.6:
	mov	x0, x23
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w23, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w23, w23, #1
	ldr	w0, [x24, _FindEnemyByName.maxclients@PAGEOFF]
	ldr	w8, [x25]
	cmp	w23, w0
	ccmp	w23, w8, #0, lt
	b.ge	LBB0_3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_BotSameTeam
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_ClientName
	mov	x0, x22
	mov	x1, x19
	bl	_Q_stricmp
	cbnz	w0, LBB0_8
	b	LBB0_5
LBB0_11:
	mov	w23, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w23, w23, #1
	ldr	w8, [x24, _FindEnemyByName.maxclients@PAGEOFF]
	ldr	w9, [x25]
	cmp	w23, w8
	ccmp	w23, w9, #0, lt
	b.ge	LBB0_4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_BotSameTeam
	cbnz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_ClientName
	mov	x0, x22
	mov	x1, x19
	bl	_stristr
	cbz	x0, LBB0_12
	b	LBB0_5
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
.zerofill __DATA,__bss,_FindEnemyByName.maxclients,4,2 ; @FindEnemyByName.maxclients
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sv_maxclients"

	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
.subsections_via_symbols
