	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Use_target_remove_powerups     ## -- Begin function Use_target_remove_powerups
	.p2align	4, 0x90
_Use_target_remove_powerups:            ## @Use_target_remove_powerups
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rdx, %rbx
	movq	(%rax), %rax
	movq	_PW_REDFLAG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.2:
	movq	_TEAM_RED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_PW_BLUEFLAG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.4:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PW_NEUTRALFLAG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_8
## %bb.6:
	movq	_TEAM_FREE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_Team_ReturnFlag
LBB0_8:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PW_REDFLAG,8,3                 ## @PW_REDFLAG
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_PW_BLUEFLAG,8,3                ## @PW_BLUEFLAG
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.comm	_PW_NEUTRALFLAG,8,3             ## @PW_NEUTRALFLAG
	.comm	_TEAM_FREE,4,2                  ## @TEAM_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Use_target_remove_powerups     ; -- Begin function Use_target_remove_powerups
	.p2align	2
_Use_target_remove_powerups:            ; @Use_target_remove_powerups
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x2]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x2
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PW_REDFLAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PW_REDFLAG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _TEAM_RED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEAM_RED@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x9, _PW_BLUEFLAG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PW_BLUEFLAG@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _TEAM_BLUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TEAM_BLUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x9, _PW_NEUTRALFLAG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PW_NEUTRALFLAG@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_9
; %bb.7:
Lloh13:
	adrp	x8, _TEAM_FREE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TEAM_FREE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_Team_ReturnFlag
LBB0_9:
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PW_REDFLAG,8,3                 ; @PW_REDFLAG
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_PW_BLUEFLAG,8,3                ; @PW_BLUEFLAG
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.comm	_PW_NEUTRALFLAG,8,3             ; @PW_NEUTRALFLAG
	.comm	_TEAM_FREE,4,2                  ; @TEAM_FREE
.subsections_via_symbols
