{"type": "func", "start": 4299455596, "end": 4299455860, "name": "GJAccountManager::linkToAccount", "pseudocode": "// \n// GJAccountManager::linkToAccount from 0x100447c6c to 0x100447d74 (264 bytes)\n// \n// 1 xrefs:\n// > AccountLoginLayer::loginAccountFinished @ 0x10008d5fc\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 11:05:15 +0000\n// \n\ndouble __fastcall GJAccountManager::linkToAccount(\n        __int64 a1,\n        const std::string *a2,\n        std::string *__str,\n        int a4,\n        int a5)\n{\n  __int64 v9; // x0\n  __int64 v10; // x22\n  _DWORD *v11; // x21\n  float v12; // s0\n  __int64 v13; // x0\n  void (__fastcall ***v14)(_QWORD); // x0\n  __int64 v15; // x0\n  std::string __p; // [xsp+0h] [xbp-50h] BYREF\n\n  std::string::operator=((std::string *)(a1 + 368), __str);\n  std::string::operator=((std::string *)(a1 + 328), a2);\n  *(_DWORD *)(a1 + 352) = a4;\n  v9 = GameLevelManager::sharedState();\n  sub_1000ADEB0(v9);\n  v10 = GameManager::sharedState();\n  if ( *(char *)(a1 + 351) < 0 )\n    sub_1000097D0(&__p, *(void **)(a1 + 328), *(_QWORD *)(a1 + 336));\n  else\n    __p = *(std::string *)(a1 + 328);\n  std::string::operator=((std::string *)(v10 + 632), &__p);\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__p.__r_.__value_.__l.__data_);\n  v11 = (_DWORD *)GameManager::sharedState();\n  v11[167] = a5;\n  v12 = vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0;\n  v11[166] = (int)v12;\n  v11[165] = (int)v12 + a5;\n  v13 = GameLevelManager::sharedState();\n  sub_1000C7EEC(v13);\n  v14 = *(void (__fastcall ****)(_QWORD))(a1 + 408);\n  if ( v14 )\n    (**v14)(v14);\n  v15 = GameManager::sharedState();\n  return sub_1003B67C0(v15);\n}", "assembly": "; \n; GJAccountManager::linkToAccount from 0x100447c6c to 0x100447d74 (264 bytes)\n; \n; 1 xrefs:\n; > AccountLoginLayer::loginAccountFinished @ 0x10008d5fc\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 11:05:15 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x100447c6c\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x100447c70\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x100447c74\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x100447c78\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100447c7c\nADD             X29, SP, #0x50                                         ; +0x14, 0x100447c80\nMOV             X20, X4                                                ; +0x18, 0x100447c84\nMOV             X22, X3                                                ; +0x1c, 0x100447c88\nMOV             X23, X1                                                ; +0x20, 0x100447c8c\nMOV             X19, X0                                                ; +0x24, 0x100447c90\nADD             X0, X0, #0x170; this                                   ; +0x28, 0x100447c94\nMOV             X1, X2; __str                                          ; +0x2c, 0x100447c98\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x30, 0x100447c9c\nADD             X21, X19, #0x148                                       ; +0x34, 0x100447ca0\nMOV             X0, X21; this                                          ; +0x38, 0x100447ca4\nMOV             X1, X23; __str                                         ; +0x3c, 0x100447ca8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x40, 0x100447cac\nSTR             W22, [X19,#0x160]                                      ; +0x44, 0x100447cb0\nBL              GameLevelManager__sharedState                          ; +0x48, 0x100447cb4\nBL              sub_1000ADEB0                                          ; +0x4c, 0x100447cb8\nBL              GameManager__sharedState                               ; +0x50, 0x100447cbc\nMOV             X22, X0                                                ; +0x54, 0x100447cc0\nLDRSB           W8, [X19,#0x15F]                                       ; +0x58, 0x100447cc4\nTBNZ            W8, #0x1F, loc_100447CE0                               ; +0x5c, 0x100447cc8\nLDR             Q0, [X21]                                              ; +0x60, 0x100447ccc\nSTR             Q0, [SP,#0x50+__p]                                     ; +0x64, 0x100447cd0\nLDR             X8, [X21,#0x10]                                        ; +0x68, 0x100447cd4\nSTR             X8, [SP,#0x50+var_40]                                  ; +0x6c, 0x100447cd8\nB               loc_100447CEC                                          ; +0x70, 0x100447cdc\nLDP             X1, X2, [X19,#0x148]; __src                            ; +0x74, 0x100447ce0\nMOV             X0, SP; __dst                                          ; +0x78, 0x100447ce4\nBL              sub_1000097D0                                          ; +0x7c, 0x100447ce8\nADD             X0, X22, #0x278; this                                  ; +0x80, 0x100447cec\nMOV             X1, SP; __str                                          ; +0x84, 0x100447cf0\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x88, 0x100447cf4\nLDRSB           W8, [SP,#0x50+var_40+7]                                ; +0x8c, 0x100447cf8\nTBZ             W8, #0x1F, loc_100447D08                               ; +0x90, 0x100447cfc\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x94, 0x100447d00\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x100447d04\nBL              GameManager__sharedState                               ; +0x9c, 0x100447d08\nMOV             X21, X0                                                ; +0xa0, 0x100447d0c\nSTR             W20, [X0,#0x29C]                                       ; +0xa4, 0x100447d10\nBL              _rand                                                  ; +0xa8, 0x100447d14\nSCVTF           S0, W0, #0x1F                                          ; +0xac, 0x100447d18\nMOV             W8, #0x447A0000                                        ; +0xb0, 0x100447d1c\nFMOV            S1, W8                                                 ; +0xb4, 0x100447d20\nFMUL            S0, S0, S1                                             ; +0xb8, 0x100447d24\nFCVTZS          W8, S0                                                 ; +0xbc, 0x100447d28\nSTR             W8, [X21,#0x298]                                       ; +0xc0, 0x100447d2c\nADD             W8, W8, W20                                            ; +0xc4, 0x100447d30\nSTR             W8, [X21,#0x294]                                       ; +0xc8, 0x100447d34\nBL              GameLevelManager__sharedState                          ; +0xcc, 0x100447d38\nBL              sub_1000C7EEC                                          ; +0xd0, 0x100447d3c\nLDR             X0, [X19,#0x198]                                       ; +0xd4, 0x100447d40\nCBZ             X0, loc_100447D54                                      ; +0xd8, 0x100447d44\nLDR             X8, [X0]                                               ; +0xdc, 0x100447d48\nLDR             X8, [X8]                                               ; +0xe0, 0x100447d4c\nBLR             X8                                                     ; +0xe4, 0x100447d50\nBL              GameManager__sharedState                               ; +0xe8, 0x100447d54\nBL              sub_1003B67C0                                          ; +0xec, 0x100447d58\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xf0, 0x100447d5c\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xf4, 0x100447d60\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xf8, 0x100447d64\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xfc, 0x100447d68\nADD             SP, SP, #0x60 ; '`'                                    ; +0x100, 0x100447d6c\nRET                                                                    ; +0x104, 0x100447d70", "xrefs": ["AccountLoginLayer::loginAccountFinished @ 0x10008d5fc"], "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"}