; ; 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 ; push rbp ; +0x0, 0x1005128c0 mov rbp, rsp ; +0x1, 0x1005128c1 cvtsi2ss xmm0, esi ; +0x4, 0x1005128c4 mov [rdi+208h], esi ; +0x8, 0x1005128c8 cvtsi2ss xmm1, dword ptr [rdi+20Ch] ; +0xe, 0x1005128ce mov eax, [rdi+214h] ; +0x16, 0x1005128d6 subss xmm0, xmm1 ; +0x1c, 0x1005128dc movaps xmm1, cs:xmmword_100A038A0 ; +0x20, 0x1005128e0 andps xmm1, xmm0 ; +0x27, 0x1005128e7 cvtsi2ss xmm2, eax ; +0x2a, 0x1005128ea ucomiss xmm2, xmm1 ; +0x2e, 0x1005128ee cvttss2si ecx, xmm1 ; +0x31, 0x1005128f1 cmovbe ecx, eax ; +0x35, 0x1005128f5 xorps xmm1, xmm1 ; +0x38, 0x1005128f8 cvtsi2ss xmm1, ecx ; +0x3b, 0x1005128fb divss xmm0, xmm1 ; +0x3f, 0x1005128ff cvttss2si eax, xmm0 ; +0x43, 0x100512903 mov [rdi+204h], eax ; +0x47, 0x100512907 cmp byte ptr [rdi+210h], 0 ; +0x4d, 0x10051290d jnz short loc_100512926 ; +0x54, 0x100512914 mov byte ptr [rdi+210h], 1 ; +0x56, 0x100512916 cmp byte ptr [rdi+218h], 0 ; +0x5d, 0x10051291d jz short loc_100512928 ; +0x64, 0x100512924 pop rbp ; +0x66, 0x100512926 retn ; +0x67, 0x100512927 lea rsi, CCCounterLabel__updateCounter ; +0x68, 0x100512928 movss xmm0, cs:dword_100A0485C ; +0x6f, 0x10051292f xor edx, edx ; +0x77, 0x100512937 pop rbp ; +0x79, 0x100512939 jmp cocos2d__CCNode__schedule_1 ; +0x7a, 0x10051293a