	.file	"extr_lobject.c_l_str2d.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".xXnN"
	.text
	.p2align 4
	.type	l_str2d, @function
l_str2d:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	lea	rsi, .LC0[rip]
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	strpbrk@PLT
	test	rax, rax
	je	.L11
	movsx	edi, BYTE PTR [rax]
	call	cast_uchar@PLT
	mov	edi, eax
	call	ltolower@PLT
	mov	r14d, eax
	cmp	eax, 110
	je	.L21
.L2:
	mov	edx, r14d
	mov	rsi, r13
	mov	rdi, rbx
	call	l_str2dloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L22
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -40[rbp]
	mov	rax, r12
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR L_MAXLENNUM[rip]
	mov	rsi, rsp
	mov	rcx, rsp
	add	eax, 1
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L5
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L5:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L6
	or	QWORD PTR -8[rsp+rdx], 0
.L6:
	mov	esi, 46
	mov	rdi, rbx
	mov	QWORD PTR -72[rbp], rcx
	call	strchr@PLT
	mov	rdi, rbx
	mov	r15, rax
	call	strlen@PLT
	cmp	eax, DWORD PTR L_MAXLENNUM[rip]
	mov	rcx, QWORD PTR -72[rbp]
	jg	.L13
	test	r15, r15
	je	.L13
	mov	rsi, rbx
	mov	rdi, rsp
	mov	QWORD PTR -72[rbp], rcx
	sub	r15, rbx
	call	strcpy@PLT
	xor	eax, eax
	call	lua_getlocaledecpoint@PLT
	mov	rdi, rsp
	mov	edx, r14d
	mov	rsi, r13
	mov	BYTE PTR [rsp+r15], al
	call	l_str2dloc@PLT
	mov	rcx, QWORD PTR -72[rbp]
	mov	rdi, rax
	mov	r12, rax
	sub	rdi, rsp
	mov	rsp, rcx
	add	rbx, rdi
	test	rax, rax
	cmovne	r12, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsp, rcx
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	l_str2d, .-l_str2d
	.comm	L_MAXLENNUM,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_lobject.c_l_str2d.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".xXnN\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l_str2d, %function
l_str2d:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L16
	mov	r7, r1
	ldr	r1, .L16+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r6, r0
	bl	strpbrk
	subs	r4, r0, #0
	beq	.L2
	ldrb	r0, [r4]	@ zero_extendqisi2
	bl	cast_uchar
	bl	ltolower
	cmp	r0, #110
	mov	r4, r0
	beq	.L8
.L2:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	bl	l_str2dloc
	subs	r5, r0, #0
	beq	.L14
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r10, .L16+8
	mov	r1, #46
	ldr	r3, [r10]
	mov	r9, sp
	add	r3, r3, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r0, r6
	bl	strchr
	mov	r8, r0
	mov	r0, r6
	bl	strlen
	clz	r3, r8
	ldr	r2, [r10]
	lsr	r3, r3, #5
	cmp	r0, r2
	orrgt	r3, r3, #1
	cmp	r3, #0
	bne	.L5
	mov	r1, r6
	mov	r0, sp
	bl	strcpy
	bl	lua_getlocaledecpoint
	sub	r8, r8, r6
	strb	r0, [sp, r8]
	mov	r2, r4
	mov	r1, r7
	mov	r0, sp
	bl	l_str2dloc
	subs	r5, r0, #0
	movne	r3, sp
	subne	r0, r5, r3
	addne	r5, r6, r0
.L5:
	mov	sp, r9
	b	.L1
.L8:
	mov	r5, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.word	L_MAXLENNUM
	.size	l_str2d, .-l_str2d
	.comm	L_MAXLENNUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
