{"type": "func", "start": 5370161376, "end": 5370161539, "name": "GameLevelManager::removeUserFromList", "pseudocode": "// \n// GameLevelManager::removeUserFromList from 0x1401628e0 to 0x140162983 (163 bytes)\n// \n// 5 xrefs:\n// > GameLevelManager::onBlockUserCompleted @ 0x1401623d3\n// > GameLevelManager::onUnblockUserCompleted @ 0x14016288d\n// > <???> @ 0x140674f2c\n// > <???> @ 0x140674f3c\n// > <???> @ 0x1406cabe4\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 GameLevelManager::removeUserFromList(GameLevelManager *a1, int a2, UserListType a3)\n{\n  cocos2d::CCArray *StoredUserList; // rax\n  cocos2d::CCArray *v7; // rdi\n  unsigned int v8; // ebx\n  UserListDelegate *m_userListDelegate; // rcx\n\n  StoredUserList = GameLevelManager::getStoredUserList(a1, a3);\n  v7 = StoredUserList;\n  if ( StoredUserList )\n  {\n    v8 = 0;\n    if ( cocos2d::CCArray::count(StoredUserList) )\n    {\n      while ( LODWORD(cocos2d::CCArray::objectAtIndex(v7, v8)[7].__vftable) != a2 )\n      {\n        if ( ++v8 >= cocos2d::CCArray::count(v7) )\n          return;\n      }\n      cocos2d::CCArray::removeObjectAtIndex(v7, v8, 1);\n      m_userListDelegate = a1->m_userListDelegate;\n      if ( m_userListDelegate )\n        m_userListDelegate->userListChanged(m_userListDelegate, v7, a3);\n    }\n  }\n}", "assembly": "; \n; GameLevelManager::removeUserFromList from 0x1401628e0 to 0x140162983 (163 bytes)\n; \n; 5 xrefs:\n; > GameLevelManager::onBlockUserCompleted @ 0x1401623d3\n; > GameLevelManager::onUnblockUserCompleted @ 0x14016288d\n; > <???> @ 0x140674f2c\n; > <???> @ 0x140674f3c\n; > <???> @ 0x1406cabe4\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\nmov     [rsp+arg_8], rbp                                               ; +0x0, 0x1401628e0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1401628e5\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1401628ea\npush    r14                                                            ; +0xf, 0x1401628ef\nsub     rsp, 20h                                                       ; +0x11, 0x1401628f1\nmov     esi, edx                                                       ; +0x15, 0x1401628f5\nmov     ebp, r8d                                                       ; +0x17, 0x1401628f7\nmov     edx, r8d                                                       ; +0x1a, 0x1401628fa\nmov     r14, rcx                                                       ; +0x1d, 0x1401628fd\ncall    GameLevelManager__getStoredUserList                            ; +0x20, 0x140162900\nmov     rdi, rax                                                       ; +0x25, 0x140162905\ntest    rax, rax                                                       ; +0x28, 0x140162908\njz      short loc_14016296D                                            ; +0x2b, 0x14016290b\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2d, 0x14016290d\nmov     rcx, rax                                                       ; +0x32, 0x140162912\nxor     ebx, ebx                                                       ; +0x35, 0x140162915\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x140162917\ntest    eax, eax                                                       ; +0x3d, 0x14016291d\njz      short loc_140162968                                            ; +0x3f, 0x14016291f\nmov     edx, ebx                                                       ; +0x41, 0x140162921\nmov     rcx, rdi                                                       ; +0x43, 0x140162923\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x46, 0x140162926\nmov     rcx, rdi                                                       ; +0x4c, 0x14016292c\ncmp     [rax+188h], esi                                                ; +0x4f, 0x14016292f\njz      short loc_140162945                                            ; +0x55, 0x140162935\ninc     ebx                                                            ; +0x57, 0x140162937\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x59, 0x140162939\ncmp     ebx, eax                                                       ; +0x5f, 0x14016293f\njb      short loc_140162921                                            ; +0x61, 0x140162941\njmp     short loc_140162968                                            ; +0x63, 0x140162943\nmov     r8b, 1                                                         ; +0x65, 0x140162945\nmov     edx, ebx                                                       ; +0x68, 0x140162948\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x6a, 0x14016294a\nmov     rcx, [r14+330h]                                                ; +0x70, 0x140162950\ntest    rcx, rcx                                                       ; +0x77, 0x140162957\njz      short loc_140162968                                            ; +0x7a, 0x14016295a\nmov     rax, [rcx]                                                     ; +0x7c, 0x14016295c\nmov     r8d, ebp                                                       ; +0x7f, 0x14016295f\nmov     rdx, rdi                                                       ; +0x82, 0x140162962\ncall    qword ptr [rax+10h]                                            ; +0x85, 0x140162965\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x88, 0x140162968\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x8d, 0x14016296d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x92, 0x140162972\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x97, 0x140162977\nadd     rsp, 20h                                                       ; +0x9c, 0x14016297c\npop     r14                                                            ; +0xa0, 0x140162980\nretn                                                                   ; +0xa2, 0x140162982", "xrefs": ["GameLevelManager::onBlockUserCompleted @ 0x1401623d3", "GameLevelManager::onUnblockUserCompleted @ 0x14016288d", "<???> @ 0x140674f2c", "<???> @ 0x140674f3c", "<???> @ 0x1406cabe4"], "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"}