// // SmartTemplateCell::loadFromObject from 0x73fe00 to 0x74016c (876 bytes) // // 3 xrefs: // > CustomListView::reloadAll @ 0x748eec // > CustomListView::loadCell @ 0x74d354 // > @ 0xdb028 // // 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 12:52:43 +0000 // __int64 __fastcall SmartTemplateCell::loadFromObject(SmartTemplateCell *this, GJSmartTemplate *a2) { char v4; // w0 __int64 v5; // x0 __int64 v6; // x1 cocos2d::CCLabelBMFont *v7; // x2 cocos2d::CCLabelBMFont *v8; // x0 cocos2d::CCLabelBMFont *v9; // x21 void (__fastcall *v10)(cocos2d::CCLabelBMFont *, __int64 *); // x23 void (__fastcall *v11)(cocos2d::CCLabelBMFont *, __int64 *); // x23 GameLevelManager *v12; // x0 __int64 v13; // x0 const char *v14; // x6 const char *v15; // x5 __int64 v16; // x0 cocos2d::CCMenu *v17; // x24 const char *v18; // x6 __int64 v19; // x0 cocos2d::CCMenuItem *v20; // x22 cocos2d::CCNode *v21; // x26 void (__fastcall *v22)(cocos2d::CCMenu *, __int64 *); // x27 void (__fastcall *v23)(cocos2d::CCMenuItem *, __int64 *); // x24 __int64 v25; // [xsp+78h] [xbp+78h] BYREF _BYTE v26[8]; // [xsp+80h] [xbp+80h] BYREF __int64 v27; // [xsp+88h] [xbp+88h] BYREF __int64 v28; // [xsp+90h] [xbp+90h] BYREF __int64 v29; // [xsp+98h] [xbp+98h] cocos2d::CCLabelBMFont *v30; // [xsp+A0h] [xbp+A0h] (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1); *((_QWORD *)this + 69) = a2; v28 = 0; v4 = *((_BYTE *)a2 + 144); v29 = 0; v30 = nullptr; if ( (v4 & 1) != 0 ) { std::string::__init(&v28, *((void **)a2 + 20), *((_QWORD *)a2 + 19)); } else { v5 = *((_QWORD *)a2 + 18); v6 = *((_QWORD *)a2 + 19); v7 = *((cocos2d::CCLabelBMFont **)a2 + 20); v30 = v7; v28 = v5; v29 = v6; } v8 = (cocos2d::CCLabelBMFont *)((char *)&v28 + 1); if ( (v28 & 1) != 0 ) v8 = v30; v9 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v8, "bigFont.fnt", (const char *)v7); if ( (v28 & 1) != 0 ) operator delete(v30); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v9); v10 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v9 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 0.0, 0.5); v10(v9, &v27); v11 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 12.0, *((float *)this + 131) * 0.5); v11(v9, &v27); v12 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(v9, 200.0, 0.8, 0.0); v13 = *(_QWORD *)(GameLevelManager::sharedState(v12) + 1528); if ( v13 && *(_DWORD *)(v13 + 192) == *(_DWORD *)(*((_QWORD *)this + 69) + 192LL) ) v15 = "GJ_button_02.png"; else v15 = "GJ_button_01.png"; v16 = ButtonSprite::create( (ButtonSprite *)"Use", (const char *)&dword_30 + 2, 0, 0, 0.5, "bigFont.fnt", v15, v14, 30.0); v17 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v16, 0, (__int64)this, (__int64)SmartTemplateCell::onClick, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v17, 1.5); (*(void (__fastcall **)(cocos2d::CCMenu *, _QWORD))(*(_QWORD *)v17 + 72LL))(v17, 0); v19 = ButtonSprite::create( (ButtonSprite *)"Edit", (const char *)&dword_30 + 2, 0, 0, 0.5, "bigFont.fnt", "GJ_button_03.png", v18, 30.0); v20 = (cocos2d::CCMenuItem *)CCMenuItemSpriteExtra::create( v19, 0, (__int64)this, (__int64)SmartTemplateCell::onClick, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v20, 1.5); (*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(*(_QWORD *)v20 + 72LL))(v20, 1); v21 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v17, v20, 0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v27, (float)((float)(*((float *)this + 130) - 55.0) - 25.0) - 10.0, *((float *)this + 131) * 0.5); cocos2d::CCNode::convertToNodeSpace(&v25, v21, (const cocos2d::CCPoint *)&v27); v22 = *(void (__fastcall **)(cocos2d::CCMenu *, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, 0.0); cocos2d::CCPoint::operator+(&v27, &v25); v22(v17, &v27); v23 = *(void (__fastcall **)(cocos2d::CCMenuItem *, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 55.0, 0.0); cocos2d::CCPoint::operator+(&v27, &v25); v23(v20, &v27); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v21); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source