// File: /workspace/github_c_makefile_star2_O3/haxlang[P]hax/haxUnixAZ.c
// Function: Hax_FileCmd
int
Hax_FileCmd(
    ClientData clientData,		/* Unix ClientData */
    Hax_Interp *interp,			/* Current interpreter. */
    int argc,				/* Number of arguments. */
    char **argv				/* Argument strings. */)
{
    char *p;
    int length, statOp;
    int mode = 0;			/* Initialized only to prevent
					 * compiler warning message. */
    struct stat statBuf;
    char *fileName, c;

    if (argc < 3) {
	Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		" option name ?arg ...?\"", (char *) NULL);
	return HAX_ERROR;
    }
    c = argv[1][0];
    length = strlen(argv[1]);

    /*
     * First handle operations on the file name.
     */

    fileName = Hax_TildeSubst(interp, clientData, argv[2]);
    if (fileName == NULL) {
	return HAX_ERROR;
    }
    if ((c == 'd') && (strncmp(argv[1], "dirname", length) == 0)) {
	if (argc != 3) {
	    argv[1] = (char *) "dirname";
	    not3Args:
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " ", argv[1], " name\"", (char *) NULL);
	    return HAX_ERROR;
	}
	p = strrchr(fileName, '/');
	if (p == NULL) {
	    interp->result = (char *) ".";
	} else if (p == fileName) {
	    interp->result = (char *) "/";
	} else {
	    *p = 0;
	    Hax_SetResult(interp, fileName, HAX_VOLATILE);
	    *p = '/';
	}
	return HAX_OK;
    } else if ((c == 'r') && (strncmp(argv[1], "rootname", length) == 0)
	    && (length >= 2)) {
	char *lastSlash;

	if (argc != 3) {
	    argv[1] = (char *) "rootname";
	    goto not3Args;
	}
	p = strrchr(fileName, '.');
	lastSlash = strrchr(fileName, '/');
	if ((p == NULL) || ((lastSlash != NULL) && (lastSlash > p))) {
	    Hax_SetResult(interp, fileName, HAX_VOLATILE);
	} else {
	    *p = 0;
	    Hax_SetResult(interp, fileName, HAX_VOLATILE);
	    *p = '.';
	}
	return HAX_OK;
    } else if ((c == 'e') && (strncmp(argv[1], "extension", length) == 0)
	    && (length >= 3)) {
	char *lastSlash;

	if (argc != 3) {
	    argv[1] = (char *) "extension";
	    goto not3Args;
	}
	p = strrchr(fileName, '.');
	lastSlash = strrchr(fileName, '/');
	if ((p != NULL) && ((lastSlash == NULL) || (lastSlash < p))) {
	    Hax_SetResult(interp, p, HAX_VOLATILE);
	}
	return HAX_OK;
    } else if ((c == 't') && (strncmp(argv[1], "tail", length) == 0)
	    && (length >= 2)) {
	if (argc != 3) {
	    argv[1] = (char *) "tail";
	    goto not3Args;
	}
	p = strrchr(fileName, '/');
	if (p != NULL) {
	    Hax_SetResult(interp, p+1, HAX_VOLATILE);
	} else {
	    Hax_SetResult(interp, fileName, HAX_VOLATILE);
	}
	return HAX_OK;
    }

    /*
     * Next, handle operations that can be satisfied with the "access"
     * kernel call.
     */

    if (fileName == NULL) {
	return HAX_ERROR;
    }
    if ((c == 'r') && (strncmp(argv[1], "readable", length) == 0)
	    && (length >= 5)) {
	if (argc != 3) {
	    argv[1] = (char *) "readable";
	    goto not3Args;
	}
	mode = R_OK;
	checkAccess:
	if (access(fileName, mode) == -1) {
	    interp->result = (char *) "0";
	} else {
	    interp->result = (char *) "1";
	}
	return HAX_OK;
    } else if ((c == 'w') && (strncmp(argv[1], "writable", length) == 0)) {
	if (argc != 3) {
	    argv[1] = (char *) "writable";
	    goto not3Args;
	}
	mode = W_OK;
	goto checkAccess;
    } else if ((c == 'e') && (strncmp(argv[1], "executable", length) == 0)
	    && (length >= 3)) {
	if (argc != 3) {
	    argv[1] = (char *) "executable";
	    goto not3Args;
	}
	mode = X_OK;
	goto checkAccess;
    } else if ((c == 'e') && (strncmp(argv[1], "exists", length) == 0)
	    && (length >= 3)) {
	if (argc != 3) {
	    argv[1] = (char *) "exists";
	    goto not3Args;
	}
	mode = F_OK;
	goto checkAccess;
    }

    /*
     * Lastly, check stuff that requires the file to be stat-ed.
     */

    if ((c == 'a') && (strncmp(argv[1], "atime", length) == 0)) {
	if (argc != 3) {
	    argv[1] = (char *) "atime";
	    goto not3Args;
	}
	if (stat(fileName, &statBuf) == -1) {
	    goto badStat;
	}
	sprintf(interp->result, "%ld", statBuf.st_atime);
	return HAX_OK;
    } else if ((c == 'i') && (strncmp(argv[1], "isdirectory", length) == 0)
	    && (length >= 3)) {
	if (argc != 3) {
	    argv[1] = (char *) "isdirectory";
	    goto not3Args;
	}
	statOp = 2;
    } else if ((c == 'i') && (strncmp(argv[1], "isfile", length) == 0)
	    && (length >= 3)) {
	if (argc != 3) {
	    argv[1] = (char *) "isfile";
	    goto not3Args;
	}
	statOp = 1;
    } else if ((c == 'l') && (strncmp(argv[1], "lstat", length) == 0)) {
	if (argc != 4) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " lstat name varName\"", (char *) NULL);
	    return HAX_ERROR;
	}

	if (lstat(fileName, &statBuf) == -1) {
	    Hax_AppendResult(interp, "couldn't lstat \"", argv[2],
		    "\": ", Hax_UnixError(interp), (char *) NULL);
	    return HAX_ERROR;
	}
	return StoreStatData(interp, argv[3], &statBuf);
    } else if ((c == 'm') && (strncmp(argv[1], "mtime", length) == 0)) {
	if (argc != 3) {
	    argv[1] = (char *) "mtime";
	    goto not3Args;
	}
	if (stat(fileName, &statBuf) == -1) {
	    goto badStat;
	}
	sprintf(interp->result, "%ld", statBuf.st_mtime);
	return HAX_OK;
    } else if ((c == 'o') && (strncmp(argv[1], "owned", length) == 0)) {
	if (argc != 3) {
	    argv[1] = (char *) "owned";
	    goto not3Args;
	}
	statOp = 0;
    /*
     * This option is only included if symbolic links exist on this system
     * (in which case S_IFLNK should be defined).
     */
    } else if ((c == 'r') && (strncmp(argv[1], "readlink", length) == 0)
	    && (length >= 5)) {
	char linkValue[MAXPATHLEN+1];
	int linkLength;

	if (argc != 3) {
	    argv[1] = (char *) "readlink";
	    goto not3Args;
	}
	linkLength = readlink(fileName, linkValue, sizeof(linkValue) - 1);
	if (linkLength == -1) {
	    Hax_AppendResult(interp, "couldn't readlink \"", argv[2],
		    "\": ", Hax_UnixError(interp), (char *) NULL);
	    return HAX_ERROR;
	}
	linkValue[linkLength] = 0;
	Hax_SetResult(interp, linkValue, HAX_VOLATILE);
	return HAX_OK;
    } else if ((c == 's') && (strncmp(argv[1], "size", length) == 0)
	    && (length >= 2)) {
	if (argc != 3) {
	    argv[1] = (char *) "size";
	    goto not3Args;
	}
	if (stat(fileName, &statBuf) == -1) {
	    goto badStat;
	}
	sprintf(interp->result, "%ld", statBuf.st_size);
	return HAX_OK;
    } else if ((c == 's') && (strncmp(argv[1], "stat", length) == 0)
	    && (length >= 2)) {
	if (argc != 4) {
	    Hax_AppendResult(interp, "wrong # args: should be \"", argv[0],
		    " stat name varName\"", (char *) NULL);
	    return HAX_ERROR;
	}

	if (stat(fileName, &statBuf) == -1) {
	    badStat:
	    Hax_AppendResult(interp, "couldn't stat \"", argv[2],
		    "\": ", Hax_UnixError(interp), (char *) NULL);
	    return HAX_ERROR;
	}
	return StoreStatData(interp, argv[3], &statBuf);
    } else if ((c == 't') && (strncmp(argv[1], "type", length) == 0)
	    && (length >= 2)) {
	if (argc != 3) {
	    argv[1] = (char *) "type";
	    goto not3Args;
	}
	if (lstat(fileName, &statBuf) == -1) {
	    goto badStat;
	}
	interp->result = GetFileType((int) statBuf.st_mode);
	return HAX_OK;
    } else {
	Hax_AppendResult(interp, "bad option \"", argv[1],
		"\": should be atime, dirname, executable, exists, ",
		"extension, isdirectory, isfile, lstat, mtime, owned, ",
		"readable, ",
		"readlink, ",
		"root, size, stat, tail, type, ",
		"or writable",
		(char *) NULL);
	return HAX_ERROR;
    }
    if (stat(fileName, &statBuf) == -1) {
	interp->result = (char *) "0";
	return HAX_OK;
    }
    switch (statOp) {
	case 0:
	    mode = (geteuid() == statBuf.st_uid);
	    break;
	case 1:
	    mode = S_ISREG(statBuf.st_mode);
	    break;
	case 2:
	    mode = S_ISDIR(statBuf.st_mode);
	    break;
    }
    if (mode) {
	interp->result = (char *) "1";
    } else {
	interp->result = (char *) "0";
    }
    return HAX_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1028, %rsp           # imm = 0x1028
