	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utf16_strnlen
_utf16_strnlen:                         ## @utf16_strnlen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %rax
	cmpl	$0, (%rdi,%rcx,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rsi, %rcx
	movq	%rax, %rcx
	jb	LBB0_3
LBB0_5:
	decq	%rax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_utf16_strnlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utf16_strnlen
_utf16_strnlen:                         ; @utf16_strnlen
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #0
	ccmp	x1, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, #0
	ret
LBB0_2:
	mov	w8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0, x8, lsl #2]
	add	x9, x8, #1
	cmp	w10, #0
	ccmp	x8, x1, #2, ne
	mov	x8, x9
	b.lo	LBB0_3
; %bb.4:
	sub	x0, x9, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_utf16_strnlen
.subsections_via_symbols
