// // cocos2d::CCPrettyPrinter::visit from 0x1004b5fb0 to 0x1004b632e (894 bytes) // // 1 xrefs: // > @ 0x10094ac98 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCPrettyPrinter::visit(cocos2d::CCPrettyPrinter *a1, const cocos2d::CCSet *a2) { unsigned int v2; // edx cocos2d::CCPrettyPrinter_vtbl *v3; // rsi cocos2d::CCPrettyPrinter_vtbl *v4; // rdx int v5; // eax int v6; // eax int v7; // r14d cocos2d::CCSetIterator 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 std::__tree_end_node *>::pointer left; // rax std::__tree_end_node *> *v16; // rbx bool v17; // zf cocos2d::CCPrettyPrinter *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 **v26)(); // [rsp+8h] [rbp-A8h] BYREF int v27; // [rsp+10h] [rbp-A0h] std::string v28[2]; // [rsp+18h] [rbp-98h] BYREF cocos2d::CCSet *v29; // [rsp+48h] [rbp-68h] std::string::value_type __s[16]; // [rsp+50h] [rbp-60h] BYREF void *__p; // [rsp+60h] [rbp-50h] cocos2d::CCPrettyPrinter *v32; // [rsp+68h] [rbp-48h] const std::string::value_type *v33; // [rsp+70h] [rbp-40h] std::string *v34; // [rsp+78h] [rbp-38h] std::string *v35; // [rsp+80h] [rbp-30h] v29 = (cocos2d::CCSet *)a2; v35 = (std::string *)&a1[5]; std::string::append((std::string *)&a1[5], "\n"); v2 = LOBYTE(a1[2].__vftable); if ( (v2 & 1) != 0 ) { v3 = a1[4].__vftable; v4 = a1[3].__vftable; } else { v4 = (cocos2d::CCPrettyPrinter_vtbl *)(v2 >> 1); v3 = (cocos2d::CCPrettyPrinter_vtbl *)((char *)&a1[2].__vftable + 1); } std::string::append(v35, (const std::string::value_type *)v3, (std::string::size_type)v4); std::string::append(v35, "\n"); v5 = LODWORD(a1[1].__vftable) + 1; LODWORD(a1[1].__vftable) = v5; if ( ((__int64)a1[2].__vftable & 1) != 0 ) { LOBYTE(a1[4].~CCPrettyPrinter) = 0; a1[3].__vftable = nullptr; v6 = (int)a1[1].__vftable; v33 = (char *)&a1[2].__vftable + 1; if ( v6 <= 0 ) goto LABEL_10; } else { BYTE1(a1[2].__vftable) = 0; LOBYTE(a1[2].__vftable) = 0; v33 = (char *)&a1[2].__vftable + 1; if ( v5 <= 0 ) goto LABEL_10; } v7 = 0; do { std::string::append((std::string *)&a1[2], "\t"); ++v7; } while ( v7 < SLODWORD(a1[1].__vftable) ); LABEL_10: v34 = (std::string *)&a1[2]; v32 = a1; v8.__ptr_ = cocos2d::CCSet::begin(v29).__ptr_; if ( v8.__ptr_ != cocos2d::CCSet::end(v29).__ptr_ ) { v9 = 0; do { if ( v9 ) std::string::append(v35, "\n"); v10 = v33; if ( (*(_BYTE *)&v34->__r_.__value_.__s.0 & 1) != 0 ) v10 = (const std::string::value_type *)v32[4].__vftable; std::string::append(v35, v10); v11 = (int)v32[1].__vftable; v26 = &off_10094AC48; memset(v28, 0, sizeof(v28)); v27 = v11; if ( v11 > 0 ) { v12 = 0; do { std::string::append(v28, "\t"); ++v12; } while ( v12 < v27 ); } (*(void (__fastcall **)(std::__tree_end_node *>::pointer, __int64 (__fastcall ***)()))(*(_QWORD *)v8.__ptr_[4].__left_ + 32LL))( v8.__ptr_[4].__left_, &v26); if ( (*(_BYTE *)&v28[1].__r_.__value_.__s.0 & 1) != 0 ) { sub_100006B70(__s, v28[1].__r_.__value_.__l.__data_, v28[1].__r_.__value_.__l.__size_, 0.0); } else { __p = v28[1].__r_.__value_.__l.__data_; *(_OWORD *)__s = *(_OWORD *)&v28[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(v35, v13, v14); if ( (__s[0] & 1) != 0 ) { operator delete(__p); v26 = &off_10094AC48; if ( (*(_BYTE *)&v28[1].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_28: if ( (*(_BYTE *)&v28[0].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_29; goto LABEL_33; } } else { v26 = &off_10094AC48; if ( (*(_BYTE *)&v28[1].__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_28; } operator delete(v28[1].__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v28[0].__r_.__value_.__s.0 & 1) == 0 ) { LABEL_29: left = v8.__ptr_[1].__left_; if ( left ) goto LABEL_34; goto LABEL_36; } LABEL_33: operator delete(v28[0].__r_.__value_.__l.__data_); left = v8.__ptr_[1].__left_; if ( left ) { do { LABEL_34: v16 = (std::__tree_end_node *> *)left; left = *(std::__tree_end_node *>::pointer *)left; } while ( left ); goto LABEL_12; } do { LABEL_36: v16 = (std::__tree_end_node *> *)v8.__ptr_[2].__left_; v17 = v16->__left_ == (std::__tree_end_node *>::pointer)v8.__ptr_; v8.__ptr_ = v16; } while ( !v17 ); LABEL_12: ++v9; v8.__ptr_ = v16; } while ( v16 != cocos2d::CCSet::end(v29).__ptr_ ); } v18 = v32; v19 = LODWORD(v32[1].__vftable) - 1; LODWORD(v32[1].__vftable) = v19; if ( ((__int64)v18[2].__vftable & 1) != 0 ) { LOBYTE(v18[4].~CCPrettyPrinter) = 0; v18[3].__vftable = nullptr; v20 = v33; v21 = v34; if ( SLODWORD(v18[1].__vftable) <= 0 ) goto LABEL_44; LABEL_42: v22 = 0; do { std::string::append(v21, "\t"); ++v22; } while ( v22 < SLODWORD(v18[1].__vftable) ); goto LABEL_44; } v20 = v33; *v33 = 0; v21 = v34; v34->__r_.__value_.__s.0 = 0; if ( v19 > 0 ) goto LABEL_42; LABEL_44: std::string::append(v35, "\n"); v23 = LOBYTE(v18[2].__vftable); if ( (v23 & 1) != 0 ) { v20 = (const std::string::value_type *)v18[4].__vftable; v24 = (std::string::size_type)v18[3].__vftable; } else { v24 = v23 >> 1; } v25 = v35; std::string::append(v35, v20, v24); std::string::append(v25, "\n"); }
GD Web Decomp Icon

GD Web Decomp

Raw Source