{"type": "func", "start": 5762036, "end": 5762232, "name": "CustomizeObjectLayer::toggleVisible", "pseudocode": "// \n// CustomizeObjectLayer::toggleVisible from 0x57ebf4 to 0x57ecb8 (196 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::onSelectMode @ 0x57ed5e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *this)\n{\n  unsigned int v2; // r5\n  int v3; // r0\n  unsigned int i; // r5\n  int v5; // r0\n  unsigned int j; // r5\n  int v7; // r0\n  int v8; // r0\n\n  v2 = 0;\n  *((_BYTE *)this + 652) = *((_DWORD *)this + 140) == 3;\n  while ( v2 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 136)) )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 136), v2++);\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 172))(v3, *((unsigned __int8 *)this + 652) ^ 1);\n  }\n  for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 139)); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 139), i);\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 172))(v5, *((unsigned __int8 *)this + 652) ^ 1);\n  }\n  if ( *((_BYTE *)this + 653) )\n  {\n    for ( j = 0; j < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 137)); ++j )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 137), j);\n      (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 172))(v7, *((unsigned __int8 *)this + 652));\n    }\n    v8 = *((_DWORD *)this + 151);\n    if ( v8 )\n    {\n      (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v8 + 500))(v8, *((unsigned __int8 *)this + 652));\n      (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 151) + 172))(\n        *((_DWORD *)this + 151),\n        *((unsigned __int8 *)this + 652));\n    }\n  }\n  return CustomizeObjectLayer::updateCurrentSelection(this);\n}", "assembly": "; \n; CustomizeObjectLayer::toggleVisible from 0x57ebf4 to 0x57ecb8 (196 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::onSelectMode @ 0x57ed5e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:51 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x57ebf4\nMOV             R4, R0                                                 ; +0x2, 0x57ebf6\nLDR.W           R3, [R0,#0x230]                                        ; +0x4, 0x57ebf8\nMOVS            R5, #0                                                 ; +0x8, 0x57ebfc\nSUBS            R2, R3, #3                                             ; +0xa, 0x57ebfe\nNEGS            R3, R2                                                 ; +0xc, 0x57ec00\nADCS            R3, R2                                                 ; +0xe, 0x57ec02\nSTRB.W          R3, [R0,#0x28C]                                        ; +0x10, 0x57ec04\nLDR.W           R0, [R4,#0x220]; this                                  ; +0x14, 0x57ec08\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x18, 0x57ec0c\nCMP             R5, R0                                                 ; +0x1c, 0x57ec10\nBCS             loc_57EC32                                             ; +0x1e, 0x57ec12\nMOV             R1, R5; unsigned int                                   ; +0x20, 0x57ec14\nLDR.W           R0, [R4,#0x220]; this                                  ; +0x22, 0x57ec16\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x26, 0x57ec1a\nLDRB.W          R1, [R4,#0x28C]                                        ; +0x2a, 0x57ec1e\nADDS            R5, #1                                                 ; +0x2e, 0x57ec22\nEOR.W           R1, R1, #1                                             ; +0x30, 0x57ec24\nLDR             R3, [R0]                                               ; +0x34, 0x57ec28\nLDR.W           R3, [R3,#0xAC]                                         ; +0x36, 0x57ec2a\nBLX             R3                                                     ; +0x3a, 0x57ec2e\nB               loc_57EC08                                             ; +0x3c, 0x57ec30\nMOVS            R5, #0                                                 ; +0x3e, 0x57ec32\nLDR.W           R0, [R4,#0x22C]; this                                  ; +0x40, 0x57ec34\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x44, 0x57ec38\nCMP             R5, R0                                                 ; +0x48, 0x57ec3c\nBCS             loc_57EC5E                                             ; +0x4a, 0x57ec3e\nMOV             R1, R5; unsigned int                                   ; +0x4c, 0x57ec40\nLDR.W           R0, [R4,#0x22C]; this                                  ; +0x4e, 0x57ec42\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x52, 0x57ec46\nLDRB.W          R1, [R4,#0x28C]                                        ; +0x56, 0x57ec4a\nADDS            R5, #1                                                 ; +0x5a, 0x57ec4e\nEOR.W           R1, R1, #1                                             ; +0x5c, 0x57ec50\nLDR             R3, [R0]                                               ; +0x60, 0x57ec54\nLDR.W           R3, [R3,#0xAC]                                         ; +0x62, 0x57ec56\nBLX             R3                                                     ; +0x66, 0x57ec5a\nB               loc_57EC34                                             ; +0x68, 0x57ec5c\nLDRB.W          R3, [R4,#0x28D]                                        ; +0x6a, 0x57ec5e\nCBZ             R3, loc_57ECAE                                         ; +0x6e, 0x57ec62\nMOVS            R5, #0                                                 ; +0x70, 0x57ec64\nLDR.W           R0, [R4,#0x224]; this                                  ; +0x72, 0x57ec66\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x76, 0x57ec6a\nCMP             R5, R0                                                 ; +0x7a, 0x57ec6e\nBCS             loc_57EC8C                                             ; +0x7c, 0x57ec70\nMOV             R1, R5; unsigned int                                   ; +0x7e, 0x57ec72\nLDR.W           R0, [R4,#0x224]; this                                  ; +0x80, 0x57ec74\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x84, 0x57ec78\nLDRB.W          R1, [R4,#0x28C]                                        ; +0x88, 0x57ec7c\nADDS            R5, #1                                                 ; +0x8c, 0x57ec80\nLDR             R3, [R0]                                               ; +0x8e, 0x57ec82\nLDR.W           R3, [R3,#0xAC]                                         ; +0x90, 0x57ec84\nBLX             R3                                                     ; +0x94, 0x57ec88\nB               loc_57EC66                                             ; +0x96, 0x57ec8a\nLDR.W           R0, [R4,#0x25C]                                        ; +0x98, 0x57ec8c\nCBZ             R0, loc_57ECAE                                         ; +0x9c, 0x57ec90\nLDR             R3, [R0]                                               ; +0x9e, 0x57ec92\nLDRB.W          R1, [R4,#0x28C]                                        ; +0xa0, 0x57ec94\nLDR.W           R3, [R3,#0x1F4]                                        ; +0xa4, 0x57ec98\nBLX             R3                                                     ; +0xa8, 0x57ec9c\nLDR.W           R0, [R4,#0x25C]                                        ; +0xaa, 0x57ec9e\nLDRB.W          R1, [R4,#0x28C]                                        ; +0xae, 0x57eca2\nLDR             R3, [R0]                                               ; +0xb2, 0x57eca6\nLDR.W           R3, [R3,#0xAC]                                         ; +0xb4, 0x57eca8\nBLX             R3                                                     ; +0xb8, 0x57ecac\nMOV             R0, R4; this                                           ; +0xba, 0x57ecae\nPOP.W           {R3-R5,LR}                                             ; +0xbc, 0x57ecb0\nB.W             _ZN20CustomizeObjectLayer22updateCurrentSelectionEv; CustomizeObjectLayer::updateCurrentSelection(void) ; +0xc0, 0x57ecb4", "xrefs": ["CustomizeObjectLayer::onSelectMode @ 0x57ed5e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}