//
// sub_1004353C4 from 0x1004353c4 to 0x100435490 (204 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x100284534
// > GJBaseGameLayer::playerTouchedTrigger @ 0x100284c54
// > GJBaseGameLayer::checkSpawnObjects @ 0x100287a98
// > GJBaseGameLayer::spawnObject @ 0x100287fb8
// > GJBaseGameLayer::spawnObject @ 0x10028804c
//
// 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:05:07 +0000
//
void __fastcall sub_1004353C4(__int64 a1, char **a2)
{
__int64 *v4; // x0
int v5; // [xsp+Ch] [xbp-14h] BYREF
if ( *(int *)(a1 + 1864) < 1 )
{
if ( (*(_BYTE *)(a1 + 1912) & 1) == 0 )
{
v4 = (__int64 *)(a1 + 1872);
if ( (char **)(a1 + 1872) != a2 )
sub_1000182DC(v4, *a2, a2[1], (a2[1] - *a2) >> 2);
}
}
else
{
*(_QWORD *)(a1 + 1880) = *(_QWORD *)(a1 + 1872);
sub_10000D038(a1 + 1872, (int *)(a1 + 1864));
if ( (*(_BYTE *)(a1 + 1912) & 1) == 0 )
sub_100441240(a1 + 1872, *(void **)(a1 + 1880), *a2);
if ( *a2 == a2[1] || *(_BYTE *)(a1 + 1912) == 1 )
{
v5 = -*(_DWORD *)(a1 + 916);
sub_10000D038(a1 + 1872, &v5);
}
}
}