	.file	"extr_lundump.c_LoadString.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	LoadString, @function
LoadString:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	LoadByte@PLT
	mov	r12, rax
	cmp	rax, 255
	je	.L17
	xor	r14d, r14d
	test	rax, rax
	je	.L1
.L3:
	mov	rax, QWORD PTR LUAI_MAXSHORTLEN[rip]
	sub	r12, 1
	cmp	rax, r12
	jb	.L5
	add	rax, 15
	mov	rcx, rsp
	mov	rbx, rsp
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L7
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L7:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L8
	or	QWORD PTR -8[rsp+rdx], 0
.L8:
	mov	rsi, rsp
	mov	rdx, r12
	mov	rdi, r13
	call	LoadVector@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, rsp
	mov	rdx, r12
	call	luaS_newlstr@PLT
	mov	rsp, rbx
	mov	r14, rax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -32[rbp]
	mov	rax, r14
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, r12
	call	luaS_createlngstrobj@PLT
	mov	rdi, rax
	mov	r14, rax
	call	getstr@PLT
	mov	rdx, r12
	mov	rdi, r13
	mov	rsi, rax
	call	LoadVector@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, 255
	mov	rdi, r13
	call	LoadVar@PLT
	jmp	.L3
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	LoadString, .-LoadString
	.comm	LUAI_MAXSHORTLEN,8,8
	.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_lundump.c_LoadString.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	LoadString, %function
LoadString:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r3, .L12
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	LoadByte
	cmp	r0, #255
	mov	r4, r0
	beq	.L10
	cmp	r0, #0
	beq	.L1
.L3:
	ldr	r3, .L12+4
	sub	r6, r4, #1
	ldr	r3, [r3]
	cmp	r3, r6
	bcc	.L5
	add	r3, r3, #7
	bic	r3, r3, #7
	mov	r7, sp
	sub	sp, sp, r3
	mov	r1, sp
	mov	r2, r6
	mov	r0, r5
	bl	LoadVector
	mov	r1, sp
	mov	r2, r6
	ldr	r0, [r5]
	bl	luaS_newlstr
	mov	r4, r0
	mov	sp, r7
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L5:
	mov	r1, r6
	ldr	r0, [r5]
	bl	luaS_createlngstrobj
	mov	r4, r0
	bl	getstr
	mov	r2, r6
	mov	r1, r0
	mov	r0, r5
	bl	LoadVector
	b	.L1
.L10:
	mov	r1, r0
	mov	r0, r5
	bl	LoadVar
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	LUAI_MAXSHORTLEN
	.size	LoadString, .-LoadString
	.comm	LUAI_MAXSHORTLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
