{"type": "func", "start": 4298020256, "end": 4298020380, "name": "GJPathsLayer::onPath", "pseudocode": "// \n// GJPathsLayer::onPath from 0x1002e95a0 to 0x1002e961c (124 bytes)\n// \n// 1 xrefs:\n// > GJPathsLayer::init @ 0x1002e92c1\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:28:22 +0000\n// \n\n__int64 __fastcall GJPathsLayer::onPath(__int64 a1, __int64 a2, __m128 a3)\n{\n  __int64 v3; // rbx\n  _BYTE *v4; // rax\n  __int64 v5; // rax\n  __int64 result; // rax\n  __int64 v7; // rax\n  __int64 v8; // rax\n\n  v3 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  v4 = (_BYTE *)GJPathPage::create(v3, a1);\n  v4[596] = 1;\n  (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v4 + 1312LL))(v4);\n  v5 = GameStatsManager::sharedState();\n  result = GameStatsManager::getStatFromKey(v5, (unsigned int)(v3 + 29), a3);\n  if ( (int)result >= 1000 )\n  {\n    v7 = GameStatsManager::sharedState();\n    result = GameStatsManager::isPathChestUnlocked(v7, (unsigned int)v3);\n    if ( !(_BYTE)result )\n    {\n      v8 = sub_1002E98F0((unsigned int)v3);\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJPathsLayer::onPath from 0x1002e95a0 to 0x1002e961c (124 bytes)\n; \n; 1 xrefs:\n; > GJPathsLayer::init @ 0x1002e92c1\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:28:22 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002e95a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002e95a1\npush    r14                                                            ; +0x4, 0x1002e95a4\npush    rbx                                                            ; +0x6, 0x1002e95a6\nmov     r14, rdi                                                       ; +0x7, 0x1002e95a7\nmov     rax, [rsi]                                                     ; +0xa, 0x1002e95aa\nmov     rdi, rsi                                                       ; +0xd, 0x1002e95ad\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1002e95b0\nmov     ebx, eax                                                       ; +0x13, 0x1002e95b3\nmov     edi, eax                                                       ; +0x15, 0x1002e95b5\nmov     rsi, r14                                                       ; +0x17, 0x1002e95b7\ncall    GJPathPage__create                                             ; +0x1a, 0x1002e95ba\nmov     byte ptr [rax+254h], 1                                         ; +0x1f, 0x1002e95bf\nmov     rcx, [rax]                                                     ; +0x26, 0x1002e95c6\nmov     rdi, rax                                                       ; +0x29, 0x1002e95c9\ncall    qword ptr [rcx+520h]                                           ; +0x2c, 0x1002e95cc\nlea     r14d, [rbx+1Dh]                                                ; +0x32, 0x1002e95d2\ncall    GameStatsManager__sharedState                                  ; +0x36, 0x1002e95d6\nmov     rdi, rax                                                       ; +0x3b, 0x1002e95db\nmov     esi, r14d                                                      ; +0x3e, 0x1002e95de\ncall    GameStatsManager__getStatFromKey                               ; +0x41, 0x1002e95e1\ncmp     eax, 3E8h                                                      ; +0x46, 0x1002e95e6\njl      short loc_1002E9600                                            ; +0x4b, 0x1002e95eb\ncall    GameStatsManager__sharedState                                  ; +0x4d, 0x1002e95ed\nmov     rdi, rax                                                       ; +0x52, 0x1002e95f2\nmov     esi, ebx                                                       ; +0x55, 0x1002e95f5\ncall    GameStatsManager__isPathChestUnlocked                          ; +0x57, 0x1002e95f7\ntest    al, al                                                         ; +0x5c, 0x1002e95fc\njz      short loc_1002E9605                                            ; +0x5e, 0x1002e95fe\npop     rbx                                                            ; +0x60, 0x1002e9600\npop     r14                                                            ; +0x61, 0x1002e9601\npop     rbp                                                            ; +0x63, 0x1002e9603\nretn                                                                   ; +0x64, 0x1002e9604\nmov     edi, ebx                                                       ; +0x65, 0x1002e9605\ncall    sub_1002E98F0                                                  ; +0x67, 0x1002e9607\nmov     rcx, [rax]                                                     ; +0x6c, 0x1002e960c\nmov     rdi, rax                                                       ; +0x6f, 0x1002e960f\npop     rbx                                                            ; +0x72, 0x1002e9612\npop     r14                                                            ; +0x73, 0x1002e9613\npop     rbp                                                            ; +0x75, 0x1002e9615\njmp     qword ptr [rcx+520h]                                           ; +0x76, 0x1002e9616", "xrefs": ["GJPathsLayer::init @ 0x1002e92c1"], "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"}