// // cocos2d::CCTMXObjectGroup::objectNamed from 0xdac9e4 to 0xdacb48 (356 bytes) // // 1 xrefs: // > @ 0xe8de0 // // 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:35 +0000 // __int64 __fastcall cocos2d::CCTMXObjectGroup::objectNamed(cocos2d::CCTMXObjectGroup *this, const char *a2) { cocos2d::CCArray *v4; // x0 __int64 v5; // x0 unsigned int *v6; // x1 __int64 *v7; // x20 __int64 v8; // x0 char *v9; // x22 __int64 v10; // x21 __int64 v11; // x27 size_t v12; // x0 size_t v13; // x2 const void *v15; // x0 _QWORD v16[2]; // [xsp+60h] [xbp+60h] BYREF void *v17; // [xsp+70h] [xbp+70h] v4 = *((cocos2d::CCArray **)this + 9); if ( !v4 ) return 0; if ( !(unsigned int)cocos2d::CCArray::count(v4) ) return 0; v5 = *((_QWORD *)this + 9); if ( !v5 ) return 0; v6 = *(unsigned int **)(v5 + 56); if ( !*v6 ) return 0; v7 = *((__int64 **)v6 + 2); v8 = 8LL * *v6 - 8; v9 = (char *)v7 + v8; if ( v7 > (__int64 *)((char *)v7 + v8) ) return 0; v10 = *v7; if ( !*v7 ) return 0; while ( 1 ) { v16[0] = 8; v16[1] = 0; v17 = nullptr; *(_DWORD *)((char *)v16 + 1) = *(_DWORD *)"name"; v11 = cocos2d::CCDictionary::objectForKey(v10, (__int64)v16); if ( (v16[0] & 1) != 0 ) operator delete(v17); if ( !v11 ) goto LABEL_12; v12 = strlen(a2); if ( (*(_BYTE *)(v11 + 56) & 1) != 0 ) break; v13 = *(_BYTE *)(v11 + 56) >> 1; if ( v13 == v12 ) { v15 = (const void *)(v11 + 57); goto LABEL_17; } LABEL_12: if ( v9 >= (char *)++v7 ) { v10 = *v7; if ( *v7 ) continue; } return 0; } v13 = *(_QWORD *)(v11 + 64); if ( v13 != v12 ) goto LABEL_12; v15 = *(const void **)(v11 + 72); LABEL_17: if ( v13 && memcmp(v15, a2, v13) ) goto LABEL_12; return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source