{"type": "func", "start": 5926656, "end": 5926740, "name": "CCLightFlash::removeLights", "pseudocode": "// \n// CCLightFlash::removeLights from 0x5a6f00 to 0x5a6f54 (84 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x4b6f0\n// > CCLightFlash::showFlash @ 0x5a795c\n// > <???> @ 0x122a6b0\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 CCLightFlash::removeLights(CCLightFlash *a1)\n{\n  unsigned int v2; // w19\n  __int64 v3; // x0\n  bool v4; // cf\n  unsigned int v5; // w1\n\n  v2 = 0;\n  while ( 1 )\n  {\n    v4 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_lightStripArray);\n    v5 = v2++;\n    if ( v4 )\n      break;\n    v3 = cocos2d::CCArray::objectAtIndex(a1->m_lightStripArray, v5);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 512LL))(v3, 1);\n  }\n}", "assembly": "; \n; CCLightFlash::removeLights from 0x5a6f00 to 0x5a6f54 (84 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x4b6f0\n; > CCLightFlash::showFlash @ 0x5a795c\n; > <???> @ 0x122a6b0\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x5a6f00\nMOV             X29, SP                                                ; +0x4, 0x5a6f04\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x5a6f08\nMOV             X20, X0                                                ; +0xc, 0x5a6f0c\nMOV             W19, #0                                                ; +0x10, 0x5a6f10\nB               loc_5A6F30                                             ; +0x14, 0x5a6f14\nLDR             X0, [X20,#0x140]; this                                 ; +0x18, 0x5a6f18\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1c, 0x5a6f1c\nLDR             X2, [X0]                                               ; +0x20, 0x5a6f20\nMOV             W1, #1                                                 ; +0x24, 0x5a6f24\nLDR             X2, [X2,#0x200]                                        ; +0x28, 0x5a6f28\nBLR             X2                                                     ; +0x2c, 0x5a6f2c\nLDR             X0, [X20,#0x140]; this                                 ; +0x30, 0x5a6f30\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x34, 0x5a6f34\nCMP             W19, W0                                                ; +0x38, 0x5a6f38\nMOV             W1, W19; unsigned int                                  ; +0x3c, 0x5a6f3c\nADD             W19, W19, #1                                           ; +0x40, 0x5a6f40\nB.CC            loc_5A6F18                                             ; +0x44, 0x5a6f44\nLDP             X19, X20, [SP,#var_s10]                                ; +0x48, 0x5a6f48\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x4c, 0x5a6f4c\nRET                                                                    ; +0x50, 0x5a6f50", "xrefs": ["<???> @ 0x4b6f0", "CCLightFlash::showFlash @ 0x5a795c", "<???> @ 0x122a6b0"], "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"}