// // CCCounterLabel::setTargetCount from 0x1005128c0 to 0x10051293f (127 bytes) // // 2 xrefs: // > GJShopLayer::updateCurrencyCounter @ 0x10031068c // > GJShopLayer::didPurchaseItem @ 0x100310d57 // // 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 12:31:37 +0000 // __int64 __fastcall CCCounterLabel::setTargetCount(__int64 a1, int a2) { float v2; // xmm0_4 float v3; // xmm1_4 int v4; // ecx __int64 result; // rax *(_DWORD *)(a1 + 520) = a2; v2 = (float)a2 - (float)*(int *)(a1 + 524); v3 = fabs(v2); v4 = (int)v3; if ( (float)*(int *)(a1 + 532) <= v3 ) v4 = *(_DWORD *)(a1 + 532); result = (unsigned int)(int)(float)(v2 / (float)v4); *(_DWORD *)(a1 + 516) = result; if ( !*(_BYTE *)(a1 + 528) ) { *(_BYTE *)(a1 + 528) = 1; if ( !*(_BYTE *)(a1 + 536) ) return cocos2d::CCNode::schedule_1(a1, (__int64)CCCounterLabel::updateCounter, 0, COERCE_DOUBLE(1023969417)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source