// // cocos2d::CCLabelBMFont::kerningAmountForFirst from 0x18004a350 to 0x18004a469 (281 bytes) // // 2 xrefs: // > cocos2d::CCLabelBMFont::createFontChars @ 0x18004970f // > @ 0x18014cf68 // // This function is hookable on this platform (idp: pc, 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:21:42 +0000 // __int64 __fastcall cocos2d::CCLabelBMFont::kerningAmountForFirst( cocos2d::CCLabelBMFont *this, unsigned __int16 a2, unsigned __int16 a3) { int v3; // r9d __int64 v4; // r11 __int64 v5; // r10 unsigned int v6; // r8d unsigned int v7; // edx unsigned int v8; // ecx int v9; // r8d unsigned int v10; // edx unsigned int v11; // ecx int v12; // r8d __int64 v13; // rax __int64 v14; // rdx __int64 v15; // rax __int64 v16; // rcx v3 = a3 | (a2 << 16); v4 = *(_QWORD *)(*((_QWORD *)this + 58) + 120LL); if ( !v4 ) return 0; v5 = *(_QWORD *)(v4 + 8); v6 = ((v3 & 0xFF000000) + ((BYTE1(v3) + ((unsigned __int8)a2 << 8)) << 8) + (unsigned __int8)v3 + 17973517) ^ 0x7F76D; v7 = (-1622558010 - v6) ^ (v6 << 8); v8 = (v7 >> 13) ^ (-17973517 - v7 - v6); v9 = (v8 >> 12) ^ (v6 - v8 - v7); v10 = (v9 << 16) ^ (v7 - v8 - v9); v11 = (v10 >> 5) ^ (v8 - v10 - v9); v12 = (v11 >> 3) ^ (v9 - v11 - v10); v13 = *(_QWORD *)(*(_QWORD *)v5 + 16 * ((unsigned int)(*(_DWORD *)(v5 + 8) - 1) & (((unsigned __int64)((v12 << 10) ^ (v10 - v12 - v11)) >> 15) ^ (v11 - ((v12 << 10) ^ (v10 - v12 - v11)) - v12)))); if ( !v13 ) return 0; v14 = *(_QWORD *)(v5 + 32); v15 = v13 - v14; if ( !v15 ) return 0; while ( *(_DWORD *)(v15 + 56) != 4 || **(_DWORD **)(v15 + 48) != v3 ) { v16 = *(_QWORD *)(v15 + 40); if ( v16 ) { v15 = v16 - v14; if ( v16 != v14 ) continue; } return 0; } return *(unsigned int *)(v15 + 4); }