// // LevelListLayer::onDescription from 0xa72e4c to 0xa73018 (460 bytes) // // 3 xrefs: // > @ 0xc1500 // > LevelListLayer::init @ 0xa762f8 // > @ 0x122eb38 // // 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 // void LevelListLayer::onDescription(LevelListLayer *a1, cocos2d::CCObject *a2) { GJLevelList *m_levelList; // x0 int m_M_ID; // w22 __int64 *v5; // x22 void *v6; // x0 void *v7; // x0 __int64 v8; // x1 unsigned int *v9; // x1 int v10; // w2 unsigned int *v11; // x1 int v12; // w2 __int64 v13; // [xsp+58h] [xbp+58h] BYREF __int64 v14; // [xsp+60h] [xbp+60h] BYREF if ( !a1->m_exiting ) { sub_D153B8((int)&v14, "Description"); m_levelList = a1->m_levelList; m_M_ID = m_levelList->m_M_ID; GJLevelList::getUnpackedDescription(m_levelList, &v13); v5 = (__int64 *)ShareCommentLayer::create((__int64)&v14, 300, 4, m_M_ID); v6 = (void *)(v13 - 24); if ( (__int64 *)(v13 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v13 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *(_DWORD *)(v13 - 8); *(_DWORD *)(v13 - 8) = v10 - 1; } if ( v10 <= 0 ) operator delete(v6); } v7 = (void *)(v14 - 24); if ( (__int64 *)(v14 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v14 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v14 - 8); *(_DWORD *)(v14 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v7); } v8 = *v5; v5[91] = (__int64)&a1->ShareCommentDelegate; (*(void (__fastcall **)(__int64 *))(v8 + 1288))(v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source