	.file	"287775.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
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L2
.L10:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L3
	cmp	DWORD PTR -24[rbp], 0
	je	.L28
.L3:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L5
	cmp	DWORD PTR -24[rbp], 0
	jne	.L5
	mov	DWORD PTR -24[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L6
	cmp	DWORD PTR -24[rbp], 0
	jne	.L6
	cmp	DWORD PTR -28[rbp], 0
	jne	.L6
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -28[rbp], 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L7
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L7
	mov	DWORD PTR -24[rbp], 1
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rcx
	sub	rax, 48
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	comisd	xmm0, QWORD PTR .LC0[rip]
	jbe	.L25
	mov	DWORD PTR -20[rbp], 1
	jmp	.L7
.L25:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rcx
	sub	rax, 48
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L28:
	nop
.L4:
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L10
.L7:
	cmp	DWORD PTR -20[rbp], 0
	je	.L11
	cmp	DWORD PTR -28[rbp], 0
	jne	.L12
	mov	eax, 2147483647
	jmp	.L13
.L12:
	mov	eax, -2147483648
	jmp	.L13
.L11:
	cmp	DWORD PTR -28[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	neg	rax
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -8[rbp]
.L15:
	mov	QWORD PTR -8[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR .LC1[rip]
	jbe	.L26
	mov	eax, 2147483647
	jmp	.L18
.L26:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	rax, xmm0
.L18:
	mov	QWORD PTR -8[rbp], rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	comisd	xmm0, xmm1
	jbe	.L27
	mov	rax, -2147483648
	jmp	.L21
.L27:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	rax, xmm0
.L21:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	myAtoi, .-myAtoi
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1105199104
	.align 8
.LC1:
	.long	-4194304
	.long	1105199103
	.align 8
.LC2:
	.long	0
	.long	-1042284544
	.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	"287775.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
	.global	myAtoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	myAtoi, %function
myAtoi:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L3
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L14
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L5
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L5
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L4
.L5:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L6
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L4
.L6:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L7
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L7
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r1, r3
	sub	r3, r3, #48
	str	r3, [fp, #-20]
	b	.L4
.L14:
	nop
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L8
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L10
	mvn	r3, #-2147483648
	b	.L11
.L10:
	mov	r3, #-2147483648
	b	.L11
.L9:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #0
	b	.L13
.L12:
	ldr	r3, [fp, #-20]
.L13:
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	myAtoi, .-myAtoi
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
