// // sub_1008E32B0 from 0x1008e32b0 to 0x1008e3439 (393 bytes) // // 1 xrefs: // > EditorSoundsLayer::buildContentForTab @ 0x1008fe5d6 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:37:47 +0000 // __int64 __fastcall sub_1008E32B0(_QWORD *a1, int a2) { unsigned __int64 v2; // r9 unsigned __int64 v3; // r10 unsigned __int64 v4; // r8 __int64 **v5; // rax __int64 *v6; // rdi unsigned __int64 v7; // r9 __int64 v8; // rax unsigned __int64 v9; // rax __int64 *v10; // rax v2 = a1[1]; if ( !v2 ) return 0; v3 = (0x101010101010101LL * ((((v2 - ((v2 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v2 - ((v2 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((v2 - ((v2 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v2 - ((v2 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v3 > 1 ) { v4 = a2; if ( v2 <= a2 ) { if ( !((v2 | a2) >> 32) ) { v4 = a2 % (unsigned int)v2; v5 = *(__int64 ***)(*a1 + 8 * v4); if ( !v5 ) return 0; goto LABEL_9; } v4 = a2 % v2; } v5 = *(__int64 ***)(*a1 + 8 * v4); if ( !v5 ) return 0; goto LABEL_9; } v4 = a2 & (v2 - 1); v5 = *(__int64 ***)(*a1 + 8 * v4); if ( !v5 ) return 0; LABEL_9: v6 = *v5; if ( !*v5 ) return 0; if ( (unsigned int)v3 < 2 ) { v7 = v2 - 1; while ( 1 ) { v8 = v6[1]; if ( v8 == a2 ) { if ( *((_DWORD *)v6 + 4) == a2 ) goto LABEL_27; } else if ( (v7 & v8) != v4 ) { return 0; } v6 = (__int64 *)*v6; if ( !v6 ) return 0; } } while ( 1 ) { v9 = v6[1]; if ( v9 == a2 ) break; if ( v9 < v2 ) goto LABEL_23; if ( (v2 | v9) >> 32 ) { v9 %= v2; LABEL_23: if ( v9 != v4 ) return 0; goto LABEL_18; } if ( (unsigned int)v9 % (unsigned int)v2 != v4 ) return 0; LABEL_18: v6 = (__int64 *)*v6; if ( !v6 ) return 0; } if ( *((_DWORD *)v6 + 4) != a2 ) goto LABEL_18; LABEL_27: v10 = (__int64 *)v6[3]; if ( v10 && *v10 ) return sub_1007FEF90(*v10); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source