{"type": "func", "start": 4295550404, "end": 4295550692, "name": "GameLevelManager::onUploadUserMessageCompleted", "pseudocode": "// \n// GameLevelManager::onUploadUserMessageCompleted from 0x10008e5c4 to 0x10008e6e4 (288 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100088a34\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::onUploadUserMessageCompleted(GameLevelManager *a1, _QWORD *a2, char *__s)\n{\n  char *v3; // x20\n  cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x21\n  GameLevelManager *v7; // x0\n  __int64 SplitIntFromKey; // x21\n  _BOOL4 v9; // w0\n  _BOOL4 v10; // w22\n  UploadMessageDelegate *m_uploadMessageDelegate; // x0\n  GameLevelManager *v12; // x20\n  cocos2d::CCString *v13; // x0\n  const char *CString; // x0\n  UploadMessageDelegate *v15; // x0\n  void *__p[2]; // [xsp+18h] [xbp-38h] BYREF\n  char v17; // [xsp+2Fh] [xbp-21h]\n\n  v3 = __s;\n  if ( __s[23] < 0 )\n    v3 = *(char **)__s;\n  m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;\n  sub_100009900(__p, v3);\n  v7 = (GameLevelManager *)cocos2d::CCDictionary::removeObjectForKey_1((int)m_friendReqAndUserBlocks, (char *)__p);\n  if ( v17 < 0 )\n    operator delete(__p[0]);\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v7, v3, 1);\n  sub_100009900(__p, \"-1\");\n  v9 = sub_1000045BC(a2, __p);\n  v10 = v9;\n  if ( v17 < 0 )\n  {\n    operator delete(__p[0]);\n    if ( v10 )\n      goto LABEL_7;\n  }\n  else if ( v9 )\n  {\nLABEL_7:\n    m_uploadMessageDelegate = a1->m_uploadMessageDelegate;\n    if ( m_uploadMessageDelegate )\n      ((void (__fastcall *)(UploadMessageDelegate *, __int64))m_uploadMessageDelegate->uploadMessageFailed)(\n        m_uploadMessageDelegate,\n        SplitIntFromKey);\n    GameLevelManager::resetTimerForKey(a1, v3);\n    return;\n  }\n  v12 = GameLevelManager::sharedState();\n  v13 = (cocos2d::CCString *)sub_100268F4C(\"messages_%i_%i\", 1, 0);\n  CString = cocos2d::CCString::getCString(v13);\n  GameLevelManager::resetTimerForKey(v12, CString);\n  v15 = a1->m_uploadMessageDelegate;\n  if ( v15 )\n    ((void (__fastcall *)(UploadMessageDelegate *, __int64))v15->uploadMessageFinished)(v15, SplitIntFromKey);\n}", "assembly": "; \n; GameLevelManager::onUploadUserMessageCompleted from 0x10008e5c4 to 0x10008e6e4 (288 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100088a34\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, #0x60                                          ; +0x0, 0x10008e5c4\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x10008e5c8\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x10008e5cc\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x10008e5d0\nADD             X29, SP, #0x50                                         ; +0x10, 0x10008e5d4\nMOV             X20, X2                                                ; +0x14, 0x10008e5d8\nMOV             X22, X1                                                ; +0x18, 0x10008e5dc\nMOV             X19, X0                                                ; +0x1c, 0x10008e5e0\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008e5e4\nTBZ             W8, #0x1F, loc_10008E5F0                               ; +0x24, 0x10008e5e8\nLDR             X20, [X20]                                             ; +0x28, 0x10008e5ec\nLDR             X21, [X19,#0x260]                                      ; +0x2c, 0x10008e5f0\nADD             X0, SP, #0x50+__p; int                                 ; +0x30, 0x10008e5f4\nMOV             X1, X20; __s                                           ; +0x34, 0x10008e5f8\nBL              sub_100009900                                          ; +0x38, 0x10008e5fc\nADD             X1, SP, #0x50+__p; __s                                 ; +0x3c, 0x10008e600\nMOV             X0, X21; int                                           ; +0x40, 0x10008e604\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008e608\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x48, 0x10008e60c\nTBZ             W8, #0x1F, loc_10008E61C                               ; +0x4c, 0x10008e610\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x50, 0x10008e614\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008e618\nMOV             X1, X20                                                ; +0x58, 0x10008e61c\nMOV             W2, #1                                                 ; +0x5c, 0x10008e620\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008e624\nMOV             X21, X0                                                ; +0x64, 0x10008e628\nADRL            X1, a1_0; \"-1\"                                         ; +0x68, 0x10008e62c\nADD             X0, SP, #0x50+__p; int                                 ; +0x70, 0x10008e634\nBL              sub_100009900                                          ; +0x74, 0x10008e638\nADD             X1, SP, #0x50+__p                                      ; +0x78, 0x10008e63c\nMOV             X0, X22                                                ; +0x7c, 0x10008e640\nBL              sub_1000045BC                                          ; +0x80, 0x10008e644\nMOV             X22, X0                                                ; +0x84, 0x10008e648\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x88, 0x10008e64c\nTBNZ            W8, #0x1F, loc_10008E680                               ; +0x8c, 0x10008e650\nCBZ             W22, loc_10008E68C                                     ; +0x90, 0x10008e654\nLDR             X0, [X19,#0x350]                                       ; +0x94, 0x10008e658\nCBZ             X0, loc_10008E670                                      ; +0x98, 0x10008e65c\nLDR             X8, [X0]                                               ; +0x9c, 0x10008e660\nLDR             X8, [X8,#8]                                            ; +0xa0, 0x10008e664\nMOV             X1, X21                                                ; +0xa4, 0x10008e668\nBLR             X8                                                     ; +0xa8, 0x10008e66c\nMOV             X0, X19                                                ; +0xac, 0x10008e670\nMOV             X1, X20                                                ; +0xb0, 0x10008e674\nBL              GameLevelManager__resetTimerForKey                     ; +0xb4, 0x10008e678\nB               loc_10008E6D0                                          ; +0xb8, 0x10008e67c\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0xbc, 0x10008e680\nBL              __ZdlPv; operator delete(void *)                       ; +0xc0, 0x10008e684\nCBNZ            W22, loc_10008E658                                     ; +0xc4, 0x10008e688\nBL              GameLevelManager__sharedState                          ; +0xc8, 0x10008e68c\nMOV             X20, X0                                                ; +0xcc, 0x10008e690\nMOV             W8, #1                                                 ; +0xd0, 0x10008e694\nSTP             X8, XZR, [SP,#0x50+var_50]                             ; +0xd4, 0x10008e698\nADRL            X0, aMessagesII; \"messages_%i_%i\"                      ; +0xd8, 0x10008e69c\nBL              sub_100268F4C                                          ; +0xe0, 0x10008e6a4\nBL              cocos2d__CCString__getCString                          ; +0xe4, 0x10008e6a8\nMOV             X1, X0                                                 ; +0xe8, 0x10008e6ac\nMOV             X0, X20                                                ; +0xec, 0x10008e6b0\nBL              GameLevelManager__resetTimerForKey                     ; +0xf0, 0x10008e6b4\nLDR             X0, [X19,#0x350]                                       ; +0xf4, 0x10008e6b8\nCBZ             X0, loc_10008E6D0                                      ; +0xf8, 0x10008e6bc\nLDR             X8, [X0]                                               ; +0xfc, 0x10008e6c0\nLDR             X8, [X8]                                               ; +0x100, 0x10008e6c4\nMOV             X1, X21                                                ; +0x104, 0x10008e6c8\nBLR             X8                                                     ; +0x108, 0x10008e6cc\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10c, 0x10008e6d0\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x110, 0x10008e6d4\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x114, 0x10008e6d8\nADD             SP, SP, #0x60 ; '`'                                    ; +0x118, 0x10008e6dc\nRET                                                                    ; +0x11c, 0x10008e6e0", "xrefs": ["GameLevelManager::handleIt @ 0x100088a34"], "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"}