// File: /workspace/github_c_makefile_star2_O2/derhass[P]glx_hook/glx_hook.c
// Function: make_current
static void
make_current(GLXContext ctx, Display *dpy, GLXDrawable draw, GLXDrawable read)
{
	gl_context_t *glc;

	glc=(gl_context_t*)pthread_getspecific(ctx_current);
	if (glc) {
		/* old context */
		glc->flags &= ~GH_GL_CURRENT;
		GH_verbose(GH_MSG_DEBUG, "unbound context %p\n",glc->ctx);
	}
	
	if (ctx) {
		glc=find_ctx(ctx);

		if (glc == NULL) {
			GH_verbose(GH_MSG_WARNING, "app tried to make current non-existing context %p\n",ctx);
		} else {
			glc->draw=draw;
			glc->read=read;
			glc->flags |= GH_GL_CURRENT;
			GH_verbose(GH_MSG_DEBUG, "made current context %p\n",ctx);
			if (glc->flags & GH_GL_NEVER_CURRENT) {
				unsigned int ft_delay=get_envui("GH_FRAMETIME_DELAY", 10);
				unsigned int ft_frames=get_envui("GH_FRAMETIME_FRAMES", 1000);
				GH_frametime_mode ft_mode=(GH_frametime_mode)get_envi("GH_FRAMETIME", (int)GH_FRAMETIME_NONE);
				int latency=get_envi("GH_LATENCY", GH_LATENCY_NOP);
				int latency_manual_wait=get_envi("GH_LATENCY_MANUAL_WAIT", -1);
				unsigned int latency_gl_wait_timeout=get_envui("GH_LATENCY_GL_WAIT_TIMEOUT_USECS", 1000000);
				unsigned int latency_gl_wait_interval=get_envui("GH_LATENCY_GL_WAIT_USECS", 0);
				unsigned int latency_self_wait_interval=get_envui("GH_LATENCY_WAIT_USECS", 0);
				/* made current for the first time */
				glc->flags &= ~ GH_GL_NEVER_CURRENT;

				glc->swap_sleep_usecs=(useconds_t)get_envui("GH_SWAP_SLEEP_USECS",0);
				frametimes_init(&glc->frametimes, ft_mode, ft_delay, GH_FRAMETIME_COUNT, ft_frames, glc->num);
				frametimes_init_base(&glc->frametimes);
				latency_init(&glc->latency, latency, latency_manual_wait, latency_gl_wait_timeout, latency_gl_wait_interval, latency_self_wait_interval);
				swapbuffer_omission_init_gl(&glc->swapbuffer_omission);
				if (glc->inject_swapinterval != GH_SWAP_DONT_SET) {
					GH_GET_PTR_GL(glXSwapIntervalEXT);
					if (GH_glXSwapIntervalEXT) {
						GH_verbose(GH_MSG_INFO, "injecting swap interval: %d\n",
								glc->inject_swapinterval);
						GH_glXSwapIntervalEXT(dpy, glc->draw, glc->inject_swapinterval);
					} else {
						GH_GET_PTR_GL(glXSwapIntervalSGI);
						if (GH_glXSwapIntervalEXT) {
							GH_verbose(GH_MSG_INFO, "injecting swap interval: %d\n",
									glc->inject_swapinterval);
							GH_glXSwapIntervalSGI(glc->inject_swapinterval);
						}
					}
				}
				if (glc->flags & GH_GL_INJECT_DEBUG) {
					GH_GET_PTR_GL(glDebugMessageCallback);
					if (GH_glDebugMessageCallback) {
						GH_glDebugMessageCallback(GH_debug_callback, glc);
						GH_verbose(GH_MSG_INFO, "injecting debug callback [core]\n");
					} else {
						GH_GET_PTR_GL(glDebugMessageCallbackARB);
						if (GH_glDebugMessageCallbackARB) {
							GH_glDebugMessageCallbackARB(GH_debug_callback, glc);
							GH_verbose(GH_MSG_INFO, "injecting debug callback [ARB]\n");
						} else {
							GH_GET_PTR_GL(glDebugMessageCallbackKHR);
							if (GH_glDebugMessageCallbackKHR) {
								GH_glDebugMessageCallbackKHR(GH_debug_callback, glc);
								GH_verbose(GH_MSG_INFO, "injecting debug callback [KHR]\n");
							} else {
								GH_GET_PTR_GL(glDebugMessageCallbackAMD);
								if (GH_glDebugMessageCallbackAMD) {
									GH_glDebugMessageCallbackAMD(GH_debug_callback_AMD, glc);
									GH_verbose(GH_MSG_INFO, "injecting debug callback [AMD]\n");
								} else {
									GH_verbose(GH_MSG_WARNING, "failed ot iject debug message callback\n");
								}
							}
						}
					}
				}
			}
		}
	} else {
		glc=NULL;
	}

	pthread_setspecific(ctx_current, glc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1028, %rsp           # imm = 0x1028
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %r15
movl 0x6edf(%rip), %edi      # 0xb208
callq 0x2070
testq %rax, %rax
je 0x434b
andb $-0x2, 0x18(%rax)
movq (%rax), %rdx
leaq 0x3e31(%rip), %rsi      # 0x8172
pushq $0x4
popq %rdi
xorl %eax, %eax
callq 0x2c49
testq %r15, %r15
je 0x4373
leaq 0x6f39(%rip), %rdi      # 0xb290
callq 0x21a0
movq 0x6fad(%rip), %rbx      # 0xb310
testq %rbx, %rbx
je 0x437a
cmpq %r15, (%rbx)
je 0x43a1
movq 0x28(%rbx), %rbx
jmp 0x4363
xorl %ebx, %ebx
jmp 0x4eb2
leaq 0x6f0f(%rip), %rdi      # 0xb290
callq 0x2120
leaq 0x3df9(%rip), %rsi      # 0x8186
xorl %ebx, %ebx
pushq $0x2
popq %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2c49
jmp 0x4eb2
leaq 0x6ee8(%rip), %rdi      # 0xb290
callq 0x2120
movq %r13, 0x8(%rbx)
movq %r12, 0x10(%rbx)
orb $0x1, 0x18(%rbx)
leaq 0x3df9(%rip), %rsi      # 0x81b9
pushq $0x4
popq %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2c49
testb $0x2, 0x18(%rbx)
je 0x4eb2
leaq 0x3df4(%rip), %rdi      # 0x81d2
pushq $0xa
popq %rsi
callq 0x6227
movl %eax, %r15d
leaq 0x3df5(%rip), %rdi      # 0x81e5
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x6227
movl %eax, %r12d
leaq 0x3df5(%rip), %rdi      # 0x81f9
xorl %esi, %esi
callq 0x5c27
movl %eax, %r13d
leaq 0x3df1(%rip), %rdi      # 0x8206
pushq $-0x2
popq %rsi
callq 0x5c27
movl %eax, 0x1c(%rsp)
leaq 0x3de9(%rip), %rdi      # 0x8211
pushq $-0x1
popq %rsi
callq 0x5c27
movl %eax, 0x18(%rsp)
leaq 0x3ded(%rip), %rdi      # 0x8228
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x6227
movl %eax, 0x14(%rsp)
leaq 0x3df9(%rip), %rdi      # 0x8249
xorl %esi, %esi
callq 0x6227
movl %eax, 0x10(%rsp)
leaq 0x3e00(%rip), %rdi      # 0x8262
xorl %esi, %esi
callq 0x6227
movl %eax, 0xc(%rsp)
andb $-0x3, 0x18(%rbx)
leaq 0x3e00(%rip), %rdi      # 0x8278
xorl %esi, %esi
callq 0x6227
movl %eax, 0x810(%rbx)
movl 0x20(%rbx), %eax
movl %eax, 0x8(%rsp)
andl $0x0, 0x48(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rbx)
cmpl $0x2, %r13d
movq %r14, (%rsp)
jb 0x475f
leaq 0x6cc4(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6e17(%rip)      # 0xb2d0
jne 0x4507
leaq 0x6cae(%rip), %rdi      # 0xb170
callq 0x2120
leaq 0x39b0(%rip), %rbp      # 0x7e7e
movq %rbp, %rdi
callq 0x5e63
movq %rax, %r14
leaq 0x30b6(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
leaq 0x6c79(%rip), %rdi      # 0xb170
callq 0x21a0
movq %r14, 0x6dcd(%rip)      # 0xb2d0
movq (%rsp), %r14
leaq 0x6c62(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6db5(%rip)      # 0xb2d0
je 0x4716
leaq 0x6c48(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6da3(%rip)      # 0xb2d8
jne 0x4583
leaq 0x6c32(%rip), %rdi      # 0xb170
callq 0x2120
leaq 0x3954(%rip), %rbp      # 0x7e9e
movq %rbp, %rdi
callq 0x5e63
movq %rax, %r14
leaq 0x303a(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
leaq 0x6bfd(%rip), %rdi      # 0xb170
callq 0x21a0
movq %r14, 0x6d59(%rip)      # 0xb2d8
movq (%rsp), %r14
leaq 0x6be6(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6d41(%rip)      # 0xb2d8
je 0x471f
leaq 0x6bcc(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6d2f(%rip)      # 0xb2e0
jne 0x45ff
leaq 0x6bb6(%rip), %rdi      # 0xb170
callq 0x2120
leaq 0x38e8(%rip), %rbp      # 0x7eae
movq %rbp, %rdi
callq 0x5e63
movq %rax, %r14
leaq 0x2fbe(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
leaq 0x6b81(%rip), %rdi      # 0xb170
callq 0x21a0
movq %r14, 0x6ce5(%rip)      # 0xb2e0
movq (%rsp), %r14
leaq 0x6b6a(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6ccd(%rip)      # 0xb2e0
je 0x4728
leaq 0x6b50(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6cbb(%rip)      # 0xb2e8
jne 0x467b
leaq 0x6b3a(%rip), %rdi      # 0xb170
callq 0x2120
leaq 0x387c(%rip), %rbp      # 0x7ebe
movq %rbp, %rdi
callq 0x5e63
movq %rax, %r14
leaq 0x2f42(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
leaq 0x6b05(%rip), %rdi      # 0xb170
callq 0x21a0
movq %r14, 0x6c71(%rip)      # 0xb2e8
movq (%rsp), %r14
leaq 0x6aee(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6c59(%rip)      # 0xb2e8
je 0x4731
leaq 0x6ad4(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6c47(%rip)      # 0xb2f0
jne 0x46f7
leaq 0x6abe(%rip), %rdi      # 0xb170
callq 0x2120
leaq 0x380f(%rip), %rbp      # 0x7ecd
movq %rbp, %rdi
callq 0x5e63
movq %rax, %r14
leaq 0x2ec6(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
leaq 0x6a89(%rip), %rdi      # 0xb170
callq 0x21a0
movq %r14, 0x6bfd(%rip)      # 0xb2f0
movq (%rsp), %r14
leaq 0x6a72(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6be5(%rip)      # 0xb2f0
jne 0x475f
leaq 0x37b9(%rip), %rdx      # 0x7ecd
jmp 0x4738
leaq 0x3761(%rip), %rdx      # 0x7e7e
jmp 0x4738
leaq 0x3778(%rip), %rdx      # 0x7e9e
jmp 0x4738
leaq 0x377f(%rip), %rdx      # 0x7eae
jmp 0x4738
leaq 0x3786(%rip), %rdx      # 0x7ebe
leaq 0x374c(%rip), %rsi      # 0x7e8b
pushq $0x2
popq %rbp
movl %ebp, %edi
xorl %eax, %eax
callq 0x2c49
leaq 0x35f3(%rip), %rsi      # 0x7d45
movl %ebp, %edi
xorl %eax, %eax
callq 0x2c49
pushq $0x1
popq %r13
leaq 0x30(%rbx), %rbp
testl %r12d, %r12d
je 0x4810
testl %r15d, %r15d
je 0x4810
testl %r13d, %r13d
je 0x4810
movl %r13d, 0x30(%rbx)
movl %r15d, 0x34(%rbx)
movl $0x2, 0x38(%rbx)
movl %r12d, 0x3c(%rbx)
leal 0x1(%r12), %eax
imulq $0x30, %rax, %rdi
callq 0x2130
movq %rax, 0x50(%rbx)
testq %rax, %rax
je 0x487d
movl %r15d, %edi
shlq $0x6, %rdi
callq 0x2130
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0x488e
leaq 0x35aa(%rip), %rsi      # 0x7d76
xorl %r14d, %r14d
pushq $0x4
popq %rdi
pushq $0x2
popq %r8
movl %r13d, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x2c49
leal (%r15,%r15), %eax
shlq $0x5, %rax
xorps %xmm0, %xmm0
cmpq %r14, %rax
je 0x4808
movq 0x40(%rbx), %rcx
movups %xmm0, 0xc(%rcx,%r14)
movups %xmm0, (%rcx,%r14)
addq $0x20, %r14
jmp 0x47ee
pushq $0x1
popq %r13
movq (%rsp), %r14
testl %r12d, %r12d
je 0x48a4
testl %r15d, %r15d
je 0x48a4
testl %r13d, %r13d
je 0x48a4
cmpl $0x0, (%rbp)
je 0x48b5
leaq 0x3613(%rip), %rdi      # 0x7e4b
leaq 0x361e(%rip), %rsi      # 0x7e5d
callq 0x5f20
testq %rax, %rax
je 0x4b79
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
movl 0x8(%rsp), %edx
callq 0x5c47
leaq 0x3613(%rip), %rsi      # 0x7e7b
movq %r14, %rdi
movq (%rsp), %r14
callq 0x2150
movq %rax, 0x60(%rbx)
jmp 0x4b7d
leaq 0x3578(%rip), %rsi      # 0x7dfc
pushq $0x2
popq %rcx
movl %ecx, %edi
movl %r12d, %edx
jmp 0x489d
leaq 0x351f(%rip), %rsi      # 0x7db4
pushq $0x2
popq %rcx
movl %ecx, %edi
movl %r15d, %edx
xorl %eax, %eax
callq 0x2c49
andq $0x0, 0x50(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
andq $0x0, 0x10(%rbp)
leaq 0x68(%rbx), %rdi
movl 0x1c(%rsp), %esi
movl 0x18(%rsp), %edx
movl 0x14(%rsp), %ecx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
callq 0x5f32
cmpq $0x0, 0xb8(%rbx)
je 0x4c5c
leaq 0x6887(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x69da(%rip)      # 0xb2d0
jne 0x4943
leaq 0x6871(%rip), %r14      # 0xb170
movq %r14, %rdi
callq 0x2120
leaq 0x3570(%rip), %r15      # 0x7e7e
movq %r15, %rdi
callq 0x5e63
movq %rax, %r12
leaq 0x2c76(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
movq %r14, %rdi
movq (%rsp), %r14
callq 0x21a0
movq %r12, 0x698d(%rip)      # 0xb2d0
leaq 0x6826(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6979(%rip)      # 0xb2d0
je 0x4b55
leaq 0x680c(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6967(%rip)      # 0xb2d8
jne 0x49be
leaq 0x67f6(%rip), %r14      # 0xb170
movq %r14, %rdi
callq 0x2120
leaq 0x3515(%rip), %r15      # 0x7e9e
movq %r15, %rdi
callq 0x5e63
movq %rax, %r12
leaq 0x2bfb(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
movq %r14, %rdi
movq (%rsp), %r14
callq 0x21a0
movq %r12, 0x691a(%rip)      # 0xb2d8
leaq 0x67ab(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6906(%rip)      # 0xb2d8
je 0x4b61
leaq 0x6791(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x68f4(%rip)      # 0xb2e0
jne 0x4a39
leaq 0x677b(%rip), %r14      # 0xb170
movq %r14, %rdi
callq 0x2120
leaq 0x34aa(%rip), %r15      # 0x7eae
movq %r15, %rdi
callq 0x5e63
movq %rax, %r12
leaq 0x2b80(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
movq %r14, %rdi
movq (%rsp), %r14
callq 0x21a0
movq %r12, 0x68a7(%rip)      # 0xb2e0
leaq 0x6730(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6893(%rip)      # 0xb2e0
je 0x4b6d
leaq 0x6716(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6881(%rip)      # 0xb2e8
jne 0x4ab4
leaq 0x6700(%rip), %r14      # 0xb170
movq %r14, %rdi
callq 0x2120
leaq 0x343f(%rip), %r15      # 0x7ebe
movq %r15, %rdi
callq 0x5e63
movq %rax, %r12
leaq 0x2b05(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
movq %r14, %rdi
movq (%rsp), %r14
callq 0x21a0
movq %r12, 0x6834(%rip)      # 0xb2e8
leaq 0x66b5(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6820(%rip)      # 0xb2e8
je 0x4c16
leaq 0x669b(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x680e(%rip)      # 0xb2f0
jne 0x4b2f
leaq 0x6685(%rip), %r14      # 0xb170
movq %r14, %rdi
callq 0x2120
leaq 0x33d3(%rip), %r15      # 0x7ecd
movq %r15, %rdi
callq 0x5e63
movq %rax, %r12
leaq 0x2a8a(%rip), %rsi      # 0x7596
pushq $0x4
popq %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c49
movq %r14, %rdi
movq (%rsp), %r14
callq 0x21a0
movq %r12, 0x67c1(%rip)      # 0xb2f0
leaq 0x663a(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x67ad(%rip)      # 0xb2f0
jne 0x4c5c
leaq 0x337d(%rip), %rdx      # 0x7ecd
jmp 0x4c1d
leaq 0x3322(%rip), %rdx      # 0x7e7e
jmp 0x4c1d
leaq 0x3336(%rip), %rdx      # 0x7e9e
jmp 0x4c1d
leaq 0x333a(%rip), %rdx      # 0x7eae
jmp 0x4c1d
movq 0x60(%rbx), %rax
testq %rax, %rax
jne 0x4b90
movq 0x6467(%rip), %rax      # 0xaff0
movq (%rax), %rax
movq %rax, 0x60(%rbx)
movl (%rbp), %edx
testl %edx, %edx
je 0x48b5
movq 0x50(%rbx), %r12
movl 0x38(%rbx), %eax
imull 0x3c(%rbx), %eax
imulq $0x18, %rax, %r13
leaq (%r12,%r13), %r15
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movups %xmm0, 0xc(%r14)
movaps %xmm0, (%r14)
movq %r14, %rdi
movq %r15, %rsi
callq 0x63d4
movl 0x30(%rbx), %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x63d4
leaq (%r12,%r13), %rax
addq $0x18, %rax
pushq $0x1
popq %rcx
movl 0x38(%rbx), %edx
cmpq %rdx, %rcx
jae 0x4c03
movq 0x10(%r15), %rdx
movq %rdx, 0x10(%rax)
movups (%r15), %xmm0
movups %xmm0, (%rax)
incq %rcx
addq $0x18, %rax
jmp 0x4be3
leaq 0x20(%rsp), %rdi
callq 0x6389
movq (%rsp), %r14
jmp 0x48b5
leaq 0x32a1(%rip), %rdx      # 0x7ebe
leaq 0x3267(%rip), %rsi      # 0x7e8b
pushq $0x2
popq %rbp
movl %ebp, %edi
xorl %eax, %eax
callq 0x2c49
leaq 0x371b(%rip), %rsi      # 0x8352
movl %ebp, %edi
xorl %eax, %eax
callq 0x2c49
andq $0x0, 0xb8(%rbx)
leaq 0x33e1(%rip), %rdi      # 0x8030
xorl %esi, %esi
callq 0x5c27
movl %eax, 0x98(%rbx)
xorl %eax, %eax
cmpl 0x1c(%rbx), %eax
jo 0x4d2e
leaq 0x6502(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x65ad(%rip)      # 0xb228
jne 0x4c90
leaq 0x2623(%rip), %rdi      # 0x72a7
callq 0x3991
movq %rax, 0x6598(%rip)      # 0xb228
leaq 0x64d9(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6584(%rip)      # 0xb228
je 0x4ccf
movl 0x1c(%rbx), %edx
leaq 0x35dc(%rip), %rsi      # 0x828c
pushq $0x3
popq %rdi
xorl %eax, %eax
callq 0x2c49
movq 0x6567(%rip), %rax      # 0xb228
movq 0x8(%rbx), %rsi
movl 0x1c(%rbx), %edx
movq %r14, %rdi
callq *%rax
jmp 0x4d2e
leaq 0x649a(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x654d(%rip)      # 0xb230
jne 0x4cf8
leaq 0x25ce(%rip), %rdi      # 0x72ba
callq 0x3991
movq %rax, 0x6538(%rip)      # 0xb230
leaq 0x6471(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x651c(%rip)      # 0xb228
je 0x4d2e
movl 0x1c(%rbx), %edx
leaq 0x3574(%rip), %rsi      # 0x828c
pushq $0x3
popq %rdi
xorl %eax, %eax
callq 0x2c49
movq 0x6507(%rip), %rax      # 0xb230
movl 0x1c(%rbx), %edi
callq *%rax
testb $0x8, 0x18(%rbx)
je 0x4eb2
leaq 0x6431(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x64b4(%rip)      # 0xb200
jne 0x4d61
leaq 0x243f(%rip), %rdi      # 0x7194
callq 0x3991
movq %rax, 0x649f(%rip)      # 0xb200
leaq 0x6408(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x648b(%rip)      # 0xb200
je 0x4d96
movq 0x6482(%rip), %rax      # 0xb200
leaq 0x287(%rip), %rdi       # 0x500c
movq %rbx, %rsi
callq *%rax
leaq 0x3518(%rip), %rsi      # 0x82a9
jmp 0x4ea8
leaq 0x63d3(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6466(%rip)      # 0xb210
jne 0x4dbf
leaq 0x2449(%rip), %rdi      # 0x71fc
callq 0x3991
movq %rax, 0x6451(%rip)      # 0xb210
leaq 0x63aa(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x643d(%rip)      # 0xb210
je 0x4df4
movq 0x6434(%rip), %rax      # 0xb210
leaq 0x229(%rip), %rdi       # 0x500c
movq %rbx, %rsi
callq *%rax
leaq 0x34db(%rip), %rsi      # 0x82ca
jmp 0x4ea8
leaq 0x6375(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x6410(%rip)      # 0xb218
jne 0x4e1d
leaq 0x2424(%rip), %rdi      # 0x7235
callq 0x3991
movq %rax, 0x63fb(%rip)      # 0xb218
leaq 0x634c(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x63e7(%rip)      # 0xb218
je 0x4e4f
movq 0x63de(%rip), %rax      # 0xb218
leaq 0x1cb(%rip), %rdi       # 0x500c
movq %rbx, %rsi
callq *%rax
leaq 0x349d(%rip), %rsi      # 0x82ea
jmp 0x4ea8
leaq 0x631a(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x63bd(%rip)      # 0xb220
jne 0x4e78
leaq 0x2402(%rip), %rdi      # 0x726e
callq 0x3991
movq %rax, 0x63a8(%rip)      # 0xb220
leaq 0x62f1(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x6394(%rip)      # 0xb220
je 0x4ed2
movq 0x638b(%rip), %rax      # 0xb220
leaq 0x480(%rip), %rdi       # 0x531c
movq %rbx, %rsi
callq *%rax
leaq 0x3462(%rip), %rsi      # 0x830a
pushq $0x3
popq %rdi
xorl %eax, %eax
callq 0x2c49
movl 0x6350(%rip), %edi      # 0xb208
movq %rbx, %rsi
callq 0x21b0
addq $0x1028, %rsp           # imm = 0x1028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3451(%rip), %rsi      # 0x832a
pushq $0x2
jmp 0x4eaa