	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwscoll                        ## -- Begin function bwscoll
	.p2align	4, 0x90
_bwscoll:                               ## @bwscoll
	.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	%rdx, %rbx
	movq	(%rdi), %r12
	movq	(%rsi), %r8
	subq	%rdx, %r12
	jbe	LBB0_6
## %bb.1:
	movl	$1, %r9d
	subq	%rbx, %r8
	jbe	LBB0_7
## %bb.2:
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_8
## %bb.3:
	movq	8(%rdi), %r13
	addq	%rbx, %r13
	movq	_byte_sort@GOTPCREL(%rip), %rax
	addq	8(%rsi), %rbx
	cmpq	$0, (%rax)
	je	LBB0_24
## %bb.4:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	cmpq	%r8, %r12
	jbe	LBB0_41
## %bb.5:
	movq	%r8, %rdx
	callq	_memcmp
	testl	%eax, %eax
	movl	$1, %r9d
	cmovnel	%eax, %r9d
	jmp	LBB0_7
LBB0_6:
	xorl	%r9d, %r9d
	cmpq	%r8, %rbx
	sbbl	%r9d, %r9d
LBB0_7:
	movl	%r9d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpq	%r8, %r12
	movq	%r8, %rdx
	cmovbq	%r12, %rdx
	testq	%rdx, %rdx
	je	LBB0_40
## %bb.9:
	shlq	$3, %rbx
	movq	16(%rdi), %r14
	addq	%rbx, %r14
	addq	16(%rsi), %rbx
	movq	%rdx, %rsi
	negq	%rsi
	xorl	%r15d, %r15d
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	cmpq	%rdx, %r15
	jae	LBB0_40
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	(,%r15,8), %rax
	negq	%rax
	leaq	1(%r15), %r13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%r14,%r15,8)
	movq	(%rbx,%r15,8), %rcx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	testq	%rcx, %rcx
	jne	LBB0_44
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	incq	%r15
	addq	$-8, %rax
	incq	%r13
	cmpq	%r15, %rdx
	jne	LBB0_12
	jmp	LBB0_40
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r14, %rdi
	subq	%rax, %rdi
	movq	%rbx, %rsi
	subq	%rax, %rsi
	callq	_wide_str_coll
	testl	%eax, %eax
	jne	LBB0_46
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r15
	movl	$1, %r9d
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jae	LBB0_40
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %r15
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, -8(%r14,%r15,8)
	movq	-8(%rbx,%r15,8), %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	testq	%rax, %rax
	je	LBB0_7
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	leaq	(%rsi,%r15), %rax
	incq	%rax
	incq	%r15
	cmpq	$1, %rax
	jne	LBB0_19
	jmp	LBB0_40
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	testq	%rax, %rax
	jne	LBB0_44
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rdx, %r15
	jb	LBB0_10
	jmp	LBB0_40
LBB0_24:
	cmpq	%r8, %r12
	movq	%r8, %rcx
	cmovbq	%r12, %rcx
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.25:
	movq	%rcx, %rdx
	negq	%rdx
	xorl	%r15d, %r15d
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
	cmpq	%rcx, %r15
	jae	LBB0_40
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	leaq	1(%r15), %r14
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, (%r13,%r15)
	movzbl	(%rbx,%r15), %eax
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	testb	%al, %al
	jne	LBB0_44
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=2
	incq	%r15
	incq	%r14
	cmpq	%r15, %rcx
	jne	LBB0_28
	jmp	LBB0_40
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=1
	testb	%al, %al
	je	LBB0_7
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	leaq	(%r15,%r13), %rdi
	leaq	(%rbx,%r15), %rsi
	callq	_strcoll
	testl	%eax, %eax
	jne	LBB0_46
## %bb.33:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r15
	movl	$1, %r9d
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jae	LBB0_40
## %bb.34:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%r14, %r15
LBB0_35:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, -1(%r13,%r15)
	movzbl	-1(%rbx,%r15), %eax
	je	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=2
	testb	%al, %al
	je	LBB0_7
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=2
	leaq	(%rdx,%r15), %rax
	incq	%rax
	incq	%r15
	cmpq	$1, %rax
	jne	LBB0_35
	jmp	LBB0_40
LBB0_38:                                ##   in Loop: Header=BB0_26 Depth=1
	testb	%al, %al
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpq	%rcx, %r15
	jb	LBB0_26
LBB0_40:
	xorl	%eax, %eax
	cmpq	%r8, %r12
	seta	%al
	movl	$-1, %r9d
	cmovael	%eax, %r9d
	jmp	LBB0_7
