// // sub_9812D4 from 0x9812d4 to 0x98135e (138 bytes) // // 0 xrefs: // // 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:06:07 +0000 // int __fastcall sub_9812D4(int *a1, int a2, _DWORD *a3, int a4) { int v7; // r6 int result; // r0 unsigned int v9; // r6 _DWORD *v10; // r5 _DWORD *v11; // r0 if ( a1 == *(int **)(a2 + 8) ) { v11 = *(_DWORD **)(a2 + 16); if ( v11 ) { if ( v11 == a3 ) { result = *(_DWORD *)(a2 + 24); if ( result == 2 ) *(_DWORD *)(a2 + 24) = a4; } else { ++*(_DWORD *)(a2 + 36); *(_DWORD *)(a2 + 24) = 2; *(_BYTE *)(a2 + 54) = 1; return 1; } } else { *(_DWORD *)(a2 + 16) = a3; *(_DWORD *)(a2 + 24) = a4; *(_DWORD *)(a2 + 36) = 1; return 1; } } else { v7 = a1[3]; result = sub_98129E(a1 + 4, a2, a3); if ( v7 >= 2 ) { v9 = (unsigned int)&a1[2 * v7 + 4]; v10 = a1 + 6; do { sub_98129E(v10, a2, a3); result = *(unsigned __int8 *)(a2 + 54); if ( *(_BYTE *)(a2 + 54) ) break; v10 += 2; } while ( (unsigned int)v10 < v9 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source