// // cocos2d::CCLabelBMFont::kerningAmountForFirst from 0x1002fb668 to 0x1002fb780 (280 bytes) // // 1 xrefs: // > cocos2d::CCLabelBMFont::createFontChars @ 0x1002fb950 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall cocos2d::CCLabelBMFont::kerningAmountForFirst( cocos2d::CCLabelBMFont *a1, unsigned __int16 a2, unsigned __int16 a3) { cocos2d::tCCKerningHashElement *m_pKerningDictionary; // x8 unsigned int v4; // w9 unsigned int v5; // w10 unsigned int v6; // w11 int v7; // w9 unsigned int v8; // w10 unsigned int v9; // w11 int v10; // w9 UT_hash_table *tbl; // x8 UT_hash_handle *hh_head; // x9 std::ptrdiff_t v13; // x8 __int64 v14; // x9 m_pKerningDictionary = a1->m_pConfiguration->m_pKerningDictionary; if ( !m_pKerningDictionary ) return 0; v4 = (((a2 << 16) & 0xFF000000 | ((unsigned __int8)a2 << 16) | a3 & 0xFF00 | (unsigned __int8)a3) + 17973517) ^ 0x7F76D; v5 = (-1622558010 - v4) ^ (v4 << 8); v6 = (-17973517 - v4 - v5) ^ (v5 >> 13); v7 = (v4 - v5 - v6) ^ (v6 >> 12); v8 = (v5 - v6 - v7) ^ (v7 << 16); v9 = (v6 - v7 - v8) ^ (v8 >> 5); v10 = (v7 - v8 - v9) ^ (v9 >> 3); tbl = m_pKerningDictionary->hh.tbl; hh_head = tbl->buckets[((v9 - v10 - ((v8 - v9 - v10) ^ (v10 << 10))) ^ (((v8 - v9 - v10) ^ (v10 << 10)) >> 15)) & (tbl->num_buckets - 1)].hh_head; if ( !hh_head ) return 0; v13 = -tbl->hho; while ( 1 ) { v14 = (__int64)hh_head + v13; if ( *(_DWORD *)(v14 + 56) == 4 && **(_DWORD **)(v14 + 48) == (a3 | (a2 << 16)) ) break; hh_head = *(UT_hash_handle **)(v14 + 40); if ( !hh_head ) return 0; } return *(_DWORD *)(v14 + 4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source