	.file	"extr_luajit.c_pushline.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"return %s"
	.text
	.p2align 4
	.type	pushline, @function
pushline:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR LUA_MAXINPUT[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L22:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L22
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L23
.L4:
	mov	esi, ebx
	mov	rdi, r12
	mov	r13, rsp
	call	write_prompt@PLT
	mov	edx, DWORD PTR stdin[rip]
	mov	esi, DWORD PTR LUA_MAXINPUT[rip]
	mov	rdi, rsp
	call	fgets@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L24
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L25
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, rsp
	call	strlen@PLT
	test	rax, rax
	je	.L6
	cmp	BYTE PTR -1[rsp+rax], 10
	jne	.L6
	mov	BYTE PTR -1[rsp+rax], 0
	.p2align 4,,10
	.p2align 3
.L6:
	test	ebx, ebx
	je	.L7
	cmp	BYTE PTR 0[r13], 61
	je	.L26
.L7:
	mov	rsi, r13
	mov	rdi, r12
	call	lua_pushstring@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdx, 1[r13]
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	lua_pushfstring@PLT
	mov	eax, 1
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pushline, .-pushline
	.comm	stdin,4,4
	.comm	LUA_MAXINPUT,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_luajit.c_pushline.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"return %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pushline, %function
pushline:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r5, .L21
	ldr	r3, .L21+4
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [r5]
	mov	r4, r0
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	write_prompt
	ldr	r3, .L21+8
	mov	r0, sp
	ldr	r1, [r5]
	ldr	r2, [r3]
	bl	fgets
	cmp	r0, #0
	bne	.L17
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L17:
	mov	r0, sp
	bl	strlen
	cmp	r0, #0
	mov	r5, sp
	bne	.L19
.L3:
	cmp	r6, #0
	beq	.L4
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L20
.L4:
	mov	r1, r5
	mov	r0, r4
	bl	lua_pushstring
	mov	r0, #1
	b	.L1
.L19:
	sub	r0, r0, #1
	ldrb	r3, [sp, r0]	@ zero_extendqisi2
	cmp	r3, #10
	moveq	r3, #0
	strbeq	r3, [sp, r0]
	b	.L3
.L20:
	mov	r0, r4
	ldr	r1, .L21+12
	add	r2, r5, #1
	bl	lua_pushfstring
	mov	r0, #1
	b	.L1
.L18:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	LUA_MAXINPUT
	.word	.LC1
	.word	stdin
	.word	.LC0
	.size	pushline, .-pushline
	.comm	stdin,4,4
	.comm	LUA_MAXINPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
