// // cocos2d::CCSpriteBatchNode::appendChild from 0x10026f964 to 0x10026fae8 (388 bytes) // // 3 xrefs: // > cocos2d::CCSpriteBatchNode::addChild @ 0x10026f960 // > cocos2d::CCSpriteBatchNode::appendChild @ 0x10026fac8 // > cocos2d::CCSprite::addChild @ 0x1002d50fc // // This function is hookable on this platform (idp: arm, 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:01:46 +0000 // __int64 __fastcall cocos2d::CCSpriteBatchNode::appendChild(__int64 a1, __int64 a2) { int v4; // w21 _DWORD *v5; // x21 __int128 v6; // q1 __int128 v7; // q1 __int128 v8; // q1 __int64 result; // x0 _QWORD *v10; // x21 __int64 v11; // x22 unsigned __int64 v12; // x20 _OWORD v13[6]; // [xsp+0h] [xbp-80h] BYREF *(_BYTE *)(a1 + 288) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1120LL))(a2, a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1200LL))(a2, 1); if ( (*(_BYTE *)(a2 + 559) & 1) == 0 ) { v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 80LL))(*(_QWORD *)(a1 + 328)); if ( v4 == (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 88LL))(*(_QWORD *)(a1 + 328)) ) cocos2d::CCSpriteBatchNode::increaseAtlasCapacity_1(a1); v5 = *(_DWORD **)(*(_QWORD *)(a1 + 344) + 56LL); sub_1003F30B4(v5, a2); *(_DWORD *)(a2 + 360) = *v5 - 1; v6 = *(_OWORD *)(a2 + 508); v13[2] = *(_OWORD *)(a2 + 492); v13[3] = v6; v7 = *(_OWORD *)(a2 + 540); v13[4] = *(_OWORD *)(a2 + 524); v13[5] = v7; v8 = *(_OWORD *)(a2 + 476); v13[0] = *(_OWORD *)(a2 + 460); v13[1] = v8; cocos2d::CCTextureAtlas::insertQuad(*(_QWORD *)(a1 + 328), v13); } result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 488LL))(a2); if ( result ) { result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 488LL))(a2); if ( **(_DWORD **)(result + 56) ) { v10 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 488LL))(a2) + 56) + 16LL); v11 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 488LL))(a2) + 56) + 16LL); result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 488LL))(a2); v12 = v11 + 8LL * **(unsigned int **)(result + 56) - 8; while ( (unsigned __int64)v10 <= v12 && *v10 ) result = cocos2d::CCSpriteBatchNode::appendChild(a1, *v10++); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source