{"type": "func", "start": 4295479988, "end": 4295480156, "name": "CreateGuidelinesLayer::toggleItems", "pseudocode": "// \n// CreateGuidelinesLayer::toggleItems from 0x10007d2b4 to 0x10007d35c (168 bytes)\n// \n// 4 xrefs:\n// > CreateGuidelinesLayer::init @ 0x10007d02c\n// > CreateGuidelinesLayer::onStop @ 0x10007d278\n// > CreateGuidelinesLayer::onRecord @ 0x10007d488\n// > FindBPMLayer::init @ 0x10007e1f4\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall CreateGuidelinesLayer::toggleItems(CreateGuidelinesLayer *a1, bool a2)\n{\n  _BOOL8 v2; // x19\n  __int64 v4; // x21\n  __int64 v5; // x0\n  __int64 v6; // x21\n  __int64 v7; // x0\n\n  v2 = a2;\n  if ( (unsigned int)sub_10024A36C(a1->m_nonRecordingObjects) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = sub_10024A388(a1->m_nonRecordingObjects, v4);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 328LL))(v5, (unsigned int)v2 ^ 1);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_nonRecordingObjects) );\n  }\n  if ( (unsigned int)sub_10024A36C(a1->m_recordingObjects) )\n  {\n    v6 = 0;\n    do\n    {\n      v7 = sub_10024A388(a1->m_recordingObjects, v6);\n      (*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v7 + 328LL))(v7, v2);\n      v6 = (unsigned int)(v6 + 1);\n    }\n    while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_recordingObjects) );\n  }\n}", "assembly": "; \n; CreateGuidelinesLayer::toggleItems from 0x10007d2b4 to 0x10007d35c (168 bytes)\n; \n; 4 xrefs:\n; > CreateGuidelinesLayer::init @ 0x10007d02c\n; > CreateGuidelinesLayer::onStop @ 0x10007d278\n; > CreateGuidelinesLayer::onRecord @ 0x10007d488\n; > FindBPMLayer::init @ 0x10007e1f4\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, 0x10007d2b4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10007d2b8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10007d2bc\nADD             X29, SP, #0x20                                         ; +0xc, 0x10007d2c0\nMOV             X19, X1                                                ; +0x10, 0x10007d2c4\nMOV             X20, X0                                                ; +0x14, 0x10007d2c8\nLDR             X0, [X0,#0x290]                                        ; +0x18, 0x10007d2cc\nBL              sub_10024A36C                                          ; +0x1c, 0x10007d2d0\nCBZ             W0, loc_10007D30C                                      ; +0x20, 0x10007d2d4\nMOV             W21, #0                                                ; +0x24, 0x10007d2d8\nLDR             X0, [X20,#0x290]                                       ; +0x28, 0x10007d2dc\nMOV             X1, X21                                                ; +0x2c, 0x10007d2e0\nBL              sub_10024A388                                          ; +0x30, 0x10007d2e4\nLDR             X8, [X0]                                               ; +0x34, 0x10007d2e8\nLDR             X8, [X8,#0x148]                                        ; +0x38, 0x10007d2ec\nEOR             W1, W19, #1                                            ; +0x3c, 0x10007d2f0\nBLR             X8                                                     ; +0x40, 0x10007d2f4\nADD             W21, W21, #1                                           ; +0x44, 0x10007d2f8\nLDR             X0, [X20,#0x290]                                       ; +0x48, 0x10007d2fc\nBL              sub_10024A36C                                          ; +0x4c, 0x10007d300\nCMP             W21, W0                                                ; +0x50, 0x10007d304\nB.CC            loc_10007D2DC                                          ; +0x54, 0x10007d308\nLDR             X0, [X20,#0x298]                                       ; +0x58, 0x10007d30c\nBL              sub_10024A36C                                          ; +0x5c, 0x10007d310\nCBZ             W0, loc_10007D34C                                      ; +0x60, 0x10007d314\nMOV             W21, #0                                                ; +0x64, 0x10007d318\nLDR             X0, [X20,#0x298]                                       ; +0x68, 0x10007d31c\nMOV             X1, X21                                                ; +0x6c, 0x10007d320\nBL              sub_10024A388                                          ; +0x70, 0x10007d324\nLDR             X8, [X0]                                               ; +0x74, 0x10007d328\nLDR             X8, [X8,#0x148]                                        ; +0x78, 0x10007d32c\nMOV             X1, X19                                                ; +0x7c, 0x10007d330\nBLR             X8                                                     ; +0x80, 0x10007d334\nADD             W21, W21, #1                                           ; +0x84, 0x10007d338\nLDR             X0, [X20,#0x298]                                       ; +0x88, 0x10007d33c\nBL              sub_10024A36C                                          ; +0x8c, 0x10007d340\nCMP             W21, W0                                                ; +0x90, 0x10007d344\nB.CC            loc_10007D31C                                          ; +0x94, 0x10007d348\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x98, 0x10007d34c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x9c, 0x10007d350\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa0, 0x10007d354\nRET                                                                    ; +0xa4, 0x10007d358", "xrefs": ["CreateGuidelinesLayer::init @ 0x10007d02c", "CreateGuidelinesLayer::onStop @ 0x10007d278", "CreateGuidelinesLayer::onRecord @ 0x10007d488", "FindBPMLayer::init @ 0x10007e1f4"], "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"}