// File: /workspace/github_c_makefile_star2_O1/findstr[P]version-database/diff.c
// Function: diff_tree
static void
diff_tree(dr_t a, dr_t b, dr_t root)
{
	int i;
	drb_t file;
	dr_t data, afinger;
	dr_t patchhash;
	char buf[2048];
	struct ref *r;
	struct release ra, rb;
	struct tree tb, ta_name, ta_hash;
	int add, dff, cpy, del;
	a = db_aliashash(a);
	b = db_aliashash(b);
	db_readrel(&ra, a);
	db_readrel(&rb, b);
	db_readtree(&ta_name, ra.tree);
	db_readtree(&tb, rb.tree);
	afinger = dr_ref(ra.finger);
	printf("tree a:%s\n", ra.tree->buf);
	printf("tree b:%s\n", rb.tree->buf);
	release_destroy(&ra);
	release_destroy(&rb);
	tree_clone(&ta_hash, &ta_name);
	tree_sort(&ta_name, ref_namecmp);
	tree_sort(&ta_hash, ref_hashcmp);
	drb_init(&file, 1024);
	printf("diff start\n");
	printf("detect change\n");
	add = 0; dff = 0; cpy = 0; del = 0;
	for (i = 0; i < tb.refn; i++) {
		struct ref *a, *b;
		dr_t patch = NULL;
		b = &tb.refs[i];
		if ((a = tree_search(&ta_hash, b, ref_hashcmp))) {
			if (dr_cmp(b->name, a->name) != 0) {
				struct CPY C;
				C.namea = a->name;
				C.name = b->name;
				ctrl_cpy(&file, &C);
				++cpy;
			} else {
				//printf("%s is same, skip it.\n", b->name->buf);
			}
			continue;
		}
		if (b->data == NULL)
			b->data = db_read(b->hash);
		a = tree_search(&ta_name, b, ref_namecmp);
		if (a == NULL) {
			struct NEW N;
			N.name = (b->name);
			N.data = (b->data);
			ctrl_new(&file, &N);
			add++;
		} else {
			if (a->data == NULL)
				a->data = db_read(a->hash);
			patch = diff_content(a->data, b->data);
			if (b->data->size <= patch->size) {//no fix patch
				struct NEW N;
				N.name = (b->name);
				N.data = (b->data);
				ctrl_new(&file, &N);
				add++;
			} else {
				struct DFF D;
				D.name = b->name;
				D.patch = patch;
				ctrl_dff(&file, &D);
				++dff;
			}
			dr_unref(patch);
		}
	}
	printf("detect recpye\n");
#if ENABLE_DEL
	tree_sort(&tb, ref_namecmp);
	for (i = 0; i < ta_name.refn; i++) {
		r = &ta_name.refs[i];
		if (tree_search(&tb, r, ref_namecmp) == NULL) { //clear
			struct DEL d;
			d.name = r->name;
			ctrl_del(&file, &d);
			++del;
		}
	}
#endif
	data = drb_dump(&file);
	patchhash = db_hash(data);
	snprintf(buf, sizeof(buf), "%s/patch.dat", str(afinger));
	dir_writefile(buf, data, root);
	snprintf(buf, sizeof(buf),
		"{\"add\":%d, \"dff\":%d, \"cpy\":%d, "
		"\"del\":%d, \"hash\":\"%s\", \"size\":%d }",
		add, dff, cpy, del, patchhash->buf, data->size);
	dr_unref(data);
	data = dr_newstr(buf);
	snprintf(buf, sizeof(buf), "%s/patch.json", str(afinger));
	dir_writefile(buf, data, root);
	printf("%s\n\n", str(data));
	snprintf(buf, sizeof(buf), "%s/%s/patch.dat", str(root), str(afinger));
	dr_unref(data);
	dr_unref(patchhash);
	dr_unref(afinger);
	tree_destroy(&ta_name);
	tree_destroy(&ta_hash);
	tree_destroy(&tb);
	data = dr_newstr(buf);
	verify(a, b, data);
	dr_unref(a);
	dr_unref(b);
	dr_unref(data);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd48, %rsp            # imm = 0xD48
movq %rdx, -0xc8(%rbp)
movq %rsi, %rbx
callq 0x5ca0
movq %rax, %r14
movq %rbx, %rdi
callq 0x5ca0
movq %rax, %r15
leaq -0x168(%rbp), %rbx
movq %rbx, %rdi
movq %r14, -0x88(%rbp)
movq %r14, %rsi
callq 0x5adc
leaq -0x138(%rbp), %r14
movq %r14, %rdi
movq %r15, -0xb8(%rbp)
movq %r15, %rsi
callq 0x5adc
movq 0x10(%rbx), %rsi
leaq -0xa0(%rbp), %rdi
callq 0x5b41
movq 0x10(%r14), %rsi
leaq -0xb0(%rbp), %rdi
callq 0x5b41
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x3b40
incl (%rax)
movq %rax, -0xc0(%rbp)
movq 0x10(%rbx), %rsi
addq $0x8, %rsi
leaq 0x66ee(%rip), %rdi      # 0xa244
movq $0x0, -0x68(%rbp)
xorl %eax, %eax
callq 0x2110
movq 0x10(%r14), %rsi
addq $0x8, %rsi
leaq 0x66db(%rip), %rdi      # 0xa24f
xorl %eax, %eax
callq 0x2110
movq %rbx, %rdi
callq 0x6574
movq %r14, %rdi
callq 0x6574
leaq -0x108(%rbp), %rbx
leaq -0xa0(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x61f6
leaq 0x22c9(%rip), %rsi      # 0x5e74
movq %r14, %rdi
callq 0x61bb
leaq 0x22a2(%rip), %rsi      # 0x5e5c
movq %rbx, %rdi
callq 0x61bb
movl $0x0, -0x80(%rbp)
movl $0x40c, %edi            # imm = 0x40C
callq 0x21f0
movabsq $0x40000000001, %rcx    # imm = 0x40000000001
movq %rcx, (%rax)
movb $0x0, 0x408(%rax)
movq %rax, -0x78(%rbp)
leaq 0x67be(%rip), %rdi      # 0xa3b0
callq 0x20a0
leaq 0x67bd(%rip), %rdi      # 0xa3bb
callq 0x20a0
cmpl $0x0, -0xb0(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x0, -0x4c(%rbp)
movl $0x0, %r15d
jle 0x4054
leaq 0x2231(%rip), %r13      # 0x5e5c
leaq -0x970(%rbp), %r14
xorl %ecx, %ecx
xorl %r15d, %r15d
movl $0x0, -0x4c(%rbp)
movl $0x0, -0x30(%rbp)
movq %rcx, -0xf0(%rbp)
leaq (%rcx,%rcx,2), %r12
shlq $0x3, %r12
addq -0xa8(%rbp), %r12
leaq -0x108(%rbp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x61d7
testq %rax, %rax
je 0x3cc7
movq %rax, %rbx
movq 0x8(%r12), %rdi
movq 0x8(%rax), %rsi
movslq 0x4(%rdi), %rdx
cmpl 0x4(%rsi), %edx
jne 0x3c9c
addq $0x8, %rdi
addq $0x8, %rsi
callq 0x2200
testl %eax, %eax
je 0x403a
movq 0x8(%rbx), %rax
movq %rax, -0x968(%rbp)
movq 0x8(%r12), %rax
movq %rax, -0x970(%rbp)
leaq -0x80(%rbp), %rdi
movq %r14, %rsi
callq 0x6ac1
incl %r15d
jmp 0x403a
cmpq $0x0, 0x10(%r12)
jne 0x3cdd
movq (%r12), %rdi
callq 0x5941
movq %rax, 0x10(%r12)
leaq -0xa0(%rbp), %rdi
movq %r12, %rsi
leaq 0x2186(%rip), %rdx      # 0x5e74
callq 0x61d7
testq %rax, %rax
je 0x3f1c
movq %rax, %rbx
movq %r12, -0xd0(%rbp)
cmpq $0x0, 0x10(%rax)
jne 0x3d19
movq (%rbx), %rdi
callq 0x5941
movq %rax, 0x10(%rbx)
movl %r15d, -0x2c(%rbp)
movq 0x10(%rbx), %rcx
movq -0xd0(%rbp), %rax
movq 0x10(%rax), %r15
xorl %ebx, %ebx
movl %ebx, -0xe8(%rbp)
movl 0x4(%r15), %r12d
leaq 0x8(%rcx), %rdi
movq %rcx, -0x70(%rbp)
movl 0x4(%rcx), %esi
callq 0x7b4d
movq %rax, -0x38(%rbp)
movl %ebx, -0x970(%rbp)
movl $0x40c, %edi            # imm = 0x40C
callq 0x21f0
movabsq $0x40000000001, %rcx    # imm = 0x40000000001
movq %rcx, (%rax)
movb $0x0, 0x408(%rax)
movq %rax, -0x968(%rbp)
movq %r15, -0x58(%rbp)
movl 0x4(%r15), %esi
movq %r14, %rdi
callq 0x6fd5
testl %r12d, %r12d
leaq -0xe8(%rbp), %rbx
jle 0x3ee1
addq $0x8, -0x58(%rbp)
xorl %r15d, %r15d
movq %r12, -0x40(%rbp)
movslq %r15d, %rax
movq -0x58(%rbp), %rcx
leaq (%rcx,%rax), %rdx
movl %r12d, %r13d
subl %eax, %r13d
movq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %rdx, -0x90(%rbp)
movl %r13d, %ecx
movq %rbx, %r8
callq 0x4767
cmpl %r13d, %eax
jg 0x46ff
movl %eax, %r12d
cmpl $0xa, %eax
jg 0x3ea9
movl $0x0, -0x5c(%rbp)
movq %r15, %rax
incl %r15d
xorl %r12d, %r12d
movq -0x40(%rbp), %rcx
cmpl %ecx, %r15d
movq %rax, -0xf8(%rbp)
jge 0x3e74
movslq %r15d, %rbx
movl %eax, %r14d
notl %r14d
movq -0x58(%rbp), %rax
leaq (%rax,%rbx), %r13
negq %rbx
leaq (%rcx,%rbx), %rax
movq %rax, -0x48(%rbp)
addl %r14d, %ecx
movq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq %r13, %rdx
leaq -0x5c(%rbp), %r8
callq 0x4767
movl %eax, %r12d
cltq
cmpq %rax, -0x48(%rbp)
jl 0x46e0
cmpl $0xa, %r12d
jg 0x3e66
incl %r15d
decq %rbx
decq %r14
incq %r13
movq -0x40(%rbp), %rcx
movq %rcx, %rax
addq %rbx, %rax
jne 0x3e17
movl %ecx, %r15d
leaq -0x970(%rbp), %r14
leaq -0xe8(%rbp), %rbx
movq -0x90(%rbp), %rax
movq %rax, -0xd70(%rbp)
movl %r15d, %eax
subl -0xf8(%rbp), %eax
movl %eax, -0xd68(%rbp)
movq %r14, %rdi
leaq -0xd70(%rbp), %rsi
callq 0x7200
movl -0x5c(%rbp), %eax
movl %eax, -0xe8(%rbp)
cmpl $0xb, %r12d
jl 0x3ed4
movl -0xe8(%rbp), %eax
movl %eax, -0xd70(%rbp)
movl %r12d, -0xd6c(%rbp)
movq %r14, %rdi
leaq -0xd70(%rbp), %rsi
callq 0x70eb
addl %r12d, %r15d
movq -0x40(%rbp), %r12
cmpl %r12d, %r15d
jl 0x3da3
movq -0x38(%rbp), %rdi
callq 0x2030
movq -0x968(%rbp), %r14
movl -0x970(%rbp), %r12d
movl (%r14), %r15d
movslq %r12d, %r13
leaq 0xc(%r13), %rsi
cmpl $0x1, %r15d
jne 0x3f48
movq %r14, %rdi
callq 0x2210
movq %rax, %rbx
movl %r12d, 0x4(%rax)
jmp 0x3fac
movq 0x8(%r12), %rax
movq %rax, -0x970(%rbp)
movq 0x10(%r12), %rax
movq %rax, -0x968(%rbp)
leaq -0x80(%rbp), %rdi
movq %r14, %rsi
callq 0x6624
incl -0x30(%rbp)
jmp 0x403a
movq %rsi, %rdi
callq 0x21f0
movq %rax, %rbx
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
movb $0x0, 0x8(%rax,%r13)
movl 0x4(%r14), %eax
cmpl %r13d, %eax
cmovll %eax, %r12d
leaq 0x8(%rbx), %rdi
movl %r12d, 0x4(%r14)
leaq 0x8(%r14), %rsi
movslq %r12d, %rdx
callq 0x21c0
leal -0x1(%r15), %eax
movl %eax, (%r14)
cmpl $0x1, %r15d
jg 0x3fac
testl %eax, %eax
movl -0x2c(%rbp), %r15d
leaq 0x1ec0(%rip), %r13      # 0x5e5c
jne 0x4729
movq %r14, %rdi
callq 0x2030
jmp 0x3fb7
movl -0x2c(%rbp), %r15d
leaq 0x1ea5(%rip), %r13      # 0x5e5c
movq -0xd0(%rbp), %rcx
movq 0x10(%rcx), %rax
movl 0x4(%rax), %eax
cmpl 0x4(%rbx), %eax
leaq -0x970(%rbp), %r14
jle 0x3ff4
movq 0x8(%rcx), %rax
movq %rax, -0x970(%rbp)
movq %rbx, -0x968(%rbp)
leaq -0x80(%rbp), %rdi
movq %r14, %rsi
callq 0x69d6
incl -0x4c(%rbp)
jmp 0x4019
movq 0x8(%rcx), %rax
movq %rax, -0x970(%rbp)
movq 0x10(%rcx), %rax
movq %rax, -0x968(%rbp)
leaq -0x80(%rbp), %rdi
movq %r14, %rsi
callq 0x6624
incl -0x30(%rbp)
testq %rbx, %rbx
je 0x403a
movl (%rbx), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rbx)
cmpl $0x1, %ecx
jg 0x403a
testl %eax, %eax
jne 0x4729
movq %rbx, %rdi
callq 0x2030
movq -0xf0(%rbp), %rcx
incq %rcx
movslq -0xb0(%rbp), %rax
cmpq %rax, %rcx
jl 0x3c45
movl %r15d, -0x2c(%rbp)
leaq 0x636a(%rip), %rdi      # 0xa3c9
callq 0x20a0
leaq 0x1e09(%rip), %rsi      # 0x5e74
leaq -0xb0(%rbp), %rdi
callq 0x61bb
cmpl $0x0, -0xa0(%rbp)
jle 0x40f0
xorl %r13d, %r13d
leaq 0x1dea(%rip), %rbx      # 0x5e74
leaq -0xb0(%rbp), %r14
xorl %r15d, %r15d
movq $0x0, -0x68(%rbp)
movq -0x98(%rbp), %r12
leaq (%r12,%r13), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x61d7
testq %rax, %rax
jne 0x40dd
movq 0x8(%r12,%r13), %rax
movq %rax, -0x970(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x970(%rbp), %rsi
callq 0x6a86
movq -0x68(%rbp), %rax
incl %eax
movq %rax, -0x68(%rbp)
incq %r15
movslq -0xa0(%rbp), %rax
addq $0x18, %r13
cmpq %rax, %r15
jl 0x409c
movq -0x78(%rbp), %rbx
movl -0x80(%rbp), %r12d
movl (%rbx), %r14d
movslq %r12d, %r13
leaq 0xc(%r13), %rsi
cmpl $0x1, %r14d
jne 0x4119
movq %rbx, %rdi
callq 0x2210
movq %rax, %r15
movl %r12d, 0x4(%rax)
jmp 0x416e
movq %rsi, %rdi
callq 0x21f0
movq %rax, %r15
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
movb $0x0, 0x8(%rax,%r13)
movl 0x4(%rbx), %eax
cmpl %r13d, %eax
cmovll %eax, %r12d
leaq 0x8(%r15), %rdi
movl %r12d, 0x4(%rbx)
leaq 0x8(%rbx), %rsi
movslq %r12d, %rdx
callq 0x21c0
leal -0x1(%r14), %eax
movl %eax, (%rbx)
cmpl $0x1, %r14d
jg 0x416e
testl %eax, %eax
jne 0x4729
movq %rbx, %rdi
callq 0x2030
movq $0x0, -0x78(%rbp)
movq %r15, %rdi
callq 0x5608
movq %rax, %rbx
movq -0xc0(%rbp), %rax
leaq 0x8(%rax), %r14
leaq 0x611a(%rip), %rdx      # 0xa2ad
leaq -0x970(%rbp), %r12
movl $0x800, %esi            # imm = 0x800
movq %r12, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x2120
movq %r12, %rdi
movq %r15, %rsi
movq -0xc8(%rbp), %rdx
callq 0x530e
movq %rbx, -0x48(%rbp)
leaq 0x8(%rbx), %r10
movl 0x4(%r15), %r11d
subq $0x8, %rsp
leaq 0x6085(%rip), %rdx      # 0xa25a
movl $0x800, %esi            # imm = 0x800
movq %r12, %rdi
movl -0x30(%rbp), %ecx
movl -0x4c(%rbp), %r8d
movl -0x2c(%rbp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq -0x68(%rbp)
callq 0x2120
addq $0x20, %rsp
testq %r15, %r15
je 0x421d
movl (%r15), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%r15)
cmpl $0x1, %ecx
jg 0x421d
testl %eax, %eax
jne 0x4729
movq %r15, %rdi
callq 0x2030
movq %r12, %rdi
callq 0x20e0
movslq %eax, %rbx
leaq 0xc(%rbx), %rdi
callq 0x21f0
movq %rax, %r15
movl $0x1, (%rax)
movl %ebx, 0x4(%rax)
leaq 0x8(%rax), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%rbx)
leaq 0x6040(%rip), %rdx      # 0xa29c
movl $0x800, %esi            # imm = 0x800
movq %r12, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0x2120
movq %r12, %rdi
movq %r15, %rsi
movq -0xc8(%rbp), %rbx
movq %rbx, %rdx
callq 0x530e
leaq 0x5fac(%rip), %rdi      # 0xa236
movq %r13, %rsi
xorl %eax, %eax
callq 0x2110
addq $0x8, %rbx
leaq 0x600b(%rip), %rdx      # 0xa2aa
movl $0x800, %esi            # imm = 0x800
movq %r12, %rdi
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
callq 0x2120
movl (%r15), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%r15)
cmpl $0x1, %ecx
jg 0x42d2
testl %eax, %eax
jne 0x4729
movq %r15, %rdi
callq 0x2030
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
movq -0xc0(%rbp), %rbx
je 0x42fb
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x42fb
testl %eax, %eax
jne 0x4729
callq 0x2030
testq %rbx, %rbx
je 0x431c
movl (%rbx), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rbx)
cmpl $0x1, %ecx
jg 0x431c
testl %eax, %eax
jne 0x4729
movq %rbx, %rdi
callq 0x2030
leaq -0xa0(%rbp), %rdi
callq 0x6100
leaq -0x108(%rbp), %rdi
callq 0x6100
leaq -0xb0(%rbp), %rdi
callq 0x6100
leaq -0x970(%rbp), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r14
leaq 0xc(%r14), %rdi
callq 0x21f0
movq %rax, %rbx
movl $0x1, %eax
movl %eax, (%rbx)
movl %r14d, 0x4(%rbx)
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x21c0
xorl %eax, %eax
movb %al, 0x8(%rbx,%r14)
xorl %r13d, %r13d
movq -0x88(%rbp), %rax
leaq 0x8(%rax), %rcx
leaq 0x5fb0(%rip), %rdx      # 0xa344
leaq -0xd70(%rbp), %r15
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdi
xorl %eax, %eax
callq 0x2120
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r14
leaq 0xc(%r14), %rdi
callq 0x21f0
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r14d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %rdi, -0x40(%rbp)
movq %r15, %rsi
movq %r14, %rdx
callq 0x21c0
movb %r13b, 0x8(%r12,%r14)
movq -0xb8(%rbp), %r13
leaq 0x8(%r13), %rcx
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdi
leaq 0x5f42(%rip), %rdx      # 0xa344
xorl %eax, %eax
callq 0x2120
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r14
leaq 0xc(%r14), %rdi
callq 0x21f0
movq %rax, %r15
movl $0x1, %eax
movl %eax, (%r15)
movl %r14d, 0x4(%r15)
leaq 0x8(%r15), %rdi
movq %rdi, -0x38(%rbp)
leaq -0xd70(%rbp), %rsi
movq %r14, %rdx
callq 0x21c0
xorl %eax, %eax
movb %al, 0x8(%r15,%r14)
movq -0x88(%rbp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x4de8
movq %r13, %rdi
movq %r15, -0x70(%rbp)
movq %r15, %rsi
callq 0x4de8
leaq -0xe8(%rbp), %rdi
movq %r14, (%rdi)
movq %rbx, -0x58(%rbp)
movq %rbx, 0x8(%rdi)
movq %r12, -0x48(%rbp)
movq %r12, 0x10(%rdi)
callq 0x4880
leaq 0x5ebd(%rip), %r14      # 0xa34e
movl $0x400, %esi            # imm = 0x400
leaq -0xd70(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
movq -0x40(%rbp), %rcx
xorl %eax, %eax
callq 0x2120
movq %rbx, %rdi
xorl %esi, %esi
callq 0x51ea
movq %rax, %r15
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
movq %r14, %rdx
movq -0x38(%rbp), %rcx
xorl %eax, %eax
callq 0x2120
movq %rbx, %rdi
xorl %esi, %esi
callq 0x51ea
movslq 0x4(%r15), %rbx
cmpl 0x4(%rax), %ebx
jne 0x4748
movq %rax, %r14
leaq 0x8(%r15), %r12
leaq 0x8(%rax), %rsi
movq %r12, %rdi
movq %rbx, %rdx
callq 0x2200
testl %eax, %eax
jne 0x4748
movq %r15, -0x38(%rbp)
movq %r14, -0x90(%rbp)
testl %ebx, %ebx
jle 0x45db
movq -0x38(%rbp), %rax
addq %rbx, %rax
addq $0x8, %rax
movq %rax, -0x40(%rbp)
movq %r12, %rdi
movl $0x9, %esi
callq 0x2100
xorl %r15d, %r15d
movb %r15b, (%rax)
leaq 0x1(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2100
movq %rax, %rbx
movb %r15b, (%rax)
movq %r14, %rdi
movq -0x48(%rbp), %rsi
callq 0x51ea
movq %rax, %r13
movq %rax, %rdi
callq 0x5608
movq %rax, %r15
leaq 0x8(%rax), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x2180
testl %eax, %eax
jne 0x471e
testq %r13, %r13
je 0x45a8
movl (%r13), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%r13)
cmpl $0x1, %ecx
jg 0x45a8
testl %eax, %eax
jne 0x4729
movq %r13, %rdi
callq 0x2030
testq %r15, %r15
je 0x45cb
movl (%r15), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%r15)
cmpl $0x1, %ecx
jg 0x45cb
testl %eax, %eax
jne 0x4729
movq %r15, %rdi
callq 0x2030
incq %rbx
movq %rbx, %r12
cmpq -0x40(%rbp), %rbx
jb 0x4528
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
movq -0x90(%rbp), %rbx
je 0x4604
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x4604
testl %eax, %eax
jne 0x4729
callq 0x2030
testq %rbx, %rbx
je 0x4625
movl (%rbx), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rbx)
cmpl $0x1, %ecx
jg 0x4625
testl %eax, %eax
jne 0x4729
movq %rbx, %rdi
callq 0x2030
movq -0x48(%rbp), %rdx
movl (%rdx), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdx)
cmpl $0x1, %ecx
jg 0x4646
testl %eax, %eax
jne 0x4729
movq -0x48(%rbp), %rdi
callq 0x2030
movq -0x70(%rbp), %rdi
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x4663
testl %eax, %eax
jne 0x4729
callq 0x2030
leaq 0x5d39(%rip), %rdi      # 0xa3a3
callq 0x20f0
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x4694
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x4694
testl %eax, %eax
jne 0x4729
callq 0x2030
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x46b5
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x46b5
testl %eax, %eax
jne 0x4729
callq 0x2030
movq -0x58(%rbp), %rdi
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x46ce
testl %eax, %eax
jne 0x4729
callq 0x2030
addq $0xd48, %rsp            # imm = 0xD48
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5c0a(%rip), %rdi      # 0xa2f1
leaq 0x5bde(%rip), %rsi      # 0xa2cc
leaq 0x5bde(%rip), %rcx      # 0xa2d3
movl $0x60, %edx
callq 0x2130
leaq 0x5bb4(%rip), %rdi      # 0xa2ba
leaq 0x5bbf(%rip), %rsi      # 0xa2cc
leaq 0x5bbf(%rip), %rcx      # 0xa2d3
movl $0x5a, %edx
callq 0x2130
movq %r12, %rdi
movq %r14, %rsi
callq 0x23d3
leaq 0x5951(%rip), %rdi      # 0xa081
leaq 0x5956(%rip), %rsi      # 0xa08d
leaq 0x5956(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
leaq 0x5c0f(%rip), %rdi      # 0xa35e
leaq 0x5b76(%rip), %rsi      # 0xa2cc
leaq 0x5c1f(%rip), %rcx      # 0xa37c
movl $0x90, %edx
callq 0x2130