// // cocos2d::CCLabelBMFont::setString from 0x1003987a0 to 0x10039887c (220 bytes) // // 2 xrefs: // > @ 0x1008b9198 // > @ 0x100942040 // // 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 11:03:42 +0000 // __int64 __fastcall cocos2d::CCLabelBMFont::setString(_QWORD *a1, __int64 a2, int a3) { void *v5; // x21 __int64 v6; // x0 __int64 v7; // x8 unsigned int *v8; // x9 __int64 v9; // x8 _QWORD *v10; // x21 unsigned __int64 v11; // x22 __int64 result; // x0 if ( (a3 & 1) != 0 ) { v5 = (void *)a1[51]; a1[51] = sub_10039887C(a2); if ( !v5 ) goto LABEL_6; goto LABEL_5; } v5 = (void *)a1[47]; a1[47] = sub_10039887C(a2); if ( v5 ) LABEL_5: operator delete[](v5); LABEL_6: v6 = a1[26]; if ( v6 ) { if ( (unsigned int)sub_1002E757C(v6) ) { v7 = a1[26]; if ( v7 ) { v8 = *(unsigned int **)(v7 + 56); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((_QWORD **)v8 + 2); v11 = (unsigned __int64)&v10[v9 - 1]; do { if ( !*v10 ) break; (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v10 + 344LL))(*v10, 0); ++v10; } while ( (unsigned __int64)v10 <= v11 ); } } } } result = cocos2d::CCLabelBMFont::createFontChars((__int64)a1); if ( a3 ) return (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 960LL))(a1); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source