	.file	"extr_load.c_lex_scan_number.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"too big negative integer"
.LC1:
	.string	"too big integer"
.LC2:
	.string	"real number overflow"
	.text
	.p2align 4
	.type	lex_scan_number, @function
lex_scan_number:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	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
	mov	eax, DWORD PTR TOKEN_INVALID[rip]
	mov	DWORD PTR 24[rdi], eax
	cmp	esi, 45
	je	.L43
.L2:
	cmp	ebp, 48
	je	.L44
	mov	edi, ebp
	call	l_isdigit@PLT
	test	rax, rax
	je	.L41
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r13
	mov	rsi, r12
	call	lex_get_save@PLT
	mov	edi, eax
	mov	ebp, eax
	call	l_isdigit@PLT
	test	rax, rax
	jne	.L7
.L4:
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR JSON_DECODE_INT_AS_REAL[rip]
	mov	r14d, eax
	jne	.L8
	cmp	ebp, 46
	je	.L38
	cmp	ebp, 69
	je	.L8
	cmp	ebp, 101
	jne	.L9
.L17:
	mov	rsi, r12
	mov	rdi, r13
	call	lex_get_save@PLT
	mov	ebp, eax
	lea	eax, -43[rax]
	and	eax, -3
	je	.L45
.L11:
	mov	edi, ebp
	call	l_isdigit@PLT
	test	rax, rax
	je	.L41
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r13
	mov	rsi, r12
	call	lex_get_save@PLT
	mov	edi, eax
	mov	ebp, eax
	call	l_isdigit@PLT
	test	rax, rax
	jne	.L19
.L18:
	mov	esi, ebp
	mov	rdi, r13
	call	lex_unget_unsave@PLT
	mov	rsi, rsp
	lea	rdi, 28[r13]
	call	jsonp_strtod@PLT
	test	rax, rax
	jne	.L46
	mov	eax, DWORD PTR TOKEN_REAL[rip]
	movsd	xmm0, QWORD PTR [rsp]
	xor	r14d, r14d
	mov	DWORD PTR 24[r13], eax
	movsd	QWORD PTR 8[r13], xmm0
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L47
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r14d
	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
.L8:
	.cfi_restore_state
	cmp	ebp, 46
	je	.L38
.L14:
	mov	eax, ebp
	and	eax, -33
	cmp	eax, 69
	jne	.L18
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rdi, r13
	mov	rsi, r12
	call	lex_get_save@PLT
	mov	edi, eax
	mov	ebp, eax
	call	l_isdigit@PLT
	test	rax, rax
	je	.L4
