	.file	"336909.c"
	.intel_syntax noprefix
	.text
	.globl	memory
	.bss
	.align 32
	.type	memory, @object
	.size	memory, 200
memory:
	.zero	200
	.globl	ir
	.align 2
	.type	ir, @object
	.size	ir, 2
ir:
	.zero	2
	.globl	pc
	.align 2
	.type	pc, @object
	.size	pc, 2
pc:
	.zero	2
	.globl	acc
	.align 2
	.type	acc, @object
	.size	acc, 2
acc:
	.zero	2
	.section	.rodata
.LC0:
	.string	"the_stack_data/336909.c"
.LC1:
	.string	"loc >= 0 && loc <= 99"
	.text
	.globl	get_mem
	.type	get_mem, @function
get_mem:
.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, 16
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	cmp	WORD PTR -4[rbp], 0
	js	.L2
	cmp	WORD PTR -4[rbp], 99
	jle	.L7
.L2:
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 12
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L7:
	cmp	WORD PTR -4[rbp], 0
	je	.L4
	movsx	eax, WORD PTR -4[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, memory[rip]
	movzx	eax, WORD PTR [rdx+rax]
	jmp	.L6
.L4:
	mov	eax, 1
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_mem, .-get_mem
	.section	.rodata
.LC2:
	.string	"loc >= 1 && loc <= 99"
.LC3:
	.string	"val >= 0"
	.text
	.globl	set_mem
	.type	set_mem, @function
set_mem:
.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, 16
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -4[rbp], dx
	mov	WORD PTR -8[rbp], ax
	cmp	WORD PTR -4[rbp], 0
	jle	.L9
	cmp	WORD PTR -4[rbp], 99
	jle	.L13
.L9:
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 17
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L13:
	cmp	WORD PTR -4[rbp], 99
	jne	.L11
	cmp	WORD PTR -8[rbp], 0
	jns	.L12
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 19
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L12:
	movzx	ecx, WORD PTR -8[rbp]
	movsx	eax, cx
	imul	eax, eax, 5243
	shr	eax, 16
	sar	ax, 3
	mov	esi, ecx
	sar	si, 15
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	lea	edx, 0[0+rax*4]
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, edx
	add	ax, 800
	mov	WORD PTR -8[rbp], ax
.L11:
	movsx	eax, WORD PTR -4[rbp]
	cdqe
	lea	rcx, [rax+rax]
	lea	rdx, memory[rip]
	movzx	eax, WORD PTR -8[rbp]
	mov	WORD PTR [rcx+rdx], ax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	set_mem, .-set_mem
	.section	.rodata
.LC4:
	.string	"%hd"
.LC5:
	.string	"val > -1000 && val < 1000"
	.text
	.globl	input
	.type	input, @function
input:
.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -10[rbp], 0
	lea	rax, -10[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, WORD PTR -10[rbp]
	cmp	ax, -999
	jl	.L15
	movzx	eax, WORD PTR -10[rbp]
	cmp	ax, 999
	jle	.L19
.L15:
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 28
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L19:
	movzx	eax, WORD PTR -10[rbp]
	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
.LFE2:
	.size	input, .-input
	.section	.rodata
.LC6:
	.string	"ir >= 0"
.LC7:
	.string	"%03hd\n"
.LC8:
	.string	"%04hd\n"
.LC9:
	.string	"FAIL decode, ir=%03hd\n"
	.text
	.globl	step
	.type	step, @function
step:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	movzx	eax, WORD PTR pc[rip]
	cwde
	mov	edi, eax
	call	get_mem
	mov	WORD PTR ir[rip], ax
	movzx	eax, WORD PTR pc[rip]
	add	eax, 1
	mov	WORD PTR pc[rip], ax
	movzx	eax, WORD PTR ir[rip]
	test	ax, ax
	jns	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 38
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L21:
	movzx	edx, WORD PTR ir[rip]
	movsx	eax, dx
	imul	eax, eax, 5243
	shr	eax, 16
	sar	ax, 3
	mov	ecx, edx
	sar	cx, 15
	sub	eax, ecx
	mov	WORD PTR -18[rbp], ax
	movzx	ecx, WORD PTR -18[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	lea	ecx, 0[0+rax*4]
	add	eax, ecx
	sal	eax, 2
	sub	edx, eax
	mov	WORD PTR -18[rbp], dx
	movzx	eax, WORD PTR ir[rip]
	movsx	edx, ax
	imul	edx, edx, 5243
	shr	edx, 16
	sar	dx, 3
	sar	ax, 15
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cwde
	cmp	eax, 9
	ja	.L22
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L24[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L24[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L24:
	.long	.L33-.L24
	.long	.L32-.L24
	.long	.L31-.L24
	.long	.L30-.L24
	.long	.L36-.L24
	.long	.L28-.L24
	.long	.L27-.L24
	.long	.L26-.L24
	.long	.L25-.L24
	.long	.L23-.L24
	.text
.L33:
	mov	eax, 0
	call	input
	movsx	edx, ax
	movsx	eax, WORD PTR -18[rbp]
	mov	esi, edx
	mov	edi, eax
	call	set_mem
	mov	eax, 1
	jmp	.L34
.L32:
	movsx	eax, WORD PTR -18[rbp]
	mov	edi, eax
	call	get_mem
	mov	WORD PTR acc[rip], ax
	mov	eax, 1
	jmp	.L34
.L31:
	movzx	eax, WORD PTR acc[rip]
	movsx	edx, ax
	imul	edx, edx, -31981
	shr	edx, 16
	add	edx, eax
	sar	dx, 9
	mov	ecx, eax
	sar	cx, 15
	sub	edx, ecx
	imul	cx, dx, 1000
	sub	eax, ecx
	mov	edx, eax
	mov	ebx, edx
	movsx	eax, WORD PTR -18[rbp]
	mov	edi, eax
	call	get_mem
	add	eax, ebx
	mov	WORD PTR acc[rip], ax
	mov	eax, 1
	jmp	.L34
.L30:
	movzx	eax, WORD PTR acc[rip]
	movsx	edx, ax
	imul	edx, edx, -31981
	shr	edx, 16
	add	edx, eax
	sar	dx, 9
	mov	ecx, eax
	sar	cx, 15
	sub	edx, ecx
	imul	cx, dx, 1000
	sub	eax, ecx
	mov	edx, eax
	test	dx, dx
	jns	.L35
	movzx	eax, WORD PTR -18[rbp]
	mov	WORD PTR pc[rip], ax
.L35:
	mov	eax, 1
	jmp	.L34
.L37:
	movzx	eax, WORD PTR acc[rip]
	movsx	edx, ax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1759218605
	shr	rax, 32
	sar	eax, 12
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 10000
	mov	eax, edx
	sub	eax, ecx
	mov	WORD PTR acc[rip], ax
	movzx	eax, WORD PTR -18[rbp]
	sub	eax, 10
	mov	WORD PTR -18[rbp], ax
.L36:
	cmp	WORD PTR -18[rbp], 10
	jg	.L37
	jmp	.L38
.L39:
	movzx	eax, WORD PTR acc[rip]
	movsx	edx, ax
	imul	edx, edx, 26215
	shr	edx, 16
	sar	dx, 2
	sar	ax, 15
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	WORD PTR acc[rip], ax
	movzx	eax, WORD PTR -18[rbp]
	sub	eax, 1
	mov	WORD PTR -18[rbp], ax
.L38:
	cmp	WORD PTR -18[rbp], 0
	jg	.L39
	mov	eax, 1
	jmp	.L34
.L28:
	movsx	eax, WORD PTR -18[rbp]
	mov	edi, eax
	call	get_mem
	mov	WORD PTR -18[rbp], ax
	movsx	edx, WORD PTR -18[rbp]
	cmp	WORD PTR -18[rbp], 0
	js	.L40
	lea	rax, .LC7[rip]
	jmp	.L41
.L40:
	lea	rax, .LC8[rip]
.L41:
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L34
.L27:
	movzx	eax, WORD PTR acc[rip]
	movsx	edx, ax
	imul	edx, edx, -31981
	shr	edx, 16
	add	edx, eax
	sar	dx, 9
	mov	ecx, eax
	sar	cx, 15
	sub	edx, ecx
	imul	cx, dx, 1000
	sub	eax, ecx
	mov	edx, eax
	movsx	edx, dx
	movsx	eax, WORD PTR -18[rbp]
	mov	esi, edx
	mov	edi, eax
	call	set_mem
	mov	eax, 1
	jmp	.L34
.L26:
	movzx	eax, WORD PTR acc[rip]
	movsx	edx, ax
	imul	edx, edx, -31981
	shr	edx, 16
	add	edx, eax
	sar	dx, 9
	mov	ecx, eax
	sar	cx, 15
	sub	edx, ecx
	imul	cx, dx, 1000
	sub	eax, ecx
	mov	edx, eax
	mov	ebx, edx
	movsx	eax, WORD PTR -18[rbp]
	mov	edi, eax
	call	get_mem
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	WORD PTR acc[rip], ax
	mov	eax, 1
	jmp	.L34
.L25:
	movzx	eax, WORD PTR pc[rip]
	cwde
	mov	esi, eax
	mov	edi, 99
	call	set_mem
	movzx	eax, WORD PTR -18[rbp]
	mov	WORD PTR pc[rip], ax
	mov	eax, 1
	jmp	.L34
.L23:
	movzx	eax, WORD PTR -18[rbp]
	mov	WORD PTR pc[rip], ax
	mov	eax, 0
	jmp	.L34
.L22:
	movzx	eax, WORD PTR ir[rip]
	movsx	edx, ax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
.L34:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	step, .-step
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L43:
	mov	eax, 0
	call	step
	test	eax, eax
	jg	.L43
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 8
__PRETTY_FUNCTION__.3:
	.string	"get_mem"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 8
__PRETTY_FUNCTION__.2:
	.string	"set_mem"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 6
__PRETTY_FUNCTION__.1:
	.string	"input"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"step"
	.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	"336909.c"
	.text
	.comm	memory,200,4
	.comm	ir,2,2
	.comm	pc,2,2
	.comm	acc,2,2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/336909.c\000"
	.align	2
.LC1:
	.ascii	"loc >= 0 && loc <= 99\000"
	.text
	.align	2
	.global	get_mem
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_mem, %function
get_mem:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrsh	r3, [fp, #-6]
	cmp	r3, #0
	blt	.L2
	ldrsh	r3, [fp, #-6]
	cmp	r3, #99
	ble	.L7
.L2:
	ldr	r3, .L8
	mov	r2, #12
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	__assert_fail
.L7:
	ldrsh	r3, [fp, #-6]
	cmp	r3, #0
	beq	.L4
	ldrsh	r3, [fp, #-6]
	ldr	r2, .L8+12
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	b	.L5
.L4:
	mov	r3, #1
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	__PRETTY_FUNCTION__.4619
	.word	.LC0
	.word	.LC1
	.word	memory
	.size	get_mem, .-get_mem
	.section	.rodata
	.align	2
.LC2:
	.ascii	"loc >= 1 && loc <= 99\000"
	.align	2
.LC3:
	.ascii	"val >= 0\000"
	.text
	.align	2
	.global	set_mem
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_mem, %function
set_mem:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-6]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-8]	@ movhi
	ldrsh	r3, [fp, #-6]
	cmp	r3, #0
	ble	.L11
	ldrsh	r3, [fp, #-6]
	cmp	r3, #99
	ble	.L15
.L11:
	ldr	r3, .L16
	mov	r2, #17
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L15:
	ldrsh	r3, [fp, #-6]
	cmp	r3, #99
	bne	.L13
	ldrsh	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L14
	ldr	r3, .L16
	mov	r2, #19
	ldr	r1, .L16+4
	ldr	r0, .L16+12
	bl	__assert_fail
.L14:
	ldrsh	r2, [fp, #-8]
	ldr	r3, .L16+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #800
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-8]	@ movhi
.L13:
	ldrsh	r3, [fp, #-6]
	ldr	r2, .L16+20
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r2, [fp, #-8]	@ movhi
	strh	r2, [r3]	@ movhi
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	__PRETTY_FUNCTION__.4624
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	1374389535
	.word	memory
	.size	set_mem, .-set_mem
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%hd\000"
	.align	2
.LC5:
	.ascii	"val > -1000 && val < 1000\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	input
	.syntax unified
	.arm
	.fpu softvfp
	.type	input, %function
input:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	sub	r3, fp, #10
	mov	r1, r3
	ldr	r0, .L24+4
	bl	__isoc99_scanf
	ldrsh	r3, [fp, #-10]
	cmn	r3, #1000
	ble	.L19
	ldrsh	r3, [fp, #-10]
	cmp	r3, #1000
	blt	.L23
.L19:
	ldr	r3, .L24+8
	mov	r2, #28
	ldr	r1, .L24+12
	ldr	r0, .L24+16
	bl	__assert_fail
.L23:
	ldrsh	r3, [fp, #-10]
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC6
	.word	.LC4
	.word	__PRETTY_FUNCTION__.4628
	.word	.LC0
	.word	.LC5
	.size	input, .-input
	.section	.rodata
	.align	2
.LC7:
	.ascii	"ir >= 0\000"
	.align	2
.LC8:
	.ascii	"%03hd\012\000"
	.align	2
.LC9:
	.ascii	"%04hd\012\000"
	.align	2
.LC10:
	.ascii	"FAIL decode, ir=%03hd\012\000"
	.text
	.align	2
	.global	step
	.syntax unified
	.arm
	.fpu softvfp
	.type	step, %function
step:
	@ 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
	ldr	r3, .L48
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	get_mem
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L48+4
	strh	r2, [r3]	@ movhi
	ldr	r3, .L48
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L48
	strh	r3, [r2]	@ movhi
	ldr	r3, .L48+4
	ldrsh	r3, [r3]
	cmp	r3, #0
	bge	.L27
	ldr	r3, .L48+8
	mov	r2, #38
	ldr	r1, .L48+12
	ldr	r0, .L48+16
	bl	__assert_fail
.L27:
	ldr	r3, .L48+4
	ldrsh	r2, [r3]
	ldr	r3, .L48+20
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, .L48+4
	ldrsh	r3, [r3]
	ldr	r2, .L48+20
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L28
.L30:
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L42
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L29
.L39:
	bl	input
	mov	r3, r0
	mov	r2, r3
	ldrsh	r3, [fp, #-14]
	mov	r1, r2
	mov	r0, r3
	bl	set_mem
	mov	r3, #1
	b	.L40
.L38:
	ldrsh	r3, [fp, #-14]
	mov	r0, r3
	bl	get_mem
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L48+24
	strh	r2, [r3]	@ movhi
	mov	r3, #1
	b	.L40
.L37:
	ldr	r3, .L48+24
	ldrsh	r2, [r3]
	ldr	r3, .L48+28
	smull	r1, r3, r2, r3
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	ldrsh	r3, [fp, #-14]
	mov	r0, r3
	bl	get_mem
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L48+24
	strh	r3, [r2]	@ movhi
	mov	r3, #1
	b	.L40
.L36:
	ldr	r3, .L48+24
	ldrsh	r2, [r3]
	ldr	r3, .L48+28
	smull	r1, r3, r2, r3
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	cmp	r3, #0
	bge	.L41
	ldr	r2, .L48
	ldrh	r3, [fp, #-14]	@ movhi
	strh	r3, [r2]	@ movhi
.L41:
	mov	r3, #1
	b	.L40
.L43:
	ldr	r3, .L48+24
	ldrsh	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L48+32
	smull	r2, r3, r1, r3
	asr	r2, r3, #12
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	lsl	r3, r2, #16
	asr	r3, r3, #16
	ldr	r2, .L48+24
	strh	r3, [r2]	@ movhi
	ldrh	r3, [fp, #-14]
	sub	r3, r3, #10
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
.L42:
	ldrsh	r3, [fp, #-14]
	cmp	r3, #10
	bgt	.L43
	b	.L44
.L45:
	ldr	r3, .L48+24
	ldrsh	r3, [r3]
	ldr	r2, .L48+36
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L48+24
	strh	r3, [r2]	@ movhi
	ldrsh	r3, [fp, #-14]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
.L44:
	ldrsh	r3, [fp, #-14]
	cmp	r3, #0
	bgt	.L45
	mov	r3, #1
	b	.L40
.L34:
	ldrsh	r3, [fp, #-14]
	mov	r0, r3
	bl	get_mem
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldrsh	r3, [fp, #-14]
	cmp	r3, #0
	blt	.L46
	ldr	r3, .L48+40
	b	.L47
.L46:
	ldr	r3, .L48+44
.L47:
	ldrsh	r2, [fp, #-14]
	mov	r1, r2
	mov	r0, r3
	bl	printf
	mov	r3, #1
	b	.L40
.L33:
	ldr	r3, .L48+24
	ldrsh	r2, [r3]
	ldr	r3, .L48+28
	smull	r1, r3, r2, r3
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrsh	r3, [fp, #-14]
	mov	r1, r2
	mov	r0, r3
	bl	set_mem
	mov	r3, #1
	b	.L40
.L32:
	ldr	r3, .L48+24
	ldrsh	r2, [r3]
	ldr	r3, .L48+28
	smull	r1, r3, r2, r3
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	ldrsh	r3, [fp, #-14]
	mov	r0, r3
	bl	get_mem
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	ldr	r2, .L48+24
	strh	r3, [r2]	@ movhi
	mov	r3, #1
	b	.L40
.L31:
	ldr	r3, .L48
	ldrsh	r3, [r3]
	mov	r1, r3
	mov	r0, #99
	bl	set_mem
	ldr	r2, .L48
	ldrh	r3, [fp, #-14]	@ movhi
	strh	r3, [r2]	@ movhi
	mov	r3, #1
	b	.L40
.L29:
	ldr	r2, .L48
	ldrh	r3, [fp, #-14]	@ movhi
	strh	r3, [r2]	@ movhi
	mov	r3, #0
	b	.L40
.L28:
	ldr	r3, .L48+48
	ldr	r3, [r3]
	ldr	r2, .L48+4
	ldrsh	r2, [r2]
	ldr	r1, .L48+52
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
.L40:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	pc
	.word	ir
	.word	__PRETTY_FUNCTION__.4631
	.word	.LC0
	.word	.LC7
	.word	1374389535
	.word	acc
	.word	274877907
	.word	1759218605
	.word	1717986919
	.word	.LC8
	.word	.LC9
	.word	stderr
	.word	.LC10
	.size	step, .-step
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L51:
	bl	step
	mov	r3, r0
	cmp	r3, #0
	bgt	.L51
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4619, %object
	.size	__PRETTY_FUNCTION__.4619, 8
__PRETTY_FUNCTION__.4619:
	.ascii	"get_mem\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4624, %object
	.size	__PRETTY_FUNCTION__.4624, 8
__PRETTY_FUNCTION__.4624:
	.ascii	"set_mem\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4628, %object
	.size	__PRETTY_FUNCTION__.4628, 6
__PRETTY_FUNCTION__.4628:
	.ascii	"input\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4631, %object
	.size	__PRETTY_FUNCTION__.4631, 5
__PRETTY_FUNCTION__.4631:
	.ascii	"step\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
