	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nl_expand_alias               ## -- Begin function _nl_expand_alias
	.p2align	4, 0x90
__nl_expand_alias:                      ## @_nl_expand_alias
	.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	%rdi, %rbx
	movq	_lock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	___libc_lock_lock
	cmpq	$0, __nl_expand_alias.locale_alias_path(%rip)
	jne	LBB0_2
## %bb.1:
	movq	_LOCALE_ALIAS_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, __nl_expand_alias.locale_alias_path(%rip)
LBB0_2:
	movq	_nmap@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	movq	_PATH_SEPARATOR@GOTPCREL(%rip), %r15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_14 Depth 3
	movq	%rbx, -56(%rbp)
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_map@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_alias_compare@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	-56(%rbp), %rdi
	movl	$16, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_7
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=2
	subl	%edi, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_read_alias_file
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=2
	testq	%rax, %rax
	jne	LBB0_3
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##       Child Loop BB0_14 Depth 3
	movq	__nl_expand_alias.locale_alias_path(%rip), %rdi
	movb	(%rdi), %dl
	testb	%dl, %dl
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movb	(%r15), %al
	cmpb	%al, %dl
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	1(%rdi), %ecx
	incq	%rdi
	cmpb	%dl, %cl
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdi, __nl_expand_alias.locale_alias_path(%rip)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	%edx, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdi, %rsi
	testb	%cl, %cl
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdi, %rsi
	cmpb	%al, %cl
	je	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	1(%rsi), %ecx
	incq	%rsi
	testb	%cl, %cl
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=3
	cmpb	%al, %cl
	jne	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rsi, __nl_expand_alias.locale_alias_path(%rip)
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%rsi, %rdi
	jb	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_5:
	movq	8(%rax), %r14
LBB0_6:
	movl	(%r12), %edi
	callq	___libc_lock_unlock
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,__nl_expand_alias.locale_alias_path,8,3 ## @_nl_expand_alias.locale_alias_path
	.comm	_lock,4,2                       ## @lock
	.comm	_LOCALE_ALIAS_PATH,8,3          ## @LOCALE_ALIAS_PATH
	.comm	_nmap,8,3                       ## @nmap
	.comm	_map,4,2                        ## @map
	.comm	_alias_compare,8,3              ## @alias_compare
	.comm	_PATH_SEPARATOR,1,0             ## @PATH_SEPARATOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__nl_expand_alias               ; -- Begin function _nl_expand_alias
	.p2align	2
__nl_expand_alias:                      ; @_nl_expand_alias
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	___libc_lock_lock
	adrp	x21, __nl_expand_alias.locale_alias_path@PAGE
	ldr	x8, [x21, __nl_expand_alias.locale_alias_path@PAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _LOCALE_ALIAS_PATH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOCALE_ALIAS_PATH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x21, __nl_expand_alias.locale_alias_path@PAGEOFF]
LBB0_2:
Lloh5:
	adrp	x22, _nmap@GOTPAGE
Lloh6:
	ldr	x22, [x22, _nmap@GOTPAGEOFF]
Lloh7:
	adrp	x23, _map@GOTPAGE
Lloh8:
	ldr	x23, [x23, _map@GOTPAGEOFF]
Lloh9:
	adrp	x24, _alias_compare@GOTPAGE
Lloh10:
	ldr	x24, [x24, _alias_compare@GOTPAGEOFF]
Lloh11:
	adrp	x25, _PATH_SEPARATOR@GOTPAGE
Lloh12:
	ldr	x25, [x25, _PATH_SEPARATOR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
	str	x19, [sp]
	ldr	x2, [x22]
	cmp	x2, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	ldr	x4, [x24]
	mov	x0, sp
	mov	w3, #16
	bl	_bsearch
	cbz	x0, LBB0_6
	b	LBB0_17
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, #0
	cbnz	xzr, LBB0_3
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x0, [x21, __nl_expand_alias.locale_alias_path@PAGEOFF]
	ldrb	w9, [x0]
	cbz	w9, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrb	w8, [x25]
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w10, [x0, #1]!
	cmp	w10, w9
	b.eq	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	str	x0, [x21, __nl_expand_alias.locale_alias_path@PAGEOFF]
	mov	x9, x10
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w9, #0
	ccmp	w9, w8, #4, ne
	mov	x9, x0
	b.eq	LBB0_13
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w10, [x9, #1]!
	cmp	w10, #0
	ccmp	w10, w8, #4, ne
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
	str	x9, [x21, __nl_expand_alias.locale_alias_path@PAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	x0, x9
	b.hs	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
	sub	w1, w9, w0
	bl	_read_alias_file
	cbz	x0, LBB0_6
	b	LBB0_3
LBB0_15:
	mov	x19, #0
LBB0_16:
	ldr	w0, [x20]
	bl	___libc_lock_unlock
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_17:
	ldr	x19, [x0, #8]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,__nl_expand_alias.locale_alias_path,8,3 ; @_nl_expand_alias.locale_alias_path
	.comm	_lock,4,2                       ; @lock
	.comm	_LOCALE_ALIAS_PATH,8,3          ; @LOCALE_ALIAS_PATH
	.comm	_nmap,8,3                       ; @nmap
	.comm	_map,4,2                        ; @map
	.comm	_alias_compare,8,3              ; @alias_compare
	.comm	_PATH_SEPARATOR,1,0             ; @PATH_SEPARATOR
.subsections_via_symbols
