	.file	"extr_cg_newdraw.c_CG_OtherTeamHasFlag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CG_OtherTeamHasFlag
	.type	CG_OtherTeamHasFlag, @function
CG_OtherTeamHasFlag:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR cgs[rip]
	cmp	rax, QWORD PTR GT_CTF[rip]
	mov	rdx, QWORD PTR GT_1FCTF[rip]
	je	.L2
	cmp	rax, rdx
	je	.L12
.L4:
	mov	eax, DWORD PTR qfalse[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rcx, QWORD PTR cg[rip]
	mov	rsi, QWORD PTR PERS_TEAM[rip]
	mov	rcx, QWORD PTR [rcx]
	mov	ecx, DWORD PTR [rcx+rsi*4]
	mov	esi, DWORD PTR TEAM_RED[rip]
	cmp	rax, rdx
	je	.L10
	cmp	ecx, esi
	je	.L13
.L9:
	cmp	DWORD PTR TEAM_BLUE[rip], ecx
	jne	.L4
	mov	rax, QWORD PTR FLAG_TAKEN[rip]
	cmp	QWORD PTR cgs[rip+24], rax
	jne	.L4
.L8:
	mov	eax, DWORD PTR qtrue[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR cg[rip]
	mov	rdx, QWORD PTR PERS_TEAM[rip]
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rax+rdx*4]
.L10:
	cmp	DWORD PTR TEAM_RED[rip], ecx
	je	.L14
.L6:
	cmp	DWORD PTR TEAM_BLUE[rip], ecx
	jne	.L4
	mov	rax, QWORD PTR FLAG_TAKEN_RED[rip]
	cmp	QWORD PTR cgs[rip+8], rax
	jne	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR FLAG_TAKEN[rip]
	cmp	QWORD PTR cgs[rip+16], rax
	jne	.L9
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR FLAG_TAKEN_BLUE[rip]
	cmp	QWORD PTR cgs[rip+8], rax
	jne	.L6
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	CG_OtherTeamHasFlag, .-CG_OtherTeamHasFlag
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	cgs,32,32
	.comm	cg,8,8
	.comm	TEAM_RED,4,4
	.comm	TEAM_BLUE,4,4
	.comm	PERS_TEAM,8,8
	.comm	GT_CTF,8,8
	.comm	GT_1FCTF,8,8
	.comm	FLAG_TAKEN_RED,8,8
	.comm	FLAG_TAKEN_BLUE,8,8
	.comm	FLAG_TAKEN,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cg_newdraw.c_CG_OtherTeamHasFlag.c"
	.text
	.align	2
	.global	CG_OtherTeamHasFlag
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_OtherTeamHasFlag, %function
CG_OtherTeamHasFlag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, .L16
	ldr	r2, .L16+4
	ldr	r0, [r1]
	ldr	r3, [r2]
	ldr	r1, .L16+8
	cmp	r3, r0
	str	lr, [sp, #-4]!
	ldr	r1, [r1]
	beq	.L2
	cmp	r3, r1
	beq	.L13
.L4:
	ldr	r3, .L16+12
	ldr	r0, [r3]
	ldr	pc, [sp], #4
.L2:
	ldr	r0, .L16+16
	ldr	ip, .L16+20
	ldr	r0, [r0]
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, .L16+24
	cmp	r3, r1
	ldr	r3, [ip, lr, lsl #2]
	ldr	r1, [r0]
	beq	.L10
	cmp	r3, r1
	beq	.L14
.L9:
	ldr	r1, .L16+28
	ldr	r1, [r1]
	cmp	r1, r3
	bne	.L4
	ldr	r3, .L16+32
	ldr	r2, [r2, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
.L8:
	ldr	r3, .L16+36
	ldr	r0, [r3]
	ldr	pc, [sp], #4
.L13:
	ldr	r3, .L16+16
	ldr	r1, .L16+20
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, .L16+24
	ldr	r3, [r3, r1, lsl #2]
.L10:
	ldr	r1, [r0]
	cmp	r1, r3
	beq	.L15
.L6:
	ldr	r1, .L16+28
	ldr	r1, [r1]
	cmp	r1, r3
	bne	.L4
	ldr	r3, .L16+40
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	b	.L8
.L14:
	ldr	r1, .L16+32
	ldr	r0, [r2, #8]
	ldr	r1, [r1]
	cmp	r0, r1
	bne	.L9
	b	.L8
.L15:
	ldr	r1, .L16+44
	ldr	r0, [r2, #4]
	ldr	r1, [r1]
	cmp	r0, r1
	bne	.L6
	b	.L8
.L17:
	.align	2
.L16:
	.word	GT_CTF
	.word	cgs
	.word	GT_1FCTF
	.word	qfalse
	.word	cg
	.word	PERS_TEAM
	.word	TEAM_RED
	.word	TEAM_BLUE
	.word	FLAG_TAKEN
	.word	qtrue
	.word	FLAG_TAKEN_RED
	.word	FLAG_TAKEN_BLUE
	.size	CG_OtherTeamHasFlag, .-CG_OtherTeamHasFlag
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	cgs,16,4
	.comm	cg,4,4
	.comm	TEAM_RED,4,4
	.comm	TEAM_BLUE,4,4
	.comm	PERS_TEAM,4,4
	.comm	GT_CTF,4,4
	.comm	GT_1FCTF,4,4
	.comm	FLAG_TAKEN_RED,4,4
	.comm	FLAG_TAKEN_BLUE,4,4
	.comm	FLAG_TAKEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
