// File: /workspace/github_c_makefile_star2_O3/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 $0x258, %rsp            # imm = 0x258
movq %r9, %r15
movl %r8d, 0x48(%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 0x50(%rsp), %rdi
movl $0x110, %edx            # imm = 0x110
xorl %esi, %esi
callq 0x5090
movq 0x18(%rbx), %rdi
leaq 0x144(%rsp), %rsi
leaq 0x148(%rsp), %r14
movq %r14, %rdx
callq 0x8854
movl -0x4(%r14), %eax
movl %eax, 0x44(%rsp)
movl (%r14), %eax
movl %eax, 0x40(%rsp)
testq %r13, %r13
je 0x7568
leaq 0xe8(%rsp), %r14
leaq 0x6bf6(%rip), %rdx      # 0xe0f0
leaq 0x6bea(%rip), %r8       # 0xe0eb
movl $0x33, %esi
movq %r14, %rdi
movq %r13, %rcx
xorl %eax, %eax
callq 0x50b0
leaq 0x83(%rsp), %r13
leaq 0x6bcc(%rip), %rdx      # 0xe0ee
leaq 0x6bcc(%rip), %r9       # 0xe0f5
leaq 0x50(%rsp), %r8
movl $0x65, %esi
movq %r13, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x50b0
movq %r13, %rdi
callq 0x5320
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0xbff9
movl %eax, 0x54(%r14)
movl $0x1, 0x34(%r14)
movl $0xa04d, %eax           # imm = 0xA04D
jmp 0x7580
movb $0x0, 0xe8(%rsp)
movl $0x1, 0x120(%rsp)
movl $0xa04c, %eax           # imm = 0xA04C
movq %rax, 0x30(%rsp)
movq 0x290(%rsp), %r14
testq %r12, %r12
je 0x75a6
leaq 0x50(%rsp), %rdi
movl $0x33, %edx
movq %r12, %rsi
callq 0xd220
jmp 0x75ab
movb $0x0, 0x50(%rsp)
movq %r15, 0x150(%rsp)
movq %r14, 0x158(%rsp)
movq $-0x1, 0x130(%rsp)
leaq 0xf27a(%rip), %rax      # 0x16848
movq (%rax), %r15
movq 0x20(%rbx), %r12
movl 0x13c(%rsp), %ebp
movl 0x144(%rsp), %r13d
movl 0x148(%rsp), %r14d
movq %rbx, %rdi
callq 0xbf55
movq %r15, %rdi
movq %r12, %rsi
leaq 0xf247(%rip), %r12      # 0x16848
movl %r13d, %edx
movl %r14d, %ecx
movl %ebp, %r8d
movl %eax, %r9d
callq 0x5440
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
movq 0x30(%rsp), %rdx
callq 0x5560
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
callq 0x5800
movq 0x20(%rbx), %rdi
leaq 0xf22c(%rip), %rax      # 0x16868
movq (%rax), %rdx
movl $0x2204c, %esi          # imm = 0x2204C
callq 0x8724
movq (%r12), %rdi
testl %eax, %eax
js 0x8010
leaq 0x160(%rsp), %rsi
leaq 0x4c(%rsp), %rdx
callq 0x54e0
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x5570
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x56a0
movl $0x0, 0x128(%rsp)
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
movq 0x30(%rsp), %rdx
leaq 0x198(%rsp), %rcx
callq 0x5470
movl 0x198(%rsp), %eax
cmpl $0x5, %eax
jg 0x7747
cmpl $0x2, %eax
je 0x775e
cmpl $0x5, %eax
jne 0x769b
movl 0x1d8(%rsp), %edx
movl 0x1dc(%rsp), %ecx
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
callq 0x813f
xorl %ecx, %ecx
cmpl $0x0, 0x11c(%rsp)
setne %sil
movq 0x10(%rsp), %r15
testq %r15, %r15
sete %dl
je 0x7731
movb %sil, %cl
cmpl %ecx, %eax
je 0x7731
notl %ecx
addl %eax, %ecx
movq 0x10(%r15), %r15
subl $0x1, %ecx
setb %al
testq %r15, %r15
sete %dl
je 0x7731
testb %al, %al
je 0x771b
testb %dl, %dl
jne 0x8021
testq %r15, %r15
je 0x769b
jmp 0x8096
cmpl $0x6, %eax
je 0x77fc
cmpl $0xc, %eax
je 0x7b8e
jmp 0x769b
movl 0x1e8(%rsp), %ebp
movb $0x0, 0x170(%rsp)
movq (%r12), %rdi
movzbl 0x1ec(%rsp), %esi
movl %ebp, %ecx
andl $0x1, %ecx
xorl %edx, %edx
callq 0x5260
movq %rax, 0x38(%rsp)
cmpq $0xff51, %rax           # imm = 0xFF51
jle 0x7900
cmpq $0xff52, %rax           # imm = 0xFF52
je 0x7a68
cmpq $0xff54, %rax           # imm = 0xFF54
jne 0x79ab
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x7ac0
leaq 0x10(%rax), %rcx
movq 0x10(%rax), %rdx
leaq 0x18(%rdx), %rsi
testq %rdx, %rdx
leaq 0x18(%rsp), %rdi
cmoveq %rdi, %rsi
movq 0x18(%rax), %rdi
movq %rdi, (%rsi)
movq %rdx, (%rdi)
movq $0x0, 0x10(%rax)
movq 0x18(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %rax, (%rdx)
movq %rcx, 0x18(%rsp)
jmp 0x7ac0
movl 0x134(%rsp), %eax
movl %eax, 0x130(%rsp)
movl 0x1d8(%rsp), %edx
movl 0x1dc(%rsp), %ecx
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
callq 0x813f
movl %eax, 0x134(%rsp)
cmpl $-0x1, 0x130(%rsp)
je 0x7887
movq (%r12), %r14
movq 0x20(%rbx), %r15
movq 0x98(%rbx), %r12
movq %rbx, %rdi
callq 0xbf55
movl %eax, %ebp
imull 0x130(%rsp), %ebp
movl 0x13c(%rsp), %r13d
movq %rbx, %rdi
callq 0xbf55
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r13d, %r9d
callq 0x53a0
movl 0x134(%rsp), %eax
cmpl $-0x1, %eax
je 0x7973
leaq 0xefc9(%rip), %rax      # 0x16860
movq (%rax), %rsi
movl $0x2204c, %edi          # imm = 0x2204C
callq 0x875f
leaq 0xef9d(%rip), %rax      # 0x16848
movq (%rax), %r14
movq 0x20(%rbx), %r15
movq 0x98(%rbx), %r12
movq %rbx, %rdi
callq 0xbf55
movl %eax, %ebp
imull 0x134(%rsp), %ebp
movl 0x13c(%rsp), %r13d
movq %rbx, %rdi
callq 0xbf55
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
leaq 0xef5a(%rip), %r12      # 0x16848
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r13d, %r9d
callq 0x53a0
jmp 0x769b
cmpq $0xff08, %rax           # imm = 0xFF08
jne 0x7993
leaq 0x50(%rsp), %rdi
callq 0x5320
testq %rax, %rax
je 0x7ac0
movq %rax, %r15
leaq 0x4f(%rsp), %rax
addq %rax, %r15
xorl %r13d, %r13d
leaq 0x16c(%rsp), %r14
callq 0x5370
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x5080
incq %r13
decq %r15
cmpl $-0x1, %eax
je 0x7935
incq %r15
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x5090
movl $0x1, 0x128(%rsp)
jmp 0x7ac0
leaq 0xeed6(%rip), %rax      # 0x16850
movq (%rax), %rsi
movl $0x2204c, %edi          # imm = 0x2204C
callq 0x875f
leaq 0xeeba(%rip), %r12      # 0x16848
jmp 0x769b
cmpq $0xff0d, %rax           # imm = 0xFF0D
je 0x803d
cmpq $0xff1b, %rax           # imm = 0xFF1B
je 0x804b
testb $0x4, %bpl
jne 0x79e6
testb $0x8, %bpl
jne 0x7a0e
leaq 0x198(%rsp), %rdi
leaq 0x170(%rsp), %rsi
movl $0x20, %edx
leaq 0x38(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5150
testl %eax, %eax
jns 0x7ac0
jmp 0x7b8e
cmpq $0x60, %rax
jg 0x7a26
cmpq $0x51, %rax
jle 0x7fcd
cmpq $0x52, %rax
je 0x7a68
cmpq $0x53, %rax
je 0x77ae
cmpq $0x55, %rax
je 0x7a4a
jmp 0x79b1
cmpq $0x69, %rax
jg 0x7a54
cmpq $0x4a, %rax
je 0x77ae
cmpq $0x4b, %rax
je 0x7a68
jmp 0x79b7
cmpq $0x71, %rax
jle 0x7fe2
cmpq $0x72, %rax
je 0x7a68
cmpq $0x73, %rax
je 0x77ae
cmpq $0x75, %rax
jne 0x79b1
movb $0x0, 0x50(%rsp)
jmp 0x7963
cmpq $0x6a, %rax
je 0x77ae
cmpq $0x6b, %rax
jne 0x79b7
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x7ac0
leaq 0x10(%rax), %rcx
movq 0x10(%rax), %rdx
leaq 0x18(%rdx), %rsi
testq %rdx, %rdx
leaq 0x18(%rsp), %r8
cmoveq %r8, %rsi
movq 0x18(%rax), %rdi
movq %rdi, (%rsi)
movq %rdx, (%rdi)
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)
cmpb $0x0, 0x170(%rsp)
je 0x7aec
movl $0x1, 0x128(%rsp)
movl $0x33, %edx
leaq 0x50(%rsp), %rdi
leaq 0x170(%rsp), %rsi
callq 0xd26b
movl $0x0, 0x12c(%rsp)
cmpl $0x0, 0x128(%rsp)
je 0x7b52
cmpb $0x0, 0x50(%rsp)
je 0x7b3f
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq *0x150(%rsp)
xorl %eax, %eax
cmpq $0x0, 0x10(%rsp)
jne 0x7b36
xorl %eax, %eax
movq 0x28(%rsp), %rcx
cmpq $0x0, (%rcx)
setne %al
movl %eax, 0x12c(%rsp)
jmp 0x7b52
movq $0x0, 0x10(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpl $0x0, 0x120(%rsp)
jne 0x7b8e
cmpl $0x0, 0x124(%rsp)
je 0x7b8e
cmpl $0x0, 0x128(%rsp)
jne 0x7b8e
movq $0x0, 0x10(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
movl $0x0, 0x124(%rsp)
cmpl $0x0, 0x120(%rsp)
je 0x7bec
cmpq $0x0, 0x10(%rsp)
je 0x7bae
xorl %eax, %eax
cmpl $0x0, 0x128(%rsp)
jne 0x7be5
jmp 0x7bec
movq 0x28(%rsp), %rax
movq (%rax), %rcx
movl $0x1, %eax
testq %rcx, %rcx
je 0x7be5
movq 0x18(%rsp), %rdx
movq $0x0, 0x10(%rcx)
movq %rdx, 0x18(%rcx)
movq %rcx, (%rdx)
leaq 0x10(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x7bc5
movl %eax, 0x124(%rsp)
movl $0x0, 0x140(%rsp)
movq $0x0, 0x138(%rsp)
cmpl $0x0, 0x11c(%rsp)
je 0x7c75
movl $0x65, %esi
leaq 0x83(%rsp), %r14
movq %r14, %rdi
leaq 0x64ca(%rip), %rdx      # 0xe0ee
leaq 0xe8(%rsp), %rcx
leaq 0x50(%rsp), %r8
leaq 0x64bd(%rip), %r9       # 0xe0f5
xorl %eax, %eax
callq 0x50b0
movq %r14, %rdi
callq 0x5320
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xbff9
movl %eax, 0x13c(%rsp)
movq %rbx, %rdi
callq 0xbf55
movl %eax, 0x138(%rsp)
movl $0x1, 0x140(%rsp)
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x7d2c
movq 0x158(%rsp), %rax
testq %rax, %rax
je 0x7ca4
movl 0x124(%rsp), %esi
movq %r15, %rdi
callq *%rax
movl $0x53, %r13d
jmp 0x7caf
movb $0x0, 0x53(%r15)
movl $0x20, %r13d
addq %r15, %r13
movl 0x13c(%rsp), %ebp
movq %r13, %rdi
callq 0x5320
cmpq $0x32, %rax
movl $0x32, %r14d
cmovaeq %r14, %rax
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0xbff9
cmpl %eax, %ebp
jle 0x7ce9
movl 0x13c(%rsp), %eax
jmp 0x7d06
movq %r13, %rdi
callq 0x5320
cmpq $0x32, %rax
cmovaeq %r14, %rax
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0xbff9
movl %eax, 0x13c(%rsp)
movq %rbx, %rdi
callq 0xbf55
addl %eax, 0x138(%rsp)
incl 0x140(%rsp)
movq 0x10(%r15), %r15
jmp 0x7c7a
movl 0x144(%rsp), %esi
movl 0x148(%rsp), %edx
movq %rbx, %rdi
callq 0x6055
testq %rax, %rax
je 0x7d63
movswl 0x4(%rax), %r8d
movswl 0x8(%rax), %edx
addl %r8d, %edx
movswl 0x6(%rax), %ecx
movswl 0xa(%rax), %eax
addl %ecx, %eax
movl %eax, 0x24(%rsp)
jmp 0x7d78
movl 0xac(%rbx), %edx
movl 0xb0(%rbx), %eax
movl %eax, 0x24(%rsp)
xorl %ecx, %ecx
xorl %r8d, %r8d
movl 0x13c(%rsp), %r9d
movl 0x144(%rsp), %edi
movl 0x148(%rsp), %eax
leal (%r9,%rdi), %r10d
movl %edi, %esi
cmpl %edx, %r10d
jl 0x7da5
movl %edx, %esi
subl %r9d, %esi
movl %esi, 0x144(%rsp)
cmpl %r8d, %esi
jge 0x7dbf
movl %r8d, 0x144(%rsp)
subl %r8d, %edx
movl %edx, 0x13c(%rsp)
movl %r8d, %esi
movl 0x138(%rsp), %r8d
leal (%r8,%rax), %r9d
movl %eax, %edx
cmpl 0x24(%rsp), %r9d
jl 0x7de2
movl 0x24(%rsp), %edx
subl %r8d, %edx
movl %edx, 0x148(%rsp)
cmpl %ecx, %edx
jge 0x7dfc
movl %ecx, 0x148(%rsp)
movl 0x24(%rsp), %edx
subl %ecx, %edx
movl %edx, 0x138(%rsp)
movl %ecx, %edx
cmpl %edi, %esi
jne 0x7e04
cmpl %eax, %edx
je 0x7e0d
movq 0x18(%rbx), %rdi
callq 0x8897
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
callq 0x50a0
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
movl 0x144(%rsp), %edx
movl 0x148(%rsp), %ecx
movl 0x138(%rsp), %r9d
movl 0x13c(%rsp), %r8d
callq 0x5440
cmpl $0x0, 0x11c(%rsp)
je 0x7e8e
leaq 0x83(%rsp), %r12
movq %r12, %rdi
callq 0x5320
movq %rax, %r14
movq 0x20(%rbx), %r15
movq %rbx, %rdi
callq 0xbf40
leal 0x1(%rax), %r9d
movq %rbx, %rdi
movq %r12, %rsi
movl %r14d, %edx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0xc02e
movl $0x1, %r12d
jmp 0x7e91
xorl %r12d, %r12d
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
je 0x7f75
movb 0x53(%rbp), %r13b
movq %rbx, %rdi
callq 0xbf55
movl %eax, %r14d
imull %r12d, %r14d
movq %rbx, %rdi
callq 0xbf40
leal (%rax,%r14), %r15d
incl %r15d
movl 0x148(%rsp), %eax
addl %r15d, %eax
cmpl 0x24(%rsp), %eax
jg 0x7f16
testb %r13b, %r13b
je 0x7edc
leaq 0x53(%rbp), %r13
jmp 0x7ee0
leaq 0x20(%rbp), %r13
movq %r13, %rdi
callq 0x5320
cmpq $0x32, %rax
jb 0x7ef3
movl $0x32, %eax
movq 0x20(%rbx), %rcx
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
xorl %r8d, %r8d
movl %r15d, %r9d
callq 0xc02e
incl %r12d
movq 0x10(%rbp), %rbp
testq %rbp, %rbp
jne 0x7e9f
cmpl $0x0, 0x11c(%rsp)
je 0x7f75
cmpl $0x2, %r12d
jb 0x7f75
cmpb $0x0, 0x50(%rsp)
je 0x7f75
leaq 0xe914(%rip), %rax      # 0x16848
movq (%rax), %r14
movq 0x20(%rbx), %r15
movq 0x98(%rbx), %r13
movq %rbx, %rdi
callq 0xbf55
movl %eax, %r12d
movl 0x13c(%rsp), %ebp
movq %rbx, %rdi
callq 0xbf55
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movl %r12d, %r8d
movl %ebp, %r9d
callq 0x53a0
cmpl $0x0, 0x12c(%rsp)
leaq 0xe8c4(%rip), %r12      # 0x16848
je 0x769b
movq (%r12), %r14
movq 0x20(%rbx), %r15
movq 0x98(%rbx), %r12
movl 0x13c(%rsp), %ebp
movq %rbx, %rdi
callq 0xbf55
movl %eax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
leaq 0xe88d(%rip), %r12      # 0x16848
xorl %ecx, %ecx
xorl %r8d, %r8d
movl %ebp, %r9d
callq 0x53a0
jmp 0x769b
cmpq $0x41, %rax
je 0x7ff7
cmpq $0x48, %rax
je 0x790c
jmp 0x79b1
cmpq $0x61, %rax
je 0x7ff7
cmpq $0x68, %rax
je 0x790c
jmp 0x79b1
xorl %eax, %eax
cmpl $0x0, 0x120(%rsp)
sete %al
movl %eax, 0x120(%rsp)
jmp 0x7ac0
movq 0x20(%rbx), %rsi
callq 0x53c0
xorl %r15d, %r15d
jmp 0x812a
movl $0x98, %edi
callq 0x6178
movq %rax, %r15
movb $0x0, 0x20(%rax)
movw $0x1, 0x90(%rax)
jmp 0x8096
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x8062
xorl %eax, %eax
jmp 0x808e
movl $0x98, %edi
callq 0x6178
movq %rax, %r15
movb $0x0, 0x20(%rax)
movw $0x1, %ax
jmp 0x8084
movl $0x98, %edi
callq 0x6178
movq %rax, %r15
leaq 0x20(%rax), %rdi
leaq 0x50(%rsp), %rsi
movl $0x33, %edx
callq 0xd220
xorl %eax, %eax
movw $0x1, 0x90(%r15)
movw %ax, 0x92(%r15)
cmpl $0x0, 0x48(%rsp)
jne 0x80b3
cmpw $0x0, 0x90(%r15)
je 0x80b3
movq %r15, %rdi
callq 0x61b8
xorl %r15d, %r15d
movq (%r12), %rdi
movq 0x160(%rsp), %rsi
movl 0x4c(%rsp), %edx
xorl %ecx, %ecx
callq 0x5570
movq 0x18(%rbx), %rdi
leaq 0x170(%rsp), %r14
leaq 0x38(%rsp), %rdx
movq %r14, %rsi
callq 0x8854
movl (%r14), %eax
cmpl 0x144(%rsp), %eax
jne 0x810d
movl 0x38(%rsp), %eax
cmpl 0x148(%rsp), %eax
jne 0x810d
movq 0x18(%rbx), %rdi
movl 0x44(%rsp), %esi
movl 0x40(%rsp), %edx
callq 0x8897
callq 0x8780
movq (%r12), %rdi
movq 0x20(%rbx), %rsi
callq 0x53c0
movq (%r12), %rdi
xorl %esi, %esi
callq 0x54d0
movq %r15, %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq