// File: /workspace/github_c_makefile_star2_O1/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, %r12
movq %rdx, %r13
movq %rsi, 0x28(%rsp)
movq %rdi, %rbx
leaq 0x10(%rsp), %rax
movq $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 0x89e4
movl -0x4(%r14), %eax
movl %eax, 0x3c(%rsp)
movl (%r14), %eax
movl %eax, 0x38(%rsp)
testq %r13, %r13
movq %rbx, 0x8(%rsp)
je 0x75ce
leaq 0xe0(%rsp), %r14
leaq 0x6baa(%rip), %rdx      # 0xe10d
leaq 0x6b9e(%rip), %r8       # 0xe108
movl $0x33, %esi
movq %r14, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x50b0
leaq 0x7b(%rsp), %r13
leaq 0x6b83(%rip), %rdx      # 0xe10b
leaq 0x6b83(%rip), %r9       # 0xe112
leaq 0x48(%rsp), %r8
movl $0x65, %esi
movq %r13, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x50b0
movq %r13, %rdi
callq 0x5330
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0xc1cd
movl %eax, 0x54(%r14)
movl $0x1, 0x34(%r14)
movl $0xa04d, %eax           # imm = 0xA04D
jmp 0x75e6
movb $0x0, 0xe0(%rsp)
movl $0x1, 0x118(%rsp)
movl $0xa04c, %eax           # imm = 0xA04C
movq %rax, 0x30(%rsp)
movq 0x280(%rsp), %rbx
testq %r12, %r12
je 0x760c
leaq 0x48(%rsp), %rdi
movl $0x33, %edx
movq %r12, %rsi
callq 0xd500
jmp 0x7611
movb $0x0, 0x48(%rsp)
movq 0x8(%rsp), %rax
movq %r15, 0x148(%rsp)
movq %rbx, 0x150(%rsp)
movq $-0x1, 0x128(%rsp)
leaq 0xf21f(%rip), %rbx      # 0x16858
movq (%rbx), %r15
movq 0x20(%rax), %r12
movl 0x134(%rsp), %ebp
movl 0x13c(%rsp), %r13d
movl 0x140(%rsp), %r14d
movq 0x8(%rsp), %rdi
callq 0xc129
movq %r15, %rdi
movq %r12, %rsi
movl %r13d, %edx
movq 0x8(%rsp), %r13
movl %r14d, %ecx
movq %rbx, %r14
movl %ebp, %r8d
movl %eax, %r9d
callq 0x5450
movq (%rbx), %rdi
movq 0x20(%r13), %rsi
movq 0x30(%rsp), %rdx
callq 0x5570
movq (%rbx), %rdi
movq 0x20(%r13), %rsi
callq 0x5810
movq 0x20(%r13), %rdi
leaq 0xf1d0(%rip), %rax      # 0x16878
movq (%rax), %rdx
movl $0x2204c, %esi          # imm = 0x2204C
callq 0x88b4
movq (%rbx), %rdi
testl %eax, %eax
js 0x82a0
leaq 0x158(%rsp), %rsi
leaq 0x44(%rsp), %rdx
callq 0x54f0
movq (%r14), %rdi
movq 0x20(%r13), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x5580
movq (%r14), %rdi
movq 0x20(%r13), %rsi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x56b0
movl $0x32, %ebp
movl $0x0, 0x120(%rsp)
movq (%r14), %rdi
movq 0x20(%r13), %rsi
movq 0x30(%rsp), %rdx
leaq 0x188(%rsp), %rcx
callq 0x5480
movl 0x188(%rsp), %eax
cmpl $0x5, %eax
jg 0x77ce
cmpl $0x2, %eax
je 0x77e5
cmpl $0x5, %eax
jne 0x7709
movl 0x1c8(%rsp), %edx
movl 0x1cc(%rsp), %ecx
movq %r13, %rdi
leaq 0x48(%rsp), %rsi
callq 0x82c1
xorl %ecx, %ecx
cmpl $0x0, 0x114(%rsp)
setne %sil
movq 0x10(%rsp), %r15
testq %r15, %r15
sete %dl
je 0x77a2
movb %sil, %cl
cmpl %ecx, %eax
je 0x77a2
notl %ecx
addl %eax, %ecx
movq 0x10(%r15), %r15
subl $0x1, %ecx
setb %al
testq %r15, %r15
sete %dl
je 0x77a2
testb %al, %al
je 0x778c
testb %dl, %dl
je 0x77c0
movl $0x98, %edi
callq 0x6188
movq %rax, %r15
movb $0x0, 0x20(%rax)
movw $0x1, 0x90(%rax)
testq %r15, %r15
je 0x7709
jmp 0x8206
cmpl $0x6, %eax
je 0x785b
cmpl $0xc, %eax
je 0x7d51
jmp 0x7709
movq %r14, %rax
movl 0x1d8(%rsp), %r14d
movb $0x0, 0x160(%rsp)
movq (%rax), %rdi
movzbl 0x1dc(%rsp), %esi
movl %r14d, %ecx
andl $0x1, %ecx
xorl %ebx, %ebx
xorl %edx, %edx
callq 0x5270
movq %rax, 0x20(%rsp)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpq $0xff1a, %rax           # imm = 0xFF1A
jle 0x7982
cmpq $0xff1b, %rax           # imm = 0xFF1B
je 0x79b7
cmpq $0xff52, %rax           # imm = 0xFF52
leaq 0x20(%rsp), %rcx
je 0x79be
cmpq $0xff54, %rax           # imm = 0xFF54
jne 0x79d0
movl $0x3, %ebp
jmp 0x79c3
movl 0x12c(%rsp), %eax
movl %eax, 0x128(%rsp)
movl 0x1c8(%rsp), %edx
movl 0x1cc(%rsp), %ecx
movq %r13, %rdi
leaq 0x48(%rsp), %rsi
callq 0x82c1
movl %eax, 0x12c(%rsp)
cmpl $-0x1, 0x128(%rsp)
je 0x78f8
leaq 0xefbc(%rip), %rax      # 0x16858
movq (%rax), %r14
movq 0x20(%r13), %r15
movq 0x98(%r13), %r12
movq %r13, %rdi
callq 0xc129
movl %eax, %ebp
imull 0x128(%rsp), %ebp
movl 0x134(%rsp), %r13d
movq 0x8(%rsp), %rdi
callq 0xc129
movl %eax, (%rsp)
movq %r14, %rdi
leaq 0xef7d(%rip), %r14      # 0x16858
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl $0x32, %ebp
movl %r13d, %r9d
movq 0x8(%rsp), %r13
callq 0x53b0
cmpl $-0x1, 0x12c(%rsp)
je 0x799e
leaq 0xef63(%rip), %rax      # 0x16870
movq (%rax), %rsi
movl $0x2204c, %edi          # imm = 0x2204C
callq 0x88ef
leaq 0xef37(%rip), %rax      # 0x16858
movq (%rax), %r14
movq 0x20(%r13), %r15
movq 0x98(%r13), %r12
movq %r13, %rdi
callq 0xc129
movl %eax, %ebp
imull 0x12c(%rsp), %ebp
movl 0x134(%rsp), %r13d
movq 0x8(%rsp), %rdi
callq 0xc129
movl %eax, (%rsp)
movq %r14, %rdi
leaq 0xeef8(%rip), %r14      # 0x16858
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl $0x32, %ebp
movl %r13d, %r9d
movq 0x8(%rsp), %r13
callq 0x53b0
jmp 0x7709
cmpq $0xff08, %rax           # imm = 0xFF08
je 0x79c7
cmpq $0xff0d, %rax           # imm = 0xFF0D
leaq 0x20(%rsp), %rcx
jne 0x79d0
movl $0x4, %ebp
jmp 0x79c3
leaq 0xeebb(%rip), %rax      # 0x16860
movq (%rax), %rsi
movl $0x2204c, %edi          # imm = 0x2204C
callq 0x88ef
jmp 0x7709
movl $0x5, %ebp
jmp 0x79c9
movl $0x2, %ebp
movb $0x1, %bl
jmp 0x79d0
xorl %ebp, %ebp
movb $0x1, %bl
leaq 0x20(%rsp), %rcx
testb $0x4, %r14b
sete %dl
orb %bl, %dl
je 0x79fa
cmpl $-0x1, %ebp
setne %sil
testb $0x8, %r14b
sete %dl
orb %sil, %dl
je 0x7a26
leaq 0xee63(%rip), %r14      # 0x16858
jmp 0x7a8b
cmpq $0x60, %rax
jg 0x7a41
cmpq $0x51, %rax
jle 0x81c0
cmpq $0x52, %rax
je 0x81f2
cmpq $0x53, %rax
je 0x7a69
cmpq $0x55, %rax
je 0x81fc
jmp 0x79db
cmpq $0x69, %rax
leaq 0xee27(%rip), %r14      # 0x16858
jg 0x7a73
cmpq $0x4a, %rax
je 0x7a7f
cmpq $0x4b, %rax
je 0x7a86
jmp 0x7a8b
cmpq $0x71, %rax
jle 0x81d1
cmpq $0x72, %rax
je 0x81f2
cmpq $0x75, %rax
je 0x81fc
cmpq $0x73, %rax
jne 0x79db
movl $0x3, %ebp
jmp 0x79db
cmpq $0x6b, %rax
je 0x7a86
cmpq $0x6a, %rax
jne 0x7a8b
movl $0x3, %ebp
jmp 0x7a8b
movl $0x2, %ebp
cmpl $-0x1, %ebp
jne 0x7abb
leaq 0x188(%rsp), %rdi
leaq 0x160(%rsp), %rsi
movl $0x20, %edx
xorl %r8d, %r8d
callq 0x5150
movl $0x0, %r15d
testl %eax, %eax
js 0x7d43
cmpl $0x6, %ebp
ja 0x7c6c
movl %ebp, %eax
leaq 0x661f(%rip), %rcx      # 0xe0ec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x48(%rsp), %rdi
callq 0x5330
testq %rax, %rax
je 0x7c6c
movq %rax, %r15
leaq 0x47(%rsp), %rax
addq %rax, %r15
xorl %r12d, %r12d
leaq 0x20(%rsp), %rbx
callq 0x5380
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5080
incq %r12
decq %r15
cmpl $-0x1, %eax
je 0x7afc
incq %r15
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x5090
jmp 0x7c2b
movq 0x10(%rsp), %r15
testq %r15, %r15
jne 0x7b63
movl $0x98, %edi
callq 0x6188
movq %rax, %r15
leaq 0x20(%rax), %rdi
movl $0x33, %edx
leaq 0x48(%rsp), %rsi
callq 0xd500
movw $0x1, 0x90(%r15)
movw $0x0, 0x92(%r15)
jmp 0x7d43
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x7c6c
leaq 0x10(%rax), %rcx
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rsi
leaq 0x18(%rdx), %rdi
testq %rdx, %rdx
leaq 0x18(%rsp), %r8
cmoveq %r8, %rdi
movq %rsi, (%rdi)
movq 0x18(%rax), %rsi
movq %rdx, (%rsi)
movq 0x10(%rsp), %rdx
leaq 0x18(%rdx), %rsi
testq %rdx, %rdx
cmoveq %r8, %rsi
movq %rdx, 0x10(%rax)
movq %rcx, (%rsi)
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rax)
jmp 0x7c6c
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x7c6c
leaq 0x10(%rax), %rcx
movq 0x10(%rax), %rdx
movq 0x18(%rax), %rsi
leaq 0x18(%rdx), %rdi
testq %rdx, %rdx
leaq 0x18(%rsp), %r8
cmoveq %r8, %rdi
movq %rsi, (%rdi)
movq 0x18(%rax), %rsi
movq %rdx, (%rsi)
movq $0x0, 0x10(%rax)
movq 0x18(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
jmp 0x7c6c
movb $0x0, 0x48(%rsp)
movl $0x1, 0x120(%rsp)
jmp 0x7c6c
movl $0x98, %edi
callq 0x6188
movq %rax, %r15
movb $0x0, 0x20(%rax)
movl $0x10001, 0x90(%rax)    # imm = 0x10001
jmp 0x7d43
xorl %eax, %eax
cmpl $0x0, 0x118(%rsp)
sete %al
movl %eax, 0x118(%rsp)
cmpb $0x0, 0x160(%rsp)
je 0x7c98
movl $0x1, 0x120(%rsp)
movl $0x33, %edx
leaq 0x48(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0xd55f
movl $0x0, 0x124(%rsp)
cmpl $0x0, 0x120(%rsp)
je 0x7cfe
cmpb $0x0, 0x48(%rsp)
je 0x7ceb
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq *0x148(%rsp)
xorl %eax, %eax
cmpq $0x0, 0x10(%rsp)
jne 0x7ce2
xorl %eax, %eax
movq 0x28(%rsp), %rcx
cmpq $0x0, (%rcx)
setne %al
movl %eax, 0x124(%rsp)
jmp 0x7cfe
movq $0x0, 0x10(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpl $0x0, 0x118(%rsp)
jne 0x7d40
cmpl $0x0, 0x11c(%rsp)
je 0x7d40
cmpl $0x0, 0x120(%rsp)
movl $0x0, %r15d
jne 0x7d43
movq $0x0, 0x10(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
movl $0x0, 0x11c(%rsp)
xorl %r15d, %r15d
testq %r15, %r15
movl $0x32, %ebp
jne 0x8206
cmpl $0x0, 0x118(%rsp)
je 0x7db1
cmpq $0x0, 0x10(%rsp)
je 0x7d7a
cmpl $0x0, 0x120(%rsp)
je 0x7db1
movl $0x0, 0x11c(%rsp)
jmp 0x7db1
movq 0x28(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x7da6
leaq 0x10(%rax), %rcx
movq $0x0, 0x10(%rax)
movq 0x18(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
jmp 0x7d7f
movl $0x1, 0x11c(%rsp)
movl $0x0, 0x138(%rsp)
movq $0x0, 0x130(%rsp)
cmpl $0x0, 0x114(%rsp)
je 0x7e37
movl $0x65, %esi
leaq 0x7b(%rsp), %rbx
movq %rbx, %rdi
leaq 0x6325(%rip), %rdx      # 0xe10b
leaq 0xe0(%rsp), %rcx
leaq 0x48(%rsp), %r8
leaq 0x6318(%rip), %r9       # 0xe112
xorl %eax, %eax
callq 0x50b0
movq %rbx, %rdi
callq 0x5330
movq %r13, %rdi
movq %rbx, %rsi
movl %eax, %edx
callq 0xc1cd
movl %eax, 0x134(%rsp)
movq %r13, %rdi
callq 0xc129
movl %eax, 0x130(%rsp)
movl $0x1, 0x138(%rsp)
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x7ee8
movq 0x150(%rsp), %rax
testq %rax, %rax
je 0x7e66
movl 0x11c(%rsp), %esi
movq %r15, %rdi
callq *%rax
movl $0x53, %r12d
jmp 0x7e71
movb $0x0, 0x53(%r15)
movl $0x20, %r12d
addq %r15, %r12
movl 0x134(%rsp), %ebx
movq %r12, %rdi
callq 0x5330
cmpq $0x32, %rax
cmovaeq %rbp, %rax
movq %r13, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xc1cd
cmpl %eax, %ebx
jle 0x7ea5
movl 0x134(%rsp), %eax
jmp 0x7ec2
movq %r12, %rdi
callq 0x5330
cmpq $0x32, %rax
cmovaeq %rbp, %rax
movq %r13, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xc1cd
movl %eax, 0x134(%rsp)
movq %r13, %rdi
callq 0xc129
addl %eax, 0x130(%rsp)
incl 0x138(%rsp)
movq 0x10(%r15), %r15
jmp 0x7e3c
movl 0x13c(%rsp), %esi
movl 0x140(%rsp), %edx
movq %r13, %rdi
callq 0x6065
testq %rax, %rax
je 0x7f19
movswl 0x4(%rax), %esi
movswl 0x8(%rax), %edx
addl %esi, %edx
movswl 0x6(%rax), %ecx
movswl 0xa(%rax), %ebp
addl %ecx, %ebp
jmp 0x7f2b
movl 0xac(%r13), %edx
movl 0xb0(%r13), %ebp
xorl %ecx, %ecx
xorl %esi, %esi
movl 0x134(%rsp), %r8d
movl 0x13c(%rsp), %edi
movl 0x140(%rsp), %eax
leal (%r8,%rdi), %r9d
cmpl %edx, %r9d
jl 0x7f58
movl %edx, %r9d
subl %r8d, %r9d
movl %r9d, 0x13c(%rsp)
cmpl %esi, 0x13c(%rsp)
jge 0x7f71
movl %esi, 0x13c(%rsp)
subl %esi, %edx
movl %edx, 0x134(%rsp)
movl 0x130(%rsp), %edx
leal (%rdx,%rax), %esi
cmpl %ebp, %esi
jl 0x7f8a
movl %ebp, %esi
subl %edx, %esi
movl %esi, 0x140(%rsp)
cmpl %ecx, 0x140(%rsp)
jge 0x7fa5
movl %ecx, 0x140(%rsp)
movl %ebp, %edx
subl %ecx, %edx
movl %edx, 0x130(%rsp)
movl 0x13c(%rsp), %esi
cmpl %edi, %esi
jne 0x7fb9
cmpl %eax, 0x140(%rsp)
je 0x7fc9
movq 0x18(%r13), %rdi
movl 0x140(%rsp), %edx
callq 0x8a27
movq (%r14), %rdi
movq 0x20(%r13), %rsi
callq 0x50a0
movq (%r14), %rdi
movq 0x20(%r13), %rsi
movl 0x13c(%rsp), %edx
movl 0x140(%rsp), %ecx
movl 0x130(%rsp), %r9d
movl 0x134(%rsp), %r8d
callq 0x5450
cmpl $0x0, 0x114(%rsp)
je 0x8045
leaq 0x7b(%rsp), %rbx
movq %rbx, %rdi
callq 0x5330
movq %rax, %r14
movq 0x20(%r13), %r15
movq %r13, %rdi
callq 0xc114
leal 0x1(%rax), %r9d
movq %r13, %rdi
movq %rbx, %rsi
movl %r14d, %edx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0xc202
movl $0x1, %r13d
jmp 0x8048
xorl %r13d, %r13d
movq 0x10(%rsp), %rbx
testq %rbx, %rbx
je 0x80e6
movb 0x53(%rbx), %r12b
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xc129
movl %eax, %r14d
imull %r13d, %r14d
movq %r15, %rdi
callq 0xc114
leal (%rax,%r14), %r15d
incl %r15d
movl 0x140(%rsp), %r14d
addl %r15d, %r14d
cmpl %ebp, %r14d
jg 0x80cb
testb %r12b, %r12b
je 0x8098
leaq 0x53(%rbx), %r12
jmp 0x809c
leaq 0x20(%rbx), %r12
movq %r12, %rdi
callq 0x5330
cmpq $0x32, %rax
jb 0x80af
movl $0x32, %eax
movq 0x8(%rsp), %rdi
movq 0x20(%rdi), %rcx
movq %r12, %rsi
movl %eax, %edx
xorl %r8d, %r8d
movl %r15d, %r9d
callq 0xc202
incl %r13d
cmpl %ebp, %r14d
jg 0x80dd
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x8056
cmpl $0x2, %r13d
setge %al
jmp 0x80e8
xorl %eax, %eax
cmpl $0x0, 0x114(%rsp)
movq 0x8(%rsp), %r13
leaq 0xe75c(%rip), %r14      # 0x16858
je 0x815f
testb %al, %al
je 0x815f
cmpb $0x0, 0x48(%rsp)
je 0x815f
leaq 0xe748(%rip), %rax      # 0x16858
movq (%rax), %r14
movq 0x20(%r13), %r15
movq 0x98(%r13), %r12
movq %r13, %rdi
callq 0xc129
movl %eax, %r13d
movl 0x134(%rsp), %ebp
movq 0x8(%rsp), %rdi
callq 0xc129
movl %eax, (%rsp)
movq %r14, %rdi
leaq 0xe711(%rip), %r14      # 0x16858
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movl %r13d, %r8d
movq 0x8(%rsp), %r13
movl %ebp, %r9d
callq 0x53b0
cmpl $0x0, 0x124(%rsp)
movl $0x32, %ebp
je 0x7709
leaq 0xe6df(%rip), %rax      # 0x16858
movq (%rax), %r14
movq 0x20(%r13), %r15
movq 0x98(%r13), %r12
movl 0x134(%rsp), %ebp
movq %r13, %rdi
callq 0xc129
movl %eax, (%rsp)
movq %r14, %rdi
leaq 0xe6b5(%rip), %r14      # 0x16858
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
movl $0x32, %ebp
callq 0x53b0
jmp 0x7709
cmpq $0x41, %rax
je 0x81e8
cmpq $0x48, %rax
je 0x81e1
jmp 0x79db
cmpq $0x61, %rax
je 0x81e8
cmpq $0x68, %rax
jne 0x79db
xorl %ebp, %ebp
jmp 0x79db
movl $0x6, %ebp
jmp 0x79db
movl $0x2, %ebp
jmp 0x79db
movl $0x1, %ebp
jmp 0x79db
cmpl $0x0, 0x40(%rsp)
jne 0x8223
cmpw $0x0, 0x90(%r15)
je 0x8223
movq %r15, %rdi
callq 0x61c8
xorl %r15d, %r15d
movq (%r14), %rdi
movq 0x158(%rsp), %rsi
movl 0x44(%rsp), %edx
xorl %ecx, %ecx
callq 0x5580
movq 0x18(%r13), %rdi
leaq 0x160(%rsp), %r14
leaq 0x20(%rsp), %rdx
movq %r14, %rsi
callq 0x89e4
movl (%r14), %eax
cmpl 0x13c(%rsp), %eax
jne 0x827c
movl 0x20(%rsp), %eax
cmpl 0x140(%rsp), %eax
jne 0x827c
movq 0x18(%r13), %rdi
movl 0x3c(%rsp), %esi
movl 0x38(%rsp), %edx
callq 0x8a27
callq 0x8910
leaq 0xe5d0(%rip), %rbx      # 0x16858
movq (%rbx), %rdi
movq 0x20(%r13), %rsi
callq 0x53d0
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x54e0
jmp 0x82ac
movq 0x20(%r13), %rsi
callq 0x53d0
xorl %r15d, %r15d
movq %r15, %rax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq