// File: /workspace/github_c_makefile_star2_O1/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 0x1351(%rip), %rdi      # 0x651d
callq 0x4250
movq %rax, %r12
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x40(%rsp)
leaq 0x6278(%rip), %rdi      # 0xb460
callq 0x40b0
movq %rax, 0x8(%rsp)
movq 0x6227(%rip), %r15      # 0xb420
movq %r15, %rdi
callq 0x4250
movq %rax, 0x68(%rsp)
movq %r15, %rdi
callq 0x40b0
movq %rax, 0x48(%rsp)
movq 0x621e(%rip), %rdi      # 0xb438
callq 0x40b0
movq %rax, 0x10(%rsp)
movq 0x6215(%rip), %rdi      # 0xb440
callq 0x40b0
movq %rax, %rbp
movq 0x620e(%rip), %rdi      # 0xb448
callq 0x40b0
movq %rax, 0x18(%rsp)
leaq 0x12e0(%rip), %rdi      # 0x652b
callq 0x4250
movq %rax, %r14
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x20(%rsp)
movq %r14, 0x70(%rsp)
movq %r14, %rdi
callq 0x4250
movq %rax, 0x78(%rsp)
leaq 0x12c8(%rip), %rdi      # 0x6541
callq 0x4250
movq %rax, 0x80(%rsp)
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x28(%rsp)
movq 0x618e(%rip), %rdi      # 0xb428
callq 0x40b0
movq %rax, 0x50(%rsp)
movq 0x61cd(%rip), %rdi      # 0xb478
callq 0x40b0
movq %rax, 0x30(%rsp)
leaq 0x1298(%rip), %rdi      # 0x6554
callq 0x4250
movq %rax, %r14
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x38(%rsp)
movq %r14, 0x88(%rsp)
movq %r14, %rdi
callq 0x4250
movq %rax, 0x90(%rsp)
movq %r13, %rdi
callq 0x4250
movq %rax, 0x60(%rsp)
xorl %r15d, %r15d
xorl %edi, %edi
callq 0x4170
movq %rax, %r14
callq 0x4080
xorl %eax, %r14d
movl %r14d, %edi
callq 0x4110
leaq 0xa0(%rsp), %r14
callq 0x4260
cmpl $0x7ffffeff, %eax       # imm = 0x7FFFFEFF
ja 0x531b
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0xcda(%rip), %xmm0      # 0x6010
divsd 0xcda(%rip), %xmm0      # 0x6018
cvttsd2si %xmm0, %rax
movb %al, (%r14)
incl %r15d
incq %r14
cmpl $0x100, %r15d           # imm = 0x100
jne 0x531b
movq 0x8(%rsp), %rax
incl %eax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
incl %eax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rax
incl %eax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rax
incl %eax
movq %rax, 0x30(%rsp)
xorl %eax, %eax
movb %al, 0x5f77(%rip)       # 0xb310
movb %al, 0x5f72(%rip)       # 0xb311
movb %al, 0x5f6d(%rip)       # 0xb312
leaq 0x5f74(%rip), %rcx      # 0xb320
movb %al, (%rax,%rcx)
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x53ac
movq 0x48(%rsp), %r15
incl %r15d
incl %ebp
movq %rbp, 0x58(%rsp)
movq 0x20(%rsp), %rbp
incl %ebp
movb $0x0, 0x5f3b(%rip)      # 0xb312
leaq 0xa0(%rsp), %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x48dd
movq 0x5f00(%rip), %r14      # 0xb2f0
movq %r14, %rdi
callq 0x40b0
movq 0x40(%rsp), %rcx
addq %rcx, %rax
incq %rax
movq %rax, 0x40(%rsp)
movslq %eax, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x41c0
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x4210
movq %r12, 0x98(%rsp)
movq %r12, %rdi
movl %r13d, %esi
callq 0x4949
leaq 0x6022(%rip), %rdi      # 0xb460
movq 0x8(%rsp), %rsi
callq 0x4949
movq 0x5fd1(%rip), %rdi      # 0xb420
movq %r15, 0x48(%rsp)
movl %r15d, %esi
callq 0x4949
movq 0x5fd5(%rip), %rdi      # 0xb438
movq 0x10(%rsp), %rsi
callq 0x4949
movq 0x5fcc(%rip), %rdi      # 0xb440
movq 0x58(%rsp), %rsi
callq 0x4949
movq 0x5fc3(%rip), %rdi      # 0xb448
movq 0x18(%rsp), %rsi
callq 0x4949
movq 0x70(%rsp), %rdi
movl %ebp, %esi
callq 0x4949
movq 0x78(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
callq 0x48dd
movq %r14, %rdi
movq %rbp, 0x20(%rsp)
movl %ebp, %esi
callq 0x4949
movq 0x80(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x4949
leaq 0x5fae(%rip), %rdi      # 0xb480
movb 0x5fa7(%rip), %bpl      # 0xb480
movl $0x1, %esi
callq 0x4949
testb %bpl, %bpl
jne 0x54fa
movq 0x68(%rsp), %rdi
callq 0x49a5
testl %eax, %eax
jne 0x5ad9
movq 0x50(%rsp), %rsi
incl %esi
movq 0x38(%rsp), %r14
incl %r14d
movq 0x5f18(%rip), %rdi      # 0xb428
movq %rsi, 0x50(%rsp)
callq 0x4949
movq 0x5f57(%rip), %rdi      # 0xb478
movq 0x30(%rsp), %rsi
callq 0x4949
movq 0x88(%rsp), %rdi
movl %r14d, %esi
callq 0x4949
movq 0x90(%rsp), %r15
movq %r15, %rdi
movl %r14d, %esi
callq 0x48dd
movq %r15, %rdi
movq %r14, %r12
movl %r14d, %esi
callq 0x4949
movq 0x60(%rsp), %r14
movq %r14, %rdi
callq 0x40b0
leaq 0x5(%rax), %rsi
movq %r14, %rdi
callq 0x41c0
movq %rax, %r14
movq %rax, %rdi
callq 0x40b0
movl $0x632e782e, (%r14,%rax) # imm = 0x632E782E
movb $0x0, 0x4(%r14,%rax)
leaq 0xff1(%rip), %rsi       # 0x6586
movq %r14, %rdi
callq 0x41d0
testq %rax, %rax
je 0x5ad1
movq %rax, %r13
leaq 0xff5(%rip), %rdi       # 0x65a5
movl $0x6, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x4240
leaq 0xfe3(%rip), %rsi       # 0x65ac
leaq 0xb18(%rip), %rdx       # 0x60e8
leaq 0xb18(%rip), %rcx       # 0x60ef
leaq 0xb22(%rip), %r8        # 0x6100
movq %r13, %rdi
xorl %eax, %eax
callq 0x4150
leaq 0xfc9(%rip), %rsi       # 0x65b8
leaq 0xb2a(%rip), %rdx       # 0x6120
leaq 0x1102(%rip), %rcx      # 0x66ff
leaq 0x1102(%rip), %r8       # 0x6706
leaq 0x1104(%rip), %r9       # 0x670f
movq %r13, %rdi
xorl %eax, %eax
callq 0x4150
movq (%rbx), %rdx
testq %rdx, %rdx
je 0x5641
addq $0x8, %rbx
leaq 0xfa0(%rip), %r14       # 0x65c8
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x4150
movq (%rbx), %rdx
addq $0x8, %rbx
testq %rdx, %rdx
jne 0x5628
leaq 0xf84(%rip), %rdi       # 0x65cc
movl $0x9, %esi
movl $0x1, %edx
movq %r13, %rcx
callq 0x4240
leaq 0xf75(%rip), %rdi       # 0x65d6
movl $0x17, %esi
movl $0x1, %edx
movq %r13, %rcx
callq 0x4240
movl $0xf, %ecx
movl $0x100, 0x38(%rsp)      # imm = 0x100
movl $0x1, %ebp
leaq 0x9a4(%rip), %r15       # 0x6030
movq 0x20(%rsp), %rax
movl %eax, %ebx
movl %r12d, %r14d
movl %ecx, 0x60(%rsp)
callq 0x4260
cmpl $0x7ffffff7, %eax       # imm = 0x7FFFFFF7
ja 0x569a
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x96b(%rip), %xmm0      # 0x6020
divsd 0x96b(%rip), %xmm0      # 0x6028
cvttsd2si %xmm0, %rcx
xorl %eax, %eax
cmpl $0xe, %ecx
ja 0x59e7
movl %ecx, %ecx
movslq (%r15,%rcx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
cmpl $0x0, 0x38(%rsp)
jns 0x59bc
cmpl $0x0, 0x40(%rsp)
jns 0x5991
cmpl $0x0, 0x8(%rsp)
jns 0x5967
cmpl $0x0, 0x48(%rsp)
jns 0x593d
cmpl $0x0, 0x10(%rsp)
jns 0x5910
cmpl $0x0, 0x58(%rsp)
jns 0x58e3
cmpl $0x0, 0x18(%rsp)
jns 0x58b6
cmpl $0x0, 0x20(%rsp)
jns 0x588b
testl %ebx, %ebx
jns 0x5868
cmpl $0x0, 0x28(%rsp)
jns 0x583a
testl %ebp, %ebp
jns 0x5815
cmpl $0x0, 0x50(%rsp)
jns 0x57e8
cmpl $0x0, 0x30(%rsp)
jns 0x57bb
testl %r12d, %r12d
jns 0x5793
testl %r14d, %r14d
js 0x59e7
movq %r13, %rdi
movq 0x90(%rsp), %rsi
leaq 0xeb7(%rip), %rdx       # 0x6634
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x59e2
movq %r13, %rdi
movq 0x88(%rsp), %rsi
leaq 0xe8a(%rip), %rdx       # 0x662f
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x59e2
movq 0x5cb6(%rip), %rsi      # 0xb478
movq %r13, %rdi
leaq 0xe5e(%rip), %rdx       # 0x662a
movq 0x30(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x30(%rsp)
jmp 0x59e2
movq 0x5c39(%rip), %rsi      # 0xb428
movq %r13, %rdi
leaq 0xe2c(%rip), %rdx       # 0x6625
movq 0x50(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x50(%rsp)
jmp 0x59e2
movq %r13, %rdi
leaq 0x5c61(%rip), %rsi      # 0xb480
leaq 0xdfa(%rip), %rdx       # 0x6620
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x59e2
movq %r13, %rdi
movq 0x80(%rsp), %rsi
leaq 0xdcf(%rip), %rdx       # 0x661b
movq 0x28(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x28(%rsp)
jmp 0x59e2
movq %r13, %rdi
movq 0x78(%rsp), %rsi
leaq 0xd9f(%rip), %rdx       # 0x6616
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x59e2
movq %r13, %rdi
movq 0x70(%rsp), %rsi
leaq 0xd77(%rip), %rdx       # 0x6611
movq 0x20(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x20(%rsp)
jmp 0x59e2
movq 0x5b8b(%rip), %rsi      # 0xb448
movq %r13, %rdi
leaq 0xd45(%rip), %rdx       # 0x660c
movq 0x18(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x18(%rsp)
jmp 0x59e2
movq 0x5b56(%rip), %rsi      # 0xb440
movq %r13, %rdi
leaq 0xd13(%rip), %rdx       # 0x6607
movq 0x58(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x58(%rsp)
jmp 0x59e2
movq 0x5b21(%rip), %rsi      # 0xb438
movq %r13, %rdi
leaq 0xce1(%rip), %rdx       # 0x6602
movq 0x10(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x10(%rsp)
jmp 0x59e2
movq 0x5adc(%rip), %rsi      # 0xb420
movq %r13, %rdi
leaq 0xcaf(%rip), %rdx       # 0x65fd
movq 0x48(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x48(%rsp)
jmp 0x59e2
movq %r13, %rdi
leaq 0x5aef(%rip), %rsi      # 0xb460
leaq 0xc80(%rip), %rdx       # 0x65f8
movq 0x8(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x8(%rsp)
jmp 0x59e2
movq %r13, %rdi
movq 0x98(%rsp), %rsi
leaq 0xc50(%rip), %rdx       # 0x65f3
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x40(%rsp)
jmp 0x59e2
movq %r13, %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc20(%rip), %rdx       # 0x65ee
movl 0x38(%rsp), %ecx
xorl %r8d, %r8d
callq 0x5086
movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
testl %eax, %eax
je 0x56c4
movl 0x60(%rsp), %ecx
addl %eax, %ecx
jne 0x5696
leaq 0xc35(%rip), %rdi       # 0x6639
movl $0x15, %esi
movl $0x1, %edx
movq %r13, %rcx
callq 0x4240
leaq 0xc32(%rip), %rsi       # 0x664f
leaq 0xc41(%rip), %rdx       # 0x6665
movq %r13, %rdi
movl $0x1000, %ecx           # imm = 0x1000
xorl %eax, %eax
callq 0x4150
movzbl 0x5a4a(%rip), %edx      # 0xb484
leaq 0x6ff(%rip), %rsi       # 0x6140
movq %r13, %rdi
xorl %eax, %eax
callq 0x4150
movzbl 0x5a36(%rip), %edx      # 0xb488
xorl $0x1, %edx
leaq 0x724(%rip), %rsi       # 0x6180
movq %r13, %rdi
xorl %eax, %eax
callq 0x4150
movzbl 0x5a1f(%rip), %edx      # 0xb48c
leaq 0x75c(%rip), %rsi       # 0x61d0
movq %r13, %rdi
xorl %eax, %eax
callq 0x4150
leaq 0x485b(%rip), %r14      # 0xa2e0
leaq 0xb28(%rip), %rbx       # 0x65b4
xorl %r15d, %r15d
movq (%r15,%r14), %rdx
movq %r13, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4150
addq $0x8, %r15
cmpq $0x978, %r15            # imm = 0x978
jne 0x5a8f
movq %r13, %rdi
callq 0x4190
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 %r14, %rdi
callq 0x4367
movq 0x68(%rsp), %rdi
callq 0x4330