	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_looks_utf16                    ## -- Begin function looks_utf16
	.p2align	4, 0x90
_looks_utf16:                           ## @looks_utf16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	cmpq	$2, %rsi
	jb	LBB0_17
## %bb.1:
	movl	(%rdi), %r11d
	shll	$8, %r11d
	xorl	4(%rdi), %r11d
	movl	$1, %r10d
	cmpl	$65534, %r11d                   ## imm = 0xFFFE
	je	LBB0_3
## %bb.2:
	movl	$2, %r10d
	cmpl	$65279, %r11d                   ## imm = 0xFEFF
	jne	LBB0_17
LBB0_3:
	cmpq	$4, %rsi
	jb	LBB0_13
## %bb.4:
	movq	_text_chars@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_T@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%eax, %eax
	movl	$3, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %eax
	cmpl	$-1024, %ebx                    ## imm = 0xFC00
	jb	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rdx
	cmpq	%rsi, %rdx
	jae	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi,%rdx,4), %ecx
	cmpl	$65534, %r11d                   ## imm = 0xFFFE
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rdi,%rdx,4), %ebx
	shll	$8, %ebx
	xorl	%ecx, %ebx
	movl	%ebx, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	shll	$8, %ecx
	xorl	(%rdi,%rdx,4), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	-57344(%rcx), %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-2049, %ebx                    ## imm = 0xF7FF
	ja	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	cmpl	$127, %ecx
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %ecx
	xorl	%eax, %eax
	cmpq	%r9, (%r8,%rcx,8)
	je	LBB0_12
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %eax
	cmpl	$56319, %ecx                    ## imm = 0xDBFF
	jbe	LBB0_12
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	movl	%r10d, %eax
LBB0_17:
	popq	%rbx
	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	_looks_utf16                    ; -- Begin function looks_utf16
	.p2align	2
_looks_utf16:                           ; @looks_utf16
	.cfi_startproc
; %bb.0:
	cmp	x1, #2
	b.lo	LBB0_17
; %bb.1:
	ldp	w8, w9, [x0]
	eor	w8, w9, w8, lsl #8
	mov	w9, #65534
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	w9, #1
	cmp	x1, #4
	b.hs	LBB0_5
	b	LBB0_18
LBB0_3:
	mov	w9, #65279
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.4:
	mov	w9, #2
	cmp	x1, #4
	b.lo	LBB0_18
LBB0_5:
	mov	x11, #0
	mov	w14, #0
Lloh0:
	adrp	x10, _text_chars@GOTPAGE
Lloh1:
	ldr	x10, [x10, _text_chars@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x12, _T@GOTPAGE
Lloh4:
	ldr	x12, [x12, _T@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	mov	w13, #65534
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w16, [x16, #12]
	eor	w15, w15, w16, lsl #8
	sub	w16, w15, #14, lsl #12          ; =57344
	cbz	w14, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmn	w16, #1024
	b.lo	LBB0_17
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w14, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x15, x11, #5
	add	x11, x11, #2
	cmp	x15, x1
	b.hs	LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x16, x0, x11, lsl #2
	ldr	w15, [x16, #8]
	cmp	w8, w13
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w16, [x16, #12]
	eor	w15, w16, w15, lsl #8
	sub	w16, w15, #14, lsl #12          ; =57344
	cbnz	w14, LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	cmn	w16, #2049
	b.hi	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w15, #127
	b.hi	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w14, #0
	mov	w2, #0
	ldr	x15, [x10, w15, uxtw #3]
	cmp	x15, x12
	b.eq	LBB0_9
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	lsr	w14, w15, #10
	cmp	w14, #54
	b.ls	LBB0_8
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w14, #0
	b	LBB0_9
LBB0_17:
	mov	w0, #0
	ret
LBB0_18:
	mov	x2, x9
LBB0_19:
	mov	x0, x2
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_text_chars,8,3                 ; @text_chars
	.comm	_T,8,3                          ; @T
.subsections_via_symbols
