	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawPlayerAmmoIcon
_CG_DrawPlayerAmmoIcon:                 ## @CG_DrawPlayerAmmoIcon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_cg@GOTPCREL(%rip), %rax
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.1:
	movq	_cg_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	16(%rax), %rdx
	movq	(%rdx), %rdx
	movq	_cg_draw3dIcons@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.2:
	movq	_cg_drawIcons@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
LBB0_3:
	movq	_cg_weapons@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rax
	shlq	$4, %rax
	movq	8(%rcx,%rax), %r8
	testq	%r8, %r8
	je	LBB0_9
## %bb.4:
	movl	12(%rdi), %eax
	movl	8(%rdi), %esi
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	movl	%eax, %edi
	popq	%rbp
	jmp	_CG_DrawPic                     ## TAILCALL
LBB0_5:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:
	movq	(%r8,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_cg_weapons@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	cmpq	$0, (%rcx,%rax)
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
LBB0_8:
	callq	_CG_DrawPlayerAmmoIcon.cold.1
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function CG_DrawPlayerAmmoIcon.cold.1
_CG_DrawPlayerAmmoIcon.cold.1:          ## @CG_DrawPlayerAmmoIcon.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
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_entities,8,3                ## @cg_entities
	.comm	_cg,24,3                        ## @cg
	.comm	_cg_draw3dIcons,8,3             ## @cg_draw3dIcons
	.comm	_cg_drawIcons,8,3               ## @cg_drawIcons
	.comm	_cg_weapons,8,3                 ## @cg_weapons
	.comm	_YAW,8,3                        ## @YAW
	.no_dead_strip	_CG_DrawPlayerAmmoIcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawPlayerAmmoIcon
_CG_DrawPlayerAmmoIcon:                 ; @CG_DrawPlayerAmmoIcon
	.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
Lloh0:
	adrp	x8, _cg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
	cbnz	x1, LBB0_6
; %bb.1:
Lloh2:
	adrp	x9, _cg_draw3dIcons@GOTPAGE
Lloh3:
	ldr	x9, [x9, _cg_draw3dIcons@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _cg_drawIcons@GOTPAGE
Lloh6:
	ldr	x10, [x10, _cg_drawIcons@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, #0
	ccmp	x10, #0, #4, eq
	b.ne	LBB0_6
; %bb.2:
	cbz	x9, LBB0_8
; %bb.3:
Lloh8:
	adrp	x9, _cg_entities@GOTPAGE
Lloh9:
	ldr	x9, [x9, _cg_entities@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_8
; %bb.4:
Lloh11:
	adrp	x9, _cg_weapons@GOTPAGE
Lloh12:
	ldr	x9, [x9, _cg_weapons@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	lsl	x8, x8, #4
	ldr	x8, [x9, x8]
	cbz	x8, LBB0_8
; %bb.5:
	bl	_CG_DrawPlayerAmmoIcon.cold.1
LBB0_6:
Lloh14:
	adrp	x9, _cg_weapons@GOTPAGE
Lloh15:
	ldr	x9, [x9, _cg_weapons@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	add	x8, x9, x8, lsl #4
	ldr	x4, [x8, #8]
	cbz	x4, LBB0_8
; %bb.7:
	ldp	w1, w8, [x0, #8]
	ldp	w3, w2, [x0]
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_CG_DrawPic
LBB0_8:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function CG_DrawPlayerAmmoIcon.cold.1
_CG_DrawPlayerAmmoIcon.cold.1:          ; @CG_DrawPlayerAmmoIcon.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
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_entities,8,3                ; @cg_entities
	.comm	_cg,24,3                        ; @cg
	.comm	_cg_draw3dIcons,8,3             ; @cg_draw3dIcons
	.comm	_cg_drawIcons,8,3               ; @cg_drawIcons
	.comm	_cg_weapons,8,3                 ; @cg_weapons
	.comm	_YAW,8,3                        ; @YAW
	.no_dead_strip	_CG_DrawPlayerAmmoIcon
.subsections_via_symbols
