// // ShareCommentLayer::init from 0x1005dfa80 to 0x1005e0a2d (4013 bytes) // // 1 xrefs: // > ShareCommentLayer::create @ 0x1005df9cb // // 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 // _BOOL8 __fastcall ShareCommentLayer::init(__int64 a1, __int64 a2, int a3, int a4, int a5, __int64 a6) { cocos2d::extension::CCScale9Sprite *v10; // rbx int v11; // eax float v12; // xmm1_4 const char *v13; // r13 cocos2d::CCLabelBMFont *v14; // r13 GameLevelManager *v15; // rax char v16; // al std::string::size_type size; // rbx const std::string::value_type *data; // r14 const char *v19; // rdi cocos2d::CCLabelBMFont *v20; // rbx unsigned __int64 *v21; // r14 cocos2d::CCMenu *v22; // rax __int64 v23; // rdi cocos2d::CCMenu *v24; // rsi char *v25; // rbx const cocos2d::CCPoint *v26; // r12 char *v27; // rdi const std::string::value_type *CString; // rsi cocos2d::CCPoint *v29; // r14 cocos2d::CCSprite *v30; // rbx cocos2d::CCPoint v31; // rax CCMenuItemToggler *v32; // r14 const cocos2d::CCPoint *v33; // r13 cocos2d::CCLabelBMFont *v34; // rax __int64 v35; // rbx __int64 v36; // r14 float *v37; // rax __int64 v38; // rdi void (__fastcall *v39)(__int64, __int64); // rax char *v40; // rbx cocos2d::CCString *v41; // rax cocos2d::CCSprite *v42; // rax CCMenuItemSpriteExtra *v43; // rbx const cocos2d::CCPoint *v44; // r12 cocos2d::CCArray *v45; // r13 const char *v46; // rbx const char *v47; // r14 ButtonSprite *v48; // rax CCMenuItemSpriteExtra *v49; // r14 ButtonSprite *v50; // rax CCMenuItemSpriteExtra *v51; // rbx const cocos2d::CCPoint *v52; // rbx __int64 v53; // rax cocos2d::CCPoint v54; // xmm1_8 cocos2d::extension::CCScale9Sprite *v55; // rbx std::string *v56; // r12 int v57; // eax const std::string::value_type *v58; // rsi const char *v59; // rdi CCTextInputNode *v60; // rax _QWORD *v61; // rdi std::string *v62; // rbx char *v63; // rbx cocos2d::CCString *v64; // rax const char *v65; // rax cocos2d::CCLabelBMFont *v66; // rax __int64 v67; // rbx __m128 v68; // xmm0 __int64 v69; // rbx __int64 v70; // rcx CCTextInputNode *v71; // rbx unsigned __int64 v72; // rdx __int64 v73; // rax char v75; // [rsp+0h] [rbp-180h] float v76; // [rsp+8h] [rbp-178h] BYREF __int128 v77; // [rsp+10h] [rbp-170h] BYREF void *v78; // [rsp+20h] [rbp-160h] std::string v79; // [rsp+28h] [rbp-158h] BYREF std::string v80; // [rsp+40h] [rbp-140h] BYREF std::string __str; // [rsp+60h] [rbp-120h] BYREF __m128 v82; // [rsp+80h] [rbp-100h] BYREF void *v83; // [rsp+90h] [rbp-F0h] float v84[2]; // [rsp+A0h] [rbp-E0h] BYREF unsigned __int64 v85[2]; // [rsp+A8h] [rbp-D8h] BYREF float v86; // [rsp+B8h] [rbp-C8h] BYREF __int128 v87; // [rsp+C0h] [rbp-C0h] BYREF void *v88; // [rsp+D0h] [rbp-B0h] __int64 v89; // [rsp+D8h] [rbp-A8h] double v90; // [rsp+E0h] [rbp-A0h] BYREF float v91; // [rsp+E8h] [rbp-98h] float v92; // [rsp+ECh] [rbp-94h] std::string v93; // [rsp+F0h] [rbp-90h] BYREF float v94; // [rsp+10Ch] [rbp-74h] const cocos2d::CCPoint *v95; // [rsp+110h] [rbp-70h] std::string v96; // [rsp+118h] [rbp-68h] BYREF std::string v97; // [rsp+130h] [rbp-50h] BYREF float v98; // [rsp+148h] [rbp-38h] BYREF float v99; // [rsp+14Ch] [rbp-34h] bool inited; // [rsp+153h] [rbp-2Dh] float v101; // [rsp+154h] [rbp-2Ch] double v102; // 0:xmm0_8.8 double v103; // 0:xmm0_8.8 double v104; // 0:xmm0_8.8 cocos2d::CCRect v105; // 0:xmm0_8.8,8:xmm1_8.8 cocos2d::CCRect v106; // 0:xmm0_8.8,8:xmm1_8.8 v89 = a6; inited = FLAlertLayer::init_1((FLAlertLayer *)a1, 150); if ( !inited ) return inited; *(_DWORD *)(a1 + 660) = a5; *(_DWORD *)(a1 + 656) = a3; *(_DWORD *)(a1 + 664) = a4; cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v84); v105.origin = 0; v105.size = 0; sub_10028CC00((__int64)&v97, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v10 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v105); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v10->setOpacity)(v10, 255); v11 = *(_DWORD *)(a1 + 664); v94 = 60.0; if ( v11 == 2 ) { v12 = 160.0; LODWORD(v95) = 1109393408; v92 = -5.0; } else if ( v11 == 4 ) { v12 = 270.0; LODWORD(v95) = 0; v92 = 7.0; v94 = 180.0; } else { v12 = 135.0; v92 = 7.0; LODWORD(v95) = 1117782016; } v101 = v12; sub_10028CBF0((float *)&v97, 400.0, v12); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v10->setContentSize)(v10, &v97); (*(void (__fastcall **)(_QWORD, cocos2d::extension::CCScale9Sprite *, __int64))(**(_QWORD **)(a1 + 576) + 448LL))( *(_QWORD *)(a1 + 576), v10, 0xFFFFFFFFLL); sub_10028CBE0(&v98, v84[0] * 0.5, (float)(v84[1] * 0.5) + *(float *)&v95); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v10->setPosition)(v10, &v98); if ( (*(_BYTE *)a2 & 1) != 0 ) v13 = *(const char **)(a2 + 16); else v13 = (const char *)(a2 + 1); v14 = cocos2d::CCLabelBMFont::create_3(v13, "bigFont.fnt"); v101 = v101 * 0.5; sub_10028CBE0((float *)&v97, v98, (float)(v99 + v101) + -16.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v14->setPosition)(v14, &v97); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v14); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v14->setScale)(v14, 0.60000002); if ( *(_DWORD *)(a1 + 664) == 2 ) { v15 = GameLevelManager::sharedState(); GameLevelManager::tryGetUsername(&v97, (__int64)v15, *(_DWORD *)(a1 + 660), COERCE_DOUBLE(1058642330)); v16 = *(_BYTE *)&v97.__r_.__value_.__s.0 & 1; if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) != 0 ) { size = v97.__r_.__value_.__l.__size_; if ( !v97.__r_.__value_.__l.__size_ ) { LABEL_25: if ( v16 ) operator delete(v97.__r_.__value_.__l.__data_); goto LABEL_27; } } else { size = *(_BYTE *)&v97.__r_.__value_.__l.0 >> 1; if ( !(*(_BYTE *)&v97.__r_.__value_.__l.0 >> 1) ) goto LABEL_25; } if ( v16 ) data = v97.__r_.__value_.__l.__data_; else data = v97.__r_.__value_.__s.__data_; if ( size != 1 || *data != 45 ) { v96.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x1Au); v96.__r_.__value_.__r.__words[0] = 27; v96.__r_.__value_.__l.__size_ = 23; strcpy(v96.__r_.__value_.__l.__data_, "Send friend request to "); std::string::append(&v96, data, size); if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 ) v19 = v96.__r_.__value_.__l.__data_; else v19 = v96.__r_.__value_.__s.__data_; v20 = cocos2d::CCLabelBMFont::create_3(v19, "goldFont.fnt"); v21 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v14->getPosition)(v14); sub_10028CBE0((float *)v85, 0.0, -20.0); sub_10028CCE0((double *)&v93, v21, v85); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v20->setPosition)(v20, &v93); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v20); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v20->setScale)(v20, 0.60000002); if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v96.__r_.__value_.__l.__data_); v16 = *(_BYTE *)&v97.__r_.__value_.__s.0 & 1; } goto LABEL_25; } LABEL_27: *(_DWORD *)(a1 + 624) = -1; v22 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 544) = v22; v23 = *(_QWORD *)(a1 + 576); v24 = v22; (*(void (__fastcall **)(__int64, cocos2d::CCMenu *, __int64))(*(_QWORD *)v23 + 448LL))(v23, v22, 10); if ( a4 == 4 ) { v42 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png"); v43 = CCMenuItemSpriteExtra::create( v42, nullptr, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)ShareCommentLayer::onClear); (*(void (__fastcall **)(_QWORD, CCMenuItemSpriteExtra *))(**(_QWORD **)(a1 + 544) + 440LL))( *(_QWORD *)(a1 + 544), v43); v95 = *(const cocos2d::CCPoint **)(a1 + 544); v44 = *(const cocos2d::CCPoint **)(a1 + 576); sub_10028CBE0((float *)&v93, (float)(v98 + -200.0) + 18.0, (float)(v99 + v101) + -18.0); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v96, v44); *(cocos2d::CCPoint *)&v104 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v97, v95); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, double))v43->setPosition)(v43, &v97, v104); v45 = (cocos2d::CCArray *)sub_10071F9E0(v43, &v97); v97.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; strcpy(v97.__r_.__value_.__s.__data_, "Submit"); v96.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; strcpy(v96.__r_.__value_.__s.__data_, "Cancel"); std::string::assign(&v97, "Save"); v46 = v97.__r_.__value_.__s.__data_; v47 = v96.__r_.__value_.__s.__data_; } else if ( a4 ) { v45 = (cocos2d::CCArray *)sub_10071F9E0(v23, v24); v97.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; v46 = v97.__r_.__value_.__s.__data_; strcpy(v97.__r_.__value_.__s.__data_, "Submit"); v96.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; v47 = v96.__r_.__value_.__s.__data_; strcpy(v96.__r_.__value_.__s.__data_, "Cancel"); if ( a4 == 5 ) std::string::assign(&v97, "Create"); } else { LOBYTE(v87) = 26; strcpy((char *)&v87 + 1, "Comment Rules"); v79.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x108u); v79.__r_.__value_.__r.__words[0] = 265; v79.__r_.__value_.__l.__size_ = 259; strcpy( v79.__r_.__value_.__l.__data_, "1. Do not spam.\n" "2. Do not harass other players.\n" "3. Do not post inappropriate or controversial content.\n" "4. Do not try to bypass these rules.\n" "These rules and their enforcement are entirely at Elder Moderators' discretion."); v25 = InfoAlertButton::create(&v87, &v79, 1.0); if ( (*(_BYTE *)&v79.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v79.__r_.__value_.__l.__data_); if ( (v87 & 1) != 0 ) operator delete(v88); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 544) + 440LL))(*(_QWORD *)(a1 + 544), v25); v95 = *(const cocos2d::CCPoint **)(a1 + 544); v26 = *(const cocos2d::CCPoint **)(a1 + 576); sub_10028CBE0((float *)&v93, (float)(v98 + -200.0) + 4.0, (float)(v99 + v101) + -4.0); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v96, v26); *(cocos2d::CCPoint *)&v102 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v97, v95); v27 = v25; CString = (const std::string::value_type *)&v97; (*(void (__fastcall **)(char *, std::string *, double))(*(_QWORD *)v25 + 184LL))(v25, &v97, v102); if ( *(int *)(a1 + 660) > 0 ) { v29 = (cocos2d::CCPoint *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v30 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); v31 = *v29; v95 = v29; (*(void (__fastcall **)(cocos2d::CCPoint *, float))(*(_QWORD *)&v31 + 160LL))(v29, 0.60000002); ((void (__fastcall *)(cocos2d::CCSprite *, float))v30->setScale)(v30, 0.60000002); v32 = CCMenuItemToggler::create( v30, (cocos2d::CCNode *)v29, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)ShareCommentLayer::onPercent); (*(void (__fastcall **)(_QWORD, CCMenuItemToggler *))(**(_QWORD **)(a1 + 544) + 440LL))( *(_QWORD *)(a1 + 544), v32); sub_10028CBE0((float *)&v97, (float)(v98 + -200.0) + 20.0, (float)(v99 - v101) + 20.0); v33 = *(const cocos2d::CCPoint **)(a1 + 544); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v93, *(const cocos2d::CCPoint **)(a1 + 576)); *(cocos2d::CCPoint *)&v103 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v96, v33); ((void (__fastcall *)(CCMenuItemToggler *, std::string *, double))v32->setPosition)(v32, &v96, v103); CCMenuItemToggler::setSizeMult(v32, 1.5); v34 = cocos2d::CCLabelBMFont::create_3("%", "chatFont.fnt"); *(_QWORD *)(a1 + 736) = v34; (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v34); v35 = *(_QWORD *)(a1 + 736); sub_10028CBE0((float *)&v96, 0.0, 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v35 + 280LL))(v35, &v96); v36 = *(_QWORD *)(a1 + 736); v37 = (float *)(*(__int64 (__fastcall **)(const cocos2d::CCPoint *))(*(_QWORD *)v95 + 312LL))(v95); sub_10028CBE0((float *)&v93, (float)((float)(0.5 * *v37) * 0.60000002) + 4.0, 0.0); sub_10028CCE0((double *)&v96, (unsigned __int64 *)&v97, (unsigned __int64 *)&v93); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v36 + 184LL))(v36, &v96); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 736) + 160LL))(*(_QWORD *)(a1 + 736), 0.80000001); v38 = *(_QWORD *)(a1 + 736); v39 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 1008LL); if ( *(_BYTE *)(a1 + 753) == 1 ) { v39(v38, 255); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 736) + 1056LL))( *(_QWORD *)(a1 + 736), &unk_1008218CC); v40 = *(char **)(a1 + 736); v41 = (cocos2d::CCString *)sub_1007AB580("%i%%", v75); v27 = v40; CString = cocos2d::CCString::getCString(v41); (*(void (__fastcall **)(char *, const std::string::value_type *))(*(_QWORD *)v40 + 912LL))(v40, CString); } else { v39(v38, 125); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 736) + 1056LL))( *(_QWORD *)(a1 + 736), &unk_1008218CF); v27 = *(char **)(a1 + 736); CString = "%"; (*(void (__fastcall **)(char *, const std::string::value_type *))(*(_QWORD *)v27 + 912LL))(v27, "%"); } } v45 = (cocos2d::CCArray *)sub_10071F9E0(v27, CString); v97.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; v46 = v97.__r_.__value_.__s.__data_; strcpy(v97.__r_.__value_.__s.__data_, "Submit"); v96.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; v47 = v96.__r_.__value_.__s.__data_; strcpy(v96.__r_.__value_.__s.__data_, "Cancel"); } if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 ) v47 = v96.__r_.__value_.__l.__data_; v48 = sub_100092A30(v47); v49 = CCMenuItemSpriteExtra::create( v48, nullptr, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)ShareCommentLayer::onClose); (*(void (__fastcall **)(_QWORD, CCMenuItemSpriteExtra *))(**(_QWORD **)(a1 + 544) + 440LL))( *(_QWORD *)(a1 + 544), v49); sub_10071FCD0(v45, v49); if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) != 0 ) v46 = v97.__r_.__value_.__l.__data_; v50 = sub_100092A30(v46); v51 = CCMenuItemSpriteExtra::create( v50, nullptr, (cocos2d::CCObject *)a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)ShareCommentLayer::onShare); (*(void (__fastcall **)(_QWORD, CCMenuItemSpriteExtra *))(**(_QWORD **)(a1 + 544) + 440LL))( *(_QWORD *)(a1 + 544), v51); sub_10071FCD0(v45, v51); v52 = *(const cocos2d::CCPoint **)(a1 + 544); *(float *)&v95 = v98; v91 = v99; v53 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 576) + 192LL))(*(_QWORD *)(a1 + 576)); v54 = (cocos2d::CCPoint)LODWORD(v91); v54.x = (float)((float)(v91 - v101) + 24.0) + *(float *)(v53 + 4); sub_10028CBE0((float *)v85, *(float *)&v95, v54.x); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v93, v52); GameToolbox::alignItemsHorisontally(v45, 15.0, v54, (bool)&v93); sub_10028CC00((__int64)v85, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v106.size = (cocos2d::CCSize)LODWORD(v92); v106.size.width = v92 + v99; sub_10028CBE0(&v86, v98, v92 + v99); *(double *)&v106.origin = sub_10028D180((__m128 *)&v93, v85); v55 = cocos2d::extension::CCScale9Sprite::create_2("square02b_001.png", v106); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v55->setOpacity)(v55, 100); sub_10028CBF0(&v76, 360.0, v94); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v55->setContentSize)(v55, &v76); (*(void (__fastcall **)(_QWORD, cocos2d::extension::CCScale9Sprite *, __int64))(**(_QWORD **)(a1 + 576) + 448LL))( *(_QWORD *)(a1 + 576), v55, 1); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v55->setPosition)(v55, &v86); v93.__r_.__value_.__s.__data_[1] = 0; *(_WORD *)&v93.__r_.__value_.__l.0 = 0; v56 = &v93; ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v55->setColor)(v55, &v93); v93.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x68u); v93.__r_.__value_.__r.__words[0] = 105; v93.__r_.__value_.__l.__size_ = 97; strcpy( v93.__r_.__value_.__l.__data_, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~"); v57 = *(_DWORD *)(a1 + 664); if ( v57 == 2 ) { v58 = "[Optional Message]"; } else { if ( v57 == 5 ) { std::string::assign((std::string *)(a1 + 704), "Insert List Name"); v58 = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; goto LABEL_51; } v58 = "Insert comment"; } v56 = (std::string *)(a1 + 704); LABEL_51: std::string::assign(v56, v58); v94 = v94 + -10.0; if ( (*(_BYTE *)(a1 + 704) & 1) != 0 ) v59 = *(const char **)(a1 + 720); else v59 = (const char *)(a1 + 705); v60 = CCTextInputNode::create(360.0, v94, v59, "Thonburi", 24, nullptr); *(_QWORD *)(a1 + 672) = v60; v60->m_filterSwearWords = 0; (*(void (__fastcall **)(_QWORD, CCTextInputNode *, __int64))(**(_QWORD **)(a1 + 576) + 448LL))( *(_QWORD *)(a1 + 576), v60, 20); v61 = *(_QWORD **)(a1 + 672); v61[68] = a1 + 632; (*(void (__fastcall **)(_QWORD *, float *))(*v61 + 184LL))(v61, &v86); v62 = *(std::string **)(a1 + 672); if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) != 0 ) sub_100006B70(&v80, v93.__r_.__value_.__l.__data_, v93.__r_.__value_.__l.__size_, COERCE_DOUBLE(1135869952)); else v80 = v93; CCTextInputNode::setAllowedChars(v62, &v80); if ( (*(_BYTE *)&v80.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v80.__r_.__value_.__l.__data_); *(_DWORD *)(*(_QWORD *)(a1 + 672) + 552LL) = *(_DWORD *)(a1 + 656); LOWORD(v77) = 0; sub_10028CBE0((float *)&v90, 0.5, 0.5); v63 = TextArea::create(&v77, (__int64)"chatFont.fnt", &v90, 1u, 1.0, 295.0, 20.0); if ( (v77 & 1) != 0 ) operator delete(v78); CCTextInputNode::addTextArea(*(CCTextInputNode **)(a1 + 672), (TextArea *)v63); CCTextInputNode::setLabelPlaceholderColor(*(CCTextInputNode **)(a1 + 672), (cocos2d::ccColor3B)-3618616); v64 = (cocos2d::CCString *)sub_1007AB580("%i", v75); v65 = cocos2d::CCString::getCString(v64); v66 = cocos2d::CCLabelBMFont::create_3(v65, "chatFont.fnt"); *(_QWORD *)(a1 + 728) = v66; (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 576) + 448LL))( *(_QWORD *)(a1 + 576), v66, 2); v67 = *(_QWORD *)(a1 + 728); sub_10028CBE0((float *)&v90, 1.0, 0.5); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v67 + 280LL))(v67, &v90); v68 = (__m128)LODWORD(v98); v68.f32[0] = (float)(v98 + 200.0) + -10.0; (*(void (__fastcall **)(_QWORD, float, float))(**(_QWORD **)(a1 + 728) + 200LL))( *(_QWORD *)(a1 + 728), v68.f32[0], (float)(v101 + v99) + -14.0); if ( (*(_BYTE *)v89 & 1) != 0 ) { sub_100006B70(&__str, *(const void **)(v89 + 16), *(_QWORD *)(v89 + 8), *(double *)v68.i64); } else { __str.__r_.__value_.__r.__words[2] = *(_QWORD *)(v89 + 16); v68 = *(__m128 *)v89; *(_OWORD *)&__str.__r_.__value_.__l.0 = *(_OWORD *)v89; } std::string::operator=((std::string *)(a1 + 680), &__str); v69 = v89; ShareCommentLayer::updateCharCountLabel((ShareCommentLayer *)a1); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (*(_BYTE *)v69 & 1) != 0 ) { v72 = *(_QWORD *)(v69 + 8); if ( !v72 ) goto LABEL_73; v73 = v69; v71 = *(CCTextInputNode **)(a1 + 672); sub_100006B70(&v82, *(const void **)(v73 + 16), v72, *(double *)v68.i64); } else { if ( !*(_BYTE *)v69 ) goto LABEL_73; v70 = v69; v71 = *(CCTextInputNode **)(a1 + 672); v83 = *(void **)(v70 + 16); v68 = *(__m128 *)v70; v82 = *(__m128 *)v70; } CCTextInputNode::setString(v71, (__int64)&v82, v68); if ( (v82.i8[0] & 1) != 0 ) operator delete(v83); LABEL_73: if ( (*(_BYTE *)&v93.__r_.__value_.__s.0 & 1) == 0 ) { if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_75; LABEL_79: operator delete(v96.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) == 0 ) return inited; goto LABEL_76; } operator delete(v93.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v96.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_79; LABEL_75: if ( (*(_BYTE *)&v97.__r_.__value_.__s.0 & 1) != 0 ) LABEL_76: operator delete(v97.__r_.__value_.__l.__data_); return inited; }
GD Web Decomp Icon

GD Web Decomp

Raw Source