{"type": "func", "start": 4300982784, "end": 4300983127, "name": "GameObject::setVisible", "pseudocode": "// \n// GameObject::setVisible from 0x1005bca00 to 0x1005bcb57 (343 bytes)\n// \n// 47 xrefs:\n// > EndPortalObject::setVisible @ 0x10039ca42\n// > PlayerObject::setVisible @ 0x10041d5b4\n// > <???> @ 0x1008c41b0\n// > <???> @ 0x1008c49e8\n// > <???> @ 0x1008c51e0\n// > <???> @ 0x1008c59d8\n// > <???> @ 0x1008c61d0\n// > <???> @ 0x1008c69c8\n// > <???> @ 0x1008c71c0\n// > <???> @ 0x1008c79b8\n// > <???> @ 0x1008c81a0\n// > <???> @ 0x1008c89b0\n// > <???> @ 0x1008c9228\n// > <???> @ 0x1008c9a38\n// > <???> @ 0x1008ca248\n// > <???> @ 0x1008caa58\n// > <???> @ 0x1008cb268\n// > <???> @ 0x1008cba78\n// > <???> @ 0x1008cc288\n// > <???> @ 0x1008cca98\n// > <???> @ 0x1008cd2a8\n// > <???> @ 0x1008cdab8\n// > <???> @ 0x1008ce2e0\n// > <???> @ 0x1008ceb38\n// > <???> @ 0x1008cf360\n// > <???> @ 0x1008cfb88\n// > <???> @ 0x1008d03b0\n// > <???> @ 0x1008d0bd8\n// > <???> @ 0x1008d13e8\n// > <???> @ 0x1008d1bf8\n// > <???> @ 0x1008d2408\n// > <???> @ 0x1008d2c18\n// > <???> @ 0x1008d3428\n// > <???> @ 0x1008d3c38\n// > <???> @ 0x1008d4448\n// > <???> @ 0x1008d4c58\n// > <???> @ 0x1008d5468\n// > <???> @ 0x1008d5c78\n// > <???> @ 0x1008d6488\n// > <???> @ 0x1008d6c98\n// > <???> @ 0x1008d74a8\n// > <???> @ 0x1008d7cb8\n// > <???> @ 0x1008d84c8\n// > <???> @ 0x1008d8cd8\n// > <???> @ 0x100971530\n// > <???> @ 0x100971d18\n// > <???> @ 0x100972528\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 GameObject::setVisible(GameObject *a1, bool a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCParticleSystemQuad *m_particle; // rdi\n  cocos2d::CCSprite *m_glowSprite; // rdi\n  bool v6; // r15\n  cocos2d::CCSprite *m_colorSprite; // rdi\n\n  if ( !a1->m_hasParticles || ((unsigned __int8 (__fastcall *)(GameObject *))a1->isVisible)(a1) == a2 )\n  {\nLABEL_14:\n    cocos2d::CCSprite::setVisible(a1, a2);\n    m_glowSprite = a1->m_glowSprite;\n    if ( !m_glowSprite )\n      goto LABEL_19;\n    if ( !a2 )\n    {\n      v6 = 0;\n      goto LABEL_18;\n    }\n    goto LABEL_16;\n  }\n  v3 = 1392;\n  if ( a2 )\n  {\n    if ( a1->m_particle )\n      goto LABEL_7;\n    v3 = 1384;\n  }\n  (*(void (__fastcall **)(GameObject *))((char *)&a1->copyWithZone + v3))(a1);\nLABEL_7:\n  m_particle = a1->m_particle;\n  if ( !m_particle )\n    goto LABEL_14;\n  ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, bool))m_particle->setVisible)(m_particle, a2);\n  if ( !a2 )\n  {\n    cocos2d::CCParticleSystem::stopSystem(a1->m_particle);\n    v6 = 0;\n    cocos2d::CCSprite::setVisible(a1, 0);\n    m_glowSprite = a1->m_glowSprite;\n    if ( !m_glowSprite )\n      goto LABEL_19;\nLABEL_18:\n    ((void (__fastcall *)(cocos2d::CCSprite *, bool))m_glowSprite->setVisible)(m_glowSprite, v6);\n    goto LABEL_19;\n  }\n  if ( a1->m_objectID != 2065 || !((unsigned __int8 (__fastcall *)(GameObject *))a1->getHasSyncedAnimation)(a1) )\n    cocos2d::CCParticleSystem::resetSystem(a1->m_particle);\n  ((void (__fastcall *)(GameObject *))a1->particleWasActivated)(a1);\n  cocos2d::CCSprite::setVisible(a1, 1);\n  m_glowSprite = a1->m_glowSprite;\n  if ( m_glowSprite )\n  {\nLABEL_16:\n    v6 = !a1->m_hasNoGlow;\n    goto LABEL_18;\n  }\nLABEL_19:\n  m_colorSprite = a1->m_colorSprite;\n  if ( m_colorSprite )\n    ((void (__fastcall *)(cocos2d::CCSprite *, bool))m_colorSprite->setVisible)(m_colorSprite, a2);\n}", "assembly": "; \n; GameObject::setVisible from 0x1005bca00 to 0x1005bcb57 (343 bytes)\n; \n; 47 xrefs:\n; > EndPortalObject::setVisible @ 0x10039ca42\n; > PlayerObject::setVisible @ 0x10041d5b4\n; > <???> @ 0x1008c41b0\n; > <???> @ 0x1008c49e8\n; > <???> @ 0x1008c51e0\n; > <???> @ 0x1008c59d8\n; > <???> @ 0x1008c61d0\n; > <???> @ 0x1008c69c8\n; > <???> @ 0x1008c71c0\n; > <???> @ 0x1008c79b8\n; > <???> @ 0x1008c81a0\n; > <???> @ 0x1008c89b0\n; > <???> @ 0x1008c9228\n; > <???> @ 0x1008c9a38\n; > <???> @ 0x1008ca248\n; > <???> @ 0x1008caa58\n; > <???> @ 0x1008cb268\n; > <???> @ 0x1008cba78\n; > <???> @ 0x1008cc288\n; > <???> @ 0x1008cca98\n; > <???> @ 0x1008cd2a8\n; > <???> @ 0x1008cdab8\n; > <???> @ 0x1008ce2e0\n; > <???> @ 0x1008ceb38\n; > <???> @ 0x1008cf360\n; > <???> @ 0x1008cfb88\n; > <???> @ 0x1008d03b0\n; > <???> @ 0x1008d0bd8\n; > <???> @ 0x1008d13e8\n; > <???> @ 0x1008d1bf8\n; > <???> @ 0x1008d2408\n; > <???> @ 0x1008d2c18\n; > <???> @ 0x1008d3428\n; > <???> @ 0x1008d3c38\n; > <???> @ 0x1008d4448\n; > <???> @ 0x1008d4c58\n; > <???> @ 0x1008d5468\n; > <???> @ 0x1008d5c78\n; > <???> @ 0x1008d6488\n; > <???> @ 0x1008d6c98\n; > <???> @ 0x1008d74a8\n; > <???> @ 0x1008d7cb8\n; > <???> @ 0x1008d84c8\n; > <???> @ 0x1008d8cd8\n; > <???> @ 0x100971530\n; > <???> @ 0x100971d18\n; > <???> @ 0x100972528\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    rbp                                                            ; +0x0, 0x1005bca00\nmov     rbp, rsp                                                       ; +0x1, 0x1005bca01\npush    r15                                                            ; +0x4, 0x1005bca04\npush    r14                                                            ; +0x6, 0x1005bca06\npush    rbx                                                            ; +0x8, 0x1005bca08\npush    rax                                                            ; +0x9, 0x1005bca09\nmov     r15d, esi                                                      ; +0xa, 0x1005bca0a\nmov     r14, rdi                                                       ; +0xd, 0x1005bca0d\ncmp     byte ptr [rdi+328h], 1                                         ; +0x10, 0x1005bca10\nmovzx   ebx, r15b                                                      ; +0x17, 0x1005bca17\njnz     loc_1005BCAC8                                                  ; +0x1b, 0x1005bca1b\nmov     rax, [r14]                                                     ; +0x21, 0x1005bca21\nmov     rdi, r14                                                       ; +0x24, 0x1005bca24\ncall    qword ptr [rax+150h]                                           ; +0x27, 0x1005bca27\ncmp     al, r15b                                                       ; +0x2d, 0x1005bca2d\njz      loc_1005BCAC8                                                  ; +0x30, 0x1005bca30\nmov     eax, 570h                                                      ; +0x36, 0x1005bca36\ntest    r15b, r15b                                                     ; +0x3b, 0x1005bca3b\njz      short loc_1005BCA4F                                            ; +0x3e, 0x1005bca3e\ncmp     qword ptr [r14+308h], 0                                        ; +0x40, 0x1005bca40\njnz     short loc_1005BCA58                                            ; +0x48, 0x1005bca48\nmov     eax, 568h                                                      ; +0x4a, 0x1005bca4a\nmov     rcx, [r14]                                                     ; +0x4f, 0x1005bca4f\nmov     rdi, r14                                                       ; +0x52, 0x1005bca52\ncall    qword ptr [rcx+rax]                                            ; +0x55, 0x1005bca55\nmov     rdi, [r14+308h]                                                ; +0x58, 0x1005bca58\ntest    rdi, rdi                                                       ; +0x5f, 0x1005bca5f\njz      short loc_1005BCAC8                                            ; +0x62, 0x1005bca62\nmov     rax, [rdi]                                                     ; +0x64, 0x1005bca64\nmov     esi, ebx                                                       ; +0x67, 0x1005bca67\ncall    qword ptr [rax+148h]                                           ; +0x69, 0x1005bca69\ntest    r15b, r15b                                                     ; +0x6f, 0x1005bca6f\njz      loc_1005BCB30                                                  ; +0x72, 0x1005bca72\ncmp     dword ptr [r14+404h], 811h                                     ; +0x78, 0x1005bca78\njnz     short loc_1005BCA95                                            ; +0x83, 0x1005bca83\nmov     rax, [r14]                                                     ; +0x85, 0x1005bca85\nmov     rdi, r14                                                       ; +0x88, 0x1005bca88\ncall    qword ptr [rax+6B0h]                                           ; +0x8b, 0x1005bca8b\ntest    al, al                                                         ; +0x91, 0x1005bca91\njnz     short loc_1005BCAA1                                            ; +0x93, 0x1005bca93\nmov     rdi, [r14+308h]                                                ; +0x95, 0x1005bca95\ncall    cocos2d__CCParticleSystem__resetSystem                         ; +0x9c, 0x1005bca9c\nmov     rax, [r14]                                                     ; +0xa1, 0x1005bcaa1\nmov     rdi, r14                                                       ; +0xa4, 0x1005bcaa4\ncall    qword ptr [rax+578h]                                           ; +0xa7, 0x1005bcaa7\nmov     rdi, r14                                                       ; +0xad, 0x1005bcaad\nmov     esi, 1                                                         ; +0xb0, 0x1005bcab0\ncall    cocos2d__CCSprite__setVisible                                  ; +0xb5, 0x1005bcab5\nmov     rdi, [r14+2F0h]                                                ; +0xba, 0x1005bcaba\ntest    rdi, rdi                                                       ; +0xc1, 0x1005bcac1\njnz     short loc_1005BCAE3                                            ; +0xc4, 0x1005bcac4\njmp     short loc_1005BCB01                                            ; +0xc6, 0x1005bcac6\nmov     rdi, r14                                                       ; +0xc8, 0x1005bcac8\nmov     esi, ebx                                                       ; +0xcb, 0x1005bcacb\ncall    cocos2d__CCSprite__setVisible                                  ; +0xcd, 0x1005bcacd\nmov     rdi, [r14+2F0h]                                                ; +0xd2, 0x1005bcad2\ntest    rdi, rdi                                                       ; +0xd9, 0x1005bcad9\njz      short loc_1005BCB01                                            ; +0xdc, 0x1005bcadc\ntest    r15b, r15b                                                     ; +0xde, 0x1005bcade\njz      short loc_1005BCAF1                                            ; +0xe1, 0x1005bcae1\nmovzx   r15d, byte ptr [r14+3FCh]                                      ; +0xe3, 0x1005bcae3\nxor     r15b, 1                                                        ; +0xeb, 0x1005bcaeb\njmp     short loc_1005BCAF4                                            ; +0xef, 0x1005bcaef\nxor     r15d, r15d                                                     ; +0xf1, 0x1005bcaf1\nmov     rax, [rdi]                                                     ; +0xf4, 0x1005bcaf4\nmovzx   esi, r15b                                                      ; +0xf7, 0x1005bcaf7\ncall    qword ptr [rax+148h]                                           ; +0xfb, 0x1005bcafb\nmov     rdi, [r14+378h]                                                ; +0x101, 0x1005bcb01\ntest    rdi, rdi                                                       ; +0x108, 0x1005bcb08\njz      short loc_1005BCB25                                            ; +0x10b, 0x1005bcb0b\nmov     rax, [rdi]                                                     ; +0x10d, 0x1005bcb0d\nmov     rax, [rax+148h]                                                ; +0x110, 0x1005bcb10\nmov     esi, ebx                                                       ; +0x117, 0x1005bcb17\nadd     rsp, 8                                                         ; +0x119, 0x1005bcb19\npop     rbx                                                            ; +0x11d, 0x1005bcb1d\npop     r14                                                            ; +0x11e, 0x1005bcb1e\npop     r15                                                            ; +0x120, 0x1005bcb20\npop     rbp                                                            ; +0x122, 0x1005bcb22\njmp     rax                                                            ; +0x123, 0x1005bcb23\nadd     rsp, 8                                                         ; +0x125, 0x1005bcb25\npop     rbx                                                            ; +0x129, 0x1005bcb29\npop     r14                                                            ; +0x12a, 0x1005bcb2a\npop     r15                                                            ; +0x12c, 0x1005bcb2c\npop     rbp                                                            ; +0x12e, 0x1005bcb2e\nretn                                                                   ; +0x12f, 0x1005bcb2f\nmov     rdi, [r14+308h]                                                ; +0x130, 0x1005bcb30\ncall    cocos2d__CCParticleSystem__stopSystem                          ; +0x137, 0x1005bcb37\nxor     r15d, r15d                                                     ; +0x13c, 0x1005bcb3c\nmov     rdi, r14                                                       ; +0x13f, 0x1005bcb3f\nxor     esi, esi                                                       ; +0x142, 0x1005bcb42\ncall    cocos2d__CCSprite__setVisible                                  ; +0x144, 0x1005bcb44\nmov     rdi, [r14+2F0h]                                                ; +0x149, 0x1005bcb49\ntest    rdi, rdi                                                       ; +0x150, 0x1005bcb50\njnz     short loc_1005BCAF4                                            ; +0x153, 0x1005bcb53\njmp     short loc_1005BCB01                                            ; +0x155, 0x1005bcb55", "xrefs": ["EndPortalObject::setVisible @ 0x10039ca42", "PlayerObject::setVisible @ 0x10041d5b4", "<???> @ 0x1008c41b0", "<???> @ 0x1008c49e8", "<???> @ 0x1008c51e0", "<???> @ 0x1008c59d8", "<???> @ 0x1008c61d0", "<???> @ 0x1008c69c8", "<???> @ 0x1008c71c0", "<???> @ 0x1008c79b8", "<???> @ 0x1008c81a0", "<???> @ 0x1008c89b0", "<???> @ 0x1008c9228", "<???> @ 0x1008c9a38", "<???> @ 0x1008ca248", "<???> @ 0x1008caa58", "<???> @ 0x1008cb268", "<???> @ 0x1008cba78", "<???> @ 0x1008cc288", "<???> @ 0x1008cca98", "<???> @ 0x1008cd2a8", "<???> @ 0x1008cdab8", "<???> @ 0x1008ce2e0", "<???> @ 0x1008ceb38", "<???> @ 0x1008cf360", "<???> @ 0x1008cfb88", "<???> @ 0x1008d03b0", "<???> @ 0x1008d0bd8", "<???> @ 0x1008d13e8", "<???> @ 0x1008d1bf8", "<???> @ 0x1008d2408", "<???> @ 0x1008d2c18", "<???> @ 0x1008d3428", "<???> @ 0x1008d3c38", "<???> @ 0x1008d4448", "<???> @ 0x1008d4c58", "<???> @ 0x1008d5468", "<???> @ 0x1008d5c78", "<???> @ 0x1008d6488", "<???> @ 0x1008d6c98", "<???> @ 0x1008d74a8", "<???> @ 0x1008d7cb8", "<???> @ 0x1008d84c8", "<???> @ 0x1008d8cd8", "<???> @ 0x100971530", "<???> @ 0x100971d18", "<???> @ 0x100972528"], "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"}