	.file	"extr_localealias.c__nl_expand_alias.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_nl_expand_alias
	.type	_nl_expand_alias, @function
_nl_expand_alias:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR lock[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	__libc_lock_lock@PLT
	cmp	QWORD PTR locale_alias_path.1942[rip], 0
	je	.L39
.L2:
	mov	rdx, QWORD PTR nmap[rip]
	mov	QWORD PTR [rsp], rbp
	movzx	ebx, BYTE PTR PATH_SEPARATOR[rip]
	test	rdx, rdx
	jg	.L40
.L11:
	mov	rsi, QWORD PTR locale_alias_path.1942[rip]
	xor	eax, eax
	movzx	edx, BYTE PTR [rsi]
	test	dl, dl
	je	.L13
	.p2align 4,,10
	.p2align 3
.L43:
	lea	rax, 1[rsi]
	mov	rdi, rsi
	cmp	dl, bl
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rax
	movzx	edx, BYTE PTR [rax]
	add	rax, 1
	cmp	dl, bl
	je	.L5
	test	dl, dl
	je	.L19
.L15:
	lea	rax, 1[rdi]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L41:
	cmp	dl, bl
	je	.L20
.L7:
	movzx	edx, BYTE PTR [rax]
	mov	rsi, rax
	add	rax, 1
	test	dl, dl
	jne	.L41
.L20:
	cmp	rsi, rdi
	ja	.L42
.L6:
	movzx	edx, BYTE PTR [rsi]
	mov	eax, 1
	test	dl, dl
	jne	.L43
.L13:
	test	al, al
	je	.L17
	mov	QWORD PTR locale_alias_path.1942[rip], rsi
.L17:
	xor	r12d, r12d
.L4:
	mov	edi, DWORD PTR lock[rip]
	call	__libc_lock_unlock@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L44
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rsi, rdi
	jmp	.L6
.L42:
	mov	QWORD PTR locale_alias_path.1942[rip], rsi
	sub	rsi, rdi
	call	read_alias_file@PLT
	test	rax, rax
	je	.L11
	mov	rdx, QWORD PTR nmap[rip]
	mov	QWORD PTR [rsp], rbp
	test	rdx, rdx
	jle	.L11
.L40:
	mov	r8, QWORD PTR alias_compare[rip]
	mov	esi, DWORD PTR map[rip]
	mov	rdi, rsp
	mov	ecx, 16
	call	bsearch@PLT
	test	rax, rax
	je	.L11
	mov	r12, QWORD PTR 8[rax]
	jmp	.L4
.L39:
	mov	rax, QWORD PTR LOCALE_ALIAS_PATH[rip]
	mov	QWORD PTR locale_alias_path.1942[rip], rax
	jmp	.L2
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_nl_expand_alias, .-_nl_expand_alias
	.local	locale_alias_path.1942
	.comm	locale_alias_path.1942,8,8
	.comm	nmap,8,8
	.comm	map,4,4
	.comm	lock,4,4
	.comm	alias_compare,8,8
	.comm	PATH_SEPARATOR,1,1
	.comm	LOCALE_ALIAS_PATH,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_localealias.c__nl_expand_alias.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_nl_expand_alias
	.syntax unified
	.arm
	.fpu softvfp
	.type	_nl_expand_alias, %function
_nl_expand_alias:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r10, .L36
	ldr	r3, .L36+4
	ldr	r4, .L36+8
	sub	sp, sp, #28
	ldr	r0, [r10]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	__libc_lock_lock
	ldr	r3, [r4]
	ldr	r7, .L36+12
	cmp	r3, #0
	ldreq	r3, .L36+16
	ldr	r2, [r7]
	ldreq	r3, [r3]
	ldr	r9, .L36+20
	streq	r3, [r4]
	cmp	r2, #0
	ldr	r8, .L36+24
	ldr	r6, .L36+28
	str	r5, [sp, #12]
	bgt	.L32
.L3:
	ldrb	fp, [r6]	@ zero_extendqisi2
.L10:
	ldr	r0, [r4]
	mov	r2, #0
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
.L34:
	cmp	r3, fp
	bne	.L13
.L5:
	ldrb	r3, [r0, #1]!	@ zero_extendqisi2
	cmp	r3, fp
	beq	.L5
	cmp	r3, #0
	beq	.L17
.L13:
	mov	r2, r0
.L7:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, fp
	bne	.L7
	cmp	r2, r0
	bhi	.L33
.L6:
	mov	r0, r2
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r2, #1
	cmp	r3, #0
	bne	.L34
.L12:
	cmp	r2, #0
	strne	r0, [r4]
	mov	r4, #0
.L4:
	ldr	r0, [r10]
	bl	__libc_lock_unlock
	ldr	r3, .L36+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r2, r0
	b	.L6
.L33:
	sub	r1, r2, r0
	str	r2, [r4]
	bl	read_alias_file
	cmp	r0, #0
	beq	.L10
	ldr	r2, [r7]
	str	r5, [sp, #12]
	cmp	r2, #0
	ble	.L3
.L32:
	ldr	r3, [r8]
	ldr	r1, [r9]
	str	r3, [sp]
	add	r0, sp, #12
	mov	r3, #8
	bl	bsearch
	cmp	r0, #0
	beq	.L3
	ldr	r4, [r0, #4]
	b	.L4
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	lock
	.word	.LC0
	.word	.LANCHOR0
	.word	nmap
	.word	LOCALE_ALIAS_PATH
	.word	map
	.word	alias_compare
	.word	PATH_SEPARATOR
	.size	_nl_expand_alias, .-_nl_expand_alias
	.comm	nmap,4,4
	.comm	map,4,4
	.comm	lock,4,4
	.comm	alias_compare,4,4
	.comm	PATH_SEPARATOR,1,1
	.comm	LOCALE_ALIAS_PATH,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	locale_alias_path.4226, %object
	.size	locale_alias_path.4226, 4
locale_alias_path.4226:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
