// // sub_91EF5C from 0x91ef5c to 0x91f0d4 (376 bytes) // // 2 xrefs: // > sub_90C408 @ 0x90c5da // > sub_90C408 @ 0x90c80e // // 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:04:40 +0000 // unsigned int *__fastcall sub_91EF5C(unsigned int *result, int a2, int a3, char *a4) { _DWORD *v4; // r7 unsigned int *v5; // r4 int *v7; // r3 unsigned int v8; // r5 unsigned int v9; // t1 unsigned int v10; // r1 unsigned int v11; // t1 v4 = a4; v5 = result; switch ( a3 ) { case 0: v7 = &dword_D3632C; goto LABEL_6; case 1: v7 = (int *)&off_D36334; goto LABEL_6; case 2: v7 = &dword_D36328; goto LABEL_6; case 3: return (unsigned int *)sub_AF7CD4(a4, result, 4 * a2); case 4: v8 = (unsigned int)&result[a2]; if ( (unsigned int)result < v8 ) { do { v9 = *v5++; *v4++ = bswap32(v9); } while ( v8 > (unsigned int)v5 ); } return result; case 5: v7 = (int *)&off_D36338; goto LABEL_6; case 6: v7 = &dword_D36330; LABEL_6: result = (unsigned int *)((int (__fastcall *)(unsigned int *, int, _DWORD *))*v7)(result, a2, v4); break; case 7: off_D36334(result, a2, a4); result = (unsigned int *)off_D363C4(v4, 0, a2, 1, 0); break; case 8: memcpy(a4, result, 4 * a2); result = (unsigned int *)off_D363C4(v4, 0, a2, 1, 0); break; case 9: v10 = (unsigned int)&result[a2]; if ( (unsigned int)result < v10 ) { do { v11 = *v5++; *(_DWORD *)a4 = bswap32(v11); a4 += 4; } while ( v10 > (unsigned int)v5 ); } result = (unsigned int *)off_D363C4(v4, 1, a2, 1, 0); break; case 10: off_D36338(result, a2, a4); result = (unsigned int *)off_D363C8(v4); break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source