	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FONT_writeCenter               ## -- Begin function FONT_writeCenter
	.p2align	4, 0x90
_FONT_writeCenter:                      ## @FONT_writeCenter
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_font_size@GOTPCREL(%rip), %r8
	movq	_fheight@GOTPCREL(%rip), %r10
	movq	_vmode@GOTPCREL(%rip), %r9
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r8), %rsi
	movl	(%r10), %edi
	xorl	%ecx, %ecx
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpb	$10, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	(%rsi,%rax,4), %eax
	imull	%r12d, %eax
	cltd
	idivl	%edi
	addl	%eax, %ecx
	incq	%rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rcx,%rax), %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	subl	%eax, %edx
	cmpl	%ebx, %esi
	cmovlel	%ecx, %edx
	movq	(%r9), %rsi
	addl	%eax, %edx
	movl	(%rsi), %ecx
	movl	4(%rsi), %r9d
	addl	%ecx, %edx
	movl	%ebx, %edi
	subl	%edx, %edi
	movl	%edi, %esi
	shrl	$31, %esi
	addl	%edi, %esi
	sarl	%esi
	addl	%eax, %esi
	movl	%r9d, %edx
	shrl	$31, %edx
	addl	%r9d, %edx
	sarl	%edx
	subl	%edx, -44(%rbp)                 ## 4-byte Folded Spill
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	subl	%eax, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$10, %dil
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r8), %rax
	movl	(%rax,%rdi,4), %eax
	imull	%r12d, %eax
	cltd
	idivl	(%r10)
	movl	%eax, %r14d
	addl	%esi, %r14d
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jg	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r8, %r13
	movq	%r10, %rbx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_DrawChar
	incq	%r15
	movl	%r14d, %esi
	movq	%r13, %r8
	movq	%rbx, %r10
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r15
	movq	_vmode@GOTPCREL(%rip), %r9
	movq	(%r9), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%edx, -48(%rbp)                 ## 4-byte Folded Spill
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	%r12d, %edx
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	%ecx, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_11:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlen                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_font_size,8,3                  ## @font_size
	.comm	_fheight,4,2                    ## @fheight
	.comm	_vmode,8,3                      ## @vmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FONT_writeCenter               ; -- Begin function FONT_writeCenter
	.p2align	2
_FONT_writeCenter:                      ; @FONT_writeCenter
	.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
	mov	x19, x5
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _font_size@GOTPAGE
Lloh1:
	ldr	x24, [x24, _font_size@GOTPAGEOFF]
Lloh2:
	adrp	x25, _fheight@GOTPAGE
Lloh3:
	ldr	x25, [x25, _fheight@GOTPAGEOFF]
Lloh4:
	adrp	x26, _vmode@GOTPAGE
Lloh5:
	ldr	x26, [x26, _vmode@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_5 Depth 2
	mov	w8, #0
	ldr	x9, [x24]
	ldr	w10, [x25]
	mov	x11, x21
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x11]
	cmp	w12, #0
	ccmp	w12, #10, #4, ne
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	sxtb	x12, w12
	ldr	w12, [x9, x12, lsl #2]
	mul	w12, w12, w22
	sdiv	w12, w12, w10
	add	w8, w12, w8
	add	x11, x11, #1
	b	LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	w9, w3, w20
	add	w10, w8, w20
	cmp	w10, w3
	csel	w8, w9, w8, gt
	ldr	x9, [x26]
	ldp	w10, w9, [x9]
	add	w8, w8, w20
	add	w8, w8, w10
	sub	w8, w3, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w1, w20, w8, asr #1
	cmp	w9, #0
	cinc	w8, w9, lt
	sub	w23, w4, w8, asr #1
	cmp	w10, #0
	cinc	w8, w10, lt
	sub	w27, w3, w8, asr #1
	ldrb	w8, [x21]
	cbz	w8, LBB0_10
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #10
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	sxtb	x0, w8
	ldr	x8, [x24]
	ldr	w8, [x8, x0, lsl #2]
	mul	w8, w8, w22
	ldr	w9, [x25]
	sdiv	w8, w8, w9
	add	w28, w8, w1
	cmp	w28, w27
	b.gt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x2, x23
	mov	x3, x22
	mov	x4, x19
	bl	_DrawChar
	add	x21, x21, #1
	mov	x1, x28
	ldrb	w8, [x21]
	cbnz	w8, LBB0_5
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	ldr	x8, [x26]
	ldp	w9, w8, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w3, w27, w9, asr #1
	add	w9, w23, w22
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w4, w9, w8, asr #1
	b	LBB0_1
LBB0_9:
	mov	x0, x21
	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
	b	_strlen
LBB0_10:
	mov	w0, #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	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_font_size,8,3                  ; @font_size
	.comm	_fheight,4,2                    ; @fheight
	.comm	_vmode,8,3                      ; @vmode
.subsections_via_symbols
