	.file	"extr_testlib.c_value_provider.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"testlib_get_value"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"error running function `get_value': %s\n"
	.align 8
.LC2:
	.string	"function `get_value' must return a table or nil"
	.text
	.p2align 4
	.type	value_provider, @function
value_provider:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	lea	rdx, .LC0[rip]
	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
	call	lua_getfield@PLT
	xor	ecx, ecx
	xor	esi, esi
	mov	edx, 1
	mov	rdi, rbp
	call	lua_pcall@PLT
	test	rax, rax
	jne	.L11
.L2:
	mov	esi, -1
	mov	rdi, rbp
	mov	r12d, 1
	call	lua_isnil@PLT
	test	rax, rax
	je	.L12
.L3:
	mov	rdi, rbp
	mov	esi, 1
	call	lua_pop@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, -1
	call	lua_tostring@PLT
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, -1
	mov	rdi, rbp
	call	lua_istable@PLT
	test	rax, rax
	je	.L4
	mov	rdx, r13
	mov	esi, -1
	mov	rdi, rbp
	call	libretrodb_lua_to_rmsgpack_value@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC2[rip]
	xor	r12d, r12d
	call	puts@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	value_provider, .-value_provider
	.comm	LUA_REGISTRYINDEX,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_testlib.c_value_provider.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"testlib_get_value\000"
	.align	2
.LC1:
	.ascii	"error running function `get_value': %s\012\000"
	.align	2
.LC2:
	.ascii	"function `get_value' must return a table or nil\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	value_provider, %function
value_provider:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	ldr	r1, .L13
	ldr	r2, .L13+4
	ldr	r1, [r1]
	mov	r4, r0
	bl	lua_getfield
	mov	r3, #0
	mov	r0, r4
	mov	r1, r3
	mov	r2, #1
	bl	lua_pcall
	cmp	r0, #0
	bne	.L11
.L2:
	mvn	r1, #0
	mov	r0, r4
	bl	lua_isnil
	cmp	r0, #0
	movne	r5, #1
	beq	.L12
.L3:
	mov	r0, r4
	mov	r1, #1
	bl	lua_pop
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	mvn	r1, #0
	mov	r0, r4
	bl	lua_tostring
	mov	r1, r0
	ldr	r0, .L13+8
	bl	printf
	b	.L2
.L12:
	mvn	r1, #0
	mov	r0, r4
	bl	lua_istable
	subs	r5, r0, #0
	beq	.L4
	mov	r2, r6
	mvn	r1, #0
	mov	r0, r4
	bl	libretrodb_lua_to_rmsgpack_value
	mov	r5, r0
	b	.L3
.L4:
	ldr	r0, .L13+12
	bl	puts
	b	.L3
.L14:
	.align	2
.L13:
	.word	LUA_REGISTRYINDEX
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	value_provider, .-value_provider
	.comm	LUA_REGISTRYINDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
