//
// _register_onexit_function from 0x1801327d8 to 0x180132820 (72 bytes)
//
// 3 xrefs:
// > _onexit @ 0x1801207f4
// > sub_180132764 @ 0x18013276e
// > ??> @ 0x180203038
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:59 +0000
//
int __cdecl register_onexit_function(_onexit_table_t *Table, _onexit_t Function)
{
unsigned int v3; // [rsp+20h] [rbp-20h] BYREF
_QWORD v4[3]; // [rsp+28h] [rbp-18h] BYREF
_onexit_table_t *v5; // [rsp+50h] [rbp+10h] BYREF
_onexit_t v6; // [rsp+58h] [rbp+18h] BYREF
char v7; // [rsp+60h] [rbp+20h] BYREF
unsigned int v8; // [rsp+68h] [rbp+28h] BYREF
v6 = Function;
v5 = Table;
v4[0] = &v5;
v4[1] = &v6;
v8 = 2;
v3 = 2;
return __crt_seh_guarded_call::operator()<_lambda_b8c45f8f788dd370798f47cfe8ac3a86_,_lambda_4e60a939b0d047cfe11ddc22648dfba9_ &,_lambda_332c3edc96d0294ec56c57d38c1cdfd5_>(
(__int64)&v7,
&v3,
(__int64)v4,
&v8);
}