// // sub_100663B2C from 0x100663b2c to 0x100663c60 (308 bytes) // // 2 xrefs: // > sub_1006575E0 @ 0x1006580c0 // > sub_1006575E0 @ 0x10065812c // // 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:00 +0000 // __int64 __fastcall sub_100663B2C(__int64 a1, _BYTE *a2, int *a3, int a4) { __int64 v7; // x21 __int64 v8; // x8 int v9; // w0 int v10; // w22 int v11; // w24 __int64 v12; // x2 __int64 v13; // x4 _BYTE *v15; // x25 __int64 v16; // x23 __int64 v17; // x0 _BYTE *v18; // x8 if ( !a1 || (v7 = *(_QWORD *)(a1 + 648)) == 0 && ((v8 = *(_QWORD *)(a1 + 368)) == 0 || (v7 = *(_QWORD *)(v8 + 728)) == 0) ) { v7 = 0; } v9 = sub_100704BB4(v7); v10 = v9; if ( a2 ) { if ( !v9 ) { v12 = 354; v13 = 254; goto LABEL_12; } v11 = 2 * v9 + 3; if ( v11 > a4 ) { v12 = 363; v13 = 260; LABEL_12: sub_100706FB0(20, 307, v12, "d1_srtp.c", v13); return 1; } *a2 = (unsigned int)v9 >> 7; a2[1] = 2 * v9; v15 = a2 + 2; if ( v9 < 1 ) { v18 = a2 + 2; } else { v16 = 0; do { v17 = sub_100704BC8(v7, v16); *v15 = BYTE1(*(_QWORD *)(v17 + 8)); a2[3] = *(_QWORD *)(v17 + 8); v16 = (unsigned int)(v16 + 1); v18 = a2 + 4; a2 = v15; v15 = v18; } while ( v10 != (_DWORD)v16 ); } *v18 = 0; } else { v11 = 2 * v9 + 3; } *a3 = v11; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source