// File: /workspace/github_c_makefile_star2_O0/Zarh[P]regps3iso/main.c
// Function: get_enc_files
void get_enc_files(char *iso)
{
	FILE *f = fopen(iso, "rb");
	if( f == NULL ) {
		printf("Error : cannot fopen %s\n", iso);
		return;
	}
	
	u32 plain_n;
	fread(&plain_n, 4, 1, f);
	
	plain_n = SWAP_BE(plain_n);
	
	u32 start[plain_n];
	u32 end[plain_n];
	u32 i, j, k;
	
	fseek(f, 8, SEEK_SET);
	for(i=0; i < plain_n; i++) {
		fread(&start[i], 4, 1, f);
		fread(&end[i], 4, 1, f);
		
		start[i] = SWAP_BE(start[i]);
		end[i] = SWAP_BE(end[i]);
	}
	fclose(f);
	
	file_info_t *file_info=NULL;
	u32 file_number;
	
	GetFileInfo(iso, &file_info, &file_number);
	
	u32 files_n = 0;
	char **files=NULL;
	u32 *amount=NULL;
	
	char line[512];
	
	// read db
	FILE *l = fopen("enc_files.txt", "r+");
	if( l != NULL ) {
	
		while(fgets(line, 512, l) != NULL) {
			if(line[0]=='\r' || line[0]=='\n') continue;
			
			if(strstr(line, "\r") != NULL) strtok(line, "\r");
			if(strstr(line, "\n") != NULL) strtok(line, "\n");
			
			files = (char **) realloc(files, (files_n+1) * sizeof(char *));
			amount = (u32 *) realloc(amount, (files_n+1) * sizeof(u32));
			
			sscanf(line, "%08X", &amount[files_n]);
			files[files_n] = strcpy_malloc(line + 11);
			
			files_n++;
			
			memset(line, 0, 512);
		}
		
		
		fclose(l);
	}
	
	
	for(i=0; i < plain_n; i++) {	
		for(j=0; j<file_number; j++) {
			if( i+1 < plain_n) {
				if( end[i]+1 <= file_info[j].sector ) {
					if(start[i+1] <= file_info[j].sector ) break;
					u8 found = NO;
					u32 len = strlen(file_info[j].path);
					for(k=0; k<files_n; k++) {
						
						if( 10 < len ) {
							if( memcmp(file_info[j].path + 10, "TROPDIR", 7) == 0 ) {
								if( memcmp(file_info[j].path, files[k], 18) == 0 ){
									found = YES;
									amount[k]++;;
									break;
								}
							} else
							if( memcmp(file_info[j].path + 10, "USRDIR", 6) == 0 ) {
								if( memcmp(file_info[j].path, files[k], 17) == 0 ){
									found = YES;
									amount[k]++;;
									break;
								}
							} else 
							if( strcmp(files[k], file_info[j].path) == 0 ) {
								found = YES;
								amount[k]++;;
								break;
							}
						} else
						if( strcmp(files[k], file_info[j].path) == 0 ) {
							found = YES;
							amount[k]++;;
							break;
						}
					}
					if( found == NO ) {
						files = (char **) realloc(files, (files_n+1) * sizeof(char *));
						amount = (u32 *) realloc(amount, (files_n+1) * sizeof(u32));
						if( 10 < len ) {
							if( memcmp(file_info[j].path + 10, "TROPDIR", 7) == 0 ) {
								char temp[512]={0};
								memset(temp, 0, 512);
								strncpy(temp, file_info[j].path, 18);
								files[files_n] = strcpy_malloc(temp);
								amount[files_n]=1;
							} else
							if( memcmp(file_info[j].path + 10, "USRDIR", 6) == 0 ) {
								char temp[512]={0};
								memset(temp, 0, 512);
								strncpy(temp, file_info[j].path, 17);
								files[files_n] = strcpy_malloc(temp);
								amount[files_n]=1;
							} else {
								files[files_n] = strcpy_malloc(file_info[j].path);
								amount[files_n]=1;
							}
						} else {
							files[files_n] = strcpy_malloc(file_info[j].path);
							amount[files_n]=1;
						}
						files_n++;
					}
				}
			}
		}
	}
	
	// write db
	char str[512];
	l = fopen("enc_files.txt", "w");
	
	for(i=0; i<files_n; i++) {
	
		u32 max_amount = 0;	
		// search_max
		for( j = 0; j<files_n; j++) {
			if(amount[max_amount] < amount[j]) max_amount=j;
		}
		sprintf(str, "%08X | %s\n", amount[max_amount], files[max_amount]);
		fputs(str, l);
		
		amount[max_amount] = 0;
	}
	fclose(l);
	
	for(j=0; j < files_n; j++) {
		FREE(files[j]);
	}
	FREE(amount);
	FREE(files);
	
	for(j=0; j < file_number; j++) FREE(file_info[j].path)
	FREE(file_info);
	
	fclose(l);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8a0, %rsp            # imm = 0x8A0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xc1bf7(%rip), %rsi     # 0x4c4041
callq 0x41ea50
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x402471
movq -0x8(%rbp), %rsi
leaq 0xc1bdf(%rip), %rdi     # 0x4c4044
movb $0x0, %al
callq 0x40ff80
jmp 0x402eb4
movq -0x10(%rbp), %rcx
leaq -0x14(%rbp), %rdi
movl $0x4, %esi
movl $0x1, %edx
callq 0x41ec80
movw $0x1, -0x16(%rbp)
cmpb $0x0, -0x16(%rbp)
jne 0x4024a0
movl -0x14(%rbp), %eax
movq %rax, -0x880(%rbp)
jmp 0x4024de
movl -0x14(%rbp), %eax
andl $0xff, %eax
shll $0x18, %eax
movl -0x14(%rbp), %ecx
andl $0xff00, %ecx           # imm = 0xFF00
shll $0x8, %ecx
orl %ecx, %eax
movl -0x14(%rbp), %ecx
andl $0xff0000, %ecx         # imm = 0xFF0000
shrl $0x8, %ecx
orl %ecx, %eax
movl -0x14(%rbp), %ecx
andl $0xff000000, %ecx       # imm = 0xFF000000
shrl $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x880(%rbp)
movq -0x880(%rbp), %rax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq %rsp, %rcx
movq %rcx, -0x20(%rbp)
leaq 0xf(,%rax,4), %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x890(%rbp)
movq %rcx, %rsp
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
leaq 0xf(,%rax,4), %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x888(%rbp)
movq %rcx, %rsp
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movl $0x8, %esi
xorl %edx, %edx
callq 0x421310
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x4026c0
movq -0x890(%rbp), %rdi
movl -0x34(%rbp), %eax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rcx
movl $0x4, %esi
movl $0x1, %edx
callq 0x41ec80
movq -0x888(%rbp), %rdi
movl -0x34(%rbp), %eax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rcx
movl $0x4, %esi
movl $0x1, %edx
callq 0x41ec80
movw $0x1, -0x3e(%rbp)
cmpb $0x0, -0x3e(%rbp)
jne 0x4025c2
movq -0x890(%rbp), %rax
movl -0x34(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movq %rax, -0x898(%rbp)
jmp 0x402613
movq -0x890(%rbp), %rcx
movl -0x34(%rbp), %eax
movl (%rcx,%rax,4), %eax
andl $0xff, %eax
shll $0x18, %eax
movl -0x34(%rbp), %edx
movl (%rcx,%rdx,4), %edx
andl $0xff00, %edx           # imm = 0xFF00
shll $0x8, %edx
orl %edx, %eax
movl -0x34(%rbp), %edx
movl (%rcx,%rdx,4), %edx
andl $0xff0000, %edx         # imm = 0xFF0000
shrl $0x8, %edx
orl %edx, %eax
movl -0x34(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
andl $0xff000000, %ecx       # imm = 0xFF000000
shrl $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x898(%rbp)
movq -0x890(%rbp), %rax
movq -0x898(%rbp), %rcx
movl %ecx, %edx
movl -0x34(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movw $0x1, -0x40(%rbp)
cmpb $0x0, -0x40(%rbp)
jne 0x40264b
movq -0x888(%rbp), %rax
movl -0x34(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movq %rax, -0x8a0(%rbp)
jmp 0x40269c
movq -0x888(%rbp), %rcx
movl -0x34(%rbp), %eax
movl (%rcx,%rax,4), %eax
andl $0xff, %eax
shll $0x18, %eax
movl -0x34(%rbp), %edx
movl (%rcx,%rdx,4), %edx
andl $0xff00, %edx           # imm = 0xFF00
shll $0x8, %edx
orl %edx, %eax
movl -0x34(%rbp), %edx
movl (%rcx,%rdx,4), %edx
andl $0xff0000, %edx         # imm = 0xFF0000
shrl $0x8, %edx
orl %edx, %eax
movl -0x34(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
andl $0xff000000, %ecx       # imm = 0xFF000000
shrl $0x18, %ecx
orl %ecx, %eax
movl %eax, %eax
movq %rax, -0x8a0(%rbp)
movq -0x888(%rbp), %rax
movq -0x8a0(%rbp), %rcx
movl %ecx, %edx
movl -0x34(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x40254c
movq -0x10(%rbp), %rdi
callq 0x41e4b0
movq $0x0, -0x48(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x4c(%rbp), %rdx
callq 0x4046b0
movl $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
leaq 0xc1979(%rip), %rdi     # 0x4c4079
leaq 0xc1966(%rip), %rsi     # 0x4c406d
callq 0x41ea50
movq %rax, -0x268(%rbp)
cmpq $0x0, -0x268(%rbp)
je 0x40285b
jmp 0x402723
leaq -0x260(%rbp), %rdi
movq -0x268(%rbp), %rdx
movl $0x200, %esi            # imm = 0x200
callq 0x41e7a0
cmpq $0x0, %rax
je 0x40284f
movsbl -0x260(%rbp), %eax
cmpl $0xd, %eax
je 0x40275d
movsbl -0x260(%rbp), %eax
cmpl $0xa, %eax
jne 0x40275f
jmp 0x402723
leaq -0x260(%rbp), %rdi
leaq 0xc1903(%rip), %rsi     # 0x4c4070
callq 0x401078
cmpq $0x0, %rax
je 0x40278b
leaq -0x260(%rbp), %rdi
leaq 0xc18ea(%rip), %rsi     # 0x4c4070
callq 0x42fac0
leaq -0x260(%rbp), %rdi
leaq 0xc2331(%rip), %rsi     # 0x4c4aca
callq 0x401078
cmpq $0x0, %rax
je 0x4027b7
leaq -0x260(%rbp), %rdi
leaq 0xc2318(%rip), %rsi     # 0x4c4aca
callq 0x42fac0
movq -0x58(%rbp), %rdi
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x42cfa0
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rdi
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x42cfa0
movq %rax, -0x60(%rbp)
leaq -0x260(%rbp), %rdi
movq -0x60(%rbp), %rdx
movl -0x50(%rbp), %eax
shlq $0x2, %rax
addq %rax, %rdx
leaq 0xc1869(%rip), %rsi     # 0x4c4072
movb $0x0, %al
callq 0x4101e0
leaq -0x260(%rbp), %rdi
addq $0xb, %rdi
callq 0x404620
movq %rax, %rdx
movq -0x58(%rbp), %rax
movl -0x50(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
leaq -0x260(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x4010b0
jmp 0x402723
movq -0x268(%rbp), %rdi
callq 0x41e4b0
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x14(%rbp), %eax
jae 0x402cd2
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jae 0x402cc2
movl -0x34(%rbp), %eax
addl $0x1, %eax
cmpl -0x14(%rbp), %eax
jae 0x402cb2
movq -0x888(%rbp), %rax
movl -0x34(%rbp), %ecx
movl (%rax,%rcx,4), %eax
addl $0x1, %eax
movq -0x48(%rbp), %rcx
movl -0x38(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x8(%rcx), %eax
ja 0x402cb0
movq -0x890(%rbp), %rax
movl -0x34(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movq -0x48(%rbp), %rcx
movl -0x38(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x8(%rcx), %eax
ja 0x4028e1
jmp 0x402cc2
movb $0x0, -0x269(%rbp)
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x4010f0
movl %eax, -0x270(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x50(%rbp), %eax
jae 0x402aa9
movl $0xa, %eax
cmpl -0x270(%rbp), %eax
jae 0x402a58
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
addq $0xa, %rdi
leaq 0xc1743(%rip), %rsi     # 0x4c4087
movl $0x7, %edx
callq 0x401098
cmpl $0x0, %eax
jne 0x40299f
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x58(%rbp), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
movl $0x12, %edx
callq 0x401098
cmpl $0x0, %eax
jne 0x40299a
movb $0x1, -0x269(%rbp)
movq -0x60(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
jmp 0x402aa9
jmp 0x402a56
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
addq $0xa, %rdi
leaq 0xc16d4(%rip), %rsi     # 0x4c408f
movl $0x6, %edx
callq 0x401098
cmpl $0x0, %eax
jne 0x402a13
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x58(%rbp), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
movl $0x11, %edx
callq 0x401098
cmpl $0x0, %eax
jne 0x402a11
movb $0x1, -0x269(%rbp)
movq -0x60(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
jmp 0x402aa9
jmp 0x402a54
movq -0x58(%rbp), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
callq 0x4010c0
cmpl $0x0, %eax
jne 0x402a52
movb $0x1, -0x269(%rbp)
movq -0x60(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
jmp 0x402aa9
jmp 0x402a54
jmp 0x402a56
jmp 0x402a99
movq -0x58(%rbp), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
callq 0x4010c0
cmpl $0x0, %eax
jne 0x402a97
movb $0x1, -0x269(%rbp)
movq -0x60(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
jmp 0x402aa9
jmp 0x402a99
jmp 0x402a9b
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x40290b
movzbl -0x269(%rbp), %eax
cmpl $0x0, %eax
jne 0x402cae
movq -0x58(%rbp), %rdi
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x42cfa0
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rdi
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x42cfa0
movq %rax, -0x60(%rbp)
movl $0xa, %eax
cmpl -0x270(%rbp), %eax
jae 0x402c73
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
addq $0xa, %rdi
leaq 0xc156b(%rip), %rsi     # 0x4c4087
movl $0x7, %edx
callq 0x401098
cmpl $0x0, %eax
jne 0x402ba0
leaq -0x470(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x4010b0
leaq -0x470(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x4010b0
leaq -0x470(%rbp), %rdi
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movl $0x12, %edx
callq 0x401088
leaq -0x470(%rbp), %rdi
callq 0x404620
movq %rax, %rdx
movq -0x58(%rbp), %rax
movl -0x50(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movl -0x50(%rbp), %ecx
movl $0x1, (%rax,%rcx,4)
jmp 0x402c71
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
addq $0xa, %rdi
leaq 0xc14d3(%rip), %rsi     # 0x4c408f
movl $0x6, %edx
callq 0x401098
cmpl $0x0, %eax
jne 0x402c3d
leaq -0x670(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x4010b0
leaq -0x670(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x4010b0
leaq -0x670(%rbp), %rdi
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movl $0x11, %edx
callq 0x401088
leaq -0x670(%rbp), %rdi
callq 0x404620
movq %rax, %rdx
movq -0x58(%rbp), %rax
movl -0x50(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movl -0x50(%rbp), %ecx
movl $0x1, (%rax,%rcx,4)
jmp 0x402c6f
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x404620
movq %rax, %rdx
movq -0x58(%rbp), %rax
movl -0x50(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movl -0x50(%rbp), %ecx
movl $0x1, (%rax,%rcx,4)
jmp 0x402c71
jmp 0x402ca5
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x404620
movq %rax, %rdx
movq -0x58(%rbp), %rax
movl -0x50(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movl -0x50(%rbp), %ecx
movl $0x1, (%rax,%rcx,4)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x402cb0
jmp 0x402cb2
jmp 0x402cb4
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x402875
jmp 0x402cc4
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x402862
leaq 0xc13a0(%rip), %rdi     # 0x4c4079
leaq 0xc1397(%rip), %rsi     # 0x4c4077
callq 0x41ea50
movq %rax, -0x268(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x50(%rbp), %eax
jae 0x402da9
movl $0x0, -0x874(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x50(%rbp), %eax
jae 0x402d47
movq -0x60(%rbp), %rax
movl -0x874(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movq -0x60(%rbp), %rcx
movl -0x38(%rbp), %edx
cmpl (%rcx,%rdx,4), %eax
jae 0x402d3a
movl -0x38(%rbp), %eax
movl %eax, -0x874(%rbp)
jmp 0x402d3c
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x402d10
leaq -0x870(%rbp), %rdi
movq -0x60(%rbp), %rax
movl -0x874(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x58(%rbp), %rax
movl -0x874(%rbp), %ecx
movq (%rax,%rcx,8), %rcx
leaq 0xc13d3(%rip), %rsi     # 0x4c4143
movb $0x0, %al
callq 0x410050
leaq -0x870(%rbp), %rdi
movq -0x268(%rbp), %rsi
callq 0x41eb50
movq -0x60(%rbp), %rax
movl -0x874(%rbp), %ecx
movl $0x0, (%rax,%rcx,4)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x402cf3
movq -0x268(%rbp), %rdi
callq 0x41e4b0
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x50(%rbp), %eax
jae 0x402dfe
movq -0x58(%rbp), %rax
movl -0x38(%rbp), %ecx
cmpq $0x0, (%rax,%rcx,8)
je 0x402df1
movq -0x58(%rbp), %rax
movl -0x38(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
callq 0x42cc50
movq -0x58(%rbp), %rax
movl -0x38(%rbp), %ecx
movq $0x0, (%rax,%rcx,8)
jmp 0x402df3
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x402dbc
cmpq $0x0, -0x60(%rbp)
je 0x402e16
movq -0x60(%rbp), %rdi
callq 0x42cc50
movq $0x0, -0x60(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0x402e2e
movq -0x58(%rbp), %rdi
callq 0x42cc50
movq $0x0, -0x58(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jae 0x402e89
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x402e7c
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x42cc50
movq -0x48(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq $0x0, (%rax)
jmp 0x402e7e
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x402e35
cmpq $0x0, -0x48(%rbp)
je 0x402ea1
movq -0x48(%rbp), %rdi
callq 0x42cc50
movq $0x0, -0x48(%rbp)
movq -0x268(%rbp), %rdi
callq 0x41e4b0
movq -0x20(%rbp), %rax
movq %rax, %rsp
movq %rbp, %rsp
popq %rbp
retq
nopl (%rax)