// // sub_776E74 from 0x776e74 to 0x777044 (464 bytes) // // 2 xrefs: // > DropdownListPopup::buildRows @ 0x777c2e // > DropdownListPopup::buildRows @ 0x777d5a // // 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:20 +0000 // int __fastcall sub_776E74(int a1, int a2) { int v4; // r5 void (__fastcall *v5)(int, _BYTE *); // r8 int v6; // r0 const char *v7; // r2 unsigned int v8; // r3 float v9; // s16 float v10; // s17 float v11; // s18 cocos2d::CCLabelBMFont *v12; // r0 const char *v13; // r1 int v14; // r8 void (__fastcall *v15)(int, _BYTE *); // r10 void (__fastcall *v16)(int, _BYTE *); // r10 float v17; // s15 int v18; // r3 cocos2d::CCLabelBMFont *v19; // r0 const char *v20; // r1 cocos2d::CCLabelBMFont *v21; // r8 void (__fastcall *v22)(cocos2d::CCLabelBMFont *, _BYTE *); // r4 void (__fastcall *v23)(cocos2d::CCLabelBMFont *, _BYTE *); // r4 _BYTE v25[8]; // [sp+4h] [bp-Ch] BYREF v4 = cocos2d::CCSprite::create((cocos2d::CCSprite *)a1); v5 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v25, *(float *)(a2 + 40) - 10.0, *(float *)(a2 + 44)); v5(v4, v25); (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 492))(v4, 1); v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 164))(v4); v8 = *(unsigned __int8 *)(a1 + 16); v9 = *(float *)(a2 + 40) - 10.0; v10 = 0.0; v11 = *(float *)(v6 + 4) * 0.5; if ( (v8 & 1) != 0 ) { if ( !*(_DWORD *)(a1 + 20) ) goto LABEL_11; v12 = *(cocos2d::CCLabelBMFont **)(a1 + 24); } else { if ( !(v8 >> 1) ) goto LABEL_11; v12 = (cocos2d::CCLabelBMFont *)(a1 + 17); } if ( (*(_BYTE *)(a2 + 16) & 1) != 0 ) v13 = *(const char **)(a2 + 24); else v13 = (const char *)(a2 + 17); v14 = cocos2d::CCLabelBMFont::create(v12, v13, v7); (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 536))(v14, a2 + 35); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v14 + 80))(v14, *(_DWORD *)(a2 + 28)); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, 0.5); v15(v14, v25); v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, v11); v16(v14, v25); (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 228))(v4, v14); v17 = (float)(*(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v14 + 164))(v14) * *(float *)(a2 + 28)) + 4.0; v9 = v9 - v17; v10 = v17 + 0.0; if ( v9 < 0.0 ) v9 = 0.0; LABEL_11: v18 = *(unsigned __int8 *)(a1 + 4); if ( (v18 & 1) != 0 ) v19 = *(cocos2d::CCLabelBMFont **)(a1 + 12); else v19 = (cocos2d::CCLabelBMFont *)(a1 + 5); if ( (*(_BYTE *)(a2 + 16) & 1) != 0 ) v20 = *(const char **)(a2 + 24); else v20 = (const char *)(a2 + 17); v21 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v19, v20, (const char *)(v18 << 31)); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v21 + 536))(v21, a2 + 32); cocos2d::CCLabelBMFont::limitLabelWidth(v21, v9, *(float *)(a2 + 28), *(float *)(a2 + 28) * 0.2); v22 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v21 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, 0.5); v22(v21, v25); v23 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v10, v11); v23(v21, v25); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *))(*(_DWORD *)v4 + 228))(v4, v21); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source