// File: /workspace/github_c_makefile_star2_O2/fuldaros[P]akb_sources/cc/akb_cc.c
// Function: write_C
int write_C(char * file, char * argv[])
{
	char pswd[256];
	int pswd_z = sizeof(pswd);
	char* msg1 = strdup("has expired!\n");
	int msg1_z = strlen(msg1) + 1;
	int date_z = strlen(date) + 1;
	char* kwsh = strdup(shll);
	int shll_z = strlen(shll) + 1;
	int inlo_z = strlen(inlo) + 1;
	int xecc_z = strlen(xecc) + 1;
	int lsto_z = strlen(lsto) + 1;
	char* tst1 = strdup("location has changed!");
	int tst1_z = strlen(tst1) + 1;
	char* chk1 = strdup(tst1);
	int chk1_z = tst1_z;
	char* msg2 = strdup("abnormal behavior!");
	int msg2_z = strlen(msg2) + 1;
	int rlax_z = sizeof(rlax);
	int opts_z = strlen(opts) + 1;
	int text_z = strlen(text) + 1;
	char* tst2 = strdup("shell has changed!");
	int tst2_z = strlen(tst2) + 1;
	char* chk2 = strdup(tst2);
	int chk2_z = tst2_z;
	char* name = strdup(file);
	FILE * o;
	int indx;
	int numd = 0;
	int done = 0;

	/* Encrypt */
	srand((unsigned)time(NULL)^(unsigned)getpid());
	pswd_z = noise(pswd, pswd_z, 0, 0); numd++;
	stte_0();
	 key(pswd, pswd_z);
	msg1_z += strlen(mail);
	msg1 = strcat(realloc(msg1, msg1_z), mail);
	arc4(msg1, msg1_z); numd++;
	arc4(date, date_z); numd++;
	arc4(shll, shll_z); numd++;
	arc4(inlo, inlo_z); numd++;
	arc4(xecc, xecc_z); numd++;
	arc4(lsto, lsto_z); numd++;
	arc4(tst1, tst1_z); numd++;
	 key(chk1, chk1_z);
	arc4(chk1, chk1_z); numd++;
	arc4(msg2, msg2_z); numd++;
	indx = !rlax[0];
	arc4(rlax, rlax_z); numd++;
	if (indx && key_with_file(kwsh)) {
		fprintf(stderr, "%s: invalid file name: %s", my_name, kwsh);
		perror("");
		exit(1);
	}
	arc4(opts, opts_z); numd++;
	arc4(text, text_z); numd++;
	arc4(tst2, tst2_z); numd++;
	 key(chk2, chk2_z);
	arc4(chk2, chk2_z); numd++;

	/* Output */
	name = strcat(realloc(name, strlen(name)+5), ".x.c");
	o = fopen(name, "w");
	if (!o) {
		fprintf(stderr, "%s: creating output file: %s", my_name, name);
		perror("");
		exit(1);
	}
	fprintf(o, "#if 0\n");
	fprintf(o, "\t%s %s, %s\n", my_name, version, subject);
	fprintf(o, "\t%s %s %s %s\n\n\t", cpright, author.f, author.s, author.e);
	for (indx = 0; argv[indx]; indx++)
		fprintf(o, "%s ", argv[indx]);
	fprintf(o, "\n#endif\n\n");
	fprintf(o, "static  char data [] = ");
	do {
		done = 0;
		indx = rand_mod(15);
		do {
			switch (indx) {
			case  0: if (pswd_z>=0) {prnt_array(o, pswd, "pswd", pswd_z, 0); pswd_z=done=-1; break;}
			case  1: if (msg1_z>=0) {prnt_array(o, msg1, "msg1", msg1_z, 0); msg1_z=done=-1; break;}
			case  2: if (date_z>=0) {prnt_array(o, date, "date", date_z, 0); date_z=done=-1; break;}
			case  3: if (shll_z>=0) {prnt_array(o, shll, "shll", shll_z, 0); shll_z=done=-1; break;}
			case  4: if (inlo_z>=0) {prnt_array(o, inlo, "inlo", inlo_z, 0); inlo_z=done=-1; break;}
			case  5: if (xecc_z>=0) {prnt_array(o, xecc, "xecc", xecc_z, 0); xecc_z=done=-1; break;}
			case  6: if (lsto_z>=0) {prnt_array(o, lsto, "lsto", lsto_z, 0); lsto_z=done=-1; break;}
			case  7: if (tst1_z>=0) {prnt_array(o, tst1, "tst1", tst1_z, 0); tst1_z=done=-1; break;}
			case  8: if (chk1_z>=0) {prnt_array(o, chk1, "chk1", chk1_z, 0); chk1_z=done=-1; break;}
			case  9: if (msg2_z>=0) {prnt_array(o, msg2, "msg2", msg2_z, 0); msg2_z=done=-1; break;}
			case 10: if (rlax_z>=0) {prnt_array(o, rlax, "rlax", rlax_z, 0); rlax_z=done=-1; break;}
			case 11: if (opts_z>=0) {prnt_array(o, opts, "opts", opts_z, 0); opts_z=done=-1; break;}
			case 12: if (text_z>=0) {prnt_array(o, text, "text", text_z, 0); text_z=done=-1; break;}
			case 13: if (tst2_z>=0) {prnt_array(o, tst2, "tst2", tst2_z, 0); tst2_z=done=-1; break;}
			case 14: if (chk2_z>=0) {prnt_array(o, chk2, "chk2", chk2_z, 0); chk2_z=done=-1; break;}
			}
			indx = 0;
		} while (!done);
	} while (numd+=done);
	fprintf(o, "/* End of data[] */;\n");
	fprintf(o, "#define      %s_z	%d\n", "hide", 1<<12);
	fprintf(o, DEBUGEXEC_line, DEBUGEXEC_flag);
	fprintf(o, TRACEABLE_line, TRACEABLE_flag);
    fprintf(o, BUSYBOXON_line, BUSYBOXON_flag);
	for (indx = 0; RTC[indx]; indx++)
		fprintf(o, "%s\n", RTC[indx]);
	fflush(o);
	fclose(o);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %rbx
movq %rdi, %r13
leaq 0x18e1(%rip), %rdi      # 0x653d
callq 0x4240
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x18(%rsp)
leaq 0x67e6(%rip), %rdi      # 0xb460
callq 0x40b0
incl %eax
movq %rax, 0x10(%rsp)
movq 0x6793(%rip), %r15      # 0xb420
movq %r15, %rdi
callq 0x4240
movq %rax, 0x60(%rsp)
movq %r15, %rdi
callq 0x40b0
incl %eax
movq %rax, 0x30(%rsp)
movq 0x6788(%rip), %rdi      # 0xb438
callq 0x40b0
incl %eax
movq %rax, 0x38(%rsp)
movq 0x677d(%rip), %rdi      # 0xb440
callq 0x40b0
incl %eax
movq %rax, 0x40(%rsp)
movq 0x6772(%rip), %rdi      # 0xb448
callq 0x40b0
incl %eax
movq %rax, 0x50(%rsp)
leaq 0x1862(%rip), %rdi      # 0x654b
callq 0x4240
movq %rax, %r15
movq %rax, 0x68(%rsp)
movq %rax, %rdi
callq 0x40b0
movq %rax, %r14
incl %r14d
movq %r15, %rdi
callq 0x4240
movq %rax, 0x70(%rsp)
leaq 0x1849(%rip), %rdi      # 0x6561
callq 0x4240
movq %rax, 0x78(%rsp)
movq %rax, %rdi
callq 0x40b0
incl %eax
movq %rax, 0x58(%rsp)
movq 0x66f0(%rip), %rdi      # 0xb428
callq 0x40b0
movq %rax, 0x20(%rsp)
movq 0x672f(%rip), %rdi      # 0xb478
callq 0x40b0
movq %rax, 0x28(%rsp)
leaq 0x181a(%rip), %rdi      # 0x6574
callq 0x4240
movq %rax, %r15
movq %rax, %rdi
callq 0x40b0
movq %rax, %r12
movq %r15, 0x80(%rsp)
movq %r15, %rdi
callq 0x4240
movq %rax, 0x88(%rsp)
movq %r13, %rdi
callq 0x4240
movq %rax, 0x98(%rsp)
xorl %edi, %edi
callq 0x4160
movq %rax, %rbp
callq 0x4080
xorl %eax, %ebp
movl %ebp, %edi
callq 0x4100
leaq 0xa0(%rsp), %rbp
movq %rbp, %rdi
movl $0x100, %esi            # imm = 0x100
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x49e1
movl %eax, %r13d
callq 0x436c
movq %rbp, %rdi
movl %r13d, 0x4(%rsp)
movl %r13d, %esi
callq 0x43ae
movq 0x650b(%rip), %rbp      # 0xb2f0
movq %rbp, %rdi
callq 0x40b0
movq 0x18(%rsp), %rcx
addq %rcx, %rax
incq %rax
movq %rax, 0x48(%rsp)
movslq %eax, %r13
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x41b0
movq %rax, %r15
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4200
movq %r15, 0x90(%rsp)
movq %r15, %rdi
movl %r13d, %esi
callq 0x440f
leaq 0x662b(%rip), %rdi      # 0xb460
movq 0x10(%rsp), %rsi
callq 0x440f
movq 0x65da(%rip), %rdi      # 0xb420
movq 0x30(%rsp), %rsi
callq 0x440f
movq 0x65e1(%rip), %rdi      # 0xb438
movq 0x38(%rsp), %rsi
callq 0x440f
movq 0x65d8(%rip), %rdi      # 0xb440
movq 0x40(%rsp), %rsi
callq 0x440f
movq 0x65cf(%rip), %rdi      # 0xb448
movq 0x50(%rsp), %rsi
callq 0x440f
movq 0x68(%rsp), %rdi
movl %r14d, %esi
callq 0x440f
movq 0x70(%rsp), %r15
movq %r15, %rdi
movl %r14d, %esi
callq 0x43ae
movq %r15, %rdi
movq %r14, 0x8(%rsp)
movl %r14d, %esi
callq 0x440f
movq 0x78(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x440f
leaq 0x65ba(%rip), %rdi      # 0xb480
movb 0x65b3(%rip), %bpl      # 0xb480
pushq $0x1
popq %rsi
movl %esi, 0x18(%rsp)
callq 0x440f
testb %bpl, %bpl
jne 0x4ef0
movq 0x60(%rsp), %rdi
callq 0x4467
testl %eax, %eax
jne 0x547a
movq 0x20(%rsp), %rsi
incl %esi
movq 0x28(%rsp), %r14
incl %r14d
incl %r12d
movq 0x651f(%rip), %rdi      # 0xb428
movq %rsi, 0x20(%rsp)
callq 0x440f
movq 0x655e(%rip), %rdi      # 0xb478
movq %r14, 0x28(%rsp)
movl %r14d, %esi
callq 0x440f
movq 0x80(%rsp), %rdi
movl %r12d, %esi
callq 0x440f
movq 0x88(%rsp), %r14
movq %r14, %rdi
movl %r12d, %esi
callq 0x43ae
movq %r14, %rdi
movl %r12d, %esi
callq 0x440f
movq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0x40b0
leaq 0x5(%rax), %rsi
movq %r14, %rdi
callq 0x41b0
movq %rax, %r14
movq %rax, %rdi
callq 0x40b0
movl $0x632e782e, (%r14,%rax) # imm = 0x632E782E
movb $0x0, 0x4(%r14,%rax)
leaq 0x1615(%rip), %rsi      # 0x65a6
movq %r14, %rdi
callq 0x41c0
testq %rax, %rax
je 0x545d
movq %rax, %r13
leaq 0x1619(%rip), %rdi      # 0x65c5
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x4230
leaq 0x160b(%rip), %rsi      # 0x65cc
leaq 0x1140(%rip), %rdx      # 0x6108
leaq 0x1140(%rip), %rcx      # 0x610f
leaq 0x114a(%rip), %r8       # 0x6120
movq %r13, %rdi
xorl %eax, %eax
callq 0x4140
leaq 0x15f1(%rip), %rsi      # 0x65d8
leaq 0x1152(%rip), %rdx      # 0x6140
leaq 0x172a(%rip), %rcx      # 0x671f
leaq 0x172a(%rip), %r8       # 0x6726
leaq 0x172c(%rip), %r9       # 0x672f
movq %r13, %rdi
xorl %eax, %eax
callq 0x4140
leaq 0x15d4(%rip), %r14      # 0x65e8
movq (%rbx), %rdx
testq %rdx, %rdx
je 0x502f
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x4140
addq $0x8, %rbx
jmp 0x5014
leaq 0x15b6(%rip), %rdi      # 0x65ec
pushq $0x9
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
movq %r13, %rcx
callq 0x4230
leaq 0x15a8(%rip), %rdi      # 0x65f6
pushq $0x17
popq %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x4230
pushq $0xf
popq %rbp
leaq 0xfea(%rip), %r15       # 0x6050
movq 0x8(%rsp), %rax
movl %eax, %ebx
movl %r12d, %r14d
pushq $0xf
popq %rdi
callq 0x4987
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x20(%rsp), %r9
movq 0x28(%rsp), %r10
movl 0x18(%rsp), %r11d
movl %eax, %edx
xorl %eax, %eax
cmpl $0xe, %edx
ja 0x5091
movl %edx, %edx
movslq (%r15,%rdx,4), %rdx
addq %r15, %rdx
jmpq *%rdx
cmpl $0x0, 0x4(%rsp)
jns 0x535e
cmpl $0x0, 0x48(%rsp)
jns 0x5335
cmpl $0x0, 0x10(%rsp)
jns 0x530d
cmpl $0x0, 0x30(%rsp)
jns 0x52e5
cmpl $0x0, 0x38(%rsp)
jns 0x52ba
cmpl $0x0, 0x40(%rsp)
jns 0x528f
testl %ecx, %ecx
jns 0x5269
cmpl $0x0, 0x8(%rsp)
jns 0x5240
testl %ebx, %ebx
jns 0x521f
testl %r8d, %r8d
jns 0x51f8
testl %r11d, %r11d
jns 0x51d0
testl %r9d, %r9d
jns 0x51a7
testl %r10d, %r10d
jns 0x517e
testl %r12d, %r12d
jns 0x5156
testl %r14d, %r14d
js 0x5091
movq %r13, %rdi
movq 0x88(%rsp), %rsi
leaq 0x1512(%rip), %rdx      # 0x6654
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %r14
jmp 0x5383
movq %r13, %rdi
movq 0x80(%rsp), %rsi
leaq 0x14e7(%rip), %rdx      # 0x664f
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movl %eax, %r12d
jmp 0x5383
movq 0x62f3(%rip), %rsi      # 0xb478
movq %r13, %rdi
leaq 0x14bb(%rip), %rdx      # 0x664a
movl %r10d, %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x28(%rsp)
jmp 0x5383
movq 0x627a(%rip), %rsi      # 0xb428
movq %r13, %rdi
leaq 0x148d(%rip), %rdx      # 0x6645
movl %r9d, %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x20(%rsp)
jmp 0x5383
movq %r13, %rdi
leaq 0x62a6(%rip), %rsi      # 0xb480
leaq 0x145f(%rip), %rdx      # 0x6640
movl %r11d, %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movl %eax, 0x18(%rsp)
jmp 0x5383
movq %r13, %rdi
movq 0x78(%rsp), %rsi
leaq 0x1434(%rip), %rdx      # 0x663b
movl %r8d, %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x58(%rsp)
jmp 0x5383
movq %r13, %rdi
movq 0x70(%rsp), %rsi
leaq 0x1408(%rip), %rdx      # 0x6636
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rbx
jmp 0x5383
movq %r13, %rdi
movq 0x68(%rsp), %rsi
leaq 0x13e2(%rip), %rdx      # 0x6631
movq 0x8(%rsp), %rcx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x8(%rsp)
jmp 0x5383
movq 0x61d8(%rip), %rsi      # 0xb448
movq %r13, %rdi
leaq 0x13b2(%rip), %rdx      # 0x662c
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x50(%rsp)
jmp 0x5383
movq 0x61aa(%rip), %rsi      # 0xb440
movq %r13, %rdi
leaq 0x1387(%rip), %rdx      # 0x6627
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x40(%rsp)
jmp 0x5383
movq 0x6177(%rip), %rsi      # 0xb438
movq %r13, %rdi
leaq 0x1357(%rip), %rdx      # 0x6622
movq 0x38(%rsp), %rcx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x38(%rsp)
jmp 0x5383
movq 0x6134(%rip), %rsi      # 0xb420
movq %r13, %rdi
leaq 0x1327(%rip), %rdx      # 0x661d
movq 0x30(%rsp), %rcx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x30(%rsp)
jmp 0x5383
movq %r13, %rdi
leaq 0x6149(%rip), %rsi      # 0xb460
leaq 0x12fa(%rip), %rdx      # 0x6618
movq 0x10(%rsp), %rcx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x10(%rsp)
jmp 0x5383
movq %r13, %rdi
movq 0x90(%rsp), %rsi
leaq 0x12cc(%rip), %rdx      # 0x6613
movq 0x48(%rsp), %rcx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movq %rax, 0x48(%rsp)
jmp 0x5383
movq %r13, %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x129e(%rip), %rdx      # 0x660e
movl 0x4(%rsp), %ecx
xorl %r8d, %r8d
callq 0x4b18
pushq $-0x1
popq %rax
movl %eax, 0x4(%rsp)
decl %ebp
jne 0x5070
leaq 0x12c7(%rip), %rdi      # 0x6659
pushq $0x15
popq %rsi
pushq $0x1
popq %rdx
movq %r13, %rcx
callq 0x4230
leaq 0x12c8(%rip), %rsi      # 0x666f
leaq 0x12d7(%rip), %rdx      # 0x6685
movq %r13, %rdi
movl $0x1000, %ecx           # imm = 0x1000
xorl %eax, %eax
callq 0x4140
movzbl 0x60c0(%rip), %edx      # 0xb484
leaq 0xd95(%rip), %rsi       # 0x6160
movq %r13, %rdi
xorl %eax, %eax
callq 0x4140
movzbl 0x60ac(%rip), %edx      # 0xb488
xorl $0x1, %edx
leaq 0xdba(%rip), %rsi       # 0x61a0
movq %r13, %rdi
xorl %eax, %eax
callq 0x4140
movzbl 0x6095(%rip), %edx      # 0xb48c
leaq 0xdf2(%rip), %rsi       # 0x61f0
movq %r13, %rdi
xorl %eax, %eax
callq 0x4140
leaq 0x4ed1(%rip), %r14      # 0xa2e0
leaq 0x11be(%rip), %rbx      # 0x65d4
xorl %r15d, %r15d
cmpq $0x978, %r15            # imm = 0x978
je 0x5439
movq (%r15,%r14), %rdx
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4140
addq $0x8, %r15
jmp 0x5419
movq %r13, %rdi
callq 0x4180
movq %r13, %rdi
callq 0x4090
xorl %eax, %eax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5b94(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0x113a(%rip), %rsi      # 0x65a8
leaq 0xc93(%rip), %rdx       # 0x6108
movq %r14, %rcx
jmp 0x5497
movq 0x5b77(%rip), %rax      # 0xaff8
movq (%rax), %rdi
leaq 0x10fc(%rip), %rsi      # 0x6587
leaq 0xc76(%rip), %rdx       # 0x6108
movq 0x60(%rsp), %rcx
xorl %eax, %eax
callq 0x4140
leaq 0x1142(%rip), %rdi      # 0x65e7
callq 0x41d0
pushq $0x1
popq %rdi
callq 0x4220