{"type": "func", "start": 5372186672, "end": 5372187152, "name": "GJBaseGameLayer::lightningFlash", "pseudocode": "// \n// GJBaseGameLayer::lightningFlash from 0x140351030 to 0x140351210 (480 bytes)\n// \n// 2 xrefs:\n// > PlayerObject::togglePlayerScale @ 0x1404ff263\n// > <???> @ 0x1409202e8\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:30:47 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCAction *__fastcall GJBaseGameLayer::lightningFlash(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        int a5,\n        int a6,\n        int a7,\n        char a8,\n        int a9)\n{\n  __int64 v12; // rdx\n  struct cocos2d::CCAction *result; // rax\n  const struct cocos2d::CCPoint *v14; // rax\n  const struct cocos2d::CCPoint *v15; // rbx\n  const struct cocos2d::CCPoint *v16; // rax\n  cocos2d::CCObject *v17; // rbx\n  __int64 v18; // rax\n  __int64 v19; // rdi\n  struct cocos2d::CCBlink *v20; // rbx\n  struct cocos2d::CCFiniteTimeAction *v21; // rax\n  struct cocos2d::CCAction *v22; // rax\n  __int64 v23; // rbx\n  struct cocos2d::CCFiniteTimeAction *v24; // rax\n  _BYTE v25[8]; // [rsp+20h] [rbp-28h] BYREF\n  void *v26; // [rsp+28h] [rbp-20h] BYREF\n  _BYTE v27[24]; // [rsp+30h] [rbp-18h] BYREF\n\n  cocos2d::CCPoint::operator-(a3, v25, a2);\n  result = (struct cocos2d::CCAction *)qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v26 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v26);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    result = (struct cocos2d::CCAction *)qword_14090BFD0;\n  }\n  if ( !*((_BYTE *)result + 957) )\n  {\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (const struct cocos2d::CCPoint *)&dword_14090AA70);\n    v15 = v14;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, (const struct cocos2d::CCPoint *)v25);\n    v17 = cocos2d::CCLightning::lightningWithStrikePoint(v16, v15);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v17 + 184LL))(v17, a2);\n    (**((void (__fastcall ***)(__int64, __int64))v17 + 40))((__int64)v17 + 320, a4);\n    *((_DWORD *)v17 + 92) = a5;\n    *((_WORD *)v17 + 186) = 257;\n    *((_DWORD *)v17 + 95) = a9;\n    if ( a7 )\n      *((_DWORD *)v17 + 87) = a7;\n    result = (struct cocos2d::CCAction *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a1 + 4296) + 456LL))(\n                                           *(_QWORD *)(a1 + 4296),\n                                           v17,\n                                           0);\n  }\n  if ( a8 )\n  {\n    LOBYTE(v12) = 1;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 13032) + 336LL))(*(_QWORD *)(a1 + 13032), v12);\n    v18 = cocos2d::CCHide::create();\n    if ( a7 )\n    {\n      v23 = v18;\n      v24 = cocos2d::CCDelayTime::create(0.079999998);\n      v22 = cocos2d::CCSequence::create(v24, v23, 0);\n    }\n    else\n    {\n      v19 = v18;\n      v20 = cocos2d::CCBlink::create(0.12, 1u);\n      v21 = cocos2d::CCDelayTime::create(0.079999998);\n      v22 = cocos2d::CCSequence::create(v21, v20, v19, 0);\n    }\n    return cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 13032), v22);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::lightningFlash from 0x140351030 to 0x140351210 (480 bytes)\n; \n; 2 xrefs:\n; > PlayerObject::togglePlayerScale @ 0x1404ff263\n; > <???> @ 0x1409202e8\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:30:47 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140351030\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140351035\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14035103a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14035103f\npush    r14                                                            ; +0x14, 0x140351044\nsub     rsp, 40h                                                       ; +0x16, 0x140351046\nmov     r14, r9                                                        ; +0x1a, 0x14035104a\nmov     rax, r8                                                        ; +0x1d, 0x14035104d\nmov     rbp, rdx                                                       ; +0x20, 0x140351050\nmov     rsi, rcx                                                       ; +0x23, 0x140351053\nmov     r8, rdx                                                        ; +0x26, 0x140351056\nlea     rdx, [rsp+48h+var_28]                                          ; +0x29, 0x140351059\nmov     rcx, rax                                                       ; +0x2e, 0x14035105e\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x31, 0x140351061\nmov     rax, cs:qword_14090BFD0                                        ; +0x37, 0x140351067\ntest    rax, rax                                                       ; +0x3e, 0x14035106e\njnz     short loc_1403510A5                                            ; +0x41, 0x140351071\nmov     ecx, 6E8h; Size                                                ; +0x43, 0x140351073\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x48, 0x140351078\nmov     [rsp+48h+var_20], rax                                          ; +0x4d, 0x14035107d\nmov     rcx, rax                                                       ; +0x52, 0x140351082\ncall    GameManager__GameManager                                       ; +0x55, 0x140351085\nnop                                                                    ; +0x5a, 0x14035108a\nmov     cs:qword_14090BFD0, rax                                        ; +0x5b, 0x14035108b\nmov     rcx, [rax]                                                     ; +0x62, 0x140351092\nmov     rdx, [rcx+48h]                                                 ; +0x65, 0x140351095\nmov     rcx, rax                                                       ; +0x69, 0x140351099\ncall    rdx                                                            ; +0x6c, 0x14035109c\nmov     rax, cs:qword_14090BFD0                                        ; +0x6e, 0x14035109e\nmov     edi, [rsp+48h+arg_30]                                          ; +0x75, 0x1403510a5\ncmp     byte ptr [rax+3BDh], 0                                         ; +0x7c, 0x1403510ac\njnz     loc_140351160                                                  ; +0x83, 0x1403510b3\nlea     rdx, dword_14090AA70                                           ; +0x89, 0x1403510b9\nlea     rcx, [rsp+48h+var_20]                                          ; +0x90, 0x1403510c0\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x95, 0x1403510c5\nmov     rbx, rax                                                       ; +0x9b, 0x1403510cb\nlea     rdx, [rsp+48h+var_28]                                          ; +0x9e, 0x1403510ce\nlea     rcx, [rsp+48h+var_18]                                          ; +0xa3, 0x1403510d3\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xa8, 0x1403510d8\nmov     rcx, rax                                                       ; +0xae, 0x1403510de\nmovss   xmm2, [rsp+48h+arg_28]                                         ; +0xb1, 0x1403510e1\nmov     rdx, rbx                                                       ; +0xb7, 0x1403510e7\ncall    cocos2d__CCLightning__lightningWithStrikePoint                 ; +0xba, 0x1403510ea\nmov     rbx, rax                                                       ; +0xbf, 0x1403510ef\nmov     rcx, [rax]                                                     ; +0xc2, 0x1403510f2\nmov     r8, [rcx+0B8h]                                                 ; +0xc5, 0x1403510f5\nmov     rdx, rbp                                                       ; +0xcc, 0x1403510fc\nmov     rcx, rax                                                       ; +0xcf, 0x1403510ff\ncall    r8                                                             ; +0xd2, 0x140351102\nlea     rcx, [rbx+140h]                                                ; +0xd5, 0x140351105\nmov     rdx, [rcx]                                                     ; +0xdc, 0x14035110c\nmov     r8, [rdx]                                                      ; +0xdf, 0x14035110f\nmov     rdx, r14                                                       ; +0xe2, 0x140351112\ncall    r8                                                             ; +0xe5, 0x140351115\nmovss   xmm0, [rsp+48h+arg_20]                                         ; +0xe8, 0x140351118\nmovss   dword ptr [rbx+170h], xmm0                                     ; +0xee, 0x14035111e\nmov     word ptr [rbx+174h], 101h                                      ; +0xf6, 0x140351126\nmovss   xmm0, [rsp+48h+arg_40]                                         ; +0xff, 0x14035112f\nmovss   dword ptr [rbx+17Ch], xmm0                                     ; +0x108, 0x140351138\ntest    edi, edi                                                       ; +0x110, 0x140351140\njz      short loc_14035114A                                            ; +0x112, 0x140351142\nmov     [rbx+15Ch], edi                                                ; +0x114, 0x140351144\nmov     rcx, [rsi+10C8h]                                               ; +0x11a, 0x14035114a\nmov     rax, [rcx]                                                     ; +0x121, 0x140351151\nxor     r8d, r8d                                                       ; +0x124, 0x140351154\nmov     rdx, rbx                                                       ; +0x127, 0x140351157\ncall    qword ptr [rax+1C8h]                                           ; +0x12a, 0x14035115a\ncmp     [rsp+48h+arg_38], 0                                            ; +0x130, 0x140351160\njz      loc_1403511F5                                                  ; +0x138, 0x140351168\nmov     rcx, [rsi+32E8h]                                               ; +0x13e, 0x14035116e\nmov     dl, 1                                                          ; +0x145, 0x140351175\nmov     rax, [rcx]                                                     ; +0x147, 0x140351177\ncall    qword ptr [rax+150h]                                           ; +0x14a, 0x14035117a\ncall    cs:?create@CCHide@cocos2d@@SAPEAV12@XZ; cocos2d::CCHide::create(void) ; +0x150, 0x140351180\ntest    edi, edi                                                       ; +0x156, 0x140351186\njnz     short loc_1403511C5                                            ; +0x158, 0x140351188\nmov     rdi, rax                                                       ; +0x15a, 0x14035118a\nmov     edx, 1                                                         ; +0x15d, 0x14035118d\nmovss   xmm0, cs:dword_140834E18                                       ; +0x162, 0x140351192\ncall    cs:?create@CCBlink@cocos2d@@SAPEAV12@MI@Z; cocos2d::CCBlink::create(float,uint) ; +0x16a, 0x14035119a\nmov     rbx, rax                                                       ; +0x170, 0x1403511a0\nmovss   xmm0, cs:dword_140834DF4                                       ; +0x173, 0x1403511a3\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x17b, 0x1403511ab\nmov     rcx, rax                                                       ; +0x181, 0x1403511b1\nxor     r9d, r9d                                                       ; +0x184, 0x1403511b4\nmov     r8, rdi                                                        ; +0x187, 0x1403511b7\nmov     rdx, rbx                                                       ; +0x18a, 0x1403511ba\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x18d, 0x1403511bd\njmp     short loc_1403511E5                                            ; +0x193, 0x1403511c3\nmov     rbx, rax                                                       ; +0x195, 0x1403511c5\nmovss   xmm0, cs:dword_140834DF4                                       ; +0x198, 0x1403511c8\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x1a0, 0x1403511d0\nmov     rcx, rax                                                       ; +0x1a6, 0x1403511d6\nxor     r8d, r8d                                                       ; +0x1a9, 0x1403511d9\nmov     rdx, rbx                                                       ; +0x1ac, 0x1403511dc\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x1af, 0x1403511df\nmov     rdx, rax                                                       ; +0x1b5, 0x1403511e5\nmov     rcx, [rsi+32E8h]                                               ; +0x1b8, 0x1403511e8\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1bf, 0x1403511ef\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x1c5, 0x1403511f5\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x1ca, 0x1403511fa\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x1cf, 0x1403511ff\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x1d4, 0x140351204\nadd     rsp, 40h                                                       ; +0x1d9, 0x140351209\npop     r14                                                            ; +0x1dd, 0x14035120d\nretn                                                                   ; +0x1df, 0x14035120f", "xrefs": ["PlayerObject::togglePlayerScale @ 0x1404ff263", "<???> @ 0x1409202e8"], "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"}