//
// sub_952E98 from 0x952e98 to 0x952f9c (260 bytes)
//
// 2 xrefs:
// > sub_952DF0 @ 0x952e88
// > sub_952FBC @ 0x952fd4
//
// 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_952E98(int a1, _DWORD *a2, char a3)
{
int i; // r5
int v6; // r6
int (__fastcall *v7)(int, _DWORD *, _BYTE *); // r3
int v8; // r0
int v10; // [sp+8h] [bp-4A0h] BYREF
_DWORD v11[3]; // [sp+Ch] [bp-49Ch] BYREF
int (__fastcall *v12)(int, _DWORD *, _BYTE *); // [sp+18h] [bp-490h]
int v13; // [sp+20h] [bp-488h]
int v14; // [sp+2Ch] [bp-47Ch]
int v15; // [sp+34h] [bp-474h] BYREF
_BYTE v16[1120]; // [sp+38h] [bp-470h] BYREF
int v17; // [sp+498h] [bp-10h]
sub_95314C(v16, a1);
for ( i = 1; ; --i )
{
v6 = 1;
if ( (a3 & 1) != 0 )
{
v6 = 2;
if ( !i )
{
sub_9531C8(v16, -1);
a3 = 0;
}
}
sub_953194(v16, -2, &v15);
if ( sub_95328A(v16, v11) )
break;
v7 = v12;
if ( v12 )
{
a2[18] = v11[0];
a2[19] = v14;
a2[20] = v13;
v8 = v7(v6, a2, v16);
if ( v8 == 7 )
{
sub_953194(v16, -1, &v10);
a2[4] = v10;
sub_9532AA(v16);
return _stack_chk_guard - v17;
}
if ( v8 != 8 )
{
if ( v8 == 9 )
abort();
return _stack_chk_guard - v17;
}
if ( v15 == a2[8] )
{
fprintf(
(FILE *)((char *)&_sF + 168),
"libunwind: %s %s:%d - %s\n",
"_Unwind_Reason_Code unwind_phase2(unw_context_t *, _Unwind_Exception *, bool)",
"/Volumes/Android/buildbot/src/android/ndk-r14-release/external/libcxx/../../external/libunwind_llvm/src/Unwind-EHABI.cpp",
653,
"during phase1 personality function said it would stop here, but now in phase2 it did not stop here");
fflush((FILE *)((char *)&_sF + 168));
abort();
}
}
}
return _stack_chk_guard - v17;
}