{"type": "func", "start": 5370383440, "end": 5370383716, "name": "GameObject::setVisible", "pseudocode": "// \n// GameObject::setVisible from 0x140198c50 to 0x140198d64 (276 bytes)\n// \n// 47 xrefs:\n// > EndPortalObject::setVisible @ 0x1401383e7\n// > PlayerObject::setVisible @ 0x1403a3955\n// > <???> @ 0x1405564f0\n// > <???> @ 0x14055dc98\n// > <???> @ 0x14055e318\n// > <???> @ 0x14060d540\n// > <???> @ 0x14060de90\n// > <???> @ 0x14060e5b0\n// > <???> @ 0x14060ede8\n// > <???> @ 0x14060f490\n// > <???> @ 0x14060fb60\n// > <???> @ 0x140610218\n// > <???> @ 0x140610960\n// > <???> @ 0x1406111c0\n// > <???> @ 0x1406118f8\n// > <???> @ 0x1406120e0\n// > <???> @ 0x140612788\n// > <???> @ 0x140612e30\n// > <???> @ 0x1406135a0\n// > <???> @ 0x140613c48\n// > <???> @ 0x140614430\n// > <???> @ 0x140614c68\n// > <???> @ 0x1406153b0\n// > <???> @ 0x140615a58\n// > <???> @ 0x1406161a0\n// > <???> @ 0x140616960\n// > <???> @ 0x140617008\n// > <???> @ 0x1406176b0\n// > <???> @ 0x140617e20\n// > <???> @ 0x1406184c8\n// > <???> @ 0x140618c10\n// > <???> @ 0x1406196b0\n// > <???> @ 0x140619d58\n// > <???> @ 0x14061a400\n// > <???> @ 0x14061ab20\n// > <???> @ 0x14061b1c8\n// > <???> @ 0x14061b910\n// > <???> @ 0x14061c0a8\n// > <???> @ 0x14061c750\n// > <???> @ 0x14061cdf8\n// > <???> @ 0x14061d4a0\n// > <???> @ 0x14061db48\n// > <???> @ 0x14061e1f0\n// > <???> @ 0x14061e898\n// > <???> @ 0x14061f0a8\n// > <???> @ 0x14061f840\n// > <???> @ 0x1406cbcd0\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::setVisible(GameObject *a1, bool a2)\n{\n  cocos2d::CCParticleSystemQuad *m_particle; // rcx\n  _BOOL8 v5; // rdx\n  cocos2d::CCSprite *m_glowSprite; // rcx\n  cocos2d::CCSprite *m_colorSprite; // rcx\n\n  if ( a1->m_hasParticles && a2 != a1->isVisible(a1) )\n  {\n    if ( a2 )\n    {\n      if ( !a1->m_particle )\n        a1->claimParticle(a1);\n    }\n    else\n    {\n      a1->unclaimParticle(a1);\n    }\n    m_particle = a1->m_particle;\n    if ( m_particle )\n    {\n      m_particle->setVisible(m_particle, a2);\n      if ( a2 )\n      {\n        if ( a1->m_objectID != 2065 || !a1->getHasSyncedAnimation(a1) )\n          cocos2d::CCParticleSystem::resetSystem(a1->m_particle);\n        a1->particleWasActivated(a1);\n      }\n      else\n      {\n        cocos2d::CCParticleSystem::stopSystem(a1->m_particle);\n      }\n    }\n  }\n  cocos2d::CCSprite::setVisible(a1, a2);\n  m_glowSprite = a1->m_glowSprite;\n  if ( m_glowSprite )\n  {\n    if ( !a2 || a1->m_hasNoGlow )\n      v5 = 0;\n    else\n      LOBYTE(v5) = 1;\n    m_glowSprite->setVisible(m_glowSprite, v5);\n  }\n  m_colorSprite = a1->m_colorSprite;\n  if ( m_colorSprite )\n    m_colorSprite->setVisible(m_colorSprite, a2);\n}", "assembly": "; \n; GameObject::setVisible from 0x140198c50 to 0x140198d64 (276 bytes)\n; \n; 47 xrefs:\n; > EndPortalObject::setVisible @ 0x1401383e7\n; > PlayerObject::setVisible @ 0x1403a3955\n; > <???> @ 0x1405564f0\n; > <???> @ 0x14055dc98\n; > <???> @ 0x14055e318\n; > <???> @ 0x14060d540\n; > <???> @ 0x14060de90\n; > <???> @ 0x14060e5b0\n; > <???> @ 0x14060ede8\n; > <???> @ 0x14060f490\n; > <???> @ 0x14060fb60\n; > <???> @ 0x140610218\n; > <???> @ 0x140610960\n; > <???> @ 0x1406111c0\n; > <???> @ 0x1406118f8\n; > <???> @ 0x1406120e0\n; > <???> @ 0x140612788\n; > <???> @ 0x140612e30\n; > <???> @ 0x1406135a0\n; > <???> @ 0x140613c48\n; > <???> @ 0x140614430\n; > <???> @ 0x140614c68\n; > <???> @ 0x1406153b0\n; > <???> @ 0x140615a58\n; > <???> @ 0x1406161a0\n; > <???> @ 0x140616960\n; > <???> @ 0x140617008\n; > <???> @ 0x1406176b0\n; > <???> @ 0x140617e20\n; > <???> @ 0x1406184c8\n; > <???> @ 0x140618c10\n; > <???> @ 0x1406196b0\n; > <???> @ 0x140619d58\n; > <???> @ 0x14061a400\n; > <???> @ 0x14061ab20\n; > <???> @ 0x14061b1c8\n; > <???> @ 0x14061b910\n; > <???> @ 0x14061c0a8\n; > <???> @ 0x14061c750\n; > <???> @ 0x14061cdf8\n; > <???> @ 0x14061d4a0\n; > <???> @ 0x14061db48\n; > <???> @ 0x14061e1f0\n; > <???> @ 0x14061e898\n; > <???> @ 0x14061f0a8\n; > <???> @ 0x14061f840\n; > <???> @ 0x1406cbcd0\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_0], rbx                                               ; +0x0, 0x140198c50\npush    rdi                                                            ; +0x5, 0x140198c55\nsub     rsp, 20h                                                       ; +0x6, 0x140198c56\ncmp     byte ptr [rcx+330h], 0                                         ; +0xa, 0x140198c5a\nmovzx   edi, dl                                                        ; +0x11, 0x140198c61\nmov     rbx, rcx                                                       ; +0x14, 0x140198c64\njz      loc_140198D0A                                                  ; +0x17, 0x140198c67\nmov     rax, [rcx]                                                     ; +0x1d, 0x140198c6d\ncall    qword ptr [rax+148h]                                           ; +0x20, 0x140198c70\ncmp     dil, al                                                        ; +0x26, 0x140198c76\njz      loc_140198D0A                                                  ; +0x29, 0x140198c79\ntest    dil, dil                                                       ; +0x2f, 0x140198c7f\njz      short loc_140198C9C                                            ; +0x32, 0x140198c82\ncmp     qword ptr [rbx+308h], 0                                        ; +0x34, 0x140198c84\njnz     short loc_140198CA8                                            ; +0x3c, 0x140198c8c\nmov     rax, [rbx]                                                     ; +0x3e, 0x140198c8e\nmov     rcx, rbx                                                       ; +0x41, 0x140198c91\ncall    qword ptr [rax+4D0h]                                           ; +0x44, 0x140198c94\njmp     short loc_140198CA8                                            ; +0x4a, 0x140198c9a\nmov     rax, [rbx]                                                     ; +0x4c, 0x140198c9c\nmov     rcx, rbx                                                       ; +0x4f, 0x140198c9f\ncall    qword ptr [rax+4D8h]                                           ; +0x52, 0x140198ca2\nmov     rcx, [rbx+308h]                                                ; +0x58, 0x140198ca8\ntest    rcx, rcx                                                       ; +0x5f, 0x140198caf\njz      short loc_140198D0A                                            ; +0x62, 0x140198cb2\nmov     rax, [rcx]                                                     ; +0x64, 0x140198cb4\nmovzx   edx, dil                                                       ; +0x67, 0x140198cb7\ncall    qword ptr [rax+140h]                                           ; +0x6b, 0x140198cbb\ntest    dil, dil                                                       ; +0x71, 0x140198cc1\njnz     short loc_140198CD5                                            ; +0x74, 0x140198cc4\nmov     rcx, [rbx+308h]                                                ; +0x76, 0x140198cc6\ncall    cs:?stopSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::stopSystem(void) ; +0x7d, 0x140198ccd\njmp     short loc_140198D0A                                            ; +0x83, 0x140198cd3\ncmp     dword ptr [rbx+40Ch], 811h                                     ; +0x85, 0x140198cd5\njnz     short loc_140198CF1                                            ; +0x8f, 0x140198cdf\nmov     rax, [rbx]                                                     ; +0x91, 0x140198ce1\nmov     rcx, rbx                                                       ; +0x94, 0x140198ce4\ncall    qword ptr [rax+618h]                                           ; +0x97, 0x140198ce7\ntest    al, al                                                         ; +0x9d, 0x140198ced\njnz     short loc_140198CFE                                            ; +0x9f, 0x140198cef\nmov     rcx, [rbx+308h]                                                ; +0xa1, 0x140198cf1\ncall    cs:?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0xa8, 0x140198cf8\nmov     rax, [rbx]                                                     ; +0xae, 0x140198cfe\nmov     rcx, rbx                                                       ; +0xb1, 0x140198d01\ncall    qword ptr [rax+4E0h]                                           ; +0xb4, 0x140198d04\nmovzx   edx, dil                                                       ; +0xba, 0x140198d0a\nmov     rcx, rbx                                                       ; +0xbe, 0x140198d0e\ncall    cs:__imp_?setVisible@CCSprite@cocos2d@@UEAAX_N@Z; cocos2d::CCSprite::setVisible(bool) ; +0xc1, 0x140198d11\nmov     rcx, [rbx+2F0h]                                                ; +0xc7, 0x140198d17\ntest    rcx, rcx                                                       ; +0xce, 0x140198d1e\njz      short loc_140198D40                                            ; +0xd1, 0x140198d21\ntest    dil, dil                                                       ; +0xd3, 0x140198d23\njz      short loc_140198D35                                            ; +0xd6, 0x140198d26\ncmp     byte ptr [rbx+404h], 0                                         ; +0xd8, 0x140198d28\njnz     short loc_140198D35                                            ; +0xdf, 0x140198d2f\nmov     dl, 1                                                          ; +0xe1, 0x140198d31\njmp     short loc_140198D37                                            ; +0xe3, 0x140198d33\nxor     edx, edx                                                       ; +0xe5, 0x140198d35\nmov     rax, [rcx]                                                     ; +0xe7, 0x140198d37\ncall    qword ptr [rax+140h]                                           ; +0xea, 0x140198d3a\nmov     rcx, [rbx+380h]                                                ; +0xf0, 0x140198d40\ntest    rcx, rcx                                                       ; +0xf7, 0x140198d47\njz      short loc_140198D59                                            ; +0xfa, 0x140198d4a\nmov     rax, [rcx]                                                     ; +0xfc, 0x140198d4c\nmovzx   edx, dil                                                       ; +0xff, 0x140198d4f\ncall    qword ptr [rax+140h]                                           ; +0x103, 0x140198d53\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x109, 0x140198d59\nadd     rsp, 20h                                                       ; +0x10e, 0x140198d5e\npop     rdi                                                            ; +0x112, 0x140198d62\nretn                                                                   ; +0x113, 0x140198d63", "xrefs": ["EndPortalObject::setVisible @ 0x1401383e7", "PlayerObject::setVisible @ 0x1403a3955", "<???> @ 0x1405564f0", "<???> @ 0x14055dc98", "<???> @ 0x14055e318", "<???> @ 0x14060d540", "<???> @ 0x14060de90", "<???> @ 0x14060e5b0", "<???> @ 0x14060ede8", "<???> @ 0x14060f490", "<???> @ 0x14060fb60", "<???> @ 0x140610218", "<???> @ 0x140610960", "<???> @ 0x1406111c0", "<???> @ 0x1406118f8", "<???> @ 0x1406120e0", "<???> @ 0x140612788", "<???> @ 0x140612e30", "<???> @ 0x1406135a0", "<???> @ 0x140613c48", "<???> @ 0x140614430", "<???> @ 0x140614c68", "<???> @ 0x1406153b0", "<???> @ 0x140615a58", "<???> @ 0x1406161a0", "<???> @ 0x140616960", "<???> @ 0x140617008", "<???> @ 0x1406176b0", "<???> @ 0x140617e20", "<???> @ 0x1406184c8", "<???> @ 0x140618c10", "<???> @ 0x1406196b0", "<???> @ 0x140619d58", "<???> @ 0x14061a400", "<???> @ 0x14061ab20", "<???> @ 0x14061b1c8", "<???> @ 0x14061b910", "<???> @ 0x14061c0a8", "<???> @ 0x14061c750", "<???> @ 0x14061cdf8", "<???> @ 0x14061d4a0", "<???> @ 0x14061db48", "<???> @ 0x14061e1f0", "<???> @ 0x14061e898", "<???> @ 0x14061f0a8", "<???> @ 0x14061f840", "<???> @ 0x1406cbcd0"], "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"}