// // NewThreadPopup::updateCharCount from 0x748374 to 0x748422 (174 bytes) // // 4 xrefs: // > NewThreadPopup::textChanged @ 0x748cfc // > NewThreadPopup::textChanged @ 0x748d34 // > NewThreadPopup::init @ 0x756bac // > NewThreadPopup::init @ 0x756dee // // 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:58:44 +0000 // void __fastcall NewThreadPopup::updateCharCount(NewThreadPopup *this, cocos2d::CCLabelBMFont *a2, int a3, int a4) { float v7; // s13 int v9; // r3 float v10; // s15 void (__fastcall *v11)(cocos2d::CCLabelBMFont *, int); // r7 cocos2d::CCString *v12; // r0 int CString; // r0 if ( a2 ) { v7 = (float)a3; v9 = *(_DWORD *)a2; v10 = (float)a4; if ( (float)a3 >= (float)(v10 * 0.7) ) { (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(v9 + 512))(a2, 255); if ( v7 >= (float)(v10 * 0.9) ) (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void *))(*(_DWORD *)a2 + 536))(a2, &unk_BF0733); else (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int16 *))(*(_DWORD *)a2 + 536))(a2, &word_BF0730); } else { (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(v9 + 512))(a2, 100); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int16 *))(*(_DWORD *)a2 + 536))(a2, &word_BF0730); } v11 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)a2 + 464); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)((a4 - a3) & ~((a4 - a3) >> 31))); CString = cocos2d::CCString::getCString(v12); v11(a2, CString); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source