//
// rankStartPosObjectsByRepeatedWinner from 0x99d9a0 to 0x99da10 (112 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::sortStartPosObjects @ 0x99da38
// > ??> @ 0x65350
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:58:05 +0000
//
cocos2d::CCArray *__fastcall rankStartPosObjectsByRepeatedWinner(cocos2d::CCArray *a1)
{
cocos2d::CCArray *v1; // x20
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x21
cocos2d::CCObject *StartPosWinnerInArray; // x19
v1 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
v2 = (cocos2d::CCArray *)cocos2d::CCArray::addObjectsFromArray(v1, a1);
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
while ( 1 )
{
StartPosWinnerInArray = (cocos2d::CCObject *)GJBaseGameLayer::findStartPosWinnerInArray((__int64)v1);
if ( !StartPosWinnerInArray )
break;
cocos2d::CCArray::addObject(v3, StartPosWinnerInArray);
cocos2d::CCArray::removeObject(v1, StartPosWinnerInArray, 1);
}
return v3;
}