{"type": "func", "start": 6443026528, "end": 6443026641, "name": "cocos2d::CCSprite::setScale", "pseudocode": "// \n// cocos2d::CCSprite::setScale from 0x18008c860 to 0x18008c8d1 (113 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800eb920\n// > <???> @ 0x1800ebdf8\n// > <???> @ 0x1800ec978\n// > <???> @ 0x180103830\n// > <???> @ 0x180106828\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5df0\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::CCSprite::setScale(cocos2d::CCSprite *this, float a2)\n{\n  __int64 v3; // rdx\n  cocos2d::CCSprite_vtbl *v4; // rax\n  __int64 v5; // rdx\n\n  if ( this->m_fScaleX != a2 || this->m_fScaleY != a2 )\n  {\n    cocos2d::CCNode::setScale(this, a2);\n    if ( this->m_pobBatchNode && !this->m_bRecursiveDirty )\n    {\n      v4 = this->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      LOBYTE(v3) = 1;\n      this->m_bRecursiveDirty = 1;\n      ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v4->setDirty)(this, v3);\n      if ( this->m_bHasChildren )\n      {\n        LOBYTE(v5) = 1;\n        ((void (__fastcall *)(cocos2d::CCSprite *, __int64))this->setDirtyRecursively)(this, v5);\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::setScale from 0x18008c860 to 0x18008c8d1 (113 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800eb920\n; > <???> @ 0x1800ebdf8\n; > <???> @ 0x1800ec978\n; > <???> @ 0x180103830\n; > <???> @ 0x180106828\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5df0\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\npush    rbx                                                            ; +0x0, 0x18008c860\nsub     rsp, 20h                                                       ; +0x2, 0x18008c862\nmovss   xmm0, dword ptr [rcx+40h]                                      ; +0x6, 0x18008c866\nmov     rbx, rcx                                                       ; +0xb, 0x18008c86b\nucomiss xmm0, xmm1                                                     ; +0xe, 0x18008c86e\njp      short loc_18008C881                                            ; +0x11, 0x18008c871\njnz     short loc_18008C881                                            ; +0x13, 0x18008c873\nmovss   xmm0, dword ptr [rcx+44h]                                      ; +0x15, 0x18008c875\nucomiss xmm0, xmm1                                                     ; +0x1a, 0x18008c87a\njp      short loc_18008C881                                            ; +0x1d, 0x18008c87d\njz      short loc_18008C8CB                                            ; +0x1f, 0x18008c87f\ncall    ?setScale@CCNode@cocos2d@@UEAAXM@Z; cocos2d::CCNode::setScale(float) ; +0x21, 0x18008c881\ncmp     qword ptr [rbx+170h], 0                                        ; +0x26, 0x18008c886\njz      short loc_18008C8CB                                            ; +0x2e, 0x18008c88e\ncmp     byte ptr [rbx+179h], 0                                         ; +0x30, 0x18008c890\njnz     short loc_18008C8CB                                            ; +0x37, 0x18008c897\nmov     rax, [rbx]                                                     ; +0x39, 0x18008c899\nmov     dl, 1                                                          ; +0x3c, 0x18008c89c\nmov     rcx, rbx                                                       ; +0x3e, 0x18008c89e\nmov     byte ptr [rbx+179h], 1                                         ; +0x41, 0x18008c8a1\ncall    qword ptr [rax+408h]                                           ; +0x48, 0x18008c8a8\ncmp     byte ptr [rbx+17Ah], 0                                         ; +0x4e, 0x18008c8ae\njz      short loc_18008C8CB                                            ; +0x55, 0x18008c8b5\nmov     rax, [rbx]                                                     ; +0x57, 0x18008c8b7\nmov     dl, 1                                                          ; +0x5a, 0x18008c8ba\nmov     rcx, rbx                                                       ; +0x5c, 0x18008c8bc\nadd     rsp, 20h                                                       ; +0x5f, 0x18008c8bf\npop     rbx                                                            ; +0x63, 0x18008c8c3\njmp     qword ptr [rax+428h]                                           ; +0x64, 0x18008c8c4\nadd     rsp, 20h                                                       ; +0x6b, 0x18008c8cb\npop     rbx                                                            ; +0x6f, 0x18008c8cf\nretn                                                                   ; +0x70, 0x18008c8d0", "xrefs": ["<???> @ 0x1800eb920", "<???> @ 0x1800ebdf8", "<???> @ 0x1800ec978", "<???> @ 0x180103830", "<???> @ 0x180106828", "<???> @ 0x1801438a8", "<???> @ 0x1801b5df0"], "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"}