// // FontPreviewCell::loadFromIndex from 0x100315a14 to 0x100315d48 (820 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x10012637c // // 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 11:03:15 +0000 // __int64 __fastcall FontPreviewCell::loadFromIndex(__int64 a1, int a2, int a3) { float v6; // s9 float v7; // s8 void *v8; // x0 __int64 CString; // x22 __int64 v10; // x0 __int64 v11; // x0 void *v12; // x22 __int64 v13; // x0 void *v14; // x0 const char *v15; // x0 const char *v16; // x0 void *v17; // x22 void *v18; // x22 __int64 v19; // x1 __int64 v20; // x2 __int64 v21; // x3 __int64 v22; // x4 __int64 v23; // x5 __int64 v24; // x6 __int64 v25; // x7 __int64 v26; // x21 __int64 v27; // x0 __int64 v28; // x0 __int64 v29; // x0 __int64 v30; // x0 __int64 result; // x0 int v32; // w8 float v33; // [xsp+10h] [xbp-50h] BYREF __int64 v34; // [xsp+18h] [xbp-48h] BYREF (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1); *(_DWORD *)(a1 + 552) = a2; v6 = *(float *)(a1 + 520); v7 = *(float *)(a1 + 524); v8 = sub_1003065B0("font%02dPreview.png", a2); CString = cocos2d::CCString::getCString((__int64)v8); v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(CString); v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, CString); if ( v11 ) { v12 = cocos2d::CCSprite::createWithSpriteFrame(v11); sub_1000262BC((float *)&v34, 0.0, 0.5); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v12 + 296LL))(v12, &v34); sub_1000262BC((float *)&v34, 8.0, v7 * 0.5); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v12 + 184LL))(v12, &v34); if ( *(float *)((*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 328LL))(v12) + 4) > (float)(v7 + -4.0) ) { v13 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v12 + 328LL))(v12); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v12 + 160LL))(v12, (float)(v7 + -4.0) / *(float *)(v13 + 4)); } if ( a2 == a3 ) { BYTE2(v34) = -106; LOWORD(v34) = -256; (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v12 + 960LL))(v12, &v34); } } else { v14 = sub_1003065B0("Font %i", a2 + 1); v15 = (const char *)cocos2d::CCString::getCString((__int64)v14); v12 = (void *)cocos2d::CCLabelBMFont::create_1(v15, "bigFont.fnt"); sub_1000262BC((float *)&v34, 0.0, 0.5); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v12 + 296LL))(v12, &v34); sub_1000262BC((float *)&v34, 8.0, v7 * 0.5); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v12 + 184LL))(v12, &v34); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v12 + 160LL))(v12, 0.5); } (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v12); if ( a2 == a3 ) v16 = "GJ_selectSongOnBtn_001.png"; else v16 = "GJ_selectSongBtn_001.png"; v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v16); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.65); v18 = CCMenuItemSpriteExtra::create((__int64)v17, 0, a1, (__int64)sub_100315D48, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v18, 1.1); if ( a2 == a3 ) (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v18 + 1056LL))(v18, 0); v26 = sub_100270434((__int64)v18, v19, v20, v21, v22, v23, v24, v25, 0); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v26, 3); v27 = cocos2d::CCDirector::sharedDirector(); v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 160LL))(v27); if ( cocos2d::CCTouchDispatcher::isUsingForcePrio(v28) ) { v29 = cocos2d::CCDirector::sharedDirector(); v30 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 160LL))(v29); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v26 + 1024LL))(v26, (unsigned int)(*(_DWORD *)(v30 + 128) - 1)); } sub_1000262BC(&v33, v6 + -18.0, v7 * 0.5); cocos2d::CCNode::convertToNodeSpace(v26, (__int64)&v33, &v34); result = (*(__int64 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v18 + 184LL))(v18, &v34); if ( (a2 & 1) != 0 ) v32 = -12684606; else v32 = -13870943; *(_DWORD *)(a1 + 548) = v32; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source