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 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