	.file	"611670.c"
	.intel_syntax noprefix
	.text
	.globl	c_atoi
	.type	c_atoi, @function
c_atoi:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	mov	QWORD PTR -16[rbp], 0
	jmp	.L2
.L6:
	add	DWORD PTR -24[rbp], 1
.L2:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jg	.L3
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 8
	jg	.L4
.L3:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L5
.L4:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
.L5:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L7
	mov	DWORD PTR -20[rbp], -1
	add	DWORD PTR -24[rbp], 1
	jmp	.L9
.L7:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L9
	mov	DWORD PTR -20[rbp], 1
	add	DWORD PTR -24[rbp], 1
	jmp	.L9
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	imul	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -20[rbp], 1
	jne	.L10
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jle	.L10
	mov	eax, -1
	jmp	.L11
.L10:
	cmp	DWORD PTR -20[rbp], -1
	jne	.L12
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jge	.L12
	mov	eax, 0
	jmp	.L11
.L12:
	add	DWORD PTR -24[rbp], 1
.L9:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L13
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L13
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L14
.L13:
	mov	rax, QWORD PTR -16[rbp]
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c_atoi, .-c_atoi
	.section	.rodata
.LC0:
	.string	"<<<< TEST FUNCTION >>>>"
.LC1:
	.string	"123"
.LC2:
	.string	"the_stack_data/611670.c"
.LC3:
	.string	"c_atoi(\"123\") == atoi(\"123\")"
.LC4:
	.string	"-123"
	.align 8
.LC5:
	.string	"c_atoi(\"-123\") == atoi(\"-123\")"
.LC6:
	.string	""
.LC7:
	.string	"c_atoi(\"\") == atoi(\"\")"
.LC8:
	.string	"-h23"
	.align 8
.LC9:
	.string	"c_atoi(\"-h23\") == atoi(\"-h23\")"
.LC10:
	.string	"         23"
	.align 8
.LC11:
	.string	"c_atoi(\"         23\") == atoi(\"         23\")"
.LC12:
	.string	"999999999"
	.align 8
.LC13:
	.string	"c_atoi(\"999999999\") == atoi(\"999999999\")"
.LC14:
	.string	"<<<< TEST DONE >>>>"
	.text
	.globl	test_c_atoi
	.type	test_c_atoi, @function
