// File: burakbugrul[P]NginxLogParser/NginxParser.cpp
// Function: NginxParser::parse()
void NginxParser::parse(){
	
	ifstream input(input_file);
	int length, left, right, begin, end, bitrate, ten, http_status, sent_bytes;
	char line[MAX_LINE], type;
	string ip, id, user_agent;
	bool flag = true, cs_hit, cs_flag;
	
	while( input.getline(line,MAX_LINE,'\n') ){
		
		lines++;
		length = strlen(line);
		
		if( (ip = findIP(line)) == "-1" )
			continue;
		if( characterCount(line,length,'"') != 10 )
			continue;
		
		right = 0;
		flag = true;
		
		for( int i=0 ; i<5 ; i++ ){
			
			left = findCharacter(line,right,length,'"');
			right = findCharacter(line,left+1,length,'"');
			
			if( right-left == 2 ) // Empty parts
				continue;
			
			else if( strncmp(line+left+1,"GET",3)==0 || 
				strncmp(line+left+1,"POST",4)==0 || 
				strncmp(line+left+1,"HEAD",4)==0 || 
				strncmp(line+left+1,"PUT",3)==0 || 
				strncmp(line+left+1,"DELETE",6)==0 || 
				strncmp(line+left+1,"OPTIONS",7)==0 || 
				strncmp(line+left+1,"CONNECT",7)==0 ){ // Url part
				
				end = left;
				for( int j=0 ; j<2; j++ ){ // Finding ID
					begin = findCharacter(line,end+1,right,'/');
					end = findCharacter(line,begin+1,right,'/');
				}
				
				id = ""; // Saving ID
				for( int j=begin+1 ; j<end ; j++ )
					id += line[j];
				
				begin = findCharacter(line,end+1,right,'('); // Finding bitrate
				if( begin == right ){
					flag = false;
					break;
				}
				
				bitrate = (line[begin+1]-'0')*10+(line[begin+2]-'0');
				
				for( int j=begin+3 ; line[j]!=')' ; j++ ) // Saving bitrate
					bitrate = bitrate*10;
				
				begin = findCharacter(line,begin+1,right,'('); // Finding type
				if( begin == right ){
					flag = false;
					break;
				}
				
				type = line[begin+1]; // Saving type
				
			}
			
			else if( isdigit(line[left+2]) ){ // HTTP Status and sent bytes
				
				http_status = line[left+2]-'0'; // Saving HTTP Status
				
				sent_bytes = 0;
				ten = 1;
				for( int j=right-2 ; line[j]!=' ' ; j--,ten*=10 ) // Saving sent bytes
					sent_bytes += (line[j]-'0')*ten;
				
			}
			else{
				
				user_agent = "";

				for( int j=left+1 ; j < right && line[j] != ' ' ; j++ ) // Finding User Agent
					user_agent += line[j];
			}
			
		}
		
		cs_flag = false;
		for( int j=length-1 ; j>right ; j-- ) // Finding cs hit
			if( line[j] == 'c' && line[j+1] == 's' && line[j+2] == '=' ){
				cs_flag = true;
				cs_hit = (line[j+3] == 'H');
				break;
			}
		
		if( !flag || !cs_flag )
			continue;
		
		valid_lines++;
		total_data += sent_bytes;
		cs_hits += cs_hit;
		if( type == 'a' )
			audios++;
		else
			videos++;
		http_statuses[http_status-1]++;
		
		/* // This part is for comparing users by amount of their data transfers. If used, type of the second parameter of map should be 'long long int'
		 * if( users.find(ip) == users.end() )
			users[ip] = sent_bytes;
		else
			users[ip] += sent_bytes;
		*/
		
		// This part is for comparing users by amount of their data requests
		if( users.find(ip) == users.end() )
			users[ip] = 1;
		else
			users[ip] += 1;
		
		if( contents.find(id) == contents.end() )
			contents[id] = 1;
		else
			contents[id] ++;
			
		if( bitrates.find(bitrate) == bitrates.end() )
			bitrates[bitrate] = 1;
		else
			bitrates[bitrate] ++;
		
		if( user_agents.find(user_agent) == user_agents.end() )
			user_agents[user_agent] = 1;
		else
			user_agents[user_agent] ++;
		
	}
	
	input.close();
}

