static int MAPCDSF_calcACCTableTableUnk3ByLastValue(MaiAT3PlusCoreDecoderChnACCTableTable table, MaiBitReader mbr0)
{
int rs = 0;
for (int a0 = 0; a0 < (int)table.num_uk; a0++)
{
if (0 == a0)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0xA);
}
else if ( table.ptr0[a0 - 1].unk3 < 0x200)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0xA);
}
else if ( table.ptr0[a0 - 1].unk3 < 0x300)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x9) + 0x200;
}
else if ( table.ptr0[a0 - 1].unk3 < 0x380)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x8) + 0x300;
}
else if ( table.ptr0[a0 - 1].unk3 < 0x3C0)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x7) + 0x380;
}
else if ( table.ptr0[a0 - 1].unk3 < 0x3E0)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x6) + 0x3C0;
}
else if ( table.ptr0[a0 - 1].unk3 < 0x3F0)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x5) + 0x3E0;
}
else if ( table.ptr0[a0 - 1].unk3 < 0x3F8)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x4) + 0x3F0;
}
else if ( table.ptr0[a0 - 1].unk3 < 0x3FC)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x3) + 0x3F8;
}
else if (table.ptr0[a0 - 1].unk3 < 0x3FE)
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x2) + 0x3FC;
}
else
{
table.ptr0[a0].unk3 = mbr0.getWithI32Buffer(0x1) + 0x3FE;
}
}
return rs;
}