; ; CCCounterLabel::setTargetCount from 0x100511890 to 0x10051190f (127 bytes) ; ; 2 xrefs: ; > GJShopLayer::updateCurrencyCounter @ 0x10032502c ; > GJShopLayer::didPurchaseItem @ 0x100325647 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x100511890 mov rbp, rsp ; +0x1, 0x100511891 cvtsi2ss xmm0, esi ; +0x4, 0x100511894 mov [rdi+208h], esi ; +0x8, 0x100511898 cvtsi2ss xmm1, dword ptr [rdi+20Ch] ; +0xe, 0x10051189e mov eax, [rdi+214h] ; +0x16, 0x1005118a6 subss xmm0, xmm1 ; +0x1c, 0x1005118ac movaps xmm1, cs:xmmword_100815500 ; +0x20, 0x1005118b0 andps xmm1, xmm0 ; +0x27, 0x1005118b7 cvtsi2ss xmm2, eax ; +0x2a, 0x1005118ba ucomiss xmm2, xmm1 ; +0x2e, 0x1005118be cvttss2si ecx, xmm1 ; +0x31, 0x1005118c1 cmovbe ecx, eax ; +0x35, 0x1005118c5 xorps xmm1, xmm1 ; +0x38, 0x1005118c8 cvtsi2ss xmm1, ecx ; +0x3b, 0x1005118cb divss xmm0, xmm1 ; +0x3f, 0x1005118cf cvttss2si eax, xmm0 ; +0x43, 0x1005118d3 mov [rdi+204h], eax ; +0x47, 0x1005118d7 cmp byte ptr [rdi+210h], 0 ; +0x4d, 0x1005118dd jnz short loc_1005118F6 ; +0x54, 0x1005118e4 mov byte ptr [rdi+210h], 1 ; +0x56, 0x1005118e6 cmp byte ptr [rdi+218h], 0 ; +0x5d, 0x1005118ed jz short loc_1005118F8 ; +0x64, 0x1005118f4 pop rbp ; +0x66, 0x1005118f6 retn ; +0x67, 0x1005118f7 lea rsi, CCCounterLabel__updateCounter ; +0x68, 0x1005118f8 movss xmm0, cs:dword_10081646C ; +0x6f, 0x1005118ff xor edx, edx ; +0x77, 0x100511907 pop rbp ; +0x79, 0x100511909 jmp cocos2d__CCNode__schedule_1 ; +0x7a, 0x10051190a