{"type": "func", "start": 4295169108, "end": 4295169200, "name": "CCLightFlash::removeLights", "pseudocode": "// \n// CCLightFlash::removeLights from 0x100031454 to 0x1000314b0 (92 bytes)\n// \n// 1 xrefs:\n// > CCLightFlash::showFlash @ 0x100031254\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 __fastcall CCLightFlash::removeLights(CCLightFlash *a1)\n{\n  __int64 v2; // x20\n  __int64 v3; // x0\n\n  if ( (unsigned int)sub_10024A36C(a1->m_lightStripArray) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_10024A388(a1->m_lightStripArray, v2);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 512LL))(v3, 1);\n      v2 = (unsigned int)(v2 + 1);\n    }\n    while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_lightStripArray) );\n  }\n}", "assembly": "; \n; CCLightFlash::removeLights from 0x100031454 to 0x1000314b0 (92 bytes)\n; \n; 1 xrefs:\n; > CCLightFlash::showFlash @ 0x100031254\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100031454\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100031458\nADD             X29, SP, #0x10                                         ; +0x8, 0x10003145c\nMOV             X19, X0                                                ; +0xc, 0x100031460\nLDR             X0, [X0,#0x140]                                        ; +0x10, 0x100031464\nBL              sub_10024A36C                                          ; +0x14, 0x100031468\nCBZ             W0, loc_1000314A4                                      ; +0x18, 0x10003146c\nMOV             W20, #0                                                ; +0x1c, 0x100031470\nLDR             X0, [X19,#0x140]                                       ; +0x20, 0x100031474\nMOV             X1, X20                                                ; +0x24, 0x100031478\nBL              sub_10024A388                                          ; +0x28, 0x10003147c\nLDR             X8, [X0]                                               ; +0x2c, 0x100031480\nLDR             X8, [X8,#0x200]                                        ; +0x30, 0x100031484\nMOV             W1, #1                                                 ; +0x34, 0x100031488\nBLR             X8                                                     ; +0x38, 0x10003148c\nADD             W20, W20, #1                                           ; +0x3c, 0x100031490\nLDR             X0, [X19,#0x140]                                       ; +0x40, 0x100031494\nBL              sub_10024A36C                                          ; +0x44, 0x100031498\nCMP             W20, W0                                                ; +0x48, 0x10003149c\nB.CC            loc_100031474                                          ; +0x4c, 0x1000314a0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x50, 0x1000314a4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x54, 0x1000314a8\nRET                                                                    ; +0x58, 0x1000314ac", "xrefs": ["CCLightFlash::showFlash @ 0x100031254"], "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"}