	.file	"126703313.c"
	.intel_syntax noprefix
	.text
	.type	debase, @function
debase:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 47
	jle	.L2
	cmp	BYTE PTR -4[rbp], 57
	jg	.L2
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 48
	jmp	.L3
.L2:
	cmp	BYTE PTR -4[rbp], 96
	jle	.L4
	cmp	BYTE PTR -4[rbp], 122
	jg	.L4
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 87
	jmp	.L3
.L4:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L5
	cmp	BYTE PTR -4[rbp], 90
	jg	.L5
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, 55
	jmp	.L3
.L5:
	mov	eax, -1
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	debase, .-debase
	.globl	strtol
	.type	strtol, @function
strtol:
.LFB7:
	.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 0
	js	.L7
	cmp	DWORD PTR -68[rbp], 1
	je	.L7
	cmp	DWORD PTR -68[rbp], 36
	jle	.L8
.L7:
	cmp	QWORD PTR -64[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
.L9:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, 0
	jmp	.L35
.L8:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L11
.L12:
	add	QWORD PTR -56[rbp], 1
.L11:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L12
	mov	BYTE PTR -48[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -46[rbp], al
	cmp	BYTE PTR -46[rbp], 45
	jne	.L13
	add	QWORD PTR -56[rbp], 1
	mov	BYTE PTR -48[rbp], 1
	jmp	.L14
.L13:
	cmp	BYTE PTR -46[rbp], 43
	jne	.L14
	add	QWORD PTR -56[rbp], 1
	mov	BYTE PTR -48[rbp], 0
.L14:
	movzx	eax, BYTE PTR -48[rbp]
	mov	BYTE PTR -45[rbp], al
	cmp	DWORD PTR -68[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L16
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L17
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L16
.L17:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	debase
	test	eax, eax
	js	.L16
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	debase
	cmp	eax, 15
	jg	.L16
	add	QWORD PTR -56[rbp], 2
	mov	DWORD PTR -68[rbp], 16
	jmp	.L20
.L16:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L19
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	debase
	test	eax, eax
	js	.L19
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	debase
	cmp	eax, 7
	jg	.L19
	add	QWORD PTR -56[rbp], 1
	mov	DWORD PTR -68[rbp], 8
	jmp	.L20
.L19:
	mov	DWORD PTR -68[rbp], 10
	jmp	.L20
.L15:
	cmp	DWORD PTR -68[rbp], 16
	jne	.L20
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L20
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 120
	je	.L21
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L20
.L21:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	debase
	test	eax, eax
	js	.L20
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	debase
	cmp	eax, 15
	jg	.L20
	add	QWORD PTR -56[rbp], 2
.L20:
	cmp	BYTE PTR -45[rbp], 0
	je	.L22
	movabs	rax, -9223372036854775808
	jmp	.L23
.L22:
	movabs	rax, 9223372036854775807
.L23:
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	BYTE PTR -47[rbp], 0
	jmp	.L24
.L32:
	movsx	eax, BYTE PTR -46[rbp]
	mov	edi, eax
	call	debase
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	js	.L25
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L25
	add	QWORD PTR -56[rbp], 1
	add	QWORD PTR -32[rbp], 1
	cmp	BYTE PTR -47[rbp], 0
	je	.L26
	jmp	.L24
.L26:
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	ecx, 0
	imul	rax, rdx
	jno	.L27
	mov	ecx, 1
.L27:
	mov	QWORD PTR -40[rbp], rax
	mov	rax, rcx
	and	eax, 1
	test	al, al
	je	.L29
	mov	BYTE PTR -47[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -40[rbp], rax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	jmp	.L24
.L29:
	cmp	DWORD PTR -44[rbp], 0
	je	.L24
	movzx	eax, BYTE PTR -45[rbp]
	xor	eax, 1
	test	al, al
	je	.L30
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rcx, QWORD PTR -40[rbp]
	movabs	rdx, 9223372036854775807
	sub	rdx, rcx
	cmp	rax, rdx
	jg	.L30
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	jmp	.L24
.L30:
	cmp	BYTE PTR -45[rbp], 0
	je	.L31
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, rdx
	movabs	rdx, -9223372036854775808
	add	rdx, rcx
	cmp	rax, rdx
	jnb	.L31
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	jmp	.L24
.L31:
	mov	BYTE PTR -47[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -40[rbp], rax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	nop
.L24:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -46[rbp], al
	cmp	BYTE PTR -46[rbp], 0
	jne	.L32
.L25:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L33
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -56[rbp], rax
.L33:
	cmp	QWORD PTR -64[rbp], 0
	je	.L34
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
.L34:
	mov	rax, QWORD PTR -40[rbp]
.L35:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"126703313.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	debase, %function
debase:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #48
	b	.L3
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L4
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L4
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #87
	b	.L3
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #55
	b	.L3
.L5:
	mvn	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	debase, .-debase
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.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, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	blt	.L7
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	beq	.L7
	ldr	r3, [fp, #-48]
	cmp	r3, #36
	ble	.L8
.L7:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	str	r2, [r3]
.L9:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mov	r3, #0
	b	.L35
.L8:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	b	.L11
.L12:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L11:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	strb	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]
	strb	r3, [fp, #-30]
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L13
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r3, #1
	strb	r3, [fp, #-32]
	b	.L14
.L13:
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L14
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r3, #0
	strb	r3, [fp, #-32]
.L14:
	ldrb	r3, [fp, #-32]
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L16
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L17
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L16
.L17:
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	debase
	mov	r3, r0
	cmp	r3, #0
	blt	.L16
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	debase
	mov	r3, r0
	cmp	r3, #15
	bgt	.L16
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	str	r3, [fp, #-40]
	mov	r3, #16
	str	r3, [fp, #-48]
	b	.L20
.L16:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L19
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	debase
	mov	r3, r0
	cmp	r3, #0
	blt	.L19
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	debase
	mov	r3, r0
	cmp	r3, #7
	bgt	.L19
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	mov	r3, #8
	str	r3, [fp, #-48]
	b	.L20
.L19:
	mov	r3, #10
	str	r3, [fp, #-48]
	b	.L20
.L15:
	ldr	r3, [fp, #-48]
	cmp	r3, #16
	bne	.L20
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L20
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #120
	beq	.L21
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L20
.L21:
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	debase
	mov	r3, r0
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	debase
	mov	r3, r0
	cmp	r3, #15
	bgt	.L20
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	str	r3, [fp, #-40]
.L20:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
	mov	r3, #-2147483648
	b	.L23
.L22:
	mvn	r3, #-2147483648
.L23:
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-31]
	b	.L24
.L32:
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	mov	r0, r3
	bl	debase
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L25
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L25
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L26
	b	.L24
.L26:
	ldr	r0, [fp, #-28]
	mov	lr, #0
	ldr	r1, [fp, #-48]
	smull	r2, r3, r0, r1
	mov	r0, #0
	mov	r1, #0
	mov	r0, r3
	asr	r1, r3, #31
	asr	ip, r2, #31
	cmp	ip, r0
	beq	.L27
	mov	lr, #1
.L27:
	mov	r3, r2
	str	r3, [fp, #-28]
	mov	r3, lr
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	mov	r3, #1
	strb	r3, [fp, #-31]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	b	.L24
.L29:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L24
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L30
	ldr	r2, [fp, #-28]
	mvn	r3, #-2147483648
	sub	r3, r3, r2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bgt	.L30
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L24
.L30:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-28]
	add	r2, r3, #-2147483648
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L31
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L24
.L31:
	mov	r3, #1
	strb	r3, [fp, #-31]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-28]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	nop
.L24:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]
	strb	r3, [fp, #-30]
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
.L25:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L33
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-40]
.L33:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	str	r2, [r3]
.L34:
	ldr	r3, [fp, #-28]
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.size	strtol, .-strtol
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
