{"type": "func", "start": 8657388, "end": 8657668, "name": "CustomizeObjectLayer::toggleVisible", "pseudocode": "// \n// CustomizeObjectLayer::toggleVisible from 0x8419ec to 0x841b04 (280 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::onSelectMode @ 0x841bdc\n// > <???> @ 0xc3d50\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; // 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  CCTextInputNode *m_textInput; // x0\n\n  v2 = 0;\n  for ( a1->m_showTextInput = a1->m_selectedMode == 3;\n        ;\n        (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 328LL))(v3, !a1->m_showTextInput) )\n  {\n    v4 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_colorTabNodes);\n    v5 = v2++;\n    if ( v4 )\n      break;\n    v3 = cocos2d::CCArray::objectAtIndex(a1->m_colorTabNodes, v5);\n  }\n  v6 = 0;\n  while ( 1 )\n  {\n    v4 = v6 >= (unsigned int)cocos2d::CCArray::count(a1->m_detailTabNodes);\n    v8 = v6++;\n    if ( v4 )\n      break;\n    v7 = cocos2d::CCArray::objectAtIndex(a1->m_detailTabNodes, v8);\n    (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 328LL))(v7, !a1->m_showTextInput);\n  }\n  v9 = 0;\n  if ( a1->m_customColorSelected )\n  {\n    while ( 1 )\n    {\n      v4 = v9 >= (unsigned int)cocos2d::CCArray::count(a1->m_textTabNodes);\n      v11 = v9++;\n      if ( v4 )\n        break;\n      v10 = cocos2d::CCArray::objectAtIndex(a1->m_textTabNodes, v11);\n      (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v10 + 328LL))(v10, 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 0x8419ec to 0x841b04 (280 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::onSelectMode @ 0x841bdc\n; > <???> @ 0xc3d50\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x8419ec\nMOV             X29, SP                                                ; +0x4, 0x8419f0\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8419f4\nMOV             X19, X0                                                ; +0xc, 0x8419f8\nLDR             W0, [X0,#0x2D0]                                        ; +0x10, 0x8419fc\nMOV             W20, #0                                                ; +0x14, 0x841a00\nCMP             W0, #3                                                 ; +0x18, 0x841a04\nCSET            W0, EQ                                                 ; +0x1c, 0x841a08\nSTRB            W0, [X19,#0x380]                                       ; +0x20, 0x841a0c\nB               loc_841A30                                             ; +0x24, 0x841a10\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x28, 0x841a14\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x841a18\nLDR             X2, [X0]                                               ; +0x30, 0x841a1c\nLDRB            W1, [X19,#0x380]                                       ; +0x34, 0x841a20\nLDR             X2, [X2,#0x148]                                        ; +0x38, 0x841a24\nEOR             W1, W1, #1                                             ; +0x3c, 0x841a28\nBLR             X2                                                     ; +0x40, 0x841a2c\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x44, 0x841a30\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x841a34\nCMP             W20, W0                                                ; +0x4c, 0x841a38\nMOV             W1, W20; unsigned int                                  ; +0x50, 0x841a3c\nADD             W20, W20, #1                                           ; +0x54, 0x841a40\nB.CC            loc_841A14                                             ; +0x58, 0x841a44\nMOV             W20, #0                                                ; +0x5c, 0x841a48\nB               loc_841A6C                                             ; +0x60, 0x841a4c\nLDR             X0, [X19,#0x2C8]; this                                 ; +0x64, 0x841a50\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x841a54\nLDR             X2, [X0]                                               ; +0x6c, 0x841a58\nLDRB            W1, [X19,#0x380]                                       ; +0x70, 0x841a5c\nLDR             X2, [X2,#0x148]                                        ; +0x74, 0x841a60\nEOR             W1, W1, #1                                             ; +0x78, 0x841a64\nBLR             X2                                                     ; +0x7c, 0x841a68\nLDR             X0, [X19,#0x2C8]; this                                 ; +0x80, 0x841a6c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x841a70\nCMP             W20, W0                                                ; +0x88, 0x841a74\nMOV             W1, W20; unsigned int                                  ; +0x8c, 0x841a78\nADD             W20, W20, #1                                           ; +0x90, 0x841a7c\nB.CC            loc_841A50                                             ; +0x94, 0x841a80\nLDRB            W0, [X19,#0x381]                                       ; +0x98, 0x841a84\nMOV             W20, #0                                                ; +0x9c, 0x841a88\nCBNZ            W0, loc_841AAC                                         ; +0xa0, 0x841a8c\nB               loc_841AF4                                             ; +0xa4, 0x841a90\nLDR             X0, [X19,#0x2B8]; this                                 ; +0xa8, 0x841a94\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xac, 0x841a98\nLDR             X2, [X0]                                               ; +0xb0, 0x841a9c\nLDRB            W1, [X19,#0x380]                                       ; +0xb4, 0x841aa0\nLDR             X2, [X2,#0x148]                                        ; +0xb8, 0x841aa4\nBLR             X2                                                     ; +0xbc, 0x841aa8\nLDR             X0, [X19,#0x2B8]; this                                 ; +0xc0, 0x841aac\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc4, 0x841ab0\nCMP             W20, W0                                                ; +0xc8, 0x841ab4\nMOV             W1, W20; unsigned int                                  ; +0xcc, 0x841ab8\nADD             W20, W20, #1                                           ; +0xd0, 0x841abc\nB.CC            loc_841A94                                             ; +0xd4, 0x841ac0\nLDR             X0, [X19,#0x320]                                       ; +0xd8, 0x841ac4\nCBZ             X0, loc_841AF4                                         ; +0xdc, 0x841ac8\nLDR             X2, [X0]                                               ; +0xe0, 0x841acc\nLDRB            W1, [X19,#0x380]                                       ; +0xe4, 0x841ad0\nLDR             X2, [X2,#0x3D8]                                        ; +0xe8, 0x841ad4\nBLR             X2                                                     ; +0xec, 0x841ad8\nLDR             X2, [X19,#0x320]                                       ; +0xf0, 0x841adc\nLDRB            W1, [X19,#0x380]                                       ; +0xf4, 0x841ae0\nMOV             X0, X2                                                 ; +0xf8, 0x841ae4\nLDR             X2, [X2]                                               ; +0xfc, 0x841ae8\nLDR             X2, [X2,#0x148]                                        ; +0x100, 0x841aec\nBLR             X2                                                     ; +0x104, 0x841af0\nMOV             X0, X19; this                                          ; +0x108, 0x841af4\nLDP             X19, X20, [SP,#var_s10]                                ; +0x10c, 0x841af8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x110, 0x841afc\nB               _ZN20CustomizeObjectLayer22updateCurrentSelectionEv; CustomizeObjectLayer::updateCurrentSelection(void) ; +0x114, 0x841b00", "xrefs": ["CustomizeObjectLayer::onSelectMode @ 0x841bdc", "<???> @ 0xc3d50"], "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"}