{"type": "func", "start": 4300460672, "end": 4300460852, "name": "GameLevelManager::onGetFollowingCompleted", "pseudocode": "// \n// GameLevelManager::onGetFollowingCompleted from 0x10053d280 to 0x10053d334 (180 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x1005206a5\n// > GameLevelManager::handleIt @ 0x100520e09\n// \n// This function is hookable on this platform (idp: pc, 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 12:31:55 +0000\n// \n\nvoid __fastcall GameLevelManager::onGetFollowingCompleted(__int64 a1, unsigned __int8 *a2, __int64 a3)\n{\n  __int64 v4; // rdx\n  unsigned int v5; // eax\n  unsigned __int8 *v6; // rdx\n  __int64 v7; // rax\n  __int64 v8; // rsi\n  unsigned __int8 v9; // cl\n  __int64 v10; // rax\n\n  if ( (*(_BYTE *)a3 & 1) != 0 )\n    v4 = *(_QWORD *)(a3 + 16);\n  else\n    v4 = a3 + 1;\n  GameLevelManager::removeDLFromActive(a1, v4);\n  v5 = *a2;\n  if ( (v5 & 1) != 0 )\n  {\n    v7 = *((_QWORD *)a2 + 1);\n    if ( !v7 )\n      return;\n    v6 = *((unsigned __int8 **)a2 + 2);\n  }\n  else\n  {\n    if ( !*a2 )\n      return;\n    v6 = a2 + 1;\n    v7 = v5 >> 1;\n  }\n  v8 = 0;\n  while ( 1 )\n  {\n    v9 = v6[v8];\n    if ( v9 > 0x3Fu || ((1LL << v9) & 0x3FF100000000000LL) == 0 )\n      break;\n    if ( v7 == ++v8 )\n      goto LABEL_16;\n  }\n  if ( v8 != -1 )\n    return;\nLABEL_16:\n  sub_100576C60(a1, a2);\n  v10 = GameManager::sharedState();\n  GameManager::setGameVariable(v10, (std::string::value_type *)\"0241\");\n}", "assembly": "; \n; GameLevelManager::onGetFollowingCompleted from 0x10053d280 to 0x10053d334 (180 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x1005206a5\n; > GameLevelManager::handleIt @ 0x100520e09\n; \n; This function is hookable on this platform (idp: pc, 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 12:31:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x10053d280\nmov     rbp, rsp                                                       ; +0x1, 0x10053d281\npush    r14                                                            ; +0x4, 0x10053d284\npush    rbx                                                            ; +0x6, 0x10053d286\nmov     rbx, rsi                                                       ; +0x7, 0x10053d287\nmov     r14, rdi                                                       ; +0xa, 0x10053d28a\ntest    byte ptr [rdx], 1                                              ; +0xd, 0x10053d28d\njnz     short loc_10053D297                                            ; +0x10, 0x10053d290\ninc     rdx                                                            ; +0x12, 0x10053d292\njmp     short loc_10053D29B                                            ; +0x15, 0x10053d295\nmov     rdx, [rdx+10h]                                                 ; +0x17, 0x10053d297\nmov     rdi, r14                                                       ; +0x1b, 0x10053d29b\nmov     rsi, rdx                                                       ; +0x1e, 0x10053d29e\ncall    GameLevelManager__removeDLFromActive                           ; +0x21, 0x10053d2a1\nmovzx   eax, byte ptr [rbx]                                            ; +0x26, 0x10053d2a6\ntest    al, 1                                                          ; +0x29, 0x10053d2a9\njnz     short loc_10053D2BA                                            ; +0x2b, 0x10053d2ab\ntest    rax, rax                                                       ; +0x2d, 0x10053d2ad\njz      short loc_10053D307                                            ; +0x30, 0x10053d2b0\nlea     rdx, [rbx+1]                                                   ; +0x32, 0x10053d2b2\nshr     eax, 1                                                         ; +0x36, 0x10053d2b6\njmp     short loc_10053D2C7                                            ; +0x38, 0x10053d2b8\nmov     rax, [rbx+8]                                                   ; +0x3a, 0x10053d2ba\ntest    rax, rax                                                       ; +0x3e, 0x10053d2be\njz      short loc_10053D307                                            ; +0x41, 0x10053d2c1\nmov     rdx, [rbx+10h]                                                 ; +0x43, 0x10053d2c3\nxor     esi, esi                                                       ; +0x47, 0x10053d2c7\nmov     rdi, 3FF100000000000h                                          ; +0x49, 0x10053d2c9\nnop     word ptr [rax+rax+00000000h]                                   ; +0x53, 0x10053d2d3\nmovzx   ecx, byte ptr [rdx+rsi]                                        ; +0x60, 0x10053d2e0\nmov     r8d, 1                                                         ; +0x64, 0x10053d2e4\nshl     r8, cl                                                         ; +0x6a, 0x10053d2ea\ncmp     cl, 3Fh ; '?'                                                  ; +0x6d, 0x10053d2ed\nja      short loc_10053D301                                            ; +0x70, 0x10053d2f0\nand     r8, rdi                                                        ; +0x72, 0x10053d2f2\njz      short loc_10053D301                                            ; +0x75, 0x10053d2f5\ninc     rsi                                                            ; +0x77, 0x10053d2f7\ncmp     rax, rsi                                                       ; +0x7a, 0x10053d2fa\njnz     short loc_10053D2E0                                            ; +0x7d, 0x10053d2fd\njmp     short loc_10053D30C                                            ; +0x7f, 0x10053d2ff\ncmp     rsi, 0FFFFFFFFFFFFFFFFh                                        ; +0x81, 0x10053d301\njz      short loc_10053D30C                                            ; +0x85, 0x10053d305\npop     rbx                                                            ; +0x87, 0x10053d307\npop     r14                                                            ; +0x88, 0x10053d308\npop     rbp                                                            ; +0x8a, 0x10053d30a\nretn                                                                   ; +0x8b, 0x10053d30b\nmov     rdi, r14                                                       ; +0x8c, 0x10053d30c\nmov     rsi, rbx                                                       ; +0x8f, 0x10053d30f\ncall    sub_100576C60                                                  ; +0x92, 0x10053d312\ncall    GameManager__sharedState                                       ; +0x97, 0x10053d317\nlea     rsi, a0241; \"0241\"                                             ; +0x9c, 0x10053d31c\nmov     rdi, rax                                                       ; +0xa3, 0x10053d323\nmov     edx, 1                                                         ; +0xa6, 0x10053d326\npop     rbx                                                            ; +0xab, 0x10053d32b\npop     r14                                                            ; +0xac, 0x10053d32c\npop     rbp                                                            ; +0xae, 0x10053d32e\njmp     GameManager__setGameVariable                                   ; +0xaf, 0x10053d32f", "xrefs": ["GameLevelManager::handleIt @ 0x1005206a5", "GameLevelManager::handleIt @ 0x100520e09"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}