// // cocos2d::CCParticleBatchNode::getCurrentIndex from 0x7e5a72 to 0x7e5af4 (130 bytes) // // 1 xrefs: // > cocos2d::CCParticleBatchNode::reorderChild @ 0x7e5c86 // // 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 12:00:53 +0000 // int __fastcall cocos2d::CCParticleBatchNode::getCurrentIndex( cocos2d::CCArray **this, unsigned int *a2, unsigned int *a3, cocos2d::CCNode *a4, int a5) { int result; // r0 unsigned int v10; // r4 int v11; // r10 int v12; // r6 int v13; // r3 int v14; // r2 cocos2d::CCNode *v15; // r7 int v16; // [sp+0h] [bp-Ch] int v17; // [sp+4h] [bp-8h] result = cocos2d::CCArray::count(*(this + 48)); v10 = 0; v11 = 0; v12 = 0; v13 = 0; v14 = result; while ( v10 != v14 ) { v17 = v14; v16 = v13; v15 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*(this + 48), v10); result = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v15 + 52))(v15); v14 = v17; v13 = v16; if ( result <= a5 ) { if ( a4 == v15 ) { *a2 = v10; if ( v12 ) goto LABEL_12; v11 = -1; v13 = 1; } } else if ( v12 ) { if ( a4 == v15 ) goto LABEL_17; } else { *a3 = v10; if ( v16 ) goto LABEL_12; if ( a4 == v15 ) { LABEL_17: *a2 = v10; goto LABEL_12; } v12 = 1; } ++v10; } if ( !v12 ) *a3 = v10; LABEL_12: *a3 += v11; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source