// // sub_1006666AC from 0x1006666ac to 0x100666814 (360 bytes) // // 4 xrefs: // > sub_1006A93C0 @ 0x1006a9470 // > sub_1006A9638 @ 0x1006aa144 // > sub_1006AC650 @ 0x1006ac6d0 // > sub_1006AC764 @ 0x1006ac7f0 // // This function is hookable on this platform (idp: arm, 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 11:11:01 +0000 // __int64 __fastcall sub_1006666AC(__int64 a1, int a2) { __int64 v5; // x0 int v6; // w8 __int64 v7; // x20 int v8; // w0 unsigned int v9; // w8 if ( a2 > 0 ) return 0; v5 = sub_100707584(); if ( v5 ) { if ( (v5 & 0xFF000000) == 0x2000000 ) return 5; else return 1; } if ( (a2 & 0x80000000) == 0 ) { if ( *(_DWORD *)a1 == 2 ) return 6; if ( (*(_BYTE *)(a1 + 68) & 2) != 0 && !*(_DWORD *)(*(_QWORD *)(a1 + 128) + 460LL) ) return 6; return 5; } v6 = *(_DWORD *)(a1 + 40); if ( v6 != 3 ) { LABEL_20: if ( v6 == 2 ) { v7 = *(_QWORD *)(a1 + 24); if ( (unsigned int)sub_100700778(v7, 2) ) return 3; if ( (unsigned int)sub_100700778(v7, 1) ) return 2; if ( (unsigned int)sub_100700778(v7, 4) ) goto LABEL_26; v6 = *(_DWORD *)(a1 + 40); } if ( v6 == 4 ) return 4; return 5; } v7 = *(_QWORD *)(a1 + 16); if ( (unsigned int)sub_100700778(v7, 1) ) return 2; if ( (unsigned int)sub_100700778(v7, 2) ) return 3; if ( !(unsigned int)sub_100700778(v7, 4) ) { v6 = *(_DWORD *)(a1 + 40); goto LABEL_20; } LABEL_26: v8 = sub_1007010DC(v7); if ( v8 == 3 ) v9 = 8; else v9 = 5; if ( v8 == 2 ) return 7; else return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source