// // NewThreadPopup::updateCharCount from 0xc67d6c to 0xc67e54 (232 bytes) // // 5 xrefs: // > NewThreadPopup::textChanged @ 0xc67efc // > NewThreadPopup::textChanged @ 0xc67f3c // > NewThreadPopup::init @ 0xc7e02c // > NewThreadPopup::init @ 0xc7e334 // > @ 0x102550 // // 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:05:26 +0000 // void __fastcall NewThreadPopup::updateCharCount(NewThreadPopup *this, cocos2d::CCLabelBMFont *a2, int a3, int a4) { float v6; // s2 void (*v8)(void); // x2 const char *v9; // x1 void (__fastcall *v10)(cocos2d::CCLabelBMFont *, __int64); // x20 cocos2d::CCString *v11; // x0 __int64 CString; // x0 if ( !a2 ) return; v6 = (float)a3; if ( (float)a3 < (float)((float)a4 * 0.7) ) { v8 = *(void (**)(void))(*(_QWORD *)a2 + 1024LL); } else { v8 = *(void (**)(void))(*(_QWORD *)a2 + 1024LL); if ( v6 >= (float)((float)a4 * 0.9) ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v8)(a2, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void *))(*(_QWORD *)a2 + 1072LL))(a2, &unk_119E660); goto LABEL_5; } } v8(); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)a2 + 1072LL))(a2, &qword_119E668); LABEL_5: LODWORD(v9) = a4 - a3; if ( a4 - a3 < 0 ) v9 = nullptr; else v9 = (const char *)(unsigned int)v9; v10 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a2 + 928LL); v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v9); CString = cocos2d::CCString::getCString(v11); v10(a2, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source