// // cocos2d::CCLabelBMFont::kerningAmountForFirst from 0xae4728 to 0xae48a4 (380 bytes) // // 2 xrefs: // > cocos2d::CCLabelBMFont::createFontChars @ 0xae5e7c // > @ 0x3f120 // // 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 cocos2d::CCLabelBMFont::kerningAmountForFirst(cocos2d::CCLabelBMFont *a1, unsigned __int16 a2, unsigned __int16 a3) { cocos2d::CCBMFontConfiguration *m_pConfiguration; // x3 cocos2d::tCCKerningHashElement *m_pKerningDictionary; // x5 int v5; // w0 unsigned int v6; // w2 unsigned int v7; // w1 UT_hash_table *tbl; // x21 int v9; // w0 unsigned int v10; // w2 unsigned int v11; // w1 int v12; // w0 UT_hash_handle *hh_head; // x0 __int64 v14; // x19 __int64 v15; // x0 int v17; // [xsp+34h] [xbp+34h] BYREF m_pConfiguration = a1->m_pConfiguration; v17 = a3 | (a2 << 16); m_pKerningDictionary = m_pConfiguration->m_pKerningDictionary; if ( !m_pKerningDictionary ) goto LABEL_8; v5 = ((unsigned __int8)v17 + 17973517 + (HIBYTE(v17) << 24) + (BYTE2(v17) << 16) + (BYTE1(v17) << 8)) ^ 0x7F76D; v6 = (-1622558010 - v5) ^ (v5 << 8); v7 = (-17973517 - v5 - v6) ^ (v6 >> 13); tbl = m_pKerningDictionary->hh.tbl; v9 = (v5 - v6 - v7) ^ (v7 >> 12); v10 = (v6 - v7 - v9) ^ (v9 << 16); v11 = (v7 - v9 - v10) ^ (v10 >> 5); v12 = (v9 - v10 - v11) ^ (v11 >> 3); hh_head = tbl->buckets[((v11 - v12 - ((v10 - v11 - v12) ^ (v12 << 10))) ^ (((v10 - v11 - v12) ^ (v12 << 10)) >> 15)) & (tbl->num_buckets - 1)].hh_head; v14 = hh_head ? (__int64)hh_head - tbl->hho : 0LL; if ( v14 ) { while ( *(_DWORD *)(v14 + 56) != 4 || memcmp(*(const void **)(v14 + 48), &v17, 4u) ) { v15 = *(_QWORD *)(v14 + 40); if ( !v15 ) return v15; v14 = v15 - tbl->hho; if ( !v14 ) goto LABEL_8; } LODWORD(v15) = *(_DWORD *)(v14 + 4); } else { LABEL_8: LODWORD(v15) = 0; } return v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source