// // sub_897954 from 0x897954 to 0x897bec (664 bytes) // // 3 xrefs: // > RandTriggerGameObject::customObjectSetup @ 0x89bb30 // > SequenceTriggerGameObject::customObjectSetup @ 0x89be44 // > SpawnTriggerGameObject::customObjectSetup @ 0x89c2d4 // // 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 12:56:10 +0000 // cocos2d::CCArray *__fastcall sub_897954(unsigned __int8 *a1) { cocos2d::CCArray *v2; // x25 int v3; // w0 __int64 v4; // x24 _BYTE *v5; // x19 __int64 v6; // x21 unsigned __int64 v7; // x19 int v8; // w1 const char *v9; // x1 size_t v10; // x0 cocos2d::CCObject *v11; // x0 unsigned __int8 *v12; // x2 unsigned __int64 v13; // x0 unsigned __int8 *v14; // x3 unsigned __int8 *v15; // x0 __int64 v17; // x22 _BYTE *v18; // x21 char *v19; // [xsp+58h] [xbp+58h] __int64 v20[2]; // [xsp+68h] [xbp+68h] BYREF void *v21; // [xsp+78h] [xbp+78h] __int64 v22[2]; // [xsp+80h] [xbp+80h] BYREF void *v23; // [xsp+90h] [xbp+90h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v3 = *a1; if ( (v3 & 1) == 0 ) { LODWORD(v4) = v3 >> 1; if ( !(v3 >> 1) ) goto LABEL_3; v5 = a1 + 1; v17 = (__int64)&a1[(int)v4 + 1]; if ( a1 + 1 == (unsigned __int8 *)v17 ) { v6 = -1; LABEL_45: v4 = (int)v4; goto LABEL_5; } LABEL_37: v18 = v5; if ( *v5 == 46 ) { v6 = 0; } else { do { if ( (_BYTE *)v17 == ++v18 ) { v6 = -1; goto LABEL_47; } } while ( *v18 != 46 ); v6 = v18 - v5; } LABEL_47: LODWORD(v4) = v3 >> 1; if ( (v3 & 1) != 0 ) { v4 = *((_QWORD *)a1 + 1); goto LABEL_5; } goto LABEL_45; } v4 = *((_QWORD *)a1 + 1); v5 = *((_BYTE **)a1 + 2); if ( v4 ) { v17 = (__int64)&v5[v4]; if ( v5 == &v5[v4] ) goto LABEL_4; goto LABEL_37; } LABEL_3: v4 = 0; LABEL_4: v6 = -1; LABEL_5: v7 = 0; while ( 1 ) { std::string::basic_string(v20, (__int64)a1, v7, v6 - v7); v8 = v20[0] & 1; if ( v8 ) { if ( v7 == v4 ) { v8 = 1; if ( !v20[1] ) goto LABEL_13; } v9 = (const char *)v21; } else { if ( v7 == v4 && !((int)LOBYTE(v20[0]) >> 1) ) goto LABEL_13; v9 = (char *)v20 + 1; } v22[0] = 0; v22[1] = 0; v23 = nullptr; v19 = (char *)v9; v10 = strlen(v9); std::string::__init(v22, v19, v10); v11 = (cocos2d::CCObject *)cocos2d::CCString::create(v22); cocos2d::CCArray::addObject(v2, v11); if ( (v22[0] & 1) != 0 ) operator delete(v23); v8 = v20[0] & 1; LABEL_13: if ( v6 == -1 ) break; v7 = v6 + 1; if ( (*a1 & 1) != 0 ) { v12 = *((unsigned __int8 **)a1 + 2); v13 = *((_QWORD *)a1 + 1); } else { v12 = a1 + 1; v13 = *a1 >> 1; } v6 = -1; if ( v7 >= v13 || (v14 = &v12[v7], v15 = &v12[v13], &v12[v7] == v15) ) { if ( v8 ) goto LABEL_18; } else if ( v12[v7] == 46 ) { LABEL_30: v6 = v14 - v12; if ( v8 ) goto LABEL_18; } else { while ( v15 != ++v14 ) { if ( *v14 == 46 ) goto LABEL_30; } v6 = -1; if ( v8 ) LABEL_18: operator delete(v21); } } if ( v8 ) operator delete(v21); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source