//
// sub_1002F34B0 from 0x1002f34b0 to 0x1002f3514 (100 bytes)
//
// 2 xrefs:
// > GameObject::playDestroyObjectAnim @ 0x1003e8704
// > ParticleGameObject::addMainSpriteToParent @ 0x100427164
//
// 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:02:57 +0000
//
_OWORD *__fastcall sub_1002F34B0(__int64 a1, __int64 a2, unsigned int a3, __int64 a4)
{
int v8; // w23
__int64 v9; // x0
__int64 v10; // x8
v8 = *(unsigned __int8 *)(a1 + 649);
v9 = GameManager::sharedState(a1);
v10 = 544;
if ( v8 )
v10 = 552;
return GJBaseGameLayer::parentForZLayer(*(_QWORD *)(v9 + v10), a2, a3, a4, *(unsigned __int8 *)(a1 + 1345));
}