// // CreateGuidelinesLayer::toggleItems from 0x140134930 to 0x140134a08 (216 bytes) // // 7 xrefs: // > CreateGuidelinesLayer::init @ 0x140133ee9 // > CreateGuidelinesLayer::onRecord @ 0x14013426f // > CreateGuidelinesLayer::onStop @ 0x140134446 // > FindBPMLayer::create @ 0x14013504d // > @ 0x140899068 // > @ 0x14089909c // > @ 0x140917024 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:27:04 +0000 // unsigned int __fastcall CreateGuidelinesLayer::toggleItems(__int64 a1, unsigned __int8 a2) { unsigned int v3; // ebx unsigned int i; // esi struct cocos2d::CCObject *v6; // rax unsigned int result; // eax struct cocos2d::CCObject *v8; // rax v3 = 0; for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); ++i ) { v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), i); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, a2 ^ 1u); } result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 696)); if ( result ) { do { v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 696), v3); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v8 + 336LL))(v8, a2); ++v3; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 696)); } while ( v3 < result ); } return result; }