// // cocos2d::CCLayerMultiplex::initWithLayers from 0x1004b46e0 to 0x1004b47f8 (280 bytes) // // 1 xrefs: // > sub_1004B44A0 @ 0x1004b465e // // 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 // bool __fastcall cocos2d::CCLayerMultiplex::initWithLayers( cocos2d::CCLayerMultiplex *a1, cocos2d::CCLayer *a2, va_list a3) { __int64 v3; // rax cocos2d::CCDirector *v5; // rbx cocos2d::CCLayerMultiplex_vtbl *v6; // rax unsigned __int64 gp_offset; // rcx __int64 *v8; // rax __int64 v9; // rsi __int64 *overflow_arg_area; // rax __int64 v11; // rax _QWORD v13[6]; // [rsp+0h] [rbp-30h] BYREF double v14; // 0:xmm0_8.8 v13[0] = v3; v5 = cocos2d::CCDirector::sharedDirector(); if ( v5 ) { *(cocos2d::CCSize *)&v14 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13); ((void (__fastcall *)(cocos2d::CCLayerMultiplex *, _QWORD *, double))a1->setContentSize)(a1, v13, v14); *(_WORD *)&a1->m_bTouchEnabled = 0; v6 = (cocos2d::CCLayerMultiplex_vtbl *)sub_10071FD00(5); a1[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = v6; cocos2d::CCObject::retain((cocos2d::CCObject *)v6); sub_10071FCD0(a1[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, a2); gp_offset = a3->gp_offset; if ( gp_offset > 0x28 ) goto LABEL_5; while ( 1 ) { v8 = (__int64 *)((char *)a3->reg_save_area + gp_offset); a3->gp_offset = gp_offset + 8; v9 = *v8; if ( !*v8 ) break; while ( 1 ) { sub_10071FCD0(a1[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, v9); gp_offset = a3->gp_offset; if ( gp_offset <= 0x28 ) break; LABEL_5: overflow_arg_area = (__int64 *)a3->overflow_arg_area; a3->overflow_arg_area = overflow_arg_area + 1; v9 = *overflow_arg_area; if ( !*overflow_arg_area ) goto LABEL_8; } } LABEL_8: *(&a1->m_uPreviousPriority + 1) = 0; v11 = sub_1007200C0(a1[1].cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, 0); ((void (__fastcall *)(cocos2d::CCLayerMultiplex *, __int64))a1->addChild)(a1, v11); } return v5 != nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source