	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_looks_utf8                ## -- Begin function file_looks_utf8
	.p2align	4, 0x90
_file_looks_utf8:                       ## @file_looks_utf8
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rcx)
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_38
## %bb.3:
	movq	_text_chars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %rax
	movq	_T@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	movl	$1, %eax
	cmovnel	%eax, %r15d
	testq	%rdx, %rdx
	je	LBB0_4
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rax
	leaq	1(%rax), %rbx
	movq	%rbx, (%rcx)
	movl	%r14d, (%rdx,%rax,4)
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r8
	cmpq	%rsi, %r8
	jae	LBB0_44
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r8,4), %r14d
	testb	$-128, %r14b
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$-1, %eax
	testb	$64, %r14b
	je	LBB0_47
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	$32, %r14b
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$31, %r9d
	xorl	%edi, %edi
	xorl	%r11d, %r11d
	xorl	%r12d, %r12d
	xorl	%r10d, %r10d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$16, %r14b
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r10d
	movb	$1, %dil
	movl	$15, %r9d
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r11d, %r11d
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$8, %r14b
	jne	LBB0_34
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$2, %r10d
	movb	$1, %r11b
	movl	$7, %r9d
	xorl	%edi, %edi
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%r8), %rbx
	cmpq	%rsi, %rbx
	jae	LBB0_43
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx,%r8,4), %r15d
	movl	%r15d, %ebx
	andl	$192, %ebx
	cmpl	$128, %ebx
	jne	LBB0_47
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	andl	%r14d, %r9d
	movl	%r14d, %ebx
	shll	$6, %r9d
	andl	$63, %r15d
	movl	%r15d, %r14d
	orl	%r9d, %r14d
	testb	$32, %bl
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %r15
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	2(%r8), %rbx
	cmpq	%rsi, %rbx
	jae	LBB0_40
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx,%r8,4), %r9d
	movl	%r9d, %ebx
	andl	$192, %ebx
	cmpl	$128, %ebx
	jne	LBB0_47
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %r15
	movl	%r14d, %ebx
	shll	$6, %ebx
	andl	$63, %r9d
	movl	%r9d, %r14d
	orl	%ebx, %r14d
	testb	%dil, %dil
	jne	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	3(%r8), %rbx
	cmpq	%rsi, %rbx
	jae	LBB0_43
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi,%r8,4), %r9d
	movl	%r9d, %ebx
	andl	$192, %ebx
	cmpl	$128, %ebx
	jne	LBB0_47
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %ebx
	shll	$6, %ebx
	andl	$63, %r9d
	movl	%r9d, %r14d
	orl	%ebx, %r14d
	testb	%r11b, %r11b
	jne	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	4(%r8), %rbx
	cmpq	%rsi, %rbx
	jae	LBB0_43
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	16(%rdi,%r8,4), %r9d
	movl	%r9d, %ebx
	andl	$192, %ebx
	cmpl	$128, %ebx
	jne	LBB0_47
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %ebx
	shll	$6, %ebx
	andl	$63, %r9d
	movl	%r9d, %r14d
	orl	%ebx, %r14d
	testb	%r12b, %r12b
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	5(%r8), %rbx
	cmpq	%rsi, %rbx
	jae	LBB0_43
## %bb.30:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	20(%rdi,%r8,4), %r9d
	movl	%r9d, %ebx
	andl	$192, %ebx
	cmpl	$128, %ebx
	jne	LBB0_47
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=1
	shll	$6, %r14d
	andl	$63, %r9d
	orl	%r9d, %r14d
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%r10, %r8
	incq	%r8
	movl	$1, %r9d
	testq	%rdx, %rdx
	jne	LBB0_33
	jmp	LBB0_4
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$4, %r14b
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$3, %r10d
	movb	$1, %r12b
	movl	$3, %r9d
	xorl	%edi, %edi
	xorl	%r11d, %r11d
	jmp	LBB0_16
LBB0_36:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$2, %r14b
	jne	LBB0_47
## %bb.37:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$4, %r10d
	movl	$1, %r9d
	xorl	%edi, %edi
	jmp	LBB0_12
LBB0_38:
	movb	$1, %cl
	jmp	LBB0_45
LBB0_40:
	movq	%r13, %r15
LBB0_43:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
LBB0_44:
	testl	%r15d, %r15d
	sete	%cl
	movl	$2, %edx
	testl	%r9d, %r9d
	jne	LBB0_46
LBB0_45:
	movl	$1, %edx
