// // ShareCommentLayer::create from 0x7e7c84 to 0x7e7f5c (728 bytes) // // 7 xrefs: // > LevelBrowserLayer::createNewList @ 0x6e9480 // > InfoLayer::onComment @ 0x7e20f0 // > ProfilePage::onComment @ 0x8f8304 // > ProfilePage::onFriend @ 0x8fd234 // > MPLobbyLayer::onComment @ 0x9ca4b8 // > LevelListLayer::onDescription @ 0xa72ee8 // > @ 0xc0918 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall ShareCommentLayer::create(__int64 a1, int a2, int a3, int a4) { __int64 v7; // x19 int v8; // w22 void *v9; // x0 void *v10; // x0 __int64 v11; // x1 __int64 v12; // x0 unsigned int *v14; // x2 int v15; // w1 unsigned int *v16; // x1 int v17; // w2 __int64 v18; // [xsp+68h] [xbp+68h] BYREF __int64 v19; // [xsp+70h] [xbp+70h] BYREF v7 = operator new(0x2E0u); cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v7); *(_DWORD *)(v7 + 616) = -1; *(_DWORD *)(v7 + 624) = -1; *(_QWORD *)(v7 + 544) = 0; *(_QWORD *)(v7 + 552) = 0; *(_QWORD *)(v7 + 560) = 0; *(_BYTE *)(v7 + 568) = 0; *(_QWORD *)(v7 + 576) = 0; *(_DWORD *)(v7 + 584) = 0; *(_BYTE *)(v7 + 588) = 0; *(_QWORD *)(v7 + 592) = 0; *(_QWORD *)(v7 + 600) = 0; *(_QWORD *)(v7 + 608) = 0; *(_BYTE *)(v7 + 620) = 0; *(_BYTE *)(v7 + 621) = 0; *(_BYTE *)(v7 + 628) = 0; *(_DWORD *)(v7 + 664) = 0; *(_QWORD *)v7 = &off_1183150; *(_QWORD *)(v7 + 320) = off_11836A0; *(_QWORD *)(v7 + 328) = &off_1183710; *(_QWORD *)(v7 + 336) = &off_1183728; *(_QWORD *)(v7 + 344) = &off_1183748; *(_QWORD *)(v7 + 352) = off_1183768; *(_QWORD *)(v7 + 408) = &off_1183790; *(_QWORD *)(v7 + 432) = &off_1183810; *(_QWORD *)(v7 + 672) = 0; *(_QWORD *)(v7 + 632) = off_1183830; *(_QWORD *)(v7 + 640) = off_1183878; *(_QWORD *)(v7 + 648) = &off_1183898; *(_QWORD *)(v7 + 696) = 0; *(_QWORD *)(v7 + 680) = &byte_124B6C8; *(_QWORD *)(v7 + 688) = &byte_124B6C8; *(_QWORD *)(v7 + 712) = 0; *(_BYTE *)(v7 + 720) = 0; *(_BYTE *)(v7 + 721) = 0; *(_DWORD *)(v7 + 724) = 0; *(_QWORD *)(v7 + 728) = 0; sub_D18D28(&v18); sub_D18D28(&v19); v8 = (unsigned __int8)ShareCommentLayer::init(v7, (__int64)&v18, a2, a3, a4, &v19); v9 = (void *)(v19 - 24); if ( (__int64 *)(v19 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v19 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v17 - 1; } if ( v17 <= 0 ) operator delete(v9); } v10 = (void *)(v18 - 24); if ( (__int64 *)(v18 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v18 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v18 - 8); *(_DWORD *)(v18 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v10); } if ( v8 ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7); } else { v11 = *(_QWORD *)v7; v12 = v7; v7 = 0; (*(void (__fastcall **)(__int64))(v11 + 16))(v12); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source