// // LevelSearchLayer::onPasteClipboard from 0x6cea80 to 0x6cec9c (540 bytes) // // 1 xrefs: // > @ 0x4fa70 // // 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 LevelSearchLayer::onPasteClipboard(LevelSearchLayer *a1, cocos2d::CCObject *a2) { CCTextInputNode *m_searchInput; // x19 unsigned __int8 *v4; // x0 void *v5; // x0 void *v6; // x0 unsigned int *v7; // x1 int v8; // w2 unsigned int *v9; // x1 int v10; // w2 unsigned int *v11; // x1 int v12; // w2 __int64 v13; // [xsp+40h] [xbp+40h] BYREF __int64 v14; // [xsp+48h] [xbp+48h] BYREF const unsigned __int8 *v15; // [xsp+50h] [xbp+50h] BYREF PlatformToolbox::getClipboardString(_stack_chk_guard, (__int64)&v13); CCTextInputNode::getString(a1->m_searchInput, (__int64)&v14); sub_D15E14(&v14, &v13); m_searchInput = a1->m_searchInput; sub_D18D28(&v15, &v14); CCTextInputNode::setString(m_searchInput, &v15); v4 = (unsigned __int8 *)(v15 - 24); if ( v15 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v15 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *((_DWORD *)v15 - 2); *((_DWORD *)v15 - 2) = v8 - 1; } if ( v8 <= 0 ) operator delete(v4); } v5 = (void *)(v14 - 24); if ( (__int64 *)(v14 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v14 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *(_DWORD *)(v14 - 8); *(_DWORD *)(v14 - 8) = v10 - 1; } if ( v10 <= 0 ) operator delete(v5); } v6 = (void *)(v13 - 24); if ( (__int64 *)(v13 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v13 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v13 - 8); *(_DWORD *)(v13 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source