	.file	"extr_jsregexp.c_index_from_val.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	index_from_val, @function
index_from_val:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	call	to_number@PLT
	mov	edi, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L10
	movsd	xmm0, QWORD PTR [rsp]
	movsd	xmm2, QWORD PTR .LC2[rip]
	movsd	xmm3, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	andpd	xmm1, xmm2
	ucomisd	xmm3, xmm1
	ja	.L11
.L4:
	movsd	QWORD PTR [rsp], xmm0
	call	is_int32@PLT
	pxor	xmm0, xmm0
	test	rax, rax
	jne	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movsd	xmm0, QWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	cvttsd2si	rax, xmm0
	pxor	xmm1, xmm1
	movsd	xmm4, QWORD PTR .LC3[rip]
	andnpd	xmm2, xmm0
	cvtsi2sd	xmm1, rax
	movapd	xmm3, xmm1
	cmpnlesd	xmm3, xmm0
	movapd	xmm0, xmm2
	andpd	xmm3, xmm4
	subsd	xmm1, xmm3
	orpd	xmm0, xmm1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	clear_ei@PLT
	pxor	xmm0, xmm0
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	index_from_val, .-index_from_val
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1127219200
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	4294967295
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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_jsregexp.c_index_from_val.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	index_from_val, %function
index_from_val:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L11
	sub	sp, sp, #16
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	to_number
	bl	FAILED
	cmp	r0, #0
	bne	.L8
	ldmia	sp, {r0-r1}
	bl	floor
	mov	r3, r1
	mov	r2, r0
	stm	sp, {r2-r3}
	bl	is_int32
	cmp	r0, #0
	moveq	r0, #0
	moveq	r1, #0
	bne	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L9:
	ldmia	sp, {r0-r1}
	b	.L1
.L8:
	mov	r0, r4
	bl	clear_ei
	mov	r0, #0
	mov	r1, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	index_from_val, .-index_from_val
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
