// // KeybindingsLayer::onInfo from 0x853edc to 0x8540cc (496 bytes) // // 1 xrefs: // > @ 0x50388 // // 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 KeybindingsLayer::onInfo(KeybindingsLayer *a1, cocos2d::CCObject *a2) { int v3; // w1 KeybindingsLayer *v4; // x0 cocos2d::CCDictionary *m_values; // x19 char *v6; // x0 cocos2d::CCString *v7; // x0 char *CString; // x23 char *v9; // x0 FLAlertLayer *v10; // x20 char *v11; // x0 unsigned int *v12; // x1 int v13; // w2 unsigned int *v14; // x1 int v15; // w2 std::string v16; // [xsp+50h] [xbp+50h] BYREF v3 = a2->getTag(a2); v4 = a1; m_values = a1->m_values; v6 = (char *)KeybindingsLayer::infoKey(v4, v3); sub_D153B8((int)&v16, v6); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_values, &v16); CString = (char *)cocos2d::CCString::getCString(v7); v9 = (char *)v16.m_data.m_data - 24; if ( (__int64 *)v16.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)((char *)v16.m_data.m_data - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *((_DWORD *)v16.m_data.m_data - 2); *((_DWORD *)v16.m_data.m_data - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v9); } sub_D153B8((int)&v16, CString); v10 = FLAlertLayer::create(0, (__int64)"Info", (__int64)&v16); v11 = (char *)v16.m_data.m_data - 24; if ( (__int64 *)v16.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)((char *)v16.m_data.m_data - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *((_DWORD *)v16.m_data.m_data - 2); *((_DWORD *)v16.m_data.m_data - 2) = v15 - 1; } if ( v15 <= 0 ) operator delete(v11); } v10->show(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source