	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function font_renderer_create_atlas
_font_renderer_create_atlas:            ## @font_renderer_create_atlas
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movss	4(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	subss	8(%rax), %xmm1
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	mulss	%xmm0, %xmm1
	divss	(%rax), %xmm1
	movaps	%xmm1, %xmm0
	callq	_round
	movq	24(%r14), %rcx
	movss	12(%rcx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	subss	16(%rcx), %xmm0
	movl	%eax, %ebx
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	divss	(%rcx), %xmm0
	callq	_round
	movq	_FT_ATLAS_COLS@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	imull	%ebx, %r13d
	movq	_FT_ATLAS_ROWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	imull	%eax, %r15d
	movl	%r15d, %edi
	imull	%r13d, %edi
	movl	$1, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 16(%r14)
	movl	%r13d, 8(%r14)
	movl	%r15d, 12(%r14)
	movq	_FT_ATLAS_ROWS@GOTPCREL(%rip), %r10
	movl	(%r10), %esi
	testl	%esi, %esi
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	je	LBB0_10
## %bb.3:
	movq	(%r14), %rax
	movl	(%r12), %edx
	xorl	%r8d, %r8d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r8d
	cmpl	%esi, %r8d
	jae	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%edx, %edx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %esi
	imull	%r9d, %esi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edi, (%rax)
	movl	%esi, 4(%rax)
	addq	$8, %rax
	incl	%ecx
	movl	(%r12), %edx
	addl	%ebx, %edi
	cmpl	%edx, %ecx
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r10), %esi
	jmp	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_font_renderer_ft_get_glyph
	incl	%ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_11
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	cmpl	$256, %ebx                      ## imm = 0x100
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_isalnum
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_font_renderer_ft_get_glyph
	jmp	LBB0_15
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_17
LBB0_1:
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FT_ATLAS_COLS,4,2              ## @FT_ATLAS_COLS
	.comm	_FT_ATLAS_ROWS,4,2              ## @FT_ATLAS_ROWS
	.no_dead_strip	_font_renderer_create_atlas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function font_renderer_create_atlas
_font_renderer_create_atlas:            ; @font_renderer_create_atlas
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	fmov	s8, s0
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldp	s1, s0, [x8, #4]
	ldr	s2, [x8]
	fsub	s0, s1, s0
	fmul	s0, s0, s8
	fdiv	s0, s0, s2
	bl	_round
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldp	s0, s1, [x8, #12]
	fsub	s0, s0, s1
	fmul	s0, s0, s8
	ldr	s1, [x8]
	fdiv	s0, s0, s1
	bl	_round
	mov	x21, x0
Lloh0:
	adrp	x22, _FT_ATLAS_COLS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FT_ATLAS_COLS@GOTPAGEOFF]
	ldr	w8, [x22]
	mul	w24, w8, w20
Lloh2:
	adrp	x23, _FT_ATLAS_ROWS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FT_ATLAS_ROWS@GOTPAGEOFF]
	ldr	w8, [x23]
	mul	w25, w8, w0
	mul	w0, w25, w24
	mov	w1, #1
	bl	_calloc
	cbz	x0, LBB0_15
; %bb.1:
	str	x0, [x19, #16]
	stp	w24, w25, [x19, #8]
	ldr	w11, [x23]
	cbz	w11, LBB0_8
; %bb.2:
	mov	w8, #0
	ldr	x9, [x19]
	ldr	w10, [x22]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	cmp	w8, w11
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cbz	w10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #0
	mov	w12, #0
	mul	w13, w8, w21
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	w11, w13, [x9], #8
	add	w12, w12, #1
	ldr	w10, [x22]
	add	w11, w11, w20
	cmp	w12, w10
	b.lo	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x23]
	b	LBB0_3
LBB0_8:
	mov	w20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_font_renderer_ft_get_glyph
	add	w20, w20, #1
	cmp	w20, #256
	b.ne	LBB0_9
; %bb.10:
	mov	w20, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w20, w20, #1
	cmp	w20, #256
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_isalnum
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_font_renderer_ft_get_glyph
	b	LBB0_11
LBB0_14:
	mov	w0, #1
LBB0_15:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FT_ATLAS_COLS,4,2              ; @FT_ATLAS_COLS
	.comm	_FT_ATLAS_ROWS,4,2              ; @FT_ATLAS_ROWS
	.no_dead_strip	_font_renderer_create_atlas
.subsections_via_symbols
