{"type": "func", "start": 4295546296, "end": 4295546556, "name": "GameLevelManager::onUnblockUserCompleted", "pseudocode": "// \n// GameLevelManager::onUnblockUserCompleted from 0x10008d5b8 to 0x10008d6bc (260 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::handleIt @ 0x100088b60\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::onUnblockUserCompleted(GameLevelManager *a1, _QWORD *a2, char *__s)\n{\n  char *v3; // x20\n  cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x22\n  GameLevelManager *v7; // x0\n  __int64 SplitIntFromKey; // x20\n  _BOOL4 v9; // w21\n  UploadActionDelegate *m_uploadActionDelegate; // x0\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  m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;\n  sub_100009900(__p, v3);\n  v7 = (GameLevelManager *)cocos2d::CCDictionary::removeObjectForKey_1((int)m_friendReqAndUserBlocks, (char *)__p);\n  if ( v12 < 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  if ( v12 < 0 )\n    operator delete(__p[0]);\n  m_uploadActionDelegate = a1->m_uploadActionDelegate;\n  if ( v9 )\n  {\n    if ( m_uploadActionDelegate )\n      ((void (__fastcall *)(UploadActionDelegate *, __int64, __int64))m_uploadActionDelegate->uploadActionFailed)(\n        m_uploadActionDelegate,\n        SplitIntFromKey,\n        35);\n  }\n  else\n  {\n    if ( m_uploadActionDelegate )\n      ((void (__fastcall *)(UploadActionDelegate *, __int64, __int64))m_uploadActionDelegate->uploadActionFinished)(\n        m_uploadActionDelegate,\n        SplitIntFromKey,\n        35);\n    cocos2d::CCDictionary::removeObjectForKey(a1->m_storedUserInfo, (int)SplitIntFromKey);\n    GameLevelManager::removeUserFromList(a1, SplitIntFromKey, Blocked);\n  }\n}", "assembly": "; \n; GameLevelManager::onUnblockUserCompleted from 0x10008d5b8 to 0x10008d6bc (260 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::handleIt @ 0x100088b60\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, 0x10008d5b8\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10008d5bc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10008d5c0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10008d5c4\nADD             X29, SP, #0x40                                         ; +0x10, 0x10008d5c8\nMOV             X20, X2                                                ; +0x14, 0x10008d5cc\nMOV             X21, X1                                                ; +0x18, 0x10008d5d0\nMOV             X19, X0                                                ; +0x1c, 0x10008d5d4\nLDRSB           W8, [X2,#0x17]                                         ; +0x20, 0x10008d5d8\nTBZ             W8, #0x1F, loc_10008D5E4                               ; +0x24, 0x10008d5dc\nLDR             X20, [X20]                                             ; +0x28, 0x10008d5e0\nLDR             X22, [X19,#0x260]                                      ; +0x2c, 0x10008d5e4\nADD             X0, SP, #0x40+__p; int                                 ; +0x30, 0x10008d5e8\nMOV             X1, X20; __s                                           ; +0x34, 0x10008d5ec\nBL              sub_100009900                                          ; +0x38, 0x10008d5f0\nADD             X1, SP, #0x40+__p; __s                                 ; +0x3c, 0x10008d5f4\nMOV             X0, X22; int                                           ; +0x40, 0x10008d5f8\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x44, 0x10008d5fc\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x48, 0x10008d600\nTBZ             W8, #0x1F, loc_10008D610                               ; +0x4c, 0x10008d604\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x50, 0x10008d608\nBL              __ZdlPv; operator delete(void *)                       ; +0x54, 0x10008d60c\nMOV             X1, X20                                                ; +0x58, 0x10008d610\nMOV             W2, #1                                                 ; +0x5c, 0x10008d614\nBL              GameLevelManager__getSplitIntFromKey                   ; +0x60, 0x10008d618\nMOV             X20, X0                                                ; +0x64, 0x10008d61c\nADRL            X1, a1_0; \"-1\"                                         ; +0x68, 0x10008d620\nADD             X0, SP, #0x40+__p; int                                 ; +0x70, 0x10008d628\nBL              sub_100009900                                          ; +0x74, 0x10008d62c\nADD             X1, SP, #0x40+__p                                      ; +0x78, 0x10008d630\nMOV             X0, X21                                                ; +0x7c, 0x10008d634\nBL              sub_1000045BC                                          ; +0x80, 0x10008d638\nMOV             X21, X0                                                ; +0x84, 0x10008d63c\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x88, 0x10008d640\nTBZ             W8, #0x1F, loc_10008D650                               ; +0x8c, 0x10008d644\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x90, 0x10008d648\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x10008d64c\nLDR             X0, [X19,#0x328]                                       ; +0x98, 0x10008d650\nCBZ             W21, loc_10008D674                                     ; +0x9c, 0x10008d654\nCBZ             X0, loc_10008D6A8                                      ; +0xa0, 0x10008d658\nLDR             X8, [X0]                                               ; +0xa4, 0x10008d65c\nLDR             X8, [X8,#8]                                            ; +0xa8, 0x10008d660\nMOV             X1, X20                                                ; +0xac, 0x10008d664\nMOV             W2, #0x23 ; '#'                                        ; +0xb0, 0x10008d668\nBLR             X8                                                     ; +0xb4, 0x10008d66c\nB               loc_10008D6A8                                          ; +0xb8, 0x10008d670\nCBZ             X0, loc_10008D68C                                      ; +0xbc, 0x10008d674\nLDR             X8, [X0]                                               ; +0xc0, 0x10008d678\nLDR             X8, [X8]                                               ; +0xc4, 0x10008d67c\nMOV             X1, X20                                                ; +0xc8, 0x10008d680\nMOV             W2, #0x23 ; '#'                                        ; +0xcc, 0x10008d684\nBLR             X8                                                     ; +0xd0, 0x10008d688\nLDR             X0, [X19,#0x268]                                       ; +0xd4, 0x10008d68c\nSXTW            X1, W20                                                ; +0xd8, 0x10008d690\nBL              cocos2d__CCDictionary__removeObjectForKey              ; +0xdc, 0x10008d694\nMOV             X0, X19                                                ; +0xe0, 0x10008d698\nMOV             X1, X20                                                ; +0xe4, 0x10008d69c\nMOV             W2, #1                                                 ; +0xe8, 0x10008d6a0\nBL              GameLevelManager__removeUserFromList                   ; +0xec, 0x10008d6a4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xf0, 0x10008d6a8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xf4, 0x10008d6ac\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xf8, 0x10008d6b0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xfc, 0x10008d6b4\nRET                                                                    ; +0x100, 0x10008d6b8", "xrefs": ["GameLevelManager::handleIt @ 0x100088b60"], "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"}