	.file	"extr_system.c_SYS_InitFont.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SYS_InitFont
	.type	SYS_InitFont, @function
SYS_InitFont:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	je	.L6
	xor	eax, eax
	mov	rbx, rdi
	call	SYS_GetFontEncoding@PLT
	cmp	eax, 1
	je	.L9
	mov	edx, DWORD PTR SYS_FONTSIZE_ANSI[rip]
	mov	rdi, rbx
	xor	esi, esi
	call	memset@PLT
	lea	edi, 119072[rbx]
	movsx	rdi, edi
.L5:
	mov	rsi, rbx
	call	__SYS_LoadFont@PLT
	mov	r12d, eax
	cmp	eax, 1
	je	.L10
.L6:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR SYS_FONTSIZE_SJIS[rip]
	mov	rdi, rbx
	xor	esi, esi
	call	memset@PLT
	lea	edi, 868096[rbx]
	movsx	rdi, edi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	rax, DWORD PTR [rbx]
	lea	esi, 31[rax+rbx]
	lea	rdi, [rbx+rax*4]
	and	esi, -32
	movsx	rsi, esi
	mov	QWORD PTR sys_fontimage[rip], rsi
	call	__expand_font@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	SYS_InitFont, .-SYS_InitFont
	.comm	sys_fontimage,8,8
	.comm	SYS_FONTSIZE_SJIS,4,4
	.comm	SYS_FONTSIZE_ANSI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_system.c_SYS_InitFont.c"
	.text
	.align	2
	.global	SYS_InitFont
	.syntax unified
	.arm
	.fpu softvfp
	.type	SYS_InitFont, %function
SYS_InitFont:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	beq	.L6
	bl	SYS_GetFontEncoding
	cmp	r0, #1
	beq	.L9
	ldr	r3, .L11
	mov	r1, #0
	mov	r0, r4
	ldr	r2, [r3]
	bl	memset
	add	r0, r4, #118784
	add	r0, r0, #288
.L5:
	mov	r1, r4
	bl	__SYS_LoadFont
	cmp	r0, #1
	mov	r5, r0
	beq	.L10
.L6:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L11+4
	mov	r1, #0
	mov	r0, r4
	ldr	r2, [r3]
	bl	memset
	add	r0, r4, #864256
	add	r0, r0, #3840
	b	.L5
.L10:
	ldr	r0, [r4]
	ldr	r3, .L11+8
	add	r1, r4, r0
	add	r1, r1, #31
	bic	r1, r1, #31
	add	r0, r4, r0, lsl #2
	str	r1, [r3]
	bl	__expand_font
	b	.L1
.L12:
	.align	2
.L11:
	.word	SYS_FONTSIZE_ANSI
	.word	SYS_FONTSIZE_SJIS
	.word	sys_fontimage
	.size	SYS_InitFont, .-SYS_InitFont
	.comm	sys_fontimage,4,4
	.comm	SYS_FONTSIZE_SJIS,4,4
	.comm	SYS_FONTSIZE_ANSI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
