	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FNT_Load_Glyph
_FNT_Load_Glyph:                        ## @FNT_Load_Glyph
	.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
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rdi, %r13
	movl	%esi, %edi
	callq	_FT_SIZE_FACE
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movslq	%eax, %rdi
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	_FT_Err_Ok@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_FT_FACE
	cmpl	%ebx, (%rax)
	jle	LBB0_5
## %bb.6:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movslq	%ebx, %r12
	movq	%r12, %rdi
	callq	_FT_TRACE1
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.7:
	decl	%ebx
	jmp	LBB0_9
LBB0_5:
	movq	_Invalid_Argument@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_Invalid_Face_Handle@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movl	(%r14), %ebx
LBB0_9:
	xorl	%edi, %edi
	cmpl	$768, 4(%r14)                   ## imm = 0x300
	sete	%dil
	callq	_FT_BOOL
	movq	%rax, %r12
	xorl	%eax, %eax
	testq	%r12, %r12
	setne	%al
	addl	%eax, %eax
	addl	$4, %eax
	imull	%ebx, %eax
	leal	148(%rax), %ecx
	addl	$118, %eax
	xorl	%edx, %edx
	testq	%r12, %r12
	cmovnel	%ecx, %eax
	sete	%dl
	movl	8(%r14), %ecx
	leal	(%rcx,%rdx,2), %ecx
	addl	$-6, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_10
## %bb.12:
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	24(%r14), %rbx
	movq	%rbx, %rdi
	callq	_FT_NEXT_USHORT_LE
	movl	%eax, 80(%r13)
	movq	%rbx, %rdi
	testq	%r12, %r12
	je	LBB0_14
## %bb.13:
	callq	_FT_NEXT_ULONG_LE
	movl	%eax, %r12d
	cmpl	8(%r14), %r12d
	jge	LBB0_10
LBB0_16:
	movl	12(%r14), %eax
	movl	%eax, 84(%r13)
	movq	_FT_PIXEL_MODE_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 104(%r13)
	movq	$0, 72(%r13)
	movl	16(%r14), %ecx
	movl	%ecx, (%r13)
	movq	_FT_GLYPH_FORMAT_BITMAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 64(%r13)
	movl	80(%r13), %edx
	shll	$6, %edx
	movslq	%edx, %rdx
	leaq	24(%r13), %rdi
	movq	%rdx, 56(%r13)
	shll	$6, %eax
	movslq	%eax, %rsi
	movq	%rsi, 48(%r13)
	movq	%rdx, 40(%r13)
	movq	$0, 32(%r13)
	shll	$6, %ecx
	movl	%ecx, 24(%r13)
	callq	_ft_synthesize_vertical_metrics
	movq	_FT_LOAD_BITMAP_METRICS_ONLY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_17
LBB0_28:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	_FT_NEXT_USHORT_LE
	movq	%rax, %r12
	cmpl	8(%r14), %r12d
	jl	LBB0_16
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	callq	_FT_TRACE2
	movq	_Invalid_File_Format@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FT_THROW                       ## TAILCALL
LBB0_17:
	movslq	%r12d, %rbx
	shlq	$2, %rbx
	addq	24(%r14), %rbx
	movl	16(%r13), %edi
	callq	_FT_FACE_MEMORY
	movl	80(%r13), %ecx
	leal	7(%rcx), %eax
	movl	%eax, %r15d
	sarl	$3, %r15d
	movl	%r15d, 88(%r13)
	cmpl	$8, %eax
	jb	LBB0_19
## %bb.18:
	movl	84(%r13), %esi
	movl	%esi, %eax
	imull	%r15d, %eax
	addl	%r12d, %eax
	cmpl	8(%r14), %eax
	jle	LBB0_20
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_20:
	movq	%rcx, %r14
	movq	96(%r13), %rdi
	movl	%r15d, %edx
	callq	_FT_ALLOC_MULT
	testq	%rax, %rax
	jne	LBB0_28
