	.file	"939846.c"
	.intel_syntax noprefix
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 256
A:
	.zero	256
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 256
B:
	.zero	256
	.globl	C
	.align 32
	.type	C, @object
	.size	C, 3328
C:
	.zero	3328
	.globl	D
	.align 32
	.type	D, @object
	.size	D, 3328
D:
	.zero	3328
	.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 -24[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L8:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L3
.L7:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR img[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	ecx, edx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L5:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, B[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	ecx, edx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, D[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -12[rbp], 1
.L4:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L6
	add	DWORD PTR -8[rbp], 1
.L3:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L7
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 12
	jle	.L8
	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	"939846.c"
	.text
	.comm	A,256,4
	.comm	B,256,4
	.comm	C,3328,4
	.comm	D,3328,4
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L8:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L3
.L7:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L4
.L6:
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r2, .L9+4
	ldr	r3, [fp, #-28]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r2, r2, r3
	ldr	r0, .L9+8
	ldr	r3, [fp, #-8]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r1, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
.L5:
	ldr	r2, .L9+12
	ldr	r3, [fp, #-28]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	lsl	r2, r2, r3
	ldr	r0, .L9+16
	ldr	r3, [fp, #-8]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	lsl	r1, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L6
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L7
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	ble	.L8
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	img
	.word	A
	.word	C
	.word	B
	.word	D
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
