	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_InitFont                   ## -- Begin function SYS_InitFont
	.p2align	4, 0x90
_SYS_InitFont:                          ## @SYS_InitFont
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_SYS_GetFontEncoding
	cmpl	$1, %eax
	movabsq	$3728443929788416, %rax         ## imm = 0xD3F0000000000
	movabsq	$511410345869312, %rbx          ## imm = 0x1D12000000000
	cmoveq	%rax, %rbx
	movq	_SYS_FONTSIZE_ANSI@GOTPCREL(%rip), %rax
	cmoveq	_SYS_FONTSIZE_SJIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r15, %rdi
	shlq	$32, %rdi
	addq	%rbx, %rdi
	sarq	$32, %rdi
	movq	%r15, %rsi
	callq	___SYS_LoadFont
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movslq	(%r15), %rax
	leal	(%r15,%rax), %ecx
	addl	$31, %ecx
	andl	$-32, %ecx
	movslq	%ecx, %rsi
	movq	_sys_fontimage@GOTPCREL(%rip), %rcx
	movq	%rsi, (%rcx)
	leaq	(%r15,%rax,4), %rdi
	callq	___expand_font
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_FONTSIZE_SJIS,4,2          ## @SYS_FONTSIZE_SJIS
	.comm	_SYS_FONTSIZE_ANSI,4,2          ## @SYS_FONTSIZE_ANSI
	.comm	_sys_fontimage,8,3              ## @sys_fontimage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_InitFont                   ; -- Begin function SYS_InitFont
	.p2align	2
_SYS_InitFont:                          ; @SYS_InitFont
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_SYS_GetFontEncoding
	cmp	w0, #1
	mov	x8, #229935369158656
	movk	x8, #1, lsl #48
	mov	x9, #69269232549888
	movk	x9, #13, lsl #48
	csel	x20, x9, x8, eq
Lloh0:
	adrp	x8, _SYS_FONTSIZE_SJIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_FONTSIZE_SJIS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SYS_FONTSIZE_ANSI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SYS_FONTSIZE_ANSI@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	add	x8, x20, x19, lsl #32
	asr	x0, x8, #32
	mov	x1, x19
	bl	___SYS_LoadFont
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldrsw	x8, [x19]
	add	w9, w19, w8
	add	w9, w9, #31
	and	w9, w9, #0xffffffe0
	sxtw	x1, w9
Lloh4:
	adrp	x9, _sys_fontimage@GOTPAGE
Lloh5:
	ldr	x9, [x9, _sys_fontimage@GOTPAGEOFF]
Lloh6:
	str	x1, [x9]
	add	x0, x19, x8, lsl #2
	bl	___expand_font
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_FONTSIZE_SJIS,4,2          ; @SYS_FONTSIZE_SJIS
	.comm	_SYS_FONTSIZE_ANSI,4,2          ; @SYS_FONTSIZE_ANSI
	.comm	_sys_fontimage,8,3              ; @sys_fontimage
.subsections_via_symbols
