| // By aaronwl 2003-01-28 for mingw-msvcrt
|
| // Public domain: all copyrights disclaimed, absolutely no warranties */
|
| int vfscanf(FILE * __restrict__ stream, const char * __restrict__ format, va_list arg) {
|
| /* allocate stack (esp += frame - arg3 - (8[arg1,2] + 12)) */
|
| "lea 0xFFFFFFD8(%%rsp, %6), %%rsp\n\t"
|
| "movq %1, 0x18(%%rsp)\n\t" // stream
|
| "movq %2, 0x20(%%rsp)\n\t" // format
|
| "lea 0x28(%%rsp), %%rdi\n\t"
|
| "movq %%rdi, (%%rsp)\n\t" // memcpy dest
|
| "movq %5, 0x8(%%rsp)\n\t" // memcpy src
|
| "movq %5, 0x10(%%rsp)\n\t"
|
| "subq %6, 0x10(%%rsp)\n\t" // memcpy len
|
| : "=a"(ret), "=c"(stream), "=d"(format)
|
| : "1"(stream), "2"(format), "S"(arg),
|