{"type": "func", "start": 6442844960, "end": 6442845103, "name": "cocos2d::CCProgressTimer::setSprite", "pseudocode": "// \n// cocos2d::CCProgressTimer::setSprite from 0x180060320 to 0x1800603af (143 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180142620\n// > <???> @ 0x180142630\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd528\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\nvoid __fastcall cocos2d::CCProgressTimer::setSprite(cocos2d::CCProgressTimer *this, struct cocos2d::CCSprite *a2)\n{\n  cocos2d::CCObject *v4; // rcx\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  void *v7; // rcx\n\n  if ( *((struct cocos2d::CCSprite **)this + 44) != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    v4 = *((cocos2d::CCObject **)this + 44);\n    if ( v4 )\n      cocos2d::CCObject::release(v4);\n    v5 = *(_QWORD *)this;\n    *((_QWORD *)this + 44) = a2;\n    v6 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2);\n    (*(void (__fastcall **)(cocos2d::CCProgressTimer *, __int64))(v5 + 312))(this, v6);\n    v7 = *((void **)this + 46);\n    if ( v7 )\n    {\n      free(v7);\n      *((_QWORD *)this + 46) = 0;\n      *((_DWORD *)this + 90) = 0;\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCProgressTimer::setSprite from 0x180060320 to 0x1800603af (143 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180142620\n; > <???> @ 0x180142630\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd528\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_8], rsi                                               ; +0x0, 0x180060320\npush    rdi                                                            ; +0x5, 0x180060325\nsub     rsp, 20h                                                       ; +0x6, 0x180060326\nmov     rsi, rdx                                                       ; +0xa, 0x18006032a\nmov     rdi, rcx                                                       ; +0xd, 0x18006032d\ncmp     [rcx+160h], rdx                                                ; +0x10, 0x180060330\njz      short loc_1800603A4                                            ; +0x17, 0x180060337\nmov     [rsp+28h+arg_0], rbx                                           ; +0x19, 0x180060339\ntest    rdx, rdx                                                       ; +0x1e, 0x18006033e\njz      short loc_18006034B                                            ; +0x21, 0x180060341\nmov     rcx, rdx; this                                                 ; +0x23, 0x180060343\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x26, 0x180060346\nmov     rcx, [rdi+160h]; this                                          ; +0x2b, 0x18006034b\ntest    rcx, rcx                                                       ; +0x32, 0x180060352\njz      short loc_18006035C                                            ; +0x35, 0x180060355\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x37, 0x180060357\nmov     rbx, [rdi]                                                     ; +0x3c, 0x18006035c\nmov     rcx, rsi                                                       ; +0x3f, 0x18006035f\nmov     [rdi+160h], rsi                                                ; +0x42, 0x180060362\nmov     rax, [rsi]                                                     ; +0x49, 0x180060369\ncall    qword ptr [rax+140h]                                           ; +0x4c, 0x18006036c\nmov     rdx, rax                                                       ; +0x52, 0x180060372\nmov     rcx, rdi                                                       ; +0x55, 0x180060375\ncall    qword ptr [rbx+138h]                                           ; +0x58, 0x180060378\nmov     rcx, [rdi+170h]; Block                                         ; +0x5e, 0x18006037e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x65, 0x180060385\ntest    rcx, rcx                                                       ; +0x6a, 0x18006038a\njz      short loc_1800603A4                                            ; +0x6d, 0x18006038d\ncall    cs:__imp_free                                                  ; +0x6f, 0x18006038f\nxor     eax, eax                                                       ; +0x75, 0x180060395\nmov     [rdi+170h], rax                                                ; +0x77, 0x180060397\nmov     [rdi+168h], eax                                                ; +0x7e, 0x18006039e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x84, 0x1800603a4\nadd     rsp, 20h                                                       ; +0x89, 0x1800603a9\npop     rdi                                                            ; +0x8d, 0x1800603ad\nretn                                                                   ; +0x8e, 0x1800603ae", "xrefs": ["<???> @ 0x180142620", "<???> @ 0x180142630", "<???> @ 0x18014cf68", "<???> @ 0x1801bd528"], "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"}