	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetFontTexel
_GetFontTexel:                          ## @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
	movq	%rdx, %r8
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	_fontHeader@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r11
	movq	(%r11), %rdx
	cmpq	%rdi, %rdx
	jg	LBB0_2
## %bb.1:
	movq	%rdi, %rax
	cmpq	%rdi, 8(%r11)
	jge	LBB0_3
LBB0_2:
	movq	16(%r11), %rax
	jmp	LBB0_4
LBB0_3:
	subq	%rdx, %rax
LBB0_4:
	movq	24(%r11), %rdi
	movq	32(%r11), %rsi
	imulq	%rdi, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	cqto
	idivq	%rsi
	movq	%rax, %rsi
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %esi
LBB0_7:
	movq	%rdx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%rdx, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_10
LBB0_8:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	48(%r11), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_16
## %bb.11:
	movq	40(%r11), %r12
	imulq	%r12, %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imulq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	imulq	56(%r11), %rsi
	movq	_fontImage@GOTPCREL(%rip), %rdi
	shlq	$2, %rsi
	addq	(%rdi), %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	addq	%rcx, %rdi
	leaq	7(%rcx,%rcx), %rax
	cmovnsq	%rdi, %rax
	shlq	$2, %rax
	andq	$-32, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testq	%r12, %r12
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r15
	leaq	7(%rsi,%rax), %rcx
	cmovnsq	%r15, %rcx
	movq	%rcx, %r13
	sarq	$3, %r13
	andq	$-8, %rcx
	subq	%rcx, %r15
	movq	%rsi, %rcx
	shrq	$3, %rcx
	imulq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	leal	(,%rsi,4), %edi
	andl	$28, %edi
	shlq	$4, %r15
	addq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	leaq	(%rcx,%rdi,4), %r14
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	64(%r11), %esi
	leal	7(%rsi), %edi
	testl	%esi, %esi
	cmovnsl	%esi, %edi
	shll	$2, %edi
	andl	$-32, %edi
	movslq	%edi, %rsi
	imulq	%r13, %rsi
	movq	%rdx, %rdi
	addq	%rcx, %rdi
	leaq	(%r15,%rsi,4), %rsi
	leaq	7(%rdx,%rcx), %r9
	cmovnsq	%rdi, %r9
	sarq	$3, %r9
	movq	%r9, %r10
	shlq	$7, %r10
	addq	%rsi, %r10
	shll	$3, %r9d
	subl	%r9d, %edi
	movl	%edi, %ebx
	shrb	$7, %bl
	addb	%dil, %bl
	sarb	%bl
	movsbq	%bl, %rsi
	movq	%r8, %rdi
	addq	%rcx, %rdi
	leaq	7(%r8,%rcx), %rbx
	cmovnsq	%rdi, %rbx
	sarq	$3, %rbx
	leal	(,%rbx,8), %eax
	subl	%eax, %edi
	movl	%edi, %eax
	shrb	$7, %al
	addb	%dil, %al
	sarb	%al
	movsbq	%al, %rax
	shlq	$7, %rbx
	addq	%r14, %rbx
	movl	(%r10,%rsi,4), %esi
	movl	%esi, (%rbx,%rax,4)
	addq	$2, %rcx
	cmpq	%r12, %rcx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fontHeader,8,3                 ## @fontHeader
	.comm	_fontImage,8,3                  ## @fontImage
	.no_dead_strip	_GetFontTexel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetFontTexel
_GetFontTexel:                          ; @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, _fontHeader@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fontHeader@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cmp	x9, x0
	b.gt	LBB0_2
; %bb.1:
	ldr	x10, [x8, #8]
	cmp	x10, x0
	b.ge	LBB0_3
LBB0_2:
	ldr	x11, [x8, #16]
	b	LBB0_4
LBB0_3:
	sub	x11, x0, x9
LBB0_4:
	ldr	x9, [x8, #48]
	cmp	x9, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x10, #0
	ldp	x12, x13, [x8, #24]
	mul	x13, x13, x12
	sdiv	x14, x11, x13
	msub	x11, x14, x13, x11
	sdiv	x13, x11, x12
	msub	x12, x13, x12, x11
	ldr	x11, [x8, #40]
	mul	x12, x11, x12
	mul	x13, x9, x13
	ldr	x15, [x8, #56]
	mul	x14, x15, x14
Lloh3:
	adrp	x15, _fontImage@GOTPAGE
Lloh4:
	ldr	x15, [x15, _fontImage@GOTPAGEOFF]
Lloh5:
	ldr	x15, [x15]
	add	x14, x15, x14, lsl #2
	lsl	x15, x3, #1
	add	x16, x15, #7
	cmp	x15, #0
	csel	x15, x16, x15, lt
	lsl	x15, x15, #2
	and	x15, x15, #0xffffffffffffffe0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	x11, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x16, #0
	add	x0, x10, x13
	add	x17, x0, #7
	cmp	x0, #0
	csel	x3, x17, x0, lt
	asr	x17, x3, #3
	and	x3, x3, #0xffffffffffffff8
	sub	x0, x0, x3
	lsr	x3, x10, #3
	madd	x3, x15, x3, x1
	lsl	w4, w10, #2
	and	x4, x4, #0x1c
	add	x0, x14, x0, lsl #4
	add	x3, x3, x4, lsl #2
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x8, #64]
	add	w5, w4, #7
	cmp	w4, #0
	csel	w4, w5, w4, lt
	lsl	w4, w4, #2
	and	w4, w4, #0xffffffe0
	sxtw	x4, w4
	mul	x4, x17, x4
	add	x5, x12, x16
	add	x6, x5, #7
	cmp	x5, #0
	csel	x6, x6, x5, lt
	asr	x6, x6, #3
	add	x4, x0, x4, lsl #2
	add	x4, x4, x6, lsl #7
	sub	w5, w5, w6, lsl #3
	and	w6, w5, #0x80
	add	w5, w5, w6, lsr #7
	sbfx	w5, w5, #1, #7
	add	x6, x2, x16
	add	x7, x6, #7
	cmp	x6, #0
	csel	x7, x7, x6, lt
	asr	x7, x7, #3
	sub	w6, w6, w7, lsl #3
	and	w19, w6, #0x80
	add	w6, w6, w19, lsr #7
	sbfx	w6, w6, #1, #7
	add	x7, x3, x7, lsl #7
	ldr	w4, [x4, w5, sxtw #2]
	str	w4, [x7, w6, sxtw #2]
	add	x16, x16, #2
	cmp	x16, x11
	b.lt	LBB0_9
	b	LBB0_6
LBB0_10:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_fontHeader,8,3                 ; @fontHeader
	.comm	_fontImage,8,3                  ; @fontImage
	.no_dead_strip	_GetFontTexel
.subsections_via_symbols
