	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function char_to_texture
_char_to_texture:                       ## @char_to_texture
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_FONT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	%edx, %edx
	shlq	$2, %rdx
	addq	8(%rbx), %rdx
	imull	16(%rbx), %ecx
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_FONT_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_FONT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r12d, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %edx
	jae	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
	movl	$0, %ecx
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r13d
	movq	_FONT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpl	%r12d, %r13d
	jae	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
	imull	-44(%rbp), %r12d                ## 4-byte Folded Reload
	addl	%r13d, %r12d
	movl	%r12d, %r14d
	andb	$7, %r14b
	shrl	$3, %r12d
	movq	_bitmap_bin@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_FONT_OFFSET
                                        ## kill: def $eax killed $eax def $rax
	addl	%r12d, %eax
	movl	(%r15,%rax,4), %eax
	movzbl	%r14b, %ecx
	btl	%ecx, %eax
	movl	$255, %eax
	movl	$0, %ecx
	cmovael	%ecx, %eax
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%ecx, %edx
	imull	%r13d, %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rdx,4), %rdx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	imull	16(%rbx), %ecx
	leaq	(%rdx,%rcx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_7 Depth 4
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_6 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	16(%rbx), %edi
	imull	%edx, %edi
	addl	%esi, %edi
	movl	%eax, (%rcx,%rdi,4)
	incl	%esi
	movl	(%rbx), %edi
	cmpl	%edi, %esi
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	incl	%edx
	cmpl	%edi, %edx
	jb	LBB0_6
	jmp	LBB0_9
LBB0_12:
	movl	$1, 20(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FONT_HEIGHT,4,2                ## @FONT_HEIGHT
	.comm	_FONT_WIDTH,4,2                 ## @FONT_WIDTH
	.comm	_bitmap_bin,8,3                 ## @bitmap_bin
	.no_dead_strip	_char_to_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function char_to_texture
_char_to_texture:                       ; @char_to_texture
	.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, x0
Lloh0:
	adrp	x21, _FONT_HEIGHT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FONT_HEIGHT@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x20, x1
	mov	w22, #0
	ldr	x9, [x19, #8]
	add	x9, x9, w2, uxtw #2
	ldr	w10, [x19, #16]
	mul	w10, w10, w3
	add	x23, x9, w10, uxtw #2
Lloh2:
	adrp	x24, _FONT_WIDTH@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FONT_WIDTH@GOTPAGEOFF]
	ldr	w27, [x24]
Lloh4:
	adrp	x25, _bitmap_bin@GOTPAGE
Lloh5:
	ldr	x25, [x25, _bitmap_bin@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.hs	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_10 Depth 4
	cbz	w27, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w26, w26, #1
	ldr	w27, [x24]
	cmp	w26, w27
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
                                        ;         Child Loop BB0_10 Depth 4
	ldr	x28, [x25]
	mov	x0, x20
	bl	_FONT_OFFSET
	ldr	w10, [x19]
	cbz	w10, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #0
	madd	w9, w27, w22, w26
	and	w11, w9, #0x7
	add	w9, w0, w9, lsr #3
	ldr	w9, [x28, w9, uxtw #2]
	lsr	w9, w9, w11
	sbfx	w9, w9, #0, #1
	and	w9, w9, #0xff
	mul	w11, w10, w26
	add	x11, x23, w11, uxtw #2
	mul	w10, w10, w22
	ldr	w12, [x19, #16]
	mul	w10, w10, w12
	add	x10, x11, w10, uxtw #2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_10 Depth 4
	mov	w11, #0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_9 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w12, [x19, #16]
	madd	w12, w8, w12, w11
	str	w9, [x10, w12, uxtw #2]
	add	w11, w11, #1
	ldr	w12, [x19]
	cmp	w11, w12
	b.lo	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	add	w8, w8, #1
	cmp	w8, w12
	b.lo	LBB0_9
	b	LBB0_6
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #20]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FONT_HEIGHT,4,2                ; @FONT_HEIGHT
	.comm	_FONT_WIDTH,4,2                 ; @FONT_WIDTH
	.comm	_bitmap_bin,8,3                 ; @bitmap_bin
	.no_dead_strip	_char_to_texture
.subsections_via_symbols
