	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Team_ResetFlag                 ## -- Begin function Team_ResetFlag
	.p2align	4, 0x90
_Team_ResetFlag:                        ## @Team_ResetFlag
	.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
                                        ## kill: def $edi killed $edi def $rdi
	leal	-128(%rdi), %eax
	cmpl	$2, %eax
	ja	LBB0_1
## %bb.2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cltq
	leaq	l_switch.table.Team_ResetFlag(%rip), %rcx
	movq	(%rcx,%rax,8), %r12
	movq	_classname@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_FOFS
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_G_Find
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	_FL_DROPPED_ITEM@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_RespawnItem
	movq	%rbx, %r15
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_FOFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_G_Find
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_G_FreeEntity
	jmp	LBB0_7
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_8:
	movq	_FLAG_ATBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Team_SetFlagStatus
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"team_CTF_redflag"

L_.str.1:                               ## @.str.1
	.asciz	"team_CTF_blueflag"

L_.str.2:                               ## @.str.2
	.asciz	"team_CTF_neutralflag"

	.comm	_classname,4,2                  ## @classname
	.comm	_FL_DROPPED_ITEM,4,2            ## @FL_DROPPED_ITEM
	.comm	_FLAG_ATBASE,4,2                ## @FLAG_ATBASE
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.Team_ResetFlag
l_switch.table.Team_ResetFlag:
	.quad	L_.str
	.quad	L_.str.2
	.quad	L_.str.1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Team_ResetFlag                 ; -- Begin function Team_ResetFlag
	.p2align	2
_Team_ResetFlag:                        ; @Team_ResetFlag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.Team_ResetFlag@PAGE
Lloh1:
	add	x9, x9, l_switch.table.Team_ResetFlag@PAGEOFF
	ldr	x20, [x9, w8, sxtw #3]
Lloh2:
	adrp	x23, _classname@GOTPAGE
Lloh3:
	ldr	x23, [x23, _classname@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_FOFS
	mov	x1, x0
	mov	x0, #0
	mov	x2, x20
	bl	_G_Find
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	mov	x21, #0
Lloh4:
	adrp	x24, _FL_DROPPED_ITEM@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FL_DROPPED_ITEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_RespawnItem
	mov	x21, x22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	bl	_FOFS
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	bl	_G_Find
	mov	x22, x0
	cbz	x0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x24]
	mov	x0, x22
	tst	w9, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_G_FreeEntity
	b	LBB0_4
LBB0_7:
	mov	x21, #0
	b	LBB0_10
LBB0_8:
	mov	x21, #0
LBB0_9:
Lloh6:
	adrp	x8, _FLAG_ATBASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAG_ATBASE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_Team_SetFlagStatus
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"team_CTF_redflag"

l_.str.1:                               ; @.str.1
	.asciz	"team_CTF_blueflag"

l_.str.2:                               ; @.str.2
	.asciz	"team_CTF_neutralflag"

	.comm	_classname,4,2                  ; @classname
	.comm	_FL_DROPPED_ITEM,4,2            ; @FL_DROPPED_ITEM
	.comm	_FLAG_ATBASE,4,2                ; @FLAG_ATBASE
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.Team_ResetFlag
l_switch.table.Team_ResetFlag:
	.quad	l_.str
	.quad	l_.str.2
	.quad	l_.str.1

.subsections_via_symbols
