	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function value_provider
_value_provider:                        ## @value_provider
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_lua_getglobal
	movl	$1, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_lua_pcall
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_isnil
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_istable
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$-1, %esi
	movq	%r14, %rdx
	callq	_libretrodb_lua_to_rmsgpack_value
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%r15d, %r15d
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_value"

L_.str.1:                               ## @.str.1
	.asciz	"error running function `get_value': %s\n"

L_str:                                  ## @str
	.asciz	"function `get_value' must return a table or nil"

	.no_dead_strip	_value_provider
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function value_provider
_value_provider:                        ; @value_provider
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_lua_getglobal
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	bl	_lua_pcall
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_tostring
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_2:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_isnil
	cbz	x0, LBB0_4
; %bb.3:
	mov	w20, #1
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_istable
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x20
	bl	_libretrodb_lua_to_rmsgpack_value
	mov	x20, x0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_value"

l_.str.1:                               ; @.str.1
	.asciz	"error running function `get_value': %s\n"

l_str:                                  ; @str
	.asciz	"function `get_value' must return a table or nil"

	.no_dead_strip	_value_provider
.subsections_via_symbols
