	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawFlagModel               ## -- Begin function CG_DrawFlagModel
	.p2align	4, 0x90
_CG_DrawFlagModel:                      ## @CG_DrawFlagModel
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movss	%xmm3, -24(%rbp)                ## 4-byte Spill
	movss	%xmm2, -20(%rbp)                ## 4-byte Spill
	movss	%xmm1, -16(%rbp)                ## 4-byte Spill
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	testl	%esi, %esi
	jne	LBB0_3
## %bb.1:
	movq	_cg_draw3dIcons@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
LBB0_3:
	movq	_cg_drawIcons@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.4:
	movq	_TEAM_RED@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_PW_REDFLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_PW_BLUEFLAG@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_TEAM_FREE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	_PW_NEUTRALFLAG@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_BG_FindItemForPowerup
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_cg_items@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	%rax, %rdi
	callq	_ITEM_INDEX
	movl	(%rbx,%rax,4), %edi
	movss	-12(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-16(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-20(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-24(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_DrawPic                     ## TAILCALL
LBB0_2:
	callq	_CG_DrawFlagModel.cold.1
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function CG_DrawFlagModel.cold.1
_CG_DrawFlagModel.cold.1:               ## @CG_DrawFlagModel.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_VectorClear
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	8(%rax), %edi
	callq	_trap_R_ModelBounds
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_draw3dIcons,8,3             ## @cg_draw3dIcons
	.comm	_cgs,12,2                       ## @cgs
	.comm	_cg,8,3                         ## @cg
	.comm	_YAW,8,3                        ## @YAW
	.comm	_TEAM_RED,4,2                   ## @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ## @TEAM_BLUE
	.comm	_TEAM_FREE,4,2                  ## @TEAM_FREE
	.comm	_cg_drawIcons,8,3               ## @cg_drawIcons
	.comm	_PW_REDFLAG,4,2                 ## @PW_REDFLAG
	.comm	_PW_BLUEFLAG,4,2                ## @PW_BLUEFLAG
	.comm	_PW_NEUTRALFLAG,4,2             ## @PW_NEUTRALFLAG
	.comm	_cg_items,8,3                   ## @cg_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawFlagModel               ; -- Begin function CG_DrawFlagModel
	.p2align	2
_CG_DrawFlagModel:                      ; @CG_DrawFlagModel
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	fmov	s8, s3
	fmov	s9, s2
	fmov	s10, s1
	fmov	s11, s0
	cbnz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _cg_draw3dIcons@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_draw3dIcons@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
LBB0_2:
Lloh3:
	adrp	x8, _cg_drawIcons@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cg_drawIcons@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.3:
Lloh6:
	adrp	x8, _TEAM_RED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TEAM_RED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _PW_REDFLAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PW_REDFLAG@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _TEAM_BLUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TEAM_BLUE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _PW_BLUEFLAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PW_BLUEFLAG@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _TEAM_FREE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TEAM_FREE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_11
; %bb.8:
Lloh19:
	adrp	x8, _PW_NEUTRALFLAG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PW_NEUTRALFLAG@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	bl	_BG_FindItemForPowerup
	cbz	x0, LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _cg_items@GOTPAGE
Lloh22:
	ldr	x8, [x8, _cg_items@GOTPAGEOFF]
Lloh23:
	ldr	x19, [x8]
	bl	_ITEM_INDEX
	ldr	w0, [x19, x0, lsl #2]
	fmov	s0, s11
	fmov	s1, s10
	fmov	s2, s9
	fmov	s3, s8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	b	_CG_DrawPic
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	_CG_DrawFlagModel.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function CG_DrawFlagModel.cold.1
_CG_DrawFlagModel.cold.1:               ; @CG_DrawFlagModel.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_VectorClear
Lloh24:
	adrp	x8, _cgs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8, #8]
	bl	_trap_R_ModelBounds
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_draw3dIcons,8,3             ; @cg_draw3dIcons
	.comm	_cgs,12,2                       ; @cgs
	.comm	_cg,8,3                         ; @cg
	.comm	_YAW,8,3                        ; @YAW
	.comm	_TEAM_RED,4,2                   ; @TEAM_RED
	.comm	_TEAM_BLUE,4,2                  ; @TEAM_BLUE
	.comm	_TEAM_FREE,4,2                  ; @TEAM_FREE
	.comm	_cg_drawIcons,8,3               ; @cg_drawIcons
	.comm	_PW_REDFLAG,4,2                 ; @PW_REDFLAG
	.comm	_PW_BLUEFLAG,4,2                ; @PW_BLUEFLAG
	.comm	_PW_NEUTRALFLAG,4,2             ; @PW_NEUTRALFLAG
	.comm	_cg_items,8,3                   ; @cg_items
.subsections_via_symbols
