	.file	"796223.c"
	.intel_syntax noprefix
	.text
	.globl	atol
	.type	atol, @function
atol:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	rax, rdi
	mov	QWORD PTR -16[rbp], 0
	mov	ebx, 0
.L6:
	movzx	edx, BYTE PTR [rax]
	movsx	edx, dl
	cmp	edx, 45
	je	.L2
	cmp	edx, 45
	jg	.L14
	cmp	edx, 43
	je	.L4
	cmp	edx, 43
	jg	.L14
	cmp	edx, 9
	je	.L5
	cmp	edx, 32
	jne	.L14
.L5:
	add	rax, 1
	jmp	.L6
.L2:
	add	ebx, 1
.L4:
	add	rax, 1
.L14:
	nop
	jmp	.L7
.L9:
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, rcx
	sal	rdx, 2
	add	rdx, rcx
	add	rdx, rdx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rax, 1[rdx]
	movzx	edx, BYTE PTR [rdx]
	movsx	rdx, dl
	add	rdx, rcx
	sub	rdx, 48
	mov	QWORD PTR -16[rbp], rdx
.L7:
	movzx	edx, BYTE PTR [rax]
	cmp	dl, 47
	jle	.L8
	movzx	edx, BYTE PTR [rax]
	cmp	dl, 57
	jle	.L9
.L8:
	test	ebx, ebx
	je	.L10
	mov	rax, QWORD PTR -16[rbp]
	neg	rax
	jmp	.L12
.L10:
	mov	rax, QWORD PTR -16[rbp]
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	atol, .-atol
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"796223.c"
	.text
	.align	2
	.global	atol
	.syntax unified
	.arm
	.fpu softvfp
	.type	atol, %function
atol:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	mov	r2, #0
	str	r2, [fp, #-8]
	mov	r4, #0
.L6:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #45
	beq	.L2
	cmp	r2, #45
	bgt	.L14
	cmp	r2, #43
	beq	.L4
	cmp	r2, #43
	bgt	.L14
	cmp	r2, #9
	beq	.L5
	cmp	r2, #32
	bne	.L14
.L5:
	add	r3, r3, #1
	b	.L6
.L2:
	add	r4, r4, #1
.L4:
	add	r3, r3, #1
.L14:
	nop
	b	.L7
.L9:
	ldr	r1, [fp, #-8]
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r2, r2, #1
	mov	r1, r2
	mov	r2, r3
	add	r3, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r1, r2
	sub	r2, r2, #48
	str	r2, [fp, #-8]
.L7:
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #47
	bls	.L8
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #57
	bls	.L9
.L8:
	cmp	r4, #0
	beq	.L10
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	b	.L12
.L10:
	ldr	r3, [fp, #-8]
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
	.size	atol, .-atol
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
