text
stringlengths
1
1.05M
; A069129: Centered 16-gonal numbers. ; 1,17,49,97,161,241,337,449,577,721,881,1057,1249,1457,1681,1921,2177,2449,2737,3041,3361,3697,4049,4417,4801,5201,5617,6049,6497,6961,7441,7937,8449,8977,9521,10081,10657,11249,11857,12481,13121,13777,14449,15137,15841,16561,17297,18049,18817,19601,20401,21217,22049,22897,23761,24641,25537,26449,27377,28321,29281,30257,31249,32257,33281,34321,35377,36449,37537,38641,39761,40897,42049,43217,44401,45601,46817,48049,49297,50561,51841,53137,54449,55777,57121,58481,59857,61249,62657,64081,65521 add $0,1 bin $0,2 mul $0,16 add $0,1
#include <stdio.h> #include <stdlib.h> #include <io/pad.h> #include <Mini2D/Mini.hpp> #include <Mini2D/Font.hpp> #include <Mini2D/Sound.hpp> #include "comfortaa_regular_ttf.h" #include "sbfsc_adhdj_mp3.h" #include "snare_ogg.h" // using namespace Mini2D; // callbacks int drawUpdate(float deltaTime, unsigned long frame); void padUpdate(int changed, int port, padData pData); void exit(); Mini * mini = NULL; Font * font1 = NULL; Sound * sound1 = NULL; Sound * sound2 = NULL; int doExit = 0; int infiniteVoice = -1; int status; // Font sizes float FONT_LARGE; // Font locations Vector2 PRINT_ITEM0; Vector2 PRINT_ITEM1; std::wstring TEXT_PAUSEAUDIO = L"Press Triangle to pause audio."; std::wstring TEXT_RESUMEAUDIO = L"Press Triangle to resume audio."; std::wstring TEXT_STARTAUDIO = L"Press Triangle to start infinite audio."; std::wstring TEXT_SNARE = L"Press Square for snare."; int main(s32 argc, const char* argv[]) { // Load Mini mini = new Mini((Mini::PadCallback_f)&padUpdate, (Mini::DrawCallback_f)&drawUpdate, (Mini::ExitCallback_f)&exit); // Initialize location and size vectors FONT_LARGE = 0.02*mini->MAXW; PRINT_ITEM0 = Vector2(0.5*mini->MAXW, 0.5*mini->MAXH); PRINT_ITEM1 = Vector2(PRINT_ITEM0.X, 0.55*mini->MAXH); // Load comfortaa font font1 = new Font(mini); font1->TextAlign = Font::PRINT_ALIGN_CENTER; if (font1->Load((void*)comfortaa_regular_ttf, comfortaa_regular_ttf_size)) printf("error loading font\n"); // Initialize sounds sound1 = new Sound(mini); sound2 = new Sound(mini); // Load adhdj song, 101 seconds sound1->Load(sbfsc_adhdj_mp3, sbfsc_adhdj_mp3_size, 101); // Load snare sound, 0.4 seconds sound2->Load(snare_ogg, snare_ogg_size, 0.4f); mini->SetAnalogDeadzone(15); mini->SetClearColor(0x23B2D7FF); mini->SetAlphaState(1); mini->BeginDrawLoop(); return 0; } int drawUpdate(float deltaTime, unsigned long frame) { if (infiniteVoice >= 0 && status == Sound::VOICE_RUNNING) { font1->ForeColor = 0x800000FF; font1->PrintLine(TEXT_PAUSEAUDIO, NULL, PRINT_ITEM0, FONT_LARGE); } else if (infiniteVoice < 0) { font1->ForeColor = 0x000080FF; font1->PrintLine(TEXT_STARTAUDIO, NULL, PRINT_ITEM0, FONT_LARGE); } else { font1->ForeColor = 0x000080FF; font1->PrintLine(TEXT_RESUMEAUDIO, NULL, PRINT_ITEM0, FONT_LARGE); } font1->ForeColor = 0x000000FF; font1->PrintLine(TEXT_SNARE, NULL, PRINT_ITEM1, FONT_LARGE); return doExit; } void padUpdate(int changed, int port, padData pData) { status = sound1->Status(infiniteVoice); if (pData.BTN_START && changed & Mini::BTN_CHANGED_START) doExit = -1; if (pData.BTN_TRIANGLE && changed & Mini::BTN_CHANGED_TRIANGLE) { if (infiniteVoice < 0) { infiniteVoice = sound1->PlayInfinite(255, 255); } else if (status == Sound::VOICE_PAUSED) { sound1->Resume(infiniteVoice); } else { sound1->Pause(infiniteVoice); } } if (pData.BTN_SQUARE && changed & Mini::BTN_CHANGED_SQUARE) { sound2->PlayOnce(255, 255, 0, 0.4f); } } void exit() { printf("exiting\n"); if (sound1) { delete sound1; sound1 = NULL; } if (sound2) { delete sound2; sound2 = NULL; } if (font1) { delete font1; font1 = NULL; } if (mini) { delete mini; mini = NULL; } }
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x18871, %rsi lea addresses_WC_ht+0x3971, %rdi nop nop and %r8, %r8 mov $34, %rcx rep movsl nop nop nop nop nop sub %r11, %r11 lea addresses_WC_ht+0xf371, %rsi lea addresses_WC_ht+0x16f1, %rdi nop nop nop add $49789, %r13 mov $41, %rcx rep movsb xor $506, %r11 lea addresses_UC_ht+0x13429, %r11 clflush (%r11) nop nop nop nop nop inc %r9 mov (%r11), %r13w nop nop inc %rdi lea addresses_normal_ht+0x12fcd, %r13 nop nop nop nop nop cmp %rdi, %rdi mov (%r13), %rcx nop nop nop nop nop xor $59660, %r11 lea addresses_WC_ht+0x2771, %rdi sub $31593, %r9 mov $0x6162636465666768, %r13 movq %r13, (%rdi) nop nop nop nop nop inc %rcx lea addresses_normal_ht+0xca71, %r13 nop nop xor %rcx, %rcx mov $0x6162636465666768, %rdi movq %rdi, %xmm1 and $0xffffffffffffffc0, %r13 vmovntdq %ymm1, (%r13) nop nop nop nop nop sub $51432, %r13 lea addresses_WT_ht+0x1df4d, %rsi lea addresses_WC_ht+0x4971, %rdi clflush (%rsi) nop nop nop nop dec %rbx mov $41, %rcx rep movsl nop nop nop nop and %r8, %r8 lea addresses_UC_ht+0x13b71, %rsi lea addresses_normal_ht+0xb5d1, %rdi nop add %r11, %r11 mov $60, %rcx rep movsq nop nop nop lfence lea addresses_UC_ht+0x13771, %rsi xor %rbx, %rbx mov (%rsi), %di nop nop nop nop sub $11458, %rdi lea addresses_A_ht+0x1d371, %r9 nop nop and $33430, %r8 movb $0x61, (%r9) nop nop nop nop sub %rdi, %rdi lea addresses_A_ht+0xc8, %rsi lea addresses_D_ht+0xab8d, %rdi nop nop nop nop sub %r11, %r11 mov $40, %rcx rep movsw nop xor $31840, %r13 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r9 push %rax push %rbp push %rsi // Store lea addresses_WT+0x6371, %rax nop nop nop and %rsi, %rsi movw $0x5152, (%rax) nop nop nop add %r10, %r10 // Store lea addresses_A+0x1a371, %rbp nop nop nop nop nop xor %r10, %r10 movl $0x51525354, (%rbp) nop nop cmp $56899, %rax // Store mov $0x41740b0000000371, %rsi nop xor %r13, %r13 movb $0x51, (%rsi) inc %r13 // Store lea addresses_UC+0x15371, %r10 nop and %r13, %r13 mov $0x5152535455565758, %rax movq %rax, %xmm1 vmovups %ymm1, (%r10) nop nop nop sub %rax, %rax // Store lea addresses_WT+0x4371, %r9 sub %r13, %r13 mov $0x5152535455565758, %rbp movq %rbp, %xmm0 movups %xmm0, (%r9) nop nop nop xor $49663, %rax // Faulty Load lea addresses_UC+0x19b71, %rbp nop cmp $51957, %r10 mov (%rbp), %r9 lea oracles, %r13 and $0xff, %r9 shlq $12, %r9 mov (%r13,%r9,1), %r9 pop %rsi pop %rbp pop %rax pop %r9 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_WT', 'AVXalign': False, 'size': 2}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT', 'AVXalign': False, 'size': 16}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 5, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}} {'src': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
; A268147: A double binomial sum involving absolute values. ; 0,16,512,12288,262144,5242880,100663296,1879048192,34359738368,618475290624,10995116277760,193514046488576,3377699720527872,58546795155816448,1008806316530991104,17293822569102704640,295147905179352825856,5017514388048998039552,85002596691653613846528,1435599410792372144963584,24178516392292583494123520,406199075390515402701275136,6808670216069591511945183232,113890483614254985290719428608,1901475900342344102245054808064,31691265005705735037417580134400,527342649694943431022628533436416 mov $2,16 pow $2,$0 mul $0,$2
#include <iostream> #include <queue> using namespace std; struct Node{ //This is the structure of the binary tree. int data; Node *left; Node *right; }; void levelOrderTraversal(Node *root) { queue<Node *> q; q.push(root); while(!q.empty()){ root = q.front(); q.pop(); cout << root->data << " "; if(root->left!=NULL){ q.push(root->left); } if(root->right!=NULL){ q.push(root->right); } } } int main(int argc, char const *argv[]) { // Initializing a 3 element binary tree. Node *root = new Node(); root->data = 10; root->right = new Node(); root->right->data = 15; root->left = new Node(); root->left->data = 5; root->left->left = new Node(); root->left->left->data = 30; root->left->right = new Node(); root->left->right->data = 50; levelOrderTraversal(root); return 0; }
; A140099: A Beatty sequence: a(n) = [n*(1+t)], where t = tribonacci constant (A058265); complement of A140098. ; 2,5,8,11,14,17,19,22,25,28,31,34,36,39,42,45,48,51,53,56,59,62,65,68,70,73,76,79,82,85,88,90,93,96,99,102,105,107,110,113,116,119,122,124,127,130,133,136,139,141,144,147,150,153,156,159,161,164,167,170,173,176,178,181,184,187,190,193,195,198,201,204,207,210,212,215,218,221,224,227,229,232,235,238,241,244,247,249,252,255,258,261,264,266,269,272,275,278,281,283 mov $2,$0 add $0,1 seq $0,158919 ; Beatty sequence for the tribonacci constant tau (A058265): a(n) = floor(n*tau). add $0,1 add $0,$2
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gpu/command_buffer/service/async_pixel_transfer_manager_sync.h" #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" namespace gpu { // Class which handles async pixel transfers synchronously. class AsyncPixelTransferDelegateSync : public AsyncPixelTransferDelegate { public: explicit AsyncPixelTransferDelegateSync( AsyncPixelTransferManagerSync::SharedState* shared_state); virtual ~AsyncPixelTransferDelegateSync(); // Implement AsyncPixelTransferDelegate: virtual void AsyncTexImage2D( const AsyncTexImage2DParams& tex_params, const AsyncMemoryParams& mem_params, const base::Closure& bind_callback) OVERRIDE; virtual void AsyncTexSubImage2D( const AsyncTexSubImage2DParams& tex_params, const AsyncMemoryParams& mem_params) OVERRIDE; virtual bool TransferIsInProgress() OVERRIDE; virtual void WaitForTransferCompletion() OVERRIDE; private: // Safe to hold a raw pointer because SharedState is owned by the Manager // which owns the Delegate. AsyncPixelTransferManagerSync::SharedState* shared_state_; DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateSync); }; AsyncPixelTransferDelegateSync::AsyncPixelTransferDelegateSync( AsyncPixelTransferManagerSync::SharedState* shared_state) : shared_state_(shared_state) {} AsyncPixelTransferDelegateSync::~AsyncPixelTransferDelegateSync() {} void AsyncPixelTransferDelegateSync::AsyncTexImage2D( const AsyncTexImage2DParams& tex_params, const AsyncMemoryParams& mem_params, const base::Closure& bind_callback) { // Save the define params to return later during deferred // binding of the transfer texture. void* data = GetAddress(mem_params); base::TimeTicks begin_time(base::TimeTicks::HighResNow()); glTexImage2D( tex_params.target, tex_params.level, tex_params.internal_format, tex_params.width, tex_params.height, tex_params.border, tex_params.format, tex_params.type, data); shared_state_->texture_upload_count++; shared_state_->total_texture_upload_time += base::TimeTicks::HighResNow() - begin_time; // The texture is already fully bound so just call it now. bind_callback.Run(); } void AsyncPixelTransferDelegateSync::AsyncTexSubImage2D( const AsyncTexSubImage2DParams& tex_params, const AsyncMemoryParams& mem_params) { void* data = GetAddress(mem_params); base::TimeTicks begin_time(base::TimeTicks::HighResNow()); glTexSubImage2D( tex_params.target, tex_params.level, tex_params.xoffset, tex_params.yoffset, tex_params.width, tex_params.height, tex_params.format, tex_params.type, data); shared_state_->texture_upload_count++; shared_state_->total_texture_upload_time += base::TimeTicks::HighResNow() - begin_time; } bool AsyncPixelTransferDelegateSync::TransferIsInProgress() { // Already done. return false; } void AsyncPixelTransferDelegateSync::WaitForTransferCompletion() { // Already done. } AsyncPixelTransferManagerSync::SharedState::SharedState() : texture_upload_count(0) {} AsyncPixelTransferManagerSync::SharedState::~SharedState() {} AsyncPixelTransferManagerSync::AsyncPixelTransferManagerSync() {} AsyncPixelTransferManagerSync::~AsyncPixelTransferManagerSync() {} void AsyncPixelTransferManagerSync::BindCompletedAsyncTransfers() { // Everything is already bound. } void AsyncPixelTransferManagerSync::AsyncNotifyCompletion( const AsyncMemoryParams& mem_params, AsyncPixelTransferCompletionObserver* observer) { observer->DidComplete(mem_params); } uint32 AsyncPixelTransferManagerSync::GetTextureUploadCount() { return shared_state_.texture_upload_count; } base::TimeDelta AsyncPixelTransferManagerSync::GetTotalTextureUploadTime() { return shared_state_.total_texture_upload_time; } void AsyncPixelTransferManagerSync::ProcessMorePendingTransfers() { } bool AsyncPixelTransferManagerSync::NeedsProcessMorePendingTransfers() { return false; } AsyncPixelTransferDelegate* AsyncPixelTransferManagerSync::CreatePixelTransferDelegateImpl( gles2::TextureRef* ref, const AsyncTexImage2DParams& define_params) { return new AsyncPixelTransferDelegateSync(&shared_state_); } } // namespace gpu
; A024118: a(n) = 10^n - n^4. ; 1,9,84,919,9744,99375,998704,9997599,99995904,999993439,9999990000,99999985359,999999979264,9999999971439,99999999961584,999999999949375,9999999999934464,99999999999916479,999999999999895024,9999999999999869679,99999999999999840000,999999999999999805519,9999999999999999765744,99999999999999999720159,999999999999999999668224,9999999999999999999609375,99999999999999999999543024,999999999999999999999468559,9999999999999999999999385344,99999999999999999999999292719,999999999999999999999999190000 mov $1,10 pow $1,$0 pow $0,4 sub $1,$0 mov $0,$1
/*--------------------------------------------------------------------- DbgString.cpp - Sample to test existence of DBWinMutex. Software Debugging by Raymond Zhang, All rights reserved. ---------------------------------------------------------------------*/ #include "stdafx.h" #include <windows.h> int main(int argc, char* argv[]) { printf("Program to test existence of DBWinMutex object.\n"); BOOL bDebuggerPresent=IsDebuggerPresent(); if(!bDebuggerPresent) { printf("Inspect this process now to verify no DBWinMutex.\n"); getchar(); OutputDebugString(argv[0]); printf("Inspect this process now to verify DBWinMutex exists.\n"); getchar(); } else { OutputDebugString(argv[0]); printf("Inspect this process now to verify no DBWinMutex.\n"); getchar(); } return 0; }
// r_c_shortest_paths.hpp header file // Copyright Michael Drexl 2005, 2006. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://boost.org/LICENSE_1_0.txt) #ifndef BOOST_GRAPH_R_C_SHORTEST_PATHS_HPP #define BOOST_GRAPH_R_C_SHORTEST_PATHS_HPP #include <map> #include <queue> #include <vector> #include <boost/graph/graph_traits.hpp> namespace boost { // r_c_shortest_paths_label struct template<class Graph, class Resource_Container> struct r_c_shortest_paths_label { r_c_shortest_paths_label ( const unsigned long n, const Resource_Container& rc = Resource_Container(), const r_c_shortest_paths_label* const pl = 0, const typename graph_traits<Graph>::edge_descriptor& ed = graph_traits<Graph>::edge_descriptor(), const typename graph_traits<Graph>::vertex_descriptor& vd = graph_traits<Graph>::vertex_descriptor() ) : num( n ), cumulated_resource_consumption( rc ), p_pred_label( pl ), pred_edge( ed ), resident_vertex( vd ), b_is_dominated( false ), b_is_processed( false ) {} r_c_shortest_paths_label& operator=( const r_c_shortest_paths_label& other ) { if( this == &other ) return *this; this->~r_c_shortest_paths_label(); new( this ) r_c_shortest_paths_label( other ); return *this; } const unsigned long num; Resource_Container cumulated_resource_consumption; const r_c_shortest_paths_label* const p_pred_label; const typename graph_traits<Graph>::edge_descriptor pred_edge; const typename graph_traits<Graph>::vertex_descriptor resident_vertex; bool b_is_dominated; bool b_is_processed; }; // r_c_shortest_paths_label template<class Graph, class Resource_Container> inline bool operator== ( const r_c_shortest_paths_label<Graph, Resource_Container>& l1, const r_c_shortest_paths_label<Graph, Resource_Container>& l2 ) { return l1.cumulated_resource_consumption == l2.cumulated_resource_consumption; } template<class Graph, class Resource_Container> inline bool operator!= ( const r_c_shortest_paths_label<Graph, Resource_Container>& l1, const r_c_shortest_paths_label<Graph, Resource_Container>& l2 ) { return !( l1 == l2 ); } template<class Graph, class Resource_Container> inline bool operator< ( const r_c_shortest_paths_label<Graph, Resource_Container>& l1, const r_c_shortest_paths_label<Graph, Resource_Container>& l2 ) { return l1.cumulated_resource_consumption < l2.cumulated_resource_consumption; } template<class Graph, class Resource_Container> inline bool operator> ( const r_c_shortest_paths_label<Graph, Resource_Container>& l1, const r_c_shortest_paths_label<Graph, Resource_Container>& l2 ) { return l2.cumulated_resource_consumption < l1.cumulated_resource_consumption; } template<class Graph, class Resource_Container> inline bool operator<= ( const r_c_shortest_paths_label<Graph, Resource_Container>& l1, const r_c_shortest_paths_label<Graph, Resource_Container>& l2 ) { return l1 < l2 || l1 == l2; } template<class Graph, class Resource_Container> inline bool operator>= ( const r_c_shortest_paths_label<Graph, Resource_Container>& l1, const r_c_shortest_paths_label<Graph, Resource_Container>& l2 ) { return l2 < l1 || l1 == l2; } namespace detail { // ks_smart_pointer class // from: // Kuhlins, S.; Schader, M. (1999): // Die C++-Standardbibliothek // Springer, Berlin // p. 333 f. template<class T> class ks_smart_pointer { public: ks_smart_pointer( T* ptt = 0 ) : pt( ptt ) {} ks_smart_pointer( const ks_smart_pointer& other ) : pt( other.pt ) {} ks_smart_pointer& operator=( const ks_smart_pointer& other ) { pt = other.pt; return *this; } ~ks_smart_pointer() {} T& operator*() const { return *pt; } T* operator->() const { return pt; } T* get() const { return pt; } operator T*() const { return pt; } friend bool operator==( const ks_smart_pointer& t, const ks_smart_pointer& u ) { return *t.pt == *u.pt; } friend bool operator!=( const ks_smart_pointer& t, const ks_smart_pointer& u ) { return *t.pt != *u.pt; } friend bool operator<( const ks_smart_pointer& t, const ks_smart_pointer& u ) { return *t.pt < *u.pt; } friend bool operator>( const ks_smart_pointer& t, const ks_smart_pointer& u ) { return *t.pt > *u.pt; } friend bool operator<=( const ks_smart_pointer& t, const ks_smart_pointer& u ) { return *t.pt <= *u.pt; } friend bool operator>=( const ks_smart_pointer& t, const ks_smart_pointer& u ) { return *t.pt >= *u.pt; } private: T* pt; }; // ks_smart_pointer // r_c_shortest_paths_dispatch function (body/implementation) template<class Graph, class VertexIndexMap, class EdgeIndexMap, class Resource_Container, class Resource_Extension_Function, class Dominance_Function, class Label_Allocator, class Visitor> void r_c_shortest_paths_dispatch ( const Graph& g, const VertexIndexMap& vertex_index_map, const EdgeIndexMap& /*edge_index_map*/, typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor t, // each inner vector corresponds to a pareto-optimal path std::vector <std::vector <typename graph_traits <Graph>::edge_descriptor> >& pareto_optimal_solutions, std::vector <Resource_Container>& pareto_optimal_resource_containers, bool b_all_pareto_optimal_solutions, // to initialize the first label/resource container // and to carry the type information const Resource_Container& rc, Resource_Extension_Function& ref, Dominance_Function& dominance, // to specify the memory management strategy for the labels Label_Allocator /*la*/, Visitor vis ) { pareto_optimal_resource_containers.clear(); pareto_optimal_solutions.clear(); typedef typename boost::graph_traits<Graph>::vertices_size_type vertices_size_type; size_t i_label_num = 0; typedef typename Label_Allocator::template rebind <r_c_shortest_paths_label <Graph, Resource_Container> >::other LAlloc; LAlloc l_alloc; typedef ks_smart_pointer <r_c_shortest_paths_label<Graph, Resource_Container> > Splabel; std::priority_queue<Splabel, std::vector<Splabel>, std::greater<Splabel> > unprocessed_labels; bool b_feasible = true; r_c_shortest_paths_label<Graph, Resource_Container>* first_label = l_alloc.allocate( 1 ); l_alloc.construct ( first_label, r_c_shortest_paths_label <Graph, Resource_Container>( i_label_num++, rc, 0, typename graph_traits<Graph>:: edge_descriptor(), s ) ); Splabel splabel_first_label = Splabel( first_label ); unprocessed_labels.push( splabel_first_label ); std::vector<std::list<Splabel> > vec_vertex_labels( num_vertices( g ) ); vec_vertex_labels[vertex_index_map[s]].push_back( splabel_first_label ); std::vector<typename std::list<Splabel>::iterator> vec_last_valid_positions_for_dominance( num_vertices( g ) ); for( vertices_size_type i = 0; i < num_vertices( g ); ++i ) vec_last_valid_positions_for_dominance[i] = vec_vertex_labels[i].begin(); std::vector<size_t> vec_last_valid_index_for_dominance( num_vertices( g ), 0 ); std::vector<bool> b_vec_vertex_already_checked_for_dominance( num_vertices( g ), false ); while( !unprocessed_labels.empty() && vis.on_enter_loop(unprocessed_labels, g) ) { Splabel cur_label = unprocessed_labels.top(); unprocessed_labels.pop(); vis.on_label_popped( *cur_label, g ); // an Splabel object in unprocessed_labels and the respective Splabel // object in the respective list<Splabel> of vec_vertex_labels share their // embedded r_c_shortest_paths_label object // to avoid memory leaks, dominated // r_c_shortest_paths_label objects are marked and deleted when popped // from unprocessed_labels, as they can no longer be deleted at the end of // the function; only the Splabel object in unprocessed_labels still // references the r_c_shortest_paths_label object // this is also for efficiency, because the else branch is executed only // if there is a chance that extending the // label leads to new undominated labels, which in turn is possible only // if the label to be extended is undominated if( !cur_label->b_is_dominated ) { vertices_size_type i_cur_resident_vertex_num = get(vertex_index_map, cur_label->resident_vertex); std::list<Splabel>& list_labels_cur_vertex = vec_vertex_labels[i_cur_resident_vertex_num]; if( list_labels_cur_vertex.size() >= 2 && vec_last_valid_index_for_dominance[i_cur_resident_vertex_num] < list_labels_cur_vertex.size() ) { typename std::list<Splabel>::iterator outer_iter = list_labels_cur_vertex.begin(); bool b_outer_iter_at_or_beyond_last_valid_pos_for_dominance = false; while( outer_iter != list_labels_cur_vertex.end() ) { Splabel cur_outer_splabel = *outer_iter; typename std::list<Splabel>::iterator inner_iter = outer_iter; if( !b_outer_iter_at_or_beyond_last_valid_pos_for_dominance && outer_iter == vec_last_valid_positions_for_dominance [i_cur_resident_vertex_num] ) b_outer_iter_at_or_beyond_last_valid_pos_for_dominance = true; if( !b_vec_vertex_already_checked_for_dominance [i_cur_resident_vertex_num] || b_outer_iter_at_or_beyond_last_valid_pos_for_dominance ) { ++inner_iter; } else { inner_iter = vec_last_valid_positions_for_dominance [i_cur_resident_vertex_num]; ++inner_iter; } bool b_outer_iter_erased = false; while( inner_iter != list_labels_cur_vertex.end() ) { Splabel cur_inner_splabel = *inner_iter; if( dominance( cur_outer_splabel-> cumulated_resource_consumption, cur_inner_splabel-> cumulated_resource_consumption ) ) { typename std::list<Splabel>::iterator buf = inner_iter; ++inner_iter; list_labels_cur_vertex.erase( buf ); if( cur_inner_splabel->b_is_processed ) { l_alloc.destroy( cur_inner_splabel.get() ); l_alloc.deallocate( cur_inner_splabel.get(), 1 ); } else cur_inner_splabel->b_is_dominated = true; continue; } else ++inner_iter; if( dominance( cur_inner_splabel-> cumulated_resource_consumption, cur_outer_splabel-> cumulated_resource_consumption ) ) { typename std::list<Splabel>::iterator buf = outer_iter; ++outer_iter; list_labels_cur_vertex.erase( buf ); b_outer_iter_erased = true; if( cur_outer_splabel->b_is_processed ) { l_alloc.destroy( cur_outer_splabel.get() ); l_alloc.deallocate( cur_outer_splabel.get(), 1 ); } else cur_outer_splabel->b_is_dominated = true; break; } } if( !b_outer_iter_erased ) ++outer_iter; } if( list_labels_cur_vertex.size() > 1 ) vec_last_valid_positions_for_dominance[i_cur_resident_vertex_num] = (--(list_labels_cur_vertex.end())); else vec_last_valid_positions_for_dominance[i_cur_resident_vertex_num] = list_labels_cur_vertex.begin(); b_vec_vertex_already_checked_for_dominance [i_cur_resident_vertex_num] = true; vec_last_valid_index_for_dominance[i_cur_resident_vertex_num] = list_labels_cur_vertex.size() - 1; } } if( !b_all_pareto_optimal_solutions && cur_label->resident_vertex == t ) { // the devil don't sleep if( cur_label->b_is_dominated ) { l_alloc.destroy( cur_label.get() ); l_alloc.deallocate( cur_label.get(), 1 ); } while( unprocessed_labels.size() ) { Splabel l = unprocessed_labels.top(); unprocessed_labels.pop(); // delete only dominated labels, because nondominated labels are // deleted at the end of the function if( l->b_is_dominated ) { l_alloc.destroy( l.get() ); l_alloc.deallocate( l.get(), 1 ); } } break; } if( !cur_label->b_is_dominated ) { cur_label->b_is_processed = true; vis.on_label_not_dominated( *cur_label, g ); typename graph_traits<Graph>::vertex_descriptor cur_vertex = cur_label->resident_vertex; typename graph_traits<Graph>::out_edge_iterator oei, oei_end; for( boost::tie( oei, oei_end ) = out_edges( cur_vertex, g ); oei != oei_end; ++oei ) { b_feasible = true; r_c_shortest_paths_label<Graph, Resource_Container>* new_label = l_alloc.allocate( 1 ); l_alloc.construct( new_label, r_c_shortest_paths_label <Graph, Resource_Container> ( i_label_num++, cur_label->cumulated_resource_consumption, cur_label.get(), *oei, target( *oei, g ) ) ); b_feasible = ref( g, new_label->cumulated_resource_consumption, new_label->p_pred_label->cumulated_resource_consumption, new_label->pred_edge ); if( !b_feasible ) { vis.on_label_not_feasible( *new_label, g ); l_alloc.destroy( new_label ); l_alloc.deallocate( new_label, 1 ); } else { const r_c_shortest_paths_label<Graph, Resource_Container>& ref_new_label = *new_label; vis.on_label_feasible( ref_new_label, g ); Splabel new_sp_label( new_label ); vec_vertex_labels[vertex_index_map[new_sp_label->resident_vertex]]. push_back( new_sp_label ); unprocessed_labels.push( new_sp_label ); } } } else { vis.on_label_dominated( *cur_label, g ); l_alloc.destroy( cur_label.get() ); l_alloc.deallocate( cur_label.get(), 1 ); } } std::list<Splabel> dsplabels = vec_vertex_labels[vertex_index_map[t]]; typename std::list<Splabel>::const_iterator csi = dsplabels.begin(); typename std::list<Splabel>::const_iterator csi_end = dsplabels.end(); // if d could be reached from o if( !dsplabels.empty() ) { for( ; csi != csi_end; ++csi ) { std::vector<typename graph_traits<Graph>::edge_descriptor> cur_pareto_optimal_path; const r_c_shortest_paths_label<Graph, Resource_Container>* p_cur_label = (*csi).get(); pareto_optimal_resource_containers. push_back( p_cur_label->cumulated_resource_consumption ); while( p_cur_label->num != 0 ) { cur_pareto_optimal_path.push_back( p_cur_label->pred_edge ); p_cur_label = p_cur_label->p_pred_label; } pareto_optimal_solutions.push_back( cur_pareto_optimal_path ); if( !b_all_pareto_optimal_solutions ) break; } } size_t i_size = vec_vertex_labels.size(); for( size_t i = 0; i < i_size; ++i ) { const std::list<Splabel>& list_labels_cur_vertex = vec_vertex_labels[i]; csi_end = list_labels_cur_vertex.end(); for( csi = list_labels_cur_vertex.begin(); csi != csi_end; ++csi ) { l_alloc.destroy( (*csi).get() ); l_alloc.deallocate( (*csi).get(), 1 ); } } } // r_c_shortest_paths_dispatch } // detail // default_r_c_shortest_paths_visitor struct struct default_r_c_shortest_paths_visitor { template<class Label, class Graph> void on_label_popped( const Label&, const Graph& ) {} template<class Label, class Graph> void on_label_feasible( const Label&, const Graph& ) {} template<class Label, class Graph> void on_label_not_feasible( const Label&, const Graph& ) {} template<class Label, class Graph> void on_label_dominated( const Label&, const Graph& ) {} template<class Label, class Graph> void on_label_not_dominated( const Label&, const Graph& ) {} template<class Queue, class Graph> bool on_enter_loop(const Queue& queue, const Graph& graph) {return true;} }; // default_r_c_shortest_paths_visitor // default_r_c_shortest_paths_allocator typedef std::allocator<int> default_r_c_shortest_paths_allocator; // default_r_c_shortest_paths_allocator // r_c_shortest_paths functions (handle/interface) // first overload: // - return all pareto-optimal solutions // - specify Label_Allocator and Visitor arguments template<class Graph, class VertexIndexMap, class EdgeIndexMap, class Resource_Container, class Resource_Extension_Function, class Dominance_Function, class Label_Allocator, class Visitor> void r_c_shortest_paths ( const Graph& g, const VertexIndexMap& vertex_index_map, const EdgeIndexMap& edge_index_map, typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor t, // each inner vector corresponds to a pareto-optimal path std::vector<std::vector<typename graph_traits<Graph>::edge_descriptor> >& pareto_optimal_solutions, std::vector<Resource_Container>& pareto_optimal_resource_containers, // to initialize the first label/resource container // and to carry the type information const Resource_Container& rc, const Resource_Extension_Function& ref, const Dominance_Function& dominance, // to specify the memory management strategy for the labels Label_Allocator la, Visitor vis ) { r_c_shortest_paths_dispatch( g, vertex_index_map, edge_index_map, s, t, pareto_optimal_solutions, pareto_optimal_resource_containers, true, rc, ref, dominance, la, vis ); } // second overload: // - return only one pareto-optimal solution // - specify Label_Allocator and Visitor arguments template<class Graph, class VertexIndexMap, class EdgeIndexMap, class Resource_Container, class Resource_Extension_Function, class Dominance_Function, class Label_Allocator, class Visitor> void r_c_shortest_paths ( const Graph& g, const VertexIndexMap& vertex_index_map, const EdgeIndexMap& edge_index_map, typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor t, std::vector<typename graph_traits<Graph>::edge_descriptor>& pareto_optimal_solution, Resource_Container& pareto_optimal_resource_container, // to initialize the first label/resource container // and to carry the type information const Resource_Container& rc, const Resource_Extension_Function& ref, const Dominance_Function& dominance, // to specify the memory management strategy for the labels Label_Allocator la, Visitor vis ) { // each inner vector corresponds to a pareto-optimal path std::vector<std::vector<typename graph_traits<Graph>::edge_descriptor> > pareto_optimal_solutions; std::vector<Resource_Container> pareto_optimal_resource_containers; r_c_shortest_paths_dispatch( g, vertex_index_map, edge_index_map, s, t, pareto_optimal_solutions, pareto_optimal_resource_containers, false, rc, ref, dominance, la, vis ); if (!pareto_optimal_solutions.empty()) { pareto_optimal_solution = pareto_optimal_solutions[0]; pareto_optimal_resource_container = pareto_optimal_resource_containers[0]; } } // third overload: // - return all pareto-optimal solutions // - use default Label_Allocator and Visitor template<class Graph, class VertexIndexMap, class EdgeIndexMap, class Resource_Container, class Resource_Extension_Function, class Dominance_Function> void r_c_shortest_paths ( const Graph& g, const VertexIndexMap& vertex_index_map, const EdgeIndexMap& edge_index_map, typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor t, // each inner vector corresponds to a pareto-optimal path std::vector<std::vector<typename graph_traits<Graph>::edge_descriptor> >& pareto_optimal_solutions, std::vector<Resource_Container>& pareto_optimal_resource_containers, // to initialize the first label/resource container // and to carry the type information const Resource_Container& rc, const Resource_Extension_Function& ref, const Dominance_Function& dominance ) { r_c_shortest_paths_dispatch( g, vertex_index_map, edge_index_map, s, t, pareto_optimal_solutions, pareto_optimal_resource_containers, true, rc, ref, dominance, default_r_c_shortest_paths_allocator(), default_r_c_shortest_paths_visitor() ); } // fourth overload: // - return only one pareto-optimal solution // - use default Label_Allocator and Visitor template<class Graph, class VertexIndexMap, class EdgeIndexMap, class Resource_Container, class Resource_Extension_Function, class Dominance_Function> void r_c_shortest_paths ( const Graph& g, const VertexIndexMap& vertex_index_map, const EdgeIndexMap& edge_index_map, typename graph_traits<Graph>::vertex_descriptor s, typename graph_traits<Graph>::vertex_descriptor t, std::vector<typename graph_traits<Graph>::edge_descriptor>& pareto_optimal_solution, Resource_Container& pareto_optimal_resource_container, // to initialize the first label/resource container // and to carry the type information const Resource_Container& rc, const Resource_Extension_Function& ref, const Dominance_Function& dominance ) { // each inner vector corresponds to a pareto-optimal path std::vector<std::vector<typename graph_traits<Graph>::edge_descriptor> > pareto_optimal_solutions; std::vector<Resource_Container> pareto_optimal_resource_containers; r_c_shortest_paths_dispatch( g, vertex_index_map, edge_index_map, s, t, pareto_optimal_solutions, pareto_optimal_resource_containers, false, rc, ref, dominance, default_r_c_shortest_paths_allocator(), default_r_c_shortest_paths_visitor() ); if (!pareto_optimal_solutions.empty()) { pareto_optimal_solution = pareto_optimal_solutions[0]; pareto_optimal_resource_container = pareto_optimal_resource_containers[0]; } } // r_c_shortest_paths // check_r_c_path function template<class Graph, class Resource_Container, class Resource_Extension_Function> void check_r_c_path( const Graph& g, const std::vector <typename graph_traits <Graph>::edge_descriptor>& ed_vec_path, const Resource_Container& initial_resource_levels, // if true, computed accumulated final resource levels must // be equal to desired_final_resource_levels // if false, computed accumulated final resource levels must // be less than or equal to desired_final_resource_levels bool b_result_must_be_equal_to_desired_final_resource_levels, const Resource_Container& desired_final_resource_levels, Resource_Container& actual_final_resource_levels, const Resource_Extension_Function& ref, bool& b_is_a_path_at_all, bool& b_feasible, bool& b_correctly_extended, typename graph_traits<Graph>::edge_descriptor& ed_last_extended_arc ) { size_t i_size_ed_vec_path = ed_vec_path.size(); std::vector<typename graph_traits<Graph>::edge_descriptor> buf_path; if( i_size_ed_vec_path == 0 ) b_feasible = true; else { if( i_size_ed_vec_path == 1 || target( ed_vec_path[0], g ) == source( ed_vec_path[1], g ) ) buf_path = ed_vec_path; else for( size_t i = i_size_ed_vec_path ; i > 0; --i ) buf_path.push_back( ed_vec_path[i - 1] ); for( size_t i = 0; i < i_size_ed_vec_path - 1; ++i ) { if( target( buf_path[i], g ) != source( buf_path[i + 1], g ) ) { b_is_a_path_at_all = false; b_feasible = false; b_correctly_extended = false; return; } } } b_is_a_path_at_all = true; b_feasible = true; b_correctly_extended = false; Resource_Container current_resource_levels = initial_resource_levels; actual_final_resource_levels = current_resource_levels; for( size_t i = 0; i < i_size_ed_vec_path; ++i ) { ed_last_extended_arc = buf_path[i]; b_feasible = ref( g, actual_final_resource_levels, current_resource_levels, buf_path[i] ); current_resource_levels = actual_final_resource_levels; if( !b_feasible ) return; } if( b_result_must_be_equal_to_desired_final_resource_levels ) b_correctly_extended = actual_final_resource_levels == desired_final_resource_levels ? true : false; else { if( actual_final_resource_levels < desired_final_resource_levels || actual_final_resource_levels == desired_final_resource_levels ) b_correctly_extended = true; } } // check_path } // namespace #endif // BOOST_GRAPH_R_C_SHORTEST_PATHS_HPP
.global s_prepare_buffers s_prepare_buffers: push %r13 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1ced8, %rsi lea addresses_D_ht+0x13e58, %rdi nop nop xor %r13, %r13 mov $113, %rcx rep movsq nop cmp %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rbp push %rdi // Faulty Load lea addresses_WT+0x66d8, %r14 nop nop nop nop nop cmp %rdi, %rdi movb (%r14), %r15b lea oracles, %rbp and $0xff, %r15 shlq $12, %r15 mov (%rbp,%r15,1), %r15 pop %rdi pop %rbp pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
#load exception handler lc r40, 0x8000002c leh r40 #enable exceptions cle #load junk tlb entry for memory tests lc r44, 2 #load into TLB entry 2 lc r42, 0x3fffe000 #denotes VPN 0x3ffff lc r43, 0x3fffe01f #map VPN 0x3fffe to page 0xffffe #and is readable, writable, valid, and dirty #(dirty to prevent taking a #read-only exception) tlbse r44, r42 #go to the generated code bezi r0, 4 #handle exceptions lc r49, 0xdeadbeef halt #or rather don't =) #actual testcode: lc r30, 1 tlble r1, r30 halt #@expected values #mode = S #interrupts = off #exceptions = off #pc = 0x80000038#e0 = 0x8000003c#e3 = 0x00000041
; ; Otrona Attachè graphics routines ; direct video HW access ; ; Stefano Bodrato 2018 ; ; ; XOR pixel at (x,y) coordinate. ; ; ; $Id: w_xorpixl.asm $ ; INCLUDE "graphics/grafix.inc" SECTION smc_clib PUBLIC w_xorpixel EXTERN l_cmp EXTERN plot_setup .w_xorpixel push hl ld hl,maxy call l_cmp pop hl ret nc ; Return if Y overflows push de ld de,maxx call l_cmp pop de ret c ; Return if X overflows call plot_setup AND 0E7H ; mask for SMC code OR B XOR 18H ; @11000: mask for the the 2 changed bits LD (GRFBIT+1),A ; RES OR 40h LD (GRFBIT1+1),A ; SET and 7Fh LD (GRFBIT0+1),A ; BIT ;CALL XDDR ; SET X ADDRESS LD A,L ; X COORDINATE IN [HL] AND 0FCH ; @11111100, mask out the 2 rightmost bits OR H RRCA RRCA LD B,A LD C,0FEH ; DISPLAY DATA IN A,(C) GRFBIT0: BIT 0,A ; MODIFIED BIT TEST GRFBIT: RES 0,A ; MODIFIED BIT RESET JP nz,is_reset GRFBIT1: SET 0,A ; MODIFIED BIT SET is_reset: OUT (C),A EI RET
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.h" #include <memory> #include "base/bind.h" #include "base/run_loop.h" #include "base/test/test_reg_util_win.h" #include "base/win/registry.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/profile_resetter/brandcoded_default_settings.h" #include "chrome/browser/profile_resetter/profile_resetter.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile_manager.h" #include "chrome/browser/safe_browsing/chrome_cleaner/srt_field_trial_win.h" #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_finder.h" #include "chrome/common/pref_names.h" #include "chrome/test/base/in_process_browser_test.h" #include "components/chrome_cleaner/public/constants/constants.h" #include "components/prefs/pref_service.h" #include "content/public/test/browser_test.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" namespace safe_browsing { namespace { using ::testing::_; using ::testing::StrictMock; // Callback for CreateProfile() that assigns |profile| to |*out_profile| // if the profile creation is successful. void CreateProfileCallback(Profile** out_profile, base::OnceClosure closure, Profile* profile, Profile::CreateStatus status) { DCHECK(out_profile); if (status == Profile::CREATE_STATUS_INITIALIZED) *out_profile = profile; std::move(closure).Run(); } // Creates a new profile from the UI thread. Profile* CreateProfile() { ProfileManager* profile_manager = g_browser_process->profile_manager(); Profile* profile = nullptr; base::RunLoop run_loop; profile_manager->CreateProfileAsync( profile_manager->GenerateNextProfileDirectoryPath(), base::BindRepeating(&CreateProfileCallback, &profile, run_loop.QuitClosure()), base::string16(), std::string()); run_loop.Run(); return profile; } // Returns true if |profile| is tagged for settings reset. bool ProfileIsTagged(Profile* profile) { return profile->GetPrefs()->GetBoolean(prefs::kChromeCleanerResetPending); } // Saves |value| in the registry at the value name corresponding to the cleanup // completed state. void SetCompletedState(DWORD value) { std::wstring cleaner_key_path( chrome_cleaner::kSoftwareRemovalToolRegistryKey); cleaner_key_path.append(L"\\").append(chrome_cleaner::kCleanerSubKey); LONG result = base::win::RegKey(HKEY_CURRENT_USER, cleaner_key_path.c_str(), KEY_SET_VALUE) .WriteValue(chrome_cleaner::kCleanupCompletedValueName, value); ASSERT_EQ(ERROR_SUCCESS, result); } using ChromeCleanerTagForResettingTest = InProcessBrowserTest; IN_PROC_BROWSER_TEST_F(ChromeCleanerTagForResettingTest, Run) { Browser* browser = chrome::FindLastActive(); ASSERT_TRUE(browser); Profile* profile = browser->profile(); ASSERT_TRUE(profile); PostCleanupSettingsResetter resetter; resetter.TagForResetting(profile); EXPECT_TRUE(ProfileIsTagged(profile)); } class SettingsResetterTestDelegate : public PostCleanupSettingsResetter::Delegate { public: explicit SettingsResetterTestDelegate(int* num_resets) : num_resets_(num_resets) {} ~SettingsResetterTestDelegate() override = default; void FetchDefaultSettings( DefaultSettingsFetcher::SettingsCallback callback) override { std::move(callback).Run(std::make_unique<BrandcodedDefaultSettings>()); } // Returns a MockProfileResetter that requires Reset() be called. std::unique_ptr<ProfileResetter> GetProfileResetter( Profile* profile) override { ++(*num_resets_); auto mock_profile_resetter = std::make_unique<StrictMock<MockProfileResetter>>(profile); EXPECT_CALL(*mock_profile_resetter, MockReset(_, _, _)); return std::move(mock_profile_resetter); } private: int* num_resets_; DISALLOW_COPY_AND_ASSIGN(SettingsResetterTestDelegate); }; // Indicates the possible values to be written to the registry for cleanup // completion. enum class CleanupCompletionState { // No value will be written to the registry; cleanup should be considered // as not completed. kNotAvailable, // Value 0 will be written to the registry; cleanup should be considered as // not completed. kNotCompleted, // Value 1 will be written to the registry; cleanup should be considered // as completed. kCompleted, // A non-zero value different than 1 will be written to the registry; cleanup // should be considered as not completed. kInvalidValue, }; // Param for this test: // - CleanupCompletionState completion_state: indicates the value to be // written to the registry for cleanup completion. class ChromeCleanerResetTaggedProfilesTest : public InProcessBrowserTest, public ::testing::WithParamInterface<CleanupCompletionState> { public: void SetUpInProcessBrowserTestFixture() override { completion_state_ = GetParam(); ASSERT_TRUE(completion_state_ >= CleanupCompletionState::kNotAvailable && completion_state_ <= CleanupCompletionState::kInvalidValue); } protected: CleanupCompletionState completion_state_; registry_util::RegistryOverrideManager registry_override_manager_; }; IN_PROC_BROWSER_TEST_P(ChromeCleanerResetTaggedProfilesTest, Run) { ASSERT_NO_FATAL_FAILURE( registry_override_manager_.OverrideRegistry(HKEY_CURRENT_USER)); switch (completion_state_) { case CleanupCompletionState::kNotAvailable: // No value written to the registry. break; case CleanupCompletionState::kNotCompleted: SetCompletedState(0); break; case CleanupCompletionState::kCompleted: SetCompletedState(1); break; case CleanupCompletionState::kInvalidValue: SetCompletedState(42); } // Profile objects are owned by ProfileManager. Profile* profile1 = CreateProfile(); ASSERT_TRUE(profile1); Profile* profile2 = CreateProfile(); ASSERT_TRUE(profile2); Profile* profile3 = CreateProfile(); ASSERT_TRUE(profile3); profile1->GetPrefs()->SetBoolean(prefs::kChromeCleanerResetPending, true); profile3->GetPrefs()->SetBoolean(prefs::kChromeCleanerResetPending, true); int num_resets = 0; auto delegate = std::make_unique<SettingsResetterTestDelegate>(&num_resets); PostCleanupSettingsResetter resetter; base::RunLoop run_loop_for_reset; resetter.ResetTaggedProfiles({profile1, profile2, profile3}, run_loop_for_reset.QuitClosure(), std::move(delegate)); run_loop_for_reset.Run(); // Profiles 1 and 3 should be reset only if completion_state_ is kCompleted. // Profile 2 should remain not-tagged by the operation. bool reset_expected = completion_state_ == CleanupCompletionState::kCompleted; EXPECT_EQ(reset_expected ? 2 : 0, num_resets); EXPECT_EQ(!reset_expected, ProfileIsTagged(profile1)); EXPECT_EQ(false, ProfileIsTagged(profile2)); EXPECT_EQ(!reset_expected, ProfileIsTagged(profile3)); } INSTANTIATE_TEST_SUITE_P( Default, ChromeCleanerResetTaggedProfilesTest, testing::Values(CleanupCompletionState::kNotAvailable, CleanupCompletionState::kNotCompleted, CleanupCompletionState::kCompleted, CleanupCompletionState::kInvalidValue)); } // namespace } // namespace safe_browsing
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r8 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x3e77, %rsi lea addresses_A_ht+0x428d, %rdi nop nop nop nop xor %r10, %r10 mov $14, %rcx rep movsl nop nop and %r9, %r9 lea addresses_WT_ht+0xc07, %r12 nop nop nop nop sub %r8, %r8 movw $0x6162, (%r12) add $46073, %r8 lea addresses_A_ht+0x19147, %rsi lea addresses_normal_ht+0x19b8b, %rdi cmp %r12, %r12 mov $50, %rcx rep movsw nop nop nop xor %rsi, %rsi lea addresses_WC_ht+0x1147, %rsi lea addresses_normal_ht+0x11dd7, %rdi nop nop nop sub $35029, %r9 mov $127, %rcx rep movsw nop nop nop nop nop cmp $44565, %r10 lea addresses_normal_ht+0x1e547, %rsi lea addresses_WC_ht+0x11147, %rdi inc %rdx mov $99, %rcx rep movsw nop nop nop add %r10, %r10 lea addresses_D_ht+0x7147, %rsi lea addresses_D_ht+0x18ce7, %rdi nop nop nop nop xor $19317, %r12 mov $85, %rcx rep movsq nop nop dec %r9 lea addresses_UC_ht+0xf147, %r10 nop nop xor $21873, %rsi movups (%r10), %xmm0 vpextrq $1, %xmm0, %r9 nop and %rdx, %rdx lea addresses_normal_ht+0x1d947, %r12 nop nop nop and $2568, %r9 mov (%r12), %rcx nop nop nop dec %r12 lea addresses_A_ht+0xa547, %rsi sub %rdx, %rdx mov $0x6162636465666768, %r8 movq %r8, %xmm5 vmovups %ymm5, (%rsi) nop add $57934, %r9 lea addresses_UC_ht+0x1a847, %rcx clflush (%rcx) nop nop nop nop nop sub $43300, %r10 mov (%rcx), %esi nop nop nop nop nop cmp $12499, %rsi lea addresses_A_ht+0x4c07, %rsi lea addresses_WT_ht+0x3547, %rdi nop nop sub %r12, %r12 mov $34, %rcx rep movsl nop nop nop nop nop and $4445, %r10 lea addresses_UC_ht+0x12b47, %r9 nop nop nop nop xor $59020, %rdi mov (%r9), %r12d nop nop nop nop sub $44431, %rsi lea addresses_UC_ht+0x3d8f, %rsi lea addresses_UC_ht+0x18707, %rdi nop inc %r9 mov $81, %rcx rep movsb nop nop nop nop nop add $5512, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r8 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r15 push %r8 push %r9 push %rbp push %rcx push %rdi push %rsi // Load lea addresses_RW+0x1a147, %rdi nop nop nop nop nop add %r8, %r8 mov (%rdi), %r9w nop nop nop nop add %rbp, %rbp // REPMOV mov $0x2e7, %rsi lea addresses_RW+0xf61f, %rdi nop nop nop cmp %r15, %r15 mov $85, %rcx rep movsb nop cmp $3569, %rcx // Store lea addresses_normal+0x11b5f, %r9 nop nop nop nop nop sub %r8, %r8 movl $0x51525354, (%r9) nop nop cmp %rsi, %rsi // Store mov $0xe47, %rsi nop nop sub $39871, %rbp mov $0x5152535455565758, %r15 movq %r15, %xmm3 vmovups %ymm3, (%rsi) nop nop nop cmp $64916, %rbp // Store lea addresses_US+0xa0e6, %rsi nop nop nop nop sub %r9, %r9 movl $0x51525354, (%rsi) nop nop xor %r9, %r9 // Faulty Load lea addresses_RW+0x1a147, %rcx nop nop nop nop and %rbp, %rbp mov (%rcx), %r15d lea oracles, %r9 and $0xff, %r15 shlq $12, %r15 mov (%r9,%r15,1), %r15 pop %rsi pop %rdi pop %rcx pop %rbp pop %r9 pop %r8 pop %r15 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_P'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_RW'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_P', 'AVXalign': False, 'size': 32}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': True, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 6, 'type': 'addresses_UC_ht'}} {'32': 16284} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
#pragma once enum struct SelectCreatureType { SELECT_CREATURE_PREVIOUS = 0, SELECT_CREATURE_NEXT = 1 };
// Copyright (c) 2014-2016 The Dash developers // Copyright (c) 2016-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "spork.h" #include "base58.h" #include "consensus/validation.h" #include "key.h" #include "main.h" #include "masternode-budget.h" #include "net.h" #include "protocol.h" #include "sync.h" #include "sporkdb.h" #include "util.h" #include <boost/lexical_cast.hpp> using namespace std; using namespace boost; class CSporkMessage; class CSporkManager; CSporkManager sporkManager; std::map<uint256, CSporkMessage> mapSporks; std::map<int, CSporkMessage> mapSporksActive; // DUELIUM: on startup load spork values from previous session if they exist in the sporkDB void LoadSporksFromDB() { for (int i = SPORK_START; i <= SPORK_END; ++i) { // Since not all spork IDs are in use, we have to exclude undefined IDs std::string strSpork = sporkManager.GetSporkNameByID(i); if (strSpork == "Unknown") continue; // attempt to read spork from sporkDB CSporkMessage spork; if (!pSporkDB->ReadSpork(i, spork)) { LogPrintf("%s : no previous value for %s found in database\n", __func__, strSpork); continue; } // add spork to memory mapSporks[spork.GetHash()] = spork; mapSporksActive[spork.nSporkID] = spork; std::time_t result = spork.nValue; // If SPORK Value is greater than 1,000,000 assume it's actually a Date and then convert to a more readable format if (spork.nValue > 1000000) { LogPrintf("%s : loaded spork %s with value %d : %s", __func__, sporkManager.GetSporkNameByID(spork.nSporkID), spork.nValue, std::ctime(&result)); } else { LogPrintf("%s : loaded spork %s with value %d\n", __func__, sporkManager.GetSporkNameByID(spork.nSporkID), spork.nValue); } } } void ProcessSpork(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) { if (fLiteMode) return; //disable all obfuscation/masternode related functionality if (strCommand == NetMsgType::SPORK) { //LogPrintf("ProcessSpork::spork\n"); CDataStream vMsg(vRecv); CSporkMessage spork; vRecv >> spork; if (chainActive.Tip() == NULL) return; // Ignore spork messages about unknown/deleted sporks std::string strSpork = sporkManager.GetSporkNameByID(spork.nSporkID); if (strSpork == "Unknown") return; uint256 hash = spork.GetHash(); if (mapSporksActive.count(spork.nSporkID)) { if (mapSporksActive[spork.nSporkID].nTimeSigned >= spork.nTimeSigned) { if (fDebug) LogPrintf("spork - seen %s block %d \n", hash.ToString(), chainActive.Tip()->nHeight); return; } else { if (fDebug) LogPrintf("spork - got updated spork %s block %d \n", hash.ToString(), chainActive.Tip()->nHeight); } } LogPrintf("spork - new %s ID %d Time %d bestHeight %d\n", hash.ToString(), spork.nSporkID, spork.nValue, chainActive.Tip()->nHeight); if (!sporkManager.CheckSignature(spork)) { LogPrintf("spork - invalid signature\n"); Misbehaving(pfrom->GetId(), 100); return; } mapSporks[hash] = spork; mapSporksActive[spork.nSporkID] = spork; sporkManager.Relay(spork); // DUELIUM: add to spork database. pSporkDB->WriteSpork(spork.nSporkID, spork); } if (strCommand == NetMsgType::GETSPORKS) { std::map<int, CSporkMessage>::iterator it = mapSporksActive.begin(); while (it != mapSporksActive.end()) { pfrom->PushMessage(NetMsgType::SPORK, it->second); it++; } } } // grab the value of the spork on the network, or the default int64_t GetSporkValue(int nSporkID) { int64_t r = -1; if (mapSporksActive.count(nSporkID)) { r = mapSporksActive[nSporkID].nValue; } else { if (nSporkID == SPORK_2_SWIFTTX) r = SPORK_2_SWIFTTX_DEFAULT; if (nSporkID == SPORK_3_SWIFTTX_BLOCK_FILTERING) r = SPORK_3_SWIFTTX_BLOCK_FILTERING_DEFAULT; if (nSporkID == SPORK_5_MAX_VALUE) r = SPORK_5_MAX_VALUE_DEFAULT; if (nSporkID == SPORK_7_MASTERNODE_SCANNING) r = SPORK_7_MASTERNODE_SCANNING_DEFAULT; if (nSporkID == SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT) r = SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT_DEFAULT; if (nSporkID == SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT) r = SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT_DEFAULT; if (nSporkID == SPORK_10_MASTERNODE_PAY_UPDATED_NODES) r = SPORK_10_MASTERNODE_PAY_UPDATED_NODES_DEFAULT; if (nSporkID == SPORK_13_ENABLE_SUPERBLOCKS) r = SPORK_13_ENABLE_SUPERBLOCKS_DEFAULT; if (nSporkID == SPORK_14_NEW_PROTOCOL_ENFORCEMENT) r = SPORK_14_NEW_PROTOCOL_ENFORCEMENT_DEFAULT; if (nSporkID == SPORK_16_ZEROCOIN_MAINTENANCE_MODE) r = SPORK_16_ZEROCOIN_MAINTENANCE_MODE_DEFAULT; if (nSporkID == SPORK_17_SEGWIT_ACTIVATION) r = SPORK_17_SEGWIT_ACTIVATION_DEFAULT; if (r == -1) LogPrintf("GetSpork::Unknown Spork %d\n", nSporkID); } return r; } // grab the spork value, and see if it's off bool IsSporkActive(int nSporkID) { int64_t r = GetSporkValue(nSporkID); if (r == -1) return false; return r < GetTime(); } void ReprocessBlocks(int nBlocks) { std::map<uint256, int64_t>::iterator it = mapRejectedBlocks.begin(); while (it != mapRejectedBlocks.end()) { //use a window twice as large as is usual for the nBlocks we want to reset if ((*it).second > GetTime() - (nBlocks * 60 * 5)) { BlockMap::iterator mi = mapBlockIndex.find((*it).first); if (mi != mapBlockIndex.end() && (*mi).second) { LOCK(cs_main); CBlockIndex* pindex = (*mi).second; LogPrintf("ReprocessBlocks - %s\n", (*it).first.ToString()); CValidationState state; ReconsiderBlock(state, pindex); } } ++it; } CValidationState state; { LOCK(cs_main); DisconnectBlocksAndReprocess(nBlocks); } if (state.IsValid()) { ActivateBestChain(state); } } bool CSporkManager::CheckSignature(CSporkMessage& spork) { //note: need to investigate why this is failing std::string strMessage = boost::lexical_cast<std::string>(spork.nSporkID) + boost::lexical_cast<std::string>(spork.nValue) + boost::lexical_cast<std::string>(spork.nTimeSigned); CPubKey pubkeynew(ParseHex(Params().SporkKey())); std::string errorMessage = ""; if (obfuScationSigner.VerifyMessage(pubkeynew, spork.vchSig, strMessage, errorMessage)) { return true; } return false; } bool CSporkManager::Sign(CSporkMessage& spork) { std::string strMessage = boost::lexical_cast<std::string>(spork.nSporkID) + boost::lexical_cast<std::string>(spork.nValue) + boost::lexical_cast<std::string>(spork.nTimeSigned); CKey key2; CPubKey pubkey2; std::string errorMessage = ""; if (!obfuScationSigner.SetKey(strMasterPrivKey, errorMessage, key2, pubkey2)) { LogPrintf("CMasternodePayments::Sign - ERROR: Invalid masternodeprivkey: '%s'\n", errorMessage); return false; } if (!obfuScationSigner.SignMessage(strMessage, errorMessage, spork.vchSig, key2)) { LogPrintf("CMasternodePayments::Sign - Sign message failed"); return false; } if (!obfuScationSigner.VerifyMessage(pubkey2, spork.vchSig, strMessage, errorMessage)) { LogPrintf("CMasternodePayments::Sign - Verify message failed"); return false; } return true; } bool CSporkManager::UpdateSpork(int nSporkID, int64_t nValue) { CSporkMessage msg; msg.nSporkID = nSporkID; msg.nValue = nValue; msg.nTimeSigned = GetTime(); if (Sign(msg)) { Relay(msg); mapSporks[msg.GetHash()] = msg; mapSporksActive[nSporkID] = msg; return true; } return false; } void CSporkManager::Relay(CSporkMessage& msg) { CInv inv(MSG_SPORK, msg.GetHash()); RelayInv(inv); } bool CSporkManager::SetPrivKey(std::string strPrivKey) { CSporkMessage msg; // Test signing successful, proceed strMasterPrivKey = strPrivKey; Sign(msg); if (CheckSignature(msg)) { LogPrintf("CSporkManager::SetPrivKey - Successfully initialized as spork signer\n"); return true; } else { return false; } } int CSporkManager::GetSporkIDByName(std::string strName) { if (strName == "SPORK_2_SWIFTTX") return SPORK_2_SWIFTTX; if (strName == "SPORK_3_SWIFTTX_BLOCK_FILTERING") return SPORK_3_SWIFTTX_BLOCK_FILTERING; if (strName == "SPORK_5_MAX_VALUE") return SPORK_5_MAX_VALUE; if (strName == "SPORK_7_MASTERNODE_SCANNING") return SPORK_7_MASTERNODE_SCANNING; if (strName == "SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT") return SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT; if (strName == "SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT") return SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT; if (strName == "SPORK_10_MASTERNODE_PAY_UPDATED_NODES") return SPORK_10_MASTERNODE_PAY_UPDATED_NODES; if (strName == "SPORK_13_ENABLE_SUPERBLOCKS") return SPORK_13_ENABLE_SUPERBLOCKS; if (strName == "SPORK_16_ZEROCOIN_MAINTENANCE_MODE") return SPORK_16_ZEROCOIN_MAINTENANCE_MODE; if (strName == "SPORK_17_SEGWIT_ACTIVATION") return SPORK_17_SEGWIT_ACTIVATION; return -1; } std::string CSporkManager::GetSporkNameByID(int id) { if (id == SPORK_2_SWIFTTX) return "SPORK_2_SWIFTTX"; if (id == SPORK_3_SWIFTTX_BLOCK_FILTERING) return "SPORK_3_SWIFTTX_BLOCK_FILTERING"; if (id == SPORK_5_MAX_VALUE) return "SPORK_5_MAX_VALUE"; if (id == SPORK_7_MASTERNODE_SCANNING) return "SPORK_7_MASTERNODE_SCANNING"; if (id == SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT) return "SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT"; if (id == SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT) return "SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT"; if (id == SPORK_10_MASTERNODE_PAY_UPDATED_NODES) return "SPORK_10_MASTERNODE_PAY_UPDATED_NODES"; if (id == SPORK_13_ENABLE_SUPERBLOCKS) return "SPORK_13_ENABLE_SUPERBLOCKS"; if (id == SPORK_16_ZEROCOIN_MAINTENANCE_MODE) return "SPORK_16_ZEROCOIN_MAINTENANCE_MODE"; if (id == SPORK_17_SEGWIT_ACTIVATION) return "SPORK_17_SEGWIT_ACTIVATION"; return "Unknown"; }
<?hh function foo($x, ...$y) { return $y[$x]; }
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php. ; ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. ; ;------------------------------------------------------------------------------ DEFAULT REL SECTION .text ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; IoReadFifo8 ( ; IN UINTN Port, // rcx ; IN UINTN Size, // rdx ; IN VOID *Buffer // r8 ; ); ;------------------------------------------------------------------------------ global ASM_PFX(IoReadFifo8) ASM_PFX(IoReadFifo8): xchg rcx, rdx xchg rdi, r8 ; rdi: buffer address; r8: save rdi rep insb mov rdi, r8 ; restore rdi ret ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; IoWriteFifo8 ( ; IN UINTN Port, // rcx ; IN UINTN Size, // rdx ; IN VOID *Buffer // r8 ; ); ;------------------------------------------------------------------------------ global ASM_PFX(IoWriteFifo8) ASM_PFX(IoWriteFifo8): xchg rcx, rdx xchg rsi, r8 ; rdi: buffer address; r8: save rdi rep outsb mov rsi, r8 ; restore rdi ret
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef WIN32 // for posix_fallocate #ifdef __linux__ #define _POSIX_C_SOURCE 200112L #endif #include <fcntl.h> #include <sys/stat.h> #include <sys/resource.h> #endif #include "util.h" #include "sync.h" #include "version.h" #include "ui_interface.h" #include <boost/algorithm/string/join.hpp> #include <boost/algorithm/string/case_conv.hpp> // for to_lower() #include <boost/algorithm/string/predicate.hpp> // for startswith() and endswith() // Work around clang compilation problem in Boost 1.46: // /usr/include/boost/program_options/detail/config_file.hpp:163:17: error: call to function 'to_internal' that is neither visible in the template definition nor found by argument-dependent lookup // See also: http://stackoverflow.com/questions/10020179/compilation-fail-in-boost-librairies-program-options // http://clang.debian.net/status.php?version=3.0&key=CANNOT_FIND_FUNCTION namespace boost { namespace program_options { std::string to_internal(const std::string&); } } #include <boost/program_options/detail/config_file.hpp> #include <boost/program_options/parsers.hpp> #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/foreach.hpp> #include <boost/thread.hpp> #include <openssl/crypto.h> #include <openssl/rand.h> #include <stdarg.h> #ifdef WIN32 #ifdef _MSC_VER #pragma warning(disable:4786) #pragma warning(disable:4804) #pragma warning(disable:4805) #pragma warning(disable:4717) #endif #ifdef _WIN32_WINNT #undef _WIN32_WINNT #endif #define _WIN32_WINNT 0x0501 #ifdef _WIN32_IE #undef _WIN32_IE #endif #define _WIN32_IE 0x0501 #define WIN32_LEAN_AND_MEAN 1 #ifndef NOMINMAX #define NOMINMAX #endif #include <io.h> /* for _commit */ #include "shlobj.h" #elif defined(__linux__) # include <sys/prctl.h> #endif using namespace std; map<string, string> mapArgs; map<string, vector<string> > mapMultiArgs; bool fDebug = false; bool fDebugNet = false; bool fPrintToConsole = false; bool fPrintToDebugger = false; bool fDaemon = false; bool fServer = false; bool fCommandLine = false; string strMiscWarning; bool fTestNet = false; bool fBloomFilters = true; bool fNoListen = false; bool fLogTimestamps = false; CMedianFilter<int64> vTimeOffsets(200,0); volatile bool fReopenDebugLog = false; bool fCachedPath[2] = {false, false}; // Init OpenSSL library multithreading support static CCriticalSection** ppmutexOpenSSL; void locking_callback(int mode, int i, const char* file, int line) { if (mode & CRYPTO_LOCK) { ENTER_CRITICAL_SECTION(*ppmutexOpenSSL[i]); } else { LEAVE_CRITICAL_SECTION(*ppmutexOpenSSL[i]); } } LockedPageManager LockedPageManager::instance; // Init class CInit { public: CInit() { // Init OpenSSL library multithreading support ppmutexOpenSSL = (CCriticalSection**)OPENSSL_malloc(CRYPTO_num_locks() * sizeof(CCriticalSection*)); for (int i = 0; i < CRYPTO_num_locks(); i++) ppmutexOpenSSL[i] = new CCriticalSection(); CRYPTO_set_locking_callback(locking_callback); #ifdef WIN32 // Seed random number generator with screen scrape and other hardware sources RAND_screen(); #endif // Seed random number generator with performance counter RandAddSeed(); } ~CInit() { // Shutdown OpenSSL library multithreading support CRYPTO_set_locking_callback(NULL); for (int i = 0; i < CRYPTO_num_locks(); i++) delete ppmutexOpenSSL[i]; OPENSSL_free(ppmutexOpenSSL); } } instance_of_cinit; void RandAddSeed() { // Seed with CPU performance counter int64 nCounter = GetPerformanceCounter(); RAND_add(&nCounter, sizeof(nCounter), 1.5); memset(&nCounter, 0, sizeof(nCounter)); } void RandAddSeedPerfmon() { RandAddSeed(); // This can take up to 2 seconds, so only do it every 10 minutes static int64 nLastPerfmon; if (GetTime() < nLastPerfmon + 10 * 60) return; nLastPerfmon = GetTime(); #ifdef WIN32 // Don't need this on Linux, OpenSSL automatically uses /dev/urandom // Seed with the entire set of perfmon data unsigned char pdata[250000]; memset(pdata, 0, sizeof(pdata)); unsigned long nSize = sizeof(pdata); long ret = RegQueryValueExA(HKEY_PERFORMANCE_DATA, "Global", NULL, NULL, pdata, &nSize); RegCloseKey(HKEY_PERFORMANCE_DATA); if (ret == ERROR_SUCCESS) { RAND_add(pdata, nSize, nSize/100.0); OPENSSL_cleanse(pdata, nSize); printf("RandAddSeed() %lu bytes\n", nSize); } #endif } uint64 GetRand(uint64 nMax) { if (nMax == 0) return 0; // The range of the random source must be a multiple of the modulus // to give every possible output value an equal possibility uint64 nRange = (std::numeric_limits<uint64>::max() / nMax) * nMax; uint64 nRand = 0; do RAND_bytes((unsigned char*)&nRand, sizeof(nRand)); while (nRand >= nRange); return (nRand % nMax); } int GetRandInt(int nMax) { return GetRand(nMax); } uint256 GetRandHash() { uint256 hash; RAND_bytes((unsigned char*)&hash, sizeof(hash)); return hash; } // // OutputDebugStringF (aka printf -- there is a #define that we really // should get rid of one day) has been broken a couple of times now // by well-meaning people adding mutexes in the most straightforward way. // It breaks because it may be called by global destructors during shutdown. // Since the order of destruction of static/global objects is undefined, // defining a mutex as a global object doesn't work (the mutex gets // destroyed, and then some later destructor calls OutputDebugStringF, // maybe indirectly, and you get a core dump at shutdown trying to lock // the mutex). static boost::once_flag debugPrintInitFlag = BOOST_ONCE_INIT; // We use boost::call_once() to make sure these are initialized in // in a thread-safe manner the first time it is called: static FILE* fileout = NULL; static boost::mutex* mutexDebugLog = NULL; static void DebugPrintInit() { assert(fileout == NULL); assert(mutexDebugLog == NULL); boost::filesystem::path pathDebug = GetDataDir() / "debug.log"; fileout = fopen(pathDebug.string().c_str(), "a"); if (fileout) setbuf(fileout, NULL); // unbuffered mutexDebugLog = new boost::mutex(); } int OutputDebugStringF(const char* pszFormat, ...) { int ret = 0; // Returns total number of characters written if (fPrintToConsole) { // print to console va_list arg_ptr; va_start(arg_ptr, pszFormat); ret += vprintf(pszFormat, arg_ptr); va_end(arg_ptr); } else if (!fPrintToDebugger) { static bool fStartedNewLine = true; boost::call_once(&DebugPrintInit, debugPrintInitFlag); if (fileout == NULL) return ret; boost::mutex::scoped_lock scoped_lock(*mutexDebugLog); // reopen the log file, if requested if (fReopenDebugLog) { fReopenDebugLog = false; boost::filesystem::path pathDebug = GetDataDir() / "debug.log"; if (freopen(pathDebug.string().c_str(),"a",fileout) != NULL) setbuf(fileout, NULL); // unbuffered } // Debug print useful for profiling if (fLogTimestamps && fStartedNewLine) ret += fprintf(fileout, "%s ", DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime()).c_str()); if (pszFormat[strlen(pszFormat) - 1] == '\n') fStartedNewLine = true; else fStartedNewLine = false; va_list arg_ptr; va_start(arg_ptr, pszFormat); ret += vfprintf(fileout, pszFormat, arg_ptr); va_end(arg_ptr); } #ifdef WIN32 if (fPrintToDebugger) { static CCriticalSection cs_OutputDebugStringF; // accumulate and output a line at a time { LOCK(cs_OutputDebugStringF); static std::string buffer; va_list arg_ptr; va_start(arg_ptr, pszFormat); buffer += vstrprintf(pszFormat, arg_ptr); va_end(arg_ptr); int line_start = 0, line_end; while((line_end = buffer.find('\n', line_start)) != -1) { OutputDebugStringA(buffer.substr(line_start, line_end - line_start).c_str()); line_start = line_end + 1; ret += line_end-line_start; } buffer.erase(0, line_start); } } #endif return ret; } string vstrprintf(const char *format, va_list ap) { char buffer[50000]; char* p = buffer; int limit = sizeof(buffer); int ret; loop { va_list arg_ptr; va_copy(arg_ptr, ap); #ifdef WIN32 ret = _vsnprintf(p, limit, format, arg_ptr); #else ret = vsnprintf(p, limit, format, arg_ptr); #endif va_end(arg_ptr); if (ret >= 0 && ret < limit) break; if (p != buffer) delete[] p; limit *= 2; p = new char[limit]; if (p == NULL) throw std::bad_alloc(); } string str(p, p+ret); if (p != buffer) delete[] p; return str; } string real_strprintf(const char *format, int dummy, ...) { va_list arg_ptr; va_start(arg_ptr, dummy); string str = vstrprintf(format, arg_ptr); va_end(arg_ptr); return str; } string real_strprintf(const std::string &format, int dummy, ...) { va_list arg_ptr; va_start(arg_ptr, dummy); string str = vstrprintf(format.c_str(), arg_ptr); va_end(arg_ptr); return str; } bool error(const char *format, ...) { va_list arg_ptr; va_start(arg_ptr, format); std::string str = vstrprintf(format, arg_ptr); va_end(arg_ptr); printf("ERROR: %s\n", str.c_str()); return false; } void ParseString(const string& str, char c, vector<string>& v) { if (str.empty()) return; string::size_type i1 = 0; string::size_type i2; loop { i2 = str.find(c, i1); if (i2 == str.npos) { v.push_back(str.substr(i1)); return; } v.push_back(str.substr(i1, i2-i1)); i1 = i2+1; } } string FormatMoney(int64 n, bool fPlus) { // Note: not using straight sprintf here because we do NOT want // localized number formatting. int64 n_abs = (n > 0 ? n : -n); int64 quotient = n_abs/COIN; int64 remainder = n_abs%COIN; string str = strprintf("%"PRI64d".%08"PRI64d, quotient, remainder); // Right-trim excess zeros before the decimal point: int nTrim = 0; for (int i = str.size()-1; (str[i] == '0' && isdigit(str[i-2])); --i) ++nTrim; if (nTrim) str.erase(str.size()-nTrim, nTrim); if (n < 0) str.insert((unsigned int)0, 1, '-'); else if (fPlus && n > 0) str.insert((unsigned int)0, 1, '+'); return str; } bool ParseMoney(const string& str, int64& nRet) { return ParseMoney(str.c_str(), nRet); } bool ParseMoney(const char* pszIn, int64& nRet) { string strWhole; int64 nUnits = 0; const char* p = pszIn; while (isspace(*p)) p++; for (; *p; p++) { if (*p == '.') { p++; int64 nMult = CENT*10; while (isdigit(*p) && (nMult > 0)) { nUnits += nMult * (*p++ - '0'); nMult /= 10; } break; } if (isspace(*p)) break; if (!isdigit(*p)) return false; strWhole.insert(strWhole.end(), *p); } for (; *p; p++) if (!isspace(*p)) return false; if (strWhole.size() > 10) // guard against 63 bit overflow return false; if (nUnits < 0 || nUnits > COIN) return false; int64 nWhole = atoi64(strWhole); int64 nValue = nWhole*COIN + nUnits; nRet = nValue; return true; } // safeChars chosen to allow simple messages/URLs/email addresses, but avoid anything // even possibly remotely dangerous like & or > static string safeChars("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 .,;_/:?@"); string SanitizeString(const string& str) { string strResult; for (std::string::size_type i = 0; i < str.size(); i++) { if (safeChars.find(str[i]) != std::string::npos) strResult.push_back(str[i]); } return strResult; } static const signed char phexdigit[256] = { -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, 0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1, -1,0xa,0xb,0xc,0xd,0xe,0xf,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,0xa,0xb,0xc,0xd,0xe,0xf,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, }; bool IsHex(const string& str) { BOOST_FOREACH(unsigned char c, str) { if (phexdigit[c] < 0) return false; } return (str.size() > 0) && (str.size()%2 == 0); } vector<unsigned char> ParseHex(const char* psz) { // convert hex dump to vector vector<unsigned char> vch; loop { while (isspace(*psz)) psz++; signed char c = phexdigit[(unsigned char)*psz++]; if (c == (signed char)-1) break; unsigned char n = (c << 4); c = phexdigit[(unsigned char)*psz++]; if (c == (signed char)-1) break; n |= c; vch.push_back(n); } return vch; } vector<unsigned char> ParseHex(const string& str) { return ParseHex(str.c_str()); } static void InterpretNegativeSetting(string name, map<string, string>& mapSettingsRet) { // interpret -nofoo as -foo=0 (and -nofoo=0 as -foo=1) as long as -foo not set if (name.find("-no") == 0) { std::string positive("-"); positive.append(name.begin()+3, name.end()); if (mapSettingsRet.count(positive) == 0) { bool value = !GetBoolArg(name); mapSettingsRet[positive] = (value ? "1" : "0"); } } } void ParseParameters(int argc, const char* const argv[]) { mapArgs.clear(); mapMultiArgs.clear(); for (int i = 1; i < argc; i++) { std::string str(argv[i]); std::string strValue; size_t is_index = str.find('='); if (is_index != std::string::npos) { strValue = str.substr(is_index+1); str = str.substr(0, is_index); } #ifdef WIN32 boost::to_lower(str); if (boost::algorithm::starts_with(str, "/")) str = "-" + str.substr(1); #endif if (str[0] != '-') break; mapArgs[str] = strValue; mapMultiArgs[str].push_back(strValue); } // New 0.6 features: BOOST_FOREACH(const PAIRTYPE(string,string)& entry, mapArgs) { string name = entry.first; // interpret --foo as -foo (as long as both are not set) if (name.find("--") == 0) { std::string singleDash(name.begin()+1, name.end()); if (mapArgs.count(singleDash) == 0) mapArgs[singleDash] = entry.second; name = singleDash; } // interpret -nofoo as -foo=0 (and -nofoo=0 as -foo=1) as long as -foo not set InterpretNegativeSetting(name, mapArgs); } } std::string GetArg(const std::string& strArg, const std::string& strDefault) { if (mapArgs.count(strArg)) return mapArgs[strArg]; return strDefault; } int64 GetArg(const std::string& strArg, int64 nDefault) { if (mapArgs.count(strArg)) return atoi64(mapArgs[strArg]); return nDefault; } bool GetBoolArg(const std::string& strArg, bool fDefault) { if (mapArgs.count(strArg)) { if (mapArgs[strArg].empty()) return true; return (atoi(mapArgs[strArg]) != 0); } return fDefault; } bool SoftSetArg(const std::string& strArg, const std::string& strValue) { if (mapArgs.count(strArg)) return false; mapArgs[strArg] = strValue; return true; } bool SoftSetBoolArg(const std::string& strArg, bool fValue) { if (fValue) return SoftSetArg(strArg, std::string("1")); else return SoftSetArg(strArg, std::string("0")); } string EncodeBase64(const unsigned char* pch, size_t len) { static const char *pbase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; string strRet=""; strRet.reserve((len+2)/3*4); int mode=0, left=0; const unsigned char *pchEnd = pch+len; while (pch<pchEnd) { int enc = *(pch++); switch (mode) { case 0: // we have no bits strRet += pbase64[enc >> 2]; left = (enc & 3) << 4; mode = 1; break; case 1: // we have two bits strRet += pbase64[left | (enc >> 4)]; left = (enc & 15) << 2; mode = 2; break; case 2: // we have four bits strRet += pbase64[left | (enc >> 6)]; strRet += pbase64[enc & 63]; mode = 0; break; } } if (mode) { strRet += pbase64[left]; strRet += '='; if (mode == 1) strRet += '='; } return strRet; } string EncodeBase64(const string& str) { return EncodeBase64((const unsigned char*)str.c_str(), str.size()); } vector<unsigned char> DecodeBase64(const char* p, bool* pfInvalid) { static const int decode64_table[256] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }; if (pfInvalid) *pfInvalid = false; vector<unsigned char> vchRet; vchRet.reserve(strlen(p)*3/4); int mode = 0; int left = 0; while (1) { int dec = decode64_table[(unsigned char)*p]; if (dec == -1) break; p++; switch (mode) { case 0: // we have no bits and get 6 left = dec; mode = 1; break; case 1: // we have 6 bits and keep 4 vchRet.push_back((left<<2) | (dec>>4)); left = dec & 15; mode = 2; break; case 2: // we have 4 bits and get 6, we keep 2 vchRet.push_back((left<<4) | (dec>>2)); left = dec & 3; mode = 3; break; case 3: // we have 2 bits and get 6 vchRet.push_back((left<<6) | dec); mode = 0; break; } } if (pfInvalid) switch (mode) { case 0: // 4n base64 characters processed: ok break; case 1: // 4n+1 base64 character processed: impossible *pfInvalid = true; break; case 2: // 4n+2 base64 characters processed: require '==' if (left || p[0] != '=' || p[1] != '=' || decode64_table[(unsigned char)p[2]] != -1) *pfInvalid = true; break; case 3: // 4n+3 base64 characters processed: require '=' if (left || p[0] != '=' || decode64_table[(unsigned char)p[1]] != -1) *pfInvalid = true; break; } return vchRet; } string DecodeBase64(const string& str) { vector<unsigned char> vchRet = DecodeBase64(str.c_str()); return string((const char*)&vchRet[0], vchRet.size()); } string EncodeBase32(const unsigned char* pch, size_t len) { static const char *pbase32 = "abcdefghijklmnopqrstuvwxyz234567"; string strRet=""; strRet.reserve((len+4)/5*8); int mode=0, left=0; const unsigned char *pchEnd = pch+len; while (pch<pchEnd) { int enc = *(pch++); switch (mode) { case 0: // we have no bits strRet += pbase32[enc >> 3]; left = (enc & 7) << 2; mode = 1; break; case 1: // we have three bits strRet += pbase32[left | (enc >> 6)]; strRet += pbase32[(enc >> 1) & 31]; left = (enc & 1) << 4; mode = 2; break; case 2: // we have one bit strRet += pbase32[left | (enc >> 4)]; left = (enc & 15) << 1; mode = 3; break; case 3: // we have four bits strRet += pbase32[left | (enc >> 7)]; strRet += pbase32[(enc >> 2) & 31]; left = (enc & 3) << 3; mode = 4; break; case 4: // we have two bits strRet += pbase32[left | (enc >> 5)]; strRet += pbase32[enc & 31]; mode = 0; } } static const int nPadding[5] = {0, 6, 4, 3, 1}; if (mode) { strRet += pbase32[left]; for (int n=0; n<nPadding[mode]; n++) strRet += '='; } return strRet; } string EncodeBase32(const string& str) { return EncodeBase32((const unsigned char*)str.c_str(), str.size()); } vector<unsigned char> DecodeBase32(const char* p, bool* pfInvalid) { static const int decode32_table[256] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }; if (pfInvalid) *pfInvalid = false; vector<unsigned char> vchRet; vchRet.reserve((strlen(p))*5/8); int mode = 0; int left = 0; while (1) { int dec = decode32_table[(unsigned char)*p]; if (dec == -1) break; p++; switch (mode) { case 0: // we have no bits and get 5 left = dec; mode = 1; break; case 1: // we have 5 bits and keep 2 vchRet.push_back((left<<3) | (dec>>2)); left = dec & 3; mode = 2; break; case 2: // we have 2 bits and keep 7 left = left << 5 | dec; mode = 3; break; case 3: // we have 7 bits and keep 4 vchRet.push_back((left<<1) | (dec>>4)); left = dec & 15; mode = 4; break; case 4: // we have 4 bits, and keep 1 vchRet.push_back((left<<4) | (dec>>1)); left = dec & 1; mode = 5; break; case 5: // we have 1 bit, and keep 6 left = left << 5 | dec; mode = 6; break; case 6: // we have 6 bits, and keep 3 vchRet.push_back((left<<2) | (dec>>3)); left = dec & 7; mode = 7; break; case 7: // we have 3 bits, and keep 0 vchRet.push_back((left<<5) | dec); mode = 0; break; } } if (pfInvalid) switch (mode) { case 0: // 8n base32 characters processed: ok break; case 1: // 8n+1 base32 characters processed: impossible case 3: // +3 case 6: // +6 *pfInvalid = true; break; case 2: // 8n+2 base32 characters processed: require '======' if (left || p[0] != '=' || p[1] != '=' || p[2] != '=' || p[3] != '=' || p[4] != '=' || p[5] != '=' || decode32_table[(unsigned char)p[6]] != -1) *pfInvalid = true; break; case 4: // 8n+4 base32 characters processed: require '====' if (left || p[0] != '=' || p[1] != '=' || p[2] != '=' || p[3] != '=' || decode32_table[(unsigned char)p[4]] != -1) *pfInvalid = true; break; case 5: // 8n+5 base32 characters processed: require '===' if (left || p[0] != '=' || p[1] != '=' || p[2] != '=' || decode32_table[(unsigned char)p[3]] != -1) *pfInvalid = true; break; case 7: // 8n+7 base32 characters processed: require '=' if (left || p[0] != '=' || decode32_table[(unsigned char)p[1]] != -1) *pfInvalid = true; break; } return vchRet; } string DecodeBase32(const string& str) { vector<unsigned char> vchRet = DecodeBase32(str.c_str()); return string((const char*)&vchRet[0], vchRet.size()); } bool WildcardMatch(const char* psz, const char* mask) { loop { switch (*mask) { case '\0': return (*psz == '\0'); case '*': return WildcardMatch(psz, mask+1) || (*psz && WildcardMatch(psz+1, mask)); case '?': if (*psz == '\0') return false; break; default: if (*psz != *mask) return false; break; } psz++; mask++; } } bool WildcardMatch(const string& str, const string& mask) { return WildcardMatch(str.c_str(), mask.c_str()); } static std::string FormatException(std::exception* pex, const char* pszThread) { #ifdef WIN32 char pszModule[MAX_PATH] = ""; GetModuleFileNameA(NULL, pszModule, sizeof(pszModule)); #else const char* pszModule = "Bamboo"; #endif if (pex) return strprintf( "EXCEPTION: %s \n%s \n%s in %s \n", typeid(*pex).name(), pex->what(), pszModule, pszThread); else return strprintf( "UNKNOWN EXCEPTION \n%s in %s \n", pszModule, pszThread); } void LogException(std::exception* pex, const char* pszThread) { std::string message = FormatException(pex, pszThread); printf("\n%s", message.c_str()); } void PrintException(std::exception* pex, const char* pszThread) { std::string message = FormatException(pex, pszThread); printf("\n\n************************\n%s\n", message.c_str()); fprintf(stderr, "\n\n************************\n%s\n", message.c_str()); strMiscWarning = message; throw; } void PrintExceptionContinue(std::exception* pex, const char* pszThread) { std::string message = FormatException(pex, pszThread); printf("\n\n************************\n%s\n", message.c_str()); fprintf(stderr, "\n\n************************\n%s\n", message.c_str()); strMiscWarning = message; } boost::filesystem::path GetDefaultDataDir() { namespace fs = boost::filesystem; // Windows < Vista: C:\Documents and Settings\Username\Application Data\Bitcoin // Windows >= Vista: C:\Users\Username\AppData\Roaming\Bitcoin // Mac: ~/Library/Application Support/Bitcoin // Unix: ~/.bitcoin #ifdef WIN32 // Windows return GetSpecialFolderPath(CSIDL_APPDATA) / "Bamboo"; #else fs::path pathRet; char* pszHome = getenv("HOME"); if (pszHome == NULL || strlen(pszHome) == 0) pathRet = fs::path("/"); else pathRet = fs::path(pszHome); #ifdef MAC_OSX // Mac pathRet /= "Library/Application Support"; fs::create_directory(pathRet); return pathRet / "Bamboo"; #else // Unix return pathRet / ".Bamboo"; #endif #endif } const boost::filesystem::path &GetDataDir(bool fNetSpecific) { namespace fs = boost::filesystem; static fs::path pathCached[2]; static CCriticalSection csPathCached; fs::path &path = pathCached[fNetSpecific]; // This can be called during exceptions by printf, so we cache the // value so we don't have to do memory allocations after that. if (fCachedPath[fNetSpecific]) return path; LOCK(csPathCached); if (mapArgs.count("-datadir")) { path = fs::system_complete(mapArgs["-datadir"]); if (!fs::is_directory(path)) { path = ""; return path; } } else { path = GetDefaultDataDir(); } if (fNetSpecific && GetBoolArg("-testnet", false)) path /= "testnet3"; fs::create_directories(path); fCachedPath[fNetSpecific] = true; return path; } boost::filesystem::path GetConfigFile() { boost::filesystem::path pathConfigFile(GetArg("-conf", "Bamboo.conf")); if (!pathConfigFile.is_complete()) pathConfigFile = GetDataDir(false) / pathConfigFile; return pathConfigFile; } void ReadConfigFile(map<string, string>& mapSettingsRet, map<string, vector<string> >& mapMultiSettingsRet) { boost::filesystem::ifstream streamConfig(GetConfigFile()); if (!streamConfig.good()) return; // No bitcoin.conf file is OK // clear path cache after loading config file fCachedPath[0] = fCachedPath[1] = false; set<string> setOptions; setOptions.insert("*"); for (boost::program_options::detail::config_file_iterator it(streamConfig, setOptions), end; it != end; ++it) { // Don't overwrite existing settings so command line settings override bitcoin.conf string strKey = string("-") + it->string_key; if (mapSettingsRet.count(strKey) == 0) { mapSettingsRet[strKey] = it->value[0]; // interpret nofoo=1 as foo=0 (and nofoo=0 as foo=1) as long as foo not set) InterpretNegativeSetting(strKey, mapSettingsRet); } mapMultiSettingsRet[strKey].push_back(it->value[0]); } } boost::filesystem::path GetPidFile() { boost::filesystem::path pathPidFile(GetArg("-pid", "Bambood.pid")); if (!pathPidFile.is_complete()) pathPidFile = GetDataDir() / pathPidFile; return pathPidFile; } #ifndef WIN32 void CreatePidFile(const boost::filesystem::path &path, pid_t pid) { FILE* file = fopen(path.string().c_str(), "w"); if (file) { fprintf(file, "%d\n", pid); fclose(file); } } #endif bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) { #ifdef WIN32 return MoveFileExA(src.string().c_str(), dest.string().c_str(), MOVEFILE_REPLACE_EXISTING); #else int rc = std::rename(src.string().c_str(), dest.string().c_str()); return (rc == 0); #endif /* WIN32 */ } void FileCommit(FILE *fileout) { fflush(fileout); // harmless if redundantly called #ifdef WIN32 _commit(_fileno(fileout)); #else #if defined(__linux__) || defined(__NetBSD__) fdatasync(fileno(fileout)); #elif defined(__APPLE__) && defined(F_FULLFSYNC) fcntl(fileno(fileout), F_FULLFSYNC, 0); #else fsync(fileno(fileout)); #endif #endif } int GetFilesize(FILE* file) { int nSavePos = ftell(file); int nFilesize = -1; if (fseek(file, 0, SEEK_END) == 0) nFilesize = ftell(file); fseek(file, nSavePos, SEEK_SET); return nFilesize; } bool TruncateFile(FILE *file, unsigned int length) { #if defined(WIN32) return _chsize(_fileno(file), length) == 0; #else return ftruncate(fileno(file), length) == 0; #endif } // this function tries to raise the file descriptor limit to the requested number. // It returns the actual file descriptor limit (which may be more or less than nMinFD) int RaiseFileDescriptorLimit(int nMinFD) { #if defined(WIN32) return 2048; #else struct rlimit limitFD; if (getrlimit(RLIMIT_NOFILE, &limitFD) != -1) { if (limitFD.rlim_cur < (rlim_t)nMinFD) { limitFD.rlim_cur = nMinFD; if (limitFD.rlim_cur > limitFD.rlim_max) limitFD.rlim_cur = limitFD.rlim_max; setrlimit(RLIMIT_NOFILE, &limitFD); getrlimit(RLIMIT_NOFILE, &limitFD); } return limitFD.rlim_cur; } return nMinFD; // getrlimit failed, assume it's fine #endif } // this function tries to make a particular range of a file allocated (corresponding to disk space) // it is advisory, and the range specified in the arguments will never contain live data void AllocateFileRange(FILE *file, unsigned int offset, unsigned int length) { #if defined(WIN32) // Windows-specific version HANDLE hFile = (HANDLE)_get_osfhandle(_fileno(file)); LARGE_INTEGER nFileSize; int64 nEndPos = (int64)offset + length; nFileSize.u.LowPart = nEndPos & 0xFFFFFFFF; nFileSize.u.HighPart = nEndPos >> 32; SetFilePointerEx(hFile, nFileSize, 0, FILE_BEGIN); SetEndOfFile(hFile); #elif defined(MAC_OSX) // OSX specific version fstore_t fst; fst.fst_flags = F_ALLOCATECONTIG; fst.fst_posmode = F_PEOFPOSMODE; fst.fst_offset = 0; fst.fst_length = (off_t)offset + length; fst.fst_bytesalloc = 0; if (fcntl(fileno(file), F_PREALLOCATE, &fst) == -1) { fst.fst_flags = F_ALLOCATEALL; fcntl(fileno(file), F_PREALLOCATE, &fst); } ftruncate(fileno(file), fst.fst_length); #elif defined(__linux__) // Version using posix_fallocate off_t nEndPos = (off_t)offset + length; posix_fallocate(fileno(file), 0, nEndPos); #else // Fallback version // TODO: just write one byte per block static const char buf[65536] = {}; fseek(file, offset, SEEK_SET); while (length > 0) { unsigned int now = 65536; if (length < now) now = length; fwrite(buf, 1, now, file); // allowed to fail; this function is advisory anyway length -= now; } #endif } void ShrinkDebugFile() { // Scroll debug.log if it's getting too big boost::filesystem::path pathLog = GetDataDir() / "debug.log"; FILE* file = fopen(pathLog.string().c_str(), "r"); if (file && GetFilesize(file) > 10 * 1000000) { // Restart the file with some of the end char pch[200000]; fseek(file, -sizeof(pch), SEEK_END); int nBytes = fread(pch, 1, sizeof(pch), file); fclose(file); file = fopen(pathLog.string().c_str(), "w"); if (file) { fwrite(pch, 1, nBytes, file); fclose(file); } } else if(file != NULL) fclose(file); } // // "Never go to sea with two chronometers; take one or three." // Our three time sources are: // - System clock // - Median of other nodes clocks // - The user (asking the user to fix the system clock if the first two disagree) // static int64 nMockTime = 0; // For unit testing int64 GetTime() { if (nMockTime) return nMockTime; return time(NULL); } void SetMockTime(int64 nMockTimeIn) { nMockTime = nMockTimeIn; } static int64 nTimeOffset = 0; int64 GetTimeOffset() { return nTimeOffset; } int64 GetAdjustedTime() { return GetTime() + GetTimeOffset(); } void AddTimeData(const CNetAddr& ip, int64 nTime) { int64 nOffsetSample = nTime - GetTime(); // Ignore duplicates static set<CNetAddr> setKnown; if (!setKnown.insert(ip).second) return; // Add data vTimeOffsets.input(nOffsetSample); printf("Added time data, samples %d, offset %+"PRI64d" (%+"PRI64d" minutes)\n", vTimeOffsets.size(), nOffsetSample, nOffsetSample/60); if (vTimeOffsets.size() >= 5 && vTimeOffsets.size() % 2 == 1) { int64 nMedian = vTimeOffsets.median(); std::vector<int64> vSorted = vTimeOffsets.sorted(); // Only let other nodes change our time by so much if (abs64(nMedian) < 14 * 60) // Bamboo: changed maximum adjust to 14 mins to avoid letting peers change our time too much in case of an attack. { nTimeOffset = nMedian; } else { nTimeOffset = 0; static bool fDone; if (!fDone) { // If nobody has a time different than ours but within 5 minutes of ours, give a warning bool fMatch = false; BOOST_FOREACH(int64 nOffset, vSorted) if (nOffset != 0 && abs64(nOffset) < 5 * 60) fMatch = true; if (!fMatch) { fDone = true; string strMessage = _("Warning: Please check that your computer's date and time are correct! If your clock is wrong Bamboo will not work properly."); strMiscWarning = strMessage; printf("*** %s\n", strMessage.c_str()); uiInterface.ThreadSafeMessageBox(strMessage, "", CClientUIInterface::MSG_WARNING); } } } if (fDebug) { BOOST_FOREACH(int64 n, vSorted) printf("%+"PRI64d" ", n); printf("| "); } printf("nTimeOffset = %+"PRI64d" (%+"PRI64d" minutes)\n", nTimeOffset, nTimeOffset/60); } } uint32_t insecure_rand_Rz = 11; uint32_t insecure_rand_Rw = 11; void seed_insecure_rand(bool fDeterministic) { //The seed values have some unlikely fixed points which we avoid. if(fDeterministic) { insecure_rand_Rz = insecure_rand_Rw = 11; } else { uint32_t tmp; do { RAND_bytes((unsigned char*)&tmp, 4); } while(tmp == 0 || tmp == 0x9068ffffU); insecure_rand_Rz = tmp; do { RAND_bytes((unsigned char*)&tmp, 4); } while(tmp == 0 || tmp == 0x464fffffU); insecure_rand_Rw = tmp; } } string FormatVersion(int nVersion) { if (nVersion%100 == 0) return strprintf("%d.%d.%d", nVersion/1000000, (nVersion/10000)%100, (nVersion/100)%100); else return strprintf("%d.%d.%d.%d", nVersion/1000000, (nVersion/10000)%100, (nVersion/100)%100, nVersion%100); } string FormatFullVersion() { return CLIENT_BUILD; } // Format the subversion field according to BIP 14 spec (https://en.bitcoin.it/wiki/BIP_0014) std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments) { std::ostringstream ss; ss << "/"; ss << name << ":" << FormatVersion(nClientVersion); if (!comments.empty()) ss << "(" << boost::algorithm::join(comments, "; ") << ")"; ss << "/"; return ss.str(); } #ifdef WIN32 boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate) { namespace fs = boost::filesystem; char pszPath[MAX_PATH] = ""; if(SHGetSpecialFolderPathA(NULL, pszPath, nFolder, fCreate)) { return fs::path(pszPath); } printf("SHGetSpecialFolderPathA() failed, could not obtain requested path.\n"); return fs::path(""); } #endif boost::filesystem::path GetTempPath() { #if BOOST_FILESYSTEM_VERSION == 3 return boost::filesystem::temp_directory_path(); #else // TODO: remove when we don't support filesystem v2 anymore boost::filesystem::path path; #ifdef WIN32 char pszPath[MAX_PATH] = ""; if (GetTempPathA(MAX_PATH, pszPath)) path = boost::filesystem::path(pszPath); #else path = boost::filesystem::path("/tmp"); #endif if (path.empty() || !boost::filesystem::is_directory(path)) { printf("GetTempPath(): failed to find temp path\n"); return boost::filesystem::path(""); } return path; #endif } void runCommand(std::string strCommand) { int nErr = ::system(strCommand.c_str()); if (nErr) printf("runCommand error: system(%s) returned %d\n", strCommand.c_str(), nErr); } void RenameThread(const char* name) { #if defined(PR_SET_NAME) // Only the first 15 characters are used (16 - NUL terminator) ::prctl(PR_SET_NAME, name, 0, 0, 0); #elif 0 && (defined(__FreeBSD__) || defined(__OpenBSD__)) // TODO: This is currently disabled because it needs to be verified to work // on FreeBSD or OpenBSD first. When verified the '0 &&' part can be // removed. pthread_set_name_np(pthread_self(), name); #elif defined(MAC_OSX) && defined(__MAC_OS_X_VERSION_MAX_ALLOWED) // pthread_setname_np is XCode 10.6-and-later #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 pthread_setname_np(name); #endif #else // Prevent warnings for unused parameters... (void)name; #endif } bool NewThread(void(*pfn)(void*), void* parg) { try { boost::thread(pfn, parg); // thread detaches when out of scope } catch(boost::thread_resource_error &e) { printf("Error creating thread: %s\n", e.what()); return false; } return true; }
; A184113: n + floor(4*sqrt(n+1)). ; 6,8,11,12,14,16,18,20,21,23,24,26,27,29,31,32,33,35,36,38,39,41,42,44,45,46,48,49,50,52,53,54,56,57,59,60,61,62,64,65,66,68,69,70,72,73,74,76,77,78,79,81,82,83,84,86,87,88,89,91,92,93,95,96,97,98,99,101,102,103,104,106,107,108,109,111,112,113,114,116,117,118,119,120,122,123,124,125,126,128,129,130,131,132,134,135,136,137,139,140 mov $4,$0 add $4,1 mov $9,$0 lpb $4,1 mov $0,$9 sub $4,1 sub $0,$4 mov $5,$0 mov $7,2 lpb $7,1 mov $0,$5 sub $7,1 add $0,$7 add $0,1 mov $3,16 mul $3,$0 sub $3,3 mov $0,$3 mov $3,2 lpb $0,1 sub $0,1 add $3,2 trn $0,$3 lpe mov $2,$3 mov $8,$7 lpb $8,1 mov $6,$2 sub $8,1 lpe lpe lpb $5,1 mov $5,0 sub $6,$2 lpe mov $2,$6 div $2,2 add $2,1 add $1,$2 lpe
SFX_Battle_21_Ch7: unknownnoise0x20 2, 241, 51 unknownnoise0x20 2, 193, 50 unknownnoise0x20 2, 161, 49 unknownnoise0x20 15, 130, 50 unknownnoise0x20 8, 241, 52 endchannel
; A132458: Let df(n,k) = Product_{i=0..k-1} (n-i) be the descending factorial and let P(m,n) = df(n-1,m-1)^2*(2*n-m)/((m-1)!*m!). Sequence gives P(4,n). ; 0,0,0,1,24,200,1000,3675,10976,28224,64800,136125,266200,490776,861224,1449175,2352000,3699200,5659776,8450649,12346200,17689000,24901800,34500851,47110624,63480000,84500000,111223125,144884376,186924024,239012200,303075375,381324800,476286976,590836224,728229425,892143000,1086712200,1316572776,1586905099,1903480800,2272712000,2701703200,3198305901,3771176024,4429834200,5184729000,6047303175,7030062976,8146650624,9411920000,10842015625,12454455000,14268214376,16303818024,18583431075,21130956000,23972132800,27134642976,30648217349,34544747800,38858403000,43625748200,48885869151,54680500224,61054156800,68054272000,75731337825,84139050776,93334462024,103378132200,114334290875,126271000800,139260326976,153378510624,168706148125,185328375000,203335055000,222820974376,243886041399,266635491200,291180096000,317636380800,346126844601,376780187224,409731541800,445122713000,483102421075,523826551776,567458412224,614168992800,664137235125,717550306200,774603878776,835502418024,900459474575,969697984000,1043450572800,1121959870976,1205478831249,1294271055000,1388611125000,1488784945000,1595090086251,1707836141024,1827345083200,1953951636000,2088003646925,2229862469976,2379903355224,2538515845800,2706104182375,2883087715200,3069901323776,3266995844224,3474838504425,3693913367000,3924721780200,4167782836776,4423633840899,4692830783200,4975948824000,5273582784800,5586347648101,5914879065624,6259833875000,6621890625000,7001750109375,7400135909376,7817794945024,8255498035200,8714040466625,9194242571800,9696950315976,10223035893224,10773398331675,11348964108000,11950687771200,12579552575776,13236571124349,13922786019800,14639270527000,15387129244200,16167498784151,16981548465024,17830481011200,18715533264000,19637976902425,20599119173976,21600303635624,22642910905000,23728359421875,24858106220000,26033647709376,27256520469024,28528302050325,29850611791000,31225111639800,32653506991976,34137547535599,35679028108800,37279789568000,38941719667200,40666753948401,42456876643224,44314121585800,46240573137000,48238367120075,50309691767776,52456788681024,54681953799200,56987538382125,59375950003800,61849653557976,64411172275624,67063088754375,69808046000000,72648748480000,75587963189376,78628520728649,81773316394200,85025311281000,88387533397800,91863078794851,95455112704224,99166870692800,103001659828000,106962859856325,111053924394776,115278382135224,119639838061800,124141974681375,128788553267200,133583415115776,138530482817024,143633761537825,148897340319000,154325393385800,159922181471976,165692053157499,171639446220000,177768889000000,184085001780000,190592498177501,197296186552024,204200971426200,211311854921000,218633938205175,226172422958976,233932612852224,241919915036800,250139841653625,258598011354200,267300150836776,276252096397224,285459795494675,294929308332000,304666809451200,314678589343776,324971056076149,335550736930200,346424280059000,357598456157800,369080160150351,380876412890624,392994362880000,405441288000000,418224597260625,431351832564376,444830670486024,458668924068200,472874544632875,487455623608800,502420394374976,517777234120224,533534665718925,549701359623000,566286135770200,583297965508776,600745973538599,618639439868800,636987801792000,655800655875200,675087759967401,694859035224024,715124568148200,735894612649000,757179592116675,778990101514976,801336909490624 mov $2,$0 sub $0,1 bin $2,3 mul $0,$2 mul $0,$2 mov $1,$0 div $1,2
_forktest: file format elf32-i386 Disassembly of section .text: 00000000 <main>: printf(1, "fork test OK\n"); } int main(void) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 51 push %ecx e: 83 ec 04 sub $0x4,%esp forktest(); 11: e8 3a 00 00 00 call 50 <forktest> exit(); 16: e8 77 03 00 00 call 392 <exit> 1b: 66 90 xchg %ax,%ax 1d: 66 90 xchg %ax,%ax 1f: 90 nop 00000020 <printf>: #define N 1000 void printf(int fd, char *s, ...) { 20: 55 push %ebp 21: 89 e5 mov %esp,%ebp 23: 53 push %ebx 24: 83 ec 10 sub $0x10,%esp 27: 8b 5d 0c mov 0xc(%ebp),%ebx write(fd, s, strlen(s)); 2a: 53 push %ebx 2b: e8 a0 01 00 00 call 1d0 <strlen> 30: 83 c4 0c add $0xc,%esp 33: 50 push %eax 34: 53 push %ebx 35: ff 75 08 pushl 0x8(%ebp) 38: e8 75 03 00 00 call 3b2 <write> } 3d: 83 c4 10 add $0x10,%esp 40: 8b 5d fc mov -0x4(%ebp),%ebx 43: c9 leave 44: c3 ret 45: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000050 <forktest>: void forktest(void) { 50: 55 push %ebp 51: 89 e5 mov %esp,%ebp 53: 53 push %ebx int n, pid; printf(1, "fork test\n"); for(n=0; n<N; n++){ 54: 31 db xor %ebx,%ebx write(fd, s, strlen(s)); } void forktest(void) { 56: 83 ec 10 sub $0x10,%esp #define N 1000 void printf(int fd, char *s, ...) { write(fd, s, strlen(s)); 59: 68 3c 04 00 00 push $0x43c 5e: e8 6d 01 00 00 call 1d0 <strlen> 63: 83 c4 0c add $0xc,%esp 66: 50 push %eax 67: 68 3c 04 00 00 push $0x43c 6c: 6a 01 push $0x1 6e: e8 3f 03 00 00 call 3b2 <write> 73: 83 c4 10 add $0x10,%esp 76: eb 19 jmp 91 <forktest+0x41> 78: 90 nop 79: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(n=0; n<N; n++){ pid = fork(); if(pid < 0) break; if(pid == 0) 80: 0f 84 7c 00 00 00 je 102 <forktest+0xb2> { int n, pid; printf(1, "fork test\n"); for(n=0; n<N; n++){ 86: 83 c3 01 add $0x1,%ebx 89: 81 fb e8 03 00 00 cmp $0x3e8,%ebx 8f: 74 4f je e0 <forktest+0x90> pid = fork(); 91: e8 f4 02 00 00 call 38a <fork> if(pid < 0) 96: 85 c0 test %eax,%eax 98: 79 e6 jns 80 <forktest+0x30> if(n == N){ printf(1, "fork claimed to work N times!\n", N); exit(); } for(; n > 0; n--){ 9a: 85 db test %ebx,%ebx 9c: 74 10 je ae <forktest+0x5e> 9e: 66 90 xchg %ax,%ax if(wait() < 0){ a0: e8 f5 02 00 00 call 39a <wait> a5: 85 c0 test %eax,%eax a7: 78 5e js 107 <forktest+0xb7> if(n == N){ printf(1, "fork claimed to work N times!\n", N); exit(); } for(; n > 0; n--){ a9: 83 eb 01 sub $0x1,%ebx ac: 75 f2 jne a0 <forktest+0x50> printf(1, "wait stopped early\n"); exit(); } } if(wait() != -1){ ae: e8 e7 02 00 00 call 39a <wait> b3: 83 f8 ff cmp $0xffffffff,%eax b6: 75 71 jne 129 <forktest+0xd9> #define N 1000 void printf(int fd, char *s, ...) { write(fd, s, strlen(s)); b8: 83 ec 0c sub $0xc,%esp bb: 68 6e 04 00 00 push $0x46e c0: e8 0b 01 00 00 call 1d0 <strlen> c5: 83 c4 0c add $0xc,%esp c8: 50 push %eax c9: 68 6e 04 00 00 push $0x46e ce: 6a 01 push $0x1 d0: e8 dd 02 00 00 call 3b2 <write> printf(1, "wait got too many\n"); exit(); } printf(1, "fork test OK\n"); } d5: 8b 5d fc mov -0x4(%ebp),%ebx d8: c9 leave d9: c3 ret da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi #define N 1000 void printf(int fd, char *s, ...) { write(fd, s, strlen(s)); e0: 83 ec 0c sub $0xc,%esp e3: 68 7c 04 00 00 push $0x47c e8: e8 e3 00 00 00 call 1d0 <strlen> ed: 83 c4 0c add $0xc,%esp f0: 50 push %eax f1: 68 7c 04 00 00 push $0x47c f6: 6a 01 push $0x1 f8: e8 b5 02 00 00 call 3b2 <write> exit(); } if(n == N){ printf(1, "fork claimed to work N times!\n", N); exit(); fd: e8 90 02 00 00 call 392 <exit> for(n=0; n<N; n++){ pid = fork(); if(pid < 0) break; if(pid == 0) exit(); 102: e8 8b 02 00 00 call 392 <exit> #define N 1000 void printf(int fd, char *s, ...) { write(fd, s, strlen(s)); 107: 83 ec 0c sub $0xc,%esp 10a: 68 47 04 00 00 push $0x447 10f: e8 bc 00 00 00 call 1d0 <strlen> 114: 83 c4 0c add $0xc,%esp 117: 50 push %eax 118: 68 47 04 00 00 push $0x447 11d: 6a 01 push $0x1 11f: e8 8e 02 00 00 call 3b2 <write> } for(; n > 0; n--){ if(wait() < 0){ printf(1, "wait stopped early\n"); exit(); 124: e8 69 02 00 00 call 392 <exit> #define N 1000 void printf(int fd, char *s, ...) { write(fd, s, strlen(s)); 129: 83 ec 0c sub $0xc,%esp 12c: 68 5b 04 00 00 push $0x45b 131: e8 9a 00 00 00 call 1d0 <strlen> 136: 83 c4 0c add $0xc,%esp 139: 50 push %eax 13a: 68 5b 04 00 00 push $0x45b 13f: 6a 01 push $0x1 141: e8 6c 02 00 00 call 3b2 <write> } } if(wait() != -1){ printf(1, "wait got too many\n"); exit(); 146: e8 47 02 00 00 call 392 <exit> 14b: 66 90 xchg %ax,%ax 14d: 66 90 xchg %ax,%ax 14f: 90 nop 00000150 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 150: 55 push %ebp 151: 89 e5 mov %esp,%ebp 153: 53 push %ebx 154: 8b 45 08 mov 0x8(%ebp),%eax 157: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 15a: 89 c2 mov %eax,%edx 15c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 160: 83 c1 01 add $0x1,%ecx 163: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 167: 83 c2 01 add $0x1,%edx 16a: 84 db test %bl,%bl 16c: 88 5a ff mov %bl,-0x1(%edx) 16f: 75 ef jne 160 <strcpy+0x10> ; return os; } 171: 5b pop %ebx 172: 5d pop %ebp 173: c3 ret 174: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 17a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000180 <strcmp>: int strcmp(const char *p, const char *q) { 180: 55 push %ebp 181: 89 e5 mov %esp,%ebp 183: 56 push %esi 184: 53 push %ebx 185: 8b 55 08 mov 0x8(%ebp),%edx 188: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 18b: 0f b6 02 movzbl (%edx),%eax 18e: 0f b6 19 movzbl (%ecx),%ebx 191: 84 c0 test %al,%al 193: 75 1e jne 1b3 <strcmp+0x33> 195: eb 29 jmp 1c0 <strcmp+0x40> 197: 89 f6 mov %esi,%esi 199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 1a0: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1a3: 0f b6 02 movzbl (%edx),%eax p++, q++; 1a6: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1a9: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 1ad: 84 c0 test %al,%al 1af: 74 0f je 1c0 <strcmp+0x40> 1b1: 89 f1 mov %esi,%ecx 1b3: 38 d8 cmp %bl,%al 1b5: 74 e9 je 1a0 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; 1b7: 29 d8 sub %ebx,%eax } 1b9: 5b pop %ebx 1ba: 5e pop %esi 1bb: 5d pop %ebp 1bc: c3 ret 1bd: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 1c0: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 1c2: 29 d8 sub %ebx,%eax } 1c4: 5b pop %ebx 1c5: 5e pop %esi 1c6: 5d pop %ebp 1c7: c3 ret 1c8: 90 nop 1c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000001d0 <strlen>: uint strlen(char *s) { 1d0: 55 push %ebp 1d1: 89 e5 mov %esp,%ebp 1d3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 1d6: 80 39 00 cmpb $0x0,(%ecx) 1d9: 74 12 je 1ed <strlen+0x1d> 1db: 31 d2 xor %edx,%edx 1dd: 8d 76 00 lea 0x0(%esi),%esi 1e0: 83 c2 01 add $0x1,%edx 1e3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 1e7: 89 d0 mov %edx,%eax 1e9: 75 f5 jne 1e0 <strlen+0x10> ; return n; } 1eb: 5d pop %ebp 1ec: c3 ret uint strlen(char *s) { int n; for(n = 0; s[n]; n++) 1ed: 31 c0 xor %eax,%eax ; return n; } 1ef: 5d pop %ebp 1f0: c3 ret 1f1: eb 0d jmp 200 <memset> 1f3: 90 nop 1f4: 90 nop 1f5: 90 nop 1f6: 90 nop 1f7: 90 nop 1f8: 90 nop 1f9: 90 nop 1fa: 90 nop 1fb: 90 nop 1fc: 90 nop 1fd: 90 nop 1fe: 90 nop 1ff: 90 nop 00000200 <memset>: void* memset(void *dst, int c, uint n) { 200: 55 push %ebp 201: 89 e5 mov %esp,%ebp 203: 57 push %edi 204: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 207: 8b 4d 10 mov 0x10(%ebp),%ecx 20a: 8b 45 0c mov 0xc(%ebp),%eax 20d: 89 d7 mov %edx,%edi 20f: fc cld 210: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 212: 89 d0 mov %edx,%eax 214: 5f pop %edi 215: 5d pop %ebp 216: c3 ret 217: 89 f6 mov %esi,%esi 219: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000220 <strchr>: char* strchr(const char *s, char c) { 220: 55 push %ebp 221: 89 e5 mov %esp,%ebp 223: 53 push %ebx 224: 8b 45 08 mov 0x8(%ebp),%eax 227: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 22a: 0f b6 10 movzbl (%eax),%edx 22d: 84 d2 test %dl,%dl 22f: 74 1d je 24e <strchr+0x2e> if(*s == c) 231: 38 d3 cmp %dl,%bl 233: 89 d9 mov %ebx,%ecx 235: 75 0d jne 244 <strchr+0x24> 237: eb 17 jmp 250 <strchr+0x30> 239: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 240: 38 ca cmp %cl,%dl 242: 74 0c je 250 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 244: 83 c0 01 add $0x1,%eax 247: 0f b6 10 movzbl (%eax),%edx 24a: 84 d2 test %dl,%dl 24c: 75 f2 jne 240 <strchr+0x20> if(*s == c) return (char*)s; return 0; 24e: 31 c0 xor %eax,%eax } 250: 5b pop %ebx 251: 5d pop %ebp 252: c3 ret 253: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000260 <gets>: char* gets(char *buf, int max) { 260: 55 push %ebp 261: 89 e5 mov %esp,%ebp 263: 57 push %edi 264: 56 push %esi 265: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 266: 31 f6 xor %esi,%esi cc = read(0, &c, 1); 268: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { 26b: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 26e: eb 29 jmp 299 <gets+0x39> cc = read(0, &c, 1); 270: 83 ec 04 sub $0x4,%esp 273: 6a 01 push $0x1 275: 57 push %edi 276: 6a 00 push $0x0 278: e8 2d 01 00 00 call 3aa <read> if(cc < 1) 27d: 83 c4 10 add $0x10,%esp 280: 85 c0 test %eax,%eax 282: 7e 1d jle 2a1 <gets+0x41> break; buf[i++] = c; 284: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 288: 8b 55 08 mov 0x8(%ebp),%edx 28b: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') 28d: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 28f: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 293: 74 1b je 2b0 <gets+0x50> 295: 3c 0d cmp $0xd,%al 297: 74 17 je 2b0 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 299: 8d 5e 01 lea 0x1(%esi),%ebx 29c: 3b 5d 0c cmp 0xc(%ebp),%ebx 29f: 7c cf jl 270 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 2a1: 8b 45 08 mov 0x8(%ebp),%eax 2a4: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 2a8: 8d 65 f4 lea -0xc(%ebp),%esp 2ab: 5b pop %ebx 2ac: 5e pop %esi 2ad: 5f pop %edi 2ae: 5d pop %ebp 2af: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 2b0: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 2b3: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 2b5: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 2b9: 8d 65 f4 lea -0xc(%ebp),%esp 2bc: 5b pop %ebx 2bd: 5e pop %esi 2be: 5f pop %edi 2bf: 5d pop %ebp 2c0: c3 ret 2c1: eb 0d jmp 2d0 <stat> 2c3: 90 nop 2c4: 90 nop 2c5: 90 nop 2c6: 90 nop 2c7: 90 nop 2c8: 90 nop 2c9: 90 nop 2ca: 90 nop 2cb: 90 nop 2cc: 90 nop 2cd: 90 nop 2ce: 90 nop 2cf: 90 nop 000002d0 <stat>: int stat(char *n, struct stat *st) { 2d0: 55 push %ebp 2d1: 89 e5 mov %esp,%ebp 2d3: 56 push %esi 2d4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 2d5: 83 ec 08 sub $0x8,%esp 2d8: 6a 00 push $0x0 2da: ff 75 08 pushl 0x8(%ebp) 2dd: e8 f0 00 00 00 call 3d2 <open> if(fd < 0) 2e2: 83 c4 10 add $0x10,%esp 2e5: 85 c0 test %eax,%eax 2e7: 78 27 js 310 <stat+0x40> return -1; r = fstat(fd, st); 2e9: 83 ec 08 sub $0x8,%esp 2ec: ff 75 0c pushl 0xc(%ebp) 2ef: 89 c3 mov %eax,%ebx 2f1: 50 push %eax 2f2: e8 f3 00 00 00 call 3ea <fstat> 2f7: 89 c6 mov %eax,%esi close(fd); 2f9: 89 1c 24 mov %ebx,(%esp) 2fc: e8 b9 00 00 00 call 3ba <close> return r; 301: 83 c4 10 add $0x10,%esp 304: 89 f0 mov %esi,%eax } 306: 8d 65 f8 lea -0x8(%ebp),%esp 309: 5b pop %ebx 30a: 5e pop %esi 30b: 5d pop %ebp 30c: c3 ret 30d: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 310: b8 ff ff ff ff mov $0xffffffff,%eax 315: eb ef jmp 306 <stat+0x36> 317: 89 f6 mov %esi,%esi 319: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000320 <atoi>: return r; } int atoi(const char *s) { 320: 55 push %ebp 321: 89 e5 mov %esp,%ebp 323: 53 push %ebx 324: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 327: 0f be 11 movsbl (%ecx),%edx 32a: 8d 42 d0 lea -0x30(%edx),%eax 32d: 3c 09 cmp $0x9,%al 32f: b8 00 00 00 00 mov $0x0,%eax 334: 77 1f ja 355 <atoi+0x35> 336: 8d 76 00 lea 0x0(%esi),%esi 339: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 340: 8d 04 80 lea (%eax,%eax,4),%eax 343: 83 c1 01 add $0x1,%ecx 346: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 34a: 0f be 11 movsbl (%ecx),%edx 34d: 8d 5a d0 lea -0x30(%edx),%ebx 350: 80 fb 09 cmp $0x9,%bl 353: 76 eb jbe 340 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } 355: 5b pop %ebx 356: 5d pop %ebp 357: c3 ret 358: 90 nop 359: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000360 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 56 push %esi 364: 53 push %ebx 365: 8b 5d 10 mov 0x10(%ebp),%ebx 368: 8b 45 08 mov 0x8(%ebp),%eax 36b: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 36e: 85 db test %ebx,%ebx 370: 7e 14 jle 386 <memmove+0x26> 372: 31 d2 xor %edx,%edx 374: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 378: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 37c: 88 0c 10 mov %cl,(%eax,%edx,1) 37f: 83 c2 01 add $0x1,%edx { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 382: 39 da cmp %ebx,%edx 384: 75 f2 jne 378 <memmove+0x18> *dst++ = *src++; return vdst; } 386: 5b pop %ebx 387: 5e pop %esi 388: 5d pop %ebp 389: c3 ret 0000038a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 38a: b8 01 00 00 00 mov $0x1,%eax 38f: cd 40 int $0x40 391: c3 ret 00000392 <exit>: SYSCALL(exit) 392: b8 02 00 00 00 mov $0x2,%eax 397: cd 40 int $0x40 399: c3 ret 0000039a <wait>: SYSCALL(wait) 39a: b8 03 00 00 00 mov $0x3,%eax 39f: cd 40 int $0x40 3a1: c3 ret 000003a2 <pipe>: SYSCALL(pipe) 3a2: b8 04 00 00 00 mov $0x4,%eax 3a7: cd 40 int $0x40 3a9: c3 ret 000003aa <read>: SYSCALL(read) 3aa: b8 05 00 00 00 mov $0x5,%eax 3af: cd 40 int $0x40 3b1: c3 ret 000003b2 <write>: SYSCALL(write) 3b2: b8 10 00 00 00 mov $0x10,%eax 3b7: cd 40 int $0x40 3b9: c3 ret 000003ba <close>: SYSCALL(close) 3ba: b8 15 00 00 00 mov $0x15,%eax 3bf: cd 40 int $0x40 3c1: c3 ret 000003c2 <kill>: SYSCALL(kill) 3c2: b8 06 00 00 00 mov $0x6,%eax 3c7: cd 40 int $0x40 3c9: c3 ret 000003ca <exec>: SYSCALL(exec) 3ca: b8 07 00 00 00 mov $0x7,%eax 3cf: cd 40 int $0x40 3d1: c3 ret 000003d2 <open>: SYSCALL(open) 3d2: b8 0f 00 00 00 mov $0xf,%eax 3d7: cd 40 int $0x40 3d9: c3 ret 000003da <mknod>: SYSCALL(mknod) 3da: b8 11 00 00 00 mov $0x11,%eax 3df: cd 40 int $0x40 3e1: c3 ret 000003e2 <unlink>: SYSCALL(unlink) 3e2: b8 12 00 00 00 mov $0x12,%eax 3e7: cd 40 int $0x40 3e9: c3 ret 000003ea <fstat>: SYSCALL(fstat) 3ea: b8 08 00 00 00 mov $0x8,%eax 3ef: cd 40 int $0x40 3f1: c3 ret 000003f2 <link>: SYSCALL(link) 3f2: b8 13 00 00 00 mov $0x13,%eax 3f7: cd 40 int $0x40 3f9: c3 ret 000003fa <mkdir>: SYSCALL(mkdir) 3fa: b8 14 00 00 00 mov $0x14,%eax 3ff: cd 40 int $0x40 401: c3 ret 00000402 <chdir>: SYSCALL(chdir) 402: b8 09 00 00 00 mov $0x9,%eax 407: cd 40 int $0x40 409: c3 ret 0000040a <dup>: SYSCALL(dup) 40a: b8 0a 00 00 00 mov $0xa,%eax 40f: cd 40 int $0x40 411: c3 ret 00000412 <getpid>: SYSCALL(getpid) 412: b8 0b 00 00 00 mov $0xb,%eax 417: cd 40 int $0x40 419: c3 ret 0000041a <sbrk>: SYSCALL(sbrk) 41a: b8 0c 00 00 00 mov $0xc,%eax 41f: cd 40 int $0x40 421: c3 ret 00000422 <sleep>: SYSCALL(sleep) 422: b8 0d 00 00 00 mov $0xd,%eax 427: cd 40 int $0x40 429: c3 ret 0000042a <uptime>: SYSCALL(uptime) 42a: b8 0e 00 00 00 mov $0xe,%eax 42f: cd 40 int $0x40 431: c3 ret 00000432 <cps>: SYSCALL(cps) 432: b8 16 00 00 00 mov $0x16,%eax 437: cd 40 int $0x40 439: c3 ret
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714 // // /// // Buffer Definitions: // // cbuffer cbMain // { // // float4x4 g_mWorld; // Offset: 0 Size: 64 // float4x4 g_mView; // Offset: 64 Size: 64 [unused] // float4x4 g_mProjection; // Offset: 128 Size: 64 [unused] // float4x4 g_mWorldViewProjection; // Offset: 192 Size: 64 [unused] // float4x4 g_mViewProjection; // Offset: 256 Size: 64 [unused] // float4x4 g_mInvView; // Offset: 320 Size: 64 [unused] // float4 g_vScreenResolution; // Offset: 384 Size: 16 [unused] // float4 g_vMeshColor; // Offset: 400 Size: 16 [unused] // float4 g_vTessellationFactor; // Offset: 416 Size: 16 [unused] // float4 g_vDetailTessellationHeightScale;// Offset: 432 Size: 16 [unused] // float4 g_vGridSize; // Offset: 448 Size: 16 [unused] // float4 g_vDebugColorMultiply; // Offset: 464 Size: 16 [unused] // float4 g_vDebugColorAdd; // Offset: 480 Size: 16 [unused] // float4 g_vFrustumPlaneEquation[4]; // Offset: 496 Size: 64 [unused] // // } // // cbuffer cbMaterial // { // // float4 g_materialAmbientColor; // Offset: 0 Size: 16 [unused] // float4 g_materialDiffuseColor; // Offset: 16 Size: 16 [unused] // float4 g_materialSpecularColor; // Offset: 32 Size: 16 [unused] // float4 g_fSpecularExponent; // Offset: 48 Size: 16 [unused] // float4 g_LightPosition; // Offset: 64 Size: 16 // float4 g_LightDiffuse; // Offset: 80 Size: 16 [unused] // float4 g_LightAmbient; // Offset: 96 Size: 16 [unused] // float4 g_vEye; // Offset: 112 Size: 16 [unused] // float4 g_fBaseTextureRepeat; // Offset: 128 Size: 16 // float4 g_fPOMHeightMapScale; // Offset: 144 Size: 16 [unused] // float4 g_fShadowSoftening; // Offset: 160 Size: 16 [unused] // int g_nMinSamples; // Offset: 176 Size: 4 [unused] // int g_nMaxSamples; // Offset: 180 Size: 4 [unused] // // } // // // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // cbMain cbuffer NA NA 0 1 // cbMaterial cbuffer NA NA 1 1 // // // // Input signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // POSITION 0 xyz 0 NONE float xyz // TEXCOORD 0 xy 1 NONE float xy // NORMAL 0 xyz 2 NONE float xyz // BINORMAL 0 xyz 3 NONE float xyz // TANGENT 0 xyz 4 NONE float xyz // SV_VERTEXID 0 x 5 VERTID uint // // // Output signature: // // Name Index Mask Register SysValue Format Used // -------------------- ----- ------ -------- -------- ------- ------ // WORLDPOS 0 xyz 0 NONE float xyz // NORMAL 0 xyz 1 NONE float xyz // TEXCOORD 0 xy 2 NONE float xy // LIGHTVECTORTS 0 xyz 3 NONE float xyz // vs_4_0 dcl_constantbuffer cb0[3], immediateIndexed dcl_constantbuffer cb1[9], immediateIndexed dcl_input v0.xyz dcl_input v1.xy dcl_input v2.xyz dcl_input v3.xyz dcl_input v4.xyz dcl_output o0.xyz dcl_output o1.xyz dcl_output o2.xy dcl_output o3.xyz dcl_temps 2 dp3 r0.x, v0.xyzx, cb0[0].xyzx dp3 r0.y, v0.xyzx, cb0[1].xyzx dp3 r0.z, v0.xyzx, cb0[2].xyzx mov o0.xyz, r0.xyzx add r0.xyz, -r0.xyzx, cb1[4].xyzx dp3 r1.x, v2.xyzx, cb0[0].xyzx dp3 r1.y, v2.xyzx, cb0[1].xyzx dp3 r1.z, v2.xyzx, cb0[2].xyzx dp3 r1.w, r1.xyzx, r1.xyzx rsq r1.w, r1.w mul r1.xyz, r1.wwww, r1.xyzx mov o1.xyz, r1.xyzx mul o2.xy, v1.xyxx, cb1[8].xxxx mov r0.w, -r0.z dp3 o3.z, r1.xyzx, r0.xywx dp3 r1.x, v4.xyzx, cb0[0].xyzx dp3 r1.y, v4.xyzx, cb0[1].xyzx dp3 r1.z, v4.xyzx, cb0[2].xyzx dp3 r0.z, r1.xyzx, r1.xyzx rsq r0.z, r0.z mul r1.xyz, r0.zzzz, r1.xyzx dp3 o3.x, r1.xyzx, r0.xywx dp3 r1.x, v3.xyzx, cb0[0].xyzx dp3 r1.y, v3.xyzx, cb0[1].xyzx dp3 r1.z, v3.xyzx, cb0[2].xyzx dp3 r0.z, r1.xyzx, r1.xyzx rsq r0.z, r0.z mul r1.xyz, r0.zzzz, r1.xyzx dp3 o3.y, r1.xyzx, r0.xywx ret // Approximately 30 instruction slots used
; A249032: First differences of A075326. ; 3,6,4,5,5,6,4,6,4,6,4,5,5,6,4,5,5,6,4,5,5,6,4,6,4,6,4,5,5,6,4,6,4,6,4,5,5,6,4,6,4,6,4,5,5,6,4,5,5,6,4,5,5,6,4,6,4,6,4,5,5,6,4,5,5,6,4,5,5,6,4,6,4,6,4,5,5,6,4,5,5,6,4,5,5,6,4,6,4,6,4,5,5,6,4,6,4,6,4,5 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,309231 ; Column 3 of the array at A326662 see Comments. mov $2,$3 mul $2,$0 add $1,$2 mov $4,$0 lpe min $5,1 mul $5,$4 sub $1,$5 sub $1,4 mov $0,$1
push ebp mov ebp,esp push ecx call dword ptr ds:[0EBD1BCh] shl eax,0Ch or eax,dword ptr [dev] mov ecx,dword ptr [dev] and eax,3F000h and ecx,0FFFC0FFFh or eax,ecx mov dword ptr [dev],eax mov esp,ebp pop ebp ret
; --------------------------------------------------------------------------- ; Object 75 - Eggman (SYZ) ; --------------------------------------------------------------------------- BossSpringYard: moveq #0,d0 move.b obRoutine(a0),d0 move.w Obj75_Index(pc,d0.w),d1 jmp Obj75_Index(pc,d1.w) ; =========================================================================== Obj75_Index: dc.w Obj75_Main-Obj75_Index dc.w Obj75_ShipMain-Obj75_Index dc.w Obj75_FaceMain-Obj75_Index dc.w Obj75_FlameMain-Obj75_Index dc.w Obj75_SpikeMain-Obj75_Index Obj75_ObjData: dc.b 2, 0, 5 ; routine number, animation, priority dc.b 4, 1, 5 dc.b 6, 7, 5 dc.b 8, 0, 5 ; =========================================================================== Obj75_Main: ; Routine 0 move.w #$2DB0,obX(a0) move.w #$4DA,obY(a0) move.w obX(a0),$30(a0) move.w obY(a0),$38(a0) move.b #$F,obColType(a0) move.b #8,obColProp(a0) ; set number of hits to 8 lea Obj75_ObjData(pc),a2 movea.l a0,a1 moveq #3,d1 bra.s Obj75_LoadBoss ; =========================================================================== Obj75_Loop: jsr (FindNextFreeObj).l bne.s Obj75_ShipMain move.b #id_BossSpringYard,(a1) move.w obX(a0),obX(a1) move.w obY(a0),obY(a1) Obj75_LoadBoss: bclr #0,obStatus(a0) clr.b ob2ndRout(a1) move.b (a2)+,obRoutine(a1) move.b (a2)+,obAnim(a1) move.b (a2)+,obPriority(a1) move.l #Map_Eggman,obMap(a1) move.w #$400,obGfx(a1) move.b #4,obRender(a1) move.b #$20,obActWid(a1) move.l a0,$34(a1) dbf d1,Obj75_Loop ; repeat sequence 3 more times Obj75_ShipMain: ; Routine 2 moveq #0,d0 move.b ob2ndRout(a0),d0 move.w Obj75_ShipIndex(pc,d0.w),d1 jsr Obj75_ShipIndex(pc,d1.w) lea (Ani_Eggman).l,a1 jsr (AnimateSprite).l moveq #3,d0 and.b obStatus(a0),d0 andi.b #$FC,obRender(a0) or.b d0,obRender(a0) jmp (DisplaySprite).l ; =========================================================================== Obj75_ShipIndex:dc.w loc_191CC-Obj75_ShipIndex, loc_19270-Obj75_ShipIndex dc.w loc_192EC-Obj75_ShipIndex, loc_19474-Obj75_ShipIndex dc.w loc_194AC-Obj75_ShipIndex, loc_194F2-Obj75_ShipIndex ; =========================================================================== loc_191CC: move.w #-$100,obVelX(a0) cmpi.w #$2D38,$30(a0) bcc.s loc_191DE addq.b #2,ob2ndRout(a0) loc_191DE: move.b $3F(a0),d0 addq.b #2,$3F(a0) jsr (CalcSine).l asr.w #2,d0 move.w d0,obVelY(a0) loc_191F2: bsr.w BossMove move.w $38(a0),obY(a0) move.w $30(a0),obX(a0) loc_19202: move.w 8(a0),d0 subi.w #$2C00,d0 lsr.w #5,d0 move.b d0,$34(a0) cmpi.b #6,ob2ndRout(a0) bcc.s locret_19256 tst.b obStatus(a0) bmi.s loc_19258 tst.b obColType(a0) bne.s locret_19256 tst.b $3E(a0) bne.s loc_1923A move.b #$20,$3E(a0) sfx sfx_HitBoss,0,0,0 ; play boss damage sound loc_1923A: lea (v_pal_dry+$22).w,a1 moveq #0,d0 tst.w (a1) bne.s loc_19248 move.w #cWhite,d0 loc_19248: move.w d0,(a1) subq.b #1,$3E(a0) bne.s locret_19256 move.b #$F,obColType(a0) locret_19256: rts ; =========================================================================== loc_19258: moveq #100,d0 bsr.w AddPoints move.b #6,ob2ndRout(a0) move.w #$B4,$3C(a0) clr.w obVelX(a0) rts ; =========================================================================== loc_19270: move.w $30(a0),d0 move.w #$140,obVelX(a0) btst #0,obStatus(a0) bne.s loc_1928E neg.w obVelX(a0) cmpi.w #$2C08,d0 bgt.s loc_1929E bra.s loc_19294 ; =========================================================================== loc_1928E: cmpi.w #$2D38,d0 blt.s loc_1929E loc_19294: bchg #0,obStatus(a0) clr.b $3D(a0) loc_1929E: subi.w #$2C10,d0 andi.w #$1F,d0 subi.w #$1F,d0 bpl.s loc_192AE neg.w d0 loc_192AE: subq.w #1,d0 bgt.s loc_192E8 tst.b $3D(a0) bne.s loc_192E8 move.w (v_player+obX).w,d1 subi.w #$2C00,d1 asr.w #5,d1 cmp.b $34(a0),d1 bne.s loc_192E8 moveq #0,d0 move.b $34(a0),d0 asl.w #5,d0 addi.w #$2C10,d0 move.w d0,$30(a0) bsr.w Obj75_FindBlocks addq.b #2,ob2ndRout(a0) clr.w obSubtype(a0) clr.w obVelX(a0) loc_192E8: bra.w loc_191DE ; =========================================================================== loc_192EC: moveq #0,d0 move.b obSubtype(a0),d0 move.w off_192FA(pc,d0.w),d0 jmp off_192FA(pc,d0.w) ; =========================================================================== off_192FA: dc.w loc_19302-off_192FA dc.w loc_19348-off_192FA dc.w loc_1938E-off_192FA dc.w loc_193D0-off_192FA ; =========================================================================== loc_19302: move.w #$180,obVelY(a0) move.w $38(a0),d0 cmpi.w #$556,d0 bcs.s loc_19344 move.w #$556,$38(a0) clr.w $3C(a0) moveq #-1,d0 move.w $36(a0),d0 beq.s loc_1933C movea.l d0,a1 move.b #-1,$29(a1) move.b #-1,$29(a0) move.l a0,$34(a1) move.w #$32,$3C(a0) loc_1933C: clr.w obVelY(a0) addq.b #2,obSubtype(a0) loc_19344: bra.w loc_191F2 ; =========================================================================== loc_19348: subq.w #1,$3C(a0) bpl.s loc_19366 addq.b #2,obSubtype(a0) move.w #-$800,obVelY(a0) tst.w $36(a0) bne.s loc_19362 asr obVelY(a0) loc_19362: moveq #0,d0 bra.s loc_1937C ; =========================================================================== loc_19366: moveq #0,d0 cmpi.w #$1E,$3C(a0) bgt.s loc_1937C moveq #2,d0 btst #1,$3D(a0) beq.s loc_1937C neg.w d0 loc_1937C: add.w $38(a0),d0 move.w d0,obY(a0) move.w $30(a0),obX(a0) bra.w loc_19202 ; =========================================================================== loc_1938E: move.w #$4DA,d0 tst.w $36(a0) beq.s loc_1939C subi.w #$18,d0 loc_1939C: cmp.w $38(a0),d0 blt.s loc_193BE move.w #8,$3C(a0) tst.w $36(a0) beq.s loc_193B4 move.w #$2D,$3C(a0) loc_193B4: addq.b #2,obSubtype(a0) clr.w obVelY(a0) bra.s loc_193CC ; =========================================================================== loc_193BE: cmpi.w #-$40,obVelY(a0) bge.s loc_193CC addi.w #$C,obVelY(a0) loc_193CC: bra.w loc_191F2 ; =========================================================================== loc_193D0: subq.w #1,$3C(a0) bgt.s loc_19406 bmi.s loc_193EE moveq #-1,d0 move.w $36(a0),d0 beq.s loc_193E8 movea.l d0,a1 move.b #$A,$29(a1) loc_193E8: clr.w $36(a0) bra.s loc_19406 ; =========================================================================== loc_193EE: cmpi.w #-$1E,$3C(a0) bne.s loc_19406 clr.b $29(a0) subq.b #2,ob2ndRout(a0) move.b #-1,$3D(a0) bra.s loc_19446 ; =========================================================================== loc_19406: moveq #1,d0 tst.w $36(a0) beq.s loc_19410 moveq #2,d0 loc_19410: cmpi.w #$4DA,$38(a0) beq.s loc_19424 blt.s loc_1941C neg.w d0 loc_1941C: tst.w $36(a0) add.w d0,$38(a0) loc_19424: moveq #0,d0 tst.w $36(a0) beq.s loc_19438 moveq #2,d0 btst #0,$3D(a0) beq.s loc_19438 neg.w d0 loc_19438: add.w $38(a0),d0 move.w d0,obY(a0) move.w $30(a0),8(a0) loc_19446: bra.w loc_19202 ; ||||||||||||||| S U B R O U T I N E ||||||||||||||||||||||||||||||||||||||| Obj75_FindBlocks: clr.w $36(a0) lea (v_objspace+$40).w,a1 moveq #$3E,d0 moveq #$76,d1 move.b $34(a0),d2 Obj75_FindLoop: cmp.b (a1),d1 ; is object a SYZ boss block? bne.s loc_1946A ; if not, branch cmp.b obSubtype(a1),d2 bne.s loc_1946A move.w a1,$36(a0) bra.s locret_19472 ; =========================================================================== loc_1946A: lea $40(a1),a1 ; next object RAM entry dbf d0,Obj75_FindLoop locret_19472: rts ; End of function Obj75_FindBlocks ; =========================================================================== loc_19474: subq.w #1,$3C(a0) bmi.s loc_1947E bra.w BossDefeated ; =========================================================================== loc_1947E: addq.b #2,ob2ndRout(a0) clr.w obVelY(a0) bset #0,obStatus(a0) bclr #7,obStatus(a0) clr.w obVelX(a0) move.w #-1,$3C(a0) tst.b (v_bossstatus).w bne.s loc_194A8 move.b #1,(v_bossstatus).w loc_194A8: bra.w loc_19202 ; =========================================================================== loc_194AC: addq.w #1,$3C(a0) beq.s loc_194BC bpl.s loc_194C2 addi.w #$18,obVelY(a0) bra.s loc_194EE ; =========================================================================== loc_194BC: clr.w obVelY(a0) bra.s loc_194EE ; =========================================================================== loc_194C2: cmpi.w #$20,$3C(a0) bcs.s loc_194DA beq.s loc_194E0 cmpi.w #$2A,$3C(a0) bcs.s loc_194EE addq.b #2,ob2ndRout(a0) bra.s loc_194EE ; =========================================================================== loc_194DA: subq.w #8,obVelY(a0) bra.s loc_194EE ; =========================================================================== loc_194E0: clr.w obVelY(a0) music bgm_SYZ,0,0,0 ; play SYZ music loc_194EE: bra.w loc_191F2 ; =========================================================================== loc_194F2: move.w #$400,obVelX(a0) move.w #-$40,obVelY(a0) cmpi.w #$2D40,(v_limitright2).w bcc.s loc_1950C addq.w #2,(v_limitright2).w bra.s loc_19512 ; =========================================================================== loc_1950C: tst.b obRender(a0) bpl.s Obj75_ShipDelete loc_19512: bsr.w BossMove bra.w loc_191DE ; =========================================================================== Obj75_ShipDelete: jmp (DeleteObject).l ; =========================================================================== Obj75_FaceMain: ; Routine 4 moveq #1,d1 movea.l $34(a0),a1 moveq #0,d0 move.b ob2ndRout(a1),d0 move.w off_19546(pc,d0.w),d0 jsr off_19546(pc,d0.w) move.b d1,obAnim(a0) move.b (a0),d0 cmp.b (a1),d0 bne.s Obj75_FaceDelete bra.s loc_195BE ; =========================================================================== Obj75_FaceDelete: jmp (DeleteObject).l ; =========================================================================== off_19546: dc.w loc_19574-off_19546, loc_19574-off_19546 dc.w loc_1955A-off_19546, loc_19552-off_19546 dc.w loc_19552-off_19546, loc_19556-off_19546 ; =========================================================================== loc_19552: moveq #$A,d1 rts ; =========================================================================== loc_19556: moveq #6,d1 rts ; =========================================================================== loc_1955A: moveq #0,d0 move.b obSubtype(a1),d0 move.w off_19568(pc,d0.w),d0 jmp off_19568(pc,d0.w) ; =========================================================================== off_19568: dc.w loc_19570-off_19568, loc_19572-off_19568 dc.w loc_19570-off_19568, loc_19570-off_19568 ; =========================================================================== loc_19570: bra.s loc_19574 ; =========================================================================== loc_19572: moveq #6,d1 loc_19574: tst.b obColType(a1) bne.s loc_1957E moveq #5,d1 rts ; =========================================================================== loc_1957E: cmpi.b #4,(v_player+obRoutine).w bcs.s locret_19588 moveq #4,d1 locret_19588: rts ; =========================================================================== Obj75_FlameMain:; Routine 6 move.b #7,obAnim(a0) movea.l $34(a0),a1 cmpi.b #$A,ob2ndRout(a1) bne.s loc_195AA move.b #$B,obAnim(a0) tst.b 1(a0) bpl.s Obj75_FlameDelete bra.s loc_195B6 ; =========================================================================== loc_195AA: tst.w obVelX(a1) beq.s loc_195B6 move.b #8,obAnim(a0) loc_195B6: bra.s loc_195BE ; =========================================================================== Obj75_FlameDelete: jmp (DeleteObject).l ; =========================================================================== loc_195BE: lea (Ani_Eggman).l,a1 jsr (AnimateSprite).l movea.l $34(a0),a1 move.w obX(a1),obX(a0) move.w obY(a1),obY(a0) loc_195DA: move.b obStatus(a1),obStatus(a0) moveq #3,d0 and.b obStatus(a0),d0 andi.b #$FC,obRender(a0) or.b d0,obRender(a0) jmp (DisplaySprite).l ; =========================================================================== Obj75_SpikeMain:; Routine 8 move.l #Map_BossItems,obMap(a0) move.w #$246C,obGfx(a0) move.b #5,obFrame(a0) movea.l $34(a0),a1 cmpi.b #$A,ob2ndRout(a1) bne.s loc_1961C tst.b obRender(a0) bpl.s Obj75_SpikeDelete loc_1961C: move.w obX(a1),obX(a0) move.w obY(a1),obY(a0) move.w $3C(a0),d0 cmpi.b #4,ob2ndRout(a1) bne.s loc_19652 cmpi.b #6,obSubtype(a1) beq.s loc_1964C tst.b obSubtype(a1) bne.s loc_19658 cmpi.w #$94,d0 bge.s loc_19658 addq.w #7,d0 bra.s loc_19658 ; =========================================================================== loc_1964C: tst.w $3C(a1) bpl.s loc_19658 loc_19652: tst.w d0 ble.s loc_19658 subq.w #5,d0 loc_19658: move.w d0,$3C(a0) asr.w #2,d0 add.w d0,obY(a0) move.b #8,obActWid(a0) move.b #$C,obHeight(a0) clr.b obColType(a0) movea.l $34(a0),a1 tst.b obColType(a1) beq.s loc_19688 tst.b $29(a1) bne.s loc_19688 move.b #$84,obColType(a0) loc_19688: bra.w loc_195DA ; =========================================================================== Obj75_SpikeDelete: jmp (DeleteObject).l
; A000537: Sum of first n cubes; or n-th triangular number squared. ; 0,1,9,36,100,225,441,784,1296,2025,3025,4356,6084,8281,11025,14400,18496,23409,29241,36100,44100,53361,64009,76176,90000,105625,123201,142884,164836,189225,216225,246016,278784,314721,354025,396900,443556,494209,549081,608400,672400,741321,815409,894916,980100,1071225,1168561,1272384,1382976,1500625,1625625,1758276,1898884,2047761,2205225,2371600,2547216,2732409,2927521,3132900,3348900,3575881,3814209,4064256,4326400,4601025,4888521,5189284,5503716,5832225,6175225,6533136,6906384,7295401 sub $1,$0 bin $1,2 pow $1,2 mov $0,$1
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x81b8, %rsi lea addresses_D_ht+0x16668, %rdi clflush (%rdi) nop nop nop nop nop inc %r15 mov $39, %rcx rep movsq nop nop nop nop xor %rsi, %rsi lea addresses_A_ht+0xd9b8, %r13 nop nop nop cmp $36093, %rdx mov $0x6162636465666768, %r11 movq %r11, %xmm1 movups %xmm1, (%r13) nop nop nop nop and %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %rax push %rdx push %rsi // Store lea addresses_normal+0x149b8, %r10 nop nop add $54845, %r13 movl $0x51525354, (%r10) sub %r11, %r11 // Store lea addresses_normal+0x155b8, %rsi nop nop xor $5515, %rax movb $0x51, (%rsi) nop cmp %rax, %rax // Load lea addresses_PSE+0x2351, %r12 nop nop nop dec %rdx mov (%r12), %r10d nop nop nop add %r10, %r10 // Store lea addresses_D+0x1db8, %r11 nop nop nop xor %rdx, %rdx movw $0x5152, (%r11) dec %r11 // Store lea addresses_PSE+0x15468, %r13 nop nop nop nop mfence mov $0x5152535455565758, %r11 movq %r11, %xmm4 vmovups %ymm4, (%r13) nop nop nop and $64636, %r11 // Store lea addresses_WC+0x11338, %r11 nop nop nop nop nop cmp $36525, %rax movw $0x5152, (%r11) nop nop nop nop nop mfence // Load lea addresses_normal+0x9a38, %rax nop nop nop nop nop cmp %rdx, %rdx mov (%rax), %r13d nop nop nop add $33868, %r13 // Faulty Load lea addresses_WC+0x195b8, %rax nop nop xor %rdx, %rdx mov (%rax), %r12w lea oracles, %r11 and $0xff, %r12 shlq $12, %r12 mov (%r11,%r12,1), %r12 pop %rsi pop %rdx pop %rax pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}} {'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}} {'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_WC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
// Copyright (c) 2017-2018 The Bitcoin Core developers // Copyright (c) 2018-2021 The EMRALS Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/tx_verify.h> #include <consensus/consensus.h> #include <primitives/transaction.h> #include <script/interpreter.h> #include <consensus/validation.h> #include <chain.h> #include <coins.h> #include <util/moneystr.h> bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime) { if (tx.nLockTime == 0) return true; if ((int64_t)tx.nLockTime < ((int64_t)tx.nLockTime < LOCKTIME_THRESHOLD ? (int64_t)nBlockHeight : nBlockTime)) return true; for (const auto& txin : tx.vin) { if (!(txin.nSequence == CTxIn::SEQUENCE_FINAL)) return false; } return true; } std::pair<int, int64_t> CalculateSequenceLocks(const CTransaction &tx, int flags, std::vector<int>* prevHeights, const CBlockIndex& block) { assert(prevHeights->size() == tx.vin.size()); // Will be set to the equivalent height- and time-based nLockTime // values that would be necessary to satisfy all relative lock- // time constraints given our view of block chain history. // The semantics of nLockTime are the last invalid height/time, so // use -1 to have the effect of any height or time being valid. int nMinHeight = -1; int64_t nMinTime = -1; // tx.nVersion is signed integer so requires cast to unsigned otherwise // we would be doing a signed comparison and half the range of nVersion // wouldn't support BIP 68. bool fEnforceBIP68 = static_cast<uint32_t>(tx.nVersion) >= 2 && flags & LOCKTIME_VERIFY_SEQUENCE; // Do not enforce sequence numbers as a relative lock time // unless we have been instructed to if (!fEnforceBIP68) { return std::make_pair(nMinHeight, nMinTime); } for (size_t txinIndex = 0; txinIndex < tx.vin.size(); txinIndex++) { const CTxIn& txin = tx.vin[txinIndex]; // Sequence numbers with the most significant bit set are not // treated as relative lock-times, nor are they given any // consensus-enforced meaning at this point. if (txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_DISABLE_FLAG) { // The height of this input is not relevant for sequence locks (*prevHeights)[txinIndex] = 0; continue; } int nCoinHeight = (*prevHeights)[txinIndex]; if (txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG) { int64_t nCoinTime = block.GetAncestor(std::max(nCoinHeight-1, 0))->GetMedianTimePast(); // NOTE: Subtract 1 to maintain nLockTime semantics // BIP 68 relative lock times have the semantics of calculating // the first block or time at which the transaction would be // valid. When calculating the effective block time or height // for the entire transaction, we switch to using the // semantics of nLockTime which is the last invalid block // time or height. Thus we subtract 1 from the calculated // time or height. // Time-based relative lock-times are measured from the // smallest allowed timestamp of the block containing the // txout being spent, which is the median time past of the // block prior. nMinTime = std::max(nMinTime, nCoinTime + (int64_t)((txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_MASK) << CTxIn::SEQUENCE_LOCKTIME_GRANULARITY) - 1); } else { nMinHeight = std::max(nMinHeight, nCoinHeight + (int)(txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_MASK) - 1); } } return std::make_pair(nMinHeight, nMinTime); } bool EvaluateSequenceLocks(const CBlockIndex& block, std::pair<int, int64_t> lockPair) { assert(block.pprev); int64_t nBlockTime = block.pprev->GetMedianTimePast(); if (lockPair.first >= block.nHeight || lockPair.second >= nBlockTime) return false; return true; } bool SequenceLocks(const CTransaction &tx, int flags, std::vector<int>* prevHeights, const CBlockIndex& block) { return EvaluateSequenceLocks(block, CalculateSequenceLocks(tx, flags, prevHeights, block)); } unsigned int GetLegacySigOpCount(const CTransaction& tx) { unsigned int nSigOps = 0; for (const auto& txin : tx.vin) { nSigOps += txin.scriptSig.GetSigOpCount(false); } for (const auto& txout : tx.vout) { nSigOps += txout.scriptPubKey.GetSigOpCount(false); } return nSigOps; } unsigned int GetP2SHSigOpCount(const CTransaction& tx, const CCoinsViewCache& inputs) { if (tx.IsCoinBase()) return 0; unsigned int nSigOps = 0; for (unsigned int i = 0; i < tx.vin.size(); i++) { const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); assert(!coin.IsSpent()); const CTxOut &prevout = coin.out; if (prevout.scriptPubKey.IsPayToScriptHash()) nSigOps += prevout.scriptPubKey.GetSigOpCount(tx.vin[i].scriptSig); } return nSigOps; } int64_t GetTransactionSigOpCost(const CTransaction& tx, const CCoinsViewCache& inputs, int flags) { int64_t nSigOps = GetLegacySigOpCount(tx) * WITNESS_SCALE_FACTOR; if (tx.IsCoinBase()) return nSigOps; if (flags & SCRIPT_VERIFY_P2SH) { nSigOps += GetP2SHSigOpCount(tx, inputs) * WITNESS_SCALE_FACTOR; } for (unsigned int i = 0; i < tx.vin.size(); i++) { const Coin& coin = inputs.AccessCoin(tx.vin[i].prevout); assert(!coin.IsSpent()); const CTxOut &prevout = coin.out; nSigOps += CountWitnessSigOps(tx.vin[i].scriptSig, prevout.scriptPubKey, &tx.vin[i].scriptWitness, flags); } return nSigOps; } bool Consensus::CheckTxInputs(const CTransaction& tx, CValidationState& state, const CCoinsViewCache& inputs, int nSpendHeight, CAmount& txfee) { // are the actual inputs available? if (!inputs.HaveInputs(tx)) { return state.Invalid(ValidationInvalidReason::TX_MISSING_INPUTS, false, REJECT_INVALID, "bad-txns-inputs-missingorspent", strprintf("%s: inputs missing/spent", __func__)); } CAmount nValueIn = 0; for (unsigned int i = 0; i < tx.vin.size(); ++i) { const COutPoint &prevout = tx.vin[i].prevout; const Coin& coin = inputs.AccessCoin(prevout); assert(!coin.IsSpent()); // If prev is coinbase, check that it's matured if ((coin.IsCoinBase() || coin.IsCoinStake()) && nSpendHeight - coin.nHeight < COINBASE_MATURITY) { return state.Invalid(ValidationInvalidReason::TX_PREMATURE_SPEND, false, REJECT_INVALID, "bad-txns-premature-spend-of-coinbase", strprintf("tried to spend coinbase at depth %d", nSpendHeight - coin.nHeight)); } // Check for negative or overflow input values nValueIn += coin.out.nValue; if (!MoneyRange(coin.out.nValue) || !MoneyRange(nValueIn)) { return state.Invalid(ValidationInvalidReason::CONSENSUS, false, REJECT_INVALID, "bad-txns-inputvalues-outofrange"); } } const CAmount value_out = tx.GetValueOut(); if (!tx.IsCoinStake()) { if (nValueIn < value_out) { return state.Invalid(ValidationInvalidReason::CONSENSUS, false, REJECT_INVALID, "bad-txns-in-belowout", strprintf("value in (%s) < value out (%s)", FormatMoney(nValueIn), FormatMoney(value_out))); } // Tally transaction fees const CAmount txfee_aux = nValueIn - value_out; if (!MoneyRange(txfee_aux)) { return state.Invalid(ValidationInvalidReason::CONSENSUS, false, REJECT_INVALID, "bad-txns-fee-outofrange"); } txfee = txfee_aux; } return true; }
; A134632: 5*n^5 + 3*n^3 - 2*n^2. Coefficients and exponents are the prime numbers in decreasing order. ; 0,6,176,1278,5280,15950,39456,84966,165248,297270,502800,809006,1249056,1862718,2696960,3806550,5254656,7113446,9464688,12400350,16023200,20447406,25799136,32217158,39853440,48873750,59458256,71802126,86116128,102627230,121579200,143233206,167868416,195782598,227292720,262735550,302468256,346869006,396337568,451295910,512188800,579484406,653674896,735277038,824832800,922909950,1030102656,1147032086,1274347008,1412724390,1562870000,1725519006,1901436576,2091418478,2296291680,2516914950,2754179456,3009009366,3282362448,3575230670,3888640800,4223655006,4581371456,4962924918,5369487360,5802268550,6262516656,6751518846,7270601888,7821132750,8404519200,9022210406,9675697536,10366514358,11096237840,11866488750,12678932256,13535278526,14437283328,15386748630,16385523200,17435503206,18538632816,19696904798,20912361120,22187093550,23523244256,24923006406,26388624768,27922396310,29526670800,31203851406,32956395296,34786814238,36697675200,38691600950,40771270656,42939420486,45198844208,47552393790,50002980000,52553573006,55207202976,57966960678,60835998080,63817528950,66914829456,70131238766,73470159648,76935059070,80529468800,84256986006,88121273856,92126062118,96275147760,100572395550,105021738656,109627179246,114392789088,119322710150,124421155200,129692408406,135140825936,140770836558,146586942240,152593718750,158795816256,165197959926,171804950528,178621665030,185653057200,192904158206,200380077216,208086001998,216027199520,224209016550,232636880256,241316298806,250252861968,259452241710,268920192800,278662553406,288685245696,298994276438,309595737600,320495806950,331700748656,343216913886,355050741408,367208758190,379697580000,392523912006,405694549376,419216377878,433096374480,447341607950,461959239456,476956523166,492340806848,508119532470,524300236800,540890552006,557898206256,575331024318,593196928160,611503937550,630260170656,649473844646,669153276288,689306882550,709943181200,731070791406,752698434336,774834933758,797489216640,820670313750,844387360256,868649596326,893466367728,918847126430,944801431200,971338948206,998469451616,1026202824198,1054549057920,1083518254550,1113120626256,1143366496206,1174266299168,1205830582110,1238070004800,1270995340406,1304617476096,1338947413638,1373996270000,1409775277950,1446295786656,1483569262286,1521607288608,1560421567590,1600023920000,1640426286006,1681640725776,1723679420078,1766554670880,1810278901950,1854864659456,1900324612566,1946671554048,1993918400870,2042078194800,2091164103006,2141189418656,2192167561518,2244112078560,2297036644550,2350955062656,2405881265046,2461829313488,2518813399950,2576847847200,2635947109406,2696125772736,2757398555958,2819780311040,2883286023750,2947930814256,3013729937726,3080698784928,3148852882830,3218207895200,3288779623206,3360584006016,3433637121398,3507955186320,3583554557550,3660451732256,3738663348606,3818206186368,3899097167510,3981353356800,4064991962406,4150030336496,4236485975838,4324376522400,4413719763950,4504533634656,4596836215686,4690645735808,4785980571990 mov $2,$0 sub $2,1 mov $3,$0 add $3,1 mov $7,$0 lpb $3,1 add $2,$3 sub $3,$0 add $2,$3 sub $2,3 add $4,$0 lpb $2,1 sub $2,1 add $5,$4 lpe mov $2,$5 lpb $2,1 sub $2,1 add $6,$4 lpe lpe mov $1,$6 mov $8,$7 mov $10,$7 lpb $10,1 add $9,$8 sub $10,1 lpe mov $8,$9 mov $9,0 mov $10,$7 lpb $10,1 add $9,$8 sub $10,1 lpe mov $8,$9 mov $11,1 lpb $11,1 add $1,$8 sub $11,1 lpe mov $9,0 mov $10,$7 lpb $10,1 add $9,$8 sub $10,1 lpe mov $8,$9 mov $9,0 mov $10,$7 lpb $10,1 add $9,$8 sub $10,1 lpe mov $8,$9 mov $11,5 lpb $11,1 add $1,$8 sub $11,1 lpe
/* Copyright Oliver Kowalke 2009. Copyright Thomas Sailer 2013. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ /************************************************************************************* * ---------------------------------------------------------------------------------- * * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | * * ---------------------------------------------------------------------------------- * * | 0x0 | 0x4 | 0x8 | 0xc | 0x10 | 0x14 | 0x18 | 0x1c | * * ---------------------------------------------------------------------------------- * * | SEE registers (XMM6-XMM15) | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | * * ---------------------------------------------------------------------------------- * * | 0x20 | 0x24 | 0x28 | 0x2c | 0x30 | 0x34 | 0x38 | 0x3c | * * ---------------------------------------------------------------------------------- * * | SEE registers (XMM6-XMM15) | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | * * ---------------------------------------------------------------------------------- * * | 0xe40 | 0x44 | 0x48 | 0x4c | 0x50 | 0x54 | 0x58 | 0x5c | * * ---------------------------------------------------------------------------------- * * | SEE registers (XMM6-XMM15) | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | * * ---------------------------------------------------------------------------------- * * | 0x60 | 0x64 | 0x68 | 0x6c | 0x70 | 0x74 | 0x78 | 0x7c | * * ---------------------------------------------------------------------------------- * * | SEE registers (XMM6-XMM15) | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 32 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | * * ---------------------------------------------------------------------------------- * * | 0x80 | 0x84 | 0x88 | 0x8c | 0x90 | 0x94 | 0x98 | 0x9c | * * ---------------------------------------------------------------------------------- * * | SEE registers (XMM6-XMM15) | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | * * ---------------------------------------------------------------------------------- * * | 0xa0 | 0xa4 | 0xa8 | 0xac | 0xb0 | 0xb4 | 0xb8 | 0xbc | * * ---------------------------------------------------------------------------------- * * | fc_mxcsr|fc_x87_cw| <alignment> | fbr_strg | fc_dealloc | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | * * ---------------------------------------------------------------------------------- * * | 0xc0 | 0xc4 | 0xc8 | 0xcc | 0xd0 | 0xd4 | 0xd8 | 0xdc | * * ---------------------------------------------------------------------------------- * * | limit | base | R12 | R13 | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | * * ---------------------------------------------------------------------------------- * * | 0xe0 | 0xe4 | 0xe8 | 0xec | 0xf0 | 0xf4 | 0xf8 | 0xfc | * * ---------------------------------------------------------------------------------- * * | R14 | R15 | RDI | RSI | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | * * ---------------------------------------------------------------------------------- * * | 0x100 | 0x104 | 0x108 | 0x10c | 0x110 | 0x114 | 0x118 | 0x11c | * * ---------------------------------------------------------------------------------- * * | RBX | RBP | hidden | RIP | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | * * ---------------------------------------------------------------------------------- * * | 0x120 | 0x124 | 0x128 | 0x12c | 0x130 | 0x134 | 0x138 | 0x13c | * * ---------------------------------------------------------------------------------- * * | parameter area | * * ---------------------------------------------------------------------------------- * * ---------------------------------------------------------------------------------- * * | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | * * ---------------------------------------------------------------------------------- * * | 0x140 | 0x144 | 0x148 | 0x14c | 0x150 | 0x154 | 0x158 | 0x15c | * * ---------------------------------------------------------------------------------- * * | FCTX | DATA | | * * ---------------------------------------------------------------------------------- * **************************************************************************************/ .file "jump_x86_64_ms_pe_gas.asm" .text .p2align 4,,15 .globl jump_fcontext .def jump_fcontext; .scl 2; .type 32; .endef .seh_proc jump_fcontext jump_fcontext: .seh_endprologue leaq -0x118(%rsp), %rsp /* prepare stack */ #if !defined(BOOST_USE_TSX) /* save XMM storage */ movaps %xmm6, 0x0(%rsp) movaps %xmm7, 0x10(%rsp) movaps %xmm8, 0x20(%rsp) movaps %xmm9, 0x30(%rsp) movaps %xmm10, 0x40(%rsp) movaps %xmm11, 0x50(%rsp) movaps %xmm12, 0x60(%rsp) movaps %xmm13, 0x70(%rsp) movaps %xmm14, 0x80(%rsp) movaps %xmm15, 0x90(%rsp) stmxcsr 0xa0(%rsp) /* save MMX control- and status-word */ fnstcw 0xa4(%rsp) /* save x87 control-word */ #endif /* load NT_TIB */ movq %gs:(0x30), %r10 /* save fiber local storage */ movq 0x20(%r10), %rax movq %rax, 0xb0(%rsp) /* save current deallocation stack */ movq 0x1478(%r10), %rax movq %rax, 0xb8(%rsp) /* save current stack limit */ movq 0x10(%r10), %rax movq %rax, 0xc0(%rsp) /* save current stack base */ movq 0x08(%r10), %rax movq %rax, 0xc8(%rsp) movq %r12, 0xd0(%rsp) /* save R12 */ movq %r13, 0xd8(%rsp) /* save R13 */ movq %r14, 0xe0(%rsp) /* save R14 */ movq %r15, 0xe8(%rsp) /* save R15 */ movq %rdi, 0xf0(%rsp) /* save RDI */ movq %rsi, 0xf8(%rsp) /* save RSI */ movq %rbx, 0x100(%rsp) /* save RBX */ movq %rbp, 0x108(%rsp) /* save RBP */ movq %rcx, 0x110(%rsp) /* save hidden address of transport_t */ /* preserve RSP (pointing to context-data) in R9 */ movq %rsp, %r9 /* restore RSP (pointing to context-data) from RDX */ movq %rdx, %rsp #if !defined(BOOST_USE_TSX) /* restore XMM storage */ movaps 0x0(%rsp), %xmm6 movaps 0x10(%rsp), %xmm7 movaps 0x20(%rsp), %xmm8 movaps 0x30(%rsp), %xmm9 movaps 0x40(%rsp), %xmm10 movaps 0x50(%rsp), %xmm11 movaps 0x60(%rsp), %xmm12 movaps 0x70(%rsp), %xmm13 movaps 0x80(%rsp), %xmm14 movaps 0x90(%rsp), %xmm15 ldmxcsr 0xa0(%rsp) /* restore MMX control- and status-word */ fldcw 0xa4(%rsp) /* restore x87 control-word */ #endif /* load NT_TIB */ movq %gs:(0x30), %r10 /* restore fiber local storage */ movq 0xb0(%rsp), %rax movq %rax, 0x20(%r10) /* restore current deallocation stack */ movq 0xb8(%rsp), %rax movq %rax, 0x1478(%r10) /* restore current stack limit */ movq 0xc0(%rsp), %rax movq %rax, 0x10(%r10) /* restore current stack base */ movq 0xc8(%rsp), %rax movq %rax, 0x08(%r10) movq 0xd0(%rsp), %r12 /* restore R12 */ movq 0xd8(%rsp), %r13 /* restore R13 */ movq 0xe0(%rsp), %r14 /* restore R14 */ movq 0xe8(%rsp), %r15 /* restore R15 */ movq 0xf0(%rsp), %rdi /* restore RDI */ movq 0xf8(%rsp), %rsi /* restore RSI */ movq 0x100(%rsp), %rbx /* restore RBX */ movq 0x108(%rsp), %rbp /* restore RBP */ movq 0x110(%rsp), %rax /* restore hidden address of transport_t */ leaq 0x118(%rsp), %rsp /* prepare stack */ /* restore return-address */ popq %r10 /* transport_t returned in RAX */ /* return parent fcontext_t */ movq %r9, 0x0(%rax) /* return data */ movq %r8, 0x8(%rax) /* transport_t as 1.arg of context-function */ movq %rax, %rcx /* indirect jump to context */ jmp *%r10 .seh_endproc .section .drectve .ascii " -export:\"jump_fcontext\""
/* Copyright 2013-present Barefoot Networks, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include <fstream> #include <iostream> #include "backends/p4test/version.h" #include "control-plane/p4RuntimeSerializer.h" #include "ir/ir.h" #include "ir/json_loader.h" #include "lib/log.h" #include "lib/error.h" #include "lib/exceptions.h" #include "lib/gc.h" #include "lib/crash.h" #include "lib/nullstream.h" #include "frontends/common/applyOptionsPragmas.h" #include "frontends/common/parseInput.h" #include "frontends/p4/evaluator/evaluator.h" #include "frontends/p4/frontend.h" #include "frontends/p4/toP4/toP4.h" #include "midend.h" class P4TestOptions : public CompilerOptions { public: bool parseOnly = false; bool validateOnly = false; bool loadIRFromJson = false; P4TestOptions() { registerOption("--parse-only", nullptr, [this](const char*) { parseOnly = true; return true; }, "only parse the P4 input, without any further processing"); registerOption("--validate", nullptr, [this](const char*) { validateOnly = true; return true; }, "Validate the P4 input, running just the front-end"); registerOption("--fromJSON", "file", [this](const char* arg) { loadIRFromJson = true; file = arg; return true; }, "read previously dumped json instead of P4 source code"); } }; using P4TestContext = P4CContextWithOptions<P4TestOptions>; static void log_dump(const IR::Node *node, const char *head) { if (node && LOGGING(1)) { if (head) std::cout << '+' << std::setw(strlen(head)+6) << std::setfill('-') << "+\n| " << head << " |\n" << '+' << std::setw(strlen(head)+3) << "+" << std::endl << std::setfill(' '); if (LOGGING(2)) dump(node); else std::cout << *node << std::endl; } } int main(int argc, char *const argv[]) { setup_gc_logging(); setup_signals(); AutoCompileContext autoP4TestContext(new P4TestContext); auto& options = P4TestContext::get().options(); options.langVersion = CompilerOptions::FrontendVersion::P4_16; options.compilerVersion = P4TEST_VERSION_STRING; if (options.process(argc, argv) != nullptr) { if (options.loadIRFromJson == false) options.setInputFile(); } if (::errorCount() > 0) return 1; const IR::P4Program *program = nullptr; auto hook = options.getDebugHook(); if (options.loadIRFromJson) { std::ifstream json(options.file); if (json) { JSONLoader loader(json); const IR::Node* node = nullptr; loader >> node; if (!(program = node->to<IR::P4Program>())) error("%s is not a P4Program in json format", options.file); } else { error("Can't open %s", options.file); } } else { program = P4::parseP4File(options); if (program != nullptr && ::errorCount() == 0) { P4::P4COptionPragmaParser optionsPragmaParser; program->apply(P4::ApplyOptionsPragmas(optionsPragmaParser)); if (!options.parseOnly) { try { P4::FrontEnd fe; fe.addDebugHook(hook); program = fe.run(options, program); } catch (const Util::P4CExceptionBase &bug) { std::cerr << bug.what() << std::endl; return 1; } } } } log_dump(program, "Initial program"); if (program != nullptr && ::errorCount() == 0) { P4::serializeP4RuntimeIfRequired(program, options); if (!options.parseOnly && !options.validateOnly) { P4Test::MidEnd midEnd(options); midEnd.addDebugHook(hook); #if 0 /* doing this breaks the output until we get dump/undump of srcInfo */ if (options.debugJson) { std::stringstream tmp; JSONGenerator gen(tmp); gen << program; JSONLoader loader(tmp); loader >> program; } #endif const IR::ToplevelBlock *top = nullptr; try { top = midEnd.process(program); } catch (const Util::P4CExceptionBase &bug) { std::cerr << bug.what() << std::endl; return 1; } log_dump(program, "After midend"); log_dump(top, "Top level block"); } if (options.dumpJsonFile) JSONGenerator(*openFile(options.dumpJsonFile, true), true) << program << std::endl; if (options.debugJson) { std::stringstream ss1, ss2; JSONGenerator gen1(ss1), gen2(ss2); gen1 << program; const IR::Node* node = nullptr; JSONLoader loader(ss1); loader >> node; gen2 << node; if (ss1.str() != ss2.str()) { error("json mismatch"); std::ofstream t1("t1.json"), t2("t2.json"); t1 << ss1.str() << std::flush; t2 << ss2.str() << std::flush; auto rv = system("json_diff t1.json t2.json"); if (rv != 0) ::warning("json_diff failed with code %1%", rv); } } } if (Log::verbose()) std::cerr << "Done." << std::endl; return ::errorCount() > 0; }
bits 64 %include "hldr64.inc" ;----------------------------------------------------------------------------- ;here begins HLDR64 ;----------------------------------------------------------------------------- hldr64_begin: push rbx push rsi push rdi push r12 push r8 push r9 regstksize equ 30h ;----------------------------------------------------------------------------- ;recover kernel32 image base ;----------------------------------------------------------------------------- push tebProcessEnvironmentBlock pop rsi gs lodsq mov rax, qword [rax + pebLdr] mov rsi, qword [rax + InMemoryOrderModuleList] lodsq xchg rax, rsi lodsq mov rbp, qword [rax + mDllBase] call parse_exports dd 0C97C1FFFh ;GetProcAddress dd 03FC1BD8Dh ;LoadLibraryA db 0 ;----------------------------------------------------------------------------- ;parse export table ;----------------------------------------------------------------------------- parse_exports: pop rsi mov eax, dword [rbp + lfanew] mov ebx, dword [rbp + rax + IMAGE_DIRECTORY_ENTRY_EXPORT] add rbx, rbp cdq walk_names: inc edx mov eax, dword [rbx + _IMAGE_EXPORT_DIRECTORY.edAddressOfNames] add rax, rbp mov edi, dword [rax + rdx * 4] add rdi, rbp or eax, -1 crc_outer: xor al, byte [rdi] push 8 pop rcx crc_inner: shr eax, 1 jnc crc_skip xor eax, 0edb88320h crc_skip: loop crc_inner inc rdi cmp byte [rdi], cl jne crc_outer not eax cmp dword [rsi], eax jne walk_names ;----------------------------------------------------------------------------- ;exports must be sorted alphabetically, otherwise GetProcAddress() would fail ;this allows to push addresses onto the stack, and the order is known ;----------------------------------------------------------------------------- mov edi, dword [rbx + _IMAGE_EXPORT_DIRECTORY.edAddressOfNameOrdinals] add rdi, rbp movzx edi, word [rdi + rdx * 2] mov eax, dword [rbx + _IMAGE_EXPORT_DIRECTORY.edAddressOfFunctions] add rax, rbp mov eax, dword [rax + rdi * 4] add rax, rbp push rax lodsd sub cl, byte [rsi] jne walk_names ;----------------------------------------------------------------------------- ;allocate space for mapstk, and make stack frame ;allocate space for shadow stack only once then align stack because at this time ;we don't know if aligned for sure ;----------------------------------------------------------------------------- push rcx push rcx push rsp pop rbx sub rsp, 40h ;only 20h bytes required for shadow stack and rsp, -10h ;align on 16-byte boundary ;----------------------------------------------------------------------------- ;save the pointers to the PE structure ;----------------------------------------------------------------------------- mov rsi, qword [rbx + mapstk_size + krncrcstk_size + regstksize + 8] mov ebp, dword [rsi + lfanew] add rbp, rsi mov rax, rsi mov qword [rbx], rsi mov rdi, rsi ;----------------------------------------------------------------------------- ;import DLL ;----------------------------------------------------------------------------- mov r12, rbp mov cl, IMAGE_DIRECTORY_ENTRY_IMPORT mov ebp, dword [rcx + rbp] test ebp, ebp ;check if PE has import table je import_poprbp ;if import table not found, skip loading add rbp, rax import_dll: mov ecx, dword [rbp + _IMAGE_IMPORT_DESCRIPTOR.idName] jecxz import_poprbp add rcx, qword [rbx] call qword [rbx + mapstk_size + krncrcstk.kLoadLibraryA] mov qword [rbx + mapstk.hModule], rax mov edi, dword [rbp + _IMAGE_IMPORT_DESCRIPTOR.idFirstThunk] mov esi, dword [rbp + _IMAGE_IMPORT_DESCRIPTOR.idOriginalFirstThunk] test esi, esi cmove esi, edi ;if OriginalFirstThunk is NULL, esi = edi = FirstThunk add rdi, qword [rbx] add rsi, qword [rbx] add rbp, _IMAGE_IMPORT_DESCRIPTOR_size import_thunks: lodsq test rax, rax je import_dll btr rax, 63 jc import_mov add rax, qword [rbx] inc rax inc rax import_mov: push rax pop rdx mov rcx, qword [rbx + mapstk.hModule] call qword [rbx + mapstk_size + krncrcstk.kGetProcAddress] stosq jmp import_thunks import_poprbp: mov rbp, r12 ;restore because r12 uses prefix ;----------------------------------------------------------------------------- ;apply relocations ;----------------------------------------------------------------------------- mov edi, dword [rbp + IMAGE_DIRECTORY_ENTRY_RELOCS] add rdi, qword [rbx] reloc_block: push IMAGE_BASE_RELOCATION_size pop rdx reloc_addr: movzx rax, word [rdi + rdx] push rax and ah, 0f0h cmp ah, IMAGE_REL_BASED_DIR64 << 4 pop rax jne reloc_abs ;another type not DIR64 and ah, 0fh add eax, dword [rdi + IMAGE_BASE_RELOCATION.rePageRVA] add rax, qword [rbx] ;new base address mov rsi, qword [rax] sub rsi, qword [rbp + _IMAGE_NT_HEADERS.nthOptionalHeader + _IMAGE_OPTIONAL_HEADER.ohImageBasex] add rsi, qword [rbx] mov qword [rax], rsi xor eax, eax reloc_abs: test eax, eax ;check for IMAGE_REL_BASED_ABSOLUTE jne hldr_exit ;not supported relocation type inc edx inc edx cmp dword [rdi + IMAGE_BASE_RELOCATION.reSizeOfBlock], edx jg reloc_addr add ecx, edx add rdi, rdx cmp dword [rbp + IMAGE_DIRECTORY_ENTRY_RELOCS + 4], ecx jg reloc_block reloc_finished: ;----------------------------------------------------------------------------- ;call entrypoint ;----------------------------------------------------------------------------- mov eax, dword [rbp + _IMAGE_NT_HEADERS.nthOptionalHeader + _IMAGE_OPTIONAL_HEADER.ohAddressOfEntryPoint] add rax, qword [rbx] call rax ;----------------------------------------------------------------------------- ;if fails or returns from host, restore stack and registers and return (somewhere) ;----------------------------------------------------------------------------- hldr_exit: lea rsp, qword [rbx + mapstk_size + krncrcstk_size] pop r9 pop r8 pop r12 pop rdi pop rsi pop rbx ret 8
; A343607: Minimal number of colors required for an edge-coloring of the complete graph K_n with no monochromatic triangle. ; 0,0,1,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 lpb $0 mul $0,2 add $0,9 div $0,7 add $1,2 lpe div $1,2 mov $0,$1
Name: mn_hp_sminit.asm Type: file Size: 81911 Last-Modified: '1993-08-25T07:34:46Z' SHA-1: F71FB10549BFE189125C864447523F04A5334B1C Description: null
; A070356: a(n) = 3^n mod 23. ; 1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1,3,9,4,12,13,16,2 mov $1,1 mov $2,$0 lpb $2,1 mul $1,3 mod $1,23 sub $2,1 lpe
%include "defs.asm" ; ----------------------------- MOTHER64.ASM ----------------------------- ; Author: Agner Fog ; Date created: 1998 ; Last modified: 2013-09-11 ; Source URL: www.agner.org/optimize ; Project: asmlib.zip ; Language: assembly, NASM/YASM syntax, 64 bit ; Description: ; Mother-of-All random number generator by Agner Fog ; 64-bit mode version for x86-64 compatible microprocessors. ; ; This is a multiply-with-carry type of random number generator ; invented by George Marsaglia. The algorithm is: ; S = 2111111111*X[n-4] + 1492*X[n-3] + 1776*X[n-2] + 5115*X[n-1] + C ; X[n] = S modulo 2^32 ; C = floor(S / 2^32) ; ; C++ prototypes: ; extern "C" void MotRandomInit(void * Pthis, int seed); // Initialization ; extern "C" int MotIRandom(void * Pthis, int min, int max); // Get integer random number in desired interval ; extern "C" double MotRandom(void * Pthis); // Get floating point random number ; extern "C" unsigned int MotBRandom(void * Pthis); // Output random bits ; ; Copyright (c) 2008-2013 GNU General Public License www.gnu.org/licenses ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; default rel ; structure definition and constants: %INCLUDE "randomah.asi" ; publics: global MotherBRandom, MotBRandom, ?Windows_MotBRandom global MotherRandom, MotRandom, MotherIRandom, MotIRandom global MotherRandomInit, MotRandomInit section .data align 16 ; Data for single instance of random number generator MotherInstance: ISTRUC CRandomMotherA IEND ; Size of structure MotherSize equ $-MotherInstance SECTION .CODE ALIGN=16 ; code segment ; Single threaded version: ; extern "C" unsigned int MotherBRandom(); // Output random bits MotherBRandom: ; PROC ; entry for both Windows and Linux call lea rcx, [MotherInstance] ; Point to instance jmp ?Windows_MotBRandom ;MotherBRandom ENDP ; Thread-safe version: ; extern "C" unsigned int MotBRandom(void * Pthis); // Output random bits MotBRandom: ; PROC %IFDEF UNIX mov rcx, rdi ; translate calling convention %ENDIF ?Windows_MotBRandom: and rcx, -16 ; align movdqa xmm1, oword [rcx+CRandomMotherA.M3] ; load M3,M2,M1,M0 mov eax, [rcx+CRandomMotherA.M0] ; Retrieve previous random number movdqa xmm2, xmm1 ; copy movdqa xmm3, oword [rcx+CRandomMotherA.MF3] ; factors psrlq xmm2, 32 ; move M2,M0 down movq qword [rcx+CRandomMotherA.M4], xmm1 ; M4=M3, M3=M2 movhps qword [rcx+CRandomMotherA.M2], xmm1 ; M2=M1, M1=M0 pmuludq xmm1, xmm3 ; M3*MF3, M1*MF1 psrlq xmm3, 32 ; move MF2,MF0 down pmuludq xmm2, xmm3 ; M2*MF2, M0*MF0 paddq xmm1, xmm2 ; P2+P3, P0+P1 movhlps xmm2, xmm1 ; Get high qword paddq xmm1, xmm2 ; P0+P1+P2+P3 paddq xmm1, oword [rcx+CRandomMotherA.MC] ; +carry movq qword [rcx+CRandomMotherA.M0], xmm1 ; Store new M0 and carry ; convert to double precision float psllq xmm1, 32 ; Discard carry bits psrlq xmm1, 12 ; Get bits into mantissa position por xmm1, oword [rcx+CRandomMotherA.one] ; Add exponent bits to get number in interval [1,2) movq [rcx+CRandomMotherA.RanP1], xmm1 ; Store floating point number ret ;MotBRandom ENDP ; Single threaded version: ; extern "C" unsigned int MotherRandom(); // Get floating point random number MotherRandom: %IFDEF UNIX lea rdi, [MotherInstance] ; Point to instance %ENDIF %IFDEF WINDOWS lea rcx, [MotherInstance] ; Point to instance %ENDIF ; Thread-safe version: ; extern "C" double MotRandom(void * Pthis); // Get floating point random number MotRandom: %IFDEF UNIX mov rcx, rdi ; translate calling convention %ENDIF and rcx, -16 ; align ; get previously prepared random number movsd xmm0, [rcx+CRandomMotherA.RanP1] subsd xmm0, [rcx+CRandomMotherA.one] ; make new random number ready for next time call ?Windows_MotBRandom ret ;MotherRandom ENDP ; Single threaded version: ; extern "C" unsigned int MotherIRandom(int min, int max); // Get integer random number in desired interval MotherIRandom: ; PROC %IFDEF UNIX mov r8d, esi ; max mov edx, edi ; min lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotIRandom %ENDIF %IFDEF WINDOWS mov r8d, edx ; max mov edx, ecx ; min lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotIRandom %ENDIF ; MotherIRandom ENDP ; Thread-safe version: ; extern "C" int MotIRandom(void * Pthis, int min, int max); // Get integer random number in desired interval MotIRandom: %IFDEF UNIX ; translate calling convention mov r8d, edx ; max mov edx, esi ; min mov rcx, rdi ; Pthis %ENDIF ?Windows_MotIRandom: ; LABEL NEAR ; entry for Windows call and rcx, -16 ; align push r8 push rdx call ?Windows_MotBRandom ; make random number pop rcx ; min pop r8 ; max sub r8d, ecx js short rerror ; max < min inc r8d ; interval = max - min + 1 mul r8d ; multiply random number eax by interval and truncate lea eax, [rdx+rcx] ; add min to interval*BRandom >> 32 ret ; ret 8 if not _cdecl calling rerror: mov eax, 80000000h ; error exit ret ; ret 8 if not _cdecl calling ;MotIRandom ENDP ; Single threaded version: ; extern "C" unsigned int MotherRandomInit(int seed); // Initialization MotherRandomInit: ; PROC %IFDEF UNIX mov edx, edi ; seed lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotRandomInit %ENDIF %IFDEF WINDOWS mov edx, ecx ; seed lea rcx, [MotherInstance] ; Pthis = point to instance jmp ?Windows_MotRandomInit %ENDIF ;MotherRandomInit ENDP ; Thread-safe version: ; extern "C" void MotRandomInit(void * Pthis, int seed); // Initialization MotRandomInit: ; PROC %IFDEF UNIX ; translate calling convention mov edx, esi ; seed mov rcx, rdi ; Pthis %ENDIF ?Windows_MotRandomInit: ; LABEL NEAR ; entry for Windows call and rcx, -16 ; align ; clear my buffer push rdi push rcx mov rdi, rcx ; Pthis add rdi, 16 mov ecx, (MotherSize - 16) / 4 xor eax, eax cld rep stosd pop rcx ; insert constants mov dword [rcx+CRandomMotherA.one+4], 3FF00000H ; high dword of 1.0 mov dword [rcx+CRandomMotherA.MF0], 5115 ; factors mov dword [rcx+CRandomMotherA.MF1], 1776 mov dword [rcx+CRandomMotherA.MF2], 1492 mov dword [rcx+CRandomMotherA.MF3], 2111111111 ; initialize from seed mov eax, edx ; seed ; make random numbers and put them into buffer mov edx, 29943829 imul eax, edx dec eax mov [rcx+CRandomMotherA.M0], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.M1], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.M2], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.M3], eax imul eax, edx dec eax mov [rcx+CRandomMotherA.MC], eax ; randomize some more mov edi, 20 ; loop counter r90: call ?Windows_MotBRandom ; (rcx and rdi unchanged) dec edi jnz r90 pop rdi ret ;MotRandomInit ENDP ; END
; A040475: Continued fraction for sqrt(498). ; 22,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6,22,6,3,44,3,6 seq $0,10144 ; Continued fraction for sqrt(59). seq $0,198265 ; Ceiling(n*sqrt(10)). sub $0,1
; A093968: Inverse binomial transform of n*Pell(n). ; 0,1,2,6,8,20,24,56,64,144,160,352,384,832,896,1920,2048,4352,4608,9728,10240,21504,22528,47104,49152,102400,106496,221184,229376,475136,491520,1015808,1048576,2162688,2228224,4587520,4718592,9699328,9961472 mov $1,$0 sub $1,2 lpb $1 mul $0,2 trn $1,2 lpe
#include "atk/pose.h" using namespace glm; namespace atk { Pose::Pose() {} Pose::~Pose() {} Pose::Pose(const glm::vec3& p) : rootPos(p) { } Pose::Pose(const glm::quat& q) { jointRots.push_back(q); } Pose::Pose(const glm::vec3& pos, const glm::quat& rot) : rootPos(pos) { jointRots.push_back(rot); } Pose::Pose(const Pose& p) { assert(jointRots.size() == 0); rootPos = p.rootPos; for (unsigned int i = 0; i < p.jointRots.size(); i++) { jointRots.push_back(p.jointRots[i]); } } Pose& Pose::operator = (const Pose& p) { if (this == &p) { return *this; } jointRots.clear(); rootPos = p.rootPos; for (unsigned int i = 0; i < p.jointRots.size(); i++) { jointRots.push_back(p.jointRots[i]); } return *this; } /* std::istream& operator>>(std::istream& s, Pose& v) { s >> v.rootPos; v.jointRots.clear(); for (unsigned int i = 0; i < v.jointRots.size(); i++) { glm::quat q; s >> q; v.jointRots.push_back(q); } return s; } std::ostream& operator<<(std::ostream& s, const Pose& v) { s << "pose(" << std::endl; s << v.rootPos << std::endl; for (unsigned int i = 0; i < v.jointRots.size(); i++) { s << glm::to_string(v.jointRots[i]) << std::endl; } s << ")\n"; return s; } */ Pose Pose::Lerp(const Pose& key1, const Pose& key2, float u) { Pose pose; pose.rootPos = key1.rootPos * (1.0f-u) + key2.rootPos * u; for (int i = 0; i < (int) key1.jointRots.size(); i++) { glm::quat q1 = key1.jointRots[i]; glm::quat q2 = key2.jointRots[i]; glm::quat q = glm::slerp(q1, q2, u); pose.jointRots.push_back(q); } return pose; } quat qExp(const quat& q) { // q = A*(x*i+y*j+z*k) where (x,y,z) is unit length // exp(q) = cos(A)+sin(A)*(x*i+y*j+z*k) double angle = sqrt(q.x * q.x + q.y * q.y + q.z * q.z); double sn, cs; sn = sin(angle); cs = cos(angle); // When A is near zero, sin(A)/A is approximately 1. Use // exp(q) = cos(A)+A*(x*i+y*j+z*k) double coeff = ( abs(sn) < 0.000001 ? 1.0f : sn/angle ); quat result(cs, coeff * q.x, coeff * q.y, coeff * q.z); return result; } quat qLog(const quat& q) { // q = cos(A)+sin(A)*(x*i+y*j+z*k) where (x,y,z) may not be unit length // log(q) = A*(x*i+y*j+z*k) double angle = sqrt(q.x * q.x + q.y * q.y + q.z * q.z); double sn = sin(angle); // When A is near zero, A/sin(A) is approximately 1. Use // log(q) = sin(A)*(x*i+y*j+z*k) double coeff = ( abs(sn) < 0.0000001 ? 1.0f : angle/sn ); return quat(log(length(q)), coeff * q.x, coeff * q.y, coeff * q.z); } quat intermediate(const quat& q0, const quat& q1, const quat& q2) { quat term1 = q2 * glm::inverse(q1); quat term2 = q0 * glm::inverse(q1); quat term3 = term1 + term2; quat numerator = -0.25f * qLog(term3); quat term4 = qExp(numerator); quat s1 = term4 * q1; return s1; } // TODO Pose Pose::Squad(const Pose& key0, const Pose& key1, const Pose& key2, const Pose& key3, float u) { Pose pose; pose.rootPos = key1.rootPos * (1.0f-u) + key2.rootPos * u; for (int i = 0; i < (int) key1.jointRots.size(); i++) { glm::quat q0 = key0.jointRots[i]; glm::quat q1 = key1.jointRots[i]; glm::quat q2 = key2.jointRots[i]; glm::quat q3 = key3.jointRots[i]; glm::quat s1 = intermediate(q0, q1, q2); glm::quat s2 = intermediate(q1, q2, q3); glm::quat q = glm::squad(q1, q2, s1, s2, u); pose.jointRots.push_back(q); } return pose; } }
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include <popart/logging.hpp> #include <popart/names.hpp> #include <popart/opmanager.hpp> #include <popart/region.hpp> #include <popart/op.hpp> #include <popart/op/gather.hpp> #include <popart/popx/opx.hpp> #include <popart/popx/op/gatherx.hpp> #include <popart/popx/opxmanager.hpp> #include <popart/popx/devicex.hpp> #include <popart/util.hpp> #include <popops/DynamicSlice.hpp> #include <popops/ElementWise.hpp> #include <popops/Gather.hpp> #include <popops/Cast.hpp> namespace CustomOperators { const popart::OperatorIdentifier EmbeddingGather = {"ai.graphcore", "EmbeddingGather", 1}; } // namespace CustomOperators class EmbeddingGatherOp : public popart::GatherOp { public: EmbeddingGatherOp(int64_t axis_, const popart::Op::Settings &settings_) : popart::GatherOp(CustomOperators::EmbeddingGather, axis_, settings_) {} std::unique_ptr<Op> clone() const override { return std::make_unique<EmbeddingGatherOp>(*this); } bool check_indices = true; }; class EmbeddingGatherOpx : public popart::popx::Opx { public: EmbeddingGatherOpx(popart::Op *op, popart::popx::Devicex *devicex) : popart::popx::Opx(op, devicex) { verifyOp<EmbeddingGatherOp>(op, CustomOperators::EmbeddingGather); // We always want this to layout its inputs inputCreatorPriority = std::numeric_limits<double>::max(); } bool createsEquiv(int, const popart::popx::Opx *, int) const { return false; } std::vector<popart::TensorId> mustExistBeforeCreate(int) const { return {}; } popart::popx::InputCreatorType getInputCreatorType(int index0) const { return index0 == EmbeddingGatherOp::dataInIndex() ? popart::popx::InputCreatorType::CanCreate : popart::popx::Opx::getInputCreatorType(index0); } poplar::Tensor createInput(int index, const std::string &name) const { popart::logging::debug("EmbeddingGather asked to create index {}: name {}", index, name); if (index != EmbeddingGatherOp::dataInIndex()) { throw popart::error("CustomOps Error: GatherOpx::createInput Cannot create input {}", index); } auto inputInfo = inInfo(EmbeddingGatherOp::indicesInIndex()); auto weightInfo = inInfo(EmbeddingGatherOp::dataInIndex()); unsigned inputSize = inputInfo.nelms(); unsigned inChannels = weightInfo.dim(0); unsigned outChannels = weightInfo.nelms() / inChannels; std::vector<std::size_t> lhsShape = {inputSize, inChannels}; std::vector<std::size_t> rhsShape = {inChannels, outChannels}; return poplin::createMatMulInputRHS(graph(), popart::popx::popType(weightInfo), lhsShape, rhsShape, name + "/weights/split/0", {}, &dv_p->matmulCache); } // Identical to popart::opx::GatherOpx::grow however: // 1) uses popops::gather instead of popops::multislice // 2) range checks the indices and masks those out of range void grow(poplar::program::Sequence &prog) const final { const auto indicesShape = inShape(EmbeddingGatherOp::indicesInIndex()); const auto outputShape = popart::vXtoY<int64_t, std::size_t>(outShape(EmbeddingGatherOp::outIndex())); auto op = getOp<EmbeddingGatherOp>(); unsigned axis = op.getAxis(); auto indices = getInTensor(EmbeddingGatherOp::indicesInIndex()); auto data = getInTensor(EmbeddingGatherOp::dataInIndex()); // If there are no indices, return an empty tensor of the appropriate // shape if (indices.numElements() == 0) { auto result = graph().addVariable( data.elementType(), outputShape, debugPrefix("result")); setOutTensor(EmbeddingGatherOp::outIndex(), result); } else { // Flatten the scalar indices. auto offsets = indices.flatten(); // reinterpret the indices as unsigned int. This assumes negative indices. // are impossible. offsets = offsets.reinterpret(poplar::UNSIGNED_INT); // Place the gather axis at the front. data = data.dimShufflePartial({0}, {axis}); // Store the shape for later. auto tmp_shape = data.shape(); // Flatten the other dimensions. data = data.flatten(1, data.rank()); // Change (2) poplar::Tensor mask; if (op.check_indices) { auto gather_size = data.shape()[0]; mask = popops::lt(graph(), offsets, static_cast<unsigned>(gather_size), prog, debugPrefix("mask<size")); auto indices_mask = popops::cast(graph(), mask, offsets.elementType(), prog, debugPrefix("mask_castInt")); offsets = popops::mul(graph(), offsets, indices_mask, prog, debugPrefix("masked_indices")); } // Change (1) auto result = popops::gather(graph(), data, offsets, 0, prog, popops::GatherParams(), debugPrefix()); // // Change (2) if (op.check_indices) { auto out_mask = popops::cast(graph(), mask, data.elementType(), prog, debugPrefix("mask_cast")); popops::mulInPlace(graph(), result, out_mask.expand({1}), prog, debugPrefix("masked_result")); } // Reshape the result to "unflatten" the other dimensions. tmp_shape.front() = result.dim(0); result = result.reshape(tmp_shape); // Put the gather axis dimension back in the right place. result = result.dimShufflePartial({axis}, {0}); // Reshape into the expected ONNX shape. result = result.reshape(outputShape); setOutTensor(EmbeddingGatherOp::outIndex(), result); } } }; static popart::popx::OpxCreator<EmbeddingGatherOpx> EmbeddingGatherOpxCreator(CustomOperators::EmbeddingGather); static popart::OpDefinition EmbeddingGatherOpDef({}); static popart::OpCreator<EmbeddingGatherOp> EmbeddingGatherOpCreator( popart::OpDefinitions({{CustomOperators::EmbeddingGather, EmbeddingGatherOpDef}}), [](const popart::OperatorIdentifier &_opid, const popart::Op::Settings &settings, const popart::Attributes &attr) -> std::unique_ptr<popart::Op> { int64_t axis = attr.getAttribute<popart::Attributes::Int>("axis", 0); return std::unique_ptr<EmbeddingGatherOp>(new EmbeddingGatherOp(axis, settings)); }, true);
_stressfs: file format elf32-i386 Disassembly of section .text: 00001000 <main>: #include "fs.h" #include "fcntl.h" int main(int argc, char *argv[]) { 1000: f3 0f 1e fb endbr32 1004: 8d 4c 24 04 lea 0x4(%esp),%ecx 1008: 83 e4 f0 and $0xfffffff0,%esp int fd, i; char path[] = "stressfs0"; 100b: b8 30 00 00 00 mov $0x30,%eax { 1010: ff 71 fc pushl -0x4(%ecx) 1013: 55 push %ebp 1014: 89 e5 mov %esp,%ebp 1016: 57 push %edi 1017: 56 push %esi char data[512]; printf(1, "stressfs starting\n"); memset(data, 'a', sizeof(data)); 1018: 8d b5 e8 fd ff ff lea -0x218(%ebp),%esi { 101e: 53 push %ebx for(i = 0; i < 4; i++) 101f: 31 db xor %ebx,%ebx { 1021: 51 push %ecx 1022: 81 ec 20 02 00 00 sub $0x220,%esp char path[] = "stressfs0"; 1028: 66 89 85 e6 fd ff ff mov %ax,-0x21a(%ebp) printf(1, "stressfs starting\n"); 102f: 68 48 19 00 00 push $0x1948 1034: 6a 01 push $0x1 char path[] = "stressfs0"; 1036: c7 85 de fd ff ff 73 movl $0x65727473,-0x222(%ebp) 103d: 74 72 65 1040: c7 85 e2 fd ff ff 73 movl $0x73667373,-0x21e(%ebp) 1047: 73 66 73 printf(1, "stressfs starting\n"); 104a: e8 31 07 00 00 call 1780 <printf> memset(data, 'a', sizeof(data)); 104f: 83 c4 0c add $0xc,%esp 1052: 68 00 02 00 00 push $0x200 1057: 6a 61 push $0x61 1059: 56 push %esi 105a: e8 a1 01 00 00 call 1200 <memset> 105f: 83 c4 10 add $0x10,%esp if(fork() > 0) 1062: e8 7e 05 00 00 call 15e5 <fork> 1067: 85 c0 test %eax,%eax 1069: 0f 8f bb 00 00 00 jg 112a <main+0x12a> for(i = 0; i < 4; i++) 106f: 83 c3 01 add $0x1,%ebx 1072: 83 fb 04 cmp $0x4,%ebx 1075: 75 eb jne 1062 <main+0x62> 1077: bf 04 00 00 00 mov $0x4,%edi break; printf(1, "write %d\n", i); 107c: 83 ec 04 sub $0x4,%esp 107f: 53 push %ebx path[8] += i; fd = open(path, O_CREATE | O_RDWR); 1080: bb 14 00 00 00 mov $0x14,%ebx printf(1, "write %d\n", i); 1085: 68 5b 19 00 00 push $0x195b 108a: 6a 01 push $0x1 108c: e8 ef 06 00 00 call 1780 <printf> path[8] += i; 1091: 89 f8 mov %edi,%eax fd = open(path, O_CREATE | O_RDWR); 1093: 5f pop %edi path[8] += i; 1094: 00 85 e6 fd ff ff add %al,-0x21a(%ebp) fd = open(path, O_CREATE | O_RDWR); 109a: 58 pop %eax 109b: 8d 85 de fd ff ff lea -0x222(%ebp),%eax 10a1: 68 02 02 00 00 push $0x202 10a6: 50 push %eax 10a7: e8 81 05 00 00 call 162d <open> 10ac: 83 c4 10 add $0x10,%esp 10af: 89 c7 mov %eax,%edi for(i = 0; i < 20; i++) 10b1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi // printf(fd, "%d\n", i); write(fd, data, sizeof(data)); 10b8: 83 ec 04 sub $0x4,%esp 10bb: 68 00 02 00 00 push $0x200 10c0: 56 push %esi 10c1: 57 push %edi 10c2: e8 46 05 00 00 call 160d <write> for(i = 0; i < 20; i++) 10c7: 83 c4 10 add $0x10,%esp 10ca: 83 eb 01 sub $0x1,%ebx 10cd: 75 e9 jne 10b8 <main+0xb8> close(fd); 10cf: 83 ec 0c sub $0xc,%esp 10d2: 57 push %edi 10d3: e8 3d 05 00 00 call 1615 <close> printf(1, "read\n"); 10d8: 58 pop %eax 10d9: 5a pop %edx 10da: 68 65 19 00 00 push $0x1965 10df: 6a 01 push $0x1 10e1: e8 9a 06 00 00 call 1780 <printf> fd = open(path, O_RDONLY); 10e6: 8d 85 de fd ff ff lea -0x222(%ebp),%eax 10ec: 59 pop %ecx 10ed: 5b pop %ebx 10ee: 6a 00 push $0x0 10f0: bb 14 00 00 00 mov $0x14,%ebx 10f5: 50 push %eax 10f6: e8 32 05 00 00 call 162d <open> 10fb: 83 c4 10 add $0x10,%esp 10fe: 89 c7 mov %eax,%edi for (i = 0; i < 20; i++) read(fd, data, sizeof(data)); 1100: 83 ec 04 sub $0x4,%esp 1103: 68 00 02 00 00 push $0x200 1108: 56 push %esi 1109: 57 push %edi 110a: e8 f6 04 00 00 call 1605 <read> for (i = 0; i < 20; i++) 110f: 83 c4 10 add $0x10,%esp 1112: 83 eb 01 sub $0x1,%ebx 1115: 75 e9 jne 1100 <main+0x100> close(fd); 1117: 83 ec 0c sub $0xc,%esp 111a: 57 push %edi 111b: e8 f5 04 00 00 call 1615 <close> wait(); 1120: e8 d0 04 00 00 call 15f5 <wait> exit(); 1125: e8 c3 04 00 00 call 15ed <exit> 112a: 89 df mov %ebx,%edi 112c: e9 4b ff ff ff jmp 107c <main+0x7c> 1131: 66 90 xchg %ax,%ax 1133: 66 90 xchg %ax,%ax 1135: 66 90 xchg %ax,%ax 1137: 66 90 xchg %ax,%ax 1139: 66 90 xchg %ax,%ax 113b: 66 90 xchg %ax,%ax 113d: 66 90 xchg %ax,%ax 113f: 90 nop 00001140 <strcpy>: }; char* strcpy(char *s, const char *t) { 1140: f3 0f 1e fb endbr32 1144: 55 push %ebp char *os; os = s; while((*s++ = *t++) != 0) 1145: 31 c0 xor %eax,%eax { 1147: 89 e5 mov %esp,%ebp 1149: 53 push %ebx 114a: 8b 4d 08 mov 0x8(%ebp),%ecx 114d: 8b 5d 0c mov 0xc(%ebp),%ebx while((*s++ = *t++) != 0) 1150: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 1154: 88 14 01 mov %dl,(%ecx,%eax,1) 1157: 83 c0 01 add $0x1,%eax 115a: 84 d2 test %dl,%dl 115c: 75 f2 jne 1150 <strcpy+0x10> ; return os; } 115e: 89 c8 mov %ecx,%eax 1160: 5b pop %ebx 1161: 5d pop %ebp 1162: c3 ret 1163: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 116a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00001170 <strcmp>: int strcmp(const char *p, const char *q) { 1170: f3 0f 1e fb endbr32 1174: 55 push %ebp 1175: 89 e5 mov %esp,%ebp 1177: 53 push %ebx 1178: 8b 4d 08 mov 0x8(%ebp),%ecx 117b: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 117e: 0f b6 01 movzbl (%ecx),%eax 1181: 0f b6 1a movzbl (%edx),%ebx 1184: 84 c0 test %al,%al 1186: 75 19 jne 11a1 <strcmp+0x31> 1188: eb 26 jmp 11b0 <strcmp+0x40> 118a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 1190: 0f b6 41 01 movzbl 0x1(%ecx),%eax p++, q++; 1194: 83 c1 01 add $0x1,%ecx 1197: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 119a: 0f b6 1a movzbl (%edx),%ebx 119d: 84 c0 test %al,%al 119f: 74 0f je 11b0 <strcmp+0x40> 11a1: 38 d8 cmp %bl,%al 11a3: 74 eb je 1190 <strcmp+0x20> return (uchar)*p - (uchar)*q; 11a5: 29 d8 sub %ebx,%eax } 11a7: 5b pop %ebx 11a8: 5d pop %ebp 11a9: c3 ret 11aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 11b0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; 11b2: 29 d8 sub %ebx,%eax } 11b4: 5b pop %ebx 11b5: 5d pop %ebp 11b6: c3 ret 11b7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 11be: 66 90 xchg %ax,%ax 000011c0 <strlen>: uint strlen(const char *s) { 11c0: f3 0f 1e fb endbr32 11c4: 55 push %ebp 11c5: 89 e5 mov %esp,%ebp 11c7: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) 11ca: 80 3a 00 cmpb $0x0,(%edx) 11cd: 74 21 je 11f0 <strlen+0x30> 11cf: 31 c0 xor %eax,%eax 11d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 11d8: 83 c0 01 add $0x1,%eax 11db: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 11df: 89 c1 mov %eax,%ecx 11e1: 75 f5 jne 11d8 <strlen+0x18> ; return n; } 11e3: 89 c8 mov %ecx,%eax 11e5: 5d pop %ebp 11e6: c3 ret 11e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 11ee: 66 90 xchg %ax,%ax for(n = 0; s[n]; n++) 11f0: 31 c9 xor %ecx,%ecx } 11f2: 5d pop %ebp 11f3: 89 c8 mov %ecx,%eax 11f5: c3 ret 11f6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 11fd: 8d 76 00 lea 0x0(%esi),%esi 00001200 <memset>: void* memset(void *dst, int c, uint n) { 1200: f3 0f 1e fb endbr32 1204: 55 push %ebp 1205: 89 e5 mov %esp,%ebp 1207: 57 push %edi 1208: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 120b: 8b 4d 10 mov 0x10(%ebp),%ecx 120e: 8b 45 0c mov 0xc(%ebp),%eax 1211: 89 d7 mov %edx,%edi 1213: fc cld 1214: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1216: 89 d0 mov %edx,%eax 1218: 5f pop %edi 1219: 5d pop %ebp 121a: c3 ret 121b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 121f: 90 nop 00001220 <strchr>: char* strchr(const char *s, char c) { 1220: f3 0f 1e fb endbr32 1224: 55 push %ebp 1225: 89 e5 mov %esp,%ebp 1227: 8b 45 08 mov 0x8(%ebp),%eax 122a: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 122e: 0f b6 10 movzbl (%eax),%edx 1231: 84 d2 test %dl,%dl 1233: 75 16 jne 124b <strchr+0x2b> 1235: eb 21 jmp 1258 <strchr+0x38> 1237: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 123e: 66 90 xchg %ax,%ax 1240: 0f b6 50 01 movzbl 0x1(%eax),%edx 1244: 83 c0 01 add $0x1,%eax 1247: 84 d2 test %dl,%dl 1249: 74 0d je 1258 <strchr+0x38> if(*s == c) 124b: 38 d1 cmp %dl,%cl 124d: 75 f1 jne 1240 <strchr+0x20> return (char*)s; return 0; } 124f: 5d pop %ebp 1250: c3 ret 1251: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 1258: 31 c0 xor %eax,%eax } 125a: 5d pop %ebp 125b: c3 ret 125c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00001260 <gets>: char* gets(char *buf, int max) { 1260: f3 0f 1e fb endbr32 1264: 55 push %ebp 1265: 89 e5 mov %esp,%ebp 1267: 57 push %edi 1268: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 1269: 31 f6 xor %esi,%esi { 126b: 53 push %ebx 126c: 89 f3 mov %esi,%ebx 126e: 83 ec 1c sub $0x1c,%esp 1271: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 1274: eb 33 jmp 12a9 <gets+0x49> 1276: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 127d: 8d 76 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 1280: 83 ec 04 sub $0x4,%esp 1283: 8d 45 e7 lea -0x19(%ebp),%eax 1286: 6a 01 push $0x1 1288: 50 push %eax 1289: 6a 00 push $0x0 128b: e8 75 03 00 00 call 1605 <read> if(cc < 1) 1290: 83 c4 10 add $0x10,%esp 1293: 85 c0 test %eax,%eax 1295: 7e 1c jle 12b3 <gets+0x53> break; buf[i++] = c; 1297: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 129b: 83 c7 01 add $0x1,%edi 129e: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 12a1: 3c 0a cmp $0xa,%al 12a3: 74 23 je 12c8 <gets+0x68> 12a5: 3c 0d cmp $0xd,%al 12a7: 74 1f je 12c8 <gets+0x68> for(i=0; i+1 < max; ){ 12a9: 83 c3 01 add $0x1,%ebx 12ac: 89 fe mov %edi,%esi 12ae: 3b 5d 0c cmp 0xc(%ebp),%ebx 12b1: 7c cd jl 1280 <gets+0x20> 12b3: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 12b5: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 12b8: c6 03 00 movb $0x0,(%ebx) } 12bb: 8d 65 f4 lea -0xc(%ebp),%esp 12be: 5b pop %ebx 12bf: 5e pop %esi 12c0: 5f pop %edi 12c1: 5d pop %ebp 12c2: c3 ret 12c3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 12c7: 90 nop 12c8: 8b 75 08 mov 0x8(%ebp),%esi 12cb: 8b 45 08 mov 0x8(%ebp),%eax 12ce: 01 de add %ebx,%esi 12d0: 89 f3 mov %esi,%ebx buf[i] = '\0'; 12d2: c6 03 00 movb $0x0,(%ebx) } 12d5: 8d 65 f4 lea -0xc(%ebp),%esp 12d8: 5b pop %ebx 12d9: 5e pop %esi 12da: 5f pop %edi 12db: 5d pop %ebp 12dc: c3 ret 12dd: 8d 76 00 lea 0x0(%esi),%esi 000012e0 <stat>: int stat(const char *n, struct stat *st) { 12e0: f3 0f 1e fb endbr32 12e4: 55 push %ebp 12e5: 89 e5 mov %esp,%ebp 12e7: 56 push %esi 12e8: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 12e9: 83 ec 08 sub $0x8,%esp 12ec: 6a 00 push $0x0 12ee: ff 75 08 pushl 0x8(%ebp) 12f1: e8 37 03 00 00 call 162d <open> if(fd < 0) 12f6: 83 c4 10 add $0x10,%esp 12f9: 85 c0 test %eax,%eax 12fb: 78 2b js 1328 <stat+0x48> return -1; r = fstat(fd, st); 12fd: 83 ec 08 sub $0x8,%esp 1300: ff 75 0c pushl 0xc(%ebp) 1303: 89 c3 mov %eax,%ebx 1305: 50 push %eax 1306: e8 3a 03 00 00 call 1645 <fstat> close(fd); 130b: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 130e: 89 c6 mov %eax,%esi close(fd); 1310: e8 00 03 00 00 call 1615 <close> return r; 1315: 83 c4 10 add $0x10,%esp } 1318: 8d 65 f8 lea -0x8(%ebp),%esp 131b: 89 f0 mov %esi,%eax 131d: 5b pop %ebx 131e: 5e pop %esi 131f: 5d pop %ebp 1320: c3 ret 1321: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 1328: be ff ff ff ff mov $0xffffffff,%esi 132d: eb e9 jmp 1318 <stat+0x38> 132f: 90 nop 00001330 <atoi>: int atoi(const char *s) { 1330: f3 0f 1e fb endbr32 1334: 55 push %ebp 1335: 89 e5 mov %esp,%ebp 1337: 53 push %ebx 1338: 8b 55 08 mov 0x8(%ebp),%edx int n; n = 0; while('0' <= *s && *s <= '9') 133b: 0f be 02 movsbl (%edx),%eax 133e: 8d 48 d0 lea -0x30(%eax),%ecx 1341: 80 f9 09 cmp $0x9,%cl n = 0; 1344: b9 00 00 00 00 mov $0x0,%ecx while('0' <= *s && *s <= '9') 1349: 77 1a ja 1365 <atoi+0x35> 134b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 134f: 90 nop n = n*10 + *s++ - '0'; 1350: 83 c2 01 add $0x1,%edx 1353: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 1356: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx while('0' <= *s && *s <= '9') 135a: 0f be 02 movsbl (%edx),%eax 135d: 8d 58 d0 lea -0x30(%eax),%ebx 1360: 80 fb 09 cmp $0x9,%bl 1363: 76 eb jbe 1350 <atoi+0x20> return n; } 1365: 89 c8 mov %ecx,%eax 1367: 5b pop %ebx 1368: 5d pop %ebp 1369: c3 ret 136a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00001370 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 1370: f3 0f 1e fb endbr32 1374: 55 push %ebp 1375: 89 e5 mov %esp,%ebp 1377: 57 push %edi 1378: 8b 45 10 mov 0x10(%ebp),%eax 137b: 8b 55 08 mov 0x8(%ebp),%edx 137e: 56 push %esi 137f: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 1382: 85 c0 test %eax,%eax 1384: 7e 0f jle 1395 <memmove+0x25> 1386: 01 d0 add %edx,%eax dst = vdst; 1388: 89 d7 mov %edx,%edi 138a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *dst++ = *src++; 1390: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 1391: 39 f8 cmp %edi,%eax 1393: 75 fb jne 1390 <memmove+0x20> return vdst; } 1395: 5e pop %esi 1396: 89 d0 mov %edx,%eax 1398: 5f pop %edi 1399: 5d pop %ebp 139a: c3 ret 139b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 139f: 90 nop 000013a0 <thread_join>: void* stack; stack =malloc(4096); //pgsize return clone(start_routine,arg1,arg2,stack); } int thread_join() { 13a0: f3 0f 1e fb endbr32 13a4: 55 push %ebp 13a5: 89 e5 mov %esp,%ebp 13a7: 83 ec 24 sub $0x24,%esp void * stackPtr; int x = join(&stackPtr); 13aa: 8d 45 f4 lea -0xc(%ebp),%eax 13ad: 50 push %eax 13ae: e8 0a 03 00 00 call 16bd <join> return x; } 13b3: c9 leave 13b4: c3 ret 13b5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000013c0 <lock_init>: void lock_init(struct lock_t *lk){ 13c0: f3 0f 1e fb endbr32 13c4: 55 push %ebp 13c5: 89 e5 mov %esp,%ebp lk->locked=0; //intialize as unnlocked 13c7: 8b 45 08 mov 0x8(%ebp),%eax 13ca: c7 00 00 00 00 00 movl $0x0,(%eax) } 13d0: 5d pop %ebp 13d1: c3 ret 13d2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 13d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000013e0 <lock_acquire>: void lock_acquire(struct lock_t *lk){ 13e0: f3 0f 1e fb endbr32 13e4: 55 push %ebp xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 13e5: b9 01 00 00 00 mov $0x1,%ecx 13ea: 89 e5 mov %esp,%ebp 13ec: 8b 55 08 mov 0x8(%ebp),%edx 13ef: 90 nop 13f0: 89 c8 mov %ecx,%eax 13f2: f0 87 02 lock xchg %eax,(%edx) while(xchg(&lk->locked,1) != 0); 13f5: 85 c0 test %eax,%eax 13f7: 75 f7 jne 13f0 <lock_acquire+0x10> } 13f9: 5d pop %ebp 13fa: c3 ret 13fb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 13ff: 90 nop 00001400 <lock_release>: void lock_release(struct lock_t *lk){ 1400: f3 0f 1e fb endbr32 1404: 55 push %ebp 1405: 31 c0 xor %eax,%eax 1407: 89 e5 mov %esp,%ebp 1409: 8b 55 08 mov 0x8(%ebp),%edx 140c: f0 87 02 lock xchg %eax,(%edx) xchg(&lk->locked,0) ; } 140f: 5d pop %ebp 1410: c3 ret 1411: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1418: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 141f: 90 nop 00001420 <free>: static Header base; static Header *freep; void free(void *ap) { 1420: f3 0f 1e fb endbr32 1424: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1425: a1 cc 1c 00 00 mov 0x1ccc,%eax { 142a: 89 e5 mov %esp,%ebp 142c: 57 push %edi 142d: 56 push %esi 142e: 53 push %ebx 142f: 8b 5d 08 mov 0x8(%ebp),%ebx 1432: 8b 10 mov (%eax),%edx bp = (Header*)ap - 1; 1434: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 1437: 39 c8 cmp %ecx,%eax 1439: 73 15 jae 1450 <free+0x30> 143b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 143f: 90 nop 1440: 39 d1 cmp %edx,%ecx 1442: 72 14 jb 1458 <free+0x38> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1444: 39 d0 cmp %edx,%eax 1446: 73 10 jae 1458 <free+0x38> { 1448: 89 d0 mov %edx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 144a: 8b 10 mov (%eax),%edx 144c: 39 c8 cmp %ecx,%eax 144e: 72 f0 jb 1440 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 1450: 39 d0 cmp %edx,%eax 1452: 72 f4 jb 1448 <free+0x28> 1454: 39 d1 cmp %edx,%ecx 1456: 73 f0 jae 1448 <free+0x28> break; if(bp + bp->s.size == p->s.ptr){ 1458: 8b 73 fc mov -0x4(%ebx),%esi 145b: 8d 3c f1 lea (%ecx,%esi,8),%edi 145e: 39 fa cmp %edi,%edx 1460: 74 1e je 1480 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 1462: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 1465: 8b 50 04 mov 0x4(%eax),%edx 1468: 8d 34 d0 lea (%eax,%edx,8),%esi 146b: 39 f1 cmp %esi,%ecx 146d: 74 28 je 1497 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 146f: 89 08 mov %ecx,(%eax) freep = p; } 1471: 5b pop %ebx freep = p; 1472: a3 cc 1c 00 00 mov %eax,0x1ccc } 1477: 5e pop %esi 1478: 5f pop %edi 1479: 5d pop %ebp 147a: c3 ret 147b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 147f: 90 nop bp->s.size += p->s.ptr->s.size; 1480: 03 72 04 add 0x4(%edx),%esi 1483: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 1486: 8b 10 mov (%eax),%edx 1488: 8b 12 mov (%edx),%edx 148a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 148d: 8b 50 04 mov 0x4(%eax),%edx 1490: 8d 34 d0 lea (%eax,%edx,8),%esi 1493: 39 f1 cmp %esi,%ecx 1495: 75 d8 jne 146f <free+0x4f> p->s.size += bp->s.size; 1497: 03 53 fc add -0x4(%ebx),%edx freep = p; 149a: a3 cc 1c 00 00 mov %eax,0x1ccc p->s.size += bp->s.size; 149f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 14a2: 8b 53 f8 mov -0x8(%ebx),%edx 14a5: 89 10 mov %edx,(%eax) } 14a7: 5b pop %ebx 14a8: 5e pop %esi 14a9: 5f pop %edi 14aa: 5d pop %ebp 14ab: c3 ret 14ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000014b0 <malloc>: return freep; } void* malloc(uint nbytes) { 14b0: f3 0f 1e fb endbr32 14b4: 55 push %ebp 14b5: 89 e5 mov %esp,%ebp 14b7: 57 push %edi 14b8: 56 push %esi 14b9: 53 push %ebx 14ba: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 14bd: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 14c0: 8b 3d cc 1c 00 00 mov 0x1ccc,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 14c6: 8d 70 07 lea 0x7(%eax),%esi 14c9: c1 ee 03 shr $0x3,%esi 14cc: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 14cf: 85 ff test %edi,%edi 14d1: 0f 84 a9 00 00 00 je 1580 <malloc+0xd0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 14d7: 8b 07 mov (%edi),%eax if(p->s.size >= nunits){ 14d9: 8b 48 04 mov 0x4(%eax),%ecx 14dc: 39 f1 cmp %esi,%ecx 14de: 73 6d jae 154d <malloc+0x9d> 14e0: 81 fe 00 10 00 00 cmp $0x1000,%esi 14e6: bb 00 10 00 00 mov $0x1000,%ebx 14eb: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 14ee: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx 14f5: 89 4d e4 mov %ecx,-0x1c(%ebp) 14f8: eb 17 jmp 1511 <malloc+0x61> 14fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1500: 8b 10 mov (%eax),%edx if(p->s.size >= nunits){ 1502: 8b 4a 04 mov 0x4(%edx),%ecx 1505: 39 f1 cmp %esi,%ecx 1507: 73 4f jae 1558 <malloc+0xa8> 1509: 8b 3d cc 1c 00 00 mov 0x1ccc,%edi 150f: 89 d0 mov %edx,%eax p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 1511: 39 c7 cmp %eax,%edi 1513: 75 eb jne 1500 <malloc+0x50> p = sbrk(nu * sizeof(Header)); 1515: 83 ec 0c sub $0xc,%esp 1518: ff 75 e4 pushl -0x1c(%ebp) 151b: e8 55 01 00 00 call 1675 <sbrk> if(p == (char*)-1) 1520: 83 c4 10 add $0x10,%esp 1523: 83 f8 ff cmp $0xffffffff,%eax 1526: 74 1b je 1543 <malloc+0x93> hp->s.size = nu; 1528: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 152b: 83 ec 0c sub $0xc,%esp 152e: 83 c0 08 add $0x8,%eax 1531: 50 push %eax 1532: e8 e9 fe ff ff call 1420 <free> return freep; 1537: a1 cc 1c 00 00 mov 0x1ccc,%eax if((p = morecore(nunits)) == 0) 153c: 83 c4 10 add $0x10,%esp 153f: 85 c0 test %eax,%eax 1541: 75 bd jne 1500 <malloc+0x50> return 0; } } 1543: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 1546: 31 c0 xor %eax,%eax } 1548: 5b pop %ebx 1549: 5e pop %esi 154a: 5f pop %edi 154b: 5d pop %ebp 154c: c3 ret if(p->s.size >= nunits){ 154d: 89 c2 mov %eax,%edx 154f: 89 f8 mov %edi,%eax 1551: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 1558: 39 ce cmp %ecx,%esi 155a: 74 54 je 15b0 <malloc+0x100> p->s.size -= nunits; 155c: 29 f1 sub %esi,%ecx 155e: 89 4a 04 mov %ecx,0x4(%edx) p += p->s.size; 1561: 8d 14 ca lea (%edx,%ecx,8),%edx p->s.size = nunits; 1564: 89 72 04 mov %esi,0x4(%edx) freep = prevp; 1567: a3 cc 1c 00 00 mov %eax,0x1ccc } 156c: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 156f: 8d 42 08 lea 0x8(%edx),%eax } 1572: 5b pop %ebx 1573: 5e pop %esi 1574: 5f pop %edi 1575: 5d pop %ebp 1576: c3 ret 1577: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 157e: 66 90 xchg %ax,%ax base.s.ptr = freep = prevp = &base; 1580: c7 05 cc 1c 00 00 d0 movl $0x1cd0,0x1ccc 1587: 1c 00 00 base.s.size = 0; 158a: bf d0 1c 00 00 mov $0x1cd0,%edi base.s.ptr = freep = prevp = &base; 158f: c7 05 d0 1c 00 00 d0 movl $0x1cd0,0x1cd0 1596: 1c 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 1599: 89 f8 mov %edi,%eax base.s.size = 0; 159b: c7 05 d4 1c 00 00 00 movl $0x0,0x1cd4 15a2: 00 00 00 if(p->s.size >= nunits){ 15a5: e9 36 ff ff ff jmp 14e0 <malloc+0x30> 15aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 15b0: 8b 0a mov (%edx),%ecx 15b2: 89 08 mov %ecx,(%eax) 15b4: eb b1 jmp 1567 <malloc+0xb7> 15b6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 15bd: 8d 76 00 lea 0x0(%esi),%esi 000015c0 <thread_create>: { 15c0: f3 0f 1e fb endbr32 15c4: 55 push %ebp 15c5: 89 e5 mov %esp,%ebp 15c7: 83 ec 14 sub $0x14,%esp stack =malloc(4096); //pgsize 15ca: 68 00 10 00 00 push $0x1000 15cf: e8 dc fe ff ff call 14b0 <malloc> return clone(start_routine,arg1,arg2,stack); 15d4: 50 push %eax 15d5: ff 75 10 pushl 0x10(%ebp) 15d8: ff 75 0c pushl 0xc(%ebp) 15db: ff 75 08 pushl 0x8(%ebp) 15de: e8 d2 00 00 00 call 16b5 <clone> } 15e3: c9 leave 15e4: c3 ret 000015e5 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 15e5: b8 01 00 00 00 mov $0x1,%eax 15ea: cd 40 int $0x40 15ec: c3 ret 000015ed <exit>: SYSCALL(exit) 15ed: b8 02 00 00 00 mov $0x2,%eax 15f2: cd 40 int $0x40 15f4: c3 ret 000015f5 <wait>: SYSCALL(wait) 15f5: b8 03 00 00 00 mov $0x3,%eax 15fa: cd 40 int $0x40 15fc: c3 ret 000015fd <pipe>: SYSCALL(pipe) 15fd: b8 04 00 00 00 mov $0x4,%eax 1602: cd 40 int $0x40 1604: c3 ret 00001605 <read>: SYSCALL(read) 1605: b8 05 00 00 00 mov $0x5,%eax 160a: cd 40 int $0x40 160c: c3 ret 0000160d <write>: SYSCALL(write) 160d: b8 10 00 00 00 mov $0x10,%eax 1612: cd 40 int $0x40 1614: c3 ret 00001615 <close>: SYSCALL(close) 1615: b8 15 00 00 00 mov $0x15,%eax 161a: cd 40 int $0x40 161c: c3 ret 0000161d <kill>: SYSCALL(kill) 161d: b8 06 00 00 00 mov $0x6,%eax 1622: cd 40 int $0x40 1624: c3 ret 00001625 <exec>: SYSCALL(exec) 1625: b8 07 00 00 00 mov $0x7,%eax 162a: cd 40 int $0x40 162c: c3 ret 0000162d <open>: SYSCALL(open) 162d: b8 0f 00 00 00 mov $0xf,%eax 1632: cd 40 int $0x40 1634: c3 ret 00001635 <mknod>: SYSCALL(mknod) 1635: b8 11 00 00 00 mov $0x11,%eax 163a: cd 40 int $0x40 163c: c3 ret 0000163d <unlink>: SYSCALL(unlink) 163d: b8 12 00 00 00 mov $0x12,%eax 1642: cd 40 int $0x40 1644: c3 ret 00001645 <fstat>: SYSCALL(fstat) 1645: b8 08 00 00 00 mov $0x8,%eax 164a: cd 40 int $0x40 164c: c3 ret 0000164d <link>: SYSCALL(link) 164d: b8 13 00 00 00 mov $0x13,%eax 1652: cd 40 int $0x40 1654: c3 ret 00001655 <mkdir>: SYSCALL(mkdir) 1655: b8 14 00 00 00 mov $0x14,%eax 165a: cd 40 int $0x40 165c: c3 ret 0000165d <chdir>: SYSCALL(chdir) 165d: b8 09 00 00 00 mov $0x9,%eax 1662: cd 40 int $0x40 1664: c3 ret 00001665 <dup>: SYSCALL(dup) 1665: b8 0a 00 00 00 mov $0xa,%eax 166a: cd 40 int $0x40 166c: c3 ret 0000166d <getpid>: SYSCALL(getpid) 166d: b8 0b 00 00 00 mov $0xb,%eax 1672: cd 40 int $0x40 1674: c3 ret 00001675 <sbrk>: SYSCALL(sbrk) 1675: b8 0c 00 00 00 mov $0xc,%eax 167a: cd 40 int $0x40 167c: c3 ret 0000167d <sleep>: SYSCALL(sleep) 167d: b8 0d 00 00 00 mov $0xd,%eax 1682: cd 40 int $0x40 1684: c3 ret 00001685 <uptime>: SYSCALL(uptime) 1685: b8 0e 00 00 00 mov $0xe,%eax 168a: cd 40 int $0x40 168c: c3 ret 0000168d <count>: SYSCALL(count) 168d: b8 16 00 00 00 mov $0x16,%eax 1692: cd 40 int $0x40 1694: c3 ret 00001695 <settickets>: SYSCALL(settickets) 1695: b8 17 00 00 00 mov $0x17,%eax 169a: cd 40 int $0x40 169c: c3 ret 0000169d <getpinfo>: SYSCALL(getpinfo) 169d: b8 18 00 00 00 mov $0x18,%eax 16a2: cd 40 int $0x40 16a4: c3 ret 000016a5 <mprotect>: SYSCALL(mprotect) 16a5: b8 19 00 00 00 mov $0x19,%eax 16aa: cd 40 int $0x40 16ac: c3 ret 000016ad <munprotect>: SYSCALL(munprotect) 16ad: b8 1a 00 00 00 mov $0x1a,%eax 16b2: cd 40 int $0x40 16b4: c3 ret 000016b5 <clone>: SYSCALL(clone) 16b5: b8 1b 00 00 00 mov $0x1b,%eax 16ba: cd 40 int $0x40 16bc: c3 ret 000016bd <join>: SYSCALL(join) 16bd: b8 1c 00 00 00 mov $0x1c,%eax 16c2: cd 40 int $0x40 16c4: c3 ret 16c5: 66 90 xchg %ax,%ax 16c7: 66 90 xchg %ax,%ax 16c9: 66 90 xchg %ax,%ax 16cb: 66 90 xchg %ax,%ax 16cd: 66 90 xchg %ax,%ax 16cf: 90 nop 000016d0 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 16d0: 55 push %ebp 16d1: 89 e5 mov %esp,%ebp 16d3: 57 push %edi 16d4: 56 push %esi 16d5: 53 push %ebx 16d6: 83 ec 3c sub $0x3c,%esp 16d9: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 16dc: 89 d1 mov %edx,%ecx { 16de: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ 16e1: 85 d2 test %edx,%edx 16e3: 0f 89 7f 00 00 00 jns 1768 <printint+0x98> 16e9: f6 45 08 01 testb $0x1,0x8(%ebp) 16ed: 74 79 je 1768 <printint+0x98> neg = 1; 16ef: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; 16f6: f7 d9 neg %ecx } else { x = xx; } i = 0; 16f8: 31 db xor %ebx,%ebx 16fa: 8d 75 d7 lea -0x29(%ebp),%esi 16fd: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 1700: 89 c8 mov %ecx,%eax 1702: 31 d2 xor %edx,%edx 1704: 89 cf mov %ecx,%edi 1706: f7 75 c4 divl -0x3c(%ebp) 1709: 0f b6 92 74 19 00 00 movzbl 0x1974(%edx),%edx 1710: 89 45 c0 mov %eax,-0x40(%ebp) 1713: 89 d8 mov %ebx,%eax 1715: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 1718: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; 171b: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); 171e: 39 7d c4 cmp %edi,-0x3c(%ebp) 1721: 76 dd jbe 1700 <printint+0x30> if(neg) 1723: 8b 4d bc mov -0x44(%ebp),%ecx 1726: 85 c9 test %ecx,%ecx 1728: 74 0c je 1736 <printint+0x66> buf[i++] = '-'; 172a: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 172f: 89 d8 mov %ebx,%eax buf[i++] = '-'; 1731: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 1736: 8b 7d b8 mov -0x48(%ebp),%edi 1739: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 173d: eb 07 jmp 1746 <printint+0x76> 173f: 90 nop 1740: 0f b6 13 movzbl (%ebx),%edx 1743: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); 1746: 83 ec 04 sub $0x4,%esp 1749: 88 55 d7 mov %dl,-0x29(%ebp) 174c: 6a 01 push $0x1 174e: 56 push %esi 174f: 57 push %edi 1750: e8 b8 fe ff ff call 160d <write> while(--i >= 0) 1755: 83 c4 10 add $0x10,%esp 1758: 39 de cmp %ebx,%esi 175a: 75 e4 jne 1740 <printint+0x70> putc(fd, buf[i]); } 175c: 8d 65 f4 lea -0xc(%ebp),%esp 175f: 5b pop %ebx 1760: 5e pop %esi 1761: 5f pop %edi 1762: 5d pop %ebp 1763: c3 ret 1764: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 1768: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) 176f: eb 87 jmp 16f8 <printint+0x28> 1771: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1778: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 177f: 90 nop 00001780 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 1780: f3 0f 1e fb endbr32 1784: 55 push %ebp 1785: 89 e5 mov %esp,%ebp 1787: 57 push %edi 1788: 56 push %esi 1789: 53 push %ebx 178a: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 178d: 8b 75 0c mov 0xc(%ebp),%esi 1790: 0f b6 1e movzbl (%esi),%ebx 1793: 84 db test %bl,%bl 1795: 0f 84 b4 00 00 00 je 184f <printf+0xcf> ap = (uint*)(void*)&fmt + 1; 179b: 8d 45 10 lea 0x10(%ebp),%eax 179e: 83 c6 01 add $0x1,%esi write(fd, &c, 1); 17a1: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; 17a4: 31 d2 xor %edx,%edx ap = (uint*)(void*)&fmt + 1; 17a6: 89 45 d0 mov %eax,-0x30(%ebp) 17a9: eb 33 jmp 17de <printf+0x5e> 17ab: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 17af: 90 nop 17b0: 89 55 d4 mov %edx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 17b3: ba 25 00 00 00 mov $0x25,%edx if(c == '%'){ 17b8: 83 f8 25 cmp $0x25,%eax 17bb: 74 17 je 17d4 <printf+0x54> write(fd, &c, 1); 17bd: 83 ec 04 sub $0x4,%esp 17c0: 88 5d e7 mov %bl,-0x19(%ebp) 17c3: 6a 01 push $0x1 17c5: 57 push %edi 17c6: ff 75 08 pushl 0x8(%ebp) 17c9: e8 3f fe ff ff call 160d <write> 17ce: 8b 55 d4 mov -0x2c(%ebp),%edx } else { putc(fd, c); 17d1: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 17d4: 0f b6 1e movzbl (%esi),%ebx 17d7: 83 c6 01 add $0x1,%esi 17da: 84 db test %bl,%bl 17dc: 74 71 je 184f <printf+0xcf> c = fmt[i] & 0xff; 17de: 0f be cb movsbl %bl,%ecx 17e1: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 17e4: 85 d2 test %edx,%edx 17e6: 74 c8 je 17b0 <printf+0x30> } } else if(state == '%'){ 17e8: 83 fa 25 cmp $0x25,%edx 17eb: 75 e7 jne 17d4 <printf+0x54> if(c == 'd'){ 17ed: 83 f8 64 cmp $0x64,%eax 17f0: 0f 84 9a 00 00 00 je 1890 <printf+0x110> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 17f6: 81 e1 f7 00 00 00 and $0xf7,%ecx 17fc: 83 f9 70 cmp $0x70,%ecx 17ff: 74 5f je 1860 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 1801: 83 f8 73 cmp $0x73,%eax 1804: 0f 84 d6 00 00 00 je 18e0 <printf+0x160> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 180a: 83 f8 63 cmp $0x63,%eax 180d: 0f 84 8d 00 00 00 je 18a0 <printf+0x120> putc(fd, *ap); ap++; } else if(c == '%'){ 1813: 83 f8 25 cmp $0x25,%eax 1816: 0f 84 b4 00 00 00 je 18d0 <printf+0x150> write(fd, &c, 1); 181c: 83 ec 04 sub $0x4,%esp 181f: c6 45 e7 25 movb $0x25,-0x19(%ebp) 1823: 6a 01 push $0x1 1825: 57 push %edi 1826: ff 75 08 pushl 0x8(%ebp) 1829: e8 df fd ff ff call 160d <write> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 182e: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 1831: 83 c4 0c add $0xc,%esp 1834: 6a 01 push $0x1 1836: 83 c6 01 add $0x1,%esi 1839: 57 push %edi 183a: ff 75 08 pushl 0x8(%ebp) 183d: e8 cb fd ff ff call 160d <write> for(i = 0; fmt[i]; i++){ 1842: 0f b6 5e ff movzbl -0x1(%esi),%ebx putc(fd, c); 1846: 83 c4 10 add $0x10,%esp } state = 0; 1849: 31 d2 xor %edx,%edx for(i = 0; fmt[i]; i++){ 184b: 84 db test %bl,%bl 184d: 75 8f jne 17de <printf+0x5e> } } } 184f: 8d 65 f4 lea -0xc(%ebp),%esp 1852: 5b pop %ebx 1853: 5e pop %esi 1854: 5f pop %edi 1855: 5d pop %ebp 1856: c3 ret 1857: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 185e: 66 90 xchg %ax,%ax printint(fd, *ap, 16, 0); 1860: 83 ec 0c sub $0xc,%esp 1863: b9 10 00 00 00 mov $0x10,%ecx 1868: 6a 00 push $0x0 186a: 8b 5d d0 mov -0x30(%ebp),%ebx 186d: 8b 45 08 mov 0x8(%ebp),%eax 1870: 8b 13 mov (%ebx),%edx 1872: e8 59 fe ff ff call 16d0 <printint> ap++; 1877: 89 d8 mov %ebx,%eax 1879: 83 c4 10 add $0x10,%esp state = 0; 187c: 31 d2 xor %edx,%edx ap++; 187e: 83 c0 04 add $0x4,%eax 1881: 89 45 d0 mov %eax,-0x30(%ebp) 1884: e9 4b ff ff ff jmp 17d4 <printf+0x54> 1889: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printint(fd, *ap, 10, 1); 1890: 83 ec 0c sub $0xc,%esp 1893: b9 0a 00 00 00 mov $0xa,%ecx 1898: 6a 01 push $0x1 189a: eb ce jmp 186a <printf+0xea> 189c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, *ap); 18a0: 8b 5d d0 mov -0x30(%ebp),%ebx write(fd, &c, 1); 18a3: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 18a6: 8b 03 mov (%ebx),%eax write(fd, &c, 1); 18a8: 6a 01 push $0x1 ap++; 18aa: 83 c3 04 add $0x4,%ebx write(fd, &c, 1); 18ad: 57 push %edi 18ae: ff 75 08 pushl 0x8(%ebp) putc(fd, *ap); 18b1: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 18b4: e8 54 fd ff ff call 160d <write> ap++; 18b9: 89 5d d0 mov %ebx,-0x30(%ebp) 18bc: 83 c4 10 add $0x10,%esp state = 0; 18bf: 31 d2 xor %edx,%edx 18c1: e9 0e ff ff ff jmp 17d4 <printf+0x54> 18c6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 18cd: 8d 76 00 lea 0x0(%esi),%esi putc(fd, c); 18d0: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 18d3: 83 ec 04 sub $0x4,%esp 18d6: e9 59 ff ff ff jmp 1834 <printf+0xb4> 18db: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 18df: 90 nop s = (char*)*ap; 18e0: 8b 45 d0 mov -0x30(%ebp),%eax 18e3: 8b 18 mov (%eax),%ebx ap++; 18e5: 83 c0 04 add $0x4,%eax 18e8: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 18eb: 85 db test %ebx,%ebx 18ed: 74 17 je 1906 <printf+0x186> while(*s != 0){ 18ef: 0f b6 03 movzbl (%ebx),%eax state = 0; 18f2: 31 d2 xor %edx,%edx while(*s != 0){ 18f4: 84 c0 test %al,%al 18f6: 0f 84 d8 fe ff ff je 17d4 <printf+0x54> 18fc: 89 75 d4 mov %esi,-0x2c(%ebp) 18ff: 89 de mov %ebx,%esi 1901: 8b 5d 08 mov 0x8(%ebp),%ebx 1904: eb 1a jmp 1920 <printf+0x1a0> s = "(null)"; 1906: bb 6b 19 00 00 mov $0x196b,%ebx while(*s != 0){ 190b: 89 75 d4 mov %esi,-0x2c(%ebp) 190e: b8 28 00 00 00 mov $0x28,%eax 1913: 89 de mov %ebx,%esi 1915: 8b 5d 08 mov 0x8(%ebp),%ebx 1918: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 191f: 90 nop write(fd, &c, 1); 1920: 83 ec 04 sub $0x4,%esp s++; 1923: 83 c6 01 add $0x1,%esi 1926: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 1929: 6a 01 push $0x1 192b: 57 push %edi 192c: 53 push %ebx 192d: e8 db fc ff ff call 160d <write> while(*s != 0){ 1932: 0f b6 06 movzbl (%esi),%eax 1935: 83 c4 10 add $0x10,%esp 1938: 84 c0 test %al,%al 193a: 75 e4 jne 1920 <printf+0x1a0> 193c: 8b 75 d4 mov -0x2c(%ebp),%esi state = 0; 193f: 31 d2 xor %edx,%edx 1941: e9 8e fe ff ff jmp 17d4 <printf+0x54>
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php. ; ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. ; ; Module Name: ; ; SetMem32.Asm ; ; Abstract: ; ; SetMem32 function ; ; Notes: ; ;------------------------------------------------------------------------------ .386 .model flat,C .code ;------------------------------------------------------------------------------ ; VOID * ; InternalMemSetMem32 ( ; IN VOID *Buffer, ; IN UINTN Count, ; IN UINT32 Value ; ) ;------------------------------------------------------------------------------ InternalMemSetMem32 PROC USES edi mov eax, [esp + 16] mov edi, [esp + 8] mov ecx, [esp + 12] rep stosd mov eax, [esp + 8] ret InternalMemSetMem32 ENDP END
; Multiplication: d * e ; Result in bc org 100h start: mvi d, 05h mvi e, 05h call mp88 hlt mp88: lxi b, 0000h mvi l, 08h nxtbit: mov a, d rar mov d, a jnc noadd mov a, b add e mov b, a noadd: mov a, b rar mov b, a mov a, c rar mov c, a dcr l jnz nxtbit ret
; ; Print a character at ansi_ROW, ansi_COLUMNUMN ; Enter with char in a ; ; djm 6/6/2000 ; ; This ain't pretty..we do far too many calls to oz for my liking.. ; ; ; $Id: f_ansi_char.asm,v 1.7 2016/07/02 10:24:35 dom Exp $ ; SECTION code_clib PUBLIC ansi_CHAR INCLUDE "stdio.def" EXTERN ansi_ROW EXTERN ansi_COLUMN PUBLIC text_rows PUBLIC text_cols .text_rows defb 8 .text_cols defb 80 .ansi_CHAR push af ld hl,start call_oz(gn_sop) ld a,(ansi_COLUMN) add a,32 call_oz(os_out) ld a,(ansi_ROW) add a,32 call_oz(os_out) pop af call_oz(os_out) ret .start defb 1,'3','@',0
if 0 lua allpass if 1 then end endlua endif
; A110450: a(n) = n*(n+1)*(n^2+n+1)/2. ; 0,3,21,78,210,465,903,1596,2628,4095,6105,8778,12246,16653,22155,28920,37128,46971,58653,72390,88410,106953,128271,152628,180300,211575,246753,286146,330078,378885,432915,492528,558096,630003,708645,794430,887778,989121,1098903,1217580,1345620,1483503,1631721,1790778,1961190,2143485,2338203,2545896,2767128,3002475,3252525,3517878,3799146,4096953,4411935,4744740,5096028,5466471,5856753,6267570,6699630,7153653,7630371,8130528,8654880,9204195,9779253,10380846,11009778,11666865,12352935,13068828,13815396,14593503,15404025,16247850,17125878,18039021,18988203,19974360,20998440,22061403,23164221,24307878,25493370,26721705,27993903,29310996,30674028,32084055,33542145,35049378,36606846,38215653,39876915,41591760,43361328,45186771,47069253,49009950 mov $1,1 add $1,$0 pow $1,2 sub $1,$0 bin $1,2 mov $0,$1
; A190055: a(n) = n + [n*r/t] + [n*s/t]; r=2, s=sin(Pi/3), t=csc(Pi/3). ; 2,6,10,13,16,20,24,27,30,34,38,41,44,48,51,55,58,62,65,69,72,76,79,83,86,90,93,97,100,103,107,111,114,117,121,125,128,131,135,139,142,145,149,153,155,159,163,167,169,173,177,181,183,187,191,194,197,201,205,208,211,215,219,222,225,229,233,236,239,243,246,250,253,257,260,264,267,271,274,278,281,285,288,292,295,298,302,306,309,312,316,320,323,326,330,334,337,340,344,348,350,354,358,362,364,368,372,376,378,382,386,389,392,396,400,403,406,410,414,417,420,424,428,431,434,438,441,445,448,452,455,459,462,466,469,473,476,480,483,487,490,493,497,501,504,507,511,515,518,521,525,529,532,535,539,543,545,549,553,557,559,563,567,571,573,577,581,584,587,591,595,598,601,605,609,612,615,619,623,626,629,633,636,640,643,647,650,654,657,661,664,668,671,675,678,682,685,688,692,696,699,702,706,710,713,716,720,724,726,730,734,738,740,744,748,752,754,758,762,766,768,772,776,779,782,786,790,793,796,800,804,807,810,814,818,821,824,828,831,835,838,842,845,849,852,856,859,863,866,870 cal $0,188089 ; Positions of 0 in the zero-one sequence [nr+4r]-[nr]-[4r], where r=sqrt(3), n>=1. div $0,4 mov $1,$0
; ; ZX Spectrum specific routines ; by Stefano Bodrato, 22/06/2006 ; ; int zx_issue3(); ; ; The result is: ; - 0 (false) if the spectrum is issue 1 or 2. ; - 1 (true) if the spectrum is an "issue 3" or more ; ; $Id: zx_issue3.asm,v 1.3 2006/06/28 22:21:26 stefano Exp $ ; XLIB zx_issue3 zx_issue3: ld a,(23624) rrca rrca rrca or 8 out (254),a ld bc,57342 in a,(c) in a,(c) ld hl,1 ; true xor 255 ret nz dec hl ret
; assembler http://skilldrick.github.io/easy6502 ; 0 - black ; 1 - white LDA #$01 ; load color LDX #$02 ; load display base address ; loop to fill screen loop_external: STX $01 loop_internal: STA ($00), Y INY CPY #$00 BNE loop_internal INX CPX #$06 BNE loop_external BRK
#include <TMB.hpp> #include <iostream> #define see(object) std::cout << #object ":\n" << object << "\n"; template<class Type> Type dbetabinom(Type x, Type n, Type p, Type phi, int do_log) { Type ll = lgamma(n + 1.0) - lgamma(x + 1.0) - lgamma(n - x + 1.0) + lgamma(x + p*phi) + lgamma(n - x +(1-p)*phi) - lgamma(n + phi) + lgamma(phi) - lgamma(p*phi) - lgamma((1-p)*phi); if(do_log) return(ll); else return(exp(ll)); } template<class Type> Type rbetabinom(Type n, Type mu, Type phi) { Type x = rbeta(mu*phi,(Type(1.0)-mu)*phi); Type y = rbinom(n, x); return(y); } template<class Type> Type objective_function<Type>::operator() () { DATA_VECTOR(Y); //number mature DATA_VECTOR(N); //number of mature + not mature DATA_VECTOR(age_obs); //age for each observation DATA_INTEGER(max_age); //to generate a maturity ogive PARAMETER_VECTOR(beta); //intercept, slope PARAMETER(log_phi); Type phi = exp(log_phi); int n_obs = Y.size(); vector<Type> nll(n_obs); nll.setZero(); vector<Type> logit_mat(n_obs), mat(n_obs); for(int i = 0; i < n_obs; i++) { logit_mat(i) = beta(0) + beta(1)*age_obs(i); mat(i) = 1/(1 + exp(-logit_mat(i))); nll(i) = -dbetabinom(Y(i), N(i), mat(i), phi, 1); //negative log-likelihood //nll(i) = -dbinom(Y(i), N(i), mat(i), 1); //negative log-likelihood } SIMULATE { for(int i = 0; i < n_obs; i++) Y(i) = rbetabinom(N(i), mat(i), phi); REPORT(Y); } vector<Type> logit_mat_at_age(max_age);//, mat_at_age(max_age); for(int i = 0; i < max_age; i++) logit_mat_at_age(i) = beta(0) + beta(1)*Type(i+1); vector<Type> mat_at_age = 1/(1+ exp(-logit_mat_at_age)); Type a50 = -beta(0)/beta(1); REPORT(mat); ADREPORT(phi); ADREPORT(a50); REPORT(nll); ADREPORT(logit_mat_at_age); ADREPORT(mat_at_age); return sum(nll); }
TITLE Segment Example (main module, Seg2.asm) EXTRN var2:WORD, subroutine_1:PROC cseg SEGMENT BYTE PUBLIC 'CODE' ASSUME cs:cseg,ds:dseg, ss:sseg main PROC mov ax,dseg ; initialize DS mov ds,ax mov ax,var1 ; local variable mov bx,var2 ; external variable call subroutine_1 ; external procedure mov ax,4C00h ; exit to OS int 21h main ENDP cseg ENDS dseg SEGMENT WORD PUBLIC 'DATA' ; local data segment var1 WORD 1000h dseg ends sseg SEGMENT STACK 'STACK' ; stack segment BYTE 100h dup('S') sseg ENDS END main
// bfs + stack #include <vector> #include <stack> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: vector<vector<int>> zigzagLevelOrder(TreeNode* root) { vector<vector<int>> ret; if (root == nullptr) return ret; stack<TreeNode*> level; level.emplace(root); bool order = true; // true: left to right, false: right to left while (!level.empty()) { vector<int> vals; stack<TreeNode*> next_level; while (!level.empty()) { TreeNode* top = level.top(); level.pop(); vals.emplace_back(top->val); if (order) { push(next_level, top->left); push(next_level, top->right); } else { push(next_level, top->right); push(next_level, top->left); } } ret.emplace_back(vals); order = !order; level = next_level; } return ret; } private: inline void push(stack<TreeNode*>& level, TreeNode* node) { if (node != nullptr) level.emplace(node); } };
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; shadowssdt asm stub for 10.0.16299-sp0-windows-10-rs3-1709 amd64 option casemap:none option prologue:none option epilogue:none .code ; ULONG64 __stdcall NtUserGetOwnerTransformedMonitorRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetOwnerTransformedMonitorRect PROC STDCALL mov r10 , rcx mov eax , 4096 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetOwnerTransformedMonitorRect ENDP ; ULONG64 __stdcall NtUserYieldTask( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserYieldTask PROC STDCALL mov r10 , rcx mov eax , 4097 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserYieldTask ENDP ; ULONG64 __stdcall NtUserSetSensorPresence( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSensorPresence PROC STDCALL mov r10 , rcx mov eax , 4098 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSensorPresence ENDP ; ULONG64 __stdcall NtUserGetThreadState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetThreadState PROC STDCALL mov r10 , rcx mov eax , 4099 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetThreadState ENDP ; ULONG64 __stdcall NtUserPeekMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPeekMessage PROC STDCALL mov r10 , rcx mov eax , 4100 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPeekMessage ENDP ; ULONG64 __stdcall NtUserCallOneParam( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallOneParam PROC STDCALL mov r10 , rcx mov eax , 4101 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallOneParam ENDP ; ULONG64 __stdcall NtUserGetKeyState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyState PROC STDCALL mov r10 , rcx mov eax , 4102 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyState ENDP ; ULONG64 __stdcall NtUserInvalidateRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInvalidateRect PROC STDCALL mov r10 , rcx mov eax , 4103 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInvalidateRect ENDP ; ULONG64 __stdcall NtUserCallNoParam( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallNoParam PROC STDCALL mov r10 , rcx mov eax , 4104 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallNoParam ENDP ; ULONG64 __stdcall NtUserGetMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMessage PROC STDCALL mov r10 , rcx mov eax , 4105 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMessage ENDP ; ULONG64 __stdcall NtUserMessageCall( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMessageCall PROC STDCALL mov r10 , rcx mov eax , 4106 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMessageCall ENDP ; ULONG64 __stdcall NtGdiBitBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBitBlt PROC STDCALL mov r10 , rcx mov eax , 4107 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBitBlt ENDP ; ULONG64 __stdcall NtGdiGetCharSet( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharSet PROC STDCALL mov r10 , rcx mov eax , 4108 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharSet ENDP ; ULONG64 __stdcall NtUserGetDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDC PROC STDCALL mov r10 , rcx mov eax , 4109 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDC ENDP ; ULONG64 __stdcall NtGdiSelectBitmap( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectBitmap PROC STDCALL mov r10 , rcx mov eax , 4110 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectBitmap ENDP ; ULONG64 __stdcall NtUserWaitMessage( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitMessage PROC STDCALL mov r10 , rcx mov eax , 4111 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitMessage ENDP ; ULONG64 __stdcall NtUserTranslateMessage( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserTranslateMessage PROC STDCALL mov r10 , rcx mov eax , 4112 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserTranslateMessage ENDP ; ULONG64 __stdcall NtUserGetProp( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProp PROC STDCALL mov r10 , rcx mov eax , 4113 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProp ENDP ; ULONG64 __stdcall NtUserPostMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPostMessage PROC STDCALL mov r10 , rcx mov eax , 4114 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPostMessage ENDP ; ULONG64 __stdcall NtUserQueryWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryWindow PROC STDCALL mov r10 , rcx mov eax , 4115 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryWindow ENDP ; ULONG64 __stdcall NtUserTranslateAccelerator( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserTranslateAccelerator PROC STDCALL mov r10 , rcx mov eax , 4116 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserTranslateAccelerator ENDP ; ULONG64 __stdcall NtGdiFlush( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFlush PROC STDCALL mov r10 , rcx mov eax , 4117 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFlush ENDP ; ULONG64 __stdcall NtUserRedrawWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRedrawWindow PROC STDCALL mov r10 , rcx mov eax , 4118 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRedrawWindow ENDP ; ULONG64 __stdcall NtUserWindowFromPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWindowFromPoint PROC STDCALL mov r10 , rcx mov eax , 4119 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWindowFromPoint ENDP ; ULONG64 __stdcall NtUserCallMsgFilter( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallMsgFilter PROC STDCALL mov r10 , rcx mov eax , 4120 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallMsgFilter ENDP ; ULONG64 __stdcall NtUserValidateTimerCallback( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserValidateTimerCallback PROC STDCALL mov r10 , rcx mov eax , 4121 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserValidateTimerCallback ENDP ; ULONG64 __stdcall NtUserBeginPaint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBeginPaint PROC STDCALL mov r10 , rcx mov eax , 4122 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBeginPaint ENDP ; ULONG64 __stdcall NtUserSetTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetTimer PROC STDCALL mov r10 , rcx mov eax , 4123 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetTimer ENDP ; ULONG64 __stdcall NtUserEndPaint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEndPaint PROC STDCALL mov r10 , rcx mov eax , 4124 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEndPaint ENDP ; ULONG64 __stdcall NtUserSetCursor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursor PROC STDCALL mov r10 , rcx mov eax , 4125 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursor ENDP ; ULONG64 __stdcall NtUserKillTimer( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserKillTimer PROC STDCALL mov r10 , rcx mov eax , 4126 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserKillTimer ENDP ; ULONG64 __stdcall NtUserBuildHwndList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildHwndList PROC STDCALL mov r10 , rcx mov eax , 4127 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildHwndList ENDP ; ULONG64 __stdcall NtUserSelectPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSelectPalette PROC STDCALL mov r10 , rcx mov eax , 4128 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSelectPalette ENDP ; ULONG64 __stdcall NtUserCallNextHookEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallNextHookEx PROC STDCALL mov r10 , rcx mov eax , 4129 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallNextHookEx ENDP ; ULONG64 __stdcall NtUserHideCaret( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHideCaret PROC STDCALL mov r10 , rcx mov eax , 4130 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHideCaret ENDP ; ULONG64 __stdcall NtGdiIntersectClipRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiIntersectClipRect PROC STDCALL mov r10 , rcx mov eax , 4131 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiIntersectClipRect ENDP ; ULONG64 __stdcall NtUserCallHwndLock( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndLock PROC STDCALL mov r10 , rcx mov eax , 4132 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndLock ENDP ; ULONG64 __stdcall NtUserGetProcessWindowStation( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProcessWindowStation PROC STDCALL mov r10 , rcx mov eax , 4133 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProcessWindowStation ENDP ; ULONG64 __stdcall NtGdiDeleteObjectApp( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteObjectApp PROC STDCALL mov r10 , rcx mov eax , 4134 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteObjectApp ENDP ; ULONG64 __stdcall NtUserSetWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowPos PROC STDCALL mov r10 , rcx mov eax , 4135 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowPos ENDP ; ULONG64 __stdcall NtUserShowCaret( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowCaret PROC STDCALL mov r10 , rcx mov eax , 4136 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowCaret ENDP ; ULONG64 __stdcall NtUserEndDeferWindowPosEx( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEndDeferWindowPosEx PROC STDCALL mov r10 , rcx mov eax , 4137 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEndDeferWindowPosEx ENDP ; ULONG64 __stdcall NtUserCallHwndParamLock( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndParamLock PROC STDCALL mov r10 , rcx mov eax , 4138 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndParamLock ENDP ; ULONG64 __stdcall NtUserVkKeyScanEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserVkKeyScanEx PROC STDCALL mov r10 , rcx mov eax , 4139 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserVkKeyScanEx ENDP ; ULONG64 __stdcall NtGdiSetDIBitsToDeviceInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetDIBitsToDeviceInternal PROC STDCALL mov r10 , rcx mov eax , 4140 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetDIBitsToDeviceInternal ENDP ; ULONG64 __stdcall NtUserCallTwoParam( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallTwoParam PROC STDCALL mov r10 , rcx mov eax , 4141 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallTwoParam ENDP ; ULONG64 __stdcall NtGdiGetRandomRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRandomRgn PROC STDCALL mov r10 , rcx mov eax , 4142 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRandomRgn ENDP ; ULONG64 __stdcall NtUserCopyAcceleratorTable( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCopyAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4143 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCopyAcceleratorTable ENDP ; ULONG64 __stdcall NtUserNotifyWinEvent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserNotifyWinEvent PROC STDCALL mov r10 , rcx mov eax , 4144 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserNotifyWinEvent ENDP ; ULONG64 __stdcall NtGdiExtSelectClipRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtSelectClipRgn PROC STDCALL mov r10 , rcx mov eax , 4145 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtSelectClipRgn ENDP ; ULONG64 __stdcall NtUserIsClipboardFormatAvailable( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsClipboardFormatAvailable PROC STDCALL mov r10 , rcx mov eax , 4146 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsClipboardFormatAvailable ENDP ; ULONG64 __stdcall NtUserSetScrollInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetScrollInfo PROC STDCALL mov r10 , rcx mov eax , 4147 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetScrollInfo ENDP ; ULONG64 __stdcall NtGdiStretchBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStretchBlt PROC STDCALL mov r10 , rcx mov eax , 4148 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStretchBlt ENDP ; ULONG64 __stdcall NtUserCreateCaret( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateCaret PROC STDCALL mov r10 , rcx mov eax , 4149 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateCaret ENDP ; ULONG64 __stdcall NtGdiRectVisible( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRectVisible PROC STDCALL mov r10 , rcx mov eax , 4150 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRectVisible ENDP ; ULONG64 __stdcall NtGdiCombineRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCombineRgn PROC STDCALL mov r10 , rcx mov eax , 4151 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCombineRgn ENDP ; ULONG64 __stdcall NtGdiGetDCObject( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCObject PROC STDCALL mov r10 , rcx mov eax , 4152 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCObject ENDP ; ULONG64 __stdcall NtUserDispatchMessage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDispatchMessage PROC STDCALL mov r10 , rcx mov eax , 4153 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDispatchMessage ENDP ; ULONG64 __stdcall NtUserRegisterWindowMessage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterWindowMessage PROC STDCALL mov r10 , rcx mov eax , 4154 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterWindowMessage ENDP ; ULONG64 __stdcall NtGdiExtTextOutW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtTextOutW PROC STDCALL mov r10 , rcx mov eax , 4155 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtTextOutW ENDP ; ULONG64 __stdcall NtGdiSelectFont( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectFont PROC STDCALL mov r10 , rcx mov eax , 4156 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectFont ENDP ; ULONG64 __stdcall NtGdiRestoreDC( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRestoreDC PROC STDCALL mov r10 , rcx mov eax , 4157 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRestoreDC ENDP ; ULONG64 __stdcall NtGdiSaveDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSaveDC PROC STDCALL mov r10 , rcx mov eax , 4158 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSaveDC ENDP ; ULONG64 __stdcall NtUserGetForegroundWindow( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetForegroundWindow PROC STDCALL mov r10 , rcx mov eax , 4159 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetForegroundWindow ENDP ; ULONG64 __stdcall NtUserShowScrollBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowScrollBar PROC STDCALL mov r10 , rcx mov eax , 4160 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowScrollBar ENDP ; ULONG64 __stdcall NtUserFindExistingCursorIcon( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserFindExistingCursorIcon PROC STDCALL mov r10 , rcx mov eax , 4161 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserFindExistingCursorIcon ENDP ; ULONG64 __stdcall NtGdiGetDCDword( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCDword PROC STDCALL mov r10 , rcx mov eax , 4162 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCDword ENDP ; ULONG64 __stdcall NtGdiGetRegionData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRegionData PROC STDCALL mov r10 , rcx mov eax , 4163 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRegionData ENDP ; ULONG64 __stdcall NtGdiLineTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiLineTo PROC STDCALL mov r10 , rcx mov eax , 4164 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiLineTo ENDP ; ULONG64 __stdcall NtUserSystemParametersInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSystemParametersInfo PROC STDCALL mov r10 , rcx mov eax , 4165 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSystemParametersInfo ENDP ; ULONG64 __stdcall NtGdiGetAppClipBox( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetAppClipBox PROC STDCALL mov r10 , rcx mov eax , 4166 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetAppClipBox ENDP ; ULONG64 __stdcall NtUserGetAsyncKeyState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAsyncKeyState PROC STDCALL mov r10 , rcx mov eax , 4167 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAsyncKeyState ENDP ; ULONG64 __stdcall NtUserGetCPD( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCPD PROC STDCALL mov r10 , rcx mov eax , 4168 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCPD ENDP ; ULONG64 __stdcall NtUserRemoveProp( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveProp PROC STDCALL mov r10 , rcx mov eax , 4169 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveProp ENDP ; ULONG64 __stdcall NtGdiDoPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDoPalette PROC STDCALL mov r10 , rcx mov eax , 4170 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDoPalette ENDP ; ULONG64 __stdcall NtGdiPolyPolyDraw( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyPolyDraw PROC STDCALL mov r10 , rcx mov eax , 4171 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyPolyDraw ENDP ; ULONG64 __stdcall NtUserSetCapture( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCapture PROC STDCALL mov r10 , rcx mov eax , 4172 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCapture ENDP ; ULONG64 __stdcall NtUserEnumDisplayMonitors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnumDisplayMonitors PROC STDCALL mov r10 , rcx mov eax , 4173 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnumDisplayMonitors ENDP ; ULONG64 __stdcall NtGdiCreateCompatibleBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateCompatibleBitmap PROC STDCALL mov r10 , rcx mov eax , 4174 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateCompatibleBitmap ENDP ; ULONG64 __stdcall NtUserSetProp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProp PROC STDCALL mov r10 , rcx mov eax , 4175 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProp ENDP ; ULONG64 __stdcall NtGdiGetTextCharsetInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextCharsetInfo PROC STDCALL mov r10 , rcx mov eax , 4176 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextCharsetInfo ENDP ; ULONG64 __stdcall NtUserSBGetParms( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSBGetParms PROC STDCALL mov r10 , rcx mov eax , 4177 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSBGetParms ENDP ; ULONG64 __stdcall NtUserGetIconInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetIconInfo PROC STDCALL mov r10 , rcx mov eax , 4178 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetIconInfo ENDP ; ULONG64 __stdcall NtUserExcludeUpdateRgn( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserExcludeUpdateRgn PROC STDCALL mov r10 , rcx mov eax , 4179 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserExcludeUpdateRgn ENDP ; ULONG64 __stdcall NtUserSetFocus( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetFocus PROC STDCALL mov r10 , rcx mov eax , 4180 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetFocus ENDP ; ULONG64 __stdcall NtGdiExtGetObjectW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtGetObjectW PROC STDCALL mov r10 , rcx mov eax , 4181 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtGetObjectW ENDP ; ULONG64 __stdcall NtUserGetUpdateRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetUpdateRect PROC STDCALL mov r10 , rcx mov eax , 4182 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetUpdateRect ENDP ; ULONG64 __stdcall NtGdiCreateCompatibleDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateCompatibleDC PROC STDCALL mov r10 , rcx mov eax , 4183 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateCompatibleDC ENDP ; ULONG64 __stdcall NtUserGetClipboardSequenceNumber( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardSequenceNumber PROC STDCALL mov r10 , rcx mov eax , 4184 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardSequenceNumber ENDP ; ULONG64 __stdcall NtGdiCreatePen( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreatePen PROC STDCALL mov r10 , rcx mov eax , 4185 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreatePen ENDP ; ULONG64 __stdcall NtUserShowWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowWindow PROC STDCALL mov r10 , rcx mov eax , 4186 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowWindow ENDP ; ULONG64 __stdcall NtUserGetKeyboardLayoutList( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyboardLayoutList PROC STDCALL mov r10 , rcx mov eax , 4187 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyboardLayoutList ENDP ; ULONG64 __stdcall NtGdiPatBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPatBlt PROC STDCALL mov r10 , rcx mov eax , 4188 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPatBlt ENDP ; ULONG64 __stdcall NtUserMapVirtualKeyEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMapVirtualKeyEx PROC STDCALL mov r10 , rcx mov eax , 4189 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMapVirtualKeyEx ENDP ; ULONG64 __stdcall NtUserSetWindowLong( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowLong PROC STDCALL mov r10 , rcx mov eax , 4190 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowLong ENDP ; ULONG64 __stdcall NtGdiHfontCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHfontCreate PROC STDCALL mov r10 , rcx mov eax , 4191 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHfontCreate ENDP ; ULONG64 __stdcall NtUserMoveWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMoveWindow PROC STDCALL mov r10 , rcx mov eax , 4192 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMoveWindow ENDP ; ULONG64 __stdcall NtUserPostThreadMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPostThreadMessage PROC STDCALL mov r10 , rcx mov eax , 4193 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPostThreadMessage ENDP ; ULONG64 __stdcall NtUserDrawIconEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawIconEx PROC STDCALL mov r10 , rcx mov eax , 4194 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawIconEx ENDP ; ULONG64 __stdcall NtUserGetSystemMenu( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetSystemMenu PROC STDCALL mov r10 , rcx mov eax , 4195 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetSystemMenu ENDP ; ULONG64 __stdcall NtGdiDrawStream( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDrawStream PROC STDCALL mov r10 , rcx mov eax , 4196 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDrawStream ENDP ; ULONG64 __stdcall NtUserInternalGetWindowText( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInternalGetWindowText PROC STDCALL mov r10 , rcx mov eax , 4197 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInternalGetWindowText ENDP ; ULONG64 __stdcall NtUserGetWindowDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowDC PROC STDCALL mov r10 , rcx mov eax , 4198 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowDC ENDP ; ULONG64 __stdcall NtGdiInvertRgn( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiInvertRgn PROC STDCALL mov r10 , rcx mov eax , 4199 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiInvertRgn ENDP ; ULONG64 __stdcall NtGdiGetRgnBox( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRgnBox PROC STDCALL mov r10 , rcx mov eax , 4200 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRgnBox ENDP ; ULONG64 __stdcall NtGdiGetAndSetDCDword( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetAndSetDCDword PROC STDCALL mov r10 , rcx mov eax , 4201 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetAndSetDCDword ENDP ; ULONG64 __stdcall NtGdiMaskBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMaskBlt PROC STDCALL mov r10 , rcx mov eax , 4202 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMaskBlt ENDP ; ULONG64 __stdcall NtGdiGetWidthTable( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetWidthTable PROC STDCALL mov r10 , rcx mov eax , 4203 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetWidthTable ENDP ; ULONG64 __stdcall NtUserScrollDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserScrollDC PROC STDCALL mov r10 , rcx mov eax , 4204 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserScrollDC ENDP ; ULONG64 __stdcall NtUserGetObjectInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetObjectInformation PROC STDCALL mov r10 , rcx mov eax , 4205 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetObjectInformation ENDP ; ULONG64 __stdcall NtGdiCreateBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateBitmap PROC STDCALL mov r10 , rcx mov eax , 4206 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateBitmap ENDP ; ULONG64 __stdcall NtUserFindWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserFindWindowEx PROC STDCALL mov r10 , rcx mov eax , 4207 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserFindWindowEx ENDP ; ULONG64 __stdcall NtGdiPolyPatBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyPatBlt PROC STDCALL mov r10 , rcx mov eax , 4208 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyPatBlt ENDP ; ULONG64 __stdcall NtUserUnhookWindowsHookEx( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnhookWindowsHookEx PROC STDCALL mov r10 , rcx mov eax , 4209 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnhookWindowsHookEx ENDP ; ULONG64 __stdcall NtGdiGetNearestColor( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetNearestColor PROC STDCALL mov r10 , rcx mov eax , 4210 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetNearestColor ENDP ; ULONG64 __stdcall NtGdiTransformPoints( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiTransformPoints PROC STDCALL mov r10 , rcx mov eax , 4211 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiTransformPoints ENDP ; ULONG64 __stdcall NtGdiGetDCPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCPoint PROC STDCALL mov r10 , rcx mov eax , 4212 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCPoint ENDP ; ULONG64 __stdcall NtGdiCreateDIBBrush( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateDIBBrush PROC STDCALL mov r10 , rcx mov eax , 4213 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateDIBBrush ENDP ; ULONG64 __stdcall NtGdiGetTextMetricsW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextMetricsW PROC STDCALL mov r10 , rcx mov eax , 4214 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextMetricsW ENDP ; ULONG64 __stdcall NtUserCreateWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 , ULONG64 arg_17 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateWindowEx PROC STDCALL mov r10 , rcx mov eax , 4215 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateWindowEx ENDP ; ULONG64 __stdcall NtUserSetParent( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetParent PROC STDCALL mov r10 , rcx mov eax , 4216 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetParent ENDP ; ULONG64 __stdcall NtUserGetKeyboardState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyboardState PROC STDCALL mov r10 , rcx mov eax , 4217 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyboardState ENDP ; ULONG64 __stdcall NtUserToUnicodeEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserToUnicodeEx PROC STDCALL mov r10 , rcx mov eax , 4218 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserToUnicodeEx ENDP ; ULONG64 __stdcall NtUserGetControlBrush( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetControlBrush PROC STDCALL mov r10 , rcx mov eax , 4219 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetControlBrush ENDP ; ULONG64 __stdcall NtUserGetClassName( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClassName PROC STDCALL mov r10 , rcx mov eax , 4220 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClassName ENDP ; ULONG64 __stdcall NtGdiAlphaBlend( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAlphaBlend PROC STDCALL mov r10 , rcx mov eax , 4221 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAlphaBlend ENDP ; ULONG64 __stdcall NtGdiOffsetRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiOffsetRgn PROC STDCALL mov r10 , rcx mov eax , 4222 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiOffsetRgn ENDP ; ULONG64 __stdcall NtUserDefSetText( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDefSetText PROC STDCALL mov r10 , rcx mov eax , 4223 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDefSetText ENDP ; ULONG64 __stdcall NtGdiGetTextFaceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextFaceW PROC STDCALL mov r10 , rcx mov eax , 4224 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextFaceW ENDP ; ULONG64 __stdcall NtGdiStretchDIBitsInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 , ULONG64 arg_14 , ULONG64 arg_15 , ULONG64 arg_16 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStretchDIBitsInternal PROC STDCALL mov r10 , rcx mov eax , 4225 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStretchDIBitsInternal ENDP ; ULONG64 __stdcall NtUserSendInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSendInput PROC STDCALL mov r10 , rcx mov eax , 4226 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSendInput ENDP ; ULONG64 __stdcall NtUserGetThreadDesktop( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4227 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetThreadDesktop ENDP ; ULONG64 __stdcall NtGdiCreateRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateRectRgn PROC STDCALL mov r10 , rcx mov eax , 4228 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateRectRgn ENDP ; ULONG64 __stdcall NtGdiGetDIBitsInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDIBitsInternal PROC STDCALL mov r10 , rcx mov eax , 4229 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDIBitsInternal ENDP ; ULONG64 __stdcall NtUserGetUpdateRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetUpdateRgn PROC STDCALL mov r10 , rcx mov eax , 4230 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetUpdateRgn ENDP ; ULONG64 __stdcall NtGdiDeleteClientObj( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteClientObj PROC STDCALL mov r10 , rcx mov eax , 4231 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteClientObj ENDP ; ULONG64 __stdcall NtUserGetIconSize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetIconSize PROC STDCALL mov r10 , rcx mov eax , 4232 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetIconSize ENDP ; ULONG64 __stdcall NtUserFillWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserFillWindow PROC STDCALL mov r10 , rcx mov eax , 4233 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserFillWindow ENDP ; ULONG64 __stdcall NtGdiExtCreateRegion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtCreateRegion PROC STDCALL mov r10 , rcx mov eax , 4234 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtCreateRegion ENDP ; ULONG64 __stdcall NtGdiComputeXformCoefficients( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiComputeXformCoefficients PROC STDCALL mov r10 , rcx mov eax , 4235 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiComputeXformCoefficients ENDP ; ULONG64 __stdcall NtUserSetWindowsHookEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowsHookEx PROC STDCALL mov r10 , rcx mov eax , 4236 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowsHookEx ENDP ; ULONG64 __stdcall NtUserNotifyProcessCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserNotifyProcessCreate PROC STDCALL mov r10 , rcx mov eax , 4237 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserNotifyProcessCreate ENDP ; ULONG64 __stdcall NtGdiUnrealizeObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUnrealizeObject PROC STDCALL mov r10 , rcx mov eax , 4238 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUnrealizeObject ENDP ; ULONG64 __stdcall NtUserGetTitleBarInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTitleBarInfo PROC STDCALL mov r10 , rcx mov eax , 4239 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTitleBarInfo ENDP ; ULONG64 __stdcall NtGdiRectangle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRectangle PROC STDCALL mov r10 , rcx mov eax , 4240 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRectangle ENDP ; ULONG64 __stdcall NtUserSetThreadDesktop( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4241 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadDesktop ENDP ; ULONG64 __stdcall NtUserGetDCEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDCEx PROC STDCALL mov r10 , rcx mov eax , 4242 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDCEx ENDP ; ULONG64 __stdcall NtUserGetScrollBarInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetScrollBarInfo PROC STDCALL mov r10 , rcx mov eax , 4243 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetScrollBarInfo ENDP ; ULONG64 __stdcall NtGdiGetTextExtent( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextExtent PROC STDCALL mov r10 , rcx mov eax , 4244 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextExtent ENDP ; ULONG64 __stdcall NtUserSetWindowFNID( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowFNID PROC STDCALL mov r10 , rcx mov eax , 4245 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowFNID ENDP ; ULONG64 __stdcall NtGdiSetLayout( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetLayout PROC STDCALL mov r10 , rcx mov eax , 4246 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetLayout ENDP ; ULONG64 __stdcall NtUserCalcMenuBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCalcMenuBar PROC STDCALL mov r10 , rcx mov eax , 4247 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCalcMenuBar ENDP ; ULONG64 __stdcall NtUserThunkedMenuItemInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserThunkedMenuItemInfo PROC STDCALL mov r10 , rcx mov eax , 4248 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserThunkedMenuItemInfo ENDP ; ULONG64 __stdcall NtGdiExcludeClipRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExcludeClipRect PROC STDCALL mov r10 , rcx mov eax , 4249 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExcludeClipRect ENDP ; ULONG64 __stdcall NtGdiCreateDIBSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateDIBSection PROC STDCALL mov r10 , rcx mov eax , 4250 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateDIBSection ENDP ; ULONG64 __stdcall NtGdiGetDCforBitmap( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCforBitmap PROC STDCALL mov r10 , rcx mov eax , 4251 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCforBitmap ENDP ; ULONG64 __stdcall NtUserDestroyCursor( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyCursor PROC STDCALL mov r10 , rcx mov eax , 4252 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyCursor ENDP ; ULONG64 __stdcall NtUserDestroyWindow( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyWindow PROC STDCALL mov r10 , rcx mov eax , 4253 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyWindow ENDP ; ULONG64 __stdcall NtUserCallHwndParam( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndParam PROC STDCALL mov r10 , rcx mov eax , 4254 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndParam ENDP ; ULONG64 __stdcall NtGdiCreateDIBitmapInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateDIBitmapInternal PROC STDCALL mov r10 , rcx mov eax , 4255 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateDIBitmapInternal ENDP ; ULONG64 __stdcall NtUserOpenWindowStation( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenWindowStation PROC STDCALL mov r10 , rcx mov eax , 4256 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenWindowStation ENDP ; ULONG64 __stdcall NtUserSetCursorIconData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursorIconData PROC STDCALL mov r10 , rcx mov eax , 4257 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursorIconData ENDP ; ULONG64 __stdcall NtUserCloseDesktop( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCloseDesktop PROC STDCALL mov r10 , rcx mov eax , 4258 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCloseDesktop ENDP ; ULONG64 __stdcall NtUserOpenDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenDesktop PROC STDCALL mov r10 , rcx mov eax , 4259 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenDesktop ENDP ; ULONG64 __stdcall NtUserSetProcessWindowStation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessWindowStation PROC STDCALL mov r10 , rcx mov eax , 4260 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessWindowStation ENDP ; ULONG64 __stdcall NtUserGetAtomName( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAtomName PROC STDCALL mov r10 , rcx mov eax , 4261 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAtomName ENDP ; ULONG64 __stdcall NtGdiExtCreatePen( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtCreatePen PROC STDCALL mov r10 , rcx mov eax , 4262 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtCreatePen ENDP ; ULONG64 __stdcall NtGdiCreatePaletteInternal( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreatePaletteInternal PROC STDCALL mov r10 , rcx mov eax , 4263 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreatePaletteInternal ENDP ; ULONG64 __stdcall NtGdiSetBrushOrg( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBrushOrg PROC STDCALL mov r10 , rcx mov eax , 4264 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBrushOrg ENDP ; ULONG64 __stdcall NtUserBuildNameList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildNameList PROC STDCALL mov r10 , rcx mov eax , 4265 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildNameList ENDP ; ULONG64 __stdcall NtGdiSetPixel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPixel PROC STDCALL mov r10 , rcx mov eax , 4266 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPixel ENDP ; ULONG64 __stdcall NtUserRegisterClassExWOW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterClassExWOW PROC STDCALL mov r10 , rcx mov eax , 4267 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterClassExWOW ENDP ; ULONG64 __stdcall NtGdiCreatePatternBrushInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreatePatternBrushInternal PROC STDCALL mov r10 , rcx mov eax , 4268 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreatePatternBrushInternal ENDP ; ULONG64 __stdcall NtUserGetAncestor( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAncestor PROC STDCALL mov r10 , rcx mov eax , 4269 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAncestor ENDP ; ULONG64 __stdcall NtGdiGetOutlineTextMetricsInternalW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetOutlineTextMetricsInternalW PROC STDCALL mov r10 , rcx mov eax , 4270 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetOutlineTextMetricsInternalW ENDP ; ULONG64 __stdcall NtGdiSetBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4271 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBitmapBits ENDP ; ULONG64 __stdcall NtUserCloseWindowStation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCloseWindowStation PROC STDCALL mov r10 , rcx mov eax , 4272 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCloseWindowStation ENDP ; ULONG64 __stdcall NtUserGetDoubleClickTime( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDoubleClickTime PROC STDCALL mov r10 , rcx mov eax , 4273 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDoubleClickTime ENDP ; ULONG64 __stdcall NtUserEnableScrollBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableScrollBar PROC STDCALL mov r10 , rcx mov eax , 4274 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableScrollBar ENDP ; ULONG64 __stdcall NtGdiCreateSolidBrush( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateSolidBrush PROC STDCALL mov r10 , rcx mov eax , 4275 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateSolidBrush ENDP ; ULONG64 __stdcall NtUserGetClassInfoEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClassInfoEx PROC STDCALL mov r10 , rcx mov eax , 4276 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClassInfoEx ENDP ; ULONG64 __stdcall NtGdiCreateClientObj( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateClientObj PROC STDCALL mov r10 , rcx mov eax , 4277 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateClientObj ENDP ; ULONG64 __stdcall NtUserUnregisterClass( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterClass PROC STDCALL mov r10 , rcx mov eax , 4278 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterClass ENDP ; ULONG64 __stdcall NtUserDeleteMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDeleteMenu PROC STDCALL mov r10 , rcx mov eax , 4279 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDeleteMenu ENDP ; ULONG64 __stdcall NtGdiRectInRegion( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRectInRegion PROC STDCALL mov r10 , rcx mov eax , 4280 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRectInRegion ENDP ; ULONG64 __stdcall NtUserScrollWindowEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserScrollWindowEx PROC STDCALL mov r10 , rcx mov eax , 4281 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserScrollWindowEx ENDP ; ULONG64 __stdcall NtGdiGetPixel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPixel PROC STDCALL mov r10 , rcx mov eax , 4282 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPixel ENDP ; ULONG64 __stdcall NtUserSetClassLong( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClassLong PROC STDCALL mov r10 , rcx mov eax , 4283 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClassLong ENDP ; ULONG64 __stdcall NtUserGetMenuBarInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMenuBarInfo PROC STDCALL mov r10 , rcx mov eax , 4284 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMenuBarInfo ENDP ; ULONG64 __stdcall NtGdiGetNearestPaletteIndex( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetNearestPaletteIndex PROC STDCALL mov r10 , rcx mov eax , 4285 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetNearestPaletteIndex ENDP ; ULONG64 __stdcall NtGdiGetCharWidthW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharWidthW PROC STDCALL mov r10 , rcx mov eax , 4286 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharWidthW ENDP ; ULONG64 __stdcall NtUserInvalidateRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInvalidateRgn PROC STDCALL mov r10 , rcx mov eax , 4287 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInvalidateRgn ENDP ; ULONG64 __stdcall NtUserGetClipboardOwner( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardOwner PROC STDCALL mov r10 , rcx mov eax , 4288 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardOwner ENDP ; ULONG64 __stdcall NtUserSetWindowRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowRgn PROC STDCALL mov r10 , rcx mov eax , 4289 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowRgn ENDP ; ULONG64 __stdcall NtUserBitBltSysBmp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBitBltSysBmp PROC STDCALL mov r10 , rcx mov eax , 4290 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBitBltSysBmp ENDP ; ULONG64 __stdcall NtGdiGetCharWidthInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharWidthInfo PROC STDCALL mov r10 , rcx mov eax , 4291 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharWidthInfo ENDP ; ULONG64 __stdcall NtUserValidateRect( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserValidateRect PROC STDCALL mov r10 , rcx mov eax , 4292 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserValidateRect ENDP ; ULONG64 __stdcall NtUserCloseClipboard( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCloseClipboard PROC STDCALL mov r10 , rcx mov eax , 4293 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCloseClipboard ENDP ; ULONG64 __stdcall NtUserOpenClipboard( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenClipboard PROC STDCALL mov r10 , rcx mov eax , 4294 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenClipboard ENDP ; ULONG64 __stdcall NtUserSetClipboardData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClipboardData PROC STDCALL mov r10 , rcx mov eax , 4295 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClipboardData ENDP ; ULONG64 __stdcall NtUserEnableMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableMenuItem PROC STDCALL mov r10 , rcx mov eax , 4296 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableMenuItem ENDP ; ULONG64 __stdcall NtUserAlterWindowStyle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAlterWindowStyle PROC STDCALL mov r10 , rcx mov eax , 4297 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAlterWindowStyle ENDP ; ULONG64 __stdcall NtGdiFillRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFillRgn PROC STDCALL mov r10 , rcx mov eax , 4298 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFillRgn ENDP ; ULONG64 __stdcall NtUserGetWindowPlacement( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowPlacement PROC STDCALL mov r10 , rcx mov eax , 4299 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowPlacement ENDP ; ULONG64 __stdcall NtGdiModifyWorldTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiModifyWorldTransform PROC STDCALL mov r10 , rcx mov eax , 4300 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiModifyWorldTransform ENDP ; ULONG64 __stdcall NtGdiGetFontData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontData PROC STDCALL mov r10 , rcx mov eax , 4301 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontData ENDP ; ULONG64 __stdcall NtUserGetOpenClipboardWindow( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetOpenClipboardWindow PROC STDCALL mov r10 , rcx mov eax , 4302 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetOpenClipboardWindow ENDP ; ULONG64 __stdcall NtUserSetThreadState( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadState PROC STDCALL mov r10 , rcx mov eax , 4303 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadState ENDP ; ULONG64 __stdcall NtGdiOpenDCW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiOpenDCW PROC STDCALL mov r10 , rcx mov eax , 4304 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiOpenDCW ENDP ; ULONG64 __stdcall NtUserTrackMouseEvent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserTrackMouseEvent PROC STDCALL mov r10 , rcx mov eax , 4305 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserTrackMouseEvent ENDP ; ULONG64 __stdcall NtGdiGetTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTransform PROC STDCALL mov r10 , rcx mov eax , 4306 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTransform ENDP ; ULONG64 __stdcall NtUserDestroyMenu( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyMenu PROC STDCALL mov r10 , rcx mov eax , 4307 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyMenu ENDP ; ULONG64 __stdcall NtGdiGetBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4308 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBitmapBits ENDP ; ULONG64 __stdcall NtUserConsoleControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserConsoleControl PROC STDCALL mov r10 , rcx mov eax , 4309 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserConsoleControl ENDP ; ULONG64 __stdcall NtUserSetActiveWindow( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetActiveWindow PROC STDCALL mov r10 , rcx mov eax , 4310 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetActiveWindow ENDP ; ULONG64 __stdcall NtUserSetInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInformationThread PROC STDCALL mov r10 , rcx mov eax , 4311 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInformationThread ENDP ; ULONG64 __stdcall NtUserSetWindowPlacement( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowPlacement PROC STDCALL mov r10 , rcx mov eax , 4312 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowPlacement ENDP ; ULONG64 __stdcall NtUserGetControlColor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetControlColor PROC STDCALL mov r10 , rcx mov eax , 4313 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetControlColor ENDP ; ULONG64 __stdcall NtGdiSetMetaRgn( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetMetaRgn PROC STDCALL mov r10 , rcx mov eax , 4314 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetMetaRgn ENDP ; ULONG64 __stdcall NtGdiSetMiterLimit( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetMiterLimit PROC STDCALL mov r10 , rcx mov eax , 4315 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetMiterLimit ENDP ; ULONG64 __stdcall NtGdiSetVirtualResolution( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetVirtualResolution PROC STDCALL mov r10 , rcx mov eax , 4316 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetVirtualResolution ENDP ; ULONG64 __stdcall NtGdiGetRasterizerCaps( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRasterizerCaps PROC STDCALL mov r10 , rcx mov eax , 4317 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRasterizerCaps ENDP ; ULONG64 __stdcall NtUserSetWindowWord( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowWord PROC STDCALL mov r10 , rcx mov eax , 4318 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowWord ENDP ; ULONG64 __stdcall NtUserGetClipboardFormatName( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardFormatName PROC STDCALL mov r10 , rcx mov eax , 4319 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardFormatName ENDP ; ULONG64 __stdcall NtUserRealInternalGetMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRealInternalGetMessage PROC STDCALL mov r10 , rcx mov eax , 4320 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRealInternalGetMessage ENDP ; ULONG64 __stdcall NtUserCreateLocalMemHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateLocalMemHandle PROC STDCALL mov r10 , rcx mov eax , 4321 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateLocalMemHandle ENDP ; ULONG64 __stdcall NtUserAttachThreadInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAttachThreadInput PROC STDCALL mov r10 , rcx mov eax , 4322 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAttachThreadInput ENDP ; ULONG64 __stdcall NtGdiCreateHalftonePalette( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateHalftonePalette PROC STDCALL mov r10 , rcx mov eax , 4323 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateHalftonePalette ENDP ; ULONG64 __stdcall NtUserPaintMenuBar( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPaintMenuBar PROC STDCALL mov r10 , rcx mov eax , 4324 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPaintMenuBar ENDP ; ULONG64 __stdcall NtUserSetKeyboardState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetKeyboardState PROC STDCALL mov r10 , rcx mov eax , 4325 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetKeyboardState ENDP ; ULONG64 __stdcall NtGdiCombineTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCombineTransform PROC STDCALL mov r10 , rcx mov eax , 4326 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCombineTransform ENDP ; ULONG64 __stdcall NtUserCreateAcceleratorTable( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4327 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateAcceleratorTable ENDP ; ULONG64 __stdcall NtUserGetCursorFrameInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursorFrameInfo PROC STDCALL mov r10 , rcx mov eax , 4328 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursorFrameInfo ENDP ; ULONG64 __stdcall NtUserGetAltTabInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAltTabInfo PROC STDCALL mov r10 , rcx mov eax , 4329 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAltTabInfo ENDP ; ULONG64 __stdcall NtUserGetCaretBlinkTime( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCaretBlinkTime PROC STDCALL mov r10 , rcx mov eax , 4330 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCaretBlinkTime ENDP ; ULONG64 __stdcall NtGdiQueryFontAssocInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiQueryFontAssocInfo PROC STDCALL mov r10 , rcx mov eax , 4331 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiQueryFontAssocInfo ENDP ; ULONG64 __stdcall NtUserProcessConnect( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserProcessConnect PROC STDCALL mov r10 , rcx mov eax , 4332 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserProcessConnect ENDP ; ULONG64 __stdcall NtUserEnumDisplayDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnumDisplayDevices PROC STDCALL mov r10 , rcx mov eax , 4333 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnumDisplayDevices ENDP ; ULONG64 __stdcall NtUserEmptyClipboard( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEmptyClipboard PROC STDCALL mov r10 , rcx mov eax , 4334 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEmptyClipboard ENDP ; ULONG64 __stdcall NtUserGetClipboardData( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardData PROC STDCALL mov r10 , rcx mov eax , 4335 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardData ENDP ; ULONG64 __stdcall NtUserRemoveMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveMenu PROC STDCALL mov r10 , rcx mov eax , 4336 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveMenu ENDP ; ULONG64 __stdcall NtGdiSetBoundsRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBoundsRect PROC STDCALL mov r10 , rcx mov eax , 4337 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBoundsRect ENDP ; ULONG64 __stdcall NtGdiGetBitmapDimension( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBitmapDimension PROC STDCALL mov r10 , rcx mov eax , 4338 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBitmapDimension ENDP ; ULONG64 __stdcall NtUserConvertMemHandle( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserConvertMemHandle PROC STDCALL mov r10 , rcx mov eax , 4339 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserConvertMemHandle ENDP ; ULONG64 __stdcall NtUserDestroyAcceleratorTable( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyAcceleratorTable PROC STDCALL mov r10 , rcx mov eax , 4340 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyAcceleratorTable ENDP ; ULONG64 __stdcall NtUserGetGUIThreadInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGUIThreadInfo PROC STDCALL mov r10 , rcx mov eax , 4341 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGUIThreadInfo ENDP ; ULONG64 __stdcall NtGdiCloseFigure( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCloseFigure PROC STDCALL mov r10 , rcx mov eax , 4342 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCloseFigure ENDP ; ULONG64 __stdcall NtUserSetWindowsHookAW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowsHookAW PROC STDCALL mov r10 , rcx mov eax , 4343 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowsHookAW ENDP ; ULONG64 __stdcall NtUserSetMenuDefaultItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenuDefaultItem PROC STDCALL mov r10 , rcx mov eax , 4344 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenuDefaultItem ENDP ; ULONG64 __stdcall NtUserCheckMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckMenuItem PROC STDCALL mov r10 , rcx mov eax , 4345 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckMenuItem ENDP ; ULONG64 __stdcall NtUserSetWinEventHook( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWinEventHook PROC STDCALL mov r10 , rcx mov eax , 4346 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWinEventHook ENDP ; ULONG64 __stdcall NtUserUnhookWinEvent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnhookWinEvent PROC STDCALL mov r10 , rcx mov eax , 4347 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnhookWinEvent ENDP ; ULONG64 __stdcall NtUserLockWindowUpdate( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockWindowUpdate PROC STDCALL mov r10 , rcx mov eax , 4348 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockWindowUpdate ENDP ; ULONG64 __stdcall NtUserSetSystemMenu( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSystemMenu PROC STDCALL mov r10 , rcx mov eax , 4349 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSystemMenu ENDP ; ULONG64 __stdcall NtUserThunkedMenuInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserThunkedMenuInfo PROC STDCALL mov r10 , rcx mov eax , 4350 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserThunkedMenuInfo ENDP ; ULONG64 __stdcall NtGdiBeginPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBeginPath PROC STDCALL mov r10 , rcx mov eax , 4351 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBeginPath ENDP ; ULONG64 __stdcall NtGdiEndPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndPath PROC STDCALL mov r10 , rcx mov eax , 4352 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndPath ENDP ; ULONG64 __stdcall NtGdiFillPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFillPath PROC STDCALL mov r10 , rcx mov eax , 4353 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFillPath ENDP ; ULONG64 __stdcall NtUserCallHwnd( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwnd PROC STDCALL mov r10 , rcx mov eax , 4354 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwnd ENDP ; ULONG64 __stdcall NtUserDdeInitialize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDdeInitialize PROC STDCALL mov r10 , rcx mov eax , 4355 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDdeInitialize ENDP ; ULONG64 __stdcall NtUserModifyUserStartupInfoFlags( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserModifyUserStartupInfoFlags PROC STDCALL mov r10 , rcx mov eax , 4356 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserModifyUserStartupInfoFlags ENDP ; ULONG64 __stdcall NtUserCountClipboardFormats( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCountClipboardFormats PROC STDCALL mov r10 , rcx mov eax , 4357 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCountClipboardFormats ENDP ; ULONG64 __stdcall NtGdiAddFontMemResourceEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddFontMemResourceEx PROC STDCALL mov r10 , rcx mov eax , 4358 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddFontMemResourceEx ENDP ; ULONG64 __stdcall NtGdiEqualRgn( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEqualRgn PROC STDCALL mov r10 , rcx mov eax , 4359 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEqualRgn ENDP ; ULONG64 __stdcall NtGdiGetSystemPaletteUse( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetSystemPaletteUse PROC STDCALL mov r10 , rcx mov eax , 4360 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetSystemPaletteUse ENDP ; ULONG64 __stdcall NtGdiRemoveFontMemResourceEx( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRemoveFontMemResourceEx PROC STDCALL mov r10 , rcx mov eax , 4361 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRemoveFontMemResourceEx ENDP ; ULONG64 __stdcall NtUserEnumDisplaySettings( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnumDisplaySettings PROC STDCALL mov r10 , rcx mov eax , 4362 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnumDisplaySettings ENDP ; ULONG64 __stdcall NtUserPaintDesktop( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPaintDesktop PROC STDCALL mov r10 , rcx mov eax , 4363 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPaintDesktop ENDP ; ULONG64 __stdcall NtGdiExtEscape( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtEscape PROC STDCALL mov r10 , rcx mov eax , 4364 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtEscape ENDP ; ULONG64 __stdcall NtGdiSetBitmapDimension( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBitmapDimension PROC STDCALL mov r10 , rcx mov eax , 4365 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBitmapDimension ENDP ; ULONG64 __stdcall NtGdiSetFontEnumeration( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetFontEnumeration PROC STDCALL mov r10 , rcx mov eax , 4366 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetFontEnumeration ENDP ; ULONG64 __stdcall NtUserChangeClipboardChain( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserChangeClipboardChain PROC STDCALL mov r10 , rcx mov eax , 4367 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserChangeClipboardChain ENDP ; ULONG64 __stdcall NtUserSetClipboardViewer( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClipboardViewer PROC STDCALL mov r10 , rcx mov eax , 4368 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClipboardViewer ENDP ; ULONG64 __stdcall NtUserShowWindowAsync( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowWindowAsync PROC STDCALL mov r10 , rcx mov eax , 4369 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowWindowAsync ENDP ; ULONG64 __stdcall NtGdiCreateColorSpace( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateColorSpace PROC STDCALL mov r10 , rcx mov eax , 4370 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateColorSpace ENDP ; ULONG64 __stdcall NtGdiDeleteColorSpace( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteColorSpace PROC STDCALL mov r10 , rcx mov eax , 4371 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteColorSpace ENDP ; ULONG64 __stdcall NtUserActivateKeyboardLayout( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserActivateKeyboardLayout PROC STDCALL mov r10 , rcx mov eax , 4372 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserActivateKeyboardLayout ENDP ; ULONG64 __stdcall NtBindCompositionSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtBindCompositionSurface PROC STDCALL mov r10 , rcx mov eax , 4373 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtBindCompositionSurface ENDP ; ULONG64 __stdcall NtCompositionInputThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtCompositionInputThread PROC STDCALL mov r10 , rcx mov eax , 4374 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtCompositionInputThread ENDP ; ULONG64 __stdcall NtCompositionSetDropTarget( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtCompositionSetDropTarget PROC STDCALL mov r10 , rcx mov eax , 4375 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtCompositionSetDropTarget ENDP ; ULONG64 __stdcall NtCreateCompositionInputSink( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtCreateCompositionInputSink PROC STDCALL mov r10 , rcx mov eax , 4376 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtCreateCompositionInputSink ENDP ; ULONG64 __stdcall NtCreateCompositionSurfaceHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtCreateCompositionSurfaceHandle PROC STDCALL mov r10 , rcx mov eax , 4377 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtCreateCompositionSurfaceHandle ENDP ; ULONG64 __stdcall NtCreateImplicitCompositionInputSink( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtCreateImplicitCompositionInputSink PROC STDCALL mov r10 , rcx mov eax , 4378 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtCreateImplicitCompositionInputSink ENDP ; ULONG64 __stdcall NtDCompositionAddCrossDeviceVisualChild( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionAddCrossDeviceVisualChild PROC STDCALL mov r10 , rcx mov eax , 4379 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionAddCrossDeviceVisualChild ENDP ; ULONG64 __stdcall NtDCompositionBeginFrame( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionBeginFrame PROC STDCALL mov r10 , rcx mov eax , 4380 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionBeginFrame ENDP ; ULONG64 __stdcall NtDCompositionCommitChannel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCommitChannel PROC STDCALL mov r10 , rcx mov eax , 4381 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCommitChannel ENDP ; ULONG64 __stdcall NtDCompositionCommitSynchronizationObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCommitSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4382 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCommitSynchronizationObject ENDP ; ULONG64 __stdcall NtDCompositionConfirmFrame( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionConfirmFrame PROC STDCALL mov r10 , rcx mov eax , 4383 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionConfirmFrame ENDP ; ULONG64 __stdcall NtDCompositionConnectPipe( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionConnectPipe PROC STDCALL mov r10 , rcx mov eax , 4384 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionConnectPipe ENDP ; ULONG64 __stdcall NtDCompositionCreateAndBindSharedSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateAndBindSharedSection PROC STDCALL mov r10 , rcx mov eax , 4385 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateAndBindSharedSection ENDP ; ULONG64 __stdcall NtDCompositionCreateChannel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateChannel PROC STDCALL mov r10 , rcx mov eax , 4386 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateChannel ENDP ; ULONG64 __stdcall NtDCompositionCreateConnection( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateConnection PROC STDCALL mov r10 , rcx mov eax , 4387 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateConnection ENDP ; ULONG64 __stdcall NtDCompositionCreateDwmChannel( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateDwmChannel PROC STDCALL mov r10 , rcx mov eax , 4388 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateDwmChannel ENDP ; ULONG64 __stdcall NtDCompositionCreateSharedVisualHandle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateSharedVisualHandle PROC STDCALL mov r10 , rcx mov eax , 4389 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCreateSharedVisualHandle ENDP ; ULONG64 __stdcall NtDCompositionCurrentBatchId( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCurrentBatchId PROC STDCALL mov r10 , rcx mov eax , 4390 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionCurrentBatchId ENDP ; ULONG64 __stdcall NtDCompositionDestroyChannel( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDestroyChannel PROC STDCALL mov r10 , rcx mov eax , 4391 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDestroyChannel ENDP ; ULONG64 __stdcall NtDCompositionDestroyConnection( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDestroyConnection PROC STDCALL mov r10 , rcx mov eax , 4392 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDestroyConnection ENDP ; ULONG64 __stdcall NtDCompositionDiscardFrame( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDiscardFrame PROC STDCALL mov r10 , rcx mov eax , 4393 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDiscardFrame ENDP ; ULONG64 __stdcall NtDCompositionDuplicateHandleToProcess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDuplicateHandleToProcess PROC STDCALL mov r10 , rcx mov eax , 4394 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDuplicateHandleToProcess ENDP ; ULONG64 __stdcall NtDCompositionDuplicateSwapchainHandleToDwm( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDuplicateSwapchainHandleToDwm PROC STDCALL mov r10 , rcx mov eax , 4395 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionDuplicateSwapchainHandleToDwm ENDP ; ULONG64 __stdcall NtDCompositionEnableDDASupport( ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionEnableDDASupport PROC STDCALL mov r10 , rcx mov eax , 4396 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionEnableDDASupport ENDP ; ULONG64 __stdcall NtDCompositionEnableMMCSS( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionEnableMMCSS PROC STDCALL mov r10 , rcx mov eax , 4397 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionEnableMMCSS ENDP ; ULONG64 __stdcall NtDCompositionGetChannels( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetChannels PROC STDCALL mov r10 , rcx mov eax , 4398 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetChannels ENDP ; ULONG64 __stdcall NtDCompositionGetConnectionBatch( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetConnectionBatch PROC STDCALL mov r10 , rcx mov eax , 4399 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetConnectionBatch ENDP ; ULONG64 __stdcall NtDCompositionGetDeletedResources( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetDeletedResources PROC STDCALL mov r10 , rcx mov eax , 4400 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetDeletedResources ENDP ; ULONG64 __stdcall NtDCompositionGetFrameLegacyTokens( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetFrameLegacyTokens PROC STDCALL mov r10 , rcx mov eax , 4401 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetFrameLegacyTokens ENDP ; ULONG64 __stdcall NtDCompositionGetFrameStatistics( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetFrameStatistics PROC STDCALL mov r10 , rcx mov eax , 4402 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetFrameStatistics ENDP ; ULONG64 __stdcall NtDCompositionGetFrameSurfaceUpdates( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetFrameSurfaceUpdates PROC STDCALL mov r10 , rcx mov eax , 4403 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionGetFrameSurfaceUpdates ENDP ; ULONG64 __stdcall NtDCompositionProcessChannelBatchBuffer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionProcessChannelBatchBuffer PROC STDCALL mov r10 , rcx mov eax , 4404 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionProcessChannelBatchBuffer ENDP ; ULONG64 __stdcall NtDCompositionReferenceSharedResourceOnDwmChannel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionReferenceSharedResourceOnDwmChannel PROC STDCALL mov r10 , rcx mov eax , 4405 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionReferenceSharedResourceOnDwmChannel ENDP ; ULONG64 __stdcall NtDCompositionRegisterThumbnailVisual( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRegisterThumbnailVisual PROC STDCALL mov r10 , rcx mov eax , 4406 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRegisterThumbnailVisual ENDP ; ULONG64 __stdcall NtDCompositionRegisterVirtualDesktopVisual( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRegisterVirtualDesktopVisual PROC STDCALL mov r10 , rcx mov eax , 4407 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRegisterVirtualDesktopVisual ENDP ; ULONG64 __stdcall NtDCompositionReleaseAllResources( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionReleaseAllResources PROC STDCALL mov r10 , rcx mov eax , 4408 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionReleaseAllResources ENDP ; ULONG64 __stdcall NtDCompositionRemoveCrossDeviceVisualChild( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRemoveCrossDeviceVisualChild PROC STDCALL mov r10 , rcx mov eax , 4409 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRemoveCrossDeviceVisualChild ENDP ; ULONG64 __stdcall NtDCompositionRetireFrame( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRetireFrame PROC STDCALL mov r10 , rcx mov eax , 4410 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionRetireFrame ENDP ; ULONG64 __stdcall NtDCompositionSetChannelCallbackId( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetChannelCallbackId PROC STDCALL mov r10 , rcx mov eax , 4411 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetChannelCallbackId ENDP ; ULONG64 __stdcall NtDCompositionSetChannelCommitCompletionEvent( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetChannelCommitCompletionEvent PROC STDCALL mov r10 , rcx mov eax , 4412 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetChannelCommitCompletionEvent ENDP ; ULONG64 __stdcall NtDCompositionSetChildRootVisual( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetChildRootVisual PROC STDCALL mov r10 , rcx mov eax , 4413 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetChildRootVisual ENDP ; ULONG64 __stdcall NtDCompositionSetDebugCounter( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetDebugCounter PROC STDCALL mov r10 , rcx mov eax , 4414 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSetDebugCounter ENDP ; ULONG64 __stdcall NtDCompositionSubmitDWMBatch( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSubmitDWMBatch PROC STDCALL mov r10 , rcx mov eax , 4415 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSubmitDWMBatch ENDP ; ULONG64 __stdcall NtDCompositionSynchronize( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSynchronize PROC STDCALL mov r10 , rcx mov eax , 4416 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionSynchronize ENDP ; ULONG64 __stdcall NtDCompositionTelemetryAnimationScenarioBegin( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryAnimationScenarioBegin PROC STDCALL mov r10 , rcx mov eax , 4417 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryAnimationScenarioBegin ENDP ; ULONG64 __stdcall NtDCompositionTelemetryAnimationScenarioReference( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryAnimationScenarioReference PROC STDCALL mov r10 , rcx mov eax , 4418 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryAnimationScenarioReference ENDP ; ULONG64 __stdcall NtDCompositionTelemetryAnimationScenarioUnreference( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryAnimationScenarioUnreference PROC STDCALL mov r10 , rcx mov eax , 4419 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryAnimationScenarioUnreference ENDP ; ULONG64 __stdcall NtDCompositionTelemetrySetApplicationId( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetrySetApplicationId PROC STDCALL mov r10 , rcx mov eax , 4420 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetrySetApplicationId ENDP ; ULONG64 __stdcall NtDCompositionTelemetryTouchInteractionBegin( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryTouchInteractionBegin PROC STDCALL mov r10 , rcx mov eax , 4421 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryTouchInteractionBegin ENDP ; ULONG64 __stdcall NtDCompositionTelemetryTouchInteractionEnd( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryTouchInteractionEnd PROC STDCALL mov r10 , rcx mov eax , 4422 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryTouchInteractionEnd ENDP ; ULONG64 __stdcall NtDCompositionTelemetryTouchInteractionUpdate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryTouchInteractionUpdate PROC STDCALL mov r10 , rcx mov eax , 4423 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionTelemetryTouchInteractionUpdate ENDP ; ULONG64 __stdcall NtDCompositionUpdatePointerCapture( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionUpdatePointerCapture PROC STDCALL mov r10 , rcx mov eax , 4424 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionUpdatePointerCapture ENDP ; ULONG64 __stdcall NtDCompositionWaitForChannel( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionWaitForChannel PROC STDCALL mov r10 , rcx mov eax , 4425 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDCompositionWaitForChannel ENDP ; ULONG64 __stdcall NtDWMBindCursorToOutputConfig( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDWMBindCursorToOutputConfig PROC STDCALL mov r10 , rcx mov eax , 4426 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDWMBindCursorToOutputConfig ENDP ; ULONG64 __stdcall NtDWMCommitInputSystemOutputConfig( ); _10_0_16299_sp0_windows_10_rs3_1709_NtDWMCommitInputSystemOutputConfig PROC STDCALL mov r10 , rcx mov eax , 4427 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDWMCommitInputSystemOutputConfig ENDP ; ULONG64 __stdcall NtDWMSetCursorOrientation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDWMSetCursorOrientation PROC STDCALL mov r10 , rcx mov eax , 4428 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDWMSetCursorOrientation ENDP ; ULONG64 __stdcall NtDWMSetInputSystemOutputConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDWMSetInputSystemOutputConfig PROC STDCALL mov r10 , rcx mov eax , 4429 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDWMSetInputSystemOutputConfig ENDP ; ULONG64 __stdcall NtDesktopCaptureBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDesktopCaptureBits PROC STDCALL mov r10 , rcx mov eax , 4430 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDesktopCaptureBits ENDP ; ULONG64 __stdcall NtDuplicateCompositionInputSink( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtDuplicateCompositionInputSink PROC STDCALL mov r10 , rcx mov eax , 4431 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtDuplicateCompositionInputSink ENDP ; ULONG64 __stdcall NtFlipObjectAddPoolBuffer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectAddPoolBuffer PROC STDCALL mov r10 , rcx mov eax , 4432 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectAddPoolBuffer ENDP ; ULONG64 __stdcall NtFlipObjectCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectCreate PROC STDCALL mov r10 , rcx mov eax , 4433 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectCreate ENDP ; ULONG64 __stdcall NtFlipObjectOpen( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectOpen PROC STDCALL mov r10 , rcx mov eax , 4434 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectOpen ENDP ; ULONG64 __stdcall NtFlipObjectRemovePoolBuffer( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectRemovePoolBuffer PROC STDCALL mov r10 , rcx mov eax , 4435 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtFlipObjectRemovePoolBuffer ENDP ; ULONG64 __stdcall NtGdiAbortDoc( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAbortDoc PROC STDCALL mov r10 , rcx mov eax , 4436 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAbortDoc ENDP ; ULONG64 __stdcall NtGdiAbortPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAbortPath PROC STDCALL mov r10 , rcx mov eax , 4437 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAbortPath ENDP ; ULONG64 __stdcall NtGdiAddEmbFontToDC( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddEmbFontToDC PROC STDCALL mov r10 , rcx mov eax , 4438 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddEmbFontToDC ENDP ; ULONG64 __stdcall NtGdiAddFontResourceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddFontResourceW PROC STDCALL mov r10 , rcx mov eax , 4439 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddFontResourceW ENDP ; ULONG64 __stdcall NtGdiAddInitialFonts( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddInitialFonts PROC STDCALL mov r10 , rcx mov eax , 4440 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddInitialFonts ENDP ; ULONG64 __stdcall NtGdiAddRemoteFontToDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddRemoteFontToDC PROC STDCALL mov r10 , rcx mov eax , 4441 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddRemoteFontToDC ENDP ; ULONG64 __stdcall NtGdiAddRemoteMMInstanceToDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddRemoteMMInstanceToDC PROC STDCALL mov r10 , rcx mov eax , 4442 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAddRemoteMMInstanceToDC ENDP ; ULONG64 __stdcall NtGdiAngleArc( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAngleArc PROC STDCALL mov r10 , rcx mov eax , 4443 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAngleArc ENDP ; ULONG64 __stdcall NtGdiAnyLinkedFonts( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAnyLinkedFonts PROC STDCALL mov r10 , rcx mov eax , 4444 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiAnyLinkedFonts ENDP ; ULONG64 __stdcall NtGdiArcInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiArcInternal PROC STDCALL mov r10 , rcx mov eax , 4445 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiArcInternal ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_DeleteRbrush( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_DeleteRbrush PROC STDCALL mov r10 , rcx mov eax , 4446 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_DeleteRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_hGetColorTransform( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_hGetColorTransform PROC STDCALL mov r10 , rcx mov eax , 4447 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_hGetColorTransform ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_pvAllocRbrush( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_pvAllocRbrush PROC STDCALL mov r10 , rcx mov eax , 4448 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_pvAllocRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_pvGetRbrush( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_pvGetRbrush PROC STDCALL mov r10 , rcx mov eax , 4449 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_pvGetRbrush ENDP ; ULONG64 __stdcall NtGdiBRUSHOBJ_ulGetBrushColor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_ulGetBrushColor PROC STDCALL mov r10 , rcx mov eax , 4450 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBRUSHOBJ_ulGetBrushColor ENDP ; ULONG64 __stdcall NtGdiBeginGdiRendering( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBeginGdiRendering PROC STDCALL mov r10 , rcx mov eax , 4451 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiBeginGdiRendering ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCLIPOBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4452 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCLIPOBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_cEnumStart( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCLIPOBJ_cEnumStart PROC STDCALL mov r10 , rcx mov eax , 4453 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCLIPOBJ_cEnumStart ENDP ; ULONG64 __stdcall NtGdiCLIPOBJ_ppoGetPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCLIPOBJ_ppoGetPath PROC STDCALL mov r10 , rcx mov eax , 4454 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCLIPOBJ_ppoGetPath ENDP ; ULONG64 __stdcall NtGdiCancelDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCancelDC PROC STDCALL mov r10 , rcx mov eax , 4455 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCancelDC ENDP ; ULONG64 __stdcall NtGdiChangeGhostFont( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiChangeGhostFont PROC STDCALL mov r10 , rcx mov eax , 4456 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiChangeGhostFont ENDP ; ULONG64 __stdcall NtGdiCheckBitmapBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCheckBitmapBits PROC STDCALL mov r10 , rcx mov eax , 4457 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCheckBitmapBits ENDP ; ULONG64 __stdcall NtGdiClearBitmapAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiClearBitmapAttributes PROC STDCALL mov r10 , rcx mov eax , 4458 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiClearBitmapAttributes ENDP ; ULONG64 __stdcall NtGdiClearBrushAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiClearBrushAttributes PROC STDCALL mov r10 , rcx mov eax , 4459 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiClearBrushAttributes ENDP ; ULONG64 __stdcall NtGdiColorCorrectPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiColorCorrectPalette PROC STDCALL mov r10 , rcx mov eax , 4460 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiColorCorrectPalette ENDP ; ULONG64 __stdcall NtGdiConfigureOPMProtectedOutput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiConfigureOPMProtectedOutput PROC STDCALL mov r10 , rcx mov eax , 4461 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiConfigureOPMProtectedOutput ENDP ; ULONG64 __stdcall NtGdiConvertMetafileRect( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiConvertMetafileRect PROC STDCALL mov r10 , rcx mov eax , 4462 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiConvertMetafileRect ENDP ; ULONG64 __stdcall NtGdiCreateBitmapFromDxSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateBitmapFromDxSurface PROC STDCALL mov r10 , rcx mov eax , 4463 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateBitmapFromDxSurface ENDP ; ULONG64 __stdcall NtGdiCreateBitmapFromDxSurface2( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateBitmapFromDxSurface2 PROC STDCALL mov r10 , rcx mov eax , 4464 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateBitmapFromDxSurface2 ENDP ; ULONG64 __stdcall NtGdiCreateColorTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateColorTransform PROC STDCALL mov r10 , rcx mov eax , 4465 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateColorTransform ENDP ; ULONG64 __stdcall NtGdiCreateEllipticRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateEllipticRgn PROC STDCALL mov r10 , rcx mov eax , 4466 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateEllipticRgn ENDP ; ULONG64 __stdcall NtGdiCreateHatchBrushInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateHatchBrushInternal PROC STDCALL mov r10 , rcx mov eax , 4467 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateHatchBrushInternal ENDP ; ULONG64 __stdcall NtGdiCreateMetafileDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateMetafileDC PROC STDCALL mov r10 , rcx mov eax , 4468 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateMetafileDC ENDP ; ULONG64 __stdcall NtGdiCreateOPMProtectedOutput( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateOPMProtectedOutput PROC STDCALL mov r10 , rcx mov eax , 4469 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateOPMProtectedOutput ENDP ; ULONG64 __stdcall NtGdiCreateOPMProtectedOutputs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateOPMProtectedOutputs PROC STDCALL mov r10 , rcx mov eax , 4470 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateOPMProtectedOutputs ENDP ; ULONG64 __stdcall NtGdiCreateRoundRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateRoundRectRgn PROC STDCALL mov r10 , rcx mov eax , 4471 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateRoundRectRgn ENDP ; ULONG64 __stdcall NtGdiCreateServerMetaFile( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateServerMetaFile PROC STDCALL mov r10 , rcx mov eax , 4472 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateServerMetaFile ENDP ; ULONG64 __stdcall NtGdiCreateSessionMappedDIBSection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateSessionMappedDIBSection PROC STDCALL mov r10 , rcx mov eax , 4473 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiCreateSessionMappedDIBSection ENDP ; ULONG64 __stdcall NtGdiDDCCIGetCapabilitiesString( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetCapabilitiesString PROC STDCALL mov r10 , rcx mov eax , 4474 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetCapabilitiesString ENDP ; ULONG64 __stdcall NtGdiDDCCIGetCapabilitiesStringLength( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetCapabilitiesStringLength PROC STDCALL mov r10 , rcx mov eax , 4475 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetCapabilitiesStringLength ENDP ; ULONG64 __stdcall NtGdiDDCCIGetTimingReport( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetTimingReport PROC STDCALL mov r10 , rcx mov eax , 4476 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetTimingReport ENDP ; ULONG64 __stdcall NtGdiDDCCIGetVCPFeature( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetVCPFeature PROC STDCALL mov r10 , rcx mov eax , 4477 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCIGetVCPFeature ENDP ; ULONG64 __stdcall NtGdiDDCCISaveCurrentSettings( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCISaveCurrentSettings PROC STDCALL mov r10 , rcx mov eax , 4478 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCISaveCurrentSettings ENDP ; ULONG64 __stdcall NtGdiDDCCISetVCPFeature( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCISetVCPFeature PROC STDCALL mov r10 , rcx mov eax , 4479 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDDCCISetVCPFeature ENDP ; ULONG64 __stdcall NtGdiDdCreateFullscreenSprite( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdCreateFullscreenSprite PROC STDCALL mov r10 , rcx mov eax , 4480 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdCreateFullscreenSprite ENDP ; ULONG64 __stdcall NtGdiDdDDIAbandonSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAbandonSwapChain PROC STDCALL mov r10 , rcx mov eax , 4481 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAbandonSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDIAcquireKeyedMutex( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAcquireKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4482 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAcquireKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIAcquireKeyedMutex2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAcquireKeyedMutex2 PROC STDCALL mov r10 , rcx mov eax , 4483 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAcquireKeyedMutex2 ENDP ; ULONG64 __stdcall NtGdiDdDDIAcquireSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAcquireSwapChain PROC STDCALL mov r10 , rcx mov eax , 4484 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAcquireSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDIAddSurfaceToSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAddSurfaceToSwapChain PROC STDCALL mov r10 , rcx mov eax , 4485 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAddSurfaceToSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDIAdjustFullscreenGamma( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAdjustFullscreenGamma PROC STDCALL mov r10 , rcx mov eax , 4486 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIAdjustFullscreenGamma ENDP ; ULONG64 __stdcall NtGdiDdDDICacheHybridQueryValue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICacheHybridQueryValue PROC STDCALL mov r10 , rcx mov eax , 4487 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICacheHybridQueryValue ENDP ; ULONG64 __stdcall NtGdiDdDDIChangeVideoMemoryReservation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIChangeVideoMemoryReservation PROC STDCALL mov r10 , rcx mov eax , 4488 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIChangeVideoMemoryReservation ENDP ; ULONG64 __stdcall NtGdiDdDDICheckExclusiveOwnership( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckExclusiveOwnership PROC STDCALL mov r10 , rcx mov eax , 4489 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckExclusiveOwnership ENDP ; ULONG64 __stdcall NtGdiDdDDICheckMonitorPowerState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMonitorPowerState PROC STDCALL mov r10 , rcx mov eax , 4490 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMonitorPowerState ENDP ; ULONG64 __stdcall NtGdiDdDDICheckMultiPlaneOverlaySupport( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMultiPlaneOverlaySupport PROC STDCALL mov r10 , rcx mov eax , 4491 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMultiPlaneOverlaySupport ENDP ; ULONG64 __stdcall NtGdiDdDDICheckMultiPlaneOverlaySupport2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMultiPlaneOverlaySupport2 PROC STDCALL mov r10 , rcx mov eax , 4492 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMultiPlaneOverlaySupport2 ENDP ; ULONG64 __stdcall NtGdiDdDDICheckMultiPlaneOverlaySupport3( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMultiPlaneOverlaySupport3 PROC STDCALL mov r10 , rcx mov eax , 4493 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckMultiPlaneOverlaySupport3 ENDP ; ULONG64 __stdcall NtGdiDdDDICheckOcclusion( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckOcclusion PROC STDCALL mov r10 , rcx mov eax , 4494 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckOcclusion ENDP ; ULONG64 __stdcall NtGdiDdDDICheckSharedResourceAccess( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckSharedResourceAccess PROC STDCALL mov r10 , rcx mov eax , 4495 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckSharedResourceAccess ENDP ; ULONG64 __stdcall NtGdiDdDDICheckVidPnExclusiveOwnership( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckVidPnExclusiveOwnership PROC STDCALL mov r10 , rcx mov eax , 4496 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICheckVidPnExclusiveOwnership ENDP ; ULONG64 __stdcall NtGdiDdDDICloseAdapter( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICloseAdapter PROC STDCALL mov r10 , rcx mov eax , 4497 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICloseAdapter ENDP ; ULONG64 __stdcall NtGdiDdDDIConfigureSharedResource( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIConfigureSharedResource PROC STDCALL mov r10 , rcx mov eax , 4498 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIConfigureSharedResource ENDP ; ULONG64 __stdcall NtGdiDdDDICreateAllocation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateAllocation PROC STDCALL mov r10 , rcx mov eax , 4499 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateAllocation ENDP ; ULONG64 __stdcall NtGdiDdDDICreateBundleObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateBundleObject PROC STDCALL mov r10 , rcx mov eax , 4500 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateBundleObject ENDP ; ULONG64 __stdcall NtGdiDdDDICreateContext( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateContext PROC STDCALL mov r10 , rcx mov eax , 4501 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateContext ENDP ; ULONG64 __stdcall NtGdiDdDDICreateContextVirtual( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateContextVirtual PROC STDCALL mov r10 , rcx mov eax , 4502 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateContextVirtual ENDP ; ULONG64 __stdcall NtGdiDdDDICreateDCFromMemory( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateDCFromMemory PROC STDCALL mov r10 , rcx mov eax , 4503 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateDCFromMemory ENDP ; ULONG64 __stdcall NtGdiDdDDICreateDevice( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateDevice PROC STDCALL mov r10 , rcx mov eax , 4504 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateDevice ENDP ; ULONG64 __stdcall NtGdiDdDDICreateHwContext( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateHwContext PROC STDCALL mov r10 , rcx mov eax , 4505 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateHwContext ENDP ; ULONG64 __stdcall NtGdiDdDDICreateHwQueue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateHwQueue PROC STDCALL mov r10 , rcx mov eax , 4506 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateHwQueue ENDP ; ULONG64 __stdcall NtGdiDdDDICreateKeyedMutex( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4507 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDICreateKeyedMutex2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateKeyedMutex2 PROC STDCALL mov r10 , rcx mov eax , 4508 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateKeyedMutex2 ENDP ; ULONG64 __stdcall NtGdiDdDDICreateOutputDupl( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateOutputDupl PROC STDCALL mov r10 , rcx mov eax , 4509 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateOutputDupl ENDP ; ULONG64 __stdcall NtGdiDdDDICreateOverlay( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateOverlay PROC STDCALL mov r10 , rcx mov eax , 4510 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDICreatePagingQueue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreatePagingQueue PROC STDCALL mov r10 , rcx mov eax , 4511 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreatePagingQueue ENDP ; ULONG64 __stdcall NtGdiDdDDICreateProtectedSession( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateProtectedSession PROC STDCALL mov r10 , rcx mov eax , 4512 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateProtectedSession ENDP ; ULONG64 __stdcall NtGdiDdDDICreateSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateSwapChain PROC STDCALL mov r10 , rcx mov eax , 4513 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDICreateSynchronizationObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4514 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDICreateSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIDDisplayEnum( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDDisplayEnum PROC STDCALL mov r10 , rcx mov eax , 4515 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDDisplayEnum ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyAllocation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyAllocation PROC STDCALL mov r10 , rcx mov eax , 4516 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyAllocation ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyAllocation2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyAllocation2 PROC STDCALL mov r10 , rcx mov eax , 4517 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyAllocation2 ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyContext( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyContext PROC STDCALL mov r10 , rcx mov eax , 4518 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyContext ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyDCFromMemory( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyDCFromMemory PROC STDCALL mov r10 , rcx mov eax , 4519 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyDCFromMemory ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyDevice( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyDevice PROC STDCALL mov r10 , rcx mov eax , 4520 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyDevice ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyHwContext( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyHwContext PROC STDCALL mov r10 , rcx mov eax , 4521 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyHwContext ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyHwQueue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyHwQueue PROC STDCALL mov r10 , rcx mov eax , 4522 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyHwQueue ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyKeyedMutex( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4523 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyOutputDupl( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyOutputDupl PROC STDCALL mov r10 , rcx mov eax , 4524 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyOutputDupl ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyOverlay( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyOverlay PROC STDCALL mov r10 , rcx mov eax , 4525 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyPagingQueue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyPagingQueue PROC STDCALL mov r10 , rcx mov eax , 4526 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyPagingQueue ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroyProtectedSession( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyProtectedSession PROC STDCALL mov r10 , rcx mov eax , 4527 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroyProtectedSession ENDP ; ULONG64 __stdcall NtGdiDdDDIDestroySynchronizationObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroySynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4528 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDestroySynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIDispMgrCreate( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDispMgrCreate PROC STDCALL mov r10 , rcx mov eax , 4529 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDispMgrCreate ENDP ; ULONG64 __stdcall NtGdiDdDDIDispMgrSourceOperation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDispMgrSourceOperation PROC STDCALL mov r10 , rcx mov eax , 4530 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDispMgrSourceOperation ENDP ; ULONG64 __stdcall NtGdiDdDDIDispMgrTargetOperation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDispMgrTargetOperation PROC STDCALL mov r10 , rcx mov eax , 4531 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIDispMgrTargetOperation ENDP ; ULONG64 __stdcall NtGdiDdDDIEnumAdapters( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEnumAdapters PROC STDCALL mov r10 , rcx mov eax , 4532 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEnumAdapters ENDP ; ULONG64 __stdcall NtGdiDdDDIEnumAdapters2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEnumAdapters2 PROC STDCALL mov r10 , rcx mov eax , 4533 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEnumAdapters2 ENDP ; ULONG64 __stdcall NtGdiDdDDIEscape( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEscape PROC STDCALL mov r10 , rcx mov eax , 4534 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEscape ENDP ; ULONG64 __stdcall NtGdiDdDDIEvict( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEvict PROC STDCALL mov r10 , rcx mov eax , 4535 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIEvict ENDP ; ULONG64 __stdcall NtGdiDdDDIExtractBundleObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIExtractBundleObject PROC STDCALL mov r10 , rcx mov eax , 4536 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIExtractBundleObject ENDP ; ULONG64 __stdcall NtGdiDdDDIFlipOverlay( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIFlipOverlay PROC STDCALL mov r10 , rcx mov eax , 4537 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIFlipOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIFlushHeapTransitions( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIFlushHeapTransitions PROC STDCALL mov r10 , rcx mov eax , 4538 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIFlushHeapTransitions ENDP ; ULONG64 __stdcall NtGdiDdDDIFreeGpuVirtualAddress( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIFreeGpuVirtualAddress PROC STDCALL mov r10 , rcx mov eax , 4539 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIFreeGpuVirtualAddress ENDP ; ULONG64 __stdcall NtGdiDdDDIGetAllocationPriority( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetAllocationPriority PROC STDCALL mov r10 , rcx mov eax , 4540 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetAllocationPriority ENDP ; ULONG64 __stdcall NtGdiDdDDIGetCachedHybridQueryValue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetCachedHybridQueryValue PROC STDCALL mov r10 , rcx mov eax , 4541 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetCachedHybridQueryValue ENDP ; ULONG64 __stdcall NtGdiDdDDIGetContextInProcessSchedulingPriority( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetContextInProcessSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4542 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetContextInProcessSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDIGetContextSchedulingPriority( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetContextSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4543 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetContextSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDIGetDWMVerticalBlankEvent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetDWMVerticalBlankEvent PROC STDCALL mov r10 , rcx mov eax , 4544 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetDWMVerticalBlankEvent ENDP ; ULONG64 __stdcall NtGdiDdDDIGetDeviceState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetDeviceState PROC STDCALL mov r10 , rcx mov eax , 4545 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetDeviceState ENDP ; ULONG64 __stdcall NtGdiDdDDIGetDisplayModeList( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetDisplayModeList PROC STDCALL mov r10 , rcx mov eax , 4546 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetDisplayModeList ENDP ; ULONG64 __stdcall NtGdiDdDDIGetMemoryBudgetTarget( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetMemoryBudgetTarget PROC STDCALL mov r10 , rcx mov eax , 4547 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetMemoryBudgetTarget ENDP ; ULONG64 __stdcall NtGdiDdDDIGetMultiPlaneOverlayCaps( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetMultiPlaneOverlayCaps PROC STDCALL mov r10 , rcx mov eax , 4548 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetMultiPlaneOverlayCaps ENDP ; ULONG64 __stdcall NtGdiDdDDIGetMultisampleMethodList( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetMultisampleMethodList PROC STDCALL mov r10 , rcx mov eax , 4549 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetMultisampleMethodList ENDP ; ULONG64 __stdcall NtGdiDdDDIGetOverlayState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetOverlayState PROC STDCALL mov r10 , rcx mov eax , 4550 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetOverlayState ENDP ; ULONG64 __stdcall NtGdiDdDDIGetPostCompositionCaps( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetPostCompositionCaps PROC STDCALL mov r10 , rcx mov eax , 4551 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetPostCompositionCaps ENDP ; ULONG64 __stdcall NtGdiDdDDIGetPresentHistory( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetPresentHistory PROC STDCALL mov r10 , rcx mov eax , 4552 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetPresentHistory ENDP ; ULONG64 __stdcall NtGdiDdDDIGetPresentQueueEvent( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetPresentQueueEvent PROC STDCALL mov r10 , rcx mov eax , 4553 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetPresentQueueEvent ENDP ; ULONG64 __stdcall NtGdiDdDDIGetProcessDeviceLostSupport( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetProcessDeviceLostSupport PROC STDCALL mov r10 , rcx mov eax , 4554 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetProcessDeviceLostSupport ENDP ; ULONG64 __stdcall NtGdiDdDDIGetProcessSchedulingPriorityBand( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetProcessSchedulingPriorityBand PROC STDCALL mov r10 , rcx mov eax , 4555 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetProcessSchedulingPriorityBand ENDP ; ULONG64 __stdcall NtGdiDdDDIGetProcessSchedulingPriorityClass( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetProcessSchedulingPriorityClass PROC STDCALL mov r10 , rcx mov eax , 4556 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetProcessSchedulingPriorityClass ENDP ; ULONG64 __stdcall NtGdiDdDDIGetResourcePresentPrivateDriverData( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetResourcePresentPrivateDriverData PROC STDCALL mov r10 , rcx mov eax , 4557 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetResourcePresentPrivateDriverData ENDP ; ULONG64 __stdcall NtGdiDdDDIGetRuntimeData( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetRuntimeData PROC STDCALL mov r10 , rcx mov eax , 4558 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetRuntimeData ENDP ; ULONG64 __stdcall NtGdiDdDDIGetScanLine( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetScanLine PROC STDCALL mov r10 , rcx mov eax , 4559 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetScanLine ENDP ; ULONG64 __stdcall NtGdiDdDDIGetSetSwapChainMetadata( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetSetSwapChainMetadata PROC STDCALL mov r10 , rcx mov eax , 4560 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetSetSwapChainMetadata ENDP ; ULONG64 __stdcall NtGdiDdDDIGetSharedPrimaryHandle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetSharedPrimaryHandle PROC STDCALL mov r10 , rcx mov eax , 4561 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetSharedPrimaryHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIGetSharedResourceAdapterLuid( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetSharedResourceAdapterLuid PROC STDCALL mov r10 , rcx mov eax , 4562 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetSharedResourceAdapterLuid ENDP ; ULONG64 __stdcall NtGdiDdDDIGetYieldPercentage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetYieldPercentage PROC STDCALL mov r10 , rcx mov eax , 4563 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIGetYieldPercentage ENDP ; ULONG64 __stdcall NtGdiDdDDIInvalidateActiveVidPn( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIInvalidateActiveVidPn PROC STDCALL mov r10 , rcx mov eax , 4564 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIInvalidateActiveVidPn ENDP ; ULONG64 __stdcall NtGdiDdDDIInvalidateCache( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIInvalidateCache PROC STDCALL mov r10 , rcx mov eax , 4565 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIInvalidateCache ENDP ; ULONG64 __stdcall NtGdiDdDDILock( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDILock PROC STDCALL mov r10 , rcx mov eax , 4566 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDILock ENDP ; ULONG64 __stdcall NtGdiDdDDILock2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDILock2 PROC STDCALL mov r10 , rcx mov eax , 4567 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDILock2 ENDP ; ULONG64 __stdcall NtGdiDdDDIMakeResident( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIMakeResident PROC STDCALL mov r10 , rcx mov eax , 4568 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIMakeResident ENDP ; ULONG64 __stdcall NtGdiDdDDIMapGpuVirtualAddress( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIMapGpuVirtualAddress PROC STDCALL mov r10 , rcx mov eax , 4569 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIMapGpuVirtualAddress ENDP ; ULONG64 __stdcall NtGdiDdDDIMarkDeviceAsError( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIMarkDeviceAsError PROC STDCALL mov r10 , rcx mov eax , 4570 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIMarkDeviceAsError ENDP ; ULONG64 __stdcall NtGdiDdDDINetDispGetNextChunkInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispGetNextChunkInfo PROC STDCALL mov r10 , rcx mov eax , 4571 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispGetNextChunkInfo ENDP ; ULONG64 __stdcall NtGdiDdDDINetDispQueryMiracastDisplayDeviceStatus( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispQueryMiracastDisplayDeviceStatus PROC STDCALL mov r10 , rcx mov eax , 4572 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispQueryMiracastDisplayDeviceStatus ENDP ; ULONG64 __stdcall NtGdiDdDDINetDispQueryMiracastDisplayDeviceSupport( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispQueryMiracastDisplayDeviceSupport PROC STDCALL mov r10 , rcx mov eax , 4573 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispQueryMiracastDisplayDeviceSupport ENDP ; ULONG64 __stdcall NtGdiDdDDINetDispStartMiracastDisplayDevice( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispStartMiracastDisplayDevice PROC STDCALL mov r10 , rcx mov eax , 4574 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispStartMiracastDisplayDevice ENDP ; ULONG64 __stdcall NtGdiDdDDINetDispStopMiracastDisplayDevice( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispStopMiracastDisplayDevice PROC STDCALL mov r10 , rcx mov eax , 4575 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispStopMiracastDisplayDevice ENDP ; ULONG64 __stdcall NtGdiDdDDINetDispStopSessions( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispStopSessions PROC STDCALL mov r10 , rcx mov eax , 4576 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDINetDispStopSessions ENDP ; ULONG64 __stdcall NtGdiDdDDIOfferAllocations( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOfferAllocations PROC STDCALL mov r10 , rcx mov eax , 4577 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOfferAllocations ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenAdapterFromDeviceName( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenAdapterFromDeviceName PROC STDCALL mov r10 , rcx mov eax , 4578 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenAdapterFromDeviceName ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenAdapterFromHdc( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenAdapterFromHdc PROC STDCALL mov r10 , rcx mov eax , 4579 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenAdapterFromHdc ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenAdapterFromLuid( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenAdapterFromLuid PROC STDCALL mov r10 , rcx mov eax , 4580 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenAdapterFromLuid ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenKeyedMutex( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4581 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenKeyedMutex2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenKeyedMutex2 PROC STDCALL mov r10 , rcx mov eax , 4582 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenKeyedMutex2 ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenNtHandleFromName( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenNtHandleFromName PROC STDCALL mov r10 , rcx mov eax , 4583 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenNtHandleFromName ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenProtectedSessionFromNtHandle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenProtectedSessionFromNtHandle PROC STDCALL mov r10 , rcx mov eax , 4584 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenProtectedSessionFromNtHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenResource( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenResource PROC STDCALL mov r10 , rcx mov eax , 4585 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenResource ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenResourceFromNtHandle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenResourceFromNtHandle PROC STDCALL mov r10 , rcx mov eax , 4586 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenResourceFromNtHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSwapChain PROC STDCALL mov r10 , rcx mov eax , 4587 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenSyncObjectFromNtHandle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSyncObjectFromNtHandle PROC STDCALL mov r10 , rcx mov eax , 4588 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSyncObjectFromNtHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenSyncObjectFromNtHandle2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSyncObjectFromNtHandle2 PROC STDCALL mov r10 , rcx mov eax , 4589 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSyncObjectFromNtHandle2 ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenSyncObjectNtHandleFromName( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSyncObjectNtHandleFromName PROC STDCALL mov r10 , rcx mov eax , 4590 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSyncObjectNtHandleFromName ENDP ; ULONG64 __stdcall NtGdiDdDDIOpenSynchronizationObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4591 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOpenSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIOutputDuplGetFrameInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplGetFrameInfo PROC STDCALL mov r10 , rcx mov eax , 4592 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplGetFrameInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIOutputDuplGetMetaData( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplGetMetaData PROC STDCALL mov r10 , rcx mov eax , 4593 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplGetMetaData ENDP ; ULONG64 __stdcall NtGdiDdDDIOutputDuplGetPointerShapeData( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplGetPointerShapeData PROC STDCALL mov r10 , rcx mov eax , 4594 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplGetPointerShapeData ENDP ; ULONG64 __stdcall NtGdiDdDDIOutputDuplPresent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplPresent PROC STDCALL mov r10 , rcx mov eax , 4595 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplPresent ENDP ; ULONG64 __stdcall NtGdiDdDDIOutputDuplReleaseFrame( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplReleaseFrame PROC STDCALL mov r10 , rcx mov eax , 4596 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIOutputDuplReleaseFrame ENDP ; ULONG64 __stdcall NtGdiDdDDIPinDirectFlipResources( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPinDirectFlipResources PROC STDCALL mov r10 , rcx mov eax , 4597 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPinDirectFlipResources ENDP ; ULONG64 __stdcall NtGdiDdDDIPollDisplayChildren( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPollDisplayChildren PROC STDCALL mov r10 , rcx mov eax , 4598 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPollDisplayChildren ENDP ; ULONG64 __stdcall NtGdiDdDDIPresent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresent PROC STDCALL mov r10 , rcx mov eax , 4599 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresent ENDP ; ULONG64 __stdcall NtGdiDdDDIPresentMultiPlaneOverlay( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentMultiPlaneOverlay PROC STDCALL mov r10 , rcx mov eax , 4600 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentMultiPlaneOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIPresentMultiPlaneOverlay2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentMultiPlaneOverlay2 PROC STDCALL mov r10 , rcx mov eax , 4601 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentMultiPlaneOverlay2 ENDP ; ULONG64 __stdcall NtGdiDdDDIPresentMultiPlaneOverlay3( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentMultiPlaneOverlay3 PROC STDCALL mov r10 , rcx mov eax , 4602 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentMultiPlaneOverlay3 ENDP ; ULONG64 __stdcall NtGdiDdDDIPresentRedirected( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentRedirected PROC STDCALL mov r10 , rcx mov eax , 4603 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIPresentRedirected ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryAdapterInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryAdapterInfo PROC STDCALL mov r10 , rcx mov eax , 4604 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryAdapterInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryAllocationResidency( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryAllocationResidency PROC STDCALL mov r10 , rcx mov eax , 4605 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryAllocationResidency ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryClockCalibration( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryClockCalibration PROC STDCALL mov r10 , rcx mov eax , 4606 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryClockCalibration ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryFSEBlock( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryFSEBlock PROC STDCALL mov r10 , rcx mov eax , 4607 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryFSEBlock ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryProcessOfferInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryProcessOfferInfo PROC STDCALL mov r10 , rcx mov eax , 4608 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryProcessOfferInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryProtectedSessionInfoFromNtHandle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryProtectedSessionInfoFromNtHandle PROC STDCALL mov r10 , rcx mov eax , 4609 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryProtectedSessionInfoFromNtHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryProtectedSessionStatus( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryProtectedSessionStatus PROC STDCALL mov r10 , rcx mov eax , 4610 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryProtectedSessionStatus ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryRemoteVidPnSourceFromGdiDisplayName( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryRemoteVidPnSourceFromGdiDisplayName PROC STDCALL mov r10 , rcx mov eax , 4611 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryRemoteVidPnSourceFromGdiDisplayName ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryResourceInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryResourceInfo PROC STDCALL mov r10 , rcx mov eax , 4612 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryResourceInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryResourceInfoFromNtHandle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryResourceInfoFromNtHandle PROC STDCALL mov r10 , rcx mov eax , 4613 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryResourceInfoFromNtHandle ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryStatistics( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryStatistics PROC STDCALL mov r10 , rcx mov eax , 4614 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryStatistics ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryVidPnExclusiveOwnership( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryVidPnExclusiveOwnership PROC STDCALL mov r10 , rcx mov eax , 4615 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryVidPnExclusiveOwnership ENDP ; ULONG64 __stdcall NtGdiDdDDIQueryVideoMemoryInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryVideoMemoryInfo PROC STDCALL mov r10 , rcx mov eax , 4616 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIQueryVideoMemoryInfo ENDP ; ULONG64 __stdcall NtGdiDdDDIReclaimAllocations( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReclaimAllocations PROC STDCALL mov r10 , rcx mov eax , 4617 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReclaimAllocations ENDP ; ULONG64 __stdcall NtGdiDdDDIReclaimAllocations2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReclaimAllocations2 PROC STDCALL mov r10 , rcx mov eax , 4618 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReclaimAllocations2 ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseKeyedMutex( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseKeyedMutex PROC STDCALL mov r10 , rcx mov eax , 4619 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseKeyedMutex ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseKeyedMutex2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseKeyedMutex2 PROC STDCALL mov r10 , rcx mov eax , 4620 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseKeyedMutex2 ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseProcessVidPnSourceOwners( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseProcessVidPnSourceOwners PROC STDCALL mov r10 , rcx mov eax , 4621 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseProcessVidPnSourceOwners ENDP ; ULONG64 __stdcall NtGdiDdDDIReleaseSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseSwapChain PROC STDCALL mov r10 , rcx mov eax , 4622 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReleaseSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDIRemoveSurfaceFromSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIRemoveSurfaceFromSwapChain PROC STDCALL mov r10 , rcx mov eax , 4623 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIRemoveSurfaceFromSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDIRender( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIRender PROC STDCALL mov r10 , rcx mov eax , 4624 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIRender ENDP ; ULONG64 __stdcall NtGdiDdDDIReserveGpuVirtualAddress( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReserveGpuVirtualAddress PROC STDCALL mov r10 , rcx mov eax , 4625 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIReserveGpuVirtualAddress ENDP ; ULONG64 __stdcall NtGdiDdDDISetAllocationPriority( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetAllocationPriority PROC STDCALL mov r10 , rcx mov eax , 4626 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetAllocationPriority ENDP ; ULONG64 __stdcall NtGdiDdDDISetContextInProcessSchedulingPriority( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetContextInProcessSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4627 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetContextInProcessSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDISetContextSchedulingPriority( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetContextSchedulingPriority PROC STDCALL mov r10 , rcx mov eax , 4628 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetContextSchedulingPriority ENDP ; ULONG64 __stdcall NtGdiDdDDISetDeviceLostSupport( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDeviceLostSupport PROC STDCALL mov r10 , rcx mov eax , 4629 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDeviceLostSupport ENDP ; ULONG64 __stdcall NtGdiDdDDISetDisplayMode( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDisplayMode PROC STDCALL mov r10 , rcx mov eax , 4630 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDisplayMode ENDP ; ULONG64 __stdcall NtGdiDdDDISetDisplayPrivateDriverFormat( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDisplayPrivateDriverFormat PROC STDCALL mov r10 , rcx mov eax , 4631 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDisplayPrivateDriverFormat ENDP ; ULONG64 __stdcall NtGdiDdDDISetDodIndirectSwapchain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDodIndirectSwapchain PROC STDCALL mov r10 , rcx mov eax , 4632 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetDodIndirectSwapchain ENDP ; ULONG64 __stdcall NtGdiDdDDISetFSEBlock( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetFSEBlock PROC STDCALL mov r10 , rcx mov eax , 4633 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetFSEBlock ENDP ; ULONG64 __stdcall NtGdiDdDDISetGammaRamp( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4634 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetGammaRamp ENDP ; ULONG64 __stdcall NtGdiDdDDISetHwProtectionTeardownRecovery( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetHwProtectionTeardownRecovery PROC STDCALL mov r10 , rcx mov eax , 4635 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetHwProtectionTeardownRecovery ENDP ; ULONG64 __stdcall NtGdiDdDDISetMemoryBudgetTarget( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetMemoryBudgetTarget PROC STDCALL mov r10 , rcx mov eax , 4636 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetMemoryBudgetTarget ENDP ; ULONG64 __stdcall NtGdiDdDDISetMonitorColorSpaceTransform( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetMonitorColorSpaceTransform PROC STDCALL mov r10 , rcx mov eax , 4637 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetMonitorColorSpaceTransform ENDP ; ULONG64 __stdcall NtGdiDdDDISetProcessSchedulingPriorityBand( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetProcessSchedulingPriorityBand PROC STDCALL mov r10 , rcx mov eax , 4638 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetProcessSchedulingPriorityBand ENDP ; ULONG64 __stdcall NtGdiDdDDISetProcessSchedulingPriorityClass( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetProcessSchedulingPriorityClass PROC STDCALL mov r10 , rcx mov eax , 4639 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetProcessSchedulingPriorityClass ENDP ; ULONG64 __stdcall NtGdiDdDDISetQueuedLimit( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetQueuedLimit PROC STDCALL mov r10 , rcx mov eax , 4640 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetQueuedLimit ENDP ; ULONG64 __stdcall NtGdiDdDDISetStablePowerState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetStablePowerState PROC STDCALL mov r10 , rcx mov eax , 4641 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetStablePowerState ENDP ; ULONG64 __stdcall NtGdiDdDDISetStereoEnabled( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetStereoEnabled PROC STDCALL mov r10 , rcx mov eax , 4642 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetStereoEnabled ENDP ; ULONG64 __stdcall NtGdiDdDDISetSyncRefreshCountWaitTarget( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetSyncRefreshCountWaitTarget PROC STDCALL mov r10 , rcx mov eax , 4643 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetSyncRefreshCountWaitTarget ENDP ; ULONG64 __stdcall NtGdiDdDDISetVidPnSourceHwProtection( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetVidPnSourceHwProtection PROC STDCALL mov r10 , rcx mov eax , 4644 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetVidPnSourceHwProtection ENDP ; ULONG64 __stdcall NtGdiDdDDISetVidPnSourceOwner( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetVidPnSourceOwner PROC STDCALL mov r10 , rcx mov eax , 4645 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetVidPnSourceOwner ENDP ; ULONG64 __stdcall NtGdiDdDDISetYieldPercentage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetYieldPercentage PROC STDCALL mov r10 , rcx mov eax , 4646 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISetYieldPercentage ENDP ; ULONG64 __stdcall NtGdiDdDDIShareObjects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIShareObjects PROC STDCALL mov r10 , rcx mov eax , 4647 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIShareObjects ENDP ; ULONG64 __stdcall NtGdiDdDDISharedPrimaryLockNotification( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISharedPrimaryLockNotification PROC STDCALL mov r10 , rcx mov eax , 4648 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISharedPrimaryLockNotification ENDP ; ULONG64 __stdcall NtGdiDdDDISharedPrimaryUnLockNotification( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISharedPrimaryUnLockNotification PROC STDCALL mov r10 , rcx mov eax , 4649 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISharedPrimaryUnLockNotification ENDP ; ULONG64 __stdcall NtGdiDdDDISignalSynchronizationObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4650 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDISignalSynchronizationObjectFromCpu( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObjectFromCpu PROC STDCALL mov r10 , rcx mov eax , 4651 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObjectFromCpu ENDP ; ULONG64 __stdcall NtGdiDdDDISignalSynchronizationObjectFromGpu( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObjectFromGpu PROC STDCALL mov r10 , rcx mov eax , 4652 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObjectFromGpu ENDP ; ULONG64 __stdcall NtGdiDdDDISignalSynchronizationObjectFromGpu2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObjectFromGpu2 PROC STDCALL mov r10 , rcx mov eax , 4653 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISignalSynchronizationObjectFromGpu2 ENDP ; ULONG64 __stdcall NtGdiDdDDISubmitCommand( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitCommand PROC STDCALL mov r10 , rcx mov eax , 4654 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitCommand ENDP ; ULONG64 __stdcall NtGdiDdDDISubmitCommandToHwQueue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitCommandToHwQueue PROC STDCALL mov r10 , rcx mov eax , 4655 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitCommandToHwQueue ENDP ; ULONG64 __stdcall NtGdiDdDDISubmitSignalSyncObjectsToHwQueue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitSignalSyncObjectsToHwQueue PROC STDCALL mov r10 , rcx mov eax , 4656 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitSignalSyncObjectsToHwQueue ENDP ; ULONG64 __stdcall NtGdiDdDDISubmitWaitForSyncObjectsToHwQueue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitWaitForSyncObjectsToHwQueue PROC STDCALL mov r10 , rcx mov eax , 4657 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDISubmitWaitForSyncObjectsToHwQueue ENDP ; ULONG64 __stdcall NtGdiDdDDITrimProcessCommitment( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDITrimProcessCommitment PROC STDCALL mov r10 , rcx mov eax , 4658 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDITrimProcessCommitment ENDP ; ULONG64 __stdcall NtGdiDdDDIUnOrderedPresentSwapChain( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnOrderedPresentSwapChain PROC STDCALL mov r10 , rcx mov eax , 4659 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnOrderedPresentSwapChain ENDP ; ULONG64 __stdcall NtGdiDdDDIUnlock( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnlock PROC STDCALL mov r10 , rcx mov eax , 4660 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnlock ENDP ; ULONG64 __stdcall NtGdiDdDDIUnlock2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnlock2 PROC STDCALL mov r10 , rcx mov eax , 4661 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnlock2 ENDP ; ULONG64 __stdcall NtGdiDdDDIUnpinDirectFlipResources( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnpinDirectFlipResources PROC STDCALL mov r10 , rcx mov eax , 4662 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUnpinDirectFlipResources ENDP ; ULONG64 __stdcall NtGdiDdDDIUpdateAllocationProperty( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUpdateAllocationProperty PROC STDCALL mov r10 , rcx mov eax , 4663 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUpdateAllocationProperty ENDP ; ULONG64 __stdcall NtGdiDdDDIUpdateGpuVirtualAddress( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUpdateGpuVirtualAddress PROC STDCALL mov r10 , rcx mov eax , 4664 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUpdateGpuVirtualAddress ENDP ; ULONG64 __stdcall NtGdiDdDDIUpdateOverlay( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUpdateOverlay PROC STDCALL mov r10 , rcx mov eax , 4665 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIUpdateOverlay ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForIdle( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForIdle PROC STDCALL mov r10 , rcx mov eax , 4666 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForIdle ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForSynchronizationObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 4667 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForSynchronizationObject ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForSynchronizationObjectFromCpu( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForSynchronizationObjectFromCpu PROC STDCALL mov r10 , rcx mov eax , 4668 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForSynchronizationObjectFromCpu ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForSynchronizationObjectFromGpu( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForSynchronizationObjectFromGpu PROC STDCALL mov r10 , rcx mov eax , 4669 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForSynchronizationObjectFromGpu ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForVerticalBlankEvent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForVerticalBlankEvent PROC STDCALL mov r10 , rcx mov eax , 4670 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForVerticalBlankEvent ENDP ; ULONG64 __stdcall NtGdiDdDDIWaitForVerticalBlankEvent2( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForVerticalBlankEvent2 PROC STDCALL mov r10 , rcx mov eax , 4671 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDDIWaitForVerticalBlankEvent2 ENDP ; ULONG64 __stdcall NtGdiDdDestroyFullscreenSprite( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDestroyFullscreenSprite PROC STDCALL mov r10 , rcx mov eax , 4672 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdDestroyFullscreenSprite ENDP ; ULONG64 __stdcall NtGdiDdNotifyFullscreenSpriteUpdate( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdNotifyFullscreenSpriteUpdate PROC STDCALL mov r10 , rcx mov eax , 4673 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdNotifyFullscreenSpriteUpdate ENDP ; ULONG64 __stdcall NtGdiDdQueryVisRgnUniqueness( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdQueryVisRgnUniqueness PROC STDCALL mov r10 , rcx mov eax , 4674 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDdQueryVisRgnUniqueness ENDP ; ULONG64 __stdcall NtGdiDeleteColorTransform( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteColorTransform PROC STDCALL mov r10 , rcx mov eax , 4675 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDeleteColorTransform ENDP ; ULONG64 __stdcall NtGdiDescribePixelFormat( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDescribePixelFormat PROC STDCALL mov r10 , rcx mov eax , 4676 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDescribePixelFormat ENDP ; ULONG64 __stdcall NtGdiDestroyOPMProtectedOutput( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDestroyOPMProtectedOutput PROC STDCALL mov r10 , rcx mov eax , 4677 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDestroyOPMProtectedOutput ENDP ; ULONG64 __stdcall NtGdiDestroyPhysicalMonitor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDestroyPhysicalMonitor PROC STDCALL mov r10 , rcx mov eax , 4678 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDestroyPhysicalMonitor ENDP ; ULONG64 __stdcall NtGdiDoBanding( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDoBanding PROC STDCALL mov r10 , rcx mov eax , 4679 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDoBanding ENDP ; ULONG64 __stdcall NtGdiDrawEscape( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDrawEscape PROC STDCALL mov r10 , rcx mov eax , 4680 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDrawEscape ENDP ; ULONG64 __stdcall NtGdiDwmCreatedBitmapRemotingOutput( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDwmCreatedBitmapRemotingOutput PROC STDCALL mov r10 , rcx mov eax , 4681 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiDwmCreatedBitmapRemotingOutput ENDP ; ULONG64 __stdcall NtGdiEllipse( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEllipse PROC STDCALL mov r10 , rcx mov eax , 4682 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEllipse ENDP ; ULONG64 __stdcall NtGdiEnableEudc( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnableEudc PROC STDCALL mov r10 , rcx mov eax , 4683 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnableEudc ENDP ; ULONG64 __stdcall NtGdiEndDoc( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndDoc PROC STDCALL mov r10 , rcx mov eax , 4684 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndDoc ENDP ; ULONG64 __stdcall NtGdiEndGdiRendering( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndGdiRendering PROC STDCALL mov r10 , rcx mov eax , 4685 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndGdiRendering ENDP ; ULONG64 __stdcall NtGdiEndPage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndPage PROC STDCALL mov r10 , rcx mov eax , 4686 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEndPage ENDP ; ULONG64 __stdcall NtGdiEngAlphaBlend( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngAlphaBlend PROC STDCALL mov r10 , rcx mov eax , 4687 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngAlphaBlend ENDP ; ULONG64 __stdcall NtGdiEngAssociateSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngAssociateSurface PROC STDCALL mov r10 , rcx mov eax , 4688 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngAssociateSurface ENDP ; ULONG64 __stdcall NtGdiEngBitBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngBitBlt PROC STDCALL mov r10 , rcx mov eax , 4689 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngBitBlt ENDP ; ULONG64 __stdcall NtGdiEngCheckAbort( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCheckAbort PROC STDCALL mov r10 , rcx mov eax , 4690 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCheckAbort ENDP ; ULONG64 __stdcall NtGdiEngComputeGlyphSet( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngComputeGlyphSet PROC STDCALL mov r10 , rcx mov eax , 4691 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngComputeGlyphSet ENDP ; ULONG64 __stdcall NtGdiEngCopyBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCopyBits PROC STDCALL mov r10 , rcx mov eax , 4692 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCopyBits ENDP ; ULONG64 __stdcall NtGdiEngCreateBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateBitmap PROC STDCALL mov r10 , rcx mov eax , 4693 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateBitmap ENDP ; ULONG64 __stdcall NtGdiEngCreateClip( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateClip PROC STDCALL mov r10 , rcx mov eax , 4694 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateClip ENDP ; ULONG64 __stdcall NtGdiEngCreateDeviceBitmap( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateDeviceBitmap PROC STDCALL mov r10 , rcx mov eax , 4695 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateDeviceBitmap ENDP ; ULONG64 __stdcall NtGdiEngCreateDeviceSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateDeviceSurface PROC STDCALL mov r10 , rcx mov eax , 4696 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreateDeviceSurface ENDP ; ULONG64 __stdcall NtGdiEngCreatePalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreatePalette PROC STDCALL mov r10 , rcx mov eax , 4697 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngCreatePalette ENDP ; ULONG64 __stdcall NtGdiEngDeleteClip( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeleteClip PROC STDCALL mov r10 , rcx mov eax , 4698 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeleteClip ENDP ; ULONG64 __stdcall NtGdiEngDeletePalette( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeletePalette PROC STDCALL mov r10 , rcx mov eax , 4699 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeletePalette ENDP ; ULONG64 __stdcall NtGdiEngDeletePath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeletePath PROC STDCALL mov r10 , rcx mov eax , 4700 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeletePath ENDP ; ULONG64 __stdcall NtGdiEngDeleteSurface( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeleteSurface PROC STDCALL mov r10 , rcx mov eax , 4701 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngDeleteSurface ENDP ; ULONG64 __stdcall NtGdiEngEraseSurface( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngEraseSurface PROC STDCALL mov r10 , rcx mov eax , 4702 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngEraseSurface ENDP ; ULONG64 __stdcall NtGdiEngFillPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngFillPath PROC STDCALL mov r10 , rcx mov eax , 4703 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngFillPath ENDP ; ULONG64 __stdcall NtGdiEngGradientFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngGradientFill PROC STDCALL mov r10 , rcx mov eax , 4704 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngGradientFill ENDP ; ULONG64 __stdcall NtGdiEngLineTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngLineTo PROC STDCALL mov r10 , rcx mov eax , 4705 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngLineTo ENDP ; ULONG64 __stdcall NtGdiEngLockSurface( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngLockSurface PROC STDCALL mov r10 , rcx mov eax , 4706 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngLockSurface ENDP ; ULONG64 __stdcall NtGdiEngMarkBandingSurface( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngMarkBandingSurface PROC STDCALL mov r10 , rcx mov eax , 4707 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngMarkBandingSurface ENDP ; ULONG64 __stdcall NtGdiEngPaint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngPaint PROC STDCALL mov r10 , rcx mov eax , 4708 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngPaint ENDP ; ULONG64 __stdcall NtGdiEngPlgBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngPlgBlt PROC STDCALL mov r10 , rcx mov eax , 4709 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngPlgBlt ENDP ; ULONG64 __stdcall NtGdiEngStretchBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStretchBlt PROC STDCALL mov r10 , rcx mov eax , 4710 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStretchBlt ENDP ; ULONG64 __stdcall NtGdiEngStretchBltROP( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 , ULONG64 arg_13 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStretchBltROP PROC STDCALL mov r10 , rcx mov eax , 4711 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStretchBltROP ENDP ; ULONG64 __stdcall NtGdiEngStrokeAndFillPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStrokeAndFillPath PROC STDCALL mov r10 , rcx mov eax , 4712 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStrokeAndFillPath ENDP ; ULONG64 __stdcall NtGdiEngStrokePath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStrokePath PROC STDCALL mov r10 , rcx mov eax , 4713 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngStrokePath ENDP ; ULONG64 __stdcall NtGdiEngTextOut( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngTextOut PROC STDCALL mov r10 , rcx mov eax , 4714 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngTextOut ENDP ; ULONG64 __stdcall NtGdiEngTransparentBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngTransparentBlt PROC STDCALL mov r10 , rcx mov eax , 4715 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngTransparentBlt ENDP ; ULONG64 __stdcall NtGdiEngUnlockSurface( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngUnlockSurface PROC STDCALL mov r10 , rcx mov eax , 4716 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEngUnlockSurface ENDP ; ULONG64 __stdcall NtGdiEnsureDpiDepDefaultGuiFontForPlateau( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnsureDpiDepDefaultGuiFontForPlateau PROC STDCALL mov r10 , rcx mov eax , 4717 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnsureDpiDepDefaultGuiFontForPlateau ENDP ; ULONG64 __stdcall NtGdiEnumFonts( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnumFonts PROC STDCALL mov r10 , rcx mov eax , 4718 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnumFonts ENDP ; ULONG64 __stdcall NtGdiEnumObjects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnumObjects PROC STDCALL mov r10 , rcx mov eax , 4719 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEnumObjects ENDP ; ULONG64 __stdcall NtGdiEudcLoadUnloadLink( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEudcLoadUnloadLink PROC STDCALL mov r10 , rcx mov eax , 4720 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiEudcLoadUnloadLink ENDP ; ULONG64 __stdcall NtGdiExtFloodFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtFloodFill PROC STDCALL mov r10 , rcx mov eax , 4721 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiExtFloodFill ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_cGetAllGlyphHandles( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_cGetAllGlyphHandles PROC STDCALL mov r10 , rcx mov eax , 4722 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_cGetAllGlyphHandles ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_cGetGlyphs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_cGetGlyphs PROC STDCALL mov r10 , rcx mov eax , 4723 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_cGetGlyphs ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pQueryGlyphAttrs( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pQueryGlyphAttrs PROC STDCALL mov r10 , rcx mov eax , 4724 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pQueryGlyphAttrs ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pfdg( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pfdg PROC STDCALL mov r10 , rcx mov eax , 4725 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pfdg ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pifi( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pifi PROC STDCALL mov r10 , rcx mov eax , 4726 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pifi ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pvTrueTypeFontFile( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pvTrueTypeFontFile PROC STDCALL mov r10 , rcx mov eax , 4727 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pvTrueTypeFontFile ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_pxoGetXform( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pxoGetXform PROC STDCALL mov r10 , rcx mov eax , 4728 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_pxoGetXform ENDP ; ULONG64 __stdcall NtGdiFONTOBJ_vGetInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_vGetInfo PROC STDCALL mov r10 , rcx mov eax , 4729 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFONTOBJ_vGetInfo ENDP ; ULONG64 __stdcall NtGdiFlattenPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFlattenPath PROC STDCALL mov r10 , rcx mov eax , 4730 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFlattenPath ENDP ; ULONG64 __stdcall NtGdiFontIsLinked( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFontIsLinked PROC STDCALL mov r10 , rcx mov eax , 4731 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFontIsLinked ENDP ; ULONG64 __stdcall NtGdiForceUFIMapping( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiForceUFIMapping PROC STDCALL mov r10 , rcx mov eax , 4732 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiForceUFIMapping ENDP ; ULONG64 __stdcall NtGdiFrameRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFrameRgn PROC STDCALL mov r10 , rcx mov eax , 4733 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFrameRgn ENDP ; ULONG64 __stdcall NtGdiFullscreenControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFullscreenControl PROC STDCALL mov r10 , rcx mov eax , 4734 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiFullscreenControl ENDP ; ULONG64 __stdcall NtGdiGetAppliedDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetAppliedDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4735 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetAppliedDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiGetBitmapDpiScaleValue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBitmapDpiScaleValue PROC STDCALL mov r10 , rcx mov eax , 4736 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBitmapDpiScaleValue ENDP ; ULONG64 __stdcall NtGdiGetBoundsRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBoundsRect PROC STDCALL mov r10 , rcx mov eax , 4737 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetBoundsRect ENDP ; ULONG64 __stdcall NtGdiGetCOPPCompatibleOPMInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCOPPCompatibleOPMInformation PROC STDCALL mov r10 , rcx mov eax , 4738 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCOPPCompatibleOPMInformation ENDP ; ULONG64 __stdcall NtGdiGetCertificate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificate PROC STDCALL mov r10 , rcx mov eax , 4739 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificate ENDP ; ULONG64 __stdcall NtGdiGetCertificateByHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificateByHandle PROC STDCALL mov r10 , rcx mov eax , 4740 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificateByHandle ENDP ; ULONG64 __stdcall NtGdiGetCertificateSize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificateSize PROC STDCALL mov r10 , rcx mov eax , 4741 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificateSize ENDP ; ULONG64 __stdcall NtGdiGetCertificateSizeByHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificateSizeByHandle PROC STDCALL mov r10 , rcx mov eax , 4742 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCertificateSizeByHandle ENDP ; ULONG64 __stdcall NtGdiGetCharABCWidthsW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharABCWidthsW PROC STDCALL mov r10 , rcx mov eax , 4743 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharABCWidthsW ENDP ; ULONG64 __stdcall NtGdiGetCharacterPlacementW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharacterPlacementW PROC STDCALL mov r10 , rcx mov eax , 4744 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCharacterPlacementW ENDP ; ULONG64 __stdcall NtGdiGetColorAdjustment( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetColorAdjustment PROC STDCALL mov r10 , rcx mov eax , 4745 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetColorAdjustment ENDP ; ULONG64 __stdcall NtGdiGetColorSpaceforBitmap( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetColorSpaceforBitmap PROC STDCALL mov r10 , rcx mov eax , 4746 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetColorSpaceforBitmap ENDP ; ULONG64 __stdcall NtGdiGetCurrentDpiInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCurrentDpiInfo PROC STDCALL mov r10 , rcx mov eax , 4747 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetCurrentDpiInfo ENDP ; ULONG64 __stdcall NtGdiGetDCDpiScaleValue( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCDpiScaleValue PROC STDCALL mov r10 , rcx mov eax , 4748 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDCDpiScaleValue ENDP ; ULONG64 __stdcall NtGdiGetDeviceCaps( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceCaps PROC STDCALL mov r10 , rcx mov eax , 4749 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceCaps ENDP ; ULONG64 __stdcall NtGdiGetDeviceCapsAll( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceCapsAll PROC STDCALL mov r10 , rcx mov eax , 4750 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceCapsAll ENDP ; ULONG64 __stdcall NtGdiGetDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4751 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiGetDeviceWidth( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceWidth PROC STDCALL mov r10 , rcx mov eax , 4752 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDeviceWidth ENDP ; ULONG64 __stdcall NtGdiGetDhpdev( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDhpdev PROC STDCALL mov r10 , rcx mov eax , 4753 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetDhpdev ENDP ; ULONG64 __stdcall NtGdiGetETM( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetETM PROC STDCALL mov r10 , rcx mov eax , 4754 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetETM ENDP ; ULONG64 __stdcall NtGdiGetEmbUFI( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEmbUFI PROC STDCALL mov r10 , rcx mov eax , 4755 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEmbUFI ENDP ; ULONG64 __stdcall NtGdiGetEmbedFonts( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEmbedFonts PROC STDCALL mov r10 , rcx mov eax , 4756 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEmbedFonts ENDP ; ULONG64 __stdcall NtGdiGetEntry( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEntry PROC STDCALL mov r10 , rcx mov eax , 4757 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEntry ENDP ; ULONG64 __stdcall NtGdiGetEudcTimeStampEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEudcTimeStampEx PROC STDCALL mov r10 , rcx mov eax , 4758 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetEudcTimeStampEx ENDP ; ULONG64 __stdcall NtGdiGetFontFileData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontFileData PROC STDCALL mov r10 , rcx mov eax , 4759 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontFileData ENDP ; ULONG64 __stdcall NtGdiGetFontFileInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontFileInfo PROC STDCALL mov r10 , rcx mov eax , 4760 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontFileInfo ENDP ; ULONG64 __stdcall NtGdiGetFontResourceInfoInternalW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontResourceInfoInternalW PROC STDCALL mov r10 , rcx mov eax , 4761 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontResourceInfoInternalW ENDP ; ULONG64 __stdcall NtGdiGetFontUnicodeRanges( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontUnicodeRanges PROC STDCALL mov r10 , rcx mov eax , 4762 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetFontUnicodeRanges ENDP ; ULONG64 __stdcall NtGdiGetGammaRampCapability( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGammaRampCapability PROC STDCALL mov r10 , rcx mov eax , 4763 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGammaRampCapability ENDP ; ULONG64 __stdcall NtGdiGetGlyphIndicesW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGlyphIndicesW PROC STDCALL mov r10 , rcx mov eax , 4764 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGlyphIndicesW ENDP ; ULONG64 __stdcall NtGdiGetGlyphIndicesWInternal( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGlyphIndicesWInternal PROC STDCALL mov r10 , rcx mov eax , 4765 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGlyphIndicesWInternal ENDP ; ULONG64 __stdcall NtGdiGetGlyphOutline( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGlyphOutline PROC STDCALL mov r10 , rcx mov eax , 4766 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetGlyphOutline ENDP ; ULONG64 __stdcall NtGdiGetKerningPairs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetKerningPairs PROC STDCALL mov r10 , rcx mov eax , 4767 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetKerningPairs ENDP ; ULONG64 __stdcall NtGdiGetLinkedUFIs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetLinkedUFIs PROC STDCALL mov r10 , rcx mov eax , 4768 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetLinkedUFIs ENDP ; ULONG64 __stdcall NtGdiGetMiterLimit( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetMiterLimit PROC STDCALL mov r10 , rcx mov eax , 4769 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetMiterLimit ENDP ; ULONG64 __stdcall NtGdiGetMonitorID( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetMonitorID PROC STDCALL mov r10 , rcx mov eax , 4770 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetMonitorID ENDP ; ULONG64 __stdcall NtGdiGetNumberOfPhysicalMonitors( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetNumberOfPhysicalMonitors PROC STDCALL mov r10 , rcx mov eax , 4771 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetNumberOfPhysicalMonitors ENDP ; ULONG64 __stdcall NtGdiGetOPMInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetOPMInformation PROC STDCALL mov r10 , rcx mov eax , 4772 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetOPMInformation ENDP ; ULONG64 __stdcall NtGdiGetOPMRandomNumber( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetOPMRandomNumber PROC STDCALL mov r10 , rcx mov eax , 4773 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetOPMRandomNumber ENDP ; ULONG64 __stdcall NtGdiGetObjectBitmapHandle( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetObjectBitmapHandle PROC STDCALL mov r10 , rcx mov eax , 4774 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetObjectBitmapHandle ENDP ; ULONG64 __stdcall NtGdiGetPath( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPath PROC STDCALL mov r10 , rcx mov eax , 4775 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPath ENDP ; ULONG64 __stdcall NtGdiGetPerBandInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPerBandInfo PROC STDCALL mov r10 , rcx mov eax , 4776 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPerBandInfo ENDP ; ULONG64 __stdcall NtGdiGetPhysicalMonitorDescription( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPhysicalMonitorDescription PROC STDCALL mov r10 , rcx mov eax , 4777 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPhysicalMonitorDescription ENDP ; ULONG64 __stdcall NtGdiGetPhysicalMonitors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPhysicalMonitors PROC STDCALL mov r10 , rcx mov eax , 4778 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPhysicalMonitors ENDP ; ULONG64 __stdcall NtGdiGetProcessSessionFonts( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetProcessSessionFonts PROC STDCALL mov r10 , rcx mov eax , 4779 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetProcessSessionFonts ENDP ; ULONG64 __stdcall NtGdiGetPublicFontTableChangeCookie( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPublicFontTableChangeCookie PROC STDCALL mov r10 , rcx mov eax , 4780 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetPublicFontTableChangeCookie ENDP ; ULONG64 __stdcall NtGdiGetRealizationInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRealizationInfo PROC STDCALL mov r10 , rcx mov eax , 4781 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetRealizationInfo ENDP ; ULONG64 __stdcall NtGdiGetServerMetaFileBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetServerMetaFileBits PROC STDCALL mov r10 , rcx mov eax , 4782 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetServerMetaFileBits ENDP ; ULONG64 __stdcall NtGdiGetSpoolMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetSpoolMessage PROC STDCALL mov r10 , rcx mov eax , 4783 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetSpoolMessage ENDP ; ULONG64 __stdcall NtGdiGetStats( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetStats PROC STDCALL mov r10 , rcx mov eax , 4784 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetStats ENDP ; ULONG64 __stdcall NtGdiGetStringBitmapW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetStringBitmapW PROC STDCALL mov r10 , rcx mov eax , 4785 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetStringBitmapW ENDP ; ULONG64 __stdcall NtGdiGetSuggestedOPMProtectedOutputArraySize( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetSuggestedOPMProtectedOutputArraySize PROC STDCALL mov r10 , rcx mov eax , 4786 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetSuggestedOPMProtectedOutputArraySize ENDP ; ULONG64 __stdcall NtGdiGetTextExtentExW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextExtentExW PROC STDCALL mov r10 , rcx mov eax , 4787 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetTextExtentExW ENDP ; ULONG64 __stdcall NtGdiGetUFI( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetUFI PROC STDCALL mov r10 , rcx mov eax , 4788 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetUFI ENDP ; ULONG64 __stdcall NtGdiGetUFIPathname( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetUFIPathname PROC STDCALL mov r10 , rcx mov eax , 4789 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGetUFIPathname ENDP ; ULONG64 __stdcall NtGdiGradientFill( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGradientFill PROC STDCALL mov r10 , rcx mov eax , 4790 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiGradientFill ENDP ; ULONG64 __stdcall NtGdiHLSurfGetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHLSurfGetInformation PROC STDCALL mov r10 , rcx mov eax , 4791 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHLSurfGetInformation ENDP ; ULONG64 __stdcall NtGdiHLSurfSetInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHLSurfSetInformation PROC STDCALL mov r10 , rcx mov eax , 4792 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHLSurfSetInformation ENDP ; ULONG64 __stdcall NtGdiHT_Get8BPPFormatPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHT_Get8BPPFormatPalette PROC STDCALL mov r10 , rcx mov eax , 4793 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHT_Get8BPPFormatPalette ENDP ; ULONG64 __stdcall NtGdiHT_Get8BPPMaskPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHT_Get8BPPMaskPalette PROC STDCALL mov r10 , rcx mov eax , 4794 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiHT_Get8BPPMaskPalette ENDP ; ULONG64 __stdcall NtGdiIcmBrushInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiIcmBrushInfo PROC STDCALL mov r10 , rcx mov eax , 4795 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiIcmBrushInfo ENDP ; ULONG64 __stdcall NtGdiInit( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiInit PROC STDCALL mov r10 , rcx mov eax , 4796 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiInit ENDP ; ULONG64 __stdcall NtGdiInitSpool( ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiInitSpool PROC STDCALL mov r10 , rcx mov eax , 4797 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiInitSpool ENDP ; ULONG64 __stdcall NtGdiMakeFontDir( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeFontDir PROC STDCALL mov r10 , rcx mov eax , 4798 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeFontDir ENDP ; ULONG64 __stdcall NtGdiMakeInfoDC( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeInfoDC PROC STDCALL mov r10 , rcx mov eax , 4799 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeInfoDC ENDP ; ULONG64 __stdcall NtGdiMakeObjectUnXferable( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeObjectUnXferable PROC STDCALL mov r10 , rcx mov eax , 4800 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeObjectUnXferable ENDP ; ULONG64 __stdcall NtGdiMakeObjectXferable( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeObjectXferable PROC STDCALL mov r10 , rcx mov eax , 4801 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMakeObjectXferable ENDP ; ULONG64 __stdcall NtGdiMirrorWindowOrg( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMirrorWindowOrg PROC STDCALL mov r10 , rcx mov eax , 4802 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMirrorWindowOrg ENDP ; ULONG64 __stdcall NtGdiMonoBitmap( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMonoBitmap PROC STDCALL mov r10 , rcx mov eax , 4803 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMonoBitmap ENDP ; ULONG64 __stdcall NtGdiMoveTo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMoveTo PROC STDCALL mov r10 , rcx mov eax , 4804 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiMoveTo ENDP ; ULONG64 __stdcall NtGdiOffsetClipRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiOffsetClipRgn PROC STDCALL mov r10 , rcx mov eax , 4805 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiOffsetClipRgn ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4806 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_bEnumClipLines( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_bEnumClipLines PROC STDCALL mov r10 , rcx mov eax , 4807 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_bEnumClipLines ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vEnumStart( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_vEnumStart PROC STDCALL mov r10 , rcx mov eax , 4808 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_vEnumStart ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vEnumStartClipLines( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_vEnumStartClipLines PROC STDCALL mov r10 , rcx mov eax , 4809 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_vEnumStartClipLines ENDP ; ULONG64 __stdcall NtGdiPATHOBJ_vGetBounds( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_vGetBounds PROC STDCALL mov r10 , rcx mov eax , 4810 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPATHOBJ_vGetBounds ENDP ; ULONG64 __stdcall NtGdiPathToRegion( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPathToRegion PROC STDCALL mov r10 , rcx mov eax , 4811 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPathToRegion ENDP ; ULONG64 __stdcall NtGdiPlgBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPlgBlt PROC STDCALL mov r10 , rcx mov eax , 4812 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPlgBlt ENDP ; ULONG64 __stdcall NtGdiPolyDraw( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyDraw PROC STDCALL mov r10 , rcx mov eax , 4813 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyDraw ENDP ; ULONG64 __stdcall NtGdiPolyTextOutW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyTextOutW PROC STDCALL mov r10 , rcx mov eax , 4814 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPolyTextOutW ENDP ; ULONG64 __stdcall NtGdiPtInRegion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPtInRegion PROC STDCALL mov r10 , rcx mov eax , 4815 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPtInRegion ENDP ; ULONG64 __stdcall NtGdiPtVisible( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPtVisible PROC STDCALL mov r10 , rcx mov eax , 4816 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiPtVisible ENDP ; ULONG64 __stdcall NtGdiQueryFonts( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiQueryFonts PROC STDCALL mov r10 , rcx mov eax , 4817 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiQueryFonts ENDP ; ULONG64 __stdcall NtGdiRemoveFontResourceW( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRemoveFontResourceW PROC STDCALL mov r10 , rcx mov eax , 4818 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRemoveFontResourceW ENDP ; ULONG64 __stdcall NtGdiRemoveMergeFont( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRemoveMergeFont PROC STDCALL mov r10 , rcx mov eax , 4819 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRemoveMergeFont ENDP ; ULONG64 __stdcall NtGdiResetDC( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiResetDC PROC STDCALL mov r10 , rcx mov eax , 4820 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiResetDC ENDP ; ULONG64 __stdcall NtGdiResizePalette( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiResizePalette PROC STDCALL mov r10 , rcx mov eax , 4821 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiResizePalette ENDP ; ULONG64 __stdcall NtGdiRoundRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRoundRect PROC STDCALL mov r10 , rcx mov eax , 4822 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiRoundRect ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bEnum( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_bEnum PROC STDCALL mov r10 , rcx mov eax , 4823 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_bEnum ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bEnumPositionsOnly( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_bEnumPositionsOnly PROC STDCALL mov r10 , rcx mov eax , 4824 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_bEnumPositionsOnly ENDP ; ULONG64 __stdcall NtGdiSTROBJ_bGetAdvanceWidths( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_bGetAdvanceWidths PROC STDCALL mov r10 , rcx mov eax , 4825 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_bGetAdvanceWidths ENDP ; ULONG64 __stdcall NtGdiSTROBJ_dwGetCodePage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_dwGetCodePage PROC STDCALL mov r10 , rcx mov eax , 4826 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_dwGetCodePage ENDP ; ULONG64 __stdcall NtGdiSTROBJ_vEnumStart( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_vEnumStart PROC STDCALL mov r10 , rcx mov eax , 4827 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSTROBJ_vEnumStart ENDP ; ULONG64 __stdcall NtGdiScaleRgn( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleRgn PROC STDCALL mov r10 , rcx mov eax , 4828 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleRgn ENDP ; ULONG64 __stdcall NtGdiScaleValues( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleValues PROC STDCALL mov r10 , rcx mov eax , 4829 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleValues ENDP ; ULONG64 __stdcall NtGdiScaleViewportExtEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleViewportExtEx PROC STDCALL mov r10 , rcx mov eax , 4830 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleViewportExtEx ENDP ; ULONG64 __stdcall NtGdiScaleWindowExtEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleWindowExtEx PROC STDCALL mov r10 , rcx mov eax , 4831 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiScaleWindowExtEx ENDP ; ULONG64 __stdcall NtGdiSelectBrush( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectBrush PROC STDCALL mov r10 , rcx mov eax , 4832 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectBrush ENDP ; ULONG64 __stdcall NtGdiSelectClipPath( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectClipPath PROC STDCALL mov r10 , rcx mov eax , 4833 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectClipPath ENDP ; ULONG64 __stdcall NtGdiSelectPen( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectPen PROC STDCALL mov r10 , rcx mov eax , 4834 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSelectPen ENDP ; ULONG64 __stdcall NtGdiSetBitmapAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBitmapAttributes PROC STDCALL mov r10 , rcx mov eax , 4835 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBitmapAttributes ENDP ; ULONG64 __stdcall NtGdiSetBrushAttributes( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBrushAttributes PROC STDCALL mov r10 , rcx mov eax , 4836 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetBrushAttributes ENDP ; ULONG64 __stdcall NtGdiSetColorAdjustment( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetColorAdjustment PROC STDCALL mov r10 , rcx mov eax , 4837 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetColorAdjustment ENDP ; ULONG64 __stdcall NtGdiSetColorSpace( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetColorSpace PROC STDCALL mov r10 , rcx mov eax , 4838 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetColorSpace ENDP ; ULONG64 __stdcall NtGdiSetDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4839 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiSetFontXform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetFontXform PROC STDCALL mov r10 , rcx mov eax , 4840 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetFontXform ENDP ; ULONG64 __stdcall NtGdiSetIcmMode( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetIcmMode PROC STDCALL mov r10 , rcx mov eax , 4841 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetIcmMode ENDP ; ULONG64 __stdcall NtGdiSetLinkedUFIs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetLinkedUFIs PROC STDCALL mov r10 , rcx mov eax , 4842 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetLinkedUFIs ENDP ; ULONG64 __stdcall NtGdiSetMagicColors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetMagicColors PROC STDCALL mov r10 , rcx mov eax , 4843 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetMagicColors ENDP ; ULONG64 __stdcall NtGdiSetOPMSigningKeyAndSequenceNumbers( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetOPMSigningKeyAndSequenceNumbers PROC STDCALL mov r10 , rcx mov eax , 4844 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetOPMSigningKeyAndSequenceNumbers ENDP ; ULONG64 __stdcall NtGdiSetPUMPDOBJ( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPUMPDOBJ PROC STDCALL mov r10 , rcx mov eax , 4845 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPUMPDOBJ ENDP ; ULONG64 __stdcall NtGdiSetPixelFormat( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPixelFormat PROC STDCALL mov r10 , rcx mov eax , 4846 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPixelFormat ENDP ; ULONG64 __stdcall NtGdiSetPrivateDeviceGammaRamp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPrivateDeviceGammaRamp PROC STDCALL mov r10 , rcx mov eax , 4847 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetPrivateDeviceGammaRamp ENDP ; ULONG64 __stdcall NtGdiSetRectRgn( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetRectRgn PROC STDCALL mov r10 , rcx mov eax , 4848 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetRectRgn ENDP ; ULONG64 __stdcall NtGdiSetSizeDevice( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetSizeDevice PROC STDCALL mov r10 , rcx mov eax , 4849 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetSizeDevice ENDP ; ULONG64 __stdcall NtGdiSetSystemPaletteUse( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetSystemPaletteUse PROC STDCALL mov r10 , rcx mov eax , 4850 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetSystemPaletteUse ENDP ; ULONG64 __stdcall NtGdiSetTextJustification( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetTextJustification PROC STDCALL mov r10 , rcx mov eax , 4851 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetTextJustification ENDP ; ULONG64 __stdcall NtGdiSetUMPDSandboxState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetUMPDSandboxState PROC STDCALL mov r10 , rcx mov eax , 4852 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSetUMPDSandboxState ENDP ; ULONG64 __stdcall NtGdiStartDoc( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStartDoc PROC STDCALL mov r10 , rcx mov eax , 4853 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStartDoc ENDP ; ULONG64 __stdcall NtGdiStartPage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStartPage PROC STDCALL mov r10 , rcx mov eax , 4854 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStartPage ENDP ; ULONG64 __stdcall NtGdiStrokeAndFillPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStrokeAndFillPath PROC STDCALL mov r10 , rcx mov eax , 4855 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStrokeAndFillPath ENDP ; ULONG64 __stdcall NtGdiStrokePath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStrokePath PROC STDCALL mov r10 , rcx mov eax , 4856 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiStrokePath ENDP ; ULONG64 __stdcall NtGdiSwapBuffers( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSwapBuffers PROC STDCALL mov r10 , rcx mov eax , 4857 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiSwapBuffers ENDP ; ULONG64 __stdcall NtGdiTransparentBlt( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiTransparentBlt PROC STDCALL mov r10 , rcx mov eax , 4858 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiTransparentBlt ENDP ; ULONG64 __stdcall NtGdiUMPDEngFreeUserMem( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUMPDEngFreeUserMem PROC STDCALL mov r10 , rcx mov eax , 4859 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUMPDEngFreeUserMem ENDP ; ULONG64 __stdcall NtGdiUnloadPrinterDriver( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUnloadPrinterDriver PROC STDCALL mov r10 , rcx mov eax , 4860 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUnloadPrinterDriver ENDP ; ULONG64 __stdcall NtGdiUnmapMemFont( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUnmapMemFont PROC STDCALL mov r10 , rcx mov eax , 4861 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUnmapMemFont ENDP ; ULONG64 __stdcall NtGdiUpdateColors( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUpdateColors PROC STDCALL mov r10 , rcx mov eax , 4862 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUpdateColors ENDP ; ULONG64 __stdcall NtGdiUpdateTransform( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUpdateTransform PROC STDCALL mov r10 , rcx mov eax , 4863 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiUpdateTransform ENDP ; ULONG64 __stdcall NtGdiWidenPath( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiWidenPath PROC STDCALL mov r10 , rcx mov eax , 4864 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiWidenPath ENDP ; ULONG64 __stdcall NtGdiXFORMOBJ_bApplyXform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXFORMOBJ_bApplyXform PROC STDCALL mov r10 , rcx mov eax , 4865 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXFORMOBJ_bApplyXform ENDP ; ULONG64 __stdcall NtGdiXFORMOBJ_iGetXform( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXFORMOBJ_iGetXform PROC STDCALL mov r10 , rcx mov eax , 4866 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXFORMOBJ_iGetXform ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_cGetPalette( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXLATEOBJ_cGetPalette PROC STDCALL mov r10 , rcx mov eax , 4867 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXLATEOBJ_cGetPalette ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_hGetColorTransform( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXLATEOBJ_hGetColorTransform PROC STDCALL mov r10 , rcx mov eax , 4868 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXLATEOBJ_hGetColorTransform ENDP ; ULONG64 __stdcall NtGdiXLATEOBJ_iXlate( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXLATEOBJ_iXlate PROC STDCALL mov r10 , rcx mov eax , 4869 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtGdiXLATEOBJ_iXlate ENDP ; ULONG64 __stdcall NtHWCursorUpdatePointer( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtHWCursorUpdatePointer PROC STDCALL mov r10 , rcx mov eax , 4870 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtHWCursorUpdatePointer ENDP ; ULONG64 __stdcall NtMITActivateInputProcessing( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITActivateInputProcessing PROC STDCALL mov r10 , rcx mov eax , 4871 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITActivateInputProcessing ENDP ; ULONG64 __stdcall NtMITBindInputTypeToMonitors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITBindInputTypeToMonitors PROC STDCALL mov r10 , rcx mov eax , 4872 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITBindInputTypeToMonitors ENDP ; ULONG64 __stdcall NtMITCoreMsgKGetConnectionHandle( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITCoreMsgKGetConnectionHandle PROC STDCALL mov r10 , rcx mov eax , 4873 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITCoreMsgKGetConnectionHandle ENDP ; ULONG64 __stdcall NtMITCoreMsgKOpenConnectionTo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITCoreMsgKOpenConnectionTo PROC STDCALL mov r10 , rcx mov eax , 4874 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITCoreMsgKOpenConnectionTo ENDP ; ULONG64 __stdcall NtMITCoreMsgKSend( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITCoreMsgKSend PROC STDCALL mov r10 , rcx mov eax , 4875 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITCoreMsgKSend ENDP ; ULONG64 __stdcall NtMITDeactivateInputProcessing( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITDeactivateInputProcessing PROC STDCALL mov r10 , rcx mov eax , 4876 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITDeactivateInputProcessing ENDP ; ULONG64 __stdcall NtMITDisableMouseIntercept( ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITDisableMouseIntercept PROC STDCALL mov r10 , rcx mov eax , 4877 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITDisableMouseIntercept ENDP ; ULONG64 __stdcall NtMITEnableMouseIntercept( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITEnableMouseIntercept PROC STDCALL mov r10 , rcx mov eax , 4878 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITEnableMouseIntercept ENDP ; ULONG64 __stdcall NtMITGetCursorUpdateHandle( ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITGetCursorUpdateHandle PROC STDCALL mov r10 , rcx mov eax , 4879 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITGetCursorUpdateHandle ENDP ; ULONG64 __stdcall NtMITSetInputCallbacks( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITSetInputCallbacks PROC STDCALL mov r10 , rcx mov eax , 4880 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITSetInputCallbacks ENDP ; ULONG64 __stdcall NtMITSynthesizeMouseInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITSynthesizeMouseInput PROC STDCALL mov r10 , rcx mov eax , 4881 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITSynthesizeMouseInput ENDP ; ULONG64 __stdcall NtMITSynthesizeMouseWheel( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITSynthesizeMouseWheel PROC STDCALL mov r10 , rcx mov eax , 4882 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITSynthesizeMouseWheel ENDP ; ULONG64 __stdcall NtMITSynthesizeTouchInput( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITSynthesizeTouchInput PROC STDCALL mov r10 , rcx mov eax , 4883 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITSynthesizeTouchInput ENDP ; ULONG64 __stdcall NtMITUpdateInputGlobals( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITUpdateInputGlobals PROC STDCALL mov r10 , rcx mov eax , 4884 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITUpdateInputGlobals ENDP ; ULONG64 __stdcall NtMITWaitForMultipleObjectsEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtMITWaitForMultipleObjectsEx PROC STDCALL mov r10 , rcx mov eax , 4885 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtMITWaitForMultipleObjectsEx ENDP ; ULONG64 __stdcall NtNotifyPresentToCompositionSurface( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtNotifyPresentToCompositionSurface PROC STDCALL mov r10 , rcx mov eax , 4886 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtNotifyPresentToCompositionSurface ENDP ; ULONG64 __stdcall NtOpenCompositionSurfaceDirtyRegion( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtOpenCompositionSurfaceDirtyRegion PROC STDCALL mov r10 , rcx mov eax , 4887 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtOpenCompositionSurfaceDirtyRegion ENDP ; ULONG64 __stdcall NtOpenCompositionSurfaceSectionInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtOpenCompositionSurfaceSectionInfo PROC STDCALL mov r10 , rcx mov eax , 4888 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtOpenCompositionSurfaceSectionInfo ENDP ; ULONG64 __stdcall NtOpenCompositionSurfaceSwapChainHandleInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtOpenCompositionSurfaceSwapChainHandleInfo PROC STDCALL mov r10 , rcx mov eax , 4889 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtOpenCompositionSurfaceSwapChainHandleInfo ENDP ; ULONG64 __stdcall NtQueryCompositionInputIsImplicit( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputIsImplicit PROC STDCALL mov r10 , rcx mov eax , 4890 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputIsImplicit ENDP ; ULONG64 __stdcall NtQueryCompositionInputQueueAndTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputQueueAndTransform PROC STDCALL mov r10 , rcx mov eax , 4891 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputQueueAndTransform ENDP ; ULONG64 __stdcall NtQueryCompositionInputSink( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputSink PROC STDCALL mov r10 , rcx mov eax , 4892 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputSink ENDP ; ULONG64 __stdcall NtQueryCompositionInputSinkLuid( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputSinkLuid PROC STDCALL mov r10 , rcx mov eax , 4893 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputSinkLuid ENDP ; ULONG64 __stdcall NtQueryCompositionInputSinkViewId( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputSinkViewId PROC STDCALL mov r10 , rcx mov eax , 4894 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionInputSinkViewId ENDP ; ULONG64 __stdcall NtQueryCompositionSurfaceBinding( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceBinding PROC STDCALL mov r10 , rcx mov eax , 4895 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceBinding ENDP ; ULONG64 __stdcall NtQueryCompositionSurfaceHDRMetaData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceHDRMetaData PROC STDCALL mov r10 , rcx mov eax , 4896 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceHDRMetaData ENDP ; ULONG64 __stdcall NtQueryCompositionSurfaceRenderingRealization( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceRenderingRealization PROC STDCALL mov r10 , rcx mov eax , 4897 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceRenderingRealization ENDP ; ULONG64 __stdcall NtQueryCompositionSurfaceStatistics( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceStatistics PROC STDCALL mov r10 , rcx mov eax , 4898 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtQueryCompositionSurfaceStatistics ENDP ; ULONG64 __stdcall NtRIMAddInputObserver( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMAddInputObserver PROC STDCALL mov r10 , rcx mov eax , 4899 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMAddInputObserver ENDP ; ULONG64 __stdcall NtRIMAreSiblingDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMAreSiblingDevices PROC STDCALL mov r10 , rcx mov eax , 4900 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMAreSiblingDevices ENDP ; ULONG64 __stdcall NtRIMDeviceIoControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMDeviceIoControl PROC STDCALL mov r10 , rcx mov eax , 4901 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMDeviceIoControl ENDP ; ULONG64 __stdcall NtRIMEnableMonitorMappingForDevice( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMEnableMonitorMappingForDevice PROC STDCALL mov r10 , rcx mov eax , 4902 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMEnableMonitorMappingForDevice ENDP ; ULONG64 __stdcall NtRIMFreeInputBuffer( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMFreeInputBuffer PROC STDCALL mov r10 , rcx mov eax , 4903 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMFreeInputBuffer ENDP ; ULONG64 __stdcall NtRIMGetDevicePreparsedData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDevicePreparsedData PROC STDCALL mov r10 , rcx mov eax , 4904 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDevicePreparsedData ENDP ; ULONG64 __stdcall NtRIMGetDevicePreparsedDataLockfree( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDevicePreparsedDataLockfree PROC STDCALL mov r10 , rcx mov eax , 4905 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDevicePreparsedDataLockfree ENDP ; ULONG64 __stdcall NtRIMGetDeviceProperties( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDeviceProperties PROC STDCALL mov r10 , rcx mov eax , 4906 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDeviceProperties ENDP ; ULONG64 __stdcall NtRIMGetDevicePropertiesLockfree( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDevicePropertiesLockfree PROC STDCALL mov r10 , rcx mov eax , 4907 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetDevicePropertiesLockfree ENDP ; ULONG64 __stdcall NtRIMGetPhysicalDeviceRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetPhysicalDeviceRect PROC STDCALL mov r10 , rcx mov eax , 4908 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetPhysicalDeviceRect ENDP ; ULONG64 __stdcall NtRIMGetSourceProcessId( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetSourceProcessId PROC STDCALL mov r10 , rcx mov eax , 4909 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMGetSourceProcessId ENDP ; ULONG64 __stdcall NtRIMObserveNextInput( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMObserveNextInput PROC STDCALL mov r10 , rcx mov eax , 4910 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMObserveNextInput ENDP ; ULONG64 __stdcall NtRIMOnPnpNotification( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMOnPnpNotification PROC STDCALL mov r10 , rcx mov eax , 4911 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMOnPnpNotification ENDP ; ULONG64 __stdcall NtRIMOnTimerNotification( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMOnTimerNotification PROC STDCALL mov r10 , rcx mov eax , 4912 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMOnTimerNotification ENDP ; ULONG64 __stdcall NtRIMReadInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMReadInput PROC STDCALL mov r10 , rcx mov eax , 4913 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMReadInput ENDP ; ULONG64 __stdcall NtRIMRegisterForInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMRegisterForInput PROC STDCALL mov r10 , rcx mov eax , 4914 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMRegisterForInput ENDP ; ULONG64 __stdcall NtRIMRemoveInputObserver( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMRemoveInputObserver PROC STDCALL mov r10 , rcx mov eax , 4915 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMRemoveInputObserver ENDP ; ULONG64 __stdcall NtRIMSetTestModeStatus( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMSetTestModeStatus PROC STDCALL mov r10 , rcx mov eax , 4916 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMSetTestModeStatus ENDP ; ULONG64 __stdcall NtRIMUnregisterForInput( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMUnregisterForInput PROC STDCALL mov r10 , rcx mov eax , 4917 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMUnregisterForInput ENDP ; ULONG64 __stdcall NtRIMUpdateInputObserverRegistration( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtRIMUpdateInputObserverRegistration PROC STDCALL mov r10 , rcx mov eax , 4918 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtRIMUpdateInputObserverRegistration ENDP ; ULONG64 __stdcall NtSetCompositionSurfaceAnalogExclusive( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceAnalogExclusive PROC STDCALL mov r10 , rcx mov eax , 4919 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceAnalogExclusive ENDP ; ULONG64 __stdcall NtSetCompositionSurfaceBufferUsage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceBufferUsage PROC STDCALL mov r10 , rcx mov eax , 4920 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceBufferUsage ENDP ; ULONG64 __stdcall NtSetCompositionSurfaceDirectFlipState( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceDirectFlipState PROC STDCALL mov r10 , rcx mov eax , 4921 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceDirectFlipState ENDP ; ULONG64 __stdcall NtSetCompositionSurfaceHDRMetaData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceHDRMetaData PROC STDCALL mov r10 , rcx mov eax , 4922 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceHDRMetaData ENDP ; ULONG64 __stdcall NtSetCompositionSurfaceIndependentFlipInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceIndependentFlipInfo PROC STDCALL mov r10 , rcx mov eax , 4923 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceIndependentFlipInfo ENDP ; ULONG64 __stdcall NtSetCompositionSurfaceStatistics( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceStatistics PROC STDCALL mov r10 , rcx mov eax , 4924 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtSetCompositionSurfaceStatistics ENDP ; ULONG64 __stdcall NtTokenManagerConfirmOutstandingAnalogToken( ); _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerConfirmOutstandingAnalogToken PROC STDCALL mov r10 , rcx mov eax , 4925 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerConfirmOutstandingAnalogToken ENDP ; ULONG64 __stdcall NtTokenManagerCreateCompositionTokenHandle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerCreateCompositionTokenHandle PROC STDCALL mov r10 , rcx mov eax , 4926 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerCreateCompositionTokenHandle ENDP ; ULONG64 __stdcall NtTokenManagerGetAnalogExclusiveSurfaceUpdates( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerGetAnalogExclusiveSurfaceUpdates PROC STDCALL mov r10 , rcx mov eax , 4927 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerGetAnalogExclusiveSurfaceUpdates ENDP ; ULONG64 __stdcall NtTokenManagerGetAnalogExclusiveTokenEvent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerGetAnalogExclusiveTokenEvent PROC STDCALL mov r10 , rcx mov eax , 4928 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerGetAnalogExclusiveTokenEvent ENDP ; ULONG64 __stdcall NtTokenManagerOpenSectionAndEvents( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerOpenSectionAndEvents PROC STDCALL mov r10 , rcx mov eax , 4929 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerOpenSectionAndEvents ENDP ; ULONG64 __stdcall NtTokenManagerThread( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerThread PROC STDCALL mov r10 , rcx mov eax , 4930 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtTokenManagerThread ENDP ; ULONG64 __stdcall NtUnBindCompositionSurface( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUnBindCompositionSurface PROC STDCALL mov r10 , rcx mov eax , 4931 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUnBindCompositionSurface ENDP ; ULONG64 __stdcall NtUpdateInputSinkTransforms( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUpdateInputSinkTransforms PROC STDCALL mov r10 , rcx mov eax , 4932 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUpdateInputSinkTransforms ENDP ; ULONG64 __stdcall NtUserAcquireIAMKey( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAcquireIAMKey PROC STDCALL mov r10 , rcx mov eax , 4933 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAcquireIAMKey ENDP ; ULONG64 __stdcall NtUserAcquireInteractiveControlBackgroundAccess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAcquireInteractiveControlBackgroundAccess PROC STDCALL mov r10 , rcx mov eax , 4934 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAcquireInteractiveControlBackgroundAccess ENDP ; ULONG64 __stdcall NtUserAddClipboardFormatListener( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAddClipboardFormatListener PROC STDCALL mov r10 , rcx mov eax , 4935 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAddClipboardFormatListener ENDP ; ULONG64 __stdcall NtUserAssociateInputContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAssociateInputContext PROC STDCALL mov r10 , rcx mov eax , 4936 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAssociateInputContext ENDP ; ULONG64 __stdcall NtUserAutoPromoteMouseInPointer( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAutoPromoteMouseInPointer PROC STDCALL mov r10 , rcx mov eax , 4937 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAutoPromoteMouseInPointer ENDP ; ULONG64 __stdcall NtUserAutoRotateScreen( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserAutoRotateScreen PROC STDCALL mov r10 , rcx mov eax , 4938 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserAutoRotateScreen ENDP ; ULONG64 __stdcall NtUserBeginLayoutUpdate( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBeginLayoutUpdate PROC STDCALL mov r10 , rcx mov eax , 4939 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBeginLayoutUpdate ENDP ; ULONG64 __stdcall NtUserBlockInput( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBlockInput PROC STDCALL mov r10 , rcx mov eax , 4940 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBlockInput ENDP ; ULONG64 __stdcall NtUserBroadcastThemeChangeEvent( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBroadcastThemeChangeEvent PROC STDCALL mov r10 , rcx mov eax , 4941 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBroadcastThemeChangeEvent ENDP ; ULONG64 __stdcall NtUserBuildHimcList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildHimcList PROC STDCALL mov r10 , rcx mov eax , 4942 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildHimcList ENDP ; ULONG64 __stdcall NtUserBuildPropList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildPropList PROC STDCALL mov r10 , rcx mov eax , 4943 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserBuildPropList ENDP ; ULONG64 __stdcall NtUserCalculatePopupWindowPosition( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCalculatePopupWindowPosition PROC STDCALL mov r10 , rcx mov eax , 4944 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCalculatePopupWindowPosition ENDP ; ULONG64 __stdcall NtUserCallHwndOpt( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndOpt PROC STDCALL mov r10 , rcx mov eax , 4945 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCallHwndOpt ENDP ; ULONG64 __stdcall NtUserCanBrokerForceForeground( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCanBrokerForceForeground PROC STDCALL mov r10 , rcx mov eax , 4946 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCanBrokerForceForeground ENDP ; ULONG64 __stdcall NtUserChangeDisplaySettings( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserChangeDisplaySettings PROC STDCALL mov r10 , rcx mov eax , 4947 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserChangeDisplaySettings ENDP ; ULONG64 __stdcall NtUserChangeWindowMessageFilterEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserChangeWindowMessageFilterEx PROC STDCALL mov r10 , rcx mov eax , 4948 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserChangeWindowMessageFilterEx ENDP ; ULONG64 __stdcall NtUserCheckAccessForIntegrityLevel( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckAccessForIntegrityLevel PROC STDCALL mov r10 , rcx mov eax , 4949 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckAccessForIntegrityLevel ENDP ; ULONG64 __stdcall NtUserCheckProcessForClipboardAccess( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckProcessForClipboardAccess PROC STDCALL mov r10 , rcx mov eax , 4950 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckProcessForClipboardAccess ENDP ; ULONG64 __stdcall NtUserCheckProcessSession( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckProcessSession PROC STDCALL mov r10 , rcx mov eax , 4951 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckProcessSession ENDP ; ULONG64 __stdcall NtUserCheckWindowThreadDesktop( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckWindowThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 4952 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCheckWindowThreadDesktop ENDP ; ULONG64 __stdcall NtUserChildWindowFromPointEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserChildWindowFromPointEx PROC STDCALL mov r10 , rcx mov eax , 4953 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserChildWindowFromPointEx ENDP ; ULONG64 __stdcall NtUserClearForeground( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserClearForeground PROC STDCALL mov r10 , rcx mov eax , 4954 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserClearForeground ENDP ; ULONG64 __stdcall NtUserClipCursor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserClipCursor PROC STDCALL mov r10 , rcx mov eax , 4955 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserClipCursor ENDP ; ULONG64 __stdcall NtUserCompositionInputSinkLuidFromPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCompositionInputSinkLuidFromPoint PROC STDCALL mov r10 , rcx mov eax , 4956 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCompositionInputSinkLuidFromPoint ENDP ; ULONG64 __stdcall NtUserCompositionInputSinkViewInstanceIdFromPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCompositionInputSinkViewInstanceIdFromPoint PROC STDCALL mov r10 , rcx mov eax , 4957 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCompositionInputSinkViewInstanceIdFromPoint ENDP ; ULONG64 __stdcall NtUserConfirmResizeCommit( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserConfirmResizeCommit PROC STDCALL mov r10 , rcx mov eax , 4958 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserConfirmResizeCommit ENDP ; ULONG64 __stdcall NtUserCreateDCompositionHwndTarget( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateDCompositionHwndTarget PROC STDCALL mov r10 , rcx mov eax , 4959 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateDCompositionHwndTarget ENDP ; ULONG64 __stdcall NtUserCreateDesktopEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateDesktopEx PROC STDCALL mov r10 , rcx mov eax , 4960 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateDesktopEx ENDP ; ULONG64 __stdcall NtUserCreateEmptyCursorObject( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateEmptyCursorObject PROC STDCALL mov r10 , rcx mov eax , 4961 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateEmptyCursorObject ENDP ; ULONG64 __stdcall NtUserCreateInputContext( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateInputContext PROC STDCALL mov r10 , rcx mov eax , 4962 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateInputContext ENDP ; ULONG64 __stdcall NtUserCreateWindowStation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateWindowStation PROC STDCALL mov r10 , rcx mov eax , 4963 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCreateWindowStation ENDP ; ULONG64 __stdcall NtUserCtxDisplayIOCtl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserCtxDisplayIOCtl PROC STDCALL mov r10 , rcx mov eax , 4964 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserCtxDisplayIOCtl ENDP ; ULONG64 __stdcall NtUserDeferWindowPosAndBand( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDeferWindowPosAndBand PROC STDCALL mov r10 , rcx mov eax , 4965 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDeferWindowPosAndBand ENDP ; ULONG64 __stdcall NtUserDelegateCapturePointers( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDelegateCapturePointers PROC STDCALL mov r10 , rcx mov eax , 4966 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDelegateCapturePointers ENDP ; ULONG64 __stdcall NtUserDelegateInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDelegateInput PROC STDCALL mov r10 , rcx mov eax , 4967 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDelegateInput ENDP ; ULONG64 __stdcall NtUserDestroyDCompositionHwndTarget( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyDCompositionHwndTarget PROC STDCALL mov r10 , rcx mov eax , 4968 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyDCompositionHwndTarget ENDP ; ULONG64 __stdcall NtUserDestroyInputContext( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyInputContext PROC STDCALL mov r10 , rcx mov eax , 4969 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDestroyInputContext ENDP ; ULONG64 __stdcall NtUserDisableImmersiveOwner( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisableImmersiveOwner PROC STDCALL mov r10 , rcx mov eax , 4970 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisableImmersiveOwner ENDP ; ULONG64 __stdcall NtUserDisableProcessWindowFiltering( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisableProcessWindowFiltering PROC STDCALL mov r10 , rcx mov eax , 4971 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisableProcessWindowFiltering ENDP ; ULONG64 __stdcall NtUserDisableThreadIme( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisableThreadIme PROC STDCALL mov r10 , rcx mov eax , 4972 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisableThreadIme ENDP ; ULONG64 __stdcall NtUserDiscardPointerFrameMessages( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDiscardPointerFrameMessages PROC STDCALL mov r10 , rcx mov eax , 4973 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDiscardPointerFrameMessages ENDP ; ULONG64 __stdcall NtUserDisplayConfigGetDeviceInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisplayConfigGetDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4974 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisplayConfigGetDeviceInfo ENDP ; ULONG64 __stdcall NtUserDisplayConfigSetDeviceInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisplayConfigSetDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 4975 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDisplayConfigSetDeviceInfo ENDP ; ULONG64 __stdcall NtUserDoSoundConnect( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDoSoundConnect PROC STDCALL mov r10 , rcx mov eax , 4976 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDoSoundConnect ENDP ; ULONG64 __stdcall NtUserDoSoundDisconnect( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDoSoundDisconnect PROC STDCALL mov r10 , rcx mov eax , 4977 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDoSoundDisconnect ENDP ; ULONG64 __stdcall NtUserDragDetect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDragDetect PROC STDCALL mov r10 , rcx mov eax , 4978 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDragDetect ENDP ; ULONG64 __stdcall NtUserDragObject( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDragObject PROC STDCALL mov r10 , rcx mov eax , 4979 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDragObject ENDP ; ULONG64 __stdcall NtUserDrawAnimatedRects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawAnimatedRects PROC STDCALL mov r10 , rcx mov eax , 4980 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawAnimatedRects ENDP ; ULONG64 __stdcall NtUserDrawCaption( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawCaption PROC STDCALL mov r10 , rcx mov eax , 4981 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawCaption ENDP ; ULONG64 __stdcall NtUserDrawCaptionTemp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawCaptionTemp PROC STDCALL mov r10 , rcx mov eax , 4982 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawCaptionTemp ENDP ; ULONG64 __stdcall NtUserDrawMenuBarTemp( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawMenuBarTemp PROC STDCALL mov r10 , rcx mov eax , 4983 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDrawMenuBarTemp ENDP ; ULONG64 __stdcall NtUserDwmGetRemoteSessionOcclusionEvent( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmGetRemoteSessionOcclusionEvent PROC STDCALL mov r10 , rcx mov eax , 4984 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmGetRemoteSessionOcclusionEvent ENDP ; ULONG64 __stdcall NtUserDwmGetRemoteSessionOcclusionState( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmGetRemoteSessionOcclusionState PROC STDCALL mov r10 , rcx mov eax , 4985 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmGetRemoteSessionOcclusionState ENDP ; ULONG64 __stdcall NtUserDwmKernelShutdown( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmKernelShutdown PROC STDCALL mov r10 , rcx mov eax , 4986 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmKernelShutdown ENDP ; ULONG64 __stdcall NtUserDwmKernelStartup( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmKernelStartup PROC STDCALL mov r10 , rcx mov eax , 4987 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmKernelStartup ENDP ; ULONG64 __stdcall NtUserDwmValidateWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmValidateWindow PROC STDCALL mov r10 , rcx mov eax , 4988 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserDwmValidateWindow ENDP ; ULONG64 __stdcall NtUserEnableChildWindowDpiMessage( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableChildWindowDpiMessage PROC STDCALL mov r10 , rcx mov eax , 4989 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableChildWindowDpiMessage ENDP ; ULONG64 __stdcall NtUserEnableIAMAccess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableIAMAccess PROC STDCALL mov r10 , rcx mov eax , 4990 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableIAMAccess ENDP ; ULONG64 __stdcall NtUserEnableMouseInPointer( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableMouseInPointer PROC STDCALL mov r10 , rcx mov eax , 4991 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableMouseInPointer ENDP ; ULONG64 __stdcall NtUserEnableMouseInputForCursorSuppression( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableMouseInputForCursorSuppression PROC STDCALL mov r10 , rcx mov eax , 4992 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableMouseInputForCursorSuppression ENDP ; ULONG64 __stdcall NtUserEnableNonClientDpiScaling( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableNonClientDpiScaling PROC STDCALL mov r10 , rcx mov eax , 4993 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableNonClientDpiScaling ENDP ; ULONG64 __stdcall NtUserEnableResizeLayoutSynchronization( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableResizeLayoutSynchronization PROC STDCALL mov r10 , rcx mov eax , 4994 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableResizeLayoutSynchronization ENDP ; ULONG64 __stdcall NtUserEnableTouchPad( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableTouchPad PROC STDCALL mov r10 , rcx mov eax , 4995 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableTouchPad ENDP ; ULONG64 __stdcall NtUserEnableWindowGDIScaledDpiMessage( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableWindowGDIScaledDpiMessage PROC STDCALL mov r10 , rcx mov eax , 4996 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableWindowGDIScaledDpiMessage ENDP ; ULONG64 __stdcall NtUserEnableWindowResizeOptimization( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableWindowResizeOptimization PROC STDCALL mov r10 , rcx mov eax , 4997 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEnableWindowResizeOptimization ENDP ; ULONG64 __stdcall NtUserEndMenu( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEndMenu PROC STDCALL mov r10 , rcx mov eax , 4998 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEndMenu ENDP ; ULONG64 __stdcall NtUserEvent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserEvent PROC STDCALL mov r10 , rcx mov eax , 4999 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserEvent ENDP ; ULONG64 __stdcall NtUserFlashWindowEx( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserFlashWindowEx PROC STDCALL mov r10 , rcx mov eax , 5000 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserFlashWindowEx ENDP ; ULONG64 __stdcall NtUserFrostCrashedWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserFrostCrashedWindow PROC STDCALL mov r10 , rcx mov eax , 5001 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserFrostCrashedWindow ENDP ; ULONG64 __stdcall NtUserFunctionalizeDisplayConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserFunctionalizeDisplayConfig PROC STDCALL mov r10 , rcx mov eax , 5002 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserFunctionalizeDisplayConfig ENDP ; ULONG64 __stdcall NtUserGetActiveProcessesDpis( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetActiveProcessesDpis PROC STDCALL mov r10 , rcx mov eax , 5003 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetActiveProcessesDpis ENDP ; ULONG64 __stdcall NtUserGetAppImeLevel( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAppImeLevel PROC STDCALL mov r10 , rcx mov eax , 5004 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAppImeLevel ENDP ; ULONG64 __stdcall NtUserGetAutoRotationState( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAutoRotationState PROC STDCALL mov r10 , rcx mov eax , 5005 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetAutoRotationState ENDP ; ULONG64 __stdcall NtUserGetCIMSSM( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCIMSSM PROC STDCALL mov r10 , rcx mov eax , 5006 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCIMSSM ENDP ; ULONG64 __stdcall NtUserGetCaretPos( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCaretPos PROC STDCALL mov r10 , rcx mov eax , 5007 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCaretPos ENDP ; ULONG64 __stdcall NtUserGetClipCursor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipCursor PROC STDCALL mov r10 , rcx mov eax , 5008 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipCursor ENDP ; ULONG64 __stdcall NtUserGetClipboardAccessToken( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardAccessToken PROC STDCALL mov r10 , rcx mov eax , 5009 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardAccessToken ENDP ; ULONG64 __stdcall NtUserGetClipboardViewer( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardViewer PROC STDCALL mov r10 , rcx mov eax , 5010 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetClipboardViewer ENDP ; ULONG64 __stdcall NtUserGetComboBoxInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetComboBoxInfo PROC STDCALL mov r10 , rcx mov eax , 5011 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetComboBoxInfo ENDP ; ULONG64 __stdcall NtUserGetCurrentInputMessageSource( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCurrentInputMessageSource PROC STDCALL mov r10 , rcx mov eax , 5012 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCurrentInputMessageSource ENDP ; ULONG64 __stdcall NtUserGetCursor( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursor PROC STDCALL mov r10 , rcx mov eax , 5013 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursor ENDP ; ULONG64 __stdcall NtUserGetCursorDims( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursorDims PROC STDCALL mov r10 , rcx mov eax , 5014 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursorDims ENDP ; ULONG64 __stdcall NtUserGetCursorInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursorInfo PROC STDCALL mov r10 , rcx mov eax , 5015 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetCursorInfo ENDP ; ULONG64 __stdcall NtUserGetDManipHookInitFunction( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDManipHookInitFunction PROC STDCALL mov r10 , rcx mov eax , 5016 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDManipHookInitFunction ENDP ; ULONG64 __stdcall NtUserGetDesktopID( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDesktopID PROC STDCALL mov r10 , rcx mov eax , 5017 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDesktopID ENDP ; ULONG64 __stdcall NtUserGetDisplayAutoRotationPreferences( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDisplayAutoRotationPreferences PROC STDCALL mov r10 , rcx mov eax , 5018 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDisplayAutoRotationPreferences ENDP ; ULONG64 __stdcall NtUserGetDisplayAutoRotationPreferencesByProcessId( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDisplayAutoRotationPreferencesByProcessId PROC STDCALL mov r10 , rcx mov eax , 5019 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDisplayAutoRotationPreferencesByProcessId ENDP ; ULONG64 __stdcall NtUserGetDisplayConfigBufferSizes( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDisplayConfigBufferSizes PROC STDCALL mov r10 , rcx mov eax , 5020 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDisplayConfigBufferSizes ENDP ; ULONG64 __stdcall NtUserGetDpiForCurrentProcess( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDpiForCurrentProcess PROC STDCALL mov r10 , rcx mov eax , 5021 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDpiForCurrentProcess ENDP ; ULONG64 __stdcall NtUserGetDpiForMonitor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDpiForMonitor PROC STDCALL mov r10 , rcx mov eax , 5022 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetDpiForMonitor ENDP ; ULONG64 __stdcall NtUserGetGestureConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGestureConfig PROC STDCALL mov r10 , rcx mov eax , 5023 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGestureConfig ENDP ; ULONG64 __stdcall NtUserGetGestureExtArgs( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGestureExtArgs PROC STDCALL mov r10 , rcx mov eax , 5024 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGestureExtArgs ENDP ; ULONG64 __stdcall NtUserGetGestureInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGestureInfo PROC STDCALL mov r10 , rcx mov eax , 5025 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGestureInfo ENDP ; ULONG64 __stdcall NtUserGetGuiResources( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGuiResources PROC STDCALL mov r10 , rcx mov eax , 5026 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetGuiResources ENDP ; ULONG64 __stdcall NtUserGetHDevName( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetHDevName PROC STDCALL mov r10 , rcx mov eax , 5027 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetHDevName ENDP ; ULONG64 __stdcall NtUserGetHimetricScaleFactorFromPixelLocation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetHimetricScaleFactorFromPixelLocation PROC STDCALL mov r10 , rcx mov eax , 5028 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetHimetricScaleFactorFromPixelLocation ENDP ; ULONG64 __stdcall NtUserGetImeHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetImeHotKey PROC STDCALL mov r10 , rcx mov eax , 5029 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetImeHotKey ENDP ; ULONG64 __stdcall NtUserGetImeInfoEx( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetImeInfoEx PROC STDCALL mov r10 , rcx mov eax , 5030 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetImeInfoEx ENDP ; ULONG64 __stdcall NtUserGetInputLocaleInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInputLocaleInfo PROC STDCALL mov r10 , rcx mov eax , 5031 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInputLocaleInfo ENDP ; ULONG64 __stdcall NtUserGetInteractiveControlDeviceInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInteractiveControlDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 5032 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInteractiveControlDeviceInfo ENDP ; ULONG64 __stdcall NtUserGetInteractiveControlInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInteractiveControlInfo PROC STDCALL mov r10 , rcx mov eax , 5033 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInteractiveControlInfo ENDP ; ULONG64 __stdcall NtUserGetInteractiveCtrlSupportedWaveforms( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInteractiveCtrlSupportedWaveforms PROC STDCALL mov r10 , rcx mov eax , 5034 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInteractiveCtrlSupportedWaveforms ENDP ; ULONG64 __stdcall NtUserGetInternalWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInternalWindowPos PROC STDCALL mov r10 , rcx mov eax , 5035 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetInternalWindowPos ENDP ; ULONG64 __stdcall NtUserGetKeyNameText( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyNameText PROC STDCALL mov r10 , rcx mov eax , 5036 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyNameText ENDP ; ULONG64 __stdcall NtUserGetKeyboardLayoutName( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyboardLayoutName PROC STDCALL mov r10 , rcx mov eax , 5037 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetKeyboardLayoutName ENDP ; ULONG64 __stdcall NtUserGetLayeredWindowAttributes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetLayeredWindowAttributes PROC STDCALL mov r10 , rcx mov eax , 5038 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetLayeredWindowAttributes ENDP ; ULONG64 __stdcall NtUserGetListBoxInfo( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetListBoxInfo PROC STDCALL mov r10 , rcx mov eax , 5039 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetListBoxInfo ENDP ; ULONG64 __stdcall NtUserGetMenuIndex( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMenuIndex PROC STDCALL mov r10 , rcx mov eax , 5040 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMenuIndex ENDP ; ULONG64 __stdcall NtUserGetMenuItemRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMenuItemRect PROC STDCALL mov r10 , rcx mov eax , 5041 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMenuItemRect ENDP ; ULONG64 __stdcall NtUserGetMouseMovePointsEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMouseMovePointsEx PROC STDCALL mov r10 , rcx mov eax , 5042 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetMouseMovePointsEx ENDP ; ULONG64 __stdcall NtUserGetPhysicalDeviceRect( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPhysicalDeviceRect PROC STDCALL mov r10 , rcx mov eax , 5043 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPhysicalDeviceRect ENDP ; ULONG64 __stdcall NtUserGetPointerCursorId( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerCursorId PROC STDCALL mov r10 , rcx mov eax , 5044 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerCursorId ENDP ; ULONG64 __stdcall NtUserGetPointerDevice( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDevice PROC STDCALL mov r10 , rcx mov eax , 5045 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDevice ENDP ; ULONG64 __stdcall NtUserGetPointerDeviceCursors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDeviceCursors PROC STDCALL mov r10 , rcx mov eax , 5046 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDeviceCursors ENDP ; ULONG64 __stdcall NtUserGetPointerDeviceProperties( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDeviceProperties PROC STDCALL mov r10 , rcx mov eax , 5047 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDeviceProperties ENDP ; ULONG64 __stdcall NtUserGetPointerDeviceRects( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDeviceRects PROC STDCALL mov r10 , rcx mov eax , 5048 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDeviceRects ENDP ; ULONG64 __stdcall NtUserGetPointerDevices( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDevices PROC STDCALL mov r10 , rcx mov eax , 5049 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerDevices ENDP ; ULONG64 __stdcall NtUserGetPointerFrameArrivalTimes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerFrameArrivalTimes PROC STDCALL mov r10 , rcx mov eax , 5050 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerFrameArrivalTimes ENDP ; ULONG64 __stdcall NtUserGetPointerInfoList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerInfoList PROC STDCALL mov r10 , rcx mov eax , 5051 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerInfoList ENDP ; ULONG64 __stdcall NtUserGetPointerInputTransform( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerInputTransform PROC STDCALL mov r10 , rcx mov eax , 5052 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerInputTransform ENDP ; ULONG64 __stdcall NtUserGetPointerType( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerType PROC STDCALL mov r10 , rcx mov eax , 5053 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPointerType ENDP ; ULONG64 __stdcall NtUserGetPrecisionTouchPadConfiguration( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPrecisionTouchPadConfiguration PROC STDCALL mov r10 , rcx mov eax , 5054 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPrecisionTouchPadConfiguration ENDP ; ULONG64 __stdcall NtUserGetPriorityClipboardFormat( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPriorityClipboardFormat PROC STDCALL mov r10 , rcx mov eax , 5055 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetPriorityClipboardFormat ENDP ; ULONG64 __stdcall NtUserGetProcessDpiAwarenessContext( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProcessDpiAwarenessContext PROC STDCALL mov r10 , rcx mov eax , 5056 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProcessDpiAwarenessContext ENDP ; ULONG64 __stdcall NtUserGetProcessUIContextInformation( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProcessUIContextInformation PROC STDCALL mov r10 , rcx mov eax , 5057 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetProcessUIContextInformation ENDP ; ULONG64 __stdcall NtUserGetQueueStatusReadonly( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetQueueStatusReadonly PROC STDCALL mov r10 , rcx mov eax , 5058 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetQueueStatusReadonly ENDP ; ULONG64 __stdcall NtUserGetRawInputBuffer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputBuffer PROC STDCALL mov r10 , rcx mov eax , 5059 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputBuffer ENDP ; ULONG64 __stdcall NtUserGetRawInputData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputData PROC STDCALL mov r10 , rcx mov eax , 5060 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputData ENDP ; ULONG64 __stdcall NtUserGetRawInputDeviceInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputDeviceInfo PROC STDCALL mov r10 , rcx mov eax , 5061 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputDeviceInfo ENDP ; ULONG64 __stdcall NtUserGetRawInputDeviceList( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputDeviceList PROC STDCALL mov r10 , rcx mov eax , 5062 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawInputDeviceList ENDP ; ULONG64 __stdcall NtUserGetRawPointerDeviceData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawPointerDeviceData PROC STDCALL mov r10 , rcx mov eax , 5063 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRawPointerDeviceData ENDP ; ULONG64 __stdcall NtUserGetRegisteredRawInputDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRegisteredRawInputDevices PROC STDCALL mov r10 , rcx mov eax , 5064 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetRegisteredRawInputDevices ENDP ; ULONG64 __stdcall NtUserGetResizeDCompositionSynchronizationObject( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetResizeDCompositionSynchronizationObject PROC STDCALL mov r10 , rcx mov eax , 5065 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetResizeDCompositionSynchronizationObject ENDP ; ULONG64 __stdcall NtUserGetTopLevelWindow( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTopLevelWindow PROC STDCALL mov r10 , rcx mov eax , 5066 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTopLevelWindow ENDP ; ULONG64 __stdcall NtUserGetTouchInputInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTouchInputInfo PROC STDCALL mov r10 , rcx mov eax , 5067 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTouchInputInfo ENDP ; ULONG64 __stdcall NtUserGetTouchValidationStatus( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTouchValidationStatus PROC STDCALL mov r10 , rcx mov eax , 5068 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetTouchValidationStatus ENDP ; ULONG64 __stdcall NtUserGetUpdatedClipboardFormats( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetUpdatedClipboardFormats PROC STDCALL mov r10 , rcx mov eax , 5069 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetUpdatedClipboardFormats ENDP ; ULONG64 __stdcall NtUserGetWOWClass( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWOWClass PROC STDCALL mov r10 , rcx mov eax , 5070 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWOWClass ENDP ; ULONG64 __stdcall NtUserGetWindowBand( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowBand PROC STDCALL mov r10 , rcx mov eax , 5071 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowBand ENDP ; ULONG64 __stdcall NtUserGetWindowCompositionAttribute( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowCompositionAttribute PROC STDCALL mov r10 , rcx mov eax , 5072 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowCompositionAttribute ENDP ; ULONG64 __stdcall NtUserGetWindowCompositionInfo( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowCompositionInfo PROC STDCALL mov r10 , rcx mov eax , 5073 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowCompositionInfo ENDP ; ULONG64 __stdcall NtUserGetWindowDisplayAffinity( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowDisplayAffinity PROC STDCALL mov r10 , rcx mov eax , 5074 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowDisplayAffinity ENDP ; ULONG64 __stdcall NtUserGetWindowFeedbackSetting( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowFeedbackSetting PROC STDCALL mov r10 , rcx mov eax , 5075 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowFeedbackSetting ENDP ; ULONG64 __stdcall NtUserGetWindowMinimizeRect( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowMinimizeRect PROC STDCALL mov r10 , rcx mov eax , 5076 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowMinimizeRect ENDP ; ULONG64 __stdcall NtUserGetWindowRgnEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowRgnEx PROC STDCALL mov r10 , rcx mov eax , 5077 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGetWindowRgnEx ENDP ; ULONG64 __stdcall NtUserGhostWindowFromHungWindow( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserGhostWindowFromHungWindow PROC STDCALL mov r10 , rcx mov eax , 5078 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserGhostWindowFromHungWindow ENDP ; ULONG64 __stdcall NtUserHandleDelegatedInput( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHandleDelegatedInput PROC STDCALL mov r10 , rcx mov eax , 5079 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHandleDelegatedInput ENDP ; ULONG64 __stdcall NtUserHardErrorControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHardErrorControl PROC STDCALL mov r10 , rcx mov eax , 5080 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHardErrorControl ENDP ; ULONG64 __stdcall NtUserHidePointerContactVisualization( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHidePointerContactVisualization PROC STDCALL mov r10 , rcx mov eax , 5081 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHidePointerContactVisualization ENDP ; ULONG64 __stdcall NtUserHiliteMenuItem( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHiliteMenuItem PROC STDCALL mov r10 , rcx mov eax , 5082 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHiliteMenuItem ENDP ; ULONG64 __stdcall NtUserHungWindowFromGhostWindow( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHungWindowFromGhostWindow PROC STDCALL mov r10 , rcx mov eax , 5083 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHungWindowFromGhostWindow ENDP ; ULONG64 __stdcall NtUserHwndQueryRedirectionInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHwndQueryRedirectionInfo PROC STDCALL mov r10 , rcx mov eax , 5084 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHwndQueryRedirectionInfo ENDP ; ULONG64 __stdcall NtUserHwndSetRedirectionInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserHwndSetRedirectionInfo PROC STDCALL mov r10 , rcx mov eax , 5085 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserHwndSetRedirectionInfo ENDP ; ULONG64 __stdcall NtUserImpersonateDdeClientWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserImpersonateDdeClientWindow PROC STDCALL mov r10 , rcx mov eax , 5086 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserImpersonateDdeClientWindow ENDP ; ULONG64 __stdcall NtUserInheritWindowMonitor( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInheritWindowMonitor PROC STDCALL mov r10 , rcx mov eax , 5087 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInheritWindowMonitor ENDP ; ULONG64 __stdcall NtUserInitTask( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 , ULONG64 arg_11 , ULONG64 arg_12 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitTask PROC STDCALL mov r10 , rcx mov eax , 5088 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitTask ENDP ; ULONG64 __stdcall NtUserInitialize( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitialize PROC STDCALL mov r10 , rcx mov eax , 5089 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitialize ENDP ; ULONG64 __stdcall NtUserInitializeClientPfnArrays( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeClientPfnArrays PROC STDCALL mov r10 , rcx mov eax , 5090 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeClientPfnArrays ENDP ; ULONG64 __stdcall NtUserInitializeGenericHidInjection( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeGenericHidInjection PROC STDCALL mov r10 , rcx mov eax , 5091 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeGenericHidInjection ENDP ; ULONG64 __stdcall NtUserInitializeInputDeviceInjection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeInputDeviceInjection PROC STDCALL mov r10 , rcx mov eax , 5092 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeInputDeviceInjection ENDP ; ULONG64 __stdcall NtUserInitializePointerDeviceInjection( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializePointerDeviceInjection PROC STDCALL mov r10 , rcx mov eax , 5093 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializePointerDeviceInjection ENDP ; ULONG64 __stdcall NtUserInitializePointerDeviceInjectionEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializePointerDeviceInjectionEx PROC STDCALL mov r10 , rcx mov eax , 5094 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializePointerDeviceInjectionEx ENDP ; ULONG64 __stdcall NtUserInitializeTouchInjection( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeTouchInjection PROC STDCALL mov r10 , rcx mov eax , 5095 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInitializeTouchInjection ENDP ; ULONG64 __stdcall NtUserInjectDeviceInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectDeviceInput PROC STDCALL mov r10 , rcx mov eax , 5096 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectDeviceInput ENDP ; ULONG64 __stdcall NtUserInjectGenericHidInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectGenericHidInput PROC STDCALL mov r10 , rcx mov eax , 5097 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectGenericHidInput ENDP ; ULONG64 __stdcall NtUserInjectGesture( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectGesture PROC STDCALL mov r10 , rcx mov eax , 5098 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectGesture ENDP ; ULONG64 __stdcall NtUserInjectKeyboardInput( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectKeyboardInput PROC STDCALL mov r10 , rcx mov eax , 5099 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectKeyboardInput ENDP ; ULONG64 __stdcall NtUserInjectMouseInput( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectMouseInput PROC STDCALL mov r10 , rcx mov eax , 5100 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectMouseInput ENDP ; ULONG64 __stdcall NtUserInjectPointerInput( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectPointerInput PROC STDCALL mov r10 , rcx mov eax , 5101 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectPointerInput ENDP ; ULONG64 __stdcall NtUserInjectTouchInput( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectTouchInput PROC STDCALL mov r10 , rcx mov eax , 5102 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInjectTouchInput ENDP ; ULONG64 __stdcall NtUserInteractiveControlQueryUsage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInteractiveControlQueryUsage PROC STDCALL mov r10 , rcx mov eax , 5103 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInteractiveControlQueryUsage ENDP ; ULONG64 __stdcall NtUserInternalGetWindowIcon( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserInternalGetWindowIcon PROC STDCALL mov r10 , rcx mov eax , 5104 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserInternalGetWindowIcon ENDP ; ULONG64 __stdcall NtUserIsChildWindowDpiMessageEnabled( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsChildWindowDpiMessageEnabled PROC STDCALL mov r10 , rcx mov eax , 5105 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsChildWindowDpiMessageEnabled ENDP ; ULONG64 __stdcall NtUserIsMouseInPointerEnabled( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsMouseInPointerEnabled PROC STDCALL mov r10 , rcx mov eax , 5106 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsMouseInPointerEnabled ENDP ; ULONG64 __stdcall NtUserIsMouseInputEnabled( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsMouseInputEnabled PROC STDCALL mov r10 , rcx mov eax , 5107 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsMouseInputEnabled ENDP ; ULONG64 __stdcall NtUserIsNonClientDpiScalingEnabled( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsNonClientDpiScalingEnabled PROC STDCALL mov r10 , rcx mov eax , 5108 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsNonClientDpiScalingEnabled ENDP ; ULONG64 __stdcall NtUserIsResizeLayoutSynchronizationEnabled( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsResizeLayoutSynchronizationEnabled PROC STDCALL mov r10 , rcx mov eax , 5109 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsResizeLayoutSynchronizationEnabled ENDP ; ULONG64 __stdcall NtUserIsTopLevelWindow( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsTopLevelWindow PROC STDCALL mov r10 , rcx mov eax , 5110 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsTopLevelWindow ENDP ; ULONG64 __stdcall NtUserIsTouchWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsTouchWindow PROC STDCALL mov r10 , rcx mov eax , 5111 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsTouchWindow ENDP ; ULONG64 __stdcall NtUserIsWindowBroadcastingDpiToChildren( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsWindowBroadcastingDpiToChildren PROC STDCALL mov r10 , rcx mov eax , 5112 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsWindowBroadcastingDpiToChildren ENDP ; ULONG64 __stdcall NtUserIsWindowGDIScaledDpiMessageEnabled( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsWindowGDIScaledDpiMessageEnabled PROC STDCALL mov r10 , rcx mov eax , 5113 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserIsWindowGDIScaledDpiMessageEnabled ENDP ; ULONG64 __stdcall NtUserLayoutCompleted( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLayoutCompleted PROC STDCALL mov r10 , rcx mov eax , 5114 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLayoutCompleted ENDP ; ULONG64 __stdcall NtUserLinkDpiCursor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLinkDpiCursor PROC STDCALL mov r10 , rcx mov eax , 5115 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLinkDpiCursor ENDP ; ULONG64 __stdcall NtUserLoadKeyboardLayoutEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLoadKeyboardLayoutEx PROC STDCALL mov r10 , rcx mov eax , 5116 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLoadKeyboardLayoutEx ENDP ; ULONG64 __stdcall NtUserLockCursor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockCursor PROC STDCALL mov r10 , rcx mov eax , 5117 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockCursor ENDP ; ULONG64 __stdcall NtUserLockWindowStation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockWindowStation PROC STDCALL mov r10 , rcx mov eax , 5118 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockWindowStation ENDP ; ULONG64 __stdcall NtUserLockWorkStation( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockWorkStation PROC STDCALL mov r10 , rcx mov eax , 5119 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLockWorkStation ENDP ; ULONG64 __stdcall NtUserLogicalToPerMonitorDPIPhysicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLogicalToPerMonitorDPIPhysicalPoint PROC STDCALL mov r10 , rcx mov eax , 5120 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLogicalToPerMonitorDPIPhysicalPoint ENDP ; ULONG64 __stdcall NtUserLogicalToPhysicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserLogicalToPhysicalPoint PROC STDCALL mov r10 , rcx mov eax , 5121 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserLogicalToPhysicalPoint ENDP ; ULONG64 __stdcall NtUserMNDragLeave( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMNDragLeave PROC STDCALL mov r10 , rcx mov eax , 5122 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMNDragLeave ENDP ; ULONG64 __stdcall NtUserMNDragOver( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMNDragOver PROC STDCALL mov r10 , rcx mov eax , 5123 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMNDragOver ENDP ; ULONG64 __stdcall NtUserMagControl( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMagControl PROC STDCALL mov r10 , rcx mov eax , 5124 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMagControl ENDP ; ULONG64 __stdcall NtUserMagGetContextInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMagGetContextInformation PROC STDCALL mov r10 , rcx mov eax , 5125 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMagGetContextInformation ENDP ; ULONG64 __stdcall NtUserMagSetContextInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMagSetContextInformation PROC STDCALL mov r10 , rcx mov eax , 5126 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMagSetContextInformation ENDP ; ULONG64 __stdcall NtUserMenuItemFromPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMenuItemFromPoint PROC STDCALL mov r10 , rcx mov eax , 5127 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMenuItemFromPoint ENDP ; ULONG64 __stdcall NtUserMinMaximize( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMinMaximize PROC STDCALL mov r10 , rcx mov eax , 5128 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMinMaximize ENDP ; ULONG64 __stdcall NtUserModifyWindowTouchCapability( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserModifyWindowTouchCapability PROC STDCALL mov r10 , rcx mov eax , 5129 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserModifyWindowTouchCapability ENDP ; ULONG64 __stdcall NtUserMsgWaitForMultipleObjectsEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserMsgWaitForMultipleObjectsEx PROC STDCALL mov r10 , rcx mov eax , 5130 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserMsgWaitForMultipleObjectsEx ENDP ; ULONG64 __stdcall NtUserNavigateFocus( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserNavigateFocus PROC STDCALL mov r10 , rcx mov eax , 5131 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserNavigateFocus ENDP ; ULONG64 __stdcall NtUserNotifyIMEStatus( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserNotifyIMEStatus PROC STDCALL mov r10 , rcx mov eax , 5132 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserNotifyIMEStatus ENDP ; ULONG64 __stdcall NtUserOpenInputDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenInputDesktop PROC STDCALL mov r10 , rcx mov eax , 5133 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenInputDesktop ENDP ; ULONG64 __stdcall NtUserOpenThreadDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenThreadDesktop PROC STDCALL mov r10 , rcx mov eax , 5134 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserOpenThreadDesktop ENDP ; ULONG64 __stdcall NtUserPaintMonitor( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPaintMonitor PROC STDCALL mov r10 , rcx mov eax , 5135 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPaintMonitor ENDP ; ULONG64 __stdcall NtUserPerMonitorDPIPhysicalToLogicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPerMonitorDPIPhysicalToLogicalPoint PROC STDCALL mov r10 , rcx mov eax , 5136 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPerMonitorDPIPhysicalToLogicalPoint ENDP ; ULONG64 __stdcall NtUserPhysicalToLogicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPhysicalToLogicalPoint PROC STDCALL mov r10 , rcx mov eax , 5137 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPhysicalToLogicalPoint ENDP ; ULONG64 __stdcall NtUserPrintWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPrintWindow PROC STDCALL mov r10 , rcx mov eax , 5138 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPrintWindow ENDP ; ULONG64 __stdcall NtUserProcessInkFeedbackCommand( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserProcessInkFeedbackCommand PROC STDCALL mov r10 , rcx mov eax , 5139 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserProcessInkFeedbackCommand ENDP ; ULONG64 __stdcall NtUserPromoteMouseInPointer( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPromoteMouseInPointer PROC STDCALL mov r10 , rcx mov eax , 5140 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPromoteMouseInPointer ENDP ; ULONG64 __stdcall NtUserPromotePointer( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserPromotePointer PROC STDCALL mov r10 , rcx mov eax , 5141 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserPromotePointer ENDP ; ULONG64 __stdcall NtUserQueryBSDRWindow( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryBSDRWindow PROC STDCALL mov r10 , rcx mov eax , 5142 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryBSDRWindow ENDP ; ULONG64 __stdcall NtUserQueryDisplayConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryDisplayConfig PROC STDCALL mov r10 , rcx mov eax , 5143 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryDisplayConfig ENDP ; ULONG64 __stdcall NtUserQueryInformationThread( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryInformationThread PROC STDCALL mov r10 , rcx mov eax , 5144 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryInformationThread ENDP ; ULONG64 __stdcall NtUserQueryInputContext( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryInputContext PROC STDCALL mov r10 , rcx mov eax , 5145 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserQueryInputContext ENDP ; ULONG64 __stdcall NtUserQuerySendMessage( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserQuerySendMessage PROC STDCALL mov r10 , rcx mov eax , 5146 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserQuerySendMessage ENDP ; ULONG64 __stdcall NtUserRealChildWindowFromPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRealChildWindowFromPoint PROC STDCALL mov r10 , rcx mov eax , 5147 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRealChildWindowFromPoint ENDP ; ULONG64 __stdcall NtUserRealWaitMessageEx( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRealWaitMessageEx PROC STDCALL mov r10 , rcx mov eax , 5148 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRealWaitMessageEx ENDP ; ULONG64 __stdcall NtUserRegisterBSDRWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterBSDRWindow PROC STDCALL mov r10 , rcx mov eax , 5149 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterBSDRWindow ENDP ; ULONG64 __stdcall NtUserRegisterDManipHook( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterDManipHook PROC STDCALL mov r10 , rcx mov eax , 5150 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterDManipHook ENDP ; ULONG64 __stdcall NtUserRegisterEdgy( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterEdgy PROC STDCALL mov r10 , rcx mov eax , 5151 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterEdgy ENDP ; ULONG64 __stdcall NtUserRegisterErrorReportingDialog( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterErrorReportingDialog PROC STDCALL mov r10 , rcx mov eax , 5152 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterErrorReportingDialog ENDP ; ULONG64 __stdcall NtUserRegisterHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterHotKey PROC STDCALL mov r10 , rcx mov eax , 5153 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterHotKey ENDP ; ULONG64 __stdcall NtUserRegisterManipulationThread( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterManipulationThread PROC STDCALL mov r10 , rcx mov eax , 5154 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterManipulationThread ENDP ; ULONG64 __stdcall NtUserRegisterPointerDeviceNotifications( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterPointerDeviceNotifications PROC STDCALL mov r10 , rcx mov eax , 5155 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterPointerDeviceNotifications ENDP ; ULONG64 __stdcall NtUserRegisterPointerInputTarget( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterPointerInputTarget PROC STDCALL mov r10 , rcx mov eax , 5156 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterPointerInputTarget ENDP ; ULONG64 __stdcall NtUserRegisterRawInputDevices( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterRawInputDevices PROC STDCALL mov r10 , rcx mov eax , 5157 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterRawInputDevices ENDP ; ULONG64 __stdcall NtUserRegisterServicesProcess( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterServicesProcess PROC STDCALL mov r10 , rcx mov eax , 5158 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterServicesProcess ENDP ; ULONG64 __stdcall NtUserRegisterSessionPort( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterSessionPort PROC STDCALL mov r10 , rcx mov eax , 5159 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterSessionPort ENDP ; ULONG64 __stdcall NtUserRegisterShellPTPListener( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterShellPTPListener PROC STDCALL mov r10 , rcx mov eax , 5160 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterShellPTPListener ENDP ; ULONG64 __stdcall NtUserRegisterTasklist( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterTasklist PROC STDCALL mov r10 , rcx mov eax , 5161 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterTasklist ENDP ; ULONG64 __stdcall NtUserRegisterTouchHitTestingWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterTouchHitTestingWindow PROC STDCALL mov r10 , rcx mov eax , 5162 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterTouchHitTestingWindow ENDP ; ULONG64 __stdcall NtUserRegisterTouchPadCapable( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterTouchPadCapable PROC STDCALL mov r10 , rcx mov eax , 5163 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterTouchPadCapable ENDP ; ULONG64 __stdcall NtUserRegisterUserApiHook( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterUserApiHook PROC STDCALL mov r10 , rcx mov eax , 5164 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRegisterUserApiHook ENDP ; ULONG64 __stdcall NtUserReleaseDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserReleaseDC PROC STDCALL mov r10 , rcx mov eax , 5165 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserReleaseDC ENDP ; ULONG64 __stdcall NtUserReleaseDwmHitTestWaiters( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserReleaseDwmHitTestWaiters PROC STDCALL mov r10 , rcx mov eax , 5166 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserReleaseDwmHitTestWaiters ENDP ; ULONG64 __stdcall NtUserRemoteConnect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteConnect PROC STDCALL mov r10 , rcx mov eax , 5167 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteConnect ENDP ; ULONG64 __stdcall NtUserRemoteRedrawRectangle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteRedrawRectangle PROC STDCALL mov r10 , rcx mov eax , 5168 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteRedrawRectangle ENDP ; ULONG64 __stdcall NtUserRemoteRedrawScreen( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteRedrawScreen PROC STDCALL mov r10 , rcx mov eax , 5169 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteRedrawScreen ENDP ; ULONG64 __stdcall NtUserRemoteStopScreenUpdates( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteStopScreenUpdates PROC STDCALL mov r10 , rcx mov eax , 5170 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoteStopScreenUpdates ENDP ; ULONG64 __stdcall NtUserRemoveClipboardFormatListener( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveClipboardFormatListener PROC STDCALL mov r10 , rcx mov eax , 5171 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveClipboardFormatListener ENDP ; ULONG64 __stdcall NtUserRemoveInjectionDevice( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveInjectionDevice PROC STDCALL mov r10 , rcx mov eax , 5172 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserRemoveInjectionDevice ENDP ; ULONG64 __stdcall NtUserReportInertia( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserReportInertia PROC STDCALL mov r10 , rcx mov eax , 5173 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserReportInertia ENDP ; ULONG64 __stdcall NtUserResolveDesktopForWOW( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserResolveDesktopForWOW PROC STDCALL mov r10 , rcx mov eax , 5174 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserResolveDesktopForWOW ENDP ; ULONG64 __stdcall NtUserSendEventMessage( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSendEventMessage PROC STDCALL mov r10 , rcx mov eax , 5175 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSendEventMessage ENDP ; ULONG64 __stdcall NtUserSendInteractiveControlHapticsReport( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSendInteractiveControlHapticsReport PROC STDCALL mov r10 , rcx mov eax , 5176 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSendInteractiveControlHapticsReport ENDP ; ULONG64 __stdcall NtUserSetActivationFilter( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetActivationFilter PROC STDCALL mov r10 , rcx mov eax , 5177 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetActivationFilter ENDP ; ULONG64 __stdcall NtUserSetActiveProcessForMonitor( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetActiveProcessForMonitor PROC STDCALL mov r10 , rcx mov eax , 5178 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetActiveProcessForMonitor ENDP ; ULONG64 __stdcall NtUserSetAppImeLevel( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetAppImeLevel PROC STDCALL mov r10 , rcx mov eax , 5179 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetAppImeLevel ENDP ; ULONG64 __stdcall NtUserSetAutoRotation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetAutoRotation PROC STDCALL mov r10 , rcx mov eax , 5180 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetAutoRotation ENDP ; ULONG64 __stdcall NtUserSetBrokeredForeground( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetBrokeredForeground PROC STDCALL mov r10 , rcx mov eax , 5181 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetBrokeredForeground ENDP ; ULONG64 __stdcall NtUserSetCalibrationData( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCalibrationData PROC STDCALL mov r10 , rcx mov eax , 5182 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCalibrationData ENDP ; ULONG64 __stdcall NtUserSetChildWindowNoActivate( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetChildWindowNoActivate PROC STDCALL mov r10 , rcx mov eax , 5183 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetChildWindowNoActivate ENDP ; ULONG64 __stdcall NtUserSetClassWord( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClassWord PROC STDCALL mov r10 , rcx mov eax , 5184 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClassWord ENDP ; ULONG64 __stdcall NtUserSetCoreWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCoreWindow PROC STDCALL mov r10 , rcx mov eax , 5185 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCoreWindow ENDP ; ULONG64 __stdcall NtUserSetCoreWindowPartner( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCoreWindowPartner PROC STDCALL mov r10 , rcx mov eax , 5186 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCoreWindowPartner ENDP ; ULONG64 __stdcall NtUserSetCursorContents( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursorContents PROC STDCALL mov r10 , rcx mov eax , 5187 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursorContents ENDP ; ULONG64 __stdcall NtUserSetCursorPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursorPos PROC STDCALL mov r10 , rcx mov eax , 5188 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetCursorPos ENDP ; ULONG64 __stdcall NtUserSetDesktopColorTransform( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDesktopColorTransform PROC STDCALL mov r10 , rcx mov eax , 5189 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDesktopColorTransform ENDP ; ULONG64 __stdcall NtUserSetDialogControlDpiChangeBehavior( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDialogControlDpiChangeBehavior PROC STDCALL mov r10 , rcx mov eax , 5190 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDialogControlDpiChangeBehavior ENDP ; ULONG64 __stdcall NtUserSetDisplayAutoRotationPreferences( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDisplayAutoRotationPreferences PROC STDCALL mov r10 , rcx mov eax , 5191 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDisplayAutoRotationPreferences ENDP ; ULONG64 __stdcall NtUserSetDisplayConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDisplayConfig PROC STDCALL mov r10 , rcx mov eax , 5192 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDisplayConfig ENDP ; ULONG64 __stdcall NtUserSetDisplayMapping( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDisplayMapping PROC STDCALL mov r10 , rcx mov eax , 5193 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetDisplayMapping ENDP ; ULONG64 __stdcall NtUserSetFallbackForeground( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetFallbackForeground PROC STDCALL mov r10 , rcx mov eax , 5194 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetFallbackForeground ENDP ; ULONG64 __stdcall NtUserSetFeatureReportResponse( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetFeatureReportResponse PROC STDCALL mov r10 , rcx mov eax , 5195 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetFeatureReportResponse ENDP ; ULONG64 __stdcall NtUserSetGestureConfig( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetGestureConfig PROC STDCALL mov r10 , rcx mov eax , 5196 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetGestureConfig ENDP ; ULONG64 __stdcall NtUserSetImeHotKey( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetImeHotKey PROC STDCALL mov r10 , rcx mov eax , 5197 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetImeHotKey ENDP ; ULONG64 __stdcall NtUserSetImeInfoEx( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetImeInfoEx PROC STDCALL mov r10 , rcx mov eax , 5198 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetImeInfoEx ENDP ; ULONG64 __stdcall NtUserSetImeOwnerWindow( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetImeOwnerWindow PROC STDCALL mov r10 , rcx mov eax , 5199 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetImeOwnerWindow ENDP ; ULONG64 __stdcall NtUserSetInteractiveControlFocus( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInteractiveControlFocus PROC STDCALL mov r10 , rcx mov eax , 5200 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInteractiveControlFocus ENDP ; ULONG64 __stdcall NtUserSetInteractiveCtrlRotationAngle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInteractiveCtrlRotationAngle PROC STDCALL mov r10 , rcx mov eax , 5201 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInteractiveCtrlRotationAngle ENDP ; ULONG64 __stdcall NtUserSetInternalWindowPos( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInternalWindowPos PROC STDCALL mov r10 , rcx mov eax , 5202 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetInternalWindowPos ENDP ; ULONG64 __stdcall NtUserSetLayeredWindowAttributes( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetLayeredWindowAttributes PROC STDCALL mov r10 , rcx mov eax , 5203 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetLayeredWindowAttributes ENDP ; ULONG64 __stdcall NtUserSetManipulationInputTarget( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetManipulationInputTarget PROC STDCALL mov r10 , rcx mov eax , 5204 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetManipulationInputTarget ENDP ; ULONG64 __stdcall NtUserSetMenu( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenu PROC STDCALL mov r10 , rcx mov eax , 5205 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenu ENDP ; ULONG64 __stdcall NtUserSetMenuContextHelpId( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenuContextHelpId PROC STDCALL mov r10 , rcx mov eax , 5206 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenuContextHelpId ENDP ; ULONG64 __stdcall NtUserSetMenuFlagRtoL( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenuFlagRtoL PROC STDCALL mov r10 , rcx mov eax , 5207 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMenuFlagRtoL ENDP ; ULONG64 __stdcall NtUserSetMirrorRendering( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMirrorRendering PROC STDCALL mov r10 , rcx mov eax , 5208 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetMirrorRendering ENDP ; ULONG64 __stdcall NtUserSetObjectInformation( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetObjectInformation PROC STDCALL mov r10 , rcx mov eax , 5209 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetObjectInformation ENDP ; ULONG64 __stdcall NtUserSetPrecisionTouchPadConfiguration( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetPrecisionTouchPadConfiguration PROC STDCALL mov r10 , rcx mov eax , 5210 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetPrecisionTouchPadConfiguration ENDP ; ULONG64 __stdcall NtUserSetProcessDpiAwarenessContext( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessDpiAwarenessContext PROC STDCALL mov r10 , rcx mov eax , 5211 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessDpiAwarenessContext ENDP ; ULONG64 __stdcall NtUserSetProcessInteractionFlags( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessInteractionFlags PROC STDCALL mov r10 , rcx mov eax , 5212 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessInteractionFlags ENDP ; ULONG64 __stdcall NtUserSetProcessRestrictionExemption( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessRestrictionExemption PROC STDCALL mov r10 , rcx mov eax , 5213 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessRestrictionExemption ENDP ; ULONG64 __stdcall NtUserSetProcessUIAccessZorder( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessUIAccessZorder PROC STDCALL mov r10 , rcx mov eax , 5214 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetProcessUIAccessZorder ENDP ; ULONG64 __stdcall NtUserSetShellWindowEx( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetShellWindowEx PROC STDCALL mov r10 , rcx mov eax , 5215 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetShellWindowEx ENDP ; ULONG64 __stdcall NtUserSetSysColors( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSysColors PROC STDCALL mov r10 , rcx mov eax , 5216 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSysColors ENDP ; ULONG64 __stdcall NtUserSetSystemCursor( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSystemCursor PROC STDCALL mov r10 , rcx mov eax , 5217 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSystemCursor ENDP ; ULONG64 __stdcall NtUserSetSystemTimer( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSystemTimer PROC STDCALL mov r10 , rcx mov eax , 5218 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetSystemTimer ENDP ; ULONG64 __stdcall NtUserSetTargetForResourceBrokering( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetTargetForResourceBrokering PROC STDCALL mov r10 , rcx mov eax , 5219 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetTargetForResourceBrokering ENDP ; ULONG64 __stdcall NtUserSetThreadInputBlocked( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadInputBlocked PROC STDCALL mov r10 , rcx mov eax , 5220 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadInputBlocked ENDP ; ULONG64 __stdcall NtUserSetThreadLayoutHandles( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadLayoutHandles PROC STDCALL mov r10 , rcx mov eax , 5221 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetThreadLayoutHandles ENDP ; ULONG64 __stdcall NtUserSetWindowArrangement( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowArrangement PROC STDCALL mov r10 , rcx mov eax , 5222 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowArrangement ENDP ; ULONG64 __stdcall NtUserSetWindowBand( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowBand PROC STDCALL mov r10 , rcx mov eax , 5223 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowBand ENDP ; ULONG64 __stdcall NtUserSetWindowCompositionAttribute( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowCompositionAttribute PROC STDCALL mov r10 , rcx mov eax , 5224 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowCompositionAttribute ENDP ; ULONG64 __stdcall NtUserSetWindowCompositionTransition( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowCompositionTransition PROC STDCALL mov r10 , rcx mov eax , 5225 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowCompositionTransition ENDP ; ULONG64 __stdcall NtUserSetWindowDisplayAffinity( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowDisplayAffinity PROC STDCALL mov r10 , rcx mov eax , 5226 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowDisplayAffinity ENDP ; ULONG64 __stdcall NtUserSetWindowFeedbackSetting( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowFeedbackSetting PROC STDCALL mov r10 , rcx mov eax , 5227 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowFeedbackSetting ENDP ; ULONG64 __stdcall NtUserSetWindowRgnEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowRgnEx PROC STDCALL mov r10 , rcx mov eax , 5228 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowRgnEx ENDP ; ULONG64 __stdcall NtUserSetWindowShowState( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowShowState PROC STDCALL mov r10 , rcx mov eax , 5229 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowShowState ENDP ; ULONG64 __stdcall NtUserSetWindowStationUser( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowStationUser PROC STDCALL mov r10 , rcx mov eax , 5230 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowStationUser ENDP ; ULONG64 __stdcall NtUserShowCursor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowCursor PROC STDCALL mov r10 , rcx mov eax , 5231 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowCursor ENDP ; ULONG64 __stdcall NtUserShowSystemCursor( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowSystemCursor PROC STDCALL mov r10 , rcx mov eax , 5232 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShowSystemCursor ENDP ; ULONG64 __stdcall NtUserShutdownBlockReasonCreate( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShutdownBlockReasonCreate PROC STDCALL mov r10 , rcx mov eax , 5233 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShutdownBlockReasonCreate ENDP ; ULONG64 __stdcall NtUserShutdownBlockReasonQuery( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShutdownBlockReasonQuery PROC STDCALL mov r10 , rcx mov eax , 5234 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShutdownBlockReasonQuery ENDP ; ULONG64 __stdcall NtUserShutdownReasonDestroy( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserShutdownReasonDestroy PROC STDCALL mov r10 , rcx mov eax , 5235 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserShutdownReasonDestroy ENDP ; ULONG64 __stdcall NtUserSignalRedirectionStartComplete( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSignalRedirectionStartComplete PROC STDCALL mov r10 , rcx mov eax , 5236 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSignalRedirectionStartComplete ENDP ; ULONG64 __stdcall NtUserSlicerControl( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSlicerControl PROC STDCALL mov r10 , rcx mov eax , 5237 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSlicerControl ENDP ; ULONG64 __stdcall NtUserSoundSentry( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSoundSentry PROC STDCALL mov r10 , rcx mov eax , 5238 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSoundSentry ENDP ; ULONG64 __stdcall NtUserStopAndEndInertia( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserStopAndEndInertia PROC STDCALL mov r10 , rcx mov eax , 5239 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserStopAndEndInertia ENDP ; ULONG64 __stdcall NtUserSwitchDesktop( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSwitchDesktop PROC STDCALL mov r10 , rcx mov eax , 5240 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSwitchDesktop ENDP ; ULONG64 __stdcall NtUserSystemParametersInfoForDpi( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSystemParametersInfoForDpi PROC STDCALL mov r10 , rcx mov eax , 5241 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSystemParametersInfoForDpi ENDP ; ULONG64 __stdcall NtUserTestForInteractiveUser( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserTestForInteractiveUser PROC STDCALL mov r10 , rcx mov eax , 5242 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserTestForInteractiveUser ENDP ; ULONG64 __stdcall NtUserTrackPopupMenuEx( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserTrackPopupMenuEx PROC STDCALL mov r10 , rcx mov eax , 5243 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserTrackPopupMenuEx ENDP ; ULONG64 __stdcall NtUserTransformPoint( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserTransformPoint PROC STDCALL mov r10 , rcx mov eax , 5244 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserTransformPoint ENDP ; ULONG64 __stdcall NtUserTransformRect( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserTransformRect PROC STDCALL mov r10 , rcx mov eax , 5245 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserTransformRect ENDP ; ULONG64 __stdcall NtUserUndelegateInput( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUndelegateInput PROC STDCALL mov r10 , rcx mov eax , 5246 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUndelegateInput ENDP ; ULONG64 __stdcall NtUserUnloadKeyboardLayout( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnloadKeyboardLayout PROC STDCALL mov r10 , rcx mov eax , 5247 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnloadKeyboardLayout ENDP ; ULONG64 __stdcall NtUserUnlockWindowStation( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnlockWindowStation PROC STDCALL mov r10 , rcx mov eax , 5248 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnlockWindowStation ENDP ; ULONG64 __stdcall NtUserUnregisterHotKey( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterHotKey PROC STDCALL mov r10 , rcx mov eax , 5249 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterHotKey ENDP ; ULONG64 __stdcall NtUserUnregisterSessionPort( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterSessionPort PROC STDCALL mov r10 , rcx mov eax , 5250 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterSessionPort ENDP ; ULONG64 __stdcall NtUserUnregisterUserApiHook( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterUserApiHook PROC STDCALL mov r10 , rcx mov eax , 5251 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUnregisterUserApiHook ENDP ; ULONG64 __stdcall NtUserUpdateDefaultDesktopThumbnail( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateDefaultDesktopThumbnail PROC STDCALL mov r10 , rcx mov eax , 5252 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateDefaultDesktopThumbnail ENDP ; ULONG64 __stdcall NtUserUpdateInputContext( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateInputContext PROC STDCALL mov r10 , rcx mov eax , 5253 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateInputContext ENDP ; ULONG64 __stdcall NtUserUpdateInstance( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateInstance PROC STDCALL mov r10 , rcx mov eax , 5254 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateInstance ENDP ; ULONG64 __stdcall NtUserUpdateLayeredWindow( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 , ULONG64 arg_10 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateLayeredWindow PROC STDCALL mov r10 , rcx mov eax , 5255 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateLayeredWindow ENDP ; ULONG64 __stdcall NtUserUpdatePerUserSystemParameters( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdatePerUserSystemParameters PROC STDCALL mov r10 , rcx mov eax , 5256 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdatePerUserSystemParameters ENDP ; ULONG64 __stdcall NtUserUpdateWindowInputSinkHints( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateWindowInputSinkHints PROC STDCALL mov r10 , rcx mov eax , 5257 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateWindowInputSinkHints ENDP ; ULONG64 __stdcall NtUserUpdateWindowTrackingInfo( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateWindowTrackingInfo PROC STDCALL mov r10 , rcx mov eax , 5258 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUpdateWindowTrackingInfo ENDP ; ULONG64 __stdcall NtUserUserHandleGrantAccess( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserUserHandleGrantAccess PROC STDCALL mov r10 , rcx mov eax , 5259 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserUserHandleGrantAccess ENDP ; ULONG64 __stdcall NtUserValidateHandleSecure( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserValidateHandleSecure PROC STDCALL mov r10 , rcx mov eax , 5260 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserValidateHandleSecure ENDP ; ULONG64 __stdcall NtUserWOWCleanup( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWOWCleanup PROC STDCALL mov r10 , rcx mov eax , 5261 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWOWCleanup ENDP ; ULONG64 __stdcall NtUserWaitAvailableMessageEx( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitAvailableMessageEx PROC STDCALL mov r10 , rcx mov eax , 5262 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitAvailableMessageEx ENDP ; ULONG64 __stdcall NtUserWaitForInputIdle( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitForInputIdle PROC STDCALL mov r10 , rcx mov eax , 5263 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitForInputIdle ENDP ; ULONG64 __stdcall NtUserWaitForMsgAndEvent( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitForMsgAndEvent PROC STDCALL mov r10 , rcx mov eax , 5264 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitForMsgAndEvent ENDP ; ULONG64 __stdcall NtUserWaitForRedirectionStartComplete( ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitForRedirectionStartComplete PROC STDCALL mov r10 , rcx mov eax , 5265 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWaitForRedirectionStartComplete ENDP ; ULONG64 __stdcall NtUserWindowFromDC( ULONG64 arg_01 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWindowFromDC PROC STDCALL mov r10 , rcx mov eax , 5266 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWindowFromDC ENDP ; ULONG64 __stdcall NtUserWindowFromPhysicalPoint( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserWindowFromPhysicalPoint PROC STDCALL mov r10 , rcx mov eax , 5267 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserWindowFromPhysicalPoint ENDP ; ULONG64 __stdcall NtValidateCompositionSurfaceHandle( ULONG64 arg_01 , ULONG64 arg_02 ); _10_0_16299_sp0_windows_10_rs3_1709_NtValidateCompositionSurfaceHandle PROC STDCALL mov r10 , rcx mov eax , 5268 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtValidateCompositionSurfaceHandle ENDP ; ULONG64 __stdcall NtVisualCaptureBits( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 , ULONG64 arg_05 , ULONG64 arg_06 , ULONG64 arg_07 , ULONG64 arg_08 , ULONG64 arg_09 ); _10_0_16299_sp0_windows_10_rs3_1709_NtVisualCaptureBits PROC STDCALL mov r10 , rcx mov eax , 5269 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtVisualCaptureBits ENDP ; ULONG64 __stdcall NtUserSetClassLongPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClassLongPtr PROC STDCALL mov r10 , rcx mov eax , 5270 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetClassLongPtr ENDP ; ULONG64 __stdcall NtUserSetWindowLongPtr( ULONG64 arg_01 , ULONG64 arg_02 , ULONG64 arg_03 , ULONG64 arg_04 ); _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowLongPtr PROC STDCALL mov r10 , rcx mov eax , 5271 ;syscall db 0Fh , 05h ret _10_0_16299_sp0_windows_10_rs3_1709_NtUserSetWindowLongPtr ENDP
/* boost random/geometric_distribution.hpp header file * * Copyright Jens Maurer 2000-2001 * Copyright Steven Watanabe 2011 * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * See http://www.boost.org for most recent version including documentation. * * $Id$ * * Revision history * 2001-02-18 moved to individual header files */ #ifndef BOOST_RANDOM_GEOMETRIC_DISTRIBUTION_HPP #define BOOST_RANDOM_GEOMETRIC_DISTRIBUTION_HPP #include <boost/config/no_tr1/cmath.hpp> // std::log #include <iosfwd> #include <ios> #include <boost/assert.hpp> #include <boost/random/detail/config.hpp> #include <boost/random/detail/operators.hpp> #include <boost/random/uniform_01.hpp> namespace boost { namespace random { /** * An instantiation of the class template @c geometric_distribution models * a \random_distribution. The distribution produces positive * integers which are the number of bernoulli trials * with probability @c p required to get one that fails. * * For the geometric distribution, \f$p(i) = p(1-p)^{i}\f$. * * @xmlwarning * This distribution has been updated to match the C++ standard. * Its behavior has changed from the original * boost::geometric_distribution. A backwards compatible * wrapper is provided in namespace boost. * @endxmlwarning */ template<class IntType = int, class RealType = double> class geometric_distribution { public: typedef RealType input_type; typedef IntType result_type; class param_type { public: typedef geometric_distribution distribution_type; /** Constructs the parameters with p. */ explicit param_type(RealType p_arg = RealType(0.5)) : _p(p_arg) { BOOST_ASSERT(RealType(0) < _p && _p < RealType(1)); } /** Returns the p parameter of the distribution. */ RealType p() const { return _p; } /** Writes the parameters to a std::ostream. */ BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, param_type, parm) { os << parm._p; return os; } /** Reads the parameters from a std::istream. */ BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR(is, param_type, parm) { double p_in; if(is >> p_in) { if(p_in > RealType(0) && p_in < RealType(1)) { parm._p = p_in; } else { is.setstate(std::ios_base::failbit); } } return is; } /** Returns true if the two sets of parameters are equal. */ BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR(param_type, lhs, rhs) { return lhs._p == rhs._p; } /** Returns true if the two sets of parameters are different. */ BOOST_RANDOM_DETAIL_INEQUALITY_OPERATOR(param_type) private: RealType _p; }; /** * Contructs a new geometric_distribution with the paramter @c p. * * Requires: 0 < p < 1 */ explicit geometric_distribution(const RealType& p = RealType(0.5)) : _p(p) { BOOST_ASSERT(RealType(0) < _p && _p < RealType(1)); init(); } /** Constructs a new geometric_distribution from its parameters. */ explicit geometric_distribution(const param_type& parm) : _p(parm.p()) { init(); } // compiler-generated copy ctor and assignment operator are fine /** Returns: the distribution parameter @c p */ RealType p() const { return _p; } /** Returns the smallest value that the distribution can produce. */ IntType min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return IntType(0); } /** Returns the largest value that the distribution can produce. */ IntType max BOOST_PREVENT_MACRO_SUBSTITUTION () const { return (std::numeric_limits<IntType>::max)(); } /** Returns the parameters of the distribution. */ param_type param() const { return param_type(_p); } /** Sets the parameters of the distribution. */ void param(const param_type& parm) { _p = parm.p(); init(); } /** * Effects: Subsequent uses of the distribution do not depend * on values produced by any engine prior to invoking reset. */ void reset() { } /** * Returns a random variate distributed according to the * geometric_distribution. */ template<class Engine> result_type operator()(Engine& eng) const { using std::log; using std::floor; RealType x = RealType(1) - boost::uniform_01<RealType>()(eng); return IntType(floor(log(x) / _log_1mp)); } /** * Returns a random variate distributed according to the * geometric distribution with parameters specified by param. */ template<class Engine> result_type operator()(Engine& eng, const param_type& parm) const { return geometric_distribution(parm)(eng); } /** Writes the distribution to a @c std::ostream. */ BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, geometric_distribution, gd) { os << gd._p; return os; } /** Reads the distribution from a @c std::istream. */ BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR(is, geometric_distribution, gd) { param_type parm; if(is >> parm) { gd.param(parm); } return is; } /** * Returns true if the two distributions will produce identical * sequences of values given equal generators. */ BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR(geometric_distribution, lhs, rhs) { return lhs._p == rhs._p; } /** * Returns true if the two distributions may produce different * sequences of values given equal generators. */ BOOST_RANDOM_DETAIL_INEQUALITY_OPERATOR(geometric_distribution) private: /// \cond show_private void init() { using std::log; _log_1mp = log(1 - _p); } RealType _p; RealType _log_1mp; /// \endcond }; } // namespace random /// \cond show_deprecated /** * Provided for backwards compatibility. This class is * deprecated. It provides the old behavior of geometric_distribution * with \f$p(i) = (1-p) p^{i-1}\f$. */ template<class IntType = int, class RealType = double> class geometric_distribution { public: typedef RealType input_type; typedef IntType result_type; explicit geometric_distribution(RealType p_arg = RealType(0.5)) : _impl(1 - p_arg) {} RealType p() const { return 1 - _impl.p(); } void reset() {} template<class Engine> IntType operator()(Engine& eng) const { return _impl(eng) + IntType(1); } BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, geometric_distribution, gd) { os << gd.p(); return os; } BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR(is, geometric_distribution, gd) { RealType val; if(is >> val) { typename impl_type::param_type impl_param(1 - val); gd._impl.param(impl_param); } return is; } private: typedef random::geometric_distribution<IntType, RealType> impl_type; impl_type _impl; }; /// \endcond } // namespace boost #endif // BOOST_RANDOM_GEOMETRIC_DISTRIBUTION_HPP
; ************************************************************************************************************ ; ************************************************************************************************************ ; ; Maze Creator ; ; Uses RB,RC,RD,RF. ; ************************************************************************************************************ ; ************************************************************************************************************ CreateMaze: sex r2 lri rc,map ; point RC to the map. __CMFill: ldi MAZE_Wall ; fill the map with solid walls. str rc inc rc glo rc bnz __CMFill lri rc,map+16+1 ; row 1 column 1 lri rb,RandomNumber ; r5 = random subroutine (runs in R4) __CMGenerate: glo rc ; do not overright right hand wall ani 0Fh xri 0Fh bz __CMNext glo rc ; makes the checkerboard pattern. ani 011h xri 011h bnz __CMNext ldi MAZE_Open str rc ; write 00 (maze open) here. recall rb ; random number ani 15 smi 11 ; check mod 16 < 11 bdf __CMNotRight inc rc ; if so open square to right. ldi MAZE_Open str rc dec rc __CMNotRight: recall rb ; random number ani 15 smi 11 ; check mod 16 < 11 bdf __CMNotDown ghi rc ; open square down - point RD to it phi rd glo rc adi 16 plo rd ldi MAZE_Open ; open that square str rd __CMNotDown: __CMNext: inc rc ; next glo rc xri 0DFh ; reached bottom right ? bnz __CMGenerate return ; ************************************************************************************************************ ; ************************************************************************************************************ ; ; Random Number Generator - same as class LFSR in gen.py ; ; uses RF. ; ************************************************************************************************************ ; ************************************************************************************************************ RandomNumber: lri rf,__RNHighM1+1 __RNHighM1: ldi 0ACh ; get seeded value shr ; shift it right str rf ; write it back ldi (__RNLowM1+1) & 0FFh ; change pointer plo rf __RNLowM1: ldi 0E1h ; get upper seeded value shrc ; rotate it right and in str rf ; write it back. sex r2 ; save at TOS str r2 bnf __RNNoToggle ; if bit shifted out set ldi (__RNHighM1+1) & 0FFh ; exor the high bit with $B4 plo rf ldn rf xri 0B4h str rf __RNNoToggle: ldn r2 ; read TOS. shl ; put bit 7 into DF ldi 0 ; add 0 + (R2) + DF adc return br RandomNumber ; is re-entrant.
; A038715: a(n) = floor(n/4)*ceiling((n+2)/4). ; 0,0,0,0,2,2,2,3,6,6,6,8,12,12,12,15,20,20,20,24,30,30,30,35,42,42,42,48,56,56,56,63,72,72,72,80,90,90,90,99,110,110,110,120,132,132,132,143,156,156,156,168,182,182,182,195,210,210,210,224,240 mov $1,5 add $1,$0 div $1,4 mov $2,$0 div $2,4 mul $1,$2
; A275937: The number of distinct patterns of the smallest number of unit squares required to enclose n units of area, where corner contact is allowed. ; 1,1,2,1,3,1,1,4,2,4,1 mov $2,5 lpb $0 mov $1,$0 dif $0,2 add $2,1 mod $1,$2 sub $0,$1 lpe div $0,2 add $0,1
#include <hxcpp.h> #ifndef INCLUDED_lime_graphics_opengl_ext_OES_mapbuffer #include <lime/graphics/opengl/ext/OES_mapbuffer.h> #endif HX_DEFINE_STACK_FRAME(_hx_pos_c25d4af8f239f11a_4_new,"lime.graphics.opengl.ext.OES_mapbuffer","new",0x321fb62a,"lime.graphics.opengl.ext.OES_mapbuffer.new","lime/graphics/opengl/ext/OES_mapbuffer.hx",4,0x4ed60928) namespace lime{ namespace graphics{ namespace opengl{ namespace ext{ void OES_mapbuffer_obj::__construct(){ HX_STACKFRAME(&_hx_pos_c25d4af8f239f11a_4_new) HXLINE( 9) this->BUFFER_MAP_POINTER_OES = 35005; HXLINE( 8) this->BUFFER_MAPPED_OES = 35004; HXLINE( 7) this->BUFFER_ACCESS_OES = 35003; HXLINE( 6) this->WRITE_ONLY_OES = 35001; } Dynamic OES_mapbuffer_obj::__CreateEmpty() { return new OES_mapbuffer_obj; } void *OES_mapbuffer_obj::_hx_vtable = 0; Dynamic OES_mapbuffer_obj::__Create(::hx::DynamicArray inArgs) { ::hx::ObjectPtr< OES_mapbuffer_obj > _hx_result = new OES_mapbuffer_obj(); _hx_result->__construct(); return _hx_result; } bool OES_mapbuffer_obj::_hx_isInstanceOf(int inClassId) { return inClassId==(int)0x00000001 || inClassId==(int)0x404f464c; } OES_mapbuffer_obj::OES_mapbuffer_obj() { } ::hx::Val OES_mapbuffer_obj::__Field(const ::String &inName,::hx::PropertyAccess inCallProp) { switch(inName.length) { case 14: if (HX_FIELD_EQ(inName,"WRITE_ONLY_OES") ) { return ::hx::Val( WRITE_ONLY_OES ); } break; case 17: if (HX_FIELD_EQ(inName,"BUFFER_ACCESS_OES") ) { return ::hx::Val( BUFFER_ACCESS_OES ); } if (HX_FIELD_EQ(inName,"BUFFER_MAPPED_OES") ) { return ::hx::Val( BUFFER_MAPPED_OES ); } break; case 22: if (HX_FIELD_EQ(inName,"BUFFER_MAP_POINTER_OES") ) { return ::hx::Val( BUFFER_MAP_POINTER_OES ); } } return super::__Field(inName,inCallProp); } ::hx::Val OES_mapbuffer_obj::__SetField(const ::String &inName,const ::hx::Val &inValue,::hx::PropertyAccess inCallProp) { switch(inName.length) { case 14: if (HX_FIELD_EQ(inName,"WRITE_ONLY_OES") ) { WRITE_ONLY_OES=inValue.Cast< int >(); return inValue; } break; case 17: if (HX_FIELD_EQ(inName,"BUFFER_ACCESS_OES") ) { BUFFER_ACCESS_OES=inValue.Cast< int >(); return inValue; } if (HX_FIELD_EQ(inName,"BUFFER_MAPPED_OES") ) { BUFFER_MAPPED_OES=inValue.Cast< int >(); return inValue; } break; case 22: if (HX_FIELD_EQ(inName,"BUFFER_MAP_POINTER_OES") ) { BUFFER_MAP_POINTER_OES=inValue.Cast< int >(); return inValue; } } return super::__SetField(inName,inValue,inCallProp); } void OES_mapbuffer_obj::__GetFields(Array< ::String> &outFields) { outFields->push(HX_("WRITE_ONLY_OES",aa,29,b5,d7)); outFields->push(HX_("BUFFER_ACCESS_OES",41,5b,45,fb)); outFields->push(HX_("BUFFER_MAPPED_OES",d0,4c,da,cd)); outFields->push(HX_("BUFFER_MAP_POINTER_OES",99,e4,3a,9f)); super::__GetFields(outFields); }; #ifdef HXCPP_SCRIPTABLE static ::hx::StorageInfo OES_mapbuffer_obj_sMemberStorageInfo[] = { {::hx::fsInt,(int)offsetof(OES_mapbuffer_obj,WRITE_ONLY_OES),HX_("WRITE_ONLY_OES",aa,29,b5,d7)}, {::hx::fsInt,(int)offsetof(OES_mapbuffer_obj,BUFFER_ACCESS_OES),HX_("BUFFER_ACCESS_OES",41,5b,45,fb)}, {::hx::fsInt,(int)offsetof(OES_mapbuffer_obj,BUFFER_MAPPED_OES),HX_("BUFFER_MAPPED_OES",d0,4c,da,cd)}, {::hx::fsInt,(int)offsetof(OES_mapbuffer_obj,BUFFER_MAP_POINTER_OES),HX_("BUFFER_MAP_POINTER_OES",99,e4,3a,9f)}, { ::hx::fsUnknown, 0, null()} }; static ::hx::StaticInfo *OES_mapbuffer_obj_sStaticStorageInfo = 0; #endif static ::String OES_mapbuffer_obj_sMemberFields[] = { HX_("WRITE_ONLY_OES",aa,29,b5,d7), HX_("BUFFER_ACCESS_OES",41,5b,45,fb), HX_("BUFFER_MAPPED_OES",d0,4c,da,cd), HX_("BUFFER_MAP_POINTER_OES",99,e4,3a,9f), ::String(null()) }; ::hx::Class OES_mapbuffer_obj::__mClass; void OES_mapbuffer_obj::__register() { OES_mapbuffer_obj _hx_dummy; OES_mapbuffer_obj::_hx_vtable = *(void **)&_hx_dummy; ::hx::Static(__mClass) = new ::hx::Class_obj(); __mClass->mName = HX_("lime.graphics.opengl.ext.OES_mapbuffer",38,19,f3,da); __mClass->mSuper = &super::__SGetClass(); __mClass->mConstructEmpty = &__CreateEmpty; __mClass->mConstructArgs = &__Create; __mClass->mGetStaticField = &::hx::Class_obj::GetNoStaticField; __mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField; __mClass->mStatics = ::hx::Class_obj::dupFunctions(0 /* sStaticFields */); __mClass->mMembers = ::hx::Class_obj::dupFunctions(OES_mapbuffer_obj_sMemberFields); __mClass->mCanCast = ::hx::TCanCast< OES_mapbuffer_obj >; #ifdef HXCPP_SCRIPTABLE __mClass->mMemberStorageInfo = OES_mapbuffer_obj_sMemberStorageInfo; #endif #ifdef HXCPP_SCRIPTABLE __mClass->mStaticStorageInfo = OES_mapbuffer_obj_sStaticStorageInfo; #endif ::hx::_hx_RegisterClass(__mClass->mName, __mClass); } } // end namespace lime } // end namespace graphics } // end namespace opengl } // end namespace ext
GLOBAL load_idt GLOBAL isr1 extern _idt idt_desc: dw 4095 dq _idt %macro PUSHALL 0 push dx push ax push cx push di push si push r15 push r14 push r13 push r12 push r11 push r10 push r9 push r8 %endmacro %macro POPALL 0 pop r8 pop r9 pop r10 pop r11 pop r12 pop r13 pop r14 pop r15 pop si pop di pop cx pop ax pop dx %endmacro extern isr1_handler isr1: PUSHALL call isr1_handler POPALL iretq load_idt: lidt[idt_desc] sti ret
/****************************************************************************** * * Copyright (C) 2006, The Gentee Group. All rights reserved. * This file is part of the Gentee open source project <http://www.gentee.com>. * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT"). * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS * ACCEPTANCE OF THE AGREEMENT. * * testasm.g 29.09.06 * * Author: Alexey Krivonogov ( gentee ) * * Description: Example of the using gentee analizer * ******************************************************************************/ NOP CLC CLD CLI LAHF SAHF STC STD STI INC eax INC ebx INC ecx INC edx INC esp INC ebp INC esi INC edi DEC eax DEC ebx DEC ecx DEC edx DEC esp DEC ebp DEC esi DEC edi PUSH eax PUSH ebx PUSH ecx PUSH edx PUSH esp PUSH ebp PUSH esi PUSH edi PUSH 123456 POP eax POP ebx POP ecx POP edx POP esp POP ebp POP esi POP edi MUL eax MUL ebx MUL ecx MUL edx MUL esp MUL ebp MUL esi MUL edi DIV eax DIV ebx DIV ecx DIV edx DIV esp DIV ebp DIV esi DIV edi NEG eax NEG ebx NEG ecx NEG edx NEG esp NEG ebp NEG esi NEG edi NOT eax NOT ebx NOT ecx NOT edx NOT esp NOT ebp NOT esi NOT edi
; A082562: a(n) = number of values of m such that m can be expressed as the sum of distinct odd numbers with largest odd number in the sum = 2n+1. ; 1,2,4,8,15,24,35,48,63,80,99,120,143,168,195,224,255,288,323,360,399,440,483,528,575,624,675,728,783,840,899,960,1023,1088,1155,1224,1295,1368,1443,1520,1599,1680,1763,1848,1935,2024,2115,2208,2303,2400,2499,2600,2703,2808,2915,3024,3135,3248,3363,3480,3599,3720,3843,3968,4095,4224,4355,4488,4623,4760,4899,5040,5183,5328,5475,5624,5775,5928,6083,6240,6399,6560,6723,6888,7055,7224,7395,7568,7743,7920,8099,8280,8463,8648,8835,9024,9215,9408,9603,9800 mov $1,$0 bin $1,2 add $0,$1 trn $1,2 add $0,$1 add $0,1
; ---------------- ; Phantoon hijacks ; ---------------- { ; Intro if !FEATURE_PAL org $A7D4DD else org $A7D4A9 endif JSL hook_phantoon_init NOP BNE $3D ; 1st pattern if !FEATURE_PAL org $A7D5DA else org $A7D5A6 endif JSL hook_phantoon_1st_rng BRA $10 ; 2nd pattern if !FEATURE_PAL org $A7D0B0 else org $A7D07C endif JSL hook_phantoon_2nd_rng BRA $0F ; Phantoon eye close timer if !FEATURE_PAL org $A7D098 else org $A7D064 endif JSL hook_phantoon_eyeclose ; Phantoon flame pattern if !FEATURE_PAL org $A7D00A else org $A7CFD6 endif JSL hook_phantoon_flame_pattern } ; -------------- ; Botwoon hijack ; -------------- { if !FEATURE_PAL org $B39953 else org $B39943 endif ; $B3:9943 22 11 81 80 JSL $808111[$80:8111] JSL hook_botwoon_rng } ; --------------- ; Draygon hijacks ; --------------- { if !FEATURE_PAL org $A58AEC else org $A58ADC endif JSR hook_draygon_rng_left if !FEATURE_PAL org $A589AD else org $A5899D endif JSR hook_draygon_rng_right } ; ---------------- ; Crocomire hijack ; ---------------- { if !FEATURE_PAL org $A48763 else org $A48753 endif JSR hook_crocomire_rng } ; ------------- ; Kraid hijacks ; ------------- { if !FEATURE_PAL org $A7BDF3 else org $A7BDBF endif JSR hook_kraid_rng if !FEATURE_PAL org $A7AA7F else org $A7AA69 endif JMP kraid_intro_skip kraid_intro_skip_return: } ; ----------------- ; "Set rng" hijacks ; ----------------- { ; $A3:AB0C A9 25 00 LDA #$0025 ; $A3:AB0F 8D E5 05 STA $05E5 [$7E:05E5] ; $A3:AB12 22 11 81 80 JSL $808111[$80:8111] if !FEATURE_PAL org $A3AB2E else org $A3AB12 endif JSL hook_hopper_set_rng ; $A2:B588 A9 11 00 LDA #$0011 ; $A2:B58B 8D E5 05 STA $05E5 [$7E:05E5] if !FEATURE_PAL org $A2B5A0 else org $A2B588 endif JSL hook_lavarocks_set_rng NOP #2 ; $A8:B798 A9 17 00 LDA #$0017 ; $A8:B79B 8D E5 05 STA $05E5 [$7E:05E5] if !FEATURE_PAL org $A8B7A8 else org $A8B798 endif JSL hook_beetom_set_rng NOP #2 } ; ----- ; Hooks ; ----- org $83B000 print pc, " rng start" hook_hopper_set_rng: { LDA #$0001 : STA !ram_room_has_set_rng JML $808111 } hook_lavarocks_set_rng: { LDA #$0001 : STA !ram_room_has_set_rng LDA #$0011 : STA !CACHED_RANDOM_NUMBER RTL } hook_beetom_set_rng: { LDA #$0001 : STA !ram_room_has_set_rng LDA #$0017 : STA !CACHED_RANDOM_NUMBER RTL } ; Patch to the following code (which waits a few frames ; before spawning flames in a circle) ; $A7:D4A9 DE B0 0F DEC $0FB0,x[$7E:0FB0] ; decrement timer ; $A7:D4AC F0 02 BEQ $02 [$D4B0] ; if zero, proceed ; $A7:D4AE 10 3D BPL $3D [$D4ED] ; else, return hook_phantoon_init: { LDA !sram_cutscenes AND !CUTSCENE_FAST_PHANTOON BNE .skip_cutscene DEC $0FB0,X RTL .skip_cutscene: ; get rid of the return address PLA ; pop 2 bytes PHP ; push 1 PLA ; pop 2 (for a total of 3 bytes popped) ; start boss music & fade-in animation if !FEATURE_PAL JML $A7D543 else JML $A7D50F endif } ; Table of Phantoon pattern durations & directions ; bit 0 is direction, remaining bits are duration ; Note that later entries in the table will tend to occur slightly more often. phan_pattern_table: dw $003C<<1|1 ; fast left dw $003C<<1|0 ; fast right dw $0168<<1|1 ; mid left dw $0168<<1|0 ; mid right dw $02D0<<1|1 ; slow left dw $02D0<<1|0 ; slow right ; Patch to the following code, to determine Phantoon's first-round direction and pattern ; $A7:D5A6 AD B6 05 LDA $05B6 [$7E:05B6] ; Frame counter ; $A7:D5A9 4A LSR A ; $A7:D5AA 29 03 00 AND #$0003 ; $A7:D5AD 0A ASL A ; $A7:D5AE A8 TAY ; $A7:D5AF B9 53 CD LDA $CD53,y[$A7:CD59] ; Number of frames to figure-8 ; $A7:D5B2 8D E8 0F STA $0FE8 [$7E:0FE8] ; $A7:D5B5 22 11 81 80 JSL $808111[$80:8111] ; RNG ; $A7:D5B9 89 01 00 BIT #$0001 ; Sets Z for left pattern, !Z for right hook_phantoon_1st_rng: { LDA !ram_phantoon_rng_round_1 ; If set to all-on or all-off, don't mess with RNG. BEQ .no_manip CMP #$003F BNE choose_phantoon_pattern .no_manip: LDA !FRAME_COUNTER LSR A AND #$0003 ASL A TAY if !FEATURE_PAL LDA $CD87,Y else LDA $CD53,Y endif STA $0FE8 JSL $808111 BIT #$0001 RTL } ; Patch to the following code, to determine Phantoon's second-round direction and pattern ; Also affects patterns during Phantoon's invisible phase ; $A7:D07C 22 11 81 80 JSL $808111[$80:8111] ; $A7:D080 29 07 00 AND #$0007 ; $A7:D083 0A ASL A ; $A7:D084 A8 TAY ; $A7:D085 B9 53 CD LDA $CD53,y[$A7:CD5B] ; $A7:D088 8D E8 0F STA $0FE8 [$7E:0FE8] ; $A7:D08B AD B6 05 LDA $05B6 [$7E:05B6] ; $A7:D08E 89 01 00 BIT #$0001 hook_phantoon_2nd_rng: { LDA !ram_phantoon_rng_round_2 ; If set to all-on or all-off, don't mess with RNG. BEQ .no_manip CMP #$003F BNE choose_phantoon_pattern .no_manip: JSL $808111 AND #$0007 ASL A TAY if !FEATURE_PAL LDA $CD87,Y else LDA $CD53,Y endif STA $0FE8 ; Intentional fallthrough to invert logic } hook_phantoon_invert: { LDA !ram_phantoon_rng_inverted : BEQ .vanilla_inverted CMP #$0001 : BEQ .inverted CMP #$0002 : BEQ .not_inverted ; Random LDA !CACHED_RANDOM_NUMBER : BIT #$0080 RTL .inverted LDA #$0000 : BIT #$0001 RTL .not_inverted LDA #$0001 : BIT #$0001 RTL .vanilla_inverted LDA !FRAME_COUNTER : BIT #$0001 RTL } ; Selects a Phantoon pattern from a bitmask (passed in A). choose_phantoon_pattern: { PHX ; push enemy index PHA ; push pattern mask ; get random number in range 0-7 JSL $808111 AND #$0007 TAX ; play a game of eeny-meeny-miny-moe with the enabled patterns ; X = number of enabled patterns to find before stopping ; Y = index in phan_pattern_table of pattern currently being checked ; A = bitmask of enabled patterns .reload: LDA $01,S ; reload pattern mask LDY #$0006 ; number of patterns (decremented immediately to index of last pattern) .loop: DEY LSR BCC .skip ; Pattern index Y is enabled DEX ; is this the last one? BMI .done BRA .loop ; no, keep looping .skip: ; Pattern Y is not enabled, try the next pattern BEQ .reload ; if we've tried all the patterns, start over BRA .loop .done: ; We've found the pattern to use. PLA ; we don't need the pattern mask anymore TYA : ASL : TAX LDA.l phan_pattern_table,X PLX ; pop enemy index ; Check if Phantoon is in the round 2 AI state LDY $0FB2 if !FEATURE_PAL CPY #$D716 else CPY #$D6E2 endif BNE .round1 ; Save the pattern timer, check the direction, ; and set Phantoon's starting point and pattern index. LSR STA $0FE8 BCS .round2left ; Right pattern LDA #$0088 LDY #$00D0 BRA .round2done .round2left LDA #$018F LDY #$0030 .round2done STA $0FA8 ; Index into figure-8 movement table STY $0F7A ; X position LDA #$0060 STA $0F7E ; Y position BRA hook_phantoon_invert .round1 ; Save the pattern timer and check the direction LSR STA $0FE8 BCS .round1left ; Round 1 right pattern SEP #$02 RTL .round1left: REP #$02 RTL } hook_phantoon_eyeclose: { LDA !ram_phantoon_rng_eyeclose : BEQ .no_manip DEC : ASL ; return with 0-slow, 2-mid, 4-fast RTL .no_manip LDA !CACHED_RANDOM_NUMBER AND #$0007 : ASL ; overwritten code RTL } hook_phantoon_flame_pattern: { JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_phantoon_rng_flames : TAY LDA !ram_phantoon_rng_next_flames : STA !ram_phantoon_rng_flames TYA : STA !ram_phantoon_rng_next_flames : BEQ .no_manip DEC RTL .no_manip LDA !CACHED_RANDOM_NUMBER RTL } hook_botwoon_rng: { JSL $808111 ; Trying to preserve the number of RNG calls being done in the frame LDA !ram_botwoon_rng : BEQ .no_manip RTL .no_manip LDA !CACHED_RANDOM_NUMBER RTL } print pc, " rng end" warnpc $83B400 ; custompresets.asm org $A4F700 print pc, " crocomire rng start" hook_crocomire_rng: { LDA !ram_crocomire_rng : BEQ .no_manip DEC : BEQ .step LDA #$0000 ; return with <400 for swipe RTS .step LDA #$0400 ; return with 400+ for step RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } print pc, " crocomire rng end" org $A5FA00 print pc, " draygon rng start" hook_draygon_rng_left: { LDA !ram_draygon_rng_left : BEQ .no_manip DEC ; return with 1-swoop or 0-goop RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } hook_draygon_rng_right: { LDA !ram_draygon_rng_right : BEQ .no_manip DEC ; return with 1-swoop or 0-goop RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } print pc, " draygon rng end" ; This is actually for preset support instead of RNG ; Keep Ceres Ridley enemy alive even if the main boss flag is set if !FEATURE_PAL org $A6A10C else org $A6A0FC endif LSR : BCC $0F CPX #$0006 : BEQ $0A LDA $0F86 if !FEATURE_PAL org $A6A302 else org $A6A2F2 endif JMP ceres_ridley_draw_metroid if !FEATURE_PAL org $A6A371 else org $A6A361 endif dw ridley_init_hook ; Fix ceres ridley door instruction list to keep door visible when skipping ridley fight if !FEATURE_PAL org $A6F533 dw $F64F, ridley_ceres_door_original_instructions else org $A6F55C dw $F678, ridley_ceres_door_original_instructions endif dw $80ED, ridley_ceres_door_escape_instructions ; Lock ceres ridley door if timer not started or if boss not dead if !FEATURE_PAL org $A6F641 else org $A6F66A endif LDA $0943 : BEQ $F6 LDA $7ED82E org $A6FEC0 print pc, " ridley rng start" ridley_init_hook: { LDA $079B : CMP #$E0B5 : BNE .continue LDA $7ED82E : BIT #$0001 : BEQ .continue ; Ceres Ridley is already dead, so skip to the escape ; We do need to mark Ceres Ridley alive ; to keep the door locked until the timer starts AND #$FFFE : STA $7ED82E ; Clear out the room main asm so it doesn't also trigger the escape STZ $07DF ; Set up the escape timer routine LDA #$0001 : STA $093F LDA #$E0E6 : STA $0A5A ; Jump to the escape if !FEATURE_PAL LDA #$AB47 else LDA #$AB37 endif STA $0FA8 JMP ($0FA8) .continue if !FEATURE_PAL LDA #$A387 else LDA #$A377 endif STA $0FA8 JMP ($0FA8) } ceres_ridley_draw_metroid: { LDA $7ED82E : BIT #$0001 : BNE .end LDA $093F : BNE .end if !FEATURE_PAL JSR $BF2A else JSR $BF1A endif .end if !FEATURE_PAL JMP $A30A else JMP $A2FA endif } ridley_ceres_door_original_instructions: if !FEATURE_PAL dw $F67D dw #$0002, $F9EA dw $F641, $F533 dw $F687 dw $80ED, $F56F else dw $F6A6 dw #$0002, $FA13 dw $F66A, $F55C dw $F6B0 dw $80ED, $F598 endif ridley_ceres_door_escape_instructions: if !FEATURE_PAL dw $F687 dw #$0002, $F9EA dw $F641, $F533 dw $80ED, $F56F else dw $F6B0 dw #$0002, $FA13 dw $F66A, $F55C dw $80ED, $F598 endif print pc, " ridley rng end" org $A7FFB6 print pc, " kraid rng start" hook_kraid_rng: { LDA !ram_kraid_rng : BEQ .no_manip DEC : DEC ; return -1 (laggy) or 0 (laggier) RTS .no_manip LDA !CACHED_RANDOM_NUMBER RTS } kraid_intro_skip: LDA !sram_cutscenes : AND !CUTSCENE_FAST_KRAID : BEQ .noSkip LDA #$0001 JMP kraid_intro_skip_return .noSkip if !FEATURE_PAL LDA #$00FA else LDA #$012C endif JMP kraid_intro_skip_return print pc, " kraid rng end"
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ L0: (W&~f0.1)jmpi L416 L16: mov (8|M0) r17.0<1>:ud r25.0<8;8,1>:ud add (1|M0) a0.0<1>:ud r23.5<0;1,0>:ud 0x42EC100:ud mov (1|M0) r16.2<1>:ud 0xE000:ud mov (1|M0) r17.2<1>:f r10.6<0;1,0>:f mov (1|M0) r17.3<1>:f r10.7<0;1,0>:f send (1|M0) r112:uw r16:ub 0x2 a0.0 mov (1|M0) r17.2<1>:f r10.6<0;1,0>:f mov (1|M0) r17.3<1>:f r10.4<0;1,0>:f send (1|M0) r120:uw r16:ub 0x2 a0.0 add (1|M0) a0.0<1>:ud r23.5<0;1,0>:ud 0x44EC201:ud mov (1|M0) r16.2<1>:ud 0xC000:ud mov (1|M0) r17.2<1>:f r10.6<0;1,0>:f mov (1|M0) r17.3<1>:f r10.7<0;1,0>:f send (1|M0) r116:uw r16:ub 0x2 a0.0 mov (1|M0) r17.2<1>:f r10.6<0;1,0>:f mov (1|M0) r17.3<1>:f r10.4<0;1,0>:f send (1|M0) r124:uw r16:ub 0x2 a0.0 mov (16|M0) r114.0<1>:uw 0xFFFF:uw mov (16|M0) r115.0<1>:uw 0xFFFF:uw mov (16|M0) r122.0<1>:uw 0xFFFF:uw mov (16|M0) r123.0<1>:uw 0xFFFF:uw mov (1|M0) a0.8<1>:uw 0xE00:uw mov (1|M0) a0.9<1>:uw 0xE80:uw mov (1|M0) a0.10<1>:uw 0xEC0:uw add (4|M0) a0.12<1>:uw a0.8<4;4,1>:uw 0x100:uw L416: nop
.size 8000 .text@48 ei jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld c, 44 ld b, 90 lbegin_waitvblank: ldff a, (c) cmp a, b jrnz lbegin_waitvblank xor a, a ldff(40), a ld hl, 9f00 ld b, 20 lbegin_clearvram: dec l ld(hl), a jrnz lbegin_clearvram dec h dec b jrnz lbegin_clearvram ld hl, 8000 ld a, ff ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld(hl++), a ld a, e4 ldff(47), a ld a, ff ldff(48), a ld a, 80 ldff(68), a ld a, ff ld c, 69 ldff(c), a ldff(c), a ld a, aa ldff(c), a ldff(c), a ld a, 55 ldff(c), a ldff(c), a xor a, a ldff(c), a ldff(c), a ld a, 80 ldff(6a), a ld a, 00 ld c, 6b ldff(c), a ldff(c), a ldff(c), a ldff(c), a ldff(c), a ldff(c), a ldff(c), a ldff(c), a ld hl, fea0 xor a, a lbegin_fill_oam: dec l ld(hl), a jrnz lbegin_fill_oam ld a, 10 ld(hl), a inc l ld a, 0b ld(hl), a ld a, 87 ldff(40), a ld c, 41 ld b, 03 lbegin_waitm3: ldff a, (c) and a, b cmp a, b jrnz lbegin_waitm3 ld a, 20 ldff(c), a ld a, 02 ldff(ff), a xor a, a ldff(0f), a ei .text@1000 lstatint: nop nop nop nop nop nop nop nop nop nop nop nop nop nop nop ld a, 97 ldff(40), a pop hl .text@1029 ld a, 87 ldff(40), a
def main(a0:i8, a1:i8, a2:i8, b0:i8, b1:i8, b2:i8, c:i8, en:bool) -> (y:i8) { y:i8 = dmuladdrega_i8i8(a2, b2, t11, en, en, en, en) @dsp(??, ??); t11:i8 = dmuladdrega_i8i8(a1, b1, t5, en, en, en, en) @dsp(??, ??); t5:i8 = dmuladdrega_i8i8(a0, b0, c, en, en, en, en) @dsp(??, ??); }
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x1991a, %r9 nop nop inc %r11 movw $0x6162, (%r9) nop nop nop nop nop xor $7782, %rcx lea addresses_UC_ht+0xde6e, %rsi lea addresses_UC_ht+0x180da, %rdi nop inc %rdx mov $69, %rcx rep movsl nop nop nop add $5861, %r11 lea addresses_A_ht+0xdcda, %r10 nop inc %rdx mov (%r10), %rdi nop inc %r10 lea addresses_UC_ht+0x12952, %r10 nop nop nop nop dec %r9 mov $0x6162636465666768, %rdi movq %rdi, %xmm3 and $0xffffffffffffffc0, %r10 movaps %xmm3, (%r10) nop xor $57546, %r11 lea addresses_UC_ht+0x1dcd2, %r10 nop nop nop nop and %rdi, %rdi movb $0x61, (%r10) add %rcx, %rcx lea addresses_WC_ht+0xab66, %rsi nop nop cmp $6537, %r10 vmovups (%rsi), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rdx nop nop nop and $26734, %r10 lea addresses_normal_ht+0x1c862, %rsi lea addresses_D_ht+0xe0fa, %rdi nop nop sub %rbp, %rbp mov $91, %rcx rep movsb nop dec %rdi lea addresses_normal_ht+0x1ed8a, %rbp inc %r9 mov (%rbp), %r10w cmp $22907, %rdi lea addresses_WC_ht+0x1582, %rsi lea addresses_A_ht+0xa912, %rdi nop nop nop nop cmp %r11, %r11 mov $46, %rcx rep movsq nop nop nop nop sub $21338, %rsi lea addresses_UC_ht+0x476, %rdx clflush (%rdx) nop nop nop nop sub %rsi, %rsi movb (%rdx), %r9b dec %r9 lea addresses_normal_ht+0xbfda, %rsi lea addresses_UC_ht+0xd35a, %rdi inc %rbp mov $54, %rcx rep movsl nop nop nop lfence lea addresses_A_ht+0x1d98, %rsi lea addresses_UC_ht+0x152da, %rdi nop nop nop nop cmp %r9, %r9 mov $20, %rcx rep movsb nop nop xor %rdx, %rdx lea addresses_A_ht+0x5cda, %rsi nop nop nop nop inc %rdi movw $0x6162, (%rsi) nop nop nop xor $31806, %rdi lea addresses_normal_ht+0x19b6a, %rcx nop nop nop nop nop sub %r11, %r11 mov (%rcx), %r9d nop nop nop nop sub $47153, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r9 push %rbx push %rcx push %rsi // Store lea addresses_D+0x10cda, %r12 nop nop nop nop nop sub $721, %r11 movb $0x51, (%r12) nop nop and %r12, %r12 // Store lea addresses_UC+0x1dc6a, %rsi nop inc %r13 mov $0x5152535455565758, %r11 movq %r11, %xmm5 movups %xmm5, (%rsi) nop nop nop nop inc %r11 // Store lea addresses_normal+0x1c81e, %rsi nop nop nop nop add %r13, %r13 mov $0x5152535455565758, %rcx movq %rcx, (%rsi) nop nop nop xor $30272, %rcx // Faulty Load lea addresses_WT+0x154da, %rcx nop nop add %rsi, %rsi movb (%rcx), %r9b lea oracles, %r13 and $0xff, %r9 shlq $12, %r9 mov (%r13,%r9,1), %r9 pop %rsi pop %rcx pop %rbx pop %r9 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D', 'same': False, 'size': 1, 'congruent': 11, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal', 'same': False, 'size': 8, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_WT', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
; rst vectors section "rst $00", rom0 [$00] section "rst $08", rom0 [$08] section "rst $10", rom0 [$10] section "rst $18", rom0 [$18] section "rst $20", rom0 [$20] section "rst $28", rom0 [$28] section "rst $30", rom0 [Bankswitch] jp _Bankswitch section "rst $38", rom0 [$38] ; Hardware interrupts. None used at the moment section "vblank int", rom0 [$40] jp VBlank section "hblank int", rom0 [$48] reti section "timer int", rom0 [$50] reti ;jp SoundTimer section "serial int", rom0 [$58] reti section "joypad int", rom0 [$60] reti section "Entry", rom0 [$100] ; This is the entry point to the program. nop jp Init section "Header", rom0 [$104] ;GB header inserted by rgbfix. ds $150 - $104 section "Init", rom0 Init: di xor a ld [rIF], a ld [rIE], a ld [rRP], a ld [rSCX], a ld [rSCY], a ld [rSB], a ld [rSC], a ld [rWX], a ld [rWY], a ld [rBGP], a ld [rOBP0], a ld [rOBP1], a ld [rTMA], a ld [rTAC], a .waitForVBlank ld a, [rLY] cp $90 jr nz, .waitForVBlank ;turn off the LCD xor a ld [rLCDC], a ld sp, wStack ; establish our arbitrary stack location fill _RAM, RAM_BANK_SIZE, 0 ld d, 7 .clear_wram_banks ld a, d ld [rSVBK], a fill _RAMSWAP, RAM_BANK_SIZE, 0 dec d jr nz, .clear_wram_banks fill _HRAM, HRAM_SIZE, 0 ; zero hram fill _VRAM, VRAM_SIZE, 0 ; zero vram fill _OAMRAM, OAM_SIZE, 0 ; zero OAM ld a, 1 ld [hCurrentBank], a call LoadFontToVRAM ld hl, gfx_SamplePalettes call LoadBGPaletteData ; set up the LCDC ld a, LCDCF_WIN9C00 | LCDCF_BG8000 | LCDCF_OBJON | LCDCF_BGON ld [rLCDC], a ; load interrupt flag with no requests xor a ld [rIF], a ; for now we only want V-blank enable inc a ld [rIE], a ei call StartGame jp Init section "Standard Library Routines", rom0 ; Copies BC bytes from HL to DE CopyData: inc b inc c jr .startLoop .loop ld a, [hli] ld [de], a inc de .startLoop dec c jr nz, .loop dec b jr nz, .loop ret ; multiplies h * l and puts the result in hl HTimesL: push bc ld b, 0 ld c, h ld a, l ld hl, 00 jr .startLoop .add add hl, bc .loop sla c rl b .startLoop srl a jr c, .add jr nz, .loop pop bc ret ; returns joypad readout in a and hJoypadData ReadJoypad: push bc ld a, $20 ; select direction keys ld [rJOYP], a ld a, [rJOYP] ld a, [rJOYP] and $0f ld b, a swap b ld a, $10 ; select button keys ld [rJOYP], a ld a, [rJOYP] ld a, [rJOYP] ld a, [rJOYP] and $0f add a, b pop bc cpl ld [hJoypadData], a ret TurnScreenOff: di .waitForVBlank ld a, [rLY] cp $90 jr nz, .waitForVBlank ld a, [rLCDC] res 7, a ld [rLCDC], a ei ret TurnScreenOn: ld a, [rLCDC] set 7, a ld [rLCDC], a ret Random: push bc push hl ld hl, wRNG1 ld c, [hl] inc hl ld b, [hl] ld a, b or c jr z, .initializeRNG ; 1,5,2 16 bit xorshift rng ld h, b ld l, c sla l rl h ;16 bit xor is a bit unwieldy, so it was made a macro random16bXor rept 5 srl h rr l endr random16bXor rept 2 sla l rl h endr random16bXor rand_LastRun ; arg allows for modification required by the final run pop hl pop bc ret .initializeRNG ld a, $ff ld [wRNG1], a pop hl pop bc ret section "bankswitch", rom0 ; switches to the bank in a _Bankswitch: ld [hCurrentBank], a ld [rMBC5_BANK], a ret section "VBlank", rom0 VBlank: push af push bc push de push hl call V_UpdateTileMapBuffer ; end of Vblank-required routines call Random ld a, 1 ld [hVBlankOccurred], a pop hl pop de pop bc pop af reti WaitForVBlank: xor a ld [hVBlankOccurred], a ld a, [rLCDC] bit 7, a ret z .wait halt ld a, [hVBlankOccurred] or a jr z, .wait ret ; VBlank routine to copy TileMapBuffer to vram if applicable ; Fast Copy takes priority over slow copy V_UpdateTileMapBuffer: ld a, [wFastBufferControl] or a jr z, .skipFastCopy call FastCopyTileBuffersToVram xor a ld [wFastBufferControl], a ret .skipFastCopy ld a, [wTileBufferSize] or a jr z, .skipTileMapWrite ld hl, wTileBufferDrawLocation ld e, [hl] inc hl ld d, [hl] call CopyTileBufferToVram .skipTileMapWrite ret section "home text", rom0 ; copy Font to VRAM bank 2 and just let it chill there for the entirety of the game LoadFontToVRAM: ld a, 1 ld [rVBK], a ld bc, gfx_EndFontTiles - gfx_FontTiles ld hl, gfx_FontTiles ld de, vChars1 + vTileDataSize call CopyData xor a ld [rVBK], a ret ; Writes text to TileMapBuffer in preparation for vblank ; bc - source of text ; de - buffer location offset ; usually something like which line to start on ; ret bc - stopping pos in source text ; ret de - last text value, amount of characters printed ; ret a - amount of characters printed LoadTextToMapBuffer: push hl ;set up our attr hram ld a, 8 ld [hTextAttr], a ; prepare hl and de for the load text loop ld hl, wTileAttrBuffer add hl, de push hl ld hl, wTileMapBuffer add hl, de ld d, h ld e, l pop hl push de .loadText ld a, [bc] inc bc inc a jr z, .done add TEXT_VRAM_OFFSET ld [de], a inc de ld a, [hTextAttr] ldi [hl], a jr .loadText .done pop hl ld d, a ld a, e sub l ; max of $20 chars/line, so this should be fine to tell me how many chars were used ld e, a pop hl ret section "Drawing Routines", rom0 ; Draws every tile of an image in order, in an arbitrary rectangular shape ; hl - where in vram to start writing ; bc - sprite height in tiles, ; de - sprite width in tiles, 32 - width (how much to add to get back to 0) ; a - starting tile index LoadIncreasingTilesToVram: push de .loopTile ldi [hl], a inc a dec d jr nz, .loopTile add hl, de pop de dec b jr nz, LoadIncreasingTilesToVram ret ; loads full set of palettes to gb memory from a location in hl LoadBGPaletteData: push bc ld a, $80 ld [rBCPS], a ld b, $40 .loop ldi a, [hl] ld [rBCPD], a dec b jr nz, .loop pop bc ret ; quickly copies horizontal and vertical buffers to wram along with their attribute maps. ; Can not be variable width. If that's needed, use the slow version (CopyTileBuffersToVram) FastCopyTileBuffersToVram: push hl push bc ld a, [wFastBufferControl] bit 1, a jr z, .skipHorizontalCopy ld hl, wFastHorizontalBufferLoc ld e, [hl] inc hl ld d, [hl] ld bc, wFastHorizontalTileBuffer push de call FastCopyHorizontalBufferToVram pop de ld a, 1 ld [rVBK], a ld bc, wFastHorizontalAttrBuffer call FastCopyHorizontalBufferToVram ld a, [wFastBufferControl] bit 0, a jr z, .skipVerticalCopy .skipHorizontalCopy ld hl, wFastVerticalBufferLoc ld e, [hl] inc hl ld d, [hl] xor a ld [rVBK], a ld bc, wFastVerticalTileBuffer push de call FastCopyVerticalBufferToVram pop de ld a, 1 ld [rVBK], a ld bc, wFastVerticalAttrBuffer call FastCopyVerticalBufferToVram .skipVerticalCopy xor a ld [rVBK], a ld [wFastBufferControl], a pop bc pop hl ret ; copies the tile map buffer at the beginning of wram to vram ; if the screen is off, it will copy the map and the attributes over at the same time. ; if the screen is on, it will set the buffer control to do attributes next frame ; de - vram location CopyTileBufferToVram: push hl push bc ld hl, wTileBufferControl bit 1, [hl] res 1, [hl] jr nz, .doAttributes ld a, [wTileBufferSize] ld c, a bit 2, [hl] ; hl still control from above ld b, 1 jr z, .onlyOneMapRow inc b .onlyOneMapRow ld hl, wTileMapBuffer ; check 0th bit to see if we want vertical instead of horizontal ld a, [wTileBufferControl] bit 0, a push de call z, CopyHorizontalBufferToVram call nz, CopyVerticalBufferToVram pop de ; if it's only one row, do attr also ld a, [wTileBufferControl] bit 2, a jr z, .doAttributes ld a, [rLCDC] bit 7, a jr z, .doAttributes ld hl, wTileBufferControl set 1, [hl] pop bc pop hl ret .doAttributes ld hl, wTileBufferControl ld a, [wTileBufferSize] ld c, a ld b, 1 bit 2, [hl] jr z, .onlyOneAttrRow inc b .onlyOneAttrRow ld a, 1 ld [rVBK], a bit 0, [hl] ld hl, wTileAttrBuffer call z, CopyHorizontalBufferToVram call nz, CopyVerticalBufferToVram xor a ld [rVBK], a ld [wTileBufferControl], a ld [wTileBufferSize], a pop bc pop hl ret ; Buffer Copy used for scrolling. can only draw entire $14 tile buffer at once. for variable size, use slow copy. ; de - location in vram to start writing ; bc - location in wram to start reading FastCopyHorizontalBufferToVram: ld hl, sp+$0 ld a, l ldh [hStackStorage], a ld a, h ldh [hStackStorage+1], a ld h, b ld l, c ld sp, hl ld h, d ld l, e REPT 10 pop bc ld a, c ld [hli], a ld a, b ld [hli], a ENDR ldh a, [hStackStorage] ld l, a ldh a, [hStackStorage+1] ld h, a ld sp, hl ret ; copies a horizontal buffer with variable width to vram ; for use with text and other slow or small things ; de - where in vram to start writing ; bc - buffer height in tiles, buffer width in tiles ; hl - buffer location ; CAUTION: Can only handle a limited size for copies CopyHorizontalBufferToVram: push bc .rowLoop ld a, [hli] ld [de], a inc de dec c jr nz, .rowLoop ld a, b pop bc dec a ld b, a ret z ld a, $20 sub c add e ld e, a ld a, d adc 0 ld d, a ld a, $20 sub c add l ld l, a ld a, h adc 0 ld h, a jr CopyHorizontalBufferToVram ; Buffer Copy used for scrolling. can only draw entire $14 tile buffer at once. for variable size, use slow copy. ; de - location in vram to start writing ; bc - location in wram to start reading FastCopyVerticalBufferToVram: ld hl, sp+$0 ld a, l ldh [hStackStorage], a ld a, h ldh [hStackStorage+1], a ld h, b ld l, c ld sp, hl ld h, d ld l, e ld de, $20 REPT 9 pop bc ld [hl], c add hl, de ld [hl], b add hl, de ENDR ldh a, [hStackStorage] ld l, a ldh a, [hStackStorage+1] ld h, a ld sp, hl ret ; copies a vertical buffer with variable height to vram ; for use with text and other slow or small things ; de - where in vram to start writing ; bc - buffer width in tiles, buffer height in tiles ; hl - buffer location ; CAUTION: Can only handle a limited size for copies. CopyVerticalBufferToVram: push de push hl push bc .colLoop ld a, [hli] ld [de], a ld a, $20 add e ld e, a ld a, d adc 0 ld d, a dec c jr nz, .colLoop ld a, b pop bc ld b, a ld de, $20 pop hl add hl, de pop de inc de dec b jr nz, CopyVerticalBufferToVram ret ClearBGMap: fill vBGMap0, $a000 - vBGMap0, 0 ld a, 1 ld [rVBK], a fill vBGMap0, $a000 - vBGMap0, 0 xor a ld [rVBK], a ret section "Game Home Routines", rom0 ; Starts game with nothing loaded and screen off. StartGame: ; TODO: Delete below. it's a (poorly coded) example of how things work call TurnScreenOn ld bc, SampleText ld de, 0 call LoadTextToMapBuffer ld [wTileBufferSize], a setBufferDrawLocation vBGMap0 ld hl, wTileBufferControl set 0, [hl] ld hl, wFastVerticalTileBuffer ld a, "e" + ASCII_TO_TILE ld b, $14 .looplette ldi [hl], a dec b jr nz, .looplette ld hl, wFastVerticalAttrBuffer ld a, $08 ld b, $14 .looplette2 ldi [hl], a dec b jr nz, .looplette2 ld hl, wFastHorizontalTileBuffer ld a, "_" + ASCII_TO_TILE ld b, $14 .looplette3 ldi [hl], a dec b jr nz, .looplette3 ld hl, wFastHorizontalAttrBuffer ld a, $08 ld b, $14 .looplette4 ldi [hl], a dec b jr nz, .looplette4 setBufferDrawLocation vBGMap0 + $20, wFastHorizontalBufferLoc setBufferDrawLocation vBGMap0 + $5, wFastVerticalBufferLoc ld a, 3 ld [wFastBufferControl], a call WaitForVBlank call WaitForVBlank ld bc, SampleText2 ld de, 0 call LoadTextToMapBuffer ld [wTileBufferSize], a setBufferDrawLocation vBGMap0 + $20 REPT 40 call WaitForVBlank ENDR ; Copies BC bytes from HL to DE .loop: jr .loop ld a, [rSCY] add 8 ld [rSCY], a ld a, [rSCX] add 8 ld [rSCX], a call WaitForVBlank jr .loop
; Program 10.5 ; SYSENTER - Linux (NASM 32-bit) ; Copyright (c) 2017 Hall & Slonka section .data output: DB "Computer Architecture",0Ah len: EQU ($ - output) section .text global _main _main: mov ebx, 1 mov ecx, output mov edx, len mov eax, 4 push sysenter_ret push ecx push edx push ebp mov ebp, esp sysenter sysenter_ret: mov eax, 1 mov ebx, 0 int 80h
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Burgwar" project // For conditions of distribution and use, see copyright notice in LICENSE #include <ClientLib/Scripting/ClientScriptingLibrary.hpp> #include <CoreLib/Utils.hpp> #include <CoreLib/Components/EntityOwnerComponent.hpp> #include <CoreLib/Scripting/ScriptingUtils.hpp> #include <ClientLib/Camera.hpp> #include <ClientLib/DummyInputController.hpp> #include <ClientLib/LocalMatch.hpp> #include <ClientLib/Scoreboard.hpp> #include <ClientLib/Scripting/ParticleGroup.hpp> #include <ClientLib/Scripting/Music.hpp> #include <ClientLib/Scripting/Sound.hpp> #include <ClientLib/Scripting/Texture.hpp> #include <Nazara/Graphics/ParticleFunctionRenderer.hpp> #include <NDK/Components/ParticleGroupComponent.hpp> namespace bw { ClientScriptingLibrary::ClientScriptingLibrary(LocalMatch& match) : SharedScriptingLibrary(match) { } void ClientScriptingLibrary::RegisterLibrary(ScriptingContext& context) { SharedScriptingLibrary::RegisterLibrary(context); sol::state& luaState = context.GetLuaState(); RegisterCameraClass(context); RegisterDummyInputControllerClass(context); RegisterGlobalLibrary(context); RegisterLocalPlayerClass(context); RegisterMusicClass(context); RegisterParticleGroupClass(context); RegisterScoreboardClass(context); RegisterSoundClass(context); sol::table particleTable = luaState.create_named_table("particle"); sol::table soundTable = luaState.create_named_table("sound"); RegisterParticleLibrary(context, particleTable); RegisterSoundLibrary(context, soundTable); context.LoadDirectory("autorun"); } void ClientScriptingLibrary::RegisterGlobalLibrary(ScriptingContext& context) { SharedScriptingLibrary::RegisterGlobalLibrary(context); sol::state& state = context.GetLuaState(); state["CLIENT"] = true; state["SERVER"] = false; state["RegisterClientAssets"] = LuaFunction([]() { return true; }); // Dummy function state["RegisterClientScript"] = LuaFunction([]() { return true; }); // Dummy function } void ClientScriptingLibrary::RegisterMatchLibrary(ScriptingContext& context, sol::table& library) { SharedScriptingLibrary::RegisterMatchLibrary(context, library); library["CreateEntity"] = LuaFunction([&](sol::this_state L, const sol::table& parameters) { LocalMatch& match = GetMatch(); auto& entityStore = match.GetEntityStore(); sol::object entityTypeObj = parameters["Type"]; if (!entityTypeObj.is<std::string>()) TriggerLuaArgError(L, 1, "missing or invalid value for LayerIndex"); std::string entityType = entityTypeObj.as<std::string>(); std::size_t elementIndex = entityStore.GetElementIndex(entityType); if (elementIndex == ClientEntityStore::InvalidIndex) TriggerLuaArgError(L, 1, "entity type \"" + entityType + "\" doesn't exist"); sol::object layerIndexObj = parameters["LayerIndex"]; if (!layerIndexObj.is<LayerIndex>()) TriggerLuaArgError(L, 1, "missing or invalid value for LayerIndex"); LayerIndex layerIndex = layerIndexObj.as<LayerIndex>(); if (layerIndex >= match.GetLayerCount()) TriggerLuaArgError(L, 1, "layer out of range (" + std::to_string(layerIndex) + " > " + std::to_string(match.GetLayerCount()) + ")"); Nz::DegreeAnglef rotation = parameters.get_or("Rotation", Nz::DegreeAnglef::Zero()); Nz::Vector2f position = parameters.get_or("Position", Nz::Vector2f::Zero()); float scale = parameters.get_or("Scale", 1.f); Ndk::EntityHandle lifeOwner; if (std::optional<sol::table> lifeOwnerEntitytable = parameters.get_or<std::optional<sol::table>>("LifeOwner", std::nullopt); lifeOwnerEntitytable) lifeOwner = AssertScriptEntity(*lifeOwnerEntitytable); const auto& entityPtr = entityStore.GetElement(elementIndex); PropertyValueMap entityProperties; if (std::optional<sol::table> propertyTableOpt = parameters.get_or<std::optional<sol::table>>("Properties", std::nullopt); propertyTableOpt) { sol::table& propertyTable = propertyTableOpt.value(); for (auto&& [propertyName, propertyData] : entityPtr->properties) { sol::object propertyValue = propertyTable[propertyName]; if (propertyValue) entityProperties.emplace(propertyName, TranslatePropertyFromLua(&match, propertyValue, propertyData.type, propertyData.isArray)); } } Ndk::EntityHandle parentEntity; if (std::optional<sol::table> propertyTableOpt = parameters.get_or<std::optional<sol::table>>("Parent", std::nullopt); propertyTableOpt) parentEntity = AssertScriptEntity(propertyTableOpt.value()); EntityId clientUniqueId = match.AllocateClientUniqueId(); try { LocalLayer& layer = match.GetLayer(layerIndex); auto entityOpt = entityStore.InstantiateEntity(layer, elementIndex, LocalLayerEntity::ClientsideId, clientUniqueId, position, rotation, scale, entityProperties, parentEntity); if (!entityOpt) TriggerLuaError(L, "failed to create \"" + entityType + "\""); const Ndk::EntityHandle& entity = layer.RegisterEntity(std::move(entityOpt.value())).GetEntity(); if (lifeOwner) { if (!lifeOwner->HasComponent<EntityOwnerComponent>()) lifeOwner->AddComponent<EntityOwnerComponent>(); lifeOwner->GetComponent<EntityOwnerComponent>().Register(entity); } auto& scriptComponent = entity->GetComponent<ScriptComponent>(); return scriptComponent.GetTable(); } catch (const std::exception& e) { TriggerLuaError(L, e.what()); } }); library["GetCamera"] = LuaFunction([&]() -> CameraHandle { LocalMatch& match = GetMatch(); return match.GetCamera().CreateHandle(); }); library["GetPlayers"] = LuaFunction([&](sol::this_state L) -> sol::table { sol::state_view lua(L); LocalMatch& match = GetMatch(); sol::table playerTable = lua.create_table(); std::size_t index = 1; match.ForEachPlayer([&](LocalPlayer& localPlayer) { playerTable[index++] = localPlayer.CreateHandle(); }); return playerTable; }); library["GetLocalTick"] = LuaFunction([&]() { return GetMatch().GetCurrentTick(); }); library["GetTick"] = LuaFunction([&]() { return GetMatch().AdjustServerTick(GetMatch().EstimateServerTick()); }); } void ClientScriptingLibrary::RegisterParticleLibrary(ScriptingContext& /*context*/, sol::table& library) { library["CreateGroup"] = LuaFunction([&](sol::this_state L, unsigned int maxParticleCount, const std::string& particleType) { LocalMatch& match = GetMatch(); const ParticleRegistry& registry = match.GetParticleRegistry(); const auto& layout = registry.GetLayout(particleType); if (!layout) TriggerLuaArgError(L, 2, "Invalid particle type \"" + particleType + "\""); Ndk::World& world = match.GetRenderWorld(); const Ndk::EntityHandle& particleGroupEntity = world.CreateEntity(); auto& particleGroup = particleGroupEntity->AddComponent<Ndk::ParticleGroupComponent>(maxParticleCount, layout); particleGroup.SetRenderer(Nz::ParticleFunctionRenderer::New([](const Nz::ParticleGroup& /*group*/, const Nz::ParticleMapper& /*mapper*/, unsigned int /*startId*/, unsigned int /*endId*/, Nz::AbstractRenderQueue* /*renderQueue*/) { // Do nothing })); return ParticleGroup(registry, particleGroupEntity); }); } void ClientScriptingLibrary::RegisterScriptLibrary(ScriptingContext& context, sol::table& library) { SharedScriptingLibrary::RegisterScriptLibrary(context, library); library["ReloadAll"] = LuaFunction([](sol::this_state L) { TriggerLuaError(L, "only the server can reload scripts"); }); } void ClientScriptingLibrary::RegisterSoundLibrary(ScriptingContext& /*context*/, sol::table& library) { library["CreateMusicFromFile"] = LuaFunction([this](sol::this_state L, const std::string& musicPath) -> sol::object { LocalMatch& match = GetMatch(); const auto& assetDirectory = match.GetAssetStore().GetAssetDirectory(); VirtualDirectory::Entry entry; if (!assetDirectory->GetEntry(musicPath, &entry)) return sol::make_object(L, std::make_pair(sol::nil, "file not found")); Nz::Music music; bool loaded = std::visit([&](auto&& arg) { using T = std::decay_t<decltype(arg)>; if constexpr (std::is_same_v<T, VirtualDirectory::FileContentEntry>) { bwLog(m_logger, LogLevel::Info, "Loading asset from memory"); return music.OpenFromMemory(arg.data(), arg.size()); } else if constexpr (std::is_same_v<T, VirtualDirectory::PhysicalFileEntry>) { bwLog(m_logger, LogLevel::Info, "Loading asset from {}", arg.generic_u8string()); return music.OpenFromFile(arg.generic_u8string()); } else if constexpr (std::is_same_v<T, VirtualDirectory::VirtualDirectoryEntry>) { return false; } else static_assert(AlwaysFalse<T>::value, "non-exhaustive visitor"); }, entry); if (!loaded) return sol::make_object(L, std::make_pair(sol::nil, "failed to open music")); return sol::make_object(L, Music(match.GetApplication(), std::move(music))); }); } void ClientScriptingLibrary::RegisterCameraClass(ScriptingContext& context) { sol::state& state = context.GetLuaState(); state.new_usertype<CameraHandle>("Camera", "new", sol::no_constructor, "GetFOV", LuaFunction(&Camera::GetFOV), "GetPosition", LuaFunction(&Camera::GetPosition), "GetZoomFactor", LuaFunction(&Camera::GetZoomFactor), "GetViewport", LuaFunction(&Camera::GetViewport), "MoveBy", LuaFunction(&Camera::MoveBy), "MoveToPosition", LuaFunction(&Camera::MoveToPosition), "SetFOV", LuaFunction(&Camera::SetFOV), "SetZoomFactor", LuaFunction(&Camera::SetZoomFactor), "Project", sol::overload( LuaFunction(Overload<const Nz::Vector2f&>(&Camera::Project)), LuaFunction(Overload<const Nz::Vector3f&>(&Camera::Project)) ), "Unproject", sol::overload( LuaFunction(Overload<const Nz::Vector2f&>(&Camera::Unproject)), LuaFunction(Overload<const Nz::Vector3f&>(&Camera::Unproject)) ) ); } void ClientScriptingLibrary::RegisterDummyInputControllerClass(ScriptingContext& context) { #define BW_INPUT_PROPERTY(name, type) #name, sol::property( \ LuaFunction([](DummyInputController& input) { return input.GetInputs(). name ; }), \ LuaFunction([](DummyInputController& input, const type& newValue) { input.GetInputs(). name = newValue; })) sol::state& state = context.GetLuaState(); state.new_usertype<InputController>("InputController"); state.new_usertype<DummyInputController>("DummyInputController", sol::base_classes, sol::bases<InputController>(), "new", sol::factories(LuaFunction(&std::make_shared<DummyInputController>)), BW_INPUT_PROPERTY(aimDirection, Nz::Vector2f), BW_INPUT_PROPERTY(isAttacking, bool), BW_INPUT_PROPERTY(isCrouching, bool), BW_INPUT_PROPERTY(isLookingRight, bool), BW_INPUT_PROPERTY(isJumping, bool), BW_INPUT_PROPERTY(isMovingLeft, bool), BW_INPUT_PROPERTY(isMovingRight, bool) ); #undef BW_INPUT_PROPERTY } void ClientScriptingLibrary::RegisterLocalPlayerClass(ScriptingContext& context) { sol::state& state = context.GetLuaState(); state.new_usertype<LocalPlayerHandle>("LocalPlayer", "new", sol::no_constructor, "GetName", LuaFunction(&LocalPlayer::GetName), "GetPing", LuaFunction([](LocalPlayer& localPlayer, sol::this_state L) -> sol::object { if (Nz::UInt16 ping = localPlayer.GetPing(); ping != LocalPlayer::InvalidPing) return sol::make_object(L, ping); else return sol::nil; }), "GetPlayerIndex", LuaFunction(&LocalPlayer::GetPlayerIndex) ); } void ClientScriptingLibrary::RegisterMusicClass(ScriptingContext& context) { sol::state& state = context.GetLuaState(); state.new_usertype<Music>("Music", "new", sol::no_constructor, "EnableLooping", LuaFunction(&Music::EnableLooping), "GetDuration", LuaFunction(&Music::GetDuration), "GetPlayingOffset", LuaFunction(&Music::GetPlayingOffset), "GetSampleCount", LuaFunction(&Music::GetSampleCount), "GetSampleRate", LuaFunction(&Music::GetSampleRate), "IsLooping", LuaFunction(&Music::IsLooping), "IsPlaying", LuaFunction(&Music::IsPlaying), "Pause", LuaFunction(&Music::Pause), "Play", LuaFunction(&Music::Play), "SetPlayingOffset", LuaFunction(&Music::SetPlayingOffset), "Stop", LuaFunction(&Music::Stop) ); } void ClientScriptingLibrary::RegisterParticleGroupClass(ScriptingContext& context) { sol::state& state = context.GetLuaState(); sol::table emptyTable = state.create_table(); state.new_usertype<ParticleGroup>("ParticleGroup", "new", sol::no_constructor, "AddController", sol::overload( LuaFunction([=](ParticleGroup& group, const std::string& name) { group.AddController(name, emptyTable); }), LuaFunction(&ParticleGroup::AddController)), "AddGenerator", sol::overload( LuaFunction([=](ParticleGroup& group, const std::string& name) { group.AddGenerator(name, emptyTable); }), LuaFunction(&ParticleGroup::AddGenerator)), "GenerateParticles", LuaFunction(&ParticleGroup::GenerateParticles), "GetParticleCount", LuaFunction(&ParticleGroup::GetParticleCount), "Kill", LuaFunction(&ParticleGroup::Kill), "SetRenderer", sol::overload( LuaFunction([=](ParticleGroup& group, const std::string& name) { group.SetRenderer(name, emptyTable); }), LuaFunction(&ParticleGroup::SetRenderer)) ); } void ClientScriptingLibrary::RegisterScoreboardClass(ScriptingContext& context) { sol::state& state = context.GetLuaState(); state.new_usertype<ScoreboardHandle>("Scoreboard", "new", sol::no_constructor, "AddColumn", LuaFunction(&Scoreboard::AddColumn), "AddTeam", LuaFunction(&Scoreboard::AddTeam), "RegisterPlayer", LuaFunction(&Scoreboard::RegisterPlayer), "UnregisterPlayer", LuaFunction(&Scoreboard::UnregisterPlayer), "UpdatePlayerValue", LuaFunction(&Scoreboard::UpdatePlayerValue) ); } void ClientScriptingLibrary::RegisterSoundClass(ScriptingContext& context) { sol::state& state = context.GetLuaState(); state.new_usertype<Sound>("Sound", "new", sol::no_constructor, "Stop", LuaFunction(&Sound::Stop) ); } LocalMatch& ClientScriptingLibrary::GetMatch() { return static_cast<LocalMatch&>(GetSharedMatch()); } }
; A036246: CONTINUANT transform of squares 1, 4, 9, ... ; Submitted by Jon Maiga ; 1,5,46,741,18571,669297,32814124,2100773233,170195445997,17021645372933,2059789285570890,296626678767581093,50131968501006775607,9826162452876095600065,2210936683865622516790232,566009617232052240393899457,163578990316746963096353733305,53000158872243248095459003490277,19133220931870129309423796613723302,7653341372906923967017614104492811077,3375142678672885339584077243877943408259,1633576709819049411282660403651029102408433,864165454636955811453866937608638273117469316 add $0,2 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 mul $2,$0 mul $2,$0 lpe mov $0,$1
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; %include "vpx_ports/x86_abi_support.asm" ; /**************************************************************************** ; * Notes: ; * ; * This implementation makes use of 16 bit fixed point version of two multiply ; * constants: ; * 1. sqrt(2) * cos (pi/8) ; * 2. sqrt(2) * sin (pi/8) ; * Because the first constant is bigger than 1, to maintain the same 16 bit ; * fixed point precision as the second one, we use a trick of ; * x * a = x + x*(a-1) ; * so ; * x * sqrt(2) * cos (pi/8) = x + x * (sqrt(2) *cos(pi/8)-1). ; * ; * For the second constant, because of the 16bit version is 35468, which ; * is bigger than 32768, in signed 16 bit multiply, it becomes a negative ; * number. ; * (x * (unsigned)35468 >> 16) = x * (signed)35468 >> 16 + x ; * ; **************************************************************************/ ;void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred, ;int pitch, unsigned char *dest,int stride) global sym(vp8_short_idct4x4llm_mmx) sym(vp8_short_idct4x4llm_mmx): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 5 GET_GOT rbx push rsi push rdi ; end prolog mov rax, arg(0) ;input mov rsi, arg(1) ;pred movq mm0, [rax ] movq mm1, [rax+ 8] movq mm2, [rax+16] movq mm3, [rax+24] %if 0 pxor mm7, mm7 movq [rax], mm7 movq [rax+8], mm7 movq [rax+16],mm7 movq [rax+24],mm7 %endif movsxd rax, dword ptr arg(2) ;pitch mov rdx, arg(3) ;dest movsxd rdi, dword ptr arg(4) ;stride psubw mm0, mm2 ; b1= 0-2 paddw mm2, mm2 ; movq mm5, mm1 paddw mm2, mm0 ; a1 =0+2 pmulhw mm5, [GLOBAL(x_s1sqr2)]; paddw mm5, mm1 ; ip1 * sin(pi/8) * sqrt(2) movq mm7, mm3 ; pmulhw mm7, [GLOBAL(x_c1sqr2less1)]; paddw mm7, mm3 ; ip3 * cos(pi/8) * sqrt(2) psubw mm7, mm5 ; c1 movq mm5, mm1 movq mm4, mm3 pmulhw mm5, [GLOBAL(x_c1sqr2less1)] paddw mm5, mm1 pmulhw mm3, [GLOBAL(x_s1sqr2)] paddw mm3, mm4 paddw mm3, mm5 ; d1 movq mm6, mm2 ; a1 movq mm4, mm0 ; b1 paddw mm2, mm3 ;0 paddw mm4, mm7 ;1 psubw mm0, mm7 ;2 psubw mm6, mm3 ;3 movq mm1, mm2 ; 03 02 01 00 movq mm3, mm4 ; 23 22 21 20 punpcklwd mm1, mm0 ; 11 01 10 00 punpckhwd mm2, mm0 ; 13 03 12 02 punpcklwd mm3, mm6 ; 31 21 30 20 punpckhwd mm4, mm6 ; 33 23 32 22 movq mm0, mm1 ; 11 01 10 00 movq mm5, mm2 ; 13 03 12 02 punpckldq mm0, mm3 ; 30 20 10 00 punpckhdq mm1, mm3 ; 31 21 11 01 punpckldq mm2, mm4 ; 32 22 12 02 punpckhdq mm5, mm4 ; 33 23 13 03 movq mm3, mm5 ; 33 23 13 03 psubw mm0, mm2 ; b1= 0-2 paddw mm2, mm2 ; movq mm5, mm1 paddw mm2, mm0 ; a1 =0+2 pmulhw mm5, [GLOBAL(x_s1sqr2)]; paddw mm5, mm1 ; ip1 * sin(pi/8) * sqrt(2) movq mm7, mm3 ; pmulhw mm7, [GLOBAL(x_c1sqr2less1)]; paddw mm7, mm3 ; ip3 * cos(pi/8) * sqrt(2) psubw mm7, mm5 ; c1 movq mm5, mm1 movq mm4, mm3 pmulhw mm5, [GLOBAL(x_c1sqr2less1)] paddw mm5, mm1 pmulhw mm3, [GLOBAL(x_s1sqr2)] paddw mm3, mm4 paddw mm3, mm5 ; d1 paddw mm0, [GLOBAL(fours)] paddw mm2, [GLOBAL(fours)] movq mm6, mm2 ; a1 movq mm4, mm0 ; b1 paddw mm2, mm3 ;0 paddw mm4, mm7 ;1 psubw mm0, mm7 ;2 psubw mm6, mm3 ;3 psraw mm2, 3 psraw mm0, 3 psraw mm4, 3 psraw mm6, 3 movq mm1, mm2 ; 03 02 01 00 movq mm3, mm4 ; 23 22 21 20 punpcklwd mm1, mm0 ; 11 01 10 00 punpckhwd mm2, mm0 ; 13 03 12 02 punpcklwd mm3, mm6 ; 31 21 30 20 punpckhwd mm4, mm6 ; 33 23 32 22 movq mm0, mm1 ; 11 01 10 00 movq mm5, mm2 ; 13 03 12 02 punpckldq mm0, mm3 ; 30 20 10 00 punpckhdq mm1, mm3 ; 31 21 11 01 punpckldq mm2, mm4 ; 32 22 12 02 punpckhdq mm5, mm4 ; 33 23 13 03 pxor mm7, mm7 movd mm4, [rsi] punpcklbw mm4, mm7 paddsw mm0, mm4 packuswb mm0, mm7 movd [rdx], mm0 movd mm4, [rsi+rax] punpcklbw mm4, mm7 paddsw mm1, mm4 packuswb mm1, mm7 movd [rdx+rdi], mm1 movd mm4, [rsi+2*rax] punpcklbw mm4, mm7 paddsw mm2, mm4 packuswb mm2, mm7 movd [rdx+rdi*2], mm2 add rdx, rdi add rsi, rax movd mm4, [rsi+2*rax] punpcklbw mm4, mm7 paddsw mm5, mm4 packuswb mm5, mm7 movd [rdx+rdi*2], mm5 ; begin epilog pop rdi pop rsi RESTORE_GOT UNSHADOW_ARGS pop rbp ret ;void vp8_dc_only_idct_add_mmx( ;short input_dc, ;unsigned char *pred_ptr, ;int pred_stride, ;unsigned char *dst_ptr, ;int stride) global sym(vp8_dc_only_idct_add_mmx) sym(vp8_dc_only_idct_add_mmx): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 5 GET_GOT rbx ; end prolog movd mm5, arg(0) ;input_dc mov rax, arg(1) ;pred_ptr movsxd rdx, dword ptr arg(2) ;pred_stride pxor mm0, mm0 paddw mm5, [GLOBAL(fours)] lea rcx, [rdx + rdx*2] psraw mm5, 3 punpcklwd mm5, mm5 punpckldq mm5, mm5 movd mm1, [rax] movd mm2, [rax+rdx] movd mm3, [rax+2*rdx] movd mm4, [rax+rcx] mov rax, arg(3) ;d -- destination movsxd rdx, dword ptr arg(4) ;dst_stride punpcklbw mm1, mm0 paddsw mm1, mm5 packuswb mm1, mm0 ; pack and unpack to saturate lea rcx, [rdx + rdx*2] punpcklbw mm2, mm0 paddsw mm2, mm5 packuswb mm2, mm0 ; pack and unpack to saturate punpcklbw mm3, mm0 paddsw mm3, mm5 packuswb mm3, mm0 ; pack and unpack to saturate punpcklbw mm4, mm0 paddsw mm4, mm5 packuswb mm4, mm0 ; pack and unpack to saturate movd [rax], mm1 movd [rax+rdx], mm2 movd [rax+2*rdx], mm3 movd [rax+rcx], mm4 ; begin epilog RESTORE_GOT UNSHADOW_ARGS pop rbp ret SECTION_RODATA align 16 x_s1sqr2: times 4 dw 0x8A8C align 16 x_c1sqr2less1: times 4 dw 0x4E7B align 16 fours: times 4 dw 0x0004
; A070821: Integer part of n/(lpf(n)*gpf(n)), where lpf = A020639 is the least prime factor and gpf = A006530 the greatest prime factor. ; Submitted by Jamie Morken(s1) ; 1,0,0,1,0,1,0,2,1,1,0,2,0,1,1,4,0,3,0,2,1,1,0,4,1,1,3,2,0,3,0,8,1,1,1,6,0,1,1,4,0,3,0,2,3,1,0,8,1,5,1,2,0,9,1,4,1,1,0,6,0,1,3,16,1,3,0,2,1,5,0,12,0,1,5,2,1,3,0,8,9,1,0,6,1,1,1,4,0,9,1,2,1,1,1,16,0,7,3,10 mov $1,$0 seq $0,20639 ; Lpf(n): least prime dividing n (when n > 1); a(1) = 1. Or, smallest prime factor of n, or smallest prime divisor of n. seq $1,52126 ; a(1) = 1; for n>1, a(n)=n/(largest prime dividing n). div $1,$0 mov $0,$1
; uint16_t esx_f_read(unsigned char handle, void *dst, size_t nbytes) SECTION code_esxdos PUBLIC esx_f_read EXTERN asm_esx_f_read esx_f_read: pop af pop bc pop hl pop de push de push hl push bc push af ld a,e jp asm_esx_f_read
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md // ----------------------------------------------------------------------------------------------------- #pragma once #include <gtest/gtest.h> #include <seqan3/alignment/pairwise/edit_distance_unbanded.hpp> #include <seqan3/range/view/to_char.hpp> #include "fixture/alignment_fixture.hpp" #include <seqan3/test/pretty_printing.hpp> using namespace seqan3; using namespace seqan3::detail; using namespace seqan3::test::alignment::fixture; template <bool compute_score_matrix_, typename database_t, typename query_t, typename align_cfg_t, typename word_t, typename is_semi_global_t, typename traits_t = default_edit_distance_trait_type<database_t, query_t, align_cfg_t, is_semi_global_t, word_t>> struct edit_traits_type : traits_t { static constexpr bool compute_score_matrix = compute_score_matrix_; static constexpr bool compute_matrix = compute_score_matrix || traits_t::compute_trace_matrix; }; template <auto _fixture, typename word_t> struct global_fixture : public ::testing::Test { auto fixture() -> decltype(alignment_fixture{*_fixture}) const & { return *_fixture; } template <bool compute_score_matrix, typename database_t, typename query_t, typename align_cfg_t> using edit_traits_type = ::edit_traits_type<compute_score_matrix, database_t, query_t, align_cfg_t, word_t, std::false_type>; }; template <auto _fixture, typename word_t> struct semi_global_fixture : public global_fixture<_fixture, word_t> { template <bool compute_score_matrix, typename database_t, typename query_t, typename align_cfg_t> using edit_traits_type = ::edit_traits_type<compute_score_matrix, database_t, query_t, align_cfg_t, word_t, std::true_type>; }; template <typename fixture_t> class edit_distance_unbanded_test : public fixture_t {}; TYPED_TEST_CASE_P(edit_distance_unbanded_test); template <template <bool, typename...> typename edit_traits_type, bool compute_score_matrix = false, typename database_t, typename query_t, typename align_cfg_t> auto edit_distance(database_t && database, query_t && query, align_cfg_t && align_cfg) { using edit_traits = edit_traits_type<compute_score_matrix, database_t, query_t, align_cfg_t>; using algorithm_t = edit_distance_unbanded<database_t, query_t, align_cfg_t, edit_traits>; auto alignment = algorithm_t{database, query, align_cfg}; // compute alignment alignment(0u); return alignment; } TYPED_TEST_P(edit_distance_unbanded_test, score) { auto const & fixture = this->fixture(); configuration align_cfg = fixture.config | align_cfg::result{with_score}; std::vector database = fixture.sequence1; std::vector query = fixture.sequence2; auto alignment = edit_distance<TypeParam::template edit_traits_type>(database, query, align_cfg); EXPECT_EQ(alignment.score(), fixture.score); } TYPED_TEST_P(edit_distance_unbanded_test, score_matrix) { auto const & fixture = this->fixture(); configuration align_cfg = fixture.config | align_cfg::result{with_alignment}; std::vector database = fixture.sequence1; std::vector query = fixture.sequence2; auto alignment = edit_distance<TypeParam::template edit_traits_type, true>(database, query, align_cfg); auto score_matrix = alignment.score_matrix(); EXPECT_EQ(score_matrix.cols(), database.size()+1); EXPECT_EQ(score_matrix.rows(), query.size()+1); EXPECT_EQ(score_matrix, fixture.score_matrix()); EXPECT_EQ(alignment.score(), fixture.score); } TYPED_TEST_P(edit_distance_unbanded_test, trace_matrix) { auto const & fixture = this->fixture(); configuration align_cfg = fixture.config | align_cfg::result{with_alignment}; std::vector database = fixture.sequence1; std::vector query = fixture.sequence2; auto alignment = edit_distance<TypeParam::template edit_traits_type>(database, query, align_cfg); auto trace_matrix = alignment.trace_matrix(); EXPECT_EQ(trace_matrix.cols(), database.size()+1); EXPECT_EQ(trace_matrix.rows(), query.size()+1); EXPECT_EQ(trace_matrix, fixture.trace_matrix()); } TYPED_TEST_P(edit_distance_unbanded_test, back_coordinate) { auto const & fixture = this->fixture(); configuration align_cfg = fixture.config | align_cfg::result{with_back_coordinate}; std::vector database = fixture.sequence1; std::vector query = fixture.sequence2; auto alignment = edit_distance<TypeParam::template edit_traits_type>(database, query, align_cfg); auto back_coordinate = alignment.back_coordinate(); EXPECT_EQ(back_coordinate, fixture.back_coordinate); } TYPED_TEST_P(edit_distance_unbanded_test, front_coordinate) { auto const & fixture = this->fixture(); configuration align_cfg = fixture.config | align_cfg::result{with_front_coordinate}; std::vector database = fixture.sequence1; std::vector query = fixture.sequence2; auto alignment = edit_distance<TypeParam::template edit_traits_type>(database, query, align_cfg); auto front_coordinate = alignment.front_coordinate(); EXPECT_EQ(front_coordinate, fixture.front_coordinate); } TYPED_TEST_P(edit_distance_unbanded_test, alignment) { auto const & fixture = this->fixture(); configuration align_cfg = fixture.config | align_cfg::result{with_alignment}; std::vector database = fixture.sequence1; std::vector query = fixture.sequence2; auto alignment = edit_distance<TypeParam::template edit_traits_type>(database, query, align_cfg); auto && [gapped_database, gapped_query] = alignment.alignment(); EXPECT_EQ(std::string{gapped_database | view::to_char}, fixture.aligned_sequence1); EXPECT_EQ(std::string{gapped_query | view::to_char}, fixture.aligned_sequence2); } REGISTER_TYPED_TEST_CASE_P(edit_distance_unbanded_test, score, score_matrix, trace_matrix, back_coordinate, front_coordinate, alignment);
; Generated by PSoC Designer 5.2.2401 ; ;@Id: boot.tpl#903 @ ;============================================================================= ; FILENAME: boot.asm ; Version: 1.30 ; ; DESCRIPTION: ; M8C Boot Code for CY8C28xxx microcontroller devices. ; ; Copyright (c) Cypress Semiconductor 2011. All Rights Reserved. ; ; NOTES: ; PSoC Designer's Device Editor uses a template file, BOOT.TPL, located in ; the project's root directory to create BOOT.ASM. Any changes made to ; BOOT.ASM will be overwritten every time the project is generated; therefore ; changes should be made to BOOT.TPL not BOOT.ASM. Care must be taken when ; modifying BOOT.TPL so that replacement strings (such as @PROJECT_NAME) ; are not accidentally modified. ; ;============================================================================= include ".\lib\GlobalParams.inc" ;File generated by PSoC Designer (Project dependent) include "m8c.inc" ;Part specific file include "m8ssc.inc" ;Part specific file include "memory.inc" ;File generated by PSoC Designer (Project dependent) ;-------------------------------------- ; Export Declarations ;-------------------------------------- export __Start IF (TOOLCHAIN & HITECH) ELSE export __bss_start export __data_start export __idata_start export __func_lit_start export __text_start ENDIF export _bGetPowerSetting export bGetPowerSetting ;-------------------------------------- ; Optimization flags ;-------------------------------------- ; ; To change the value of these flags, modify the file boot.tpl, not ; boot.asm. See the notes in the banner comment at the beginning of ; this file. ; Optimization for Assembly language (only) projects and C-language projects ; that do not depend on the C compiler to initialize the values of RAM variables. ; Set to 1: Support for C Run-time Environment initialization ; Set to 0: Support for C not included. Faster start up, smaller code space. ; IF (TOOLCHAIN & HITECH) ; The C compiler will customize the startup code - it's not required here C_LANGUAGE_SUPPORT: equ 0 ELSE C_LANGUAGE_SUPPORT: equ 1 ENDIF ; The following equate is required for proper operation. Reseting its value ; is discouraged. WAIT_FOR_32K is effective only if the crystal oscillator is ; selected. If the designer chooses to not wait then stabilization of the ECO ; and PLL_Lock must take place within user code. See the family data sheet for ; the requirements of starting the ECO and PLL lock mode. ; ; Set to 1: Wait for XTAL (& PLL if selected) to stabilize before ; invoking main ; Set to 0: Boot code does not wait; clock may not have stabilized by ; the time code in main starts executing. ; WAIT_FOR_32K: equ 1 ; For historical reasons, by default the boot code uses an lcall instruction ; to invoke the user's _main code. If _main executes a return instruction, ; boot provides an infinite loop. By changing the following equate from zero ; to 1, boot's lcall will be replaced by a ljmp instruction, saving two ; bytes on the stack which are otherwise required for the return address. If ; this option is enabled, _main must not return. (Beginning with the 4.2 ; release, the C compiler automatically places an infinite loop at the end ; of main, rather than a return instruction.) ; ENABLE_LJMP_TO_MAIN: equ 0 ;----------------------------------------------------------------------------- ; Interrupt Vector Table ;----------------------------------------------------------------------------- ; ; Interrupt vector table entries are 4 bytes long. Each one contains ; a jump instruction to an ISR (Interrupt Service Routine), although ; very short ISRs could be encoded within the table itself. Normally, ; vector jump targets are modified automatically according to the user ; modules selected. This occurs when the 'Generate Application' opera- ; tion is run causing PSoC Designer to create boot.asm and the other ; configuration files. If you need to hard code a vector, update the ; file boot.tpl, not boot.asm. See the banner comment at the beginning ; of this file. ;----------------------------------------------------------------------------- AREA TOP (ROM, ABS, CON) org 0 ;Reset Interrupt Vector IF (TOOLCHAIN & HITECH) ; jmp __Start ;C compiler fills in this vector ELSE jmp __Start ;First instruction executed following a Reset ENDIF ;@PSoC_BOOT_ISR_UserCode_START@ ;--------------------------------------------------- ; Insert your custom code below this banner ;--------------------------------------------------- org 04h ;Low Voltage Detect (LVD) Interrupt Vector halt ;Stop execution if power falls too low org 08h ;Analog Column 0 / Decimator 0 Interrupt Vector // call void_handler reti org 0Ch ;Analog Column 1 / Decimator 1 Interrupt Vector // call void_handler reti org 10h ;Analog Column 2 / Decimator 2 Interrupt Vector // call void_handler reti org 14h ;Analog Column 3 / Decimator 3 Interrupt Vector // call void_handler reti org 18h ;VC3 Interrupt Vector // call void_handler reti org 1Ch ;GPIO Interrupt Vector // call void_handler reti org 20h ;PSoC Block DBC00 Interrupt Vector // call void_handler reti org 24h ;PSoC Block DBC01 Interrupt Vector // call void_handler reti org 28h ;PSoC Block DCC02 Interrupt Vector // call void_handler reti org 2Ch ;PSoC Block DCC03 Interrupt Vector // call void_handler reti org 30h ;PSoC Block DBC10 Interrupt Vector // call void_handler reti org 34h ;PSoC Block DBC11 Interrupt Vector // call void_handler reti org 38h ;PSoC Block DCC12 Interrupt Vector // call void_handler reti org 3Ch ;PSoC Block DCC13 Interrupt Vector // call void_handler reti org 40h ;PSoC Block DBC20 Interrupt Vector // call void_handler reti org 44h ;PSoC Block DBC21 Interrupt Vector // call void_handler reti org 48h ;PSoC Block DCC22 Interrupt Vector // call void_handler reti org 4Ch ;PSoC Block DCC23 Interrupt Vector // call void_handler reti org 60h ;PSoC I2C0 Interrupt Vector // call void_handler reti org 64h ;PSoC I2C1 Interrupt Vector // call void_handler reti org 68h ;PSoC SARADC Interrupt Vector // call void_handler reti org 6Ch ;PSoC RTC Interrupt Vector // call void_handler reti org 70h ;Analog Column 4 Interrupt Vector // call void_handler reti org 74h ;Analog Column 5 Interrupt Vector // call void_handler reti org 7Ch ;Sleep Timer Interrupt Vector // call void_handler reti ;--------------------------------------------------- ; Insert your custom code above this banner ;--------------------------------------------------- ;@PSoC_BOOT_ISR_UserCode_END@ ;----------------------------------------------------------------------------- ; Start of Execution. ;----------------------------------------------------------------------------- ; The Supervisory ROM SWBootReset function has already completed the ; calibrate1 process, loading trim values for 5 volt operation. ; IF (TOOLCHAIN & HITECH) AREA PD_startup(CODE, REL, CON) ELSE org 80h ENDIF __Start: ; initialize SMP values for voltage stabilization, if required, ; leaving power-on reset (POR) level at the default (low) level, at ; least for now. ; M8C_SetBank1 mov reg[VLT_CR], SWITCH_MODE_PUMP_JUST | LVD_TBEN_JUST | TRIP_VOLTAGE_JUST M8C_SetBank0 M8C_ClearWDTAndSleep ; Clear WDT before enabling it. IF ( WATCHDOG_ENABLE ) ; WDT selected in Global Params M8C_EnableWatchDog ENDIF IF ( SELECT_32K ) or reg[CPU_SCR1], CPU_SCR1_ECO_ALLOWED ; ECO will be used in this project ELSE and reg[CPU_SCR1], ~CPU_SCR1_ECO_ALLOWED ; Prevent ECO from being enabled ENDIF ;--------------------------- ; Set up the Temporary stack ;--------------------------- ; A temporary stack is set up for the SSC instructions. ; The real stack start will be assigned later. ; _stack_start: equ 80h mov A, _stack_start ; Set top of stack to end of used RAM swap SP, A ; This is only temporary if going to LMM ;------------------------ ; Set Power-related Trim ;------------------------ M8C_ClearWDTAndSleep ; Clear WDT before enabling it. IF ( POWER_SETTING & POWER_SET_5V0) ; *** 5.0 Volt operation *** IF ( POWER_SETTING & POWER_SET_SLOW_IMO) ; *** 6MHZ Main Oscillator *** or reg[CPU_SCR1], CPU_SCR1_SLIMO M8SSC_Set2TableTrims 2, SSCTBL2_TRIM_IMO_5V_6MHZ, 1, SSCTBL1_TRIM_BGR_5V, AGND_BYPASS_JUST ELSE IF ( AGND_BYPASS ) ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; The 5V trim has already been set, but we need to update the AGNDBYP ; bit in the write-only BDG_TR register. Recalculate the register ; value using the proper trim values. ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - M8SSC_SetTableVoltageTrim 1, SSCTBL1_TRIM_BGR_5V, AGND_BYPASS_JUST ENDIF ENDIF ENDIF ; 5.0 V Operation IF ( POWER_SETTING & POWER_SET_3V3) ; *** 3.3 Volt operation *** IF ( POWER_SETTING & POWER_SET_SLOW_IMO) ; *** 6MHZ Main Oscillator *** or reg[CPU_SCR1], CPU_SCR1_SLIMO M8SSC_Set2TableTrims 2, SSCTBL2_TRIM_IMO_3V_6MHZ, 1, SSCTBL1_TRIM_BGR_3V, AGND_BYPASS_JUST ELSE ; *** 12MHZ Main Oscillator *** M8SSC_SetTableTrims 1, SSCTBL1_TRIM_IMO_3V_24MHZ, SSCTBL1_TRIM_BGR_3V, AGND_BYPASS_JUST ENDIF ENDIF ; 3.3 Volt Operation mov [bSSC_KEY1], 0 ; Lock out Flash and Supervisiory operations mov [bSSC_KEYSP], 0 ;--------------------------------------- ; Initialize Crystal Oscillator and PLL ;--------------------------------------- IF ( SELECT_32K & WAIT_FOR_32K ) ; If the user has requested the External Crystal Oscillator (ECO) then turn it ; on and wait for it to stabilize and the system to switch over to it. The PLL ; is left off. The SleepTimer period is set to 1 sec to time the wait for ; the ECO to stabilize. ; M8C_SetBank1 mov reg[OSC_CR0], (SELECT_32K_JUST | OSC_CR0_SLEEP_1Hz | OSC_CR0_CPU_12MHz) M8C_SetBank0 M8C_ClearWDTAndSleep ; Reset the sleep timer to get a full second or reg[INT_MSK0], INT_MSK0_SLEEP ; Enable latching of SleepTimer interrupt mov reg[INT_VC], 0 ; Clear all pending interrupts .WaitFor1s: tst reg[INT_CLR0], INT_MSK0_SLEEP ; Test the SleepTimer Interrupt Status jz .WaitFor1s ; Interrupt will latch but will not dispatch ; since interrupts are not globally enabled ELSE ; !( SELECT_32K & WAIT_FOR_32K ) ; Either no ECO, or waiting for stable clock is to be done in main M8C_SetBank1 mov reg[OSC_CR0], (SELECT_32K_JUST | PLL_MODE_JUST | SLEEP_TIMER_JUST | OSC_CR0_CPU_12MHz) M8C_SetBank0 M8C_ClearWDTAndSleep ; Reset the watch dog ENDIF ;( SELECT_32K & WAIT_FOR_32K ) IF ( PLL_MODE ) ; Crystal is now fully operational (assuming WAIT_FOR_32K was enabled). ; Now start up PLL if selected, and wait 16 msec for it to stabilize. ; M8C_SetBank1 mov reg[OSC_CR0], (SELECT_32K_JUST | PLL_MODE_JUST | OSC_CR0_SLEEP_64Hz | OSC_CR0_CPU_3MHz) M8C_SetBank0 M8C_ClearWDTAndSleep ; Reset the sleep timer to get full period mov reg[INT_VC], 0 ; Clear all pending interrupts .WaitFor16ms: tst reg[INT_CLR0],INT_MSK0_SLEEP ; Test the SleepTimer Interrupt Status jz .WaitFor16ms M8C_SetBank1 ; continue boot at CPU Speed of SYSCLK/2 mov reg[OSC_CR0], (SELECT_32K_JUST | PLL_MODE_JUST | OSC_CR0_SLEEP_64Hz | OSC_CR0_CPU_12MHz) M8C_SetBank0 IF ( WAIT_FOR_32K ) ELSE ; !( WAIT_FOR_32K ) ; Option settings (PLL-Yes, ECO-No) are incompatible - force a syntax error ERROR_PSoC Disabling WAIT_FOR_32K requires that the PLL_Lock must be enabled in user code. ENDIF ;(WAIT_FOR_32K) ENDIF ;(PLL_MODE) ;------------------------------------------------------- ; Initialize Proper Drive Mode for External Clock Pin ;------------------------------------------------------- ; Change EXTCLK pin from Hi-Z Analog (110b) drive mode to Hi-Z (010b) drive mode IF (SYSCLK_SOURCE) and reg[PRT1DM2], ~0x10 ; Clear bit 4 of EXTCLK pin's DM2 register ENDIF ; EXTCLK pin is now in proper drive mode to input the external clock signal ;------------------------ ; Close CT leakage path. ;------------------------ mov reg[ACC00CR0], 05h mov reg[ACC01CR0], 05h mov reg[ACC02CR0], 05h mov reg[ACC03CR0], 05h IF (TOOLCHAIN & HITECH) ;--------------------------------------------- ; HI-TECH initialization: Enter the Large Memory Model, if applicable ;--------------------------------------------- global __Lstackps mov a,low __Lstackps swap a,sp IF ( SYSTEM_LARGE_MEMORY_MODEL ) RAM_SETPAGE_STK SYSTEM_STACK_PAGE ; relocate stack page ... RAM_SETPAGE_IDX2STK ; initialize other page pointers RAM_SETPAGE_CUR 0 RAM_SETPAGE_MVW 0 RAM_SETPAGE_MVR 0 IF ( SYSTEM_IDXPG_TRACKS_STK_PP ); Now enable paging: or F, FLAG_PGMODE_11b ; LMM w/ IndexPage<==>StackPage ELSE or F, FLAG_PGMODE_10b ; LMM w/ independent IndexPage ENDIF ; SYSTEM_IDXPG_TRACKS_STK_PP ENDIF ; SYSTEM_LARGE_MEMORY_MODEL ELSE ;--------------------------------------------- ; ImageCraft Enter the Large Memory Model, if applicable ;--------------------------------------------- IF ( SYSTEM_LARGE_MEMORY_MODEL ) RAM_SETPAGE_STK SYSTEM_STACK_PAGE ; relocate stack page ... mov A, SYSTEM_STACK_BASE_ADDR ; and offset, if any swap A, SP RAM_SETPAGE_IDX2STK ; initialize other page pointers RAM_SETPAGE_CUR 0 RAM_SETPAGE_MVW 0 RAM_SETPAGE_MVR 0 IF ( SYSTEM_IDXPG_TRACKS_STK_PP ); Now enable paging: or F, FLAG_PGMODE_11b ; LMM w/ IndexPage<==>StackPage ELSE or F, FLAG_PGMODE_10b ; LMM w/ independent IndexPage ENDIF ; SYSTEM_IDXPG_TRACKS_STK_PP ELSE mov A, __ramareas_end ; Set top of stack to end of used RAM swap SP, A ENDIF ; SYSTEM_LARGE_MEMORY_MODEL ENDIF ; TOOLCHAIN ;@PSoC_BOOT_LOADCFG_UserCode_START@ ;--------------------------------------------------- ; Insert your custom code below this banner ;--------------------------------------------------- ;--------------------------------------------------- ; Insert your custom code above this banner ;--------------------------------------------------- ;@PSoC_BOOT_LOADCFG_UserCode_END@ ;------------------------- ; Load Base Configuration ;------------------------- ; Load global parameter settings and load the user modules in the ; base configuration. Exceptions: (1) Leave CPU Speed fast as possible ; to minimize start up time; (2) We may still need to play with the ; Sleep Timer. ; lcall LoadConfigInit M8C_SetBank0 ;----------------------------------- ; Initialize C Run-Time Environment ;----------------------------------- IF ( C_LANGUAGE_SUPPORT ) IF ( SYSTEM_SMALL_MEMORY_MODEL ) mov A,0 ; clear the 'bss' segment to zero mov [__r0],<__bss_start BssLoop: cmp [__r0],<__bss_end jz BssDone mvi [__r0],A jmp BssLoop BssDone: mov A,>__idata_start ; copy idata to data segment mov X,<__idata_start mov [__r0],<__data_start IDataLoop: cmp [__r0],<__data_end jz C_RTE_Done push A romx mvi [__r0],A pop A inc X adc A,0 jmp IDataLoop ENDIF ; SYSTEM_SMALL_MEMORY_MODEL IF ( SYSTEM_LARGE_MEMORY_MODEL ) mov reg[CUR_PP], >__r0 ; force direct addr mode instructions ; to use the Virtual Register page. ; Dereference the constant (flash) pointer pXIData to access the start ; of the extended idata area, "xidata." Xidata follows the end of the ; text segment and may have been relocated by the Code Compressor. ; mov A, >__pXIData ; Get the address of the flash mov X, <__pXIData ; pointer to the xidata area. push A romx ; get the MSB of xidata's address mov [__r0], A pop A inc X adc A, 0 romx ; get the LSB of xidata's address swap A, X mov A, [__r0] ; pXIData (in [A,X]) points to the ; XIData structure list in flash jmp .AccessStruct ; Unpack one element in the xidata "structure list" that specifies the ; values of C variables. Each structure contains 3 member elements. ; The first is a pointer to a contiguous block of RAM to be initial- ; ized. Blocks are always 255 bytes or less in length and never cross ; RAM page boundaries. The list terminates when the MSB of the pointer ; contains 0xFF. There are two formats for the struct depending on the ; value in the second member element, an unsigned byte: ; (1) If the value of the second element is non-zero, it represents ; the 'size' of the block of RAM to be initialized. In this case, the ; third member of the struct is an array of bytes of length 'size' and ; the bytes are copied to the block of RAM. ; (2) If the value of the second element is zero, the block of RAM is ; to be cleared to zero. In this case, the third member of the struct ; is an unsigned byte containing the number of bytes to clear. .AccessNextStructLoop: inc X ; pXIData++ adc A, 0 .AccessStruct: ; Entry point for first block ; ; Assert: pXIData in [A,X] points to the beginning of an XIData struct. ; M8C_ClearWDT ; Clear the watchdog for long inits push A romx ; MSB of RAM addr (CPU.A <- *pXIData) mov reg[MVW_PP], A ; for use with MVI write operations inc A ; End of Struct List? (MSB==0xFF?) jz .C_RTE_WrapUp ; Yes, C runtime environment complete pop A ; restore pXIData to [A,X] inc X ; pXIData++ adc A, 0 push A romx ; LSB of RAM addr (CPU.A <- *pXIData) mov [__r0], A ; RAM Addr now in [reg[MVW_PP],[__r0]] pop A ; restore pXIData to [A,X] inc X ; pXIData++ (point to size) adc A, 0 push A romx ; Get the size (CPU.A <- *pXIData) jz .ClearRAMBlockToZero ; If Size==0, then go clear RAM mov [__r1], A ; else downcount in __r1 pop A ; restore pXIData to [A,X] .CopyNextByteLoop: ; For each byte in the structure's array member, copy from flash to RAM. ; Assert: pXIData in [A,X] points to previous byte of flash source; ; [reg[MVW_PP],[__r0]] points to next RAM destination; ; __r1 holds a non-zero count of the number of bytes remaining. ; inc X ; pXIData++ (point to next data byte) adc A, 0 push A romx ; Get the data value (CPU.A <- *pXIData) mvi [__r0], A ; Transfer the data to RAM tst [__r0], 0xff ; Check for page crossing jnz .CopyLoopTail ; No crossing, keep going mov A, reg[ MVW_PP] ; If crossing, bump MVW page reg inc A mov reg[ MVW_PP], A .CopyLoopTail: pop A ; restore pXIData to [A,X] dec [__r1] ; End of this array in flash? jnz .CopyNextByteLoop ; No, more bytes to copy jmp .AccessNextStructLoop ; Yes, initialize another RAM block .ClearRAMBlockToZero: pop A ; restore pXIData to [A,X] inc X ; pXIData++ (point to next data byte) adc A, 0 push A romx ; Get the run length (CPU.A <- *pXIData) mov [__r1], A ; Initialize downcounter mov A, 0 ; Initialize source data .ClearRAMBlockLoop: ; Assert: [reg[MVW_PP],[__r0]] points to next RAM destination and ; __r1 holds a non-zero count of the number of bytes remaining. ; mvi [__r0], A ; Clear a byte tst [__r0], 0xff ; Check for page crossing jnz .ClearLoopTail ; No crossing, keep going mov A, reg[ MVW_PP] ; If crossing, bump MVW page reg inc A mov reg[ MVW_PP], A mov A, 0 ; Restore the zero used for clearing .ClearLoopTail: dec [__r1] ; Was this the last byte? jnz .ClearRAMBlockLoop ; No, continue pop A ; Yes, restore pXIData to [A,X] and jmp .AccessNextStructLoop ; initialize another RAM block .C_RTE_WrapUp: pop A ; balance stack ENDIF ; SYSTEM_LARGE_MEMORY_MODEL C_RTE_Done: ENDIF ; C_LANGUAGE_SUPPORT ;------------------------------- ; Voltage Stabilization for SMP ;------------------------------- IF ( POWER_SETTING & POWER_SET_5V0) ; 5.0V Operation IF ( SWITCH_MODE_PUMP ^ 1 ) ; SMP is operational ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; When using the SMP at 5V, we must wait for Vdd to slew from 3.1V to ; 5V before enabling the Precision Power-On Reset (PPOR). ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - or reg[INT_MSK0],INT_MSK0_SLEEP M8C_SetBank1 and reg[OSC_CR0], ~OSC_CR0_SLEEP or reg[OSC_CR0], OSC_CR0_SLEEP_512Hz M8C_SetBank0 M8C_ClearWDTAndSleep ; Restart the sleep timer mov reg[INT_VC], 0 ; Clear all pending interrupts .WaitFor2ms: tst reg[INT_CLR0], INT_MSK0_SLEEP ; Test the SleepTimer Interrupt Status jz .WaitFor2ms ; Branch fails when 2 msec has passed ENDIF ; SMP is operational ENDIF ; 5.0V Operation ;------------------------------- ; Set Power-On Reset (POR) Level ;------------------------------- ; This checks for improper selection of CPU voltage and processer speed ratings. If an improper selection ; is made (in the global resources section of the device editor), a compilation error is created, disallowing ; this selection. If the selection is valid, the POR level is then set. ; Invalid cases checked: ; -At 3.3 volt operation, the cpu rate must be at or below 12 MHz IF (POWER_SETTING & POWER_SET_3V3) ; 3.3V Operation? IF ( POWER_SETTING & POWER_SET_SLOW_IMO) ; *** SLIMO = 6MHZ, Do Nothing *** ELSE IF (CPU_CLOCK_JUST ^ OSC_CR0_CPU_24MHz) ; Not 24 MHz, Do Nothing... ELSE ; Otherwise, 24 MHz is selected... raise error ERROR_PSoC SEE COMMENTS ; Error - cannot use 24 MHz w/ 3.3V operation (Clock <= 12 MHz) ENDIF ENDIF ENDIF ; The writes to the VLT_CR register below include setting the POR to VLT_CR_POR_HIGH, ; VLT_CR_POR_MID or VLT_CR_POR_LOW. Correctly setting this value is critical to the proper ; operation of the PSoC. The POR protects the M8C from mis-executing when Vdd falls low. ; These values should not be changed from the settings here. See Section "POR and LVD" of ; Technical Reference Manual #001-52594 for more information. M8C_SetBank1 IF (POWER_SETTING & POWER_SET_5V0) ; 5.0V Operation? IF (POWER_SETTING & POWER_SET_SLOW_IMO) ; and Slow Mode? ELSE ; No, fast mode IF ( CPU_CLOCK_JUST ^ OSC_CR0_CPU_24MHz ) ; As fast as 24MHz? ; no, set midpoint POR in user code, if desired ELSE ; 24HMz ; or reg[VLT_CR], VLT_CR_POR_HIGH ; yes, highest POR trip point required ENDIF ; 24MHz ENDIF ; Slow Mode ENDIF ; 5.0V Operation M8C_SetBank0 ;---------------------------- ; Wrap up and invoke "main" ;---------------------------- ; Disable the Sleep interrupt that was used for timing above. In fact, ; no interrupts should be enabled now, so may as well clear the register. ; mov reg[INT_MSK0],0 ; Everything has started OK. Now select requested CPU & sleep frequency. ; M8C_SetBank1 mov reg[OSC_CR0],(SELECT_32K_JUST | PLL_MODE_JUST | SLEEP_TIMER_JUST | CPU_CLOCK_JUST) or reg[OSC_CR2], (SLEEP_TIMER_JUST2) M8C_SetBank0 ; Global Interrupt are NOT enabled, this should be done in main(). ; LVD is set but will not occur unless Global Interrupts are enabled. ; Global Interrupts should be enabled as soon as possible in main(). ; mov reg[INT_VC],0 ; Clear any pending interrupts which may ; have been set during the boot process. IF (TOOLCHAIN & HITECH) ljmp startup ; Jump to C compiler startup code ELSE IF ENABLE_LJMP_TO_MAIN ljmp _main ; goto main (no return) ELSE lcall _main ; call main .Exit: jmp .Exit ; Wait here after return till power-off or reset ENDIF ENDIF ; TOOLCHAIN ;--------------------------------- ; Library Access to Global Parms ;--------------------------------- ; bGetPowerSetting: _bGetPowerSetting: ; Returns value of POWER_SETTING in the A register. ; No inputs. No Side Effects. ; IF (POWER_SETTING & POWER_SET_2V7) mov A, POWER_SETTING | POWER_SET_SLOW_IMO ELSE mov A, POWER_SETTING ; Supply voltage and internal main osc ENDIF ret IF (TOOLCHAIN & HITECH) ELSE ;--------------------------------- ; Order Critical RAM & ROM AREAs ;--------------------------------- ; 'TOP' is all that has been defined so far... ; ROM AREAs for C CONST, static & global items ; AREA lit (ROM, REL, CON, LIT) ; 'const' definitions AREA idata (ROM, REL, CON, LIT) ; Constants for initializing RAM __idata_start: AREA func_lit (ROM, REL, CON, proclab) ; Function Pointers __func_lit_start: IF ( SYSTEM_LARGE_MEMORY_MODEL ) ; We use the func_lit area to store a pointer to extended initialized ; data (xidata) area that follows the text area. Func_lit isn't ; relocated by the code compressor, but the text area may shrink and ; that moves xidata around. ; __pXIData: word __text_end ; ptr to extended idata ENDIF AREA psoc_config (ROM, REL, CON) ; Configuration Load & Unload AREA UserModules (ROM, REL, CON) ; User Module APIs ; CODE segment for general use ; AREA text (ROM, REL, CON) __text_start: ; RAM area usage ; AREA data (RAM, REL, CON) ; initialized RAM __data_start: AREA virtual_registers (RAM, REL, CON) ; Temp vars of C compiler AREA InterruptRAM (RAM, REL, CON) ; Interrupts, on Page 0 AREA bss (RAM, REL, CON) ; general use __bss_start: ENDIF ; TOOLCHAIN ; end of file boot.asm
; A301787: Number of nX5 0..1 arrays with every element equal to 0 or 1 horizontally or antidiagonally adjacent elements, with upper left element zero. ; 8,14,25,45,82,150,275,505,928,1706,3137,5769,10610,19514,35891,66013,121416,223318,410745,755477,1389538,2555758,4700771,8646065,15902592,29249426,53798081,98950097,181997602,334745778,615693475,1132436853,2082876104,3831006430,7046319385,12960201917,23837527730,43844049030,80641778675,148323355433,272809183136,501774317242,922906855809,1697490356185,3122171529234,5742568741226,10562230626643,19426970897101,35731770264968,65720971788710,120879712950777,222332455004453,408933139743938,752145307699166,1383410902447555,2544489349890657,4680045560037376,8607945812375586 add $0,1 mov $1,1 mov $2,1 mov $3,2 mov $4,2 lpb $0 sub $0,1 sub $4,$2 mov $2,$4 add $4,$3 mov $3,$1 trn $1,2 add $3,3 add $4,1 add $1,$4 lpe add $1,4
.ASSUME ADL=1 #include "src/inc/vm83plus.inc" ;For VM. .ORG rom1_base_adr #include "src/sub/r1_init.asm" ;System memory initialization #include "src/sub/r1_err.asm" ;Error handler #include "src/sub/r1_kbd.asm" ;keyboard routines #include "src/sub/r1_text.asm" ;Text rendering routines ;--------------------- ;Tables #include "src/dat/bcalls.asm" ;system call tables (OS,boot) #include "src/dat/fonts.asm" ;large and small font data tables ;------------------------------------------------------------------------------ .echo "rom1 size: ",$-rom1_base_adr," bytes"
/* * Copyright 2019 akashche at redhat.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifdef _WIN32 #include "ojdkbuild/utils/localappdata.hpp" #include <algorithm> #include <vector> #include "ojdkbuild/utils/windows.hpp" #include <shlobj.h> #include "ojdkbuild/utils/addressof.hpp" #include "ojdkbuild/utils/defer.hpp" #include "ojdkbuild/utils/exception.hpp" #include "ojdkbuild/utils/lambda.hpp" #include "ojdkbuild/utils/narrow.hpp" namespace ojdkbuild { namespace utils { std::string localappdata_dir() { wchar_t* wbuf = nullptr; auto err = ::SHGetKnownFolderPath( FOLDERID_LocalAppData, KF_FLAG_CREATE, nullptr, addressof(wbuf)); if (S_OK != err || nullptr == wbuf) { throw exception("Error getting 'LocalAppData' dir"); } auto deferred = defer(make_lambda(::CoTaskMemFree, wbuf)); auto path = narrow(wbuf, ::wcslen(wbuf)); std::replace(path.begin(), path.end(), '\\', '/'); path.push_back('/'); return path; } } // namespace } #endif // _WIN32
; A047438: Numbers that are congruent to {1, 5, 6} mod 8. ; 1,5,6,9,13,14,17,21,22,25,29,30,33,37,38,41,45,46,49,53,54,57,61,62,65,69,70,73,77,78,81,85,86,89,93,94,97,101,102,105,109,110,113,117,118,121,125,126,129,133,134,137,141,142,145,149,150,153,157,158 mov $2,$0 sub $0,1 mul $0,2 mul $2,8 sub $2,2 gcd $0,$2 add $0,$2 div $0,3 add $0,1
; A132122: a(n) = n * (n+1)^2 * (3*n^2 + 4*n + 2) / 12. ; 0,3,33,164,550,1455,3283,6608,12204,21075,34485,53988,81458,119119,169575,235840,321368,430083,566409,735300,942270,1193423,1495483,1855824,2282500,2784275,3370653,4051908,4839114,5744175,6779855 mov $3,$0 mov $4,$0 lpb $0 sub $0,1 add $1,4 mov $2,$3 add $4,$3 mov $5,$4 lpe div $1,2 mul $2,$4 add $2,$4 mov $3,$5 mul $3,6 add $3,4 add $1,$3 mul $1,$2 mul $1,110 div $1,2640
//------------------------------------------------------------------------------ // // Copyright (c) 2016, Linaro Limited. All rights reserved. // // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at // http://opensource.org/licenses/bsd-license.php // // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // //------------------------------------------------------------------------------ INCLUDE AsmMacroExport.inc //------------------------------------------------------------------------------ RVCT_ASM_EXPORT ArmHasMpExtensions mrc p15,0,R0,c0,c0,5 // Get Multiprocessing extension (bit31) lsr R0, R0, #31 bx LR RVCT_ASM_EXPORT ArmReadIdMmfr0 mrc p15, 0, r0, c0, c1, 4 ; Read ID_MMFR0 Register bx lr END
load 30,a load 50,b add b out halt
; CRT0 stub for the Jupiter ACE ; ; Stefano Bodrato - Feb 2001 ; ; $Id: ace_crt0.asm,v 1.26 2016-07-15 21:03:25 dom Exp $ ; MODULE ace_crt0 ; ; Initially include the zcc_opt.def file to find out lots of lovely ; information about what we should do.. ; defc crt0 = 1 INCLUDE "zcc_opt.def" ; No matter what set up we have, main is always, always external to ; this file EXTERN _main ; ; Some variables which are needed for both app and basic startup ; PUBLIC cleanup PUBLIC l_dcal ;-------- ; Set an origin for the application (-zorg=) default to $4000 ;-------- IF !DEFINED_CRT_ORG_CODE IF (startup=2) ; ROM ? defc CRT_ORG_CODE = 0 ELSE defc CRT_ORG_CODE = $4000 ENDIF ENDIF defc CONSOLE_ROWS = 24 defc CONSOLE_COLUMNS = 32 defc TAR__no_ansifont = 1 defc TAR__fputc_cons_generic = 1 defc TAR__clib_exit_stack_size = 32 defc TAR__register_sp = -1 defc __CPU_CLOCK = 3250000 INCLUDE "crt/classic/crt_rules.inc" org CRT_ORG_CODE start: IF (startup=2) ; ROM mode BOOT di ld hl,$3c00 ; RAM starts at $4000 ld a,$fc ace_ramtest: inc h ; step to a higher RAM block ld (hl),a ; probe it cp (hl) jr z,ace_ramtest and h ld h,a ; use $fc to mask to the lower 1k boundary ld sp,hl ELSE ; set stack if in RAM mode ld hl,0 add hl,sp ld (start1+1),hl INCLUDE "crt/classic/crt_init_sp.asm" INCLUDE "crt/classic/crt_init_atexit.asm" ENDIF call crt0_init_bss ld (exitsp),sp IF DEFINED_CRT_FONT defc CHAR_TABLE = 0x2C00 EXTERN ace_set_font ld hl,CRT_FONT ld de,CHAR_TABLE + 256 ld bc,768 ldir ENDIF ; Optional definition for auto MALLOC init ; it assumes we have free space between the end of ; the compiled program and the stack pointer IF DEFINED_USING_amalloc INCLUDE "crt/classic/crt_init_amalloc.asm" ENDIF IF (startup=2) ld hl,$2c00 ; character set RAM ; init the first 256 bytes with gfx blocks gfx_bloop: ld a,l and $bf rrca rrca rrca jr nc,nobit2 rrca rrca nobit2: rrca ld b,a sbc a,a ; 0 or $FF rr b ld b,a sbc a,a xor b and $f0 xor b ld (hl),a inc l jr nz,gfx_bloop ; a bit of cleanup (we should load a font, here!) xor a blankloop: ld (hl),a inc hl cp l jr nz,blankloop ld h,$24 ld (base_graphics),hl EXTERN cleargraphics call cleargraphics ELSE ld hl,$2400 ld (base_graphics),hl ENDIF call _main cleanup: ; ; Deallocate memory which has been allocated here! ; push hl IF CRT_ENABLE_STDIO = 1 EXTERN closeall call closeall ENDIF pop bc start1: ld sp,0 IF (startup=2) di halt ELSE jp (iy) ; To the Jupiter ACE FORTH system ENDIF l_dcal: jp (hl) defm "Small C+ J.ACE" defb 0 INCLUDE "crt/classic/crt_runtime_selection.asm" ;--------------------------------------------------------------------------- IF (startup=2) ;--------------------------------------------------------------------------- ; Some extra space is available here ; defc sysdefvarsaddr = $2800-80 ; Close to the end of "PAD", the Forth interpreter workspace IF !CRT_ORG_BSS defc CRT_ORG_BSS = 24576 defc DEFINED_CRT_ORG_BSS = 1 ENDIF ; If we were given a model then use it IF DEFINED_CRT_MODEL defc __crt_model = CRT_MODEL ELSE defc __crt_model = 1 ENDIF ENDIF IF DEFINED_CRT_ORG_BSS defc __crt_org_bss = CRT_ORG_BSS ENDIF INCLUDE "crt/classic/crt_section.asm"
li $zero, 100 add $zero, $zero, -1000 li $at, 0xffff lui $at, 0xffff move $a0, $at move $a1, $at move $a2, $at move $a3, $at add $a0, $a0, $a0 addu $a1, $a1, $a1 addi $a2, $a2, 233 addiu $a2, $a2, 233 li $t0, 100 lui $t0, 233 li $t1, 233 lui $t1, 0xffff or $t2, $t0, $t1 ori $t3, $t0, 0xfffe and $t4, $t0, $t1 andi $t5, $t0, 0xfffe sub $t6, $zero, $t0 subu $t7, $zero, $t0 subi $s1, $zero, 0xffff subiu $s2, $zero, 0xffff xor $s3, $t0, $t1 xori $s4, $t0, 0xffff nor $s5, $t0, $t1
; getk() for use in ROMS, historical name SECTION code_clib PUBLIC getk PUBLIC _getk EXTERN getk_inkey defc getk = getk_inkey defc _getk = getk
; Test case: EXTERNAL: equ #0000 org #4000 ld a,(value) cp 1 ; should be optimized to "dec a" ld b,1 ; should be optimized call z,function1 ld a,2 ld (value),a ld b,3 ; since we don't know what "EXTERNAL" does, we cannot optimize this call EXTERNAL end: jp end function1: ld a,1 ; should be NOT optimized because of the "ret" (to be safe) ret value: db 1
/*************************************************************************** * * 25.replace.cpp - test exercising 25.2.4 [lib.alg.replace] * * $Id$ * *************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing * permissions and limitations under the License. * * Copyright 1994-2006 Rogue Wave Software. * **************************************************************************/ #include <algorithm> // for replace(), replace_copy() #include <cstring> // for size_t, strlen() #include <rw_alg_test.h> #include <rw_value.h> // for UserClass #include <rw_driver.h> // for rw_test() /**************************************************************************/ _RWSTD_NAMESPACE (std) { // disable explicit instantiation for compilers (like MSVC) // that can't handle it #ifndef _RWSTD_NO_EXPLICIT_INSTANTIATION template void replace (FwdIter<eq_comp<assign<base<> > > >, FwdIter<eq_comp<assign<base<> > > >, const eq_comp<assign<base<> > >&, const eq_comp<assign<base<> > >&); template void replace_if (FwdIter<assign<base<> > > , FwdIter<assign<base<> > > , predicate<assign<base<> > > , const assign<base<> > &); template OutputIter<eq_comp<assign<base<> > > > replace_copy (InputIter<eq_comp<assign<base<> > > >, InputIter<eq_comp<assign<base<> > > >, OutputIter<eq_comp<assign<base<> > > >, const eq_comp<assign<base<> > >&, const eq_comp<assign<base<> > >&); template OutputIter<assign<base<> > > replace_copy_if (InputIter<assign<base<> > > , InputIter<assign<base<> > > , OutputIter<assign<base<> > > , predicate<assign<base<> > > , const assign<base<> > &); #endif // _RWSTD_NO_EXPLICIT_INSTANTIATION } // namespace std /**************************************************************************/ // names of tested functions const char* const fnames[] = { "replace", "replace_copy" }; const char* const fnames_if[] = { "replace_if", "replace_copy_if" }; // tags to select replace or replace_copy at compile time struct ReplaceTag { enum { fname_inx = 0 }; int use_predicate; }; struct ReplaceCopyTag { enum { fname_inx = 1 }; int use_predicate; }; // used as a dummy template argument to test functions exercising replace() // and replace_if() (to differentiate from replace_copy() and replace_copy_if()) struct NoIterator { }; const char* type_name (NoIterator, const UserClass*) { return 0; } /**************************************************************************/ // predicate used as an argument to replace_if() and replace_copy_if() template <class T> struct EqualityPredicate { static std::size_t funcalls_; EqualityPredicate (const T &val, int /* dummy */) : val_ (val) { funcalls_ = 0; } class ConvertibleToBool { bool result_; public: ConvertibleToBool (bool res): result_ (res) { /* empty */ } operator bool() const { return result_; } }; // return a type other than bool but one that is implicitly // convertible to bool to detect incorrect assumptions ConvertibleToBool operator() (const T &arg) { ++funcalls_; return ConvertibleToBool (arg == val_); } private: void operator= (EqualityPredicate&); const T &val_; }; template <class T> std::size_t EqualityPredicate<T>::funcalls_; /**************************************************************************/ // exercises std::replace() and std::replace_if() template <class Iterator, class T, class Predicate> void test_replace (int line, const char *src, // source sequence char val, // value to replace char new_val, // value to replace it with Iterator dummy, // not used NoIterator, const T*, const Predicate*, ReplaceTag tag) // replace() or replace_if() { static const char* const itname = type_name (Iterator (), (T*)0); static const char* const fname = tag.use_predicate ? fnames_if [tag.fname_inx] : fnames [tag.fname_inx]; // compute the length of the source sequence const std::size_t nsrc = std::strlen (src); // construct a sequence of `nsrc' elements to pass to replace // (make sure there's always at least 1 element, even if the // sequence is otherwise empty, to avoid undefined behavior // when de-referencing xsrc[0] in inactive diagnostic messages) T* const xsrc = T::from_char (src, nsrc + 1); T* const xsrc_end = xsrc + nsrc; // construct an element to replace T to_replace; to_replace.data_.val_ = val; // construct an element to replace it with T replace_with; replace_with.data_.val_ = new_val; // construct a predicate object (used with replace_if() only) const Predicate pred (to_replace, 0); // construct iterators pointing to the beginning and end // of the source sequence const Iterator first = make_iter (xsrc, xsrc, xsrc_end, dummy); const Iterator last = make_iter (xsrc_end, xsrc_end, xsrc_end, dummy); // zero out predicate counters T::n_total_op_eq_ = 0; // call replace() or replace_if() if (tag.use_predicate) std::replace_if (first, last, pred, replace_with); else std::replace (first, last, to_replace, replace_with); // verify that the value to be replaced has been replaced // with the replacement value bool success = true; std::size_t i = 0; for ( ; i != nsrc; ++i) { success = to_replace.data_.val_ != xsrc [i].data_.val_; if (!success) break; } static const int cwidth = sizeof (T); rw_assert (success, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c, %#c) ==> " "\"%{X=*.*}\"; unexpected element value %#c", __LINE__, fname, itname, src, val, new_val, cwidth, int (nsrc), int (i), xsrc, src [i]); // check the id (not just the value) of the matching element // to make sure it has really been replaced for (i = 0; i != nsrc; ++i) { success = val != src [i] || (val == src [i] && replace_with.origin_ == xsrc [i].origin_); if (!success) break; } rw_assert (success, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c, %#c) ==> " "\"%{X=#*.*}\"; failed to replace element %zu: " "origin %d (%d, %d), expected %d (%d)", __LINE__, fname, itname, src, val, new_val, cwidth, int (nsrc), int (i), xsrc, i, xsrc [i].origin_, xsrc [i].id_, xsrc [i].src_id_, replace_with.origin_, replace_with.id_); // verify the number of applications of the predicate: p 25.2.4.3 if (tag.use_predicate) { rw_assert (pred.funcalls_ == nsrc, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c) called " "Predicate::operator() %zu times, %zu expected", __LINE__, fname, itname, src, val, pred.funcalls_, nsrc); } else { rw_assert (T::n_total_op_eq_ == nsrc, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c) called " "T::operator< %zu times, %zu expected", __LINE__, fname, itname, src, val, T::n_total_op_eq_, nsrc); } delete[] xsrc; } /**************************************************************************/ // exercises std::replace_copy() template <class Iterator, class OutputIterator, class T, class Predicate> void test_replace (int line, const char *src, // source sequence char val, // value to replace char new_val, // value to replace it with Iterator it, OutputIterator dummy, const T*, const Predicate*, ReplaceCopyTag tag) // replace_copy or replace_copy_if { static const char* const itname = type_name (it, (T*)0); static const char* const fname = tag.use_predicate ? fnames_if [tag.fname_inx] : fnames [tag.fname_inx]; const std::size_t nsrc = std::strlen (src); // construct a sequence of `nsrc' elements to pass to replace // (make sure there's always at least 1 element, even if the // sequence is otherwise empty, to avoid undefined behavior // when de-referencing xsrc[0] in inactive diagnostic messages) T* const xsrc = T::from_char (src, nsrc + 1); T* const xdst = T::from_char (src, nsrc + 1); T* const xsrc_end = xsrc + nsrc; T* const xdst_end = xdst + nsrc; T to_replace; to_replace.data_.val_ = val; T replace_with; replace_with.data_.val_ = new_val; const Predicate pred (to_replace, 0); const Iterator first = make_iter (xsrc, xsrc, xsrc_end, it); const Iterator last = make_iter (xsrc_end, xsrc_end, xsrc_end, it); const OutputIterator result = make_iter (xdst, xdst, xdst_end, dummy); // zero out predicate counters T::n_total_op_eq_ = 0; const OutputIterator end = tag.use_predicate ? std::replace_copy_if (first, last, result, pred, replace_with) : std::replace_copy (first, last, result, to_replace, replace_with); // verify that the returned iterator is set as expected rw_assert (end.cur_ == result.cur_ + nsrc, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c) == result + %zu, got %td", __LINE__, fname, itname, src, val, nsrc, end.cur_ - xdst); // verify that the value to be replaced does not appear anywhere // in the range [result, end) bool success = true; std::size_t i = 0; for ( ; i != nsrc; ++i) { typedef unsigned char UChar; success = UChar (val) != xdst [i].data_.val_; if (!success) break; } static const int cwidth = sizeof (T); rw_assert (success, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c) ==> " "\"%{X=*.*}\"; unexpected element value %#c", __LINE__, fname, itname, src, val, cwidth, int (nsrc), int (i), xdst, src [i]); // check the id (not just the value) of the matching element // to make sure it has really been copied for (i = 0; i != nsrc; ++i) { success = val != src [i] || (val == src [i] && replace_with.origin_ == xdst [i].origin_); if (!success) break; } rw_assert (success, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c, %#c) ==> " "\"%{X=*.*}\"; failed to copy and replace element %zu: " "origin %d (%d, %d), expected %d (%d)", __LINE__, fname, itname, src, val, new_val, cwidth, int (nsrc), int (i), xdst, i, xdst [i].origin_, xdst [i].id_, xdst [i].src_id_, replace_with.origin_, replace_with.id_); // verify the number of applications of the predicate: p 25.2.4.7 if (tag.use_predicate) { rw_assert (pred.funcalls_ == nsrc, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c) called " "Predicate::operator() %zu times, %zu expected", __LINE__, fname, itname, src, val, pred.funcalls_, nsrc); } else { rw_assert (T::n_total_op_eq_ == nsrc, 0, line, "line %d: %s<%s>(\"%s\", ..., %#c) called " "T::operator< %zu times, %zu expected", __LINE__, fname, itname, src, val, T::n_total_op_eq_, nsrc); } delete[] xsrc; delete[] xdst; } /**************************************************************************/ // exercises all four function templates template <class Iterator1, class Iterator2, class T, class Predicate, class Tag> void test_replace (Iterator1 it1, Iterator2 it2, const T*, const Predicate* pred, Tag tag) { static const char* const it1name = type_name (it1, (T*)0); static const char* const it2name = type_name (it2, (T*)0); if (tag.fname_inx) { // replace_copy(), replace_copy_if() rw_info (0, 0, 0, "std::%s (%s, %s, %s, %s, const T&)", tag.use_predicate ? "replace_copy_if" : "replace_copy", it1name, it1name, it2name, tag.use_predicate ? "UnaryPredicate" : "const T&"); } else { // replace, replace_if() rw_info (0, 0, 0, "std::%s (%s, %s, %s, const T&)", tag.use_predicate ? "replace_if" : "replace", it1name, it1name, tag.use_predicate ? "UnaryPredicate" : "const T&"); } #define TEST(src, val, new_val) \ test_replace (__LINE__, src, val, new_val, it1, it2, (T*)0, pred, tag) // +----------------------- original sequence // | +------- value to replace // | | +- value to replace it with // | | | // v v v TEST ("", 'a', 'b'); TEST ("a", 'a', 'b'); TEST ("aa", 'a', 'b'); TEST ("aaa", 'a', 'b'); TEST ("aaaa", 'a', 'b'); TEST ("aaaaa", 'a', 'b'); TEST ("aaaaaa", 'a', 'b'); TEST ("aaaaaaa", 'a', 'b'); TEST ("aaaaaaaa", 'a', 'b'); TEST ("aaaaaaaaa", 'a', 'b'); TEST ("aaaaaaaaaa", 'a', 'b'); TEST ("b", 'a', 'b'); TEST ("bb", 'a', 'b'); TEST ("ba", 'a', 'b'); TEST ("ab", 'a', 'b'); TEST ("abc", 'a', 'b'); TEST ("bac", 'a', 'b'); TEST ("bca", 'a', 'b'); TEST ("aba", 'a', 'b'); TEST ("abab", 'a', 'b'); TEST ("ababa", 'a', 'b'); TEST ("bababa", 'a', 'b'); TEST ("bababab", 'a', 'b'); TEST ("babababa", 'a', 'b'); TEST ("bbbbbbbbb", 'a', 'b'); } /**************************************************************************/ /* extern */ int rw_opt_no_replace; // --no-replace /* extern */ int rw_opt_no_replace_if; // --no-replace_if /* extern */ int rw_opt_no_replace_copy; // --no-replace_copy /* extern */ int rw_opt_no_replace_copy_if; // --no-replace_copy_if /* extern */ int rw_opt_no_input_iter; // --no-InputIterator /* extern */ int rw_opt_no_output_iter; // --no-OutputIterator /* extern */ int rw_opt_no_fwd_iter; // --no-ForwardIterator /* extern */ int rw_opt_no_bidir_iter; // --no-BidirectionalIterator /* extern */ int rw_opt_no_rnd_iter; // --no-RandomAccessIterator template <class T, class Predicate, class Tag> void test_replace (const T* , const Predicate* pred, Tag tag) { rw_info (0, 0, 0, "template <class ForwardIterator, class T> " "std::%s (ForwardIterator, ForwardIterator, " "%s, const T&)", tag.use_predicate ? "replace_if" : "replace", tag.use_predicate ? "Predicate" : "const T&"); if (rw_opt_no_fwd_iter) { rw_note (0, __FILE__, __LINE__, "ForwardIterator test disabled"); } else { test_replace (FwdIter<T>(), NoIterator (), (T*)0, pred, tag); } if (rw_opt_no_bidir_iter) { rw_note (0, __FILE__, __LINE__, "BidirectionalIterator test disabled"); } else { test_replace (BidirIter<T>(), NoIterator (), (T*)0, pred, tag); } if (rw_opt_no_rnd_iter) { rw_note (0, __FILE__, __LINE__, "RandomAccessIterator test disabled"); } else { test_replace (RandomAccessIter<T>(), NoIterator (), (T*)0, pred, tag); } } /**************************************************************************/ template <class T> void test_replace (const T* ) { const ReplaceTag replace_tag = { false }; const ReplaceTag replace_if_tag = { true }; if (rw_opt_no_replace) { rw_note (0, __FILE__, __LINE__, "std::replace test disabled"); } else { const EqualityPredicate<T>* const pred = (EqualityPredicate<T>*) 0; test_replace((T*)0, pred, replace_tag); } if (rw_opt_no_replace_if) { rw_note (0, __FILE__, __LINE__, "std::replace_if test disabled"); } else { const EqualityPredicate<T>* const pred = (EqualityPredicate<T>*) 1; test_replace((T*)0, pred, replace_if_tag); } } /**************************************************************************/ template <class InputIterator, class T, class Predicate, class Tag> void test_replace_copy (const InputIterator& iter, const T*, const Predicate* pred, Tag tag) { if (rw_opt_no_output_iter) { rw_note (0, __FILE__, __LINE__, "OutputIterator test disabled"); } else { test_replace (iter, OutputIter<T>(0, 0, 0), (T*)0, pred, tag); } if (rw_opt_no_fwd_iter) { rw_note (0, __FILE__, __LINE__, "ForwardIterator test disabled"); } else { test_replace (iter, FwdIter<T>(), (T*)0, pred, tag); } if (rw_opt_no_bidir_iter) { rw_note (0, __FILE__, __LINE__, "BidirectionalIterator test disabled"); } else { test_replace (iter, BidirIter<T>(), (T*)0, pred, tag); } if (rw_opt_no_rnd_iter) { rw_note (0, __FILE__, __LINE__, "RandomAccessIterator test disabled"); } else { test_replace (iter, RandomAccessIter<T>(), (T*)0, pred, tag); } } /**************************************************************************/ template <class T, class Predicate, class Tag> void test_replace_copy (const T*, const Predicate* pred, Tag tag) { rw_info (0, 0, 0, "template " "<class InputIterator, class OutputIterator, class T> " "std::%s (InputIterator, InputIterator, " "OutputIterator, %s, const T&)", tag.use_predicate ? "replace_copy_if" : "replace_copy", tag.use_predicate ? "Predicate" : "const T&"); if (rw_opt_no_input_iter) { rw_note (0, __FILE__, __LINE__, "InputIterator test disabled"); } else { test_replace_copy (InputIter<T>(0, 0, 0), (T*)0, pred, tag); } if (rw_opt_no_fwd_iter) { rw_note (0, __FILE__, __LINE__, "ForwardIterator test disabled"); } else { test_replace_copy (FwdIter<T>(), (T*)0, pred, tag); } if (rw_opt_no_bidir_iter) { rw_note (0, __FILE__, __LINE__, "BidirectionalIterator test disabled"); } else { test_replace_copy (BidirIter<T>(), (T*)0, pred, tag); } if (rw_opt_no_rnd_iter) { rw_note (0, __FILE__, __LINE__, "RandomAccessIterator test disabled"); } else { test_replace_copy (RandomAccessIter<T>(), (T*)0, pred, tag); } } /**************************************************************************/ template <class T> void test_replace_copy (const T* ) { const ReplaceCopyTag replace_copy_tag = { false }; const ReplaceCopyTag replace_copy_if_tag = { true }; if (rw_opt_no_replace_copy) { rw_note (0, __FILE__, __LINE__, "std::replace_copy test disabled"); } else { const EqualityPredicate<T>* const pred = (EqualityPredicate<T>*) 0; test_replace_copy ((T*)0, pred, replace_copy_tag); } if (rw_opt_no_replace_copy_if) { rw_note (0, __FILE__, __LINE__, "std::replace_copy_if test disabled"); } else { const EqualityPredicate<T>* const pred = (EqualityPredicate<T>*)1; test_replace_copy ((T*)0, pred, replace_copy_if_tag); } } /**************************************************************************/ static int run_test (int, char*[]) { test_replace ((UserClass*)0); test_replace_copy ((UserClass*)0); return 0; } /**************************************************************************/ int main (int argc, char *argv[]) { return rw_test (argc, argv, __FILE__, "lib.alg.replace", 0 /* no comment */, run_test, "|-no-replace# " "|-no-replace_if# " "|-no-replace_copy# " "|-no-replace_copy_if# " "|-no-InputIterator# " "|-no-OutputIterator# " "|-no-ForwardIterator# " "|-no-BidirectionalIterator# " "|-no-RandomAccessIterator#", &rw_opt_no_replace, &rw_opt_no_replace_if, &rw_opt_no_replace_copy, &rw_opt_no_replace_copy_if, &rw_opt_no_input_iter, &rw_opt_no_output_iter, &rw_opt_no_fwd_iter, &rw_opt_no_bidir_iter, &rw_opt_no_rnd_iter); }
; A052774: a(n) = (4*n+1)^(n-1). ; 1,1,9,169,4913,194481,9765625,594823321,42618442977,3512479453921,327381934393961,34050628916015625,3909821048582988049,491258904256726154641,67046038752496061076057,9876832533361318095112441,1562069488955406402587890625,263988769565513973843201106881,47477585226700098686074966922953,9053844956548482455683535816644969 mov $1,4 mul $1,$0 sub $0,1 add $1,1 pow $1,$0 mov $0,$1
lui $1,11573 ori $1,$1,35041 lui $2,12864 ori $2,$2,52999 lui $3,19314 ori $3,$3,14237 lui $4,58223 ori $4,$4,4903 lui $5,32087 ori $5,$5,58988 lui $6,27797 ori $6,$6,23831 mthi $1 mtlo $2 sec0: nop nop nop subu $0,$6,$6 sec1: nop nop subu $6,$0,$3 subu $2,$6,$6 sec2: nop nop xori $6,$6,39443 subu $5,$6,$6 sec3: nop nop mfhi $6 subu $2,$6,$6 sec4: nop nop lhu $6,0($0) subu $5,$6,$6 sec5: nop or $6,$1,$2 nop subu $3,$6,$6 sec6: nop or $6,$2,$3 addu $6,$1,$3 subu $2,$6,$6 sec7: nop addu $6,$5,$3 addiu $6,$0,-20045 subu $3,$6,$6 sec8: nop slt $6,$1,$3 mfhi $6 subu $5,$6,$6 sec9: nop xor $6,$5,$4 lb $6,9($0) subu $5,$6,$6 sec10: nop ori $6,$2,52523 nop subu $3,$6,$6 sec11: nop andi $6,$0,13508 nor $6,$4,$4 subu $0,$6,$6 sec12: nop ori $6,$3,50969 slti $6,$3,9425 subu $2,$6,$6 sec13: nop sltiu $6,$3,-14302 mflo $6 subu $6,$6,$6 sec14: nop andi $6,$6,34013 lh $6,4($0) subu $6,$6,$6 sec15: nop mfhi $6 nop subu $4,$6,$6 sec16: nop mfhi $6 slt $6,$3,$0 subu $3,$6,$6 sec17: nop mflo $6 andi $6,$2,40193 subu $5,$6,$6 sec18: nop mflo $6 mfhi $6 subu $3,$6,$6 sec19: nop mflo $6 lh $6,16($0) subu $1,$6,$6 sec20: nop lb $6,10($0) nop subu $2,$6,$6 sec21: nop lw $6,4($0) slt $6,$4,$4 subu $3,$6,$6 sec22: nop lw $6,0($0) ori $6,$2,20062 subu $4,$6,$6 sec23: nop lb $6,14($0) mflo $6 subu $3,$6,$6 sec24: nop lhu $6,0($0) lb $6,14($0) subu $2,$6,$6 sec25: sltu $6,$6,$0 nop nop subu $3,$6,$6 sec26: addu $6,$4,$3 nop nor $6,$1,$3 subu $2,$6,$6 sec27: nor $6,$1,$0 nop xori $6,$1,59335 subu $4,$6,$6 sec28: slt $6,$3,$4 nop mfhi $6 subu $4,$6,$6 sec29: xor $6,$0,$2 nop lbu $6,4($0) subu $5,$6,$6 sec30: sltu $6,$2,$2 addu $6,$0,$5 nop subu $5,$6,$6 sec31: xor $6,$1,$4 sltu $6,$3,$0 or $6,$3,$4 subu $4,$6,$6 sec32: sltu $6,$2,$0 nor $6,$2,$3 ori $6,$1,39620 subu $6,$6,$6 sec33: or $6,$6,$2 sltu $6,$6,$1 mfhi $6 subu $2,$6,$6 sec34: addu $6,$3,$4 slt $6,$2,$4 lb $6,12($0) subu $1,$6,$6 sec35: sltu $6,$5,$2 addiu $6,$3,-10405 nop subu $5,$6,$6 sec36: addu $6,$1,$6 andi $6,$3,23859 addu $6,$2,$2 subu $4,$6,$6 sec37: nor $6,$3,$2 lui $6,60565 addiu $6,$2,26919 subu $1,$6,$6 sec38: and $6,$5,$3 addiu $6,$3,-23189 mfhi $6 subu $0,$6,$6 sec39: sltu $6,$3,$2 lui $6,59864 lb $6,9($0) subu $4,$6,$6 sec40: nor $6,$6,$0 mfhi $6 nop subu $3,$6,$6 sec41: nor $6,$3,$6 mfhi $6 addu $6,$1,$4 subu $0,$6,$6 sec42: nor $6,$3,$5 mflo $6 addiu $6,$3,27636 subu $3,$6,$6 sec43: sltu $6,$2,$5 mflo $6 mflo $6 subu $2,$6,$6 sec44: sltu $6,$6,$0 mflo $6 lbu $6,11($0) subu $0,$6,$6 sec45: xor $6,$1,$0 lbu $6,2($0) nop subu $4,$6,$6 sec46: addu $6,$5,$2 lw $6,0($0) slt $6,$1,$2 subu $6,$6,$6 sec47: or $6,$3,$4 lh $6,4($0) slti $6,$4,-27523 subu $3,$6,$6 sec48: or $6,$6,$1 lh $6,10($0) mflo $6 subu $0,$6,$6 sec49: subu $6,$2,$6 lw $6,12($0) lh $6,12($0) subu $3,$6,$6 sec50: lui $6,46927 nop nop subu $2,$6,$6 sec51: slti $6,$4,29066 nop sltu $6,$3,$4 subu $2,$6,$6 sec52: slti $6,$1,30965 nop sltiu $6,$3,-30160 subu $4,$6,$6 sec53: sltiu $6,$5,-16061 nop mfhi $6 subu $5,$6,$6 sec54: addiu $6,$5,14958 nop lhu $6,6($0) subu $4,$6,$6 sec55: andi $6,$6,48092 addu $6,$6,$4 nop subu $1,$6,$6 sec56: addiu $6,$3,24070 sltu $6,$2,$0 subu $6,$2,$5 subu $5,$6,$6 sec57: ori $6,$0,22001 nor $6,$5,$6 xori $6,$1,50628 subu $1,$6,$6 sec58: sltiu $6,$3,-1112 and $6,$4,$2 mfhi $6 subu $3,$6,$6 sec59: sltiu $6,$0,30233 subu $6,$1,$2 lw $6,16($0) subu $4,$6,$6 sec60: ori $6,$0,45175 slti $6,$3,17646 nop subu $6,$6,$6 sec61: sltiu $6,$3,10956 addiu $6,$5,-24262 subu $6,$3,$5 subu $2,$6,$6 sec62: xori $6,$1,46021 ori $6,$4,58486 slti $6,$1,-15624 subu $2,$6,$6 sec63: ori $6,$2,48664 addiu $6,$1,26004 mfhi $6 subu $4,$6,$6 sec64: andi $6,$6,32696 addiu $6,$5,-23195 lw $6,0($0) subu $4,$6,$6 sec65: sltiu $6,$3,25387 mflo $6 nop subu $4,$6,$6 sec66: sltiu $6,$4,-13618 mfhi $6 and $6,$3,$4 subu $5,$6,$6 sec67: andi $6,$1,63814 mflo $6 xori $6,$3,63851 subu $3,$6,$6 sec68: lui $6,56912 mflo $6 mflo $6 subu $1,$6,$6 sec69: andi $6,$2,32711 mfhi $6 lw $6,12($0) subu $2,$6,$6 sec70: xori $6,$1,18518 lhu $6,14($0) nop subu $5,$6,$6 sec71: addiu $6,$4,-7370 lw $6,4($0) and $6,$4,$5 subu $1,$6,$6 sec72: addiu $6,$1,-31409 lb $6,10($0) andi $6,$3,42944 subu $6,$6,$6 sec73: addiu $6,$3,6949 lh $6,12($0) mflo $6 subu $1,$6,$6 sec74: lui $6,32802 lh $6,6($0) lbu $6,5($0) subu $3,$6,$6 sec75: mfhi $6 nop nop subu $4,$6,$6 sec76: mflo $6 nop addu $6,$2,$3 subu $3,$6,$6 sec77: mflo $6 nop andi $6,$2,11322 subu $1,$6,$6 sec78: mfhi $6 nop mflo $6 subu $6,$6,$6 sec79: mflo $6 nop lh $6,2($0) subu $3,$6,$6 sec80: mfhi $6 addu $6,$2,$2 nop subu $5,$6,$6 sec81: mflo $6 subu $6,$6,$3 sltu $6,$4,$2 subu $3,$6,$6 sec82: mfhi $6 and $6,$1,$3 xori $6,$2,2457 subu $0,$6,$6 sec83: mflo $6 slt $6,$2,$1 mfhi $6 subu $5,$6,$6 sec84: mflo $6 nor $6,$3,$1 lb $6,12($0) subu $2,$6,$6 sec85: mflo $6 xori $6,$4,33595 nop subu $3,$6,$6 sec86: mfhi $6 addiu $6,$5,32508 slt $6,$1,$3 subu $1,$6,$6 sec87: mflo $6 sltiu $6,$3,24563 lui $6,16449 subu $2,$6,$6 sec88: mfhi $6 sltiu $6,$3,-5946 mflo $6 subu $0,$6,$6 sec89: mfhi $6 andi $6,$3,6952 lhu $6,0($0) subu $1,$6,$6 sec90: mfhi $6 mfhi $6 nop subu $5,$6,$6 sec91: mflo $6 mflo $6 slt $6,$3,$2 subu $4,$6,$6 sec92: mflo $6 mflo $6 lui $6,46629 subu $3,$6,$6 sec93: mflo $6 mflo $6 mflo $6 subu $4,$6,$6 sec94: mfhi $6 mflo $6 lbu $6,11($0) subu $6,$6,$6 sec95: mflo $6 lw $6,16($0) nop subu $3,$6,$6 sec96: mflo $6 lb $6,12($0) and $6,$4,$3 subu $2,$6,$6 sec97: mflo $6 lhu $6,16($0) lui $6,54878 subu $1,$6,$6 sec98: mfhi $6 lhu $6,4($0) mflo $6 subu $5,$6,$6 sec99: mfhi $6 lhu $6,12($0) lbu $6,2($0) subu $6,$6,$6 sec100: lb $6,6($0) nop nop subu $4,$6,$6 sec101: lbu $6,12($0) nop and $6,$1,$5 subu $4,$6,$6 sec102: lb $6,12($0) nop andi $6,$3,18959 subu $6,$6,$6 sec103: lhu $6,10($0) nop mfhi $6 subu $0,$6,$6 sec104: lh $6,6($0) nop lb $6,1($0) subu $3,$6,$6 sec105: lh $6,10($0) addu $6,$2,$4 nop subu $2,$6,$6 sec106: lbu $6,6($0) subu $6,$4,$4 sltu $6,$2,$4 subu $4,$6,$6 sec107: lw $6,8($0) subu $6,$0,$5 xori $6,$0,48339 subu $2,$6,$6 sec108: lh $6,0($0) nor $6,$2,$4 mflo $6 subu $3,$6,$6 sec109: lh $6,16($0) xor $6,$2,$2 lbu $6,14($0) subu $0,$6,$6 sec110: lbu $6,9($0) ori $6,$4,16734 nop subu $5,$6,$6 sec111: lh $6,14($0) slti $6,$4,23596 addu $6,$3,$0 subu $5,$6,$6 sec112: lh $6,12($0) xori $6,$4,48006 xori $6,$3,43676 subu $0,$6,$6 sec113: lh $6,12($0) lui $6,17702 mfhi $6 subu $3,$6,$6 sec114: lh $6,16($0) sltiu $6,$2,29556 lh $6,6($0) subu $4,$6,$6 sec115: lhu $6,14($0) mfhi $6 nop subu $2,$6,$6 sec116: lbu $6,10($0) mflo $6 xor $6,$5,$5 subu $1,$6,$6 sec117: lw $6,8($0) mfhi $6 xori $6,$0,28707 subu $5,$6,$6 sec118: lw $6,4($0) mflo $6 mfhi $6 subu $3,$6,$6 sec119: lb $6,16($0) mflo $6 lw $6,4($0) subu $2,$6,$6 sec120: lhu $6,12($0) lw $6,0($0) nop subu $4,$6,$6 sec121: lhu $6,6($0) lbu $6,5($0) subu $6,$2,$4 subu $1,$6,$6 sec122: lhu $6,2($0) lb $6,16($0) andi $6,$3,46621 subu $3,$6,$6 sec123: lbu $6,2($0) lbu $6,11($0) mflo $6 subu $0,$6,$6 sec124: lhu $6,8($0) lw $6,4($0) lhu $6,14($0) subu $4,$6,$6
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/effects/SkPerlinNoiseShader.h" #include "include/core/SkColorFilter.h" #include "include/core/SkShader.h" #include "include/core/SkString.h" #include "include/core/SkUnPreMultiply.h" #include "include/private/SkTPin.h" #include "src/core/SkArenaAlloc.h" #include "src/core/SkMatrixProvider.h" #include "src/core/SkReadBuffer.h" #include "src/core/SkWriteBuffer.h" #if SK_SUPPORT_GPU #include "include/gpu/GrRecordingContext.h" #include "src/gpu/GrRecordingContextPriv.h" #include "src/gpu/SkGr.h" #include "src/gpu/effects/GrMatrixEffect.h" #include "src/gpu/effects/GrTextureEffect.h" #include "src/gpu/effects/generated/GrConstColorProcessor.h" #include "src/gpu/glsl/GrGLSLFragmentProcessor.h" #include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h" #include "src/gpu/glsl/GrGLSLProgramDataManager.h" #include "src/gpu/glsl/GrGLSLUniformHandler.h" #endif static const int kBlockSize = 256; static const int kBlockMask = kBlockSize - 1; static const int kPerlinNoise = 4096; static const int kRandMaximum = SK_MaxS32; // 2**31 - 1 static uint8_t improved_noise_permutations[] = { 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87, 174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139, 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211, 133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80, 73, 209, 76, 132, 187, 208, 89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64, 52, 217, 226, 250, 124, 123, 5, 202, 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119, 248, 152, 2, 44, 154, 163, 70, 221, 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232, 178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210, 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249, 14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150, 254, 138, 236, 205, 93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180, 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148, 247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32, 57, 177, 33, 88, 237, 149, 56, 87, 174, 20, 125, 136, 171, 168, 68, 175, 74, 165, 71, 134, 139, 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122, 60, 211, 133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54, 65, 25, 63, 161, 1, 216, 80, 73, 209, 76, 132, 187, 208, 89, 18, 169, 200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64, 52, 217, 226, 250, 124, 123, 5, 202, 38, 147, 118, 126, 255, 82, 85, 212, 207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213, 119, 248, 152, 2, 44, 154, 163, 70, 221, 153, 101, 155, 167, 43, 172, 9, 129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232, 178, 185, 112, 104, 218, 246, 97, 228, 251, 34, 242, 193, 238, 210, 144, 12, 191, 179, 162, 241, 81, 51, 145, 235, 249, 14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157, 184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150, 254, 138, 236, 205, 93, 222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180 }; class SkPerlinNoiseShaderImpl : public SkShaderBase { public: struct StitchData { StitchData() : fWidth(0) , fWrapX(0) , fHeight(0) , fWrapY(0) {} StitchData(SkScalar w, SkScalar h) : fWidth(std::min(SkScalarRoundToInt(w), SK_MaxS32 - kPerlinNoise)) , fWrapX(kPerlinNoise + fWidth) , fHeight(std::min(SkScalarRoundToInt(h), SK_MaxS32 - kPerlinNoise)) , fWrapY(kPerlinNoise + fHeight) {} bool operator==(const StitchData& other) const { return fWidth == other.fWidth && fWrapX == other.fWrapX && fHeight == other.fHeight && fWrapY == other.fWrapY; } int fWidth; // How much to subtract to wrap for stitching. int fWrapX; // Minimum value to wrap. int fHeight; int fWrapY; }; struct PaintingData { PaintingData(const SkISize& tileSize, SkScalar seed, SkScalar baseFrequencyX, SkScalar baseFrequencyY, const SkMatrix& matrix) { SkVector tileVec; matrix.mapVector(SkIntToScalar(tileSize.fWidth), SkIntToScalar(tileSize.fHeight), &tileVec); SkSize scale; if (!matrix.decomposeScale(&scale, nullptr)) { scale.set(SK_ScalarNearlyZero, SK_ScalarNearlyZero); } fBaseFrequency.set(baseFrequencyX * SkScalarInvert(scale.width()), baseFrequencyY * SkScalarInvert(scale.height())); fTileSize.set(SkScalarRoundToInt(tileVec.fX), SkScalarRoundToInt(tileVec.fY)); this->init(seed); if (!fTileSize.isEmpty()) { this->stitch(); } #if SK_SUPPORT_GPU SkImageInfo info = SkImageInfo::MakeA8(kBlockSize, 1); fPermutationsBitmap.installPixels(info, fLatticeSelector, info.minRowBytes()); fPermutationsBitmap.setImmutable(); info = SkImageInfo::Make(kBlockSize, 4, kRGBA_8888_SkColorType, kPremul_SkAlphaType); fNoiseBitmap.installPixels(info, fNoise[0][0], info.minRowBytes()); fNoiseBitmap.setImmutable(); info = SkImageInfo::MakeA8(256, 1); fImprovedPermutationsBitmap.installPixels(info, improved_noise_permutations, info.minRowBytes()); fImprovedPermutationsBitmap.setImmutable(); static uint8_t gradients[] = { 2, 2, 1, 0, 0, 2, 1, 0, 2, 0, 1, 0, 0, 0, 1, 0, 2, 1, 2, 0, 0, 1, 2, 0, 2, 1, 0, 0, 0, 1, 0, 0, 1, 2, 2, 0, 1, 0, 2, 0, 1, 2, 0, 0, 1, 0, 0, 0, 2, 2, 1, 0, 1, 0, 2, 0, 0, 2, 1, 0, 1, 0, 0, 0 }; info = SkImageInfo::Make(16, 1, kBGRA_8888_SkColorType, kPremul_SkAlphaType); fGradientBitmap.installPixels(info, gradients, info.minRowBytes()); fGradientBitmap.setImmutable(); #endif } #if SK_SUPPORT_GPU PaintingData(const PaintingData& that) : fSeed(that.fSeed) , fTileSize(that.fTileSize) , fBaseFrequency(that.fBaseFrequency) , fStitchDataInit(that.fStitchDataInit) , fPermutationsBitmap(that.fPermutationsBitmap) , fNoiseBitmap(that.fNoiseBitmap) , fImprovedPermutationsBitmap(that.fImprovedPermutationsBitmap) , fGradientBitmap(that.fGradientBitmap) { memcpy(fLatticeSelector, that.fLatticeSelector, sizeof(fLatticeSelector)); memcpy(fNoise, that.fNoise, sizeof(fNoise)); memcpy(fGradient, that.fGradient, sizeof(fGradient)); } #endif int fSeed; uint8_t fLatticeSelector[kBlockSize]; uint16_t fNoise[4][kBlockSize][2]; SkPoint fGradient[4][kBlockSize]; SkISize fTileSize; SkVector fBaseFrequency; StitchData fStitchDataInit; private: #if SK_SUPPORT_GPU SkBitmap fPermutationsBitmap; SkBitmap fNoiseBitmap; SkBitmap fImprovedPermutationsBitmap; SkBitmap fGradientBitmap; #endif inline int random() { // See https://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement // m = kRandMaximum, 2**31 - 1 (2147483647) static constexpr int kRandAmplitude = 16807; // 7**5; primitive root of m static constexpr int kRandQ = 127773; // m / a static constexpr int kRandR = 2836; // m % a int result = kRandAmplitude * (fSeed % kRandQ) - kRandR * (fSeed / kRandQ); if (result <= 0) { result += kRandMaximum; } fSeed = result; return result; } // Only called once. Could be part of the constructor. void init(SkScalar seed) { // According to the SVG spec, we must truncate (not round) the seed value. fSeed = SkScalarTruncToInt(seed); // The seed value clamp to the range [1, kRandMaximum - 1]. if (fSeed <= 0) { fSeed = -(fSeed % (kRandMaximum - 1)) + 1; } if (fSeed > kRandMaximum - 1) { fSeed = kRandMaximum - 1; } for (int channel = 0; channel < 4; ++channel) { for (int i = 0; i < kBlockSize; ++i) { fLatticeSelector[i] = i; fNoise[channel][i][0] = (random() % (2 * kBlockSize)); fNoise[channel][i][1] = (random() % (2 * kBlockSize)); } } for (int i = kBlockSize - 1; i > 0; --i) { int k = fLatticeSelector[i]; int j = random() % kBlockSize; SkASSERT(j >= 0); SkASSERT(j < kBlockSize); fLatticeSelector[i] = fLatticeSelector[j]; fLatticeSelector[j] = k; } // Perform the permutations now { // Copy noise data uint16_t noise[4][kBlockSize][2]; for (int i = 0; i < kBlockSize; ++i) { for (int channel = 0; channel < 4; ++channel) { for (int j = 0; j < 2; ++j) { noise[channel][i][j] = fNoise[channel][i][j]; } } } // Do permutations on noise data for (int i = 0; i < kBlockSize; ++i) { for (int channel = 0; channel < 4; ++channel) { for (int j = 0; j < 2; ++j) { fNoise[channel][i][j] = noise[channel][fLatticeSelector[i]][j]; } } } } // Half of the largest possible value for 16 bit unsigned int static constexpr SkScalar kHalfMax16bits = 32767.5f; // Compute gradients from permutated noise data static constexpr SkScalar kInvBlockSizef = 1.0 / SkIntToScalar(kBlockSize); for (int channel = 0; channel < 4; ++channel) { for (int i = 0; i < kBlockSize; ++i) { fGradient[channel][i] = SkPoint::Make( (fNoise[channel][i][0] - kBlockSize) * kInvBlockSizef, (fNoise[channel][i][1] - kBlockSize) * kInvBlockSizef); fGradient[channel][i].normalize(); // Put the normalized gradient back into the noise data fNoise[channel][i][0] = SkScalarRoundToInt((fGradient[channel][i].fX + 1) * kHalfMax16bits); fNoise[channel][i][1] = SkScalarRoundToInt((fGradient[channel][i].fY + 1) * kHalfMax16bits); } } } // Only called once. Could be part of the constructor. void stitch() { SkScalar tileWidth = SkIntToScalar(fTileSize.width()); SkScalar tileHeight = SkIntToScalar(fTileSize.height()); SkASSERT(tileWidth > 0 && tileHeight > 0); // When stitching tiled turbulence, the frequencies must be adjusted // so that the tile borders will be continuous. if (fBaseFrequency.fX) { SkScalar lowFrequencx = SkScalarFloorToScalar(tileWidth * fBaseFrequency.fX) / tileWidth; SkScalar highFrequencx = SkScalarCeilToScalar(tileWidth * fBaseFrequency.fX) / tileWidth; // BaseFrequency should be non-negative according to the standard. // lowFrequencx can be 0 if fBaseFrequency.fX is very small. if (sk_ieee_float_divide(fBaseFrequency.fX, lowFrequencx) < highFrequencx / fBaseFrequency.fX) { fBaseFrequency.fX = lowFrequencx; } else { fBaseFrequency.fX = highFrequencx; } } if (fBaseFrequency.fY) { SkScalar lowFrequency = SkScalarFloorToScalar(tileHeight * fBaseFrequency.fY) / tileHeight; SkScalar highFrequency = SkScalarCeilToScalar(tileHeight * fBaseFrequency.fY) / tileHeight; // lowFrequency can be 0 if fBaseFrequency.fY is very small. if (sk_ieee_float_divide(fBaseFrequency.fY, lowFrequency) < highFrequency / fBaseFrequency.fY) { fBaseFrequency.fY = lowFrequency; } else { fBaseFrequency.fY = highFrequency; } } // Set up TurbulenceInitial stitch values. fStitchDataInit = StitchData(tileWidth * fBaseFrequency.fX, tileHeight * fBaseFrequency.fY); } public: #if SK_SUPPORT_GPU const SkBitmap& getPermutationsBitmap() const { return fPermutationsBitmap; } const SkBitmap& getNoiseBitmap() const { return fNoiseBitmap; } const SkBitmap& getImprovedPermutationsBitmap() const { return fImprovedPermutationsBitmap; } const SkBitmap& getGradientBitmap() const { return fGradientBitmap; } #endif }; /** * About the noise types : the difference between the first 2 is just minor tweaks to the * algorithm, they're not 2 entirely different noises. The output looks different, but once the * noise is generated in the [1, -1] range, the output is brought back in the [0, 1] range by * doing : * kFractalNoise_Type : noise * 0.5 + 0.5 * kTurbulence_Type : abs(noise) * Very little differences between the 2 types, although you can tell the difference visually. * "Improved" is based on the Improved Perlin Noise algorithm described at * http://mrl.nyu.edu/~perlin/noise/. It is quite distinct from the other two, and the noise is * a 2D slice of a 3D noise texture. Minor changes to the Z coordinate will result in minor * changes to the noise, making it suitable for animated noise. */ enum Type { kFractalNoise_Type, kTurbulence_Type, kImprovedNoise_Type, kLast_Type = kImprovedNoise_Type }; static const int kMaxOctaves = 255; // numOctaves must be <= 0 and <= kMaxOctaves SkPerlinNoiseShaderImpl(SkPerlinNoiseShaderImpl::Type type, SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar seed, const SkISize* tileSize); class PerlinNoiseShaderContext : public Context { public: PerlinNoiseShaderContext(const SkPerlinNoiseShaderImpl& shader, const ContextRec&); void shadeSpan(int x, int y, SkPMColor[], int count) override; private: SkPMColor shade(const SkPoint& point, StitchData& stitchData) const; SkScalar calculateTurbulenceValueForPoint( int channel, StitchData& stitchData, const SkPoint& point) const; SkScalar calculateImprovedNoiseValueForPoint(int channel, const SkPoint& point) const; SkScalar noise2D(int channel, const StitchData& stitchData, const SkPoint& noiseVector) const; SkMatrix fMatrix; PaintingData fPaintingData; using INHERITED = Context; }; #if SK_SUPPORT_GPU std::unique_ptr<GrFragmentProcessor> asFragmentProcessor(const GrFPArgs&) const override; #endif protected: void flatten(SkWriteBuffer&) const override; #ifdef SK_ENABLE_LEGACY_SHADERCONTEXT Context* onMakeContext(const ContextRec&, SkArenaAlloc*) const override; #endif private: SK_FLATTENABLE_HOOKS(SkPerlinNoiseShaderImpl) const SkPerlinNoiseShaderImpl::Type fType; const SkScalar fBaseFrequencyX; const SkScalar fBaseFrequencyY; const int fNumOctaves; const SkScalar fSeed; const SkISize fTileSize; const bool fStitchTiles; friend class ::SkPerlinNoiseShader; using INHERITED = SkShaderBase; }; namespace { // noiseValue is the color component's value (or color) // limitValue is the maximum perlin noise array index value allowed // newValue is the current noise dimension (either width or height) inline int checkNoise(int noiseValue, int limitValue, int newValue) { // If the noise value would bring us out of bounds of the current noise array while we are // stiching noise tiles together, wrap the noise around the current dimension of the noise to // stay within the array bounds in a continuous fashion (so that tiling lines are not visible) if (noiseValue >= limitValue) { noiseValue -= newValue; } return noiseValue; } inline SkScalar smoothCurve(SkScalar t) { return t * t * (3 - 2 * t); } } // end namespace SkPerlinNoiseShaderImpl::SkPerlinNoiseShaderImpl(SkPerlinNoiseShaderImpl::Type type, SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar seed, const SkISize* tileSize) : fType(type) , fBaseFrequencyX(baseFrequencyX) , fBaseFrequencyY(baseFrequencyY) , fNumOctaves(numOctaves > kMaxOctaves ? kMaxOctaves : numOctaves/*[0,255] octaves allowed*/) , fSeed(seed) , fTileSize(nullptr == tileSize ? SkISize::Make(0, 0) : *tileSize) , fStitchTiles(!fTileSize.isEmpty()) { SkASSERT(numOctaves >= 0 && numOctaves <= kMaxOctaves); SkASSERT(fBaseFrequencyX >= 0); SkASSERT(fBaseFrequencyY >= 0); } sk_sp<SkFlattenable> SkPerlinNoiseShaderImpl::CreateProc(SkReadBuffer& buffer) { Type type = buffer.read32LE(kLast_Type); SkScalar freqX = buffer.readScalar(); SkScalar freqY = buffer.readScalar(); int octaves = buffer.read32LE<int>(kMaxOctaves); SkScalar seed = buffer.readScalar(); SkISize tileSize; tileSize.fWidth = buffer.readInt(); tileSize.fHeight = buffer.readInt(); switch (type) { case kFractalNoise_Type: return SkPerlinNoiseShader::MakeFractalNoise(freqX, freqY, octaves, seed, &tileSize); case kTurbulence_Type: return SkPerlinNoiseShader::MakeTurbulence(freqX, freqY, octaves, seed, &tileSize); case kImprovedNoise_Type: return SkPerlinNoiseShader::MakeImprovedNoise(freqX, freqY, octaves, seed); default: // Really shouldn't get here b.c. of earlier check on type buffer.validate(false); return nullptr; } } void SkPerlinNoiseShaderImpl::flatten(SkWriteBuffer& buffer) const { buffer.writeInt((int) fType); buffer.writeScalar(fBaseFrequencyX); buffer.writeScalar(fBaseFrequencyY); buffer.writeInt(fNumOctaves); buffer.writeScalar(fSeed); buffer.writeInt(fTileSize.fWidth); buffer.writeInt(fTileSize.fHeight); } SkScalar SkPerlinNoiseShaderImpl::PerlinNoiseShaderContext::noise2D( int channel, const StitchData& stitchData, const SkPoint& noiseVector) const { struct Noise { int noisePositionIntegerValue; int nextNoisePositionIntegerValue; SkScalar noisePositionFractionValue; Noise(SkScalar component) { SkScalar position = component + kPerlinNoise; noisePositionIntegerValue = SkScalarFloorToInt(position); noisePositionFractionValue = position - SkIntToScalar(noisePositionIntegerValue); nextNoisePositionIntegerValue = noisePositionIntegerValue + 1; } }; Noise noiseX(noiseVector.x()); Noise noiseY(noiseVector.y()); SkScalar u, v; const SkPerlinNoiseShaderImpl& perlinNoiseShader = static_cast<const SkPerlinNoiseShaderImpl&>(fShader); // If stitching, adjust lattice points accordingly. if (perlinNoiseShader.fStitchTiles) { noiseX.noisePositionIntegerValue = checkNoise(noiseX.noisePositionIntegerValue, stitchData.fWrapX, stitchData.fWidth); noiseY.noisePositionIntegerValue = checkNoise(noiseY.noisePositionIntegerValue, stitchData.fWrapY, stitchData.fHeight); noiseX.nextNoisePositionIntegerValue = checkNoise(noiseX.nextNoisePositionIntegerValue, stitchData.fWrapX, stitchData.fWidth); noiseY.nextNoisePositionIntegerValue = checkNoise(noiseY.nextNoisePositionIntegerValue, stitchData.fWrapY, stitchData.fHeight); } noiseX.noisePositionIntegerValue &= kBlockMask; noiseY.noisePositionIntegerValue &= kBlockMask; noiseX.nextNoisePositionIntegerValue &= kBlockMask; noiseY.nextNoisePositionIntegerValue &= kBlockMask; int i = fPaintingData.fLatticeSelector[noiseX.noisePositionIntegerValue]; int j = fPaintingData.fLatticeSelector[noiseX.nextNoisePositionIntegerValue]; int b00 = (i + noiseY.noisePositionIntegerValue) & kBlockMask; int b10 = (j + noiseY.noisePositionIntegerValue) & kBlockMask; int b01 = (i + noiseY.nextNoisePositionIntegerValue) & kBlockMask; int b11 = (j + noiseY.nextNoisePositionIntegerValue) & kBlockMask; SkScalar sx = smoothCurve(noiseX.noisePositionFractionValue); SkScalar sy = smoothCurve(noiseY.noisePositionFractionValue); if (sx < 0 || sy < 0 || sx > 1 || sy > 1) { return 0; // Check for pathological inputs. } // This is taken 1:1 from SVG spec: http://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement SkPoint fractionValue = SkPoint::Make(noiseX.noisePositionFractionValue, noiseY.noisePositionFractionValue); // Offset (0,0) u = fPaintingData.fGradient[channel][b00].dot(fractionValue); fractionValue.fX -= SK_Scalar1; // Offset (-1,0) v = fPaintingData.fGradient[channel][b10].dot(fractionValue); SkScalar a = SkScalarInterp(u, v, sx); fractionValue.fY -= SK_Scalar1; // Offset (-1,-1) v = fPaintingData.fGradient[channel][b11].dot(fractionValue); fractionValue.fX = noiseX.noisePositionFractionValue; // Offset (0,-1) u = fPaintingData.fGradient[channel][b01].dot(fractionValue); SkScalar b = SkScalarInterp(u, v, sx); return SkScalarInterp(a, b, sy); } SkScalar SkPerlinNoiseShaderImpl::PerlinNoiseShaderContext::calculateTurbulenceValueForPoint( int channel, StitchData& stitchData, const SkPoint& point) const { const SkPerlinNoiseShaderImpl& perlinNoiseShader = static_cast<const SkPerlinNoiseShaderImpl&>(fShader); if (perlinNoiseShader.fStitchTiles) { // Set up TurbulenceInitial stitch values. stitchData = fPaintingData.fStitchDataInit; } SkScalar turbulenceFunctionResult = 0; SkPoint noiseVector(SkPoint::Make(point.x() * fPaintingData.fBaseFrequency.fX, point.y() * fPaintingData.fBaseFrequency.fY)); SkScalar ratio = SK_Scalar1; for (int octave = 0; octave < perlinNoiseShader.fNumOctaves; ++octave) { SkScalar noise = noise2D(channel, stitchData, noiseVector); SkScalar numer = (perlinNoiseShader.fType == kFractalNoise_Type) ? noise : SkScalarAbs(noise); turbulenceFunctionResult += numer / ratio; noiseVector.fX *= 2; noiseVector.fY *= 2; ratio *= 2; if (perlinNoiseShader.fStitchTiles) { // Update stitch values stitchData = StitchData(SkIntToScalar(stitchData.fWidth) * 2, SkIntToScalar(stitchData.fHeight) * 2); } } // The value of turbulenceFunctionResult comes from ((turbulenceFunctionResult) + 1) / 2 // by fractalNoise and (turbulenceFunctionResult) by turbulence. if (perlinNoiseShader.fType == kFractalNoise_Type) { turbulenceFunctionResult = SkScalarHalf(turbulenceFunctionResult + 1); } if (channel == 3) { // Scale alpha by paint value turbulenceFunctionResult *= SkIntToScalar(getPaintAlpha()) / 255; } // Clamp result return SkTPin(turbulenceFunctionResult, 0.0f, SK_Scalar1); } //////////////////////////////////////////////////////////////////////////////////////////////////// // Improved Perlin Noise based on Java implementation found at http://mrl.nyu.edu/~perlin/noise/ static SkScalar fade(SkScalar t) { return t * t * t * (t * (t * 6 - 15) + 10); } static SkScalar lerp(SkScalar t, SkScalar a, SkScalar b) { return a + t * (b - a); } static SkScalar grad(int hash, SkScalar x, SkScalar y, SkScalar z) { int h = hash & 15; SkScalar u = h < 8 ? x : y; SkScalar v = h < 4 ? y : h == 12 || h == 14 ? x : z; return ((h & 1) == 0 ? u : -u) + ((h & 2) == 0 ? v : -v); } SkScalar SkPerlinNoiseShaderImpl::PerlinNoiseShaderContext::calculateImprovedNoiseValueForPoint( int channel, const SkPoint& point) const { const SkPerlinNoiseShaderImpl& perlinNoiseShader = static_cast<const SkPerlinNoiseShaderImpl&>(fShader); SkScalar x = point.fX * perlinNoiseShader.fBaseFrequencyX; SkScalar y = point.fY * perlinNoiseShader.fBaseFrequencyY; // z offset between different channels, chosen arbitrarily static const SkScalar CHANNEL_DELTA = 1000.0f; SkScalar z = channel * CHANNEL_DELTA + perlinNoiseShader.fSeed; SkScalar result = 0; SkScalar ratio = SK_Scalar1; for (int i = 0; i < perlinNoiseShader.fNumOctaves; i++) { int X = SkScalarFloorToInt(x) & 255; int Y = SkScalarFloorToInt(y) & 255; int Z = SkScalarFloorToInt(z) & 255; SkScalar px = x - SkScalarFloorToScalar(x); SkScalar py = y - SkScalarFloorToScalar(y); SkScalar pz = z - SkScalarFloorToScalar(z); SkScalar u = fade(px); SkScalar v = fade(py); SkScalar w = fade(pz); uint8_t* permutations = improved_noise_permutations; int A = permutations[X] + Y; int AA = permutations[A] + Z; int AB = permutations[A + 1] + Z; int B = permutations[X + 1] + Y; int BA = permutations[B] + Z; int BB = permutations[B + 1] + Z; result += lerp(w, lerp(v, lerp(u, grad(permutations[AA ], px , py , pz ), grad(permutations[BA ], px - 1, py , pz )), lerp(u, grad(permutations[AB ], px , py - 1, pz ), grad(permutations[BB ], px - 1, py - 1, pz ))), lerp(v, lerp(u, grad(permutations[AA + 1], px , py , pz - 1), grad(permutations[BA + 1], px - 1, py , pz - 1)), lerp(u, grad(permutations[AB + 1], px , py - 1, pz - 1), grad(permutations[BB + 1], px - 1, py - 1, pz - 1)))) / ratio; x *= 2; y *= 2; ratio *= 2; } result = SkTPin((result + 1.0f) / 2.0f, 0.0f, 1.0f); return result; } //////////////////////////////////////////////////////////////////////////////////////////////////// SkPMColor SkPerlinNoiseShaderImpl::PerlinNoiseShaderContext::shade( const SkPoint& point, StitchData& stitchData) const { const SkPerlinNoiseShaderImpl& perlinNoiseShader = static_cast<const SkPerlinNoiseShaderImpl&>(fShader); SkPoint newPoint; fMatrix.mapPoints(&newPoint, &point, 1); newPoint.fX = SkScalarRoundToScalar(newPoint.fX); newPoint.fY = SkScalarRoundToScalar(newPoint.fY); U8CPU rgba[4]; for (int channel = 3; channel >= 0; --channel) { SkScalar value; if (perlinNoiseShader.fType == kImprovedNoise_Type) { value = calculateImprovedNoiseValueForPoint(channel, newPoint); } else { value = calculateTurbulenceValueForPoint(channel, stitchData, newPoint); } rgba[channel] = SkScalarFloorToInt(255 * value); } return SkPreMultiplyARGB(rgba[3], rgba[0], rgba[1], rgba[2]); } #ifdef SK_ENABLE_LEGACY_SHADERCONTEXT SkShaderBase::Context* SkPerlinNoiseShaderImpl::onMakeContext(const ContextRec& rec, SkArenaAlloc* alloc) const { // should we pay attention to rec's device-colorspace? return alloc->make<PerlinNoiseShaderContext>(*this, rec); } #endif static inline SkMatrix total_matrix(const SkShaderBase::ContextRec& rec, const SkShaderBase& shader) { SkMatrix matrix = SkMatrix::Concat(*rec.fMatrix, shader.getLocalMatrix()); if (rec.fLocalMatrix) { matrix.preConcat(*rec.fLocalMatrix); } return matrix; } SkPerlinNoiseShaderImpl::PerlinNoiseShaderContext::PerlinNoiseShaderContext( const SkPerlinNoiseShaderImpl& shader, const ContextRec& rec) : INHERITED(shader, rec) , fMatrix(total_matrix(rec, shader)) // used for temp storage, adjusted below , fPaintingData(shader.fTileSize, shader.fSeed, shader.fBaseFrequencyX, shader.fBaseFrequencyY, fMatrix) { // This (1,1) translation is due to WebKit's 1 based coordinates for the noise // (as opposed to 0 based, usually). The same adjustment is in the setData() function. fMatrix.setTranslate(-fMatrix.getTranslateX() + SK_Scalar1, -fMatrix.getTranslateY() + SK_Scalar1); } void SkPerlinNoiseShaderImpl::PerlinNoiseShaderContext::shadeSpan( int x, int y, SkPMColor result[], int count) { SkPoint point = SkPoint::Make(SkIntToScalar(x), SkIntToScalar(y)); StitchData stitchData; for (int i = 0; i < count; ++i) { result[i] = shade(point, stitchData); point.fX += SK_Scalar1; } } ///////////////////////////////////////////////////////////////////// #if SK_SUPPORT_GPU class GrGLPerlinNoise : public GrGLSLFragmentProcessor { public: void emitCode(EmitArgs&) override; static inline void GenKey(const GrProcessor&, const GrShaderCaps&, GrProcessorKeyBuilder* b); protected: void onSetData(const GrGLSLProgramDataManager&, const GrFragmentProcessor&) override; private: GrGLSLProgramDataManager::UniformHandle fStitchDataUni; GrGLSLProgramDataManager::UniformHandle fBaseFrequencyUni; using INHERITED = GrGLSLFragmentProcessor; }; ///////////////////////////////////////////////////////////////////// class GrPerlinNoise2Effect : public GrFragmentProcessor { public: static std::unique_ptr<GrFragmentProcessor> Make( SkPerlinNoiseShaderImpl::Type type, int numOctaves, bool stitchTiles, std::unique_ptr<SkPerlinNoiseShaderImpl::PaintingData> paintingData, GrSurfaceProxyView permutationsView, GrSurfaceProxyView noiseView, const SkMatrix& matrix, const GrCaps& caps) { static constexpr GrSamplerState kRepeatXSampler = {GrSamplerState::WrapMode::kRepeat, GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest}; auto permutationsFP = GrTextureEffect::Make(std::move(permutationsView), kPremul_SkAlphaType, SkMatrix::I(), kRepeatXSampler, caps); auto noiseFP = GrTextureEffect::Make(std::move(noiseView), kPremul_SkAlphaType, SkMatrix::I(), kRepeatXSampler, caps); return GrMatrixEffect::Make(matrix, std::unique_ptr<GrFragmentProcessor>( new GrPerlinNoise2Effect(type, numOctaves, stitchTiles, std::move(paintingData), std::move(permutationsFP), std::move(noiseFP)))); } const char* name() const override { return "PerlinNoise"; } std::unique_ptr<GrFragmentProcessor> clone() const override { return std::unique_ptr<GrFragmentProcessor>(new GrPerlinNoise2Effect(*this)); } const SkPerlinNoiseShaderImpl::StitchData& stitchData() const { return fPaintingData->fStitchDataInit; } SkPerlinNoiseShaderImpl::Type type() const { return fType; } bool stitchTiles() const { return fStitchTiles; } const SkVector& baseFrequency() const { return fPaintingData->fBaseFrequency; } int numOctaves() const { return fNumOctaves; } private: GrGLSLFragmentProcessor* onCreateGLSLInstance() const override { return new GrGLPerlinNoise; } void onGetGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const override { GrGLPerlinNoise::GenKey(*this, caps, b); } bool onIsEqual(const GrFragmentProcessor& sBase) const override { const GrPerlinNoise2Effect& s = sBase.cast<GrPerlinNoise2Effect>(); return fType == s.fType && fPaintingData->fBaseFrequency == s.fPaintingData->fBaseFrequency && fNumOctaves == s.fNumOctaves && fStitchTiles == s.fStitchTiles && fPaintingData->fStitchDataInit == s.fPaintingData->fStitchDataInit; } GrPerlinNoise2Effect(SkPerlinNoiseShaderImpl::Type type, int numOctaves, bool stitchTiles, std::unique_ptr<SkPerlinNoiseShaderImpl::PaintingData> paintingData, std::unique_ptr<GrFragmentProcessor> permutationsFP, std::unique_ptr<GrFragmentProcessor> noiseFP) : INHERITED(kGrPerlinNoise2Effect_ClassID, kNone_OptimizationFlags) , fType(type) , fNumOctaves(numOctaves) , fStitchTiles(stitchTiles) , fPaintingData(std::move(paintingData)) { this->registerChild(std::move(permutationsFP), SkSL::SampleUsage::Explicit()); this->registerChild(std::move(noiseFP), SkSL::SampleUsage::Explicit()); this->setUsesSampleCoordsDirectly(); } GrPerlinNoise2Effect(const GrPerlinNoise2Effect& that) : INHERITED(kGrPerlinNoise2Effect_ClassID, kNone_OptimizationFlags) , fType(that.fType) , fNumOctaves(that.fNumOctaves) , fStitchTiles(that.fStitchTiles) , fPaintingData(new SkPerlinNoiseShaderImpl::PaintingData(*that.fPaintingData)) { this->cloneAndRegisterAllChildProcessors(that); this->setUsesSampleCoordsDirectly(); } GR_DECLARE_FRAGMENT_PROCESSOR_TEST SkPerlinNoiseShaderImpl::Type fType; int fNumOctaves; bool fStitchTiles; std::unique_ptr<SkPerlinNoiseShaderImpl::PaintingData> fPaintingData; using INHERITED = GrFragmentProcessor; }; ///////////////////////////////////////////////////////////////////// GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrPerlinNoise2Effect); #if GR_TEST_UTILS std::unique_ptr<GrFragmentProcessor> GrPerlinNoise2Effect::TestCreate(GrProcessorTestData* d) { int numOctaves = d->fRandom->nextRangeU(2, 10); bool stitchTiles = d->fRandom->nextBool(); SkScalar seed = SkIntToScalar(d->fRandom->nextU()); SkISize tileSize = SkISize::Make(d->fRandom->nextRangeU(4, 4096), d->fRandom->nextRangeU(4, 4096)); SkScalar baseFrequencyX = d->fRandom->nextRangeScalar(0.01f, 0.99f); SkScalar baseFrequencyY = d->fRandom->nextRangeScalar(0.01f, 0.99f); sk_sp<SkShader> shader(d->fRandom->nextBool() ? SkPerlinNoiseShader::MakeFractalNoise(baseFrequencyX, baseFrequencyY, numOctaves, seed, stitchTiles ? &tileSize : nullptr) : SkPerlinNoiseShader::MakeTurbulence(baseFrequencyX, baseFrequencyY, numOctaves, seed, stitchTiles ? &tileSize : nullptr)); GrTest::TestAsFPArgs asFPArgs(d); return as_SB(shader)->asFragmentProcessor(asFPArgs.args()); } #endif void GrGLPerlinNoise::emitCode(EmitArgs& args) { const GrPerlinNoise2Effect& pne = args.fFp.cast<GrPerlinNoise2Effect>(); GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; GrGLSLUniformHandler* uniformHandler = args.fUniformHandler; fBaseFrequencyUni = uniformHandler->addUniform(&pne, kFragment_GrShaderFlag, kHalf2_GrSLType, "baseFrequency"); const char* baseFrequencyUni = uniformHandler->getUniformCStr(fBaseFrequencyUni); const char* stitchDataUni = nullptr; if (pne.stitchTiles()) { fStitchDataUni = uniformHandler->addUniform(&pne, kFragment_GrShaderFlag, kHalf2_GrSLType, "stitchData"); stitchDataUni = uniformHandler->getUniformCStr(fStitchDataUni); } // Add noise function const GrShaderVar gPerlinNoiseArgs[] = {{"chanCoord", kHalf_GrSLType }, {"noiseVec ", kHalf2_GrSLType}}; const GrShaderVar gPerlinNoiseStitchArgs[] = {{"chanCoord" , kHalf_GrSLType }, {"noiseVec" , kHalf2_GrSLType}, {"stitchData", kHalf2_GrSLType}}; SkString noiseCode; noiseCode.append( R"(half4 floorVal; floorVal.xy = floor(noiseVec); floorVal.zw = floorVal.xy + half2(1); half2 fractVal = fract(noiseVec); // smooth curve : t^2*(3 - 2*t) half2 noiseSmooth = fractVal*fractVal*(half2(3) - 2*fractVal);)"); // Adjust frequencies if we're stitching tiles if (pne.stitchTiles()) { noiseCode.append( R"(if (floorVal.x >= stitchData.x) { floorVal.x -= stitchData.x; }; if (floorVal.y >= stitchData.y) { floorVal.y -= stitchData.y; }; if (floorVal.z >= stitchData.x) { floorVal.z -= stitchData.x; }; if (floorVal.w >= stitchData.y) { floorVal.w -= stitchData.y; };)"); } // NOTE: We need to explicitly pass half4(1) as input color here, because the helper function // can't see fInputColor (which is "_input" in the FP's outer function). skbug.com/10506 SkString sampleX = this->invokeChild(0, "half4(1)", args, "half2(floorVal.x, 0.5)"); SkString sampleY = this->invokeChild(0, "half4(1)", args, "half2(floorVal.z, 0.5)"); noiseCode.appendf("half2 latticeIdx = half2(%s.r, %s.r);", sampleX.c_str(), sampleY.c_str()); #if defined(SK_BUILD_FOR_ANDROID) // Android rounding for Tegra devices, like, for example: Xoom (Tegra 2), Nexus 7 (Tegra 3). // The issue is that colors aren't accurate enough on Tegra devices. For example, if an 8 bit // value of 124 (or 0.486275 here) is entered, we can get a texture value of 123.513725 // (or 0.484368 here). The following rounding operation prevents these precision issues from // affecting the result of the noise by making sure that we only have multiples of 1/255. // (Note that 1/255 is about 0.003921569, which is the value used here). noiseCode.append( "latticeIdx = floor(latticeIdx * half2(255.0) + half2(0.5)) * half2(0.003921569);"); #endif // Get (x,y) coordinates with the permutated x noiseCode.append("half4 bcoords = 256*latticeIdx.xyxy + floorVal.yyww;"); noiseCode.append("half2 uv;"); // This is the math to convert the two 16bit integer packed into rgba 8 bit input into a // [-1,1] vector and perform a dot product between that vector and the provided vector. // Save it as a string because we will repeat it 4x. static constexpr const char* inc8bit = "0.00390625"; // 1.0 / 256.0 SkString dotLattice = SkStringPrintf("dot((lattice.ga + lattice.rb*%s)*2 - half2(1), fractVal)", inc8bit); SkString sampleA = this->invokeChild(1, "half4(1)", args, "half2(bcoords.x, chanCoord)"); SkString sampleB = this->invokeChild(1, "half4(1)", args, "half2(bcoords.y, chanCoord)"); SkString sampleC = this->invokeChild(1, "half4(1)", args, "half2(bcoords.w, chanCoord)"); SkString sampleD = this->invokeChild(1, "half4(1)", args, "half2(bcoords.z, chanCoord)"); // Compute u, at offset (0,0) noiseCode.appendf("half4 lattice = %s;", sampleA.c_str()); noiseCode.appendf("uv.x = %s;", dotLattice.c_str()); // Compute v, at offset (-1,0) noiseCode.append("fractVal.x -= 1.0;"); noiseCode.appendf("lattice = %s;", sampleB.c_str()); noiseCode.appendf("uv.y = %s;", dotLattice.c_str()); // Compute 'a' as a linear interpolation of 'u' and 'v' noiseCode.append("half2 ab;"); noiseCode.append("ab.x = mix(uv.x, uv.y, noiseSmooth.x);"); // Compute v, at offset (-1,-1) noiseCode.append("fractVal.y -= 1.0;"); noiseCode.appendf("lattice = %s;", sampleC.c_str()); noiseCode.appendf("uv.y = %s;", dotLattice.c_str()); // Compute u, at offset (0,-1) noiseCode.append("fractVal.x += 1.0;"); noiseCode.appendf("lattice = %s;", sampleD.c_str()); noiseCode.appendf("uv.x = %s;", dotLattice.c_str()); // Compute 'b' as a linear interpolation of 'u' and 'v' noiseCode.append("ab.y = mix(uv.x, uv.y, noiseSmooth.x);"); // Compute the noise as a linear interpolation of 'a' and 'b' noiseCode.append("return mix(ab.x, ab.y, noiseSmooth.y);"); SkString noiseFuncName; if (pne.stitchTiles()) { fragBuilder->emitFunction(kHalf_GrSLType, "perlinnoise", SK_ARRAY_COUNT(gPerlinNoiseStitchArgs), gPerlinNoiseStitchArgs, noiseCode.c_str(), &noiseFuncName); } else { fragBuilder->emitFunction(kHalf_GrSLType, "perlinnoise", SK_ARRAY_COUNT(gPerlinNoiseArgs), gPerlinNoiseArgs, noiseCode.c_str(), &noiseFuncName); } // There are rounding errors if the floor operation is not performed here fragBuilder->codeAppendf("half2 noiseVec = half2(floor(%s.xy) * %s);", args.fSampleCoord, baseFrequencyUni); // Clear the color accumulator fragBuilder->codeAppendf("%s = half4(0.0);", args.fOutputColor); if (pne.stitchTiles()) { // Set up TurbulenceInitial stitch values. fragBuilder->codeAppendf("half2 stitchData = %s;", stitchDataUni); } fragBuilder->codeAppendf("half ratio = 1.0;"); // Loop over all octaves fragBuilder->codeAppendf("for (int octave = 0; octave < %d; ++octave) {", pne.numOctaves()); fragBuilder->codeAppendf(" %s += ", args.fOutputColor); if (pne.type() != SkPerlinNoiseShaderImpl::kFractalNoise_Type) { fragBuilder->codeAppend("abs("); } // There are 4 lines, put y coords at center of each. static constexpr const char* chanCoordR = "0.5"; static constexpr const char* chanCoordG = "1.5"; static constexpr const char* chanCoordB = "2.5"; static constexpr const char* chanCoordA = "3.5"; if (pne.stitchTiles()) { fragBuilder->codeAppendf(R"( half4(%s(%s, noiseVec, stitchData), %s(%s, noiseVec, stitchData)," %s(%s, noiseVec, stitchData), %s(%s, noiseVec, stitchData)))", noiseFuncName.c_str(), chanCoordR, noiseFuncName.c_str(), chanCoordG, noiseFuncName.c_str(), chanCoordB, noiseFuncName.c_str(), chanCoordA); } else { fragBuilder->codeAppendf(R"( half4(%s(%s, noiseVec), %s(%s, noiseVec), %s(%s, noiseVec), %s(%s, noiseVec)))", noiseFuncName.c_str(), chanCoordR, noiseFuncName.c_str(), chanCoordG, noiseFuncName.c_str(), chanCoordB, noiseFuncName.c_str(), chanCoordA); } if (pne.type() != SkPerlinNoiseShaderImpl::kFractalNoise_Type) { fragBuilder->codeAppend(")"); // end of "abs(" } fragBuilder->codeAppend(" * ratio;"); fragBuilder->codeAppend(R"(noiseVec *= half2(2.0); ratio *= 0.5;)"); if (pne.stitchTiles()) { fragBuilder->codeAppend("stitchData *= half2(2.0);"); } fragBuilder->codeAppend("}"); // end of the for loop on octaves if (pne.type() == SkPerlinNoiseShaderImpl::kFractalNoise_Type) { // The value of turbulenceFunctionResult comes from ((turbulenceFunctionResult) + 1) / 2 // by fractalNoise and (turbulenceFunctionResult) by turbulence. fragBuilder->codeAppendf("%s = %s * half4(0.5) + half4(0.5);", args.fOutputColor, args.fOutputColor); } // Clamp values fragBuilder->codeAppendf("%s = saturate(%s);", args.fOutputColor, args.fOutputColor); // Pre-multiply the result fragBuilder->codeAppendf("%s = half4(%s.rgb * %s.aaa, %s.a);\n", args.fOutputColor, args.fOutputColor, args.fOutputColor, args.fOutputColor); } void GrGLPerlinNoise::GenKey(const GrProcessor& processor, const GrShaderCaps&, GrProcessorKeyBuilder* b) { const GrPerlinNoise2Effect& turbulence = processor.cast<GrPerlinNoise2Effect>(); uint32_t key = turbulence.numOctaves(); key = key << 3; // Make room for next 3 bits switch (turbulence.type()) { case SkPerlinNoiseShaderImpl::kFractalNoise_Type: key |= 0x1; break; case SkPerlinNoiseShaderImpl::kTurbulence_Type: key |= 0x2; break; default: // leave key at 0 break; } if (turbulence.stitchTiles()) { key |= 0x4; // Flip the 3rd bit if tile stitching is on } b->add32(key); } void GrGLPerlinNoise::onSetData(const GrGLSLProgramDataManager& pdman, const GrFragmentProcessor& processor) { INHERITED::onSetData(pdman, processor); const GrPerlinNoise2Effect& turbulence = processor.cast<GrPerlinNoise2Effect>(); const SkVector& baseFrequency = turbulence.baseFrequency(); pdman.set2f(fBaseFrequencyUni, baseFrequency.fX, baseFrequency.fY); if (turbulence.stitchTiles()) { const SkPerlinNoiseShaderImpl::StitchData& stitchData = turbulence.stitchData(); pdman.set2f(fStitchDataUni, SkIntToScalar(stitchData.fWidth), SkIntToScalar(stitchData.fHeight)); } } ///////////////////////////////////////////////////////////////////// class GrGLImprovedPerlinNoise : public GrGLSLFragmentProcessor { public: void emitCode(EmitArgs&) override; static inline void GenKey(const GrProcessor&, const GrShaderCaps&, GrProcessorKeyBuilder*); protected: void onSetData(const GrGLSLProgramDataManager&, const GrFragmentProcessor&) override; private: GrGLSLProgramDataManager::UniformHandle fZUni; GrGLSLProgramDataManager::UniformHandle fBaseFrequencyUni; using INHERITED = GrGLSLFragmentProcessor; }; ///////////////////////////////////////////////////////////////////// class GrImprovedPerlinNoiseEffect : public GrFragmentProcessor { public: static std::unique_ptr<GrFragmentProcessor> Make( int octaves, SkScalar z, std::unique_ptr<SkPerlinNoiseShaderImpl::PaintingData> paintingData, GrSurfaceProxyView permutationsView, GrSurfaceProxyView gradientView, const SkMatrix& matrix, const GrCaps& caps) { static constexpr GrSamplerState kRepeatXSampler = {GrSamplerState::WrapMode::kRepeat, GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest}; auto permutationsFP = GrTextureEffect::Make(std::move(permutationsView), kPremul_SkAlphaType, SkMatrix::I(), kRepeatXSampler, caps); auto gradientFP = GrTextureEffect::Make(std::move(gradientView), kPremul_SkAlphaType, SkMatrix::I(), kRepeatXSampler, caps); return GrMatrixEffect::Make(matrix, std::unique_ptr<GrFragmentProcessor>( new GrImprovedPerlinNoiseEffect(octaves, z, std::move(paintingData), std::move(permutationsFP), std::move(gradientFP)))); } const char* name() const override { return "ImprovedPerlinNoise"; } std::unique_ptr<GrFragmentProcessor> clone() const override { return std::unique_ptr<GrFragmentProcessor>(new GrImprovedPerlinNoiseEffect(*this)); } const SkVector& baseFrequency() const { return fPaintingData->fBaseFrequency; } SkScalar z() const { return fZ; } int octaves() const { return fOctaves; } private: GrGLSLFragmentProcessor* onCreateGLSLInstance() const override { return new GrGLImprovedPerlinNoise; } void onGetGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const override { GrGLImprovedPerlinNoise::GenKey(*this, caps, b); } bool onIsEqual(const GrFragmentProcessor& sBase) const override { const GrImprovedPerlinNoiseEffect& that = sBase.cast<GrImprovedPerlinNoiseEffect>(); return this->z() == that.z() && this->octaves() == that.octaves() && this->baseFrequency() == that.baseFrequency(); } GrImprovedPerlinNoiseEffect(int octaves, SkScalar z, std::unique_ptr<SkPerlinNoiseShaderImpl::PaintingData> paintingData, std::unique_ptr<GrFragmentProcessor> permutationsFP, std::unique_ptr<GrFragmentProcessor> gradientFP) : INHERITED(kGrImprovedPerlinNoiseEffect_ClassID, kNone_OptimizationFlags) , fOctaves(octaves) , fZ(z) , fPaintingData(std::move(paintingData)) { this->registerChild(std::move(permutationsFP), SkSL::SampleUsage::Explicit()); this->registerChild(std::move(gradientFP), SkSL::SampleUsage::Explicit()); this->setUsesSampleCoordsDirectly(); } GrImprovedPerlinNoiseEffect(const GrImprovedPerlinNoiseEffect& that) : INHERITED(kGrImprovedPerlinNoiseEffect_ClassID, kNone_OptimizationFlags) , fOctaves(that.fOctaves) , fZ(that.fZ) , fPaintingData(std::make_unique<SkPerlinNoiseShaderImpl::PaintingData>( *that.fPaintingData)) { this->cloneAndRegisterAllChildProcessors(that); this->setUsesSampleCoordsDirectly(); } GR_DECLARE_FRAGMENT_PROCESSOR_TEST int fOctaves; SkScalar fZ; std::unique_ptr<SkPerlinNoiseShaderImpl::PaintingData> fPaintingData; using INHERITED = GrFragmentProcessor; }; ///////////////////////////////////////////////////////////////////// GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrImprovedPerlinNoiseEffect); #if GR_TEST_UTILS std::unique_ptr<GrFragmentProcessor> GrImprovedPerlinNoiseEffect::TestCreate( GrProcessorTestData* d) { SkScalar baseFrequencyX = d->fRandom->nextRangeScalar(0.01f, 0.99f); SkScalar baseFrequencyY = d->fRandom->nextRangeScalar(0.01f, 0.99f); int numOctaves = d->fRandom->nextRangeU(2, 10); SkScalar z = SkIntToScalar(d->fRandom->nextU()); sk_sp<SkShader> shader(SkPerlinNoiseShader::MakeImprovedNoise(baseFrequencyX, baseFrequencyY, numOctaves, z)); GrTest::TestAsFPArgs asFPArgs(d); return as_SB(shader)->asFragmentProcessor(asFPArgs.args()); } #endif void GrGLImprovedPerlinNoise::emitCode(EmitArgs& args) { const GrImprovedPerlinNoiseEffect& pne = args.fFp.cast<GrImprovedPerlinNoiseEffect>(); GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; GrGLSLUniformHandler* uniformHandler = args.fUniformHandler; fBaseFrequencyUni = uniformHandler->addUniform(&pne, kFragment_GrShaderFlag, kHalf2_GrSLType, "baseFrequency"); const char* baseFrequencyUni = uniformHandler->getUniformCStr(fBaseFrequencyUni); fZUni = uniformHandler->addUniform(&pne, kFragment_GrShaderFlag, kHalf_GrSLType, "z"); const char* zUni = uniformHandler->getUniformCStr(fZUni); // fade function const GrShaderVar fadeArgs[] = { GrShaderVar("t", kHalf3_GrSLType) }; SkString fadeFuncName; fragBuilder->emitFunction(kHalf3_GrSLType, "fade", SK_ARRAY_COUNT(fadeArgs), fadeArgs, "return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);", &fadeFuncName); // perm function const GrShaderVar permArgs[] = { {"x", kHalf_GrSLType} }; SkString samplePerm = this->invokeChild(0, "half4(1)", args, "float2(x, 0.5)"); SkString permFuncName; SkString permCode = SkStringPrintf("return %s.r * 255;", samplePerm.c_str()); fragBuilder->emitFunction(kHalf_GrSLType, "perm", SK_ARRAY_COUNT(permArgs), permArgs, permCode.c_str(), &permFuncName); // grad function const GrShaderVar gradArgs[] = { {"x", kHalf_GrSLType}, {"p", kHalf3_GrSLType} }; SkString sampleGrad = this->invokeChild(1, "half4(1)", args, "float2(x, 0.5)"); SkString gradFuncName; SkString gradCode = SkStringPrintf("return half(dot(%s.rgb * 255.0 - float3(1.0), p));", sampleGrad.c_str()); fragBuilder->emitFunction(kHalf_GrSLType, "grad", SK_ARRAY_COUNT(gradArgs), gradArgs, gradCode.c_str(), &gradFuncName); // lerp function const GrShaderVar lerpArgs[] = { {"a", kHalf_GrSLType}, {"b", kHalf_GrSLType}, {"w", kHalf_GrSLType} }; SkString lerpFuncName; fragBuilder->emitFunction(kHalf_GrSLType, "lerp", SK_ARRAY_COUNT(lerpArgs), lerpArgs, "return a + w * (b - a);", &lerpFuncName); // noise function const GrShaderVar noiseArgs[] = { {"p", kHalf3_GrSLType}, }; SkString noiseFuncName; SkString noiseCode; noiseCode.append("half3 P = mod(floor(p), 256.0);"); noiseCode.append("p -= floor(p);"); noiseCode.appendf("half3 f = %s(p);", fadeFuncName.c_str()); noiseCode.appendf("half A = %s(P.x) + P.y;", permFuncName.c_str()); noiseCode.appendf("half AA = %s(A) + P.z;", permFuncName.c_str()); noiseCode.appendf("half AB = %s(A + 1.0) + P.z;", permFuncName.c_str()); noiseCode.appendf("half B = %s(P.x + 1.0) + P.y;", permFuncName.c_str()); noiseCode.appendf("half BA = %s(B) + P.z;", permFuncName.c_str()); noiseCode.appendf("half BB = %s(B + 1.0) + P.z;", permFuncName.c_str()); noiseCode.appendf("half result = %s(", lerpFuncName.c_str()); noiseCode.appendf("%s(%s(%s(%s(AA), p),", lerpFuncName.c_str(), lerpFuncName.c_str(), gradFuncName.c_str(), permFuncName.c_str()); noiseCode.appendf("%s(%s(BA), p + half3(-1.0, 0.0, 0.0)), f.x),", gradFuncName.c_str(), permFuncName.c_str()); noiseCode.appendf("%s(%s(%s(AB), p + half3(0.0, -1.0, 0.0)),", lerpFuncName.c_str(), gradFuncName.c_str(), permFuncName.c_str()); noiseCode.appendf("%s(%s(BB), p + half3(-1.0, -1.0, 0.0)), f.x), f.y),", gradFuncName.c_str(), permFuncName.c_str()); noiseCode.appendf("%s(%s(%s(%s(AA + 1.0), p + half3(0.0, 0.0, -1.0)),", lerpFuncName.c_str(), lerpFuncName.c_str(), gradFuncName.c_str(), permFuncName.c_str()); noiseCode.appendf("%s(%s(BA + 1.0), p + half3(-1.0, 0.0, -1.0)), f.x),", gradFuncName.c_str(), permFuncName.c_str()); noiseCode.appendf("%s(%s(%s(AB + 1.0), p + half3(0.0, -1.0, -1.0)),", lerpFuncName.c_str(), gradFuncName.c_str(), permFuncName.c_str()); noiseCode.appendf("%s(%s(BB + 1.0), p + half3(-1.0, -1.0, -1.0)), f.x), f.y), f.z);", gradFuncName.c_str(), permFuncName.c_str()); noiseCode.append("return result;"); fragBuilder->emitFunction(kHalf_GrSLType, "noise", SK_ARRAY_COUNT(noiseArgs), noiseArgs, noiseCode.c_str(), &noiseFuncName); // noiseOctaves function const GrShaderVar noiseOctavesArgs[] = { {"p", kHalf3_GrSLType} }; SkString noiseOctavesFuncName; SkString noiseOctavesCode; noiseOctavesCode.append("half result = 0.0;"); noiseOctavesCode.append("half ratio = 1.0;"); noiseOctavesCode.appendf("for (half i = 0.0; i < %d; i++) {", pne.octaves()); noiseOctavesCode.appendf("result += %s(p) / ratio;", noiseFuncName.c_str()); noiseOctavesCode.append("p *= 2.0;"); noiseOctavesCode.append("ratio *= 2.0;"); noiseOctavesCode.append("}"); noiseOctavesCode.append("return (result + 1.0) / 2.0;"); fragBuilder->emitFunction(kHalf_GrSLType, "noiseOctaves", SK_ARRAY_COUNT(noiseOctavesArgs), noiseOctavesArgs, noiseOctavesCode.c_str(), &noiseOctavesFuncName); fragBuilder->codeAppendf("half2 coords = half2(%s * %s);", args.fSampleCoord, baseFrequencyUni); fragBuilder->codeAppendf("half r = %s(half3(coords, %s));", noiseOctavesFuncName.c_str(), zUni); fragBuilder->codeAppendf("half g = %s(half3(coords, %s + 0000.0));", noiseOctavesFuncName.c_str(), zUni); fragBuilder->codeAppendf("half b = %s(half3(coords, %s + 0000.0));", noiseOctavesFuncName.c_str(), zUni); fragBuilder->codeAppendf("half a = %s(half3(coords, %s + 0000.0));", noiseOctavesFuncName.c_str(), zUni); fragBuilder->codeAppendf("%s = half4(r, g, b, a);", args.fOutputColor); // Clamp values fragBuilder->codeAppendf("%s = saturate(%s);", args.fOutputColor, args.fOutputColor); // Pre-multiply the result fragBuilder->codeAppendf("\n\t\t%s = half4(%s.rgb * %s.aaa, %s.a);\n", args.fOutputColor, args.fOutputColor, args.fOutputColor, args.fOutputColor); } void GrGLImprovedPerlinNoise::GenKey(const GrProcessor& processor, const GrShaderCaps&, GrProcessorKeyBuilder* b) { const GrImprovedPerlinNoiseEffect& pne = processor.cast<GrImprovedPerlinNoiseEffect>(); b->add32(pne.octaves()); } void GrGLImprovedPerlinNoise::onSetData(const GrGLSLProgramDataManager& pdman, const GrFragmentProcessor& processor) { INHERITED::onSetData(pdman, processor); const GrImprovedPerlinNoiseEffect& noise = processor.cast<GrImprovedPerlinNoiseEffect>(); const SkVector& baseFrequency = noise.baseFrequency(); pdman.set2f(fBaseFrequencyUni, baseFrequency.fX, baseFrequency.fY); pdman.set1f(fZUni, noise.z()); } ///////////////////////////////////////////////////////////////////// std::unique_ptr<GrFragmentProcessor> SkPerlinNoiseShaderImpl::asFragmentProcessor( const GrFPArgs& args) const { SkASSERT(args.fContext); const auto localMatrix = this->totalLocalMatrix(args.fPreLocalMatrix); const auto paintMatrix = SkMatrix::Concat(args.fMatrixProvider.localToDevice(), *localMatrix); // Either we don't stitch tiles, either we have a valid tile size SkASSERT(!fStitchTiles || !fTileSize.isEmpty()); std::unique_ptr<SkPerlinNoiseShaderImpl::PaintingData> paintingData = std::make_unique<SkPerlinNoiseShaderImpl::PaintingData>(fTileSize, fSeed, fBaseFrequencyX, fBaseFrequencyY, paintMatrix); SkMatrix m = args.fMatrixProvider.localToDevice(); m.setTranslateX(-localMatrix->getTranslateX() + SK_Scalar1); m.setTranslateY(-localMatrix->getTranslateY() + SK_Scalar1); auto context = args.fContext; if (fType == kImprovedNoise_Type) { // Need to assert that the textures we'll create are power of 2 so a copy isn't needed. // We also know that we will not be using mipmaps. If things things weren't true we should // go through GrBitmapTextureMaker to handle needed copies. const SkBitmap& permutationsBitmap = paintingData->getImprovedPermutationsBitmap(); SkASSERT(SkIsPow2(permutationsBitmap.width()) && SkIsPow2(permutationsBitmap.height())); auto permutationsView = GrMakeCachedBitmapProxyView(context, permutationsBitmap); const SkBitmap& gradientBitmap = paintingData->getGradientBitmap(); SkASSERT(SkIsPow2(gradientBitmap.width()) && SkIsPow2(gradientBitmap.height())); auto gradientView = GrMakeCachedBitmapProxyView(context, gradientBitmap); return GrImprovedPerlinNoiseEffect::Make(fNumOctaves, fSeed, std::move(paintingData), std::move(permutationsView), std::move(gradientView), m, *context->priv().caps()); } if (0 == fNumOctaves) { if (kFractalNoise_Type == fType) { // Extract the incoming alpha and emit rgba = (a/4, a/4, a/4, a/2) // TODO: Either treat the output of this shader as sRGB or allow client to specify a // color space of the noise. Either way, this case (and the GLSL) need to convert to // the destination. auto inner = GrFragmentProcessor::ModulateRGBA( /*child=*/nullptr, SkPMColor4f::FromBytes_RGBA(0x80404040)); return GrFragmentProcessor::MulChildByInputAlpha(std::move(inner)); } // Emit zero. return GrConstColorProcessor::Make(SK_PMColor4fTRANSPARENT); } // Need to assert that the textures we'll create are power of 2 so that now copy is needed. We // also know that we will not be using mipmaps. If things things weren't true we should go // through GrBitmapTextureMaker to handle needed copies. const SkBitmap& permutationsBitmap = paintingData->getPermutationsBitmap(); SkASSERT(SkIsPow2(permutationsBitmap.width()) && SkIsPow2(permutationsBitmap.height())); auto permutationsView = GrMakeCachedBitmapProxyView(context, permutationsBitmap); const SkBitmap& noiseBitmap = paintingData->getNoiseBitmap(); SkASSERT(SkIsPow2(noiseBitmap.width()) && SkIsPow2(noiseBitmap.height())); auto noiseView = GrMakeCachedBitmapProxyView(context, noiseBitmap); if (permutationsView.proxy() && noiseView.proxy()) { auto inner = GrPerlinNoise2Effect::Make(fType, fNumOctaves, fStitchTiles, std::move(paintingData), std::move(permutationsView), std::move(noiseView), m, *context->priv().caps()); return GrFragmentProcessor::MulChildByInputAlpha(std::move(inner)); } return nullptr; } #endif /////////////////////////////////////////////////////////////////////////////////////////////////// static bool valid_input(SkScalar baseX, SkScalar baseY, int numOctaves, const SkISize* tileSize, SkScalar seed) { if (!(baseX >= 0 && baseY >= 0)) { return false; } if (!(numOctaves >= 0 && numOctaves <= SkPerlinNoiseShaderImpl::kMaxOctaves)) { return false; } if (tileSize && !(tileSize->width() >= 0 && tileSize->height() >= 0)) { return false; } if (!SkScalarIsFinite(seed)) { return false; } return true; } sk_sp<SkShader> SkPerlinNoiseShader::MakeFractalNoise(SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar seed, const SkISize* tileSize) { if (!valid_input(baseFrequencyX, baseFrequencyY, numOctaves, tileSize, seed)) { return nullptr; } return sk_sp<SkShader>(new SkPerlinNoiseShaderImpl(SkPerlinNoiseShaderImpl::kFractalNoise_Type, baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize)); } sk_sp<SkShader> SkPerlinNoiseShader::MakeTurbulence(SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar seed, const SkISize* tileSize) { if (!valid_input(baseFrequencyX, baseFrequencyY, numOctaves, tileSize, seed)) { return nullptr; } return sk_sp<SkShader>(new SkPerlinNoiseShaderImpl(SkPerlinNoiseShaderImpl::kTurbulence_Type, baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize)); } sk_sp<SkShader> SkPerlinNoiseShader::MakeImprovedNoise(SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar z) { if (!valid_input(baseFrequencyX, baseFrequencyY, numOctaves, nullptr, z)) { return nullptr; } return sk_sp<SkShader>(new SkPerlinNoiseShaderImpl(SkPerlinNoiseShaderImpl::kImprovedNoise_Type, baseFrequencyX, baseFrequencyY, numOctaves, z, nullptr)); } void SkPerlinNoiseShader::RegisterFlattenables() { SK_REGISTER_FLATTENABLE(SkPerlinNoiseShaderImpl); }
#include <string> #include <vector> #include <iostream> #include <exception> #include <cassert> #include "propertyfileext.hpp" using namespace std; int main(void){ cerr << "Testing: PropertyFileExt" << endl; cerr << "Testing: constructor" << endl; { PropertyFileExt propFileExt1("*"); PropertyFileExt propFileExt2(""); PropertyFileExt propFileExt3(".jpg"); bool excep = false; try { PropertyFileExt propFileExt4("ffda.fd"); } catch(...) { excep = true; } assert(excep); set<string> exts = {".png",".gjf"}; PropertyFileExt propFileExt5(exts); } cerr << "Testing: getPropertyName" << endl; { PropertyFileExt propFileExt; string name = propFileExt.getPropertyName(); assert(name.compare("PROPERTY_FILE_EXT")==0); } cerr << "Testing: getPropertyOptions" << endl; { PropertyFileExt propFileExt; auto options = propFileExt.getPropertyOptions(); string opt = options.at(0); assert(opt.compare("ALLOWED_FILE_EXT")==0); } cerr << "Testing: propValid" << endl; { PropertyFileExt propFileExt(".jpg"); bool valid = propFileExt.propValid("dir/file.jpg"); assert(valid); bool excep = false; try{ propFileExt.propValid("dir/file.jp"); }catch(...){ excep = true; } assert(excep); PropertyFileExt propFileExt2("*"); valid = propFileExt2.propValid("dir/file.jpg"); assert(valid); valid = propFileExt2.propValid("dir/file.jp"); assert(valid); set<string> exts = {".png",".gjf"}; PropertyFileExt propFileExt3(exts); valid = propFileExt3.propValid("Dir2/Path/File.png"); assert(valid); valid = propFileExt3.propValid("Dir2/Path/File.gjf"); assert(valid); excep = false; try{ propFileExt3.propValid("dir/file.com"); }catch(...){ excep = true; } assert(excep); } return 0; }
/* * Copyright 2011 Nikhil Marathe <nsm.nikhil@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #include "qhttpserver.h" #include <QTcpServer> #include <QTcpSocket> #include <QVariant> #include <QDebug> #include <QSslCertificate> #include <QSslKey> #include <QFile> #include "qhttpconnection.h" #include "qauthenticatorrealm.h" #include "sslserver.h" QHash<int, QString> STATUS_CODES; QHttpServer::QHttpServer(QObject *parent) : QObject(parent) , m_tcpServer(0) , m_sslServer(0) , m_realm(0) , m_useSsl(false) , m_sslCertificate(0) , m_sslKey(0) { #define STATUS_CODE(num, reason) STATUS_CODES.insert(num, reason); // {{{ STATUS_CODE(100, "Continue") STATUS_CODE(101, "Switching Protocols") STATUS_CODE(102, "Processing") // RFC 2518) obsoleted by RFC 4918 STATUS_CODE(200, "OK") STATUS_CODE(201, "Created") STATUS_CODE(202, "Accepted") STATUS_CODE(203, "Non-Authoritative Information") STATUS_CODE(204, "No Content") STATUS_CODE(205, "Reset Content") STATUS_CODE(206, "Partial Content") STATUS_CODE(207, "Multi-Status") // RFC 4918 STATUS_CODE(300, "Multiple Choices") STATUS_CODE(301, "Moved Permanently") STATUS_CODE(302, "Moved Temporarily") STATUS_CODE(303, "See Other") STATUS_CODE(304, "Not Modified") STATUS_CODE(305, "Use Proxy") STATUS_CODE(307, "Temporary Redirect") STATUS_CODE(400, "Bad Request") STATUS_CODE(401, "Unauthorized") STATUS_CODE(402, "Payment Required") STATUS_CODE(403, "Forbidden") STATUS_CODE(404, "Not Found") STATUS_CODE(405, "Method Not Allowed") STATUS_CODE(406, "Not Acceptable") STATUS_CODE(407, "Proxy Authentication Required") STATUS_CODE(408, "Request Time-out") STATUS_CODE(409, "Conflict") STATUS_CODE(410, "Gone") STATUS_CODE(411, "Length Required") STATUS_CODE(412, "Precondition Failed") STATUS_CODE(413, "Request Entity Too Large") STATUS_CODE(414, "Request-URI Too Large") STATUS_CODE(415, "Unsupported Media Type") STATUS_CODE(416, "Requested Range Not Satisfiable") STATUS_CODE(417, "Expectation Failed") STATUS_CODE(418, "I\"m a teapot") // RFC 2324 STATUS_CODE(422, "Unprocessable Entity") // RFC 4918 STATUS_CODE(423, "Locked") // RFC 4918 STATUS_CODE(424, "Failed Dependency") // RFC 4918 STATUS_CODE(425, "Unordered Collection") // RFC 4918 STATUS_CODE(426, "Upgrade Required") // RFC 2817 STATUS_CODE(500, "Internal Server Error") STATUS_CODE(501, "Not Implemented") STATUS_CODE(502, "Bad Gateway") STATUS_CODE(503, "Service Unavailable") STATUS_CODE(504, "Gateway Time-out") STATUS_CODE(505, "HTTP Version not supported") STATUS_CODE(506, "Variant Also Negotiates") // RFC 2295 STATUS_CODE(507, "Insufficient Storage") // RFC 4918 STATUS_CODE(509, "Bandwidth Limit Exceeded") STATUS_CODE(510, "Not Extended") // RFC 2774 // }}} } QHttpServer::~QHttpServer() { if (m_sslCertificate != 0) { delete m_sslCertificate; } if (m_sslKey != 0) { delete m_sslKey; } } void QHttpServer::newConnection() { //Q_ASSERT(m_tcpServer); if (m_useSsl) { while(m_sslServer->hasPendingConnections()) { QHttpConnection *connection = new QHttpConnection(m_sslServer->nextPendingConnection(), m_realm, this); connect(connection, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)), this, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*))); } } else{ while(m_tcpServer->hasPendingConnections()) { QHttpConnection *connection = new QHttpConnection(m_tcpServer->nextPendingConnection(), m_realm, this); connect(connection, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)), this, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*))); } } } bool QHttpServer::listen(const QHostAddress &address, quint16 port) { if (m_useSsl) { m_sslServer = new SslServer(*m_sslCertificate, *m_sslKey, this); connect(m_sslServer, SIGNAL(newConnection()), this, SLOT(newConnection())); return m_sslServer->listen(address, port); } else { m_tcpServer = new QTcpServer(this); connect(m_tcpServer, SIGNAL(newConnection()), this, SLOT(newConnection())); return m_tcpServer->listen(address, port); } } bool QHttpServer::listen(quint16 port) { return listen(QHostAddress::Any, port); } void QHttpServer::addAuthenticatorRealm(QAuthenticatorRealm *realm) { m_realm = realm; m_realm->setParent(this); } void QHttpServer::close() { m_tcpServer->close(); } void QHttpServer::enableSsl(QString sslCertificatePath, QString sslKeyPath) { QList<QSslCertificate> certificates = QSslCertificate::fromPath(sslCertificatePath); if (certificates.length() == 0) { qDebug() << QString("Could not parse SSL Certificate!"); return; } m_sslCertificate = new QSslCertificate(certificates.at(0)); if (this->setPrivateKey(sslKeyPath)) { m_useSsl = true; } } bool QHttpServer::setPrivateKey(const QString &fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray &passPhrase) { QFile file(fileName); if (file.open(QIODevice::ReadOnly)) { m_sslKey = new QSslKey(file.readAll(), algorithm, format, QSsl::PrivateKey, passPhrase); if (m_sslKey == 0) { return false; } else { return true; } } else { return false; } }
# Calculates the factorial of a N integer number #####Important Registers##### #$s0: Number (N) #$s1: Result main: li $s0, 6 # Loads N = 6 move $a0, $s0 # Sets N as parameter jal factorial # factorial (N) move $s1, $v0 # Copy the result to $s1 j exit factorial: subi $sp, $sp, 8 # Allocate space for two words sw $ra, 4($sp) # Save $ra sw $a0, 0($sp) # Save $a0 slti $t0, $a0, 2 # $t0 = $a0 < 2 beq $t0, $zero, secondPart # if a > 2, goes to secondPart move $v0, $a0 jr $ra secondPart: addi $a0, $a0, -1 addi $s6, $s6, 1 jal factorial lw $ra, 4($sp) lw $t1, 0($sp) mul $v0, $v0, $t1 addi $sp, $sp, 8 jr $ra exit: nop
; ; Sharp OZ family functions ; ; ported from the OZ-7xx SDK by by Alexander R. Pruss ; by Stefano Bodrato - Oct. 2003 ; ; Serial libraries ; ; ; ------ ; $Id: ozserintoff.asm,v 1.3 2015/01/19 01:33:04 pauloscustodio Exp $ ; PUBLIC ozserintoff EXTERN ozcustomisr EXTERN serial_hook EXTERN rxxoff_hook EXTERN ozintwait EXTERN serial_check_hook ozserintoff: ld hl,serial_hook+3 ld (serial_hook+1),hl ld hl,serial_check_hook+3 ld (serial_check_hook+1),hl ld hl,rxxoff_hook+3 ld (rxxoff_hook+1),hl in a,(7) or 4 out (7),a ld a,0 out (41h),a ret
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed under the Apache License, Version 2.0 (the "License"); ; * you may not use this file except in compliance with the License. ; * You may obtain a copy of the License at ; * ; * http://www.apache.org/licenses/LICENSE-2.0 ; * ; * Unless required by applicable law or agreed to in writing, software ; * distributed under the License is distributed on an "AS IS" BASIS, ; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; * See the License for the specific language governing permissions and ; * limitations under the License. ; *---------------------------------------------------------------------------- ; * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0 ; * (la "Licenza"); è proibito usare questo file se non in conformità alla ; * Licenza. Una copia della Licenza è disponibile all'indirizzo: ; * ; * http://www.apache.org/licenses/LICENSE-2.0 ; * ; * Se non richiesto dalla legislazione vigente o concordato per iscritto, ; * il software distribuito nei termini della Licenza è distribuito ; * "COSì COM'è", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o ; * implicite. Consultare la Licenza per il testo specifico che regola le ; * autorizzazioni e le limitazioni previste dalla medesima. ; ****************************************************************************/ ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ;* * ;* STARTUP ROUTINE ON DRAGON 64 * ;* * ;* by Marco Spedaletti * ;* * ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * D64STARTUP LDA #0 STA $011f RTS
; A317952: Trajectory of 1 under repeated application of the morphism 1->121, 2->232, 3->343, 4->414. ; 1,2,1,2,3,2,1,2,1,2,3,2,3,4,3,2,3,2,1,2,1,2,3,2,1,2,1,2,3,2,3,4,3,2,3,2,3,4,3,4,1,4,3,4,3,2,3,2,3,4,3,2,3,2,1,2,1,2,3,2,1,2,1,2,3,2,3,4,3,2,3,2,1,2,1,2,3,2,1,2,1,2,3,2,3,4,3,2,3,2,3,4,3,4,1,4,3,4,3,2 seq $0,62756 ; Number of 1's in ternary (base-3) expansion of n. mod $0,4 add $0,1
; A270006: Number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 5", based on the 5-celled von Neumann neighborhood. ; 1,8,0,49,0,121,0,225,0,361,0,529,0,729,0,961,0,1225,0,1521,0,1849,0,2209,0,2601,0,3025,0,3481,0,3969,0,4489,0,5041,0,5625,0,6241,0,6889,0,7569,0,8281,0,9025,0,9801,0,10609,0,11449,0,12321,0,13225,0,14161,0,15129,0,16129,0,17161,0,18225,0,19321,0,20449,0,21609,0,22801,0,24025,0,25281,0,26569,0,27889,0,29241,0,30625,0,32041,0,33489,0,34969,0,36481,0,38025,0,39601 mov $3,2 mov $8,$0 lpb $3 mov $0,$8 sub $3,1 add $0,$3 sub $0,1 mov $5,0 mov $9,1 lpb $9 mov $4,$0 add $4,1 add $5,1 mov $7,$0 add $7,$4 mov $6,$7 add $6,1 mod $6,4 trn $9,2 lpb $0 mov $5,$7 mul $5,$7 trn $6,1 mov $0,$6 mov $7,0 lpe mul $5,2 add $0,$5 mov $7,$0 div $7,2 lpe mov $2,$3 lpb $2 mov $1,$7 sub $2,1 lpe lpe lpb $8 trn $1,$7 mov $8,0 lpe mov $0,$1