{"type": "func", "start": 4607168, "end": 4607344, "name": "GJAccountManager::linkToAccount", "pseudocode": "// \n// GJAccountManager::linkToAccount from 0x464cc0 to 0x464d70 (176 bytes)\n// \n// 1 xrefs:\n// > AccountLoginLayer::loginAccountFinished @ 0x46a158\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::linkToAccount(int a1, int a2, int a3, int a4, int a5)\n{\n  int v7; // r8\n  GameManager *v9; // r9\n  GameManager *v10; // r0\n  GameManager *v11; // r4\n  unsigned int v12; // s15\n  void (__fastcall ***v13)(_DWORD); // r0\n  int v14; // s15\n  GameManager *v15; // r0\n  _DWORD v16[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v16[0] = a1;\n  v16[1] = a2;\n  v16[2] = a3;\n  v7 = a1 + 268;\n  sub_775D40(a1 + 284, a3);\n  sub_775D40(v7, a2);\n  *(_DWORD *)(a1 + 272) = a4;\n  v9 = GameManager::sharedState();\n  sub_775C20(v16);\n  sub_775D40(&v9->m_playerName, v16);\n  sub_774008(v16);\n  v10 = GameManager::sharedState();\n  v10->m_playerUserID.value = a5;\n  v11 = v10;\n  v12 = rand();\n  v13 = *(void (__fastcall ****)(_DWORD))(a1 + 296);\n  v14 = (int)(float)(vcvts_n_f32_s32(v12, 0x1Fu) * 1000.0);\n  v11->m_playerUserID.seed = v14;\n  v11->m_playerUserID.random = v14 + a5;\n  if ( v13 )\n    (**v13)(v13);\n  v15 = GameManager::sharedState();\n  GameManager::accountStatusChanged(v15);\n}", "assembly": "; \n; GJAccountManager::linkToAccount from 0x464cc0 to 0x464d70 (176 bytes)\n; \n; 1 xrefs:\n; > AccountLoginLayer::loginAccountFinished @ 0x46a158\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\nPUSH.W          {R0-R2,R4-R9,LR}                                       ; +0x0, 0x464cc0\nMOV             R4, R3                                                 ; +0x4, 0x464cc4\nLDR             R5, =(__stack_chk_guard_ptr - 0x464CD4)                ; +0x6, 0x464cc6\nMOV             R6, R0                                                 ; +0x8, 0x464cc8\nADD.W           R8, R6, #0x10C                                         ; +0xa, 0x464cca\nMOV             R9, R1                                                 ; +0xe, 0x464cce\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x464cd0\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x464cd2\nMOV             R1, R2                                                 ; +0x14, 0x464cd4\nADD.W           R0, R0, #0x11C                                         ; +0x16, 0x464cd6\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x1a, 0x464cda\nLDR             R3, [R5]                                               ; +0x1c, 0x464cdc\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x1e, 0x464cde\nBL              sub_775D40                                             ; +0x20, 0x464ce0\nMOV             R1, R9                                                 ; +0x24, 0x464ce4\nMOV             R0, R8                                                 ; +0x26, 0x464ce6\nBL              sub_775D40                                             ; +0x28, 0x464ce8\nSTR.W           R4, [R6,#0x110]                                        ; +0x2c, 0x464cec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x30, 0x464cf0\nMOV             R1, R8                                                 ; +0x34, 0x464cf4\nMOV             R4, SP                                                 ; +0x36, 0x464cf6\nMOV             R9, R0                                                 ; +0x38, 0x464cf8\nMOV             R0, SP                                                 ; +0x3a, 0x464cfa\nBL              sub_775C20                                             ; +0x3c, 0x464cfc\nADD.W           R0, R9, #0x190                                         ; +0x40, 0x464d00\nMOV             R1, SP                                                 ; +0x44, 0x464d04\nBL              sub_775D40                                             ; +0x46, 0x464d06\nMOV             R0, SP                                                 ; +0x4a, 0x464d0a\nBL              sub_774008                                             ; +0x4c, 0x464d0c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x50, 0x464d10\nSTR.W           R7, [R0,#0x1A0]                                        ; +0x54, 0x464d14\nMOV             R4, R0                                                 ; +0x58, 0x464d18\nBLX             rand                                                   ; +0x5a, 0x464d1a\nVLDR            S14, =1000.0                                           ; +0x5e, 0x464d1e\nVMOV            S15, R0                                                ; +0x62, 0x464d22\nLDR.W           R0, [R6,#0x128]                                        ; +0x66, 0x464d26\nVCVT.F32.S32    S15, S15, #0x1F                                        ; +0x6a, 0x464d2a\nVMUL.F32        S15, S15, S14                                          ; +0x6e, 0x464d2e\nVCVT.S32.F32    S15, S15                                               ; +0x72, 0x464d32\nVMOV            R3, S15                                                ; +0x76, 0x464d36\nVSTR            S15, [R4,#0x19C]                                       ; +0x7a, 0x464d3a\nADD             R3, R7                                                 ; +0x7e, 0x464d3e\nSTR.W           R3, [R4,#0x198]                                        ; +0x80, 0x464d40\nCBZ             R0, loc_464D4C                                         ; +0x84, 0x464d44\nLDR             R3, [R0]                                               ; +0x86, 0x464d46\nLDR             R3, [R3]                                               ; +0x88, 0x464d48\nBLX             R3                                                     ; +0x8a, 0x464d4a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8c, 0x464d4c\nBL              _ZN11GameManager20accountStatusChangedEv; GameManager::accountStatusChanged(void) ; +0x90, 0x464d50\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x94, 0x464d54\nLDR             R3, [R5]                                               ; +0x96, 0x464d56\nCMP             R2, R3                                                 ; +0x98, 0x464d58\nBEQ             loc_464D6A                                             ; +0x9a, 0x464d5a\nBLX             __stack_chk_fail                                       ; +0x9c, 0x464d5c\nMOV             R0, R4                                                 ; +0xa0, 0x464d60\nBL              sub_774008                                             ; +0xa2, 0x464d62\nBL              __cxa_end_cleanup                                      ; +0xa6, 0x464d66\nADD             SP, SP, #0xC                                           ; +0xaa, 0x464d6a\nPOP.W           {R4-R9,PC}                                             ; +0xac, 0x464d6c", "xrefs": ["AccountLoginLayer::loginAccountFinished @ 0x46a158"], "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"}