	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_strcoll_l                      ## -- Begin function strcoll_l
	.p2align	4, 0x90
_strcoll_l:                             ## @strcoll_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-56(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-52(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, -88(%rbp)
	movq	%rbx, -80(%rbp)
	movq	%r14, %rdi
	callq	_FIX_LOCALE
	movq	(%r14), %rax
	movq	_XLC_COLLATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
LBB0_2:
	movq	%r13, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	4(,%r12,4), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	incl	%ebx
	movslq	%ebx, %rbx
	leaq	(,%rbx,4), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	leaq	-88(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %r8
	callq	_mbsrtowcs_l
	cmpq	$-1, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_2
## %bb.8:
	leaq	-80(%rbp), %rsi
	leaq	-52(%rbp), %rcx
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_mbsrtowcs_l
	cmpq	$-1, %rax
	je	LBB0_2
## %bb.9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_wcscoll_l
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_4:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_6:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.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	_strcoll_l                      ; -- Begin function strcoll_l
	.p2align	2
_strcoll_l:                             ; @strcoll_l
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	stp	x19, x20, [sp, #16]
	mov	x0, x21
	bl	_FIX_LOCALE
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _XLC_COLLATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XLC_COLLATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x22, #0
LBB0_2:
	mov	x0, x22
	bl	_free
	mov	x0, x23
	bl	_free
	mov	x0, x20
	mov	x1, x19
	bl	_strcmp
	mov	x19, x0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x0, x20
	bl	_strlen
	add	w25, w0, #1
	mov	x0, x19
	bl	_strlen
	mov	x23, x0
	sbfiz	x0, x25, #2, #32
	bl	_malloc
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.5:
	add	w8, w23, #1
	sxtw	x24, w8
	lsl	x0, x24, #2
	bl	_malloc
	mov	x23, x0
	cbz	x0, LBB0_2
; %bb.6:
	sxtw	x2, w25
	add	x1, sp, #24
	add	x3, sp, #12
	mov	x0, x22
	mov	x4, x21
	bl	_mbsrtowcs_l
	cmn	x0, #1
	b.eq	LBB0_2
; %bb.7:
	add	x1, sp, #16
	add	x3, sp, #8
	mov	x0, x23
	mov	x2, x24
	mov	x4, x21
	bl	_mbsrtowcs_l
	cmn	x0, #1
	b.eq	LBB0_2
; %bb.8:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_wcscoll_l
	mov	x19, x0
	mov	x0, x22
	bl	_free
	mov	x0, x23
	bl	_free
	b	LBB0_3
LBB0_9:
	mov	x23, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XLC_COLLATE,8,3                ; @XLC_COLLATE
.subsections_via_symbols
