// File: /workspace/github_cpp_makefile_star2_O1/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
movl (%rdi), %eax
decl %eax
cmpl $0x1a, %eax
ja 0x782b
movq %rsi, %rbx
leaq 0x4e53(%rip), %rcx      # 0xc0ec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5838(%rip), %rdi      # 0xcae1
movq %rbx, %rsi
callq 0x78a4
movq 0xb148(%rip), %r14      # 0x12400
leaq 0xb139(%rip), %r15      # 0x123f8
jmp 0x74b0
leaq 0x5c81(%rip), %rdi      # 0xcf4c
movq %rbx, %rsi
callq 0x78a4
movq %rbx, 0xb46e(%rip)      # 0x12748
jmp 0x782b
movb $0x1, 0xb45e(%rip)      # 0x12744
jmp 0x782b
leaq 0x5bfc(%rip), %rsi      # 0xceee
movq %rbx, %rdi
callq 0x34d0
testl %eax, %eax
jne 0x783d
orb $0x2, 0xb233(%rip)      # 0x1253c
jmp 0x782b
leaq 0x5d38(%rip), %rdi      # 0xd04d
movq %rbx, %rsi
callq 0x78a4
movq %rsp, %rsi
movl $0x4c, (%rsi)
jmp 0x7533
movq 0xb35e(%rip), %r14      # 0x12690
leaq 0xb34f(%rip), %r15      # 0x12688
jmp 0x74b0
testq %rbx, %rbx
je 0x736c
movq 0xb2a6(%rip), %r14      # 0x125f0
leaq 0xb297(%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, 0xb4dc(%rip)       # 0x12850
jmp 0x7510
leaq 0x5cab(%rip), %rsi      # 0xd02b
movl $0x3, %edx
movq %rbx, %rdi
callq 0x31b0
testl %eax, %eax
je 0x77d2
leaq 0x5c9e(%rip), %rsi      # 0xd03a
movl $0x7, %edx
movq %rbx, %rdi
callq 0x31b0
testl %eax, %eax
je 0x77f8
leaq 0x5c7a(%rip), %rdi      # 0xd032
movq %rbx, %rsi
callq 0x78a4
movq %rsp, %rsi
movl $0x47, (%rsi)
jmp 0x7814
testq %rbx, %rbx
leaq 0x5c3c(%rip), %r14      # 0xd014
cmovneq %rbx, %r14
movq 0xb2cd(%rip), %rbx      # 0x126b0
leaq 0xb2be(%rip), %r15      # 0x126a8
movq %r14, %rdi
callq 0x3180
movq %r15, %rdi
xorl %esi, %esi
movq %rbx, %rdx
movq %r14, %rcx
jmp 0x74c3
movq %rbx, %rdi
callq 0x30b0
movl %eax, 0xb130(%rip)      # 0x12540
testl %eax, %eax
jg 0x782b
leaq 0x5bd5(%rip), %rdi      # 0xcff4
jmp 0x789d
movq %rbx, %rdi
callq 0x3180
cmpq $0x2, %rax
jne 0x7884
leaq 0x5c29(%rip), %rdi      # 0xd066
movq %rbx, %rsi
callq 0x78a4
movq 0xaff4(%rip), %r14      # 0x12440
leaq 0xafe5(%rip), %r15      # 0x12438
jmp 0x74b0
movq 0xb174(%rip), %r14      # 0x125d0
leaq 0xb165(%rip), %r15      # 0x125c8
jmp 0x74b0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x78f9
movb %al, 0xb3e4(%rip)       # 0x1285c
jmp 0x782b
movq %rbx, %rdi
movl $0x40, %esi
callq 0x3160
testq %rax, %rax
je 0x788d
leaq 0x5b4c(%rip), %rdi      # 0xcfe6
movq %rbx, %rsi
callq 0x78a4
movq 0xaf77(%rip), %r14      # 0x12420
leaq 0xaf68(%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 0x77f0
leaq 0x5b95(%rip), %rdi      # 0xd081
movq %rbx, %rsi
callq 0x7993
movl %eax, 0xb03e(%rip)      # 0x12538
jmp 0x782b
movb $0x1, 0xb34a(%rip)      # 0x12850
movq %rbx, %rdi
xorl %esi, %esi
callq 0x78f9
movb %al, 0xb33b(%rip)       # 0x12851
jmp 0x782b
leaq 0x5b20(%rip), %rdi      # 0xd042
movq %rbx, %rsi
callq 0x78a4
movq %rsp, %rsi
movl $0x4d, (%rsi)
leaq 0xaf4e(%rip), %rdi      # 0x12488
callq 0x810a
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
jmp 0x782b
movq %rsp, %r14
movq %r14, %rdi
callq 0xa2ea
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0xa342
testb %al, %al
je 0x75f3
leaq 0xb19a(%rip), %rdi      # 0x12728
movq %rsp, %rsi
callq 0x7ad2
jmp 0x782b
movq %rbx, %rdi
movl $0x1, %esi
callq 0x78f9
movb %al, 0xb2af(%rip)       # 0x1285d
jmp 0x782b
leaq 0x5a63(%rip), %rdi      # 0xd01d
movq %rbx, %rsi
callq 0x7993
cmpl $0x6, %eax
movl $0x5, %ecx
cmovgel %eax, %ecx
movl %ecx, 0xaddd(%rip)      # 0x123b0
jmp 0x782b
leaq 0xaed9(%rip), %rdi      # 0x124b8
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa342
testb %al, %al
jne 0x782b
leaq 0x5aed(%rip), %rdi      # 0xd0e7
jmp 0x789d
movb $0x1, 0xb13f(%rip)      # 0x12745
jmp 0x782b
movl $0x2, 0xb12b(%rip)      # 0x12740
jmp 0x782b
leaq 0x60db(%rip), %rsi      # 0xd6fc
movq %rbx, %rdi
callq 0x3430
testq %rax, %rax
je 0x7896
movq %rax, %rbx
movq %rsp, %r14
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movq %rax, %rdx
callq 0x3550
testq %rax, %rax
je 0x77bc
leaq 0x5ae5(%rip), %r13      # 0xd13d
movq %r14, %rcx
movq %rcx, %r12
movsbl (%rcx), %ebp
movl %ebp, %edi
callq 0x3060
leaq 0x1(%r12), %rcx
testl %eax, %eax
jne 0x765b
movzbl %bpl, %r15d
movq %r12, %rdi
callq 0x3180
testl %r15d, %r15d
je 0x77a0
cmpl $0x23, %r15d
je 0x77a0
movq %rax, %rbp
movl $0x2, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x31b0
testl %eax, %eax
je 0x77a0
addq %r12, %rbp
movq %r12, %rdi
movl $0x3a, %esi
callq 0x3160
movq %rax, %r15
testq %rax, %rax
je 0x772c
movq %r15, %r13
decq %r13
cmpq %r12, %r13
jbe 0x76e7
movsbl (%r13), %edi
callq 0x3060
testl %eax, %eax
je 0x76e7
decq %r13
cmpq %r12, %r13
ja 0x76ce
movq %r12, %r13
movb $0x0, 0x1(%r13)
movq %r15, %r13
movsbl 0x1(%r15), %edi
incq %r15
callq 0x3060
incq %r13
testl %eax, %eax
jne 0x76ef
decq %rbp
cmpq %r15, %rbp
jbe 0x7723
movsbl (%rbp), %edi
callq 0x3060
testl %eax, %eax
je 0x7723
decq %rbp
cmpq %r15, %rbp
ja 0x770b
movq %r13, %rbp
leaq 0x5a13(%rip), %r13      # 0xd13d
jmp 0x774c
decq %rbp
cmpq %r12, %rbp
jbe 0x774c
movsbl (%rbp), %edi
callq 0x3060
testl %eax, %eax
je 0x774c
decq %rbp
cmpq %r12, %rbp
ja 0x7734
movq %r12, %rbp
movb $0x0, 0x1(%rbp)
movq %r12, %rdi
movl $0x1, %esi
callq 0x7191
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x7225
testq %r15, %r15
je 0x7795
cmpb $0x22, (%r15)
jne 0x7795
incq %r15
movq %r15, %rax
cmpb $0x22, (%rax)
leaq 0x1(%rax), %rax
jne 0x777f
cmpb $0x0, (%rax)
jne 0x7869
movb $0x0, -0x1(%rax)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x7271
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdx
callq 0x3550
movq %r14, %rcx
testq %rax, %rax
jne 0x765b
movq %rbx, %rdi
callq 0x33b0
jmp 0x782b
movl $0xa, 0xaf70(%rip)      # 0x12740
jmp 0x782b
addq $0x3, %rbx
leaq 0x5852(%rip), %rdi      # 0xd02f
movq %rbx, %rsi
callq 0x78a4
movq %rsp, %rsi
movl $0x4c, (%rsi)
jmp 0x7814
incl 0xad42(%rip)            # 0x12538
jmp 0x782b
addq $0x7, %rbx
leaq 0x583f(%rip), %rdi      # 0xd042
movq %rbx, %rsi
callq 0x78a4
movq %rsp, %rsi
movl $0x4d, (%rsi)
leaq 0xac6d(%rip), %rdi      # 0x12488
callq 0x810a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x34b0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa78c(%rip), %rax      # 0x11fd0
movq (%rax), %rdi
leaq 0x5820(%rip), %rsi      # 0xd06e
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 0x58d0(%rip), %rdi      # 0xd140
movq %r12, %rsi
xorl %eax, %eax
callq 0x4147
callq 0x646f
callq 0x3cb5
leaq 0x57c9(%rip), %rdi      # 0xd054
jmp 0x789d
leaq 0x5737(%rip), %rdi      # 0xcfcb
jmp 0x789d
leaq 0x587d(%rip), %rdi      # 0xd11a
xorl %eax, %eax
callq 0x4147