	.file	"extr_lcformat.c_NLS_GetLocaleNumber.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	NLS_GetLocaleNumber, @function
NLS_GetLocaleNumber:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 96
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	rbx, rsp
	mov	BYTE PTR [rsp], 0
	mov	rdi, rbx
	call	ARRAY_SIZE@PLT
	mov	rdx, rbx
	mov	esi, r12d
	mov	edi, ebp
	mov	ecx, eax
	call	GetLocaleInfoW@PLT
	movsx	eax, BYTE PTR [rsp]
	xor	r8d, r8d
	test	al, al
	je	.L1
	movzx	ecx, BYTE PTR 1[rsp]
	cmp	cl, 59
	je	.L3
	lea	edx, -48[rax]
	cmp	dl, 9
	ja	.L1
	mov	rdx, rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	movsx	eax, cl
	movzx	ecx, BYTE PTR 1[rdx]
.L4:
	lea	esi, [r8+r8*4]
	add	rdx, 1
	lea	r8d, -48[rax+rsi*2]
	lea	eax, -48[rcx]
	cmp	al, 9
	jbe	.L15
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r8d
	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
.L3:
	.cfi_restore_state
	movsx	edx, BYTE PTR 2[rsp]
	cmp	dl, 48
	je	.L5
	lea	eax, -240[rax+rax*4]
	lea	r8d, -48[rdx+rax*2]
	jmp	.L1
.L5:
	lea	edx, -48[rax]
	cmp	dl, 9
	ja	.L1
	lea	r8d, -48[rax]
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	NLS_GetLocaleNumber, .-NLS_GetLocaleNumber
	.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_lcformat.c_NLS_GetLocaleNumber.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	NLS_GetLocaleNumber, %function
NLS_GetLocaleNumber:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	r2, .L16
	sub	sp, sp, #92
	mov	r4, r0
	add	r0, sp, #4
	ldr	r2, [r2]
	str	r2, [sp, #84]
	mov	r2,#0
	mov	r5, r1
	strb	r3, [sp, #4]
	bl	ARRAY_SIZE
	add	r2, sp, #4
	mov	r3, r0
	mov	r1, r5
	mov	r0, r4
	bl	GetLocaleInfoW
	ldrb	r2, [sp, #4]	@ zero_extendqisi2
	cmp	r2, #0
	beq	.L8
	ldrb	r1, [sp, #5]	@ zero_extendqisi2
	sub	r2, r2, #48
	cmp	r1, #59
	beq	.L3
.L5:
	and	r3, r2, #255
	cmp	r3, #9
	bhi	.L8
	mov	r0, #0
	add	ip, sp, #6
	b	.L4
.L14:
	mov	r2, r3
	ldrb	r1, [ip], #1	@ zero_extendqisi2
.L4:
	sub	r3, r1, #48
	add	r0, r0, r0, lsl #2
	cmp	r3, #9
	add	r0, r2, r0, lsl #1
	bls	.L14
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	mov	r0, #0
	b	.L1
.L3:
	ldrb	r3, [sp, #6]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L5
	add	r2, r2, r2, lsl #2
	sub	r3, r3, #48
	add	r0, r3, r2, lsl #1
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	NLS_GetLocaleNumber, .-NLS_GetLocaleNumber
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
