// // BrowseSmartTemplateLayer::baseSetup from 0xb14574 to 0xb148c8 (852 bytes) // // 3 xrefs: // > BrowseSmartKeyLayer::init @ 0xb17e7c // > BrowseSmartTemplateLayer::init @ 0xb18d9c // > @ 0x7cf78 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:01:31 +0000 // __int64 __fastcall BrowseSmartTemplateLayer::baseSetup(BrowseSmartTemplateLayer *this) { cocos2d::CCObject *v2; // x0 cocos2d::CCDirector *v3; // x0 cocos2d::CCDirector *v4; // x0 __int64 v5; // x22 void (__fastcall *v6)(__int64, __int64 *); // x26 __int64 (__fastcall *v7)(__int64, __int64 *); // x26 cocos2d::CCMenu *v8; // x0 __int64 v9; // x0 const char *v10; // x1 __int64 v11; // x22 __int64 v12; // x22 cocos2d::CCNode *v13; // x27 void (__fastcall *v14)(__int64, __int64 *); // x26 float v15; // s8 const char *v16; // x1 __int64 v17; // x0 __int64 v18; // x0 __int64 v19; // x26 cocos2d::CCNode *v20; // x28 void (__fastcall *v21)(__int64, __int64 *); // x27 const char *v22; // x1 cocos2d::CCSprite *v23; // x22 __int64 v24; // x0 __int64 v25; // x22 cocos2d::CCNode *v26; // x25 void (__fastcall *v27)(__int64, __int64 *); // x24 __int64 v29; // [xsp+78h] [xbp+78h] BYREF _BYTE v30[8]; // [xsp+80h] [xbp+80h] BYREF __int64 v31[2]; // [xsp+88h] [xbp+88h] BYREF v2 = (cocos2d::CCObject *)cocos2d::CCArray::create(_stack_chk_guard); *((_QWORD *)this + 84) = v2; v3 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v2); *((_BYTE *)this + 596) = 1; v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(&v29, v4); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v31, 0.0, 0.0, 80.0, 80.0); v5 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v31); v6 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v31, 450.0, 280.0); v6(v5, v31); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v5, 4294967294LL); v7 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, *(float *)&v29 * 0.5, *((float *)&v29 + 1) * 0.5); v8 = (cocos2d::CCMenu *)v7(v5, v31); v9 = cocos2d::CCMenu::create(v8); *((_QWORD *)this + 69) = v9; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v9, 10); v11 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v10); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, 0.7); v12 = CCMenuItemSpriteExtra::create(v11, 0, (__int64)this, 1344, 1); CCMenuItemSpriteExtra::setSizeMult(v12, 1.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v12); v13 = *((cocos2d::CCNode **)this + 69); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v30, (float)((float)(*(float *)&v29 * 0.5) + -225.0) + 6.0, (float)((float)(*((float *)&v29 + 1) * 0.5) + 140.0) - 6.0); cocos2d::CCNode::convertToNodeSpace(v31, v13, (const cocos2d::CCPoint *)v30); v14(v12, v31); v15 = *((float *)&v29 + 1) * 0.5; v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v16); v18 = CCMenuItemSpriteExtra::create(v17, 0, (__int64)this, (__int64)BrowseSmartTemplateLayer::onClick, 0); *((_QWORD *)this + 87) = v18; CCMenuItemSpriteExtra::setSizeMult(v18, 2.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 87)); v19 = *((_QWORD *)this + 87); v20 = *((cocos2d::CCNode **)this + 69); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, 25.0, v15); cocos2d::CCNode::convertToNodeSpace(v31, v20, (const cocos2d::CCPoint *)v30); v21(v19, v31); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 87) + 72LL))(*((_QWORD *)this + 87), 1); v23 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v22); cocos2d::CCSprite::setFlipX(v23, 1); v24 = CCMenuItemSpriteExtra::create((__int64)v23, 0, (__int64)this, (__int64)BrowseSmartTemplateLayer::onClick, 0); *((_QWORD *)this + 86) = v24; CCMenuItemSpriteExtra::setSizeMult(v24, 2.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 86)); v25 = *((_QWORD *)this + 86); v26 = *((cocos2d::CCNode **)this + 69); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, *(float *)&v29 - 25.0, v15); cocos2d::CCNode::convertToNodeSpace(v31, v26, (const cocos2d::CCPoint *)v30); v27(v25, v31); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 86) + 72LL))(*((_QWORD *)this + 86), 2); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source