//
// sub_140414680 from 0x140414680 to 0x1404146f5 (117 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::GJBaseGameLayer @ 0x1403ebc2e
// > GJBaseGameLayer::GJBaseGameLayer @ 0x1403ebc3b
// > ??> @ 0x140925f7c
//
// 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 11:32:04 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall sub_140414680(__int64 a1)
{
_QWORD *v2; // rax
*(_DWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
v2 = operator new(0x30u);
*v2 = v2;
v2[1] = v2;
*(_QWORD *)(a1 + 8) = v2;
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 48) = 7;
*(_QWORD *)(a1 + 56) = 8;
*(_DWORD *)a1 = 1065353216;
sub_14003F200(a1 + 24, 0x10u, *(_QWORD *)(a1 + 8));
return a1;
}