	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckTeamLeader                ## -- Begin function CheckTeamLeader
	.p2align	4, 0x90
_CheckTeamLeader:                       ## @CheckTeamLeader
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_level@GOTPCREL(%rip), %r8
	movl	(%r8), %r9d
	testl	%r9d, %r9d
	jle	LBB0_14
## %bb.1:
	movq	8(%r8), %rcx
	movq	%r9, %rdx
	shlq	$4, %rdx
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rax
	cmpq	%rax, %rdx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rcx,%rax)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rcx,%rax)
	je	LBB0_4
	jmp	LBB0_14
LBB0_5:
	movq	8(%r8), %rdx
	movq	_g_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_SVF_BOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(,%r9,4), %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rdx,%rcx,4)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, (%r10,%rcx)
	jne	LBB0_9
## %bb.8:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdx,%rcx,4)
LBB0_10:
	movq	8(%r8), %rcx
	xorl	%edx, %edx
	movq	%rcx, %rax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rax)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdx
	addq	$16, %rax
	cmpq	%rdx, %r9
	jne	LBB0_11
LBB0_14:
	popq	%rbp
	retq
LBB0_12:
	movl	%edx, %eax
	movq	_qtrue@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rax
	movq	%rdx, 8(%rcx,%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,16,3                     ## @level
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
	.comm	_qtrue,8,3                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckTeamLeader                ; -- Begin function CheckTeamLeader
	.p2align	2
_CheckTeamLeader:                       ; @CheckTeamLeader
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _level@GOTPAGE
Lloh1:
	ldr	x9, [x9, _level@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	ldr	x10, [x9, #8]
	add	x10, x10, #8
	mov	x11, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #16
	subs	x11, x11, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	cmp	w12, w0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x10]
	cbz	x12, LBB0_2
	b	LBB0_13
LBB0_5:
	ldr	x11, [x9, #8]
Lloh2:
	adrp	x10, _g_entities@GOTPAGE
Lloh3:
	ldr	x10, [x10, _g_entities@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x12, _SVF_BOT@GOTPAGE
Lloh6:
	ldr	x12, [x12, _SVF_BOT@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	add	x11, x11, #8
	mov	x13, x8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x11, #16
	add	x10, x10, #4
	subs	x13, x13, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x11, #-8]
	cmp	w14, w0
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x10]
	tst	w12, w14
	b.ne	LBB0_6
; %bb.9:
Lloh8:
	adrp	x10, _qtrue@GOTPAGE
Lloh9:
	ldr	x10, [x10, _qtrue@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	str	x10, [x11]
LBB0_10:
	mov	x10, #0
	ldr	x9, [x9, #8]
	mov	x11, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cmp	w12, w0
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x8, x10
	b.ne	LBB0_11
LBB0_13:
	ret
LBB0_14:
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x9, x9, w10, uxtw #4
	str	x8, [x9, #8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_level,16,3                     ; @level
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
	.comm	_qtrue,8,3                      ; @qtrue
.subsections_via_symbols
