{"type": "func", "start": 6443243440, "end": 6443243570, "name": "cocos2d::CCDirector::applySmoothFix", "pseudocode": "// \n// cocos2d::CCDirector::applySmoothFix from 0x1800c17b0 to 0x1800c1832 (130 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCDirector::calculateDeltaTime @ 0x1800c18cd\n// > <???> @ 0x18014cf68\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:22:25 +0000\n// \n\nvoid __fastcall cocos2d::CCDirector::applySmoothFix(cocos2d::CCDirector *this)\n{\n  int v1; // edx\n  float v2; // xmm2_4\n  int v3; // eax\n  int v4; // edx\n\n  if ( *((_BYTE *)this + 177) && *((_BYTE *)this + 178) )\n  {\n    v1 = *((_DWORD *)this + 45);\n    v2 = *((double *)this + 25);\n    v3 = v1 - 2;\n    v4 = v1 + 1;\n    if ( fabs(*((float *)this + 42) - v2) <= (float)(v2 * 0.050000001) )\n      v4 = v3;\n    if ( v4 >= 100 )\n    {\n      v4 = 100;\n    }\n    else if ( v4 <= -100 )\n    {\n      *((float *)this + 42) = v2;\n      *((_DWORD *)this + 45) = -100;\n      return;\n    }\n    *((_DWORD *)this + 45) = v4;\n    if ( v4 <= 0 )\n      *((float *)this + 42) = v2;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::applySmoothFix from 0x1800c17b0 to 0x1800c1832 (130 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCDirector::calculateDeltaTime @ 0x1800c18cd\n; > <???> @ 0x18014cf68\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:22:25 +0000\n; \ncmp     byte ptr [rcx+0B1h], 0                                         ; +0x0, 0x1800c17b0\njz      short locret_1800C1831                                         ; +0x7, 0x1800c17b7\ncmp     byte ptr [rcx+0B2h], 0                                         ; +0x9, 0x1800c17b9\njz      short locret_1800C1831                                         ; +0x10, 0x1800c17c0\nmovss   xmm1, dword ptr [rcx+0A8h]                                     ; +0x12, 0x1800c17c2\nmov     edx, [rcx+0B4h]                                                ; +0x1a, 0x1800c17ca\nmovsd   xmm2, qword ptr [rcx+0C8h]                                     ; +0x20, 0x1800c17d0\ncvtpd2ps xmm2, xmm2                                                    ; +0x28, 0x1800c17d8\nlea     eax, [rdx-2]                                                   ; +0x2c, 0x1800c17dc\ninc     edx                                                            ; +0x2f, 0x1800c17df\nsubss   xmm1, xmm2                                                     ; +0x31, 0x1800c17e1\nmovaps  xmm0, xmm2                                                     ; +0x35, 0x1800c17e5\nmulss   xmm0, cs:dword_18010DCE8                                       ; +0x38, 0x1800c17e8\nandps   xmm1, cs:xmmword_1800EC5C0                                     ; +0x40, 0x1800c17f0\ncomiss  xmm1, xmm0                                                     ; +0x47, 0x1800c17f7\ncmovbe  edx, eax                                                       ; +0x4a, 0x1800c17fa\ncmp     edx, 64h ; 'd'                                                 ; +0x4d, 0x1800c17fd\njge     short loc_1800C181A                                            ; +0x50, 0x1800c1800\ncmp     edx, 0FFFFFF9Ch                                                ; +0x52, 0x1800c1802\njg      short loc_1800C181F                                            ; +0x55, 0x1800c1805\nmovss   dword ptr [rcx+0A8h], xmm2                                     ; +0x57, 0x1800c1807\nmov     dword ptr [rcx+0B4h], 0FFFFFF9Ch                               ; +0x5f, 0x1800c180f\nretn                                                                   ; +0x69, 0x1800c1819\nmov     edx, 64h ; 'd'                                                 ; +0x6a, 0x1800c181a\nmov     [rcx+0B4h], edx                                                ; +0x6f, 0x1800c181f\ntest    edx, edx                                                       ; +0x75, 0x1800c1825\njg      short locret_1800C1831                                         ; +0x77, 0x1800c1827\nmovss   dword ptr [rcx+0A8h], xmm2                                     ; +0x79, 0x1800c1829\nretn                                                                   ; +0x81, 0x1800c1831", "xrefs": ["cocos2d::CCDirector::calculateDeltaTime @ 0x1800c18cd", "<???> @ 0x18014cf68"], "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"}