	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_GetFontTexture             ## -- Begin function SYS_GetFontTexture
	.p2align	4, 0x90
_SYS_GetFontTexture:                    ## @SYS_GetFontTexture
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, (%rdx)
	movq	$0, (%rcx)
	movq	$0, (%rsi)
	movq	_sys_fontwidthtab@GOTPCREL(%rip), %r10
	cmpq	$0, (%r10)
	je	LBB0_10
## %bb.1:
	movq	_sys_fontimage@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	testq	%r11, %r11
	je	LBB0_10
## %bb.2:
	movq	%rdx, %r9
	movq	_sys_fontdata@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movq	(%r15), %rax
	cmpq	%rdi, %rax
	ja	LBB0_4
## %bb.3:
	cmpq	%rdi, 8(%r15)
	jae	LBB0_5
LBB0_4:
	movq	16(%r15), %rdi
	jmp	LBB0_6
LBB0_5:
	subq	%rax, %rdi
LBB0_6:
	movq	_sys_fontcharsinsheet@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rdi, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rbx
	jmp	LBB0_9
LBB0_7:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:
	movslq	24(%r15), %rbx
	cltq
	imulq	%rbx, %rax
	addq	%rax, %r11
	movq	%r11, (%rsi)
	movq	(%r14), %rsi
	movslq	32(%rsi), %rbx
	movl	%edx, %eax
	cltd
	idivl	28(%rsi)
	movslq	%edx, %rdx
	imulq	%rbx, %rdx
	movq	%rdx, (%r9)
	movslq	36(%rsi), %rdx
	cltq
	imulq	%rdx, %rax
	movq	%rax, (%rcx)
	movq	(%r10), %rax
	movq	(%rax,%rdi,8), %rax
	movq	%rax, (%r8)
LBB0_10:
	popq	%rbx
	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,8,3       ## @sys_fontcharsinsheet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_GetFontTexture             ; -- Begin function SYS_GetFontTexture
	.p2align	2
_SYS_GetFontTexture:                    ; @SYS_GetFontTexture
	.cfi_startproc
; %bb.0:
	str	xzr, [x2]
	str	xzr, [x3]
	str	xzr, [x1]
Lloh0:
	adrp	x8, _sys_fontwidthtab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sys_fontwidthtab@GOTPAGEOFF]
	ldr	x10, [x8]
Lloh2:
	adrp	x9, _sys_fontimage@GOTPAGE
Lloh3:
	ldr	x9, [x9, _sys_fontimage@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x10, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_6
; %bb.1:
Lloh5:
	adrp	x11, _sys_fontdata@GOTPAGE
Lloh6:
	ldr	x11, [x11, _sys_fontdata@GOTPAGEOFF]
	ldr	x12, [x11]
	ldr	x10, [x12]
	cmp	x10, x0
	b.hi	LBB0_3
; %bb.2:
	ldr	x13, [x12, #8]
	cmp	x13, x0
	b.hs	LBB0_4
LBB0_3:
	ldr	x10, [x12, #16]
	b	LBB0_5
LBB0_4:
	sub	x10, x0, x10
LBB0_5:
Lloh7:
	adrp	x13, _sys_fontcharsinsheet@GOTPAGE
Lloh8:
	ldr	x13, [x13, _sys_fontcharsinsheet@GOTPAGEOFF]
Lloh9:
	ldr	x13, [x13]
	udiv	x14, x10, x13
	msub	w13, w14, w13, w10
	ldrsw	x12, [x12, #24]
	sxtw	x14, w14
	madd	x9, x12, x14, x9
	str	x9, [x1]
	ldr	x9, [x11]
	ldp	w11, w12, [x9, #28]
                                        ; kill: def $w12 killed $w12 def $x12
	sxtw	x12, w12
	sdiv	w14, w13, w11
	msub	w11, w14, w11, w13
	sxtw	x11, w11
	mul	x11, x12, x11
	str	x11, [x2]
	ldrsw	x9, [x9, #36]
	sxtw	x11, w14
	mul	x9, x9, x11
	str	x9, [x3]
	ldr	x8, [x8]
	ldr	x8, [x8, x10, lsl #3]
	str	x8, [x4]
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.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,8,3       ; @sys_fontcharsinsheet
.subsections_via_symbols
