//
// sub_1002F68BC from 0x1002f68bc to 0x1002f696c (176 bytes)
//
// 3 xrefs:
// > GameObject::customSetup @ 0x1002f3a1c
// > GameObject::customSetup @ 0x1002f41d8
// > EnhancedGameObject::customSetup @ 0x1003018d0
//
// This function is hookable on this platform (idp: arm, 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:03:00 +0000
//
double __fastcall sub_1002F68BC(__int64 a1)
{
const mach_header_64 **v2; // x8
double result; // d0
double v4; // [xsp+8h] [xbp-18h] BYREF
*(_DWORD *)(a1 + 920) = 30;
*(_DWORD *)(a1 + 1048) = 9;
*(_BYTE *)(a1 + 1053) = 1;
*(_BYTE *)(a1 + 652) = 1;
*(_BYTE *)(a1 + 866) = 1;
*(_BYTE *)(a1 + 809) = 1;
v2 = *(const mach_header_64 ***)(a1 + 1096);
if ( v2 )
{
result = COERCE_DOUBLE(&_mh_execute_header);
*v2 = &_mh_execute_header;
}
if ( (*(_BYTE *)(a1 + 649) & 1) == 0 && (*(_BYTE *)(a1 + 1044) & 1) == 0 && *(_DWORD *)(a1 + 1028) != 1614 )
{
GameObject::createAndAddParticle(a1, 30, "keyEffect.plist", 0, 2);
sub_1000262BC((float *)&v4, 0.0, -5.0);
return sub_10002630C((_QWORD *)(a1 + 812), &v4);
}
return result;
}