{"type": "func", "start": 5369973040, "end": 5369973256, "name": "CreateGuidelinesLayer::toggleItems", "pseudocode": "// \n// CreateGuidelinesLayer::toggleItems from 0x140134930 to 0x140134a08 (216 bytes)\n// \n// 7 xrefs:\n// > CreateGuidelinesLayer::init @ 0x140133ee9\n// > CreateGuidelinesLayer::onRecord @ 0x14013426f\n// > CreateGuidelinesLayer::onStop @ 0x140134446\n// > FindBPMLayer::create @ 0x14013504d\n// > <???> @ 0x140899068\n// > <???> @ 0x14089909c\n// > <???> @ 0x140917024\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 11:27:04 +0000\n// \n\nunsigned int __fastcall CreateGuidelinesLayer::toggleItems(__int64 a1, unsigned __int8 a2)\n{\n  unsigned int v3; // ebx\n  unsigned int i; // esi\n  struct cocos2d::CCObject *v6; // rax\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v8; // rax\n\n  v3 = 0;\n  for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); ++i )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), i);\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, a2 ^ 1u);\n  }\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 696));\n  if ( result )\n  {\n    do\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 696), v3);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v8 + 336LL))(v8, a2);\n      ++v3;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 696));\n    }\n    while ( v3 < result );\n  }\n  return result;\n}", "assembly": "; \n; CreateGuidelinesLayer::toggleItems from 0x140134930 to 0x140134a08 (216 bytes)\n; \n; 7 xrefs:\n; > CreateGuidelinesLayer::init @ 0x140133ee9\n; > CreateGuidelinesLayer::onRecord @ 0x14013426f\n; > CreateGuidelinesLayer::onStop @ 0x140134446\n; > FindBPMLayer::create @ 0x14013504d\n; > <???> @ 0x140899068\n; > <???> @ 0x14089909c\n; > <???> @ 0x140917024\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 11:27:04 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140134930\nmov     [rsp+arg_18], rdi                                              ; +0x5, 0x140134935\npush    r14                                                            ; +0xa, 0x14013493a\nsub     rsp, 20h                                                       ; +0xc, 0x14013493c\nmov     rdi, rcx                                                       ; +0x10, 0x140134940\nmov     [rsp+28h+arg_8], rsi                                           ; +0x13, 0x140134943\nmov     rcx, [rcx+2B0h]                                                ; +0x18, 0x140134948\nxor     ebx, ebx                                                       ; +0x1f, 0x14013494f\nmov     esi, ebx                                                       ; +0x21, 0x140134951\nmovzx   r14d, dl                                                       ; +0x23, 0x140134953\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x27, 0x140134957\ntest    eax, eax                                                       ; +0x2d, 0x14013495d\njz      short loc_1401349AB                                            ; +0x2f, 0x14013495f\nmov     [rsp+28h+arg_0], rbp                                           ; +0x31, 0x140134961\nmovzx   ebp, r14b                                                      ; +0x36, 0x140134966\nxor     bpl, 1                                                         ; +0x3a, 0x14013496a\nxchg    ax, ax                                                         ; +0x3e, 0x14013496e\nmov     rcx, [rdi+2B0h]                                                ; +0x40, 0x140134970\nmov     edx, esi                                                       ; +0x47, 0x140134977\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140134979\nmovzx   edx, bpl                                                       ; +0x4f, 0x14013497f\nmov     rcx, [rax]                                                     ; +0x53, 0x140134983\nmov     r8, [rcx+150h]                                                 ; +0x56, 0x140134986\nmov     rcx, rax                                                       ; +0x5d, 0x14013498d\ncall    r8                                                             ; +0x60, 0x140134990\nmov     rcx, [rdi+2B0h]                                                ; +0x63, 0x140134993\ninc     esi                                                            ; +0x6a, 0x14013499a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x6c, 0x14013499c\ncmp     esi, eax                                                       ; +0x72, 0x1401349a2\njb      short loc_140134970                                            ; +0x74, 0x1401349a4\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x76, 0x1401349a6\nmov     rcx, [rdi+2B8h]                                                ; +0x7b, 0x1401349ab\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x82, 0x1401349b2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x88, 0x1401349b8\ntest    eax, eax                                                       ; +0x8d, 0x1401349bd\njz      short loc_1401349F7                                            ; +0x8f, 0x1401349bf\nmov     rcx, [rdi+2B8h]                                                ; +0x91, 0x1401349c1\nmov     edx, ebx                                                       ; +0x98, 0x1401349c8\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x9a, 0x1401349ca\nmovzx   edx, r14b                                                      ; +0xa0, 0x1401349d0\nmov     rcx, [rax]                                                     ; +0xa4, 0x1401349d4\nmov     r8, [rcx+150h]                                                 ; +0xa7, 0x1401349d7\nmov     rcx, rax                                                       ; +0xae, 0x1401349de\ncall    r8                                                             ; +0xb1, 0x1401349e1\nmov     rcx, [rdi+2B8h]                                                ; +0xb4, 0x1401349e4\ninc     ebx                                                            ; +0xbb, 0x1401349eb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbd, 0x1401349ed\ncmp     ebx, eax                                                       ; +0xc3, 0x1401349f3\njb      short loc_1401349C1                                            ; +0xc5, 0x1401349f5\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xc7, 0x1401349f7\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xcc, 0x1401349fc\nadd     rsp, 20h                                                       ; +0xd1, 0x140134a01\npop     r14                                                            ; +0xd5, 0x140134a05\nretn                                                                   ; +0xd7, 0x140134a07", "xrefs": ["CreateGuidelinesLayer::init @ 0x140133ee9", "CreateGuidelinesLayer::onRecord @ 0x14013426f", "CreateGuidelinesLayer::onStop @ 0x140134446", "FindBPMLayer::create @ 0x14013504d", "<???> @ 0x140899068", "<???> @ 0x14089909c", "<???> @ 0x140917024"], "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"}