// // sub_CB5D38 from 0xcb5d38 to 0xcb5fd0 (664 bytes) // // 2 xrefs: // > DropdownListPopup::buildRows @ 0xcb7ad8 // > DropdownListPopup::buildRows @ 0xcb7c9c // // 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 13:06:12 +0000 // __int64 __fastcall sub_CB5D38(__int64 a1, __int64 a2) { __int64 v4; // x20 void (__fastcall *v5)(__int64, _BYTE *); // x23 __int64 v6; // x0 int v7; // w23 float v8; // s8 float v9; // s9 float v10; // s10 __int64 v11; // x25 cocos2d::CCLabelBMFont *v12; // x0 const char *v13; // x2 const char *v14; // x1 cocos2d::CCLabelBMFont *v15; // x22 void (__fastcall *v16)(cocos2d::CCLabelBMFont *, _BYTE *); // x19 void (__fastcall *v17)(cocos2d::CCLabelBMFont *, _BYTE *); // x19 cocos2d::CCLabelBMFont *v19; // x0 const char *v20; // x2 const char *v21; // x1 __int64 v22; // x23 void (__fastcall *v23)(__int64, _BYTE *); // x26 void (__fastcall *v24)(__int64, _BYTE *); // x26 float v25; // s10 _BYTE v26[8]; // [xsp+70h] [xbp+70h] BYREF v4 = cocos2d::CCSprite::create(_stack_chk_guard); v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v26, *(float *)(a2 + 68) - 10.0, *(float *)(a2 + 72)); v5(v4, v26); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 984LL))(v4, 1); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 328LL))(v4); v7 = *(unsigned __int8 *)(a1 + 32); v8 = *(float *)(a2 + 68) - 10.0; v9 = *(float *)(v6 + 4) * 0.5; if ( (v7 & 1) != 0 ) { if ( !*(_QWORD *)(a1 + 40) ) { LABEL_3: v10 = 0.0; v11 = a2 + 32; goto LABEL_4; } v19 = *(cocos2d::CCLabelBMFont **)(a1 + 48); } else { if ( !(v7 >> 1) ) goto LABEL_3; v19 = (cocos2d::CCLabelBMFont *)(a1 + 33); } v20 = (const char *)*(unsigned __int8 *)(a2 + 32); v11 = a2 + 32; v21 = (const char *)(a2 + 33); if ( ((unsigned __int8)v20 & 1) != 0 ) v21 = *(const char **)(a2 + 48); v22 = cocos2d::CCLabelBMFont::create(v19, v21, v20); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 1072LL))(v22, a2 + 63); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, *(float *)(a2 + 56)); v23 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, 0.5); v23(v22, v26); v24 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, v9); v24(v22, v26); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 456LL))(v4, v22); v25 = (float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 328LL))(v22) * *(float *)(a2 + 56)) + 4.0; v8 = v8 - v25; v10 = v25 + 0.0; if ( v8 < 0.0 ) v8 = 0.0; LABEL_4: v12 = (cocos2d::CCLabelBMFont *)(a1 + 9); if ( (*(_BYTE *)(a1 + 8) & 1) != 0 ) v12 = *(cocos2d::CCLabelBMFont **)(a1 + 24); v13 = (const char *)*(unsigned __int8 *)(a2 + 32); v14 = (const char *)(a2 + 33); if ( ((unsigned __int8)v13 & 1) != 0 ) v14 = *(const char **)(v11 + 16); v15 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v12, v14, v13); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v15 + 1072LL))(v15, a2 + 60); cocos2d::CCLabelBMFont::limitLabelWidth(v15, v8, *(float *)(a2 + 56), *(float *)(a2 + 56) * 0.2); v16 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v15 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, 0.0, 0.5); v16(v15, v26); v17 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v10, v9); v17(v15, v26); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *))(*(_QWORD *)v4 + 456LL))(v4, v15); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source