	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_wcsnlen
_test_wcsnlen:                          ## @test_wcsnlen
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_wcslen
	movslq	%eax, %r13
	leaq	1(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	11(%r13), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_makebuf
	movq	%rax, %r12
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	cmovbq	%rbx, %rdx
	movq	%r13, %r14
	cmovbq	%rbx, %r13
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_wmemcpy
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wcsnlen
	xorl	%edi, %edi
	cmpq	%r13, %rax
	movq	%r14, %r13
	sete	%dil
	callq	_ATF_CHECK
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	%rbx
	addq	$4, %r15
	cmpq	%rax, %rbx
	jbe	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_makebuf
	movq	%rax, %r12
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	cmovbq	%rbx, %rdx
	movq	%r14, %r13
	cmovbq	%rbx, %r13
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_wmemcpy
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wcsnlen
	xorl	%edi, %edi
	cmpq	%r13, %rax
	sete	%dil
	callq	_ATF_CHECK
	incq	%rbx
	addq	$4, %r15
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	jbe	LBB0_3
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_test_wcsnlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_wcsnlen
_test_wcsnlen:                          ; @test_wcsnlen
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_wcslen
	mov	x20, #0
	mov	x21, #0
	add	w8, w0, #1
	sxtw	x23, w8
	add	x24, x23, #10
	sub	x25, x23, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_makebuf
	mov	x22, x0
	cmp	x21, x23
	csel	x2, x21, x23, lo
	csel	x26, x21, x25, lo
	mov	x1, x19
	bl	_wmemcpy
	mov	x0, x22
	mov	x1, x21
	bl	_wcsnlen
	cmp	x0, x26
	cset	w0, eq
	bl	_ATF_CHECK
	add	x21, x21, #1
	add	x20, x20, #4
	cmp	x21, x24
	b.ls	LBB0_1
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_makebuf
	mov	x22, x0
	cmp	x21, x23
	csel	x2, x21, x23, lo
	csel	x26, x21, x25, lo
	mov	x1, x19
	bl	_wmemcpy
	mov	x0, x22
	mov	x1, x21
	bl	_wcsnlen
	cmp	x0, x26
	cset	w0, eq
	bl	_ATF_CHECK
	add	x21, x21, #1
	add	x20, x20, #4
	cmp	x21, x24
	b.ls	LBB0_3
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_test_wcsnlen
.subsections_via_symbols
