//
// sub_10047F348 from 0x10047f348 to 0x10047f414 (204 bytes)
//
// 1 xrefs:
// > PlayLayer::createObjectsFromSetupFinished @ 0x100145218
//
// 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:45 +0000
//
__int64 __fastcall sub_10047F348(__int64 a1, unsigned int a2)
{
__int64 v3; // x0
float v4; // s8
float32x2_t v5; // d9
__int64 v6; // x0
float v8; // [xsp+Ch] [xbp-34h] BYREF
float32x2_t v9; // [xsp+10h] [xbp-30h]
int v10; // [xsp+18h] [xbp-28h]
__int16 v11; // [xsp+1Ch] [xbp-24h] BYREF
char v12; // [xsp+1Eh] [xbp-22h]
v11 = a2;
v12 = BYTE2(a2);
v3 = *(_QWORD *)(a1 + 776);
if ( v3 )
{
v4 = (float)(unsigned __int8)a2 / 255.0;
v8 = v4;
v5 = vdiv_f32(
vcvt_f32_u32((uint32x2_t)vand_s8(
(int8x8_t)vshl_u32((uint32x2_t)vdup_n_s32(a2), (uint32x2_t)0xFFFFFFF0FFFFFFF8LL),
(int8x8_t)0xFF000000FFLL)),
(float32x2_t)vdup_n_s32(0x437F0000u));
v9 = v5;
v10 = 1065353216;
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 1360LL))(v3, &v8);
v6 = *(_QWORD *)(a1 + 776);
v8 = v4;
v9 = v5;
v10 = 1065353216;
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 1392LL))(v6, &v8);
}
return (*(__int64 (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 1352) + 960LL))(*(_QWORD *)(a1 + 1352), &v11);
}