	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_OneFlagStatus
_CG_OneFlagStatus:                      ## @CG_OneFlagStatus
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cgs@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_GT_1FCTF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_PW_NEUTRALFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BG_FindItemForPowerup
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	8(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_9
## %bb.3:
	movq	_FLAG_TAKEN_RED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	$0, 17
	movq	$0, 9
	movl	$1, %r15d
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_FLAG_TAKEN_BLUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	$0, 9
	movq	$0, 1
	movl	$1, %r15d
	jmp	LBB0_8
LBB0_7:
	movq	_FLAG_DROPPED@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	(%rcx), %eax
	sete	%r15b
	addq	%r15, %r15
LBB0_8:
	movl	$1, %edi
	callq	_trap_R_SetColor
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_DrawPic                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cgs,24,3                       ## @cgs
	.comm	_GT_1FCTF,8,3                   ## @GT_1FCTF
	.comm	_PW_NEUTRALFLAG,4,2             ## @PW_NEUTRALFLAG
	.comm	_FLAG_TAKEN_RED,4,2             ## @FLAG_TAKEN_RED
	.comm	_FLAG_TAKEN_BLUE,4,2            ## @FLAG_TAKEN_BLUE
	.comm	_FLAG_DROPPED,4,2               ## @FLAG_DROPPED
	.no_dead_strip	_CG_OneFlagStatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_OneFlagStatus
_CG_OneFlagStatus:                      ; @CG_OneFlagStatus
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _cgs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cgs@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _GT_1FCTF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GT_1FCTF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _PW_NEUTRALFLAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PW_NEUTRALFLAG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BG_FindItemForPowerup
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.3:
Lloh8:
	adrp	x9, _FLAG_TAKEN_RED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FLAG_TAKEN_RED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
	mov	w8, #17
	str	xzr, [x8]
	mov	w8, #9
	str	xzr, [x8]
	mov	w21, #1
	b	LBB0_9
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh11:
	adrp	x9, _FLAG_TAKEN_BLUE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FLAG_TAKEN_BLUE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #9
	str	xzr, [x8]
	mov	w21, #1
	str	xzr, [x21]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x9, _FLAG_DROPPED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FLAG_DROPPED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, eq
	lsl	x21, x8, #1
LBB0_9:
	mov	w0, #1
	bl	_trap_R_SetColor
	ldp	w1, w0, [x19, #8]
	ldr	x8, [x20, #16]
	ldr	w4, [x8, x21, lsl #2]
	ldp	w3, w2, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_CG_DrawPic
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cgs,24,3                       ; @cgs
	.comm	_GT_1FCTF,8,3                   ; @GT_1FCTF
	.comm	_PW_NEUTRALFLAG,4,2             ; @PW_NEUTRALFLAG
	.comm	_FLAG_TAKEN_RED,4,2             ; @FLAG_TAKEN_RED
	.comm	_FLAG_TAKEN_BLUE,4,2            ; @FLAG_TAKEN_BLUE
	.comm	_FLAG_DROPPED,4,2               ; @FLAG_DROPPED
	.no_dead_strip	_CG_OneFlagStatus
.subsections_via_symbols
