{"type": "func", "start": 4295796144, "end": 4295796330, "name": "GJShaderState::GJShaderState", "pseudocode": "// \n// GJShaderState::GJShaderState from 0x1000ca5b0 to 0x1000ca66a (186 bytes)\n// \n// 2 xrefs:\n// > CheckpointObject::CheckpointObject @ 0x1000ca3f9\n// > CheckpointObject::CheckpointObject @ 0x1000ca405\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\nGJShaderState *__fastcall GJShaderState::GJShaderState(GJShaderState *a1)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *>::__next_pointer next; // r14\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *> **value; // rdi\n  GJShaderState *result; // rax\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *>::__next_pointer v5; // rdi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *> *v6; // r12\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *> *v7; // r13\n  __int64 v8; // r15\n  _QWORD *v9; // rsi\n  void *v10; // rdi\n\n  next = a1->m_tweenActions.__table_.__p1_.__value_.__next_;\n  if ( next )\n  {\n    do\n    {\n      v6 = next->__next_;\n      v7 = next[3].__next_;\n      if ( v7 )\n      {\n        v8 = (__int64)next[4].__next_;\n        v5 = next[3].__next_;\n        if ( (std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *> *)v8 != v7 )\n        {\n          do\n          {\n            v10 = *(void **)(v8 - 32);\n            if ( v10 )\n            {\n              *(_QWORD *)(v8 - 24) = v10;\n              operator delete(v10);\n            }\n            v9 = *(_QWORD **)(v8 - 232);\n            v8 -= 240;\n            sub_100054D90(v8, v9);\n          }\n          while ( (std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *> *)v8 != v7 );\n          v5 = next[3].__next_;\n        }\n        next[4].__next_ = v7;\n        operator delete(v5);\n      }\n      operator delete(next);\n      next = v6;\n    }\n    while ( v6 );\n  }\n  value = a1->m_tweenActions.__table_.__bucket_list_.__ptr_.__value_;\n  a1->m_tweenActions.__table_.__bucket_list_.__ptr_.__value_ = nullptr;\n  if ( value )\n    operator delete(value);\n  return result;\n}", "assembly": "; \n; GJShaderState::GJShaderState from 0x1000ca5b0 to 0x1000ca66a (186 bytes)\n; \n; 2 xrefs:\n; > CheckpointObject::CheckpointObject @ 0x1000ca3f9\n; > CheckpointObject::CheckpointObject @ 0x1000ca405\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, 0x1000ca5b0\nmov     rbp, rsp                                                       ; +0x1, 0x1000ca5b1\npush    r15                                                            ; +0x4, 0x1000ca5b4\npush    r14                                                            ; +0x6, 0x1000ca5b6\npush    r13                                                            ; +0x8, 0x1000ca5b8\npush    r12                                                            ; +0xa, 0x1000ca5ba\npush    rbx                                                            ; +0xc, 0x1000ca5bc\npush    rax                                                            ; +0xd, 0x1000ca5bd\nmov     rbx, rdi                                                       ; +0xe, 0x1000ca5be\nmov     r14, [rdi+10h]                                                 ; +0x11, 0x1000ca5c1\ntest    r14, r14                                                       ; +0x15, 0x1000ca5c5\njnz     short loc_1000CA60D                                            ; +0x18, 0x1000ca5c8\nmov     rdi, [rbx]; __p                                                ; +0x1a, 0x1000ca5ca\nmov     qword ptr [rbx], 0                                             ; +0x1d, 0x1000ca5cd\nadd     rsp, 8                                                         ; +0x24, 0x1000ca5d4\ntest    rdi, rdi                                                       ; +0x28, 0x1000ca5d8\njz      loc_1000CA65F                                                  ; +0x2b, 0x1000ca5db\npop     rbx                                                            ; +0x31, 0x1000ca5e1\npop     r12                                                            ; +0x32, 0x1000ca5e2\npop     r13                                                            ; +0x34, 0x1000ca5e4\npop     r14                                                            ; +0x36, 0x1000ca5e6\npop     r15                                                            ; +0x38, 0x1000ca5e8\npop     rbp                                                            ; +0x3a, 0x1000ca5ea\njmp     __ZdlPv; operator delete(void *)                               ; +0x3b, 0x1000ca5eb\nmov     rdi, [r14+18h]; __p                                            ; +0x40, 0x1000ca5f0\nmov     [r14+20h], r13                                                 ; +0x44, 0x1000ca5f4\ncall    __ZdlPv; operator delete(void *)                               ; +0x48, 0x1000ca5f8\nmov     rdi, r14; __p                                                  ; +0x4d, 0x1000ca5fd\ncall    __ZdlPv; operator delete(void *)                               ; +0x50, 0x1000ca600\nmov     r14, r12                                                       ; +0x55, 0x1000ca605\ntest    r12, r12                                                       ; +0x58, 0x1000ca608\njz      short loc_1000CA5CA                                            ; +0x5b, 0x1000ca60b\nmov     r12, [r14]                                                     ; +0x5d, 0x1000ca60d\nmov     r13, [r14+18h]                                                 ; +0x60, 0x1000ca610\ntest    r13, r13                                                       ; +0x64, 0x1000ca614\njz      short loc_1000CA5FD                                            ; +0x67, 0x1000ca617\nmov     r15, [r14+20h]                                                 ; +0x69, 0x1000ca619\nmov     rdi, r13                                                       ; +0x6d, 0x1000ca61d\ncmp     r15, r13                                                       ; +0x70, 0x1000ca620\njnz     short loc_1000CA64B                                            ; +0x73, 0x1000ca623\njmp     short loc_1000CA5F4                                            ; +0x75, 0x1000ca625\nalign 10h                                                              ; +0x77, 0x1000ca627\nmov     rsi, [r15-0E8h]                                                ; +0x80, 0x1000ca630\nadd     r15, 0FFFFFFFFFFFFFF10h                                        ; +0x87, 0x1000ca637\nmov     rdi, r15                                                       ; +0x8e, 0x1000ca63e\ncall    sub_100054D90                                                  ; +0x91, 0x1000ca641\ncmp     r15, r13                                                       ; +0x96, 0x1000ca646\njz      short loc_1000CA5F0                                            ; +0x99, 0x1000ca649\nmov     rdi, [r15-20h]; __p                                            ; +0x9b, 0x1000ca64b\ntest    rdi, rdi                                                       ; +0x9f, 0x1000ca64f\njz      short loc_1000CA630                                            ; +0xa2, 0x1000ca652\nmov     [r15-18h], rdi                                                 ; +0xa4, 0x1000ca654\ncall    __ZdlPv; operator delete(void *)                               ; +0xa8, 0x1000ca658\njmp     short loc_1000CA630                                            ; +0xad, 0x1000ca65d\npop     rbx                                                            ; +0xaf, 0x1000ca65f\npop     r12                                                            ; +0xb0, 0x1000ca660\npop     r13                                                            ; +0xb2, 0x1000ca662\npop     r14                                                            ; +0xb4, 0x1000ca664\npop     r15                                                            ; +0xb6, 0x1000ca666\npop     rbp                                                            ; +0xb8, 0x1000ca668\nretn                                                                   ; +0xb9, 0x1000ca669", "xrefs": ["CheckpointObject::CheckpointObject @ 0x1000ca3f9", "CheckpointObject::CheckpointObject @ 0x1000ca405"], "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"}