test_c_atoi:
.LFB7:
	.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, 8
	.cfi_offset 3, -24
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	c_atoi
	mov	ebx, eax
	lea	rdi, .LC1[rip]
	call	atoi@PLT
	cmp	ebx, eax
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 65
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L16:
	lea	rdi, .LC4[rip]
	call	c_atoi
	mov	ebx, eax
	lea	rdi, .LC4[rip]
	call	atoi@PLT
	cmp	ebx, eax
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 66
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L17:
	lea	rdi, .LC6[rip]
	call	c_atoi
	mov	ebx, eax
	lea	rdi, .LC6[rip]
	call	atoi@PLT
	cmp	ebx, eax
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 67
	lea	rsi, .LC2[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L18:
	lea	rdi, .LC8[rip]
	call	c_atoi
	mov	ebx, eax
	lea	rdi, .LC8[rip]
	call	atoi@PLT
	cmp	ebx, eax
	je	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 68
	lea	rsi, .LC2[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L19:
	lea	rdi, .LC10[rip]
	call	c_atoi
	mov	ebx, eax
	lea	rdi, .LC10[rip]
	call	atoi@PLT
	cmp	ebx, eax
	je	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 69
	lea	rsi, .LC2[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L20:
	lea	rdi, .LC12[rip]
	call	c_atoi
	mov	ebx, eax
	lea	rdi, .LC12[rip]
	call	atoi@PLT
	cmp	ebx, eax
	je	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 70
	lea	rsi, .LC2[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L21:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_c_atoi, .-test_c_atoi
	.section	.rodata
.LC15:
	.string	"Your number + 5 is %d\n"
.LC16:
	.string	"wrong number of parmeters"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	test_c_atoi
	cmp	DWORD PTR -4[rbp], 2
	jne	.L23
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	c_atoi
	add	eax, 5
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L24
.L23:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 1
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 12
__PRETTY_FUNCTION__.0:
	.string	"test_c_atoi"
	.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	"611670.c"
	.text
	.align	2
	.global	c_atoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	c_atoi, %function
c_atoi:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L6:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bhi	.L3
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #8
	bhi	.L4
.L3:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L5
.L4:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
.L5:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L7
	mvn	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L9
.L7:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L9
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L9
.L14:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L10
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L10
	mvn	r3, #0
	b	.L11
.L10:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L12
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L12
	mov	r3, #0
	b	.L11
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L13
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L13
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r3, [fp, #-12]
.L11:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	c_atoi, .-c_atoi
	.section	.rodata
	.align	2
.LC0:
	.ascii	"<<<< TEST FUNCTION >>>>\000"
	.align	2
.LC1:
	.ascii	"123\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/611670.c\000"
	.align	2
.LC3:
	.ascii	"c_atoi(\"123\") == atoi(\"123\")\000"
	.align	2
.LC4:
	.ascii	"-123\000"
	.align	2
.LC5:
	.ascii	"c_atoi(\"-123\") == atoi(\"-123\")\000"
	.align	2
.LC6:
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"c_atoi(\"\") == atoi(\"\")\000"
	.align	2
.LC8:
	.ascii	"-h23\000"
	.align	2
.LC9:
	.ascii	"c_atoi(\"-h23\") == atoi(\"-h23\")\000"
	.align	2
.LC10:
	.ascii	"         23\000"
	.align	2
.LC11:
	.ascii	"c_atoi(\"         23\") == atoi(\"         23\")\000"
	.align	2
.LC12:
	.ascii	"999999999\000"
	.align	2
.LC13:
	.ascii	"c_atoi(\"999999999\") == atoi(\"999999999\")\000"
	.align	2
.LC14:
	.ascii	"<<<< TEST DONE >>>>\000"
	.text
	.align	2
	.global	test_c_atoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_c_atoi, %function
test_c_atoi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r0, .L22
	bl	puts
	ldr	r0, .L22+4
	bl	c_atoi
	mov	r4, r0
	ldr	r0, .L22+4
	bl	atoi
	mov	r3, r0
	cmp	r4, r3
	beq	.L16
	ldr	r3, .L22+8
	mov	r2, #65
	ldr	r1, .L22+12
	ldr	r0, .L22+16
	bl	__assert_fail
.L16:
	ldr	r0, .L22+20
	bl	c_atoi
	mov	r4, r0
	ldr	r0, .L22+20
	bl	atoi
	mov	r3, r0
	cmp	r4, r3
	beq	.L17
	ldr	r3, .L22+8
	mov	r2, #66
	ldr	r1, .L22+12
	ldr	r0, .L22+24
	bl	__assert_fail
.L17:
	ldr	r0, .L22+28
	bl	c_atoi
	mov	r4, r0
	ldr	r0, .L22+28
	bl	atoi
	mov	r3, r0
	cmp	r4, r3
	beq	.L18
	ldr	r3, .L22+8
	mov	r2, #67
	ldr	r1, .L22+12
	ldr	r0, .L22+32
	bl	__assert_fail
.L18:
	ldr	r0, .L22+36
	bl	c_atoi
	mov	r4, r0
	ldr	r0, .L22+36
	bl	atoi
	mov	r3, r0
	cmp	r4, r3
	beq	.L19
	ldr	r3, .L22+8
	mov	r2, #68
	ldr	r1, .L22+12
	ldr	r0, .L22+40
	bl	__assert_fail
.L19:
	ldr	r0, .L22+44
	bl	c_atoi
	mov	r4, r0
	ldr	r0, .L22+44
	bl	atoi
	mov	r3, r0
	cmp	r4, r3
	beq	.L20
	ldr	r3, .L22+8
	mov	r2, #69
	ldr	r1, .L22+12
	ldr	r0, .L22+48
	bl	__assert_fail
.L20:
	ldr	r0, .L22+52
	bl	c_atoi
	mov	r4, r0
	ldr	r0, .L22+52
	bl	atoi
	mov	r3, r0
	cmp	r4, r3
	beq	.L21
	ldr	r3, .L22+8
	mov	r2, #70
	ldr	r1, .L22+12
	ldr	r0, .L22+56
	bl	__assert_fail
.L21:
	ldr	r0, .L22+60
	bl	puts
	nop
	pop	{r4, r5, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	.LC1
	.word	__PRETTY_FUNCTION__.5324
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	test_c_atoi, .-test_c_atoi
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Your number + 5 is %d\012\000"
	.align	2
.LC16:
	.ascii	"wrong number of parmeters\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	test_c_atoi
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L25
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	c_atoi
	mov	r3, r0
	add	r3, r3, #5
	mov	r1, r3
	ldr	r0, .L27
	bl	printf
	mov	r3, #0
	b	.L26
.L25:
	ldr	r0, .L27+4
	bl	puts
	mov	r3, #1
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5324, %object
	.size	__PRETTY_FUNCTION__.5324, 12
__PRETTY_FUNCTION__.5324:
	.ascii	"test_c_atoi\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
