{"type": "func", "start": 4296422688, "end": 4296422993, "name": "GJBaseGameLayer::checkpointActivated", "pseudocode": "// \n// GJBaseGameLayer::checkpointActivated from 0x100163520 to 0x100163651 (305 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::checkpointActivated @ 0x1000bb145\n// > LevelEditorLayer::checkpointActivated @ 0x1000f33c6\n// > <???> @ 0x1008c1990\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 GJBaseGameLayer::checkpointActivated(GJBaseGameLayer *a1, CheckpointGameObject *a2)\n{\n  float v2; // xmm3_4\n  CheckpointGameObject *v3; // r15\n  cocos2d::CCDirector *v4; // rsi\n  float v5; // xmm0_4\n  float v6; // xmm4_4\n  int v7; // [rsp-64h] [rbp-64h] BYREF\n  int v8; // [rsp-5Ch] [rbp-5Ch] BYREF\n  int v9; // [rsp-54h] [rbp-54h] BYREF\n  float v10; // [rsp-4Ch] [rbp-4Ch] BYREF\n  float v11[2]; // [rsp-44h] [rbp-44h] BYREF\n  float v12; // [rsp-3Ch] [rbp-3Ch]\n  float y; // [rsp-38h] [rbp-38h]\n  float v14; // [rsp-34h] [rbp-34h]\n  __int64 v15; // [rsp-8h] [rbp-8h] BYREF\n\n  if ( !a2->m_hasNoEffects )\n  {\n    v3 = a2;\n    ((void (__fastcall *)(float *))a2->getRealPosition)(&v10);\n    v4 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v11);\n    v12 = sub_1001F9D80(v11, v4, v10 + -50.0, v10 + 100.0);\n    y = a1->m_gameState.m_cameraPosition.y;\n    v14 = v11[1] + 50.0;\n    v5 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getScale)(a1->m_objectLayer);\n    sub_10028CBE0(&v7, v12, (float)(v14 / v5) + y);\n    LOWORD(v3) = *(_WORD *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v3->m_colorSprite->getColor)(v3->m_colorSprite);\n    sub_10028CC60(&v8);\n    sub_10028CC60(&v9);\n    GJBaseGameLayer::lightningFlash(\n      a1,\n      (cocos2d::CCPoint)1084227584LL,\n      (cocos2d::CCPoint)1056964608LL,\n      (cocos2d::ccColor3B)&v8,\n      1.0,\n      v2,\n      (unsigned int)&v15 - 76,\n      (bool)v3,\n      v6);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::checkpointActivated from 0x100163520 to 0x100163651 (305 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::checkpointActivated @ 0x1000bb145\n; > LevelEditorLayer::checkpointActivated @ 0x1000f33c6\n; > <???> @ 0x1008c1990\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\ncmp     byte ptr [rsi+414h], 0                                         ; +0x0, 0x100163520\njnz     locret_100163650                                               ; +0x7, 0x100163527\npush    rbp                                                            ; +0xd, 0x10016352d\nmov     rbp, rsp                                                       ; +0xe, 0x10016352e\npush    r15                                                            ; +0x11, 0x100163531\npush    r14                                                            ; +0x13, 0x100163533\npush    r13                                                            ; +0x15, 0x100163535\npush    r12                                                            ; +0x17, 0x100163537\npush    rbx                                                            ; +0x19, 0x100163539\nsub     rsp, 38h                                                       ; +0x1a, 0x10016353a\nmov     rax, [rsi]                                                     ; +0x1e, 0x10016353e\nlea     r14, [rbp-44h]                                                 ; +0x21, 0x100163541\nmov     rbx, rdi                                                       ; +0x25, 0x100163545\nmov     rdi, r14                                                       ; +0x28, 0x100163548\nmov     r15, rsi                                                       ; +0x2b, 0x10016354b\ncall    qword ptr [rax+540h]                                           ; +0x2e, 0x10016354e\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x34, 0x100163554\nlea     rdi, [rbp-3Ch]                                                 ; +0x39, 0x100163559\nmov     rsi, rax                                                       ; +0x3d, 0x10016355d\ncall    cocos2d__CCDirector__getWinSize                                ; +0x40, 0x100163560\nmovss   xmm1, dword ptr [rbp-44h]                                      ; +0x45, 0x100163565\nmovss   xmm0, cs:dword_100814FC0                                       ; +0x4a, 0x10016356a\naddss   xmm0, xmm1                                                     ; +0x52, 0x100163572\naddss   xmm1, cs:dword_100815014                                       ; +0x56, 0x100163576\ncall    sub_1001F9D80                                                  ; +0x5e, 0x10016357e\nmovss   dword ptr [rbp-34h], xmm0                                      ; +0x63, 0x100163583\nmovss   xmm0, dword ptr [rbx+3E4h]                                     ; +0x68, 0x100163588\nmovss   dword ptr [rbp-30h], xmm0                                      ; +0x70, 0x100163590\nmovss   xmm0, dword ptr [rbp-38h]                                      ; +0x75, 0x100163595\naddss   xmm0, cs:dword_100814FDC                                       ; +0x7a, 0x10016359a\nmovss   dword ptr [rbp-2Ch], xmm0                                      ; +0x82, 0x1001635a2\nmov     rdi, [rbx+0EB8h]                                               ; +0x87, 0x1001635a7\nmov     rax, [rdi]                                                     ; +0x8e, 0x1001635ae\ncall    qword ptr [rax+0A8h]                                           ; +0x91, 0x1001635b1\nmovss   xmm1, dword ptr [rbp-2Ch]                                      ; +0x97, 0x1001635b7\ndivss   xmm1, xmm0                                                     ; +0x9c, 0x1001635bc\naddss   xmm1, dword ptr [rbp-30h]                                      ; +0xa0, 0x1001635c0\nlea     r12, [rbp-5Ch]                                                 ; +0xa5, 0x1001635c5\nmov     rdi, r12                                                       ; +0xa9, 0x1001635c9\nmovss   xmm0, dword ptr [rbp-34h]                                      ; +0xac, 0x1001635cc\ncall    sub_10028CBE0                                                  ; +0xb1, 0x1001635d1\nmov     rdi, [r15+378h]                                                ; +0xb6, 0x1001635d6\nmov     rax, [rdi]                                                     ; +0xbd, 0x1001635dd\ncall    qword ptr [rax+3A0h]                                           ; +0xc0, 0x1001635e0\nmovzx   ecx, word ptr [rax]                                            ; +0xc6, 0x1001635e6\nmovzx   r15d, byte ptr [rax+2]                                         ; +0xc9, 0x1001635e9\nshl     r15d, 10h                                                      ; +0xce, 0x1001635ee\nor      r15d, ecx                                                      ; +0xd2, 0x1001635f2\nlea     r13, [rbp-54h]                                                 ; +0xd5, 0x1001635f5\nmov     rdi, r13                                                       ; +0xd9, 0x1001635f9\nmov     rsi, r12                                                       ; +0xdc, 0x1001635fc\ncall    sub_10028CC60                                                  ; +0xdf, 0x1001635ff\nlea     r12, [rbp-4Ch]                                                 ; +0xe4, 0x100163604\nmov     rdi, r12                                                       ; +0xe8, 0x100163608\nmov     rsi, r14                                                       ; +0xeb, 0x10016360b\ncall    sub_10028CC60                                                  ; +0xee, 0x10016360e\nmovss   xmm0, cs:flt_100815088                                         ; +0xf3, 0x100163613\nmovss   xmm1, cs:dword_100814FA8                                       ; +0xfb, 0x10016361b\nmovss   xmm2, cs:alpha                                                 ; +0x103, 0x100163623\nmov     rdi, rbx                                                       ; +0x10b, 0x10016362b\nmov     rsi, r13                                                       ; +0x10e, 0x10016362e\nmov     rdx, r12                                                       ; +0x111, 0x100163631\nmov     ecx, r15d                                                      ; +0x114, 0x100163634\nxor     r8d, r8d                                                       ; +0x117, 0x100163637\nxor     r9d, r9d                                                       ; +0x11a, 0x10016363a\ncall    GJBaseGameLayer__lightningFlash                                ; +0x11d, 0x10016363d\nadd     rsp, 38h                                                       ; +0x122, 0x100163642\npop     rbx                                                            ; +0x126, 0x100163646\npop     r12                                                            ; +0x127, 0x100163647\npop     r13                                                            ; +0x129, 0x100163649\npop     r14                                                            ; +0x12b, 0x10016364b\npop     r15                                                            ; +0x12d, 0x10016364d\npop     rbp                                                            ; +0x12f, 0x10016364f\nretn                                                                   ; +0x130, 0x100163650", "xrefs": ["PlayLayer::checkpointActivated @ 0x1000bb145", "LevelEditorLayer::checkpointActivated @ 0x1000f33c6", "<???> @ 0x1008c1990"], "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"}