	.file	"extr_lua.c_get_prompt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_PROMPT2"
.LC1:
	.string	"_PROMPT"
	.text
	.p2align 4
	.type	get_prompt, @function
get_prompt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r8d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR LUA_GLOBALSINDEX[rip]
	test	r8d, r8d
	jne	.L2
	lea	rdx, .LC0[rip]
	call	lua_getfield@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	lua_tostring@PLT
	mov	r12, rax
	test	rax, rax
	cmove	r12, QWORD PTR LUA_PROMPT2[rip]
.L4:
	mov	rdi, rbp
	mov	esi, 1
	call	lua_pop@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, .LC1[rip]
	call	lua_getfield@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	lua_tostring@PLT
	mov	r12, rax
	test	rax, rax
	cmove	r12, QWORD PTR LUA_PROMPT[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	get_prompt, .-get_prompt
	.comm	LUA_PROMPT2,8,8
	.comm	LUA_PROMPT,8,8
	.comm	LUA_GLOBALSINDEX,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_lua.c_get_prompt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"_PROMPT2\000"
	.align	2
.LC1:
	.ascii	"_PROMPT\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_prompt, %function
get_prompt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	beq	.L11
	ldr	r2, .L12+4
	bl	lua_getfield
	mvn	r1, #0
	mov	r0, r5
	bl	lua_tostring
	subs	r4, r0, #0
	beq	.L6
.L4:
	mov	r0, r5
	mov	r1, #1
	bl	lua_pop
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r2, .L12+8
	bl	lua_getfield
	mvn	r1, #0
	mov	r0, r5
	bl	lua_tostring
	subs	r4, r0, #0
	ldreq	r3, .L12+12
	ldreq	r4, [r3]
	b	.L4
.L6:
	ldr	r3, .L12+16
	ldr	r4, [r3]
	b	.L4
.L13:
	.align	2
.L12:
	.word	LUA_GLOBALSINDEX
	.word	.LC1
	.word	.LC0
	.word	LUA_PROMPT2
	.word	LUA_PROMPT
	.size	get_prompt, .-get_prompt
	.comm	LUA_PROMPT2,4,4
	.comm	LUA_PROMPT,4,4
	.comm	LUA_GLOBALSINDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
