// // sub_9538BC from 0x9538bc to 0x953a62 (422 bytes) // // 1 xrefs: // > sub_9535BC @ 0x953604 // // 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_9538BC(_DWORD *a1, int a2, int a3) { int v4; // r5 int v5; // r6 int v6; // r2 int *v7; // r5 int *v8; // r0 int v9; // r9 bool v10; // zf int *v11; // r6 int (__fastcall *v12)(int, int, int); // lr int v13; // r12 int v14; // r10 int v15; // r6 int v16; // r6 unsigned int v17; // r3 int v19; // r5 const char *v20; // r6 _DWORD v21[4]; // [sp+18h] [bp-24h] BYREF v4 = 0; v21[3] = a2; v5 = *(_DWORD *)(a3 + 4); sub_953AA0(v21, 0); if ( !v21[0] || v21[0] == v5 ) return v4; v7 = (int *)(*(_DWORD *)v21[2] + 8 * v21[0]); v8 = v7 - 1; v9 = *v7; v10 = v7 == (int *)&byte_4; if ( v7 != (int *)&byte_4 ) { v6 = *v8; v10 = *v8 == 1; } if ( v10 ) return 0; if ( v6 < 0 ) { v13 = 1; goto LABEL_13; } v11 = (int *)((char *)v8 + (v6 | (2 * v6) & 0x80000000)); v6 = *v11; if ( *v11 <= -1 ) { v13 = 0; v8 = v11; LABEL_13: v15 = HIBYTE(v6) & 0xF; if ( v15 == 2 ) { v12 = sub_952DE8; v16 = 1; } else { if ( v15 != 1 ) { if ( !v15 ) { v14 = (int)(v8 + 1); if ( v13 ) v14 = 0; v12 = sub_952D78; goto LABEL_19; } v19 = 808; v20 = "unknown personality routine"; LABEL_32: fprintf( (FILE *)((char *)&_sF + 168), "libunwind: %s %s:%d - %s\n", "bool libunwind::UnwindCursor::getInfoFromEHABISection(" "pint_t, const libunwind::UnwindInfoSections &) [A = libunwind::LocalAddressSpace, R = libunwind::Registers_arm]", "/Volumes/Android/buildbot/src/android/ndk-r14-release/external/libcxx/../../external/libunwind_llvm/src/UnwindCursor.hpp", v19, v20); fflush((FILE *)((char *)&_sF + 168)); abort(); } v12 = sub_952DE0; v16 = 0; } if ( ((BYTE2(v6) != 0) & (unsigned __int8)v13) != 1 ) { v14 = (int)&v8[BYTE2(v6) + 1]; goto LABEL_24; } v19 = 815; v20 = "index inlined table detected but pr function requires extra words"; goto LABEL_32; } v12 = (int (__fastcall *)(int, int, int))((char *)v11 + (v6 | (2 * v6) & 0x80000000)); v13 = 0; v14 = (int)&v11[HIBYTE(v11[1]) + 2]; v8 = v11; LABEL_19: v16 = 0; LABEL_24: v17 = (2 * *(v7 - 2)) & 0x80000000 | *(v7 - 2); a1[130] = v8; a1[122] = (char *)v7 + v17 - 8; a1[123] = (char *)v7 + ((2 * v9) & 0x80000000 | v9); a1[124] = v14; a1[125] = v12; if ( v16 ) v16 = 2; if ( v13 ) v16 = 1; v4 = 1; a1[127] = v16; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source