// // cocos2d::CCPrettyPrinter::visit from 0x1004af190 to 0x1004af50e (894 bytes) // // 1 xrefs: // > @ 0x100b55ba8 // // This function is hookable on this platform (idp: pc, 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 12:30:58 +0000 // std::string *__fastcall cocos2d::CCPrettyPrinter::visit(__int64 a1, __int64 a2) { unsigned int v2; // edx const std::string::value_type *v3; // rsi std::string::size_type v4; // rdx int v5; // eax int v6; // eax int v7; // r14d __int64 v8; // r15 int v9; // r12d const std::string::value_type *v10; // rsi int v11; // eax int v12; // ebx const std::string::value_type *v13; // rsi std::string::size_type v14; // rdx _QWORD *v15; // rax _QWORD *v16; // rbx bool v17; // zf __int64 v18; // r12 int v19; // eax const std::string::value_type *v20; // r15 std::string *v21; // r13 int v22; // r14d unsigned int v23; // edx std::string::size_type v24; // rdx std::string *v25; // rbx __int64 (__fastcall **v27)(); // [rsp+8h] [rbp-A8h] BYREF int v28; // [rsp+10h] [rbp-A0h] std::string v29[2]; // [rsp+18h] [rbp-98h] BYREF __int64 v30; // [rsp+48h] [rbp-68h] std::string::value_type __s[16]; // [rsp+50h] [rbp-60h] BYREF void *__p; // [rsp+60h] [rbp-50h] __int64 v33; // [rsp+68h] [rbp-48h] const std::string::value_type *v34; // [rsp+70h] [rbp-40h] std::string *v35; // [rsp+78h] [rbp-38h] std::string *v36; // [rsp+80h] [rbp-30h] v30 = a2; v36 = (std::string *)(a1 + 40); std::string::append((std::string *)(a1 + 40), "\n"); v2 = *(unsigned __int8 *)(a1 + 16); if ( (v2 & 1) != 0 ) { v3 = *(const std::string::value_type **)(a1 + 32); v4 = *(_QWORD *)(a1 + 24); } else { v4 = v2 >> 1; v3 = (const std::string::value_type *)(a1 + 17); } std::string::append(v36, v3, v4); std::string::append(v36, "\n"); v5 = *(_DWORD *)(a1 + 8) + 1; *(_DWORD *)(a1 + 8) = v5; if ( (*(_BYTE *)(a1 + 16) & 1) != 0 ) { **(_BYTE **)(a1 + 32) = 0; *(_QWORD *)(a1 + 24) = 0; v6 = *(_DWORD *)(a1 + 8); v34 = (const std::string::value_type *)(a1 + 17); if ( v6 <= 0 ) goto LABEL_10; } else { *(_BYTE *)(a1 + 17) = 0; *(_BYTE *)(a1 + 16) = 0; v34 = (const std::string::value_type *)(a1 + 17); if ( v5 <= 0 ) goto LABEL_10; } v7 = 0; do { std::string::append((std::string *)(a1 + 16), "\t"); ++v7; } while ( v7 < *(_DWORD *)(a1 + 8) ); LABEL_10: v35 = (std::string *)(a1 + 16); v33 = a1; v8 = cocos2d::CCSet::begin(v30); if ( v8 != cocos2d::CCSet::end(v30) ) { v9 = 0; do { if ( v9 ) std::string::append(v36, "\n"); v10 = v34; if ( (*(_BYTE *)&v35->__r_.__value_.__s.0 & 1) != 0 ) v10 = *(const std::string::value_type **)(v33 + 32); std::string::append(v36, v10); v11 = *(_DWORD *)(v33 + 8); v27 = &off_100B55B58; memset(v29, 0, sizeof(v29)); v28 = v11; if ( v11 > 0 ) { v12 = 0; do { std::string::append(v29, "\t"); ++v12; } while ( v12 < v28 ); } (*(void (__fastcall **)(_QWORD, __int64 (__fastcall ***)()))(**(_QWORD **)(v8 + 32) + 32LL))( *(_QWORD *)(v8 + 32), &v27); if ( (*(_BYTE *)&v29[1].__r_.__value_.__s.0 & 1) != 0 ) { sub_10001AD30(__s, v29[1].__r_.__value_.__l.__data_, v29[1].__r_.__value_.__l.__size_); } else { __p = v29[1].__r_.__value_.__l.__data_; *(_OWORD *)__s = *(_OWORD *)&v29[1].__r_.__value_.__l.0; } if ( (__s[0] & 1) != 0 ) { v13 = (const std::string::value_type *)__p; v14 = *(_QWORD *)&__s[8]; } else { v14 = (unsigned __int8)__s[0] >> 1; v13 = &__s[1]; } std::string::append(v36, v13, v14); if ( (__s[0] & 1) != 0 ) { operator delete(__p); v27 = &off_100B55B58; if ( (*(_BYTE *)&v29[1].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_28: if ( (*(_BYTE *)&v29[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_29; goto LABEL_33; } } else { v27 = &off_100B55B58; if ( (*(_BYTE *)&v29[1].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_28; } operator delete(v29[1].__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v29[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_29: v15 = *(_QWORD **)(v8 + 8); if ( v15 ) goto LABEL_34; goto LABEL_36; } LABEL_33: operator delete(v29[0].__r_.__value_.__l.__data_); v15 = *(_QWORD **)(v8 + 8); if ( v15 ) { do { LABEL_34: v16 = v15; v15 = (_QWORD *)*v15; } while ( v15 ); goto LABEL_12; } do { LABEL_36: v16 = *(_QWORD **)(v8 + 16); v17 = *v16 == v8; v8 = (__int64)v16; } while ( !v17 ); LABEL_12: ++v9; v8 = (__int64)v16; } while ( v16 != (_QWORD *)cocos2d::CCSet::end(v30) ); } v18 = v33; v19 = *(_DWORD *)(v33 + 8) - 1; *(_DWORD *)(v33 + 8) = v19; if ( (*(_BYTE *)(v18 + 16) & 1) != 0 ) { **(_BYTE **)(v18 + 32) = 0; *(_QWORD *)(v18 + 24) = 0; v20 = v34; v21 = v35; if ( *(int *)(v18 + 8) <= 0 ) goto LABEL_44; LABEL_42: v22 = 0; do { std::string::append(v21, "\t"); ++v22; } while ( v22 < *(_DWORD *)(v18 + 8) ); goto LABEL_44; } v20 = v34; *v34 = 0; v21 = v35; v35->__r_.__value_.__s.0 = 0; if ( v19 > 0 ) goto LABEL_42; LABEL_44: std::string::append(v36, "\n"); v23 = *(unsigned __int8 *)(v18 + 16); if ( (v23 & 1) != 0 ) { v20 = *(const std::string::value_type **)(v18 + 32); v24 = *(_QWORD *)(v18 + 24); } else { v24 = v23 >> 1; } v25 = v36; std::string::append(v36, v20, v24); return std::string::append(v25, "\n"); }
GD Web Decomp Icon

GD Web Decomp

Raw Source