	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcsncasecmp                    ## -- Begin function wcsncasecmp
	.p2align	4, 0x90
_wcsncasecmp:                           ## @wcsncasecmp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	decq	%r12
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_towlower
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	callq	_towlower
	cmpq	%rax, %r13
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %r12
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15,%r14,8), %rdi
	incq	%r14
	addq	$-8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.6:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	subq	%rbx, %rsi
LBB0_7:
	xorl	%r13d, %r13d
	subl	(%rsi), %r13d
	jmp	LBB0_11
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_9:
	subl	%eax, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcsncasecmp                    ; -- Begin function wcsncasecmp
	.p2align	2
_wcsncasecmp:                           ; @wcsncasecmp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x2, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.2:
	add	x21, x8, #8
	sub	x22, x2, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_towlower
	mov	x20, x0
	ldr	x0, [x19]
	bl	_towlower
	cmp	x20, x0
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #8
	ldr	x0, [x21], #8
	sub	x22, x22, #1
	cbnz	x0, LBB0_3
LBB0_6:
	ldr	w8, [x19]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	sub	w0, w20, w0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
