// // cocos2d::CCSpriteBatchNode::rebuildIndexInOrder from 0x180091e50 to 0x180091f73 (291 bytes) // // 6 xrefs: // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0x180091ece // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0x180091f4e // > @ 0x180146ad4 // > @ 0x180146b08 // > @ 0x18014cf68 // > @ 0x1801c030c // // This function is hookable on this platform (idp: pc, 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 11:22:08 +0000 // __int64 __fastcall cocos2d::CCSpriteBatchNode::rebuildIndexInOrder( cocos2d::CCSpriteBatchNode *this, struct cocos2d::CCSprite *a2, unsigned int a3) { cocos2d::CCArray *v6; // rax cocos2d::CCArray *v7; // rbp unsigned int *v8; // rbx __int64 v9; // rax struct cocos2d::CCSprite **v10; // rbx struct cocos2d::CCSprite **i; // r14 struct cocos2d::CCSprite *v12; // rsi unsigned int *v13; // rbx __int64 v14; // rax struct cocos2d::CCSprite **v15; // rbx struct cocos2d::CCSprite **j; // rbp struct cocos2d::CCSprite *v17; // rsi v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 480LL))(a2); v7 = v6; if ( v6 ) { if ( (unsigned int)cocos2d::CCArray::count(v6) ) { v8 = *((unsigned int **)v7 + 7); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((struct cocos2d::CCSprite ***)v8 + 2); for ( i = &v10[v9 - 1]; v10 <= i; ++v10 ) { v12 = *v10; if ( !*v10 ) break; if ( (*(int (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 96LL))(*v10) < 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(this, v12, a3); } } } } if ( !(*(unsigned __int8 (__fastcall **)(struct cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a2 + 16LL))( a2, this) ) *((_DWORD *)a2 + 90) = a3++; if ( v7 ) { if ( (unsigned int)cocos2d::CCArray::count(v7) ) { v13 = *((unsigned int **)v7 + 7); v14 = *v13; if ( (_DWORD)v14 ) { v15 = *((struct cocos2d::CCSprite ***)v13 + 2); for ( j = &v15[v14 - 1]; v15 <= j; ++v15 ) { v17 = *v15; if ( !*v15 ) break; if ( (*(int (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v17 + 96LL))(*v15) >= 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(this, v17, a3); } } } } return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source