// // cocos2d::CCPrettyPrinter::visit from 0x7c9624 to 0x7c9790 (364 bytes) // // 0 xrefs: // // 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 12:00:29 +0000 // _DWORD *__fastcall cocos2d::CCPrettyPrinter::visit(cocos2d::CCPrettyPrinter *this, const cocos2d::CCArray *a2) { _DWORD *v2; // r4 int v5; // r9 char *v6; // r1 size_t v7; // r2 int v8; // r2 char *v9; // r1 size_t v10; // r2 _DWORD *v11; // r2 int *v12; // r5 int v13; // r6 int v14; // r9 int v15; // t1 char *v17; // r2 char *v18; // r1 size_t v19; // r2 int *v20; // [sp+4h] [bp-78h] unsigned __int8 v21; // [sp+14h] [bp-68h] BYREF char v22; // [sp+15h] [bp-67h] BYREF size_t v23; // [sp+18h] [bp-64h] char *v24; // [sp+1Ch] [bp-60h] _DWORD v25[8]; // [sp+20h] [bp-5Ch] BYREF char v26[52]; // [sp+40h] [bp-3Ch] BYREF v2 = (_DWORD *)((char *)this + 20); std::string::append((_DWORD *)this + 5, "\n"); v5 = *((unsigned __int8 *)this + 8); if ( (v5 & 1) != 0 ) { v6 = *((char **)this + 4); v7 = *((_DWORD *)this + 3); } else { v6 = (char *)this + 9; v7 = v5 >> 1; } std::string::append(v2, v6, v7); std::string::append(v2, "\n"); cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 1) + 1); memset(v26, 0, 0x32u); if ( a2 ) { v11 = *((_DWORD **)a2 + 13); if ( *v11 ) { v12 = (int *)v11[3]; v13 = 0; v20 = &v12[*v11 - 1]; while ( v12 <= v20 ) { v15 = *v12++; v14 = v15; if ( !v15 ) break; if ( v13 ) std::string::append(v2, "\n"); if ( (*((_BYTE *)this + 8) & 1) != 0 ) v17 = *((char **)this + 4); else v17 = (char *)this + 9; sub_993BD0(v26, "%s%02d: ", v17, v13); std::string::append(v2, v26); cocos2d::CCPrettyPrinter::CCPrettyPrinter((cocos2d::CCPrettyPrinter *)v25, *((_DWORD *)this + 1)); (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 16))(v14, v25); cocos2d::CCPrettyPrinter::getResult((cocos2d::CCPrettyPrinter *)&v21, v25); if ( (v21 & 1) != 0 ) { v18 = v24; v19 = v23; } else { v19 = (int)v21 >> 1; v18 = &v22; } ++v13; std::string::append(v2, v18, v19); std::string::~string((int)&v21); cocos2d::CCPrettyPrinter::~CCPrettyPrinter((cocos2d::CCPrettyPrinter *)v25); } } } cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 1) - 1); std::string::append(v2, "\n"); v8 = *((unsigned __int8 *)this + 8); if ( (v8 & 1) != 0 ) { v9 = *((char **)this + 4); v10 = *((_DWORD *)this + 3); } else { v9 = (char *)this + 9; v10 = v8 >> 1; } std::string::append(v2, v9, v10); return std::string::append(v2, ""); }
GD Web Decomp Icon

GD Web Decomp

Raw Source