{"type": "func", "start": 4298314952, "end": 4298315060, "name": "GameStatsManager::starsForMapPack", "pseudocode": "// \n// GameStatsManager::starsForMapPack from 0x1003314c8 to 0x100331534 (108 bytes)\n// \n// 1 xrefs:\n// > GameManager::recountUserStats @ 0x10031a158\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::starsForMapPack(GameStatsManager *a1, int a2)\n{\n  cocos2d::CCDictionary *m_completedMappacks; // x19\n  cocos2d::CCString *v3; // x0\n  char *CString; // x0\n  cocos2d::CCString *v5; // x0\n  int v6; // w19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v9; // [xsp+1Fh] [xbp-11h]\n\n  m_completedMappacks = a1->m_completedMappacks;\n  v3 = (cocos2d::CCString *)sub_100268F4C(\"pack_%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  sub_100009900(__p, CString);\n  v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_completedMappacks, __p);\n  v6 = cocos2d::CCString::intValue(v5);\n  if ( v9 < 0 )\n    operator delete(__p[0]);\n  return v6;\n}", "assembly": "; \n; GameStatsManager::starsForMapPack from 0x1003314c8 to 0x100331534 (108 bytes)\n; \n; 1 xrefs:\n; > GameManager::recountUserStats @ 0x10031a158\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, 0x1003314c8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003314cc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003314d0\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003314d4\nLDR             X19, [X0,#0x2D0]                                       ; +0x10, 0x1003314d8\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x14, 0x1003314dc\nADRL            X0, aPackI; \"pack_%i\"                                  ; +0x18, 0x1003314e0\nBL              sub_100268F4C                                          ; +0x20, 0x1003314e8\nBL              cocos2d__CCString__getCString                          ; +0x24, 0x1003314ec\nMOV             X1, X0; __s                                            ; +0x28, 0x1003314f0\nADD             X0, SP, #0x30+__p; int                                 ; +0x2c, 0x1003314f4\nBL              sub_100009900                                          ; +0x30, 0x1003314f8\nADD             X1, SP, #0x30+__p                                      ; +0x34, 0x1003314fc\nMOV             X0, X19                                                ; +0x38, 0x100331500\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0x3c, 0x100331504\nBL              cocos2d__CCString__intValue                            ; +0x40, 0x100331508\nMOV             X19, X0                                                ; +0x44, 0x10033150c\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x48, 0x100331510\nTBZ             W8, #0x1F, loc_100331520                               ; +0x4c, 0x100331514\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x50, 0x100331518\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10033151c\nMOV             X0, X19                                                ; +0x58, 0x100331520\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x5c, 0x100331524\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x60, 0x100331528\nADD             SP, SP, #0x40 ; '@'                                    ; +0x64, 0x10033152c\nRET                                                                    ; +0x68, 0x100331530", "xrefs": ["GameManager::recountUserStats @ 0x10031a158"], "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"}