	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawPlayerArmorValue
_CG_DrawPlayerArmorValue:               ## @CG_DrawPlayerArmorValue
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r12
	movq	%r14, %rdi
	callq	_trap_R_SetColor
	movq	24(%rbx), %rdi
	movq	16(%rbx), %rsi
	movl	(%rbx), %edx
	movq	8(%rbx), %rcx
	movq	%r12, %r8
	callq	_CG_DrawPic
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.2:
	xorl	%edi, %edi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_R_SetColor                ## TAILCALL
LBB0_3:
	movl	%ecx, %r15d
	movq	_cg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_STAT_ARMOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	callq	_Com_sprintf
	movq	%r12, %rdi
	movss	-68(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	xorl	%esi, %esi
	callq	_CG_Text_Width
	movl	(%rbx), %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movslq	%eax, %rdi
	addq	24(%rbx), %rdi
	movq	8(%rbx), %rsi
	addq	16(%rbx), %rsi
	movl	%r15d, (%rsp)
	movss	-68(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CG_Text_Paint
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,8,3                         ## @cg
	.comm	_STAT_ARMOR,8,3                 ## @STAT_ARMOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i"

	.no_dead_strip	_CG_DrawPlayerArmorValue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawPlayerArmorValue
_CG_DrawPlayerArmorValue:               ; @CG_DrawPlayerArmorValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x0, x20
	bl	_trap_R_SetColor
	ldp	x1, x0, [x21, #16]
	ldr	w2, [x21]
	ldr	x3, [x21, #8]
	mov	x4, x22
	bl	_CG_DrawPic
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_trap_R_SetColor
LBB0_3:
	mov	x19, x3
	fmov	s8, s0
Lloh6:
	adrp	x8, _cg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _STAT_ARMOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STAT_ARMOR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w3, [x8, x9, lsl #2]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_Com_sprintf
	add	x0, sp, #8
	fmov	s0, s8
	mov	w1, #0
	bl	_CG_Text_Width
	ldr	x8, [x21, #24]
	ldr	w9, [x21]
	sub	w9, w9, w0
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x0, x8, w9, sxtw
	ldp	x9, x8, [x21, #8]
	add	x1, x9, x8
	add	x3, sp, #8
	fmov	s0, s8
	mov	x2, x20
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_CG_Text_Paint
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,8,3                         ; @cg
	.comm	_STAT_ARMOR,8,3                 ; @STAT_ARMOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i"

	.no_dead_strip	_CG_DrawPlayerArmorValue
.subsections_via_symbols
