{"type": "func", "start": 4295297132, "end": 4295297452, "name": "CustomizeObjectLayer::toggleVisible", "pseudocode": "// \n// CustomizeObjectLayer::toggleVisible from 0x10005086c to 0x1000509ac (320 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::onSelectMode @ 0x10004f60c\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 __fastcall CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *a1)\n{\n  __int64 v2; // x20\n  __int64 v3; // x0\n  __int64 v4; // x20\n  __int64 v5; // x0\n  __int64 v6; // x20\n  __int64 v7; // x0\n  CCTextInputNode *m_textInput; // x0\n\n  a1->m_showTextInput = a1->m_selectedMode == 3;\n  if ( (unsigned int)sub_10024A36C(a1->m_colorTabNodes) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_10024A388(a1->m_colorTabNodes, v2);\n      (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 328LL))(v3, !a1->m_showTextInput);\n      v2 = (unsigned int)(v2 + 1);\n    }\n    while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_colorTabNodes) );\n  }\n  if ( (unsigned int)sub_10024A36C(a1->m_detailTabNodes) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = sub_10024A388(a1->m_detailTabNodes, v4);\n      (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v5 + 328LL))(v5, !a1->m_showTextInput);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_detailTabNodes) );\n  }\n  if ( a1->m_customColorSelected )\n  {\n    if ( (unsigned int)sub_10024A36C(a1->m_textTabNodes) )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = sub_10024A388(a1->m_textTabNodes, v6);\n        (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 328LL))(v7, a1->m_showTextInput);\n        v6 = (unsigned int)(v6 + 1);\n      }\n      while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_textTabNodes) );\n    }\n    m_textInput = a1->m_textInput;\n    if ( m_textInput )\n    {\n      ((void (__fastcall *)(CCTextInputNode *, bool))m_textInput->setTouchEnabled)(m_textInput, a1->m_showTextInput);\n      ((void (__fastcall *)(CCTextInputNode *, bool))a1->m_textInput->setVisible)(a1->m_textInput, a1->m_showTextInput);\n    }\n  }\n  CustomizeObjectLayer::updateCurrentSelection(a1);\n}", "assembly": "; \n; CustomizeObjectLayer::toggleVisible from 0x10005086c to 0x1000509ac (320 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::onSelectMode @ 0x10004f60c\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10005086c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100050870\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100050874\nADD             X29, SP, #0x20                                         ; +0xc, 0x100050878\nMOV             X19, X0                                                ; +0x10, 0x10005087c\nLDR             W8, [X0,#0x2D0]                                        ; +0x14, 0x100050880\nCMP             W8, #3                                                 ; +0x18, 0x100050884\nCSET            W8, EQ                                                 ; +0x1c, 0x100050888\nSTRB            W8, [X0,#0x380]                                        ; +0x20, 0x10005088c\nLDR             X0, [X0,#0x2B0]                                        ; +0x24, 0x100050890\nBL              sub_10024A36C                                          ; +0x28, 0x100050894\nCBZ             W0, loc_1000508D8                                      ; +0x2c, 0x100050898\nMOV             W20, #0                                                ; +0x30, 0x10005089c\nMOV             W21, #1                                                ; +0x34, 0x1000508a0\nLDR             X0, [X19,#0x2B0]                                       ; +0x38, 0x1000508a4\nMOV             X1, X20                                                ; +0x3c, 0x1000508a8\nBL              sub_10024A388                                          ; +0x40, 0x1000508ac\nLDRB            W8, [X19,#0x380]                                       ; +0x44, 0x1000508b0\nLDR             X9, [X0]                                               ; +0x48, 0x1000508b4\nLDR             X9, [X9,#0x148]                                        ; +0x4c, 0x1000508b8\nBIC             W1, W21, W8                                            ; +0x50, 0x1000508bc\nBLR             X9                                                     ; +0x54, 0x1000508c0\nADD             W20, W20, #1                                           ; +0x58, 0x1000508c4\nLDR             X0, [X19,#0x2B0]                                       ; +0x5c, 0x1000508c8\nBL              sub_10024A36C                                          ; +0x60, 0x1000508cc\nCMP             W20, W0                                                ; +0x64, 0x1000508d0\nB.CC            loc_1000508A4                                          ; +0x68, 0x1000508d4\nLDR             X0, [X19,#0x2C8]                                       ; +0x6c, 0x1000508d8\nBL              sub_10024A36C                                          ; +0x70, 0x1000508dc\nCBZ             W0, loc_100050920                                      ; +0x74, 0x1000508e0\nMOV             W20, #0                                                ; +0x78, 0x1000508e4\nMOV             W21, #1                                                ; +0x7c, 0x1000508e8\nLDR             X0, [X19,#0x2C8]                                       ; +0x80, 0x1000508ec\nMOV             X1, X20                                                ; +0x84, 0x1000508f0\nBL              sub_10024A388                                          ; +0x88, 0x1000508f4\nLDRB            W8, [X19,#0x380]                                       ; +0x8c, 0x1000508f8\nLDR             X9, [X0]                                               ; +0x90, 0x1000508fc\nLDR             X9, [X9,#0x148]                                        ; +0x94, 0x100050900\nBIC             W1, W21, W8                                            ; +0x98, 0x100050904\nBLR             X9                                                     ; +0x9c, 0x100050908\nADD             W20, W20, #1                                           ; +0xa0, 0x10005090c\nLDR             X0, [X19,#0x2C8]                                       ; +0xa4, 0x100050910\nBL              sub_10024A36C                                          ; +0xa8, 0x100050914\nCMP             W20, W0                                                ; +0xac, 0x100050918\nB.CC            loc_1000508EC                                          ; +0xb0, 0x10005091c\nLDRB            W8, [X19,#0x381]                                       ; +0xb4, 0x100050920\nCMP             W8, #1                                                 ; +0xb8, 0x100050924\nB.NE            loc_100050998                                          ; +0xbc, 0x100050928\nLDR             X0, [X19,#0x2B8]                                       ; +0xc0, 0x10005092c\nBL              sub_10024A36C                                          ; +0xc4, 0x100050930\nCBZ             W0, loc_10005096C                                      ; +0xc8, 0x100050934\nMOV             W20, #0                                                ; +0xcc, 0x100050938\nLDR             X0, [X19,#0x2B8]                                       ; +0xd0, 0x10005093c\nMOV             X1, X20                                                ; +0xd4, 0x100050940\nBL              sub_10024A388                                          ; +0xd8, 0x100050944\nLDRB            W1, [X19,#0x380]                                       ; +0xdc, 0x100050948\nLDR             X8, [X0]                                               ; +0xe0, 0x10005094c\nLDR             X8, [X8,#0x148]                                        ; +0xe4, 0x100050950\nBLR             X8                                                     ; +0xe8, 0x100050954\nADD             W20, W20, #1                                           ; +0xec, 0x100050958\nLDR             X0, [X19,#0x2B8]                                       ; +0xf0, 0x10005095c\nBL              sub_10024A36C                                          ; +0xf4, 0x100050960\nCMP             W20, W0                                                ; +0xf8, 0x100050964\nB.CC            loc_10005093C                                          ; +0xfc, 0x100050968\nLDR             X0, [X19,#0x320]                                       ; +0x100, 0x10005096c\nCBZ             X0, loc_100050998                                      ; +0x104, 0x100050970\nLDRB            W1, [X19,#0x380]                                       ; +0x108, 0x100050974\nLDR             X8, [X0]                                               ; +0x10c, 0x100050978\nLDR             X8, [X8,#0x3D8]                                        ; +0x110, 0x10005097c\nBLR             X8                                                     ; +0x114, 0x100050980\nLDR             X0, [X19,#0x320]                                       ; +0x118, 0x100050984\nLDRB            W1, [X19,#0x380]                                       ; +0x11c, 0x100050988\nLDR             X8, [X0]                                               ; +0x120, 0x10005098c\nLDR             X8, [X8,#0x148]                                        ; +0x124, 0x100050990\nBLR             X8                                                     ; +0x128, 0x100050994\nMOV             X0, X19                                                ; +0x12c, 0x100050998\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x130, 0x10005099c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x134, 0x1000509a0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x138, 0x1000509a4\nB               CustomizeObjectLayer__updateCurrentSelection           ; +0x13c, 0x1000509a8", "xrefs": ["CustomizeObjectLayer::onSelectMode @ 0x10004f60c"], "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"}