	.file	"extr_lstrlib.c_add_value.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid replacement value (a %s)"
	.text
	.p2align 4
	.type	add_value, @function
add_value:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	r15, QWORD PTR [rdi]
	cmp	r8d, 128
	je	.L2
	cmp	r8d, 129
	jne	.L3
	mov	esi, 3
	mov	rdi, r15
	call	lua_pushvalue@PLT
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	push_captures@PLT
	mov	edx, 1
	mov	rdi, r15
	mov	esi, eax
	call	lua_call@PLT
.L4:
	mov	esi, -1
	mov	rdi, r15
	call	lua_toboolean@PLT
	test	eax, eax
	je	.L9
	mov	esi, -1
	mov	rdi, r15
	call	lua_isstring@PLT
	test	eax, eax
	je	.L10
.L6:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	luaL_addvalue@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r15
	mov	esi, 1
	call	lua_pop@PLT
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, r15
	sub	rdx, r13
	call	lua_pushlstring@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	xor	esi, esi
	call	push_onecapture@PLT
	mov	esi, 3
	mov	rdi, r15
	call	lua_gettable@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	add_s@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r15
	mov	esi, -1
	call	luaL_typename@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	mov	edx, eax
	call	luaL_error@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	add_value, .-add_value
	.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_lstrlib.c_add_value.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid replacement value (a %s)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_value, %function
add_value:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, [sp, #24]
	mov	r8, r1
	cmp	ip, #128
	mov	r6, r2
	mov	r5, r3
	ldr	r7, [r0]
	beq	.L2
	cmp	ip, #129
	bne	.L3
	mov	r4, r0
	mov	r1, #3
	mov	r0, r7
	bl	lua_pushvalue
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	push_captures
	mov	r2, #1
	mov	r1, r0
	mov	r0, r7
	bl	lua_call
.L4:
	mvn	r1, #0
	mov	r0, r7
	bl	lua_toboolean
	cmp	r0, #0
	beq	.L9
	mvn	r1, #0
	mov	r0, r7
	bl	lua_isstring
	cmp	r0, #0
	beq	.L10
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	luaL_addvalue
.L9:
	mov	r1, #1
	mov	r0, r7
	bl	lua_pop
	mov	r1, r6
	mov	r0, r7
	sub	r2, r5, r6
	bl	lua_pushlstring
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	luaL_addvalue
.L2:
	mov	r1, #0
	bl	push_onecapture
	mov	r1, #3
	mov	r0, r7
	bl	lua_gettable
	b	.L4
.L3:
	pop	{r4, r5, r6, r7, r8, lr}
	b	add_s
.L10:
	mvn	r1, #0
	mov	r0, r7
	bl	luaL_typename
	ldr	r1, .L11
	mov	r2, r0
	mov	r0, r7
	bl	luaL_error
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	luaL_addvalue
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	add_value, .-add_value
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
