	.file	"461152.c"
	.intel_syntax noprefix
	.text
	.local	dp
	.comm	dp,32000,32
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.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
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 50
	mov	DWORD PTR -44[rbp], 25
	mov	DWORD PTR -40[rbp], 10
	mov	DWORD PTR -36[rbp], 5
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR dp[rip], 1
	mov	r12d, 0
	jmp	.L2
.L5:
	movsx	rax, r12d
	mov	ebx, DWORD PTR -48[rbp+rax*4]
	jmp	.L3
.L4:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	movsx	rax, r12d
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, ebx
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	ecx, eax
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	ebx, 1
.L3:
	cmp	ebx, 8000
	jle	.L4
	add	r12d, 1
.L2:
	cmp	r12d, 4
	jle	.L5
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dp[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	jg	.L7
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"461152.c"
	.text
	.local	dp
	.comm	dp,32000,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC0:
	.word	50
	.word	25
	.word	10
	.word	5
	.word	1
	.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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L10+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, .L10+8
	mov	r2, #1
	str	r2, [r3]
	mov	r5, #0
	b	.L2
.L5:
	lsl	r3, r5, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-24]
	b	.L3
.L4:
	ldr	r3, .L10+8
	ldr	r2, [r3, r4, lsl #2]
	lsl	r3, r5, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-24]
	sub	r3, r4, r3
	ldr	r1, .L10+8
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r2, r3
	ldr	r2, .L10+8
	str	r3, [r2, r4, lsl #2]
	add	r4, r4, #1
.L3:
	cmp	r4, #8000
	ble	.L4
	add	r5, r5, #1
.L2:
	cmp	r5, #4
	ble	.L5
	b	.L6
.L7:
	ldr	r3, [fp, #-40]
	ldr	r2, .L10+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
.L6:
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L10+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L7
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	dp
	.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
