//
// sub_AF344 from 0xaf344 to 0xaf34c (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x118e48
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}