	.file	"784632.c"
	.intel_syntax noprefix
	.text
	.local	errno
	.comm	errno,4,4
	.globl	strtol
	.type	strtol, @function
strtol:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
.L2:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -37[rbp], al
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR -37[rbp]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L2
	cmp	BYTE PTR -37[rbp], 45
	jne	.L3
	mov	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -37[rbp], al
	jmp	.L4
.L3:
	mov	DWORD PTR -36[rbp], 0
	cmp	BYTE PTR -37[rbp], 43
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -37[rbp], al
.L4:
	cmp	DWORD PTR -68[rbp], 0
	je	.L5
	cmp	DWORD PTR -68[rbp], 16
	jne	.L6
.L5:
	cmp	BYTE PTR -37[rbp], 48
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L6
.L7:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -37[rbp], al
	add	QWORD PTR -24[rbp], 2
	mov	DWORD PTR -68[rbp], 16
.L6:
	cmp	DWORD PTR -68[rbp], 0
	jne	.L8
	cmp	BYTE PTR -37[rbp], 48
	jne	.L9
	mov	eax, 8
	jmp	.L10
.L9:
	mov	eax, 10
.L10:
	mov	DWORD PTR -68[rbp], eax
.L8:
	mov	DWORD PTR -32[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	cmp	DWORD PTR -68[rbp], 1
	jle	.L34
	cmp	DWORD PTR -68[rbp], 36
	jg	.L34
	cmp	DWORD PTR -36[rbp], 0
	je	.L14
	movabs	rax, -9223372036854775808
	jmp	.L15
.L14:
	movabs	rax, 9223372036854775807
.L15:
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	div	rsi
	mov	QWORD PTR -8[rbp], rax
.L24:
	cmp	BYTE PTR -37[rbp], 47
	jle	.L16
	cmp	BYTE PTR -37[rbp], 57
	jg	.L16
	movzx	eax, BYTE PTR -37[rbp]
	sub	eax, 48
	mov	BYTE PTR -37[rbp], al
	jmp	.L17
.L16:
	cmp	BYTE PTR -37[rbp], 64
	jle	.L18
	cmp	BYTE PTR -37[rbp], 90
	jg	.L18
	movzx	eax, BYTE PTR -37[rbp]
	sub	eax, 55
	mov	BYTE PTR -37[rbp], al
	jmp	.L17
.L18:
	cmp	BYTE PTR -37[rbp], 96
	jle	.L19
	cmp	BYTE PTR -37[rbp], 122
	jg	.L19
	movzx	eax, BYTE PTR -37[rbp]
	sub	eax, 87
	mov	BYTE PTR -37[rbp], al
.L17:
	movsx	eax, BYTE PTR -37[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jle	.L35
	cmp	DWORD PTR -32[rbp], 0
	js	.L21
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	ja	.L21
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jne	.L22
	movsx	eax, BYTE PTR -37[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L22
.L21:
	mov	DWORD PTR -32[rbp], -1
	jmp	.L23
.L22:
	mov	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	imul	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	movsx	rax, BYTE PTR -37[rbp]
	add	QWORD PTR -16[rbp], rax
.L23:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -37[rbp], al
	jmp	.L24
.L35:
	nop
.L19:
	cmp	DWORD PTR -32[rbp], 0
	jns	.L25
	cmp	DWORD PTR -36[rbp], 0
	je	.L26
	movabs	rax, -9223372036854775808
	jmp	.L27
.L26:
	movabs	rax, 9223372036854775807
.L27:
	mov	QWORD PTR -16[rbp], rax
	jmp	.L28
.L25:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L29
	jmp	.L13
.L34:
	nop
.L13:
	mov	DWORD PTR errno[rip], 2
	jmp	.L28
.L29:
	cmp	DWORD PTR -36[rbp], 0
	je	.L28
	neg	QWORD PTR -16[rbp]
.L28:
	cmp	QWORD PTR -64[rbp], 0
	je	.L30
	cmp	DWORD PTR -32[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, 1
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -56[rbp]
.L32:
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
.L30:
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"784632.c"
	.text
	.local	errno
	.comm	errno,4,4
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
	.global	strtol
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtol, %function
strtol:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	b	.L4
.L3:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L4
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
.L4:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-48]
	cmp	r3, #16
	bne	.L6
.L5:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L6
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L7
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L6
.L7:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-28]
	mov	r3, #16
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L8
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L9
	mov	r3, #8
	b	.L10
.L9:
	mov	r3, #10
.L10:
	str	r3, [fp, #-48]
.L8:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	ble	.L34
	ldr	r3, [fp, #-48]
	cmp	r3, #36
	bgt	.L34
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L14
	mov	r3, #-2147483648
	b	.L15
.L14:
	mvn	r3, #-2147483648
.L15:
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	__aeabi_uidiv
	mov	r3, r0
	str	r3, [fp, #-12]
.L24:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L16
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L16
	ldrb	r3, [fp, #-29]
	sub	r3, r3, #48
	strb	r3, [fp, #-29]
	b	.L17
.L16:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L18
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L18
	ldrb	r3, [fp, #-29]
	sub	r3, r3, #55
	strb	r3, [fp, #-29]
	b	.L17
.L18:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L19
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L19
	ldrb	r3, [fp, #-29]
	sub	r3, r3, #87
	strb	r3, [fp, #-29]
.L17:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	ble	.L35
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L21
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bhi	.L21
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L22
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L22
.L21:
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L23
.L22:
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-24]
	mul	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L23:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-29]
	b	.L24
.L35:
	nop
.L19:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L25
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L26
	mov	r3, #-2147483648
	b	.L27
.L26:
	mvn	r3, #-2147483648
.L27:
	str	r3, [fp, #-24]
	b	.L28
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L29
	b	.L13
.L34:
	nop
.L13:
	ldr	r3, .L36
	mov	r2, #2
	str	r2, [r3]
	b	.L28
.L29:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #0
	str	r3, [fp, #-24]
.L28:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	b	.L32
.L31:
	ldr	r3, [fp, #-40]
.L32:
	ldr	r2, [fp, #-44]
	str	r3, [r2]
.L30:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	errno
	.size	strtol, .-strtol
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
