	.file	"extr_jsstring.c_Sp_toLowerCase.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	Sp_toLowerCase, @function
Sp_toLowerCase:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	checkstring@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	strlen@PLT
	imul	eax, DWORD PTR UTFmax[rip]
	mov	rdi, r13
	lea	esi, 1[rax]
	call	js_malloc@PLT
	cmp	BYTE PTR [rbx], 0
	mov	r14, rax
	mov	rbp, rax
	je	.L2
	lea	r12, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbx
	mov	rdi, r12
	call	chartorune@PLT
	mov	edi, DWORD PTR 4[rsp]
	cdqe
	add	rbx, rax
	call	tolowerrune@PLT
	mov	rdi, rbp
	mov	rsi, r12
	mov	DWORD PTR 4[rsp], eax
	call	runetochar@PLT
	cdqe
	add	rbp, rax
	cmp	BYTE PTR [rbx], 0
	jne	.L3
.L2:
	mov	BYTE PTR 0[rbp], 0
	mov	rdi, r13
	call	js_try@PLT
	test	rax, rax
	jne	.L13
.L4:
	mov	rsi, r14
	mov	rdi, r13
	call	js_pushstring@PLT
	mov	rdi, r13
	call	js_endtry@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	js_free@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, r13
	mov	rsi, r14
	call	js_free@PLT
	mov	rdi, r13
	call	js_throw@PLT
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Sp_toLowerCase, .-Sp_toLowerCase
	.comm	UTFmax,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_jsstring.c_Sp_toLowerCase.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Sp_toLowerCase, %function
Sp_toLowerCase:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L15
	sub	sp, sp, #8
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	bl	checkstring
	mov	r4, r0
	bl	strlen
	mov	r1, r0
	ldr	r3, .L15+4
	mov	r0, r7
	ldr	r3, [r3]
	mul	r1, r3, r1
	add	r1, r1, #1
	bl	js_malloc
	ldrb	r3, [r4]	@ zero_extendqisi2
	mov	r8, r0
	cmp	r3, #0
	mov	r5, r0
	beq	.L2
.L3:
	mov	r1, r4
	mov	r0, sp
	bl	chartorune
	mov	r6, r0
	ldr	r0, [sp]
	bl	tolowerrune
	mov	r3, r0
	mov	r1, sp
	mov	r0, r5
	str	r3, [sp]
	bl	runetochar
	ldrb	r3, [r4, r6]!	@ zero_extendqisi2
	add	r5, r5, r0
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r3, #0
	mov	r0, r7
	strb	r3, [r5]
	bl	js_try
	cmp	r0, #0
	bne	.L13
.L4:
	mov	r1, r8
	mov	r0, r7
	bl	js_pushstring
	mov	r0, r7
	bl	js_endtry
	mov	r1, r8
	mov	r0, r7
	bl	js_free
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r1, r8
	mov	r0, r7
	bl	js_free
	mov	r0, r7
	bl	js_throw
	b	.L4
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	UTFmax
	.size	Sp_toLowerCase, .-Sp_toLowerCase
	.comm	UTFmax,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