.L41:
	mov	esi, ebp
	mov	rdi, r13
	mov	r14d, -1
	call	lex_unget_unsave@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rsi, rdx
	call	lex_get_save@PLT
	mov	ebp, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, ebp
	mov	rdi, r13
	call	lex_unget_unsave@PLT
	lea	rdi, 28[r13]
	call	strbuffer_value@PLT
	mov	rsi, rsp
	mov	edx, 10
	mov	QWORD PTR errno[rip], 0
	mov	rdi, rax
	mov	rbp, rax
	call	json_strtoint@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR ERANGE[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L48
	movsx	rax, DWORD PTR 28[r13]
	xor	edi, edi
	add	rbp, rax
	cmp	QWORD PTR [rsp], rbp
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR TOKEN_INTEGER[rip]
	mov	QWORD PTR 16[r13], rbx
	mov	DWORD PTR 24[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rsi, r12
	mov	rdi, r13
	call	lex_get@PLT
	mov	edi, eax
	mov	ebp, eax
	call	l_isdigit@PLT
	mov	esi, ebp
	mov	rdi, r13
	test	rax, rax
	je	.L49
	call	lex_save@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	mov	rsi, r12
	call	lex_get_save@PLT
	mov	edi, eax
	mov	ebp, eax
	call	l_isdigit@PLT
	test	rax, rax
	jne	.L16
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rsi, r12
	mov	rdi, r13
	call	lex_get_save@PLT
	mov	ebp, eax
	jmp	.L11
.L46:
	lea	rdx, .LC2[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	r14d, -1
	call	error_set@PLT
	jmp	.L1
.L48:
	test	rbx, rbx
	js	.L50
	lea	rdx, .LC1[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	r14d, -1
	call	error_set@PLT
	jmp	.L1
.L49:
	call	lex_unget@PLT
	mov	r14d, -1
	jmp	.L1
.L50:
	lea	rdx, .LC0[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	r14d, -1
	call	error_set@PLT
	jmp	.L1
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lex_scan_number, .-lex_scan_number
	.comm	errno,8,8
	.comm	TOKEN_REAL,4,4
	.comm	TOKEN_INVALID,4,4
	.comm	TOKEN_INTEGER,4,4
	.comm	JSON_DECODE_INT_AS_REAL,4,4
	.comm	ERANGE,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_load.c_lex_scan_number.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"too big negative integer\000"
	.align	2
.LC1:
	.ascii	"too big integer\000"
	.align	2
.LC2:
	.ascii	"real number overflow\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lex_scan_number, %function
lex_scan_number:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L47
	mov	r7, r2
	ldr	r3, [r3]
	ldr	r2, .L47+4
	sub	sp, sp, #16
	cmp	r1, #45
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, r0
	movne	r4, r1
	str	r3, [r0, #24]
	beq	.L39
.L2:
	cmp	r4, #48
	beq	.L40
	mov	r0, r4
	bl	l_isdigit
	cmp	r0, #0
	beq	.L37
.L7:
	mov	r1, r7
	mov	r0, r6
	bl	lex_get_save
	mov	r4, r0
	bl	l_isdigit
	cmp	r0, #0
	bne	.L7
.L4:
	ldr	r3, .L47+8
	ldr	r5, [r6]
	ldr	r0, [r3]
	ands	r5, r5, r0
	bne	.L8
	cmp	r4, #46
	cmpne	r4, #69
	beq	.L8
	cmp	r4, #101
	bne	.L9
.L17:
	mov	r1, r7
	mov	r0, r6
	bl	lex_get_save
	sub	r3, r0, #43
	bics	r3, r3, #2
	mov	r4, r0
	beq	.L41
.L11:
	mov	r0, r4
	bl	l_isdigit
	cmp	r0, #0
	beq	.L37
.L19:
	mov	r1, r7
	mov	r0, r6
	bl	lex_get_save
	mov	r4, r0
	bl	l_isdigit
	cmp	r0, #0
	bne	.L19
.L18:
	mov	r1, r4
	mov	r0, r6
	bl	lex_unget_unsave
	mov	r1, sp
	add	r0, r6, #28
	bl	jsonp_strtod
	subs	r5, r0, #0
	bne	.L42
	ldmia	sp, {r2-r3}
	ldr	r1, .L47+12
	str	r2, [r6, #8]
	str	r3, [r6, #12]
	ldr	r1, [r1]
	str	r1, [r6, #24]
.L1:
	ldr	r3, .L47+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	cmp	r4, #46
	beq	.L44
.L14:
	bic	r3, r4, #32
	cmp	r3, #69
	bne	.L18
	b	.L17
.L40:
	mov	r1, r7
	mov	r0, r6
	bl	lex_get_save
	mov	r4, r0
	bl	l_isdigit
	cmp	r0, #0
	beq	.L4
.L37:
	mov	r1, r4
	mov	r0, r6
	bl	lex_unget_unsave
	mvn	r5, #0
	b	.L1
.L39:
	mov	r1, r7
	bl	lex_get_save
	mov	r4, r0
	b	.L2
.L9:
	mov	r1, r4
	mov	r0, r6
	bl	lex_unget_unsave
	add	r0, r6, #28
	bl	strbuffer_value
	ldr	r8, .L47+16
	mov	r2, #10
	mov	r1, sp
	str	r5, [r8]
	mov	r4, r0
	bl	json_strtoint
	ldr	r3, .L47+20
	ldr	r2, [r8]
	ldr	r3, [r3]
	mov	r8, r0
	cmp	r2, r3
	beq	.L45
	ldr	r3, [r6, #28]
	ldr	r0, [sp]
	add	r4, r4, r3
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L47+24
	str	r8, [r6, #16]
	ldr	r3, [r3]
	str	r3, [r6, #24]
	b	.L1
.L44:
	mov	r1, r7
	mov	r0, r6
	bl	lex_get
	mov	r4, r0
	bl	l_isdigit
	cmp	r0, #0
	mov	r1, r4
	mov	r0, r6
	beq	.L46
	bl	lex_save
.L16:
	mov	r1, r7
	mov	r0, r6
	bl	lex_get_save
	mov	r4, r0
	bl	l_isdigit
	cmp	r0, #0
	bne	.L16
	b	.L14
.L41:
	mov	r1, r7
	mov	r0, r6
	bl	lex_get_save
	mov	r4, r0
	b	.L11
.L42:
	mov	r1, r6
	mov	r0, r7
	ldr	r2, .L47+28
	bl	error_set
	mvn	r5, #0
	b	.L1
.L45:
	cmp	r8, #0
	mov	r1, r6
	mov	r0, r7
	ldrlt	r2, .L47+32
	ldrge	r2, .L47+36
	bl	error_set
	mvn	r5, #0
	b	.L1
.L46:
	bl	lex_unget
	mvn	r5, #0
	b	.L1
.L43:
	bl	__stack_chk_fail
.L48:
	.align	2
.L47:
	.word	TOKEN_INVALID
	.word	.LC3
	.word	JSON_DECODE_INT_AS_REAL
	.word	TOKEN_REAL
	.word	errno
	.word	ERANGE
	.word	TOKEN_INTEGER
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	lex_scan_number, .-lex_scan_number
	.comm	errno,4,4
	.comm	TOKEN_REAL,4,4
	.comm	TOKEN_INVALID,4,4
	.comm	TOKEN_INTEGER,4,4
	.comm	JSON_DECODE_INT_AS_REAL,4,4
	.comm	ERANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
