{"type": "func", "start": 4298763164, "end": 4298763368, "name": "GJAccountManager::onProcessHttpRequestCompleted", "pseudocode": "// \n// GJAccountManager::onProcessHttpRequestCompleted from 0x10039eb9c to 0x10039ec68 (204 bytes)\n// \n// 1 xrefs:\n// > GJAccountManager::ProcessHttpRequest @ 0x10039eaf0\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 __fastcall GJAccountManager::onProcessHttpRequestCompleted(\n        GJAccountManager *a1,\n        cocos2d::extension::CCHttpClient *a2,\n        cocos2d::extension::CCHttpResponse *a3)\n{\n  int v3; // w19\n  cocos2d::extension::CCHttpRequest *pHttpRequest; // x8\n  char *p_tag; // x21\n  void *__p; // [xsp+8h] [xbp-68h] BYREF\n  char v7; // [xsp+1Fh] [xbp-51h]\n  std::string __dst; // [xsp+20h] [xbp-50h] BYREF\n  std::string v9; // [xsp+38h] [xbp-38h] BYREF\n\n  v3 = (int)a1;\n  pHttpRequest = a3->_pHttpRequest;\n  p_tag = (char *)&pHttpRequest->_tag;\n  if ( pHttpRequest->_tag.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    p_tag = *(char **)p_tag;\n  GameToolbox::getResponse((__int64)a3, &v9);\n  if ( SHIBYTE(v9.__r_.__value_.__r.__words[2]) < 0 )\n    sub_1000097D0(&__dst, v9.__r_.__value_.__l.__data_, v9.__r_.__value_.__l.__size_);\n  else\n    __dst = v9;\n  sub_100009900(&__p, p_tag);\n  GJAccountManager::handleIt(v3, 1, &__dst);\n  if ( v7 < 0 )\n    operator delete(__p);\n  if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__dst.__r_.__value_.__l.__data_);\n  if ( SHIBYTE(v9.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v9.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GJAccountManager::onProcessHttpRequestCompleted from 0x10039eb9c to 0x10039ec68 (204 bytes)\n; \n; 1 xrefs:\n; > GJAccountManager::ProcessHttpRequest @ 0x10039eaf0\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, #0x80                                          ; +0x0, 0x10039eb9c\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x4, 0x10039eba0\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x8, 0x10039eba4\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0xc, 0x10039eba8\nADD             X29, SP, #0x70                                         ; +0x10, 0x10039ebac\nMOV             X19, X0                                                ; +0x14, 0x10039ebb0\nLDR             X8, [X2,#0x38]                                         ; +0x18, 0x10039ebb4\nADD             X21, X8, #0x70 ; 'p'                                   ; +0x1c, 0x10039ebb8\nLDRSB           W9, [X8,#0x87]                                         ; +0x20, 0x10039ebbc\nTBZ             W9, #0x1F, loc_10039EBC8                               ; +0x24, 0x10039ebc0\nLDR             X21, [X21]                                             ; +0x28, 0x10039ebc4\nLDR             W20, [X8,#0xC0]                                        ; +0x2c, 0x10039ebc8\nADD             X8, SP, #0x70+var_38                                   ; +0x30, 0x10039ebcc\nMOV             X0, X2                                                 ; +0x34, 0x10039ebd0\nBL              GameToolbox__getResponse                               ; +0x38, 0x10039ebd4\nLDRSB           W8, [SP,#0x70+var_21]                                  ; +0x3c, 0x10039ebd8\nTBNZ            W8, #0x1F, loc_10039EBF4                               ; +0x40, 0x10039ebdc\nLDUR            Q0, [SP,#0x70+var_38]                                  ; +0x44, 0x10039ebe0\nSTR             Q0, [SP,#0x70+__dst]                                   ; +0x48, 0x10039ebe4\nLDR             X8, [SP,#0x48]                                         ; +0x4c, 0x10039ebe8\nSTR             X8, [SP,#0x70+var_40]                                  ; +0x50, 0x10039ebec\nB               loc_10039EC00                                          ; +0x54, 0x10039ebf0\nLDP             X1, X2, [SP,#0x70+var_38]; __src                       ; +0x58, 0x10039ebf4\nADD             X0, SP, #0x70+__dst; __dst                             ; +0x5c, 0x10039ebf8\nBL              sub_1000097D0                                          ; +0x60, 0x10039ebfc\nADD             X0, SP, #0x70+__p; int                                 ; +0x64, 0x10039ec00\nMOV             X1, X21; __s                                           ; +0x68, 0x10039ec04\nBL              sub_100009900                                          ; +0x6c, 0x10039ec08\nADD             X2, SP, #0x70+__dst; this                              ; +0x70, 0x10039ec0c\nADD             X3, SP, #0x70+__p                                      ; +0x74, 0x10039ec10\nMOV             X0, X19; int                                           ; +0x78, 0x10039ec14\nMOV             W1, #1; int                                            ; +0x7c, 0x10039ec18\nMOV             X4, X20                                                ; +0x80, 0x10039ec1c\nBL              GJAccountManager__handleIt                             ; +0x84, 0x10039ec20\nLDRSB           W8, [SP,#0x70+var_51]                                  ; +0x88, 0x10039ec24\nTBZ             W8, #0x1F, loc_10039EC34                               ; +0x8c, 0x10039ec28\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0x90, 0x10039ec2c\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x10039ec30\nLDRSB           W8, [SP,#0x70+var_40+7]                                ; +0x98, 0x10039ec34\nTBZ             W8, #0x1F, loc_10039EC44                               ; +0x9c, 0x10039ec38\nLDR             X0, [SP,#0x70+__dst]; __p                              ; +0xa0, 0x10039ec3c\nBL              __ZdlPv; operator delete(void *)                       ; +0xa4, 0x10039ec40\nLDRSB           W8, [SP,#0x70+var_21]                                  ; +0xa8, 0x10039ec44\nTBZ             W8, #0x1F, loc_10039EC54                               ; +0xac, 0x10039ec48\nLDR             X0, [SP,#0x70+var_38]; __p                             ; +0xb0, 0x10039ec4c\nBL              __ZdlPv; operator delete(void *)                       ; +0xb4, 0x10039ec50\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0xb8, 0x10039ec54\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0xbc, 0x10039ec58\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0xc0, 0x10039ec5c\nADD             SP, SP, #0x80                                          ; +0xc4, 0x10039ec60\nRET                                                                    ; +0xc8, 0x10039ec64", "xrefs": ["GJAccountManager::ProcessHttpRequest @ 0x10039eaf0"], "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"}