; ; CCCounterLabel::updateCounter from 0x1005117e0 to 0x100511854 (116 bytes) ; ; 2 xrefs: ; > CCCounterLabel::enableCounter @ 0x1005117bf ; > CCCounterLabel::setTargetCount @ 0x1005118f8 ; ; 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, 0x1005117e0 mov rbp, rsp ; +0x1, 0x1005117e1 cmp byte ptr [rdi+210h], 1 ; +0x4, 0x1005117e4 jnz short loc_10051184C ; +0xb, 0x1005117eb mov ecx, [rdi+208h] ; +0xd, 0x1005117ed mov eax, [rdi+20Ch] ; +0x13, 0x1005117f3 sub ecx, eax ; +0x19, 0x1005117f9 jle short loc_10051180F ; +0x1b, 0x1005117fb cvtsi2ss xmm1, ecx ; +0x1d, 0x1005117fd cvtsi2ss xmm0, dword ptr [rdi+204h] ; +0x21, 0x100511801 minss xmm0, xmm1 ; +0x29, 0x100511809 jmp short loc_100511821 ; +0x2d, 0x10051180d jge short loc_10051183C ; +0x2f, 0x10051180f cvtsi2ss xmm1, ecx ; +0x31, 0x100511811 cvtsi2ss xmm0, dword ptr [rdi+204h] ; +0x35, 0x100511815 maxss xmm0, xmm1 ; +0x3d, 0x10051181d xorps xmm1, xmm1 ; +0x41, 0x100511821 cvtsi2ss xmm1, eax ; +0x44, 0x100511824 addss xmm1, xmm0 ; +0x48, 0x100511828 cvttss2si eax, xmm1 ; +0x4c, 0x10051182c mov [rdi+20Ch], eax ; +0x50, 0x100511830 pop rbp ; +0x56, 0x100511836 jmp CCCounterLabel__updateString ; +0x57, 0x100511837 mov byte ptr [rdi+210h], 0 ; +0x5c, 0x10051183c cmp byte ptr [rdi+218h], 0 ; +0x63, 0x100511843 jz short loc_10051184E ; +0x6a, 0x10051184a pop rbp ; +0x6c, 0x10051184c retn ; +0x6d, 0x10051184d pop rbp ; +0x6e, 0x10051184e jmp cocos2d__CCNode__unscheduleAllSelectors ; +0x6f, 0x10051184f