// // DropdownListPopup::buildRows from 0x777b98 to 0x777e88 (752 bytes) // // 1 xrefs: // > DropdownListPopup::init @ 0x778320 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:21 +0000 // void __fastcall DropdownListPopup::buildRows(DropdownListPopup *this) { unsigned int i; // r10 int v3; // r2 int v4; // r0 int v5; // r3 int v6; // r6 int j; // r5 int v8; // r0 CCMenuItemSpriteExtra *v9; // r0 int v10; // r2 CCMenuItemSpriteExtra *v11; // r1 float v12; // s16 CCMenuItemSpriteExtra **v13; // r3 int v14; // r5 float v15; // s18 int v16; // r0 CCMenuItemSpriteExtra *v17; // r0 int v18; // r2 CCMenuItemSpriteExtra *v19; // r11 void (__fastcall *v20)(CCMenuItemSpriteExtra *, _DWORD *); // r10 CCMenuItemSpriteExtra *v21; // r1 int v22; // r3 float v23; // s16 CCMenuItemSpriteExtra *v24; // r10 CCMenuItemSpriteExtra **v25; // r3 void (__fastcall *v26)(CCMenuItemSpriteExtra *, _DWORD *); // [sp+8h] [bp-34h] void (__fastcall *v27)(CCMenuItemSpriteExtra *, _DWORD *); // [sp+8h] [bp-34h] void (__fastcall *v28)(CCMenuItemSpriteExtra *, _DWORD *); // [sp+8h] [bp-34h] CCMenuItemSpriteExtra *v29; // [sp+10h] [bp-2Ch] CCMenuItemSpriteExtra *v30; // [sp+10h] [bp-2Ch] cocos2d::CCPoint *v31; // [sp+14h] [bp-28h] CCMenuItemSpriteExtra *v32; // [sp+18h] [bp-24h] BYREF CCMenuItemSpriteExtra *v33[2]; // [sp+1Ch] [bp-20h] BYREF _DWORD v34[2]; // [sp+24h] [bp-18h] BYREF _DWORD v35[2]; // [sp+2Ch] [bp-10h] BYREF for ( i = 0; ; ++i ) { v3 = *((_DWORD *)this + 133); if ( i >= (*((_DWORD *)this + 134) - v3) >> 2 ) break; v4 = *(_DWORD *)(v3 + 4 * i); (*(void (__fastcall **)(int))(*(_DWORD *)v4 + 260))(v4); } while ( 1 ) { v5 = *((_DWORD *)this + 134); if ( v3 == v5 ) break; *((_DWORD *)this + 134) = v5 - 4; } v6 = -1227133513 * ((*((_DWORD *)this + 131) - *((_DWORD *)this + 130)) >> 2); if ( *((_DWORD *)this + 137) && *((_DWORD *)this + 136) ) { for ( j = 0; j < v6; ++j ) { v8 = sub_776E74(*((_DWORD *)this + 130) + 28 * j, (int)this + 556); v34[1] = 0; v34[0] = DropdownListPopup::onRowSelected; v9 = (CCMenuItemSpriteExtra *)CCMenuItemSpriteExtra::create( v8, 0, (int)this, (int)DropdownListPopup::onRowSelected, 0); v10 = *((_DWORD *)this + 130); v33[0] = v9; (*(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD))(*(_DWORD *)v9 + 36))(v9, *(_DWORD *)(v10 + 28 * j)); v29 = v33[0]; v26 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD *))(*(_DWORD *)v33[0] + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v35, *((float *)this + 149) - 6.0, *((float *)this + 150)); v26(v29, v35); CCMenuItemSpriteExtra::setSizeMult((int)v33[0], 1.0); v11 = v33[0]; *((float *)v33[0] + 88) = 0.5; *((_BYTE *)v11 + 320) = 0; *((_BYTE *)v11 + 321) = 1; v12 = (float)((float)-(float)(*((float *)this + 150) * 0.5) - *((float *)this + 151)) - (float)((float)j * *((float *)this + 150)); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 228))(*((_DWORD *)this + 136)); v30 = v33[0]; v27 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD *))(*(_DWORD *)v33[0] + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, *((float *)this + 149) * 0.5, v12); v27(v30, v35); v13 = *((CCMenuItemSpriteExtra ***)this + 134); if ( v13 == *((CCMenuItemSpriteExtra ***)this + 135) ) { std::vector::__push_back_slow_path( (int)this + 532, v33); } else { if ( v13 ) *v13 = v33[0]; *((_DWORD *)this + 134) += 4; } } } else { v14 = 0; v15 = *((float *)this + 151) + (float)((float)((float)v6 * *((float *)this + 150)) * 0.5); while ( v14 < v6 ) { v16 = sub_776E74(*((_DWORD *)this + 130) + 28 * v14, (int)this + 556); v35[1] = 0; v35[0] = DropdownListPopup::onRowSelected; v17 = (CCMenuItemSpriteExtra *)CCMenuItemSpriteExtra::create( v16, 0, (int)this, (int)DropdownListPopup::onRowSelected, 0); v18 = *((_DWORD *)this + 130); v32 = v17; (*(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD))(*(_DWORD *)v17 + 36))(v17, *(_DWORD *)(v18 + 28 * v14)); v19 = v32; v20 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD *))(*(_DWORD *)v32 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v34, *((float *)this + 149) - 6.0, *((float *)this + 150)); v20(v19, v34); CCMenuItemSpriteExtra::setSizeMult((int)v32, 1.0); v21 = v32; *((float *)v32 + 88) = 0.5; *((_BYTE *)v21 + 320) = 0; *((_BYTE *)v21 + 321) = 1; if ( *((_BYTE *)this + 668) ) v22 = v6 - 1 - v14; else v22 = v14; v23 = (float)((float)((float)(v15 + *((float *)this + 158)) - *((float *)this + 151)) - (float)(*((float *)this + 150) * 0.5)) - (float)((float)v22 * *((float *)this + 150)); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111)); v24 = v32; v28 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _DWORD *))(*(_DWORD *)v32 + 92); v31 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, *((float *)this + 157), v23); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v34, v31); v28(v24, v34); v25 = *((CCMenuItemSpriteExtra ***)this + 134); if ( v25 == *((CCMenuItemSpriteExtra ***)this + 135) ) { std::vector::__push_back_slow_path( (int)this + 532, &v32); } else { if ( v25 ) *v25 = v32; *((_DWORD *)this + 134) += 4; } ++v14; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source