{"type": "func", "start": 4295544308, "end": 4295544608, "name": "GameLevelManager::onUploadFriendRequestCompleted", "pseudocode": "// \n// GameLevelManager::onUploadFriendRequestCompleted from 0x10008cdf4 to 0x10008cf20 (300 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100088c24\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::onUploadFriendRequestCompleted(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  UploadActionDelegate *m_uploadActionDelegate; // x0\n  cocos2d::CCObject *v12; // x0\n  cocos2d::CCObject *v13; // x1\n  UserInfoDelegate *m_userInfoDelegate; // x0\n  UploadActionDelegate *v15; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v17; // [xsp+1Fh] [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_uploadActionDelegate = a1->m_uploadActionDelegate;\n    if ( m_uploadActionDelegate )\n      ((void (__fastcall *)(UploadActionDelegate *, __int64, __int64))m_uploadActionDelegate->uploadActionFailed)(\n        m_uploadActionDelegate,\n        SplitIntFromKey,\n        29);\n    GameLevelManager::resetTimerForKey(a1, v3);\n    return;\n  }\n  v12 = cocos2d::CCDictionary::objectForKey(a1->m_storedUserInfo, (int)SplitIntFromKey);\n  if ( v12 )\n  {\n    v13 = v12;\n    LODWORD(v12[12].__vftable) = 4;\n    m_userInfoDelegate = a1->m_userInfoDelegate;\n    if ( m_userInfoDelegate )\n      ((void (__fastcall *)(UserInfoDelegate *, cocos2d::CCObject *))m_userInfoDelegate->userInfoChanged)(\n        m_userInfoDelegate,\n        v13);\n  }\n  v15 = a1->m_uploadActionDelegate;\n  if ( v15 )\n    ((void (__fastcall *)(UploadActionDelegate *, __int64, __int64))v15->uploadActionFinished)(v15, SplitIntFromKey, 29);\n}", "assembly": "; \n; GameLevelManager::onUploadFriendRequestCompleted from 0x10008cdf4 to 0x10008cf20 (300 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100088c24\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, 0x10008cdf4\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008cdf8\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008cdfc\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008ce00\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008ce04\nMOV             X20, X2                                                ; +0x14, 0x10008ce08\nMOV             X22, X1                                                ; +0x18, 0x10008ce0c\nMOV             X19, X0                                                ; +0x1c, 0x10008ce10\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008ce14\nTBZ             W8, #0x1F, loc_10008CE20                               ; +0x24, 0x10008ce18\nLDR             X20, [X20]                                             ; +0x28, 0x10008ce1c\nLDR             X21, [X19,#0x260]                                      ; +0x2c, 0x10008ce20\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008ce24\nMOV             X1, X20; __s                                           ; +0x34, 0x10008ce28\nBL              sub_100009900                                          ; +0x38, 0x10008ce2c\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008ce30\nMOV             X0, X21; int                                           ; +0x40, 0x10008ce34\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008ce38\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008ce3c\nTBZ             W8, #0x1F, loc_10008CE4C                               ; +0x4c, 0x10008ce40\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008ce44\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008ce48\nMOV             X1, X20                                                ; +0x58, 0x10008ce4c\nMOV             W2, #1                                                 ; +0x5c, 0x10008ce50\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008ce54\nMOV             X21, X0                                                ; +0x64, 0x10008ce58\nADRL            X1, a1_0; \"-1\"                                         ; +0x68, 0x10008ce5c\nADD             X0, SP, #0x40+__p; int                                 ; +0x70, 0x10008ce64\nBL              sub_100009900                                          ; +0x74, 0x10008ce68\nADD             X1, SP, #0x40+__p                                      ; +0x78, 0x10008ce6c\nMOV             X0, X22                                                ; +0x7c, 0x10008ce70\nBL              sub_1000045BC                                          ; +0x80, 0x10008ce74\nMOV             X22, X0                                                ; +0x84, 0x10008ce78\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x88, 0x10008ce7c\nTBNZ            W8, #0x1F, loc_10008CEB4                               ; +0x8c, 0x10008ce80\nCBZ             W22, loc_10008CEC0                                     ; +0x90, 0x10008ce84\nLDR             X0, [X19,#0x328]                                       ; +0x94, 0x10008ce88\nCBZ             X0, loc_10008CEA4                                      ; +0x98, 0x10008ce8c\nLDR             X8, [X0]                                               ; +0x9c, 0x10008ce90\nLDR             X8, [X8,#8]                                            ; +0xa0, 0x10008ce94\nMOV             X1, X21                                                ; +0xa4, 0x10008ce98\nMOV             W2, #0x1D                                              ; +0xa8, 0x10008ce9c\nBLR             X8                                                     ; +0xac, 0x10008cea0\nMOV             X0, X19                                                ; +0xb0, 0x10008cea4\nMOV             X1, X20                                                ; +0xb4, 0x10008cea8\nBL              GameLevelManager__resetTimerForKey                     ; +0xb8, 0x10008ceac\nB               loc_10008CF0C                                          ; +0xbc, 0x10008ceb0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0xc0, 0x10008ceb4\nBL              __ZdlPv; operator delete(void *)                       ; +0xc4, 0x10008ceb8\nCBNZ            W22, loc_10008CE88                                     ; +0xc8, 0x10008cebc\nLDR             X0, [X19,#0x268]                                       ; +0xcc, 0x10008cec0\nSXTW            X1, W21                                                ; +0xd0, 0x10008cec4\nBL              cocos2d__CCDictionary__objectForKey                    ; +0xd4, 0x10008cec8\nCBZ             X0, loc_10008CEF0                                      ; +0xd8, 0x10008cecc\nMOV             X1, X0                                                 ; +0xdc, 0x10008ced0\nMOV             W8, #4                                                 ; +0xe0, 0x10008ced4\nSTR             W8, [X0,#0x2A0]                                        ; +0xe4, 0x10008ced8\nLDR             X0, [X19,#0x320]                                       ; +0xe8, 0x10008cedc\nCBZ             X0, loc_10008CEF0                                      ; +0xec, 0x10008cee0\nLDR             X8, [X0]                                               ; +0xf0, 0x10008cee4\nLDR             X8, [X8,#0x10]                                         ; +0xf4, 0x10008cee8\nBLR             X8                                                     ; +0xf8, 0x10008ceec\nLDR             X0, [X19,#0x328]                                       ; +0xfc, 0x10008cef0\nCBZ             X0, loc_10008CF0C                                      ; +0x100, 0x10008cef4\nLDR             X8, [X0]                                               ; +0x104, 0x10008cef8\nLDR             X8, [X8]                                               ; +0x108, 0x10008cefc\nMOV             X1, X21                                                ; +0x10c, 0x10008cf00\nMOV             W2, #0x1D                                              ; +0x110, 0x10008cf04\nBLR             X8                                                     ; +0x114, 0x10008cf08\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x118, 0x10008cf0c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x11c, 0x10008cf10\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x120, 0x10008cf14\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x124, 0x10008cf18\nRET                                                                    ; +0x128, 0x10008cf1c", "xrefs": ["GameLevelManager::handleIt @ 0x100088c24"], "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"}