movq %rcx, %r14
movq %rsi, %rbx
cmpl $0x2, %edx
jg 0x4f71
movq (%r14), %rdx
leaq 0x31f1(%rip), %rsi      # 0x8143
leaq 0x33b4(%rip), %rcx      # 0x830d
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
movl $0x1, %r15d
jmp 0x580a
movl %edx, %r12d
movq %rdi, %r15
movq 0x8(%r14), %rdi
movzbl (%rdi), %ebp
callq 0x3190
movq %rax, %r13
movq 0x10(%r14), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3570
movl $0x1, %r15d
testq %rax, %rax
je 0x580a
addl $-0x61, %ebp
cmpl $0x16, %ebp
ja 0x53c0
leaq 0x3249(%rip), %rdx      # 0x8200
movslq (%rdx,%rbp,4), %rcx
addq %rdx, %rcx
movq %rax, 0x8(%rsp)
jmpq *%rcx
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x338d(%rip), %r13      # 0x8360
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x56b7
cmpl $0x3, %r12d
jne 0x5716
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3380
cmpl $-0x1, %eax
je 0x5599
movq (%rbx), %rdi
movq 0x68(%rsp), %rdx
jmp 0x53aa
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x348a(%rip), %r13      # 0x84ad
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x56b7
movl $0x2, %esi
jmp 0x560c
movslq %r13d, %rdx
movq 0x8(%r14), %rbp
leaq 0x332f(%rip), %rsi      # 0x837d
movq %rbp, %rdi
callq 0x30b0
testl %eax, %eax
jne 0x56b7
cmpl $0x4, %r12d
jne 0x575a
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3300
cmpl $-0x1, %eax
jne 0x5580
movq 0x10(%r14), %r14
movq %rbx, %rdi
callq 0x31b0
leaq 0x3305(%rip), %rsi      # 0x8398
jmp 0x55ac
movslq %r13d, %rdx
movq 0x8(%r14), %rbp
leaq 0x3303(%rip), %r13      # 0x83a9
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x56b7
cmpl $0x3, %r12d
jne 0x5716
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3380
cmpl $-0x1, %eax
je 0x5599
movq (%rbx), %rdi
movq 0x78(%rsp), %rdx
jmp 0x53aa
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x3274(%rip), %rsi      # 0x836a
movq %rbp, %rdi
movq %rdx, 0x18(%rsp)
callq 0x30b0
testl %eax, %eax
sete %al
cmpl $0x3, %r13d
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x53c9
movl $0x2, %ebp
cmpl $0x3, %r12d
leaq 0x3240(%rip), %r13      # 0x836a
je 0x540b
jmp 0x5716
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x31f3(%rip), %rsi      # 0x8336
movq %rbp, %rdi
movq %rdx, 0x18(%rsp)
callq 0x30b0
testl %eax, %eax
sete %al
cmpl $0x3, %r13d
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x5448
cmpl $0x3, %r12d
jne 0x55cb
movq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x2e, %esi
callq 0x3200
movq %rax, %r14
movq %r15, %rdi
movl $0x2f, %esi
callq 0x3200
xorl %r15d, %r15d
testq %r14, %r14
je 0x580a
cmpq %r14, %rax
jae 0x580a
movq %rbx, %rdi
movq %r14, %rsi
movq $-0x1, %rdx
callq 0x34d0
jmp 0x580a
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x3158(%rip), %r13      # 0x8325
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x56b7
cmpl $0x3, %r12d
jne 0x5716
movq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x2f, %esi
callq 0x3200
testq %rax, %rax
je 0x57d7
movq %rax, %r14
cmpq %r15, %rax
je 0x57e0
movb $0x0, (%r14)
movq %rbx, %rdi
movq %r15, %rsi
movq $-0x1, %rdx
callq 0x34d0
movb $0x2f, (%r14)
jmp 0x5807
movslq %r13d, %rdx
movq 0x8(%r14), %rbp
leaq 0x3171(%rip), %r13      # 0x83af
movq %rbp, %rdi
movq %r13, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x56b7
xorl %ebp, %ebp
jmp 0x5401
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x30c7(%rip), %rsi      # 0x832d
movq %rbp, %rdi
movq %rdx, 0x18(%rsp)
callq 0x30b0
testl %eax, %eax
sete %al
cmpl $0x2, %r13d
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x5491
cmpl $0x3, %r12d
jne 0x563d
movq 0x8(%rsp), %r15
movq %r15, %rdi
movl $0x2e, %esi
callq 0x3200
movq %rax, %r14
movq %r15, %rdi
movl $0x2f, %esi
callq 0x3200
testq %r14, %r14
je 0x576d
cmpq %r14, %rax
ja 0x576d
movb $0x0, (%r14)
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq $-0x1, %rdx
callq 0x34d0
movb $0x2e, (%r14)
jmp 0x5807
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x3049(%rip), %rsi      # 0x8340
movq %rbp, %rdi
movq %rdx, 0x18(%rsp)
callq 0x30b0
testl %eax, %eax
sete %al
cmpl $0x2, %r13d
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x54d7
cmpl $0x3, %r12d
jne 0x5706
movq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x2f, %esi
callq 0x3200
testq %rax, %rax
je 0x57cf
incq %rax
movq %rbx, %rdi
movq %rax, %rsi
jmp 0x57fb
movq 0x8(%r14), %rbp
movslq %r13d, %rdx
leaq 0x3076(%rip), %rsi      # 0x83d2
movq %rbp, %rdi
movq %rdx, 0x18(%rsp)
callq 0x30b0
testl %eax, %eax
sete %al
cmpl $0x2, %r13d
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x5536
cmpl $0x3, %r12d
jne 0x570f
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3380
cmpl $-0x1, %eax
je 0x5599
movq (%rbx), %rdi
movq 0x50(%rsp), %rdx
leaq 0x2fb5(%rip), %rsi      # 0x8366
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x35a0
jmp 0x580a
movq 0x8(%r14), %rbp
jmp 0x56b7
cmpl $0x3, %r13d
setge %r13b
leaq 0x2f9e(%rip), %rsi      # 0x8376
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0x30b0
testl %eax, %eax
sete %al
andb %r13b, %al
leaq 0x2f82(%rip), %r13      # 0x8376
cmpb $0x1, %al
jne 0x56b7
movl $0x1, %ebp
cmpl $0x3, %r12d
jne 0x5716
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3380
cmpl $-0x1, %eax
je 0x574e
cmpl $0x2, %ebp
je 0x579a
cmpl $0x1, %ebp
jne 0x57aa
movl $0xf000, %eax           # imm = 0xF000
andl 0x38(%rsp), %eax
cmpl $0x8000, %eax           # imm = 0x8000
jmp 0x57b3
cmpl $0x3, %r13d
setge 0x17(%rsp)
leaq 0x2ef6(%rip), %rsi      # 0x834e
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0x30b0
testl %eax, %eax
sete %al
andb 0x17(%rsp), %al
cmpb $0x1, %al
jne 0x55d7
movl $0x1, %esi
cmpl $0x3, %r12d
leaq 0x2ec8(%rip), %r13      # 0x834e
je 0x5616
jmp 0x5716
leaq 0x2ead(%rip), %rsi      # 0x8345
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0x30b0
testl %eax, %eax
sete %al
cmpl $0x5, %r13d
setge %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x5649
movl $0x4, %esi
cmpl $0x3, %r12d
leaq 0x2e79(%rip), %r13      # 0x8345
je 0x5616
jmp 0x5716
cmpl $0x2, %r13d
setge %r13b
leaq 0x2f15(%rip), %rsi      # 0x83fb
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0x30b0
testl %eax, %eax
sete %al
andb %r13b, %al
leaq 0x2ef9(%rip), %r13      # 0x83fb
cmpb $0x1, %al
jne 0x56b7
cmpl $0x3, %r12d
jne 0x5716
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3300
cmpl $-0x1, %eax
je 0x5599
movl 0x38(%rsp), %edi
callq 0x5acf
jmp 0x57e7
cmpl $0x2, %r13d
setge %r13b
leaq 0x2e39(%rip), %rsi      # 0x837e
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0x30b0
testl %eax, %eax
sete %al
andb %r13b, %al
cmpb $0x1, %al
jne 0x56b7
cmpl $0x4, %r12d
jne 0x577a
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3380
cmpl $-0x1, %eax
je 0x5599
movq 0x18(%r14), %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x581f
movl %eax, %r15d
jmp 0x580a
movq 0x10(%r14), %r14
movq %rbx, %rdi
callq 0x31b0
leaq 0x2e3f(%rip), %rsi      # 0x83eb
leaq 0x2c38(%rip), %rcx      # 0x81eb
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %r8
xorl %r9d, %r9d
xorl %eax, %eax
callq 0x3510
jmp 0x580a
leaq 0x2d64(%rip), %r13      # 0x8336
jmp 0x5716
cmpl $0x3, %r13d
setge %r13b
leaq 0x2d73(%rip), %rsi      # 0x8359
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0x30b0
testl %eax, %eax
sete %al
andb %r13b, %al
leaq 0x2d57(%rip), %r13      # 0x8359
cmpb $0x1, %al
jne 0x56b7
xorl %esi, %esi
cmpl $0x3, %r12d
jne 0x5716
movq 0x8(%rsp), %rdi
callq 0x34f0
cmpl $-0x1, %eax
leaq 0x2cb1(%rip), %rax      # 0x82db
leaq 0x3932(%rip), %rcx      # 0x8f63
cmoveq %rax, %rcx
movq %rcx, (%rbx)
jmp 0x5807
leaq 0x2ce9(%rip), %r13      # 0x832d
jmp 0x5716
cmpl $0x5, %r13d
setge %r13b
leaq 0x2d5d(%rip), %rsi      # 0x83b5
movq %rbp, %rdi
movq 0x18(%rsp), %rdx
callq 0x30b0
testl %eax, %eax
sete %al
andb %r13b, %al
leaq 0x2d41(%rip), %r13      # 0x83b5
cmpb $0x1, %al
jne 0x56b7
cmpl $0x3, %r12d
jne 0x5716
leaq 0x20(%rsp), %rsi
movl $0x1000, %edx           # imm = 0x1000
movq 0x8(%rsp), %rdi
callq 0x3140
cmpl $-0x1, %eax
jne 0x57ec
movq 0x10(%r14), %r14
movq %rbx, %rdi
callq 0x31b0
leaq 0x2d0c(%rip), %rsi      # 0x83be
jmp 0x55ac
leaq 0x2dec(%rip), %r10      # 0x84aa
leaq 0x2dc6(%rip), %r11      # 0x848b
leaq 0x2db4(%rip), %r14      # 0x8480
leaq 0x2d2d(%rip), %rsi      # 0x8400
leaq 0x2d33(%rip), %rcx      # 0x840d
leaq 0x2d5e(%rip), %r8       # 0x843f
leaq 0x2d8d(%rip), %r9       # 0x8475
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
pushq $0x0
pushq %r10
pushq %r11
pushq %r14
callq 0x3510
addq $0x20, %rsp
jmp 0x580a
leaq 0x2c33(%rip), %r13      # 0x8340
jmp 0x5716
leaq 0x2cbc(%rip), %r13      # 0x83d2
movq %r13, 0x8(%r14)
movq (%r14), %rdx
subq $0x8, %rsp
leaq 0x2a1b(%rip), %rsi      # 0x8143
leaq 0x2d44(%rip), %rcx      # 0x8473
leaq 0x2952(%rip), %r9       # 0x8088
movq %rbx, %rdi
movq %r13, %r8
xorl %eax, %eax
pushq $0x0
callq 0x3510
addq $0x10, %rsp
jmp 0x580a
leaq 0x2b86(%rip), %rax      # 0x82db
jmp 0x57e7
movq (%r14), %rdx
leaq 0x29df(%rip), %rsi      # 0x8143
leaq 0x2c18(%rip), %rcx      # 0x8383
jmp 0x578b
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
jmp 0x57fb
movq (%r14), %rdx
leaq 0x29bf(%rip), %rsi      # 0x8143
leaq 0x2c4c(%rip), %rcx      # 0x83d7
movq %rbx, %rdi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x3510
jmp 0x580a
movl $0xf000, %eax           # imm = 0xF000
andl 0x38(%rsp), %eax
cmpl $0x4000, %eax           # imm = 0x4000
jmp 0x57b3
callq 0x3260
cmpl 0x3c(%rsp), %eax
sete %al
leaq 0x37a6(%rip), %rcx      # 0x8f63
leaq 0x2b17(%rip), %rdx      # 0x82db
testb %al, %al
cmovneq %rcx, %rdx
movq %rdx, (%rbx)
jmp 0x5807
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x57fb
leaq 0x29f1(%rip), %rax      # 0x81cf
jmp 0x57e7
leaq 0x29a2(%rip), %rax      # 0x8189
movq %rax, (%rbx)
jmp 0x5807
cltq
movb $0x0, 0x20(%rsp,%rax)
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movq $-0x1, %rdx
callq 0x34d0
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x1028, %rsp           # imm = 0x1028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq