	.file	"extr_lbaselib.c_luaB_tonumber.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"base out of range"
	.text
	.p2align 4
	.type	luaB_tonumber, @function
luaB_tonumber:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 2
	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	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	lua_isnoneornil@PLT
	test	rax, rax
	je	.L2
	mov	esi, 1
	mov	rdi, rbp
	call	luaL_checkany@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	lua_type@PLT
	cmp	rax, QWORD PTR LUA_TNUMBER[rip]
	je	.L14
	mov	esi, 1
	lea	rdx, 16[rsp]
	mov	rdi, rbp
	call	lua_tolstring@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L6
	mov	rdi, rbp
	call	lua_stringtonumber@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 16[rsp]
	add	rax, 1
	cmp	r8, rax
	je	.L4
.L6:
	mov	rdi, rbp
	call	lua_pushnil@PLT
.L4:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, 1
	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
.L2:
	.cfi_restore_state
	mov	esi, 2
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], 0
	call	luaL_checkinteger@PLT
	mov	edx, DWORD PTR LUA_TSTRING[rip]
	mov	esi, 1
	mov	rdi, rbp
	mov	r12d, eax
	call	luaL_checktype@PLT
	lea	rdx, 16[rsp]
	mov	esi, 1
	mov	rdi, rbp
	call	lua_tolstring@PLT
	xor	esi, esi
	mov	edx, 2
	mov	rdi, rbp
	mov	rbx, rax
	lea	eax, -2[r12]
	lea	rcx, .LC0[rip]
	cmp	eax, 34
	setbe	sil
	call	luaL_argcheck@PLT
	lea	rdx, 12[rsp]
	mov	esi, r12d
	mov	rdi, rbx
	call	b_str2int@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 16[rsp]
	add	rax, rbx
	cmp	r8, rax
	jne	.L6
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	call	lua_pushinteger@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, 1
	mov	rdi, rbp
	call	lua_settop@PLT
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	luaB_tonumber, .-luaB_tonumber
	.comm	LUA_TSTRING,4,4
	.comm	LUA_TNUMBER,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_lbaselib.c_luaB_tonumber.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"base out of range\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	luaB_tonumber, %function
luaB_tonumber:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	mov	r1, #2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	lua_isnoneornil
	subs	r3, r0, #0
	beq	.L2
	mov	r1, #1
	mov	r0, r4
	bl	luaL_checkany
	mov	r1, #1
	mov	r0, r4
	bl	lua_type
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L14
	mov	r1, #1
	mov	r0, r4
	add	r2, sp, #8
	bl	lua_tolstring
	subs	r1, r0, #0
	beq	.L6
	mov	r0, r4
	bl	lua_stringtonumber
	ldr	r3, [sp, #8]
	add	r3, r3, #1
	cmp	r0, r3
	beq	.L4
.L6:
	mov	r0, r4
	bl	lua_pushnil
.L4:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, #1
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, #2
	mov	r0, r4
	str	r3, [sp, #8]
	bl	luaL_checkinteger
	ldr	r3, .L16+8
	mov	r6, r0
	ldr	r2, [r3]
	mov	r1, #1
	mov	r0, r4
	bl	luaL_checktype
	mov	r1, #1
	add	r2, sp, #4
	mov	r0, r4
	bl	lua_tolstring
	mov	r5, r0
	sub	r1, r6, #2
	cmp	r1, #34
	movhi	r1, #0
	movls	r1, #1
	ldr	r3, .L16+12
	mov	r2, #2
	mov	r0, r4
	bl	luaL_argcheck
	mov	r0, r5
	mov	r1, r6
	add	r2, sp, #8
	bl	b_str2int
	ldr	r3, [sp, #4]
	add	r5, r5, r3
	cmp	r0, r5
	bne	.L6
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	lua_pushinteger
	b	.L4
.L14:
	mov	r0, r4
	mov	r1, #1
	bl	lua_settop
	b	.L4
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	LUA_TNUMBER
	.word	LUA_TSTRING
	.word	.LC0
	.size	luaB_tonumber, .-luaB_tonumber
	.comm	LUA_TSTRING,4,4
	.comm	LUA_TNUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
