; ; CCCounterLabel::updateCounter from 0x100512810 to 0x100512884 (116 bytes) ; ; 2 xrefs: ; > CCCounterLabel::enableCounter @ 0x1005127ef ; > CCCounterLabel::setTargetCount @ 0x100512928 ; ; 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, 0x100512810 mov rbp, rsp ; +0x1, 0x100512811 cmp byte ptr [rdi+210h], 1 ; +0x4, 0x100512814 jnz short loc_10051287C ; +0xb, 0x10051281b mov ecx, [rdi+208h] ; +0xd, 0x10051281d mov eax, [rdi+20Ch] ; +0x13, 0x100512823 sub ecx, eax ; +0x19, 0x100512829 jle short loc_10051283F ; +0x1b, 0x10051282b cvtsi2ss xmm1, ecx ; +0x1d, 0x10051282d cvtsi2ss xmm0, dword ptr [rdi+204h] ; +0x21, 0x100512831 minss xmm0, xmm1 ; +0x29, 0x100512839 jmp short loc_100512851 ; +0x2d, 0x10051283d jge short loc_10051286C ; +0x2f, 0x10051283f cvtsi2ss xmm1, ecx ; +0x31, 0x100512841 cvtsi2ss xmm0, dword ptr [rdi+204h] ; +0x35, 0x100512845 maxss xmm0, xmm1 ; +0x3d, 0x10051284d xorps xmm1, xmm1 ; +0x41, 0x100512851 cvtsi2ss xmm1, eax ; +0x44, 0x100512854 addss xmm1, xmm0 ; +0x48, 0x100512858 cvttss2si eax, xmm1 ; +0x4c, 0x10051285c mov [rdi+20Ch], eax ; +0x50, 0x100512860 pop rbp ; +0x56, 0x100512866 jmp CCCounterLabel__updateString ; +0x57, 0x100512867 mov byte ptr [rdi+210h], 0 ; +0x5c, 0x10051286c cmp byte ptr [rdi+218h], 0 ; +0x63, 0x100512873 jz short loc_10051287E ; +0x6a, 0x10051287a pop rbp ; +0x6c, 0x10051287c retn ; +0x6d, 0x10051287d pop rbp ; +0x6e, 0x10051287e jmp cocos2d__CCNode__unscheduleAllSelectors ; +0x6f, 0x10051287f