// // GJBaseGameLayer::loadGroupParentsFromString from 0x10011bd00 to 0x10011c07f (895 bytes) // // 1 xrefs: // > GameObject::objectFromVector @ 0x100691d2b // // This function is hookable on this platform (idp: pc, 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 12:24:36 +0000 // void __fastcall GJBaseGameLayer::loadGroupParentsFromString(__int64 a1, __int64 a2, const std::string *a3) { const std::string *v3; // r12 __int64 v4; // r13 unsigned int v5; // eax std::string::size_type v6; // rbx unsigned int v7; // r14d std::string::size_type size; // r14 std::string::pointer v9; // r15 size_t v10; // r14 char *v11; // rbx char v12; // r15 const char *v13; // rdi bool v14; // bl const std::string *v15; // r13 size_t v16; // r12 signed int v17; // r14d unsigned __int64 v18; // rdi unsigned __int64 v19; // r9 unsigned __int64 v20; // rsi __int64 **v21; // rax __int64 *v22; // r8 unsigned __int64 v23; // rdi unsigned __int64 v24; // rax __int64 v25; // rax char *data; // [rsp+8h] [rbp-68h] std::string::size_type v28; // [rsp+18h] [rbp-58h] size_t __dst; // [rsp+20h] [rbp-50h] BYREF size_t v30; // [rsp+28h] [rbp-48h] void *__p; // [rsp+30h] [rbp-40h] __int64 v32; // [rsp+38h] [rbp-38h] std::string::size_type v33; // [rsp+40h] [rbp-30h] v3 = a3; v4 = a2; v32 = a1; v5 = (unsigned int)a3->__r_.__value_.__l.0; if ( (v5 & 1) == 0 ) { if ( !(v5 >> 1) ) return; goto LABEL_5; } if ( a3->__r_.__value_.__l.__size_ ) { LABEL_5: v33 = 0; v6 = std::string::find(a3, 46, 0); data = v3->__r_.__value_.__s.__data_; do { v7 = (unsigned int)v3->__r_.__value_.__l.0; if ( (v7 & 1) != 0 ) { size = v3->__r_.__value_.__l.__size_; if ( size < v33 ) LABEL_60: sub_100056810(); v9 = v3->__r_.__value_.__l.__data_; } else { size = v7 >> 1; v9 = data; if ( v33 > size ) goto LABEL_60; } v10 = size - v33; if ( v10 >= v6 - v33 ) v10 = v6 - v33; if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v28 = v6; if ( v10 >= 0x17 ) { v15 = v3; v16 = (v10 | 7) + 1; if ( (v10 | 7) == 0x17 ) v16 = 26; v11 = (char *)operator new(v16); __p = v11; __dst = v16 + 1; v3 = v15; v4 = a2; v30 = v10; } else { LOBYTE(__dst) = 2 * v10; v11 = (char *)&__dst + 1; if ( !v10 ) { BYTE1(__dst) = 0; v12 = __dst; if ( (__dst & 1) == 0 ) goto LABEL_19; goto LABEL_25; } } memmove(v11, &v9[v33], v10); v11[v10] = 0; v12 = __dst; if ( (__dst & 1) == 0 ) { LABEL_19: v13 = (char *)&__dst + 1; if ( v12 ) goto LABEL_20; goto LABEL_26; } LABEL_25: v13 = (const char *)__p; if ( v30 ) { LABEL_20: v14 = *v13 == 43; goto LABEL_27; } LABEL_26: v14 = 0; LABEL_27: v17 = atoi(v13); GJBaseGameLayer::setGroupParent(v32, v4, v17); if ( v14 ) { v18 = *(_QWORD *)(v32 + 3720); if ( v18 ) { v19 = (0x101010101010101LL * ((((v18 - ((v18 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v18 - ((v18 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((v18 - ((v18 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v18 - ((v18 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v19 > 1 ) { v20 = v17; if ( v18 <= v17 ) { if ( (v18 | v17) >> 32 ) v20 = v17 % v18; else v20 = v17 % (unsigned int)v18; } } else { v20 = v17 & (v18 - 1); } v21 = *(__int64 ***)(*(_QWORD *)(v32 + 3712) + 8 * v20); if ( v21 ) { v22 = *v21; if ( *v21 ) { if ( (unsigned int)v19 < 2 ) { v23 = v18 - 1; while ( 1 ) { v25 = v22[1]; if ( v25 == v17 ) { if ( *((_DWORD *)v22 + 4) == v17 ) goto LABEL_54; } else if ( (v23 & v25) != v20 ) { goto LABEL_53; } v22 = (__int64 *)*v22; if ( !v22 ) goto LABEL_53; } } while ( 1 ) { v24 = v22[1]; if ( v24 == v17 ) { if ( *((_DWORD *)v22 + 4) == v17 ) goto LABEL_54; goto LABEL_40; } if ( v24 < v18 ) goto LABEL_45; if ( (v18 | v24) >> 32 ) break; if ( (unsigned int)v24 % (unsigned int)v18 != v20 ) goto LABEL_53; LABEL_40: v22 = (__int64 *)*v22; if ( !v22 ) goto LABEL_53; } v24 %= v18; LABEL_45: if ( v24 != v20 ) goto LABEL_53; goto LABEL_40; } } } LABEL_53: GJBaseGameLayer::promoteGroupParent(v32, v4, v17); } LABEL_54: if ( v28 == -1 ) { v6 = -1; if ( (v12 & 1) == 0 ) continue; } else { v33 = v28 + 1; v6 = std::string::find(v3, 46, v28 + 1); if ( (v12 & 1) == 0 ) continue; } operator delete(__p); } while ( v28 != -1 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source