	.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), %r9
	movl	(%r9), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	8(%r9), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rcx,%rsi)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rcx,%rsi)
	je	LBB0_4
LBB0_13:
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r9), %r8
	movq	_g_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	_SVF_BOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movq	%r8, %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	addq	$16, %rcx
	cmpq	%rsi, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rcx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%edx, (%r10,%rsi,4)
	jne	LBB0_8
LBB0_12:
	movl	%esi, %eax
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	movq	%rcx, 8(%r8,%rax)
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r9), %r8
	xorl	%esi, %esi
	movq	%r8, %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rcx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rsi
	addq	$16, %rcx
	cmpq	%rsi, %rax
	jne	LBB0_10
	jmp	LBB0_13
	.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	x10, _level@GOTPAGE
Lloh1:
	ldr	x10, [x10, _level@GOTPAGEOFF]
	ldr	w8, [x10]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x10, #8]
	add	x9, x9, #8
	mov	x11, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #16
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x9, #-8]
	cmp	w12, w0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x9]
	cbz	x12, LBB0_2
LBB0_5:
	ret
LBB0_6:
	mov	x9, #0
Lloh2:
	adrp	x12, _g_entities@GOTPAGE
Lloh3:
	ldr	x12, [x12, _g_entities@GOTPAGEOFF]
	ldr	x11, [x10, #8]
Lloh4:
	ldr	x12, [x12]
Lloh5:
	adrp	x13, _SVF_BOT@GOTPAGE
Lloh6:
	ldr	x13, [x13, _SVF_BOT@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x13]
	mov	x14, x11
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	add	x14, x14, #16
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x14]
	cmp	w15, w0
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w15, [x12, x9, lsl #2]
	tst	w13, w15
	b.ne	LBB0_7
LBB0_10:
Lloh8:
	adrp	x8, _qtrue@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x9, x11, w9, uxtw #4
	str	x8, [x9, #8]
	ret
LBB0_11:
	mov	x9, #0
	ldr	x11, [x10, #8]
	mov	x10, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	cmp	w12, w0
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_12
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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
