Get LIBC_RUNTIME and LIBC_CALLS building on aarch64

This commit is contained in:
Justine Tunney 2023-05-09 01:56:56 -07:00
parent 7e46645193
commit e5e3cdf447
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
1200 changed files with 5341 additions and 3677 deletions

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp API-MS-Win-Core-Synch-l1-2-0,__imp_WaitOnAddress,WaitOnAddress,111
#ifdef __x86_64__
.text.windows
WaitOnAddress:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WaitOnAddress(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn WaitOnAddress,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp API-MS-Win-Core-Synch-l1-2-0,__imp_WakeByAddressAll,WakeByAddressAll,113
#ifdef __x86_64__
.text.windows
WakeByAddressAll:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ WakeByAddressAll:
sub $32,%rsp
call *__imp_WakeByAddressAll(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn WakeByAddressAll,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp API-MS-Win-Core-Synch-l1-2-0,__imp_WakeByAddressSingle,WakeByAddressSingle,116
#ifdef __x86_64__
.text.windows
WakeByAddressSingle:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ WakeByAddressSingle:
sub $32,%rsp
call *__imp_WakeByAddressSingle(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn WakeByAddressSingle,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp MsWSock,__imp_AcceptEx,AcceptEx,0
#ifdef __x86_64__
.text.windows
AcceptEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AcceptEx(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AcceptEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp MsWSock,__imp_DisconnectEx,DisconnectEx,0
#ifdef __x86_64__
.text.windows
DisconnectEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_DisconnectEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn DisconnectEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp MsWSock,__imp_GetAcceptExSockaddrs,GetAcceptExSockaddrs,0
#ifdef __x86_64__
.text.windows
GetAcceptExSockaddrs:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetAcceptExSockaddrs(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetAcceptExSockaddrs,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp MsWSock,__imp_TransmitFile,TransmitFile,0
#ifdef __x86_64__
.text.windows
TransmitFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_TransmitFile(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn TransmitFile,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp MsWSock,__imp_WSARecvEx,WSARecvEx,0
#ifdef __x86_64__
.text.windows
WSARecvEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSARecvEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn WSARecvEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp PowrProf,__imp_SetSuspendState,SetSuspendState,0
#ifdef __x86_64__
.text.windows
SetSuspendState:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetSuspendState(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetSuspendState,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_AccessCheck,AccessCheck,0
#ifdef __x86_64__
.text.windows
AccessCheck:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AccessCheck(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AccessCheck,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_AdjustTokenPrivileges,AdjustTokenPrivileges,0
#ifdef __x86_64__
.text.windows
AdjustTokenPrivileges:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AdjustTokenPrivileges(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AdjustTokenPrivileges,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_CreateProcessAsUserW,CreateProcessAsUserW,0
#ifdef __x86_64__
.text.windows
CreateProcessAsUser:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateProcessAsUserW(%rip),%rax
jmp __sysv2nt12
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateProcessAsUser,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_DeregisterEventSource,DeregisterEventSource,1239
#ifdef __x86_64__
.text.windows
DeregisterEventSource:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DeregisterEventSource:
sub $32,%rsp
call *__imp_DeregisterEventSource(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DeregisterEventSource,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_DuplicateToken,DuplicateToken,0
#ifdef __x86_64__
.text.windows
DuplicateToken:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_DuplicateToken(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn DuplicateToken,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_DuplicateTokenEx,DuplicateTokenEx,0
#ifdef __x86_64__
.text.windows
DuplicateTokenEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_DuplicateTokenEx(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn DuplicateTokenEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_GetFileSecurityW,GetFileSecurityW,0
#ifdef __x86_64__
.text.windows
GetFileSecurity:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileSecurityW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileSecurity,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_GetUserNameW,GetUserNameW,1381
#ifdef __x86_64__
.text.windows
GetUserName:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetUserNameW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetUserName,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_ImpersonateSelf,ImpersonateSelf,0
#ifdef __x86_64__
.text.windows
ImpersonateSelf:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ ImpersonateSelf:
sub $32,%rsp
call *__imp_ImpersonateSelf(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ImpersonateSelf,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_InitiateShutdownW,InitiateShutdownW,1403
#ifdef __x86_64__
.text.windows
InitiateShutdown:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_InitiateShutdownW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn InitiateShutdown,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_LookupPrivilegeValueW,LookupPrivilegeValueW,1432
#ifdef __x86_64__
.text.windows
LookupPrivilegeValue:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_LookupPrivilegeValueW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn LookupPrivilegeValue,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_MapGenericMask,MapGenericMask,0
#ifdef __x86_64__
.text.windows
MapGenericMask:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_MapGenericMask(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn MapGenericMask,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_OpenProcessToken,OpenProcessToken,0
#ifdef __x86_64__
.text.windows
OpenProcessToken:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_OpenProcessToken(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn OpenProcessToken,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_OpenThreadToken,OpenThreadToken,0
#ifdef __x86_64__
.text.windows
OpenThreadToken:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_OpenThreadToken(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn OpenThreadToken,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegCloseKey,RegCloseKey,0
#ifdef __x86_64__
.text.windows
RegCloseKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ RegCloseKey:
sub $32,%rsp
call *__imp_RegCloseKey(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn RegCloseKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegConnectRegistryW,RegConnectRegistryW,1608
#ifdef __x86_64__
.text.windows
RegConnectRegistry:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegConnectRegistryW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegConnectRegistry,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegCreateKeyExW,RegCreateKeyExW,0
#ifdef __x86_64__
.text.windows
RegCreateKeyEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegCreateKeyExW(%rip),%rax
jmp __sysv2nt10
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegCreateKeyEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegCreateKeyW,RegCreateKeyW,1616
#ifdef __x86_64__
.text.windows
RegCreateKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegCreateKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegCreateKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegDeleteKeyExW,RegDeleteKeyExW,0
#ifdef __x86_64__
.text.windows
RegDeleteKeyEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegDeleteKeyExW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegDeleteKeyEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegDeleteKeyW,RegDeleteKeyW,1624
#ifdef __x86_64__
.text.windows
RegDeleteKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegDeleteKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegDeleteKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegDeleteTreeW,RegDeleteTreeW,0
#ifdef __x86_64__
.text.windows
RegDeleteTree:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegDeleteTreeW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegDeleteTree,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegDeleteValueW,RegDeleteValueW,0
#ifdef __x86_64__
.text.windows
RegDeleteValue:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegDeleteValueW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegDeleteValue,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegDisablePredefinedCache,RegDisablePredefinedCache,1629
#ifdef __x86_64__
.text.windows
RegDisablePredefinedCache:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ RegDisablePredefinedCache:
sub $32,%rsp
call *__imp_RegDisablePredefinedCache(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn RegDisablePredefinedCache,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegDisableReflectionKey,RegDisableReflectionKey,1631
#ifdef __x86_64__
.text.windows
RegDisableReflectionKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ RegDisableReflectionKey:
sub $32,%rsp
call *__imp_RegDisableReflectionKey(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn RegDisableReflectionKey,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegEnableReflectionKey,RegEnableReflectionKey,1632
#ifdef __x86_64__
.text.windows
RegEnableReflectionKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ RegEnableReflectionKey:
sub $32,%rsp
call *__imp_RegEnableReflectionKey(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn RegEnableReflectionKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegEnumKeyExW,RegEnumKeyExW,0
#ifdef __x86_64__
.text.windows
RegEnumKeyEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegEnumKeyExW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegEnumKeyEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegEnumKeyW,RegEnumKeyW,1636
#ifdef __x86_64__
.text.windows
RegEnumKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegEnumKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegEnumKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegEnumValueW,RegEnumValueW,0
#ifdef __x86_64__
.text.windows
RegEnumValue:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegEnumValueW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegEnumValue,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegFlushKey,RegFlushKey,0
#ifdef __x86_64__
.text.windows
RegFlushKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ RegFlushKey:
sub $32,%rsp
call *__imp_RegFlushKey(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn RegFlushKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegGetKeySecurity,RegGetKeySecurity,0
#ifdef __x86_64__
.text.windows
RegGetKeySecurity:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegGetKeySecurity(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegGetKeySecurity,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegGetValueW,RegGetValueW,0
#ifdef __x86_64__
.text.windows
RegGetValue:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegGetValueW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegGetValue,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegLoadKeyW,RegLoadKeyW,0
#ifdef __x86_64__
.text.windows
RegLoadKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegLoadKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegLoadKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegNotifyChangeKeyValue,RegNotifyChangeKeyValue,0
#ifdef __x86_64__
.text.windows
RegNotifyChangeKeyValue:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegNotifyChangeKeyValue(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegNotifyChangeKeyValue,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegOpenCurrentUser,RegOpenCurrentUser,0
#ifdef __x86_64__
.text.windows
RegOpenCurrentUser:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegOpenCurrentUser(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegOpenCurrentUser,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegOpenKeyExW,RegOpenKeyExW,0
#ifdef __x86_64__
.text.windows
RegOpenKeyEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegOpenKeyExW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegOpenKeyEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegOpenUserClassesRoot,RegOpenUserClassesRoot,0
#ifdef __x86_64__
.text.windows
RegOpenUserClassesRoot:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegOpenUserClassesRoot(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegOpenUserClassesRoot,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegOverridePredefKey,RegOverridePredefKey,1658
#ifdef __x86_64__
.text.windows
RegOverridePredefKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegOverridePredefKey(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegOverridePredefKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegQueryInfoKeyW,RegQueryInfoKeyW,0
#ifdef __x86_64__
.text.windows
RegQueryInfoKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegQueryInfoKeyW(%rip),%rax
jmp __sysv2nt12
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegQueryInfoKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegQueryMultipleValuesW,RegQueryMultipleValuesW,0
#ifdef __x86_64__
.text.windows
RegQueryMultipleValues:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegQueryMultipleValuesW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegQueryMultipleValues,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegQueryReflectionKey,RegQueryReflectionKey,1663
#ifdef __x86_64__
.text.windows
RegQueryReflectionKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegQueryReflectionKey(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegQueryReflectionKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegQueryValueExW,RegQueryValueExW,0
#ifdef __x86_64__
.text.windows
RegQueryValueEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegQueryValueExW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegQueryValueEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegQueryValueW,RegQueryValueW,1667
#ifdef __x86_64__
.text.windows
RegQueryValue:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegQueryValueW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegQueryValue,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegReplaceKeyW,RegReplaceKeyW,1670
#ifdef __x86_64__
.text.windows
RegReplaceKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegReplaceKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegReplaceKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegRestoreKeyW,RegRestoreKeyW,0
#ifdef __x86_64__
.text.windows
RegRestoreKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegRestoreKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegRestoreKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegSaveKeyW,RegSaveKeyW,1676
#ifdef __x86_64__
.text.windows
RegSaveKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegSaveKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegSaveKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegSetKeySecurity,RegSetKeySecurity,0
#ifdef __x86_64__
.text.windows
RegSetKeySecurity:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegSetKeySecurity(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegSetKeySecurity,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegSetValueExW,RegSetValueExW,0
#ifdef __x86_64__
.text.windows
RegSetValueEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegSetValueExW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegSetValueEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegSetValueW,RegSetValueW,1683
#ifdef __x86_64__
.text.windows
RegSetValue:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegSetValueW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegSetValue,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegUnLoadKeyW,RegUnLoadKeyW,0
#ifdef __x86_64__
.text.windows
RegUnLoadKey:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegUnLoadKeyW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegUnLoadKey,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RegisterEventSourceW,RegisterEventSourceW,1687
#ifdef __x86_64__
.text.windows
RegisterEventSource:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RegisterEventSourceW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RegisterEventSource,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_ReportEventA,ReportEventA,0
#ifdef __x86_64__
.text.windows
ReportEventA:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ReportEventA(%rip),%rax
jmp __sysv2nt10
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn ReportEventA,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_ReportEventW,ReportEventW,0
#ifdef __x86_64__
.text.windows
ReportEvent:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ReportEventW(%rip),%rax
jmp __sysv2nt10
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn ReportEvent,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_RevertToSelf,RevertToSelf,0
#ifdef __x86_64__
.text.windows
RevertToSelf:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_RevertToSelf(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn RevertToSelf,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp advapi32,__imp_SystemFunction036,SystemFunction036,0
#ifdef __x86_64__
.text.windows
RtlGenRandom:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SystemFunction036(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RtlGenRandom,globl
.previous
#endif

View file

@ -61,43 +61,48 @@ imp() {
thunk() {
printf '
#ifdef __x86_64__
.text.windows
%s:
#ifdef __x86_64__
push %%rbp
mov %%rsp,%%rbp
.profilable
mov __imp_%s(%%rip),%%rax
jmp %s
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn %s,globl
.previous
#endif
' "$@"
}
thunk0() {
printf '
#ifdef __x86_64__
.text.windows
%s:
#ifdef __x86_64__
push %%rbp
mov %%rsp,%%rbp
.profilable
sub $32,%%rsp
call *__imp_%s(%%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn %s,globl
.previous
#endif
' "$@"
}
thunk1() {
printf '
#ifdef __x86_64__
.text.windows
%s:
#ifdef __x86_64__
push %%rbp
mov %%rsp,%%rbp
.profilable
@ -105,9 +110,11 @@ thunk1() {
sub $32,%%rsp
call *__imp_%s(%%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn %s,globl
.previous
#endif
' "$@"
}

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp comdlg32,__imp_ChooseColorW,ChooseColorW,103
#ifdef __x86_64__
.text.windows
ChooseColor:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ ChooseColor:
sub $32,%rsp
call *__imp_ChooseColorW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ChooseColor,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp comdlg32,__imp_ChooseFontW,ChooseFontW,105
#ifdef __x86_64__
.text.windows
ChooseFont:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ ChooseFont:
sub $32,%rsp
call *__imp_ChooseFontW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ChooseFont,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp comdlg32,__imp_GetFileTitleW,GetFileTitleW,112
#ifdef __x86_64__
.text.windows
GetFileTitle:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileTitleW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileTitle,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp comdlg32,__imp_GetOpenFileNameW,GetOpenFileNameW,114
#ifdef __x86_64__
.text.windows
GetOpenFileName:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ GetOpenFileName:
sub $32,%rsp
call *__imp_GetOpenFileNameW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetOpenFileName,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp comdlg32,__imp_GetSaveFileNameW,GetSaveFileNameW,116
#ifdef __x86_64__
.text.windows
GetSaveFileName:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ GetSaveFileName:
sub $32,%rsp
call *__imp_GetSaveFileNameW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetSaveFileName,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp comdlg32,__imp_PrintDlgW,PrintDlgW,123
#ifdef __x86_64__
.text.windows
PrintDlg:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ PrintDlg:
sub $32,%rsp
call *__imp_PrintDlgW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn PrintDlg,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp comdlg32,__imp_ReplaceTextW,ReplaceTextW,125
#ifdef __x86_64__
.text.windows
ReplaceText:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ ReplaceText:
sub $32,%rsp
call *__imp_ReplaceTextW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ReplaceText,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_BitBlt,BitBlt,1034
#ifdef __x86_64__
.text.windows
BitBlt:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_BitBlt(%rip),%rax
jmp __sysv2nt10
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn BitBlt,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_ChoosePixelFormat,ChoosePixelFormat,1040
#ifdef __x86_64__
.text.windows
ChoosePixelFormat:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ChoosePixelFormat(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn ChoosePixelFormat,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateBitmap,CreateBitmap,1056
#ifdef __x86_64__
.text.windows
CreateBitmap:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateBitmap(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateBitmap,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateCompatibleBitmap,CreateCompatibleBitmap,1063
#ifdef __x86_64__
.text.windows
CreateCompatibleBitmap:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateCompatibleBitmap(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateCompatibleBitmap,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateCompatibleDC,CreateCompatibleDC,1064
#ifdef __x86_64__
.text.windows
CreateCompatibleDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ CreateCompatibleDC:
sub $32,%rsp
call *__imp_CreateCompatibleDC(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn CreateCompatibleDC,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateDIBSection,CreateDIBSection,1069
#ifdef __x86_64__
.text.windows
CreateDIBSection:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateDIBSection(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateDIBSection,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_CreateRectRgn,CreateRectRgn,1097
#ifdef __x86_64__
.text.windows
CreateRectRgn:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateRectRgn(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateRectRgn,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_DeleteDC,DeleteDC,1384
#ifdef __x86_64__
.text.windows
DeleteDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DeleteDC:
sub $32,%rsp
call *__imp_DeleteDC(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DeleteDC,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_DeleteObject,DeleteObject,1387
#ifdef __x86_64__
.text.windows
DeleteObject:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DeleteObject:
sub $32,%rsp
call *__imp_DeleteObject(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DeleteObject,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_GetPixel,GetPixel,1691
#ifdef __x86_64__
.text.windows
GetPixel:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetPixel(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetPixel,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_RestoreDC,RestoreDC,1808
#ifdef __x86_64__
.text.windows
RestoreDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_RestoreDC(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn RestoreDC,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SaveDC,SaveDC,1815
#ifdef __x86_64__
.text.windows
SaveDC:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ SaveDC:
sub $32,%rsp
call *__imp_SaveDC(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn SaveDC,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SelectObject,SelectObject,1864
#ifdef __x86_64__
.text.windows
SelectObject:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SelectObject(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SelectObject,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetBkMode,SetBkMode,1872
#ifdef __x86_64__
.text.windows
SetBkMode:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetBkMode(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetBkMode,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetPixel,SetPixel,1901
#ifdef __x86_64__
.text.windows
SetPixel:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetPixel(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetPixel,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetPixelFormat,SetPixelFormat,1902
#ifdef __x86_64__
.text.windows
SetPixelFormat:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetPixelFormat(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetPixelFormat,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetTextAlign,SetTextAlign,1910
#ifdef __x86_64__
.text.windows
SetTextAlign:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetTextAlign(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetTextAlign,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetTextColor,SetTextColor,1912
#ifdef __x86_64__
.text.windows
SetTextColor:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetTextColor(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetTextColor,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SetTextJustification,SetTextJustification,1913
#ifdef __x86_64__
.text.windows
SetTextJustification:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetTextJustification(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn SetTextJustification,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp gdi32,__imp_SwapBuffers,SwapBuffers,1929
#ifdef __x86_64__
.text.windows
SwapBuffers:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ SwapBuffers:
sub $32,%rsp
call *__imp_SwapBuffers(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn SwapBuffers,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_AddIPAddress,AddIPAddress,0
#ifdef __x86_64__
.text.windows
AddIPAddress:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AddIPAddress(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AddIPAddress,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_AllocateAndGetTcpExTableFromStack,AllocateAndGetTcpExTableFromStack,0
#ifdef __x86_64__
.text.windows
AllocateAndGetTcpExTableFromStack:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AllocateAndGetTcpExTableFromStack(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AllocateAndGetTcpExTableFromStack,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_AllocateAndGetUdpExTableFromStack,AllocateAndGetUdpExTableFromStack,0
#ifdef __x86_64__
.text.windows
AllocateAndGetUdpExTableFromStack:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AllocateAndGetUdpExTableFromStack(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AllocateAndGetUdpExTableFromStack,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_CancelIPChangeNotify,CancelIPChangeNotify,0
#ifdef __x86_64__
.text.windows
CancelIPChangeNotify:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ CancelIPChangeNotify:
sub $32,%rsp
call *__imp_CancelIPChangeNotify(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn CancelIPChangeNotify,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_CaptureInterfaceHardwareCrossTimestamp,CaptureInterfaceHardwareCrossTimestamp,0
#ifdef __x86_64__
.text.windows
CaptureInterfaceHardwareCrossTimestamp:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CaptureInterfaceHardwareCrossTimestamp(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CaptureInterfaceHardwareCrossTimestamp,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_CreateIpForwardEntry,CreateIpForwardEntry,0
#ifdef __x86_64__
.text.windows
CreateIpForwardEntry:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ CreateIpForwardEntry:
sub $32,%rsp
call *__imp_CreateIpForwardEntry(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn CreateIpForwardEntry,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_FlushIpNetTable,FlushIpNetTable,0
#ifdef __x86_64__
.text.windows
FlushIpNetTable:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FlushIpNetTable:
sub $32,%rsp
call *__imp_FlushIpNetTable(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FlushIpNetTable,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_GetAdapterIndex,GetAdapterIndex,0
#ifdef __x86_64__
.text.windows
GetAdapterIndex:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetAdapterIndex(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetAdapterIndex,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp iphlpapi,__imp_GetAdapterOrderMap,GetAdapterOrderMap,0
#ifdef __x86_64__
.text.windows
GetAdapterOrderMap:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetAdapterOrderMap(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetAdapterOrderMap,globl
.previous
#endif

Some files were not shown because too many files have changed in this diff Show more