	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CG_DrawCrosshair
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_DrawCrosshair:                      ## @CG_DrawCrosshair
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg_drawCrosshair@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_9
## %bb.1:
	movq	_cg@GOTPCREL(%rip), %rbx
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_PERS_TEAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.2:
	cmpq	$0, 24(%rbx)
	jne	LBB0_9
## %bb.3:
	movq	_cg_crosshairHealth@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_trap_R_SetColor
	movq	_cg_crosshairSize@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -28(%rbp)
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	subss	4(%rbx), %xmm1
	movss	%xmm0, -32(%rbp)
	xorps	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm1
	jbe	LBB0_8
## %bb.6:
	movq	_ITEM_BLOB_TIME@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	jbe	LBB0_8
## %bb.7:
	divss	%xmm2, %xmm1
	addss	LCPI0_0(%rip), %xmm1
	mulss	%xmm1, %xmm0
	movss	%xmm0, -32(%rbp)
	movss	%xmm0, -28(%rbp)
LBB0_8:
	movq	_cg_crosshairX@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -40(%rbp)
	movq	_cg_crosshairY@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -36(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	callq	_CG_AdjustFrom640
	movl	(%r14), %eax
	testl	%eax, %eax
	cmovlel	%r15d, %eax
	movq	_cgs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_NUM_CROSSHAIRS@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rcx,%rdx,4), %r8d
	movss	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	addss	8(%rbx), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movss	-32(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movss	12(%rbx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm1
	cvtss2sd	%xmm1, %xmm1
	movsd	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm1
	addsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm1, %xmm0
	movss	20(%rbx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	movss	-36(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	addss	16(%rbx), %xmm3
	cvtss2sd	%xmm3, %xmm5
	movss	-28(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm3, %xmm1
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm4, %xmm1
	addsd	%xmm5, %xmm1
	cvtsd2ss	%xmm1, %xmm1
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_trap_R_DrawStretchPic
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	_CG_DrawCrosshair.cold.1
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function CG_DrawCrosshair.cold.1
_CG_DrawCrosshair.cold.1:               ## @CG_DrawCrosshair.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	_CG_ColorForHealth
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_drawCrosshair,4,2           ## @cg_drawCrosshair
	.comm	_cg,40,3                        ## @cg
	.comm	_PERS_TEAM,8,3                  ## @PERS_TEAM
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_cg_crosshairHealth,8,3         ## @cg_crosshairHealth
	.comm	_cg_crosshairSize,4,2           ## @cg_crosshairSize
	.comm	_ITEM_BLOB_TIME,4,2             ## @ITEM_BLOB_TIME
	.comm	_cg_crosshairX,4,2              ## @cg_crosshairX
	.comm	_cg_crosshairY,4,2              ## @cg_crosshairY
	.comm	_cgs,8,3                        ## @cgs
	.comm	_NUM_CROSSHAIRS,4,2             ## @NUM_CROSSHAIRS
	.no_dead_strip	_CG_DrawCrosshair
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawCrosshair
_CG_DrawCrosshair:                      ; @CG_DrawCrosshair
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x20, _cg_drawCrosshair@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg_drawCrosshair@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.1:
Lloh2:
	adrp	x19, _cg@GOTPAGE
Lloh3:
	ldr	x19, [x19, _cg@GOTPAGEOFF]
	ldp	x9, x8, [x19, #24]
	ldr	x8, [x8]
Lloh4:
	adrp	x10, _PERS_TEAM@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PERS_TEAM@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
Lloh7:
	adrp	x10, _TEAM_SPECTATOR@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_7
; %bb.2:
Lloh10:
	adrp	x8, _cg_crosshairHealth@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cg_crosshairHealth@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbnz	x8, LBB0_8
; %bb.3:
	mov	x0, #0
	bl	_trap_R_SetColor
Lloh13:
	adrp	x8, _cg_crosshairSize@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cg_crosshairSize@GOTPAGEOFF]
Lloh15:
	ldr	s0, [x8]
	stp	s0, s0, [sp, #8]
	ldp	s1, s2, [x19]
	fsub	s1, s1, s2
	fcmp	s1, #0.0
	b.le	LBB0_6
; %bb.4:
Lloh16:
	adrp	x8, _ITEM_BLOB_TIME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ITEM_BLOB_TIME@GOTPAGEOFF]
Lloh18:
	ldr	s2, [x8]
	fcmp	s1, s2
	b.pl	LBB0_6
; %bb.5:
	fdiv	s1, s1, s2
	fmov	s2, #1.00000000
	fadd	s1, s1, s2
	fmul	s0, s0, s1
	stp	s0, s0, [sp, #8]
LBB0_6:
Lloh19:
	adrp	x8, _cg_crosshairX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _cg_crosshairX@GOTPAGEOFF]
Lloh21:
	ldr	s0, [x8]
	str	s0, [sp, #4]
Lloh22:
	adrp	x8, _cg_crosshairY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cg_crosshairY@GOTPAGEOFF]
Lloh24:
	ldr	s0, [x8]
	str	s0, [sp]
	add	x0, sp, #4
	mov	x1, sp
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_CG_AdjustFrom640
	ldr	w8, [x20]
Lloh25:
	adrp	x9, _cgs@GOTPAGE
Lloh26:
	ldr	x9, [x9, _cgs@GOTPAGEOFF]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
Lloh27:
	ldr	x9, [x9]
Lloh28:
	adrp	x10, _NUM_CROSSHAIRS@GOTPAGE
Lloh29:
	ldr	x10, [x10, _NUM_CROSSHAIRS@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	sdiv	w11, w8, w10
	msub	w8, w11, w10, w8
	ldr	w4, [x9, w8, uxtw #2]
	ldr	s0, [sp, #4]
	ldp	s1, s3, [x19, #8]
	fadd	s0, s0, s1
	fcvt	d0, s0
	ldr	s2, [sp, #12]
	fsub	s1, s3, s2
	fcvt	d1, s1
	fmov	d4, #0.50000000
	fmadd	d0, d1, d4, d0
	fcvt	s0, d0
	ldr	s1, [sp]
	ldp	s3, s5, [x19, #16]
	fadd	s1, s1, s3
	fcvt	d1, s1
	ldr	s3, [sp, #8]
	fsub	s5, s5, s3
	fcvt	d5, s5
	fmadd	d1, d5, d4, d1
	fcvt	s1, d1
	mov	w0, #0
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	bl	_trap_R_DrawStretchPic
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	bl	_CG_DrawCrosshair.cold.1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function CG_DrawCrosshair.cold.1
_CG_DrawCrosshair.cold.1:               ; @CG_DrawCrosshair.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	_CG_ColorForHealth
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_drawCrosshair,4,2           ; @cg_drawCrosshair
	.comm	_cg,40,3                        ; @cg
	.comm	_PERS_TEAM,8,3                  ; @PERS_TEAM
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_cg_crosshairHealth,8,3         ; @cg_crosshairHealth
	.comm	_cg_crosshairSize,4,2           ; @cg_crosshairSize
	.comm	_ITEM_BLOB_TIME,4,2             ; @ITEM_BLOB_TIME
	.comm	_cg_crosshairX,4,2              ; @cg_crosshairX
	.comm	_cg_crosshairY,4,2              ; @cg_crosshairY
	.comm	_cgs,8,3                        ; @cgs
	.comm	_NUM_CROSSHAIRS,4,2             ; @NUM_CROSSHAIRS
	.no_dead_strip	_CG_DrawCrosshair
.subsections_via_symbols
