	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawPlayerHasFlag
_CG_DrawPlayerHasFlag:                  ## @CG_DrawPlayerHasFlag
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %r9
	xorl	%eax, %eax
	testq	%rsi, %rsi
	sete	%al
	addl	%eax, %eax
	movq	_cg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_PW_REDFLAG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_2
## %bb.1:
	movl	%eax, %eax
	movq	24(%rdi), %r10
	addq	%rax, %r10
	movq	_TEAM_RED@GOTPCREL(%rip), %r8
	jmp	LBB0_6
LBB0_2:
	movq	_PW_BLUEFLAG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_4
## %bb.3:
	movl	%eax, %eax
	movq	24(%rdi), %r10
	addq	%rax, %r10
	movq	_TEAM_BLUE@GOTPCREL(%rip), %r8
	jmp	LBB0_6
LBB0_4:
	movq	_PW_NEUTRALFLAG@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_7
## %bb.5:
	movl	%eax, %eax
	movq	24(%rdi), %r10
	addq	%rax, %r10
	movq	_TEAM_FREE@GOTPCREL(%rip), %r8
LBB0_6:
	movq	16(%rdi), %rsi
	addq	%rax, %rsi
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	subq	%rax, %rdx
	subq	%rax, %rcx
	movl	(%r8), %r8d
	movq	%r10, %rdi
	popq	%rbp
	jmp	_CG_DrawFlagModel               ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,8,3                         ## @cg
	.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
	.no_dead_strip	_CG_DrawPlayerHasFlag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawPlayerHasFlag
_CG_DrawPlayerHasFlag:                  ; @CG_DrawPlayerHasFlag
	.cfi_startproc
; %bb.0:
	mov	x5, x1
	cmp	x1, #0
	cset	w8, eq
	lsl	w9, w8, #1
Lloh0:
	adrp	x8, _cg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _PW_REDFLAG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PW_REDFLAG@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x10, [x8, x10, lsl #3]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	x8, [x0, #24]
	add	x8, x8, x9
Lloh6:
	adrp	x10, _TEAM_RED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TEAM_RED@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh8:
	adrp	x10, _PW_BLUEFLAG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PW_BLUEFLAG@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	x10, [x8, x10, lsl #3]
	cbz	x10, LBB0_4
; %bb.3:
	ldr	x8, [x0, #24]
	add	x8, x8, x9
Lloh11:
	adrp	x10, _TEAM_BLUE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TEAM_BLUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x10, _PW_NEUTRALFLAG@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PW_NEUTRALFLAG@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x0, #24]
	add	x8, x8, x9
Lloh16:
	adrp	x10, _TEAM_FREE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TEAM_FREE@GOTPAGEOFF]
LBB0_6:
	ldr	x11, [x0, #16]
	add	x1, x11, x9
	ldp	x12, x11, [x0]
	sub	x2, x11, x9
	sub	x3, x12, x9
	ldr	w4, [x10]
	mov	x0, x8
	b	_CG_DrawFlagModel
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,8,3                         ; @cg
	.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
	.no_dead_strip	_CG_DrawPlayerHasFlag
.subsections_via_symbols
