{"type": "func", "start": 7107720, "end": 7107804, "name": "CCLightFlash::removeLights", "pseudocode": "// \n// CCLightFlash::removeLights from 0x6c7488 to 0x6c74dc (84 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x6a0f0\n// > CCLightFlash::showFlash @ 0x6c7a78\n// > <???> @ 0x15429c8\n// \n// This function is hookable on this platform (idp: arm, 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 12:51:21 +0000\n// \n\n__int64 __fastcall CCLightFlash::removeLights(cocos2d::CCArray **this)\n{\n  unsigned int v2; // w19\n  __int64 v3; // x0\n  __int64 result; // x0\n  bool v5; // cf\n  unsigned int v6; // w1\n\n  v2 = 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(*(this + 40));\n    v5 = v2 >= (unsigned int)result;\n    v6 = v2++;\n    if ( v5 )\n      break;\n    v3 = cocos2d::CCArray::objectAtIndex(*(this + 40), v6);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 528LL))(v3, 1);\n  }\n  return result;\n}", "assembly": "; \n; CCLightFlash::removeLights from 0x6c7488 to 0x6c74dc (84 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x6a0f0\n; > CCLightFlash::showFlash @ 0x6c7a78\n; > <???> @ 0x15429c8\n; \n; This function is hookable on this platform (idp: arm, 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 12:51:21 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x6c7488\nMOV             X29, SP                                                ; +0x4, 0x6c748c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x6c7490\nMOV             X20, X0                                                ; +0xc, 0x6c7494\nMOV             W19, #0                                                ; +0x10, 0x6c7498\nB               loc_6C74B8                                             ; +0x14, 0x6c749c\nLDR             X0, [X20,#0x140]; this                                 ; +0x18, 0x6c74a0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1c, 0x6c74a4\nLDR             X2, [X0]                                               ; +0x20, 0x6c74a8\nMOV             W1, #1                                                 ; +0x24, 0x6c74ac\nLDR             X2, [X2,#0x210]                                        ; +0x28, 0x6c74b0\nBLR             X2                                                     ; +0x2c, 0x6c74b4\nLDR             X0, [X20,#0x140]; this                                 ; +0x30, 0x6c74b8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x34, 0x6c74bc\nCMP             W19, W0                                                ; +0x38, 0x6c74c0\nMOV             W1, W19; unsigned int                                  ; +0x3c, 0x6c74c4\nADD             W19, W19, #1                                           ; +0x40, 0x6c74c8\nB.CC            loc_6C74A0                                             ; +0x44, 0x6c74cc\nLDP             X19, X20, [SP,#var_s10]                                ; +0x48, 0x6c74d0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x4c, 0x6c74d4\nRET                                                                    ; +0x50, 0x6c74d8", "xrefs": ["<???> @ 0x6a0f0", "CCLightFlash::showFlash @ 0x6c7a78", "<???> @ 0x15429c8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}