	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawSelectedPlayerWeapon
_CG_DrawSelectedPlayerWeapon:           ## @CG_DrawSelectedPlayerWeapon
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_cgs@GOTPCREL(%rip), %r14
	movq	8(%r14), %r15
	movq	_sortedTeamPlayers@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_CG_GetSelectedPlayer
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movslq	(%r12,%rax,4), %rax
	movq	_cg_weapons@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15,%rax,8), %rax
	movq	(%rcx,%rax,8), %r8
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	testq	%r8, %r8
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %r8
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_DrawPic                     ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cgs,16,3                       ## @cgs
	.comm	_sortedTeamPlayers,8,3          ## @sortedTeamPlayers
	.comm	_cg_weapons,8,3                 ## @cg_weapons
	.no_dead_strip	_CG_DrawSelectedPlayerWeapon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawSelectedPlayerWeapon
_CG_DrawSelectedPlayerWeapon:           ; @CG_DrawSelectedPlayerWeapon
	.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]
Lloh2:
	adrp	x8, _sortedTeamPlayers@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sortedTeamPlayers@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
	bl	_CG_GetSelectedPlayer
	cbz	x21, LBB0_2
; %bb.1:
	ldrsw	x8, [x22, x0, lsl #2]
Lloh5:
	adrp	x9, _cg_weapons@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cg_weapons@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x8, [x21, x8, lsl #3]
	ldr	x8, [x9, x8, lsl #3]
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x19]
	ldr	x9, [x20]
	cmp	x8, #0
	csel	x4, x9, x8, eq
	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_2:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cgs,16,3                       ; @cgs
	.comm	_sortedTeamPlayers,8,3          ; @sortedTeamPlayers
	.comm	_cg_weapons,8,3                 ; @cg_weapons
	.no_dead_strip	_CG_DrawSelectedPlayerWeapon
.subsections_via_symbols
