{"type": "func", "start": 9977600, "end": 9977880, "name": "CustomizeObjectLayer::toggleVisible", "pseudocode": "// \n// CustomizeObjectLayer::toggleVisible from 0x983f00 to 0x984018 (280 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::onSelectMode @ 0x9840f0\n// > <???> @ 0xfeef0\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 12:57:52 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *this)\n{\n  unsigned int v2; // w20\n  __int64 v3; // x0\n  bool v4; // cf\n  unsigned int v5; // w1\n  unsigned int v6; // w20\n  __int64 v7; // x0\n  unsigned int v8; // w1\n  unsigned int v9; // w20\n  __int64 v10; // x0\n  unsigned int v11; // w1\n  __int64 v12; // x0\n\n  v2 = 0;\n  for ( *((_BYTE *)this + 920) = *((_DWORD *)this + 186) == 3;\n        ;\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *((unsigned __int8 *)this + 920) ^ 1u) )\n  {\n    v4 = v2 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 89));\n    v5 = v2++;\n    if ( v4 )\n      break;\n    v3 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 89), v5);\n  }\n  v6 = 0;\n  while ( 1 )\n  {\n    v4 = v6 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 92));\n    v8 = v6++;\n    if ( v4 )\n      break;\n    v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 92), v8);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *((unsigned __int8 *)this + 920) ^ 1u);\n  }\n  v9 = 0;\n  if ( *((_BYTE *)this + 921) )\n  {\n    while ( 1 )\n    {\n      v4 = v9 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 90));\n      v11 = v9++;\n      if ( v4 )\n        break;\n      v10 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 90), v11);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, *((unsigned __int8 *)this + 920));\n    }\n    v12 = *((_QWORD *)this + 103);\n    if ( v12 )\n    {\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 1000LL))(v12, *((unsigned __int8 *)this + 920));\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 103) + 344LL))(\n        *((_QWORD *)this + 103),\n        *((unsigned __int8 *)this + 920));\n    }\n  }\n  return CustomizeObjectLayer::updateCurrentSelection(this);\n}", "assembly": "; \n; CustomizeObjectLayer::toggleVisible from 0x983f00 to 0x984018 (280 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::onSelectMode @ 0x9840f0\n; > <???> @ 0xfeef0\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 12:57:52 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x983f00\nMOV             X29, SP                                                ; +0x4, 0x983f04\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x983f08\nMOV             X19, X0                                                ; +0xc, 0x983f0c\nMOV             W20, #0                                                ; +0x10, 0x983f10\nLDR             W0, [X0,#0x2E8]                                        ; +0x14, 0x983f14\nCMP             W0, #3                                                 ; +0x18, 0x983f18\nCSET            W0, EQ                                                 ; +0x1c, 0x983f1c\nSTRB            W0, [X19,#0x398]                                       ; +0x20, 0x983f20\nB               loc_983F44                                             ; +0x24, 0x983f24\nLDR             X0, [X19,#0x2C8]; this                                 ; +0x28, 0x983f28\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x983f2c\nLDR             X2, [X0]                                               ; +0x30, 0x983f30\nLDRB            W1, [X19,#0x398]                                       ; +0x34, 0x983f34\nLDR             X2, [X2,#0x158]                                        ; +0x38, 0x983f38\nEOR             W1, W1, #1                                             ; +0x3c, 0x983f3c\nBLR             X2                                                     ; +0x40, 0x983f40\nLDR             X0, [X19,#0x2C8]; this                                 ; +0x44, 0x983f44\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x983f48\nCMP             W20, W0                                                ; +0x4c, 0x983f4c\nMOV             W1, W20; unsigned int                                  ; +0x50, 0x983f50\nADD             W20, W20, #1                                           ; +0x54, 0x983f54\nB.CC            loc_983F28                                             ; +0x58, 0x983f58\nMOV             W20, #0                                                ; +0x5c, 0x983f5c\nB               loc_983F80                                             ; +0x60, 0x983f60\nLDR             X0, [X19,#0x2E0]; this                                 ; +0x64, 0x983f64\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x983f68\nLDR             X2, [X0]                                               ; +0x6c, 0x983f6c\nLDRB            W1, [X19,#0x398]                                       ; +0x70, 0x983f70\nLDR             X2, [X2,#0x158]                                        ; +0x74, 0x983f74\nEOR             W1, W1, #1                                             ; +0x78, 0x983f78\nBLR             X2                                                     ; +0x7c, 0x983f7c\nLDR             X0, [X19,#0x2E0]; this                                 ; +0x80, 0x983f80\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x983f84\nCMP             W20, W0                                                ; +0x88, 0x983f88\nMOV             W1, W20; unsigned int                                  ; +0x8c, 0x983f8c\nADD             W20, W20, #1                                           ; +0x90, 0x983f90\nB.CC            loc_983F64                                             ; +0x94, 0x983f94\nLDRB            W0, [X19,#0x399]                                       ; +0x98, 0x983f98\nMOV             W20, #0                                                ; +0x9c, 0x983f9c\nCBNZ            W0, loc_983FC0                                         ; +0xa0, 0x983fa0\nB               loc_984008                                             ; +0xa4, 0x983fa4\nLDR             X0, [X19,#0x2D0]; this                                 ; +0xa8, 0x983fa8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xac, 0x983fac\nLDR             X2, [X0]                                               ; +0xb0, 0x983fb0\nLDRB            W1, [X19,#0x398]                                       ; +0xb4, 0x983fb4\nLDR             X2, [X2,#0x158]                                        ; +0xb8, 0x983fb8\nBLR             X2                                                     ; +0xbc, 0x983fbc\nLDR             X0, [X19,#0x2D0]; this                                 ; +0xc0, 0x983fc0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc4, 0x983fc4\nCMP             W20, W0                                                ; +0xc8, 0x983fc8\nMOV             W1, W20; unsigned int                                  ; +0xcc, 0x983fcc\nADD             W20, W20, #1                                           ; +0xd0, 0x983fd0\nB.CC            loc_983FA8                                             ; +0xd4, 0x983fd4\nLDR             X0, [X19,#0x338]                                       ; +0xd8, 0x983fd8\nCBZ             X0, loc_984008                                         ; +0xdc, 0x983fdc\nLDR             X2, [X0]                                               ; +0xe0, 0x983fe0\nLDRB            W1, [X19,#0x398]                                       ; +0xe4, 0x983fe4\nLDR             X2, [X2,#0x3E8]                                        ; +0xe8, 0x983fe8\nBLR             X2                                                     ; +0xec, 0x983fec\nLDR             X2, [X19,#0x338]                                       ; +0xf0, 0x983ff0\nLDRB            W1, [X19,#0x398]                                       ; +0xf4, 0x983ff4\nMOV             X0, X2                                                 ; +0xf8, 0x983ff8\nLDR             X2, [X2]                                               ; +0xfc, 0x983ffc\nLDR             X2, [X2,#0x158]                                        ; +0x100, 0x984000\nBLR             X2                                                     ; +0x104, 0x984004\nMOV             X0, X19; this                                          ; +0x108, 0x984008\nLDP             X19, X20, [SP,#var_s10]                                ; +0x10c, 0x98400c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x110, 0x984010\nB               _ZN20CustomizeObjectLayer22updateCurrentSelectionEv; CustomizeObjectLayer::updateCurrentSelection(void) ; +0x114, 0x984014", "xrefs": ["CustomizeObjectLayer::onSelectMode @ 0x9840f0", "<???> @ 0xfeef0"], "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"}