	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__collate_sxfrm                 ## -- Begin function _collate_sxfrm
	.p2align	4, 0x90
__collate_sxfrm:                        ## @_collate_sxfrm
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_XFRM_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	(%r15), %rax
	movl	(%rax), %r15d
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_assert
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.1:
	leal	1(%r15), %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r8d, %r8d
	xorl	%r13d, %r13d
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_68
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r8
	cmpq	-136(%rbp), %r8                 ## 8-byte Folded Reload
	movq	-144(%rbp), %r15                ## 8-byte Reload
	je	LBB0_68
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##       Child Loop BB0_38 Depth 3
                                        ##     Child Loop BB0_44 Depth 2
                                        ##       Child Loop BB0_45 Depth 3
                                        ##       Child Loop BB0_60 Depth 3
	movq	$0, -88(%rbp)
	testq	%r8, %r8
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_XFRM_SEP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r12)
	incq	%r12
	decq	%rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r10
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r15, %r8
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_DIRECTIVE_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DIRECTIVE_FORWARD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r8,4), %edx
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	_DIRECTIVE_BACKWARD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r10, %r13
	callq	_free
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_wcsdup
	testq	%rax, %rax
	je	LBB0_70
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_wcslen
	cltq
	leaq	(%r15,%rax,8), %rax
	addq	$-8, %rax
	cmpq	%rax, %r15
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jae	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rcx
	addq	$8, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r10
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%rcx), %rdx
	movq	(%rax), %rsi
	movq	%rsi, -8(%rcx)
	movq	%rdx, (%rax)
	addq	$-8, %rax
	leaq	8(%rcx), %rdx
	cmpq	%rax, %rcx
	movq	%rdx, %rcx
	jb	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rsi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rsi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r10
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rsi), %rax
	orq	-88(%rbp), %rax
	setne	%al
	movq	_DIRECTIVE_POSITION@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_43
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	testb	%al, %al
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_4
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_38 Depth 3
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	leaq	-92(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%r8, %r14
	movq	%rdi, %r15
	leaq	-88(%rbp), %r9
	callq	__collate_lookup
	movq	%r15, %rdi
	movslq	-92(%rbp), %r15
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	jg	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	js	LBB0_66
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	$0, -88(%rbp)
	movq	_COLLATE_MAX_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -68(%rbp)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	%r13, %rsi
	movl	%r14d, %ecx
	callq	_xfrm
	movslq	%eax, %rdi
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	testl	%eax, %eax
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	testb	$1, %al
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r14
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%rdi, %rdx
	cmpl	$1, %eax
	jne	LBB0_38
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %r14
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r14
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=2
	leaq	-1(%rdi), %rdx
	movb	-8(%r14,%rdi,8), %cl
	movb	%cl, (%r12)
	incq	%r12
	decq	%rbx
	cmpl	$1, %eax
	jne	LBB0_38
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_24 Depth=2
	leaq	(%rsi,%r15,8), %rsi
	addq	%rdi, %r10
	cmpq	$0, (%rsi)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	jne	LBB0_24
## %bb.35:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpq	$0, -88(%rbp)
	movq	%r10, %r13
	jne	LBB0_24
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_38 Depth=3
	movzbl	-16(%r14,%rdx,8), %ecx
	movb	%cl, (%r12)
	incq	%r12
	decq	%rbx
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=3
	movq	%rax, %rdx
	testl	%eax, %eax
	je	LBB0_34
LBB0_38:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_24 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%rbx, %rbx
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=3
	movzbl	-8(%r14,%rdx,8), %eax
	movb	%al, (%r12)
	incq	%r12
	decq	%rbx
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_38 Depth=3
	xorl	%ebx, %ebx
LBB0_41:                                ##   in Loop: Header=BB0_38 Depth=3
	leaq	-2(%rdx), %rax
	testq	%rbx, %rbx
	jne	LBB0_36
## %bb.42:                              ##   in Loop: Header=BB0_38 Depth=3
	xorl	%ebx, %ebx
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	%al, %al
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_4
LBB0_44:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_45 Depth 3
                                        ##       Child Loop BB0_60 Depth 3
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_45:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_44 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rdi, %r13
	leaq	-92(%rbp), %rdx
	leaq	-68(%rbp), %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	leaq	-88(%rbp), %r9
	movq	%rsi, %r15
	callq	__collate_lookup
	movq	%r15, %rsi
	movslq	-92(%rbp), %rax
	leaq	(%r15,%rax,8), %rsi
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	jg	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=3
	js	LBB0_66
## %bb.47:                              ##   in Loop: Header=BB0_45 Depth=3
	movq	$0, -88(%rbp)
	cmpq	$0, (%rsi)
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %rdi
	jne	LBB0_45
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_44 Depth=2
	movq	%rsi, %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_xfrm
	movslq	%eax, %r9
	testq	%rbx, %rbx
	je	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_44 Depth=2
	testl	%eax, %eax
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_44 Depth=2
	testb	$1, %al
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdi
	jne	LBB0_55
## %bb.51:                              ##   in Loop: Header=BB0_44 Depth=2
	movq	%r9, %rdx
	cmpl	$1, %eax
	jne	LBB0_60
	jmp	LBB0_56
LBB0_52:                                ##   in Loop: Header=BB0_44 Depth=2
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_54
LBB0_53:                                ##   in Loop: Header=BB0_44 Depth=2
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_54:                                ##   in Loop: Header=BB0_44 Depth=2
	movq	%r15, %rsi
	movq	%r13, %rdi
	jmp	LBB0_56
LBB0_55:                                ##   in Loop: Header=BB0_44 Depth=2
	leaq	-1(%r9), %rdx
	movb	-8(%r14,%r9,8), %cl
	movb	%cl, (%r12)
	incq	%r12
	decq	%rbx
	cmpl	$1, %eax
	jne	LBB0_60
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_44 Depth=2
	addq	%r9, %r10
	cmpq	$0, (%rsi)
	movq	%r10, %r13
	jne	LBB0_44
## %bb.57:                              ##   in Loop: Header=BB0_44 Depth=2
	cmpq	$0, -88(%rbp)
	movq	%r10, %r13
	jne	LBB0_44
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_60 Depth=3
	movzbl	-16(%r14,%rdx,8), %ecx
	movb	%cl, (%r12)
	incq	%r12
	decq	%rbx
LBB0_59:                                ##   in Loop: Header=BB0_60 Depth=3
	movq	%rax, %rdx
	testl	%eax, %eax
	je	LBB0_56
LBB0_60:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_44 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%rbx, %rbx
	je	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=3
	movzbl	-8(%r14,%rdx,8), %eax
	movb	%al, (%r12)
	incq	%r12
	decq	%rbx
	jmp	LBB0_63
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_60 Depth=3
	xorl	%ebx, %ebx
LBB0_63:                                ##   in Loop: Header=BB0_60 Depth=3
	leaq	-2(%rdx), %rax
	testq	%rbx, %rbx
	jne	LBB0_58
## %bb.64:                              ##   in Loop: Header=BB0_60 Depth=3
	xorl	%ebx, %ebx
	jmp	LBB0_59
LBB0_66:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_67:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	$-1, %r13
LBB0_68:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	movq	-128(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_71
## %bb.69:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_70:
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_67
LBB0_71:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_BYTES,4,2                 ## @XFRM_BYTES
	.comm	_XFRM_SEP,4,2                   ## @XFRM_SEP
	.comm	_DIRECTIVE_FORWARD,4,2          ## @DIRECTIVE_FORWARD
	.comm	_DIRECTIVE_UNDEFINED,4,2        ## @DIRECTIVE_UNDEFINED
	.comm	_DIRECTIVE_BACKWARD,4,2         ## @DIRECTIVE_BACKWARD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_DIRECTIVE_POSITION,4,2         ## @DIRECTIVE_POSITION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_COLLATE_MAX_PRIORITY,4,2       ## @COLLATE_MAX_PRIORITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__collate_sxfrm                 ; -- Begin function _collate_sxfrm
	.p2align	2
__collate_sxfrm:                        ; @_collate_sxfrm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x22, x3
	mov	x19, x2
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _XFRM_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRM_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	x8, [x0]
	ldr	w20, [x8]
	stur	x1, [x29, #-112]                ; 8-byte Folded Spill
	mov	x0, x1
	bl	_assert
	tbnz	w20, #31, LBB0_42
; %bb.1:
	mov	x25, #0
	mov	x28, #0
	mov	x26, #0
	mov	x23, #0
	add	w8, w20, #1
	stp	x8, x20, [x29, #-136]           ; 16-byte Folded Spill
	sub	x8, x24, #8
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldp	x8, x20, [x29, #-136]           ; 16-byte Folded Reload
	cmp	x25, x8
	b.eq	LBB0_43
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;       Child Loop BB0_27 Depth 3
                                        ;     Child Loop BB0_30 Depth 2
                                        ;       Child Loop BB0_37 Depth 3
	stur	xzr, [x29, #-104]
	cbz	x25, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x8, _XFRM_SEP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XFRM_SEP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	strb	w8, [x19], #1
	sub	x22, x22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x25, x20
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x8, _DIRECTIVE_FORWARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIRECTIVE_FORWARD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _DIRECTIVE_UNDEFINED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DIRECTIVE_UNDEFINED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w20, [x8, x25, lsl #2]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _DIRECTIVE_BACKWARD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DIRECTIVE_BACKWARD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_free
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	bl	_wcsdup
	mov	x23, x0
	cbz	x0, LBB0_45
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_wcslen
	add	x8, x23, w0, sxtw #3
	sub	x8, x8, #8
	cmp	x23, x8
	b.hs	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x23, #8
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x10, [x9, #-8]
	ldr	x11, [x8]
	stur	x11, [x9, #-8]
	str	x10, [x8], #-8
	add	x10, x9, #8
	cmp	x9, x8
	mov	x9, x10
	b.lo	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x23
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x27, [x29, #-112]               ; 8-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x8, _DIRECTIVE_POSITION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DIRECTIVE_POSITION@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x8]
	ldr	x8, [x27]
	ldur	x10, [x29, #-104]
	orr	x8, x8, x10
	cmp	x8, #0
	cset	w8, ne
	and	w9, w9, w20
	cbz	w9, LBB0_29
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	cbnz	w8, LBB0_20
	b	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x27, x27, x28, lsl #3
	add	x26, x26, x8
	ldr	x8, [x27]
	ldur	x9, [x29, #-104]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	mov	x28, x26
	b.eq	LBB0_2
LBB0_20:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_27 Depth 3
	sub	x2, x29, #96
	sub	x3, x29, #92
	sub	x5, x29, #104
	mov	x0, x21
	mov	x1, x27
	mov	x4, x25
	bl	__collate_lookup
	ldp	w28, w2, [x29, #-96]
                                        ; kill: def $w28 killed $w28 def $x28
	sxtw	x28, w28
	cmp	w2, #0
	b.gt	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	tbnz	w2, #31, LBB0_40
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=2
	stur	xzr, [x29, #-104]
Lloh23:
	adrp	x8, _COLLATE_MAX_PRIORITY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _COLLATE_MAX_PRIORITY@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	stur	w2, [x29, #-92]
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=2
	mov	x0, x21
	mov	x1, x24
	mov	x3, x25
	bl	_xfrm
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cbz	x22, LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=2
	cbz	w0, LBB0_19
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=2
	add	x9, x20, x8, lsl #3
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=3
	sub	x9, x9, #8
	sub	w0, w0, #1
	cbz	w0, LBB0_19
LBB0_27:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_20 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	x22, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=3
	ldr	x10, [x9]
	strb	w10, [x19], #1
	sub	x22, x22, #1
	b	LBB0_26
LBB0_29:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	cbz	w8, LBB0_2
LBB0_30:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_37 Depth 3
	sub	x2, x29, #96
	sub	x3, x29, #92
	sub	x5, x29, #104
	mov	x0, x21
	mov	x1, x27
	mov	x4, x25
	bl	__collate_lookup
	ldp	w8, w2, [x29, #-96]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	x27, x27, x8, lsl #3
	cmp	w2, #0
	b.gt	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	tbnz	w2, #31, LBB0_40
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=2
	stur	xzr, [x29, #-104]
	ldr	x8, [x27]
	cbnz	x8, LBB0_30
	b	LBB0_2
LBB0_33:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	x0, x21
	mov	x1, x24
	mov	x3, x25
	bl	_xfrm
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cbz	x22, LBB0_39
; %bb.34:                               ;   in Loop: Header=BB0_30 Depth=2
	cbz	w0, LBB0_39
; %bb.35:                               ;   in Loop: Header=BB0_30 Depth=2
	add	x9, x20, x8, lsl #3
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=3
	sub	x9, x9, #8
	sub	w0, w0, #1
	cbz	w0, LBB0_39
LBB0_37:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_30 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	x22, LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=3
	ldr	x10, [x9]
	strb	w10, [x19], #1
	sub	x22, x22, #1
	b	LBB0_36
LBB0_39:                                ;   in Loop: Header=BB0_30 Depth=2
	add	x28, x26, x8
	ldr	x8, [x27]
	ldur	x9, [x29, #-104]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	mov	x26, x28
	b.ne	LBB0_30
	b	LBB0_2
LBB0_40:
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_41:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _errno@GOTPAGE
Lloh29:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
	mov	x28, #-1
	b	LBB0_43
LBB0_42:
	mov	x23, #0
	mov	x28, #0
LBB0_43:
	mov	x0, x23
	bl	_free
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.44:
	mov	x0, x28
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_45:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_41
LBB0_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_BYTES,4,2                 ; @XFRM_BYTES
	.comm	_XFRM_SEP,4,2                   ; @XFRM_SEP
	.comm	_DIRECTIVE_FORWARD,4,2          ; @DIRECTIVE_FORWARD
	.comm	_DIRECTIVE_UNDEFINED,4,2        ; @DIRECTIVE_UNDEFINED
	.comm	_DIRECTIVE_BACKWARD,4,2         ; @DIRECTIVE_BACKWARD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_DIRECTIVE_POSITION,4,2         ; @DIRECTIVE_POSITION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_COLLATE_MAX_PRIORITY,4,2       ; @COLLATE_MAX_PRIORITY
.subsections_via_symbols
