{"type": "func", "start": 4295032928, "end": 4295033068, "name": "GJEffectManager::transferPersistentItems", "pseudocode": "// \n// GJEffectManager::transferPersistentItems from 0x100010060 to 0x1000100ec (140 bytes)\n// \n// 2 xrefs:\n// > GJEffectManager::resetEffects @ 0x10000ef08\n// > GJEffectManager::loadFromState @ 0x1000170ac\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 GJEffectManager::transferPersistentItems(GJEffectManager *a1)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, int>, void *> *>::__next_pointer i; // x21\n  int next_high; // w23\n  int next; // [xsp+0h] [xbp-40h] BYREF\n  char v5; // [xsp+7h] [xbp-39h] BYREF\n  int *p_next; // [xsp+8h] [xbp-38h] BYREF\n\n  for ( i = a1->m_persistentItemCountMap.__table_.__p1_.__value_.__next_; i; i = i->__next_ )\n  {\n    next_high = HIDWORD(i[2].__next_);\n    next = (int)i[2].__next_;\n    if ( next_high )\n    {\n      p_next = &next;\n      *(_DWORD *)(sub_10001D150(&a1->m_itemCountMap, &next, &unk_10063553F, &p_next, &v5) + 20) = next_high;\n    }\n    else\n    {\n      sub_10001B104(&a1->m_itemCountMap, &next);\n    }\n  }\n}", "assembly": "; \n; GJEffectManager::transferPersistentItems from 0x100010060 to 0x1000100ec (140 bytes)\n; \n; 2 xrefs:\n; > GJEffectManager::resetEffects @ 0x10000ef08\n; > GJEffectManager::loadFromState @ 0x1000170ac\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, #0x50                                          ; +0x0, 0x100010060\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x100010064\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x100010068\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x10001006c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100010070\nADD             X29, SP, #0x40                                         ; +0x14, 0x100010074\nLDR             X21, [X0,#0x300]                                       ; +0x18, 0x100010078\nCBZ             X21, loc_1000100D4                                     ; +0x1c, 0x10001007c\nMOV             X19, X0                                                ; +0x20, 0x100010080\nMOV             X22, SP                                                ; +0x24, 0x100010084\nADRL            X20, unk_10063553F                                     ; +0x28, 0x100010088\nLDP             W8, W23, [X21,#0x10]                                   ; +0x30, 0x100010090\nSTR             W8, [SP,#0x40+var_40]                                  ; +0x34, 0x100010094\nCBZ             W23, loc_1000100C0                                     ; +0x38, 0x100010098\nSTR             X22, [SP,#0x40+var_38]                                 ; +0x3c, 0x10001009c\nADD             X0, X19, #0x2C8                                        ; +0x40, 0x1000100a0\nMOV             X1, SP                                                 ; +0x44, 0x1000100a4\nADD             X3, SP, #0x40+var_38                                   ; +0x48, 0x1000100a8\nADD             X4, SP, #0x40+var_39                                   ; +0x4c, 0x1000100ac\nMOV             X2, X20                                                ; +0x50, 0x1000100b0\nBL              sub_10001D150                                          ; +0x54, 0x1000100b4\nSTR             W23, [X0,#0x14]                                        ; +0x58, 0x1000100b8\nB               loc_1000100CC                                          ; +0x5c, 0x1000100bc\nADD             X0, X19, #0x2C8                                        ; +0x60, 0x1000100c0\nMOV             X1, SP                                                 ; +0x64, 0x1000100c4\nBL              sub_10001B104                                          ; +0x68, 0x1000100c8\nLDR             X21, [X21]                                             ; +0x6c, 0x1000100cc\nCBNZ            X21, loc_100010090                                     ; +0x70, 0x1000100d0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x74, 0x1000100d4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x78, 0x1000100d8\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x7c, 0x1000100dc\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x80, 0x1000100e0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x84, 0x1000100e4\nRET                                                                    ; +0x88, 0x1000100e8", "xrefs": ["GJEffectManager::resetEffects @ 0x10000ef08", "GJEffectManager::loadFromState @ 0x1000170ac"], "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"}