//
// updateSprites from 0x6aa29c to 0x6aa304 (104 bytes)
//
// 2 xrefs:
// > StartPosLayer::onSelectMode @ 0x6aa336
// > StartPosLayer::onSelectSpeed @ 0x6aa36c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:56:34 +0000
//
unsigned int __fastcall updateSprites(cocos2d::CCArray *this, int a2)
{
unsigned int v4; // r5
unsigned int result; // r0
int v6; // r0
bool v7; // zf
__int16 *v8; // r1
void (__fastcall *v9)(int, __int16 *); // r3
_DWORD v10[2]; // [sp+0h] [bp-8h] BYREF
v10[0] = this;
v10[1] = a2;
v4 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(this);
if ( v4 >= result )
break;
v6 = cocos2d::CCArray::objectAtIndex(this, v4);
v7 = a2 == v4++;
if ( v7 )
v8 = &word_BEF9C4;
else
v8 = (__int16 *)v10;
v9 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v6 + 480);
if ( !v7 )
memset(v10, 125, 3);
v9(v6, v8);
}
return result;
}