// // SmartTemplateCell::loadFromObject from 0x14015dc40 to 0x14015e032 (1010 bytes) // // 3 xrefs: // > CustomListView::loadCell @ 0x14014603f // > CustomListView::reloadAll @ 0x140146e26 // > @ 0x140917c30 // // This function is hookable on this platform (idp: pc, 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 11:27:23 +0000 // // Hidden C++ exception states: #wind=4 __int64 __fastcall SmartTemplateCell::loadFromObject(__int64 a1, __int64 a2) { __int64 v2; // rbx const char *v4; // rcx struct cocos2d::CCLabelBMFont *v5; // rdi __int64 v6; // rbx __int64 v7; // rax __int64 v8; // rbx __int64 v9; // rax __int64 v10; // rdx __int64 v11; // rdx BOOL v12; // edi cocos2d::CCObject *v13; // rbx const char *v14; // rax cocos2d::CCObject *v15; // rsi cocos2d::CCObject *v16; // rbx cocos2d::CCObject *v17; // rdi struct cocos2d::CCMenu *v18; // rbx __int64 v19; // rax __int64 v20; // rax __int64 v21; // rax void *v23; // [rsp+50h] [rbp-78h] BYREF _BYTE v24[8]; // [rsp+58h] [rbp-70h] BYREF _BYTE v25[8]; // [rsp+60h] [rbp-68h] BYREF _QWORD v26[4]; // [rsp+68h] [rbp-60h] BYREF v2 = a2; LOBYTE(a2) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 576LL))(*(_QWORD *)(a1 + 544), a2); *(_QWORD *)(a1 + 560) = v2; sub_14003F4F0((__int64)v26, v2 + 136); v4 = (const char *)v26; if ( v26[3] > 0xFu ) v4 = (const char *)v26[0]; v5 = cocos2d::CCLabelBMFont::create(v4, (const char *)&qword_140704F78); sub_14003D310((__int64)v26); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v5); v6 = *(_QWORD *)v5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v6 + 288))(v5, v7); v8 = *(_QWORD *)v5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 12.0, *(float *)(a1 + 532) * 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v8 + 184))(v5, v9); cocos2d::CCLabelBMFont::limitLabelWidth(v5, 200.0, 0.80000001, 0.0); v10 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v23 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v23); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v10 = *(_QWORD *)&qword_14090BFB0; } v11 = *(_QWORD *)(v10 + 1664); v12 = v11 && *(_DWORD *)(v11 + 200) == *(_DWORD *)(*(_QWORD *)(a1 + 560) + 200LL); v23 = operator new(0x2C8u); v13 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v23); if ( v13 ) { v14 = "GJ_button_01.png"; if ( v12 ) v14 = "GJ_button_02.png"; if ( ButtonSprite::init_1( (__int64)v13, (__int64)"Use", 50, 0, 1056964608, 0, &qword_140704F78, (__int64)v14, 1106247680) ) { cocos2d::CCObject::autorelease(v13); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 8LL))(v13, 1); LODWORD(v13) = 0; } } v15 = CCMenuItemSpriteExtra::create((int)v13, 0, a1, (__int64)SmartTemplateCell::onClick); *((_DWORD *)v15 + 93) = 1069547520; (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v15 + 64LL))(v15, 0); v23 = operator new(0x2C8u); v16 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v23); if ( v16 ) { if ( ButtonSprite::init_1( (__int64)v16, (__int64)"Edit", 50, 0, 1056964608, 0, &qword_140704F78, (__int64)"GJ_button_03.png", 1106247680) ) { cocos2d::CCObject::autorelease(v16); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v16 + 8LL))(v16, 1); LODWORD(v16) = 0; } } v17 = CCMenuItemSpriteExtra::create((int)v16, 0, a1, (__int64)SmartTemplateCell::onClick); *((_DWORD *)v17 + 93) = 1069547520; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v17 + 64LL))(v17, 1); v18 = cocos2d::CCMenu::create(v15, v17, 0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v23, (float)((float)(*(float *)(a1 + 528) - 55.0) - 25.0) - 10.0, *(float *)(a1 + 532) * 0.5); cocos2d::CCNode::convertToNodeSpace(v18, v24, v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, 0.0); cocos2d::CCPoint::operator+(v24, &v23, v20); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v15 + 184LL))(v15, &v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 55.0, 0.0); cocos2d::CCPoint::operator+(v24, &v23, v21); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v17 + 184LL))(v17, &v23); return (*(__int64 (__fastcall **)(_QWORD, struct cocos2d::CCMenu *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source