// // sub_1402A9340 from 0x1402a9340 to 0x1402a9486 (326 bytes) // // 3 xrefs: // > sub_1402B05A0 @ 0x1402b05a7 // > @ 0x14057de00 // > @ 0x1406d21d4 // // 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 // // Hidden C++ exception states: #wind=1 cocos2d::CCLayer *__fastcall sub_1402A9340(cocos2d::CCLayer *Block, char a2) { int *p_m_nTag; // rdi __int64 v5; // rax cocos2d::CCTouchDispatcher *v6; // rax __int64 v7; // rax void *v8; // rax cocos2d::CCObject *v9; // rcx Block->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&GJShopLayer::`vftable'; Block->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJShopLayer::`vftable'; Block->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJShopLayer::`vftable'; Block->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJShopLayer::`vftable'; Block->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJShopLayer::`vftable'; Block->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJShopLayer::`vftable'; Block[1].cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&GJShopLayer::`vftable'; *(_QWORD *)&Block[1].m_uID = &GJShopLayer::`vftable'; p_m_nTag = &Block[1].m_nTag; *(_QWORD *)&Block[1].m_nTag = &GJShopLayer::`vftable'; v5 = cocos2d::CCDirector::sharedDirector(Block); v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5); cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, Block); v7 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v8 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = qword_1406C2ED8; } if ( *(int **)(v7 + 1192) == p_m_nTag ) *(_QWORD *)(v7 + 1192) = 0; v9 = *(cocos2d::CCObject **)&Block[1].m_unknown2; if ( v9 ) cocos2d::CCObject::release(v9); sub_14003A830((__int64)&Block[1].m_fRotationX); cocos2d::CCLayer::~CCLayer(Block); if ( (a2 & 1) != 0 ) j_j_free(Block); return Block; }
GD Web Decomp Icon

GD Web Decomp

Raw Source