	.file	"920530.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"OOD"
.LC1:
	.string	"EOF"
.LC2:
	.string	"ERR"
.LC3:
	.string	"+"
.LC4:
	.string	"Num"
.LC5:
	.string	"Oct"
	.text
	.globl	scan
	.type	scan, @function
scan:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
.L26:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	sub	rax, QWORD PTR -16[rbp]
	cmp	rax, 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 2
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	movsx	eax, BYTE PTR -17[rbp]
	cmp	eax, 57
	jg	.L27
	cmp	eax, 49
	jge	.L14
	cmp	eax, 48
	je	.L28
	cmp	eax, 48
	jg	.L27
	cmp	eax, 45
	je	.L29
	cmp	eax, 45
	jg	.L27
	test	eax, eax
	je	.L30
	cmp	eax, 43
	je	.L31
	jmp	.L27
.L30:
	nop
.L10:
	add	QWORD PTR -16[rbp], 1
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L27:
	nop
.L15:
	add	QWORD PTR -16[rbp], 1
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L31:
	nop
.L11:
	add	QWORD PTR -16[rbp], 1
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L16
.L29:
	nop
.L12:
	add	QWORD PTR -16[rbp], 1
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L16
.L28:
	nop
.L13:
	add	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	movsx	eax, BYTE PTR -17[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L32
	jmp	.L18
.L32:
	nop
.L19:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L16
.L14:
	add	QWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	cmp	QWORD PTR -16[rbp], rax
	jb	.L20
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 2
	jmp	.L3
.L20:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	movsx	eax, BYTE PTR -17[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L33
	jmp	.L14
.L33:
	nop
.L22:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L16
.L18:
	add	QWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	cmp	QWORD PTR -16[rbp], rax
	jb	.L23
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 2
	jmp	.L3
.L23:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	movsx	eax, BYTE PTR -17[rbp]
	sub	eax, 48
	cmp	eax, 9
	ja	.L34
	jmp	.L18
.L34:
	nop
.L25:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
.L16:
	jmp	.L26
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	scan, .-scan
	.section	.rodata
.LC6:
	.string	"%s <expr>\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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L36
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	scan
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
.L37:
	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	"920530.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"OOD\000"
	.align	2
.LC1:
	.ascii	"EOF\000"
	.align	2
.LC2:
	.ascii	"ERR\000"
	.align	2
.LC3:
	.ascii	"+\000"
	.align	2
.LC4:
	.ascii	"Num\000"
	.align	2
.LC5:
	.ascii	"Oct\000"
	.text
	.align	2
	.global	scan
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan, %function
scan:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
.L27:
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L36
	bl	puts
	mov	r3, #2
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	cmp	r3, #0
	blt	.L29
	cmp	r3, #57
	bgt	.L29
	cmp	r3, #43
	blt	.L29
	sub	r3, r3, #43
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L29
.L7:
	.word	.L30
	.word	.L29
	.word	.L31
	.word	.L29
	.word	.L29
	.word	.L32
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
.L28:
	nop
.L11:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, .L36+4
	bl	puts
	mov	r3, #0
	b	.L3
.L29:
	nop
.L16:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, .L36+8
	bl	puts
	mov	r3, #1
	b	.L3
.L30:
	nop
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, .L36+12
	bl	puts
	b	.L17
.L31:
	nop
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, .L36+12
	bl	puts
	b	.L17
.L32:
	nop
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L33
	b	.L19
.L33:
	nop
.L20:
	ldr	r0, .L36+16
	bl	puts
	b	.L17
.L15:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L21
	ldr	r0, .L36
	bl	puts
	mov	r3, #2
	b	.L3
.L21:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L34
	b	.L15
.L34:
	nop
.L23:
	ldr	r0, .L36+16
	bl	puts
	b	.L17
.L19:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L24
	ldr	r0, .L36
	bl	puts
	mov	r3, #2
	b	.L3
.L24:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bhi	.L35
	b	.L19
.L35:
	nop
.L26:
	ldr	r0, .L36+20
	bl	puts
	nop
.L17:
	b	.L27
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	scan, .-scan
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s <expr>\012\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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L39
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	scan
	mov	r3, r0
	b	.L40
.L39:
	ldr	r3, .L41
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L41+4
	bl	fprintf
	mov	r3, #0
.L40:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	stderr
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
