{"type": "func", "start": 4295538148, "end": 4295538368, "name": "GameLevelManager::onSetLevelStarsCompleted", "pseudocode": "// \n// GameLevelManager::onSetLevelStarsCompleted from 0x10008b5e4 to 0x10008b6c0 (220 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100088cec\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\n__int64 (***__fastcall GameLevelManager::onSetLevelStarsCompleted(__int64 a1, _QWORD *a2, char *__s))(void)\n{\n  char *v3; // x21\n  __int64 v6; // x22\n  GameLevelManager *v7; // x0\n  _BOOL4 v8; // w20\n  __int64 (***result)(void); // x0\n  __int64 (**v10)(void); // x8\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v12; // [xsp+1Fh] [xbp-21h]\n\n  v3 = __s;\n  if ( __s[23] < 0 )\n    v3 = *(char **)__s;\n  v6 = *(_QWORD *)(a1 + 608);\n  sub_100009900(__p, v3);\n  v7 = (GameLevelManager *)cocos2d::CCDictionary::removeObjectForKey_1(v6, (char *)__p);\n  if ( v12 < 0 )\n    operator delete(__p[0]);\n  GameLevelManager::getSplitIntFromKey(v7, v3, 1);\n  sub_100009900(__p, \"-1\");\n  v8 = sub_1000045BC(a2, __p);\n  if ( v12 < 0 )\n    operator delete(__p[0]);\n  result = *(__int64 (****)(void))(a1 + 808);\n  if ( v8 )\n  {\n    if ( !result )\n      return result;\n    v10 = *result + 1;\n  }\n  else\n  {\n    if ( !result )\n      return result;\n    v10 = *result;\n  }\n  return (__int64 (***)(void))(*v10)();\n}", "assembly": "; \n; GameLevelManager::onSetLevelStarsCompleted from 0x10008b5e4 to 0x10008b6c0 (220 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100088cec\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, #0x50                                          ; +0x0, 0x10008b5e4\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008b5e8\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008b5ec\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008b5f0\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008b5f4\nMOV             X21, X2                                                ; +0x14, 0x10008b5f8\nMOV             X20, X1                                                ; +0x18, 0x10008b5fc\nMOV             X19, X0                                                ; +0x1c, 0x10008b600\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008b604\nTBZ             W8, #0x1F, loc_10008B610                               ; +0x24, 0x10008b608\nLDR             X21, [X21]                                             ; +0x28, 0x10008b60c\nLDR             X22, [X19,#0x260]                                      ; +0x2c, 0x10008b610\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008b614\nMOV             X1, X21; __s                                           ; +0x34, 0x10008b618\nBL              sub_100009900                                          ; +0x38, 0x10008b61c\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008b620\nMOV             X0, X22; int                                           ; +0x40, 0x10008b624\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008b628\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008b62c\nTBZ             W8, #0x1F, loc_10008B63C                               ; +0x4c, 0x10008b630\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008b634\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008b638\nMOV             X1, X21                                                ; +0x58, 0x10008b63c\nMOV             W2, #1                                                 ; +0x5c, 0x10008b640\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008b644\nMOV             X21, X0                                                ; +0x64, 0x10008b648\nADRL            X1, a1_0; \"-1\"                                         ; +0x68, 0x10008b64c\nADD             X0, SP, #0x40+__p; int                                 ; +0x70, 0x10008b654\nBL              sub_100009900                                          ; +0x74, 0x10008b658\nADD             X1, SP, #0x40+__p                                      ; +0x78, 0x10008b65c\nMOV             X0, X20                                                ; +0x7c, 0x10008b660\nBL              sub_1000045BC                                          ; +0x80, 0x10008b664\nMOV             X20, X0                                                ; +0x84, 0x10008b668\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x88, 0x10008b66c\nTBZ             W8, #0x1F, loc_10008B67C                               ; +0x8c, 0x10008b670\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x90, 0x10008b674\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x10008b678\nLDR             X0, [X19,#0x328]                                       ; +0x98, 0x10008b67c\nCBZ             W20, loc_10008B694                                     ; +0x9c, 0x10008b680\nCBZ             X0, loc_10008B6AC                                      ; +0xa0, 0x10008b684\nLDR             X8, [X0]                                               ; +0xa4, 0x10008b688\nADD             X8, X8, #8                                             ; +0xa8, 0x10008b68c\nB               loc_10008B69C                                          ; +0xac, 0x10008b690\nCBZ             X0, loc_10008B6AC                                      ; +0xb0, 0x10008b694\nLDR             X8, [X0]                                               ; +0xb4, 0x10008b698\nLDR             X8, [X8]                                               ; +0xb8, 0x10008b69c\nMOV             X1, X21                                                ; +0xbc, 0x10008b6a0\nMOV             W2, #8                                                 ; +0xc0, 0x10008b6a4\nBLR             X8                                                     ; +0xc4, 0x10008b6a8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc8, 0x10008b6ac\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xcc, 0x10008b6b0\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xd0, 0x10008b6b4\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xd4, 0x10008b6b8\nRET                                                                    ; +0xd8, 0x10008b6bc", "xrefs": ["GameLevelManager::handleIt @ 0x100088cec"], "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"}