{"type": "func", "start": 9973940, "end": 9974276, "name": "GJMultiplayerManager::getBasePostString", "pseudocode": "// \n// GJMultiplayerManager::getBasePostString from 0x9830b4 to 0x983204 (336 bytes)\n// \n// 4 xrefs:\n// > GJMultiplayerManager::joinLobby @ 0x9832a4\n// > GJMultiplayerManager::exitLobby @ 0x983624\n// > GJMultiplayerManager::uploadComment @ 0x983ae4\n// > <???> @ 0x73db8\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\n__int64 __usercall GJMultiplayerManager::getBasePostString@<X0>(GJMultiplayerManager *this@<X0>, __int64 a2@<X8>)\n{\n  GameLevelManager *v3; // x0\n  size_t v4; // x0\n  char *v5; // x0\n  unsigned int *v7; // x2\n  int v8; // w1\n  char *v9; // [xsp+38h] [xbp+38h]\n  char *v10; // [xsp+50h] [xbp+50h] BYREF\n\n  v3 = GameLevelManager::sharedState();\n  GameLevelManager::getBasePostString(v3, a2);\n  sub_D15FD4(a2, \"&username=\", 10);\n  GJAccountManager::sharedState();\n  sub_D18D28(&v10);\n  v9 = v10;\n  v4 = strlen(v10);\n  sub_D15FD4(a2, v9, v4);\n  v5 = v10 - 24;\n  if ( v10 - 24 != (char *)&qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v7 = (unsigned int *)(v10 - 8);\n      do\n        v8 = __ldaxr(v7);\n      while ( __stlxr(v8 - 1, v7) );\n    }\n    else\n    {\n      v8 = *((_DWORD *)v10 - 2);\n      *((_DWORD *)v10 - 2) = v8 - 1;\n    }\n    if ( v8 <= 0 )\n      operator delete(v5);\n  }\n  return a2;\n}", "assembly": "; \n; GJMultiplayerManager::getBasePostString from 0x9830b4 to 0x983204 (336 bytes)\n; \n; 4 xrefs:\n; > GJMultiplayerManager::joinLobby @ 0x9832a4\n; > GJMultiplayerManager::exitLobby @ 0x983624\n; > GJMultiplayerManager::uploadComment @ 0x983ae4\n; > <???> @ 0x73db8\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x9830b4\nMOV             X29, SP                                                ; +0x4, 0x9830b8\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x9830bc\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9830c0\nMOV             X19, X8                                                ; +0x10, 0x9830c4\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x14, 0x9830c8\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x9830cc\nLDR             X0, [X0]; this                                         ; +0x1c, 0x9830d0\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x20, 0x9830d4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x24, 0x9830d8\nMOV             X8, X19                                                ; +0x28, 0x9830dc\nBL              _ZN16GameLevelManager17getBasePostStringEv; GameLevelManager::getBasePostString(void) ; +0x2c, 0x9830e0\nADRP            X1, #aUsername_1@PAGE; \"&username=\"                    ; +0x30, 0x9830e4\nMOV             X0, X19                                                ; +0x34, 0x9830e8\nADD             X1, X1, #aUsername_1@PAGEOFF; \"&username=\"             ; +0x38, 0x9830ec\nMOV             X2, #0xA                                               ; +0x3c, 0x9830f0\nBL              sub_D15FD4                                             ; +0x40, 0x9830f4\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x44, 0x9830f8\nADD             X1, X0, #0x148                                         ; +0x48, 0x9830fc\nADD             X0, X29, #0x60+var_10                                  ; +0x4c, 0x983100\nBL              sub_D18D28                                             ; +0x50, 0x983104\nLDR             X1, [X29,#0x60+var_10]                                 ; +0x54, 0x983108\nSTR             X1, [X29,#0x60+var_28]                                 ; +0x58, 0x98310c\nMOV             X0, X1; char *                                         ; +0x5c, 0x983110\nBL              .strlen                                                ; +0x60, 0x983114\nMOV             X2, X0                                                 ; +0x64, 0x983118\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x68, 0x98311c\nMOV             X0, X19                                                ; +0x6c, 0x983120\nBL              sub_D15FD4                                             ; +0x70, 0x983124\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x74, 0x983128\nLDR             X2, [X29,#0x60+var_10]                                 ; +0x78, 0x98312c\nSUB             X0, X2, #0x18; p                                       ; +0x7c, 0x983130\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x80, 0x983134\nCMP             X0, X1                                                 ; +0x84, 0x983138\nB.NE            loc_983168                                             ; +0x88, 0x98313c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x8c, 0x983140\nMOV             X0, X19                                                ; +0x90, 0x983144\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x94, 0x983148\nLDR             X1, [X20]                                              ; +0x98, 0x98314c\nCMP             X2, X1                                                 ; +0x9c, 0x983150\nB.NE            loc_9831AC                                             ; +0xa0, 0x983154\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xa4, 0x983158\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xa8, 0x98315c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xac, 0x983160\nRET                                                                    ; +0xb0, 0x983164\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xb4, 0x983168\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xb8, 0x98316c\nCBZ             X1, loc_98319C                                         ; +0xbc, 0x983170\nSUB             X2, X2, #8                                             ; +0xc0, 0x983174\nLDAXR           W1, [X2]                                               ; +0xc4, 0x983178\nSUB             W3, W1, #1                                             ; +0xc8, 0x98317c\nSTLXR           W4, W3, [X2]                                           ; +0xcc, 0x983180\nCBNZ            W4, loc_983178                                         ; +0xd0, 0x983184\nCMP             W1, WZR                                                ; +0xd4, 0x983188\nB.GT            loc_983140                                             ; +0xd8, 0x98318c\nADD             X1, X29, #0x60+var_18                                  ; +0xdc, 0x983190\nBL              j__ZdlPv; operator delete(void *)                      ; +0xe0, 0x983194\nB               loc_983140                                             ; +0xe4, 0x983198\nLDUR            W1, [X2,#-8]                                           ; +0xe8, 0x98319c\nSUB             W3, W1, #1                                             ; +0xec, 0x9831a0\nSTUR            W3, [X2,#-8]                                           ; +0xf0, 0x9831a4\nB               loc_983188                                             ; +0xf4, 0x9831a8\nBL              .__stack_chk_fail                                      ; +0xf8, 0x9831ac\nADRP            X20, #off_122EFE8@PAGE                                 ; +0xfc, 0x9831b0\nMOV             X21, X0                                                ; +0x100, 0x9831b4\nLDR             X0, [X29,#0x60+var_10]                                 ; +0x104, 0x9831b8\nLDR             X1, [X20,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0x108, 0x9831bc\nSUB             X0, X0, #0x18                                          ; +0x10c, 0x9831c0\nCMP             X0, X1                                                 ; +0x110, 0x9831c4\nB.EQ            loc_9831D4                                             ; +0x114, 0x9831c8\nADD             X1, X29, #0x60+var_18                                  ; +0x118, 0x9831cc\nBL              sub_4DD360                                             ; +0x11c, 0x9831d0\nLDR             X0, [X19]                                              ; +0x120, 0x9831d4\nLDR             X20, [X20,#off_122EFE8@PAGEOFF]; qword_124B6B0         ; +0x124, 0x9831d8\nSUB             X0, X0, #0x18                                          ; +0x128, 0x9831dc\nCMP             X0, X20                                                ; +0x12c, 0x9831e0\nB.EQ            loc_9831F0                                             ; +0x130, 0x9831e4\nADD             X1, X29, #0x60+var_18                                  ; +0x134, 0x9831e8\nBL              sub_4DD360                                             ; +0x138, 0x9831ec\nMOV             X0, X21                                                ; +0x13c, 0x9831f0\nBL              _Unwind_Resume                                         ; +0x140, 0x9831f4\nMOV             X21, X0                                                ; +0x144, 0x9831f8\nADRP            X20, #off_122EFE8@PAGE                                 ; +0x148, 0x9831fc\nB               loc_9831D4                                             ; +0x14c, 0x983200", "xrefs": ["GJMultiplayerManager::joinLobby @ 0x9832a4", "GJMultiplayerManager::exitLobby @ 0x983624", "GJMultiplayerManager::uploadComment @ 0x983ae4", "<???> @ 0x73db8"], "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"}