{"type": "func", "start": 4297583232, "end": 4297583600, "name": "GJBaseGameLayer::lightningFlash", "pseudocode": "// \n// GJBaseGameLayer::lightningFlash from 0x10027ea80 to 0x10027ebf0 (368 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::teleportPlayer @ 0x10027e7e4\n// > GJBaseGameLayer::checkpointActivated @ 0x1002a507c\n// > GJBaseGameLayer::lightningFlash_1 @ 0x1002a5164\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 11:01:54 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::lightningFlash(\n        __int64 a1,\n        float32x2_t *a2,\n        float32x2_t *a3,\n        int a4,\n        int a5,\n        int a6,\n        float a7,\n        float a8,\n        float a9)\n{\n  __int64 v16; // x0\n  __int64 v17; // x23\n  float *v18; // x21\n  __int64 v19; // x1\n  __int64 v20; // x2\n  __int64 v21; // x3\n  __int64 v22; // x4\n  __int64 v23; // x5\n  __int64 v24; // x6\n  __int64 v25; // x7\n  __int64 v26; // x0\n  int v27; // w20\n  __int64 v28; // x1\n  __int64 v29; // x2\n  __int64 v30; // x3\n  __int64 v31; // x4\n  __int64 v32; // x5\n  __int64 v33; // x6\n  __int64 v34; // x7\n  char v35; // [xsp+0h] [xbp-90h]\n  __int64 v36; // [xsp+24h] [xbp-6Ch] BYREF\n  __int64 v37; // [xsp+2Ch] [xbp-64h] BYREF\n  float32x2_t v38; // [xsp+34h] [xbp-5Ch] BYREF\n  __int16 v39; // [xsp+3Ch] [xbp-54h] BYREF\n  char v40; // [xsp+3Eh] [xbp-52h]\n\n  v39 = a4;\n  v40 = BYTE2(a4);\n  sub_10002632C(a3, a2, &v38);\n  if ( (*(_BYTE *)(GameManager::sharedState(v16) + 925) & 1) == 0 )\n  {\n    sub_1000262F4(&v37, (double *)&v38);\n    sub_1000262F4(&v36, (double *)&qword_1009F5820);\n    v17 = cocos2d::CCLightning::lightningWithStrikePoint(&v37, &v36, a8);\n    (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v17 + 184LL))(v17, a2);\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v17 + 976LL))(v17, &v39);\n    *(float *)(v17 + 368) = a7;\n    *(_WORD *)(v17 + 372) = 257;\n    *(float *)(v17 + 380) = a9;\n    if ( a5 )\n      *(_DWORD *)(v17 + 348) = a5;\n    (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v17, 0);\n  }\n  if ( a6 )\n  {\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 12552) + 344LL))(*(_QWORD *)(a1 + 12552), 1);\n    v18 = cocos2d::CCDelayTime::create(0.08);\n    if ( a5 )\n    {\n      v35 = (unsigned __int8)cocos2d::CCHide::create();\n      v26 = sub_10021D420((__int64)v18, v19, v20, v21, v22, v23, v24, v25, v35);\n    }\n    else\n    {\n      v27 = (unsigned __int8)cocos2d::CCBlink::create(1, 0.12);\n      cocos2d::CCHide::create();\n      v26 = sub_10021D420((__int64)v18, v28, v29, v30, v31, v32, v33, v34, v27);\n    }\n    cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 12552), v26);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::lightningFlash from 0x10027ea80 to 0x10027ebf0 (368 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::teleportPlayer @ 0x10027e7e4\n; > GJBaseGameLayer::checkpointActivated @ 0x1002a507c\n; > GJBaseGameLayer::lightningFlash_1 @ 0x1002a5164\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 11:01:54 +0000\n; \nSUB             SP, SP, #0xA0                                          ; +0x0, 0x10027ea80\nSTP             D11, D10, [SP,#0x90+var_50]                            ; +0x4, 0x10027ea84\nSTP             D9, D8, [SP,#0x90+var_40]                              ; +0x8, 0x10027ea88\nSTP             X24, X23, [SP,#0x90+var_30]                            ; +0xc, 0x10027ea8c\nSTP             X22, X21, [SP,#0x90+var_20]                            ; +0x10, 0x10027ea90\nSTP             X20, X19, [SP,#0x90+var_10]                            ; +0x14, 0x10027ea94\nSTP             X29, X30, [SP,#0x90+var_s0]                            ; +0x18, 0x10027ea98\nADD             X29, SP, #0x90                                         ; +0x1c, 0x10027ea9c\nFMOV            S8, S2                                                 ; +0x20, 0x10027eaa0\nMOV             X21, X5                                                ; +0x24, 0x10027eaa4\nMOV             X20, X4                                                ; +0x28, 0x10027eaa8\nFMOV            S10, S1                                                ; +0x2c, 0x10027eaac\nFMOV            S9, S0                                                 ; +0x30, 0x10027eab0\nMOV             X22, X1                                                ; +0x34, 0x10027eab4\nMOV             X19, X0                                                ; +0x38, 0x10027eab8\nSTRH            W3, [SP,#0x90+var_54]                                  ; +0x3c, 0x10027eabc\nUBFX            X8, X3, #0x10, #0x10                                   ; +0x40, 0x10027eac0\nSTRB            W8, [SP,#0x90+var_52]                                  ; +0x44, 0x10027eac4\nADD             X8, SP, #0x90+var_5C                                   ; +0x48, 0x10027eac8\nMOV             X0, X2                                                 ; +0x4c, 0x10027eacc\nBL              sub_10002632C                                          ; +0x50, 0x10027ead0\nBL              GameManager__sharedState                               ; +0x54, 0x10027ead4\nLDRB            W8, [X0,#0x39D]                                        ; +0x58, 0x10027ead8\nTBNZ            W8, #0, loc_10027EB64                                  ; +0x5c, 0x10027eadc\nADD             X0, SP, #0x90+var_64                                   ; +0x60, 0x10027eae0\nADD             X1, SP, #0x90+var_5C                                   ; +0x64, 0x10027eae4\nBL              sub_1000262F4                                          ; +0x68, 0x10027eae8\nADRL            X1, qword_1009F5820                                    ; +0x6c, 0x10027eaec\nADD             X0, SP, #0x90+var_6C                                   ; +0x74, 0x10027eaf4\nBL              sub_1000262F4                                          ; +0x78, 0x10027eaf8\nADD             X0, SP, #0x90+var_64                                   ; +0x7c, 0x10027eafc\nADD             X1, SP, #0x90+var_6C                                   ; +0x80, 0x10027eb00\nFMOV            S0, S10                                                ; +0x84, 0x10027eb04\nBL              cocos2d__CCLightning__lightningWithStrikePoint         ; +0x88, 0x10027eb08\nMOV             X23, X0                                                ; +0x8c, 0x10027eb0c\nLDR             X8, [X0]                                               ; +0x90, 0x10027eb10\nLDR             X8, [X8,#0xB8]                                         ; +0x94, 0x10027eb14\nMOV             X1, X22                                                ; +0x98, 0x10027eb18\nBLR             X8                                                     ; +0x9c, 0x10027eb1c\nLDR             X8, [X23]                                              ; +0xa0, 0x10027eb20\nLDR             X8, [X8,#0x3D0]                                        ; +0xa4, 0x10027eb24\nADD             X1, SP, #0x90+var_54                                   ; +0xa8, 0x10027eb28\nMOV             X0, X23                                                ; +0xac, 0x10027eb2c\nBLR             X8                                                     ; +0xb0, 0x10027eb30\nSTR             S9, [X23,#0x170]                                       ; +0xb4, 0x10027eb34\nMOV             W8, #0x101                                             ; +0xb8, 0x10027eb38\nSTRH            W8, [X23,#0x174]                                       ; +0xbc, 0x10027eb3c\nSTR             S8, [X23,#0x17C]                                       ; +0xc0, 0x10027eb40\nCBZ             W20, loc_10027EB4C                                     ; +0xc4, 0x10027eb44\nSTR             W20, [X23,#0x15C]                                      ; +0xc8, 0x10027eb48\nLDR             X0, [X19,#0xF50]                                       ; +0xcc, 0x10027eb4c\nLDR             X8, [X0]                                               ; +0xd0, 0x10027eb50\nLDR             X8, [X8,#0x1D0]                                        ; +0xd4, 0x10027eb54\nMOV             X1, X23                                                ; +0xd8, 0x10027eb58\nMOV             W2, #0                                                 ; +0xdc, 0x10027eb5c\nBLR             X8                                                     ; +0xe0, 0x10027eb60\nCBZ             W21, loc_10027EBD0                                     ; +0xe4, 0x10027eb64\nLDR             X0, [X19,#0x3108]                                      ; +0xe8, 0x10027eb68\nLDR             X8, [X0]                                               ; +0xec, 0x10027eb6c\nLDR             X8, [X8,#0x158]                                        ; +0xf0, 0x10027eb70\nMOV             W1, #1                                                 ; +0xf4, 0x10027eb74\nBLR             X8                                                     ; +0xf8, 0x10027eb78\nADRP            X8, #dword_10075D1AC@PAGE                              ; +0xfc, 0x10027eb7c\nLDR             S0, [X8,#dword_10075D1AC@PAGEOFF]                      ; +0x100, 0x10027eb80\nBL              cocos2d__CCDelayTime__create                           ; +0x104, 0x10027eb84\nMOV             X21, X0                                                ; +0x108, 0x10027eb88\nCBZ             W20, loc_10027EB9C                                     ; +0x10c, 0x10027eb8c\nBL              cocos2d__CCHide__create                                ; +0x110, 0x10027eb90\nSTP             X0, XZR, [SP,#0x90+var_90]                             ; +0x114, 0x10027eb94\nB               loc_10027EBBC                                          ; +0x118, 0x10027eb98\nADRP            X8, #dword_10075D1B0@PAGE                              ; +0x11c, 0x10027eb9c\nLDR             S0, [X8,#dword_10075D1B0@PAGEOFF]                      ; +0x120, 0x10027eba0\nMOV             W0, #1                                                 ; +0x124, 0x10027eba4\nBL              cocos2d__CCBlink__create                               ; +0x128, 0x10027eba8\nMOV             X20, X0                                                ; +0x12c, 0x10027ebac\nBL              cocos2d__CCHide__create                                ; +0x130, 0x10027ebb0\nSTP             X0, XZR, [SP,#0x90+var_88]                             ; +0x134, 0x10027ebb4\nSTR             X20, [SP,#0x90+var_90]                                 ; +0x138, 0x10027ebb8\nMOV             X0, X21                                                ; +0x13c, 0x10027ebbc\nBL              sub_10021D420                                          ; +0x140, 0x10027ebc0\nMOV             X1, X0                                                 ; +0x144, 0x10027ebc4\nLDR             X0, [X19,#0x3108]                                      ; +0x148, 0x10027ebc8\nBL              cocos2d__CCNode__runAction                             ; +0x14c, 0x10027ebcc\nLDP             X29, X30, [SP,#0x90+var_s0]                            ; +0x150, 0x10027ebd0\nLDP             X20, X19, [SP,#0x90+var_10]                            ; +0x154, 0x10027ebd4\nLDP             X22, X21, [SP,#0x90+var_20]                            ; +0x158, 0x10027ebd8\nLDP             X24, X23, [SP,#0x90+var_30]                            ; +0x15c, 0x10027ebdc\nLDP             D9, D8, [SP,#0x90+var_40]                              ; +0x160, 0x10027ebe0\nLDP             D11, D10, [SP,#0x90+var_50]                            ; +0x164, 0x10027ebe4\nADD             SP, SP, #0xA0                                          ; +0x168, 0x10027ebe8\nRET                                                                    ; +0x16c, 0x10027ebec", "xrefs": ["GJBaseGameLayer::teleportPlayer @ 0x10027e7e4", "GJBaseGameLayer::checkpointActivated @ 0x1002a507c", "GJBaseGameLayer::lightningFlash_1 @ 0x1002a5164"], "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"}