{"type": "func", "start": 5370381344, "end": 5370381579, "name": "GameObject::setScale", "pseudocode": "// \n// GameObject::setScale from 0x140198420 to 0x14019850b (235 bytes)\n// \n// 47 xrefs:\n// > PlayerObject::setScale @ 0x1403a3930\n// > ParticleGameObject::setScale @ 0x1404a10f1\n// > RingObject::setScale @ 0x1404a1ff0\n// > <???> @ 0x140556450\n// > <???> @ 0x140556bc0\n// > <???> @ 0x14055dbf8\n// > <???> @ 0x14055e278\n// > <???> @ 0x14060ddf0\n// > <???> @ 0x14060e510\n// > <???> @ 0x14060ed48\n// > <???> @ 0x14060f3f0\n// > <???> @ 0x14060fac0\n// > <???> @ 0x140610178\n// > <???> @ 0x1406108c0\n// > <???> @ 0x140611858\n// > <???> @ 0x140612040\n// > <???> @ 0x1406126e8\n// > <???> @ 0x140612d90\n// > <???> @ 0x140613500\n// > <???> @ 0x140614390\n// > <???> @ 0x140614bc8\n// > <???> @ 0x140615310\n// > <???> @ 0x1406159b8\n// > <???> @ 0x140616100\n// > <???> @ 0x1406168c0\n// > <???> @ 0x140616f68\n// > <???> @ 0x140617610\n// > <???> @ 0x140617d80\n// > <???> @ 0x140618428\n// > <???> @ 0x140618b70\n// > <???> @ 0x140619610\n// > <???> @ 0x140619cb8\n// > <???> @ 0x14061a360\n// > <???> @ 0x14061aa80\n// > <???> @ 0x14061b128\n// > <???> @ 0x14061b870\n// > <???> @ 0x14061c008\n// > <???> @ 0x14061cd58\n// > <???> @ 0x14061d400\n// > <???> @ 0x14061daa8\n// > <???> @ 0x14061e150\n// > <???> @ 0x14061e7f8\n// > <???> @ 0x14061f008\n// > <???> @ 0x14061f7a0\n// > <???> @ 0x140678ec0\n// > <???> @ 0x140678ed0\n// > <???> @ 0x1406cbbe0\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 GameObject::setScale(GameObject *a1, float a2)\n{\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v4; // rax\n  cocos2d::CCSprite *m_glowSprite; // rcx\n  cocos2d::CCSprite *m_colorSprite; // rcx\n  cocos2d::CCParticleSystemQuad *m_particle; // rcx\n\n  a1->m_isOrientedBoxDirty = 1;\n  cocos2d::CCSprite::setScale(a1, a2);\n  if ( a1->m_hasFollower && a1->m_propagateScaleChanges )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);\n      ((void (__fastcall *)(struct cocos2d::CCObject *))v4->__vftable[2].isEqual)(v4);\n    }\n  }\n  m_glowSprite = a1->m_glowSprite;\n  if ( m_glowSprite )\n    ((void (__fastcall *)(cocos2d::CCSprite *))m_glowSprite->setScale_0)(m_glowSprite);\n  m_colorSprite = a1->m_colorSprite;\n  if ( m_colorSprite && !a1->m_colorSpriteLocked )\n    ((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setScale_0)(m_colorSprite);\n  m_particle = a1->m_particle;\n  if ( m_particle )\n  {\n    if ( !a1->m_isParticleSpriteLocked )\n      ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setScale_0)(m_particle);\n  }\n}", "assembly": "; \n; GameObject::setScale from 0x140198420 to 0x14019850b (235 bytes)\n; \n; 47 xrefs:\n; > PlayerObject::setScale @ 0x1403a3930\n; > ParticleGameObject::setScale @ 0x1404a10f1\n; > RingObject::setScale @ 0x1404a1ff0\n; > <???> @ 0x140556450\n; > <???> @ 0x140556bc0\n; > <???> @ 0x14055dbf8\n; > <???> @ 0x14055e278\n; > <???> @ 0x14060ddf0\n; > <???> @ 0x14060e510\n; > <???> @ 0x14060ed48\n; > <???> @ 0x14060f3f0\n; > <???> @ 0x14060fac0\n; > <???> @ 0x140610178\n; > <???> @ 0x1406108c0\n; > <???> @ 0x140611858\n; > <???> @ 0x140612040\n; > <???> @ 0x1406126e8\n; > <???> @ 0x140612d90\n; > <???> @ 0x140613500\n; > <???> @ 0x140614390\n; > <???> @ 0x140614bc8\n; > <???> @ 0x140615310\n; > <???> @ 0x1406159b8\n; > <???> @ 0x140616100\n; > <???> @ 0x1406168c0\n; > <???> @ 0x140616f68\n; > <???> @ 0x140617610\n; > <???> @ 0x140617d80\n; > <???> @ 0x140618428\n; > <???> @ 0x140618b70\n; > <???> @ 0x140619610\n; > <???> @ 0x140619cb8\n; > <???> @ 0x14061a360\n; > <???> @ 0x14061aa80\n; > <???> @ 0x14061b128\n; > <???> @ 0x14061b870\n; > <???> @ 0x14061c008\n; > <???> @ 0x14061cd58\n; > <???> @ 0x14061d400\n; > <???> @ 0x14061daa8\n; > <???> @ 0x14061e150\n; > <???> @ 0x14061e7f8\n; > <???> @ 0x14061f008\n; > <???> @ 0x14061f7a0\n; > <???> @ 0x140678ec0\n; > <???> @ 0x140678ed0\n; > <???> @ 0x1406cbbe0\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, 0x140198420\nsub     rsp, 30h                                                       ; +0x2, 0x140198422\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x140198426\nmov     rbx, rcx                                                       ; +0xb, 0x14019842b\nmovaps  xmm6, xmm1                                                     ; +0xe, 0x14019842e\nmov     byte ptr [rcx+369h], 1                                         ; +0x11, 0x140198431\ncall    cs:__imp_?setScale@CCSprite@cocos2d@@UEAAXM@Z; cocos2d::CCSprite::setScale(float) ; +0x18, 0x140198438\ncmp     byte ptr [rbx+268h], 0                                         ; +0x1e, 0x14019843e\njz      short loc_1401984A6                                            ; +0x25, 0x140198445\ncmp     byte ptr [rbx+269h], 0                                         ; +0x27, 0x140198447\njz      short loc_1401984A6                                            ; +0x2e, 0x14019844e\nmov     rcx, [rbx+258h]                                                ; +0x30, 0x140198450\nmov     [rsp+38h+arg_0], rdi                                           ; +0x37, 0x140198457\nxor     edi, edi                                                       ; +0x3c, 0x14019845c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3e, 0x14019845e\ntest    eax, eax                                                       ; +0x44, 0x140198464\njz      short loc_1401984A1                                            ; +0x46, 0x140198466\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x140198468\nmov     rcx, [rbx+258h]                                                ; +0x50, 0x140198470\nmov     edx, edi                                                       ; +0x57, 0x140198477\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x140198479\nmovaps  xmm1, xmm6                                                     ; +0x5f, 0x14019847f\nmov     rcx, rax                                                       ; +0x62, 0x140198482\nmov     rdx, [rax]                                                     ; +0x65, 0x140198485\ncall    qword ptr [rdx+0A0h]                                           ; +0x68, 0x140198488\nmov     rcx, [rbx+258h]                                                ; +0x6e, 0x14019848e\ninc     edi                                                            ; +0x75, 0x140198495\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x77, 0x140198497\ncmp     edi, eax                                                       ; +0x7d, 0x14019849d\njb      short loc_140198470                                            ; +0x7f, 0x14019849f\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x81, 0x1401984a1\nmov     rcx, [rbx+2F0h]                                                ; +0x86, 0x1401984a6\ntest    rcx, rcx                                                       ; +0x8d, 0x1401984ad\njz      short loc_1401984BE                                            ; +0x90, 0x1401984b0\nmov     rax, [rcx]                                                     ; +0x92, 0x1401984b2\nmovaps  xmm1, xmm6                                                     ; +0x95, 0x1401984b5\ncall    qword ptr [rax+0A0h]                                           ; +0x98, 0x1401984b8\nmov     rcx, [rbx+380h]                                                ; +0x9e, 0x1401984be\ntest    rcx, rcx                                                       ; +0xa5, 0x1401984c5\njz      short loc_1401984DF                                            ; +0xa8, 0x1401984c8\ncmp     byte ptr [rbx+36Ah], 0                                         ; +0xaa, 0x1401984ca\njnz     short loc_1401984DF                                            ; +0xb1, 0x1401984d1\nmov     rax, [rcx]                                                     ; +0xb3, 0x1401984d3\nmovaps  xmm1, xmm6                                                     ; +0xb6, 0x1401984d6\ncall    qword ptr [rax+0A0h]                                           ; +0xb9, 0x1401984d9\nmov     rcx, [rbx+308h]                                                ; +0xbf, 0x1401984df\ntest    rcx, rcx                                                       ; +0xc6, 0x1401984e6\njz      short loc_140198500                                            ; +0xc9, 0x1401984e9\ncmp     byte ptr [rbx+33Ch], 0                                         ; +0xcb, 0x1401984eb\njnz     short loc_140198500                                            ; +0xd2, 0x1401984f2\nmov     rax, [rcx]                                                     ; +0xd4, 0x1401984f4\nmovaps  xmm1, xmm6                                                     ; +0xd7, 0x1401984f7\ncall    qword ptr [rax+0A0h]                                           ; +0xda, 0x1401984fa\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe0, 0x140198500\nadd     rsp, 30h                                                       ; +0xe5, 0x140198505\npop     rbx                                                            ; +0xe9, 0x140198509\nretn                                                                   ; +0xea, 0x14019850a", "xrefs": ["PlayerObject::setScale @ 0x1403a3930", "ParticleGameObject::setScale @ 0x1404a10f1", "RingObject::setScale @ 0x1404a1ff0", "<???> @ 0x140556450", "<???> @ 0x140556bc0", "<???> @ 0x14055dbf8", "<???> @ 0x14055e278", "<???> @ 0x14060ddf0", "<???> @ 0x14060e510", "<???> @ 0x14060ed48", "<???> @ 0x14060f3f0", "<???> @ 0x14060fac0", "<???> @ 0x140610178", "<???> @ 0x1406108c0", "<???> @ 0x140611858", "<???> @ 0x140612040", "<???> @ 0x1406126e8", "<???> @ 0x140612d90", "<???> @ 0x140613500", "<???> @ 0x140614390", "<???> @ 0x140614bc8", "<???> @ 0x140615310", "<???> @ 0x1406159b8", "<???> @ 0x140616100", "<???> @ 0x1406168c0", "<???> @ 0x140616f68", "<???> @ 0x140617610", "<???> @ 0x140617d80", "<???> @ 0x140618428", "<???> @ 0x140618b70", "<???> @ 0x140619610", "<???> @ 0x140619cb8", "<???> @ 0x14061a360", "<???> @ 0x14061aa80", "<???> @ 0x14061b128", "<???> @ 0x14061b870", "<???> @ 0x14061c008", "<???> @ 0x14061cd58", "<???> @ 0x14061d400", "<???> @ 0x14061daa8", "<???> @ 0x14061e150", "<???> @ 0x14061e7f8", "<???> @ 0x14061f008", "<???> @ 0x14061f7a0", "<???> @ 0x140678ec0", "<???> @ 0x140678ed0", "<???> @ 0x1406cbbe0"], "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"}