	.file	"617233.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"invalid"
.LC1:
	.string	"too small"
.LC2:
	.string	"too large"
	.text
	.globl	strtonum
	.type	strtonum, @function
strtonum:
.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, 144
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	QWORD PTR -144[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -56[rbp], 22
	lea	rax, .LC1[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 34
	lea	rax, .LC2[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -24[rbp], 34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -72[rbp], eax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -128[rbp]
	cmp	rax, QWORD PTR -136[rbp]
	jle	.L2
	mov	DWORD PTR -100[rbp], 1
	jmp	.L3
.L2:
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	cmp	QWORD PTR -120[rbp], rax
	je	.L4
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L5
.L4:
	mov	DWORD PTR -100[rbp], 1
	jmp	.L3
.L5:
	movabs	rax, -9223372036854775808
	cmp	QWORD PTR -88[rbp], rax
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	je	.L7
.L6:
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, QWORD PTR -128[rbp]
	jge	.L8
.L7:
	mov	DWORD PTR -100[rbp], 2
	jmp	.L3
.L8:
	movabs	rax, 9223372036854775807
	cmp	QWORD PTR -88[rbp], rax
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	je	.L10
.L9:
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, QWORD PTR -136[rbp]
	jle	.L3
.L10:
	mov	DWORD PTR -100[rbp], 3
.L3:
	cmp	QWORD PTR -144[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	sub	rax, 80
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR [rax], rdx
.L11:
	call	__errno_location@PLT
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rbp
	sub	rdx, 72
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -100[rbp], 0
	je	.L12
	mov	QWORD PTR -88[rbp], 0
.L12:
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strtonum, .-strtonum
	.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	"617233.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"invalid\000"
	.align	2
.LC1:
	.ascii	"too small\000"
	.align	2
.LC2:
	.ascii	"too large\000"
	.text
	.section	.rodata
	.align	2
.LC4:
	.word	0
	.word	0
	.word	.LC0
	.word	22
	.word	.LC1
	.word	34
	.word	.LC2
	.word	34
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	strtonum
	.syntax unified
	.arm
	.fpu softvfp
	.type	strtonum, %function
strtonum:
	@ args = 12, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-68]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, .L15+4
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L2
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L3
.L2:
	sub	r3, fp, #60
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	strtoll
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L4
	ldr	r3, [fp, #-60]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
.L4:
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L3
.L5:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r3, #-2147483648
	cmpeq	r2, #0
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	beq	.L7
.L6:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L8
.L7:
	mov	r3, #2
	str	r3, [fp, #-56]
	b	.L3
.L8:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #-2147483648
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	beq	.L10
.L9:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L3
.L10:
	mov	r3, #3
	str	r3, [fp, #-56]
.L3:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-36]
	ldr	r3, [fp, #-68]
	str	r2, [r3]
.L11:
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-32]
	str	r3, [r2]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L12
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
.L12:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r1, .L15
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC4
	.size	strtonum, .-strtonum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
