	.file	"extr_nls_base.c_register_nls.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	register_nls
	.type	register_nls, @function
register_nls:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	je	.L2
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	lea	rdi, nls_lock[rip]
	call	spin_lock@PLT
	mov	rdx, QWORD PTR tables[rip]
	test	rdx, rdx
	je	.L4
	cmp	rbx, rdx
	je	.L5
	mov	rax, rdx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	rbx, rax
	je	.L5
.L6:
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
.L4:
	mov	QWORD PTR [rbx], rdx
	lea	rdi, nls_lock[rip]
	mov	QWORD PTR tables[rip], rbx
	call	spin_unlock@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, nls_lock[rip]
	call	spin_unlock@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	register_nls, .-register_nls
	.comm	tables,8,8
	.comm	nls_lock,4,4
	.comm	EBUSY,4,4
	.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_nls_base.c_register_nls.c"
	.text
	.align	2
	.global	register_nls
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_nls, %function
register_nls:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L16+4
	bl	spin_lock
	ldr	r1, .L16+8
	ldr	r2, [r1]
	cmp	r2, #0
	beq	.L4
	cmp	r4, r2
	beq	.L5
	mov	r3, r2
	b	.L6
.L7:
	cmp	r4, r3
	beq	.L5
.L6:
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
.L4:
	str	r2, [r4]
	ldr	r0, .L16+4
	str	r4, [r1]
	bl	spin_unlock
	mov	r0, #0
	pop	{r4, pc}
.L5:
	ldr	r0, .L16+4
	bl	spin_unlock
	ldr	r3, .L16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L17:
	.align	2
.L16:
	.word	EBUSY
	.word	nls_lock
	.word	tables
	.size	register_nls, .-register_nls
	.comm	tables,4,4
	.comm	nls_lock,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
