	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_GetFontTexel               ## -- Begin function SYS_GetFontTexel
	.p2align	4, 0x90
_SYS_GetFontTexel:                      ## @SYS_GetFontTexel
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %r9d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	_sys_fontwidthtab@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.1:
	movq	_sys_fontimage@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	testq	%r11, %r11
	je	LBB0_14
## %bb.2:
	movq	_sys_fontdata@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	(%r12), %eax
	cmpl	%edi, %eax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jg	LBB0_4
## %bb.3:
	cmpl	%edi, 4(%r12)
	jge	LBB0_5
LBB0_4:
	movl	8(%r12), %edi
	jmp	LBB0_6
LBB0_5:
	subl	%eax, %edi
LBB0_6:
	movq	_sys_fontcharsinsheet@GOTPCREL(%rip), %rsi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %eax
	cltd
	idivl	(%rsi)
	movl	%eax, %r10d
	movl	%edx, %eax
	movl	20(%r12), %ebx
	cltd
	idivl	12(%r12)
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.7:
	movl	16(%r12), %r8d
	imull	%r8d, %edx
	imull	%ebx, %eax
	movslq	24(%r12), %r14
	movslq	%r10d, %r10
	imulq	%r14, %r10
	movl	%ecx, %edi
	addl	%ecx, %edi
	leal	7(%rcx,%rcx), %ecx
	cmovnsl	%edi, %ecx
	leaq	(%r11,%r10,4), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	shll	$2, %ecx
	andl	$-32, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r15d
	cmpl	%ebx, %r15d
	jge	LBB0_13
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %ecx
	addl	%eax, %ecx
	leal	7(%r15,%rax), %ebx
	cmovnsl	%ecx, %ebx
	movl	%ebx, %r13d
	sarl	$3, %r13d
	shll	$5, %r13d
	andl	$-8, %ebx
	subl	%ebx, %ecx
	shll	$2, %ecx
	movslq	%ecx, %rcx
	movl	%r15d, %ebx
	shrl	$3, %ebx
	imull	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rbx
	addq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	leal	(,%r15,4), %edi
	andl	$28, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %r10
	leaq	(%rbx,%rdi,4), %r14
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	28(%r12), %edi
	leal	7(%rdi), %ebx
	testl	%edi, %edi
	cmovnsl	%edi, %ebx
	sarl	$3, %ebx
	imull	%r13d, %ebx
	movslq	%ebx, %rdi
	movl	%edx, %esi
	addl	%r11d, %esi
	leal	7(%rdx,%r11), %ebx
	cmovnsl	%esi, %ebx
	movl	%ebx, %ecx
	sarl	$3, %ecx
	shll	$5, %ecx
	movslq	%ecx, %rcx
	leaq	(%r10,%rdi,4), %rdi
	leaq	(%rdi,%rcx,4), %r8
	andl	$-8, %ebx
	subl	%ebx, %esi
	movl	%esi, %ebx
	shrb	$7, %bl
	addb	%sil, %bl
	sarb	%bl
	movl	%r9d, %esi
	addl	%r11d, %esi
	leal	7(%r9,%r11), %ecx
	cmovnsl	%esi, %ecx
	movsbq	%bl, %rbx
	movl	%ecx, %edi
	sarl	$3, %edi
	shll	$5, %edi
	movslq	%edi, %rdi
	andl	$-8, %ecx
	subl	%ecx, %esi
	movl	%esi, %ecx
	shrb	$7, %cl
	addb	%sil, %cl
	sarb	%cl
	movsbq	%cl, %rcx
	leaq	(%r14,%rdi,4), %rsi
	movl	(%r8,%rbx,4), %edi
	movl	%edi, (%rsi,%rcx,4)
	addl	$2, %r11d
	movl	16(%r12), %r8d
	cmpl	%r8d, %r11d
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	20(%r12), %ebx
	jmp	LBB0_12
LBB0_13:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sys_fontwidthtab,8,3           ## @sys_fontwidthtab
	.comm	_sys_fontimage,8,3              ## @sys_fontimage
	.comm	_sys_fontdata,8,3               ## @sys_fontdata
	.comm	_sys_fontcharsinsheet,4,2       ## @sys_fontcharsinsheet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_GetFontTexel               ; -- Begin function SYS_GetFontTexel
	.p2align	2
