{"type": "func", "start": 4296370928, "end": 4296371109, "name": "GJBaseGameLayer::resetRecordFull", "pseudocode": "// \n// GJBaseGameLayer::resetRecordFull from 0x100156af0 to 0x100156ba5 (181 bytes)\n// \n// 0 xrefs:\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 GJBaseGameLayer::resetRecordFull(GJBaseGameLayer *a1)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, RecordCheckpoint>, void *> *>::__next_pointer next; // r14\n  unsigned __int64 value; // rsi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, RecordCheckpoint>, void *> *> *v3; // r15\n\n  a1->m_queuedRecordedButtons.__end_ = a1->m_queuedRecordedButtons.__begin_;\n  if ( a1->m_unk3330.__table_.__p2_.__value_ )\n  {\n    next = a1->m_unk3330.__table_.__p1_.__value_.__next_;\n    if ( next )\n    {\n      do\n      {\n        v3 = next->__next_;\n        if ( ((__int64)next[8].__next_ & 1) != 0 )\n          operator delete(next[10].__next_);\n        operator delete(next);\n        next = v3;\n      }\n      while ( v3 );\n    }\n    a1->m_unk3330.__table_.__p1_.__value_.__next_ = nullptr;\n    value = a1->m_unk3330.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;\n    if ( value )\n      __bzero(a1->m_unk3330.__table_.__bucket_list_.__ptr_.__value_, 8 * value);\n    a1->m_unk3330.__table_.__p2_.__value_ = 0;\n  }\n  a1->m_unk3370 = 0;\n  a1->m_queuedRecordedButtonsSize = 0;\n  a1->m_currentStep = 0;\n}", "assembly": "; \n; GJBaseGameLayer::resetRecordFull from 0x100156af0 to 0x100156ba5 (181 bytes)\n; \n; 0 xrefs:\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, 0x100156af0\nmov     rbp, rsp                                                       ; +0x1, 0x100156af1\npush    r15                                                            ; +0x4, 0x100156af4\npush    r14                                                            ; +0x6, 0x100156af6\npush    rbx                                                            ; +0x8, 0x100156af8\npush    rax                                                            ; +0x9, 0x100156af9\nmov     rbx, rdi                                                       ; +0xa, 0x100156afa\nmov     rax, [rdi+3178h]                                               ; +0xd, 0x100156afd\nmov     [rdi+3180h], rax                                               ; +0x14, 0x100156b04\ncmp     qword ptr [rdi+31A8h], 0                                       ; +0x1b, 0x100156b0b\njz      short loc_100156B53                                            ; +0x23, 0x100156b13\nmov     r14, [rbx+31A0h]                                               ; +0x25, 0x100156b15\ntest    r14, r14                                                       ; +0x2c, 0x100156b1c\njnz     short loc_100156B90                                            ; +0x2f, 0x100156b1f\nmov     qword ptr [rbx+31A0h], 0                                       ; +0x31, 0x100156b21\nmov     rsi, [rbx+3198h]                                               ; +0x3c, 0x100156b2c\ntest    rsi, rsi                                                       ; +0x43, 0x100156b33\njz      short loc_100156B48                                            ; +0x46, 0x100156b36\nmov     rdi, [rbx+3190h]                                               ; +0x48, 0x100156b38\nshl     rsi, 3                                                         ; +0x4f, 0x100156b3f\ncall    ___bzero                                                       ; +0x53, 0x100156b43\nmov     qword ptr [rbx+31A8h], 0                                       ; +0x58, 0x100156b48\nmov     dword ptr [rbx+31B8h], 0                                       ; +0x63, 0x100156b53\nmov     dword ptr [rbx+3230h], 0                                       ; +0x6d, 0x100156b5d\nmov     dword ptr [rbx+315Ch], 0                                       ; +0x77, 0x100156b67\nadd     rsp, 8                                                         ; +0x81, 0x100156b71\npop     rbx                                                            ; +0x85, 0x100156b75\npop     r14                                                            ; +0x86, 0x100156b76\npop     r15                                                            ; +0x88, 0x100156b78\npop     rbp                                                            ; +0x8a, 0x100156b7a\nretn                                                                   ; +0x8b, 0x100156b7b\nalign 20h                                                              ; +0x8c, 0x100156b7c\nmov     rdi, r14; __p                                                  ; +0x90, 0x100156b80\ncall    __ZdlPv; operator delete(void *)                               ; +0x93, 0x100156b83\nmov     r14, r15                                                       ; +0x98, 0x100156b88\ntest    r15, r15                                                       ; +0x9b, 0x100156b8b\njz      short loc_100156B21                                            ; +0x9e, 0x100156b8e\nmov     r15, [r14]                                                     ; +0xa0, 0x100156b90\ntest    byte ptr [r14+40h], 1                                          ; +0xa3, 0x100156b93\njz      short loc_100156B80                                            ; +0xa8, 0x100156b98\nmov     rdi, [r14+50h]; __p                                            ; +0xaa, 0x100156b9a\ncall    __ZdlPv; operator delete(void *)                               ; +0xae, 0x100156b9e\njmp     short loc_100156B80                                            ; +0xb3, 0x100156ba3", "xrefs": [], "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"}