{"type": "func", "start": 4295543360, "end": 4295543556, "name": "GameLevelManager::onReportLevelCompleted", "pseudocode": "// \n// GameLevelManager::onReportLevelCompleted from 0x10008ca40 to 0x10008cb04 (196 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x1000893e0\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 GameLevelManager::onReportLevelCompleted(__int64 a1, _QWORD *a2, char *a3)\n{\n  int v5; // w20\n  _BOOL4 v6; // w0\n  _BOOL4 v7; // w21\n  __int64 v8; // x19\n  cocos2d::CCString *v9; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v12; // [xsp+1Fh] [xbp-21h]\n\n  if ( a3[23] < 0 )\n    a3 = *(char **)a3;\n  v5 = atoi(a3);\n  sub_100009900(__p, \"-1\");\n  v6 = sub_1000045BC(a2, __p);\n  v7 = v6;\n  if ( v12 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( !v7 )\n      return;\n  }\n  else if ( !v6 )\n  {\n    return;\n  }\n  v8 = *(_QWORD *)(a1 + 424);\n  v9 = (cocos2d::CCString *)sub_100268F4C(\"%i\", v5);\n  CString = (char *)cocos2d::CCString::getCString(v9);\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::removeObjectForKey_1(v8, (char *)__p);\n  if ( v12 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GameLevelManager::onReportLevelCompleted from 0x10008ca40 to 0x10008cb04 (196 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x1000893e0\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, 0x10008ca40\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008ca44\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008ca48\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008ca4c\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008ca50\nMOV             X21, X1                                                ; +0x14, 0x10008ca54\nMOV             X19, X0                                                ; +0x18, 0x10008ca58\nLDRSB           W8, [X2,#0x17]                                         ; +0x1c, 0x10008ca5c\nTBZ             W8, #0x1F, loc_10008CA68                               ; +0x20, 0x10008ca60\nLDR             X2, [X2]                                               ; +0x24, 0x10008ca64\nMOV             X0, X2; char *                                         ; +0x28, 0x10008ca68\nBL              _atoi                                                  ; +0x2c, 0x10008ca6c\nMOV             X20, X0                                                ; +0x30, 0x10008ca70\nADRL            X1, a1_0; \"-1\"                                         ; +0x34, 0x10008ca74\nADD             X0, SP, #0x40+__p; int                                 ; +0x3c, 0x10008ca7c\nBL              sub_100009900                                          ; +0x40, 0x10008ca80\nADD             X1, SP, #0x40+__p                                      ; +0x44, 0x10008ca84\nMOV             X0, X21                                                ; +0x48, 0x10008ca88\nBL              sub_1000045BC                                          ; +0x4c, 0x10008ca8c\nMOV             X21, X0                                                ; +0x50, 0x10008ca90\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x54, 0x10008ca94\nTBNZ            W8, #0x1F, loc_10008CAA4                               ; +0x58, 0x10008ca98\nCBNZ            W21, loc_10008CAB0                                     ; +0x5c, 0x10008ca9c\nB               loc_10008CAF0                                          ; +0x60, 0x10008caa0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x64, 0x10008caa4\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x10008caa8\nCBZ             W21, loc_10008CAF0                                     ; +0x6c, 0x10008caac\nLDR             X19, [X19,#0x1A8]                                      ; +0x70, 0x10008cab0\nSTR             X20, [SP,#0x40+var_40]                                 ; +0x74, 0x10008cab4\nADRL            X0, aI; \"%i\"                                           ; +0x78, 0x10008cab8\nBL              sub_100268F4C                                          ; +0x80, 0x10008cac0\nBL              cocos2d__CCString__getCString                          ; +0x84, 0x10008cac4\nMOV             X1, X0; __s                                            ; +0x88, 0x10008cac8\nADD             X0, SP, #0x40+__p; int                                 ; +0x8c, 0x10008cacc\nBL              sub_100009900                                          ; +0x90, 0x10008cad0\nADD             X1, SP, #0x40+__p; __s                                 ; +0x94, 0x10008cad4\nMOV             X0, X19; int                                           ; +0x98, 0x10008cad8\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x9c, 0x10008cadc\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0xa0, 0x10008cae0\nTBZ             W8, #0x1F, loc_10008CAF0                               ; +0xa4, 0x10008cae4\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xa8, 0x10008cae8\nBL              __ZdlPv; operator delete(void *)                       ; +0xac, 0x10008caec\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xb0, 0x10008caf0\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb4, 0x10008caf4\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb8, 0x10008caf8\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xbc, 0x10008cafc\nRET                                                                    ; +0xc0, 0x10008cb00", "xrefs": ["GameLevelManager::handleIt @ 0x1000893e0"], "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"}