	.file	"351773.c"
	.intel_syntax noprefix
	.text
	.globl	maxn
	.section	.rodata
	.align 4
	.type	maxn, @object
	.size	maxn, 4
maxn:
	.long	10000
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.section	.rodata
.LC0:
	.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	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, 10000
	add	eax, 5
	cdqe
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	eax, 10000
	add	eax, 5
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, 10000
	add	eax, 5
	cdqe
	mov	r10, rax
	mov	r11d, 0
	mov	eax, 10000
	add	eax, 5
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	eax, 10000
	add	eax, 5
	cdqe
	sub	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	eax, 10000
	add	eax, 5
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, 10000
	add	eax, 5
	cdqe
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 10000
	add	eax, 5
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	eax, 10000
	add	eax, 5
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR i[rip], 2
	jmp	.L8
.L14:
	mov	eax, DWORD PTR i[rip]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	je	.L9
	mov	eax, DWORD PTR c[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR c[rip], edx
	mov	ecx, DWORD PTR i[rip]
	mov	rdx, QWORD PTR -48[rbp]
	cdqe
	mov	DWORD PTR [rdx+rax*4], ecx
.L9:
	mov	DWORD PTR -76[rbp], 0
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR i[rip]
	imul	eax, edx
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	mov	eax, DWORD PTR i[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	movsx	rcx, ecx
	mov	ecx, DWORD PTR [rdx+rcx*4]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	je	.L20
	add	DWORD PTR -76[rbp], 1
.L10:
	mov	eax, DWORD PTR c[rip]
	cmp	DWORD PTR -76[rbp], eax
	jge	.L12
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR i[rip]
	imul	eax, edx
	mov	edx, 10000
	cmp	eax, edx
	jl	.L13
	jmp	.L12
.L20:
	nop
.L12:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L8:
	mov	eax, DWORD PTR i[rip]
	mov	edx, 10000
	cmp	eax, edx
	jle	.L14
	mov	DWORD PTR count[rip], 1
	jmp	.L15
.L17:
	mov	eax, DWORD PTR count[rip]
	mov	rdx, QWORD PTR -64[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	je	.L16
	mov	eax, DWORD PTR count[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
.L15:
	mov	eax, 10000
	lea	edx, -4[rax]
	mov	eax, DWORD PTR count[rip]
	cmp	edx, eax
	jg	.L17
	mov	eax, 0
	mov	rsp, rbx
	mov	rdi, QWORD PTR -40[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	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	"351773.c"
	.text
	.global	maxn
	.section	.rodata
	.align	2
	.type	maxn, %object
	.size	maxn, 4
maxn:
	.word	10000
	.comm	i,4,4
	.global	c
	.bss
	.align	2
	.type	c, %object
	.size	c, 4
c:
	.space	4
	.comm	count,4,4
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, .L15+4
	add	r3, r3, #4
	str	r3, [fp, #-32]
	ldr	r3, .L15+4
	add	r3, r3, #5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L15+4
	add	r3, r3, #5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, .L15+4
	add	r3, r3, #5
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L15+4
	add	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r3, .L15+4
	add	r3, r3, #5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, .L15+4
	add	r3, r3, #5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, .L15+4
	add	r3, r3, #5
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	ldr	r3, .L15+4
	add	r3, r3, #5
	mov	r2, r3
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	memset
	ldr	r3, .L15+8
	mov	r2, #2
	str	r2, [r3]
	b	.L2
.L8:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L15+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L15+12
	str	r2, [r1]
	ldr	r2, .L15+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-20]
	str	r1, [r2, r3, lsl #2]
.L3:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L7:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, .L15+8
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r3, .L15+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L6
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, .L15+8
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L15+4
	cmp	r3, r2
	blt	.L7
	b	.L6
.L14:
	nop
.L6:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+8
	str	r3, [r2]
.L2:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r2, .L15+4
	cmp	r3, r2
	ble	.L8
	ldr	r3, .L15+16
	mov	r2, #1
	str	r2, [r3]
	b	.L9
.L11:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L15+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
.L10:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+16
	str	r3, [r2]
.L9:
	ldr	r3, .L15+4
	sub	r2, r3, #4
	ldr	r3, .L15+16
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L11
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	10000
	.word	i
	.word	c
	.word	count
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
