// // cocos2d::extension::CCHttpClient::dispatchResponseCallbacks from 0xaaad3c to 0xaaae64 (296 bytes) // // 4 xrefs: // > @ 0x65118 // > cocos2d::extension::CCHttpClient::~CCHttpClient @ 0xaab650 // > cocos2d::extension::CCHttpClient::CCHttpClient @ 0xaac6ac // > @ 0x122b438 // // 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 cocos2d::extension::CCHttpClient::dispatchResponseCallbacks(cocos2d::extension::CCHttpClient *a1, float a2) { cocos2d::CCObject *v3; // x20 cocos2d::CCObject_vtbl *v4; // x0 bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // x3 void (__fastcall *acceptVisitor)(cocos2d::CCObject *__hidden, cocos2d::CCDataVisitor *); // x1 __int64 update; // x0 if ( &pthread_create && pthread_mutex_lock(&stru_1244A40) ) sub_D1410C(); if ( !(unsigned int)cocos2d::CCArray::count((cocos2d::CCArray *)qword_1244A68) ) { v3 = nullptr; if ( !&pthread_create ) return; goto LABEL_5; } v3 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)qword_1244A68, 0); cocos2d::CCObject::retain(v3); cocos2d::CCArray::removeObjectAtIndex((cocos2d::CCArray *)qword_1244A68, 0, 1); if ( &pthread_create ) LABEL_5: pthread_mutex_unlock(&stru_1244A40); if ( v3 ) { v4 = v3[1].__vftable; if ( !v4 ) goto LABEL_12; isEqual = v4[1].isEqual; acceptVisitor = v4[1].acceptVisitor; update = (__int64)v4[1].update; if ( !isEqual ) goto LABEL_12; if ( acceptVisitor ) { if ( (update & 1) == 0 ) { ((void (__fastcall *)(char *, cocos2d::extension::CCHttpClient *, cocos2d::CCObject *))acceptVisitor)( (char *)isEqual + (update >> 1), a1, v3); LABEL_12: cocos2d::CCObject::release(v3); return; } } else if ( (update & 1) == 0 ) { goto LABEL_12; } (*(void (__fastcall **)(__int64, cocos2d::extension::CCHttpClient *, cocos2d::CCObject *))((char *)acceptVisitor + *(_QWORD *)((char *)isEqual + (update >> 1))))( (__int64)isEqual + (update >> 1), a1, v3); goto LABEL_12; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source