LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/object.c
// Function: tree_marshal
dr_t
tree_marshal(struct tree *t)
{
	dr_t d;
	int i, sz;
	char *ptr;
	struct ref *refs = t->refs;
	sz =	4 +				//type
		4;				//refn
	for (i = 0; i < t->refn; i++) {
		struct ref *r = &refs[i];
		sz += 4 + r->hash->size + 4 + r->name->size;
	}
	d = dr_new(sz, NULL);
	ptr = (char*)d->buf;
	*(uint32_t *)ptr = TREE;			ptr += 4;
	*(uint32_t *)ptr = t->refn;			ptr += 4;
	for (i = 0; i < t->refn; i++) {
		struct ref *r = &refs[i];
		*(uint32_t *)ptr = r->hash->size;	ptr += 4;
		memcpy(ptr, r->hash->buf, r->hash->size);ptr += r->hash->size;
		*(uint32_t *)ptr = r->name->size;	ptr += 4;
		memcpy(ptr, r->name->buf, r->name->size);ptr += r->name->size;
	}
	return d;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %r12
movslq (%rdi), %r14
testq %r14, %r14
jle 0x5f9b
leaq (,%r14,8), %rax
leaq (%rax,%rax,2), %rcx
movl $0x8, %eax
xorl %edx, %edx
movq (%r12,%rdx), %rsi
movq 0x8(%r12,%rdx), %rdi
addl 0x4(%rsi), %eax
movl 0x4(%rdi), %esi
addl %esi, %eax
addl $0x8, %eax
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x5f7c
jmp 0x5fa0
movl $0x8, %eax
movslq %eax, %rbx
leaq 0xc(%rbx), %rdi
callq 0x2200
movl $0x1, (%rax)
movl %ebx, 0x4(%rax)
movb $0x0, 0x8(%rax,%rbx)
movl $0x45455254, 0x8(%rax)  # imm = 0x45455254
movq %rax, -0x30(%rbp)
movl %r14d, 0xc(%rax)
testl %r14d, %r14d
jle 0x6043
movq -0x30(%rbp), %r13
addq $0x10, %r13
shlq $0x3, %r14
leaq (%r14,%r14,2), %rax
movq %rax, -0x38(%rbp)
xorl %ebx, %ebx
movq (%r12,%rbx), %rsi
movslq 0x4(%rsi), %r14
movl %r14d, (%r13)
leaq 0x4(%r13), %rdi
addq $0x8, %rsi
movq %r14, %rdx
callq 0x21d0
leaq (%r14,%r13), %rax
addq $0x4, %rax
movq %rax, -0x40(%rbp)
movq 0x8(%r12,%rbx), %rsi
movslq 0x4(%rsi), %r15
leaq (%r14,%r13), %rdi
addq $0x8, %rdi
movl %r15d, -0x4(%rdi)
addq $0x8, %rsi
movq %r15, %rdx
callq 0x21d0
movq -0x40(%rbp), %rax
leaq (%r15,%rax), %r13
addq $0x4, %r13
addq $0x18, %rbx
cmpq %rbx, -0x38(%rbp)
jne 0x5fe4
movq -0x30(%rbp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/object.c
// Function: tree_unmarshal
void
tree_unmarshal(struct tree *t, dr_t d)
{
	int type, i, size;
	uint8_t *ptr = d->buf;
	type = *(uint32_t *)ptr;			ptr += 4;
	assert(type == TREE);
	t->refn = *(uint32_t *)ptr;			ptr += 4;
	size = t->refn * sizeof(struct ref);
	t->refs = MALLOC(size);
	memset(t->refs, 0, size);
	for (i = 0; i < t->refn; i++) {
		struct ref *r = &t->refs[i];
		size = *(uint32_t *)ptr;		ptr += 4;
		r->hash = dr_new(size, ptr);		ptr += size;
		size = *(uint32_t *)ptr;		ptr += 4;
		r->name = dr_new(size, ptr);		ptr += size;
	}
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x45455254, 0x8(%rsi)  # imm = 0x45455254
jne 0x616a
movq %rsi, %r14
movq %rdi, %r15
movslq 0xc(%rsi), %rbx
movl %ebx, (%rdi)
leal (,%rbx,8), %eax
leal (%rax,%rax,2), %eax
movslq %eax, %rsi
movl $0x1, %edi
callq 0x2180
movq %rax, 0x8(%r15)
testq %rbx, %rbx
jle 0x615b
addq $0x10, %r14
shlq $0x3, %rbx
leaq (%rbx,%rbx,2), %rcx
movq %rcx, -0x38(%rbp)
xorl %ebx, %ebx
movq %rax, -0x30(%rbp)
movslq (%r14), %r15
leaq 0x4(%r14), %r12
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, %eax
movl %eax, (%r13)
movl %r15d, 0x4(%r13)
leaq 0x8(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r13,%r15)
movq -0x30(%rbp), %rax
movq %r13, (%rax,%rbx)
leaq (%r14,%r15), %r13
addq $0x4, %r13
addq %r15, %r14
addq $0x8, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
movq -0x30(%rbp), %rax
xorl %ecx, %ecx
movb %cl, 0x8(%r12,%r15)
movq %r12, 0x8(%rax,%rbx)
leaq (%r15,%r13), %r14
addq $0x4, %r14
addq $0x18, %rbx
cmpq %rbx, -0x38(%rbp)
jne 0x60ba
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4622(%rip), %rdi      # 0xa793
leaq 0x4628(%rip), %rsi      # 0xa7a0
leaq 0x462a(%rip), %rcx      # 0xa7a9
movl $0x5e, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/object.c
// Function: tree_destroy
void
tree_destroy(struct tree *t)
{
	int i;
	for (i = 0; i < t->refn; i++)
		ref_destroy(&t->refs[i]);
	FREE(t->refs);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, (%rdi)
jle 0x6214
movl $0x10, %r14d
xorl %r15d, %r15d
movq 0x8(%rbx), %r12
movq -0x10(%r12,%r14), %rdi
testq %rdi, %rdi
je 0x61c8
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x61c8
testl %eax, %eax
jne 0x6225
callq 0x2030
movq -0x8(%r12,%r14), %rdi
testq %rdi, %rdi
je 0x61e7
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x61e7
testl %eax, %eax
jne 0x6225
callq 0x2030
movq (%r12,%r14), %rdi
testq %rdi, %rdi
je 0x6205
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x6205
testl %eax, %eax
jne 0x6225
callq 0x2030
incq %r15
movslq (%rbx), %rax
addq $0x18, %r14
cmpq %rax, %r15
jl 0x61a5
movq 0x8(%rbx), %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2030
leaq 0x3e55(%rip), %rdi      # 0xa081
leaq 0x3e5a(%rip), %rsi      # 0xa08d
leaq 0x3e5a(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/object.c
// Function: tree_clone
void
tree_clone(struct tree *to, struct tree *from)
{
	int i;
	to->refn = from->refn;
	to->refs = MALLOC(from->refn * sizeof(struct ref));
	for (i = 0; i < from->refn; i++)
		ref_clone(&to->refs[i], &from->refs[i]);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq (%rsi), %r12
movl %r12d, (%rdi)
leaq (,%r12,8), %rax
leaq (%rax,%rax,2), %rbx
movq %rbx, %rdi
callq 0x2200
movq %rax, 0x8(%r15)
testq %r12, %r12
jle 0x62f3
movq 0x8(%r14), %rcx
xorl %edx, %edx
movq (%rcx,%rdx), %rsi
testq %rsi, %rsi
je 0x62c4
incl (%rsi)
movq %rsi, (%rax,%rdx)
movq 0x8(%rcx,%rdx), %rsi
testq %rsi, %rsi
je 0x62d4
incl (%rsi)
movq %rsi, 0x8(%rax,%rdx)
movq 0x10(%rcx,%rdx), %rsi
testq %rsi, %rsi
je 0x62e5
incl (%rsi)
movq %rsi, 0x10(%rax,%rdx)
addq $0x18, %rdx
cmpq %rdx, %rbx
jne 0x62b9
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/object.c
// Function: release_marshal
dr_t
release_marshal(struct release *r)
{
	dr_t d;
	int sz;
	uint8_t *ptr;
	sz =	4 +				//type
		sizeof(uint64_t) +		//time
		4 + r->prev->size +		//prev
		4 + r->tree->size +		//tree
		4 + r->ver->size +		//ver
		4 + r->note->size +		//note
		4 + r->finger->size;		//finger
	d = dr_new(sz, NULL);
	ptr = d->buf;
	*(uint32_t *)ptr = RELEASE;			ptr += 4;
	*(uint64_t *)ptr = r->time;			ptr += sizeof(uint64_t);
	*(uint32_t *)ptr = r->prev->size;		ptr += 4;
	memcpy(ptr, r->prev->buf, r->prev->size);	ptr += r->prev->size;
	*(uint32_t *)ptr = r->tree->size;		ptr += 4;
	memcpy(ptr, r->tree->buf, r->tree->size);	ptr += r->tree->size;
	*(uint32_t *)ptr = r->ver->size;		ptr += 4;
	memcpy(ptr, r->ver->buf, r->ver->size);		ptr += r->ver->size;
	*(uint32_t *)ptr = r->note->size;		ptr += 4;
	memcpy(ptr, r->note->buf, r->note->size);	ptr += r->note->size;
	*(uint32_t *)ptr = r->finger->size;		ptr += 4;
	memcpy(ptr, r->finger->buf, r->finger->size);
	return d;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r13
movq 0x8(%rdi), %rcx
movq %rcx, -0x30(%rbp)
movq 0x10(%rdi), %rax
movq %rax, -0x40(%rbp)
movslq 0x4(%rcx), %rbx
movslq 0x4(%rax), %r15
movq 0x18(%rdi), %rax
movq %rax, -0x50(%rbp)
movslq 0x4(%rax), %rsi
movq %rsi, -0x38(%rbp)
movq 0x20(%rdi), %rax
movq %rax, -0x60(%rbp)
movslq 0x4(%rax), %rcx
movq %rcx, -0x48(%rbp)
movq 0x28(%rdi), %rax
movq %rax, -0x68(%rbp)
movslq 0x4(%rax), %rdx
movq %rdx, -0x58(%rbp)
leal (%rsi,%rcx), %ecx
addl %ebx, %ecx
addl %r15d, %ecx
leal (%rdx,%rcx), %eax
addl $0x20, %eax
movslq %eax, %r12
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r14
movl $0x1, (%rax)
movl %r12d, 0x4(%rax)
movb $0x0, 0x8(%rax,%r12)
movl $0x204c4552, 0x8(%rax)  # imm = 0x204C4552
movq (%r13), %rax
movq %rax, 0xc(%r14)
movl %ebx, 0x14(%r14)
leaq 0x18(%r14), %rdi
movq -0x30(%rbp), %rsi
addq $0x8, %rsi
movq %rbx, %rdx
callq 0x21d0
leaq (%r14,%rbx), %r12
addq $0x18, %r12
leaq (%r14,%rbx), %rdi
addq $0x1c, %rdi
movl %r15d, -0x4(%rdi)
movq -0x40(%rbp), %rsi
addq $0x8, %rsi
movq %r15, %rdx
callq 0x21d0
leaq (%r15,%r12), %rbx
addq $0x4, %rbx
leaq 0x8(%r15,%r12), %rdi
movq -0x38(%rbp), %r12
movl %r12d, -0x4(%rdi)
movq -0x50(%rbp), %rsi
addq $0x8, %rsi
movq %r12, %rdx
callq 0x21d0
leaq (%r12,%rbx), %r15
addq $0x4, %r15
leaq 0x8(%r12,%rbx), %rdi
movq -0x48(%rbp), %rdx
movl %edx, -0x4(%rdi)
movq -0x60(%rbp), %rsi
addq $0x8, %rsi
movq %rdx, %rbx
callq 0x21d0
leaq (%rbx,%r15), %rdi
addq $0x8, %rdi
movq -0x58(%rbp), %rdx
movl %edx, -0x4(%rdi)
movq -0x68(%rbp), %rsi
addq $0x8, %rsi
callq 0x21d0
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/object.c
// Function: release_unmarshal
void
release_unmarshal(struct release *r, dr_t d)
{
	int type, size;
	uint8_t *ptr = d->buf;
	type = *(uint32_t *)ptr;			ptr += 4;
	assert(type == RELEASE);
	r->time = *(uint64_t *)ptr;			ptr += sizeof(uint64_t);
	size = *(uint32_t *)ptr;			ptr += 4;
	r->prev = dr_new(size, ptr);			ptr += size;
	size = *(uint32_t *)ptr;			ptr += 4;
	r->tree = dr_new(size, ptr);			ptr += size;
	size = *(uint32_t *)ptr;			ptr += 4;
	r->ver = dr_new(size, ptr);			ptr += size;
	size = *(uint32_t *)ptr;			ptr += 4;
	r->note = dr_new(size, ptr);			ptr += size;
	size = *(uint32_t *)ptr;			ptr += 4;
	r->finger = dr_new(size, ptr);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x204c4552, 0x8(%rsi)  # imm = 0x204C4552
jne 0x65dd
movq %rsi, %r14
movq 0xc(%rsi), %rax
movq %rax, (%rdi)
movslq 0x14(%rsi), %r15
leaq 0x18(%rsi), %r12
movq %rdi, %rbx
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, %eax
movl %eax, (%r13)
movl %r15d, 0x4(%r13)
leaq 0x8(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r13,%r15)
movq %r13, 0x8(%rbx)
leaq (%r14,%r15), %r13
addq $0x18, %r13
addq %r15, %r14
addq $0x1c, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r12,%r15)
movq %r12, 0x10(%rbx)
leaq (%r15,%r13), %rax
addq $0x4, %rax
movq %rax, -0x30(%rbp)
leaq (%r15,%r13), %r14
addq $0x8, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r12,%r15)
movq %r12, 0x18(%rbx)
movq -0x30(%rbp), %rax
leaq (%r15,%rax), %r13
addq $0x4, %r13
leaq (%r15,%rax), %r14
addq $0x8, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r12,%r15)
movq %r12, 0x20(%rbx)
leaq (%r15,%r13), %r14
addq $0x8, %r14
movslq -0x4(%r14), %r15
leaq 0xc(%r15), %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, %eax
movl %eax, (%r12)
movl %r15d, 0x4(%r12)
leaq 0x8(%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21d0
xorl %eax, %eax
movb %al, 0x8(%r12,%r15)
movq %r12, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x41ee(%rip), %rdi      # 0xa7d2
leaq 0x41b5(%rip), %rsi      # 0xa7a0
leaq 0x41f0(%rip), %rcx      # 0xa7e2
movl $0xb2, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/object.c
// Function: release_destroy
void
release_destroy(struct release *r)
{
	dr_unref(r->prev);
	dr_unref(r->tree);
	dr_unref(r->ver);
	dr_unref(r->note);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x6623
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x6623
testl %eax, %eax
jne 0x668a
callq 0x2030
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x6641
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x6641
testl %eax, %eax
jne 0x668a
callq 0x2030
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x665f
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x665f
testl %eax, %eax
jne 0x668a
callq 0x2030
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x6683
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x6683
testl %eax, %eax
jne 0x668a
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2030
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x39f0(%rip), %rdi      # 0xa081
leaq 0x39f5(%rip), %rsi      # 0xa08d
leaq 0x39f5(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: ctrl_new
void
ctrl_new(drb_t *drb, struct NEW *c)
{
	writeact(drb, CTRL_NEW);
	writename(drb, c->name);
	writedata(drb, c->data);
	printf(".NEW %s size:%.3f KiB\n",
		c->name->buf, c->data->size/1024.f);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x10, %esi
callq 0x6708
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x6817
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x6951
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
addq $0x8, %rsi
cvtsi2ssl 0x4(%rax), %xmm0
mulss 0x4122(%rip), %xmm0     # 0xa814
cvtss2sd %xmm0, %xmm0
leaq 0x4143(%rip), %rdi      # 0xa840
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: writename
static void
writename(drb_t *drb, dr_t name)
{
	uint8_t *p;
	int size;
	p = drb_check(drb, NAME_LEN_SIZE + name->size);
	NAME_LEN(p) = size = name->size;	p += NAME_LEN_SIZE;
	memcpy(p, name->buf, size);		p += size;
	drb_end(drb, p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
movl 0x4(%rsi), %eax
movq 0x8(%rdi), %r15
movl 0x4(%r15), %r13d
movl (%rdi), %ecx
leal (%rax,%rcx), %r14d
addl $0x2, %r14d
cmpl %r14d, %r13d
jge 0x68f1
movq %rsi, -0x38(%rbp)
movl %r14d, -0x2c(%rbp)
movslq %r13d, %rax
leaq (%rax,%rax), %r13
movl (%r15), %ebx
leaq 0xc(,%rax,2), %rsi
cmpl $0x1, %ebx
jne 0x6879
movq %r15, %rdi
callq 0x2220
movq %rax, %r15
movl %r13d, 0x4(%rax)
jmp 0x68d8
movq %r12, %r14
movq %rsi, %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
movb $0x0, 0x8(%rax,%r13)
movl 0x4(%r15), %eax
cmpl %r13d, %eax
cmovgel %r13d, %eax
leaq 0x8(%r12), %rdi
movl %eax, 0x4(%r15)
leaq 0x8(%r15), %rsi
movslq %eax, %rdx
callq 0x21d0
leal -0x1(%rbx), %eax
movl %eax, (%r15)
cmpl $0x1, %ebx
jg 0x68ce
testl %eax, %eax
jne 0x6932
movq %r15, %rdi
callq 0x2030
movq %r12, %r15
movq %r14, %r12
movl -0x2c(%rbp), %r14d
movq %r15, 0x8(%r12)
cmpl %r14d, %r13d
jl 0x6851
movl (%r12), %ecx
movq -0x38(%rbp), %rsi
movl 0x4(%rsi), %eax
movq %r12, %rbx
movslq %ecx, %rcx
addq %rcx, %r15
addq $0xa, %r15
movw %ax, -0x2(%r15)
addq $0x8, %rsi
movslq %eax, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x21d0
addl %r15d, %r12d
subl 0x8(%rbx), %r12d
addl $-0x8, %r12d
movl %r12d, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3748(%rip), %rdi      # 0xa081
leaq 0x374d(%rip), %rsi      # 0xa08d
leaq 0x374d(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: writedata
static void
writedata(drb_t *drb, dr_t data)
{
	int size;
	uint8_t *p;
	p = drb_check(drb, data->size);
	uint32(p) = size = data->size;		p += 4;
	memcpy(p, data->buf, size);		p += size;
	drb_end(drb, p);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
movl 0x4(%rsi), %eax
movq 0x8(%rdi), %r15
movl 0x4(%r15), %r13d
movl (%rdi), %ecx
leal (%rcx,%rax), %r14d
cmpl %r14d, %r13d
jge 0x6a27
movq %rsi, -0x38(%rbp)
movl %r14d, -0x2c(%rbp)
movslq %r13d, %rax
leaq (%rax,%rax), %r13
movl (%r15), %ebx
leaq 0xc(,%rax,2), %rsi
cmpl $0x1, %ebx
jne 0x69af
movq %r15, %rdi
callq 0x2220
movq %rax, %r15
movl %r13d, 0x4(%rax)
jmp 0x6a0e
movq %r12, %r14
movq %rsi, %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
movb $0x0, 0x8(%rax,%r13)
movl 0x4(%r15), %eax
cmpl %r13d, %eax
cmovgel %r13d, %eax
leaq 0x8(%r12), %rdi
movl %eax, 0x4(%r15)
leaq 0x8(%r15), %rsi
movslq %eax, %rdx
callq 0x21d0
leal -0x1(%rbx), %eax
movl %eax, (%r15)
cmpl $0x1, %ebx
jg 0x6a04
testl %eax, %eax
jne 0x6a67
movq %r15, %rdi
callq 0x2030
movq %r12, %r15
movq %r14, %r12
movl -0x2c(%rbp), %r14d
movq %r15, 0x8(%r12)
cmpl %r14d, %r13d
jl 0x6987
movl (%r12), %ecx
movq -0x38(%rbp), %rsi
movl 0x4(%rsi), %eax
movq %r12, %rbx
movslq %ecx, %rcx
addq %rcx, %r15
addq $0xc, %r15
movl %eax, -0x4(%r15)
addq $0x8, %rsi
movslq %eax, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x21d0
addl %r15d, %r12d
subl 0x8(%rbx), %r12d
addl $-0x8, %r12d
movl %r12d, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3613(%rip), %rdi      # 0xa081
leaq 0x3618(%rip), %rsi      # 0xa08d
leaq 0x3618(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: ctrl_dff
void
ctrl_dff(drb_t *drb, struct DFF *c)
{
	writeact(drb, CTRL_DFF);
	writename(drb, c->name);
	writedata(drb, c->patch);
	printf(".DFF %s patch:%d Byte\n",
		c->name->buf, c->patch->size);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x20, %esi
callq 0x6708
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x6817
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x6951
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
addq $0x8, %rsi
movl 0x4(%rax), %edx
leaq 0x3d8e(%rip), %rdi      # 0xa857
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: ctrl_dfx
void
ctrl_dfx(drb_t *drb, struct DFX *c)
{
	writeact(drb, CTRL_DFX);
	writename(drb, c->name);
	writename(drb, c->namea);
	writedata(drb, c->patch);
	printf(".DFX %s -> %s patch:%d Byte\n",
		c->namea->buf, c->name->buf, c->patch->size);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x30, %esi
callq 0x6708
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x6817
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x6817
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x6951
movq (%rbx), %rdx
movq 0x8(%rbx), %rsi
addq $0x8, %rsi
addq $0x8, %rdx
movq 0x10(%rbx), %rax
movl 0x4(%rax), %ecx
leaq 0x3d43(%rip), %rdi      # 0xa86e
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: ctrl_cpy
void
ctrl_cpy(drb_t *drb, struct CPY *c)
{
	writeact(drb, CTRL_CPY);
	writename(drb, c->name);
	writename(drb, c->namea);
	printf(".CPY %s => %s\n", c->namea->buf, c->name->buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x40, %esi
callq 0x6708
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x6817
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x6817
movq (%rbx), %rdx
movq 0x8(%rbx), %rsi
addq $0x8, %rsi
addq $0x8, %rdx
leaq 0x3cdf(%rip), %rdi      # 0xa894
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x2110
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: ctrl_destroy
void
ctrl_destroy(struct CTRL *ctrl)
{
	switch (ctrl->act) {
	case CTRL_NEW:
		ctrl_new_free(&ctrl->u.new);
		break;
	case CTRL_DFF:
		ctrl_dff_free(&ctrl->u.dff);
		break;
	case CTRL_DFX:
		ctrl_dfx_free(&ctrl->u.dfx);
		break;
	case CTRL_CPY:
		ctrl_cpy_free(&ctrl->u.cpy);
		break;
	case CTRL_DEL:
		ctrl_del_free(&ctrl->u.del);
		break;
	default:
		assert(0);
	}
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movzbl (%rdi), %eax
addl $-0x10, %eax
roll $0x1c, %eax
cmpl $0x4, %eax
ja 0x7066
movq %rdi, %rbx
leaq 0x387f(%rip), %rcx      # 0xa82c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x6fd4
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x6fd4
testl %eax, %eax
jne 0x7047
callq 0x2030
movq 0x10(%rbx), %rdi
jmp 0x7020
movq 0x8(%rbx), %rdi
jmp 0x7020
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x6ffe
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x6ffe
testl %eax, %eax
jne 0x7047
callq 0x2030
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x701c
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x701c
testl %eax, %eax
jne 0x7047
callq 0x2030
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x7040
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x7040
testl %eax, %eax
jne 0x7047
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2030
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x3033(%rip), %rdi      # 0xa081
leaq 0x3038(%rip), %rsi      # 0xa08d
leaq 0x3038(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
leaq 0x3927(%rip), %rdi      # 0xa994
leaq 0x382f(%rip), %rsi      # 0xa8a3
leaq 0x3868(%rip), %rcx      # 0xa8e3
movl $0xf2, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: patch_copy
void
patch_copy(drb_t *drb, struct COPY *copy)
{
	uint8_t *p = drb_check(drb, 1+4+4);
	uint8(p) = PATCH_COPY;	p += 1;
	uint32(p) = copy->pos;	p += 4;
	uint32(p) = copy->size;	p += 4;
	drb_end(drb, p);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
movq 0x8(%rdi), %r15
movl 0x4(%r15), %r13d
movl (%rdi), %eax
leal 0x9(%rax), %r14d
cmpl %r14d, %r13d
jge 0x7275
movq %rsi, -0x38(%rbp)
movl %r14d, -0x2c(%rbp)
movslq %r13d, %rax
leaq (%rax,%rax), %r13
movl (%r15), %ebx
leaq 0xc(,%rax,2), %rsi
cmpl $0x1, %ebx
jne 0x7200
movq %r15, %rdi
callq 0x2220
movq %rax, %r15
movl %r13d, 0x4(%rax)
jmp 0x725f
movq %r12, %r14
movq %rsi, %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
movb $0x0, 0x8(%rax,%r13)
movl 0x4(%r15), %eax
cmpl %r13d, %eax
cmovgel %r13d, %eax
leaq 0x8(%r12), %rdi
movl %eax, 0x4(%r15)
leaq 0x8(%r15), %rsi
movslq %eax, %rdx
callq 0x21d0
leal -0x1(%rbx), %eax
movl %eax, (%r15)
cmpl $0x1, %ebx
jg 0x7255
testl %eax, %eax
jne 0x72a6
movq %r15, %rdi
callq 0x2030
movq %r12, %r15
movq %r14, %r12
movl -0x2c(%rbp), %r14d
movq %r15, 0x8(%r12)
cmpl %r14d, %r13d
jl 0x71d8
movl (%r12), %eax
movq -0x38(%rbp), %rsi
cltq
addq %r15, %rax
addq $0x8, %rax
movb $0x1, (%rax)
movl (%rsi), %ecx
movl %ecx, 0x1(%rax)
movl 0x4(%rsi), %ecx
movl %ecx, 0x5(%rax)
subl 0x8(%r12), %eax
incl %eax
movl %eax, (%r12)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2dd4(%rip), %rdi      # 0xa081
leaq 0x2dd9(%rip), %rsi      # 0xa08d
leaq 0x2dd9(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: patch_insert
void
patch_insert(drb_t *drb, struct INSERT *insert)
{
	int size = insert->size;
	uint8_t *p = drb_check(drb, 1+4+size);
	uint8(p) = PATCH_INSERT;	p += 1;
	uint32(p) = size;		p += 4;
	memcpy(p, insert->p, size);	p += size;
	drb_end(drb, p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
movl 0x8(%rsi), %ecx
movq 0x8(%rdi), %r15
movl 0x4(%r15), %r14d
movl (%rdi), %eax
leal (%rcx,%rax), %r13d
addl $0x5, %r13d
cmpl %r13d, %r14d
jge 0x73a4
movq %rsi, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movl %r13d, -0x2c(%rbp)
movslq %r14d, %rax
leaq (%rax,%rax), %r14
movl (%r15), %ebx
leaq 0xc(,%rax,2), %rsi
cmpl $0x1, %ebx
jne 0x732b
movq %r15, %rdi
callq 0x2220
movq %rax, %r15
movl %r14d, 0x4(%rax)
jmp 0x738a
movq %r12, %r13
movq %rsi, %rdi
callq 0x2200
movq %rax, %r12
movl $0x1, (%rax)
movl %r14d, 0x4(%rax)
movb $0x0, 0x8(%rax,%r14)
movl 0x4(%r15), %eax
cmpl %r14d, %eax
cmovgel %r14d, %eax
leaq 0x8(%r12), %rdi
movl %eax, 0x4(%r15)
leaq 0x8(%r15), %rsi
movslq %eax, %rdx
callq 0x21d0
leal -0x1(%rbx), %eax
movl %eax, (%r15)
cmpl $0x1, %ebx
jg 0x7380
testl %eax, %eax
jne 0x73e6
movq %r15, %rdi
callq 0x2030
movq %r12, %r15
movq %r13, %r12
movl -0x2c(%rbp), %r13d
movq %r15, 0x8(%r12)
cmpl %r13d, %r14d
jl 0x7303
movl (%r12), %eax
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rsi
movslq %ecx, %rdx
cltq
addq %rax, %r15
addq $0xd, %r15
movb $0x2, -0x5(%r15)
movl %ecx, -0x4(%r15)
movq %rcx, %rbx
movq (%rsi), %rsi
movq %r15, %rdi
callq 0x21d0
addl %ebx, %r15d
subl 0x8(%r12), %r15d
addl $-0x8, %r15d
movl %r15d, (%r12)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2c94(%rip), %rdi      # 0xa081
leaq 0x2c99(%rip), %rsi      # 0xa08d
leaq 0x2c99(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/meta.c
// Function: patch_read
const uint8_t *
patch_read(const uint8_t *p, struct PATCH *patch)
{
	patch->act = uint8(p);		p += 1;
	if (patch->act == PATCH_COPY)
		return patch_copy_read(p, &patch->u.copy);
	else if (patch->act == PATCH_INSERT)
		return patch_insert_read(p, &patch->u.insert);
	else
		assert(0);
	return NULL;
}

// Assembly:
movzbl (%rdi), %eax
movb %al, (%rsi)
cmpl $0x2, %eax
je 0x7426
cmpl $0x1, %eax
jne 0x743f
movl 0x1(%rdi), %eax
movl %eax, 0x8(%rsi)
movl 0x5(%rdi), %eax
movl %eax, 0xc(%rsi)
addq $0x9, %rdi
jmp 0x743b
movl 0x1(%rdi), %eax
movl %eax, 0x10(%rsi)
leaq 0x5(%rdi), %rcx
movq %rcx, 0x8(%rsi)
addq %rax, %rdi
addq $0x5, %rdi
movq %rdi, %rax
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x354a(%rip), %rdi      # 0xa994
leaq 0x3452(%rip), %rsi      # 0xa8a3
leaq 0x34ac(%rip), %rcx      # 0xa904
movl $0x136, %edx            # imm = 0x136
callq 0x2130
nop
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/dc3.c
// Function: radix_pass
static void
radix_pass(int *src, int *dst, int size, const int *buf, int space)
{
	int i, n, *c;
	space += 1;
	c = NEW(int, space);
	for (i = 0; i < space; i++)
		c[i] = 0;
	for (i = 0; i < size; i++) {
		int n = V(src[i]);
		++c[n];
	}
	n = 0;
	for (i = 0; i < space; i++) {
		int tmp = c[i];
		c[i] = n;
		n += tmp;
	}
	for (i = 0; i < size; i++) {
		int pos = c[V(src[i])]++;
		dst[pos] = src[i];
	}
	free(c);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x38(%rbp)
movq %rcx, %rbx
movl %edx, -0x2c(%rbp)
movq %rsi, %r14
movq %rdi, %r15
leal 0x1(%r8), %eax
movslq %eax, %r13
leaq (,%r13,4), %rdi
callq 0x2200
movq %rax, %r12
movl %r13d, %r13d
cmpl $0x0, -0x38(%rbp)
js 0x7bce
leaq (,%r13,4), %rdx
movq %r12, %rdi
xorl %esi, %esi
callq 0x2140
movl -0x2c(%rbp), %edi
movl %edi, %eax
testl %edi, %edi
jle 0x7bed
xorl %ecx, %ecx
movslq (%r15,%rcx,4), %rdx
movslq (%rbx,%rdx,4), %rdx
incl (%r12,%rdx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x7bd9
cmpl $0x0, -0x38(%rbp)
js 0x7c0b
xorl %ecx, %ecx
xorl %edx, %edx
movl (%r12,%rcx,4), %esi
addl %edx, %esi
movl %edx, (%r12,%rcx,4)
incq %rcx
movl %esi, %edx
cmpq %rcx, %r13
jne 0x7bf7
testl %edi, %edi
jle 0x7c31
xorl %ecx, %ecx
movslq (%r15,%rcx,4), %rdx
movslq (%rbx,%rdx,4), %rsi
movslq (%r12,%rsi,4), %rdi
leal 0x1(%rdi), %r8d
movl %r8d, (%r12,%rsi,4)
movl %edx, (%r14,%rdi,4)
incq %rcx
cmpq %rcx, %rax
jne 0x7c11
movq %r12, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2030
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/dc3.c
// Function: dc3
int *
dc3(const uint8_t *dat, int size)
{
	int i, *p;
	int *SA = NEW(int, size);
	int *buf = NEW(int, size+3);
	p = buf;
	for (i = 0; i < size; i++)
		*p++ = dat[i]+1;
	for (i = 0; i < 3; i++)
		*p++ = TERM;
	dc3_r(buf, SA, size, 0xff+1);
	free(buf);
	return SA;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %r12
movslq %esi, %r13
leaq (,%r13,4), %rdi
callq 0x2200
movq %rax, %rbx
leaq 0xc(,%r13,4), %rdi
callq 0x2200
movq %rax, %r15
movq %rax, %rcx
testl %r13d, %r13d
jle 0x7caa
movl %r14d, %ecx
xorl %eax, %eax
xorl %edx, %edx
movzbl (%r12,%rdx), %esi
incl %esi
movl %esi, (%r15,%rdx,4)
incq %rdx
addq $-0x4, %rax
cmpq %rdx, %rcx
jne 0x7c8d
movq %r15, %rcx
subq %rax, %rcx
movl $0x0, 0x8(%rcx)
movq $0x0, (%rcx)
movq %r15, %rdi
movq %rbx, %rsi
movl %r14d, %edx
movl $0x100, %ecx            # imm = 0x100
callq 0x7464
movq %r15, %rdi
callq 0x2030
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/sha1.c
// Function: SHA1_Update
void SHA1_Update(SHA1_CTX *ctx, const void *data, unsigned long len)
{
	unsigned int lenW = ctx->size & 63;

	ctx->size += len;

	/* Read the data into W and process blocks as they get full */
	if (lenW) {
		unsigned int left = 64 - lenW;
		if (len < left)
			left = len;
		memcpy(lenW + (char *)ctx->W, data, left);
		lenW = (lenW + left) & 63;
		len -= left;
		data = ((const char *)data + left);
		if (lenW)
			return;
		SHA1_Block(ctx, ctx->W);
	}
	while (len >= 64) {
		SHA1_Block(ctx, data);
		data = ((const char *)data + 64);
		len -= 64;
	}
	if (len)
		memcpy(ctx->W, data, len);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %r13
leaq (%rdx,%r13), %rcx
movl %r13d, %eax
movq %rcx, (%rdi)
andl $0x3f, %eax
je 0x7d76
movl $0x40, %ecx
subl %eax, %ecx
cmpq %rbx, %rcx
movl %ebx, %r12d
cmovbel %ecx, %r12d
movl %r13d, %eax
andl $0x3f, %eax
leaq (%r15,%rax), %rdi
addq $0x1c, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x21d0
movl %r12d, %eax
addl %r13d, %eax
testb $0x3f, %al
jne 0x7dba
leaq 0x1c(%r15), %rsi
addq %r12, %r14
subq %r12, %rbx
movq %r15, %rdi
callq 0x7dc9
cmpq $0x40, %rbx
jb 0x7d95
movq %r15, %rdi
movq %r14, %rsi
callq 0x7dc9
addq $0x40, %r14
addq $-0x40, %rbx
cmpq $0x3f, %rbx
ja 0x7d7c
testq %rbx, %rbx
je 0x7dba
addq $0x1c, %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21d0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/findstr[P]version-database/sha1.c
// Function: SHA1_Final
void SHA1_Final(unsigned char hashout[20], SHA1_CTX *ctx)
{
	static const unsigned char pad[64] = { 0x80 };
	unsigned int padlen[2];
	int i;

	/* Pad with a binary 1 (ie 0x80), then zeroes, then length */
	padlen[0] = htonl((uint32_t)(ctx->size >> 29));
	padlen[1] = htonl((uint32_t)(ctx->size << 3));

	i = ctx->size & 63;
	SHA1_Update(ctx, pad, 1 + (63 & (55 - i)));
	SHA1_Update(ctx, padlen, 8);

	/* Output hash */
	for (i = 0; i < 5; i++)
		put_be32(hashout + i * 4, ctx->H[i]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rax
leal (,%rax,8), %ecx
movl $0x37, %edx
subl %eax, %edx
shrq $0x1d, %rax
bswapl %eax
leaq -0x20(%rbp), %r15
movl %eax, (%r15)
bswapl %ecx
movl %ecx, 0x4(%r15)
andl $0x3f, %edx
incq %rdx
leaq 0x194b(%rip), %rsi      # 0xaa10
movq %rbx, %rdi
callq 0x7d07
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7d07
xorl %eax, %eax
movl 0x8(%rbx,%rax,4), %ecx
bswapl %ecx
movl %ecx, (%r14,%rax,4)
incq %rax
cmpq $0x5, %rax
jne 0x90df
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/primatesv1hanuman80/ref/primate.cpp
// Function: InitializeState(unsigned char*, unsigned char*, unsigned char*)
void InitializeState(unsigned char *state, unsigned char *key, unsigned char *nonce)
{
	GenerateRoundConstants();

	for(int i=0; i<RateSizeElements; i++)
		state[i]=0;
	for(int i=0; i<KeySizeElements; i++)
		state[RateSizeElements+i]=key[i];
	for(int i=0; i<NonceSizeElements; i++)
		state[(RateSizeElements+KeySizeElements)+i]=nonce[i];
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x1130
movq $0x0, (%r14)
xorl %eax, %eax
movb (%r15,%rax), %cl
movb %cl, 0x8(%r14,%rax)
incq %rax
cmpq $0x10, %rax
jne 0x21e6
xorl %eax, %eax
movb (%rbx,%rax), %cl
movb %cl, 0x18(%r14,%rax)
incq %rax
cmpq $0x10, %rax
jne 0x21fa
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: type_string_to_number
int type_string_to_number(char *type)
{
    if (0 == strcmp("int", type)) {
        return LEDA_TYPE_INT;
    } else if (0 == strcmp("bool", type)) {
        return LEDA_TYPE_BOOL;
    } else if (0 == strcmp("float", type)) {
        return LEDA_TYPE_FLOAT;
    } else if (0 == strcmp("text", type)) {
        return LEDA_TYPE_TEXT;
    } else if (0 == strcmp("date", type)) {
        return LEDA_TYPE_DATE;
    } else if (0 == strcmp("enum", type)) {
        return LEDA_TYPE_ENUM;
    } else if (0 == strcmp("struct", type)) {
        return LEDA_TYPE_STRUCT;
    } else if (0 == strcmp("array", type)) {
        return LEDA_TYPE_ARRAY;
    } else if (0 == strcmp("double", type)) {
        return LEDA_TYPE_DOUBLE;
    } else {
        return -1;
    }
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x586b(%rip), %rdi      # 0xa048
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x4896
leaq 0x5858(%rip), %rdi      # 0xa04c
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x489a
leaq 0x5846(%rip), %rdi      # 0xa051
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x48a1
leaq 0x5835(%rip), %rdi      # 0xa057
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x48a8
leaq 0x5827(%rip), %rdi      # 0xa05c
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x48af
leaq 0x5819(%rip), %rdi      # 0xa061
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x48b6
leaq 0x580b(%rip), %rdi      # 0xa066
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x48bd
leaq 0x57ff(%rip), %rdi      # 0xa06d
movq %rbx, %rsi
callq 0x4380
testl %eax, %eax
je 0x48c4
leaq 0x57f2(%rip), %rdi      # 0xa073
movq %rbx, %rsi
callq 0x4380
movl %eax, %ecx
xorl %eax, %eax
negl %ecx
sbbl %eax, %eax
orl $0x8, %eax
jmp 0x48c9
xorl %eax, %eax
jmp 0x48c9
movl $0x1, %eax
jmp 0x48c9
movl $0x2, %eax
jmp 0x48c9
movl $0x3, %eax
jmp 0x48c9
movl $0x4, %eax
jmp 0x48c9
movl $0x5, %eax
jmp 0x48c9
movl $0x6, %eax
jmp 0x48c9
movl $0x7, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: get_msg_id
unsigned int get_msg_id()
{
    int ret = 0;

    pthread_mutex_lock(&g_msg_locker);
    ret = ++g_msg_id;
    pthread_mutex_unlock(&g_msg_locker);

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x9730(%rip), %rbx      # 0xe440
movq %rbx, %rdi
callq 0x46a0
movl 0x9749(%rip), %r14d     # 0xe468
incl %r14d
movl %r14d, 0x973f(%rip)     # 0xe468
movq %rbx, %rdi
callq 0x4410
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: wsa_insert_reply
int wsa_insert_reply(int msg_id)
{
    wsa_reply_t *reply;

    pthread_mutex_lock(&wsa_replay_lock);
    reply = (wsa_reply_t *)malloc(sizeof(wsa_reply_t));
    if (NULL == reply) {
        log_e(LOG_TAG, "no memory\r\n");
        pthread_mutex_unlock(&wsa_replay_lock);
        return LE_ERROR_ALLOCATING_MEM;
    }
    reply->msg_id = msg_id;
    reply->code = LE_ERROR_UNKNOWN;
    if (0 != sem_init(&reply->sem, 0, 0)) {
        free(reply);
        pthread_mutex_unlock(&wsa_replay_lock);
        log_e(LOG_TAG, "semphore init error!");
        return LE_ERROR_UNKNOWN;
    }
    list_add(&reply->list_node, &wsa_replay_head);
    pthread_mutex_unlock(&wsa_replay_lock);
    return LE_SUCCESS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
movq 0x9233(%rip), %rdi      # 0xdf80
callq 0x46a0
movl $0x40, %edi
callq 0x46d8
testq %rax, %rax
je 0x4ddc
movq %rax, %r14
movl %ebx, 0x10(%rax)
movl $0x186a0, 0x14(%rax)    # imm = 0x186A0
movq %rax, %rdi
addq $0x18, %rdi
xorl %ebx, %ebx
xorl %esi, %esi
xorl %edx, %edx
callq 0x44f0
testl %eax, %eax
je 0x4e28
movq %r14, %rdi
callq 0x46d0
movq 0x91e9(%rip), %rdi      # 0xdf80
callq 0x4410
leaq 0x5398(%rip), %rax      # 0xa13b
movq %rax, (%rsp)
leaq 0x52e2(%rip), %rsi      # 0xa090
leaq 0x52e1(%rip), %rdx      # 0xa096
leaq 0x52df(%rip), %rcx      # 0xa09b
leaq 0x535b(%rip), %r8       # 0xa11e
movl $0x3, %edi
movl $0x121, %r9d            # imm = 0x121
xorl %eax, %eax
callq 0x4260
movl $0x186a0, %ebx          # imm = 0x186A0
jmp 0x4e4c
leaq 0x534c(%rip), %rax      # 0xa12f
movq %rax, (%rsp)
leaq 0x52a2(%rip), %rsi      # 0xa090
leaq 0x52a1(%rip), %rdx      # 0xa096
leaq 0x529f(%rip), %rcx      # 0xa09b
leaq 0x531b(%rip), %r8       # 0xa11e
movl $0x3, %edi
movl $0x118, %r9d            # imm = 0x118
xorl %eax, %eax
callq 0x4260
movq 0x9164(%rip), %rdi      # 0xdf80
callq 0x4410
movl $0x186a2, %ebx          # imm = 0x186A2
jmp 0x4e4c
movq 0x9179(%rip), %rax      # 0xdfa8
movq (%rax), %rcx
movq %r14, 0x8(%rcx)
movq %rcx, (%r14)
movq %rax, 0x8(%r14)
movq %r14, (%rax)
movq 0x9139(%rip), %rdi      # 0xdf80
callq 0x4410
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: wsa_remove_reply
void wsa_remove_reply(int msg_id)
{
    wsa_reply_t *reply;

    reply = _wsa_get_reply_by_msg_id(msg_id);
    if (NULL == reply) {
        return;
    }

    pthread_mutex_lock(&wsa_replay_lock);
    if (reply->payload) {
        free(reply->payload);
        reply->payload = NULL;
    }
    sem_destroy(&reply->sem);
    list_del(&reply->list_node);
    free(reply);
    pthread_mutex_unlock(&wsa_replay_lock);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
callq 0x4ec7
testq %rax, %rax
je 0x4ec0
movq %rax, %rbx
movq 0x910f(%rip), %rdi      # 0xdf80
callq 0x46a0
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x4e8c
callq 0x46d0
movq $0x0, 0x38(%rbx)
movq %rbx, %rdi
addq $0x18, %rdi
callq 0x4690
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%rax)
movq %rax, (%rcx)
movq %rbx, %rdi
callq 0x46d0
movq 0x90cb(%rip), %rdi      # 0xdf80
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4410
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: wsa_get_reply_by_msg_id
static wsa_reply_t *_wsa_get_reply_by_msg_id(int msg_id)
{
    wsa_reply_t *pos, *next, *reply = NULL;

    pthread_mutex_lock(&wsa_replay_lock);
    list_for_each_entry_safe(pos, next, &wsa_replay_head, list_node) {
        if (pos->msg_id == msg_id) {
            reply = pos;
            break;
        }
    }
    pthread_mutex_unlock(&wsa_replay_lock);
    return reply;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %r14d
movq 0x90a8(%rip), %rdi      # 0xdf80
callq 0x46a0
movq 0x90c4(%rip), %rax      # 0xdfa8
movq %rax, %rbx
movq (%rbx), %rbx
cmpq %rax, %rbx
je 0x4ef7
cmpl %r14d, 0x10(%rbx)
jne 0x4ee7
jmp 0x4ef9
xorl %ebx, %ebx
movq 0x9080(%rip), %rdi      # 0xdf80
callq 0x4410
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: wsa_set_reply_result
int wsa_set_reply_result(int msg_id, int code, char *payload)
{
    wsa_reply_t *reply;

    reply = _wsa_get_reply_by_msg_id(msg_id);
    if (NULL == reply) {
        return -1;
    }

    pthread_mutex_lock(&wsa_replay_lock);
    reply->code = code;
    if (payload) {
        reply->payload = strdup(payload);
    }
    pthread_mutex_unlock(&wsa_replay_lock);
    sem_post(&reply->sem);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r15d
callq 0x4ec7
testq %rax, %rax
je 0x4f67
movq %rax, %rbx
movq 0x904f(%rip), %rdi      # 0xdf80
callq 0x46a0
movl %r15d, 0x14(%rbx)
testq %r14, %r14
je 0x4f4b
movq %r14, %rdi
callq 0x4630
movq %rax, 0x38(%rbx)
movq 0x902e(%rip), %rdi      # 0xdf80
callq 0x4410
addq $0x18, %rbx
movq %rbx, %rdi
callq 0x4310
xorl %eax, %eax
jmp 0x4f6c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: leda_parse_received_msg
int leda_parse_received_msg(cJSON *root, int *msg_id, int *code, char **method, cJSON **payload)
{
    cJSON *item = NULL;

    item = cJSON_GetObjectItem(root, "messageId");
    if ((NULL == item) || (cJSON_Number != item->type)) {
        log_e(LOG_TAG, "msg id type is not integer\n");
        return MSG_INVALID;
    }
    *msg_id = item->valueint;
    *payload = cJSON_GetObjectItem(root, "payload");
    item = cJSON_GetObjectItem(root, "code");    
    if (item) {
        if (cJSON_Number != item->type) {
            log_e(LOG_TAG, "code type is not integer\n");
            return MSG_INVALID;
        }
        *code = item->valueint;
        return MSG_RSP;
    }
    item = cJSON_GetObjectItem(root, "method");
    if ((NULL == item) || (cJSON_String != item->type)) {
        return MSG_INVALID;
    }
    *method = item->valuestring;

    return MSG_METHOD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
leaq 0x506b(%rip), %rsi      # 0xa194
callq 0x40a0
testq %rax, %rax
je 0x517b
cmpl $0x8, 0x18(%rax)
jne 0x517b
movl 0x28(%rax), %eax
movl %eax, (%r13)
leaq 0x508b(%rip), %rsi      # 0xa1d2
movq %r15, %rdi
callq 0x40a0
movq %rax, (%r12)
leaq 0x5080(%rip), %rsi      # 0xa1da
movq %r15, %rdi
callq 0x40a0
testq %rax, %rax
je 0x51c8
cmpl $0x8, 0x18(%rax)
jne 0x51f8
movl 0x28(%rax), %eax
movl %eax, (%r14)
xorl %eax, %eax
jmp 0x51b9
leaq 0x5034(%rip), %rax      # 0xa1b6
movq %rax, (%rsp)
leaq 0x4f03(%rip), %rsi      # 0xa090
leaq 0x4f02(%rip), %rdx      # 0xa096
leaq 0x4f00(%rip), %rcx      # 0xa09b
leaq 0x4ffc(%rip), %r8       # 0xa19e
movl $0x3, %edi
movl $0x17e, %r9d            # imm = 0x17E
xorl %eax, %eax
callq 0x4260
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x50c3(%rip), %rsi      # 0xa292
movq %r15, %rdi
callq 0x40a0
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rcx, %rcx
je 0x51b9
cmpl $0x10, 0x18(%rcx)
jne 0x51b9
movq 0x20(%rcx), %rax
movq %rax, (%rbx)
movl $0x1, %eax
jmp 0x51b9
leaq 0x4fe0(%rip), %rax      # 0xa1df
movq %rax, (%rsp)
leaq 0x4e86(%rip), %rsi      # 0xa090
leaq 0x4e85(%rip), %rdx      # 0xa096
leaq 0x4e83(%rip), %rcx      # 0xa09b
leaq 0x4f7f(%rip), %r8       # 0xa19e
movl $0x3, %edi
movl $0x186, %r9d            # imm = 0x186
jmp 0x51ad
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: leda_send_rsp
int leda_send_rsp(int code, int msg_id, cJSON *payload)
{
    cJSON *root;
    char *msg;
    int ret;

    root = cJSON_CreateObject();
    if (!root) {
        return LE_ERROR_ALLOCATING_MEM;
    }
    cJSON_AddNumberToObject(root, "code", code);
    cJSON_AddNumberToObject(root, "messageId", msg_id);
    if (!payload) {
        payload  = cJSON_CreateObject();
        if (!payload) {
            cJSON_Delete(root);
            return LE_ERROR_ALLOCATING_MEM;
        }
    }
    cJSON_AddItemToObject(root, "payload", payload);

    msg = cJSON_Print(root);
    cJSON_Delete(root);
    if (!msg) {
        return LE_ERROR_ALLOCATING_MEM;
    }
    log_i(LOG_TAG, "send messege to server: %s", msg);
    ret = wsc_add_msg(msg, strlen(msg) + 1, 0);
    free(msg);

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %r15d
movl %edi, %r12d
callq 0x45e0
testq %rax, %rax
je 0x5856
movq %rax, %rbx
cvtsi2sd %r12d, %xmm0
leaq 0x4a4c(%rip), %rsi      # 0xa1da
movq %rax, %rdi
callq 0x4210
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
leaq 0x49ef(%rip), %rsi      # 0xa194
movq %rbx, %rdi
callq 0x4210
testq %r14, %r14
jne 0x57c3
callq 0x45e0
movq %rax, %r14
testq %rax, %rax
je 0x584e
leaq 0x4a08(%rip), %rsi      # 0xa1d2
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4610
movq %rbx, %rdi
callq 0x40b0
movq %rax, %r14
movq %rbx, %rdi
callq 0x41a0
testq %r14, %r14
je 0x5856
leaq 0x4a6a(%rip), %r10      # 0xa25e
leaq 0x4a47(%rip), %rsi      # 0xa242
leaq 0x4894(%rip), %rdx      # 0xa096
leaq 0x4892(%rip), %rcx      # 0xa09b
leaq 0x4a98(%rip), %r8       # 0xa2a8
movl $0x1, %edi
movl $0x23d, %r9d            # imm = 0x23D
xorl %eax, %eax
pushq %r14
pushq %r10
callq 0x4260
addq $0x10, %rsp
movq %r14, %rdi
callq 0x4200
leaq 0x1(%rax), %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x44a0
movl %eax, %ebx
movq %r14, %rdi
callq 0x46d0
movl %ebx, %eax
jmp 0x585b
movq %rbx, %rdi
callq 0x41a0
movl $0x186a2, %eax          # imm = 0x186A2
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/back1127[P]linkedge-thing-access-websocket_client_sdk/sdk/leda.c
// Function: leda_rsp_get_properties
int leda_rsp_get_properties(char *pk, char *dn, int msg_id, leda_device_data_t *data, int data_cnt)
{
    int ret = LE_ERROR_UNKNOWN;
    cJSON *root, *payload, *properties;
    char *msg;

    payload = cJSON_CreateObject();
    if (!payload) {
        return LE_ERROR_ALLOCATING_MEM;
    }

    if (g_devs_cb.get_properties_cb) {
        ret = g_devs_cb.get_properties_cb(pk, dn, data, data_cnt, g_devs_cb.usr_data_get_property);
    } else {
        log_e(LOG_TAG, "callback get_properties_cb unregistered!\n");
    }
    
    if (ret == LE_SUCCESS) {
        properties = struct_data_to_json_data(data, data_cnt);
        cJSON_AddItemToObject(payload, "properties", properties);
    }

    return leda_send_rsp(ret, msg_id, payload);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r15d
movq %rcx, %r12
movl %edx, -0x2c(%rbp)
movq %rsi, %r13
movq %rdi, %rbx
callq 0x45e0
testq %rax, %rax
je 0x58d9
movq %rax, %r14
movq 0x8c00(%rip), %rax      # 0xe498
testq %rax, %rax
je 0x58ed
movq 0x8bfc(%rip), %r8       # 0xe4a0
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl %r15d, %ecx
callq *%rax
movl %eax, %edi
testl %eax, %eax
jne 0x592b
movq %r12, %rdi
movl %r15d, %esi
callq 0x45a0
leaq 0x49f9(%rip), %rsi      # 0xa2c3
movq %r14, %rdi
movq %rax, %rdx
callq 0x4610
xorl %edi, %edi
jmp 0x592b
movl $0x186a2, %eax          # imm = 0x186A2
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x49da(%rip), %rax      # 0xa2ce
movq %rax, (%rsp)
leaq 0x4791(%rip), %rsi      # 0xa090
leaq 0x4790(%rip), %rdx      # 0xa096
leaq 0x478e(%rip), %rcx      # 0xa09b
leaq 0x49a2(%rip), %r8       # 0xa2b6
movl $0x3, %edi
movl $0x252, %r9d            # imm = 0x252
xorl %eax, %eax
callq 0x4260
movl $0x186a0, %edi          # imm = 0x186A0
movl -0x2c(%rbp), %esi
movq %r14, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4390