	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawSelectedPlayerHead
_CG_DrawSelectedPlayerHead:             ## @CG_DrawSelectedPlayerHead
	.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	%rdi, %r14
	movq	_cgs@GOTPCREL(%rip), %rax
	movq	8(%rax), %rbx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movq	_sortedTeamPlayers@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_CG_GetSelectedPlayer
	leaq	(%r15,%rax,4), %rax
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_3:
	movslq	(%rax), %r15
	movq	_cg_draw3dIcons@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	(%r15,%r15,2), %rax
	movl	16(%rbx,%rax,8), %edi
	testl	%edi, %edi
	jne	LBB0_5
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_cg_drawIcons@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movl	12(%r14), %edi
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	(%r15,%r15,2), %rax
	movl	8(%rbx,%rax,8), %r8d
	callq	_CG_DrawPic
LBB0_8:
	leaq	(%r15,%r15,2), %rax
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_9
## %bb.10:
	movl	12(%r14), %edi
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	4(%rax), %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_DrawPic                     ## TAILCALL
LBB0_5:
	callq	_CG_DrawSelectedPlayerHead.cold.1
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function CG_DrawSelectedPlayerHead.cold.1
_CG_DrawSelectedPlayerHead.cold.1:      ## @CG_DrawSelectedPlayerHead.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	_trap_R_ModelBounds
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_cgs,16,3                       ## @cgs
	.comm	_sortedTeamPlayers,8,3          ## @sortedTeamPlayers
	.comm	_cg_draw3dIcons,8,3             ## @cg_draw3dIcons
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_YAW,8,3                        ## @YAW
	.comm	_ROLL,8,3                       ## @ROLL
	.comm	_cg_drawIcons,8,3               ## @cg_drawIcons
	.no_dead_strip	_CG_DrawSelectedPlayerHead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawSelectedPlayerHead
_CG_DrawSelectedPlayerHead:             ; @CG_DrawSelectedPlayerHead
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _cgs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cgs@GOTPAGEOFF]
	ldr	x21, [x20, #8]
	mov	x8, x20
	cbz	x2, LBB0_2
; %bb.1:
	cbnz	x21, LBB0_3
	b	LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _sortedTeamPlayers@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sortedTeamPlayers@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
	bl	_CG_GetSelectedPlayer
	add	x8, x22, x0, lsl #2
	cbz	x21, LBB0_5
LBB0_3:
	ldrsw	x22, [x8]
Lloh5:
	adrp	x8, _cg_draw3dIcons@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cg_draw3dIcons@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w0, [x8, #16]
	cbnz	w0, LBB0_10
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:
Lloh8:
	adrp	x8, _cg_drawIcons@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cg_drawIcons@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x19]
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	w4, [x8, #8]
	bl	_CG_DrawPic
LBB0_8:
	mov	w8, #24
	mul	x8, x22, x8
	ldr	x8, [x21, x8]
	cbz	x8, LBB0_5
; %bb.9:
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x19]
	ldr	w4, [x20, #4]
	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
LBB0_10:
	bl	_CG_DrawSelectedPlayerHead.cold.1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function CG_DrawSelectedPlayerHead.cold.1
_CG_DrawSelectedPlayerHead.cold.1:      ; @CG_DrawSelectedPlayerHead.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	_trap_R_ModelBounds
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_cgs,16,3                       ; @cgs
	.comm	_sortedTeamPlayers,8,3          ; @sortedTeamPlayers
	.comm	_cg_draw3dIcons,8,3             ; @cg_draw3dIcons
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_YAW,8,3                        ; @YAW
	.comm	_ROLL,8,3                       ; @ROLL
	.comm	_cg_drawIcons,8,3               ; @cg_drawIcons
	.no_dead_strip	_CG_DrawSelectedPlayerHead
.subsections_via_symbols
