{"type": "func", "start": 4596048, "end": 4596244, "name": "CustomizeObjectLayer::toggleVisible", "pseudocode": "// \n// CustomizeObjectLayer::toggleVisible from 0x462150 to 0x462214 (196 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::onSelectMode @ 0x4622ba\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 CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *a1)\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  CCTextInputNode *m_textInput; // r0\n\n  v2 = 0;\n  a1->m_showTextInput = a1->m_selectedMode == 3;\n  while ( v2 < cocos2d::CCArray::count(a1->m_colorTabNodes) )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(a1->m_colorTabNodes, v2++);\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v3 + 164))(v3, !a1->m_showTextInput);\n  }\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_detailTabNodes); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_detailTabNodes, i);\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v5 + 164))(v5, !a1->m_showTextInput);\n  }\n  if ( a1->m_customColorSelected )\n  {\n    for ( j = 0; j < cocos2d::CCArray::count(a1->m_textTabNodes); ++j )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(a1->m_textTabNodes, j);\n      (*(void (__fastcall **)(int, bool))(*(_DWORD *)v7 + 164))(v7, a1->m_showTextInput);\n    }\n    m_textInput = a1->m_textInput;\n    if ( m_textInput )\n    {\n      m_textInput->setTouchEnabled(m_textInput, a1->m_showTextInput);\n      a1->m_textInput->setVisible(a1->m_textInput, a1->m_showTextInput);\n    }\n  }\n  CustomizeObjectLayer::updateCurrentSelection(a1);\n}", "assembly": "; \n; CustomizeObjectLayer::toggleVisible from 0x462150 to 0x462214 (196 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::onSelectMode @ 0x4622ba\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            {R3-R5,LR}                                             ; +0x0, 0x462150\nMOV             R4, R0                                                 ; +0x2, 0x462152\nLDR.W           R3, [R0,#0x21C]                                        ; +0x4, 0x462154\nMOVS            R5, #0                                                 ; +0x8, 0x462158\nSUBS            R2, R3, #3                                             ; +0xa, 0x46215a\nNEGS            R3, R2                                                 ; +0xc, 0x46215c\nADCS            R3, R2                                                 ; +0xe, 0x46215e\nSTRB.W          R3, [R0,#0x278]                                        ; +0x10, 0x462160\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x14, 0x462164\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x18, 0x462168\nCMP             R5, R0                                                 ; +0x1c, 0x46216c\nBCS             loc_46218E                                             ; +0x1e, 0x46216e\nMOV             R1, R5; unsigned int                                   ; +0x20, 0x462170\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x22, 0x462172\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x26, 0x462176\nLDRB.W          R1, [R4,#0x278]                                        ; +0x2a, 0x46217a\nADDS            R5, #1                                                 ; +0x2e, 0x46217e\nEOR.W           R1, R1, #1                                             ; +0x30, 0x462180\nLDR             R3, [R0]                                               ; +0x34, 0x462184\nLDR.W           R3, [R3,#0xA4]                                         ; +0x36, 0x462186\nBLX             R3                                                     ; +0x3a, 0x46218a\nB               loc_462164                                             ; +0x3c, 0x46218c\nMOVS            R5, #0                                                 ; +0x3e, 0x46218e\nLDR.W           R0, [R4,#0x218]; this                                  ; +0x40, 0x462190\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x44, 0x462194\nCMP             R5, R0                                                 ; +0x48, 0x462198\nBCS             loc_4621BA                                             ; +0x4a, 0x46219a\nMOV             R1, R5; unsigned int                                   ; +0x4c, 0x46219c\nLDR.W           R0, [R4,#0x218]; this                                  ; +0x4e, 0x46219e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x52, 0x4621a2\nLDRB.W          R1, [R4,#0x278]                                        ; +0x56, 0x4621a6\nADDS            R5, #1                                                 ; +0x5a, 0x4621aa\nEOR.W           R1, R1, #1                                             ; +0x5c, 0x4621ac\nLDR             R3, [R0]                                               ; +0x60, 0x4621b0\nLDR.W           R3, [R3,#0xA4]                                         ; +0x62, 0x4621b2\nBLX             R3                                                     ; +0x66, 0x4621b6\nB               loc_462190                                             ; +0x68, 0x4621b8\nLDRB.W          R3, [R4,#0x279]                                        ; +0x6a, 0x4621ba\nCBZ             R3, loc_46220A                                         ; +0x6e, 0x4621be\nMOVS            R5, #0                                                 ; +0x70, 0x4621c0\nLDR.W           R0, [R4,#0x210]; this                                  ; +0x72, 0x4621c2\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x76, 0x4621c6\nCMP             R5, R0                                                 ; +0x7a, 0x4621ca\nBCS             loc_4621E8                                             ; +0x7c, 0x4621cc\nMOV             R1, R5; unsigned int                                   ; +0x7e, 0x4621ce\nLDR.W           R0, [R4,#0x210]; this                                  ; +0x80, 0x4621d0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x84, 0x4621d4\nLDRB.W          R1, [R4,#0x278]                                        ; +0x88, 0x4621d8\nADDS            R5, #1                                                 ; +0x8c, 0x4621dc\nLDR             R3, [R0]                                               ; +0x8e, 0x4621de\nLDR.W           R3, [R3,#0xA4]                                         ; +0x90, 0x4621e0\nBLX             R3                                                     ; +0x94, 0x4621e4\nB               loc_4621C2                                             ; +0x96, 0x4621e6\nLDR.W           R0, [R4,#0x248]                                        ; +0x98, 0x4621e8\nCBZ             R0, loc_46220A                                         ; +0x9c, 0x4621ec\nLDR             R3, [R0]                                               ; +0x9e, 0x4621ee\nLDRB.W          R1, [R4,#0x278]                                        ; +0xa0, 0x4621f0\nLDR.W           R3, [R3,#0x1EC]                                        ; +0xa4, 0x4621f4\nBLX             R3                                                     ; +0xa8, 0x4621f8\nLDR.W           R0, [R4,#0x248]                                        ; +0xaa, 0x4621fa\nLDRB.W          R1, [R4,#0x278]                                        ; +0xae, 0x4621fe\nLDR             R3, [R0]                                               ; +0xb2, 0x462202\nLDR.W           R3, [R3,#0xA4]                                         ; +0xb4, 0x462204\nBLX             R3                                                     ; +0xb8, 0x462208\nMOV             R0, R4; this                                           ; +0xba, 0x46220a\nPOP.W           {R3-R5,LR}                                             ; +0xbc, 0x46220c\nB.W             _ZN20CustomizeObjectLayer22updateCurrentSelectionEv; CustomizeObjectLayer::updateCurrentSelection(void) ; +0xc0, 0x462210", "xrefs": ["CustomizeObjectLayer::onSelectMode @ 0x4622ba"], "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"}