// // cocos2d::CCSpriteBatchNode::updateAtlasIndex from 0x7f2486 to 0x7f2592 (268 bytes) // // 3 xrefs: // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x7f24ca // > cocos2d::CCSpriteBatchNode::updateAtlasIndex @ 0x7f2588 // > cocos2d::CCSpriteBatchNode::sortAllChildren @ 0x7f2634 // // 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 // _DWORD *__fastcall cocos2d::CCSpriteBatchNode::updateAtlasIndex( cocos2d::CCSpriteBatchNode *this, cocos2d::CCSprite *a2, int *a3) { _DWORD *result; // r0 _DWORD *v7; // r8 _DWORD *v8; // r1 cocos2d::CCSprite **v9; // r6 cocos2d::CCSprite **v10; // r5 cocos2d::CCSprite *v11; // r1 cocos2d::CCSprite *v12; // t1 int v13; // r1 int v14; // r9 _DWORD *v15; // r2 cocos2d::CCSprite **v16; // r6 cocos2d::CCSprite **v17; // r8 cocos2d::CCSprite *v18; // r10 cocos2d::CCSprite *v19; // t1 int v20; // r1 int v21; // r1 result = (_DWORD *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2); v7 = result; if ( !result || (v8 = (_DWORD *)result[13], !*v8) ) { if ( *((_BYTE *)a2 + 471) ) return result; goto LABEL_21; } v9 = (cocos2d::CCSprite **)v8[3]; if ( *((_BYTE *)a2 + 471) ) { v10 = &v9[*v8] + 0x3FFFFFFF; while ( v9 <= v10 ) { v12 = *v9++; v11 = v12; if ( !v12 ) break; result = (_DWORD *)cocos2d::CCSpriteBatchNode::updateAtlasIndex(this, v11, a3); } } else { result = (_DWORD *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)*v9 + 52))(*v9); if ( (int)result < 0 ) { v14 = 1; } else { v13 = *((_DWORD *)a2 + 72); *((_DWORD *)a2 + 72) = *a3; if ( v13 != *a3 ) result = cocos2d::CCSpriteBatchNode::swap(this, v13, *a3); v14 = 0; ++*a3; } v15 = (_DWORD *)v7[13]; if ( *v15 ) { v16 = (cocos2d::CCSprite **)v15[3]; v17 = &v16[*v15] + 0x3FFFFFFF; while ( v16 <= v17 ) { v19 = *v16++; v18 = v19; if ( !v19 ) break; if ( v14 && (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v18 + 52))(v18) >= 0 ) { v21 = *((_DWORD *)a2 + 72); *((_DWORD *)a2 + 72) = *a3; if ( v21 != *a3 ) cocos2d::CCSpriteBatchNode::swap(this, v21, *a3); v14 = 0; ++*a3; } result = (_DWORD *)cocos2d::CCSpriteBatchNode::updateAtlasIndex(this, v18, a3); } } if ( v14 ) { LABEL_21: v20 = *((_DWORD *)a2 + 72); *((_DWORD *)a2 + 72) = *a3; if ( v20 != *a3 ) result = cocos2d::CCSpriteBatchNode::swap(this, v20, *a3); ++*a3; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source