{"type": "func", "start": 4295799460, "end": 4295799576, "name": "GameLevelManager::storedFriendForAccountID", "pseudocode": "// \n// GameLevelManager::storedFriendForAccountID from 0x1000cb2a4 to 0x1000cb318 (116 bytes)\n// \n// 1 xrefs:\n// > GJCompactUserCell::buildUserRow @ 0x100139578\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:58:51 +0000\n// \n\n__int64 __fastcall GameLevelManager::storedFriendForAccountID(__int64 a1, int a2)\n{\n  __int64 StoredUserList; // x8\n  __int64 result; // x0\n  unsigned int *v5; // x8\n  __int64 v6; // x9\n  __int64 *v7; // x8\n  unsigned __int64 v8; // x9\n\n  StoredUserList = GameLevelManager::getStoredUserList(a1, 0);\n  result = 0;\n  if ( a2 >= 1 && StoredUserList )\n  {\n    v5 = *(unsigned int **)(StoredUserList + 56);\n    v6 = *v5;\n    if ( (_DWORD)v6 )\n    {\n      v7 = *((__int64 **)v5 + 2);\n      v8 = (unsigned __int64)&v7[v6 - 1];\n      while ( 1 )\n      {\n        result = *v7;\n        if ( !*v7 || *(_DWORD *)(result + 376) == a2 )\n          break;\n        if ( (unsigned __int64)++v7 > v8 )\n          return 0;\n      }\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::storedFriendForAccountID from 0x1000cb2a4 to 0x1000cb318 (116 bytes)\n; \n; 1 xrefs:\n; > GJCompactUserCell::buildUserRow @ 0x100139578\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:58:51 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000cb2a4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000cb2a8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000cb2ac\nMOV             X19, X1                                                ; +0xc, 0x1000cb2b0\nMOV             W1, #0                                                 ; +0x10, 0x1000cb2b4\nBL              GameLevelManager__getStoredUserList                    ; +0x14, 0x1000cb2b8\nMOV             X8, X0                                                 ; +0x18, 0x1000cb2bc\nMOV             X0, #0                                                 ; +0x1c, 0x1000cb2c0\nCMP             W19, #1                                                ; +0x20, 0x1000cb2c4\nB.LT            loc_1000CB30C                                          ; +0x24, 0x1000cb2c8\nCBZ             X8, loc_1000CB30C                                      ; +0x28, 0x1000cb2cc\nLDR             X8, [X8,#0x38]                                         ; +0x2c, 0x1000cb2d0\nLDR             W9, [X8]                                               ; +0x30, 0x1000cb2d4\nCBZ             W9, loc_1000CB308                                      ; +0x34, 0x1000cb2d8\nLDR             X8, [X8,#0x10]                                         ; +0x38, 0x1000cb2dc\nADD             X9, X8, X9,LSL#3                                       ; +0x3c, 0x1000cb2e0\nSUB             X9, X9, #8                                             ; +0x40, 0x1000cb2e4\nLDR             X0, [X8]                                               ; +0x44, 0x1000cb2e8\nCBZ             X0, loc_1000CB30C                                      ; +0x48, 0x1000cb2ec\nLDR             W10, [X0,#0x178]                                       ; +0x4c, 0x1000cb2f0\nCMP             W10, W19                                               ; +0x50, 0x1000cb2f4\nB.EQ            loc_1000CB30C                                          ; +0x54, 0x1000cb2f8\nADD             X8, X8, #8                                             ; +0x58, 0x1000cb2fc\nCMP             X8, X9                                                 ; +0x5c, 0x1000cb300\nB.LS            loc_1000CB2E8                                          ; +0x60, 0x1000cb304\nMOV             X0, #0                                                 ; +0x64, 0x1000cb308\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x1000cb30c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x1000cb310\nRET                                                                    ; +0x70, 0x1000cb314", "xrefs": ["GJCompactUserCell::buildUserRow @ 0x100139578"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}