	.file	"400240.c"
	.intel_syntax noprefix
	.text
	.globl	p1
	.bss
	.align 32
	.type	p1, @object
	.size	p1, 4096
p1:
	.zero	4096
	.globl	p2
	.align 32
	.type	p2, @object
	.size	p2, 4096
p2:
	.zero	4096
	.globl	p3
	.align 32
	.type	p3, @object
	.size	p3, 4096
p3:
	.zero	4096
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 4096
c:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L6:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, c[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	lea	ecx, 0[0+rdx*4]
	mov	edx, DWORD PTR -8[rbp]
	add	edx, ecx
	lea	ecx, 1[rax]
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, p1[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p3[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	lea	ecx, 0[0+rdx*4]
	mov	edx, DWORD PTR -8[rbp]
	add	edx, ecx
	lea	ecx, 2[rax]
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, p2[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L4:
	add	DWORD PTR -8[rbp], 1
.L3:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L5
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	cmp	DWORD PTR -4[rbp], eax
	jl	.L6
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.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	"400240.c"
	.text
	.comm	p1,4096,4
	.comm	p2,4096,4
	.comm	p3,4096,4
	.comm	c,4096,4
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L6:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L3
.L5:
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L7
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L7+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	add	r2, r2, #1
	ldr	r1, .L7+4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L7+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	add	r2, r2, #2
	ldr	r1, .L7+12
	str	r2, [r1, r3, lsl #2]
.L4:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L5
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L6
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	c
	.word	p1
	.word	p3
	.word	p2
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
