// File: /workspace/github_c_makefile_star2_O0/haxlang[P]hax/haxHistory.c
// Function: Hax_HistoryCmd
int
Hax_HistoryCmd(
    ClientData dummy,			/* Not used. */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    Interp *iPtr = (Interp *) interp;
    Hax_Memoryp *memoryp = iPtr->memoryp;
    HistoryEvent *eventPtr;
    int length;
    char c;

    /*
     * If no arguments, treat the same as "history info".
     */

    if (argc == 1) {
	goto infoCmd;
    }

    c = argv[1][0];
    length = strlen(argv[1]);

    if ((c == 'a') && (strncmp(argv[1], "add", length)) == 0) {
	if ((argc != 3) && (argc != 4)) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " add event ?exec?\"", (char *) NULL);
	    return HAX_ERROR;
	}
	if (argc == 4) {
	    if (strncmp(argv[3], "exec", strlen(argv[3])) != 0) {
		Hax_AppendResult(interp, "bad argument \"", argv[3],
			"\": should be \"exec\"", (char *) NULL);
		return HAX_ERROR;
	    }
	    return Hax_RecordAndEval(interp, argv[2], 0);
	}
	return Hax_RecordAndEval(interp, argv[2], HAX_NO_EVAL);
    } else if ((c == 'c') && (strncmp(argv[1], "change", length)) == 0) {
	if ((argc != 3) && (argc != 4)) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " change newValue ?event?\"", (char *) NULL);
	    return HAX_ERROR;
	}
	if (argc == 3) {
	    eventPtr = &iPtr->events[iPtr->curEvent];
	    iPtr->revDisables += 1;
	    while (iPtr->revPtr != NULL) {
		HistoryRev *nextPtr;

		ckfree(memoryp, iPtr->revPtr->newBytes);
		nextPtr = iPtr->revPtr->nextPtr;
		ckfree(memoryp, (char *) iPtr->revPtr);
		iPtr->revPtr = nextPtr;
	    }
	} else {
	    eventPtr = GetEvent(iPtr, argv[3]);
	    if (eventPtr == NULL) {
		return HAX_ERROR;
	    }
	}
	MakeSpace(iPtr, eventPtr, strlen(argv[2]) + 1);
	strcpy(eventPtr->command, argv[2]);
	return HAX_OK;
    } else if ((c == 'e') && (strncmp(argv[1], "event", length)) == 0) {
	if (argc > 3) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " event ?event?\"", (char *) NULL);
	    return HAX_ERROR;
	}
	eventPtr = GetEvent(iPtr, argc==2 ? (char *) "-1" : argv[2]);
	if (eventPtr == NULL) {
	    return HAX_ERROR;
	}
	RevResult(iPtr, eventPtr->command);
	Hax_SetResult(interp, eventPtr->command, HAX_VOLATILE);
	return HAX_OK;
    } else if ((c == 'i') && (strncmp(argv[1], "info", length)) == 0) {
	int count, indx, i;
	const char *newline;

	if ((argc != 2) && (argc != 3)) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " info ?count?\"", (char *) NULL);
	    return HAX_ERROR;
	}
	infoCmd:
	if (argc == 3) {
	    if (Hax_GetInt(interp, argv[2], &count) != HAX_OK) {
		return HAX_ERROR;
	    }
	    if (count > iPtr->numEvents) {
		count = iPtr->numEvents;
	    }
	} else {
	    count = iPtr->numEvents;
	}
	newline = "";
	for (i = 0, indx = iPtr->curEvent + 1 + iPtr->numEvents - count;
		i < count; i++, indx++) {
	    char *cur, *next, savedChar;
	    char serial[20];

	    if (indx >= iPtr->numEvents) {
		indx -= iPtr->numEvents;
	    }
	    cur = iPtr->events[indx].command;
	    if (*cur == '\0') {
		continue;		/* No command recorded here. */
	    }
	    sprintf(serial, "%6d  ", iPtr->curEventNum + 1 - (count - i));
	    Hax_AppendResult(interp, newline, serial, (char *) NULL);
	    newline = "\n";

	    /*
	     * Tricky formatting here:  for multi-line commands, indent
	     * the continuation lines.
	     */

	    while (1) {
		next = strchr(cur, '\n');
		if (next == NULL) {
		    break;
		}
		next++;
		savedChar = *next;
		*next = 0;
		Hax_AppendResult(interp, cur, "\t", (char *) NULL);
		*next = savedChar;
		cur = next;
	    }
	    Hax_AppendResult(interp, cur, (char *) NULL);
	}
	return HAX_OK;
    } else if ((c == 'k') && (strncmp(argv[1], "keep", length)) == 0) {
	int count, i, src;
	HistoryEvent *events;

	if (argc != 3) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " keep number\"", (char *) NULL);
	    return HAX_ERROR;
	}
	if (Hax_GetInt(interp, argv[2], &count) != HAX_OK) {
	    return HAX_ERROR;
	}
	if ((count <= 0) || (count > 1000)) {
	    Hax_AppendResult(interp, "illegal keep count \"", argv[2],
		    "\"", (char *) NULL);
	    return HAX_ERROR;
	}

	/*
	 * Create a new history array and copy as much existing history
	 * as possible from the old array.
	 */

	events = (HistoryEvent *)
		ckalloc(memoryp, (unsigned) (count * sizeof(HistoryEvent)));
	if (count < iPtr->numEvents) {
	    src = iPtr->curEvent + 1 - count;
	    if (src < 0) {
		src += iPtr->numEvents;
	    }
	} else {
	    src = iPtr->curEvent + 1;
	}
	for (i = 0; i < count; i++, src++) {
	    if (src >= iPtr->numEvents) {
		src = 0;
	    }
	    if (i < iPtr->numEvents) {
		events[i] = iPtr->events[src];
		iPtr->events[src].command = NULL;
	    } else {
		events[i].command = (char *) ckalloc(memoryp, INITIAL_CMD_SIZE);
		events[i].command[0] = 0;
		events[i].bytesAvl = INITIAL_CMD_SIZE;
	    }
	}

	/*
	 * Throw away everything left in the old history array, and
	 * substitute the new one for the old one.
	 */

	for (i = 0; i < iPtr->numEvents; i++) {
	    if (iPtr->events[i].command != NULL) {
		ckfree(memoryp, iPtr->events[i].command);
	    }
	}
	ckfree(memoryp, (char *) iPtr->events);
	iPtr->events = events;
	if (count < iPtr->numEvents) {
	    iPtr->curEvent = count-1;
	} else {
	    iPtr->curEvent = iPtr->numEvents-1;
	}
	iPtr->numEvents = count;
	return HAX_OK;
    } else if ((c == 'n') && (strncmp(argv[1], "nextid", length)) == 0) {
	if (argc != 2) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " nextid\"", (char *) NULL);
	    return HAX_ERROR;
	}
	sprintf(iPtr->result, "%d", iPtr->curEventNum+1);
	return HAX_OK;
    } else if ((c == 'r') && (strncmp(argv[1], "redo", length)) == 0) {
	if (argc > 3) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " redo ?event?\"", (char *) NULL);
	    return HAX_ERROR;
	}
	eventPtr = GetEvent(iPtr, argc==2 ? (char *) "-1" : argv[2]);
	if (eventPtr == NULL) {
	    return HAX_ERROR;
	}
	RevCommand(iPtr, eventPtr->command);
	return Hax_Eval(interp, NULL, eventPtr->command, 0, (char **) NULL);
    } else if ((c == 's') && (strncmp(argv[1], "substitute", length)) == 0) {
	if ((argc > 5) || (argc < 4)) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " substitute old new ?event?\"", (char *) NULL);
	    return HAX_ERROR;
	}
	eventPtr = GetEvent(iPtr, argc==4 ? (char *) "-1" : argv[4]);
	if (eventPtr == NULL) {
	    return HAX_ERROR;
	}
	return SubsAndEval(iPtr, eventPtr->command, argv[2], argv[3]);
    } else if ((c == 'w') && (strncmp(argv[1], "words", length)) == 0) {
	char *words;

	if ((argc != 3) && (argc != 4)) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " words num-num/pat ?event?\"", (char *) NULL);
	    return HAX_ERROR;
	}
	eventPtr = GetEvent(iPtr, argc==3 ? (char *) "-1" : argv[3]);
	if (eventPtr == NULL) {
	    return HAX_ERROR;
	}
	words = GetWords(iPtr, eventPtr->command, argv[2]);
	if (words == NULL) {
	    return HAX_ERROR;
	}
	RevResult(iPtr, words);
	iPtr->result = words;
	iPtr->freeProc = (Hax_FreeProc *) free;
	return HAX_OK;
    }

    Hax_AppendResult(interp, "bad option \"", argv[1],
	    "\": must be add, change, event, info, keep, nextid, ",
	    "redo, substitute, or words", (char *) NULL);
    return HAX_ERROR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq 0x280(%rax), %rax
