// // cocos2d::CCLabelBMFont::kerningAmountForFirst from 0x1005d8ce0 to 0x1005d8df7 (279 bytes) // // 1 xrefs: // > cocos2d::CCLabelBMFont::createFontChars @ 0x1005d9097 // // 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; // rcx int result; // eax unsigned int v5; // r8d unsigned int v6; // edx unsigned int v7; // esi int v8; // edi unsigned int v9; // r8d unsigned int v10; // edx int v11; // esi unsigned int v12; // edi UT_hash_table *tbl; // rdx UT_hash_handle *hh_head; // rcx int v15; // [rsp+0h] [rbp-4h] v15 = a3 | (a2 << 16); m_pKerningDictionary = a1->m_pConfiguration->m_pKerningDictionary; result = 0; if ( m_pKerningDictionary ) { v5 = ((unsigned __int8)a3 + (a3 & 0xFF00 | (a2 << 16) & 0xFF000000 | ((unsigned __int8)a2 << 16)) + 17973517) ^ 0x7F76D; v6 = (-1622558010 - v5) ^ (v5 << 8); v7 = (-17973517 - v5 - v6) ^ (v6 >> 13); v8 = (v5 - v6 - v7) ^ (v7 >> 12); v9 = (v6 - v7 - v8) ^ (v8 << 16); v10 = (v7 - v8 - v9) ^ (v9 >> 5); v11 = (v8 - v9 - v10) ^ (v10 >> 3); v12 = (v10 - (((v9 - v10 - v11) ^ (v11 << 10)) + v11)) ^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15); tbl = m_pKerningDictionary->hh.tbl; hh_head = tbl->buckets[v12 & (tbl->num_buckets - 1)].hh_head; if ( hh_head ) { do { if ( *(_DWORD *)((char *)&hh_head[1].tbl - tbl->hho) == 4 && **(_DWORD **)((char *)&hh_head->keylen - tbl->hho) == v15 ) { return *(_DWORD *)((char *)&hh_head->tbl - tbl->hho + 4); } hh_head = *(UT_hash_handle **)((char *)&hh_head->key - tbl->hho); } while ( hh_head ); return 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source