{"type": "func", "start": 4298107440, "end": 4298107564, "name": "GJPathsLayer::onPath", "pseudocode": "// \n// GJPathsLayer::onPath from 0x1002fea30 to 0x1002feaac (124 bytes)\n// \n// 1 xrefs:\n// > GJPathsLayer::init @ 0x1002fe751\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 GJPathsLayer::onPath(GJPathsLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  GJPathPage *v3; // rax\n  GameStatsManager *v4; // rax\n  GameStatsManager *v5; // rax\n  GJPathRewardPopup *v6; // rax\n\n  v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  v3 = GJPathPage::create(v2, a1);\n  v3->m_noElasticity = 1;\n  ((void (__fastcall *)(GJPathPage *))v3->show)(v3);\n  v4 = GameStatsManager::sharedState();\n  if ( GameStatsManager::getStatFromKey(v4, (StatKey)(v2 + 29)) >= 1000 )\n  {\n    v5 = GameStatsManager::sharedState();\n    if ( !GameStatsManager::isPathChestUnlocked(v5, v2) )\n    {\n      v6 = GJPathRewardPopup::create(v2);\n      ((void (__fastcall *)(GJPathRewardPopup *))v6->show)(v6);\n    }\n  }\n}", "assembly": "; \n; GJPathsLayer::onPath from 0x1002fea30 to 0x1002feaac (124 bytes)\n; \n; 1 xrefs:\n; > GJPathsLayer::init @ 0x1002fe751\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\npush    rbp                                                            ; +0x0, 0x1002fea30\nmov     rbp, rsp                                                       ; +0x1, 0x1002fea31\npush    r14                                                            ; +0x4, 0x1002fea34\npush    rbx                                                            ; +0x6, 0x1002fea36\nmov     r14, rdi                                                       ; +0x7, 0x1002fea37\nmov     rax, [rsi]                                                     ; +0xa, 0x1002fea3a\nmov     rdi, rsi                                                       ; +0xd, 0x1002fea3d\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1002fea40\nmov     ebx, eax                                                       ; +0x13, 0x1002fea43\nmov     edi, eax                                                       ; +0x15, 0x1002fea45\nmov     rsi, r14                                                       ; +0x17, 0x1002fea47\ncall    GJPathPage__create                                             ; +0x1a, 0x1002fea4a\nmov     byte ptr [rax+24Ch], 1                                         ; +0x1f, 0x1002fea4f\nmov     rcx, [rax]                                                     ; +0x26, 0x1002fea56\nmov     rdi, rax                                                       ; +0x29, 0x1002fea59\ncall    qword ptr [rcx+508h]                                           ; +0x2c, 0x1002fea5c\nlea     r14d, [rbx+1Dh]                                                ; +0x32, 0x1002fea62\ncall    GameStatsManager__sharedState                                  ; +0x36, 0x1002fea66\nmov     rdi, rax                                                       ; +0x3b, 0x1002fea6b\nmov     esi, r14d                                                      ; +0x3e, 0x1002fea6e\ncall    GameStatsManager__getStatFromKey                               ; +0x41, 0x1002fea71\ncmp     eax, 3E8h                                                      ; +0x46, 0x1002fea76\njl      short loc_1002FEA90                                            ; +0x4b, 0x1002fea7b\ncall    GameStatsManager__sharedState                                  ; +0x4d, 0x1002fea7d\nmov     rdi, rax                                                       ; +0x52, 0x1002fea82\nmov     esi, ebx                                                       ; +0x55, 0x1002fea85\ncall    GameStatsManager__isPathChestUnlocked                          ; +0x57, 0x1002fea87\ntest    al, al                                                         ; +0x5c, 0x1002fea8c\njz      short loc_1002FEA95                                            ; +0x5e, 0x1002fea8e\npop     rbx                                                            ; +0x60, 0x1002fea90\npop     r14                                                            ; +0x61, 0x1002fea91\npop     rbp                                                            ; +0x63, 0x1002fea93\nretn                                                                   ; +0x64, 0x1002fea94\nmov     edi, ebx                                                       ; +0x65, 0x1002fea95\ncall    GJPathRewardPopup__create                                      ; +0x67, 0x1002fea97\nmov     rcx, [rax]                                                     ; +0x6c, 0x1002fea9c\nmov     rdi, rax                                                       ; +0x6f, 0x1002fea9f\npop     rbx                                                            ; +0x72, 0x1002feaa2\npop     r14                                                            ; +0x73, 0x1002feaa3\npop     rbp                                                            ; +0x75, 0x1002feaa5\njmp     qword ptr [rcx+508h]                                           ; +0x76, 0x1002feaa6", "xrefs": ["GJPathsLayer::init @ 0x1002fe751"], "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"}