## %bb.21:
	testl	%r14d, %r14d
	jle	LBB0_27
## %bb.22:
	movq	96(%r13), %rax
	jmp	LBB0_23
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	leal	-1(%r15), %ecx
	addq	$4, %rax
	cmpl	$1, %r15d
	movl	%ecx, %r15d
	jle	LBB0_27
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	movslq	84(%r13), %rcx
	testq	%rcx, %rcx
	jle	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%rbx,%rcx,4), %rcx
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %esi
	movl	%esi, (%rdx)
	addq	$4, %rbx
	movslq	88(%r13), %rsi
	leaq	(%rdx,%rsi,4), %rdx
	cmpq	%rcx, %rbx
	jb	LBB0_25
	jmp	LBB0_26
LBB0_27:
	movq	_FT_GLYPH_OWN_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_FT_Err_Ok,4,2                  ## @FT_Err_Ok
	.comm	_Invalid_Face_Handle,4,2        ## @Invalid_Face_Handle
	.comm	_Invalid_Argument,4,2           ## @Invalid_Argument
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"invalid FNT offset\n"

	.comm	_Invalid_File_Format,4,2        ## @Invalid_File_Format
	.comm	_FT_PIXEL_MODE_MONO,4,2         ## @FT_PIXEL_MODE_MONO
	.comm	_FT_GLYPH_FORMAT_BITMAP,4,2     ## @FT_GLYPH_FORMAT_BITMAP
	.comm	_FT_LOAD_BITMAP_METRICS_ONLY,4,2 ## @FT_LOAD_BITMAP_METRICS_ONLY
L_.str.2:                               ## @.str.2
	.asciz	"invalid bitmap width\n"

	.comm	_FT_GLYPH_OWN_BITMAP,4,2        ## @FT_GLYPH_OWN_BITMAP
	.no_dead_strip	_FNT_Load_Glyph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FNT_Load_Glyph
_FNT_Load_Glyph:                        ; @FNT_Load_Glyph
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x1
	bl	_FT_SIZE_FACE
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.1:
	sxtw	x0, w0
	ldr	x24, [x0]
	cbz	x24, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _FT_Err_Ok@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FT_Err_Ok@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_FT_FACE
	ldr	w8, [x0]
	cmp	w8, w22
	b.le	LBB0_8
; %bb.3:
	sxtw	x0, w22
	bl	_FT_TRACE1
	subs	w23, w22, #1
	b.ge	LBB0_5
; %bb.4:
	ldr	w23, [x24]
