{"type": "func", "start": 4298083984, "end": 4298084316, "name": "GameObject::setVisible", "pseudocode": "// \n// GameObject::setVisible from 0x1002f8e90 to 0x1002f8fdc (332 bytes)\n// \n// 48 xrefs:\n// > PlayerObject::setVisible @ 0x1002cb518\n// > EndPortalObject::setVisible @ 0x10047f610\n// > <???> @ 0x1009284a0\n// > <???> @ 0x100928c98\n// > <???> @ 0x1009294b8\n// > <???> @ 0x10094d478\n// > <???> @ 0x10094dcc0\n// > <???> @ 0x10094e4c8\n// > <???> @ 0x10094ecd0\n// > <???> @ 0x10094f4d8\n// > <???> @ 0x10094fce0\n// > <???> @ 0x1009504e8\n// > <???> @ 0x100950cf0\n// > <???> @ 0x1009514e8\n// > <???> @ 0x100951d08\n// > <???> @ 0x100952580\n// > <???> @ 0x100952da0\n// > <???> @ 0x1009535c0\n// > <???> @ 0x100953de0\n// > <???> @ 0x100954600\n// > <???> @ 0x100954e20\n// > <???> @ 0x100955640\n// > <???> @ 0x100955e60\n// > <???> @ 0x100956680\n// > <???> @ 0x100956ea0\n// > <???> @ 0x1009576d8\n// > <???> @ 0x100957f40\n// > <???> @ 0x100958778\n// > <???> @ 0x100958fb0\n// > <???> @ 0x1009597e8\n// > <???> @ 0x10095a020\n// > <???> @ 0x10095a840\n// > <???> @ 0x10095b060\n// > <???> @ 0x10095b880\n// > <???> @ 0x10095c0a0\n// > <???> @ 0x10095c8c0\n// > <???> @ 0x10095d0e0\n// > <???> @ 0x10095d900\n// > <???> @ 0x10095e120\n// > <???> @ 0x10095e940\n// > <???> @ 0x10095f160\n// > <???> @ 0x10095f980\n// > <???> @ 0x1009601a0\n// > <???> @ 0x1009609c0\n// > <???> @ 0x1009611e0\n// > <???> @ 0x100961a00\n// > <???> @ 0x100962220\n// > <???> @ 0x100962a40\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:01 +0000\n// \n\n__int64 __fastcall GameObject::setVisible(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x8\n  __int64 v5; // x0\n  __int64 v6; // x0\n  char v7; // w8\n  __int64 result; // x0\n\n  if ( *(_BYTE *)(a1 + 808) != 1 || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1) == (_DWORD)a2 )\n  {\nLABEL_15:\n    cocos2d::CCSprite::setVisible(a1);\n    v6 = *(_QWORD *)(a1 + 752);\n    if ( !v6 )\n      goto LABEL_21;\n    if ( (_DWORD)a2 )\n      goto LABEL_17;\nLABEL_19:\n    v7 = 0;\n    goto LABEL_20;\n  }\n  if ( (_DWORD)a2 )\n  {\n    if ( *(_QWORD *)(a1 + 776) )\n      goto LABEL_8;\n    v4 = 1400;\n  }\n  else\n  {\n    v4 = 1408;\n  }\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + v4))(a1);\nLABEL_8:\n  v5 = *(_QWORD *)(a1 + 776);\n  if ( !v5 )\n    goto LABEL_15;\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(v5, a2);\n  if ( !(_DWORD)a2 )\n  {\n    cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 776));\n    cocos2d::CCSprite::setVisible(a1);\n    v6 = *(_QWORD *)(a1 + 752);\n    if ( !v6 )\n      goto LABEL_21;\n    goto LABEL_19;\n  }\n  if ( *(_DWORD *)(a1 + 1028) != 2065 || ((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1728LL))(a1) & 1) == 0 )\n    cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 776));\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1416LL))(a1);\n  cocos2d::CCSprite::setVisible(a1);\n  v6 = *(_QWORD *)(a1 + 752);\n  if ( v6 )\n  {\nLABEL_17:\n    v7 = *(_BYTE *)(a1 + 1020) ^ 1;\nLABEL_20:\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, v7 & 1);\n  }\nLABEL_21:\n  result = *(_QWORD *)(a1 + 888);\n  if ( result )\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 344LL))(result, a2);\n  return result;\n}", "assembly": "; \n; GameObject::setVisible from 0x1002f8e90 to 0x1002f8fdc (332 bytes)\n; \n; 48 xrefs:\n; > PlayerObject::setVisible @ 0x1002cb518\n; > EndPortalObject::setVisible @ 0x10047f610\n; > <???> @ 0x1009284a0\n; > <???> @ 0x100928c98\n; > <???> @ 0x1009294b8\n; > <???> @ 0x10094d478\n; > <???> @ 0x10094dcc0\n; > <???> @ 0x10094e4c8\n; > <???> @ 0x10094ecd0\n; > <???> @ 0x10094f4d8\n; > <???> @ 0x10094fce0\n; > <???> @ 0x1009504e8\n; > <???> @ 0x100950cf0\n; > <???> @ 0x1009514e8\n; > <???> @ 0x100951d08\n; > <???> @ 0x100952580\n; > <???> @ 0x100952da0\n; > <???> @ 0x1009535c0\n; > <???> @ 0x100953de0\n; > <???> @ 0x100954600\n; > <???> @ 0x100954e20\n; > <???> @ 0x100955640\n; > <???> @ 0x100955e60\n; > <???> @ 0x100956680\n; > <???> @ 0x100956ea0\n; > <???> @ 0x1009576d8\n; > <???> @ 0x100957f40\n; > <???> @ 0x100958778\n; > <???> @ 0x100958fb0\n; > <???> @ 0x1009597e8\n; > <???> @ 0x10095a020\n; > <???> @ 0x10095a840\n; > <???> @ 0x10095b060\n; > <???> @ 0x10095b880\n; > <???> @ 0x10095c0a0\n; > <???> @ 0x10095c8c0\n; > <???> @ 0x10095d0e0\n; > <???> @ 0x10095d900\n; > <???> @ 0x10095e120\n; > <???> @ 0x10095e940\n; > <???> @ 0x10095f160\n; > <???> @ 0x10095f980\n; > <???> @ 0x1009601a0\n; > <???> @ 0x1009609c0\n; > <???> @ 0x1009611e0\n; > <???> @ 0x100961a00\n; > <???> @ 0x100962220\n; > <???> @ 0x100962a40\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:01 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002f8e90\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002f8e94\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002f8e98\nMOV             X19, X1                                                ; +0xc, 0x1002f8e9c\nMOV             X20, X0                                                ; +0x10, 0x1002f8ea0\nLDRB            W8, [X0,#0x328]                                        ; +0x14, 0x1002f8ea4\nCMP             W8, #1                                                 ; +0x18, 0x1002f8ea8\nB.NE            loc_1002F8F5C                                          ; +0x1c, 0x1002f8eac\nLDR             X8, [X20]                                              ; +0x20, 0x1002f8eb0\nLDR             X8, [X8,#0x160]                                        ; +0x24, 0x1002f8eb4\nMOV             X0, X20                                                ; +0x28, 0x1002f8eb8\nBLR             X8                                                     ; +0x2c, 0x1002f8ebc\nCMP             W0, W19                                                ; +0x30, 0x1002f8ec0\nB.EQ            loc_1002F8F5C                                          ; +0x34, 0x1002f8ec4\nCBZ             W19, loc_1002F8EDC                                     ; +0x38, 0x1002f8ec8\nLDR             X8, [X20,#0x308]                                       ; +0x3c, 0x1002f8ecc\nCBNZ            X8, loc_1002F8EF0                                      ; +0x40, 0x1002f8ed0\nMOV             W8, #0x578                                             ; +0x44, 0x1002f8ed4\nB               loc_1002F8EE0                                          ; +0x48, 0x1002f8ed8\nMOV             W8, #0x580                                             ; +0x4c, 0x1002f8edc\nLDR             X9, [X20]                                              ; +0x50, 0x1002f8ee0\nLDR             X8, [X9,X8]                                            ; +0x54, 0x1002f8ee4\nMOV             X0, X20                                                ; +0x58, 0x1002f8ee8\nBLR             X8                                                     ; +0x5c, 0x1002f8eec\nLDR             X0, [X20,#0x308]                                       ; +0x60, 0x1002f8ef0\nCBZ             X0, loc_1002F8F5C                                      ; +0x64, 0x1002f8ef4\nLDR             X8, [X0]                                               ; +0x68, 0x1002f8ef8\nLDR             X8, [X8,#0x158]                                        ; +0x6c, 0x1002f8efc\nMOV             X1, X19                                                ; +0x70, 0x1002f8f00\nBLR             X8                                                     ; +0x74, 0x1002f8f04\nCBZ             W19, loc_1002F8F80                                     ; +0x78, 0x1002f8f08\nLDR             W8, [X20,#0x404]                                       ; +0x7c, 0x1002f8f0c\nCMP             W8, #0x811                                             ; +0x80, 0x1002f8f10\nB.NE            loc_1002F8F2C                                          ; +0x84, 0x1002f8f14\nLDR             X8, [X20]                                              ; +0x88, 0x1002f8f18\nLDR             X8, [X8,#0x6C0]                                        ; +0x8c, 0x1002f8f1c\nMOV             X0, X20                                                ; +0x90, 0x1002f8f20\nBLR             X8                                                     ; +0x94, 0x1002f8f24\nTBNZ            W0, #0, loc_1002F8F34                                  ; +0x98, 0x1002f8f28\nLDR             X0, [X20,#0x308]                                       ; +0x9c, 0x1002f8f2c\nBL              cocos2d__CCParticleSystem__resetSystem                 ; +0xa0, 0x1002f8f30\nLDR             X8, [X20]                                              ; +0xa4, 0x1002f8f34\nLDR             X8, [X8,#0x588]                                        ; +0xa8, 0x1002f8f38\nMOV             X0, X20                                                ; +0xac, 0x1002f8f3c\nBLR             X8                                                     ; +0xb0, 0x1002f8f40\nMOV             X0, X20                                                ; +0xb4, 0x1002f8f44\nMOV             W1, #1                                                 ; +0xb8, 0x1002f8f48\nBL              cocos2d__CCSprite__setVisible                          ; +0xbc, 0x1002f8f4c\nLDR             X0, [X20,#0x2F0]                                       ; +0xc0, 0x1002f8f50\nCBNZ            X0, loc_1002F8F74                                      ; +0xc4, 0x1002f8f54\nB               loc_1002F8FB0                                          ; +0xc8, 0x1002f8f58\nMOV             X0, X20                                                ; +0xcc, 0x1002f8f5c\nMOV             X1, X19                                                ; +0xd0, 0x1002f8f60\nBL              cocos2d__CCSprite__setVisible                          ; +0xd4, 0x1002f8f64\nLDR             X0, [X20,#0x2F0]                                       ; +0xd8, 0x1002f8f68\nCBZ             X0, loc_1002F8FB0                                      ; +0xdc, 0x1002f8f6c\nCBZ             W19, loc_1002F8F9C                                     ; +0xe0, 0x1002f8f70\nLDRB            W8, [X20,#0x3FC]                                       ; +0xe4, 0x1002f8f74\nEOR             W8, W8, #1                                             ; +0xe8, 0x1002f8f78\nB               loc_1002F8FA0                                          ; +0xec, 0x1002f8f7c\nLDR             X0, [X20,#0x308]                                       ; +0xf0, 0x1002f8f80\nBL              cocos2d__CCParticleSystem__stopSystem                  ; +0xf4, 0x1002f8f84\nMOV             X0, X20                                                ; +0xf8, 0x1002f8f88\nMOV             W1, #0                                                 ; +0xfc, 0x1002f8f8c\nBL              cocos2d__CCSprite__setVisible                          ; +0x100, 0x1002f8f90\nLDR             X0, [X20,#0x2F0]                                       ; +0x104, 0x1002f8f94\nCBZ             X0, loc_1002F8FB0                                      ; +0x108, 0x1002f8f98\nMOV             W8, #0                                                 ; +0x10c, 0x1002f8f9c\nLDR             X9, [X0]                                               ; +0x110, 0x1002f8fa0\nLDR             X9, [X9,#0x158]                                        ; +0x114, 0x1002f8fa4\nAND             W1, W8, #1                                             ; +0x118, 0x1002f8fa8\nBLR             X9                                                     ; +0x11c, 0x1002f8fac\nLDR             X0, [X20,#0x378]                                       ; +0x120, 0x1002f8fb0\nCBZ             X0, loc_1002F8FD0                                      ; +0x124, 0x1002f8fb4\nLDR             X8, [X0]                                               ; +0x128, 0x1002f8fb8\nLDR             X2, [X8,#0x158]                                        ; +0x12c, 0x1002f8fbc\nMOV             X1, X19                                                ; +0x130, 0x1002f8fc0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x134, 0x1002f8fc4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x138, 0x1002f8fc8\nBR              X2                                                     ; +0x13c, 0x1002f8fcc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x140, 0x1002f8fd0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x144, 0x1002f8fd4\nRET                                                                    ; +0x148, 0x1002f8fd8", "xrefs": ["PlayerObject::setVisible @ 0x1002cb518", "EndPortalObject::setVisible @ 0x10047f610", "<???> @ 0x1009284a0", "<???> @ 0x100928c98", "<???> @ 0x1009294b8", "<???> @ 0x10094d478", "<???> @ 0x10094dcc0", "<???> @ 0x10094e4c8", "<???> @ 0x10094ecd0", "<???> @ 0x10094f4d8", "<???> @ 0x10094fce0", "<???> @ 0x1009504e8", "<???> @ 0x100950cf0", "<???> @ 0x1009514e8", "<???> @ 0x100951d08", "<???> @ 0x100952580", "<???> @ 0x100952da0", "<???> @ 0x1009535c0", "<???> @ 0x100953de0", "<???> @ 0x100954600", "<???> @ 0x100954e20", "<???> @ 0x100955640", "<???> @ 0x100955e60", "<???> @ 0x100956680", "<???> @ 0x100956ea0", "<???> @ 0x1009576d8", "<???> @ 0x100957f40", "<???> @ 0x100958778", "<???> @ 0x100958fb0", "<???> @ 0x1009597e8", "<???> @ 0x10095a020", "<???> @ 0x10095a840", "<???> @ 0x10095b060", "<???> @ 0x10095b880", "<???> @ 0x10095c0a0", "<???> @ 0x10095c8c0", "<???> @ 0x10095d0e0", "<???> @ 0x10095d900", "<???> @ 0x10095e120", "<???> @ 0x10095e940", "<???> @ 0x10095f160", "<???> @ 0x10095f980", "<???> @ 0x1009601a0", "<???> @ 0x1009609c0", "<???> @ 0x1009611e0", "<???> @ 0x100961a00", "<???> @ 0x100962220", "<???> @ 0x100962a40"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}