{"type": "func", "start": 4298031712, "end": 4298031911, "name": "GJEffectManager::resetUsedItemState", "pseudocode": "// \n// GJEffectManager::resetUsedItemState from 0x1002ec260 to 0x1002ec327 (199 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::resetLevel @ 0x1000be993\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::resetUsedItemState(GJEffectManager *a1)\n{\n  std::__hash_node_base<std::__hash_node<int, void *> *>::__next_pointer next; // rdi\n  std::__hash_node_base<std::__hash_node<int, void *> *> *v3; // r14\n  unsigned __int64 value; // rsi\n  std::__hash_node_base<std::__hash_node<int, void *> *>::__next_pointer v5; // rdi\n  std::__hash_node_base<std::__hash_node<int, void *> *> *v6; // r14\n  unsigned __int64 v7; // rsi\n\n  if ( a1->m_unk3f0.__table_.__p2_.__value_ )\n  {\n    next = a1->m_unk3f0.__table_.__p1_.__value_.__next_;\n    if ( next )\n    {\n      do\n      {\n        v3 = next->__next_;\n        operator delete(next);\n        next = v3;\n      }\n      while ( v3 );\n    }\n    a1->m_unk3f0.__table_.__p1_.__value_.__next_ = nullptr;\n    value = a1->m_unk3f0.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;\n    if ( value )\n      __bzero(a1->m_unk3f0.__table_.__bucket_list_.__ptr_.__value_, 8 * value);\n    a1->m_unk3f0.__table_.__p2_.__value_ = 0;\n  }\n  if ( a1->m_unk430.__table_.__p2_.__value_ )\n  {\n    v5 = a1->m_unk430.__table_.__p1_.__value_.__next_;\n    if ( v5 )\n    {\n      do\n      {\n        v6 = v5->__next_;\n        operator delete(v5);\n        v5 = v6;\n      }\n      while ( v6 );\n    }\n    a1->m_unk430.__table_.__p1_.__value_.__next_ = nullptr;\n    v7 = a1->m_unk430.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;\n    if ( v7 )\n      __bzero(a1->m_unk430.__table_.__bucket_list_.__ptr_.__value_, 8 * v7);\n    a1->m_unk430.__table_.__p2_.__value_ = 0;\n  }\n}", "assembly": "; \n; GJEffectManager::resetUsedItemState from 0x1002ec260 to 0x1002ec327 (199 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::resetLevel @ 0x1000be993\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    rbp                                                            ; +0x0, 0x1002ec260\nmov     rbp, rsp                                                       ; +0x1, 0x1002ec261\npush    r14                                                            ; +0x4, 0x1002ec264\npush    rbx                                                            ; +0x6, 0x1002ec266\nmov     rbx, rdi                                                       ; +0x7, 0x1002ec267\ncmp     qword ptr [rdi+358h], 0                                        ; +0xa, 0x1002ec26a\njz      short loc_1002EC2C2                                            ; +0x12, 0x1002ec272\nmov     rdi, [rbx+350h]; __p                                           ; +0x14, 0x1002ec274\ntest    rdi, rdi                                                       ; +0x1b, 0x1002ec27b\njz      short loc_1002EC290                                            ; +0x1e, 0x1002ec27e\nmov     r14, [rdi]                                                     ; +0x20, 0x1002ec280\ncall    __ZdlPv; operator delete(void *)                               ; +0x23, 0x1002ec283\nmov     rdi, r14                                                       ; +0x28, 0x1002ec288\ntest    r14, r14                                                       ; +0x2b, 0x1002ec28b\njnz     short loc_1002EC280                                            ; +0x2e, 0x1002ec28e\nmov     qword ptr [rbx+350h], 0                                        ; +0x30, 0x1002ec290\nmov     rsi, [rbx+348h]                                                ; +0x3b, 0x1002ec29b\ntest    rsi, rsi                                                       ; +0x42, 0x1002ec2a2\njz      short loc_1002EC2B7                                            ; +0x45, 0x1002ec2a5\nmov     rdi, [rbx+340h]                                                ; +0x47, 0x1002ec2a7\nshl     rsi, 3                                                         ; +0x4e, 0x1002ec2ae\ncall    ___bzero                                                       ; +0x52, 0x1002ec2b2\nmov     qword ptr [rbx+358h], 0                                        ; +0x57, 0x1002ec2b7\ncmp     qword ptr [rbx+380h], 0                                        ; +0x62, 0x1002ec2c2\njz      short loc_1002EC322                                            ; +0x6a, 0x1002ec2ca\nmov     rdi, [rbx+378h]; __p                                           ; +0x6c, 0x1002ec2cc\ntest    rdi, rdi                                                       ; +0x73, 0x1002ec2d3\njz      short loc_1002EC2F0                                            ; +0x76, 0x1002ec2d6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x78, 0x1002ec2d8\nmov     r14, [rdi]                                                     ; +0x80, 0x1002ec2e0\ncall    __ZdlPv; operator delete(void *)                               ; +0x83, 0x1002ec2e3\nmov     rdi, r14                                                       ; +0x88, 0x1002ec2e8\ntest    r14, r14                                                       ; +0x8b, 0x1002ec2eb\njnz     short loc_1002EC2E0                                            ; +0x8e, 0x1002ec2ee\nmov     qword ptr [rbx+378h], 0                                        ; +0x90, 0x1002ec2f0\nmov     rsi, [rbx+370h]                                                ; +0x9b, 0x1002ec2fb\ntest    rsi, rsi                                                       ; +0xa2, 0x1002ec302\njz      short loc_1002EC317                                            ; +0xa5, 0x1002ec305\nmov     rdi, [rbx+368h]                                                ; +0xa7, 0x1002ec307\nshl     rsi, 3                                                         ; +0xae, 0x1002ec30e\ncall    ___bzero                                                       ; +0xb2, 0x1002ec312\nmov     qword ptr [rbx+380h], 0                                        ; +0xb7, 0x1002ec317\npop     rbx                                                            ; +0xc2, 0x1002ec322\npop     r14                                                            ; +0xc3, 0x1002ec323\npop     rbp                                                            ; +0xc5, 0x1002ec325\nretn                                                                   ; +0xc6, 0x1002ec326", "xrefs": ["PlayLayer::resetLevel @ 0x1000be993"], "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"}