// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/menu.c
// Function: menu_filter
struct menu *
menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt,
    char *initial, int dummy,
    void (*match)(struct menu_q *, struct menu_q *, char *),
    void (*print)(struct menu *, int))
{
	struct menu_ctx		 mc;
	struct menu_q		 resultq;
	struct menu		*mi = NULL;
	XEvent			 e;
	Window			 focuswin;
	int			 evmask, focusrevert;
	int			 xsave, ysave, xcur, ycur;

	TAILQ_INIT(&resultq);

	bzero(&mc, sizeof(mc));

	xu_ptr_getpos(sc->rootwin, &mc.x, &mc.y);

	xsave = mc.x;
	ysave = mc.y;

	if (prompt == NULL) {
		evmask = MENUMASK;
		mc.promptstr[0] = '\0';
		mc.list = 1;
	} else {
		evmask = MENUMASK | KEYMASK; /* only accept keys if prompt */
		(void)snprintf(mc.promptstr, sizeof(mc.promptstr), "%s%s",
		    prompt, PROMPT_SCHAR);
		(void)snprintf(mc.dispstr, sizeof(mc.dispstr), "%s%s%s",
		    mc.promptstr, mc.searchstr, PROMPT_ECHAR);
		mc.width = font_width(sc, mc.dispstr, strlen(mc.dispstr));
		mc.hasprompt = 1;
	}

	if (initial != NULL)
		(void)strlcpy(mc.searchstr, initial, sizeof(mc.searchstr));
	else
		mc.searchstr[0] = '\0';

	mc.match = match;
	mc.print = print;
	mc.entry = mc.prev = -1;

	XMoveResizeWindow(X_Dpy, sc->menuwin, mc.x, mc.y, mc.width,
	    font_height(sc));
	XSelectInput(X_Dpy, sc->menuwin, evmask);
	XMapRaised(X_Dpy, sc->menuwin);

	if (xu_ptr_grab(sc->menuwin, MENUGRABMASK, Cursor_question) < 0) {
		XUnmapWindow(X_Dpy, sc->menuwin);
		return (NULL);
	}

	XGetInputFocus(X_Dpy, &focuswin, &focusrevert);
	XSetInputFocus(X_Dpy, sc->menuwin, RevertToPointerRoot, CurrentTime);

	/* make sure keybindings don't remove keys from the menu stream */
	XGrabKeyboard(X_Dpy, sc->menuwin, True,
	    GrabModeAsync, GrabModeAsync, CurrentTime);

	for (;;) {
		mc.changed = 0;

		XWindowEvent(X_Dpy, sc->menuwin, evmask, &e);

		switch (e.type) {
		case KeyPress:
			if ((mi = menu_handle_key(&e, &mc, menuq, &resultq))
			    != NULL)
				goto out;
			/* FALLTHROUGH */
		case Expose:
			menu_draw(sc, &mc, menuq, &resultq);
			break;
		case MotionNotify:
			menu_handle_move(&e, &mc, sc);
			break;
		case ButtonRelease:
			if ((mi = menu_handle_release(&e, &mc, sc, &resultq))
			    != NULL)
				goto out;
			break;
		default:
			break;
		}
	}
out:
	if (dummy == 0 && mi->dummy) { /* no mouse based match */
		xfree(mi);
		mi = NULL;
	}

	XSetInputFocus(X_Dpy, focuswin, focusrevert, CurrentTime);
	/* restore if user didn't move */
	xu_ptr_getpos(sc->rootwin, &xcur, &ycur);
	if (xcur == mc.x && ycur == mc.y)
		xu_ptr_setpos(sc->rootwin, xsave, ysave);
	xu_ptr_ungrab();

	XUnmapWindow(X_Dpy, sc->menuwin);
	XUngrabKeyboard(X_Dpy, CurrentTime);

	return (mi);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %r9, %r15
movl %r8d, 0x40(%rsp)
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, 0x20(%rsp)
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
andq $0x0, (%rax)
movq %rax, 0x8(%rax)
leaq 0x48(%rsp), %rdi
movl $0x110, %edx            # imm = 0x110
xorl %esi, %esi
callq 0x5090
movq 0x18(%rbx), %rdi
leaq 0x13c(%rsp), %rsi
leaq 0x140(%rsp), %r14
movq %r14, %rdx
callq 0x85b2
movl -0x4(%r14), %eax
movl %eax, 0x3c(%rsp)
movl (%r14), %eax
movl %eax, 0x38(%rsp)
testq %r12, %r12
je 0x737f
leaq 0xe0(%rsp), %r14
leaq 0x6dd8(%rip), %rdx      # 0xe0f0
leaq 0x6dcc(%rip), %r8       # 0xe0eb
pushq $0x33
popq %rsi
movq %r14, %rdi
movq %r12, %rcx
xorl %eax, %eax
callq 0x50b0
leaq 0x7b(%rsp), %r12
leaq 0x6db3(%rip), %rdx      # 0xe0ee
leaq 0x6db3(%rip), %r9       # 0xe0f5
pushq $0x65
popq %rsi
leaq 0x48(%rsp), %r8
movq %r12, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x50b0
movq %r12, %rdi
callq 0x5320
movq %rbx, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xbad7
movl %eax, 0x54(%r14)
movl $0x1, 0x34(%r14)
movl $0xa04d, %eax           # imm = 0xA04D
jmp 0x7397
movb $0x0, 0xe0(%rsp)
movl $0x1, 0x118(%rsp)
movl $0xa04c, %eax           # imm = 0xA04C
movq %rax, 0x28(%rsp)
movq 0x280(%rsp), %r14
testq %r13, %r13
je 0x73bb
leaq 0x48(%rsp), %rdi
pushq $0x33
popq %rdx
movq %r13, %rsi
callq 0xcd50
jmp 0x73c0
movb $0x0, 0x48(%rsp)
movq %r15, 0x148(%rsp)
movq %r14, 0x150(%rsp)
orq $-0x1, 0x128(%rsp)
leaq 0xf468(%rip), %rax      # 0x16848
movq (%rax), %r15
movq 0x20(%rbx), %r12
movl 0x134(%rsp), %ebp
movl 0x13c(%rsp), %r13d
movl 0x140(%rsp), %r14d
movq %rbx, %rdi
callq 0xba35
movq %r15, %rdi
leaq 0xf438(%rip), %r15      # 0x16848
movq %r12, %rsi
movl %r13d, %edx
movl %r14d, %ecx
movl %ebp, %r8d
movl %eax, %r9d
callq 0x5440
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
movq 0x28(%rsp), %rdx
callq 0x5560
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
callq 0x5800
movq 0x20(%rbx), %rdi
leaq 0xf41c(%rip), %rax      # 0x16868
movq (%rax), %rdx
movl $0x2204c, %esi          # imm = 0x2204C
callq 0x847c
movq (%r15), %rdi
testl %eax, %eax
js 0x7dc1
leaq 0x158(%rsp), %rsi
leaq 0x44(%rsp), %rdx
callq 0x54e0
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
pushq $0x1
popq %rbp
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x5570
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
movl %ebp, %edx
movl %ebp, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x56a0
leaq 0x1c(%rsp), %r13
andl $0x0, 0x120(%rsp)
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
movq 0x28(%rsp), %rdx
leaq 0x188(%rsp), %rcx
callq 0x5470
movl 0x188(%rsp), %eax
cmpl $0x2, %eax
je 0x74f1
cmpl $0x6, %eax
pushq $0x32
popq %r14
je 0x7c37
cmpl $0xc, %eax
je 0x77fd
cmpl $0x5, %eax
jne 0x74a4
jmp 0x7d56
movl 0x1d8(%rsp), %ebp
movb $0x0, 0x160(%rsp)
movq (%r15), %rdi
movzbl 0x1dc(%rsp), %esi
movl %ebp, %ecx
andl $0x1, %ecx
xorl %edx, %edx
callq 0x5260
movq %rax, 0x30(%rsp)
cmpq $0xff08, %rax           # imm = 0xFF08
pushq $0x32
popq %r14
je 0x7606
cmpq $0xff52, %rax           # imm = 0xFF52
je 0x769d
cmpq $0xff54, %rax           # imm = 0xFF54
je 0x76fb
cmpq $0xff0d, %rax           # imm = 0xFF0D
je 0x7dd2
cmpq $0xff1b, %rax           # imm = 0xFF1B
je 0x7de0
testb $0x4, %bpl
jne 0x7599
testb $0x8, %bpl
jne 0x7681
leaq 0x188(%rsp), %rdi
leaq 0x160(%rsp), %rsi
pushq $0x20
popq %rdx
leaq 0x30(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5150
testl %eax, %eax
jns 0x773d
jmp 0x77fd
cmpq $0x41, %rax
je 0x7c1e
cmpq $0x48, %rax
je 0x7606
cmpq $0x52, %rax
je 0x769d
cmpq $0x53, %rax
je 0x76fb
cmpq $0x55, %rax
je 0x75f1
cmpq $0x61, %rax
je 0x7c1e
cmpq $0x68, %rax
je 0x7606
cmpq $0x72, %rax
je 0x769d
cmpq $0x73, %rax
je 0x76fb
cmpq $0x75, %rax
jne 0x7562
movb $0x0, 0x48(%rsp)
movl $0x1, 0x120(%rsp)
jmp 0x773d
leaq 0x48(%rsp), %rdi
callq 0x5320
testq %rax, %rax
je 0x773d
movq %rax, %r12
movq %r13, %rbp
leaq (%rsp,%rax), %r13
addq $0x48, %r13
pushq $-0x1
popq %rcx
movq %rcx, %r15
leaq (%rcx,%r13), %r14
callq 0x5370
movq %rbp, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x5080
leaq -0x1(%r15), %rcx
cmpl $-0x1, %eax
je 0x762a
leaq 0x47(%rsp), %rax
addq %rax, %r12
xorl %eax, %eax
pushq $0x32
popq %r14
cmpq %rax, %r15
je 0x766a
movb $0x0, (%r12,%rax)
decq %rax
jmp 0x765b
movl $0x1, 0x120(%rsp)
leaq 0xf1cc(%rip), %r15      # 0x16848
jmp 0x773d
cmpq $0x4a, %rax
je 0x76fb
cmpq $0x4b, %rax
je 0x769d
cmpq $0x6a, %rax
je 0x76fb
cmpq $0x6b, %rax
jne 0x756c
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x773d
leaq 0x10(%rax), %rcx
movq 0x10(%rax), %rdx
leaq 0x18(%rdx), %rsi
testq %rdx, %rdx
leaq 0x10(%rsp), %r8
cmoveq %r8, %rsi
movq 0x18(%rax), %rdi
movq %rdi, (%rsi)
movq %rdx, (%rdi)
movq 0x8(%rsp), %rdx
leaq 0x18(%rdx), %rsi
testq %rdx, %rdx
cmoveq %r8, %rsi
movq %rdx, 0x10(%rax)
movq %rcx, (%rsi)
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x773d
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x773d
leaq 0x10(%rax), %rcx
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rsi
leaq 0x18(%rdx), %rdi
testq %rdx, %rdx
leaq 0x10(%rsp), %r8
cmoveq %r8, %rdi
movq %rsi, (%rdi)
movq %rdx, (%rsi)
andq $0x0, 0x10(%rax)
movq 0x10(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
cmpb $0x0, 0x160(%rsp)
je 0x7767
movl $0x1, 0x120(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x160(%rsp), %rsi
pushq $0x33
popq %rdx
callq 0xcd9b
andl $0x0, 0x124(%rsp)
cmpl $0x0, 0x120(%rsp)
je 0x77c7
cmpb $0x0, 0x48(%rsp)
je 0x77b7
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq *0x148(%rsp)
xorl %eax, %eax
cmpq $0x0, 0x8(%rsp)
jne 0x77ae
xorl %eax, %eax
movq 0x20(%rsp), %rcx
cmpq $0x0, (%rcx)
setne %al
movl %eax, 0x124(%rsp)
jmp 0x77c7
andq $0x0, 0x8(%rsp)
leaq 0x8(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x118(%rsp)
jne 0x77fd
cmpl $0x0, 0x11c(%rsp)
je 0x77fd
cmpl $0x0, 0x120(%rsp)
jne 0x77fd
andq $0x0, 0x8(%rsp)
leaq 0x8(%rsp), %rax
movq %rax, 0x10(%rsp)
andl $0x0, 0x11c(%rsp)
cmpl $0x0, 0x118(%rsp)
je 0x7850
cmpq $0x0, 0x8(%rsp)
je 0x781d
xorl %eax, %eax
cmpl $0x0, 0x120(%rsp)
jne 0x7849
jmp 0x7850
movq 0x20(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x7846
leaq 0x10(%rax), %rcx
andq $0x0, 0x10(%rax)
movq 0x10(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %rax, (%rdx)
movq %rcx, 0x10(%rsp)
jmp 0x7822
pushq $0x1
popq %rax
movl %eax, 0x11c(%rsp)
andl $0x0, 0x138(%rsp)
andq $0x0, 0x130(%rsp)
cmpl $0x0, 0x114(%rsp)
je 0x78d2
leaq 0x7b(%rsp), %r14
movq %r14, %rdi
pushq $0x65
popq %rsi
leaq 0x6871(%rip), %rdx      # 0xe0ee
leaq 0xe0(%rsp), %rcx
leaq 0x48(%rsp), %r8
leaq 0x6864(%rip), %r9       # 0xe0f5
xorl %eax, %eax
callq 0x50b0
movq %r14, %rdi
callq 0x5320
movq %rbx, %rdi
movq %r14, %rsi
pushq $0x32
popq %r14
movl %eax, %edx
callq 0xbad7
movl %eax, 0x134(%rsp)
movq %rbx, %rdi
callq 0xba35
movl %eax, 0x130(%rsp)
movl $0x1, 0x138(%rsp)
leaq 0x8(%rsp), %r13
movq (%r13), %r13
testq %r13, %r13
je 0x7983
movq 0x150(%rsp), %rax
testq %rax, %rax
je 0x7901
movl 0x11c(%rsp), %esi
movq %r13, %rdi
callq *%rax
pushq $0x53
jmp 0x7908
movb $0x0, 0x53(%r13)
pushq $0x20
popq %r12
addq %r13, %r12
movl 0x134(%rsp), %ebp
movq %r12, %rdi
callq 0x5320
cmpq $0x32, %rax
jb 0x7925
movq %r14, %rax
movq %rbx, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xbad7
cmpl %eax, %ebp
jle 0x793f
movl 0x134(%rsp), %eax
jmp 0x795d
movq %r12, %rdi
callq 0x5320
cmpq $0x32, %rax
jb 0x7950
movq %r14, %rax
movq %rbx, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xbad7
movl %eax, 0x134(%rsp)
movq %rbx, %rdi
callq 0xba35
addl %eax, 0x130(%rsp)
incl 0x138(%rsp)
addq $0x10, %r13
jmp 0x78d7
movl 0x13c(%rsp), %esi
movl 0x140(%rsp), %edx
movq %rbx, %rdi
callq 0x5ef3
testq %rax, %rax
je 0x79ba
movswl 0x4(%rax), %r8d
movswl 0x8(%rax), %edx
addl %r8d, %edx
movswl 0x6(%rax), %ecx
movswl 0xa(%rax), %eax
addl %ecx, %eax
movl %eax, 0x18(%rsp)
jmp 0x79cf
movl 0xac(%rbx), %edx
movl 0xb0(%rbx), %eax
movl %eax, 0x18(%rsp)
xorl %ecx, %ecx
xorl %r8d, %r8d
movl 0x134(%rsp), %r9d
movl 0x13c(%rsp), %edi
movl 0x140(%rsp), %eax
leal (%r9,%rdi), %r10d
movl %edi, %esi
cmpl %edx, %r10d
jl 0x79fc
movl %edx, %esi
subl %r9d, %esi
movl %esi, 0x13c(%rsp)
cmpl %r8d, %esi
jge 0x7a16
movl %r8d, 0x13c(%rsp)
subl %r8d, %edx
movl %edx, 0x134(%rsp)
movl %r8d, %esi
movl 0x130(%rsp), %r8d
leal (%r8,%rax), %r9d
movl %eax, %edx
cmpl 0x18(%rsp), %r9d
jl 0x7a39
movl 0x18(%rsp), %edx
subl %r8d, %edx
movl %edx, 0x140(%rsp)
cmpl %ecx, %edx
jge 0x7a53
movl %ecx, 0x140(%rsp)
movl 0x18(%rsp), %edx
subl %ecx, %edx
movl %edx, 0x130(%rsp)
movl %ecx, %edx
cmpl %edi, %esi
jne 0x7a5b
cmpl %eax, %edx
je 0x7a64
movq 0x18(%rbx), %rdi
callq 0x85f5
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
callq 0x50a0
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
movl 0x13c(%rsp), %edx
movl 0x140(%rsp), %ecx
movl 0x130(%rsp), %r9d
movl 0x134(%rsp), %r8d
callq 0x5440
cmpl $0x0, 0x114(%rsp)
je 0x7ade
leaq 0x7b(%rsp), %r15
movq %r15, %rdi
callq 0x5320
movq %rax, %r14
movq 0x20(%rbx), %r12
movq %rbx, %rdi
callq 0xba20
leal 0x1(%rax), %r9d
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0xbb0c
pushq $0x1
popq %r15
jmp 0x7ae1
xorl %r15d, %r15d
leaq 0x8(%rsp), %r13
movq (%r13), %r13
testq %r13, %r13
je 0x7b63
movb 0x53(%r13), %bpl
movq %rbx, %rdi
callq 0xba35
movl %eax, %r14d
imull %r15d, %r14d
movq %rbx, %rdi
callq 0xba20
leal (%rax,%r14), %r12d
incl %r12d
movl 0x140(%rsp), %eax
addl %r12d, %eax
cmpl 0x18(%rsp), %eax
jg 0x7b63
leaq 0x53(%r13), %r14
leaq 0x20(%r13), %rax
testb %bpl, %bpl
cmoveq %rax, %r14
movq %r14, %rdi
callq 0x5320
cmpq $0x32, %rax
pushq $0x32
popq %rcx
cmovaeq %rcx, %rax
movq 0x20(%rbx), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
xorl %r8d, %r8d
movl %r12d, %r9d
callq 0xbb0c
incl %r15d
addq $0x10, %r13
jmp 0x7ae6
cmpl $0x0, 0x114(%rsp)
je 0x7bc2
cmpl $0x2, %r15d
jb 0x7bc2
cmpb $0x0, 0x48(%rsp)
je 0x7bc2
leaq 0xecc7(%rip), %rax      # 0x16848
movq (%rax), %r14
movq 0x20(%rbx), %r12
movq 0x98(%rbx), %r13
movq %rbx, %rdi
callq 0xba35
movl %eax, %ebp
movl 0x134(%rsp), %r15d
movq %rbx, %rdi
callq 0xba35
movl %eax, (%rsp)
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x53a0
cmpl $0x0, 0x124(%rsp)
leaq 0xec77(%rip), %r15      # 0x16848
leaq 0x1c(%rsp), %r13
je 0x74a4
movq (%r15), %r14
movq 0x20(%rbx), %r15
movq 0x98(%rbx), %r12
movl 0x134(%rsp), %ebp
movq %rbx, %rdi
callq 0xba35
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
leaq 0xec3f(%rip), %r15      # 0x16848
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x53a0
jmp 0x74a4
xorl %eax, %eax
cmpl $0x0, 0x118(%rsp)
sete %al
movl %eax, 0x118(%rsp)
jmp 0x773d
movl 0x12c(%rsp), %eax
movl %eax, 0x128(%rsp)
movl 0x1c8(%rsp), %edx
movl 0x1cc(%rsp), %ecx
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
callq 0x7ed6
movl %eax, 0x12c(%rsp)
cmpl $-0x1, 0x128(%rsp)
je 0x7cc1
movq (%r15), %r14
movq 0x20(%rbx), %r15
movq 0x98(%rbx), %r12
movq %rbx, %rdi
callq 0xba35
movl %eax, %ebp
imull 0x128(%rsp), %ebp
movl 0x134(%rsp), %r13d
movq %rbx, %rdi
callq 0xba35
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r13d, %r9d
callq 0x53a0
movl 0x12c(%rsp), %eax
cmpl $-0x1, %eax
je 0x7d36
leaq 0xeb93(%rip), %rax      # 0x16860
movq (%rax), %rsi
movl $0x2204c, %edi          # imm = 0x2204C
callq 0x84bc
leaq 0xeb67(%rip), %rax      # 0x16848
movq (%rax), %r14
movq 0x20(%rbx), %r15
movq 0x98(%rbx), %r12
movq %rbx, %rdi
callq 0xba35
movl %eax, %ebp
imull 0x12c(%rsp), %ebp
movl 0x134(%rsp), %r13d
movq %rbx, %rdi
callq 0xba35
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
leaq 0xeb27(%rip), %r15      # 0x16848
movq %r12, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r13d, %r9d
callq 0x53a0
jmp 0x749f
leaq 0xeb13(%rip), %rax      # 0x16850
movq (%rax), %rsi
movl $0x2204c, %edi          # imm = 0x2204C
callq 0x84bc
leaq 0xeaf7(%rip), %r15      # 0x16848
jmp 0x749f
movl 0x1c8(%rsp), %edx
movl 0x1cc(%rsp), %ecx
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7ed6
cmpl $0x1, 0xcc(%r14)
adcl $-0x1, %eax
leaq 0x8(%rsp), %r14
movq (%r14), %r14
subl $0x1, %eax
setb %cl
testq %r14, %r14
je 0x7d9c
testb %cl, %cl
jne 0x7d9c
addq $0x10, %r14
jmp 0x7d84
testq %r14, %r14
jne 0x7e29
movl $0x98, %edi
callq 0x6014
movq %rax, %r14
movb $0x0, 0x20(%rax)
movw $0x1, 0x90(%rax)
jmp 0x7e29
movq 0x20(%rbx), %rsi
callq 0x53c0
xorl %r14d, %r14d
jmp 0x7ec1
movq 0x8(%rsp), %r14
testq %r14, %r14
je 0x7df7
xorl %eax, %eax
jmp 0x7e21
movl $0x98, %edi
callq 0x6014
movq %rax, %r14
movb $0x0, 0x20(%rax)
movw $0x1, %ax
jmp 0x7e17
movl $0x98, %edi
callq 0x6014
movq %rax, %r14
leaq 0x20(%rax), %rdi
leaq 0x48(%rsp), %rsi
pushq $0x33
popq %rdx
callq 0xcd50
xorl %eax, %eax
movw $0x1, 0x90(%r14)
movw %ax, 0x92(%r14)
cmpl $0x0, 0x40(%rsp)
jne 0x7e46
cmpw $0x0, 0x90(%r14)
je 0x7e46
movq %r14, %rdi
callq 0x6050
xorl %r14d, %r14d
movq (%r15), %rdi
movq 0x158(%rsp), %rsi
movl 0x44(%rsp), %edx
xorl %ecx, %ecx
callq 0x5570
movq 0x18(%rbx), %rdi
leaq 0x160(%rsp), %r15
leaq 0x30(%rsp), %rdx
movq %r15, %rsi
callq 0x85b2
movl (%r15), %eax
cmpl 0x13c(%rsp), %eax
jne 0x7e9f
movl 0x30(%rsp), %eax
cmpl 0x140(%rsp), %eax
jne 0x7e9f
movq 0x18(%rbx), %rdi
movl 0x3c(%rsp), %esi
movl 0x38(%rsp), %edx
callq 0x85f5
callq 0x84dd
leaq 0xe99d(%rip), %r15      # 0x16848
movq (%r15), %rdi
movq 0x20(%rbx), %rsi
callq 0x53c0
movq (%r15), %rdi
xorl %esi, %esi
callq 0x54d0
movq %r14, %rax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq