	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___collate_equiv_value          ## -- Begin function __collate_equiv_value
	.p2align	4, 0x90
___collate_equiv_value:                 ## @__collate_equiv_value
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r12d
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.1:
	movq	%rdx, %r13
	movq	_COLLATE_STR_LEN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jbe	LBB0_15
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_FIX_LOCALE
	movq	(%rbx), %rax
	movq	_XLC_COLLATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.3:
	cmpq	$1, %r13
	jne	LBB0_15
## %bb.4:
	movl	(%r15), %eax
	movq	_UCHAR_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$-1, %r12d
	cmovlel	%eax, %r12d
	jmp	LBB0_15
LBB0_5:
	cmpq	$1, %r13
	jne	LBB0_11
## %bb.6:
	movslq	(%r15), %rax
	movq	_UCHAR_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_7
## %bb.8:
	movq	(%r14), %rcx
	xorl	%r12d, %r12d
	cmpq	$0, (%rcx)
	jle	LBB0_15
## %bb.9:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_largesearch
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_15
LBB0_11:
	movq	(%r14), %rax
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rax)
	jle	LBB0_15
## %bb.12:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_COLLATE_STR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_wcsncpy
	movl	$0, (%rbx,%r13,4)
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_chainsearch
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	movl	$1, %r12d
	cmovbl	%ecx, %r12d
LBB0_14:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_7:
	shlq	$3, %rax
	addq	8(%r14), %rax
LBB0_10:
	movq	(%rax), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	movl	$1, %r12d
	cmovnel	%ecx, %r12d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COLLATE_STR_LEN,8,3            ## @COLLATE_STR_LEN
	.comm	_XLC_COLLATE,8,3                ## @XLC_COLLATE
	.comm	_UCHAR_MAX,4,2                  ## @UCHAR_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___collate_equiv_value          ; -- Begin function __collate_equiv_value
	.p2align	2
___collate_equiv_value:                 ; @__collate_equiv_value
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w0, #-1
	cbz	x2, LBB0_17
; %bb.1:
	mov	x19, x2
Lloh3:
	adrp	x22, _COLLATE_STR_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _COLLATE_STR_LEN@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x2
	b.ls	LBB0_17
; %bb.2:
	mov	x21, x1
	mov	x0, x20
	bl	_FIX_LOCALE
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _XLC_COLLATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XLC_COLLATE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x20, [x8, x9, lsl #3]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
	cmp	x19, #1
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _UCHAR_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UCHAR_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	csinv	w0, w8, wzr, le
	b	LBB0_17
LBB0_5:
	cmp	x19, #1
	b.ne	LBB0_10
; %bb.6:
	ldrsw	x1, [x21]
Lloh11:
	adrp	x8, _UCHAR_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UCHAR_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w1, w8
	b.le	LBB0_15
; %bb.7:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_largesearch
	cbnz	x0, LBB0_16
	b	LBB0_17
LBB0_9:
	mov	w0, #-1
	b	LBB0_17
LBB0_10:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x23, sp
	ldr	x8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_wcsncpy
	str	wzr, [x22, x19, lsl #2]
	sub	x2, x29, #60
	mov	x0, x20
	mov	x1, x22
	bl	_chainsearch
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #0
	cneg	w8, w8, mi
	csinc	w0, w8, wzr, ne
LBB0_13:
	mov	sp, x23
	b	LBB0_17
LBB0_14:
	mov	w0, #0
	b	LBB0_17
LBB0_15:
	ldr	x8, [x20, #8]
	add	x0, x8, x1, lsl #3
LBB0_16:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	csinc	w0, w8, wzr, ne
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #48
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_COLLATE_STR_LEN,8,3            ; @COLLATE_STR_LEN
	.comm	_XLC_COLLATE,8,3                ; @XLC_COLLATE
	.comm	_UCHAR_MAX,4,2                  ; @UCHAR_MAX
.subsections_via_symbols
