REDIVIVUS

Proposals / #1516

Mac __sinit_SNET_CPP: void __cdecl (void) static initializer

checked · by KierTaylor · submitted 2026-11-08

This is the SNet.cpp C++ static-init function. Its only reference is the __mod_init_func table entry at 0x00396d60 (no direct callers). It reads no register or stack args (there are no [EBP+n] reads and no incoming ECX/EDX use in 0x0001ae80-0x0001b086). It constructs the SNet critical sections and static lists (0x000176a0 at 0x0001ae98 ...) and registers their destructors with __cxa_atexit. Plain RET; dyld calls it as void(void).

Changes 1, applied together

  1. Set prototype mac 0x0001ae80

    signatureundefined __sinit_SNET_CPP(void)→void __sinit_SNET_CPP(void)
    conventionunknown→__cdecl