// // cocos2d::CCPrettyPrinter::visit_2 from 0x1002ebc24 to 0x1002ebe7c (600 bytes) // // 1 xrefs: // > @ 0x100927430 // // 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_2(__int64 a1, __int64 a2) { int v4; // w10 const std::string::value_type *v5; // x1 std::string::size_type v6; // x2 unsigned int *v7; // x9 __int64 v8; // x8 int v9; // w24 __int64 *v10; // x25 unsigned __int64 v11; // x26 __int64 v12; // x22 const char *v13; // x8 void **v14; // x1 std::string::size_type v15; // x2 int v16; // w9 const std::string::value_type *v17; // x1 std::string::size_type v18; // x2 void *__p[2]; // [xsp+10h] [xbp-100h] BYREF __int64 v21; // [xsp+20h] [xbp-F0h] _QWORD v22[4]; // [xsp+30h] [xbp-E0h] BYREF char v23; // [xsp+57h] [xbp-B9h] __int128 v24; // [xsp+58h] [xbp-B8h] __int64 v25; // [xsp+68h] [xbp-A8h] std::string::value_type __s[16]; // [xsp+70h] [xbp-A0h] BYREF __int128 v27; // [xsp+80h] [xbp-90h] __int128 v28; // [xsp+90h] [xbp-80h] __int16 v29; // [xsp+A0h] [xbp-70h] 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); v29 = 0; v27 = 0u; v28 = 0u; *(_OWORD *)__s = 0u; if ( a2 ) { v7 = *(unsigned int **)(a2 + 56); v8 = *v7; if ( (_DWORD)v8 ) { v9 = 0; v10 = *((__int64 **)v7 + 2); v11 = (unsigned __int64)&v10[v8 - 1]; do { v12 = *v10; if ( !*v10 ) break; if ( v9 ) std::string::append((std::string *)(a1 + 40), "\n"); v13 = (const char *)(a1 + 16); if ( *(char *)(a1 + 39) < 0 ) v13 = *(const char **)(a1 + 16); sprintf(__s, "%s%02d: ", v13, v9); std::string::append((std::string *)(a1 + 40), __s); cocos2d::CCPrettyPrinter::CCPrettyPrinter((__int64)v22); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v12 + 32LL))(v12, v22); if ( SHIBYTE(v25) < 0 ) { sub_1000097D0(__p, (void *)v24, *((unsigned __int64 *)&v24 + 1)); } else { *(_OWORD *)__p = v24; v21 = v25; } if ( v21 >= 0 ) v14 = __p; else v14 = (void **)__p[0]; if ( v21 >= 0 ) v15 = HIBYTE(v21); else v15 = (std::string::size_type)__p[1]; std::string::append((std::string *)(a1 + 40), (const std::string::value_type *)v14, v15); if ( SHIBYTE(v21) < 0 ) operator delete(__p[0]); v22[0] = &off_1009273F0; if ( SHIBYTE(v25) < 0 ) operator delete((void *)v24); if ( v23 < 0 ) operator delete((void *)v22[2]); ++v10; ++v9; } while ( (unsigned __int64)v10 <= v11 ); } } cocos2d::CCPrettyPrinter::setIndentLevel((std::string *)a1, *(_DWORD *)(a1 + 8) - 1); std::string::append((std::string *)(a1 + 40), "\n"); v16 = *(char *)(a1 + 39); if ( v16 >= 0 ) v17 = (const std::string::value_type *)(a1 + 16); else v17 = *(const std::string::value_type **)(a1 + 16); if ( v16 >= 0 ) v18 = *(unsigned __int8 *)(a1 + 39); else v18 = *(_QWORD *)(a1 + 24); std::string::append((std::string *)(a1 + 40), v17, v18); return std::string::append((std::string *)(a1 + 40), ""); }
GD Web Decomp Icon

GD Web Decomp

Raw Source