// // sub_C29334 from 0xc29334 to 0xc294c0 (396 bytes) // // 2 xrefs: // > jinit_2pass_quantizer @ 0xc2aa80 // > jinit_2pass_quantizer @ 0xc2aa88 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void *__fastcall sub_C29334(__int64 a1, int a2) { __int64 v3; // x21 int v4; // w0 void **v5; // x19 void **v6; // x20 void *v7; // t1 void *result; // x0 __int64 (__fastcall *v9)(); // x1 int v10; // w2 __int64 v11; // x1 __int64 v12; // x0 int v13; // w2 void *v14; // x0 size_t v15; // x22 v3 = *(_QWORD *)(a1 + 656); v4 = *(_DWORD *)(a1 + 112); v5 = *(void ***)(v3 + 48); if ( !v4 ) { if ( a2 ) goto LABEL_3; v9 = sub_C2A200; LABEL_9: v10 = *(_DWORD *)(a1 + 156); *(_QWORD *)(v3 + 8) = v9; *(_QWORD *)(v3 + 16) = nullsub_42; if ( v10 <= 0 ) { v11 = *(_QWORD *)a1; v12 = a1; *(_DWORD *)(*(_QWORD *)a1 + 44LL) = 1; v13 = 58; } else { if ( v10 <= 256 ) { if ( v4 != 2 ) goto LABEL_12; LABEL_17: v14 = *(void **)(v3 + 64); v15 = 6LL * (unsigned int)(*(_DWORD *)(a1 + 136) + 2); if ( !v14 ) { v14 = (void *)(*(__int64 (__fastcall **)(__int64, __int64, size_t))(*(_QWORD *)(a1 + 8) + 8LL))(a1, 1, v15); *(_QWORD *)(v3 + 64) = v14; } memset(v14, 0, v15); if ( !*(_QWORD *)(v3 + 80) ) sub_C28FB0(a1); *(_DWORD *)(v3 + 72) = 0; LABEL_12: result = (void *)*(unsigned int *)(v3 + 56); if ( !(_DWORD)result ) return result; goto LABEL_4; } v11 = *(_QWORD *)a1; v12 = a1; *(_DWORD *)(*(_QWORD *)a1 + 44LL) = 256; v13 = 59; } *(_DWORD *)(v11 + 40) = v13; (**(void (__fastcall ***)(__int64))a1)(v12); if ( *(_DWORD *)(a1 + 112) != 2 ) goto LABEL_12; goto LABEL_17; } v4 = 2; *(_DWORD *)(a1 + 112) = 2; if ( !a2 ) { v9 = sub_C2A300; goto LABEL_9; } LABEL_3: *(_QWORD *)(v3 + 8) = sub_C28F24; *(_QWORD *)(v3 + 16) = sub_C2A6AC; *(_DWORD *)(v3 + 56) = 1; LABEL_4: v6 = v5 + 32; do { v7 = *v5++; result = memset(v7, 0, 0x1000u); } while ( v5 != v6 ); *(_DWORD *)(v3 + 56) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source