// File: /workspace/github_c_makefile_star2_O3/loversmile[P]sugarcrm/sugar_function.c
// Function: searchModule
int searchModule(struct soap *soap, const char *soap_endpoint, char *session, enum module_name module_name, char *search_string,
                enum search_type search_type, SGSearchResult *search_result)
{
    struct select_USCOREfields *modules = NULL;
    int offset = 0;
    int max_results = 20;
    char *assigned_user_id = "";//NULL;
    struct select_USCOREfields *select_fields = NULL;
    struct ns1__search_USCOREby_USCOREmoduleResponse *_param_17 = NULL;
    modules = (struct select_USCOREfields *)malloc(sizeof(struct select_USCOREfields ));
    select_fields = (struct select_USCOREfields *)malloc(sizeof(struct select_USCOREfields));
    _param_17 = (struct ns1__search_USCOREby_USCOREmoduleResponse *)malloc(sizeof(struct ns1__search_USCOREby_USCOREmoduleResponse));
    int ret = -1;
    
    char soap_action[128] = {0};
    memset(soap_action, 0, sizeof(soap_action));
    snprintf(soap_action, sizeof(soap_action), "%s/search_by_module", soap_endpoint);
    int item = 0;
	char rel_string[64] = {0};
	char string_number[64] = {0};
    if (CRM_TYPE_PHONE == search_type) 
	{
        //addPercent(rel_string, search_string);
		leave_number(string_number, search_string);
		addPercent(rel_string, string_number);
        printf("rel = %s\n",  rel_string);
		printf("leave = %s\n",  string_number);
    }
	else
	{
		strcpy(rel_string, search_string);
	}
    switch(module_name){
        case CRM_MODULE_ACCOUNTS:
            modules->__ptr = (char**)malloc(sizeof(char*));
            modules->__ptr[0] = strdup("Accounts");
            modules->__size = 1;
            select_fields->__ptr = (char**)malloc(PTR_SIZE);
            select_fields->__ptr[item++] = strdup("id");
            select_fields->__ptr[item++] = strdup("name");
            select_fields->__ptr[item++] = strdup("account_type");
            select_fields->__ptr[item++] = strdup("phone_office");
            select_fields->__ptr[item++] = strdup("assigned_user_name");     
            select_fields->__ptr[item++] = strdup("billing_address_city");
            select_fields->__size = item;

            ret = soap_call_ns1__search_USCOREby_USCOREmodule(soap, soap_endpoint, soap_action, session, rel_string, modules, offset, max_results, "",
                            select_fields, 0, 0, _param_17); 
            break;
        case CRM_MODULE_CONTACTS:
            modules->__ptr = (char**)malloc(sizeof(char*));
            modules->__ptr[0] = strdup("Contacts");
            modules->__size = 1;
            
            select_fields->__ptr = (char**)malloc(PTR_SIZE);
            select_fields->__ptr[item++] = strdup("id");
            select_fields->__ptr[item++] = strdup("name");
            select_fields->__ptr[item++] = strdup("phone_home");
            select_fields->__ptr[item++] = strdup("phone_work");
            select_fields->__ptr[item++] = strdup("phone_mobile");
            select_fields->__ptr[item++] = strdup("assigned_user_name");
            select_fields->__size = item;
            ret = soap_call_ns1__search_USCOREby_USCOREmodule(soap, soap_endpoint, soap_action, session, search_string, modules, offset, max_results, "",
                            select_fields, 0, 0, _param_17); 
            break;
        case CRM_MODULE_LEADS:
            modules->__ptr = (char**)malloc(sizeof(char*));
            modules->__ptr[0] = strdup("Leads");
            modules->__size = 1;
            select_fields->__ptr = (char**)malloc(PTR_SIZE);
            select_fields->__ptr[item++] = strdup("id");
            select_fields->__ptr[item++] = strdup("name");
            select_fields->__ptr[item++] = strdup("phone_home");
            select_fields->__ptr[item++] = strdup("phone_work");
            select_fields->__ptr[item++] = strdup("phone_mobile");
            select_fields->__ptr[item++] = strdup("assigned_user_name");
            select_fields->__size = item;
            ret = soap_call_ns1__search_USCOREby_USCOREmodule(soap, soap_endpoint, soap_action, session, search_string, modules, offset, max_results, "",
                            select_fields, 0, 0, _param_17); 
            break;
        case CRM_MODULE_CALLS:
            modules->__ptr = (char**)malloc(sizeof(char*));
            modules->__ptr[0] = strdup("Calls");
            modules->__size = 1;
            select_fields->__ptr = (char**)malloc(PTR_SIZE);
            select_fields->__ptr[item++] = strdup("id");
            select_fields->__ptr[item++] = strdup("name");
            select_fields->__ptr[item++] = strdup("date_start");
            select_fields->__ptr[item++] = strdup("date_end");
            select_fields->__size = item;
            ret = soap_call_ns1__search_USCOREby_USCOREmodule(soap, soap_endpoint, soap_action, session, search_string, modules, offset, max_results, "",
                            select_fields, 0, 0, _param_17); 
            break;
        default:
            return 0;
            break;
    }