LBB0_5:
	ldr	w8, [x24, #4]
	cmp	w8, #768
	cset	w0, eq
	bl	_FT_BOOL
	cmp	x0, #0
	mov	w8, #6
	mov	w9, #4
	csel	w8, w9, w8, eq
	mov	w9, #148
	mov	w10, #118
	csel	w9, w10, w9, eq
	madd	w8, w8, w23, w9
	ldr	w9, [x24, #8]
	mov	w10, #-4
	mov	w11, #-2
	csel	w10, w11, w10, eq
	add	w9, w9, w10
	sub	w9, w9, #2
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.6:
	mov	x22, x0
	ldr	x9, [x24, #24]
	add	x23, x9, w8, sxtw #2
	mov	x0, x23
	bl	_FT_NEXT_USHORT_LE
	str	w0, [x19, #80]
	mov	x0, x23
	cbz	x22, LBB0_10
; %bb.7:
	bl	_FT_NEXT_ULONG_LE
	mov	x22, x0
	b	LBB0_11
LBB0_8:
Lloh3:
	adrp	x8, _Invalid_Argument@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Invalid_Argument@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
Lloh5:
	adrp	x8, _Invalid_Face_Handle@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Invalid_Face_Handle@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	bl	_FT_NEXT_USHORT_LE
	mov	x22, x0
LBB0_11:
	ldr	w8, [x24, #8]
	cmp	w22, w8
	b.ge	LBB0_14
; %bb.12:
	ldp	w8, w9, [x24, #12]
	str	w8, [x19, #84]
Lloh7:
	adrp	x10, _FT_PIXEL_MODE_MONO@GOTPAGE
Lloh8:
	ldr	x10, [x10, _FT_PIXEL_MODE_MONO@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	str	w10, [x19, #104]
	str	xzr, [x19, #72]
	str	w9, [x19]
Lloh10:
	adrp	x10, _FT_GLYPH_FORMAT_BITMAP@GOTPAGE
Lloh11:
	ldr	x10, [x10, _FT_GLYPH_FORMAT_BITMAP@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	str	w10, [x19, #64]
	ldr	w10, [x19, #80]
	lsl	w10, w10, #6
	sxtw	x10, w10
	lsl	w8, w8, #6
	sxtw	x1, w8
	stp	x1, x10, [x19, #48]
	stp	xzr, x10, [x19, #32]
	lsl	w8, w9, #6
	mov	x0, x19
	str	w8, [x0, #24]!
	bl	_ft_synthesize_vertical_metrics
Lloh13:
	adrp	x8, _FT_LOAD_BITMAP_METRICS_ONLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FT_LOAD_BITMAP_METRICS_ONLY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_17
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_FT_TRACE2
Lloh18:
	adrp	x8, _Invalid_File_Format@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Invalid_File_Format@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_FT_THROW
LBB0_17:
	ldr	x23, [x24, #24]
	ldr	w0, [x19, #16]
	bl	_FT_FACE_MEMORY
	ldr	w25, [x19, #80]
	add	w8, w25, #7
	asr	w21, w8, #3
	str	w21, [x19, #88]
	cmp	w8, #8
	b.lo	LBB0_19
; %bb.18:
	ldr	w1, [x19, #84]
	madd	w8, w1, w21, w22
	ldr	w9, [x24, #8]
	cmp	w8, w9
	b.le	LBB0_20
LBB0_19:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_20:
	ldr	x0, [x19, #96]
	mov	x2, x21
	bl	_FT_ALLOC_MULT
	cbnz	x0, LBB0_13
; %bb.21:
	cmp	w25, #1
	b.lt	LBB0_27
; %bb.22:
	add	x8, x23, w22, sxtw #2
	ldr	x9, [x19, #96]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x9, x9, #4
	subs	w21, w21, #1
	b.le	LBB0_27
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldrsw	x10, [x19, #84]
	cmp	w10, #1
	b.lt	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x10, x8, x10, lsl #2
	mov	x11, x9
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x8], #4
	str	w12, [x11]
	ldrsw	x12, [x19, #88]
	add	x11, x11, x12, lsl #2
	cmp	x8, x10
	b.lo	LBB0_26
	b	LBB0_23
LBB0_27:
Lloh22:
	adrp	x8, _FT_GLYPH_OWN_BITMAP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FT_GLYPH_OWN_BITMAP@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FT_Err_Ok,4,2                  ; @FT_Err_Ok
	.comm	_Invalid_Face_Handle,4,2        ; @Invalid_Face_Handle
	.comm	_Invalid_Argument,4,2           ; @Invalid_Argument
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"invalid FNT offset\n"

	.comm	_Invalid_File_Format,4,2        ; @Invalid_File_Format
	.comm	_FT_PIXEL_MODE_MONO,4,2         ; @FT_PIXEL_MODE_MONO
	.comm	_FT_GLYPH_FORMAT_BITMAP,4,2     ; @FT_GLYPH_FORMAT_BITMAP
	.comm	_FT_LOAD_BITMAP_METRICS_ONLY,4,2 ; @FT_LOAD_BITMAP_METRICS_ONLY
l_.str.2:                               ; @.str.2
	.asciz	"invalid bitmap width\n"

	.comm	_FT_GLYPH_OWN_BITMAP,4,2        ; @FT_GLYPH_OWN_BITMAP
	.no_dead_strip	_FNT_Load_Glyph
.subsections_via_symbols
