	.file	"extr_lstrlib.c_str_rep.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"resulting string too large"
	.text
	.p2align 4
	.type	str_rep, @function
str_rep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdx, 24[rsp]
	call	luaL_checklstring@PLT
	mov	esi, 2
	mov	rdi, rbp
	mov	r12, rax
	call	luaL_checkinteger@PLT
	lea	rcx, 32[rsp]
	mov	esi, 3
	mov	rdi, rbp
	mov	r15, rax
	lea	rdx, .LC0[rip]
	call	luaL_optlstring@PLT
	test	r15, r15
	je	.L19
	mov	r13, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 32[rsp]
	mov	rsi, r13
	add	rsi, rcx
	jc	.L6
	mov	r14, rax
	mov	rax, QWORD PTR MAXSIZE[rip]
	xor	edx, edx
	div	r15
	cmp	rsi, rax
	jbe	.L7
.L6:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	luaL_error@PLT
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rbx, -1[r15]
	lea	rax, 20[rsp]
	mov	rdi, rbp
	imul	rcx, rbx
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	imul	r13, r15
	add	r13, rcx
	mov	rdx, r13
	call	luaL_buffinitsize@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rbp, rax
	cmp	r15, 1
	ja	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	sub	rbx, 1
	je	.L11
.L10:
	mov	rdi, rbp
	mov	rsi, r12
	call	memcpy@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	r8, QWORD PTR 32[rsp]
	add	rbp, rdx
	test	r8, r8
	je	.L9
	mov	rdx, r8
	mov	rdi, rbp
	mov	rsi, r14
	call	memcpy@PLT
	mov	rdx, QWORD PTR 24[rsp]
	add	rbp, QWORD PTR 32[rsp]
	sub	rbx, 1
	jne	.L10
.L11:
	mov	rsi, r12
	mov	rdi, rbp
	call	memcpy@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r13
	call	luaL_pushresultsize@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	lua_pushliteral@PLT
	mov	eax, 1
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	str_rep, .-str_rep
	.comm	MAXSIZE,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_lstrlib.c_str_rep.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.global	__aeabi_uidiv
	.align	2
.LC1:
	.ascii	"resulting string too large\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_rep, %function
str_rep:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L21
	sub	sp, sp, #16
	mov	r2, sp
	mov	r1, #1
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	luaL_checklstring
	mov	r1, #2
	mov	r6, r0
	mov	r0, r5
	bl	luaL_checkinteger
	mov	r9, r0
	mov	r1, #3
	mov	r0, r5
	ldr	r2, .L21+4
	add	r3, sp, #4
	bl	luaL_optlstring
	cmp	r9, #0
	beq	.L19
	ldm	sp, {r7, r10}
	adds	r4, r7, r10
	bcs	.L6
	ldr	r3, .L21+8
	mov	r8, r0
	mov	r1, r9
	ldr	r0, [r3]
	bl	__aeabi_uidiv
	cmp	r4, r0
	bls	.L7
.L6:
	mov	r0, r5
	ldr	r1, .L21+12
	bl	luaL_error
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	sub	r4, r9, #1
	mul	r10, r4, r10
	mla	r7, r9, r7, r10
	mov	r0, r5
	mov	r2, r7
	add	r1, sp, #8
	bl	luaL_buffinitsize
	cmp	r9, #1
	mov	r3, r0
	ldr	r2, [sp]
	bhi	.L10
	b	.L11
.L9:
	subs	r4, r4, #1
	beq	.L11
.L10:
	mov	r1, r6
	mov	r0, r3
	bl	memcpy
	ldr	r1, [sp, #4]
	ldr	r2, [sp]
	cmp	r1, #0
	add	r3, r0, r2
	beq	.L9
	mov	r2, r1
	mov	r0, r3
	mov	r1, r8
	bl	memcpy
	ldr	r1, [sp, #4]
	subs	r4, r4, #1
	ldr	r2, [sp]
	add	r3, r0, r1
	bne	.L10
.L11:
	mov	r1, r6
	mov	r0, r3
	bl	memcpy
	mov	r1, r7
	add	r0, sp, #8
	bl	luaL_pushresultsize
	mov	r0, #1
	b	.L1
.L19:
	mov	r0, r5
	ldr	r1, .L21+4
	bl	lua_pushliteral
	mov	r0, #1
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LC0
	.word	MAXSIZE
	.word	.LC1
	.size	str_rep, .-str_rep
	.comm	MAXSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
