// // sub_9969B8 from 0x9969b8 to 0x996a32 (122 bytes) // // 2 xrefs: // > sub_995104 @ 0x995150 // > sub_995104 @ 0x99516c // // 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:40 +0000 // int __fastcall sub_9969B8(unsigned int *a1) { unsigned int v1; // r2 int v2; // r1 v1 = *a1; if ( (*a1 & 7) != 0 ) { if ( (v1 & 1) != 0 ) { return 0; } else if ( (v1 & 2) != 0 ) { *a1 = v1 >> 1; return 1; } else { *a1 = v1 >> 2; return 2; } } else { v2 = 0; if ( !(_WORD)v1 ) { v1 >>= 16; v2 = 16; } if ( !(_BYTE)v1 ) { v2 |= 8u; v1 >>= 8; } if ( (v1 & 0xF) == 0 ) { v2 |= 4u; v1 >>= 4; } if ( (v1 & 3) == 0 ) { v2 |= 2u; v1 >>= 2; } if ( (v1 & 1) == 0 ) { if ( !(v1 >> 1) ) return 32; ++v2; v1 >>= 1; } *a1 = v1; } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source