// // cocos2d::CCPrettyPrinter::visit from 0xd478f4 to 0xd47ba0 (684 bytes) // // 2 xrefs: // > @ 0x67e28 // > @ 0x1516670 // // 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 13:07:35 +0000 // __int64 __fastcall cocos2d::CCPrettyPrinter::visit(cocos2d::CCPrettyPrinter *this, const cocos2d::CCArray *a2) { char *v3; // x22 _BYTE *v5; // x25 char *v6; // x1 size_t v7; // x2 unsigned int *v8; // x1 char *v9; // x1 size_t v10; // x2 __int64 *v12; // x23 __int64 v13; // x27 unsigned int v14; // w24 char *v15; // x2 __int64 *v16; // [xsp+78h] [xbp+78h] __int64 v17[2]; // [xsp+88h] [xbp+88h] BYREF void *v18; // [xsp+98h] [xbp+98h] _QWORD v19[2]; // [xsp+A0h] [xbp+A0h] BYREF char v20; // [xsp+B0h] [xbp+B0h] void *v21; // [xsp+C0h] [xbp+C0h] char v22; // [xsp+C8h] [xbp+C8h] void *v23; // [xsp+D8h] [xbp+D8h] char s[8]; // [xsp+E0h] [xbp+E0h] BYREF __int64 v25; // [xsp+E8h] [xbp+E8h] __int64 v26; // [xsp+F0h] [xbp+F0h] __int64 v27; // [xsp+F8h] [xbp+F8h] __int64 v28; // [xsp+100h] [xbp+100h] __int64 v29; // [xsp+108h] [xbp+108h] __int16 v30; // [xsp+110h] [xbp+110h] v3 = (char *)this + 40; v5 = (char *)this + 16; std::string::append((__int64)this + 40, &byte_11AAA48); if ( (*((_BYTE *)this + 16) & 1) != 0 ) { v6 = *((char **)this + 4); v7 = *((_QWORD *)this + 3); } else { v6 = (char *)this + 17; v7 = *((_BYTE *)this + 16) >> 1; } std::string::append((__int64)v3, v6, v7); std::string::append((__int64)v3, "\n"); cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 2) + 1); v30 = 0; *(_QWORD *)s = 0; v25 = 0; v26 = 0; v27 = 0; v28 = 0; v29 = 0; if ( a2 ) { v8 = *((unsigned int **)a2 + 7); if ( *v8 ) { v12 = *((__int64 **)v8 + 2); v16 = &v12[*v8 - 1]; if ( v12 <= v16 ) { v13 = *v12; if ( *v12 ) { v14 = 0; v15 = (char *)this + 17; if ( (*v5 & 1) == 0 ) goto LABEL_14; LABEL_13: v15 = *((char **)this + 4); while ( 1 ) { LABEL_14: sprintf(s, "%s%02d: ", v15, v14); std::string::append((__int64)v3, s); cocos2d::CCPrettyPrinter::CCPrettyPrinter((cocos2d::CCPrettyPrinter *)v19, *((_DWORD *)this + 2)); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v13 + 32LL))(v13, v19); cocos2d::CCPrettyPrinter::getResult((cocos2d::CCPrettyPrinter *)v19, v17); if ( (v17[0] & 1) != 0 ) { std::string::append((__int64)v3, v18, v17[1]); if ( (v17[0] & 1) == 0 ) goto LABEL_16; } else { std::string::append((__int64)v3, (char *)v17 + 1, LOBYTE(v17[0]) >> 1); if ( (v17[0] & 1) == 0 ) { LABEL_16: ++v14; v19[0] = off_1516630; if ( (v22 & 1) == 0 ) goto LABEL_17; goto LABEL_24; } } ++v14; operator delete(v18); v19[0] = off_1516630; if ( (v22 & 1) == 0 ) { LABEL_17: if ( (v20 & 1) != 0 ) goto LABEL_25; goto LABEL_18; } LABEL_24: operator delete(v23); if ( (v20 & 1) != 0 ) LABEL_25: operator delete(v21); LABEL_18: if ( v16 < ++v12 ) break; v13 = *v12; if ( !*v12 ) break; std::string::append((__int64)v3, &byte_11AAA48); v15 = (char *)this + 17; if ( (*v5 & 1) != 0 ) goto LABEL_13; } } } } } cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 2) - 1); std::string::append((__int64)v3, &byte_11AAA48); if ( (*((_BYTE *)this + 16) & 1) != 0 ) { v9 = *((char **)this + 4); v10 = *((_QWORD *)this + 3); } else { v9 = (char *)this + 17; v10 = *((_BYTE *)this + 16) >> 1; } std::string::append((__int64)v3, v9, v10); std::string::append((__int64)v3, ""); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source