// // SongInfoLayer::addLinkRows from 0x903778 to 0x903a5c (740 bytes) // // 3 xrefs: // > SongInfoLayer::init @ 0x904cb8 // > SongInfoLayer::init @ 0x904dd8 // > @ 0x6d0f0 // // 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:57:07 +0000 // __int64 __fastcall SongInfoLayer::addLinkRows(__int64 a1, _QWORD *a2, int a3, float a4) { cocos2d::CCDirector *v7; // x0 __int64 v8; // x20 unsigned __int64 v9; // x26 cocos2d::CCArray *v10; // x25 __int64 v11; // x20 __int64 v12; // x21 __int64 v13; // x22 unsigned __int64 v14; // x0 _QWORD *v15; // x1 cocos2d::CCObject *v16; // x1 unsigned __int64 v17; // x22 const char *v18; // x6 ButtonSprite *v19; // x0 __int64 v20; // x22 cocos2d::CCArray *v21; // x0 cocos2d::CCNode *v23; // [xsp+88h] [xbp+88h] unsigned __int64 v25; // [xsp+98h] [xbp+98h] __int64 v26; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v27[8]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v28; // [xsp+B8h] [xbp+B8h] BYREF __int64 v29[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v30; // [xsp+D0h] [xbp+D0h] v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v26, v7); v8 = (__int64)(a2[1] - *a2) >> 3; v9 = 3 * a3; if ( 0x6DB6DB6DB6DB6DB7LL * v8 <= v9 ) v9 = 0x6DB6DB6DB6DB6DB7LL * v8; v10 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)(0x6DB6DB6DB6DB6DB7LL * v8)); if ( v9 ) { v11 = 1; v12 = 0; do { while ( 1 ) { v25 = v11 - 1; GJLinkObject::getTitle(v29, (GJLinkObject *)(*a2 + v12)); v19 = (ButtonSprite *)((char *)v29 + 1); if ( (v29[0] & 1) != 0 ) v19 = (ButtonSprite *)v30; v20 = ButtonSprite::create( v19, (const char *)off_50 + 7, 0, 1, 0.6, "bigFont.fnt", "GJ_button_05.png", v18, 27.0); if ( (v29[0] & 1) != 0 ) operator delete(v30); v13 = CCMenuItemSpriteExtra::create(v20, 0, a1, (__int64)SongInfoLayer::onLink, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 72LL))( v13, -1431655765 * (unsigned int)((__int64)(*(_QWORD *)(a1 + 728) - *(_QWORD *)(a1 + 720)) >> 3)); v14 = *(_QWORD *)(a1 + 728); v15 = (_QWORD *)(*a2 + v12 + 32); if ( v14 == *(_QWORD *)(a1 + 736) ) { std::vector::__push_back_slow_path((__int64 *)(a1 + 720), v15); } else { if ( v14 ) { std::string::basic_string(v14, v15); v14 = *(_QWORD *)(a1 + 728); } *(_QWORD *)(a1 + 728) = v14 + 24; } (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v13); v16 = (cocos2d::CCObject *)v13; v17 = v11; cocos2d::CCArray::addObject(v10, v16); if ( (unsigned int)cocos2d::CCArray::count(v10) == 3 || v11 == v9 ) break; v12 += 56; ++v11; if ( v17 >= v9 ) return _stack_chk_guard; } v12 += 56; v23 = *(cocos2d::CCNode **)(a1 + 552); ++v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *(float *)&v26 * 0.5, a4 - (float)(int)(34 * (v25 / 3))); cocos2d::CCNode::convertToNodeSpace(&v28, v23, (const cocos2d::CCPoint *)v27); v21 = (cocos2d::CCArray *)GameToolbox::alignItemsHorisontally((__int64)v10, (__int64)&v28, 0, 14.0); v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v21); } while ( v17 < v9 ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source