{"type": "func", "start": 5368986768, "end": 5368986860, "name": "CCLightFlash::removeLights", "pseudocode": "// \n// CCLightFlash::removeLights from 0x140043c90 to 0x140043cec (92 bytes)\n// \n// 2 xrefs:\n// > CCLightFlash::showFlash @ 0x140043bda\n// > <???> @ 0x1406c4590\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 i; // ebx\n  struct cocos2d::CCObject *v3; // rax\n  cocos2d::CCZone *v4; // rdx\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_lightStripArray); ++i )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(a1->m_lightStripArray, i);\n    LOBYTE(v4) = 1;\n    v3->__vftable[7].copyWithZone(v3, v4);\n  }\n}", "assembly": "; \n; CCLightFlash::removeLights from 0x140043c90 to 0x140043cec (92 bytes)\n; \n; 2 xrefs:\n; > CCLightFlash::showFlash @ 0x140043bda\n; > <???> @ 0x1406c4590\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140043c90\npush    rdi                                                            ; +0x5, 0x140043c95\nsub     rsp, 20h                                                       ; +0x6, 0x140043c96\nmov     rdi, rcx                                                       ; +0xa, 0x140043c9a\nxor     ebx, ebx                                                       ; +0xd, 0x140043c9d\nmov     rcx, [rcx+140h]                                                ; +0xf, 0x140043c9f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x140043ca6\ntest    eax, eax                                                       ; +0x1c, 0x140043cac\njz      short loc_140043CE1                                            ; +0x1e, 0x140043cae\nmov     rcx, [rdi+140h]                                                ; +0x20, 0x140043cb0\nmov     edx, ebx                                                       ; +0x27, 0x140043cb7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x29, 0x140043cb9\nmov     dl, 1                                                          ; +0x2f, 0x140043cbf\nmov     rcx, rax                                                       ; +0x31, 0x140043cc1\nmov     r8, [rax]                                                      ; +0x34, 0x140043cc4\ncall    qword ptr [r8+1F8h]                                            ; +0x37, 0x140043cc7\nmov     rcx, [rdi+140h]                                                ; +0x3e, 0x140043cce\ninc     ebx                                                            ; +0x45, 0x140043cd5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x47, 0x140043cd7\ncmp     ebx, eax                                                       ; +0x4d, 0x140043cdd\njb      short loc_140043CB0                                            ; +0x4f, 0x140043cdf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x140043ce1\nadd     rsp, 20h                                                       ; +0x56, 0x140043ce6\npop     rdi                                                            ; +0x5a, 0x140043cea\nretn                                                                   ; +0x5b, 0x140043ceb", "xrefs": ["CCLightFlash::showFlash @ 0x140043bda", "<???> @ 0x1406c4590"], "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"}