	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcsxfrm_l                      ## -- Begin function wcsxfrm_l
	.p2align	4, 0x90
_wcsxfrm_l:                             ## @wcsxfrm_l
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rcx, %rdi
	callq	_FIX_LOCALE
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.4:
	movq	(%rbx), %rax
	movq	_XLC_COLLATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_5
LBB0_9:
	movq	%r13, %rdi
	callq	_wcslen
	movq	%rax, %r12
	cmpq	%r15, %rax
	jae	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_wcscpy
	jmp	LBB0_14
LBB0_1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movl	$0, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_11:
	testq	%r15, %r15
	je	LBB0_14
## %bb.12:
	leaq	-1(%r15), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_wcsncpy
	jmp	LBB0_13
LBB0_5:
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	__collate_wxfrm
	cmpq	$-1, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r12
	cmpq	%r15, %rax
	jae	LBB0_8
## %bb.7:
	movl	$0, (%r14,%r12,4)
	jmp	LBB0_14
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_8:
	testq	%r15, %r15
	je	LBB0_14
LBB0_13:
	movl	$0, -4(%r14,%r15,4)
LBB0_14:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XLC_COLLATE,8,3                ## @XLC_COLLATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcsxfrm_l                      ; -- Begin function wcsxfrm_l
	.p2align	2
_wcsxfrm_l:                             ; @wcsxfrm_l
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x3
	bl	_FIX_LOCALE
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _XLC_COLLATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XLC_COLLATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
LBB0_2:
	mov	x0, x22
	bl	_wcslen
	mov	x20, x0
	cmp	x0, x21
	b.hs	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_wcscpy
	b	LBB0_13
LBB0_4:
	mov	x20, #0
	cbz	x21, LBB0_13
; %bb.5:
	str	wzr, [x19]
	b	LBB0_13
LBB0_6:
	cbz	x21, LBB0_13
; %bb.7:
	sub	x21, x21, #1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_wcsncpy
	str	wzr, [x19, x21, lsl #2]
	b	LBB0_13
LBB0_8:
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	__collate_wxfrm
	cmn	x0, #1
	b.eq	LBB0_2
; %bb.9:
	mov	x20, x0
	cmp	x0, x21
	b.hs	LBB0_11
; %bb.10:
	str	wzr, [x19, x20, lsl #2]
	b	LBB0_13
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	add	x8, x19, x21, lsl #2
	stur	wzr, [x8, #-4]
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XLC_COLLATE,8,3                ; @XLC_COLLATE
.subsections_via_symbols
