// File: /workspace/github_cpp_makefile_star2_O3/hugosantos[P]dbeacon/dbeacon.cpp
// Function: process_param(param_tok const*, char const*)
static void process_param(const param_tok *tok, const char *arg) {
	switch (tok->name) {
	case NAME:
		beaconName = check_good_string("name", arg);
		break;
	case CONTACT:
		if (!strchr(arg, '@'))
			fatal("Not a valid email address.");

		adminContact = check_good_string("admin contact", arg);
		break;
	case INTERFACE:
		mcastInterface = if_nametoindex(arg);
		if (mcastInterface <= 0)
			fatal("Invalid interface name.");
		break;
	case BEACONADDR:
		probeAddrLiteral = arg;
		break;
	case SSMADDR:
		if (arg)
			probeSSMAddrLiteral = arg;
		useSSM = true;
		listenForSSM = true;
		break;
	case SSMSENDONLY:
		useSSM = true;
		listenForSSM = parse_bool("SSMSendOnly", arg, false);
		break;
	case BOOTSTRAP:
		add_bootstrap_address(arg);
		break;
	case ENABLESSMPING:
		useSSMPing = parse_bool("SSMPing", arg, true);
		break;
	case SOURCEADDR:
		parse_or_fail(&beaconUnicastAddr, arg, false, false);
		break;
	case DUMP:
		dumpFile = arg ? arg : defaultDumpFile;
		break;
	case DUMPINTERVAL:
		dumpInterval = parse_u32("Dump interval", arg);
		if (dumpInterval < 5)
			dumpInterval = 5;
		break;
	case DUMPEXEC:
		launchSomething = arg;
		break;
	case SPECWEBSITE:
		if (strncmp(arg, "lg$", 3) == 0) {
			webSites[T_WEBSITE_LG] =
				check_good_string("LG website", arg + 3);
		} else if (strncmp(arg, "matrix$", 7) == 0) {
			webSites[T_WEBSITE_MATRIX] =
				check_good_string("matrix url", arg + 7);
		} else {
			webSites[T_WEBSITE_GENERIC] =
				check_good_string("website", arg);
		}
		break;
	case SPECMATRIX:
		webSites[T_WEBSITE_MATRIX] =
			check_good_string("matrix url", arg);
		break;
	case SPECLG:
		webSites[T_WEBSITE_LG] =
			check_good_string("lg url", arg);
		break;
	case COUNTRY:
		if (strlen(arg) != 2)
			fatal("Bad country code.");
		twoLetterCC = check_good_string("country", arg);
		break;
	case SPECFLAG:
		if (!strcmp(arg, "ssmping")) {
			flags |= SSMPING_CAPABLE;
		} else {
			fprintf(stderr, "Unknown flag \"%s\"\n", arg);
		}
		break;
	case VERBOSE:
		if (arg)
			verbose = parse_u32("Verbose", arg);
		else
			verbose ++;
		break;
	case DUMPBW:
		dumpBwReport = parse_bool("DumpBandwidth", arg, true);
		break;
	case HELP:
		usage();
		break;
	case FORCEv4:
		forceFamily = AF_INET;
		break;
	case FORCEv6:
		forceFamily = AF_INET6;
		break;
	case SHOWVERSION:
		show_version();
		break;
	case DAEMON:
		daemonize = true;
		break;
	case PIDFILE:
		pidfile = check_good_string("pidfile", arg);
		break;
	case USE_SYSLOG:
		use_syslog = true;
		break;
	case CONFFILE:
		parse_config_file(arg);
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
decl %edi
cmpl $0x1a, %edi
ja 0x7779
movq %rsi, %rbx
leaq 0x4eb9(%rip), %rax      # 0xc0ec
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x589e(%rip), %rdi      # 0xcae1
movq %rbx, %rsi
callq 0x782f
movq 0xb1ae(%rip), %r14      # 0x12400
leaq 0xb19f(%rip), %r15      # 0x123f8
jmp 0x7433
leaq 0x5ce7(%rip), %rdi      # 0xcf4c
movq %rbx, %rsi
callq 0x782f
movq %rbx, 0xb4d4(%rip)      # 0x12748
jmp 0x7779
movb $0x1, 0xb4c4(%rip)      # 0x12744
jmp 0x7779
leaq 0x5c62(%rip), %rsi      # 0xceee
movq %rbx, %rdi
callq 0x34d0
testl %eax, %eax
jne 0x77c8
orb $0x2, 0xb299(%rip)      # 0x1253c
jmp 0x7779
leaq 0x5d9a(%rip), %rdi      # 0xd049
movq %rbx, %rsi
callq 0x782f
movq %rsp, %rsi
movl $0x4c, (%rsi)
jmp 0x774b
movq 0xb3c4(%rip), %r14      # 0x12690
leaq 0xb3b5(%rip), %r15      # 0x12688
jmp 0x7433
testq %rbx, %rbx
je 0x7306
movq 0xb30c(%rip), %r14      # 0x125f0
leaq 0xb2fd(%rip), %r15      # 0x125e8
movq %rbx, %rdi
callq 0x3180
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x3540
movb $0x1, %al
movb %al, 0xb542(%rip)       # 0x12850
jmp 0x7493
cmpb $0x6c, (%rbx)
jne 0x771b
cmpb $0x67, 0x1(%rbx)
jne 0x771b
cmpb $0x24, 0x2(%rbx)
jne 0x771b
addq $0x3, %rbx
leaq 0x5cf0(%rip), %rdi      # 0xd02b
movq %rbx, %rsi
callq 0x782f
movq %rsp, %rsi
movl $0x4c, (%rsi)
jmp 0x77af
testq %rbx, %rbx
leaq 0x5cb9(%rip), %r14      # 0xd014
cmovneq %rbx, %r14
movq 0xb34a(%rip), %rbx      # 0x126b0
leaq 0xb33b(%rip), %r15      # 0x126a8
movq %r14, %rdi
callq 0x3180
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
jmp 0x7446
movq %rbx, %rdi
callq 0x30b0
movl %eax, 0xb1ad(%rip)      # 0x12540
testl %eax, %eax
jg 0x7779
leaq 0x5c52(%rip), %rdi      # 0xcff4
jmp 0x7828
movq %rbx, %rdi
callq 0x3180
cmpq $0x2, %rax
jne 0x780f
leaq 0x5ca2(%rip), %rdi      # 0xd062
movq %rbx, %rsi
callq 0x782f
movq 0xb071(%rip), %r14      # 0x12440
leaq 0xb062(%rip), %r15      # 0x12438
jmp 0x7433
movq 0xb1f1(%rip), %r14      # 0x125d0
leaq 0xb1e2(%rip), %r15      # 0x125c8
jmp 0x7433
movq %rbx, %rdi
movl $0x1, %esi
callq 0x7884
movb %al, 0xb461(%rip)       # 0x1285c
jmp 0x7779
movq %rbx, %rdi
movl $0x40, %esi
callq 0x3160
testq %rax, %rax
je 0x7818
leaq 0x5bc9(%rip), %rdi      # 0xcfe6
movq %rbx, %rsi
callq 0x782f
movq 0xaff4(%rip), %r14      # 0x12420
leaq 0xafe5(%rip), %r15      # 0x12418
movq %rbx, %rdi
callq 0x3180
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3540
testq %rbx, %rbx
je 0x778b
leaq 0x5c0e(%rip), %rdi      # 0xd07d
movq %rbx, %rsi
callq 0x791e
movl %eax, 0xb0bb(%rip)      # 0x12538
jmp 0x7779
movb $0x1, 0xb3c7(%rip)      # 0x12850
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7884
movb %al, 0xb3b8(%rip)       # 0x12851
jmp 0x7779
leaq 0x5b99(%rip), %rdi      # 0xd03e
movq %rbx, %rsi
callq 0x782f
movq %rsp, %rsi
movl $0x4d, (%rsi)
jmp 0x774b
movq %rsp, %r14
movq %r14, %rdi
callq 0xa23c
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0xa294
testb %al, %al
je 0x7548
leaq 0xb245(%rip), %rdi      # 0x12728
movq %rsp, %rsi
callq 0x7a5c
jmp 0x7779
movq %rbx, %rdi
movl $0x1, %esi
callq 0x7884
movb %al, 0xb35a(%rip)       # 0x1285d
jmp 0x7779
leaq 0x5b0e(%rip), %rdi      # 0xd01d
movq %rbx, %rsi
callq 0x791e
cmpl $0x6, %eax
movl $0x5, %ecx
cmovgel %eax, %ecx
movl %ecx, 0xae88(%rip)      # 0x123b0
jmp 0x7779
leaq 0xaf84(%rip), %rdi      # 0x124b8
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa294
testb %al, %al
jne 0x7779
leaq 0x5b94(%rip), %rdi      # 0xd0e3
jmp 0x7828
movb $0x1, 0xb1ea(%rip)      # 0x12745
jmp 0x7779
movl $0x2, 0xb1d6(%rip)      # 0x12740
jmp 0x7779
leaq 0x6181(%rip), %rsi      # 0xd6f7
movq %rbx, %rdi
callq 0x3430
testq %rax, %rax
je 0x7821
movq %rax, %rbx
movq %rsp, %r14
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movq %rax, %rdx
callq 0x3550
testq %rax, %rax
je 0x7705
movq %r14, %r13
movq %r13, %r15
movsbl (%r13), %ebp
movl %ebp, %edi
callq 0x3060
incq %r13
testl %eax, %eax
jne 0x75a9
movzbl %bpl, %ebp
movq %r15, %rdi
callq 0x3180
testl %ebp, %ebp
je 0x76e9
cmpl $0x23, %ebp
je 0x76e9
movq %rax, %r12
cmpl $0x2f, %ebp
jne 0x75ef
cmpb $0x2f, (%r13)
je 0x76e9
addq %r15, %r12
movq %r15, %rdi
movl $0x3a, %esi
callq 0x3160
testq %rax, %rax
je 0x7668
movq %rax, %rbp
leaq -0x1(%rax), %r13
cmpq %r15, %r13
jbe 0x7629
movsbl (%r13), %edi
callq 0x3060
testl %eax, %eax
je 0x7629
decq %r13
cmpq %r15, %r13
ja 0x7610
movq %r15, %r13
movb $0x0, 0x1(%r13)
movq %rbp, %r13
movsbl 0x1(%r13), %edi
incq %r13
callq 0x3060
incq %rbp
testl %eax, %eax
jne 0x7631
decq %r12
cmpq %r13, %r12
jbe 0x768c
movsbl (%r12), %edi
callq 0x3060
testl %eax, %eax
je 0x768c
decq %r12
cmpq %r13, %r12
ja 0x764d
movq %rbp, %r12
jmp 0x768c
decq %r12
cmpq %r15, %r12
jbe 0x7689
movsbl (%r12), %edi
callq 0x3060
testl %eax, %eax
je 0x7689
decq %r12
cmpq %r15, %r12
ja 0x7670
movq %r15, %r12
xorl %r13d, %r13d
movb $0x0, 0x1(%r12)
movq %r15, %rdi
movl $0x1, %esi
callq 0x712d
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x71c1
testq %r13, %r13
je 0x76da
cmpb $0x22, (%r13)
jne 0x76dd
incq %r13
movq %r13, %rax
cmpb $0x22, (%rax)
leaq 0x1(%rax), %rax
jne 0x76c2
cmpb $0x0, (%rax)
jne 0x77f4
movb $0x0, -0x1(%rax)
jmp 0x76dd
xorl %r13d, %r13d
movl (%r12), %edi
movq %r13, %rsi
callq 0x720d
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdx
callq 0x3550
movq %r14, %r13
testq %rax, %rax
jne 0x75a9
movq %rbx, %rdi
callq 0x33b0
jmp 0x7779
movl $0xa, 0xb027(%rip)      # 0x12740
jmp 0x7779
leaq 0x5914(%rip), %rsi      # 0xd036
movl $0x7, %edx
movq %rbx, %rdi
callq 0x31b0
testl %eax, %eax
je 0x7793
leaq 0x58f4(%rip), %rdi      # 0xd02e
movq %rbx, %rsi
callq 0x782f
movq %rsp, %rsi
movl $0x47, (%rsi)
leaq 0xad36(%rip), %rdi      # 0x12488
callq 0x8096
movq %rax, %r14
movq 0x8(%rax), %r15
movq %rbx, %rdi
callq 0x3180
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x3540
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
incl 0xada7(%rip)            # 0x12538
jmp 0x7779
addq $0x7, %rbx
leaq 0x58a0(%rip), %rdi      # 0xd03e
movq %rbx, %rsi
callq 0x782f
movq %rsp, %rsi
movl $0x4d, (%rsi)
leaq 0xacd2(%rip), %rdi      # 0x12488
callq 0x8096
movq %rax, %rdi
movq %rbx, %rsi
callq 0x34b0
jmp 0x7779
movq 0xa801(%rip), %rax      # 0x11fd0
movq (%rax), %rdi
leaq 0x5891(%rip), %rsi      # 0xd06a
movq %rbx, %rdx
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x34e0
leaq 0x593e(%rip), %rdi      # 0xd139
movq %r15, %rsi
xorl %eax, %eax
callq 0x4147
callq 0x6413
callq 0x3cb5
leaq 0x583a(%rip), %rdi      # 0xd050
jmp 0x7828
leaq 0x57ac(%rip), %rdi      # 0xcfcb
jmp 0x7828
leaq 0x58ee(%rip), %rdi      # 0xd116
xorl %eax, %eax
callq 0x4147