	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawPlayerArmorIcon
_CG_DrawPlayerArmorIcon:                ## @CG_DrawPlayerArmorIcon
	.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_drawStatus@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	testq	%rsi, %rsi
	jne	LBB0_7
## %bb.2:
	movq	_cg_draw3dIcons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_cg_drawIcons@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
LBB0_7:
	movl	16(%rdi), %eax
	movq	8(%rdi), %rsi
	movl	(%rdi), %ecx
	movl	4(%rdi), %edx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	movslq	%edi, %rdi
	addq	%rdi, %rsi
	incq	%rsi
	movq	_cgs@GOTPCREL(%rip), %rdi
	movl	4(%rdi), %r8d
	movl	%eax, %edi
	popq	%rbp
	jmp	_CG_DrawPic                     ## TAILCALL
LBB0_4:
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	popq	%rbp
	retq
LBB0_5:
	callq	_CG_DrawPlayerArmorIcon.cold.1
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function CG_DrawPlayerArmorIcon.cold.1
_CG_DrawPlayerArmorIcon.cold.1:         ## @CG_DrawPlayerArmorIcon.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_drawStatus,8,3              ## @cg_drawStatus
	.comm	_cg_draw3dIcons,8,3             ## @cg_draw3dIcons
	.comm	_cg_drawIcons,8,3               ## @cg_drawIcons
	.comm	_cgs,8,2                        ## @cgs
	.comm	_cg,4,2                         ## @cg
	.comm	_YAW,8,3                        ## @YAW
	.no_dead_strip	_CG_DrawPlayerArmorIcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawPlayerArmorIcon
_CG_DrawPlayerArmorIcon:                ; @CG_DrawPlayerArmorIcon
	.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_drawStatus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_drawStatus@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	cbnz	x1, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _cg_draw3dIcons@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cg_draw3dIcons@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _cg_drawIcons@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cg_drawIcons@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_5
; %bb.3:
	cbnz	x8, LBB0_6
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x0, #16]
	ldr	x9, [x0, #8]
	ldp	w3, w2, [x0]
	cmp	w3, #0
	cinc	w10, w3, lt
	asr	w10, w10, #1
	add	x9, x9, w10, sxtw
	add	x1, x9, #1
Lloh9:
	adrp	x9, _cgs@GOTPAGE
Lloh10:
	ldr	x9, [x9, _cgs@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x9, #4]
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_CG_DrawPic
LBB0_6:
	bl	_CG_DrawPlayerArmorIcon.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function CG_DrawPlayerArmorIcon.cold.1
_CG_DrawPlayerArmorIcon.cold.1:         ; @CG_DrawPlayerArmorIcon.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_drawStatus,8,3              ; @cg_drawStatus
	.comm	_cg_draw3dIcons,8,3             ; @cg_draw3dIcons
	.comm	_cg_drawIcons,8,3               ; @cg_drawIcons
	.comm	_cgs,8,2                        ; @cgs
	.comm	_cg,4,2                         ; @cg
	.comm	_YAW,8,3                        ; @YAW
	.no_dead_strip	_CG_DrawPlayerArmorIcon
.subsections_via_symbols
