{"type": "func", "start": 4298868132, "end": 4298868272, "name": "GJPathsLayer::onPath", "pseudocode": "// \n// GJPathsLayer::onPath from 0x1003b85a4 to 0x1003b8630 (140 bytes)\n// \n// 1 xrefs:\n// > GJPathsLayer::init @ 0x1003b832c\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 v3; // w19\n  GJPathPage *v4; // x0\n  GameStatsManager *v5; // x0\n  GameStatsManager *v6; // x0\n  GJPathRewardPopup *v7; // x0\n\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  v4 = GJPathPage::create(v3, a1);\n  v4->m_noElasticity = 1;\n  ((void (__fastcall *)(GJPathPage *))v4->show)(v4);\n  v5 = GameStatsManager::sharedState();\n  if ( GameStatsManager::getStatFromKey(v5, (StatKey)(v3 + 29)) >= 1000 )\n  {\n    v6 = GameStatsManager::sharedState();\n    if ( !GameStatsManager::isPathChestUnlocked(v6, v3) )\n    {\n      v7 = GJPathRewardPopup::create(v3);\n      ((void (__fastcall *)(GJPathRewardPopup *))v7->show)(v7);\n    }\n  }\n}", "assembly": "; \n; GJPathsLayer::onPath from 0x1003b85a4 to 0x1003b8630 (140 bytes)\n; \n; 1 xrefs:\n; > GJPathsLayer::init @ 0x1003b832c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003b85a4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003b85a8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003b85ac\nMOV             X20, X0                                                ; +0xc, 0x1003b85b0\nLDR             X8, [X1]                                               ; +0x10, 0x1003b85b4\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x1003b85b8\nMOV             X0, X1                                                 ; +0x18, 0x1003b85bc\nBLR             X8                                                     ; +0x1c, 0x1003b85c0\nMOV             X19, X0                                                ; +0x20, 0x1003b85c4\nMOV             X1, X20                                                ; +0x24, 0x1003b85c8\nBL              GJPathPage__create                                     ; +0x28, 0x1003b85cc\nMOV             W8, #1                                                 ; +0x2c, 0x1003b85d0\nSTRB            W8, [X0,#0x24C]                                        ; +0x30, 0x1003b85d4\nLDR             X8, [X0]                                               ; +0x34, 0x1003b85d8\nLDR             X8, [X8,#0x508]                                        ; +0x38, 0x1003b85dc\nBLR             X8                                                     ; +0x3c, 0x1003b85e0\nBL              GameStatsManager__sharedState                          ; +0x40, 0x1003b85e4\nADD             W1, W19, #0x1D                                         ; +0x44, 0x1003b85e8\nBL              GameStatsManager__getStatFromKey                       ; +0x48, 0x1003b85ec\nCMP             W0, #0x3E8                                             ; +0x4c, 0x1003b85f0\nB.LT            loc_1003B8608                                          ; +0x50, 0x1003b85f4\nBL              GameStatsManager__sharedState                          ; +0x54, 0x1003b85f8\nMOV             X1, X19                                                ; +0x58, 0x1003b85fc\nBL              GameStatsManager__isPathChestUnlocked                  ; +0x5c, 0x1003b8600\nTBZ             W0, #0, loc_1003B8614                                  ; +0x60, 0x1003b8604\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x1003b8608\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x1003b860c\nRET                                                                    ; +0x6c, 0x1003b8610\nMOV             X0, X19                                                ; +0x70, 0x1003b8614\nBL              GJPathRewardPopup__create                              ; +0x74, 0x1003b8618\nLDR             X8, [X0]                                               ; +0x78, 0x1003b861c\nLDR             X1, [X8,#0x508]                                        ; +0x7c, 0x1003b8620\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x1003b8624\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x1003b8628\nBR              X1                                                     ; +0x88, 0x1003b862c", "xrefs": ["GJPathsLayer::init @ 0x1003b832c"], "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"}