// // cocos2d::CCLabelBMFont::kerningAmountForFirst from 0xd55c74 to 0xd55df0 (380 bytes) // // 2 xrefs: // > cocos2d::CCLabelBMFont::createFontChars @ 0xd5634c // > @ 0x5af10 // // 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 13:07:43 +0000 // __int64 __fastcall cocos2d::CCLabelBMFont::kerningAmountForFirst( cocos2d::CCLabelBMFont *this, int a2, unsigned __int16 a3) { __int64 v3; // x5 int v4; // w0 unsigned int v5; // w2 unsigned int v6; // w1 __int64 v7; // x21 int v8; // w0 unsigned int v9; // w2 unsigned int v10; // w1 int v11; // w0 __int64 v12; // x0 __int64 v13; // x19 __int64 result; // x0 int v15; // [xsp+34h] [xbp+34h] BYREF v15 = a3 | (a2 << 16); v3 = *(_QWORD *)(*((_QWORD *)this + 56) + 112LL); if ( !v3 ) return 0; v4 = ((unsigned __int8)v15 + 17973517 + (HIBYTE(v15) << 24) + (BYTE2(v15) << 16) + (BYTE1(v15) << 8)) ^ 0x7F76D; v5 = (-1622558010 - v4) ^ (v4 << 8); v6 = (-17973517 - v4 - v5) ^ (v5 >> 13); v7 = *(_QWORD *)(v3 + 8); v8 = (v4 - v5 - v6) ^ (v6 >> 12); v9 = (v5 - v6 - v8) ^ (v8 << 16); v10 = (v6 - v8 - v9) ^ (v9 >> 5); v11 = (v8 - v9 - v10) ^ (v10 >> 3); v12 = *(_QWORD *)(*(_QWORD *)v7 + 16LL * (((v10 - v11 - ((v9 - v10 - v11) ^ (v11 << 10))) ^ (((v9 - v10 - v11) ^ (v11 << 10)) >> 15)) & (*(_DWORD *)(v7 + 8) - 1))); v13 = v12 ? v12 - *(_QWORD *)(v7 + 32) : 0LL; if ( !v13 ) return 0; while ( *(_DWORD *)(v13 + 56) != 4 || memcmp(*(const void **)(v13 + 48), &v15, 4u) ) { result = *(_QWORD *)(v13 + 40); if ( !result ) return result; v13 = result - *(_QWORD *)(v7 + 32); if ( !v13 ) return 0; } return *(unsigned int *)(v13 + 4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source