{"type": "func", "start": 5371211472, "end": 5371211599, "name": "GJEffectManager::transferPersistentItems", "pseudocode": "// \n// GJEffectManager::transferPersistentItems from 0x140262ed0 to 0x140262f4f (127 bytes)\n// \n// 5 xrefs:\n// > GJEffectManager::resetEffects @ 0x14025c1f4\n// > GJEffectManager::loadFromState @ 0x140264a11\n// > <???> @ 0x14068528c\n// > <???> @ 0x14068529c\n// > <???> @ 0x1406d00f8\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 GJEffectManager::transferPersistentItems(GJEffectManager *a1)\n{\n  std::_List_val<std::_List_simple_types<std::pair<const int, int>>>::_Nodeptr Myhead; // rdi\n  __int64 *v2; // rbx\n  std::unordered_map<int, int> *p_m_itemCountMap; // rbp\n  int v4; // esi\n  _BYTE v5[24]; // [rsp+20h] [rbp-18h] BYREF\n  int v6; // [rsp+40h] [rbp+8h] BYREF\n\n  Myhead = a1->m_persistentItemCountMap._List._Mypair._Myval2._Myhead;\n  v2 = *(__int64 **)Myhead;\n  if ( *(std::_List_val<std::_List_simple_types<std::pair<const int, int>>>::_Nodeptr *)Myhead != Myhead )\n  {\n    p_m_itemCountMap = &a1->m_itemCountMap;\n    do\n    {\n      v4 = *((_DWORD *)v2 + 5);\n      v6 = *((_DWORD *)v2 + 4);\n      if ( v4 )\n        *(_DWORD *)(*(_QWORD *)sub_140060B20(\n                                 &p_m_itemCountMap->_Traitsobj._Mypair._Myval2._Myval2,\n                                 (__int64)v5,\n                                 (unsigned __int8 *)&v6)\n                  + 20LL) = v4;\n      else\n        sub_14005D780(p_m_itemCountMap, (unsigned __int8 *)&v6);\n      v2 = (__int64 *)*v2;\n    }\n    while ( v2 != (__int64 *)Myhead );\n  }\n}", "assembly": "; \n; GJEffectManager::transferPersistentItems from 0x140262ed0 to 0x140262f4f (127 bytes)\n; \n; 5 xrefs:\n; > GJEffectManager::resetEffects @ 0x14025c1f4\n; > GJEffectManager::loadFromState @ 0x140264a11\n; > <???> @ 0x14068528c\n; > <???> @ 0x14068529c\n; > <???> @ 0x1406d00f8\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\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x140262ed0\npush    rdi                                                            ; +0x5, 0x140262ed5\nsub     rsp, 30h                                                       ; +0x6, 0x140262ed6\nmov     rdi, [rcx+378h]                                                ; +0xa, 0x140262eda\nmov     rbx, [rdi]                                                     ; +0x11, 0x140262ee1\ncmp     rbx, rdi                                                       ; +0x14, 0x140262ee4\njz      short loc_140262F44                                            ; +0x17, 0x140262ee7\nmov     [rsp+38h+arg_8], rbp                                           ; +0x19, 0x140262ee9\nlea     rbp, [rcx+330h]                                                ; +0x1e, 0x140262eee\nmov     [rsp+38h+arg_10], rsi                                          ; +0x25, 0x140262ef5\nnop     word ptr [rax+rax+00h]                                         ; +0x2a, 0x140262efa\nmov     esi, [rbx+14h]                                                 ; +0x30, 0x140262f00\nmov     rcx, rbp                                                       ; +0x33, 0x140262f03\nmov     eax, [rbx+10h]                                                 ; +0x36, 0x140262f06\nmov     [rsp+38h+arg_0], eax                                           ; +0x39, 0x140262f09\ntest    esi, esi                                                       ; +0x3d, 0x140262f0d\njnz     short loc_140262F1D                                            ; +0x3f, 0x140262f0f\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x41, 0x140262f11\ncall    sub_14005D780                                                  ; +0x46, 0x140262f16\njmp     short loc_140262F32                                            ; +0x4b, 0x140262f1b\nlea     r8, [rsp+38h+arg_0]                                            ; +0x4d, 0x140262f1d\nlea     rdx, [rsp+38h+var_18]                                          ; +0x52, 0x140262f22\ncall    sub_140060B20                                                  ; +0x57, 0x140262f27\nmov     rcx, [rax]                                                     ; +0x5c, 0x140262f2c\nmov     [rcx+14h], esi                                                 ; +0x5f, 0x140262f2f\nmov     rbx, [rbx]                                                     ; +0x62, 0x140262f32\ncmp     rbx, rdi                                                       ; +0x65, 0x140262f35\njnz     short loc_140262F00                                            ; +0x68, 0x140262f38\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x6a, 0x140262f3a\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x6f, 0x140262f3f\nmov     rbx, [rsp+38h+arg_18]                                          ; +0x74, 0x140262f44\nadd     rsp, 30h                                                       ; +0x79, 0x140262f49\npop     rdi                                                            ; +0x7d, 0x140262f4d\nretn                                                                   ; +0x7e, 0x140262f4e", "xrefs": ["GJEffectManager::resetEffects @ 0x14025c1f4", "GJEffectManager::loadFromState @ 0x140264a11", "<???> @ 0x14068528c", "<???> @ 0x14068529c", "<???> @ 0x1406d00f8"], "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"}