mov ax, [_scratch_list]
xor di, di
+
+ mov word ptr [bp - 2], ax
.L112:
call _free
add sp, 2
+ mov bx, [_scratch_list]
+
+ cmp bx, word ptr [bp - 2]
+ je .L126
+
+ mov ax, bx
+
+.L126:
+
mov [_scratch_list], ax
mov word ptr [bp - 2], ax
.L123:
push es
+ push bx
+
+ mov ax, [_scratch_list]
+
+ and ax, ax
+ jz .L127
+
+ push es
+ push bx
+
+ mov es, ax
+ xor bx, bx
+
+ mov ax, es:[bx + 4]
+ pop bx
+ pop es
+
+.L127:
+
+ push ax
+
+ xor ax, ax
+ mov [_scratch_list], ax
+
push di
call _strlen
call _strcpy
add sp, 4
+ mov ax, [_scratch_list]
+
+ and ax, ax
+ jnz .L125
+
+ pop ax
+ mov [_scratch_list], ax
+
+ jmp .L119
+
+.L125:
+
+ mov es, ax
+ xor bx, bx
+
+ mov ax, es:[bx + 4]
+
+ and ax, ax
+ jnz .L125
+
+ pop ax
+ mov es:[bx + 4], ax
+
+.L119:
+
+ pop bx
pop es
.L120:
jz _read_batch.close
mov word ptr [bp - 2], ax
+
+ mov ax, [_scratch_list]
+ mov word ptr [bp - 6], ax
+
+ xor ax, ax
+ mov [_scratch_list], ax
_read_batch.read_line:
mov ax, word ptr [bp - 2]
and ax, ax
- jz _read_batch.done
+ jz _read_batch.append
push ax
call _load_line_destroy_internal_data
add sp, 2
+_read_batch.append:
+
+ mov ax, [_scratch_list]
+
+ and ax, ax
+ jnz _read_batch.find_last
+
+ mov ax, word ptr [bp - 6]
+ mov [_scratch_list], ax
+
+ jmp _read_batch.done
+
+_read_batch.find_last:
+
+ mov es, ax
+ xor bx, bx
+
+ mov ax, es:[bx + 4]
+
+ and ax, ax
+ jnz _read_batch.find_last
+
+ mov ax, word ptr [bp - 6]
+ mov es:[bx + 4], ax
+
_read_batch.done:
pop ds