// // cocos2d::CCMenu::createWithItems from 0x100792d00 to 0x100792e24 (292 bytes) // // 1 xrefs: // > sub_100792C50 @ 0x100792cdb // // 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 // cocos2d::CCMenu *__fastcall cocos2d::CCMenu::createWithItems(cocos2d::CCMenuItem *a1, va_list a2) { unsigned int **v3; // rbx unsigned __int64 gp_offset; // rcx cocos2d::CCObject **v5; // rax cocos2d::CCObject *v6; // rsi cocos2d::CCObject **overflow_arg_area; // rax cocos2d::CCMenu *v8; // r14 if ( a1 ) { v3 = sub_10071FB90(a1, 0); gp_offset = a2->gp_offset; if ( gp_offset > 0x28 ) goto LABEL_5; while ( 1 ) { v5 = (cocos2d::CCObject **)((char *)a2->reg_save_area + gp_offset); a2->gp_offset = gp_offset + 8; v6 = *v5; if ( !*v5 ) break; while ( 1 ) { sub_10071FCD0((__int64)v3, v6); gp_offset = a2->gp_offset; if ( gp_offset <= 0x28 ) break; LABEL_5: overflow_arg_area = (cocos2d::CCObject **)a2->overflow_arg_area; a2->overflow_arg_area = overflow_arg_area + 1; v6 = *overflow_arg_area; if ( !*overflow_arg_area ) goto LABEL_9; } } } else { v3 = nullptr; } LABEL_9: v8 = (cocos2d::CCMenu *)operator new(0x1B8u); cocos2d::CCLayerRGBA::CCLayerRGBA((__int64)v8); v8->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCMenu_vtbl *)off_10098C040; v8->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_10098C540; v8->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_10098C5B0; v8->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_10098C5C8; v8->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_10098C5E8; v8->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_10098C608; v8->cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10098C630; v8->m_pSelectedItem = nullptr; if ( cocos2d::CCMenu::initWithArray(v8, (cocos2d::CCArray *)v3) ) { cocos2d::CCObject::autorelease(v8); } else { ((void (__fastcall *)(cocos2d::CCMenu *))v8->~CCMenu_0)(v8); return nullptr; } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source