// // cocos2d::CCParticleBatchNode::getCurrentIndex from 0xb021e0 to 0xb02300 (288 bytes) // // 2 xrefs: // > cocos2d::CCParticleBatchNode::reorderChild @ 0xb02624 // > @ 0x70398 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCParticleBatchNode::getCurrentIndex( cocos2d::CCParticleBatchNode *a1, unsigned int *a2, unsigned int *a3, cocos2d::CCNode *a4, int a5) { unsigned int v10; // w21 unsigned int v11; // w19 int v12; // w22 int v13; // w25 cocos2d::CCNode *v14; // x27 int v15; // w27 unsigned int v16; // w23 int v17; // [xsp+6Ch] [xbp+6Ch] v10 = cocos2d::CCArray::count(a1->m_pChildren); if ( v10 ) { v11 = 0; v17 = 0; v12 = 0; v13 = 0; while ( 1 ) { v14 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_pChildren, v11); if ( v14->getZOrder(v14) <= a5 || v12 ) { if ( a4 != v14 ) goto LABEL_6; *a2 = v11; v13 = 1; if ( v12 ) goto LABEL_15; ++v11; v17 = -1; if ( v11 == v10 ) { LABEL_11: v15 = v17; if ( !v12 ) goto LABEL_12; v16 = *a3; goto LABEL_13; } } else { *a3 = v11; v12 = 1; if ( v13 ) { v16 = v11; v15 = v17; goto LABEL_13; } if ( a4 == v14 ) { *a2 = v11; LABEL_15: v16 = *a3; v15 = v17; goto LABEL_13; } LABEL_6: if ( ++v11 == v10 ) goto LABEL_11; } } } v15 = 0; LABEL_12: v16 = v10; LABEL_13: *a3 = v15 + v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source