	.file	"431596.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	rcsid, @object
	.size	rcsid, 104
rcsid:
	.string	"$Header: /sprite/src/lib/tcl/compat/RCS/strtol.c,v 1.1 91/09/22 15:42:49 ouster Exp $ SPRITE (Berkeley)"
	.text
	.globl	strtol
	.type	strtol, @function
strtol:
.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
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rbx, QWORD PTR -40[rbp]
	jmp	.L2
.L3:
	add	rbx, 1
.L2:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L3
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 45
	jne	.L4
	add	rbx, 1
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rbx
	mov	eax, 0
	call	strtoul@PLT
	neg	eax
	mov	DWORD PTR -20[rbp], eax
	jmp	.L5
.L4:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 43
	jne	.L6
	add	rbx, 1
.L6:
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rbx
	mov	eax, 0
	call	strtoul@PLT
	mov	DWORD PTR -20[rbp], eax
.L5:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L7
	cmp	QWORD PTR -48[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rbx, rax
	jne	.L7
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strtol, .-strtol
	.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	"431596.c"
	.text
	.data
	.align	2
	.type	rcsid, %object
	.size	rcsid, 104
rcsid:
	.ascii	"$Header: /sprite/src/lib/tcl/compat/RCS/strtol.c,v "
	.ascii	"1.1 91/09/22 15:42:49 ouster Exp $ SPRITE (Berkeley"
	.ascii	")\000"
	.text
	.align	2
	.global	strtol
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtol, %function
strtol:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r4, [fp, #-24]
	b	.L2
.L3:
	add	r4, r4, #1
.L2:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L3
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L4
	add	r4, r4, #1
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r4
	bl	strtoul
	mov	r3, r0
	rsb	r3, r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L4:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L6
	add	r4, r4, #1
.L6:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r4
	bl	strtoul
	str	r0, [fp, #-16]
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r4, r3
	bne	.L7
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
.L7:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	strtol, .-strtol
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
