	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CG_DrawScriptMessage
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_DrawScriptMessage:                  ## @CG_DrawScriptMessage
	.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	$104, %rsp
	.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)
	movl	$0, -132(%rbp)
	movl	$0, -136(%rbp)
	movl	$0, -144(%rbp)
	movl	$1, -140(%rbp)
	movq	_SCREEN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCREEN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIGCHAR_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$4, %rdx
	movl	$80, %ecx
	callq	_dmlab_make_screen_messages
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = <1.0E+0,1.0E+0,u,u>
	leaq	-128(%rbp), %r15
	leaq	-140(%rbp), %r13
	movq	_qfalse@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_CG_DrawStrlen
	movq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	imull	%r9d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	-132(%rbp), %edi
	subl	%ecx, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, -132(%rbp)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = <1.0E+0,1.0E+0,u,u>
	movl	-136(%rbp), %esi
	movl	(%r12), %ecx
	xorl	%r8d, %r8d
	cmpl	$0, -140(%rbp)
	setne	%r8b
	movq	%r15, %rdx
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = <1.0E+0,1.0E+0,u,u>
	pushq	$0
	movq	_BIGCHAR_HEIGHT@GOTPCREL(%rip), %rax
	pushq	(%rax)
	callq	_CG_DrawStringExt
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = <1.0E+0,1.0E+0,u,u>
	addq	$16, %rsp
	incl	%ebx
	cmpl	%ebx, %r14d
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	leaq	-132(%rbp), %rdx
	leaq	-136(%rbp), %rcx
	leaq	-144(%rbp), %r8
	movq	%r13, %r9
	movaps	%xmm0, %xmm1
	callq	_dmlab_get_screen_message
	addl	$2, -136(%rbp)
	movl	-144(%rbp), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-132(%rbp), %edi
	movq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_CG_DrawStrlen
	movq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	imull	%r9d, %eax
	movl	-132(%rbp), %edi
	subl	%eax, %edi
	jmp	LBB0_7
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREEN_WIDTH,4,2               ## @SCREEN_WIDTH
	.comm	_SCREEN_HEIGHT,4,2              ## @SCREEN_HEIGHT
	.comm	_BIGCHAR_HEIGHT,8,3             ## @BIGCHAR_HEIGHT
	.comm	_BIGCHAR_WIDTH,4,2              ## @BIGCHAR_WIDTH
	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_CG_DrawScriptMessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawScriptMessage
_CG_DrawScriptMessage:                  ; @CG_DrawScriptMessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #16]
	mov	w8, #1
	stp	w8, wzr, [sp, #8]
Lloh3:
	adrp	x8, _SCREEN_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCREEN_WIDTH@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SCREEN_HEIGHT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCREEN_HEIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x21, _BIGCHAR_HEIGHT@GOTPAGE
Lloh10:
	ldr	x21, [x21, _BIGCHAR_HEIGHT@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x2, x8, #4
	mov	w3, #80
	bl	_dmlab_make_screen_messages
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	w20, #0
Lloh11:
	adrp	x22, _BIGCHAR_WIDTH@GOTPAGE
Lloh12:
	ldr	x22, [x22, _BIGCHAR_WIDTH@GOTPAGEOFF]
Lloh13:
	adrp	x23, _qfalse@GOTPAGE
Lloh14:
	ldr	x23, [x23, _qfalse@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_CG_DrawStrlen
	ldr	w5, [x22]
	mul	w8, w5, w0
	cmp	w8, #0
	cinc	w8, w8, lt
	ldr	w9, [sp, #20]
	sub	w0, w9, w8, asr #1
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w0, [sp, #20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #16]
	ldr	w3, [x23]
	ldr	w8, [sp, #8]
	cmp	w8, #0
	cset	w4, ne
	ldr	x6, [x21]
	add	x2, sp, #24
	fmov	s0, #1.00000000
	fmov	s1, #1.00000000
	fmov	s2, #1.00000000
	fmov	s3, #1.00000000
	mov	w7, #0
	bl	_CG_DrawStringExt
	add	w20, w20, #1
	cmp	w19, w20
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #16
	add	x4, sp, #12
	fmov	s0, #1.00000000
	fmov	s1, #1.00000000
	add	x5, sp, #8
	fmov	s2, #1.00000000
	fmov	s3, #1.00000000
	mov	x0, x20
	bl	_dmlab_get_screen_message
	ldr	w8, [sp, #16]
	add	w8, w8, #2
	str	w8, [sp, #16]
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #20]
	ldr	w5, [x22]
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	bl	_CG_DrawStrlen
	ldr	w5, [x22]
	ldr	w8, [sp, #20]
	msub	w0, w5, w0, w8
	b	LBB0_3
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREEN_WIDTH,4,2               ; @SCREEN_WIDTH
	.comm	_SCREEN_HEIGHT,4,2              ; @SCREEN_HEIGHT
	.comm	_BIGCHAR_HEIGHT,8,3             ; @BIGCHAR_HEIGHT
	.comm	_BIGCHAR_WIDTH,4,2              ; @BIGCHAR_WIDTH
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_CG_DrawScriptMessage
.subsections_via_symbols