LBB0_41:
	movq	%r12, %rdx
	movq	%r8, %rbx
	callq	_memcmp
	movl	%eax, %r9d
	cmpq	%rbx, %r12
	jae	LBB0_7
## %bb.42:
	xorl	%eax, %eax
	cmpl	$1, %r9d
	sbbl	%eax, %eax
	orl	%eax, %r9d
	jmp	LBB0_7
LBB0_44:
	movl	$-1, %r9d
	jmp	LBB0_7
LBB0_46:
	movl	%eax, %r9d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.comm	_byte_sort,8,3                  ## @byte_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwscoll                        ; -- Begin function bwscoll
	.p2align	2
_bwscoll:                               ; @bwscoll
	.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	x20, x9, x2
	b.ls	LBB0_6
; %bb.1:
	subs	x19, x8, x2
	b.ls	LBB0_37
; %bb.2:
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_7
; %bb.3:
	ldr	x8, [x0, #8]
	add	x21, x8, x2
	ldr	x8, [x1, #8]
	add	x22, x8, x2
Lloh3:
	adrp	x8, _byte_sort@GOTPAGE
Lloh4:
	ldr	x8, [x8, _byte_sort@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	cmp	x20, x19
	b.ls	LBB0_39
; %bb.5:
	mov	x2, x19
	bl	_memcmp
	cmp	w0, #0
	csinc	w0, w0, wzr, ne
	b	LBB0_38
LBB0_6:
	cmp	x8, x2
	csetm	w0, hi
	b	LBB0_38
LBB0_7:
	cmp	x20, x19
	csel	x21, x20, x19, lo
	cbz	x21, LBB0_36
; %bb.8:
	mov	x22, #0
	ldr	x8, [x0, #16]
	lsl	x9, x2, #3
	add	x23, x8, x9
	ldr	x8, [x1, #16]
	add	x24, x8, x9
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	cmp	x22, x21
	b.hs	LBB0_36
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	neg	x8, x22, lsl #3
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x9, x22, #3
	ldr	x10, [x23, x9]
	ldr	x9, [x24, x9]
	cbnz	x10, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cbnz	x9, LBB0_40
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x22, x22, #1
	sub	x8, x8, #8
	cmp	x21, x22
	b.ne	LBB0_11
	b	LBB0_36
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x9, LBB0_37
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x0, x23, x8
	sub	x1, x24, x8
	bl	_wide_str_coll
	cbnz	w0, LBB0_38
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x22, x21
	b.hs	LBB0_36
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x22, #3
	ldr	x9, [x23, x8]
	ldr	x8, [x24, x8]
	cbz	x9, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	cbz	x8, LBB0_37
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_17
	b	LBB0_36
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x8, LBB0_40
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	cmp	x22, x21
	b.lo	LBB0_9
	b	LBB0_36
LBB0_22:
	cmp	x20, x19
	csel	x23, x20, x19, lo
	cbz	x23, LBB0_36
; %bb.23:
	mov	x24, #0
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
                                        ;     Child Loop BB0_31 Depth 2
	cmp	x24, x23
	b.hs	LBB0_36
LBB0_25:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x21, x24]
	ldrb	w8, [x22, x24]
	cbnz	w9, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	cbnz	w8, LBB0_40
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=2
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_25
	b	LBB0_36
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=1
	cbz	w8, LBB0_37
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x0, x21, x24
	add	x1, x22, x24
	bl	_strcoll
	cbnz	w0, LBB0_38
; %bb.30:                               ;   in Loop: Header=BB0_24 Depth=1
	cmp	x24, x23
	b.hs	LBB0_36
LBB0_31:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x21, x24]
	ldrb	w8, [x22, x24]
	cbz	w9, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=2
	cbz	w8, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=2
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_31
	b	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_24 Depth=1
	cbnz	w8, LBB0_40
; %bb.35:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x24, x24, #1
	cmp	x24, x23
	b.lo	LBB0_24
LBB0_36:
	cmp	x20, x19
	cset	w8, hi
	csinv	w0, w8, wzr, hs
	b	LBB0_38
LBB0_37:
	mov	w0, #1
LBB0_38:
	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
LBB0_39:
	mov	x2, x20
	bl	_memcmp
	cmp	w0, #0
	csinv	w8, w0, wzr, ne
	cmp	x20, x19
	csel	w0, w0, w8, hs
	b	LBB0_38
LBB0_40:
	mov	w0, #-1
	b	LBB0_38
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.comm	_byte_sort,8,3                  ; @byte_sort
.subsections_via_symbols
