	.file	"extr_ldblib.c_db_getlocal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"level out of range"
	.text
	.p2align 4
	.type	db_getlocal, @function
db_getlocal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	call	getthread@PLT
	mov	rdi, rbp
	mov	r12, rax
	mov	eax, DWORD PTR [rsp]
	lea	esi, 2[rax]
	call	luaL_checkinteger@PLT
	mov	rdi, rbp
	mov	rbx, rax
	mov	eax, DWORD PTR [rsp]
	lea	esi, 1[rax]
	call	lua_isfunction@PLT
	mov	rdi, rbp
	test	rax, rax
	mov	eax, DWORD PTR [rsp]
	lea	esi, 1[rax]
	jne	.L9
	call	luaL_checkinteger@PLT
	lea	r13, 4[rsp]
	mov	rdi, r12
	mov	rsi, rax
	mov	rdx, r13
	call	lua_getstack@PLT
	test	eax, eax
	je	.L10
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, rbp
	call	checkstack@PLT
	mov	rsi, r13
	mov	edx, ebx
	mov	rdi, r12
	call	lua_getlocal@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	mov	edx, 1
	mov	rsi, rbp
	mov	rdi, r12
	call	lua_xmove@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	lua_pushstring@PLT
	mov	edx, 1
	mov	esi, -2
	mov	rdi, rbp
	call	lua_rotate@PLT
	mov	eax, 2
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR [rsp]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	lea	esi, 1[rax]
	call	luaL_argerror@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	call	lua_pushvalue@PLT
	mov	edx, ebx
	xor	esi, esi
	mov	rdi, rbp
	call	lua_getlocal@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	lua_pushstring@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	lua_pushnil@PLT
	mov	eax, 1
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	db_getlocal, .-db_getlocal
	.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_ldblib.c_db_getlocal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"level 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	db_getlocal, %function
db_getlocal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #16
	add	r1, sp, #4
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	getthread
	ldr	r1, [sp, #4]
	mov	r5, r0
	add	r1, r1, #2
	mov	r0, r4
	bl	luaL_checkinteger
	ldr	r1, [sp, #4]
	mov	r6, r0
	add	r1, r1, #1
	mov	r0, r4
	bl	lua_isfunction
	ldr	r1, [sp, #4]
	cmp	r0, #0
	add	r1, r1, #1
	mov	r0, r4
	bne	.L9
	bl	luaL_checkinteger
	add	r2, sp, #8
	mov	r1, r0
	mov	r0, r5
	bl	lua_getstack
	cmp	r0, #0
	beq	.L10
	mov	r2, #1
	mov	r1, r5
	mov	r0, r4
	bl	checkstack
	mov	r2, r6
	mov	r0, r5
	add	r1, sp, #8
	bl	lua_getlocal
	subs	r6, r0, #0
	beq	.L5
	mov	r2, #1
	mov	r1, r4
	mov	r0, r5
	bl	lua_xmove
	mov	r1, r6
	mov	r0, r4
	bl	lua_pushstring
	mov	r0, r4
	mov	r2, #1
	mvn	r1, #1
	bl	lua_rotate
	mov	r0, #2
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, [sp, #4]
	mov	r0, r4
	ldr	r2, .L12+4
	add	r1, r1, #1
	bl	luaL_argerror
	b	.L1
.L9:
	bl	lua_pushvalue
	mov	r2, r6
	mov	r1, #0
	mov	r0, r4
	bl	lua_getlocal
	mov	r1, r0
	mov	r0, r4
	bl	lua_pushstring
	mov	r0, #1
	b	.L1
.L5:
	mov	r0, r4
	bl	lua_pushnil
	mov	r0, #1
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	db_getlocal, .-db_getlocal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
