	.file	"54665.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L2
.L5:
	cmp	BYTE PTR -1[rbp], 96
	jne	.L3
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	mov	eax, 0
	call	processParam
	jmp	.L2
.L3:
	cmp	BYTE PTR -1[rbp], 92
	jne	.L4
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 96
	je	.L4
	mov	edi, 92
	call	putchar@PLT
.L4:
	movsx	eax, BYTE PTR -1[rbp]
	mov	edi, eax
	call	putchar@PLT
.L2:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], -1
	jne	.L5
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"param: offset %d out of range\n"
.LC1:
	.string	"%s"
	.text
	.globl	processParam
	.type	processParam, @function
processParam:
.LFB1:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, 0
	call	scanNumber
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jg	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L9
.L8:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L10
	mov	edi, 96
	call	putchar@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	processParam, .-processParam
	.globl	scanNumber
	.type	scanNumber, @function
scanNumber:
.LFB2:
	.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
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], 119
	je	.L12
	cmp	BYTE PTR -5[rbp], 87
	jne	.L13
.L12:
	mov	eax, 1
	jmp	.L14
.L13:
	cmp	BYTE PTR -5[rbp], 110
	je	.L15
	cmp	BYTE PTR -5[rbp], 78
	jne	.L16
.L15:
	mov	eax, 2
	jmp	.L14
.L16:
	cmp	BYTE PTR -5[rbp], 101
	je	.L17
	cmp	BYTE PTR -5[rbp], 69
	jne	.L18
.L17:
	mov	eax, 3
	jmp	.L14
.L18:
	cmp	BYTE PTR -5[rbp], 115
	je	.L19
	cmp	BYTE PTR -5[rbp], 83
	jne	.L20
.L19:
	mov	eax, 4
	jmp	.L14
.L20:
	cmp	BYTE PTR -5[rbp], 114
	je	.L21
	cmp	BYTE PTR -5[rbp], 82
	jne	.L22
.L21:
	mov	eax, 5
	jmp	.L14
.L22:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L25:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	movsx	eax, BYTE PTR -5[rbp]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -4[rbp], eax
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
.L23:
	cmp	BYTE PTR -5[rbp], 47
	jle	.L24
	cmp	BYTE PTR -5[rbp], 57
	jle	.L25
.L24:
	mov	rdx, QWORD PTR stdin[rip]
	movsx	eax, BYTE PTR -5[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	cmp	DWORD PTR -4[rbp], 0
	jne	.L26
	mov	eax, 0
	jmp	.L14
.L26:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 5
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	scanNumber, .-scanNumber
	.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	"54665.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L2
.L6:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	processParam
	b	.L2
.L3:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L4
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	beq	.L4
	mov	r0, #92
	bl	putchar
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L2:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bne	.L3
	b	.L6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"param: offset %d out of range\012\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.text
	.align	2
	.global	processParam
	.syntax unified
	.arm
	.fpu softvfp
	.type	processParam, %function
processParam:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	bl	scanNumber
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bgt	.L8
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L11+4
	mov	r0, r3
	bl	fprintf
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	mov	r0, #96
	bl	putchar
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
.L9:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	processParam, .-processParam
	.align	2
	.global	scanNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	scanNumber, %function
scanNumber:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #119
	beq	.L14
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #87
	bne	.L15
.L14:
	mov	r3, #1
	b	.L16
.L15:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L17
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L18
.L17:
	mov	r3, #2
	b	.L16
.L18:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L19
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #69
	bne	.L20
.L19:
	mov	r3, #3
	b	.L16
.L20:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L21
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L22
.L21:
	mov	r3, #4
	b	.L16
.L22:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #114
	beq	.L23
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L24
.L23:
	mov	r3, #5
	b	.L16
.L24:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L27:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
.L25:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L26
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L27
.L26:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, .L29
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	ungetc
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L28
	mov	r3, #0
	b	.L16
.L28:
	ldr	r3, [fp, #-8]
	add	r3, r3, #5
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	stdin
	.size	scanNumber, .-scanNumber
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
