; ; 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 ; movd xmm0, dword ptr [rcx+220h] ; +0x0, 0x140046e50 mov eax, [rcx+228h] ; +0x8, 0x140046e58 cvtdq2ps xmm0, xmm0 ; +0xe, 0x140046e5e mov [rcx+21Ch], edx ; +0x11, 0x140046e61 movd xmm1, edx ; +0x17, 0x140046e67 cvtdq2ps xmm1, xmm1 ; +0x1b, 0x140046e6b subss xmm1, xmm0 ; +0x1e, 0x140046e6e movd xmm0, eax ; +0x22, 0x140046e72 cvtdq2ps xmm0, xmm0 ; +0x26, 0x140046e76 movaps xmm2, xmm1 ; +0x29, 0x140046e79 andps xmm2, cs:xmmword_140836C90 ; +0x2c, 0x140046e7c comiss xmm0, xmm2 ; +0x33, 0x140046e83 jbe short loc_140046E8C ; +0x36, 0x140046e86 cvttss2si eax, xmm2 ; +0x38, 0x140046e88 cmp byte ptr [rcx+224h], 0 ; +0x3c, 0x140046e8c movd xmm0, eax ; +0x43, 0x140046e93 cvtdq2ps xmm0, xmm0 ; +0x47, 0x140046e97 divss xmm1, xmm0 ; +0x4a, 0x140046e9a cvttss2si eax, xmm1 ; +0x4e, 0x140046e9e mov [rcx+218h], eax ; +0x52, 0x140046ea2 jnz short locret_140046ED0 ; +0x58, 0x140046ea8 cmp byte ptr [rcx+22Ch], 0 ; +0x5a, 0x140046eaa mov byte ptr [rcx+224h], 1 ; +0x61, 0x140046eb1 jnz short locret_140046ED0 ; +0x68, 0x140046eb8 movss xmm2, cs:dword_140834DC4 ; +0x6a, 0x140046eba lea rdx, CCCounterLabel__updateCounter ; +0x72, 0x140046ec2 jmp cs:?schedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZM@Z; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float) ; +0x79, 0x140046ec9 retn ; +0x80, 0x140046ed0