{"type": "func", "start": 6030916, "end": 6031072, "name": "CreateGuidelinesLayer::toggleItems", "pseudocode": "// \n// CreateGuidelinesLayer::toggleItems from 0x5c0644 to 0x5c06e0 (156 bytes)\n// \n// 5 xrefs:\n// > CreateGuidelinesLayer::onStop @ 0x5c0704\n// > CreateGuidelinesLayer::onRecord @ 0x5c07c0\n// > CreateGuidelinesLayer::init @ 0x5c15ac\n// > FindBPMLayer::init @ 0x5c1b78\n// > <???> @ 0xb06d0\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 CreateGuidelinesLayer::toggleItems(CreateGuidelinesLayer *a1, bool a2)\n{\n  _BOOL4 v2; // w21\n  _BOOL4 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  unsigned int v11; // w1\n\n  v2 = a2;\n  v3 = !a2;\n  v5 = 0;\n  while ( 1 )\n  {\n    v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_nonRecordingObjects);\n    v8 = v5++;\n    if ( v7 )\n      break;\n    v6 = cocos2d::CCArray::objectAtIndex(a1->m_nonRecordingObjects, v8);\n    (*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v6 + 328LL))(v6, v3);\n  }\n  v9 = 0;\n  while ( 1 )\n  {\n    v7 = v9 >= (unsigned int)cocos2d::CCArray::count(a1->m_recordingObjects);\n    v11 = v9++;\n    if ( v7 )\n      break;\n    v10 = cocos2d::CCArray::objectAtIndex(a1->m_recordingObjects, v11);\n    (*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v10 + 328LL))(v10, v2);\n  }\n}", "assembly": "; \n; CreateGuidelinesLayer::toggleItems from 0x5c0644 to 0x5c06e0 (156 bytes)\n; \n; 5 xrefs:\n; > CreateGuidelinesLayer::onStop @ 0x5c0704\n; > CreateGuidelinesLayer::onRecord @ 0x5c07c0\n; > CreateGuidelinesLayer::init @ 0x5c15ac\n; > FindBPMLayer::init @ 0x5c1b78\n; > <???> @ 0xb06d0\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,#-0x30+var_s0]!                          ; +0x0, 0x5c0644\nMOV             X29, SP                                                ; +0x4, 0x5c0648\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x5c064c\nUXTB            W21, W1                                                ; +0xc, 0x5c0650\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0x5c0654\nEOR             W22, W21, #1                                           ; +0x14, 0x5c0658\nMOV             X20, X0                                                ; +0x18, 0x5c065c\nMOV             W19, #0                                                ; +0x1c, 0x5c0660\nB               loc_5C0680                                             ; +0x20, 0x5c0664\nLDR             X0, [X20,#0x290]; this                                 ; +0x24, 0x5c0668\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x28, 0x5c066c\nLDR             X2, [X0]                                               ; +0x2c, 0x5c0670\nMOV             W1, W22                                                ; +0x30, 0x5c0674\nLDR             X2, [X2,#0x148]                                        ; +0x34, 0x5c0678\nBLR             X2                                                     ; +0x38, 0x5c067c\nLDR             X0, [X20,#0x290]; this                                 ; +0x3c, 0x5c0680\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x40, 0x5c0684\nCMP             W19, W0                                                ; +0x44, 0x5c0688\nMOV             W1, W19; unsigned int                                  ; +0x48, 0x5c068c\nADD             W19, W19, #1                                           ; +0x4c, 0x5c0690\nB.CC            loc_5C0668                                             ; +0x50, 0x5c0694\nMOV             W19, #0                                                ; +0x54, 0x5c0698\nB               loc_5C06B8                                             ; +0x58, 0x5c069c\nLDR             X0, [X20,#0x298]; this                                 ; +0x5c, 0x5c06a0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x60, 0x5c06a4\nLDR             X2, [X0]                                               ; +0x64, 0x5c06a8\nMOV             W1, W21                                                ; +0x68, 0x5c06ac\nLDR             X2, [X2,#0x148]                                        ; +0x6c, 0x5c06b0\nBLR             X2                                                     ; +0x70, 0x5c06b4\nLDR             X0, [X20,#0x298]; this                                 ; +0x74, 0x5c06b8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x78, 0x5c06bc\nCMP             W19, W0                                                ; +0x7c, 0x5c06c0\nMOV             W1, W19; unsigned int                                  ; +0x80, 0x5c06c4\nADD             W19, W19, #1                                           ; +0x84, 0x5c06c8\nB.CC            loc_5C06A0                                             ; +0x88, 0x5c06cc\nLDP             X19, X20, [SP,#var_s10]                                ; +0x8c, 0x5c06d0\nLDP             X21, X22, [SP,#var_s20]                                ; +0x90, 0x5c06d4\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x94, 0x5c06d8\nRET                                                                    ; +0x98, 0x5c06dc", "xrefs": ["CreateGuidelinesLayer::onStop @ 0x5c0704", "CreateGuidelinesLayer::onRecord @ 0x5c07c0", "CreateGuidelinesLayer::init @ 0x5c15ac", "FindBPMLayer::init @ 0x5c1b78", "<???> @ 0xb06d0"], "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"}