	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_F_TextWrite                    ## -- Begin function F_TextWrite
	.p2align	4, 0x90
_F_TextWrite:                           ## @F_TextWrite
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_finaleflat@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PU_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_W_CacheLumpName
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	_screens@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_SCREENWIDTH@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$64, %edx
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	andl	$63, %eax
	shll	$6, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$64, %edx
	callq	_memcpy
	addq	$256, %rbx                      ## imm = 0x100
	incl	%r14d
	movl	(%r13), %edx
	leal	63(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$6, %eax
	cmpl	%eax, %r14d
	jl	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %eax
	andl	$63, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %ecx
	andl	$63, %ecx
	shll	$6, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_memcpy
	movl	(%r13), %edx
	movl	%edx, %eax
	andl	$63, %eax
	leaq	(%rbx,%rax,4), %rbx
	jmp	LBB0_8
LBB0_1:
	movq	_SCREENWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:
	xorl	%edi, %edi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_V_MarkRect
	movq	_finalecount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-10, %eax
	movq	_TEXTSPEED@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%eax, %eax
	jle	LBB0_19
## %bb.10:
	movq	_finaletext@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$10, %r14d
	xorl	%r13d, %r13d
	movl	$10, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	addl	$11, %r14d
	movl	$10, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movl	%ebx, %r15d
	cmpl	%r13d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax,%r13), %edi
	cmpl	$10, %edi
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	%dil, %dil
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_toupper
	movq	_HU_FONTSTART@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	js	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_HU_FONTSIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_hu_font@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %r12d
	movq	(%rcx,%r12,8), %rax
	movl	(%rax), %edi
	callq	_SHORT
	movl	%eax, %ebx
	addl	%r15d, %ebx
	movq	_SCREENWIDTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_hu_font@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rcx
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_V_DrawPatch
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addl	$4, %r15d
	movl	%r15d, %ebx
	jmp	LBB0_18
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_finaleflat,4,2                 ## @finaleflat
	.comm	_PU_CACHE,4,2                   ## @PU_CACHE
	.comm	_screens,8,3                    ## @screens
	.comm	_SCREENHEIGHT,4,2               ## @SCREENHEIGHT
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_finaletext,8,3                 ## @finaletext
	.comm	_finalecount,4,2                ## @finalecount
	.comm	_TEXTSPEED,4,2                  ## @TEXTSPEED
	.comm	_HU_FONTSTART,4,2               ## @HU_FONTSTART
	.comm	_HU_FONTSIZE,4,2                ## @HU_FONTSIZE
	.comm	_hu_font,8,3                    ## @hu_font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_F_TextWrite                    ; -- Begin function F_TextWrite
	.p2align	2
_F_TextWrite:                           ; @F_TextWrite
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _finaleflat@GOTPAGE
Lloh1:
	ldr	x8, [x8, _finaleflat@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PU_CACHE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PU_CACHE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_W_CacheLumpName
Lloh6:
	adrp	x23, _SCREENHEIGHT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SCREENHEIGHT@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh8:
	adrp	x22, _SCREENWIDTH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SCREENWIDTH@GOTPAGEOFF]
	cmp	w3, #0
	b.le	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w24, #0
Lloh10:
	adrp	x8, _screens@GOTPAGE
Lloh11:
	ldr	x8, [x8, _screens@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	w2, [x22]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w3, [x23]
	cmp	w24, w3
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ubfiz	w25, w24, #6, #6
	cmp	w2, #64
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
	add	x21, x19, w25, uxtw #2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x21
	mov	w2, #64
	bl	_memcpy
	add	x20, x20, #256
	add	w26, w26, #1
	ldr	w2, [x22]
	add	w8, w2, #63
	cmp	w2, #0
	csel	w8, w8, w2, lt
	cmp	w26, w8, asr #6
	b.lt	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ands	w8, w2, #0x3f
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x19, w25, uxtw #2
	mov	x0, x20
	mov	x2, x8
	bl	_memcpy
	ldr	w2, [x22]
	and	x8, x2, #0x3f
	add	x20, x20, x8, lsl #2
	b	LBB0_2
LBB0_8:
	ldr	w2, [x22]
LBB0_9:
	mov	w0, #0
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_V_MarkRect
Lloh13:
	adrp	x8, _finalecount@GOTPAGE
Lloh14:
	ldr	x8, [x8, _finalecount@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	sub	w8, w8, #10
Lloh16:
	adrp	x9, _TEXTSPEED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TEXTSPEED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	sdiv	w21, w8, w9
	cmp	w21, #1
	b.lt	LBB0_20
; %bb.10:
Lloh19:
	adrp	x8, _finaletext@GOTPAGE
Lloh20:
	ldr	x8, [x8, _finaletext@GOTPAGEOFF]
Lloh21:
	ldr	x23, [x8]
Lloh22:
	adrp	x24, _HU_FONTSTART@GOTPAGE
Lloh23:
	ldr	x24, [x24, _HU_FONTSTART@GOTPAGEOFF]
	mov	w19, #10
Lloh24:
	adrp	x25, _HU_FONTSIZE@GOTPAGE
Lloh25:
	ldr	x25, [x25, _HU_FONTSIZE@GOTPAGEOFF]
Lloh26:
	adrp	x26, _hu_font@GOTPAGE
Lloh27:
	ldr	x26, [x26, _hu_font@GOTPAGEOFF]
	mov	w20, #10
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w19, w19, #11
	mov	w20, #10
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	subs	w21, w21, #1
	b.eq	LBB0_20
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23], #1
	cmp	w8, #10
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w8, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	sxtb	w0, w8
	bl	_toupper
	ldr	w8, [x24]
	subs	w27, w0, w8
	b.mi	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x25]
	cmp	w27, w8
	b.gt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8, w27, uxtw #3]
	ldr	w0, [x8]
	bl	_SHORT
	ldr	w8, [x22]
	add	w28, w0, w20
	cmp	w28, w8
	b.gt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x26]
	ldr	x3, [x8, x27, lsl #3]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_V_DrawPatch
	mov	x20, x28
	b	LBB0_12
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w20, w20, #4
	b	LBB0_12
LBB0_20:
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_finaleflat,4,2                 ; @finaleflat
	.comm	_PU_CACHE,4,2                   ; @PU_CACHE
	.comm	_screens,8,3                    ; @screens
	.comm	_SCREENHEIGHT,4,2               ; @SCREENHEIGHT
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_finaletext,8,3                 ; @finaletext
	.comm	_finalecount,4,2                ; @finalecount
	.comm	_TEXTSPEED,4,2                  ; @TEXTSPEED
	.comm	_HU_FONTSTART,4,2               ; @HU_FONTSTART
	.comm	_HU_FONTSIZE,4,2                ; @HU_FONTSIZE
	.comm	_hu_font,8,3                    ; @hu_font
.subsections_via_symbols
