// File: /workspace/github_c_makefile_star2_O3/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 0x13c0(%rip), %rdi      # 0x655d
callq 0x4240
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x40(%rsp)
leaq 0x62a5(%rip), %rdi      # 0xb460
callq 0x40b0
movq %rax, 0x10(%rsp)
movq 0x6254(%rip), %r15      # 0xb420
movq %r15, %rdi
callq 0x4240
movq %rax, 0x68(%rsp)
movq %r15, %rdi
callq 0x40b0
movq %rax, 0x18(%rsp)
movq 0x624b(%rip), %rdi      # 0xb438
callq 0x40b0
movq %rax, 0x20(%rsp)
movq 0x6242(%rip), %rdi      # 0xb440
callq 0x40b0
movq %rax, 0x28(%rsp)
movq 0x6239(%rip), %rdi      # 0xb448
callq 0x40b0
movq %rax, 0x48(%rsp)
leaq 0x134b(%rip), %rdi      # 0x656b
callq 0x4240
movq %rax, %r14
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x30(%rsp)
movq %r14, 0x70(%rsp)
movq %r14, %rdi
callq 0x4240
movq %rax, 0x78(%rsp)
leaq 0x1333(%rip), %rdi      # 0x6581
callq 0x4240
movq %rax, 0x80(%rsp)
movq %rax, %rdi
callq 0x40b0
movq %rax, 0x50(%rsp)
movq 0x61b9(%rip), %rdi      # 0xb428
callq 0x40b0
movq %rax, 0x60(%rsp)
movq 0x61f8(%rip), %rdi      # 0xb478
callq 0x40b0
movq %rax, 0x58(%rsp)
leaq 0x1303(%rip), %rdi      # 0x6594
callq 0x4240
movq %rax, %r14
movq %rax, %rdi
callq 0x40b0
movq %rax, %r12
movq %r14, 0x88(%rsp)
movq %r14, %rdi
callq 0x4240
movq %rax, 0x90(%rsp)
movq %r13, %rdi
callq 0x4240
movq %rax, 0x38(%rsp)
xorl %r15d, %r15d
xorl %edi, %edi
callq 0x4160
movq %rax, %r14
callq 0x4080
xorl %eax, %r14d
movl %r14d, %edi
callq 0x4100
leaq 0xa0(%rsp), %r14
callq 0x4250
cmpl $0x7ffffeff, %eax       # imm = 0x7FFFFEFF
ja 0x52ee
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0xd3f(%rip), %xmm0      # 0x6048
divsd 0xd3f(%rip), %xmm0      # 0x6050
cvttsd2si %xmm0, %rax
movb %al, (%r14)
incl %r15d
incq %r14
cmpl $0x100, %r15d           # imm = 0x100
jne 0x52ee
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
incl %eax
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rax
incl %eax
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rax
incl %eax
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
incl %eax
movq %rax, 0x58(%rsp)
xorl %eax, %eax
movb %al, 0x5fa4(%rip)       # 0xb310
movb %al, 0x5f9f(%rip)       # 0xb311
movdqa 0xc96(%rip), %xmm0      # 0x6010
leaq 0x5f9f(%rip), %rcx      # 0xb320
movdqa 0xc97(%rip), %xmm1      # 0x6020
movdqa %xmm0, (%rax,%rcx)
addq $0x10, %rax
paddb %xmm1, %xmm0
cmpq $0x100, %rax            # imm = 0x100
jne 0x5389
movq 0x18(%rsp), %rax
incl %eax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rax
incl %eax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rbp
incl %ebp
movb $0x0, 0x5f4e(%rip)      # 0xb312
leaq 0xa0(%rsp), %rdi
movl $0x100, %esi            # imm = 0x100
callq 0x48ce
movq 0x5f13(%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 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x41b0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x4200
movq %r15, 0x98(%rsp)
movq %r15, %rdi
movl %r13d, %esi
callq 0x493a
leaq 0x6033(%rip), %rdi      # 0xb460
movq 0x10(%rsp), %rsi
callq 0x493a
movq 0x5fe2(%rip), %rdi      # 0xb420
movq 0x18(%rsp), %rsi
callq 0x493a
movq 0x5fe9(%rip), %rdi      # 0xb438
movq 0x20(%rsp), %rsi
callq 0x493a
movq 0x5fe0(%rip), %rdi      # 0xb440
movq 0x28(%rsp), %rsi
callq 0x493a
movq 0x5fd7(%rip), %rdi      # 0xb448
movq 0x48(%rsp), %rsi
callq 0x493a
movq 0x70(%rsp), %rdi
movl %ebp, %esi
callq 0x493a
movq 0x78(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
callq 0x48ce
movq %r14, %rdi
movq %rbp, 0x30(%rsp)
movl %ebp, %esi
callq 0x493a
movq 0x80(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x493a
leaq 0x5fc2(%rip), %rdi      # 0xb480
movb 0x5fbb(%rip), %bpl      # 0xb480
movl $0x1, %esi
callq 0x493a
testb %bpl, %bpl
jne 0x54e6
movq 0x68(%rsp), %rdi
callq 0x4996
testl %eax, %eax
jne 0x5ad2
movq 0x60(%rsp), %rsi
incl %esi
incl %r12d
movq 0x5f31(%rip), %rdi      # 0xb428
movq %rsi, 0x60(%rsp)
callq 0x493a
movq 0x5f70(%rip), %rdi      # 0xb478
movq 0x58(%rsp), %rsi
callq 0x493a
movq 0x88(%rsp), %rdi
movl %r12d, %esi
callq 0x493a
movq 0x90(%rsp), %r14
movq %r14, %rdi
movl %r12d, %esi
callq 0x48ce
movq %r14, %rdi
movl %r12d, %esi
callq 0x493a
movq 0x38(%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 0x104d(%rip), %rsi      # 0x65c6
movq %r14, %rdi
callq 0x41c0
testq %rax, %rax
je 0x5aca
movq %rax, %r15
leaq 0x1051(%rip), %rdi      # 0x65e5
movl $0x6, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x4230
leaq 0x103f(%rip), %rsi      # 0x65ec
leaq 0xb74(%rip), %rdx       # 0x6128
leaq 0xb74(%rip), %rcx       # 0x612f
leaq 0xb7e(%rip), %r8        # 0x6140
movq %r15, %rdi
xorl %eax, %eax
callq 0x4140
leaq 0x1025(%rip), %rsi      # 0x65f8
leaq 0xb86(%rip), %rdx       # 0x6160
leaq 0x115e(%rip), %rcx      # 0x673f
leaq 0x115e(%rip), %r8       # 0x6746
leaq 0x1160(%rip), %r9       # 0x674f
movq %r15, %rdi
xorl %eax, %eax
callq 0x4140
movq (%rbx), %rdx
testq %rdx, %rdx
je 0x5625
addq $0x8, %rbx
leaq 0xffc(%rip), %r14       # 0x6608
movq %r15, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x4140
movq (%rbx), %rdx
addq $0x8, %rbx
testq %rdx, %rdx
jne 0x560c
leaq 0xfe0(%rip), %rdi       # 0x660c
movl $0x9, %esi
movl $0x1, %edx
movq %r15, %rcx
callq 0x4230
leaq 0xfd1(%rip), %rdi       # 0x6616
movl $0x17, %esi
movl $0x1, %edx
movq %r15, 0x8(%rsp)
movq %r15, %rcx
callq 0x4230
movl $0xf, %r15d
movl $0x100, 0x38(%rsp)      # imm = 0x100
movl $0x1, %ebp
leaq 0x9fa(%rip), %r13       # 0x6070
movq 0x30(%rsp), %rax
movl %eax, %ebx
movl %r12d, %r14d
callq 0x4250
cmpl $0x7ffffff7, %eax       # imm = 0x7FFFFFF7
ja 0x5680
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x9bd(%rip), %xmm0      # 0x6058
divsd 0x9bd(%rip), %xmm0      # 0x6060
cvttsd2si %xmm0, %rax
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x60(%rsp), %r9
movq 0x58(%rsp), %r10
movl %eax, %edx
xorl %eax, %eax
cmpl $0xe, %edx
ja 0x56bc
movl %edx, %edx
movslq (%r13,%rdx,4), %rdx
addq %r13, %rdx
jmpq *%rdx
cmpl $0x0, 0x38(%rsp)
jns 0x59c0
cmpl $0x0, 0x40(%rsp)
jns 0x5993
cmpl $0x0, 0x10(%rsp)
jns 0x5967
cmpl $0x0, 0x18(%rsp)
jns 0x5938
cmpl $0x0, 0x20(%rsp)
jns 0x5909
cmpl $0x0, 0x28(%rsp)
jns 0x58da
testl %ecx, %ecx
jns 0x58b0
cmpl $0x0, 0x30(%rsp)
jns 0x5883
testl %ebx, %ebx
jns 0x585e
testl %r8d, %r8d
jns 0x5830
testl %ebp, %ebp
jns 0x5809
testl %r9d, %r9d
jns 0x57dc
testl %r10d, %r10d
jns 0x57af
testl %r12d, %r12d
jns 0x5785
testl %r14d, %r14d
js 0x56bc
movq 0x8(%rsp), %rdi
movq 0x90(%rsp), %rsi
leaq 0xf05(%rip), %rdx       # 0x6674
movl %r14d, %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x59e8
movq 0x8(%rsp), %rdi
movq 0x88(%rsp), %rsi
leaq 0xed6(%rip), %rdx       # 0x666f
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x59e8
movq 0x5cc2(%rip), %rsi      # 0xb478
movq 0x8(%rsp), %rdi
leaq 0xea8(%rip), %rdx       # 0x666a
movl %r10d, %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x58(%rsp)
jmp 0x59e8
movq 0x5c45(%rip), %rsi      # 0xb428
movq 0x8(%rsp), %rdi
leaq 0xe76(%rip), %rdx       # 0x6665
movl %r9d, %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x60(%rsp)
jmp 0x59e8
movq 0x8(%rsp), %rdi
leaq 0x5c6b(%rip), %rsi      # 0xb480
leaq 0xe44(%rip), %rdx       # 0x6660
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x59e8
movq 0x8(%rsp), %rdi
movq 0x80(%rsp), %rsi
leaq 0xe17(%rip), %rdx       # 0x665b
movl %r8d, %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x50(%rsp)
jmp 0x59e8
movq 0x8(%rsp), %rdi
movq 0x78(%rsp), %rsi
leaq 0xde7(%rip), %rdx       # 0x6656
movl %ebx, %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x59e8
movq 0x8(%rsp), %rdi
movq 0x70(%rsp), %rsi
leaq 0xdbd(%rip), %rdx       # 0x6651
movq 0x30(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x30(%rsp)
jmp 0x59e8
movq 0x5b91(%rip), %rsi      # 0xb448
movq 0x8(%rsp), %rdi
leaq 0xd89(%rip), %rdx       # 0x664c
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x48(%rsp)
jmp 0x59e8
movq 0x5b5f(%rip), %rsi      # 0xb440
movq 0x8(%rsp), %rdi
leaq 0xd5a(%rip), %rdx       # 0x6647
movq 0x28(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x28(%rsp)
jmp 0x59e8
movq 0x5b28(%rip), %rsi      # 0xb438
movq 0x8(%rsp), %rdi
leaq 0xd26(%rip), %rdx       # 0x6642
movq 0x20(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x20(%rsp)
jmp 0x59e8
movq 0x5ae1(%rip), %rsi      # 0xb420
movq 0x8(%rsp), %rdi
leaq 0xcf2(%rip), %rdx       # 0x663d
movq 0x18(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x18(%rsp)
jmp 0x59e8
movq 0x8(%rsp), %rdi
leaq 0x5aed(%rip), %rsi      # 0xb460
leaq 0xcbe(%rip), %rdx       # 0x6638
movq 0x10(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x10(%rsp)
jmp 0x59e8
movq 0x8(%rsp), %rdi
movq 0x98(%rsp), %rsi
leaq 0xc8c(%rip), %rdx       # 0x6633
movq 0x40(%rsp), %rcx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x40(%rsp)
jmp 0x59e8
movq 0x8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc5a(%rip), %rdx       # 0x662e
movl 0x38(%rsp), %ecx
xorl %r8d, %r8d
callq 0x5057
movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF
decl %r15d
jne 0x5680
leaq 0xc81(%rip), %rdi       # 0x6679
movl $0x15, %esi
movl $0x1, %edx
movq 0x8(%rsp), %r12
movq %r12, %rcx
callq 0x4230
leaq 0xc79(%rip), %rsi       # 0x668f
leaq 0xc88(%rip), %rdx       # 0x66a5
movq %r12, %rdi
movl $0x1000, %ecx           # imm = 0x1000
xorl %eax, %eax
callq 0x4140
movzbl 0x5a51(%rip), %edx      # 0xb484
leaq 0x746(%rip), %rsi       # 0x6180
movq %r12, %rdi
xorl %eax, %eax
callq 0x4140
movzbl 0x5a3d(%rip), %edx      # 0xb488
xorl $0x1, %edx
leaq 0x76b(%rip), %rsi       # 0x61c0
movq %r12, %rdi
xorl %eax, %eax
callq 0x4140
movzbl 0x5a26(%rip), %edx      # 0xb48c
leaq 0x7a3(%rip), %rsi       # 0x6210
movq %r12, %rdi
xorl %eax, %eax
callq 0x4140
leaq 0x4862(%rip), %r14      # 0xa2e0
leaq 0xb6f(%rip), %rbx       # 0x65f4
xorl %r15d, %r15d
movq (%r15,%r14), %rdx
movq %r12, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4140
addq $0x8, %r15
cmpq $0x978, %r15            # imm = 0x978
jne 0x5a88
movq %r12, %rdi
callq 0x4180
movq %r12, %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 0x432d
movq 0x68(%rsp), %rdi
callq 0x42f6