// // sub_97B2D4 from 0x97b2d4 to 0x97b33e (106 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:03 +0000 // int __fastcall sub_97B2D4(unsigned __int8 *a1, unsigned __int8 *a2, unsigned int a3) { unsigned int v3; // r3 unsigned __int64 v4; // kr00_8 unsigned int v5; // r4 unsigned int v6; // r6 unsigned __int8 *v7; // r5 int v8; // r8 int v9; // r6 v3 = *a1; if ( (v3 & 1) != 0 ) v4 = *(_QWORD *)(a1 + 4); else v4 = __PAIR64__((unsigned int)(a1 + 4), v3 >> 1); v5 = *((_DWORD *)a2 + 1); v6 = *a2; v7 = *((unsigned __int8 **)a2 + 2); if ( (v6 & 1) == 0 ) { v5 = v6 >> 1; v7 = a2 + 4; } if ( (unsigned int)v4 <= a3 ) return -1; v8 = HIDWORD(v4) + 4 * a3; v9 = 4 * a3; while ( v5 ) { if ( !sub_998B64(v7, *(_DWORD *)(HIDWORD(v4) + v9), v5) ) { v8 = HIDWORD(v4) + v9; return (v8 - HIDWORD(v4)) >> 2; } v9 += 4; if ( 4 * (_DWORD)v4 == v9 ) return -1; } return (v8 - HIDWORD(v4)) >> 2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source