	.file	"718366.c"
	.intel_syntax noprefix
	.text
	.globl	getint
	.type	getint, @function
getint:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -13[rbp], al
	cmp	BYTE PTR -13[rbp], 48
	jne	.L3
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L3:
	cmp	BYTE PTR -13[rbp], 49
	jne	.L5
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L5:
	cmp	BYTE PTR -13[rbp], 50
	jne	.L6
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 2
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L6:
	cmp	BYTE PTR -13[rbp], 51
	jne	.L7
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 3
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L7:
	cmp	BYTE PTR -13[rbp], 52
	jne	.L8
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 4
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L8:
	cmp	BYTE PTR -13[rbp], 53
	jne	.L9
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 5
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L9:
	cmp	BYTE PTR -13[rbp], 54
	jne	.L10
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 6
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L10:
	cmp	BYTE PTR -13[rbp], 55
	jne	.L11
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 7
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L11:
	cmp	BYTE PTR -13[rbp], 56
	jne	.L12
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 8
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L12:
	cmp	BYTE PTR -13[rbp], 57
	jne	.L4
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, 9
	mov	DWORD PTR -8[rbp], eax
.L4:
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L13
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getint, .-getint
	.section	.rodata
.LC0:
	.string	"Enter an integer: "
.LC1:
	.string	"%s"
.LC2:
	.string	"\nYou entered: %d.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	getint
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"718366.c"
	.text
	.align	2
	.global	getint
	.syntax unified
	.arm
	.fpu softvfp
	.type	getint, %function
getint:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L13:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L3
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L4
.L3:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L5
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L6
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L4
.L6:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #51
	bne	.L7
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #3
	str	r3, [fp, #-12]
	b	.L4
.L7:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #52
	bne	.L8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #4
	str	r3, [fp, #-12]
	b	.L4
.L8:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #53
	bne	.L9
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #5
	str	r3, [fp, #-12]
	b	.L4
.L9:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #54
	bne	.L10
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #6
	str	r3, [fp, #-12]
	b	.L4
.L10:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #55
	bne	.L11
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #7
	str	r3, [fp, #-12]
	b	.L4
.L11:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #56
	bne	.L12
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #8
	str	r3, [fp, #-12]
	b	.L4
.L12:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #57
	bne	.L4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #9
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getint, .-getint
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter an integer: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"\012You entered: %d.\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L18+4
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	sub	r3, fp, #36
	mov	r0, r3
	bl	getint
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