movq %rax, -0x38(%rbp)
cmpl $0x1, -0x1c(%rbp)
jne 0x1330c
jmp 0x13746
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movb (%rax), %al
movb %al, -0x45(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x41b0
movl %eax, -0x44(%rbp)
movsbl -0x45(%rbp), %eax
cmpl $0x61, %eax
jne 0x13440
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xbaa4(%rip), %rsi      # 0x1eded
callq 0x40a0
cmpl $0x0, %eax
jne 0x13440
cmpl $0x3, -0x1c(%rbp)
je 0x13394
cmpl $0x4, -0x1c(%rbp)
je 0x13394
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0xa5ff(%rip), %rsi      # 0x1d974
leaq 0xba75(%rip), %rcx      # 0x1edf1
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
cmpl $0x4, -0x1c(%rbp)
jne 0x13422
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xb8(%rbp)
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x41b0
movq -0xb8(%rbp), %rdi
movq %rax, %rdx
leaq 0xba39(%rip), %rsi      # 0x1ee04
callq 0x40a0
cmpl $0x0, %eax
je 0x13407
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0xba21(%rip), %rsi      # 0x1ee09
leaq 0xba29(%rip), %rcx      # 0x1ee18
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
xorl %edx, %edx
callq 0x4170
movl %eax, -0x4(%rbp)
jmp 0x14091
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x4170
movl %eax, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x63, %eax
jne 0x135e7
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xb9cc(%rip), %rsi      # 0x1ee2c
callq 0x40a0
cmpl $0x0, %eax
jne 0x135e7
cmpl $0x3, -0x1c(%rbp)
je 0x134ab
cmpl $0x4, -0x1c(%rbp)
je 0x134ab
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0xa4e8(%rip), %rsi      # 0x1d974
leaq 0xb9a0(%rip), %rcx      # 0x1ee33
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
cmpl $0x3, -0x1c(%rbp)
jne 0x13561
movq -0x30(%rbp), %rax
movq 0xe0(%rax), %rax
movq -0x30(%rbp), %rcx
movslq 0xe8(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movl 0x100(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x100(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0xf0(%rax)
je 0x1355f
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0xf0(%rax), %rax
movq 0x10(%rax), %rsi
leaq 0xb8c7(%rip), %rdx      # 0x1edd8
movl $0x131, %ecx            # imm = 0x131
callq 0x4260
movq -0x30(%rbp), %rax
movq 0xf0(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0xf0(%rax), %rsi
leaq 0xb894(%rip), %rdx      # 0x1edd8
movl $0x133, %ecx            # imm = 0x133
callq 0x4260
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0xf0(%rax)
jmp 0x134e9
jmp 0x1358b
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x14540
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x13589
movl $0x1, -0x4(%rbp)
jmp 0x14091
jmp 0x1358b
movq -0x30(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x41b0
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
addq $0x1, %rax
movl %eax, %edx
callq 0x144c0
movq -0x40(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x40d0
movl $0x0, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x65, %eax
jne 0x136d9
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xb9bd(%rip), %rsi      # 0x1efc4
callq 0x40a0
cmpl $0x0, %eax
jne 0x136d9
cmpl $0x3, -0x1c(%rbp)
jle 0x1364c
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0xa347(%rip), %rsi      # 0x1d974
leaq 0xb819(%rip), %rcx      # 0x1ee4d
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rax
movq %rax, -0xd0(%rbp)
cmpl $0x2, -0x1c(%rbp)
jne 0x1366d
leaq 0xac68(%rip), %rax      # 0x1e2cc
movq %rax, -0xd8(%rbp)
jmp 0x1367c
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xd8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x14540
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x136a6
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rsi
callq 0x14780
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq $-0x1, %rdx
callq 0x44e0
movl $0x0, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x69, %eax
jne 0x13910
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xafe9(%rip), %rsi      # 0x1e6e2
callq 0x40a0
cmpl $0x0, %eax
jne 0x13910
cmpl $0x2, -0x1c(%rbp)
je 0x13744
cmpl $0x3, -0x1c(%rbp)
je 0x13744
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0xa24f(%rip), %rsi      # 0x1d974
leaq 0xb731(%rip), %rcx      # 0x1ee5d
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
jmp 0x13746
cmpl $0x3, -0x1c(%rbp)
jne 0x13790
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x54(%rbp), %rdx
callq 0x41a0
cmpl $0x0, %eax
je 0x13772
movl $0x1, -0x4(%rbp)
jmp 0x14091
movl -0x54(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0xd8(%rcx), %eax
jle 0x1378e
movq -0x30(%rbp), %rax
movl 0xd8(%rax), %eax
movl %eax, -0x54(%rbp)
jmp 0x1379d
movq -0x30(%rbp), %rax
movl 0xd8(%rax), %eax
movl %eax, -0x54(%rbp)
leaq 0xb6cf(%rip), %rax      # 0x1ee73
movq %rax, -0x68(%rbp)
movl $0x0, -0x5c(%rbp)
movq -0x30(%rbp), %rax
movl 0xe8(%rax), %eax
addl $0x1, %eax
movq -0x30(%rbp), %rcx
addl 0xd8(%rcx), %eax
subl -0x54(%rbp), %eax
movl %eax, -0x58(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x54(%rbp), %eax
jge 0x13904
movl -0x58(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0xd8(%rcx), %eax
jl 0x137f9
movq -0x30(%rbp), %rax
movl 0xd8(%rax), %ecx
movl -0x58(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x58(%rbp)
movq -0x30(%rbp), %rax
movq 0xe0(%rax), %rax
movslq -0x58(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x13827
jmp 0x138ed
leaq -0x90(%rbp), %rdi
movq -0x30(%rbp), %rax
movl 0xec(%rax), %edx
addl $0x1, %edx
movl -0x54(%rbp), %eax
subl -0x5c(%rbp), %eax
subl %eax, %edx
leaq 0xb622(%rip), %rsi      # 0x1ee6c
movb $0x0, %al
callq 0x45d0
movq -0x18(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x90(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x4500
leaq 0xb6f2(%rip), %rax      # 0x1ef64
movq %rax, -0x68(%rbp)
movq -0x70(%rbp), %rdi
movl $0xa, %esi
callq 0x4230
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x78(%rbp)
jne 0x13891
jmp 0x138da
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movb (%rax), %al
movb %al, -0x79(%rbp)
movq -0x78(%rbp), %rax
movb $0x0, (%rax)
movq -0x18(%rbp), %rdi
movq -0x70(%rbp), %rsi
leaq 0xb5b6(%rip), %rdx      # 0x1ee72
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x4500
movb -0x79(%rbp), %cl
movq -0x78(%rbp), %rax
movb %cl, (%rax)
movq -0x78(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x13876
movq -0x18(%rbp), %rdi
movq -0x70(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0x4500
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x137cc
movl $0x0, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x6b, %eax
jne 0x13cb3
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xb544(%rip), %rsi      # 0x1ee74
callq 0x40a0
cmpl $0x0, %eax
jne 0x13cb3
cmpl $0x3, -0x1c(%rbp)
je 0x13975
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0xa01e(%rip), %rsi      # 0x1d974
leaq 0xb51c(%rip), %rcx      # 0x1ee79
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x94(%rbp), %rdx
callq 0x41a0
cmpl $0x0, %eax
je 0x1399e
movl $0x1, -0x4(%rbp)
jmp 0x14091
cmpl $0x0, -0x94(%rbp)
jle 0x139b3
cmpl $0x3e8, -0x94(%rbp)     # imm = 0x3E8
jle 0x139e5
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdx
leaq 0xb4c1(%rip), %rsi      # 0x1ee87
leaq 0x98a3(%rip), %rcx      # 0x1d270
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x38(%rbp), %rdi
movslq -0x94(%rbp), %rax
shlq $0x4, %rax
movl %eax, %eax
movl %eax, %esi
leaq 0xb3d9(%rip), %rdx      # 0x1edd8
movl $0x19d, %ecx            # imm = 0x19D
callq 0x44c0
movq %rax, -0xa8(%rbp)
movl -0x94(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0xd8(%rcx), %eax
jge 0x13a5c
movq -0x30(%rbp), %rax
movl 0xe8(%rax), %eax
addl $0x1, %eax
subl -0x94(%rbp), %eax
movl %eax, -0x9c(%rbp)
cmpl $0x0, -0x9c(%rbp)
jge 0x13a5a
movq -0x30(%rbp), %rax
movl 0xd8(%rax), %eax
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
jmp 0x13a6f
movq -0x30(%rbp), %rax
movl 0xe8(%rax), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
movl $0x0, -0x98(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x94(%rbp), %eax
jge 0x13ba8
movl -0x9c(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0xd8(%rcx), %eax
jl 0x13aa7
movl $0x0, -0x9c(%rbp)
movl -0x98(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0xd8(%rcx), %eax
jge 0x13b17
movq -0xa8(%rbp), %rax
movslq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x30(%rbp), %rcx
movq 0xe0(%rcx), %rcx
movslq -0x9c(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq 0xe0(%rax), %rax
movslq -0x9c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
jmp 0x13b83
movq -0x38(%rbp), %rdi
movl $0x28, %esi
leaq 0xb2b1(%rip), %rdx      # 0x1edd8
movl $0x1ae, %ecx            # imm = 0x1AE
callq 0x44c0
movq %rax, %rcx
movq -0xa8(%rbp), %rax
movslq -0x98(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0xa8(%rbp), %rax
movslq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movb $0x0, (%rax)
movq -0xa8(%rbp), %rax
movslq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl $0x28, 0x8(%rax)
jmp 0x13b85
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x13a79
movl $0x0, -0x98(%rbp)
movl -0x98(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0xd8(%rcx), %eax
jge 0x13c27
movq -0x30(%rbp), %rax
movq 0xe0(%rax), %rax
movslq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x13c14
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0xe0(%rax), %rax
movslq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
leaq 0xb1ce(%rip), %rdx      # 0x1edd8
movl $0x1bb, %ecx            # imm = 0x1BB
callq 0x4260
jmp 0x13c16
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
jmp 0x13bb2
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0xe0(%rax), %rsi
leaq 0xb19b(%rip), %rdx      # 0x1edd8
movl $0x1be, %ecx            # imm = 0x1BE
callq 0x4260
movq -0xa8(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0xe0(%rax)
movl -0x94(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0xd8(%rcx), %eax
jge 0x13c80
movl -0x94(%rbp), %ecx
subl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0xe8(%rax)
jmp 0x13c97
movq -0x30(%rbp), %rax
movl 0xd8(%rax), %ecx
subl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0xe8(%rax)
movl -0x94(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0xd8(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x6e, %eax
jne 0x13d42
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xb1c9(%rip), %rsi      # 0x1ee9c
callq 0x40a0
cmpl $0x0, %eax
jne 0x13d42
cmpl $0x2, -0x1c(%rbp)
je 0x13d14
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0x9c7f(%rip), %rsi      # 0x1d974
leaq 0xb1a7(%rip), %rcx      # 0x1eea3
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rax
movl 0xec(%rax), %edx
addl $0x1, %edx
leaq 0x95a5(%rip), %rsi      # 0x1d2d4
movb $0x0, %al
callq 0x45d0
movl $0x0, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x72, %eax
jne 0x13e33
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xb14a(%rip), %rsi      # 0x1eeac
callq 0x40a0
cmpl $0x0, %eax
jne 0x13e33
cmpl $0x3, -0x1c(%rbp)
jle 0x13da7
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0x9bec(%rip), %rsi      # 0x1d974
leaq 0xb122(%rip), %rcx      # 0x1eeb1
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rax
movq %rax, -0xe0(%rbp)
cmpl $0x2, -0x1c(%rbp)
jne 0x13dc8
leaq 0xa50d(%rip), %rax      # 0x1e2cc
movq %rax, -0xe8(%rbp)
jmp 0x13dd7
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xe8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x14540
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x13e01
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rsi
callq 0x148f0
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rdx
xorl %eax, %eax
movl %eax, %r8d
xorl %ecx, %ecx
movq %r8, %rsi
callq 0x45b0
movl %eax, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x73, %eax
jne 0x13f20
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xb06d(%rip), %rsi      # 0x1eec0
callq 0x40a0
cmpl $0x0, %eax
jne 0x13f20
cmpl $0x5, -0x1c(%rbp)
jg 0x13e6d
cmpl $0x4, -0x1c(%rbp)
jge 0x13e9e
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0x9af5(%rip), %rsi      # 0x1d974
leaq 0xb045(%rip), %rcx      # 0x1eecb
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rax
movq %rax, -0xf0(%rbp)
cmpl $0x4, -0x1c(%rbp)
jne 0x13ebf
leaq 0xa416(%rip), %rax      # 0x1e2cc
movq %rax, -0xf8(%rbp)
jmp 0x13ece
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x14540
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x13ef8
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rcx
callq 0x14a00
movl %eax, -0x4(%rbp)
jmp 0x14091
movsbl -0x45(%rbp), %eax
cmpl $0x77, %eax
jne 0x1404d
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x44(%rbp), %rdx
leaq 0xb00d(%rip), %rsi      # 0x1ef4d
callq 0x40a0
cmpl $0x0, %eax
jne 0x1404d
cmpl $0x3, -0x1c(%rbp)
je 0x13f8b
cmpl $0x4, -0x1c(%rbp)
je 0x13f8b
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rdx
leaq 0x9a08(%rip), %rsi      # 0x1d974
leaq 0xaf75(%rip), %rcx      # 0x1eee8
xorl %eax, %eax
movl %eax, %r8d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rax
movq %rax, -0x100(%rbp)
cmpl $0x3, -0x1c(%rbp)
jne 0x13fac
leaq 0xa329(%rip), %rax      # 0x1e2cc
movq %rax, -0x108(%rbp)
jmp 0x13fbb
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x108(%rbp)
movq -0x100(%rbp), %rdi
movq -0x108(%rbp), %rsi
callq 0x14540
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x13fe5
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rsi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdx
callq 0x14be0
movq %rax, -0xb0(%rbp)
cmpq $0x0, -0xb0(%rbp)
jne 0x14017
movl $0x1, -0x4(%rbp)
jmp 0x14091
movq -0x30(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x14780
movq -0xb0(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movq 0xef68(%rip), %rcx      # 0x22fa8
movq %rcx, 0x8(%rax)
movl $0x0, -0x4(%rbp)
jmp 0x14091
jmp 0x1404f
jmp 0x14051
jmp 0x14053
jmp 0x14055
jmp 0x14057
jmp 0x14059
jmp 0x1405b
jmp 0x1405d
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdx
leaq 0x96ae(%rip), %rsi      # 0x1d71e
leaq 0xae8d(%rip), %rcx      # 0x1ef04
leaq 0xaeba(%rip), %r8       # 0x1ef38
xorl %eax, %eax
movl %eax, %r9d
movb $0x0, %al
callq 0x4500
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopl (%rax)