//
// sub_953710 from 0x953710 to 0x9537f6 (230 bytes)
//
// 1 xrefs:
// > sub_9534BE @ 0x9534c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:05:26 +0000
//
int __fastcall sub_953710(int a1, int a2, int a3, int a4)
{
unsigned int v6; // r0
_QWORD *v9; // r0
int result; // r0
int v11; // r1
v6 = a2 & 0xFFFFFFF0;
if ( (a2 & 0xFFFFFFF0) == 0x70 )
{
if ( !*(_BYTE *)(a1 + 67) )
{
*(_BYTE *)(a1 + 67) = 1;
sub_9530F4();
}
result = a1 + 8 * a2;
*(_DWORD *)(result - 556) = a4;
LOWORD(v11) = -560;
}
else if ( v6 == 272 )
{
if ( !*(_BYTE *)(a1 + 66) )
{
*(_BYTE *)(a1 + 66) = 1;
sub_9530EC((_QWORD *)(a1 + 208));
}
result = a1 + 8 * a2;
*(_DWORD *)(result - 1964) = a4;
LOWORD(v11) = -1968;
}
else
{
if ( v6 != 256 )
{
fprintf(
(FILE *)((char *)&_sF + 168),
"libunwind: %s %s:%d - %s\n",
"void libunwind::Registers_arm::setFloatRegister(int, unw_fpreg_t)",
"/Volumes/Android/buildbot/src/android/ndk-r14-release/external/libcxx/../../external/libunwind_llvm/src/Registers.hpp",
1708,
"Unknown ARM float register");
fflush((FILE *)((char *)&_sF + 168));
abort();
}
if ( !*(_BYTE *)(a1 + 65) )
{
*(_BYTE *)(a1 + 65) = 1;
v9 = (_QWORD *)(a1 + 72);
if ( *(_BYTE *)(a1 + 64) )
sub_9530E4(v9);
else
sub_9530DC(v9);
}
result = a1 + 8 * a2;
*(_DWORD *)(result - 1972) = a4;
LOWORD(v11) = -1976;
}
HIWORD(v11) = -1;
*(_DWORD *)(result + v11) = a3;
return result;
}