	.file	"965292.c"
	.intel_syntax noprefix
	.text
	.globl	myAtoi
	.type	myAtoi, @function
myAtoi:
.LFB0:
	.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	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L3:
	add	QWORD PTR -8[rbp], 1
.L2:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L4
	mov	DWORD PTR -20[rbp], -1
	add	QWORD PTR -8[rbp], 1
	jmp	.L6
.L4:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L6
	mov	DWORD PTR -20[rbp], 1
	add	QWORD PTR -8[rbp], 1
	jmp	.L6
.L9:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, 2147483648
	cmp	QWORD PTR -16[rbp], rax
	jle	.L7
	mov	eax, 2147483648
	mov	QWORD PTR -16[rbp], rax
.L7:
	add	QWORD PTR -8[rbp], 1
.L6:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L8
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L9
.L8:
	cmp	DWORD PTR -20[rbp], -1
	jne	.L10
	neg	QWORD PTR -16[rbp]
.L10:
	mov	eax, 2147483648
	cmp	QWORD PTR -16[rbp], rax
	jl	.L11
	mov	QWORD PTR -16[rbp], 2147483647
.L11:
	movabs	rax, -2147483649
	cmp	QWORD PTR -16[rbp], rax
	jg	.L12
	mov	QWORD PTR -16[rbp], -2147483648
.L12:
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	myAtoi, .-myAtoi
	.section	.rodata
.LC0:
	.string	"  123 "
.LC1:
	.string	"123.4"
.LC2:
	.string	"-1234"
.LC3:
	.string	"2147483646"
.LC4:
	.string	"2147483647"
.LC5:
	.string	"2147483648"
.LC6:
	.string	"-2147483647"
.LC7:
	.string	"-2147483648"
.LC8:
	.string	"-2147483649"
.LC9:
	.string	"-1"
.LC10:
	.string	"+-2"
.LC11:
	.string	"9223372036854775809"
.LC12:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -112[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC11[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -116[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	rax, QWORD PTR -112[rbp+rax*8]
	mov	rdi, rax
	call	myAtoi
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -116[rbp], 1
.L15:
	cmp	DWORD PTR -116[rbp], 11
	jle	.L16
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"965292.c"
	.text
	.align	2
	.global	myAtoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	myAtoi, %function
myAtoi:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #28
	str	r0, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L3
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L4
	mvn	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L6
.L4:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L6
.L9:
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	adds	r8, r2, r2
	adc	r9, r3, r3
	mov	r2, r8
	mov	r3, r9
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	mov	r2, r3
	asr	r3, r2, #31
	adds	r6, r0, r2
	adc	r7, r1, r3
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r2, #-2147483647
	sbcs	r3, r3, #0
	blt	.L7
	mov	r2, #-2147483648
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L7:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L6:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L8
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L9
.L8:
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L10
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	rsbs	r2, r2, #0
	rsc	r3, r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L10:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mvn	r0, #-2147483648
	mov	r1, #0
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L11
	mvn	r2, #-2147483648
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L11:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, #-2147483648
	mvn	r1, #0
	cmp	r2, r0
	sbcs	r3, r3, r1
	bge	.L12
	mov	r2, #-2147483648
	mvn	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L12:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	myAtoi, .-myAtoi
	.section	.rodata
	.align	2
.LC0:
	.ascii	"  123 \000"
	.align	2
.LC1:
	.ascii	"123.4\000"
	.align	2
.LC2:
	.ascii	"-1234\000"
	.align	2
.LC3:
	.ascii	"2147483646\000"
	.align	2
.LC4:
	.ascii	"2147483647\000"
	.align	2
.LC5:
	.ascii	"2147483648\000"
	.align	2
.LC6:
	.ascii	"-2147483647\000"
	.align	2
.LC7:
	.ascii	"-2147483648\000"
	.align	2
.LC8:
	.ascii	"-2147483649\000"
	.align	2
.LC9:
	.ascii	"-1\000"
	.align	2
.LC10:
	.ascii	"+-2\000"
	.align	2
.LC11:
	.ascii	"9223372036854775809\000"
	.align	2
.LC12:
	.ascii	"%d\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L19+4
	str	r3, [fp, #-56]
	ldr	r3, .L19+8
	str	r3, [fp, #-52]
	ldr	r3, .L19+12
	str	r3, [fp, #-48]
	ldr	r3, .L19+16
	str	r3, [fp, #-44]
	ldr	r3, .L19+20
	str	r3, [fp, #-40]
	ldr	r3, .L19+24
	str	r3, [fp, #-36]
	ldr	r3, .L19+28
	str	r3, [fp, #-32]
	ldr	r3, .L19+32
	str	r3, [fp, #-28]
	ldr	r3, .L19+36
	str	r3, [fp, #-24]
	ldr	r3, .L19+40
	str	r3, [fp, #-20]
	ldr	r3, .L19+44
	str	r3, [fp, #-16]
	ldr	r3, .L19+48
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L15
.L16:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	mov	r0, r3
	bl	myAtoi
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L19+52
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L15:
	ldr	r3, [fp, #-60]
	cmp	r3, #11
	ble	.L16
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
