// // cocos2d::CCTMXTiledMap::objectGroupNamed from 0xdad3b0 to 0xdad5b0 (512 bytes) // // 1 xrefs: // > @ 0xb1238 // // 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:08:36 +0000 // __int64 __fastcall cocos2d::CCTMXTiledMap::objectGroupNamed(cocos2d::CCTMXTiledMap *this, const char *a2) { size_t v3; // x0 size_t v4; // x19 const char *v5; // x1 char *v6; // x3 cocos2d::CCArray *v7; // x0 __int64 v8; // x0 unsigned int *v9; // x1 __int64 *v10; // x20 __int64 v11; // x0 char *v12; // x22 __int64 v13; // x19 size_t v14; // x27 unsigned __int64 v15; // x23 int v16; // w24 const char *v17; // x21 unsigned __int64 v19; // x0 __int64 v20; // x20 char *v21; // x0 unsigned __int64 v22; // x28 size_t v23; // x2 char *v24; // x0 char *v26; // [xsp+68h] [xbp+68h] __int64 v27; // [xsp+70h] [xbp+70h] BYREF size_t v28; // [xsp+78h] [xbp+78h] void *v29; // [xsp+80h] [xbp+80h] v27 = 0; v28 = 0; v29 = nullptr; v3 = strlen(a2); v4 = v3; v5 = a2; if ( v3 > 0x16 ) { v19 = (v3 + 16) & 0xFFFFFFFFFFFFFFF0LL; v20 = v19 | 1; v21 = (char *)operator new(v19); v27 = v20; v5 = a2; v6 = v21; v29 = v21; v28 = v4; } else { LOBYTE(v27) = 2 * v3; v6 = (char *)&v27 + 1; if ( !v3 ) goto LABEL_3; } v6 = (char *)memcpy(v6, v5, v4); LABEL_3: v6[v4] = 0; v7 = *((cocos2d::CCArray **)this + 42); if ( !v7 || !(unsigned int)cocos2d::CCArray::count(v7) || (v8 = *((_QWORD *)this + 42)) == 0 || (v9 = *(unsigned int **)(v8 + 56), !*v9) || (v10 = *((__int64 **)v9 + 2), v11 = 8LL * *v9 - 8, v12 = (char *)v10 + v11, v10 > (__int64 *)((char *)v10 + v11)) || (v13 = *v10) == 0 ) { v13 = 0; v16 = v27 & 1; goto LABEL_15; } v14 = v28; v15 = (unsigned __int8)v27 >> 1; v16 = v27 & 1; v26 = (char *)v29; if ( (v27 & 1) != 0 ) v15 = v28; while ( 1 ) { if ( (*(_BYTE *)(v13 + 80) & 1) != 0 ) { v17 = *(const char **)(v13 + 96); if ( v15 != strlen(v17) ) goto LABEL_13; } else { v17 = (const char *)(v13 + 81); if ( v15 != strlen((const char *)(v13 + 81)) ) goto LABEL_13; } if ( (v27 & 1) == 0 ) { v22 = v15; v24 = (char *)&v27 + 1; v23 = v15; if ( !v15 ) goto LABEL_15; LABEL_32: if ( memcmp(v24, v17, v23) ) goto LABEL_13; goto LABEL_33; } if ( v14 == -1 ) v22 = -1; else v22 = v15; if ( v15 > v22 ) v23 = v22; else v23 = v15; if ( v23 ) { v24 = v26; goto LABEL_32; } LABEL_33: if ( v15 <= v22 && v15 >= v22 ) goto LABEL_15; LABEL_13: if ( v12 < (char *)++v10 ) break; v13 = *v10; if ( !*v10 ) goto LABEL_15; } v13 = 0; LABEL_15: if ( v16 ) operator delete(v29); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source