{"type": "func", "start": 4296864240, "end": 4296864396, "name": "GJMultiplayerManager::getBasePostString", "pseudocode": "// \n// GJMultiplayerManager::getBasePostString from 0x1001cf1f0 to 0x1001cf28c (156 bytes)\n// \n// 1 xrefs:\n// > GJMultiplayerManager::uploadComment @ 0x1001cf7dc\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 __usercall GJMultiplayerManager::getBasePostString(std::string *a1@<X8>)\n{\n  GJAccountManager *v2; // x0\n  void **v3; // x1\n  void *__p[2]; // [xsp+0h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-20h]\n\n  GameLevelManager::sharedState();\n  GameLevelManager::getBasePostString(a1);\n  std::string::append(a1, \"&username=\");\n  v2 = GJAccountManager::sharedState();\n  if ( v2->m_username.m_data.m_short.shortStorage.__elems_[22] < 0 )\n  {\n    sub_1000097D0(__p, (void *)v2->m_username.m_data.m_long.capacitym1, v2->m_username.m_data.m_long.size);\n  }\n  else\n  {\n    *(_OWORD *)__p = *(_OWORD *)&v2->m_username.m_data.m_short.sizex2;\n    longStorage = v2->m_username.m_data.m_long.longStorage;\n  }\n  if ( SHIBYTE(longStorage) >= 0 )\n    v3 = __p;\n  else\n    v3 = (void **)__p[0];\n  std::string::append(a1, (const std::string::value_type *)v3);\n  if ( SHIBYTE(longStorage) < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GJMultiplayerManager::getBasePostString from 0x1001cf1f0 to 0x1001cf28c (156 bytes)\n; \n; 1 xrefs:\n; > GJMultiplayerManager::uploadComment @ 0x1001cf7dc\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, #0x40                                          ; +0x0, 0x1001cf1f0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1001cf1f4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1001cf1f8\nADD             X29, SP, #0x30                                         ; +0xc, 0x1001cf1fc\nMOV             X19, X8                                                ; +0x10, 0x1001cf200\nBL              GameLevelManager__sharedState                          ; +0x14, 0x1001cf204\nMOV             X8, X19                                                ; +0x18, 0x1001cf208\nBL              GameLevelManager__getBasePostString                    ; +0x1c, 0x1001cf20c\nADRL            X1, aUsername_1; \"&username=\"                          ; +0x20, 0x1001cf210\nMOV             X0, X19; this                                          ; +0x28, 0x1001cf218\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x2c, 0x1001cf21c\nBL              GJAccountManager__sharedState                          ; +0x30, 0x1001cf220\nLDRSB           W8, [X0,#0x15F]                                        ; +0x34, 0x1001cf224\nTBNZ            W8, #0x1F, loc_1001CF244                               ; +0x38, 0x1001cf228\nADD             X8, X0, #0x148                                         ; +0x3c, 0x1001cf22c\nLDR             Q0, [X8]                                               ; +0x40, 0x1001cf230\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x44, 0x1001cf234\nLDR             X8, [X8,#0x10]                                         ; +0x48, 0x1001cf238\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x4c, 0x1001cf23c\nB               loc_1001CF250                                          ; +0x50, 0x1001cf240\nLDP             X1, X2, [X0,#0x148]; __src                             ; +0x54, 0x1001cf244\nMOV             X0, SP; __dst                                          ; +0x58, 0x1001cf248\nBL              sub_1000097D0                                          ; +0x5c, 0x1001cf24c\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x60, 0x1001cf250\nLDR             X9, [SP,#0x30+__p]                                     ; +0x64, 0x1001cf254\nCMP             W8, #0                                                 ; +0x68, 0x1001cf258\nMOV             X8, SP                                                 ; +0x6c, 0x1001cf25c\nCSEL            X1, X9, X8, LT; __s                                    ; +0x70, 0x1001cf260\nMOV             X0, X19; this                                          ; +0x74, 0x1001cf264\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x78, 0x1001cf268\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0x7c, 0x1001cf26c\nTBZ             W8, #0x1F, loc_1001CF27C                               ; +0x80, 0x1001cf270\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x84, 0x1001cf274\nBL              __ZdlPv; operator delete(void *)                       ; +0x88, 0x1001cf278\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x1001cf27c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x1001cf280\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x1001cf284\nRET                                                                    ; +0x98, 0x1001cf288", "xrefs": ["GJMultiplayerManager::uploadComment @ 0x1001cf7dc"], "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"}