{"type": "func", "start": 6442836272, "end": 6442836415, "name": "cocos2d::CCProgressTimer::setSprite", "pseudocode": "// \n// cocos2d::CCProgressTimer::setSprite from 0x18005e130 to 0x18005e1bf (143 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180139344\n// > <???> @ 0x180139354\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3264\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::CCProgressTimer::setSprite(cocos2d::CCProgressTimer *this, struct cocos2d::CCSprite *a2)\n{\n  cocos2d::CCSprite *m_pSprite; // rcx\n  cocos2d::CCProgressTimer_vtbl *v5; // rbx\n  __int64 v6; // rax\n  cocos2d::ccV2F_C4B_T2F *m_pVertexData; // rcx\n\n  if ( this->m_pSprite != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    m_pSprite = this->m_pSprite;\n    if ( m_pSprite )\n      cocos2d::CCObject::release(m_pSprite);\n    v5 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    this->m_pSprite = a2;\n    v6 = ((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getContentSize)(a2);\n    ((void (__fastcall *)(cocos2d::CCProgressTimer *, __int64))v5->setContentSize)(this, v6);\n    m_pVertexData = this->m_pVertexData;\n    if ( m_pVertexData )\n    {\n      free(m_pVertexData);\n      this->m_pVertexData = nullptr;\n      this->m_nVertexDataCount = 0;\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCProgressTimer::setSprite from 0x18005e130 to 0x18005e1bf (143 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180139344\n; > <???> @ 0x180139354\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3264\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_8], rsi                                               ; +0x0, 0x18005e130\npush    rdi                                                            ; +0x5, 0x18005e135\nsub     rsp, 20h                                                       ; +0x6, 0x18005e136\nmov     rsi, rdx                                                       ; +0xa, 0x18005e13a\nmov     rdi, rcx                                                       ; +0xd, 0x18005e13d\ncmp     [rcx+160h], rdx                                                ; +0x10, 0x18005e140\njz      short loc_18005E1B4                                            ; +0x17, 0x18005e147\nmov     [rsp+28h+arg_0], rbx                                           ; +0x19, 0x18005e149\ntest    rdx, rdx                                                       ; +0x1e, 0x18005e14e\njz      short loc_18005E15B                                            ; +0x21, 0x18005e151\nmov     rcx, rdx; this                                                 ; +0x23, 0x18005e153\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x26, 0x18005e156\nmov     rcx, [rdi+160h]; this                                          ; +0x2b, 0x18005e15b\ntest    rcx, rcx                                                       ; +0x32, 0x18005e162\njz      short loc_18005E16C                                            ; +0x35, 0x18005e165\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x37, 0x18005e167\nmov     rbx, [rdi]                                                     ; +0x3c, 0x18005e16c\nmov     rcx, rsi                                                       ; +0x3f, 0x18005e16f\nmov     [rdi+160h], rsi                                                ; +0x42, 0x18005e172\nmov     rax, [rsi]                                                     ; +0x49, 0x18005e179\ncall    qword ptr [rax+130h]                                           ; +0x4c, 0x18005e17c\nmov     rdx, rax                                                       ; +0x52, 0x18005e182\nmov     rcx, rdi                                                       ; +0x55, 0x18005e185\ncall    qword ptr [rbx+128h]                                           ; +0x58, 0x18005e188\nmov     rcx, [rdi+170h]; Block                                         ; +0x5e, 0x18005e18e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x65, 0x18005e195\ntest    rcx, rcx                                                       ; +0x6a, 0x18005e19a\njz      short loc_18005E1B4                                            ; +0x6d, 0x18005e19d\ncall    cs:__imp_free                                                  ; +0x6f, 0x18005e19f\nxor     eax, eax                                                       ; +0x75, 0x18005e1a5\nmov     [rdi+170h], rax                                                ; +0x77, 0x18005e1a7\nmov     [rdi+168h], eax                                                ; +0x7e, 0x18005e1ae\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x84, 0x18005e1b4\nadd     rsp, 20h                                                       ; +0x89, 0x18005e1b9\npop     rdi                                                            ; +0x8d, 0x18005e1bd\nretn                                                                   ; +0x8e, 0x18005e1be", "xrefs": ["<???> @ 0x180139344", "<???> @ 0x180139354", "<???> @ 0x1801438a8", "<???> @ 0x1801b3264"], "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"}