	int f = 0;
	for (f = 0; f < modules->__size; f++) {
		SAFE_FREE(modules->__ptr[f]);
	}
	SAFE_FREE(modules->__ptr);
	SAFE_FREE(modules);
	
		//modules->__ptr[f] = NULL;
	for (f = 0; f < select_fields->__size; f++) {
		SAFE_FREE(select_fields->__ptr[f]);
	}
	SAFE_FREE(select_fields->__ptr);
	SAFE_FREE(select_fields);

    
    if (ret == SOAP_OK) {
        printf("Search Success!\n");
        printf("%d\n", _param_17->return_->entry_USCORElist->__size);
        int value_size = _param_17->return_->entry_USCORElist->__size;
        int i = 0;
        for (i = 0; i < value_size; i++){
            printf("name  = %s\n", _param_17->return_->entry_USCORElist->__ptr[i]->name);
            if (search_result != NULL)
                search_result->module = strdup(_param_17->return_->entry_USCORElist->__ptr[i]->name);
            printf("size = %d\n", _param_17->return_->entry_USCORElist->__ptr[i]->records->__size);
            int records_size = _param_17->return_->entry_USCORElist->__ptr[i]->records->__size;
            for (int j = 0; j < records_size; j++) {
                printf("record[%d] -------------I\n", j);
				char return_id[64] = {0};
				char return_phone_office[64] = {0};
				char return_phone_home[64] = {0};
				char return_phone_work[64] = {0};
				char return_phone_mobile[64] = {0};
                for(int k = 0; k < _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[0]->__size; k++) {
                    printf("    name   = %s\n", _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->name);
                    printf("    value  = %s\n", _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                    if (!strcasecmp("id", _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->name)) {
                        if (search_result != NULL) {
                        	//*result_char = strdup(_param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                        	strcpy(return_id, _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                            //search_result->id = strdup(_param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                        }
                    }
					if (!strcasecmp("phone_office", _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->name)) 
					{
						if (search_result != NULL) {
                        	leave_number(return_phone_office, _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                        }
					}
					if (!strcasecmp("phone_home", _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->name)) 
					{
						if (search_result != NULL) {
                        	leave_number(return_phone_home, _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                        }
					}
					if (!strcasecmp("phone_work", _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->name)) 
					{
						if (search_result != NULL) {
                        	leave_number(return_phone_work, _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                        }
					}
					if (!strcasecmp("phone_mobile", _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->name)) 
					{
						if (search_result != NULL) {
                        	leave_number(return_phone_mobile, _param_17->return_->entry_USCORElist->__ptr[i]->records->__ptr[j]->__ptr[k]->value);
                        }
					}
					if (!strcmp(string_number, return_phone_office) || 
						!strcmp(string_number, return_phone_home) ||
						!strcmp(string_number, return_phone_work) ||
						!strcmp(string_number, return_phone_mobile))
					{
						search_result->id = strdup(return_id);
						SAFE_FREE(_param_17);
						return ret;
					}
                }
            }
        }
		SAFE_FREE(_param_17);
        return ret;
    } else if (ret == SOAP_TYPE) {
        printf("Result not match!\n");
        if (_param_17 == NULL)
            printf("17 is null\n");
        else
            printf("17 is not null\n");
		SAFE_FREE(_param_17);
        return ret;
    } else {
        printf("ret = %d\n", ret);
        soap_print_fault(soap, stderr);
		SAFE_FREE(_param_17);
        return ret;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movl %r9d, %ebp
movq %r8, %rbx
movl %ecx, 0x10(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movl $0x10, %edi
callq 0x3290
movq %rax, %r12
movl $0x10, %edi
callq 0x3290
movq %rax, %r15
movl $0x8, %edi
callq 0x3290
movq %rax, %r13
xorps %xmm0, %xmm0
leaq 0x1f0(%rsp), %rdi
movaps %xmm0, 0x70(%rdi)
movaps %xmm0, 0x60(%rdi)
movaps %xmm0, 0x50(%rdi)
movaps %xmm0, 0x40(%rdi)
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
leaq 0x74e5(%rip), %rdx      # 0x53fe2
movl $0x80, %esi
movq %r14, 0x18(%rsp)
movq %r14, %rcx
xorl %eax, %eax
callq 0x3150
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
cmpl $0x1, %ebp
jne 0x4cb87
leaq 0x70(%rsp), %rax
testq %rbx, %rbx
movq %rbx, %r14
je 0x4cb9c
movb (%r14), %sil
testb %sil, %sil
movq %r13, %rbx
je 0x4cba1
leaq 0x1(%r14), %rdx
leaq 0x30(%rsp), %rcx
leal -0x3a(%rsi), %edi
cmpb $-0xa, %dil
jb 0x4cb7a
movb %sil, (%rcx)
incq %rcx
movb (%rdx), %sil
incq %rdx
testb %sil, %sil
jne 0x4cb6b
jmp 0x4cba6
leaq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x3090
movq %rbx, %r14
movq %r13, %rbx
jmp 0x4cbf7
movq %r13, %rbx
jmp 0x4cbce
leaq 0x30(%rsp), %rcx
movb $0x0, (%rcx)
movb 0x30(%rsp), %cl
testb %cl, %cl
je 0x4cbce
leaq 0x70(%rsp), %rax
leaq 0x31(%rsp), %rdx
movb $0x25, (%rax)
movb %cl, 0x1(%rax)
addq $0x2, %rax
movb (%rdx), %cl
incq %rdx
testb %cl, %cl
jne 0x4cbbb
movb $0x0, (%rax)
leaq 0x741e(%rip), %rdi      # 0x53ff6
leaq 0x70(%rsp), %rsi
xorl %eax, %eax
callq 0x3140
leaq 0x7415(%rip), %rdi      # 0x54000
leaq 0x30(%rsp), %rsi
xorl %eax, %eax
callq 0x3140
movl 0x10(%rsp), %eax
cmpl $0x3, %eax
ja 0x4d491
movl %eax, %eax
leaq 0x7257(%rip), %rcx      # 0x53e64
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, %edi
callq 0x3290
movq %rax, %r14
movq %rax, (%r12)
leaq 0x73de(%rip), %rdi      # 0x5400c
callq 0x3390
movq %rax, (%r14)
movl $0x1, 0x8(%r12)
movl $0x40, %edi
callq 0x3290
movq %rax, %r14
movq %rax, (%r15)
leaq 0x4bf4(%rip), %rdi      # 0x5184a
callq 0x3390
movq %rax, (%r14)
leaq 0x499e(%rip), %rdi      # 0x51603
callq 0x3390
movq %rax, 0x8(%r14)
leaq 0x73a0(%rip), %rdi      # 0x54015
callq 0x3390
movq %rax, 0x10(%r14)
leaq 0x739d(%rip), %rdi      # 0x54022
callq 0x3390
movq %rax, 0x18(%r14)
leaq 0x739a(%rip), %rdi      # 0x5402f
callq 0x3390
movq %rax, 0x20(%r14)
leaq 0x739d(%rip), %rdi      # 0x54042
callq 0x3390
movq %rax, 0x28(%r14)
movl $0x6, 0x8(%r15)
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x5a6f(%rip), %r10      # 0x52732
leaq 0x1f8(%rsp), %rdx
leaq 0x78(%rsp), %r8
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rcx
jmp 0x4ce57
movl $0x8, %edi
callq 0x3290
movq %rax, %r13
movq %rax, (%r12)
leaq 0x7384(%rip), %rdi      # 0x54083
jmp 0x4cda3
movl $0x8, %edi
callq 0x3290
movq %rax, %r13
movq %rax, (%r12)
leaq 0x736d(%rip), %rdi      # 0x54089
callq 0x3390
movq %rax, (%r13)
movl $0x1, 0x8(%r12)
movl $0x40, %edi
callq 0x3290
movq %rax, %r13
movq %rax, (%r15)
leaq 0x4b05(%rip), %rdi      # 0x5184a
callq 0x3390
movq %rax, (%r13)
leaq 0x48ae(%rip), %rdi      # 0x51603
callq 0x3390
movq %rax, 0x8(%r13)
leaq 0x732a(%rip), %rdi      # 0x5408f
callq 0x3390
movq %rax, 0x10(%r13)
leaq 0x7325(%rip), %rdi      # 0x5409a
callq 0x3390
movq %rax, 0x18(%r13)
movl $0x4, 0x8(%r15)
jmp 0x4ce2d
movl $0x8, %edi
callq 0x3290
movq %rax, %r13
movq %rax, (%r12)
leaq 0x72b4(%rip), %rdi      # 0x54057
callq 0x3390
movq %rax, (%r13)
movl $0x1, 0x8(%r12)
movl $0x40, %edi
callq 0x3290
movq %rax, %r13
movq %rax, (%r15)
leaq 0x4a7e(%rip), %rdi      # 0x5184a
callq 0x3390
movq %rax, (%r13)
leaq 0x4827(%rip), %rdi      # 0x51603
callq 0x3390
movq %rax, 0x8(%r13)
leaq 0x7274(%rip), %rdi      # 0x54060
callq 0x3390
movq %rax, 0x10(%r13)
leaq 0x726f(%rip), %rdi      # 0x5406b
callq 0x3390
movq %rax, 0x18(%r13)
leaq 0x726a(%rip), %rdi      # 0x54076
callq 0x3390
movq %rax, 0x20(%r13)
leaq 0x7213(%rip), %rdi      # 0x5402f
callq 0x3390
movq %rax, 0x28(%r13)
movl $0x6, 0x8(%r15)
subq $0x8, %rsp
xorl %eax, %eax
leaq 0x58f8(%rip), %r10      # 0x52732
leaq 0x1f8(%rsp), %rdx
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rcx
movq %r14, %r8
movq %r12, %r9
pushq %rbx
pushq %rax
pushq %rax
pushq %r15
pushq %r10
pushq $0x14
pushq %rax
callq 0x36455
addq $0x40, %rsp
movl %eax, %ebp
movl 0x8(%r12), %eax
testl %eax, %eax
jle 0x4cea9
xorl %r14d, %r14d
movq (%r12), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x4ce9e
callq 0x3030
movq (%r12), %rax
movq $0x0, (%rax,%r14,8)
movl 0x8(%r12), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x4ce7b
movq (%r12), %rdi
testq %rdi, %rdi
je 0x4ceb7
callq 0x3030
movq %r12, %rdi
callq 0x3030
movl 0x8(%r15), %eax
testl %eax, %eax
jle 0x4cef5
xorl %r14d, %r14d
movq (%r15), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x4ceea
callq 0x3030
movq (%r15), %rax
movq $0x0, (%rax,%r14,8)
movl 0x8(%r15), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x4ceca
movq (%r15), %rdi
testq %rdi, %rdi
je 0x4cf02
callq 0x3030
movq %r15, %rdi
callq 0x3030
cmpl $0x4, %ebp
je 0x4d420
testl %ebp, %ebp
jne 0x4d447
leaq 0x7374(%rip), %rdi      # 0x54296
callq 0x30a0
movq (%rbx), %rax
movq (%rax), %rax
movl 0x8(%rax), %esi
leaq 0x717f(%rip), %rdi      # 0x540b6
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x3140
movq (%rbx), %rax
movq (%rax), %rcx
movslq 0x8(%rcx), %rcx
movq %rcx, 0x18(%rsp)
testq %rcx, %rcx
jle 0x4d46e
movq 0x2b0(%rsp), %r12
leaq 0x713c(%rip), %rdi      # 0x540a3
leaq 0x7141(%rip), %r14      # 0x540af
leaq 0x7145(%rip), %r15      # 0x540ba
xorl %r13d, %r13d
movq %rbx, 0x28(%rsp)
movq (%rax), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq (%rax), %rsi
xorl %eax, %eax
callq 0x3140
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax), %rbx
testq %r12, %r12
je 0x4cfb0
movq (%rbx,%r13,8), %rax
movq (%rax), %rdi
callq 0x3390
movq %rax, 0x8(%r12)
movq (%rbx,%r13,8), %rax
movq 0x8(%rax), %rax
movl 0x8(%rax), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x3140
movq 0x28(%rsp), %rbx
movq (%rbx), %rax
movq (%rax), %rcx
movq (%rcx), %rcx
movq (%rcx,%r13,8), %rcx
movq 0x8(%rcx), %rcx
movslq 0x8(%rcx), %rcx
movq %rcx, 0x20(%rsp)
testq %rcx, %rcx
jle 0x4d3fd
xorl %r14d, %r14d
movq %r13, 0x8(%rsp)
movq %r15, %rdi
movl %r14d, %esi
xorl %eax, %eax
callq 0x3140
xorps %xmm0, %xmm0
movaps %xmm0, 0x1e0(%rsp)
movaps %xmm0, 0x1d0(%rsp)
movaps %xmm0, 0x1c0(%rsp)
movaps %xmm0, 0x1b0(%rsp)
movaps %xmm0, 0x1a0(%rsp)
movaps %xmm0, 0x190(%rsp)
movaps %xmm0, 0x180(%rsp)
movaps %xmm0, 0x170(%rsp)
movaps %xmm0, 0x160(%rsp)
movaps %xmm0, 0x150(%rsp)
movaps %xmm0, 0x140(%rsp)
movaps %xmm0, 0x130(%rsp)
movaps %xmm0, 0x120(%rsp)
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movq (%rbx), %rax
movq (%rax), %rcx
movq (%rcx), %rcx
movq (%rcx,%r13,8), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
movq (%rcx), %rdx
cmpl $0x0, 0x8(%rdx)
jle 0x4d3e8
xorl %ebp, %ebp
movq %r14, 0x10(%rsp)
movq (%rcx,%r14,8), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %rax
movq (%rax), %rsi
leaq 0x6ff3(%rip), %rdi      # 0x540d5
xorl %eax, %eax
callq 0x3140
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %rax
movq 0x8(%rax), %rsi
leaq 0x6fd3(%rip), %rdi      # 0x540e6
xorl %eax, %eax
callq 0x3140
movq (%rbx), %rbx
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq (%rax,%r14,8), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %r13
movq (%r13), %r15
leaq 0x4706(%rip), %rdi      # 0x5184a
movq %r15, %rsi
callq 0x3050
movq %r12, %r14
testq %r12, %r12
je 0x4d193
testl %eax, %eax
jne 0x4d193
movq 0x8(%r13), %rsi
leaq 0x1b0(%rsp), %rdi
callq 0x3090
movq (%rbx), %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %r13
movq (%r13), %r15
leaq 0x6e88(%rip), %rdi      # 0x54022
movq %r15, %rsi
callq 0x3050
testq %r14, %r14
movq 0x28(%rsp), %rbx
je 0x4d211
testl %eax, %eax
jne 0x4d211
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x4d211
movb (%rax), %dl
leaq 0x170(%rsp), %rcx
testb %dl, %dl
movq 0x8(%rsp), %rdi
je 0x4d1e6
incq %rax
leal -0x3a(%rdx), %esi
cmpb $-0xa, %sil
jb 0x4d1dd
movb %dl, (%rcx)
incq %rcx
movb (%rax), %dl
incq %rax
testb %dl, %dl
jne 0x4d1cf
movb $0x0, (%rcx)
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax), %rax
movq (%rax,%rdi,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %r13
movq (%r13), %r15
leaq 0x6e48(%rip), %rdi      # 0x54060
movq %r15, %rsi
callq 0x3050
testq %r14, %r14
je 0x4d28a
testl %eax, %eax
jne 0x4d28a
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x4d28a
movb (%rax), %dl
leaq 0x130(%rsp), %rcx
testb %dl, %dl
movq 0x8(%rsp), %rdi
je 0x4d25f
incq %rax
leal -0x3a(%rdx), %esi
cmpb $-0xa, %sil
jb 0x4d256
movb %dl, (%rcx)
incq %rcx
movb (%rax), %dl
incq %rax
testb %dl, %dl
jne 0x4d248
movb $0x0, (%rcx)
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax), %rax
movq (%rax,%rdi,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %r13
movq (%r13), %r15
leaq 0x6dda(%rip), %rdi      # 0x5406b
movq %r15, %rsi
callq 0x3050
testq %r14, %r14
je 0x4d303
testl %eax, %eax
jne 0x4d303
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x4d303
movb (%rax), %dl
leaq 0xf0(%rsp), %rcx
testb %dl, %dl
movq 0x8(%rsp), %rdi
je 0x4d2d8
incq %rax
leal -0x3a(%rdx), %esi
cmpb $-0xa, %sil
jb 0x4d2cf
movb %dl, (%rcx)
incq %rcx
movb (%rax), %dl
incq %rax
testb %dl, %dl
jne 0x4d2c1
movb $0x0, (%rcx)
movq (%rbx), %rax
movq (%rax), %rax
movq (%rax), %rax
movq (%rax,%rdi,8), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movq (%rax,%rbp,8), %r13
movq (%r13), %r15
leaq 0x6d6c(%rip), %rdi      # 0x54076
movq %r15, %rsi
callq 0x3050
movq %r14, %r12
testq %r14, %r14
je 0x4d352
testl %eax, %eax
jne 0x4d352
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x4d352
movb (%rax), %dl
leaq 0xb0(%rsp), %rcx
testb %dl, %dl
je 0x4d34f
incq %rax
leal -0x3a(%rdx), %esi
cmpb $-0xa, %sil
jb 0x4d346
movb %dl, (%rcx)
incq %rcx
movb (%rax), %dl
incq %rax
testb %dl, %dl
jne 0x4d338
movb $0x0, (%rcx)
leaq 0x30(%rsp), %r14
movq %r14, %rdi
leaq 0x170(%rsp), %rsi
callq 0x3210
testl %eax, %eax
je 0x4d478
movq %r14, %rdi
leaq 0x130(%rsp), %rsi
callq 0x3210
testl %eax, %eax
je 0x4d478
movq %r14, %rdi
leaq 0xf0(%rsp), %rsi
callq 0x3210
testl %eax, %eax
je 0x4d478
movq %r14, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x3210
testl %eax, %eax
je 0x4d478
incq %rbp
movq (%rbx), %rax
movq (%rax), %rcx
movq (%rcx), %rcx
movq 0x8(%rsp), %r13
movq (%rcx,%r13,8), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
movq (%rcx), %rdx
movslq 0x8(%rdx), %rdx
cmpq %rdx, %rbp
movq 0x10(%rsp), %r14
jl 0x4d0cd
incq %r14
cmpq 0x20(%rsp), %r14
leaq 0x6cc3(%rip), %r15      # 0x540ba
jne 0x4cff5
incq %r13
cmpq 0x18(%rsp), %r13
movl $0x0, %ebp
leaq 0x6c92(%rip), %rdi      # 0x540a3
leaq 0x6c97(%rip), %r14      # 0x540af
jne 0x4cf7d
jmp 0x4d46e
leaq 0x6e43(%rip), %rdi      # 0x5426a
callq 0x30a0
testq %rbx, %rbx
je 0x4d495
leaq 0x6e44(%rip), %rdi      # 0x5427c
callq 0x30a0
movq %rbx, %rdi
callq 0x3030
jmp 0x4d4a1
leaq 0x696a(%rip), %rdi      # 0x53db8
movl %ebp, %esi
xorl %eax, %eax
callq 0x3140
movq 0x24b9a(%rip), %rax     # 0x71ff8
movq (%rax), %rsi
movq %r13, %rdi
callq 0x4ab13
testq %rbx, %rbx
je 0x4d4a6
movq %rbx, %rdi
callq 0x3030
jmp 0x4d4a6
leaq 0x1b0(%rsp), %rdi
callq 0x3390
movq %rax, (%r12)
movq %rbx, %rdi
callq 0x3030
xorl %ebp, %ebp
jmp 0x4d4a6
leaq 0x6def(%rip), %rdi      # 0x5428b
callq 0x30a0
movl $0x4, %ebp
movl %ebp, %eax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq