// // ThreadSearchPopup::init from 0xc6f86c to 0xc700fc (2192 bytes) // // 2 xrefs: // > ThreadSearchPopup::create @ 0xc70360 // > @ 0xe7520 // // 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 13:05:29 +0000 // __int64 __fastcall ThreadSearchPopup::init(ThreadSearchPopup *this, ThreadViewPopup *a2) { FLAlertLayer *v3; // x0 float v4; // s0 float v5; // s12 cocos2d::CCDirector *v6; // x0 unsigned int v7; // w25 cocos2d::CCDirector *v9; // x0 float v10; // s11 float v11; // s8 __int64 v12; // x19 __int64 v13; // x23 __int64 v14; // x19 cocos2d::CCNode *v15; // x28 void (__fastcall *v16)(__int64, __int64 *); // x26 float v17; // s10 float v18; // s8 float v19; // s10 float v20; // s9 float v21; // s11 __int64 v22; // x19 void (__fastcall *v23)(__int64, __int64 *); // x26 void (__fastcall *v24)(__int64, __int64 *); // x2 void (__fastcall *v25)(__int64, __int64 *); // x26 int v26; // w2 __int64 v27; // x3 const char *v28; // x4 __int64 InputNode; // x0 __int64 v30; // x26 __int64 v31; // x0 __int64 (__fastcall *v32)(__int64); // x1 void (__fastcall *v33)(__int64, __int64); // x19 __int64 v34; // x0 const char *v35; // x6 __int64 v36; // x0 __int64 v37; // x19 cocos2d::CCNode *v38; // x28 void (__fastcall *v39)(__int64, __int64 *); // x26 struct tm *v40; // x0 int v41; // w1 float v42; // s9 int tm_mday; // w3 float v44; // s8 __int64 v45; // x28 void (__fastcall *v46)(__int64, __int64 *); // x19 void (__fastcall *v47)(__int64, __int64 *); // x2 void (__fastcall *v48)(__int64, __int64 *); // x19 CCTextInputNode *v49; // x26 const char *v50; // x4 __int64 v51; // x19 int v52; // w0 __int64 v53; // x0 __int64 (__fastcall *v54)(__int64); // x1 void (__fastcall *v55)(__int64, __int64); // x28 __int64 v56; // x0 cocos2d::CCString *v57; // x0 const char *CString; // x0 size_t v59; // x0 const char *v60; // x2 __int64 v61; // x19 void (__fastcall *v62)(__int64, __int64 *); // x26 __int64 v63; // x4 float v64; // s1 __int64 v65; // x2 __int64 v66; // x0 const char *v67; // x6 __int64 v68; // x0 __int64 v69; // x19 cocos2d::CCNode *v70; // x22 void (__fastcall *v71)(__int64, __int64 *); // x20 char *v72; // [xsp+C8h] [xbp+C8h] int v73; // [xsp+D0h] [xbp+D0h] __int64 v74; // [xsp+D8h] [xbp+D8h] BYREF time_t v75; // [xsp+E0h] [xbp+E0h] BYREF _BYTE v76[8]; // [xsp+E8h] [xbp+E8h] BYREF _DWORD v77[4]; // [xsp+F0h] [xbp+F0h] _DWORD v78[4]; // [xsp+100h] [xbp+100h] __int64 v79[2]; // [xsp+110h] [xbp+110h] BYREF _QWORD v80[3]; // [xsp+120h] [xbp+120h] _QWORD v81[3]; // [xsp+138h] [xbp+138h] __int64 v82; // [xsp+150h] [xbp+150h] BYREF __int64 v83; // [xsp+158h] [xbp+158h] void *v84; // [xsp+160h] [xbp+160h] v3 = (FLAlertLayer *)_stack_chk_guard; if ( a2 && (*((_QWORD *)this + 127) = a2, FLAlertLayer::keyboardRaise(v3, 160.0, 65.0), v5 = v4, v6 = (cocos2d::CCDirector *)SetupTriggerPopup::init(this, nullptr, nullptr, 320.0, 160.0, 1u, v4), v7 = (unsigned __int8)v6, (_BYTE)v6) ) { v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v74, v9); v82 = 0; v10 = v5 + (float)(*((float *)&v74 + 1) * 0.5); v83 = 0; v11 = *(float *)&v74 * 0.5; v84 = nullptr; std::string::__init(&v82, "Search Conversation", 0x13u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v82); if ( (v82 & 1) != 0 ) operator delete(v84); v12 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)this + 544); v13 = 0; (*(void (__fastcall **)(float))(*(_QWORD *)v12 + 160LL))(0.8); v14 = CCMenuItemSpriteExtra::create(v12, 0, (__int64)this, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v14, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v14); v15 = *((cocos2d::CCNode **)this + 69); v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, (float)(v11 - 160.0) + 8.0, (float)(v10 + 80.0) - 12.0); cocos2d::CCNode::convertToNodeSpace(v79, v15, (const cocos2d::CCPoint *)v76); v16(v14, v79); v17 = v11 + 160.0; v18 = v11 - 38.0; v19 = v17 - 52.0; v20 = v10 + 16.0; v21 = v10 - 30.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v79, 0.0, 0.0, 40.0, 40.0); v22 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v79); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v79, 180.0, 26.0); v23(v22, v79); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 960LL); LOWORD(v79[0]) = 13405; BYTE2(v79[0]) = 31; v24(v22, v79); v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, v18, v20); v25(v22, v79); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v22, 0); InputNode = GameToolbox::createInputNode( (GameToolbox *)"Search term", 168.0, 26.0, (const char *)&dword_40, v26, v27, v28); *((_QWORD *)this + 128) = InputNode; v30 = InputNode; v31 = v22; v32 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 192LL); v33 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v30 + 184LL); v34 = v32(v31); v33(v30, v34); CCTextInputNode::setUnicodeText(*((__int64 **)this + 128), 1); *(_QWORD *)(*((_QWORD *)this + 128) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 128), 5); v36 = ButtonSprite::create( (ButtonSprite *)"Search", (const char *)&dword_44 + 2, 0, 1, 0.55, "bigFont.fnt", "GJ_button_01.png", v35, 28.0); v37 = CCMenuItemSpriteExtra::create(v36, 0, (__int64)this, (__int64)ThreadSearchPopup::onSearch, 0); CCMenuItemSpriteExtra::setSizeMult(v37, 1.1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v37); v38 = *((cocos2d::CCNode **)this + 69); v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, v19, v20); cocos2d::CCNode::convertToNodeSpace(v79, v38, (const cocos2d::CCPoint *)v76); v39(v37, v79); v75 = time(nullptr); v40 = localtime(&v75); v41 = v40->tm_year + 1900; *((_DWORD *)this + 264) = v41; v42 = v18 - 90.0; v77[0] = v41; tm_mday = v40->tm_mday; v77[1] = v40->tm_mon + 1; v77[2] = tm_mday; v80[0] = "Year"; v80[1] = "Month"; v80[2] = "Day"; v78[1] = 1109393408; v78[2] = 1109393408; v78[0] = 1113063424; do { v44 = *(float *)&v78[v13]; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v79, 0.0, 0.0, 40.0, 40.0); v45 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v79); v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v79, v44, 26.0); v46(v45, v79); v47 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 960LL); LOWORD(v79[0]) = 13405; BYTE2(v79[0]) = 31; v47(v45, v79); v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, v42 + (float)(v44 * 0.5), v21); v48(v45, v79); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v45, 0); v49 = (CCTextInputNode *)v80[v13]; v51 = CCTextInputNode::create(v49, v44 - 10.0, 26.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v50); CCTextInputNode::setMaxLabelScale((CCTextInputNode *)v51, 0.5); CCTextInputNode::setMaxLabelWidth((CCTextInputNode *)v51, v44 - 14.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v51 + 576) + 344LL))(*(_QWORD *)(v51 + 576), 0); if ( v13 ) v52 = 2; else v52 = 4; *(_DWORD *)(v51 + 592) = v52; LOBYTE(v73) = -61; *(_WORD *)((char *)&v73 + 1) = 16748; CCTextInputNode::setLabelPlaceholderColor(v51, v73); CCTextInputNode::setLabelPlaceholderScale((CCTextInputNode *)v51, 0.5); v53 = v45; v54 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v45 + 192LL); v55 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v51 + 184LL); v56 = v54(v53); v55(v51, v56); v82 = 0; v83 = 0; v84 = nullptr; std::string::__init(&v82, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v51, (__int64)&v82); if ( (v82 & 1) != 0 ) operator delete(v84); *(_DWORD *)(v51 + 700) = 3; v57 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)v77[v13]); CString = (const char *)cocos2d::CCString::getCString(v57); v82 = 0; v83 = 0; v84 = nullptr; v72 = (char *)CString; v59 = strlen(CString); std::string::__init(&v82, v72, v59); CCTextInputNode::setString((_QWORD *)v51, (char *)&v82); if ( (v82 & 1) != 0 ) operator delete(v84); *(_QWORD *)(v51 + 584) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v51, 5); v81[v13++] = v51; v61 = cocos2d::CCLabelBMFont::create(v49, "chatFont.fnt", v60); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v61 + 160LL))(v61, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 1024LL))(v61, 4294967200LL); v62 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, v42 + (float)(v44 * 0.5), v21 + 20.0); v62(v61, v79); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v61, 1); v42 = v42 + (float)(v44 + 6.0); } while ( v13 != 3 ); v63 = v81[1]; v64 = (float)*((int *)this + 264); v65 = v81[2]; v66 = v81[0]; *((_QWORD *)this + 129) = v81[0]; *((_QWORD *)this + 130) = v63; *((_QWORD *)this + 131) = v65; CCTextInputNode::setWheelRange(v66, 2000.0, v64); CCTextInputNode::setWheelRange(*((_QWORD *)this + 130), 1.0, 12.0); ThreadSearchPopup::clampDayField(this); v68 = ButtonSprite::create( (ButtonSprite *)"Go", (const char *)&dword_44 + 2, 0, 1, 0.55, "bigFont.fnt", "GJ_button_01.png", v67, 28.0); v69 = CCMenuItemSpriteExtra::create(v68, 0, (__int64)this, (__int64)ThreadSearchPopup::onGoToDate, 0); CCMenuItemSpriteExtra::setSizeMult(v69, 1.1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v69); v70 = *((cocos2d::CCNode **)this + 69); v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v69 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v76, v19, v21); cocos2d::CCNode::convertToNodeSpace(v79, v70, (const cocos2d::CCPoint *)v76); v71(v69, v79); } else { return 0; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source