	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwsncmp                        ## -- Begin function bwsncmp
	.p2align	4, 0x90
_bwsncmp:                               ## @bwsncmp
	.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
	movq	%rdx, %rbx
	movq	(%rdi), %r13
	movq	(%rsi), %r12
	subq	%rdx, %r13
	jbe	LBB0_1
## %bb.2:
	movl	$1, %eax
	subq	%rbx, %r12
	jbe	LBB0_10
## %bb.3:
	cmpq	%r13, %r12
	movq	%r13, %r14
	cmovbq	%r12, %r14
	cmpq	%rcx, %r14
	cmovaeq	%rcx, %r14
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	8(%rdi), %rdi
	addq	%rbx, %rdi
	addq	8(%rsi), %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	cmpq	%r12, %rbx
	sbbl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movq	16(%rdi), %r15
	addq	%rbx, %r15
	addq	16(%rsi), %rbx
	movq	%r14, %rdi
	callq	_SIZEOF_WCHAR_STRING
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
LBB0_6:
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	cmpq	%r14, %r13
	jae	LBB0_9
## %bb.8:
	movl	$-1, %eax
	cmpq	%r12, %r13
	jb	LBB0_10
LBB0_9:
	cmpq	%r13, %r12
	setb	%al
	cmpq	%r14, %r12
	setb	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwsncmp                        ; -- Begin function bwsncmp
	.p2align	2
_bwsncmp:                               ; @bwsncmp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x9, [x0]
	ldr	x8, [x1]
	subs	x22, x9, x2
	b.ls	LBB0_4
; %bb.1:
	subs	x23, x8, x2
	b.ls	LBB0_5
; %bb.2:
	cmp	x23, x22
	csel	x8, x23, x22, lo
	cmp	x8, x3
	csel	x19, x8, x3, lo
Lloh0:
	adrp	x8, _MB_CUR_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB_CUR_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x0, #8]
	add	x0, x8, x2
	ldr	x8, [x1, #8]
	add	x1, x8, x2
	mov	x2, x19
	b	LBB0_7
LBB0_4:
	cmp	x8, x2
	csetm	w0, hi
	b	LBB0_8
LBB0_5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
	ldr	x8, [x0, #16]
	add	x20, x8, x2
	ldr	x8, [x1, #16]
	add	x21, x8, x2
	mov	x0, x19
	bl	_SIZEOF_WCHAR_STRING
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
LBB0_7:
	bl	_memcmp
	mov	w8, #-1
	cmp	x23, x19
	ccmp	x23, x22, #2, lo
	cset	w9, lo
	cmp	x22, x19
	ccmp	x22, x23, #2, lo
	csel	w8, w8, w9, lo
	cmp	w0, #0
	csel	w0, w0, w8, ne
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
.subsections_via_symbols
