	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_FindTeams                    ## -- Begin function G_FindTeams
	.p2align	4, 0x90
_G_FindTeams:                           ## @G_FindTeams
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_level@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	xorl	%esi, %esi
	movl	$0, %edx
	cmpl	%eax, %r13d
	jge	LBB0_18
## %bb.1:
	movslq	%r13d, %rcx
	movq	_g_entities@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,8), %rbx
	leaq	(%rdx,%rcx,8), %r12
	addq	$40, %r12
	xorl	%edx, %edx
	movq	_FL_TEAMSLAVE@GOTPCREL(%rip), %r8
	xorl	%esi, %esi
	jmp	LBB0_2
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	addq	$40, %rbx
	addq	$40, %r12
	cmpl	%eax, %r13d
	jge	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpl	$0, 36(%rbx)
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 32(%rbx)
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r8), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, 16(%rbx)
	incl	%esi
	incl	%edx
	leal	1(%r13), %r15d
	cmpl	%eax, %r15d
	jge	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %r14
	jmp	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_level@GOTPCREL(%rip), %rdi
	movq	_FL_TEAMSLAVE@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	%r15d
	movl	(%rdi), %eax
	addq	$40, %r14
	cmpl	%eax, %r15d
	jge	LBB0_16
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, 36(%r14)
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	32(%r14), %esi
	testl	%esi, %esi
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r8), %eax
	testl	%eax, (%r14)
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	32(%rbx), %edi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	24(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	%r14, 24(%rbx)
	movq	%rbx, 16(%r14)
	movq	_FL_TEAMSLAVE@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	orl	%eax, (%r14)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rax, 8(%rbx)
	movq	$0, 8(%r14)
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_level@GOTPCREL(%rip), %rdi
	jmp	LBB0_15
LBB0_18:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_Printf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_level,4,2                      ## @level
	.comm	_FL_TEAMSLAVE,4,2               ## @FL_TEAMSLAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i teams with %i entities\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_FindTeams                    ; -- Begin function G_FindTeams
	.p2align	2
_G_FindTeams:                           ; @G_FindTeams
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x22, _level@GOTPAGE
Lloh4:
	ldr	x22, [x22, _level@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_15
; %bb.1:
	mov	w19, #0
	mov	w20, #0
	sxtw	x9, w21
Lloh5:
	adrp	x10, _g_entities@GOTPAGE
Lloh6:
	ldr	x10, [x10, _g_entities@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	mov	w11, #40
	madd	x23, x9, x11, x10
	add	x24, x23, #40
Lloh8:
	adrp	x25, _FL_TEAMSLAVE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FL_TEAMSLAVE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	add	x23, x23, #40
	add	x24, x24, #40
	cmp	w21, w8
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w9, [x23, #36]
	cbz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23, #32]
	cbz	w9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23]
	ldr	w10, [x25]
	tst	w10, w9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x23, [x23, #16]
	add	w20, w20, #1
	add	w19, w19, #1
	add	w26, w21, #1
	cmp	w26, w8
	b.ge	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w26, w26, #1
	ldr	w8, [x22]
	add	x27, x27, #40
	cmp	w26, w8
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27, #36]
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w1, [x27, #32]
	cbz	w1, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x27]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [x23, #32]
	bl	_strcmp
	cbnz	w0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	add	w19, w19, #1
	ldr	x8, [x23, #24]
	str	x8, [x27, #24]
	str	x27, [x23, #24]
	str	x23, [x27, #16]
	ldr	w8, [x25]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	str	x8, [x23, #8]
	str	xzr, [x27, #8]
	b	LBB0_8
LBB0_15:
	mov	w20, #0
	mov	w19, #0
LBB0_16:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_G_Printf
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_level,4,2                      ; @level
	.comm	_FL_TEAMSLAVE,4,2               ; @FL_TEAMSLAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i teams with %i entities\n"

.subsections_via_symbols
