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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FONT_write                     ; -- Begin function FONT_write
	.p2align	2
_FONT_write:                            ; @FONT_write
	.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, x4
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _vmode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmode@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldp	w8, w9, [x9]
Lloh3:
	adrp	x25, _font_size@GOTPAGE
Lloh4:
	ldr	x25, [x25, _font_size@GOTPAGEOFF]
Lloh5:
	adrp	x26, _fheight@GOTPAGE
Lloh6:
	ldr	x26, [x26, _fheight@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w27, w2, w8, asr #1
	cmp	w9, #0
	cinc	w8, w9, lt
	sub	w23, w3, w8, asr #1
	add	w28, w27, w20
	mov	x1, x27
	ldrb	w8, [x21]
	cbz	w8, LBB0_7
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	sxtb	x0, w8
	ldr	x8, [x25]
	ldr	w8, [x8, x0, lsl #2]
	mul	w8, w8, w22
	ldr	w9, [x26]
	sdiv	w8, w8, w9
	add	w24, w8, w1
	cmp	w24, w28
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 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, x24
	ldrb	w8, [x21]
	cbnz	w8, LBB0_2
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
Lloh7:
	adrp	x8, _vmode@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vmode@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x8]
	ldp	w8, w9, [x9]
	cmp	w8, #0
	cinc	w10, w8, lt
	add	w2, w27, w10, asr #1
	add	w10, w23, w22
	cmp	w9, #0
	cinc	w11, w9, lt
	add	w3, w10, w11, asr #1
	b	LBB0_1
LBB0_6:
	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_7:
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_vmode,8,3                      ; @vmode
	.comm	_font_size,8,3                  ; @font_size
	.comm	_fheight,4,2                    ; @fheight
.subsections_via_symbols
