// // sub_8791B8 from 0x8791b8 to 0x87926c (180 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:03:04 +0000 // int __fastcall sub_8791B8(_DWORD *a1, int a2) { _DWORD *v3; // r4 _DWORD *v4; // r2 int result; // r0 int v6; // r0 int v7; // r0 v3 = (_DWORD *)a1[101]; v3[2] = 0; v4 = (_DWORD *)a1[101]; if ( (int)a1[73] <= 1 ) { v6 = a1[74]; if ( v4[2] >= (unsigned int)(a1[72] - 1) ) v7 = *(_DWORD *)(v6 + 76); else v7 = *(_DWORD *)(v6 + 12); v4[5] = v7; result = 0; v4[3] = 0; v4[4] = 0; if ( a2 != 2 ) { LABEL_3: if ( a2 == 3 ) { if ( !v3[16] ) { *(_DWORD *)(*a1 + 20) = 3; result = (*(int (__fastcall **)(_DWORD *))*a1)(a1); } v3[1] = sub_878CE4; } else if ( a2 ) { *(_DWORD *)(*a1 + 20) = 3; return (*(int (__fastcall **)(_DWORD *))*a1)(a1); } else { if ( v3[16] ) { *(_DWORD *)(*a1 + 20) = 3; result = (*(int (__fastcall **)(_DWORD *))*a1)(a1); } v3[1] = sub_878EA0; } return result; } } else { v4[5] = 1; result = 0; v4[3] = 0; v4[4] = 0; if ( a2 != 2 ) goto LABEL_3; } if ( !v3[16] ) { *(_DWORD *)(*a1 + 20) = 3; result = (*(int (__fastcall **)(_DWORD *))*a1)(a1); } v3[1] = sub_878AF0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source