//
// sub_628C8 from 0x628c8 to 0x62978 (176 bytes)
//
// 3 xrefs:
// > sub_6202C @ 0x62210
// > sub_E7430 @ 0xe7480
// > sub_E75A4 @ 0xe75b4
//
// 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:13:54 +0000
//
__int64 __fastcall sub_628C8(__int64 a1, _DWORD *a2)
{
_DWORD *v2; // x19
__int64 v3; // x20
__int64 v4; // x3
__int64 v5; // x21
__int64 v6; // x8
_QWORD *v7; // x0
_QWORD *v8; // x23
__int64 v9; // x0
__int64 result; // x0
int v11; // w8
__int64 v12; // x9
__int64 v13; // x10
if ( !a2 )
return 31;
if ( *a2 != 5 )
return 56;
sub_634DC();
v5 = v4;
v7 = (_QWORD *)sub_6348C(*(_QWORD *)(v6 + 432));
if ( !v7 )
return 38;
v8 = v7;
*v7 = v7;
v7[1] = v7;
v7[2] = 0;
v9 = sub_63604(v7 + 3);
v8[34] = v5;
result = sub_63558(v9);
*((_DWORD *)v8 + 48) = v11;
v12 = *(_QWORD *)(v3 + 656);
*v8 = v13;
v8[1] = v12;
*(_QWORD *)(v3 + 656) = v8;
*(_QWORD *)v8[1] = v8;
if ( v2 )
*v2 = v11;
return result;
}