{"type": "func", "start": 6443229072, "end": 6443229202, "name": "cocos2d::CCDirector::applySmoothFix", "pseudocode": "// \n// cocos2d::CCDirector::applySmoothFix from 0x1800bdf90 to 0x1800be012 (130 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCDirector::calculateDeltaTime @ 0x1800be0ad\n// > <???> @ 0x1801438a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCDirector::applySmoothFix(cocos2d::CCDirector *this)\n{\n  int m_nSmoothFixCounter; // edx\n  float m_dAnimationInterval; // xmm2_4\n  int v3; // eax\n  int v4; // edx\n\n  if ( this->m_bSmoothFix && this->m_bSmoothFixCheck )\n  {\n    m_nSmoothFixCounter = this->m_nSmoothFixCounter;\n    m_dAnimationInterval = this->m_dAnimationInterval;\n    v3 = m_nSmoothFixCounter - 2;\n    v4 = m_nSmoothFixCounter + 1;\n    if ( fabs(this->m_fDeltaTime - m_dAnimationInterval) <= (float)(m_dAnimationInterval * 0.050000001) )\n      v4 = v3;\n    if ( v4 >= 100 )\n    {\n      v4 = 100;\n    }\n    else if ( v4 <= -100 )\n    {\n      this->m_fDeltaTime = m_dAnimationInterval;\n      this->m_nSmoothFixCounter = -100;\n      return;\n    }\n    this->m_nSmoothFixCounter = v4;\n    if ( v4 <= 0 )\n      this->m_fDeltaTime = m_dAnimationInterval;\n  }\n}", "assembly": "; \n; cocos2d::CCDirector::applySmoothFix from 0x1800bdf90 to 0x1800be012 (130 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCDirector::calculateDeltaTime @ 0x1800be0ad\n; > <???> @ 0x1801438a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ncmp     byte ptr [rcx+0A9h], 0                                         ; +0x0, 0x1800bdf90\njz      short locret_1800BE011                                         ; +0x7, 0x1800bdf97\ncmp     byte ptr [rcx+0AAh], 0                                         ; +0x9, 0x1800bdf99\njz      short locret_1800BE011                                         ; +0x10, 0x1800bdfa0\nmov     edx, [rcx+0ACh]                                                ; +0x12, 0x1800bdfa2\nmovsd   xmm2, qword ptr [rcx+0C0h]                                     ; +0x18, 0x1800bdfa8\nmovss   xmm1, dword ptr [rcx+0A0h]                                     ; +0x20, 0x1800bdfb0\ncvtpd2ps xmm2, xmm2                                                    ; +0x28, 0x1800bdfb8\nlea     eax, [rdx-2]                                                   ; +0x2c, 0x1800bdfbc\ninc     edx                                                            ; +0x2f, 0x1800bdfbf\nsubss   xmm1, xmm2                                                     ; +0x31, 0x1800bdfc1\nmovaps  xmm0, xmm2                                                     ; +0x35, 0x1800bdfc5\nmulss   xmm0, cs:dword_180107588                                       ; +0x38, 0x1800bdfc8\nandps   xmm1, cs:xmmword_1800E6560                                     ; +0x40, 0x1800bdfd0\ncomiss  xmm1, xmm0                                                     ; +0x47, 0x1800bdfd7\ncmovbe  edx, eax                                                       ; +0x4a, 0x1800bdfda\ncmp     edx, 64h ; 'd'                                                 ; +0x4d, 0x1800bdfdd\njge     short loc_1800BDFFA                                            ; +0x50, 0x1800bdfe0\ncmp     edx, 0FFFFFF9Ch                                                ; +0x52, 0x1800bdfe2\njg      short loc_1800BDFFF                                            ; +0x55, 0x1800bdfe5\nmovss   dword ptr [rcx+0A0h], xmm2                                     ; +0x57, 0x1800bdfe7\nmov     dword ptr [rcx+0ACh], 0FFFFFF9Ch                               ; +0x5f, 0x1800bdfef\nretn                                                                   ; +0x69, 0x1800bdff9\nmov     edx, 64h ; 'd'                                                 ; +0x6a, 0x1800bdffa\nmov     [rcx+0ACh], edx                                                ; +0x6f, 0x1800bdfff\ntest    edx, edx                                                       ; +0x75, 0x1800be005\njg      short locret_1800BE011                                         ; +0x77, 0x1800be007\nmovss   dword ptr [rcx+0A0h], xmm2                                     ; +0x79, 0x1800be009\nretn                                                                   ; +0x81, 0x1800be011", "xrefs": ["cocos2d::CCDirector::calculateDeltaTime @ 0x1800be0ad", "<???> @ 0x1801438a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}