	.file	"490669.c"
	.intel_syntax noprefix
	.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
	push	rbx
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -32[rbp], rdx
	movsx	rdx, eax
	mov	rcx, rdx
	mov	ebx, 0
	mov	edx, DWORD PTR -52[rbp]
	movsx	rcx, edx
	sub	rcx, 1
	mov	QWORD PTR -24[rbp], rcx
	movsx	rcx, edx
	mov	r8, rcx
	mov	r9d, 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L3
.L4:
	mov	esi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	add	ecx, esi
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, ecx
	movss	DWORD PTR -36[rbp], xmm0
	mov	ecx, DWORD PTR -40[rbp]
	movsx	rsi, ecx
	movsx	rcx, edx
	imul	rcx, rsi
	lea	rsi, 0[0+rcx*4]
	mov	rcx, QWORD PTR -72[rbp]
	lea	rdi, [rsi+rcx]
	mov	ecx, DWORD PTR -40[rbp]
	movsx	rsi, ecx
	movsx	rcx, eax
	imul	rcx, rsi
	lea	rsi, 0[0+rcx*4]
	mov	rcx, QWORD PTR -64[rbp]
	add	rsi, rcx
	mov	ecx, DWORD PTR -44[rbp]
	movsx	rcx, ecx
	mov	ecx, DWORD PTR [rsi+rcx*4]
	movss	xmm0, DWORD PTR -36[rbp]
	cvttss2si	esi, xmm0
	movsx	rcx, ecx
	mov	DWORD PTR [rdi+rcx*4], esi
	add	DWORD PTR -44[rbp], 1
.L3:
	mov	ecx, DWORD PTR -44[rbp]
	cmp	ecx, DWORD PTR -52[rbp]
	jl	.L4
	add	DWORD PTR -40[rbp], 1
.L2:
	mov	ecx, DWORD PTR -40[rbp]
	cmp	ecx, DWORD PTR -52[rbp]
	jl	.L5
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.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	"490669.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_f2iz
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r4, [fp, #-48]
	sub	r3, r4, #1
	str	r3, [fp, #-32]
	mov	r3, r4
	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	r5, [fp, #-48]
	sub	r3, r5, #1
	str	r3, [fp, #-28]
	mov	r3, r5
	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
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L3
.L4:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	mov	r2, r5
	ldr	r3, [fp, #-36]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r6, r2, r3
	mov	r2, r4
	ldr	r3, [fp, #-36]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	ldr	r7, [r3, r2, lsl #2]
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [r6, r7, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L3:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L2:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L5
	nop
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
