	.file	"extr_lib_debug.c_debug_getupvalue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	debug_getupvalue, @function
debug_getupvalue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	mov	ebx, esi
	mov	esi, 2
	call	lj_lib_checkint@PLT
	mov	esi, 1
	mov	rdi, rbp
	mov	r12d, eax
	call	lj_lib_checkfunc@PLT
	mov	edx, r12d
	mov	esi, 1
	mov	rdi, rbp
	test	ebx, ebx
	je	.L2
	call	lua_getupvalue@PLT
	test	rax, rax
	jne	.L3
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	lua_setupvalue@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L5
	mov	rdi, rbp
	call	lua_pushstring@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	mov	rsi, rax
	call	lua_pushstring@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbp
	lea	rdx, -2[rsi]
	call	copyTV@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	add	QWORD PTR 0[rbp], 1
	mov	eax, 2
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	debug_getupvalue, .-debug_getupvalue
	.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_lib_debug.c_debug_getupvalue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	debug_getupvalue, %function
debug_getupvalue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r1, #2
	mov	r4, r0
	bl	lj_lib_checkint
	mov	r5, r0
	mov	r1, #1
	mov	r0, r4
	bl	lj_lib_checkfunc
	cmp	r6, #0
	mov	r2, r5
	mov	r1, #1
	mov	r0, r4
	beq	.L2
	bl	lua_getupvalue
	subs	r1, r0, #0
	bne	.L3
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	bl	lua_setupvalue
	subs	r1, r0, #0
	beq	.L5
	mov	r0, r4
	bl	lua_pushstring
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	bl	lua_pushstring
	ldr	r1, [r4]
	mov	r0, r4
	sub	r2, r1, #2
	bl	copyTV
	ldr	r3, [r4]
	mov	r0, #2
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
	.size	debug_getupvalue, .-debug_getupvalue
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
