// // sub_4F63FC from 0x4f63fc to 0x4f6556 (346 bytes) // // 3 xrefs: // > RandTriggerGameObject::customObjectSetup @ 0x4f691c // > SequenceTriggerGameObject::customObjectSetup @ 0x4f6aea // > SpawnTriggerGameObject::customObjectSetup @ 0x4f6d08 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:51:17 +0000 // cocos2d::CCArray *__fastcall sub_4F63FC(_DWORD *a1) { cocos2d::CCArray *v2; // r0 int v3; // r7 int v4; // r3 unsigned __int8 *v5; // r4 unsigned __int8 *v6; // r6 unsigned __int8 *first_of; // r0 int v8; // r4 int v9; // r6 unsigned int v10; // r10 const char *v11; // r10 size_t v12; // r0 cocos2d::CCObject *v13; // r0 int v14; // r7 unsigned int v15; // r7 unsigned __int8 *v16; // r4 unsigned __int8 *v17; // r7 unsigned __int8 *v18; // r0 cocos2d::CCArray *v20; // [sp+Ch] [bp-30h] int v21[3]; // [sp+1Ch] [bp-20h] BYREF int v22[3]; // [sp+28h] [bp-14h] BYREF v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); v3 = *(unsigned __int8 *)a1; v20 = v2; if ( (v3 & 1) == 0 ) { v4 = v3 >> 1; if ( !(v3 >> 1) ) { v8 = -1; goto LABEL_14; } v5 = (unsigned __int8 *)a1 + 1; LABEL_6: v6 = &v5[v4]; first_of = std::__find_first_of_ce( v5, &v5[v4], (int)".", (int)"", (int (__fastcall *)(_DWORD, int))std::char_traits::eq); v3 = *(unsigned __int8 *)a1; if ( first_of == v6 ) v8 = -1; else v8 = first_of - v5; if ( (v3 & 1) != 0 ) goto LABEL_12; LABEL_14: v9 = v3 >> 1; goto LABEL_15; } v4 = a1[1]; v5 = (unsigned __int8 *)a1[2]; if ( v4 ) goto LABEL_6; v8 = -1; LABEL_12: v9 = a1[1]; LABEL_15: v10 = 0; while ( 1 ) { std::string::basic_string(v21, (unsigned __int8 *)a1, v10, v8 - v10); if ( (v21[0] & 1) != 0 ) { if ( v21[1] || v10 != v9 ) { v11 = (const char *)v21[2]; LABEL_25: memset(v22, 0, sizeof(v22)); v12 = strlen(v11); std::string::__init(v22, v11, v12); v13 = (cocos2d::CCObject *)cocos2d::CCString::create(v22); cocos2d::CCArray::addObject(v20, v13); std::string::~string((int)v22); } } else if ( LOBYTE(v21[0]) >> 1 || v10 != v9 ) { v11 = (char *)v21 + 1; goto LABEL_25; } if ( v8 == -1 ) break; v14 = *(unsigned __int8 *)a1; v10 = v8 + 1; if ( (v14 & 1) != 0 ) { v15 = a1[1]; v16 = (unsigned __int8 *)a1[2]; } else { v15 = v14 >> 1; v16 = (unsigned __int8 *)a1 + 1; } if ( v10 >= v15 || (v17 = &v16[v15], v18 = std::__find_first_of_ce( &v16[v10], v17, (int)".", (int)"", (int (__fastcall *)(_DWORD, int))std::char_traits::eq), v18 == v17) ) { v8 = -1; } else { v8 = v18 - v16; } std::string::~string((int)v21); } std::string::~string((int)v21); return v20; }
GD Web Decomp Icon

GD Web Decomp

Raw Source