{"type": "func", "start": 4300266064, "end": 4300266251, "name": "CreateGuidelinesLayer::toggleItems", "pseudocode": "// \n// CreateGuidelinesLayer::toggleItems from 0x10050da50 to 0x10050db0b (187 bytes)\n// \n// 4 xrefs:\n// > CreateGuidelinesLayer::init @ 0x10050d79d\n// > CreateGuidelinesLayer::onStop @ 0x10050da10\n// > CreateGuidelinesLayer::onRecord @ 0x10050dc10\n// > FindBPMLayer::init @ 0x10050ecc4\n// \n// This function is hookable on this platform (idp: pc, 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:31:35 +0000\n// \n\n__int64 __fastcall CreateGuidelinesLayer::toggleItems(__int64 a1, unsigned __int8 a2)\n{\n  unsigned int v2; // r15d\n  __int64 v3; // rax\n  __int64 result; // rax\n  unsigned int v5; // r15d\n  __int64 v6; // rax\n\n  if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v2);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, a2 ^ 1u);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );\n  }\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 696));\n  if ( (_DWORD)result )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 696), v5);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, a2);\n      ++v5;\n      result = sub_1007FEF90(*(_QWORD *)(a1 + 696));\n    }\n    while ( v5 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; CreateGuidelinesLayer::toggleItems from 0x10050da50 to 0x10050db0b (187 bytes)\n; \n; 4 xrefs:\n; > CreateGuidelinesLayer::init @ 0x10050d79d\n; > CreateGuidelinesLayer::onStop @ 0x10050da10\n; > CreateGuidelinesLayer::onRecord @ 0x10050dc10\n; > FindBPMLayer::init @ 0x10050ecc4\n; \n; This function is hookable on this platform (idp: pc, 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:31:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x10050da50\nmov     rbp, rsp                                                       ; +0x1, 0x10050da51\npush    r15                                                            ; +0x4, 0x10050da54\npush    r14                                                            ; +0x6, 0x10050da56\npush    r12                                                            ; +0x8, 0x10050da58\npush    rbx                                                            ; +0xa, 0x10050da5a\nmov     r14d, esi                                                      ; +0xb, 0x10050da5b\nmov     rbx, rdi                                                       ; +0xe, 0x10050da5e\nmov     rdi, [rdi+2B0h]                                                ; +0x11, 0x10050da61\ncall    sub_1007FEF90                                                  ; +0x18, 0x10050da68\ntest    eax, eax                                                       ; +0x1d, 0x10050da6d\njz      short loc_10050DAB2                                            ; +0x1f, 0x10050da6f\nmov     eax, r14d                                                      ; +0x21, 0x10050da71\nxor     al, 1                                                          ; +0x24, 0x10050da74\nxor     r15d, r15d                                                     ; +0x26, 0x10050da76\nmovzx   r12d, al                                                       ; +0x29, 0x10050da79\nnop     dword ptr [rax]                                                ; +0x2d, 0x10050da7d\nmov     rdi, [rbx+2B0h]                                                ; +0x30, 0x10050da80\nmov     esi, r15d                                                      ; +0x37, 0x10050da87\ncall    sub_1007FEFE0                                                  ; +0x3a, 0x10050da8a\nmov     rcx, [rax]                                                     ; +0x3f, 0x10050da8f\nmov     rdi, rax                                                       ; +0x42, 0x10050da92\nmov     esi, r12d                                                      ; +0x45, 0x10050da95\ncall    qword ptr [rcx+158h]                                           ; +0x48, 0x10050da98\ninc     r15d                                                           ; +0x4e, 0x10050da9e\nmov     rdi, [rbx+2B0h]                                                ; +0x51, 0x10050daa1\ncall    sub_1007FEF90                                                  ; +0x58, 0x10050daa8\ncmp     r15d, eax                                                      ; +0x5d, 0x10050daad\njb      short loc_10050DA80                                            ; +0x60, 0x10050dab0\nmov     rdi, [rbx+2B8h]                                                ; +0x62, 0x10050dab2\ncall    sub_1007FEF90                                                  ; +0x69, 0x10050dab9\ntest    eax, eax                                                       ; +0x6e, 0x10050dabe\njz      short loc_10050DB02                                            ; +0x70, 0x10050dac0\nxor     r15d, r15d                                                     ; +0x72, 0x10050dac2\nmovzx   r14d, r14b                                                     ; +0x75, 0x10050dac5\nnop     dword ptr [rax+00000000h]                                      ; +0x79, 0x10050dac9\nmov     rdi, [rbx+2B8h]                                                ; +0x80, 0x10050dad0\nmov     esi, r15d                                                      ; +0x87, 0x10050dad7\ncall    sub_1007FEFE0                                                  ; +0x8a, 0x10050dada\nmov     rcx, [rax]                                                     ; +0x8f, 0x10050dadf\nmov     rdi, rax                                                       ; +0x92, 0x10050dae2\nmov     esi, r14d                                                      ; +0x95, 0x10050dae5\ncall    qword ptr [rcx+158h]                                           ; +0x98, 0x10050dae8\ninc     r15d                                                           ; +0x9e, 0x10050daee\nmov     rdi, [rbx+2B8h]                                                ; +0xa1, 0x10050daf1\ncall    sub_1007FEF90                                                  ; +0xa8, 0x10050daf8\ncmp     r15d, eax                                                      ; +0xad, 0x10050dafd\njb      short loc_10050DAD0                                            ; +0xb0, 0x10050db00\npop     rbx                                                            ; +0xb2, 0x10050db02\npop     r12                                                            ; +0xb3, 0x10050db03\npop     r14                                                            ; +0xb5, 0x10050db05\npop     r15                                                            ; +0xb7, 0x10050db07\npop     rbp                                                            ; +0xb9, 0x10050db09\nretn                                                                   ; +0xba, 0x10050db0a", "xrefs": ["CreateGuidelinesLayer::init @ 0x10050d79d", "CreateGuidelinesLayer::onStop @ 0x10050da10", "CreateGuidelinesLayer::onRecord @ 0x10050dc10", "FindBPMLayer::init @ 0x10050ecc4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}