	.file	"extr_jsstring.c_Sp_lastIndexOf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	Sp_lastIndexOf, @function
Sp_lastIndexOf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	esi, esi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	checkstring@PLT
	mov	esi, 1
	mov	rdi, rbx
	mov	r13, rax
	call	js_tostring@PLT
	mov	esi, 2
	mov	rdi, rbx
	mov	r12, rax
	call	js_isdefined@PLT
	test	rax, rax
	je	.L2
	mov	esi, 2
	mov	rdi, rbx
	call	js_tointeger@PLT
	mov	DWORD PTR 4[rsp], eax
.L3:
	mov	rdi, r12
	mov	ebp, -1
	call	strlen@PLT
	cmp	BYTE PTR 0[r13], 0
	mov	r14d, eax
	je	.L4
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	js	.L4
	xor	ebx, ebx
	lea	r15, 20[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	DWORD PTR 4[rsp], ebx
	jl	.L4
.L6:
	mov	rdi, r13
	mov	edx, r14d
	mov	rsi, r12
	call	strncmp@PLT
	mov	rsi, r13
	mov	rdi, r15
	test	eax, eax
	cmove	ebp, ebx
	add	ebx, 1
	call	chartorune@PLT
	cdqe
	add	r13, rax
	cmp	BYTE PTR 0[r13], 0
	jne	.L19
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, ebp
	call	js_pushnumber@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.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
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	strlen@PLT
	mov	DWORD PTR 4[rsp], eax
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Sp_lastIndexOf, .-Sp_lastIndexOf
	.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_lastIndexOf.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_lastIndexOf, %function
Sp_lastIndexOf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L14
	sub	sp, sp, #8
	mov	r1, #0
	mov	r9, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	checkstring
	mov	r1, #1
	mov	r4, r0
	mov	r0, r9
	bl	js_tostring
	mov	r1, #2
	mov	r7, r0
	mov	r0, r9
	bl	js_isdefined
	cmp	r0, #0
	bne	.L12
	mov	r0, r4
	bl	strlen
	mov	r8, r0
.L3:
	mov	r0, r7
	bl	strlen
	mvn	r3, r8
	ldrb	r1, [r4]	@ zero_extendqisi2
	lsr	r3, r3, #31
	cmp	r1, #0
	moveq	r3, #0
	cmp	r3, #0
	mov	r10, r0
	mvn	r6, #0
	beq	.L4
	mov	r5, #0
.L6:
	mov	r2, r10
	mov	r1, r7
	mov	r0, r4
	bl	strncmp
	mov	r3, r0
	mov	r1, r4
	cmp	r3, #0
	mov	r0, sp
	moveq	r6, r5
	bl	chartorune
	add	r5, r5, #1
	ldrb	r2, [r4, r0]!	@ zero_extendqisi2
	cmp	r8, r5
	movlt	r3, #0
	movge	r3, #1
	cmp	r2, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L6
.L4:
	mov	r1, r6
	mov	r0, r9
	bl	js_pushnumber
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r1, #2
	mov	r0, r9
	bl	js_tointeger
	mov	r8, r0
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	Sp_lastIndexOf, .-Sp_lastIndexOf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
