{"type": "func", "start": 4296289424, "end": 4296289729, "name": "GJBaseGameLayer::checkpointActivated", "pseudocode": "// \n// GJBaseGameLayer::checkpointActivated from 0x100142c90 to 0x100142dc1 (305 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::checkpointActivated @ 0x100088e45\n// > LevelEditorLayer::checkpointActivated @ 0x1000c72b4\n// > <???> @ 0x100ac51b8\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 12:24:56 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::checkpointActivated(__int64 a1, _BYTE *a2)\n{\n  _BYTE *v2; // r15\n  __int64 v3; // rsi\n  float v4; // xmm0_4\n  unsigned __int16 *v5; // rax\n  int v6; // [rsp-64h] [rbp-64h] BYREF\n  int v7; // [rsp-5Ch] [rbp-5Ch] BYREF\n  int v8; // [rsp-54h] [rbp-54h] BYREF\n  float v9; // [rsp-4Ch] [rbp-4Ch] BYREF\n  float v10[2]; // [rsp-44h] [rbp-44h] BYREF\n  float v11; // [rsp-3Ch] [rbp-3Ch]\n  float v12; // [rsp-38h] [rbp-38h]\n  float v13; // [rsp-34h] [rbp-34h]\n\n  if ( !a2[1044] )\n  {\n    v2 = a2;\n    (*(void (__fastcall **)(float *))(*(_QWORD *)a2 + 1360LL))(&v9);\n    v3 = cocos2d::CCDirector::sharedDirector(&v9, a2);\n    cocos2d::CCDirector::getWinSize(v10, v3);\n    v11 = sub_1001DC3D0(v9 + -50.0, v9 + 100.0);\n    v12 = *(float *)(a1 + 996);\n    v13 = v10[1] + 50.0;\n    v4 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3920) + 168LL))(*(_QWORD *)(a1 + 3920));\n    sub_100278250(&v6, v11, (float)(v13 / v4) + v12);\n    v5 = (unsigned __int16 *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v2 + 111) + 944LL))(*((_QWORD *)v2 + 111));\n    LODWORD(v2) = *v5 | (*((unsigned __int8 *)v5 + 2) << 16);\n    sub_1002782D0(&v7, &v6);\n    sub_1002782D0(&v8, &v9);\n    GJBaseGameLayer::lightningFlash(a1, (__int64)&v7, (__int64)&v8, (int)v2, 0, 0, 5.0, 0.5, 1.0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkpointActivated from 0x100142c90 to 0x100142dc1 (305 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::checkpointActivated @ 0x100088e45\n; > LevelEditorLayer::checkpointActivated @ 0x1000c72b4\n; > <???> @ 0x100ac51b8\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 12:24:56 +0000\n; \ncmp     byte ptr [rsi+414h], 0                                         ; +0x0, 0x100142c90\njnz     locret_100142DC0                                               ; +0x7, 0x100142c97\npush    rbp                                                            ; +0xd, 0x100142c9d\nmov     rbp, rsp                                                       ; +0xe, 0x100142c9e\npush    r15                                                            ; +0x11, 0x100142ca1\npush    r14                                                            ; +0x13, 0x100142ca3\npush    r13                                                            ; +0x15, 0x100142ca5\npush    r12                                                            ; +0x17, 0x100142ca7\npush    rbx                                                            ; +0x19, 0x100142ca9\nsub     rsp, 38h                                                       ; +0x1a, 0x100142caa\nmov     rax, [rsi]                                                     ; +0x1e, 0x100142cae\nlea     r14, [rbp-44h]                                                 ; +0x21, 0x100142cb1\nmov     rbx, rdi                                                       ; +0x25, 0x100142cb5\nmov     rdi, r14                                                       ; +0x28, 0x100142cb8\nmov     r15, rsi                                                       ; +0x2b, 0x100142cbb\ncall    qword ptr [rax+550h]                                           ; +0x2e, 0x100142cbe\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x34, 0x100142cc4\nlea     rdi, [rbp-3Ch]                                                 ; +0x39, 0x100142cc9\nmov     rsi, rax                                                       ; +0x3d, 0x100142ccd\ncall    cocos2d__CCDirector__getWinSize                                ; +0x40, 0x100142cd0\nmovss   xmm1, dword ptr [rbp-44h]                                      ; +0x45, 0x100142cd5\nmovss   xmm0, cs:dword_100A037F0                                       ; +0x4a, 0x100142cda\naddss   xmm0, xmm1                                                     ; +0x52, 0x100142ce2\naddss   xmm1, cs:dword_100A03584                                       ; +0x56, 0x100142ce6\ncall    sub_1001DC3D0                                                  ; +0x5e, 0x100142cee\nmovss   dword ptr [rbp-34h], xmm0                                      ; +0x63, 0x100142cf3\nmovss   xmm0, dword ptr [rbx+3E4h]                                     ; +0x68, 0x100142cf8\nmovss   dword ptr [rbp-30h], xmm0                                      ; +0x70, 0x100142d00\nmovss   xmm0, dword ptr [rbp-38h]                                      ; +0x75, 0x100142d05\naddss   xmm0, cs:dword_100A0378C                                       ; +0x7a, 0x100142d0a\nmovss   dword ptr [rbp-2Ch], xmm0                                      ; +0x82, 0x100142d12\nmov     rdi, [rbx+0F50h]                                               ; +0x87, 0x100142d17\nmov     rax, [rdi]                                                     ; +0x8e, 0x100142d1e\ncall    qword ptr [rax+0A8h]                                           ; +0x91, 0x100142d21\nmovss   xmm1, dword ptr [rbp-2Ch]                                      ; +0x97, 0x100142d27\ndivss   xmm1, xmm0                                                     ; +0x9c, 0x100142d2c\naddss   xmm1, dword ptr [rbp-30h]                                      ; +0xa0, 0x100142d30\nlea     r12, [rbp-5Ch]                                                 ; +0xa5, 0x100142d35\nmov     rdi, r12                                                       ; +0xa9, 0x100142d39\nmovss   xmm0, dword ptr [rbp-34h]                                      ; +0xac, 0x100142d3c\ncall    sub_100278250                                                  ; +0xb1, 0x100142d41\nmov     rdi, [r15+378h]                                                ; +0xb6, 0x100142d46\nmov     rax, [rdi]                                                     ; +0xbd, 0x100142d4d\ncall    qword ptr [rax+3B0h]                                           ; +0xc0, 0x100142d50\nmovzx   ecx, word ptr [rax]                                            ; +0xc6, 0x100142d56\nmovzx   r15d, byte ptr [rax+2]                                         ; +0xc9, 0x100142d59\nshl     r15d, 10h                                                      ; +0xce, 0x100142d5e\nor      r15d, ecx                                                      ; +0xd2, 0x100142d62\nlea     r13, [rbp-54h]                                                 ; +0xd5, 0x100142d65\nmov     rdi, r13                                                       ; +0xd9, 0x100142d69\nmov     rsi, r12                                                       ; +0xdc, 0x100142d6c\ncall    sub_1002782D0                                                  ; +0xdf, 0x100142d6f\nlea     r12, [rbp-4Ch]                                                 ; +0xe4, 0x100142d74\nmov     rdi, r12                                                       ; +0xe8, 0x100142d78\nmov     rsi, r14                                                       ; +0xeb, 0x100142d7b\ncall    sub_1002782D0                                                  ; +0xee, 0x100142d7e\nmovss   xmm0, cs:flt_100A035C0                                         ; +0xf3, 0x100142d83\nmovss   xmm1, cs:dword_100A03578                                       ; +0xfb, 0x100142d8b\nmovss   xmm2, cs:alpha                                                 ; +0x103, 0x100142d93\nmov     rdi, rbx                                                       ; +0x10b, 0x100142d9b\nmov     rsi, r13                                                       ; +0x10e, 0x100142d9e\nmov     rdx, r12                                                       ; +0x111, 0x100142da1\nmov     ecx, r15d                                                      ; +0x114, 0x100142da4\nxor     r8d, r8d                                                       ; +0x117, 0x100142da7\nxor     r9d, r9d                                                       ; +0x11a, 0x100142daa\ncall    GJBaseGameLayer__lightningFlash                                ; +0x11d, 0x100142dad\nadd     rsp, 38h                                                       ; +0x122, 0x100142db2\npop     rbx                                                            ; +0x126, 0x100142db6\npop     r12                                                            ; +0x127, 0x100142db7\npop     r13                                                            ; +0x129, 0x100142db9\npop     r14                                                            ; +0x12b, 0x100142dbb\npop     r15                                                            ; +0x12d, 0x100142dbd\npop     rbp                                                            ; +0x12f, 0x100142dbf\nretn                                                                   ; +0x130, 0x100142dc0", "xrefs": ["PlayLayer::checkpointActivated @ 0x100088e45", "LevelEditorLayer::checkpointActivated @ 0x1000c72b4", "<???> @ 0x100ac51b8"], "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"}