//
// sub_952B38 from 0x952b38 to 0x952bf2 (186 bytes)
//
// 5 xrefs:
// > sub_952C08 @ 0x952c70
// > sub_952C08 @ 0x952ce2
// > sub_98086C @ 0x980894
// > sub_98086C @ 0x9808a6
// > sub_98086C @ 0x9808d2
//
// 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:25 +0000
//
int __fastcall sub_952B38(int a1, int a2, unsigned int a3, int a4, __int64 *a5)
{
int result; // r0
int v8; // r0
unsigned int v9; // r1
__int64 v10; // r2
unsigned int v11; // r1
switch ( a2 )
{
case 0:
result = 2;
if ( a3 > 0xF || a4 )
return result;
v8 = a1;
v9 = a3;
goto LABEL_11;
case 1:
if ( a4 == 5 )
{
if ( a3 <= 0x1F )
goto LABEL_18;
return 2;
}
if ( a4 != 1 || a3 > 0xF )
return 2;
sub_9532FC(a1);
LABEL_18:
v10 = *a5;
v11 = a3 + 256;
LABEL_19:
result = sub_953248(a1, v11, v10, HIDWORD(v10));
LABEL_20:
if ( result )
return 2;
return result;
case 3:
result = 2;
if ( a3 > 0x1F || a4 != 5 )
return result;
v10 = *a5;
v11 = a3 + 112;
goto LABEL_19;
case 4:
result = 2;
if ( a3 > 3 || a4 )
return result;
v9 = a3 + 192;
v8 = a1;
LABEL_11:
result = sub_9531C8(v8, v9);
goto LABEL_20;
default:
fprintf(
(FILE *)((char *)&_sF + 168),
"libunwind: %s %s:%d - %s\n",
"_Unwind_VRS_Result _Unwind_VRS_Set(_Unwind_Context *, _Unwind_VRS_RegClass, uint32_t, _Unwind_VRS_DataRepresentation, void *)",
"/Volumes/Android/buildbot/src/android/ndk-r14-release/external/libcxx/../../external/libunwind_llvm/src/Unwind-EHABI.cpp",
837,
"unsupported register class");
fflush((FILE *)((char *)&_sF + 168));
abort();
return result;
}
}