//
// sub_AF344 from 0xaf344 to 0xaf34c (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x118e48
//
// 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 12:14:36 +0000
//
__int64 __fastcall sub_AF344(__int64 *a1, int a2, float a3)
{
__int64 v3; // x19
__int64 result; // x0
__int64 v5; // x1
__int64 v6; // x29
__int64 v7; // x30
__int64 v8; // x0
__int64 v9; // [xsp+8h] [xbp-18h] BYREF
__int64 v10; // [xsp+10h] [xbp-10h]
__int64 v11; // [xsp+18h] [xbp-8h]
v8 = *a1;
v10 = v6;
v11 = v7;
v3 = v8;
switch ( a2 )
{
case 0:
*(float *)(v8 + 640) = a3;
goto LABEL_6;
case 1:
*(float *)(v8 + 644) = a3;
goto LABEL_6;
case 2:
*(float *)(v8 + 652) = a3;
goto LABEL_6;
case 3:
*(float *)(v8 + 656) = a3;
LABEL_6:
result = sub_77980(*(_QWORD *)(v8 + 168), &v9, 16, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v9 = 7;
v5 = v9;
*(_QWORD *)(v9 + 8) = v3;
result = sub_77A28(*(_QWORD *)(v3 + 168), v5, 1);
}
break;
default:
result = 31;
break;
}
return result;
}