	.file	"29825522.c"
	.intel_syntax noprefix
	.text
	.globl	maxsofar
	.bss
	.align 32
	.type	maxsofar, @object
	.size	maxsofar, 4004
maxsofar:
	.zero	4004
	.globl	newitem
	.align 32
	.type	newitem, @object
	.size	newitem, 4004
newitem:
	.zero	4004
	.globl	size
	.align 32
	.type	size, @object
	.size	size, 400
size:
	.zero	400
	.globl	price
	.align 32
	.type	price, @object
	.size	price, 400
price:
	.zero	400
	.section	.rodata
	.align 8
.LC0:
	.string	"\343\203\212\343\203\203\343\203\227\343\202\266\343\203\203\343\202\257\343\201\256\345\244\247\343\201\215\343\201\225? "
.LC1:
	.string	"%d"
.LC2:
	.string	"\345\223\201\347\233\256\346\225\260? "
.LC3:
	.string	"\345\223\201\347\233\256 %d \343\201\256\345\244\247\343\201\215\343\201\225? "
.LC4:
	.string	"\345\223\201\347\233\256 %d \343\201\256\344\276\241\346\240\274  ? "
.LC5:
	.string	"\345\223\201\347\233\256  \344\276\241\346\240\274"
.LC6:
	.string	"%4d %5d\n"
.LC7:
	.string	"\345\220\210\350\250\210 %5d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	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, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	jle	.L2
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 1000
	jle	.L3
.L2:
	mov	eax, 1
	jmp	.L21
.L3:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -36[rbp]
	test	eax, eax
	jle	.L5
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 100
	jle	.L6
.L5:
	mov	eax, 1
	jmp	.L21
.L6:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, size[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, price[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L7:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L8
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, size[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L10
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, size[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -20[rbp], eax
.L10:
	add	DWORD PTR -28[rbp], 1
.L9:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L11
	mov	DWORD PTR -24[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, maxsofar[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -24[rbp], 1
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jle	.L13
	mov	DWORD PTR -28[rbp], 0
	jmp	.L14
.L18:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, size[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, size[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, maxsofar[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, price[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, ecx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, maxsofar[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L16
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, maxsofar[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, newitem[rip]
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L16:
	add	DWORD PTR -24[rbp], 1
.L15:
	mov	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jle	.L17
	add	DWORD PTR -28[rbp], 1
.L14:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L18
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, newitem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, price[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, newitem[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, newitem[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, size[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	DWORD PTR -24[rbp], eax
.L19:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jge	.L20
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, maxsofar[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"29825522.c"
	.text
	.comm	maxsofar,4004,4
	.comm	newitem,4004,4
	.comm	size,400,4
	.comm	price,400,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\343\203\212\343\203\203\343\203\227\343\202\266\343"
	.ascii	"\203\203\343\202\257\343\201\256\345\244\247\343\201"
	.ascii	"\215\343\201\225? \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\345\223\201\347\233\256\346\225\260? \000"
	.align	2
.LC3:
	.ascii	"\345\223\201\347\233\256 %d \343\201\256\345\244\247"
	.ascii	"\343\201\215\343\201\225? \000"
	.align	2
.LC4:
	.ascii	"\345\223\201\347\233\256 %d \343\201\256\344\276\241"
	.ascii	"\346\240\274  ? \000"
	.align	2
.LC5:
	.ascii	"\345\223\201\347\233\256  \344\276\241\346\240\274\000"
	.align	2
.LC6:
	.ascii	"%4d %5d\012\000"
	.align	2
.LC7:
	.ascii	"\345\220\210\350\250\210 %5d\012\000"
	.align	2
.LC8:
	.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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L23+4
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-32]
	cmp	r3, #1000
	ble	.L3
.L2:
	mov	r3, #1
	b	.L21
.L3:
	ldr	r0, .L23+12
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L5
	ldr	r3, [fp, #-36]
	cmp	r3, #100
	ble	.L6
.L5:
	mov	r3, #1
	b	.L21
.L6:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L7
.L8:
	ldr	r1, [fp, #-28]
	ldr	r0, .L23+16
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, .L23+20
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r1, [fp, #-28]
	ldr	r0, .L23+24
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, .L23+28
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L9
.L11:
	ldr	r2, .L23+20
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L10
	ldr	r2, .L23+20
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-20]
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L9:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L12
.L13:
	ldr	r2, .L23+32
	ldr	r3, [fp, #-24]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L12:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L13
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L14
.L18:
	ldr	r2, .L23+20
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-24]
	b	.L15
.L17:
	ldr	r2, .L23+20
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, .L23+32
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L23+28
	ldr	r3, [fp, #-28]
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, .L23+32
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L16
	ldr	r1, .L23+32
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L23+36
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
.L16:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L15:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L18
	ldr	r0, .L23+40
	bl	puts
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L19
.L20:
	ldr	r2, .L23+36
	ldr	r3, [fp, #-24]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, .L23+36
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L23+28
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L23+44
	bl	printf
	ldr	r2, .L23+36
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L23+20
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
.L19:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L20
	ldr	r3, [fp, #-32]
	ldr	r2, .L23+32
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+48
	bl	printf
	mov	r3, #0
.L21:
	ldr	r2, .L23
	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}
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	size
	.word	.LC4
	.word	price
	.word	maxsofar
	.word	newitem
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
