// // GJSmartTemplate::generateRemapDict from 0x100426ee0 to 0x1004272d4 (1012 bytes) // // 0 xrefs: // // 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 // cocos2d::CCDictionary *__fastcall GJSmartTemplate::generateRemapDict() { double v0; // xmm0_8 cocos2d::CCDictionary *v1; // rbx cocos2d::CCNode *v2; // rax cocos2d::CCArray *v3; // r15 __int64 v4; // rsi cocos2d::CCString *v5; // rax const char *CString; // r13 size_t v7; // rax std::string::size_type v8; // rbx char *data; // r14 __int64 v10; // rax size_t v11; // r12 std::string::value_type v12; // r13 std::string::value_type v13; // r15 std::string::value_type v14; // bl std::string::value_type v15; // r14 int v16; // esi std::string::reference v17; // rax char v18; // cl char v19; // r12 unsigned __int8 v20; // bl unsigned __int8 v21; // r15 unsigned __int8 v22; // r14 const std::string::value_type *v23; // rsi std::string::size_type v24; // rdx cocos2d::CCObject *v25; // rax unsigned int v26; // eax size_t v28[3]; // [rsp+18h] [rbp-D8h] BYREF __int64 v29; // [rsp+30h] [rbp-C0h] cocos2d::CCArray *v30; // [rsp+38h] [rbp-B8h] cocos2d::CCDictionary *v31; // [rsp+40h] [rbp-B0h] std::string v32; // [rsp+48h] [rbp-A8h] BYREF std::string::value_type __s[16]; // [rsp+60h] [rbp-90h] BYREF void *__p; // [rsp+70h] [rbp-80h] std::string __dst; // [rsp+80h] [rbp-70h] BYREF int v36; // [rsp+98h] [rbp-58h] std::string::value_type v37; // [rsp+9Eh] [rbp-52h] std::string::value_type v38; // [rsp+9Fh] [rbp-51h] _BYTE v39[32]; // [rsp+A0h] [rbp-50h] BYREF v31 = cocos2d::CCDictionary::create(); v1 = cocos2d::CCDictionary::create(); v2 = cocos2d::CCNode::create(); sub_100421D40(8u, (__int64)v39, 0, (__int64)v1, v2, v0); v3 = cocos2d::CCDictionary::allKeys(v1); if ( (unsigned int)sub_100720070(v3) ) { v4 = 0; v30 = v3; while ( 1 ) { v29 = v4; v5 = cocos2d::CCArray::stringAtIndex(v3, v4); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v0); v8 = v7; if ( v7 >= 0x17 ) break; __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v7); data = __dst.__r_.__value_.__s.__data_; if ( v7 ) goto LABEL_10; LABEL_11: data[v8] = 0; v12 = *std::string::at(&__dst, 0); LOBYTE(v36) = *std::string::at(&__dst, 1u); v37 = *std::string::at(&__dst, 2u); v38 = *std::string::at(&__dst, 3u); v13 = *std::string::at(&__dst, 4u); v14 = *std::string::at(&__dst, 5u); v15 = *std::string::at(&__dst, 6u); v16 = 7; v17 = std::string::at(&__dst, 7u); if ( v13 == 48 ) { v16 = 0; v18 = 0; v19 = v36; if ( v14 != 48 ) goto LABEL_13; } else { LOBYTE(v16) = v37 != 48 && v12 != 48; v18 = !(_BYTE)v16; v19 = v36; if ( v14 != 48 ) { LABEL_13: v20 = v38 != 48 && v12 != 48; v18 |= !v20; if ( v15 != 48 ) goto LABEL_14; goto LABEL_20; } } v20 = 0; if ( v15 != 48 ) { LABEL_14: v21 = v37 != 48 && v19 != 48; v18 |= !v21; if ( *v17 != 48 ) goto LABEL_15; goto LABEL_21; } LABEL_20: v21 = 0; if ( *v17 != 48 ) { LABEL_15: v22 = v38 != 48 && v19 != 48; if ( v18 & 1 | (v22 == 0) ) { v36 = v16; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_23; goto LABEL_17; } goto LABEL_33; } LABEL_21: if ( (v18 & 1) != 0 ) { v22 = 0; v36 = v16; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_23: sub_100006B70(__s, __dst.__r_.__value_.__l.__data_, __dst.__r_.__value_.__l.__size_, v0); goto LABEL_24; } LABEL_17: __p = __dst.__r_.__value_.__l.__data_; v0 = *(double *)__dst.__r_.__value_.__r.__words; *(_OWORD *)__s = *(_OWORD *)&__dst.__r_.__value_.__l.0; LABEL_24: *(_WORD *)&v32.__r_.__value_.__l.0 = 12546; v32.__r_.__value_.__s.__data_[1] = 0; if ( (__s[0] & 1) != 0 ) { v23 = (const std::string::value_type *)__p; v24 = *(_QWORD *)&__s[8]; } else { v24 = (unsigned __int8)__s[0] >> 1; v23 = &__s[1]; } std::string::append(&v32, v23, v24); if ( (__s[0] & 1) != 0 ) operator delete(__p); GJSmartTemplate::keyFromNeighborsOld(v28, v12 != 48, v19 != 48, v37 != 48, v38 != 48, v36, v0, v20, v21, v22); v25 = (cocos2d::CCObject *)sub_1007AB360(v28); cocos2d::CCDictionary::setObject_1((__int64)v31, v25, (char *)&v32); if ( (v28[0] & 1) != 0 ) operator delete((void *)v28[2]); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v32.__r_.__value_.__l.__data_); } LABEL_33: if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v3 = v30; v26 = sub_100720070(v30); v4 = (unsigned int)(v29 + 1); if ( (unsigned int)v4 >= v26 ) return v31; } v10 = v7 | 7; v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = v10 + 1; data = (char *)operator new(v11); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v11 | 1; __dst.__r_.__value_.__l.__size_ = v8; LABEL_10: memmove(data, CString, v8); goto LABEL_11; } return v31; }
GD Web Decomp Icon

GD Web Decomp

Raw Source