	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CG_DrawAmmoWarning
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_DrawAmmoWarning:                    ## @CG_DrawAmmoWarning
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_cg_drawAmmoWarning@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_cg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rbx
LBB0_5:
	movq	%rbx, %rdi
	callq	_CG_DrawStrlen
	movq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	$320, %edi                      ## imm = 0x140
	subl	%ecx, %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	$64, %esi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_DrawBigString               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_drawAmmoWarning,8,3         ## @cg_drawAmmoWarning
	.comm	_cg,4,2                         ## @cg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OUT OF AMMO"

L_.str.1:                               ## @.str.1
	.asciz	"LOW AMMO WARNING"

	.comm	_BIGCHAR_WIDTH,4,2              ## @BIGCHAR_WIDTH
	.no_dead_strip	_CG_DrawAmmoWarning
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawAmmoWarning
_CG_DrawAmmoWarning:                    ; @CG_DrawAmmoWarning
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _cg_drawAmmoWarning@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_drawAmmoWarning@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _cg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w8, #2
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x19, x9, x8, eq
	mov	x0, x19
	bl	_CG_DrawStrlen
Lloh10:
	adrp	x8, _BIGCHAR_WIDTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BIGCHAR_WIDTH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mul	w8, w8, w0
	cmp	w8, #0
	cinc	w8, w8, lt
	mov	w9, #320
	sub	w0, w9, w8, asr #1
	fmov	s0, #1.00000000
	mov	w1, #64
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CG_DrawBigString
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_drawAmmoWarning,8,3         ; @cg_drawAmmoWarning
	.comm	_cg,4,2                         ; @cg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OUT OF AMMO"

l_.str.1:                               ; @.str.1
	.asciz	"LOW AMMO WARNING"

	.comm	_BIGCHAR_WIDTH,4,2              ; @BIGCHAR_WIDTH
	.no_dead_strip	_CG_DrawAmmoWarning
.subsections_via_symbols
