// File: /workspace/github_c_makefile_star2_O1/derhass[P]glx_hook/glx_hook.c
// Function: override_create_context
static GLXContext override_create_context(Display *dpy, XVisualInfo *vis, const GLXFBConfig *fbconfig, GLXContext shareList, Bool direct, const int *attribs)
{
	GLXFBConfig internal_fbconfig;

	pthread_mutex_lock(&ctx_creation_opts.mutex);
	if (!(ctx_creation_opts.flags & GH_GLCTX_CREATE_INITIALIZED)) {
		context_creation_opts_init(&ctx_creation_opts);
		ctx_creation_opts.flags |= GH_GLCTX_CREATE_INITIALIZED;
	}
	pthread_mutex_unlock(&ctx_creation_opts.mutex);

	if (need_creation_override(&ctx_creation_opts)) {
		GLXContext ctx = NULL;
		int *attribs_override = get_override_attributes(&ctx_creation_opts, attribs);
		if (!attribs_override) {
			GH_verbose(GH_MSG_WARNING, "failed to generate context creation override attributes!\n");
			return NULL;
		}
		if (!fbconfig) {
			if (!vis) {
				GH_verbose(GH_MSG_WARNING, "create context attempt without Visual and FBConfig!\n");
				free(attribs_override);
				return NULL;	
			}
			/* find FBConfig vor Visual ... */
			fbconfig=get_fbconfig_for_visual(dpy, vis, &internal_fbconfig);
			if (!fbconfig) {
				GH_verbose(GH_MSG_WARNING, "create context: failed to get fbconfig for visual!\n");
				free(attribs_override);
				return NULL;	
			}
		}
		GH_GET_GL_PROC(glXCreateContextAttribsARB);
		if (GH_glXCreateContextAttribsARB) {
			ctx=GH_glXCreateContextAttribsARB(dpy, *fbconfig, shareList, direct, attribs_override);
		} else {
			GH_verbose(GH_MSG_WARNING, "failed to get glXCreateContextAttribsARB\n");
		}
		if (ctx == NULL) {
			GH_verbose(GH_MSG_WARNING, "overridden context creation failed!\n");
		} else {
			GH_verbose(GH_MSG_INFO, "created context %p with overriden attributes!\n", ctx);
		}
		free(attribs_override);
		return ctx;

	}
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %rbp
movl %r8d, 0x3c(%rsp)
movq %rcx, 0x48(%rsp)
movq %rdx, %r14
movq %rsi, 0x40(%rsp)
movq %rdi, 0x28(%rsp)
leaq 0x80bc(%rip), %rdi      # 0xb100
callq 0x21a0
testb $0x1, 0x80d8(%rip)      # 0xb128
movq %r14, 0x30(%rsp)
jne 0x32e6
xorps %xmm0, %xmm0
movups %xmm0, 0x80df(%rip)     # 0xb144
movl $0xffffffff, 0x80e5(%rip) # imm = 0xFFFFFFFF
leaq 0x45ba(%rip), %rdi      # 0x7630
xorl %esi, %esi
callq 0x5b7d
testl %eax, %eax
je 0x3092
movabsq $0x200000001, %rax      # imm = 0x200000001
movq %rax, 0x80ba(%rip)      # 0xb14c
leaq 0x45b8(%rip), %rdi      # 0x7651
xorl %esi, %esi
callq 0x5b7d
cmpl $0x2, %eax
je 0x30bd
cmpl $0x1, %eax
jne 0x30c4
movabsq $0x100000002, %rax      # imm = 0x100000002
movq %rax, 0x8091(%rip)      # 0xb14c
jmp 0x30c4
orb $0x2, 0x8064(%rip)      # 0xb128
leaq 0x45a9(%rip), %rdi      # 0x7674
xorl %esi, %esi
callq 0x5b7d
testl %eax, %eax
je 0x30e4
andb $-0x3, 0x8067(%rip)     # 0xb144
orb $0x2, 0x8064(%rip)      # 0xb148
leaq 0x45b5(%rip), %rdi      # 0x76a0
xorl %esi, %esi
callq 0x5b7d
testl %eax, %eax
je 0x3104
andb $-0x2, 0x8047(%rip)     # 0xb144
orb $0x1, 0x8044(%rip)      # 0xb148
leaq 0x45b8(%rip), %rdi      # 0x76c3
xorl %esi, %esi
callq 0x5b7d
testl %eax, %eax
je 0x3124
orb $0x2, 0x8027(%rip)      # 0xb144
andb $-0x3, 0x8024(%rip)     # 0xb148
leaq 0x45c1(%rip), %rdi      # 0x76ec
xorl %esi, %esi
callq 0x5b7d
testl %eax, %eax
je 0x3144
orb $0x1, 0x8007(%rip)      # 0xb144
andb $-0x2, 0x8004(%rip)     # 0xb148
leaq 0x45c1(%rip), %rdi      # 0x770c
xorl %esi, %esi
callq 0x5b7d
testl %eax, %eax
je 0x3160
movl $0x1, 0x7ff4(%rip)      # 0xb154
leaq 0x45c8(%rip), %rdi      # 0x772f
xorl %esi, %esi
callq 0x5b7d
testl %eax, %eax
je 0x317c
movl $0x0, 0x7fd8(%rip)      # 0xb154
movl 0x7faa(%rip), %esi      # 0xb12c
leaq 0x45c6(%rip), %rdi      # 0x774f
callq 0x5b7d
movl %eax, 0x7f98(%rip)      # 0xb12c
movl 0x7f96(%rip), %esi      # 0xb130
leaq 0x45c8(%rip), %rdi      # 0x7769
callq 0x5b7d
movl %eax, 0x7f84(%rip)      # 0xb130
movl 0x7f82(%rip), %esi      # 0xb134
leaq 0x45ca(%rip), %rdi      # 0x7783
callq 0x5b7d
movl %eax, 0x7f70(%rip)      # 0xb134
movl 0x7f6e(%rip), %esi      # 0xb138
leaq 0x45d0(%rip), %rdi      # 0x77a1
callq 0x5b7d
movl %eax, 0x7f5c(%rip)      # 0xb138
movl 0x7f5a(%rip), %esi      # 0xb13c
leaq 0x45d6(%rip), %rdi      # 0x77bf
callq 0x5b7d
movl %eax, 0x7f48(%rip)      # 0xb13c
movl 0x7f46(%rip), %esi      # 0xb140
leaq 0x45dc(%rip), %rdi      # 0x77dd
callq 0x5b7d
movl %eax, 0x7f34(%rip)      # 0xb140
movl 0x7f32(%rip), %esi      # 0xb144
leaq 0x45e2(%rip), %rdi      # 0x77fb
callq 0x5b7d
movl %eax, 0x7f20(%rip)      # 0xb144
movl 0x7f1e(%rip), %esi      # 0xb148
leaq 0x45e7(%rip), %rdi      # 0x7818
callq 0x5b7d
movl %eax, 0x7f0c(%rip)      # 0xb148
movl 0x7f0a(%rip), %esi      # 0xb14c
leaq 0x45ed(%rip), %rdi      # 0x7836
callq 0x5b7d
movl %eax, 0x7ef8(%rip)      # 0xb14c
movl 0x7ef6(%rip), %esi      # 0xb150
leaq 0x45f9(%rip), %rdi      # 0x785a
callq 0x5b7d
movl %eax, %r10d
movl %eax, 0x7ee1(%rip)      # 0xb150
movl 0x7eb7(%rip), %edx      # 0xb12c
movl 0x7eb5(%rip), %ecx      # 0xb130
movl 0x7eb2(%rip), %r8d      # 0xb134
movl 0x7eaf(%rip), %r9d      # 0xb138
movl 0x7eac(%rip), %r11d     # 0xb13c
movl 0x7eaa(%rip), %ebx      # 0xb140
movl 0x7ea7(%rip), %r14d     # 0xb144
movl 0x7ea4(%rip), %r15d     # 0xb148
movl 0x7ea1(%rip), %r12d     # 0xb14c
movl 0x7ea2(%rip), %r13d     # 0xb154
subq $0x8, %rsp
leaq 0x45c2(%rip), %rsi      # 0x787f
movl $0x4, %edi
xorl %eax, %eax
pushq %r13
pushq %r10
pushq %r12
pushq %r15
pushq %r14
pushq %rbx
pushq %r11
callq 0x2c88
addq $0x40, %rsp
orb $0x1, 0x7e47(%rip)      # 0xb128
movq 0x30(%rsp), %r14
leaq 0x7e13(%rip), %rdi      # 0xb100
callq 0x2120
cmpl $0x0, 0x7e33(%rip)      # 0xb12c
jns 0x3358
cmpl $0x0, 0x7e2e(%rip)      # 0xb130
jns 0x3358
cmpl $0x0, 0x7e29(%rip)      # 0xb134
jns 0x3358
cmpl $0x0, 0x7e24(%rip)      # 0xb138
jns 0x3358
cmpl $0x0, 0x7e1f(%rip)      # 0xb13c
jns 0x3358
cmpl $0x0, 0x7e1a(%rip)      # 0xb140
jns 0x3358
movl 0x7e1a(%rip), %eax      # 0xb148
orl 0x7e10(%rip), %eax      # 0xb144
jne 0x3358
cmpl $0x0, 0x7e0f(%rip)      # 0xb14c
jne 0x3358
cmpl $0x0, 0x7e0a(%rip)      # 0xb150
jne 0x3358
cmpl $0x0, 0x7e05(%rip)      # 0xb154
jns 0x3358
xorl %ebx, %ebx
jmp 0x3b0c
leaq 0x45a1(%rip), %rsi      # 0x7900
movl $0x0, 0x8(%rsp)
movl $0x3, %edi
xorl %eax, %eax
callq 0x2c88
movl $0x30, %ecx
movl $0x1, 0x4(%rsp)
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
testq %rbp, %rbp
je 0x3499
movl (%rbp), %r12d
movl $0x1, %eax
movl $0x0, %ebx
movl $0x0, %r15d
testl %r12d, %r12d
je 0x34a3
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
movl $0x1, 0x20(%rsp)
xorl %r13d, %r13d
xorl %r15d, %r15d
movq $0x0, 0x10(%rsp)
xorl %ebx, %ebx
movl $0x1, 0x4(%rsp)
movl $0x0, 0x8(%rsp)
movl %ebx, %r14d
movl %r13d, %eax
shlq $0x2, %rax
orq $0x4, %rax
movl (%rbp,%rax), %ebx
movl $0x3, %edi
leaq 0x452f(%rip), %rsi      # 0x792c
movl %r12d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2c88
cmpl $0x2093, %r12d          # imm = 0x2093
jle 0x3433
cmpl $0x2094, %r12d          # imm = 0x2094
je 0x3453
cmpl $0x31b3, %r12d          # imm = 0x31B3
je 0x3459
cmpl $0x9126, %r12d          # imm = 0x9126
jne 0x3445
movl %ebx, 0x4(%rsp)
jmp 0x3463
cmpl $0x2091, %r12d          # imm = 0x2091
je 0x345f
cmpl $0x2092, %r12d          # imm = 0x2092
je 0x3466
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
jmp 0x3463
movl %ebx, 0x8(%rsp)
jmp 0x3463
movl %ebx, 0xc(%rsp)
jmp 0x3463
movl %ebx, 0x20(%rsp)
movl %r14d, %ebx
movl 0x8(%rbp,%r13,4), %r12d
incl %r15d
addq $0x2, %r13
testl %r12d, %r12d
jne 0x33df
movq 0x10(%rsp), %rax
leal 0xc(,%rax,2), %eax
movslq %eax, %rcx
shlq $0x2, %rcx
movq 0x30(%rsp), %r14
movl 0x20(%rsp), %eax
jmp 0x34a3
movl $0x1, %eax
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %rcx, 0x10(%rsp)
cmpl $0x3, %eax
movl %eax, %r12d
jl 0x34c0
sete %al
cmpl $0x2, %ebx
setl %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x34ea
testb $0x2, 0x7c61(%rip)      # 0xb128
je 0x34ea
leaq 0x4484(%rip), %rsi      # 0x7954
movl $0x3, %edi
xorl %eax, %eax
callq 0x2c88
movl 0x4(%rsp), %eax
andl $-0x4, %eax
orl $0x2, %eax
movl %eax, 0x4(%rsp)
movl 0x7c44(%rip), %ecx      # 0xb134
testl %ecx, %ecx
js 0x3516
cmpl %ecx, %r12d
jge 0x3516
leaq 0x4481(%rip), %rsi      # 0x7981
movl $0x3, %edi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2c88
movl 0x7c1e(%rip), %r12d     # 0xb134
movl 0x7c1c(%rip), %ecx      # 0xb138
testl %ecx, %ecx
js 0x3558
movl 0x7c0e(%rip), %eax      # 0xb134
testl %eax, %eax
js 0x374c
cmpl %eax, %r12d
setle %al
cmpl %ecx, %ebx
setl %dl
testb %dl, %al
je 0x3558
leaq 0x4473(%rip), %rsi      # 0x79b7
movl $0x3, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x2c88
movl 0x7be0(%rip), %ebx      # 0xb138
movl 0x7bde(%rip), %ecx      # 0xb13c
testl %ecx, %ecx
js 0x3584
cmpl %ecx, %r12d
jle 0x3584
leaq 0x447f(%rip), %rsi      # 0x79ed
movl $0x3, %edi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2c88
movl 0x7bb8(%rip), %r12d     # 0xb13c
movl 0x7bb6(%rip), %ecx      # 0xb140
testl %ecx, %ecx
js 0x35bc
movl 0x7ba8(%rip), %eax      # 0xb13c
testl %eax, %eax
js 0x359d
cmpl %eax, %r12d
jl 0x35bc
cmpl %ecx, %ebx
jle 0x35bc
leaq 0x447b(%rip), %rsi      # 0x7a23
movl $0x3, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x2c88
movl 0x7b84(%rip), %ebx      # 0xb140
movl 0x7b6a(%rip), %ecx      # 0xb12c
testl %ecx, %ecx
js 0x35e3
leaq 0x448c(%rip), %rsi      # 0x7a59
movl $0x3, %edi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2c88
movl 0x7b49(%rip), %r12d     # 0xb12c
movl 0x7b47(%rip), %ecx      # 0xb130
testl %ecx, %ecx
js 0x360b
leaq 0x4495(%rip), %rsi      # 0x7a89
movl $0x3, %edi
movl %ebx, %edx
xorl %eax, %eax
callq 0x2c88
movl 0x7b27(%rip), %r13d     # 0xb130
jmp 0x360e
movl %ebx, %r13d
movl 0x7b30(%rip), %eax      # 0xb144
movl 0x7b2e(%rip), %ebx      # 0xb148
movl %eax, %ecx
orl %ebx, %ecx
je 0x3643
movl 0x8(%rsp), %edx
orl %edx, %eax
notl %ebx
andl %eax, %ebx
leaq 0x4488(%rip), %rsi      # 0x7ab9
movl $0x3, %edi
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2c88
movl %ebx, 0x8(%rsp)
movl 0x7b03(%rip), %eax      # 0xb14c
movl 0x7b01(%rip), %ebx      # 0xb150
movl %eax, %ecx
orl %ebx, %ecx
je 0x3678
movl 0x4(%rsp), %edx
orl %edx, %eax
notl %ebx
andl %eax, %ebx
leaq 0x447f(%rip), %rsi      # 0x7ae5
movl $0x3, %edi
movl %ebx, %ecx
xorl %eax, %eax
callq 0x2c88
movl %ebx, 0x4(%rsp)
movl %r13d, %ebx
movl 0x7ad3(%rip), %ecx      # 0xb154
testl %ecx, %ecx
movq %r14, %r13
js 0x36a9
leaq 0x4489(%rip), %rsi      # 0x7b18
movl $0x3, %edi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x2c88
movl 0x7aaf(%rip), %eax      # 0xb154
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
callq 0x2130
testq %rax, %rax
je 0x3734
leaq 0x44c8(%rip), %rsi      # 0x7b87
movl $0x3, %edi
movl %r12d, %edx
movl %ebx, %ecx
movq %rax, %r14
movl %ebx, 0x10(%rsp)
movl 0x8(%rsp), %ebx
movl %ebx, %r8d
movl 0x4(%rsp), %r13d
movl %r13d, %r9d
xorl %eax, %eax
callq 0x2c88
movl $0x2091, (%r14)         # imm = 0x2091
movl %r12d, 0x4(%r14)
movl $0x2092, 0x8(%r14)      # imm = 0x2092
movl 0x10(%rsp), %eax
movl %eax, 0xc(%r14)
movl $0x9126, 0x10(%r14)     # imm = 0x9126
movl %r13d, 0x14(%r14)
movl $0x2094, 0x18(%r14)     # imm = 0x2094
movl %ebx, 0x1c(%r14)
movl 0xc(%rsp), %eax
testl %eax, %eax
js 0x3759
movl $0x31b3, 0x20(%r14)     # imm = 0x31B3
movl %eax, 0x24(%r14)
movl $0xa, %eax
jmp 0x375e
leaq 0x4411(%rip), %rsi      # 0x7b4c
xorl %r14d, %r14d
movl $0x1, %edi
xorl %eax, %eax
callq 0x2c88
jmp 0x37b7
cmpl %ecx, %ebx
jl 0x353d
jmp 0x3558
movl $0x8, %eax
testl %r15d, %r15d
movq 0x30(%rsp), %r13
je 0x37ad
movl %r15d, %ecx
xorl %edx, %edx
movl (%rbp,%rdx,8), %esi
leal -0x2091(%rsi), %edi
cmpl $0x3, %edi
ja 0x3781
cmpl $0x2, %edi
jne 0x37a5
cmpl $0x31b3, %esi           # imm = 0x31B3
je 0x37a5
cmpl $0x9126, %esi           # imm = 0x9126
je 0x37a5
movl 0x4(%rbp,%rdx,8), %edi
movslq %eax, %r8
movl %esi, (%r14,%r8,4)
leal 0x2(%r8), %eax
movl %edi, 0x4(%r14,%r8,4)
incq %rdx
cmpq %rdx, %rcx
jne 0x376d
cltq
movq $0x0, (%r14,%rax,4)
testq %r14, %r14
je 0x3868
testq %r13, %r13
je 0x3882
leaq 0x79a0(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x79e3(%rip)      # 0xb1c0
jne 0x3828
leaq 0x798a(%rip), %rbx      # 0xb170
movq %rbx, %rdi
callq 0x2120
leaq 0x392d(%rip), %r15      # 0x7122
movq %r15, %rdi
callq 0x5d53
movq %rax, %r12
leaq 0x3d8f(%rip), %rsi      # 0x7596
movl $0x4, %edi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2c88
movq %rbx, %rdi
callq 0x21a0
movq %r12, 0x7998(%rip)      # 0xb1c0
leaq 0x7941(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x7984(%rip)      # 0xb1c0
je 0x3936
movq 0x7977(%rip), %rax      # 0xb1c0
movq (%r13), %rsi
movq 0x28(%rsp), %rdi
movq 0x48(%rsp), %rdx
movl 0x3c(%rsp), %ecx
movq %r14, %r8
callq *%rax
movq %rax, %rbx
jmp 0x394b
leaq 0x3c84(%rip), %rsi      # 0x74f3
xorl %ebx, %ebx
movl $0x2, %edi
xorl %eax, %eax
callq 0x2c88
jmp 0x3b0c
cmpq $0x0, 0x40(%rsp)
je 0x3977
leaq 0x78db(%rip), %rdi      # 0xb170
callq 0x21a0
cmpq $0x0, 0x79be(%rip)      # 0xb260
jne 0x38b7
leaq 0x430c(%rip), %rdi      # 0x7bb7
callq 0x3b1e
movq %rax, 0x79a9(%rip)      # 0xb260
leaq 0x78b2(%rip), %rbx      # 0xb170
movq %rbx, %rdi
callq 0x2120
movq %rbx, %rdi
callq 0x21a0
cmpq $0x0, 0x7992(%rip)      # 0xb268
jne 0x38eb
leaq 0x42e8(%rip), %rdi      # 0x7bc7
callq 0x3b1e
movq %rax, 0x797d(%rip)      # 0xb268
leaq 0x787e(%rip), %rbx      # 0xb170
movq %rbx, %rdi
callq 0x2120
movq %rbx, %rdi
callq 0x21a0
cmpq $0x0, 0x7966(%rip)      # 0xb270
jne 0x39a6
cmpq $0x0, 0x7880(%rip)      # 0xb198
je 0x3983
movq 0x7877(%rip), %rax      # 0xb198
leaq 0x42b4(%rip), %rsi      # 0x7bdc
movq $-0x1, %rdi
callq *%rax
movq %rax, %rbx
jmp 0x399f
leaq 0x3c75(%rip), %rsi      # 0x75b2
xorl %ebx, %ebx
movl $0x2, %edi
xorl %eax, %eax
callq 0x2c88
testq %rbx, %rbx
je 0x396b
leaq 0x3caa(%rip), %rsi      # 0x7601
movl $0x3, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2c88
jmp 0x3b04
leaq 0x3c6a(%rip), %rsi      # 0x75dc
jmp 0x3af8
leaq 0x3baf(%rip), %rsi      # 0x752d
jmp 0x3af6
leaq 0x3af3(%rip), %rsi      # 0x747d
leaq 0x424b(%rip), %rdx      # 0x7bdc
xorl %ebx, %ebx
movl $0x2, %edi
xorl %eax, %eax
callq 0x2c88
movq %rbx, 0x78ca(%rip)      # 0xb270
leaq 0x77c3(%rip), %rdi      # 0xb170
callq 0x2120
cmpq $0x0, 0x78a6(%rip)      # 0xb260
je 0x3ad0
cmpq $0x0, 0x78a0(%rip)      # 0xb268
je 0x3ad0
cmpq $0x0, 0x789a(%rip)      # 0xb270
je 0x3ad0
movq 0x787d(%rip), %rax      # 0xb260
xorl %ebp, %ebp
leaq 0x24(%rsp), %rdx
movq 0x28(%rsp), %rdi
xorl %esi, %esi
callq *%rax
movq %rax, %rbx
testq %rax, %rax
je 0x3aba
cmpl $0x0, 0x24(%rsp)
jle 0x3aba
leaq 0x1c(%rsp), %r15
xorl %r13d, %r13d
xorl %ebp, %ebp
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
movq 0x7845(%rip), %rax      # 0xb268
movq (%rbx,%r13,8), %rsi
movq 0x28(%rsp), %rdi
movl $0x800b, %edx           # imm = 0x800B
movq %r15, %rcx
callq *%rax
testl %eax, %eax
je 0x3a52
movl $0x2, %edi
leaq 0x41fd(%rip), %rsi      # 0x7c43
xorl %eax, %eax
callq 0x2c88
movb $0x1, %r12b
jmp 0x3aa4
movl 0x1c(%rsp), %ecx
movl $0x4, %edi
leaq 0x41c3(%rip), %rsi      # 0x7c25
movl %r13d, %edx
xorl %eax, %eax
callq 0x2c88
movl 0x1c(%rsp), %ecx
movb $0x1, %r12b
movq 0x40(%rsp), %rax
cmpl 0x8(%rax), %ecx
jne 0x3aa4
xorl %r12d, %r12d
movl $0x3, %edi
leaq 0x4193(%rip), %rsi      # 0x7c1f
movl %r13d, %edx
xorl %eax, %eax
callq 0x2c88
movq (%rbx,%r13,8), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rbp
testb %r12b, %r12b
je 0x3aba
incq %r13
movslq 0x24(%rsp), %rax
cmpq %rax, %r13
jl 0x3a14
testq %rbx, %rbx
je 0x3acb
movq 0x77aa(%rip), %rax      # 0xb270
movq %rbx, %rdi
callq *%rax
movq %rbp, %r13
jmp 0x3ae6
leaq 0x410b(%rip), %rsi      # 0x7be2
xorl %r13d, %r13d
movl $0x1, %edi
xorl %eax, %eax
callq 0x2c88
testq %r13, %r13
jne 0x37c9
leaq 0x3a6c(%rip), %rsi      # 0x7562
xorl %ebx, %ebx
movl $0x2, %edi
xorl %eax, %eax
callq 0x2c88
movq %r14, %rdi
callq 0x2040
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq