// // SongCell::loadFromObject from 0x10012a41c to 0x10012a82c (1040 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x1001260bc // // 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 10:59:19 +0000 // __int64 __fastcall SongCell::loadFromObject(__int64 a1, __int64 a2) { __int64 v4; // x21 void **v5; // x0 __int64 v6; // x19 __n128 v7; // q0 float *v8; // x0 void *v9; // x22 __int64 v10; // x23 __int64 v11; // x23 float v12; // s8 float *v13; // x0 void **v14; // x8 __int64 v15; // x0 __int64 CString; // x21 __int64 v17; // x21 float32x2_t *v18; // x19 double v19; // d0 __n128 v20; // q0 float *v21; // x0 float32x2_t v23; // [xsp+10h] [xbp-60h] BYREF void *__p[2]; // [xsp+18h] [xbp-58h] BYREF char v25; // [xsp+2Fh] [xbp-41h] (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1); *(_QWORD *)(a1 + 552) = a2; v4 = LevelTools::artistForAudio(*(unsigned int *)(a2 + 56)); LevelTools::getAudioTitle(__p, *(unsigned int *)(a2 + 56)); if ( v25 >= 0 ) v5 = __p; else v5 = (void **)__p[0]; v6 = cocos2d::CCLabelBMFont::create_1(v5, "bigFont.fnt"); if ( v25 < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v6); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v6 + 296LL))(v6, __p); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, 1.0); sub_1000262BC((float *)__p, 10.0, (float)(*(float *)(a1 + 524) * 0.5) + 10.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v6 + 184LL))(v6, __p); v7.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6); if ( v7.n128_f32[0] > 240.0 ) { v8 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 328LL))(v6, v7.n128_f32[0]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, 240.0 / *v8); } if ( (*(float (__fastcall **)(__int64, __n128))(*(_QWORD *)v6 + 168LL))(v6, v7) <= 0.7 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 168LL))(v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6); v9 = ButtonSprite::create_1((__int64)"View", 50, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.6, 30.0); v10 = CCMenuItemSpriteExtra::create(v9, 0, a1, SongCell::onClick, 0); CCMenuItemSpriteExtra::setSizeMult(1.5); v11 = sub_100270434(v10); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v11); v12 = *(float *)(a1 + 520); v13 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v9 + 328LL))(v9); sub_1000262BC((float *)__p, (float)(v12 - (float)(*v13 * 0.5)) + -9.0, *(float *)(a1 + 524) * 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v11 + 184LL))(v11, __p); sub_10023D1CC(__p, v4); if ( v25 >= 0 ) v14 = __p; else v14 = (void **)__p[0]; v15 = sub_1003065B0("By %s", (const char *)v14); CString = cocos2d::CCString::getCString(v15); if ( v25 < 0 ) operator delete(__p[0]); v17 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v17); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v17 + 296LL))(v17, __p); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 1.0); v18 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6); sub_1000262BC((float *)&v23, 2.0, -21.0); *(float32x2_t *)&v19 = sub_100026318(v18, &v23, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v17 + 184LL))(v17, __p, v19); v20.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17); if ( v20.n128_f32[0] > 140.0 ) { v21 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 328LL))(v17, v20.n128_f32[0]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 140.0 / *v21); } if ( (*(float (__fastcall **)(__int64, __n128))(*(_QWORD *)v17 + 168LL))(v17, v20) <= 0.7 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 168LL))(v17); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 160LL))(v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source