{"type": "func", "start": 5369002256, "end": 5369002351, "name": "CCLightFlash::removeLights", "pseudocode": "// \n// CCLightFlash::removeLights from 0x140047910 to 0x14004796f (95 bytes)\n// \n// 2 xrefs:\n// > CCLightFlash::showFlash @ 0x14004785c\n// > <???> @ 0x14090faa0\n// \n// This function is hookable on this platform (idp: pc, 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 11:25:31 +0000\n// \n\nunsigned int __fastcall CCLightFlash::removeLights(__int64 a1)\n{\n  unsigned int v2; // ebx\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v4; // rax\n  __int64 v5; // rdx\n\n  v2 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 320));\n  if ( result )\n  {\n    do\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 320), v2);\n      LOBYTE(v5) = 1;\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 520LL))(v4, v5);\n      ++v2;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 320));\n    }\n    while ( v2 < result );\n  }\n  return result;\n}", "assembly": "; \n; CCLightFlash::removeLights from 0x140047910 to 0x14004796f (95 bytes)\n; \n; 2 xrefs:\n; > CCLightFlash::showFlash @ 0x14004785c\n; > <???> @ 0x14090faa0\n; \n; This function is hookable on this platform (idp: pc, 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 11:25:31 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140047910\npush    rdi                                                            ; +0x5, 0x140047915\nsub     rsp, 20h                                                       ; +0x6, 0x140047916\nmov     rdi, rcx                                                       ; +0xa, 0x14004791a\nxor     ebx, ebx                                                       ; +0xd, 0x14004791d\nmov     rcx, [rcx+140h]                                                ; +0xf, 0x14004791f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x140047926\ntest    eax, eax                                                       ; +0x1c, 0x14004792c\njz      short loc_140047964                                            ; +0x1e, 0x14004792e\nmov     rcx, [rdi+140h]                                                ; +0x20, 0x140047930\nmov     edx, ebx                                                       ; +0x27, 0x140047937\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x29, 0x140047939\nmov     dl, 1                                                          ; +0x2f, 0x14004793f\nmov     rcx, [rax]                                                     ; +0x31, 0x140047941\nmov     r8, [rcx+208h]                                                 ; +0x34, 0x140047944\nmov     rcx, rax                                                       ; +0x3b, 0x14004794b\ncall    r8                                                             ; +0x3e, 0x14004794e\nmov     rcx, [rdi+140h]                                                ; +0x41, 0x140047951\ninc     ebx                                                            ; +0x48, 0x140047958\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4a, 0x14004795a\ncmp     ebx, eax                                                       ; +0x50, 0x140047960\njb      short loc_140047930                                            ; +0x52, 0x140047962\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x54, 0x140047964\nadd     rsp, 20h                                                       ; +0x59, 0x140047969\npop     rdi                                                            ; +0x5d, 0x14004796d\nretn                                                                   ; +0x5e, 0x14004796e", "xrefs": ["CCLightFlash::showFlash @ 0x14004785c", "<???> @ 0x14090faa0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}