{"type": "func", "start": 4295412000, "end": 4295412071, "name": "GameStatsManager::getStatFromKey", "pseudocode": "// \n// GameStatsManager::getStatFromKey from 0x10006c920 to 0x10006c967 (71 bytes)\n// \n// 4 xrefs:\n// > GJPathSprite::updateState @ 0x1002fe9ef\n// > GJPathsLayer::onPath @ 0x1002fea71\n// > GJPathPage::init @ 0x1002ffc8b\n// > GJPathPage::init @ 0x1002ffca7\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\nint __fastcall GameStatsManager::getStatFromKey(GameStatsManager *a1, StatKey a2)\n{\n  const char *v2; // rsi\n  int result; // eax\n  int v4; // ebx\n  char v5; // [rsp+0h] [rbp-20h] BYREF\n  char v6; // [rsp+1h] [rbp-1Fh] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  GameToolbox::intToString(&v5, a2);\n  if ( (v5 & 1) != 0 )\n    v2 = (const char *)__p;\n  else\n    v2 = &v6;\n  result = GameStatsManager::getStat(a1, v2);\n  if ( (v5 & 1) != 0 )\n  {\n    v4 = result;\n    operator delete(__p);\n    return v4;\n  }\n  return result;\n}", "assembly": "; \n; GameStatsManager::getStatFromKey from 0x10006c920 to 0x10006c967 (71 bytes)\n; \n; 4 xrefs:\n; > GJPathSprite::updateState @ 0x1002fe9ef\n; > GJPathsLayer::onPath @ 0x1002fea71\n; > GJPathPage::init @ 0x1002ffc8b\n; > GJPathPage::init @ 0x1002ffca7\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, 0x10006c920\nmov     rbp, rsp                                                       ; +0x1, 0x10006c921\npush    rbx                                                            ; +0x4, 0x10006c924\nsub     rsp, 18h                                                       ; +0x5, 0x10006c925\nmov     rbx, rdi                                                       ; +0x9, 0x10006c929\nlea     rdi, [rbp+var_20]                                              ; +0xc, 0x10006c92c\ncall    GameToolbox__intToString                                       ; +0x10, 0x10006c930\ntest    [rbp+var_20], 1                                                ; +0x15, 0x10006c935\njz      short loc_10006C941                                            ; +0x19, 0x10006c939\nmov     rsi, [rbp+__p]                                                 ; +0x1b, 0x10006c93b\njmp     short loc_10006C945                                            ; +0x1f, 0x10006c93f\nlea     rsi, [rbp+var_1F]                                              ; +0x21, 0x10006c941\nmov     rdi, rbx                                                       ; +0x25, 0x10006c945\ncall    GameStatsManager__getStat                                      ; +0x28, 0x10006c948\ntest    [rbp+var_20], 1                                                ; +0x2d, 0x10006c94d\njz      short loc_10006C960                                            ; +0x31, 0x10006c951\nmov     rdi, [rbp+__p]; __p                                            ; +0x33, 0x10006c953\nmov     ebx, eax                                                       ; +0x37, 0x10006c957\ncall    __ZdlPv; operator delete(void *)                               ; +0x39, 0x10006c959\nmov     eax, ebx                                                       ; +0x3e, 0x10006c95e\nadd     rsp, 18h                                                       ; +0x40, 0x10006c960\npop     rbx                                                            ; +0x44, 0x10006c964\npop     rbp                                                            ; +0x45, 0x10006c965\nretn                                                                   ; +0x46, 0x10006c966", "xrefs": ["GJPathSprite::updateState @ 0x1002fe9ef", "GJPathsLayer::onPath @ 0x1002fea71", "GJPathPage::init @ 0x1002ffc8b", "GJPathPage::init @ 0x1002ffca7"], "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"}