	.file	"25535.c"
	.intel_syntax noprefix
	.text
	.globl	flags
	.bss
	.align 32
	.type	flags, @object
	.size	flags, 8000
flags:
	.zero	8000
	.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, 16
	mov	edx, 8000
	mov	esi, 0
	lea	rdi, flags[rip]
	call	memset@PLT
	mov	DWORD PTR -4[rbp], 7998
	mov	DWORD PTR -12[rbp], 4
	mov	DWORD PTR -16[rbp], 2
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -16[rbp]
	lea	rdx, flags[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -8[rbp]
	lea	rdx, flags[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	sete	al
	movzx	eax, al
	sub	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	lea	rdx, flags[rip]
	mov	BYTE PTR [rax+rdx], 1
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -8[rbp], eax
.L4:
	cmp	DWORD PTR -8[rbp], 7999
	jbe	.L5
.L3:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -16[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 7999
	jbe	.L6
	mov	DWORD PTR -16[rbp], 2
	jmp	.L7
.L10:
	add	DWORD PTR -16[rbp], 1
.L7:
	cmp	DWORD PTR -16[rbp], 7999
	jbe	.L10
	mov	eax, 0
	leave
	.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	"25535.c"
	.text
	.comm	flags,8000,4
	.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
	mov	r2, #8000
	mov	r1, #0
	ldr	r0, .L11
	bl	memset
	ldr	r3, .L11+4
	str	r3, [fp, #-8]
	mov	r3, #4
	str	r3, [fp, #-16]
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L2
.L6:
	ldr	r2, .L11
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r2, .L11
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-8]
	sub	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r2, .L11
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #8000
	bcc	.L5
.L3:
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #8000
	bcc	.L6
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L7
.L10:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #8000
	bcc	.L10
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	flags
	.word	7998
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
