	.file	"extr_wtol.c__wtol.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_wtol
	.type	_wtol, @function
_wtol:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L23
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 4
.L3:
	mov	esi, DWORD PTR _SPACE[rip]
	mov	edi, DWORD PTR [rbx]
	call	iswctype@PLT
	test	rax, rax
	jne	.L4
	movsx	rdx, DWORD PTR [rbx]
	cmp	edx, 43
	je	.L24
	cmp	edx, 45
	je	.L25
	lea	ecx, -48[rdx]
	xor	edi, edi
	cmp	ecx, 9
	ja	.L1
.L6:
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rax, [rcx+rcx*4]
	add	rbx, 4
	lea	rsi, [rdx+rax*2]
	movsx	rdx, DWORD PTR [rbx]
	lea	rcx, -48[rsi]
	lea	eax, -48[rdx]
	cmp	eax, 9
	jbe	.L10
	mov	eax, 48
	sub	rax, rsi
	test	dil, dil
	cmove	rax, rcx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movsx	rdx, DWORD PTR 4[rbx]
	xor	edi, edi
	add	rbx, 4
	lea	ecx, -48[rdx]
	cmp	ecx, 9
	jbe	.L6
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	movsx	rdx, DWORD PTR 4[rbx]
	lea	rsi, 4[rbx]
	lea	ecx, -48[rdx]
	cmp	ecx, 9
	ja	.L1
	mov	rbx, rsi
	mov	edi, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	_wtol, .-_wtol
	.comm	_SPACE,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_wtol.c__wtol.c"
	.text
	.align	2
	.global	_wtol
	.syntax unified
	.arm
	.fpu softvfp
	.type	_wtol, %function
_wtol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, .L27
.L3:
	mov	r5, r4
	ldr	r1, [r6]
	ldr	r0, [r4], #4
	bl	iswctype
	cmp	r0, #0
	bne	.L3
	ldr	r3, [r5]
	cmp	r3, #43
	beq	.L25
	cmp	r3, #45
	beq	.L26
	sub	r2, r3, #48
	cmp	r2, #9
	pophi	{r4, r5, r6, pc}
	mov	r1, r0
.L5:
	mov	r0, #0
.L9:
	add	r0, r0, r0, lsl #2
	add	r0, r3, r0, lsl #1
	ldr	r3, [r5, #4]!
	sub	r0, r0, #48
	sub	r2, r3, #48
	cmp	r2, #9
	bls	.L9
	cmp	r1, #0
	rsbne	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L25:
	ldr	r3, [r5, #4]
	sub	r2, r3, #48
	cmp	r2, #9
	pophi	{r4, r5, r6, pc}
	mov	r5, r4
	mov	r1, r0
	b	.L5
.L26:
	ldr	r3, [r5, #4]
	sub	r2, r3, #48
	cmp	r2, #9
	pophi	{r4, r5, r6, pc}
	mov	r5, r4
	mov	r1, #1
	b	.L5
.L28:
	.align	2
.L27:
	.word	_SPACE
	.size	_wtol, .-_wtol
	.comm	_SPACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