LBB0_46:
	xorl	%eax, %eax
	testb	%cl, %cl
	cmovnel	%edx, %eax
LBB0_47:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_text_chars,8,3                 ## @text_chars
	.comm	_T,8,3                          ## @T
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_looks_utf8                ; -- Begin function file_looks_utf8
	.p2align	2
_file_looks_utf8:                       ; @file_looks_utf8
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x3]
LBB0_2:
	cbz	x1, LBB0_35
; %bb.3:
	mov	w8, #0
	mov	w9, #0
	mov	x12, #0
Lloh0:
	adrp	x10, _text_chars@GOTPAGE
Lloh1:
	ldr	x10, [x10, _text_chars@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _T@GOTPAGE
Lloh4:
	ldr	x11, [x11, _T@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x14, w13
	ldr	x14, [x10, x14, lsl #3]
	ldr	x15, [x11]
	cmp	x14, x15
	csinc	w8, w8, wzr, eq
	cbz	x2, LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x14, [x3]
	add	x15, x14, #1
	str	x15, [x3]
	str	w13, [x2, x14, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x12, #1
	cmp	x12, x1
	b.hs	LBB0_36
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x0, x12, lsl #2]
	tbz	w13, #7, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	tbz	w13, #6, LBB0_40
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w13, #5, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w17, #0
	mov	w15, #0
	mov	w14, #0
	mov	x16, #0
	mov	w5, #31
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w13, #4, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w15, #0
	mov	w14, #0
	mov	w17, #1
	mov	w5, #15
	mov	w16, #1
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w13, #3, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w17, #0
	mov	w14, #0
	mov	w15, #1
	mov	w5, #7
	mov	w16, #2
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w13, #2, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w17, #0
	mov	w15, #0
	mov	w14, #1
	mov	w5, #3
	mov	w16, #3
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w13, #1, LBB0_40
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w17, #0
	mov	w15, #0
	mov	w14, #0
	mov	w5, #1
	mov	w16, #4
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x4, x12, #1
	cmp	x4, x1
	b.hs	LBB0_36
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w6, [x0, x4, lsl #2]
	and	w7, w6, #0xc0
	cmp	w7, #128
	b.ne	LBB0_40
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	and	w7, w13, w5
	and	w5, w6, #0x3f
	bfi	w5, w7, #6, #5
	tbz	w13, #5, LBB0_34
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x13, x12, #2
	cmp	x13, x1
	b.hs	LBB0_36
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x0, x13, lsl #2]
	and	w6, w13, #0xc0
	cmp	w6, #128
	b.ne	LBB0_40
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	and	w13, w13, #0x3f
	bfi	w13, w5, #6, #11
	mov	x5, x13
	tbnz	w17, #0, LBB0_34
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x17, x12, #3
	cmp	x17, x1
	b.hs	LBB0_36
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w17, [x0, x17, lsl #2]
	and	w5, w17, #0xc0
	cmp	w5, #128
	b.ne	LBB0_40
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	and	w5, w17, #0x3f
	bfi	w5, w13, #6, #17
	tbnz	w15, #0, LBB0_34
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x13, x12, #4
	cmp	x13, x1
	b.hs	LBB0_36
; %bb.29:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x0, x13, lsl #2]
	and	w15, w13, #0xc0
	cmp	w15, #128
	b.ne	LBB0_40
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	and	w13, w13, #0x3f
	bfi	w13, w5, #6, #23
	mov	x5, x13
	tbnz	w14, #0, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x12, #5
	cmp	x12, x1
	b.hs	LBB0_36
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w5, [x0, x12, lsl #2]
	and	w9, w5, #0xc0
	cmp	w9, #128
	b.ne	LBB0_40
; %bb.33:                               ;   in Loop: Header=BB0_7 Depth=1
	bfi	w5, w13, #6, #26
LBB0_34:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x4, x16
	mov	w9, #1
	mov	x13, x5
	cbnz	x2, LBB0_5
	b	LBB0_6
LBB0_35:
	mov	w8, #1
	b	LBB0_38
LBB0_36:
	cmp	w8, #0
	cset	w8, eq
	cbz	w9, LBB0_38
; %bb.37:
	mov	w9, #2
	b	LBB0_39
LBB0_38:
	mov	w9, #1
LBB0_39:
	cmp	w8, #0
	csel	w0, w9, wzr, ne
	ret
LBB0_40:
	mov	w0, #-1
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_text_chars,8,3                 ; @text_chars
	.comm	_T,8,3                          ; @T
.subsections_via_symbols
