// // CCCounterLabel::setTargetCount from 0x140046e50 to 0x140046ed1 (129 bytes) // // 2 xrefs: // > GJShopLayer::updateCurrencyCounter @ 0x1403b2034 // > GJShopLayer::didPurchaseItem @ 0x1403b2a31 // // 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:25:31 +0000 // __int64 __fastcall CCCounterLabel::setTargetCount(__int64 a1, int a2) { int v2; // eax float v3; // xmm0_4 float v4; // xmm1_4 float v5; // xmm2_4 bool v6; // zf __int64 result; // rax v2 = *(_DWORD *)(a1 + 552); v3 = (float)*(int *)(a1 + 544); *(_DWORD *)(a1 + 540) = a2; v4 = (float)a2 - v3; v5 = fabs(v4); if ( (float)v2 > v5 ) v2 = (int)v5; v6 = *(_BYTE *)(a1 + 548) == 0; result = (unsigned int)(int)(float)(v4 / (float)v2); *(_DWORD *)(a1 + 536) = result; if ( v6 ) { v6 = *(_BYTE *)(a1 + 556) == 0; *(_BYTE *)(a1 + 548) = 1; if ( v6 ) return cocos2d::CCNode::schedule(a1, CCCounterLabel::updateCounter); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source