	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_GetFontEncoding            ## -- Begin function SYS_GetFontEncoding
	.p2align	4, 0x90
_SYS_GetFontEncoding:                   ## @SYS_GetFontEncoding
	.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	_sys_fontenc@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	cmpl	$2, %ebx
	jl	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_VIDEO_GetCurrentTvMode
	movq	_VI_NTSC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	__viReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	220(%rax), %ebx
	shrl	%ebx
	andl	$1, %ebx
LBB0_3:
	movl	%ebx, (%r14)
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sys_fontenc,4,2                ## @sys_fontenc
	.comm	_VI_NTSC,4,2                    ## @VI_NTSC
	.comm	__viReg,8,3                     ## @_viReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SYS_GetFontEncoding            ; -- Begin function SYS_GetFontEncoding
	.p2align	2
_SYS_GetFontEncoding:                   ; @SYS_GetFontEncoding
	.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
Lloh0:
	adrp	x19, _sys_fontenc@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sys_fontenc@GOTPAGEOFF]
	ldr	w0, [x19]
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.1:
	bl	_VIDEO_GetCurrentTvMode
Lloh2:
	adrp	x8, _VI_NTSC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VI_NTSC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, __viReg@GOTPAGE
Lloh6:
	ldr	x8, [x8, __viReg@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w8, [x8, #220]
	ubfx	w0, w8, #1, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	str	w0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sys_fontenc,4,2                ; @sys_fontenc
	.comm	_VI_NTSC,4,2                    ; @VI_NTSC
	.comm	__viReg,8,3                     ; @_viReg
.subsections_via_symbols
