{"type": "func", "start": 7241824, "end": 7241980, "name": "CreateGuidelinesLayer::toggleItems", "pseudocode": "// \n// CreateGuidelinesLayer::toggleItems from 0x6e8060 to 0x6e80fc (156 bytes)\n// \n// 5 xrefs:\n// > CreateGuidelinesLayer::onStop @ 0x6e8120\n// > CreateGuidelinesLayer::init @ 0x6e928c\n// > FindBPMLayer::init @ 0x6e9744\n// > CreateGuidelinesLayer::onRecord @ 0x6e99a0\n// > <???> @ 0xe6dd0\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:51:44 +0000\n// \n\n__int64 __fastcall CreateGuidelinesLayer::toggleItems(cocos2d::CCArray **this, unsigned __int8 a2)\n{\n  unsigned int v2; // w21\n  unsigned int v3; // w22\n  unsigned int v5; // w19\n  __int64 v6; // x0\n  bool v7; // cf\n  unsigned int v8; // w1\n  unsigned int v9; // w19\n  __int64 v10; // x0\n  __int64 result; // x0\n  unsigned int v12; // w1\n\n  v2 = a2;\n  v3 = a2 ^ 1;\n  v5 = 0;\n  while ( 1 )\n  {\n    v7 = v5 >= (unsigned int)cocos2d::CCArray::count(*(this + 86));\n    v8 = v5++;\n    if ( v7 )\n      break;\n    v6 = cocos2d::CCArray::objectAtIndex(*(this + 86), v8);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, v3);\n  }\n  v9 = 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(*(this + 87));\n    v7 = v9 >= (unsigned int)result;\n    v12 = v9++;\n    if ( v7 )\n      break;\n    v10 = cocos2d::CCArray::objectAtIndex(*(this + 87), v12);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, v2);\n  }\n  return result;\n}", "assembly": "; \n; CreateGuidelinesLayer::toggleItems from 0x6e8060 to 0x6e80fc (156 bytes)\n; \n; 5 xrefs:\n; > CreateGuidelinesLayer::onStop @ 0x6e8120\n; > CreateGuidelinesLayer::init @ 0x6e928c\n; > FindBPMLayer::init @ 0x6e9744\n; > CreateGuidelinesLayer::onRecord @ 0x6e99a0\n; > <???> @ 0xe6dd0\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:51:44 +0000\n; \nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x6e8060\nMOV             X29, SP                                                ; +0x4, 0x6e8064\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x6e8068\nUXTB            W21, W1                                                ; +0xc, 0x6e806c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x6e8070\nEOR             W22, W21, #1                                           ; +0x14, 0x6e8074\nMOV             X20, X0                                                ; +0x18, 0x6e8078\nMOV             W19, #0                                                ; +0x1c, 0x6e807c\nB               loc_6E809C                                             ; +0x20, 0x6e8080\nLDR             X0, [X20,#0x2B0]; this                                 ; +0x24, 0x6e8084\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x28, 0x6e8088\nLDR             X2, [X0]                                               ; +0x2c, 0x6e808c\nMOV             W1, W22                                                ; +0x30, 0x6e8090\nLDR             X2, [X2,#0x158]                                        ; +0x34, 0x6e8094\nBLR             X2                                                     ; +0x38, 0x6e8098\nLDR             X0, [X20,#0x2B0]; this                                 ; +0x3c, 0x6e809c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x40, 0x6e80a0\nCMP             W19, W0                                                ; +0x44, 0x6e80a4\nMOV             W1, W19; unsigned int                                  ; +0x48, 0x6e80a8\nADD             W19, W19, #1                                           ; +0x4c, 0x6e80ac\nB.CC            loc_6E8084                                             ; +0x50, 0x6e80b0\nMOV             W19, #0                                                ; +0x54, 0x6e80b4\nB               loc_6E80D4                                             ; +0x58, 0x6e80b8\nLDR             X0, [X20,#0x2B8]; this                                 ; +0x5c, 0x6e80bc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x60, 0x6e80c0\nLDR             X2, [X0]                                               ; +0x64, 0x6e80c4\nMOV             W1, W21                                                ; +0x68, 0x6e80c8\nLDR             X2, [X2,#0x158]                                        ; +0x6c, 0x6e80cc\nBLR             X2                                                     ; +0x70, 0x6e80d0\nLDR             X0, [X20,#0x2B8]; this                                 ; +0x74, 0x6e80d4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x78, 0x6e80d8\nCMP             W19, W0                                                ; +0x7c, 0x6e80dc\nMOV             W1, W19; unsigned int                                  ; +0x80, 0x6e80e0\nADD             W19, W19, #1                                           ; +0x84, 0x6e80e4\nB.CC            loc_6E80BC                                             ; +0x88, 0x6e80e8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x8c, 0x6e80ec\nLDP             X21, X22, [SP,#var_s20]                                ; +0x90, 0x6e80f0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x94, 0x6e80f4\nRET                                                                    ; +0x98, 0x6e80f8", "xrefs": ["CreateGuidelinesLayer::onStop @ 0x6e8120", "CreateGuidelinesLayer::init @ 0x6e928c", "FindBPMLayer::init @ 0x6e9744", "CreateGuidelinesLayer::onRecord @ 0x6e99a0", "<???> @ 0xe6dd0"], "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"}