// // GJBaseGameLayer::resetRecordFull from 0x866534 to 0x86664c (280 bytes) // // 2 xrefs: // > GJBaseGameLayer::resetRecord @ 0x87af60 // > @ 0x2b4e8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJBaseGameLayer::resetRecordFull(GJBaseGameLayer *a1) { std::__detail::_Hash_node_base *M_nxt; // x19 std::__detail::_Hash_node_base *v3; // x0 std::__detail::_Hash_node_base *v4; // x1 std::__detail::_Hash_node_base *v5; // x0 std::__detail::_Hash_node_base *v6; // x20 unsigned int *v7; // x1 int v8; // w2 std::__detail::_Hash_node_base *v9; // x0 M_nxt = a1->m_unk3330._M_h._M_before_begin._M_nxt; a1->m_queuedRecordedButtons.m_finish = a1->m_queuedRecordedButtons.m_start; if ( M_nxt ) { do { while ( 1 ) { v4 = M_nxt[7]._M_nxt; v5 = v4 - 3; v6 = M_nxt->_M_nxt; if ( &v4[-3] != (std::__detail::_Hash_node_base *)&qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)&v4[-1]; do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = (int)v4[-1]._M_nxt; LODWORD(v4[-1]._M_nxt) = v8 - 1; } if ( v8 <= 0 ) break; } v3 = M_nxt; M_nxt = v6; operator delete(v3); if ( !v6 ) goto LABEL_10; } operator delete(v5); v9 = M_nxt; M_nxt = v6; operator delete(v9); } while ( v6 ); } LABEL_10: memset(a1->m_unk3330._M_h._M_buckets, 0, 8 * a1->m_unk3330._M_h._M_bucket_count); a1->m_unk3330._M_h._M_element_count = 0; a1->m_unk3330._M_h._M_before_begin._M_nxt = nullptr; a1->m_unk3370 = 0; a1->m_queuedRecordedButtonsSize = 0; a1->m_currentStep = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source