	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CG_DrawCenterString
LCPI0_0:
	.quad	0x3ff8000000000000              ## double 1.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_DrawCenterString:                   ## @CG_DrawCenterString
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_cg@GOTPCREL(%rip), %r12
	movl	20(%r12), %edi
	testl	%edi, %edi
	je	LBB0_25
## %bb.1:
	movq	_cg_centertime@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %esi             ## imm = 0x3E8
	callq	_CG_FadeColor
	testq	%rax, %rax
	je	LBB0_25
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_trap_R_SetColor
	movq	(%r12), %rbx
	movl	8(%r12), %r13d
	movq	_BIGCHAR_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	12(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r13d
	movq	%r14, -1080(%rbp)               ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	%al, %al
	je	LBB0_24
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	movl	$4, %eax
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-4(%rbx,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$10, %cl
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movb	%cl, -1076(%rbp,%rax)
	movzbl	-3(%rbx,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$10, %cl
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movb	%cl, -1075(%rbp,%rax)
	movzbl	-2(%rbx,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$10, %cl
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movb	%cl, -1074(%rbp,%rax)
	movzbl	-1(%rbx,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$10, %cl
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movb	%cl, -1073(%rbp,%rax)
	movzbl	(%rbx,%rax), %ecx
	testb	%cl, %cl
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$10, %cl
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movb	%cl, -1072(%rbp,%rax)
	addq	$5, %rax
	cmpq	$54, %rax
	jne	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$50, %eax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$-4, %rax
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$-3, %rax
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$-2, %rax
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	decq	%rax
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %eax
	movb	$0, -1072(%rbp,%rax)
	movl	16(%r12), %r14d
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	callq	_CG_DrawStrlen
	imull	%r14d, %eax
	movq	_SCREEN_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%eax, %ecx
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	16(%r12), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r10d
	subq	$8, %rsp
	movl	%r13d, %esi
	movq	%r15, %rdx
	movq	-1080(%rbp), %rcx               ## 8-byte Reload
	pushq	$0
	pushq	%r10
	pushq	%rax
	callq	_CG_DrawStringExt
	addq	$32, %rsp
	xorps	%xmm0, %xmm0
	cvtsi2sdl	16(%r12), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r13d, %xmm1
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r13d
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	cmpb	$10, %al
	jne	LBB0_21
	jmp	LBB0_23
LBB0_24:
	xorl	%edi, %edi
	callq	_trap_R_SetColor
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,24,3                        ## @cg
	.comm	_cg_centertime,4,2              ## @cg_centertime
	.comm	_BIGCHAR_HEIGHT,4,2             ## @BIGCHAR_HEIGHT
	.comm	_SCREEN_WIDTH,4,2               ## @SCREEN_WIDTH
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_ITEM_TEXTSTYLE_SHADOWEDMORE,4,2 ## @ITEM_TEXTSTYLE_SHADOWEDMORE
	.no_dead_strip	_CG_DrawCenterString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawCenterString
_CG_DrawCenterString:                   ; @CG_DrawCenterString
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x21, _cg@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cg@GOTPAGEOFF]
	ldr	w0, [x21, #20]
	cbz	w0, LBB0_10
; %bb.1:
Lloh5:
	adrp	x8, _cg_centertime@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cg_centertime@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w1, w8, w9
	bl	_CG_FadeColor
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
	bl	_trap_R_SetColor
	ldr	x22, [x21]
	ldp	w8, w9, [x21, #8]
Lloh8:
	adrp	x10, _BIGCHAR_HEIGHT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BIGCHAR_HEIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	mul	w9, w10, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	sub	w20, w8, w9, asr #1
Lloh11:
	adrp	x23, _SCREEN_WIDTH@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SCREEN_WIDTH@GOTPAGEOFF]
	add	x24, sp, #8
Lloh13:
	adrp	x25, _qfalse@GOTPAGE
Lloh14:
	ldr	x25, [x25, _qfalse@GOTPAGEOFF]
Lloh15:
	adrp	x26, _qtrue@GOTPAGE
Lloh16:
	ldr	x26, [x26, _qtrue@GOTPAGEOFF]
	fmov	d8, #1.50000000
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	mov	x8, #0
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x22, x8]
	cmp	w9, #0
	ccmp	w9, #10, #4, ne
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	strb	w9, [x24, x8]
	add	x8, x8, #1
	cmp	x8, #50
	b.ne	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x24, w8, uxtw]
	ldr	w27, [x21, #16]
	add	x0, sp, #8
	bl	_CG_DrawStrlen
	ldr	w8, [x23]
	msub	w8, w0, w27, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	ldr	w4, [x25]
	ldr	w5, [x26]
	ldr	w6, [x21, #16]
	scvtf	d0, w6
	fmul	d0, d0, d8
	fcvtzs	w7, d0
	str	wzr, [sp]
	add	x2, sp, #8
	mov	x1, x20
	mov	x3, x19
	bl	_CG_DrawStringExt
	ldr	s0, [x21, #16]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	scvtf	d1, w20
	fmadd	d0, d0, d8, d1
	fcvtzs	w20, d0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x22, x22, #1
	ldurb	w8, [x22, #-1]
	cmp	w8, #0
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w8, LBB0_3
; %bb.9:
	mov	x0, #0
	bl	_trap_R_SetColor
LBB0_10:
	ldur	x8, [x29, #-104]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,24,3                        ; @cg
	.comm	_cg_centertime,4,2              ; @cg_centertime
	.comm	_BIGCHAR_HEIGHT,4,2             ; @BIGCHAR_HEIGHT
	.comm	_SCREEN_WIDTH,4,2               ; @SCREEN_WIDTH
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_ITEM_TEXTSTYLE_SHADOWEDMORE,4,2 ; @ITEM_TEXTSTYLE_SHADOWEDMORE
	.no_dead_strip	_CG_DrawCenterString
.subsections_via_symbols
