	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AnalyzeEncoding                ## -- Begin function AnalyzeEncoding
	.p2align	4, 0x90
_AnalyzeEncoding:                       ## @AnalyzeEncoding
	.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
	movq	_IS_TEXT_UNICODE_STATISTICS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_ENCODING_ANSI@GOTPCREL(%rip), %rbx
	cmpl	$2, %esi
	jl	LBB0_10
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_IsTextNonZeroASCII
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_IsTextUnicode
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ENCODING_UTF16LE@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-28(%rbp), %eax
	movq	_IS_TEXT_UNICODE_REVERSE_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_IS_TEXT_UNICODE_ILLEGAL_CHARS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_7:
	movq	_CP_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB_ERR_INVALID_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_ENCODING_ANSI@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_8:
	movq	_ENCODING_UTF8@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_6:
	movq	_ENCODING_UTF16BE@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_TEXT_UNICODE_STATISTICS,4,2 ## @IS_TEXT_UNICODE_STATISTICS
	.comm	_ENCODING_ANSI,4,2              ## @ENCODING_ANSI
	.comm	_ENCODING_UTF16LE,4,2           ## @ENCODING_UTF16LE
	.comm	_IS_TEXT_UNICODE_REVERSE_MASK,4,2 ## @IS_TEXT_UNICODE_REVERSE_MASK
	.comm	_IS_TEXT_UNICODE_ILLEGAL_CHARS,4,2 ## @IS_TEXT_UNICODE_ILLEGAL_CHARS
	.comm	_ENCODING_UTF16BE,4,2           ## @ENCODING_UTF16BE
	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_MB_ERR_INVALID_CHARS,4,2       ## @MB_ERR_INVALID_CHARS
	.comm	_ENCODING_UTF8,4,2              ## @ENCODING_UTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AnalyzeEncoding                ; -- Begin function AnalyzeEncoding
	.p2align	2
_AnalyzeEncoding:                       ; @AnalyzeEncoding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _IS_TEXT_UNICODE_STATISTICS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_TEXT_UNICODE_STATISTICS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	cmp	w1, #2
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, _ENCODING_ANSI@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ENCODING_ANSI@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	bl	_IsTextNonZeroASCII
Lloh5:
	adrp	x21, _ENCODING_ANSI@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ENCODING_ANSI@GOTPAGEOFF]
	cbnz	x0, LBB0_9
; %bb.3:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_IsTextUnicode
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x21, _ENCODING_UTF16LE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ENCODING_UTF16LE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _IS_TEXT_UNICODE_REVERSE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IS_TEXT_UNICODE_REVERSE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x9, _IS_TEXT_UNICODE_ILLEGAL_CHARS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IS_TEXT_UNICODE_ILLEGAL_CHARS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _CP_UTF8@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CP_UTF8@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MB_ERR_INVALID_CHARS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MB_ERR_INVALID_CHARS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x19
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
Lloh21:
	adrp	x8, _ENCODING_UTF8@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENCODING_UTF8@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x21, x8, eq
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x21, _ENCODING_UTF16BE@GOTPAGE
Lloh24:
	ldr	x21, [x21, _ENCODING_UTF16BE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_TEXT_UNICODE_STATISTICS,4,2 ; @IS_TEXT_UNICODE_STATISTICS
	.comm	_ENCODING_ANSI,4,2              ; @ENCODING_ANSI
	.comm	_ENCODING_UTF16LE,4,2           ; @ENCODING_UTF16LE
	.comm	_IS_TEXT_UNICODE_REVERSE_MASK,4,2 ; @IS_TEXT_UNICODE_REVERSE_MASK
	.comm	_IS_TEXT_UNICODE_ILLEGAL_CHARS,4,2 ; @IS_TEXT_UNICODE_ILLEGAL_CHARS
	.comm	_ENCODING_UTF16BE,4,2           ; @ENCODING_UTF16BE
	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_MB_ERR_INVALID_CHARS,4,2       ; @MB_ERR_INVALID_CHARS
	.comm	_ENCODING_UTF8,4,2              ; @ENCODING_UTF8
.subsections_via_symbols
