	.file	"extr_lstring.c_luaS_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	luaS_new
	.type	luaS_new, @function
luaS_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	point2uint@PLT
	xor	edx, edx
	mov	rdi, r12
	div	DWORD PTR STRCACHE_N[rip]
	mov	ebx, edx
	call	G@PLT
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax+rbx*8]
	mov	eax, DWORD PTR STRCACHE_M[rip]
	test	eax, eax
	jle	.L2
	mov	r13, rbx
	xor	r14d, r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR STRCACHE_M[rip]
	add	r14d, 1
	add	r13, 8
	cmp	eax, r14d
	jle	.L2
.L5:
	mov	rdi, QWORD PTR 0[r13]
	call	getstr@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	strcmp@PLT
	test	rax, rax
	jne	.L3
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, QWORD PTR 0[r13]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	eax, 1
	test	eax, eax
	jle	.L6
	cdqe
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR -8[rbx+rax*8]
	mov	QWORD PTR [rbx+rax*8], rdx
	sub	rax, 1
	test	eax, eax
	jg	.L7
.L6:
	mov	rdi, rbp
	call	strlen@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	edx, eax
	call	luaS_newlstr@PLT
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	luaS_new, .-luaS_new
	.comm	STRCACHE_N,4,4
	.comm	STRCACHE_M,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_lstring.c_luaS_new.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	luaS_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	luaS_new, %function
luaS_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	mov	r0, r1
	mov	r6, r1
	bl	point2uint
	ldr	r3, .L12
	ldr	r10, .L12+4
	ldr	r1, [r3]
	bl	__aeabi_uidivmod
	mov	r0, r8
	mov	r4, r1
	bl	G
	ldr	r3, [r10]
	ldr	r2, [r0]
	cmp	r3, #0
	ldr	r7, [r2, r4, lsl #2]
	ble	.L2
	mov	r4, r7
	mov	r5, #0
	b	.L5
.L3:
	ldr	r3, [r10]
	cmp	r3, r5
	ble	.L2
.L5:
	ldr	r0, [r4]
	bl	getstr
	mov	r1, r0
	mov	r0, r6
	bl	strcmp
	cmp	r0, #0
	mov	r9, r4
	add	r5, r5, #1
	add	r4, r4, #4
	bne	.L3
	ldr	r0, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	cmp	r3, #1
	ble	.L6
	sub	r3, r3, #-1073741823
	add	r3, r7, r3, lsl #2
.L7:
	ldr	r2, [r3, #-4]!
	cmp	r7, r3
	str	r2, [r3, #4]
	bne	.L7
.L6:
	mov	r0, r6
	bl	strlen
	mov	r1, r6
	mov	r2, r0
	mov	r0, r8
	bl	luaS_newlstr
	str	r0, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	STRCACHE_N
	.word	STRCACHE_M
	.size	luaS_new, .-luaS_new
	.comm	STRCACHE_N,4,4
	.comm	STRCACHE_M,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
