/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
undefined4 main(int param_1,char **param_2)
{
int iVar1;
undefined4 uVar2;
LAB_00401998:
do {
while( true ) {
iVar1 = getopt(param_1,param_2,"hvdc:s:t:") //possible issue identified - semgrep
if (iVar1 < 1) {
if (o_chain == (char *)0x0) {
o_chain = strdup("PRE_PORTT") //possible issue identified - semgrep
}
if (o_sockname == (char *)0x0) {
o_sockname = strdup("/var/run/portt.unixsocket") //possible issue identified - semgrep
}
signal(2,quit_signal) //possible issue identified - semgrep
signal(0xf,quit_signal) //possible issue identified - semgrep
signal(3,quit_signal) //possible issue identified - semgrep
memset(&trigger,0,0xf80) //possible issue identified - semgrep
do_listen();
cleanup_exit(0);
return 0;
}
if (iVar1 != 0x68) break;
uVar2 = 0;
LAB_00401988:
show_usage(uVar2);
}
if (iVar1 < 0x69) {
if (iVar1 == 99) {
if (o_chain != (char *)0x0) {
free(o_chain);
}
o_chain = strdup(_optarg) //possible issue identified - semgrep
}
else {
uVar2 = 9;
if (iVar1 != 100) goto LAB_00401988;
o_debug = o_debug + 1;
}
goto LAB_00401998;
}
if (iVar1 == 0x74) {
o_timeout = atoi(_optarg);
}
else if (iVar1 == 0x76) {
o_verbose = o_verbose + 1;
}
else {
uVar2 = 9;
if (iVar1 != 0x73) goto LAB_00401988;
if (o_sockname != (char *)0x0) {
free(o_sockname);
}
o_sockname = strdup(_optarg) //possible issue identified - semgrep
}
} while( true );
}