{"type": "func", "start": 4160364, "end": 4160452, "name": "CreateGuidelinesLayer::toggleItems", "pseudocode": "// \n// CreateGuidelinesLayer::toggleItems from 0x3f7b6c to 0x3f7bc4 (88 bytes)\n// \n// 4 xrefs:\n// > CreateGuidelinesLayer::onStop @ 0x3f7bd6\n// > CreateGuidelinesLayer::init @ 0x3f8b62\n// > FindBPMLayer::init @ 0x3f8d5e\n// > CreateGuidelinesLayer::onRecord @ 0x3f8ea2\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:18 +0000\n// \n\nunsigned int __fastcall CreateGuidelinesLayer::toggleItems(cocos2d::CCArray **this, int a2)\n{\n  int v2; // r7\n  unsigned int i; // r4\n  int v6; // r0\n  unsigned int j; // r4\n  unsigned int result; // r0\n  int v9; // r0\n\n  v2 = a2 ^ 1;\n  for ( i = 0; i < cocos2d::CCArray::count(*(this + 133)); ++i )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(*(this + 133), i);\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, v2);\n  }\n  for ( j = 0; ; ++j )\n  {\n    result = cocos2d::CCArray::count(*(this + 134));\n    if ( j >= result )\n      break;\n    v9 = cocos2d::CCArray::objectAtIndex(*(this + 134), j);\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 172))(v9, a2);\n  }\n  return result;\n}", "assembly": "; \n; CreateGuidelinesLayer::toggleItems from 0x3f7b6c to 0x3f7bc4 (88 bytes)\n; \n; 4 xrefs:\n; > CreateGuidelinesLayer::onStop @ 0x3f7bd6\n; > CreateGuidelinesLayer::init @ 0x3f8b62\n; > FindBPMLayer::init @ 0x3f8d5e\n; > CreateGuidelinesLayer::onRecord @ 0x3f8ea2\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:18 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x3f7b6c\nEOR.W           R7, R1, #1                                             ; +0x2, 0x3f7b6e\nMOV             R5, R0                                                 ; +0x6, 0x3f7b72\nMOV             R6, R1                                                 ; +0x8, 0x3f7b74\nMOVS            R4, #0                                                 ; +0xa, 0x3f7b76\nLDR.W           R0, [R5,#0x214]; this                                  ; +0xc, 0x3f7b78\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x10, 0x3f7b7c\nCMP             R4, R0                                                 ; +0x14, 0x3f7b80\nBCS             loc_3F7B9C                                             ; +0x16, 0x3f7b82\nMOV             R1, R4; unsigned int                                   ; +0x18, 0x3f7b84\nLDR.W           R0, [R5,#0x214]; this                                  ; +0x1a, 0x3f7b86\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1e, 0x3f7b8a\nMOV             R1, R7                                                 ; +0x22, 0x3f7b8e\nADDS            R4, #1                                                 ; +0x24, 0x3f7b90\nLDR             R3, [R0]                                               ; +0x26, 0x3f7b92\nLDR.W           R3, [R3,#0xAC]                                         ; +0x28, 0x3f7b94\nBLX             R3                                                     ; +0x2c, 0x3f7b98\nB               loc_3F7B78                                             ; +0x2e, 0x3f7b9a\nMOVS            R4, #0                                                 ; +0x30, 0x3f7b9c\nLDR.W           R0, [R5,#0x218]; this                                  ; +0x32, 0x3f7b9e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x3f7ba2\nCMP             R4, R0                                                 ; +0x3a, 0x3f7ba6\nBCS             locret_3F7BC2                                          ; +0x3c, 0x3f7ba8\nMOV             R1, R4; unsigned int                                   ; +0x3e, 0x3f7baa\nLDR.W           R0, [R5,#0x218]; this                                  ; +0x40, 0x3f7bac\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x3f7bb0\nMOV             R1, R6                                                 ; +0x48, 0x3f7bb4\nADDS            R4, #1                                                 ; +0x4a, 0x3f7bb6\nLDR             R3, [R0]                                               ; +0x4c, 0x3f7bb8\nLDR.W           R3, [R3,#0xAC]                                         ; +0x4e, 0x3f7bba\nBLX             R3                                                     ; +0x52, 0x3f7bbe\nB               loc_3F7B9E                                             ; +0x54, 0x3f7bc0\nPOP             {R3-R7,PC}                                             ; +0x56, 0x3f7bc2", "xrefs": ["CreateGuidelinesLayer::onStop @ 0x3f7bd6", "CreateGuidelinesLayer::init @ 0x3f8b62", "FindBPMLayer::init @ 0x3f8d5e", "CreateGuidelinesLayer::onRecord @ 0x3f8ea2"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}