// File: /workspace/github_c_makefile_star2_O0/shifengbin[P]bishe/URLManager/URLManager.cpp
// Function: load(void*, int, char**, char**)
int load( void *um , int count, char **vals ,char **colname)
{
	int i;
	Queue<URL>* que = (Queue<URL>*)um;
	if ( que == NULL )
	{
		return -1;
	}
	if (count <= 0)
	{
		return 0;
	}

	URL *temp = new URL;
	if ( temp == NULL )
	{
		return -1;
	}

	for( i = 0; i < count; i++)
	{
		if ( !strcasecmp( ID ,colname[i]) )
		{
			temp->setId(atoi(vals[i]));
		} 
		else if ( !strcasecmp( URLSTR , colname[i]) )
		{
			temp->setURLStr( vals[i] );
		}
		else if ( !strcasecmp( TYPE , colname[i]) )
		{
			temp->setType( atoi( vals[i] ) );	
		}
		else if ( !strcasecmp( DEEP , colname[i]) )
		{
			temp->setDeep( atoi( vals[i] ) );
		}
		else if ( !strcasecmp( STATE , colname[i] ) )
		{
			temp->setState( atoi( vals[i] ) );
		}
//		printf("%s=%s\n",colname[i],vals[i]);
	}
//	printf("ADD %s:%d\n",temp->getURLStr(),temp->getDeep());
	que->push( temp );
	return 0;	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0xa395
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xa582
cmpl $0x0, -0x14(%rbp)
jg 0xa3a7
movl $0x0, -0x4(%rbp)
jmp 0xa582
movl $0x20, %edi
callq 0x82d0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x58(%rbp)
callq 0x9b10
jmp 0xa3c2
movq -0x58(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0xa3fc
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xa582
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
movl $0x20, %esi
callq 0x82e0
jmp 0xa58e
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0xa56e
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0xa051f(%rip), %rdi     # 0xaa941
callq 0x82f0
cmpl $0x0, %eax
jne 0xa455
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x8480
movq -0x60(%rbp), %rdi
movl %eax, %esi
callq 0xa7d0
jmp 0xa55e
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x97d64(%rip), %rdi     # 0xa21cc
callq 0x82f0
cmpl $0x0, %eax
jne 0xa48c
movq -0x40(%rbp), %rdi
movq -0x20(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x9b70
jmp 0xa55c
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x97d34(%rip), %rdi     # 0xa21d3
callq 0x82f0
cmpl $0x0, %eax
jne 0xa4d2
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x20(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x8480
movq -0x68(%rbp), %rdi
movl %eax, %esi
callq 0x9b50
jmp 0xa55a
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x97cf3(%rip), %rdi     # 0xa21d8
callq 0x82f0
cmpl $0x0, %eax
jne 0xa515
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x8480
movq -0x70(%rbp), %rdi
movl %eax, %esi
callq 0x9bf0
jmp 0xa558
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x97cb5(%rip), %rdi     # 0xa21dd
callq 0x82f0
cmpl $0x0, %eax
jne 0xa556
movq -0x40(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x8480
movq -0x78(%rbp), %rdi
movl %eax, %esi
callq 0xa7f0
jmp 0xa558
jmp 0xa55a
jmp 0xa55c
jmp 0xa55e
jmp 0xa560
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xa403
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0xa810
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x84e0
nopw (%rax,%rax)