{"type": "func", "start": 5368999648, "end": 5368999775, "name": "CCCounterLabel::updateCounter", "pseudocode": "// \n// CCCounterLabel::updateCounter from 0x140046ee0 to 0x140046f5f (127 bytes)\n// \n// 1 xrefs:\n// > CCCounterLabel::setTargetCount @ 0x140046ec2\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:31 +0000\n// \n\nvoid __fastcall CCCounterLabel::updateCounter(__int64 a1)\n{\n  int v1; // eax\n  int v2; // edx\n  float v3; // xmm2_4\n  bool v4; // zf\n\n  if ( *(_BYTE *)(a1 + 548) )\n  {\n    v1 = *(_DWORD *)(a1 + 540);\n    v2 = *(_DWORD *)(a1 + 544);\n    if ( v2 < v1 )\n    {\n      v3 = fminf((float)(v1 - v2), (float)*(int *)(a1 + 536));\nLABEL_6:\n      *(_DWORD *)(a1 + 544) = (int)(float)(v3 + (float)v2);\n      CCCounterLabel::updateString();\n      return;\n    }\n    if ( v2 > v1 )\n    {\n      v3 = fmaxf((float)(v1 - v2), (float)*(int *)(a1 + 536));\n      goto LABEL_6;\n    }\n    v4 = *(_BYTE *)(a1 + 556) == 0;\n    *(_BYTE *)(a1 + 548) = 0;\n    if ( v4 )\n      cocos2d::CCNode::unscheduleAllSelectors((cocos2d::CCNode *)a1);\n  }\n}", "assembly": "; \n; CCCounterLabel::updateCounter from 0x140046ee0 to 0x140046f5f (127 bytes)\n; \n; 1 xrefs:\n; > CCCounterLabel::setTargetCount @ 0x140046ec2\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:31 +0000\n; \ncmp     byte ptr [rcx+224h], 0                                         ; +0x0, 0x140046ee0\njz      short locret_140046F5E                                         ; +0x7, 0x140046ee7\nmov     eax, [rcx+21Ch]                                                ; +0x9, 0x140046ee9\nmov     edx, [rcx+220h]                                                ; +0xf, 0x140046eef\ncmp     edx, eax                                                       ; +0x15, 0x140046ef5\njge     short loc_140046F13                                            ; +0x17, 0x140046ef7\nmovd    xmm0, dword ptr [rcx+218h]                                     ; +0x19, 0x140046ef9\nsub     eax, edx                                                       ; +0x21, 0x140046f01\ncvtdq2ps xmm0, xmm0                                                    ; +0x23, 0x140046f03\nmovd    xmm2, eax                                                      ; +0x26, 0x140046f06\ncvtdq2ps xmm2, xmm2                                                    ; +0x2a, 0x140046f0a\nminss   xmm2, xmm0                                                     ; +0x2d, 0x140046f0d\njmp     short loc_140046F2D                                            ; +0x31, 0x140046f11\njle     short loc_140046F47                                            ; +0x33, 0x140046f13\nmovd    xmm0, dword ptr [rcx+218h]                                     ; +0x35, 0x140046f15\nsub     eax, edx                                                       ; +0x3d, 0x140046f1d\ncvtdq2ps xmm0, xmm0                                                    ; +0x3f, 0x140046f1f\nmovd    xmm2, eax                                                      ; +0x42, 0x140046f22\ncvtdq2ps xmm2, xmm2                                                    ; +0x46, 0x140046f26\nmaxss   xmm2, xmm0                                                     ; +0x49, 0x140046f29\nmovd    xmm1, edx                                                      ; +0x4d, 0x140046f2d\ncvtdq2ps xmm1, xmm1                                                    ; +0x51, 0x140046f31\naddss   xmm2, xmm1                                                     ; +0x54, 0x140046f34\ncvttss2si eax, xmm2                                                    ; +0x58, 0x140046f38\nmov     [rcx+220h], eax                                                ; +0x5c, 0x140046f3c\njmp     CCCounterLabel__updateString                                   ; +0x62, 0x140046f42\ncmp     byte ptr [rcx+22Ch], 0                                         ; +0x67, 0x140046f47\nmov     byte ptr [rcx+224h], 0                                         ; +0x6e, 0x140046f4e\njnz     short locret_140046F5E                                         ; +0x75, 0x140046f55\njmp     cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x77, 0x140046f57\nretn                                                                   ; +0x7e, 0x140046f5e", "xrefs": ["CCCounterLabel::setTargetCount @ 0x140046ec2"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}