// // std::vector>::emplace_back from 0x595768 to 0x5957dc (116 bytes) // // 2 xrefs: // > tk::spline::solve @ 0x596852 // > tk::spline::solve @ 0x596a0c // // 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 __fastcall std::vector::emplace_back(const void **a1, __int64 *a2) { _QWORD *v3; // r3 __int64 v5; // r0 unsigned int v6; // r0 unsigned int v7; // r7 char *v8; // r6 const void *v9; // r1 __int64 v10; // r8 signed int v11; // r4 char *v12; // r4 v3 = a1[1]; if ( v3 == a1[2] ) { v6 = std::vector::_M_check_len(a1, 1u, (int)"vector::_M_emplace_back_aux"); v7 = v6; if ( v6 ) v8 = (char *)sub_594790(v6); else v8 = nullptr; v9 = *a1; v10 = *a2; v11 = (_BYTE *)a1[1] - (_BYTE *)*a1; if ( &v8[v11] ) *(_QWORD *)&v8[v11] = v10; if ( v11 >> 3 ) memmove(v8, v9, v11); v12 = &v8[v11 + 8]; if ( *a1 ) operator delete((void *)*a1); *a1 = v8; a1[1] = v12; a1[2] = &v8[8 * v7]; } else { v5 = *a2; if ( v3 ) *v3 = v5; a1[1] = v3 + 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source