	.file	"999134.c"
	.intel_syntax noprefix
	.text
	.globl	ca
	.bss
	.align 16
	.type	ca, @object
	.size	ca, 4096
ca:
	.zero	4096
	.globl	cb
	.align 16
	.type	cb, @object
	.size	cb, 4096
cb:
	.zero	4096
	.globl	cc
	.align 16
	.type	cc, @object
	.size	cc, 4096
cc:
	.zero	4096
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, cb[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, cc[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, eax
	mov	eax, ecx
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, ca[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 4095
	jle	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.globl	init
	.type	init, @function
init:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, -128
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, cb[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 64
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, cc[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdq
	shr	edx, 25
	add	eax, edx
	and	eax, 127
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L5:
	cmp	DWORD PTR -8[rbp], 4095
	jle	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init, .-init
	.globl	main
	.type	main, @function
main:
.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	eax, 0
	call	init
	mov	eax, 0
	call	foo
	mov	DWORD PTR -8[rbp], 0
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdq
	shr	edx, 25
	add	eax, edx
	and	eax, 127
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, ca[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	neg	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	sub	eax, 64
	cmp	edx, eax
	je	.L9
	call	abort@PLT
.L9:
	add	DWORD PTR -8[rbp], 1
.L8:
	cmp	DWORD PTR -8[rbp], 4095
	jle	.L10
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"999134.c"
	.text
	.comm	ca,4096,16
	.comm	cb,4096,16
	.comm	cc,4096,16
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, .L4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	and	r2, r3, #255
	ldr	r1, .L4+4
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrsb	r3, [r3]
	and	r3, r3, #255
	sub	r3, r2, r3
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, .L4+8
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #4096
	blt	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	cb
	.word	cc
	.word	ca
	.size	foo, .-foo
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	sub	r3, r3, #128
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, .L9
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	and	r3, r3, #255
	sub	r3, r3, #64
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, .L9+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	and	r3, r3, #127
	and	r2, r2, #127
	rsbpl	r3, r2, #0
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #4096
	blt	.L8
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	cb
	.word	cc
	.size	init, .-init
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	init
	bl	foo
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L14:
	ldr	r3, [fp, #-12]
	rsbs	r2, r3, #0
	and	r3, r3, #127
	and	r2, r2, #127
	rsbpl	r3, r2, #0
	str	r3, [fp, #-8]
	ldr	r2, .L16
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	rsb	r3, r3, #0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #64
	cmp	r1, r3
	beq	.L13
	bl	abort
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #4096
	blt	.L14
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	ca
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