_SYS_GetFontTexel:                      ; @SYS_GetFontTexel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
Lloh0:
	adrp	x8, _sys_fontwidthtab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sys_fontwidthtab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _sys_fontimage@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sys_fontimage@GOTPAGEOFF]
Lloh5:
	ldr	x14, [x9]
	cmp	x8, #0
	ccmp	x14, #0, #4, ne
	b.eq	LBB0_13
; %bb.1:
Lloh6:
	adrp	x9, _sys_fontdata@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sys_fontdata@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w10, [x9]
	cmp	w10, w0
	b.gt	LBB0_3
; %bb.2:
	ldr	w11, [x9, #4]
	cmp	w11, w0
	b.ge	LBB0_4
LBB0_3:
	ldr	w10, [x9, #8]
	b	LBB0_5
LBB0_4:
	sub	w10, w0, w10
LBB0_5:
	ldr	w16, [x9, #20]
	cmp	w16, #1
	b.lt	LBB0_12
; %bb.6:
	mov	w11, #0
Lloh9:
	adrp	x12, _sys_fontcharsinsheet@GOTPAGE
Lloh10:
	ldr	x12, [x12, _sys_fontcharsinsheet@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	sdiv	w13, w10, w12
	msub	w12, w13, w12, w10
	ldp	w15, w17, [x9, #12]
	sdiv	w0, w12, w15
	msub	w12, w0, w15, w12
	ldr	w15, [x9, #24]
	mul	w15, w15, w13
	mul	w12, w17, w12
	mul	w13, w16, w0
	add	x14, x14, w15, sxtw #2
	lsl	w15, w3, #1
	add	w0, w15, #7
	cmp	w15, #0
	csel	w15, w0, w15, lt
	lsl	w15, w15, #2
	and	w15, w15, #0xffffffe0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w11, w11, #1
	cmp	w11, w16
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w17, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w16, #0
	add	w17, w11, w13
	add	w0, w17, #7
	cmp	w17, #0
	csel	w3, w0, w17, lt
	and	w0, w3, #0x3ffffff8
	lsr	w5, w11, #3
	mul	w5, w15, w5
	add	x5, x1, w5, sxtw
	sub	w17, w17, w0
	ubfiz	w0, w11, #2, #3
	add	x0, x5, w0, uxtw #2
	lsl	w3, w3, #2
	and	w3, w3, #0xffffffe0
	lsl	w17, w17, #2
	add	x5, x14, w17, sxtw #2
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x9, #28]
	add	w6, w17, #7
	cmp	w17, #0
	csel	w17, w6, w17, lt
	asr	w17, w17, #3
	mul	w17, w3, w17
	add	w6, w12, w16
	add	w7, w6, #7
	cmp	w6, #0
	csel	w7, w7, w6, lt
	lsl	w19, w7, #2
	and	w19, w19, #0xffffffe0
	add	x17, x5, w17, sxtw #2
	add	x17, x17, w19, sxtw #2
	and	w7, w7, #0xfffffff8
	sub	w6, w6, w7
	and	w7, w6, #0x80
	add	w6, w6, w7, lsr #7
	sbfx	w6, w6, #1, #7
	add	w7, w2, w16
	add	w19, w7, #7
	cmp	w7, #0
	csel	w19, w19, w7, lt
	lsl	w20, w19, #2
	and	w20, w20, #0xffffffe0
	and	w19, w19, #0xfffffff8
	sub	w7, w7, w19
	and	w19, w7, #0x80
	add	w7, w7, w19, lsr #7
	sbfx	w7, w7, #1, #7
	ldr	w17, [x17, w6, sxtw #2]
	add	x6, x0, w20, sxtw #2
	str	w17, [x6, w7, sxtw #2]
	add	w16, w16, #2
	ldr	w17, [x9, #16]
	cmp	w16, w17
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w16, [x9, #20]
	b	LBB0_7
LBB0_12:
	ldr	w8, [x8, w10, sxtw #2]
	str	w8, [x4]
LBB0_13:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sys_fontwidthtab,8,3           ; @sys_fontwidthtab
	.comm	_sys_fontimage,8,3              ; @sys_fontimage
	.comm	_sys_fontdata,8,3               ; @sys_fontdata
	.comm	_sys_fontcharsinsheet,4,2       ; @sys_fontcharsinsheet
.subsections_via_symbols