// Assembly:
subq $0x5d8, %rsp            # imm = 0x5D8
movq %rdi, 0x5d0(%rsp)
movq 0x5d0(%rsp), %rsi
movq %rsi, 0xa8(%rsp)
addq $0x28, %rsi
leaq 0x3c8(%rsp), %rdi
movl $0x8, %edx
callq 0x22d0
leaq 0x188(%rsp), %rdi
callq 0x2270
leaq 0x168(%rsp), %rdi
callq 0x2270
leaq 0x148(%rsp), %rdi
callq 0x2270
movb $0x1, 0x147(%rsp)
leaq 0x3c8(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
movl $0x1f4, %edx            # imm = 0x1F4
movl $0xa, %ecx
callq 0x2330
movq %rax, 0xa0(%rsp)
jmp 0x345d
movq 0xa0(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2210
movb %al, 0x9f(%rsp)
jmp 0x347d
movb 0x9f(%rsp), %al
testb $0x1, %al
jne 0x348d
jmp 0x4007
movq 0xa8(%rsp), %rax
movl (%rax), %ecx
incl %ecx
movl %ecx, (%rax)
leaq 0x1b0(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0x20f0
movq 0xa8(%rsp), %rsi
movq 0x90(%rsp), %rdx
movl %eax, 0x3c4(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x4bf0
jmp 0x34d6
leaq 0x188(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x2200
movq %rax, %rdi
leaq 0x4b84(%rip), %rsi      # 0x8079
callq 0x4bc0
movb %al, 0x8f(%rsp)
jmp 0x3503
leaq 0x110(%rsp), %rdi
callq 0x2140
movb 0x8f(%rsp), %al
testb $0x1, %al
jne 0x351d
jmp 0x3561
jmp 0x3434
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x138(%rsp)
movl %eax, 0x134(%rsp)
jmp 0x4052
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x138(%rsp)
movl %eax, 0x134(%rsp)
leaq 0x110(%rsp), %rdi
callq 0x2140
jmp 0x4052
movq 0xa8(%rsp), %rdi
movl 0x3c4(%rsp), %edx
leaq 0x1b0(%rsp), %rsi
movl $0x22, %ecx
callq 0x4eb0
movl %eax, 0x88(%rsp)
jmp 0x358b
movl 0x88(%rsp), %eax
cmpl $0xa, %eax
je 0x359c
jmp 0x3434
movl $0x0, 0x3bc(%rsp)
movb $0x1, 0x147(%rsp)
movl $0x0, 0x10c(%rsp)
cmpl $0x5, 0x10c(%rsp)
jge 0x3ba4
movq 0xa8(%rsp), %rdi
movl 0x3bc(%rsp), %edx
movl 0x3c4(%rsp), %ecx
leaq 0x1b0(%rsp), %rsi
movl $0x22, %r8d
callq 0x4f20
movl %eax, 0x84(%rsp)
jmp 0x35fa
movq 0xa8(%rsp), %rdi
movl 0x84(%rsp), %eax
movl %eax, 0x3c0(%rsp)
movl 0x3c0(%rsp), %edx
incl %edx
movl 0x3c4(%rsp), %ecx
leaq 0x1b0(%rsp), %rsi
movl $0x22, %r8d
callq 0x4f20
movl %eax, 0x80(%rsp)
jmp 0x363c
movl 0x80(%rsp), %eax
movl %eax, 0x3bc(%rsp)
movl 0x3bc(%rsp), %eax
subl 0x3c0(%rsp), %eax
cmpl $0x2, %eax
jne 0x3662
jmp 0x3b8e
leaq 0x1b0(%rsp), %rdi
movslq 0x3c0(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq 0x49fc(%rip), %rsi      # 0x807c
movl $0x3, %edx
callq 0x2110
cmpl $0x0, %eax
je 0x37b1
leaq 0x1b0(%rsp), %rdi
movslq 0x3c0(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq 0x49cf(%rip), %rsi      # 0x8080
movl $0x4, %edx
callq 0x2110
cmpl $0x0, %eax
je 0x37b1
leaq 0x1b0(%rsp), %rdi
movslq 0x3c0(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq 0x49a3(%rip), %rsi      # 0x8085
movl $0x4, %edx
callq 0x2110
cmpl $0x0, %eax
je 0x37b1
leaq 0x1b0(%rsp), %rdi
movslq 0x3c0(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq 0x4977(%rip), %rsi      # 0x808a
movl $0x3, %edx
callq 0x2110
cmpl $0x0, %eax
je 0x37b1
leaq 0x1b0(%rsp), %rdi
movslq 0x3c0(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq 0x494a(%rip), %rsi      # 0x808e
movl $0x6, %edx
callq 0x2110
cmpl $0x0, %eax
je 0x37b1
leaq 0x1b0(%rsp), %rdi
movslq 0x3c0(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq 0x4924(%rip), %rsi      # 0x8095
movl $0x7, %edx
callq 0x2110
cmpl $0x0, %eax
je 0x37b1
leaq 0x1b0(%rsp), %rdi
movslq 0x3c0(%rsp), %rax
addq %rax, %rdi
addq $0x1, %rdi
leaq 0x48ff(%rip), %rsi      # 0x809d
movl $0x7, %edx
callq 0x2110
cmpl $0x0, %eax
jne 0x3a25
movl 0x3c0(%rsp), %eax
movl %eax, 0x3b4(%rsp)
movl $0x0, 0x108(%rsp)
cmpl $0x2, 0x108(%rsp)
jge 0x3866
movq 0xa8(%rsp), %rdi
movl 0x3b4(%rsp), %edx
incl %edx
movl 0x3bc(%rsp), %ecx
leaq 0x1b0(%rsp), %rsi
movl $0x2f, %r8d
callq 0x4f20
movl %eax, 0x7c(%rsp)
jmp 0x3809
movq 0xa8(%rsp), %rdi
movl 0x7c(%rsp), %eax
movl %eax, 0x3b8(%rsp)
movl 0x3b8(%rsp), %edx
incl %edx
movl 0x3bc(%rsp), %ecx
leaq 0x1b0(%rsp), %rsi
movl $0x2f, %r8d
callq 0x4f20
movl %eax, 0x78(%rsp)
jmp 0x3845
movl 0x78(%rsp), %eax
movl %eax, 0x3b4(%rsp)
movl 0x108(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x108(%rsp)
jmp 0x37ca
leaq 0x4905(%rip), %rsi      # 0x8172
leaq 0x168(%rsp), %rdi
callq 0x2250
jmp 0x387c
movl 0x3b8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x104(%rsp)
movl 0x104(%rsp), %eax
cmpl 0x3b4(%rsp), %eax
jge 0x38d1
movslq 0x104(%rsp), %rax
movsbl 0x1b0(%rsp,%rax), %esi
leaq 0x168(%rsp), %rdi
callq 0x2150
jmp 0x38bc
jmp 0x38be
movl 0x104(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x104(%rsp)
jmp 0x388d
movq 0xa8(%rsp), %rdi
movl 0x3b4(%rsp), %edx
incl %edx
movl 0x3bc(%rsp), %ecx
leaq 0x1b0(%rsp), %rsi
movl $0x28, %r8d
callq 0x4f20
movl %eax, 0x74(%rsp)
jmp 0x3902
movl 0x74(%rsp), %eax
movl %eax, 0x3b8(%rsp)
movl 0x3b8(%rsp), %eax
cmpl 0x3bc(%rsp), %eax
jne 0x392a
movb $0x0, 0x147(%rsp)
jmp 0x3ba4
movl 0x3b8(%rsp), %eax
addl $0x1, %eax
cltq
movsbl 0x1b0(%rsp,%rax), %eax
subl $0x30, %eax
imull $0xa, %eax, %eax
movl 0x3b8(%rsp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movsbl 0x1b0(%rsp,%rcx), %ecx
subl $0x30, %ecx
addl %ecx, %eax
movl %eax, 0x3b0(%rsp)
movl 0x3b8(%rsp), %eax
addl $0x3, %eax
movl %eax, 0x100(%rsp)
movslq 0x100(%rsp), %rax
movsbl 0x1b0(%rsp,%rax), %eax
cmpl $0x29, %eax
je 0x39ad
imull $0xa, 0x3b0(%rsp), %eax
movl %eax, 0x3b0(%rsp)
movl 0x100(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x100(%rsp)
jmp 0x3976
movq 0xa8(%rsp), %rdi
movl 0x3b8(%rsp), %edx
incl %edx
movl 0x3bc(%rsp), %ecx
leaq 0x1b0(%rsp), %rsi
movl $0x28, %r8d
callq 0x4f20
movl %eax, 0x70(%rsp)
jmp 0x39de
movl 0x70(%rsp), %eax
movl %eax, 0x3b8(%rsp)
movl 0x3b8(%rsp), %eax
cmpl 0x3bc(%rsp), %eax
jne 0x3a06
movb $0x0, 0x147(%rsp)
jmp 0x3ba4
movl 0x3b8(%rsp), %eax
addl $0x1, %eax
cltq
movb 0x1b0(%rsp,%rax), %al
movb %al, 0x1af(%rsp)
jmp 0x3b8a
movl 0x3c0(%rsp), %eax
addl $0x2, %eax
cltq
movsbl 0x1b0(%rsp,%rax), %edi
callq 0x21a0
cmpl $0x0, %eax
je 0x3af1
movl 0x3c0(%rsp), %eax
addl $0x2, %eax
cltq
movsbl 0x1b0(%rsp,%rax), %eax
subl $0x30, %eax
movl %eax, 0x3a8(%rsp)
movl $0x0, 0x3a4(%rsp)
movl $0x1, 0x3ac(%rsp)
movl 0x3bc(%rsp), %eax
subl $0x2, %eax
movl %eax, 0xfc(%rsp)
movslq 0xfc(%rsp), %rax
movsbl 0x1b0(%rsp,%rax), %eax
cmpl $0x20, %eax
je 0x3aec
movslq 0xfc(%rsp), %rax
movsbl 0x1b0(%rsp,%rax), %eax
subl $0x30, %eax
imull 0x3ac(%rsp), %eax
addl 0x3a4(%rsp), %eax
movl %eax, 0x3a4(%rsp)
movl 0xfc(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0xfc(%rsp)
imull $0xa, 0x3ac(%rsp), %eax
movl %eax, 0x3ac(%rsp)
jmp 0x3a8c
jmp 0x3b88
leaq 0x467a(%rip), %rsi      # 0x8172
leaq 0x148(%rsp), %rdi
callq 0x2250
jmp 0x3b07
movl 0x3c0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xf8(%rsp)
movl 0xf8(%rsp), %ecx
xorl %eax, %eax
cmpl 0x3bc(%rsp), %ecx
movb %al, 0x6f(%rsp)
jge 0x3b48
movslq 0xf8(%rsp), %rax
movsbl 0x1b0(%rsp,%rax), %eax
cmpl $0x20, %eax
setne %al
movb %al, 0x6f(%rsp)
movb 0x6f(%rsp), %al
testb $0x1, %al
jne 0x3b52
jmp 0x3b86
movslq 0xf8(%rsp), %rax
movsbl 0x1b0(%rsp,%rax), %esi
leaq 0x148(%rsp), %rdi
callq 0x2150
jmp 0x3b71
jmp 0x3b73
movl 0xf8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xf8(%rsp)
jmp 0x3b18
jmp 0x3b88
jmp 0x3b8a
jmp 0x3b8c
jmp 0x3b8e
movl 0x10c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10c(%rsp)
jmp 0x35ba
movb $0x0, 0x145(%rsp)
movl 0x3c4(%rsp), %eax
subl $0x1, %eax
movl %eax, 0xf4(%rsp)
movl 0xf4(%rsp), %eax
cmpl 0x3bc(%rsp), %eax
jle 0x3c5d
movslq 0xf4(%rsp), %rax
movsbl 0x1b0(%rsp,%rax), %eax
cmpl $0x63, %eax
jne 0x3c45
movl 0xf4(%rsp), %eax
addl $0x1, %eax
cltq
movsbl 0x1b0(%rsp,%rax), %eax
cmpl $0x73, %eax
jne 0x3c45
movl 0xf4(%rsp), %eax
addl $0x2, %eax
cltq
movsbl 0x1b0(%rsp,%rax), %eax
cmpl $0x3d, %eax
jne 0x3c45
movb $0x1, 0x145(%rsp)
movl 0xf4(%rsp), %eax
addl $0x3, %eax
cltq
movsbl 0x1b0(%rsp,%rax), %eax
cmpl $0x48, %eax
sete %al
andb $0x1, %al
movb %al, 0x146(%rsp)
jmp 0x3c5d
jmp 0x3c47
movl 0xf4(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0xf4(%rsp)
jmp 0x3bbd
testb $0x1, 0x147(%rsp)
je 0x3c71
testb $0x1, 0x145(%rsp)
jne 0x3c76
jmp 0x3434
movq 0xa8(%rsp), %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
movslq 0x3a4(%rsp), %rcx
addq 0x148(%rax), %rcx
movq %rcx, 0x148(%rax)
movb 0x146(%rsp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
addl 0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
movsbl 0x1af(%rsp), %eax
cmpl $0x61, %eax
jne 0x3cd0
movq 0xa8(%rsp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
jmp 0x3ce1
movq 0xa8(%rsp), %rax
movl 0xc(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0xc(%rax)
movq 0xa8(%rsp), %rdi
movl 0x3a8(%rsp), %eax
decl %eax
cltq
movl 0x14(%rdi,%rax,4), %ecx
incl %ecx
movl %ecx, 0x14(%rdi,%rax,4)
addq $0x110, %rdi            # imm = 0x110
leaq 0x188(%rsp), %rsi
callq 0x4fb0
movq %rax, 0x60(%rsp)
jmp 0x3d19
movq 0xa8(%rsp), %rdi
movq 0x60(%rsp), %rax
movq %rax, 0xe8(%rsp)
addq $0x110, %rdi            # imm = 0x110
callq 0x4fe0
movq %rax, 0xe0(%rsp)
leaq 0xe8(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x4f90
testb $0x1, %al
jne 0x3d5d
jmp 0x3d8d
movq 0xa8(%rsp), %rdi
addq $0x110, %rdi            # imm = 0x110
leaq 0x188(%rsp), %rsi
callq 0x5010
movq %rax, 0x58(%rsp)
jmp 0x3d80
movq 0x58(%rsp), %rax
movl $0x1, (%rax)
jmp 0x3dbc
movq 0xa8(%rsp), %rdi
addq $0x110, %rdi            # imm = 0x110
leaq 0x188(%rsp), %rsi
callq 0x5010
movq %rax, 0x50(%rsp)
jmp 0x3db0
movq 0x50(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq 0xa8(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x168(%rsp), %rsi
callq 0x4fb0
movq %rax, 0x48(%rsp)
jmp 0x3ddf
movq 0xa8(%rsp), %rdi
movq 0x48(%rsp), %rax
movq %rax, 0xd8(%rsp)
addq $0xa0, %rdi
callq 0x4fe0
movq %rax, 0xd0(%rsp)
leaq 0xd8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x4f90
testb $0x1, %al
jne 0x3e23
jmp 0x3e53
movq 0xa8(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x168(%rsp), %rsi
callq 0x5010
movq %rax, 0x40(%rsp)
jmp 0x3e46
movq 0x40(%rsp), %rax
movl $0x1, (%rax)
jmp 0x3e82
movq 0xa8(%rsp), %rdi
addq $0xa0, %rdi
leaq 0x168(%rsp), %rsi
callq 0x5010
movq %rax, 0x38(%rsp)
jmp 0x3e76
movq 0x38(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq 0xa8(%rsp), %rdi
addq $0x68, %rdi
leaq 0x3b0(%rsp), %rsi
callq 0x5060
movq %rax, 0x30(%rsp)
jmp 0x3ea2
movq 0xa8(%rsp), %rdi
movq 0x30(%rsp), %rax
movq %rax, 0xc8(%rsp)
addq $0x68, %rdi
callq 0x5090
movq %rax, 0xc0(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x5040
testb $0x1, %al
jne 0x3ee3
jmp 0x3f10
movq 0xa8(%rsp), %rdi
addq $0x68, %rdi
leaq 0x3b0(%rsp), %rsi
callq 0x50c0
movq %rax, 0x28(%rsp)
jmp 0x3f03
movq 0x28(%rsp), %rax
movl $0x1, (%rax)
jmp 0x3f3c
movq 0xa8(%rsp), %rdi
addq $0x68, %rdi
leaq 0x3b0(%rsp), %rsi
callq 0x50c0
movq %rax, 0x20(%rsp)
jmp 0x3f30
movq 0x20(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq 0xa8(%rsp), %rdi
addq $0xd8, %rdi
leaq 0x148(%rsp), %rsi
callq 0x4fb0
movq %rax, 0x18(%rsp)
jmp 0x3f5f
movq 0xa8(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, 0xb8(%rsp)
addq $0xd8, %rdi
callq 0x4fe0
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x4f90
testb $0x1, %al
jne 0x3fa3
jmp 0x3fd3
movq 0xa8(%rsp), %rdi
addq $0xd8, %rdi
leaq 0x148(%rsp), %rsi
callq 0x5010
movq %rax, 0x10(%rsp)
jmp 0x3fc6
movq 0x10(%rsp), %rax
movl $0x1, (%rax)
jmp 0x4002
movq 0xa8(%rsp), %rdi
addq $0xd8, %rdi
leaq 0x148(%rsp), %rsi
callq 0x5010
movq %rax, 0x8(%rsp)
jmp 0x3ff6
movq 0x8(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x3434
leaq 0x3c8(%rsp), %rdi
callq 0x2050
jmp 0x4016
leaq 0x148(%rsp), %rdi
callq 0x2140
leaq 0x168(%rsp), %rdi
callq 0x2140
leaq 0x188(%rsp), %rdi
callq 0x2140
leaq 0x3c8(%rsp), %rdi
callq 0x2070
addq $0x5d8, %rsp            # imm = 0x5D8
retq
leaq 0x148(%rsp), %rdi
callq 0x2140
leaq 0x168(%rsp), %rdi
callq 0x2140
leaq 0x188(%rsp), %rdi
callq 0x2140
leaq 0x3c8(%rsp), %rdi
callq 0x2070
movq 0x138(%rsp), %rdi
callq 0x2300
nopw %cs:(%rax,%rax)