	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fnt_font_load
_fnt_font_load:                         ## @fnt_font_load
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_FT_STREAM_SEEK
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	leaq	8(%rbx), %r14
	movq	_winfnt_header_fields@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_FT_STREAM_READ_FIELDS
	testq	%rax, %rax
	je	LBB0_2
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	(%r14), %eax
	movl	%eax, %ecx
	orl	$256, %ecx                      ## imm = 0x100
	cmpl	$768, %ecx                      ## imm = 0x300
	jne	LBB0_3
## %bb.5:
	xorl	%edi, %edi
	cmpl	$768, %eax                      ## imm = 0x300
	sete	%dil
	callq	_FT_BOOL
	testq	%rax, %rax
	movl	$118, %eax
	movl	$148, %ecx
	cmovel	%eax, %ecx
	cmpl	%ecx, 12(%rbx)
	jge	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	callq	_FT_TRACE2
	movq	_Unknown_File_Format@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FT_THROW                       ## TAILCALL
LBB0_6:
	cmpl	$512, (%r14)                    ## imm = 0x200
	jne	LBB0_8
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 24(%rbx)
	movq	$0, 56(%rbx)
LBB0_8:
	testb	$1, 16(%rbx)
	jne	LBB0_9
## %bb.10:
	movl	4(%rbx), %edi
	callq	_FT_STREAM_SEEK
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_FT_FRAME_EXTRACT
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_winfnt_header_fields,4,2       ## @winfnt_header_fields
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  not a Windows FNT file\n"

	.comm	_Unknown_File_Format,4,2        ## @Unknown_File_Format
L_.str.1:                               ## @.str.1
	.asciz	"[can't handle vector FNT fonts]\n"

	.no_dead_strip	_fnt_font_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fnt_font_load
_fnt_font_load:                         ; @fnt_font_load
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_FT_STREAM_SEEK
	cbnz	x0, LBB0_2
; %bb.1:
	add	x20, x19, #8
Lloh0:
	adrp	x8, _winfnt_header_fields@GOTPAGE
Lloh1:
	ldr	x8, [x8, _winfnt_header_fields@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FT_STREAM_READ_FIELDS
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x20]
	orr	w9, w8, #0x100
	cmp	w9, #768
	b.ne	LBB0_5
; %bb.4:
	cmp	w8, #768
	cset	w0, eq
	bl	_FT_BOOL
	cmp	x0, #0
	mov	w8, #148
	mov	w9, #118
	csel	w8, w9, w8, eq
	ldr	w9, [x19, #12]
	cmp	w9, w8
	b.ge	LBB0_7
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_FT_TRACE2
Lloh5:
	adrp	x8, _Unknown_File_Format@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Unknown_File_Format@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FT_THROW
LBB0_7:
	ldr	w8, [x20]
	cmp	w8, #512
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x19, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #24]
LBB0_9:
	ldrb	w8, [x19, #16]
	tbnz	w8, #0, LBB0_12
; %bb.10:
	ldr	w0, [x19, #4]
	bl	_FT_STREAM_SEEK
	cbnz	x0, LBB0_2
; %bb.11:
	ldr	w0, [x19, #12]
	ldr	w1, [x19]
	bl	_FT_FRAME_EXTRACT
	b	LBB0_2
LBB0_12:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_winfnt_header_fields,4,2       ; @winfnt_header_fields
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  not a Windows FNT file\n"

	.comm	_Unknown_File_Format,4,2        ; @Unknown_File_Format
l_.str.1:                               ; @.str.1
	.asciz	"[can't handle vector FNT fonts]\n"

	.no_dead_strip	_fnt_font_load
.subsections_via_symbols
