// // cocos2d::CCPrettyPrinter::visit_1 from 0x1002ebf00 to 0x1002ec140 (576 bytes) // // 1 xrefs: // > @ 0x100927438 // // 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_1(__int64 a1, __int64 a2) { int v4; // w10 const std::string::value_type *v5; // x1 std::string::size_type v6; // x2 __int64 v7; // x27 char v8; // w8 __int64 v9; // x26 const char *v10; // x8 void **v11; // x1 std::string::size_type v12; // x2 int v13; // w9 const std::string::value_type *v14; // x1 std::string::size_type v15; // x2 void *__p[2]; // [xsp+10h] [xbp-4A0h] BYREF __int64 v18; // [xsp+20h] [xbp-490h] _QWORD v19[4]; // [xsp+30h] [xbp-480h] BYREF char v20; // [xsp+57h] [xbp-459h] __int128 v21; // [xsp+58h] [xbp-458h] __int64 v22; // [xsp+68h] [xbp-448h] std::string::value_type __s[1000]; // [xsp+70h] [xbp-440h] BYREF 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); bzero(__s, 0x3E8u); if ( a2 ) { v7 = *(_QWORD *)(a2 + 56); if ( v7 ) { v8 = 1; do { v9 = *(_QWORD *)(v7 + 288); if ( (v8 & 1) == 0 ) std::string::append((std::string *)(a1 + 40), "\n"); v10 = (const char *)(a1 + 16); if ( *(char *)(a1 + 39) < 0 ) v10 = *(const char **)(a1 + 16); sprintf(__s, "%s%s: ", v10, (const char *)v7); std::string::append((std::string *)(a1 + 40), __s); cocos2d::CCPrettyPrinter::CCPrettyPrinter((__int64)v19); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(v7 + 264) + 32LL))(*(_QWORD *)(v7 + 264), v19); if ( SHIBYTE(v22) < 0 ) { sub_1000097D0(__p, (void *)v21, *((unsigned __int64 *)&v21 + 1)); } else { *(_OWORD *)__p = v21; v18 = v22; } if ( v18 >= 0 ) v11 = __p; else v11 = (void **)__p[0]; if ( v18 >= 0 ) v12 = HIBYTE(v18); else v12 = (std::string::size_type)__p[1]; std::string::append((std::string *)(a1 + 40), (const std::string::value_type *)v11, v12); if ( SHIBYTE(v18) < 0 ) operator delete(__p[0]); v19[0] = &off_1009273F0; if ( SHIBYTE(v22) < 0 ) operator delete((void *)v21); if ( v20 < 0 ) operator delete((void *)v19[2]); v8 = 0; v7 = v9; } while ( v9 ); } } cocos2d::CCPrettyPrinter::setIndentLevel((std::string *)a1, *(_DWORD *)(a1 + 8) - 1); std::string::append((std::string *)(a1 + 40), "\n"); v13 = *(char *)(a1 + 39); if ( v13 >= 0 ) v14 = (const std::string::value_type *)(a1 + 16); else v14 = *(const std::string::value_type **)(a1 + 16); if ( v13 >= 0 ) v15 = *(unsigned __int8 *)(a1 + 39); else v15 = *(_QWORD *)(a1 + 24); std::string::append((std::string *)(a1 + 40), v14, v15); return std::string::append((std::string *)(a1 + 40), ""); }
GD Web Decomp Icon

GD Web Decomp

Raw Source