// // cocos2d::CCSpriteBatchNode::atlasIndexForChild from 0x7f27d6 to 0x7f2880 (170 bytes) // // 2 xrefs: // > cocos2d::CCSpriteBatchNode::insertChild @ 0x7f299a // > cocos2d::CCSpriteBatchNode::insertChild @ 0x7f2a16 // // 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:01:05 +0000 // int __fastcall cocos2d::CCSpriteBatchNode::atlasIndexForChild( cocos2d::CCSpriteBatchNode *this, cocos2d::CCSprite *a2, int a3) { int v6; // r0 cocos2d::CCArray *v7; // r6 int v8; // r4 cocos2d::CCSpriteBatchNode *v9; // r9 cocos2d::CCSprite *v10; // r6 cocos2d::CCSpriteBatchNode *v11; // r0 int result; // r0 v6 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 256))(a2); v7 = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 244))(v6); v8 = cocos2d::CCArray::indexOfObject(v7, a2); v9 = (cocos2d::CCSpriteBatchNode *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 256))(a2); if ( (unsigned int)(v8 - 1) > 0xFFFFFFFD ) v10 = nullptr; else v10 = (cocos2d::CCSprite *)cocos2d::CCArray::objectAtIndex(v7, v8 - 1); if ( v9 == this ) { if ( !v8 ) return 0; v11 = v9; LABEL_17: result = cocos2d::CCSpriteBatchNode::highestAtlasIndexInChild(v11, v10); goto LABEL_19; } if ( v8 ) { if ( ((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v10 + 52))(v10) >= 0 || a3 >= 0) && ((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v10 + 52))(v10) < 0 || a3 < 0) ) { result = *(_DWORD *)((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 256))(a2) + 288); goto LABEL_19; } v11 = this; goto LABEL_17; } result = *(_DWORD *)((*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 256))(a2) + 288); if ( a3 >= 0 ) LABEL_19: ++result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source