// // cocos2d::CCPrettyPrinter::visit from 0x1002ec178 to 0x1002ec3a8 (560 bytes) // // 1 xrefs: // > @ 0x100927440 // // 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 11:02:53 +0000 // std::string *__fastcall cocos2d::CCPrettyPrinter::visit(__int64 a1, __int64 a2) { int v4; // w10 const std::string::value_type *v5; // x1 std::string::size_type v6; // x2 __int64 v7; // x22 int v8; // w24 const std::string::value_type *v9; // x1 void **v10; // x1 std::string::size_type v11; // x2 _QWORD *v12; // x8 _QWORD *v13; // x28 bool v14; // zf int v15; // w9 const std::string::value_type *v16; // x1 std::string::size_type v17; // x2 void *__p[2]; // [xsp+0h] [xbp-B0h] BYREF __int64 v20; // [xsp+10h] [xbp-A0h] _QWORD v21[4]; // [xsp+20h] [xbp-90h] BYREF char v22; // [xsp+47h] [xbp-69h] __int128 v23; // [xsp+48h] [xbp-68h] __int64 v24; // [xsp+58h] [xbp-58h] std::string::append((std::string *)(a1 + 40), "\n"); v4 = *(char *)(a1 + 39); if ( v4 >= 0 ) v5 = (const std::string::value_type *)(a1 + 16); else v5 = *(const std::string::value_type **)(a1 + 16); if ( v4 >= 0 ) v6 = *(unsigned __int8 *)(a1 + 39); else v6 = *(_QWORD *)(a1 + 24); std::string::append((std::string *)(a1 + 40), v5, v6); std::string::append((std::string *)(a1 + 40), "\n"); cocos2d::CCPrettyPrinter::setIndentLevel((std::string *)a1, *(_DWORD *)(a1 + 8) + 1); v7 = cocos2d::CCSet::begin(a2); if ( v7 != cocos2d::CCSet::end(a2) ) { v8 = 0; do { if ( v8 ) std::string::append((std::string *)(a1 + 40), "\n"); v9 = (const std::string::value_type *)(a1 + 16); if ( *(char *)(a1 + 39) < 0 ) v9 = *(const std::string::value_type **)(a1 + 16); std::string::append((std::string *)(a1 + 40), v9); cocos2d::CCPrettyPrinter::CCPrettyPrinter((__int64)v21); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(v7 + 32) + 32LL))(*(_QWORD *)(v7 + 32), v21); if ( SHIBYTE(v24) < 0 ) { sub_1000097D0(__p, (void *)v23, *((unsigned __int64 *)&v23 + 1)); } else { *(_OWORD *)__p = v23; v20 = v24; } if ( v20 >= 0 ) v10 = __p; else v10 = (void **)__p[0]; if ( v20 >= 0 ) v11 = HIBYTE(v20); else v11 = (std::string::size_type)__p[1]; std::string::append((std::string *)(a1 + 40), (const std::string::value_type *)v10, v11); if ( SHIBYTE(v20) < 0 ) operator delete(__p[0]); v21[0] = &off_1009273F0; if ( SHIBYTE(v24) < 0 ) operator delete((void *)v23); if ( v22 < 0 ) operator delete((void *)v21[2]); v12 = *(_QWORD **)(v7 + 8); if ( v12 ) { do { v13 = v12; v12 = (_QWORD *)*v12; } while ( v12 ); } else { do { v13 = *(_QWORD **)(v7 + 16); v14 = *v13 == v7; v7 = (__int64)v13; } while ( !v14 ); } ++v8; v7 = (__int64)v13; } while ( v13 != (_QWORD *)cocos2d::CCSet::end(a2) ); } cocos2d::CCPrettyPrinter::setIndentLevel((std::string *)a1, *(_DWORD *)(a1 + 8) - 1); std::string::append((std::string *)(a1 + 40), "\n"); v15 = *(char *)(a1 + 39); if ( v15 >= 0 ) v16 = (const std::string::value_type *)(a1 + 16); else v16 = *(const std::string::value_type **)(a1 + 16); if ( v15 >= 0 ) v17 = *(unsigned __int8 *)(a1 + 39); else v17 = *(_QWORD *)(a1 + 24); std::string::append((std::string *)(a1 + 40), v16, v17); return std::string::append((std::string *)(a1 + 40), "\n"); }
GD Web Decomp Icon

GD Web Decomp

Raw Source