// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/ssa.c
// Function: ssa_convert
void ssa_convert(struct entrypoint *ep)
{
	struct basic_block *bb;
	pseudo_t pseudo;
	int first, last;

	// calculate the number of BBs
	first = ep->entry->bb->nr;
	last = first;
	FOR_EACH_PTR(ep->bbs, bb) {
		int nr = bb->nr;
		if (nr > last)
			last = nr;
		bb->phi_map = NULL;
	} END_FOR_EACH_PTR(bb);

	// try to promote memory accesses to pseudos
	stores = NULL;
	FOR_EACH_PTR(ep->accesses, pseudo) {
		ssa_convert_one_var(ep, pseudo->sym);
	} END_FOR_EACH_PTR(pseudo);

	// rename the converted accesses
	phis_all = phis_used = NULL;
	ssa_rename_insns(ep);
	ssa_rename_phis(ep);

	// remove now dead stores
	remove_dead_stores(stores);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, 0x20(%rsp)
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x2a851
movq %rax, %rcx
movzwl (%rcx), %esi
testb %sil, %sil
jle 0x2a848
xorl %edx, %edx
movq 0x18(%rcx,%rdx,8), %rdi
movzwl %si, %esi
cmpl $0x100, %esi            # imm = 0x100
jb 0x2a832
testq %rdi, %rdi
je 0x2a83a
movq $0x0, 0x58(%rdi)
incq %rdx
movl (%rcx), %esi
movsbq %sil, %rdi
cmpq %rdi, %rdx
jl 0x2a81d
movq 0x10(%rcx), %rcx
cmpq %rax, %rcx
jne 0x2a813
movq $0x0, 0x4118c(%rip) # 0x6b9e8
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2af92
xorl %r13d, %r13d
leaq 0x666fb(%rip), %rbx     # 0x90f78
movq 0x38(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0x2af83
xorl %r15d, %r15d
movq %rdx, 0x30(%rsp)
movq 0x18(%rdx,%r15,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2a8a9
testq %rcx, %rcx
je 0x2a90f
movq 0x18(%rcx), %rbp
movq (%rbx), %rsi
incq %rsi
movq %rsi, (%rbx)
movq %r13, 0x50(%rsp)
movq %r13, 0x48(%rsp)
movq 0x68(%rbp), %rdi
movq 0xd8(%rbp), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
setne %al
btl $0xa, %edi
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2a90a
andq $0x11c, %rdi            # imm = 0x11C
je 0x2a926
testb $0x1c, %dil
jne 0x2a90a
xorl %edx, %edx
testq %rdi, %rdi
sete %dl
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x3c517
movq 0x30(%rsp), %rdx
incq %r15
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jl 0x2a895
jmp 0x2af83
cmpb $0x3, (%rbp)
movq %rbp, %rax
jne 0x2a933
movq 0x60(%rbp), %rax
movzbl (%rax), %ecx
cmpl $0xd, %ecx
movq %rsi, (%rsp)
ja 0x2add1
movl $0x2a10, %edx           # imm = 0x2A10
btl %ecx, %edx
jae 0x2aaa4
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movb $0x1, %dl
testq %rax, %rax
je 0x2ab4c
movq %rax, %rbx
xorl %edi, %edi
xorl %r8d, %r8d
movq %r15, 0x28(%rsp)
movq %rbp, 0x8(%rsp)
movq %rax, 0x18(%rsp)
movzwl (%rbx), %eax
testb %al, %al
jle 0x2aa8a
xorl %r13d, %r13d
movq 0x18(%rbx,%r13,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2a9a2
testq %rcx, %rcx
je 0x2aa78
movq (%rcx), %rcx
movl (%rcx), %eax
andl $0x7f, %eax
cmpl $0x3f, %eax
je 0x2aa12
movq 0x8(%rcx), %r14
cmpl $0x43, %eax
je 0x2a9f4
cmpl $0x44, %eax
jne 0x2aa23
cmpq %rsi, 0x8(%r14)
je 0x2a9f4
movq %rsi, 0x8(%r14)
movq %rdi, %r12
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
movl %edx, %r15d
movq %r8, %rbp
callq 0x2285b
movq %rbp, %r8
movq 0x8(%rsp), %rbp
movl %r15d, %edx
movq 0x28(%rsp), %r15
movq %r12, %rdi
movq (%rsp), %rsi
xorl %r12d, %r12d
movb $0x1, %al
testb $0x1, %dl
je 0x2aa70
testq %r8, %r8
je 0x2aa6d
xorl %r12d, %r12d
cmpq %r14, %r8
movzbl %dl, %edx
cmovnel %r12d, %edx
jmp 0x2aa70
orq $0x100, %rdi            # imm = 0x100
movl $0x2, %r12d
xorl %eax, %eax
jmp 0x2aa70
movq %rdi, %r14
movq 0x18(%rbp), %rdi
movl %edx, %r15d
movq %r8, %rbp
callq 0x2e465
movq 0x8(%rsp), %rcx
movq 0x4(%rcx), %rdi
xorl %r12d, %r12d
leaq 0x1dbea(%rip), %rsi     # 0x48632
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq %rbp, %r8
movq 0x8(%rsp), %rbp
movl %r15d, %edx
movq 0x28(%rsp), %r15
movq %r14, %rdi
movq (%rsp), %rsi
movb $0x1, %al
jmp 0x2aa70
movq %r14, %r8
testb %al, %al
je 0x2ab57
incq %r13
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0x2a98a
movq 0x10(%rbx), %rbx
movq 0x18(%rsp), %rax
cmpq %rax, %rbx
jne 0x2a97c
xorl %r12d, %r12d
jmp 0x2ab57
cmpl $0x7, %ecx
je 0x2adf0
cmpl $0x8, %ecx
jne 0x2add1
movq 0x98(%rax), %rcx
testq %rcx, %rcx
je 0x2af00
movq %rcx, %rdx
movzwl (%rdx), %esi
movsbl %sil, %edi
testw %di, %di
jle 0x2ab3c
movzwl %di, %edi
xorl %r8d, %r8d
movzwl %si, %r10d
movq 0x18(%rdx,%r8,8), %r9
cmpl $0x100, %r10d           # imm = 0x100
jb 0x2aaf2
testq %r9, %r9
je 0x2ab20
movl 0x50(%r9), %r10d
cmpl 0x50(%rax), %r10d
jne 0x2aef8
cmpb $0x3, (%r9)
jne 0x2ab0a
movq 0x60(%r9), %r9
movzbl (%r9), %r10d
cmpl $0xe, %r10d
ja 0x2ab2a
movl $0x6210, %r11d          # imm = 0x6210
btl %r10d, %r11d
jae 0x2ab2a
incq %r8
cmpq %r8, %rdi
jne 0x2aadb
jmp 0x2ab3c
leaq 0x41347(%rip), %r10     # 0x6be78
cmpq %r10, 0x60(%r9)
je 0x2ab20
jmp 0x2aef8
movq 0x10(%rdx), %rdx
cmpq %rcx, %rdx
jne 0x2aac9
movb $0x1, %al
jmp 0x2aefa
movl $0x3, %r12d
xorl %edi, %edi
xorl %r8d, %r8d
cmpl $0x3, %r12d
movl $0x0, %r13d
leaq 0x66410(%rip), %rbx     # 0x90f78
je 0x2ab7d
cmpl $0x2, %r12d
je 0x2a8ed
testl %r12d, %r12d
jne 0x2a90a
testb $0x1, %dl
je 0x2ad4c
testq %r8, %r8
je 0x2a90a
movq 0x28(%r8), %r9
xorl %ebx, %ebx
testq %r9, %r9
je 0x2af17
movq %r9, %r14
xorl %r12d, %r12d
movq 0x10(%rsp), %r8
movq %r9, 0x8(%rsp)
movzwl (%r14), %eax
testb %al, %al
jle 0x2ad37
xorl %r13d, %r13d
movq 0x18(%r14,%r13,8), %rbp
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2abd1
testq %rbp, %rbp
je 0x2abde
cmpq $0x0, 0x8(%rbp)
je 0x2abde
cmpq %r8, 0x30(%rbp)
je 0x2abf2
incq %r13
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0x2abbd
jmp 0x2ad37
movl (%rbp), %eax
movl %eax, %ecx
andl $0x7f, %ecx
cmpl $0x44, %ecx
je 0x2acad
cmpl $0x43, %ecx
jne 0x2abde
testq %r12, %r12
je 0x2acb7
xorl (%r12), %eax
cmpl $0xff, %eax
ja 0x2ad02
movq 0x38(%r12), %rax
cmpq 0x38(%rbp), %rax
jne 0x2ad02
movq 0x18(%r12), %rax
movzbl (%rax), %ecx
movq %rax, %rdx
cmpl $0x3, %ecx
jne 0x2ac43
movq 0x60(%rax), %rdx
movzbl (%rdx), %esi
cmpl $0xe, %esi
ja 0x2ad09
movl $0x6210, %edi           # imm = 0x6210
btl %esi, %edi
jae 0x2ad09
movq 0x18(%rbp), %rdx
cmpb $0x3, (%rdx)
jne 0x2ac6a
movq 0x60(%rdx), %rdx
leaq 0x412e7(%rip), %rsi     # 0x6bf58
cmpq %rsi, 0x60(%rdx)
je 0x2ad02
cmpl $0x3, %ecx
jne 0x2ac84
movq 0x60(%rax), %rax
leaq 0x412cd(%rip), %rcx     # 0x6bf58
cmpq %rcx, 0x60(%rax)
je 0x2acd9
movq 0x20(%r12), %rsi
movq %rbp, %rdi
callq 0x24d76
movq 0x10(%rsp), %r8
movq 0x8(%rsp), %r9
jmp 0x2abde
movb $0x1, %bl
movq %rbp, %r12
jmp 0x2abde
callq 0x13776
movq %rbp, %rdi
movq %rax, %rsi
callq 0x24d76
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %r8
xorl %r12d, %r12d
jmp 0x2abde
movq 0x18(%rbp), %rax
cmpb $0x3, (%rax)
jne 0x2ace6
movq 0x60(%rax), %rax
movq 0x10(%rsp), %r8
movq 0x8(%rsp), %r9
movzbl (%rax), %ecx
cmpl $0xe, %ecx
ja 0x2ad1f
movl $0x6210, %edx           # imm = 0x6210
btl %ecx, %edx
jae 0x2ad1f
xorl %ebx, %ebx
jmp 0x2abde
leaq 0x41168(%rip), %rsi     # 0x6be78
cmpq %rsi, 0x60(%rdx)
jne 0x2ac7b
jmp 0x2ac5d
leaq 0x41152(%rip), %rcx     # 0x6be78
cmpq %rcx, 0x60(%rax)
jne 0x2ac91
xorl %ebx, %ebx
jmp 0x2ac9e
movq 0x10(%r14), %r14
cmpq %r9, %r14
jne 0x2abae
xorl %r13d, %r13d
jmp 0x2af1a
movq %rdi, 0x8(%rsp)
movq 0x50(%rsp), %rdx
movq 0x20(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x31be0
movq 0x48(%rsp), %rbx
testq %rbx, %rbx
je 0x2adbc
movq %rbx, %r14
movzwl (%r14), %eax
testb %al, %al
jle 0x2adb3
xorl %r12d, %r12d
movq 0x18(%r14,%r12,8), %rdi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2ad91
testq %rdi, %rdi
je 0x2ada4
movq %rbp, %rsi
callq 0x139cc
movq 0xd8(%rbp), %rcx
movq %rcx, 0x30(%rax)
incq %r12
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r12
jl 0x2ad7d
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0x2ad72
orb $0x10, 0x56(%rbp)
leaq 0x661b1(%rip), %rbx     # 0x90f78
movq 0x8(%rsp), %rdi
jmp 0x2a8ed
movq 0x60(%rax), %rax
cmpq 0x361a4(%rip), %rax     # 0x60f80
sete %dl
cmpq 0x3615a(%rip), %rax     # 0x60f40
sete %cl
orb %dl, %cl
jmp 0x2af0a
testb $0x20, 0x56(%rax)
jne 0x2a90a
movq 0x98(%rax), %rcx
testq %rcx, %rcx
je 0x2af4c
xorl %edx, %edx
xorl %edi, %edi
movq %rcx, %rsi
movzwl (%rsi), %r8d
movsbl %r8b, %r9d
testw %r9w, %r9w
jle 0x2aedb
movzwl %r9w, %r9d
xorl %r10d, %r10d
movl %edi, %ebx
movzwl %r8w, %edi
movq 0x18(%rsi,%r10,8), %r11
cmpl $0x100, %edi            # imm = 0x100
jb 0x2ae49
testq %r11, %r11
jne 0x2ae49
movl %ebx, %edi
jmp 0x2aecd
movzbl (%r11), %r14d
movq %r11, %r12
cmpl $0x3, %r14d
jne 0x2ae5a
movq 0x60(%r11), %r12
cmpb $0x9, (%r12)
jne 0x2ae66
movq 0x60(%r12), %r12
xorl %edi, %edi
cmpb $0xb, (%r12)
jne 0x2ae78
movl $0x1, %edi
testl %ebx, %ebx
jne 0x2aecd
cmpl $0x3, %r14d
jne 0x2ae82
movq 0x60(%r11), %r11
movb (%r11), %r14b
addb $-0x4, %r14b
cmpb $0xb, %r14b
jae 0x2aea1
movb $0x1, %bl
movzbl %r14b, %r14d
movl $0x6a1, %r12d           # imm = 0x6A1
btl %r14d, %r12d
jb 0x2aebd
movq 0x60(%r11), %r11
cmpq 0x360d4(%rip), %r11     # 0x60f80
sete %r14b
cmpq 0x36089(%rip), %r11     # 0x60f40
sete %bl
orb %r14b, %bl
movl $0x1, %r11d
testb %bl, %bl
je 0x2aeeb
testl %edx, %edx
jne 0x2aeeb
incl %edx
incq %r10
movl %edi, %ebx
cmpq %r10, %r9
jne 0x2ae2c
movq 0x10(%rsi), %rsi
cmpq %rcx, %rsi
jne 0x2ae11
xorl %r11d, %r11d
leaq 0x66086(%rip), %rbx     # 0x90f78
movq (%rsp), %rsi
jmp 0x2af54
xorl %eax, %eax
movq (%rsp), %rsi
jmp 0x2af02
xorl %eax, %eax
testq %rcx, %rcx
sete %cl
orb %al, %cl
testb %cl, %cl
je 0x2a90a
jmp 0x2a951
xorl %r12d, %r12d
testb $0x1, %bl
leaq 0x66054(%rip), %rbx     # 0x90f78
je 0x2a90a
leaq 0x30(%r12), %rdi
callq 0x24aae
leaq 0x20(%r12), %rdi
callq 0x24aae
movq $0x0, 0x8(%r12)
jmp 0x2a90a
xorl %edi, %edi
movl $0x3, %r11d
cmpl $0x3, %r11d
je 0x2af63
testl %r11d, %r11d
jne 0x2a90a
testl %edi, %edi
je 0x2a951
movl 0x50(%rax), %eax
leaq 0x41a63(%rip), %rcx     # 0x6c9d8
cmpl 0x50(%rcx), %eax
jg 0x2a90a
jmp 0x2a951
movq 0x10(%rdx), %rdx
cmpq 0x38(%rsp), %rdx
jne 0x2a882
xorl %eax, %eax
movq %rax, 0x40a55(%rip)     # 0x6b9f0
movq %rax, 0x40a56(%rip)     # 0x6b9f8
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x2b1c9
leaq 0x40a38(%rip), %r15     # 0x6b9f8
movq 0x18(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0x2b1ba
xorl %esi, %esi
movq %rdx, 0x28(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x18(%rdx,%rsi,8), %rbp
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2aff4
testq %rbp, %rbp
je 0x2b19e
movq 0x28(%rbp), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x2b19e
leaq 0x58(%rbp), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rsp), %rbx
movq %rbp, (%rsp)
movzwl (%rbx), %eax
testb %al, %al
jle 0x2b18f
xorl %r14d, %r14d
movq 0x18(%rbx,%r14,8), %r12
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2b03e
testq %r12, %r12
je 0x2b17d
cmpq $0x0, 0x8(%r12)
je 0x2b17d
movl (%r12), %eax
andl $0x7f, %eax
cmpl $0x43, %eax
je 0x2b0d5
cmpl $0x46, %eax
je 0x2b0a0
cmpl $0x44, %eax
jne 0x2b17d
movq 0x30(%r12), %rax
cmpl $0x5, 0x4(%rax)
jne 0x2b17d
movq 0x18(%rax), %rsi
testq %rsi, %rsi
je 0x2b17d
testb $0x10, 0x56(%rsi)
je 0x2b17d
movq 0x10(%rsp), %rdi
movq %r12, %rdx
callq 0x40022
leaq 0x4094a(%rip), %rdi     # 0x6b9e8
jmp 0x2b0c8
movq 0x18(%r12), %rsi
testq %rsi, %rsi
je 0x2b17d
testb $0x10, 0x56(%rsi)
je 0x2b17d
movq 0x10(%rsp), %rdi
movq %r12, %rdx
callq 0x40022
movq %r15, %rdi
movq %r12, %rsi
callq 0x2285b
jmp 0x2b17d
movq 0x30(%r12), %rax
cmpl $0x5, 0x4(%rax)
jne 0x2b17d
movq 0x18(%rax), %r13
testq %r13, %r13
je 0x2b17d
testb $0x10, 0x56(%r13)
je 0x2b17d
movq 0x58(%rbp), %rdi
movq %r13, %rsi
callq 0x3ffc6
testq %rax, %rax
cmovneq %rax, %r15
jne 0x2b11d
movq 0x30(%rbp), %rbp
testq %rbp, %rbp
jne 0x2b0fc
xorl %r15d, %r15d
testq %r15, %r15
movq (%rsp), %rbp
je 0x2b15b
movl (%r15), %eax
movl (%r12), %ecx
xorl %eax, %ecx
cmpl $0xff, %ecx
ja 0x2b14d
andl $0x7f, %eax
leal -0x43(%rax), %ecx
cmpl $0x2, %ecx
jae 0x2b165
movq 0x38(%r12), %rax
cmpq 0x38(%r15), %rax
je 0x2b16a
andb $-0x11, 0x56(%r13)
leaq 0x4089f(%rip), %r15     # 0x6b9f8
jmp 0x2b17d
callq 0x13776
movq %rax, %rsi
jmp 0x2b16e
cmpl $0x46, %eax
jne 0x2b14d
movq 0x20(%r15), %rsi
leaq 0x40883(%rip), %r15     # 0x6b9f8
movq %r12, %rdi
callq 0x24d76
incq %r14
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x2b026
movq 0x10(%rbx), %rbx
cmpq 0x8(%rsp), %rbx
jne 0x2b018
movq 0x30(%rsp), %rsi
incq %rsi
movq 0x28(%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jl 0x2afd7
movq 0x10(%rdx), %rdx
cmpq 0x18(%rsp), %rdx
jne 0x2afc5
movq $0x0, 0x4081c(%rip) # 0x6b9f0
movq 0x4081d(%rip), %r15     # 0x6b9f8
testq %r15, %r15
je 0x2b245
leaq 0x40809(%rip), %rbx     # 0x6b9f0
movq %r15, %r12
movzwl (%r12), %eax
testb %al, %al
jle 0x2b23b
xorl %r13d, %r13d
movq 0x18(%r12,%r13,8), %r14
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2b20a
testq %r14, %r14
je 0x2b22b
movq 0x20(%r14), %rax
movq 0x8(%rax), %rdi
callq 0x225d8
testb %al, %al
jne 0x2b22b
orb $0x1, 0x40(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2285b
incq %r13
movl (%r12), %eax
movsbq %al, %rcx
cmpq %rcx, %r13
jl 0x2b1f6
movq 0x10(%r12), %r12
cmpq %r15, %r12
jne 0x2b1ea
movq 0x407a4(%rip), %rax     # 0x6b9f0
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x2b46a
movq 0x40(%rsp), %rdx
movzwl (%rdx), %eax
testb %al, %al
jle 0x2b45b
xorl %esi, %esi
movq %rdx, 0x38(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x18(%rdx,%rsi,8), %rcx
movq %rcx, (%rsp)
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2b294
cmpq $0x0, (%rsp)
je 0x2b43f
movq (%rsp), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x2b43f
movq (%rsp), %rcx
movq 0x30(%rcx), %rcx
testq %rcx, %rcx
je 0x2b43f
movq 0x18(%rcx), %r14
testb $0x10, 0x56(%r14)
je 0x2b43f
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x2b43f
movq (%rsp), %rax
addq $0x38, %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rsp), %rbx
movzwl (%rbx), %eax
testb %al, %al
jle 0x2b430
xorl %r12d, %r12d
movq %rbx, 0x30(%rsp)
movq 0x18(%rbx,%r12,8), %r15
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2b314
testq %r15, %r15
je 0x2b41e
movq %r15, %r13
movq 0x58(%r13), %rdi
movq %r14, %rsi
callq 0x3ffc6
testq %rax, %rax
cmovneq %rax, %rbx
jne 0x2b337
movq 0x30(%r13), %r13
testq %r13, %r13
jne 0x2b317
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x2b342
movq 0x20(%rbx), %rax
jmp 0x2b347
callq 0x13776
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movq %r14, %rsi
callq 0x13787
movq %rax, %rbp
movq 0x20(%rax), %r13
movq 0x18(%r14), %rax
movq %rax, 0x10(%r13)
leaq 0x28(%r15), %rbx
movq %rbx, %rdi
callq 0x22b10
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x2285b
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x2285b
movq %r15, 0x8(%rbp)
movq 0x28(%rsp), %rdi
movq %r13, %rsi
callq 0x2285b
movq %r13, (%rax)
testq %r13, %r13
je 0x2b3dc
movq %rax, %rbp
movl 0x4(%r13), %eax
cmpl $0x6, %eax
ja 0x2b3be
movl $0x43, %ecx
btl %eax, %ecx
jb 0x2b3dc
xorl %edi, %edi
callq 0x12220
movq %rbp, 0x8(%rax)
movq (%rsp), %rcx
movq %rcx, (%rax)
leaq 0x8(%r13), %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x18(%r13), %rax
movq (%rsp), %rcx
movq %rcx, 0x38(%rax)
movq 0x8(%rsp), %rax
cmpl $0x3, 0x4(%rax)
movq 0x30(%rsp), %rbx
jne 0x2b41e
movq 0x18(%rax), %rsi
movl (%rsi), %eax
andl $0x7f, %eax
cmpl $0x46, %eax
jne 0x2b41e
movb 0x40(%rsi), %al
testb $0x1, %al
jne 0x2b41e
orb $0x1, %al
movb %al, 0x40(%rsi)
leaq 0x405d7(%rip), %rdi     # 0x6b9f0
callq 0x2285b
incq %r12
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r12
jl 0x2b2fc
movq 0x10(%rbx), %rbx
cmpq 0x18(%rsp), %rbx
jne 0x2b2e9
movq 0x20(%rsp), %rsi
incq %rsi
movq 0x38(%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rsi
jl 0x2b271
movq 0x10(%rdx), %rdx
cmpq 0x40(%rsp), %rdx
jne 0x2b25f
movq 0x40577(%rip), %rbx     # 0x6b9e8
testq %rbx, %rbx
je 0x2b4dc
movq %rbx, %r14
movzwl (%r14), %eax
testb %al, %al
jle 0x2b4d3
xorl %r15d, %r15d
movq 0x18(%r14,%r15,8), %r12
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x2b498
testq %r12, %r12
je 0x2b4c4
movq 0x30(%r12), %rax
movq 0x18(%rax), %rax
testb $0x10, 0x56(%rax)
je 0x2b4c4
leaq 0x30(%r12), %rdi
callq 0x24aae
leaq 0x20(%r12), %rdi
callq 0x24aae
movq $0x0, 0x8(%r12)
incq %r15
movl (%r14), %eax
movsbq %al, %rcx
cmpq %rcx, %r15
jl 0x2b484
movq 0x10(%r14), %r14
cmpq %rbx, %r14
jne 0x2b479
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop