{"type": "func", "start": 6442836416, "end": 6442836489, "name": "cocos2d::CCProgressTimer::setType", "pseudocode": "// \n// cocos2d::CCProgressTimer::setType from 0x18005e1c0 to 0x18005e209 (73 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1800577b1\n// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x1800578c1\n// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x1800579d1\n// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180057ade\n// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180057bae\n// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180057c81\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3288\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\n__int64 __fastcall cocos2d::CCProgressTimer::setType(\n        cocos2d::CCProgressTimer *this,\n        enum cocos2d::CCProgressTimerType a2)\n{\n  cocos2d::ccV2F_C4B_T2F *m_pVertexData; // rcx\n  __int64 result; // rax\n\n  if ( a2 != this->m_eType )\n  {\n    m_pVertexData = this->m_pVertexData;\n    if ( m_pVertexData )\n    {\n      free(m_pVertexData);\n      result = 0;\n      this->m_pVertexData = nullptr;\n      this->m_nVertexDataCount = 0;\n    }\n    this->m_eType = a2;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCProgressTimer::setType from 0x18005e1c0 to 0x18005e209 (73 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1800577b1\n; > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x1800578c1\n; > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x1800579d1\n; > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180057ade\n; > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180057bae\n; > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180057c81\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3288\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005e1c0\npush    rdi                                                            ; +0x5, 0x18005e1c5\nsub     rsp, 20h                                                       ; +0x6, 0x18005e1c6\nmov     edi, edx                                                       ; +0xa, 0x18005e1ca\nmov     rbx, rcx                                                       ; +0xc, 0x18005e1cc\ncmp     edx, [rcx+158h]                                                ; +0xf, 0x18005e1cf\njz      short loc_18005E1FE                                            ; +0x15, 0x18005e1d5\nmov     rcx, [rcx+170h]; Block                                         ; +0x17, 0x18005e1d7\ntest    rcx, rcx                                                       ; +0x1e, 0x18005e1de\njz      short loc_18005E1F8                                            ; +0x21, 0x18005e1e1\ncall    cs:__imp_free                                                  ; +0x23, 0x18005e1e3\nxor     eax, eax                                                       ; +0x29, 0x18005e1e9\nmov     [rbx+170h], rax                                                ; +0x2b, 0x18005e1eb\nmov     [rbx+168h], eax                                                ; +0x32, 0x18005e1f2\nmov     [rbx+158h], edi                                                ; +0x38, 0x18005e1f8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x18005e1fe\nadd     rsp, 20h                                                       ; +0x43, 0x18005e203\npop     rdi                                                            ; +0x47, 0x18005e207\nretn                                                                   ; +0x48, 0x18005e208", "xrefs": ["cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1800577b1", "cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x1800578c1", "cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x1800579d1", "cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x180057ade", "cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180057bae", "cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180057c81", "<???> @ 0x1801438a8", "<???> @ 0x1801b3288"], "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"}