{"type": "func", "start": 3181872, "end": 3181960, "name": "CreateGuidelinesLayer::toggleItems", "pseudocode": "// \n// CreateGuidelinesLayer::toggleItems from 0x308d30 to 0x308d88 (88 bytes)\n// \n// 4 xrefs:\n// > CreateGuidelinesLayer::onStop @ 0x308d9a\n// > CreateGuidelinesLayer::onRecord @ 0x308e08\n// > CreateGuidelinesLayer::init @ 0x30986a\n// > FindBPMLayer::init @ 0x309b0e\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; // r7\n  _BOOL4 v4; // r6\n  unsigned int i; // r4\n  int v6; // r0\n  unsigned int j; // r4\n  int v8; // r0\n\n  v2 = !a2;\n  v4 = a2;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_nonRecordingObjects); ++i )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(a1->m_nonRecordingObjects, i);\n    (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v6 + 164))(v6, v2);\n  }\n  for ( j = 0; j < cocos2d::CCArray::count(a1->m_recordingObjects); ++j )\n  {\n    v8 = cocos2d::CCArray::objectAtIndex(a1->m_recordingObjects, j);\n    (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v8 + 164))(v8, v4);\n  }\n}", "assembly": "; \n; CreateGuidelinesLayer::toggleItems from 0x308d30 to 0x308d88 (88 bytes)\n; \n; 4 xrefs:\n; > CreateGuidelinesLayer::onStop @ 0x308d9a\n; > CreateGuidelinesLayer::onRecord @ 0x308e08\n; > CreateGuidelinesLayer::init @ 0x30986a\n; > FindBPMLayer::init @ 0x309b0e\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\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x308d30\nEOR.W           R7, R1, #1                                             ; +0x2, 0x308d32\nMOV             R5, R0                                                 ; +0x6, 0x308d36\nMOV             R6, R1                                                 ; +0x8, 0x308d38\nMOVS            R4, #0                                                 ; +0xa, 0x308d3a\nLDR.W           R0, [R5,#0x1FC]; this                                  ; +0xc, 0x308d3c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10, 0x308d40\nCMP             R4, R0                                                 ; +0x14, 0x308d44\nBCS             loc_308D60                                             ; +0x16, 0x308d46\nMOV             R1, R4; unsigned int                                   ; +0x18, 0x308d48\nLDR.W           R0, [R5,#0x1FC]; this                                  ; +0x1a, 0x308d4a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1e, 0x308d4e\nMOV             R1, R7                                                 ; +0x22, 0x308d52\nADDS            R4, #1                                                 ; +0x24, 0x308d54\nLDR             R3, [R0]                                               ; +0x26, 0x308d56\nLDR.W           R3, [R3,#0xA4]                                         ; +0x28, 0x308d58\nBLX             R3                                                     ; +0x2c, 0x308d5c\nB               loc_308D3C                                             ; +0x2e, 0x308d5e\nMOVS            R4, #0                                                 ; +0x30, 0x308d60\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x32, 0x308d62\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x308d66\nCMP             R4, R0                                                 ; +0x3a, 0x308d6a\nBCS             locret_308D86                                          ; +0x3c, 0x308d6c\nMOV             R1, R4; unsigned int                                   ; +0x3e, 0x308d6e\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x40, 0x308d70\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x308d74\nMOV             R1, R6                                                 ; +0x48, 0x308d78\nADDS            R4, #1                                                 ; +0x4a, 0x308d7a\nLDR             R3, [R0]                                               ; +0x4c, 0x308d7c\nLDR.W           R3, [R3,#0xA4]                                         ; +0x4e, 0x308d7e\nBLX             R3                                                     ; +0x52, 0x308d82\nB               loc_308D62                                             ; +0x54, 0x308d84\nPOP             {R3-R7,PC}                                             ; +0x56, 0x308d86", "xrefs": ["CreateGuidelinesLayer::onStop @ 0x308d9a", "CreateGuidelinesLayer::onRecord @ 0x308e08", "CreateGuidelinesLayer::init @ 0x30986a", "FindBPMLayer::init @ 0x309b0e"], "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"}