{"type": "func", "start": 6442845104, "end": 6442845177, "name": "cocos2d::CCProgressTimer::setType", "pseudocode": "// \n// cocos2d::CCProgressTimer::setType from 0x1800603b0 to 0x1800603f9 (73 bytes)\n// \n// 8 xrefs:\n// > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1800596d1\n// > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x1800597e1\n// > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x1800598f1\n// > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x1800599fe\n// > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ace\n// > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059ba1\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd54c\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:21:50 +0000\n// \n\n__int64 __fastcall cocos2d::CCProgressTimer::setType(__int64 a1, int a2)\n{\n  void *v4; // rcx\n  __int64 result; // rax\n\n  if ( a2 != *(_DWORD *)(a1 + 344) )\n  {\n    v4 = *(void **)(a1 + 368);\n    if ( v4 )\n    {\n      free(v4);\n      result = 0;\n      *(_QWORD *)(a1 + 368) = 0;\n      *(_DWORD *)(a1 + 360) = 0;\n    }\n    *(_DWORD *)(a1 + 344) = a2;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCProgressTimer::setType from 0x1800603b0 to 0x1800603f9 (73 bytes)\n; \n; 8 xrefs:\n; > cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1800596d1\n; > cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x1800597e1\n; > cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x1800598f1\n; > cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x1800599fe\n; > cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ace\n; > cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059ba1\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd54c\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:21:50 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800603b0\npush    rdi                                                            ; +0x5, 0x1800603b5\nsub     rsp, 20h                                                       ; +0x6, 0x1800603b6\nmov     edi, edx                                                       ; +0xa, 0x1800603ba\nmov     rbx, rcx                                                       ; +0xc, 0x1800603bc\ncmp     edx, [rcx+158h]                                                ; +0xf, 0x1800603bf\njz      short loc_1800603EE                                            ; +0x15, 0x1800603c5\nmov     rcx, [rcx+170h]; Block                                         ; +0x17, 0x1800603c7\ntest    rcx, rcx                                                       ; +0x1e, 0x1800603ce\njz      short loc_1800603E8                                            ; +0x21, 0x1800603d1\ncall    cs:__imp_free                                                  ; +0x23, 0x1800603d3\nxor     eax, eax                                                       ; +0x29, 0x1800603d9\nmov     [rbx+170h], rax                                                ; +0x2b, 0x1800603db\nmov     [rbx+168h], eax                                                ; +0x32, 0x1800603e2\nmov     [rbx+158h], edi                                                ; +0x38, 0x1800603e8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x1800603ee\nadd     rsp, 20h                                                       ; +0x43, 0x1800603f3\npop     rdi                                                            ; +0x47, 0x1800603f7\nretn                                                                   ; +0x48, 0x1800603f8", "xrefs": ["cocos2d::CCTransitionProgressHorizontal::progressTimerNodeWithRenderTexture @ 0x1800596d1", "cocos2d::CCTransitionProgressInOut::progressTimerNodeWithRenderTexture @ 0x1800597e1", "cocos2d::CCTransitionProgressOutIn::progressTimerNodeWithRenderTexture @ 0x1800598f1", "cocos2d::CCTransitionProgressRadialCCW::progressTimerNodeWithRenderTexture @ 0x1800599fe", "cocos2d::CCTransitionProgressRadialCW::progressTimerNodeWithRenderTexture @ 0x180059ace", "cocos2d::CCTransitionProgressVertical::progressTimerNodeWithRenderTexture @ 0x180059ba1", "<???> @ 0x18014cf68", "<???> @ 0x1801bd54c"], "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"}