// // SmartTemplateCell::loadFromObject from 0x100234e70 to 0x100235191 (801 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x100227fb4 // > CustomListView::reloadAll @ 0x100235fef // // 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 12:27:12 +0000 // __int64 __fastcall SmartTemplateCell::loadFromObject(__int64 a1, __int64 a2) { char *v3; // rdi __int64 v4; // r14 __int64 v5; // rax const char *v6; // r9 char *v7; // rax __int64 v8; // r14 char *v9; // rax __int64 v10; // r15 int v11; // ecx int v12; // r8d int v13; // r9d _BYTE v15[8]; // [rsp+0h] [rbp-60h] BYREF __int64 v16; // [rsp+8h] [rbp-58h] __int64 v17; // [rsp+10h] [rbp-50h] _BYTE v18[8]; // [rsp+18h] [rbp-48h] BYREF __int128 v19; // [rsp+20h] [rbp-40h] BYREF void *__p; // [rsp+30h] [rbp-30h] (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1); *(_QWORD *)(a1 + 552) = a2; if ( (*(_BYTE *)(a2 + 144) & 1) != 0 ) { sub_10001AD30(&v19, *(const void **)(a2 + 160), *(_QWORD *)(a2 + 152)); if ( (v19 & 1) == 0 ) goto LABEL_3; } else { __p = *(void **)(a2 + 160); v19 = *(_OWORD *)(a2 + 144); if ( (v19 & 1) == 0 ) { LABEL_3: v3 = (char *)&v19 + 1; goto LABEL_6; } } v3 = (char *)__p; LABEL_6: v4 = cocos2d::CCLabelBMFont::create_3(v3, "bigFont.fnt"); if ( (v19 & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v4); sub_100278250(&v19, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v4 + 296LL))(v4, &v19); sub_100278250(&v19, 12.0, *(float *)(a1 + 524) * 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v4 + 184LL))(v4, &v19); cocos2d::CCLabelBMFont::limitLabelWidth(v4, 200.0, 0.80000001, 0.0); v5 = *(_QWORD *)(GameLevelManager::sharedState(COERCE_DOUBLE(1128792064)) + 1528); if ( v5 ) { v6 = "GJ_button_01.png"; if ( *(_DWORD *)(v5 + 192) == *(_DWORD *)(*(_QWORD *)(a1 + 552) + 192LL) ) v6 = "GJ_button_02.png"; } else { v6 = "GJ_button_01.png"; } v7 = ButtonSprite::create_1((__int64)"Use", 0x32u, 0, 0, (__int64)"bigFont.fnt", (__int64)v6, 0.5, 30.0); v8 = CCMenuItemSpriteExtra::create(v7, 0, a1, SmartTemplateCell::onClick, 0); CCMenuItemSpriteExtra::setSizeMult(v8, 1.5); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 72LL))(v8, 0); v9 = ButtonSprite::create_1( (__int64)"Edit", 0x32u, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_03.png", 0.5, 30.0); v10 = CCMenuItemSpriteExtra::create(v9, 0, a1, SmartTemplateCell::onClick, 0); CCMenuItemSpriteExtra::setSizeMult(v10, 1.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 72LL))(v10, 1); v16 = sub_1008735E0(v8, v10, 0, v11, v12, v13); sub_100278250(v18, (float)((float)(*(float *)(a1 + 520) + -55.0) + -25.0) + -10.0, 0.5 * *(float *)(a1 + 524)); v17 = a1; cocos2d::CCNode::convertToNodeSpace(&v19, v16, v18); sub_100278250(v15, 0.0, 0.0); sub_100278350(v18, &v19, v15); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL))(v8, v18); sub_100278250(v15, 55.0, 0.0); sub_100278350(v18, &v19, v15); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL))(v10, v18); return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v17 + 536) + 456LL))(*(_QWORD *)(v17 + 536), v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source