{"type": "func", "start": 4295918904, "end": 4295919032, "name": "AchievementManager::limitForAchievement", "pseudocode": "// \n// AchievementManager::limitForAchievement from 0x1000e8538 to 0x1000e85b8 (128 bytes)\n// \n// 1 xrefs:\n// > ItemInfoPopup::init @ 0x1003084b4\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\ncocos2d::CCDictionary *__fastcall AchievementManager::limitForAchievement(AchievementManager *a1, const char *a2)\n{\n  cocos2d::CCDictionary *result; // x0\n  cocos2d::CCDictionary *v3; // x19\n  __int64 v4; // x0\n  cocos2d::CCString *v5; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v7; // [xsp+1Fh] [xbp-11h]\n\n  if ( a2[23] < 0 )\n    a2 = *(const char **)a2;\n  result = AchievementManager::getAchievementsWithID(a1, a2);\n  if ( result )\n  {\n    v3 = result;\n    sub_100009900(__p, \"limits\");\n    v4 = cocos2d::CCDictionary::objectForKey_1(v3, __p);\n    v5 = (cocos2d::CCString *)v4;\n    if ( v7 < 0 )\n    {\n      operator delete(__p[0]);\n      if ( v5 )\n        return (cocos2d::CCDictionary *)cocos2d::CCString::intValue(v5);\n    }\n    else if ( v4 )\n    {\n      return (cocos2d::CCDictionary *)cocos2d::CCString::intValue(v5);\n    }\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; AchievementManager::limitForAchievement from 0x1000e8538 to 0x1000e85b8 (128 bytes)\n; \n; 1 xrefs:\n; > ItemInfoPopup::init @ 0x1003084b4\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1000e8538\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000e853c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000e8540\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000e8544\nLDRSB           W8, [X1,#0x17]                                         ; +0x10, 0x1000e8548\nTBZ             W8, #0x1F, loc_1000E8554                               ; +0x14, 0x1000e854c\nLDR             X1, [X1]                                               ; +0x18, 0x1000e8550\nBL              AchievementManager__getAchievementsWithID              ; +0x1c, 0x1000e8554\nCBZ             X0, loc_1000E85A8                                      ; +0x20, 0x1000e8558\nMOV             X19, X0                                                ; +0x24, 0x1000e855c\nADRL            X1, aLimits; \"limits\"                                  ; +0x28, 0x1000e8560\nADD             X0, SP, #0x30+__p; int                                 ; +0x30, 0x1000e8568\nBL              sub_100009900                                          ; +0x34, 0x1000e856c\nADD             X1, SP, #0x30+__p                                      ; +0x38, 0x1000e8570\nMOV             X0, X19                                                ; +0x3c, 0x1000e8574\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x40, 0x1000e8578\nMOV             X19, X0                                                ; +0x44, 0x1000e857c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x48, 0x1000e8580\nTBNZ            W8, #0x1F, loc_1000E8598                               ; +0x4c, 0x1000e8584\nCBZ             X19, loc_1000E85A4                                     ; +0x50, 0x1000e8588\nMOV             X0, X19                                                ; +0x54, 0x1000e858c\nBL              cocos2d__CCString__intValue                            ; +0x58, 0x1000e8590\nB               loc_1000E85A8                                          ; +0x5c, 0x1000e8594\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x60, 0x1000e8598\nBL              __ZdlPv; operator delete(void *)                       ; +0x64, 0x1000e859c\nCBNZ            X19, loc_1000E858C                                     ; +0x68, 0x1000e85a0\nMOV             W0, #0                                                 ; +0x6c, 0x1000e85a4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x70, 0x1000e85a8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x74, 0x1000e85ac\nADD             SP, SP, #0x40 ; '@'                                    ; +0x78, 0x1000e85b0\nRET                                                                    ; +0x7c, 0x1000e85b4", "xrefs": ["ItemInfoPopup::init @ 0x1003084b4"], "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"}