// File: /workspace/github_c_makefile_star2_O2/SequentMicrosystems[P]wdt-rpi/src/wdt.c
// Function: main
int main(int argc, char *argv[])
{
	// no argument
	if (argc == 1)
	{
		printf("%s\n", usage);
		return FAIL;
	}

	// Help
	if (0 == strcasecmp(argv[1], "-h") || 0 == strcasecmp(argv[1], "-help"))
	{
		doHelp(argc, argv);
		return OK;
	}

	// Warranty
	if (0 == strcasecmp(argv[1], "-warranty"))
	{
		printf("%s\n", warranty);
		return OK;
	}

	if (0 == strcasecmp(argv[1], "-v") || 0 == strcasecmp(argv[1], "-version"))
	{
		printf("Watchdog Control Software ver %s\n", WDT_SOFTWARE_VER_STR);
		printf("Copyright (c) 2016-2023 Sequent Microsystems\n");
		return OK;
	}

	if (0 == strcasecmp(argv[1], "-r") || 0 == strcasecmp(argv[1], "-reload"))
	{
		return doReload(argc, argv);
	}

	if (0 == strcasecmp(argv[1], "-d") || 0 == strcasecmp(argv[1], "-default"))
	{
		return doDefault(argc, argv);
	}

	if (0 == strcasecmp(argv[1], "-p") || 0 == strcasecmp(argv[1], "-period"))
	{
		return doPeriod(argc, argv);
	}

	if (0 == strcasecmp(argv[1], "-off")
		|| 0 == strcasecmp(argv[1], "-offinterval"))
	{
		return doSetOffTime(argc, argv);
	}

	if (0 == strcasecmp(argv[1], "-c") || 0 == strcasecmp(argv[1], "-clear"))
	{
		return doClear(argc, argv);
	}

	if (0 == strcasecmp(argv[1], "-g") || 0 == strcasecmp(argv[1], "-get"))
	{
		int i = doGet(argc, argv);
		if (i == FAIL)
		{
			return i;
		}
		if (i == NO_PRINT)
		{
			return OK;
		}
		printf("%d\n", i);
		return OK;
	}
	if (strcasecmp(argv[1], "-rob") == 0
		|| strcasecmp(argv[1], "-repoweronbattery") == 0)
	{
		return doSetRepowerOnBattery(argc, argv);
	}
	if (strcasecmp(argv[1], "-pbe") == 0
		|| strcasecmp(argv[1], "-powerbuttonenable") == 0)
	{
		return doSetPowerButtonEnable(argc, argv);
	}
	if (strcasecmp(argv[1], "-rtc") == 0)
	{
		return doSetRtc(argc, argv);
	}
	if (strcasecmp(argv[1], "-bint") == 0)
	{
		return doSetButtonInt(argc, argv);
	}
	if (strcasecmp(argv[1], "-bc") == 0 || strcasecmp(argv[1], "-blockharge") == 0)
	{
		return doBlockCharge(argc, argv);
	}
	if (strcasecmp(argv[1], "-buv") == 0)
	{
		return doUndervoltage(argc, argv);
	}
	if (strcasecmp(argv[1], "-chsel") == 0)
	{
		return doChemSel(argc, argv);
	}
	printf("Invalid argument(s)!\n");
	printf("%s\n", usage);
	return FAIL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x1, %edi
jne 0x1777
movq 0x4906(%rip), %rdi      # 0x6070
callq 0x1040
pushq $-0x1
popq %rbx
jmp 0x1a0a
movq %rsi, %r14
movl %edi, %ebx
movq 0x8(%rsi), %r15
leaq 0x1e53(%rip), %rsi      # 0x35da
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x19fe
leaq 0x1e3f(%rip), %rsi      # 0x35dd
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x19fe
leaq 0x2c7a(%rip), %rsi      # 0x442f
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1a40
leaq 0x1e17(%rip), %rsi      # 0x35e3
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1a1b
leaq 0x1e03(%rip), %rsi      # 0x35e6
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1a1b
leaq 0x2be8(%rip), %rsi      # 0x43e2
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1a4e
leaq 0x1d37(%rip), %rsi      # 0x3548
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1a4e
leaq 0x1d28(%rip), %rsi      # 0x3550
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1a84
leaq 0x1d14(%rip), %rsi      # 0x3553
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1a84
leaq 0x1d06(%rip), %rsi      # 0x355c
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1ac8
leaq 0x1cf2(%rip), %rsi      # 0x355f
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1ac8
leaq 0x1cea(%rip), %rsi      # 0x356e
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1b17
leaq 0x1cd8(%rip), %rsi      # 0x3573
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1b17
leaq 0x28eb(%rip), %rsi      # 0x419d
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1b79
leaq 0x1c9e(%rip), %rsi      # 0x3567
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1b79
leaq 0x1ca0(%rip), %rsi      # 0x3580
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1bab
leaq 0x1c8c(%rip), %rsi      # 0x3583
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1bab
leaq 0x1c7a(%rip), %rsi      # 0x3588
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1e7b
leaq 0x1c68(%rip), %rsi      # 0x358d
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1e7b
leaq 0x1c63(%rip), %rsi      # 0x359f
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1ecf
leaq 0x1c51(%rip), %rsi      # 0x35a4
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1ecf
leaq 0x1c4d(%rip), %rsi      # 0x35b7
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x1f22
leaq 0x1c3b(%rip), %rsi      # 0x35bc
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x20b5
leaq 0x1c2a(%rip), %rsi      # 0x35c2
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x2044
leaq 0x1c6b(%rip), %rsi      # 0x361a
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x2044
leaq 0x1c00(%rip), %rsi      # 0x35c6
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x2179
leaq 0x1bee(%rip), %rsi      # 0x35cb
movq %r15, %rdi
callq 0x1030
testl %eax, %eax
je 0x21cf
leaq 0x2a61(%rip), %rdi      # 0x4455
callq 0x1040
jmp 0x1763
movl %ebx, %edi
movq %r14, %rsi
callq 0x11bc
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1bcd(%rip), %rdi      # 0x35ef
leaq 0x1be8(%rip), %rsi      # 0x3611
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x1060
leaq 0x2a31(%rip), %rdi      # 0x446a
callq 0x1040
jmp 0x1a0a
movq 0x4631(%rip), %rdi      # 0x6078
callq 0x1040
jmp 0x1a08
movb $0x0, 0x10(%rsp)
cmpl $0x2, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
testl %eax, %eax
jle 0x176f
movl %eax, %edi
xorl %esi, %esi
movl $0xca, %edx
callq 0x2711
jmp 0x1b10
movb $0x0, 0x10(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
movq 0x10(%r14), %rdi
callq 0x10b0
leal -0xb(%rax), %ecx
cmpl $0xfddc, %ecx           # imm = 0xFDDC
ja 0x1a0a
pushq $0x5
jmp 0x1b06
movb $0x0, 0x10(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
movq 0x10(%r14), %rdi
callq 0x10b0
leal -0x1(%rax), %ecx
cmpl $0xfffe, %ecx           # imm = 0xFFFE
ja 0x1b65
pushq $0x1
popq %rsi
movl %ebp, %edi
movl %eax, %edx
callq 0x2749
movl %eax, %ebx
jmp 0x1a0a
movb $0x0, 0x10(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
movq 0x10(%r14), %rdi
callq 0x10b0
leal -0x3(%rax), %ecx
cmpl $0x28de7c, %ecx         # imm = 0x28DE7C
ja 0x1a0a
pushq $0xe
popq %rsi
movl %ebp, %edi
movl %eax, %edx
callq 0x2782
jmp 0x1b10
testl %eax, %eax
jne 0x1a0a
pushq $0x1
popq %rsi
movl %ebp, %edi
movl $0xfde9, %edx           # imm = 0xFDE9
jmp 0x1b0b
movb $0x0, 0x10(%rsp)
cmpl $0x2, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
testl %eax, %eax
jle 0x176f
pushq $0xb
popq %rsi
movl %eax, %edi
movl $0xbe, %edx
jmp 0x1b0b
movb $0x0, 0xf(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0xf(%rsp), %rsi
callq 0x25d3
testl %eax, %eax
jle 0x176f
movl %eax, %ebp
movq 0x10(%r14), %rbx
leaq 0x1976(%rip), %rsi      # 0x3551
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x1ec8
leaq 0x1962(%rip), %rsi      # 0x3554
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x1ec8
leaq 0x1954(%rip), %rsi      # 0x355d
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x1f1b
leaq 0x1940(%rip), %rsi      # 0x3560
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x1f1b
leaq 0x27ac(%rip), %rsi      # 0x43e3
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x2023
leaq 0x19d8(%rip), %rsi      # 0x3626
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x2023
leaq 0x197f(%rip), %rsi      # 0x35e4
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x2146
leaq 0x19b1(%rip), %rsi      # 0x362d
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x2146
leaq 0x19b2(%rip), %rsi      # 0x3645
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x21c3
leaq 0x1987(%rip), %rsi      # 0x3631
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x21c3
leaq 0x18ae(%rip), %rsi      # 0x356f
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x2270
leaq 0x189c(%rip), %rsi      # 0x3574
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x2270
leaq 0x1947(%rip), %rsi      # 0x3636
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x22af
leaq 0x1933(%rip), %rsi      # 0x3639
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x22af
leaq 0x1922(%rip), %rsi      # 0x363f
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x22c1
leaq 0x190e(%rip), %rsi      # 0x3642
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x22c1
leaq 0x2453(%rip), %rsi      # 0x419e
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x22eb
leaq 0x18e5(%rip), %rsi      # 0x3647
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x22eb
leaq 0x1810(%rip), %rsi      # 0x3589
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x230a
leaq 0x17fe(%rip), %rsi      # 0x358e
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x230a
leaq 0x17f9(%rip), %rsi      # 0x35a0
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x232f
leaq 0x17e7(%rip), %rsi      # 0x35a5
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x232f
leaq 0x1879(%rip), %rsi      # 0x364e
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x235e
leaq 0x1866(%rip), %rsi      # 0x3652
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x235e
leaq 0x17b5(%rip), %rsi      # 0x35b8
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x23be
leaq 0x17a3(%rip), %rsi      # 0x35bd
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x241e
leaq 0x1852(%rip), %rsi      # 0x3683
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x2467
leaq 0x1842(%rip), %rsi      # 0x368a
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x249b
leaq 0x1768(%rip), %rsi      # 0x35c7
movq %rbx, %rdi
callq 0x1030
testl %eax, %eax
je 0x24f6
leaq 0x2621(%rip), %rdi      # 0x4497
jmp 0x176a
movb $0x0, 0x10(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
pushq $0x1b
popq %rsi
movl %eax, %edi
callq 0x2604
testb $-0x10, %al
je 0x1f0f
movq 0x10(%r14), %rdi
callq 0x10b0
xorl %edx, %edx
testl %eax, %eax
sete %dl
pushq $0x1c
jmp 0x203c
pushq $0x7
jmp 0x2148
movb $0x0, 0x10(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
pushq $0x1b
popq %rsi
movl %eax, %edi
callq 0x2604
andl $0xf0, %eax
cmpl $0x10, %eax
ja 0x202a
leaq 0x2744(%rip), %rdi      # 0x465a
jmp 0x1a39
pushq $0x3
jmp 0x2148
movb $0x0, 0xf(%rsp)
cmpl $0x8, %ebx
jne 0x2122
pushq $0x30
popq %rdi
leaq 0xf(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
pushq $0x1b
popq %rsi
movl %eax, %edi
callq 0x2604
andl $0xf0, %eax
cmpl $0x10, %eax
jbe 0x1f0f
movq 0x10(%r14), %rdi
callq 0x10b0
movq %rax, 0x20(%rsp)
movq 0x18(%r14), %rdi
callq 0x10b0
movq %rax, 0x18(%rsp)
movq 0x20(%r14), %rdi
callq 0x10b0
movl %eax, %r12d
movq 0x28(%r14), %rdi
callq 0x10b0
movl %eax, %r13d
movq 0x30(%r14), %rdi
callq 0x10b0
movl %eax, %r15d
movq 0x38(%r14), %rdi
callq 0x10b0
movl $0x7d0, %edx            # imm = 0x7D0
leal (%r12,%rdx), %ecx
cmpl %edx, %r12d
cmovgel %r12d, %ecx
movq 0x20(%rsp), %rdx
movq %rdx, %r8
addl $-0xd, %edx
cmpl $-0xc, %edx
setb %dl
movq 0x18(%rsp), %rsi
movq %rsi, %r9
addl $-0x20, %esi
cmpl $-0x1f, %esi
setb %sil
orb %dl, %sil
leal -0x8d0(%rcx), %edx
cmpl $0xffffff00, %edx       # imm = 0xFFFFFF00
setb %dl
cmpl $0x18, %r13d
setae %dil
orb %sil, %dil
cmpl $0x3c, %r15d
setae %sil
orb %dil, %sil
orb %dl, %sil
cmpl $0x3c, %eax
setae %dl
orb %sil, %dl
cmpb $0x1, %dl
jne 0x2242
leaq 0x2539(%rip), %rdi      # 0x4557
jmp 0x1a39
pushq $0x9
jmp 0x2148
movq 0x10(%r14), %rdi
callq 0x10b0
xorl %edx, %edx
testl %eax, %eax
setg %dl
pushq $0x1d
popq %rsi
movl %ebp, %edi
jmp 0x1a7a
movb $0x0, 0xf(%rsp)
cmpl $0x3, %ebx
jne 0x212e
pushq $0x30
popq %rdi
leaq 0xf(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
pushq $0x1b
popq %rsi
movl %eax, %edi
callq 0x2604
andl $0xf0, %eax
cmpl $0x10, %eax
jbe 0x1f0f
pushq $0x2e
popq %rsi
movl %ebp, %edi
callq 0x2604
cmpl $0x2, %eax
jle 0x1f0f
movq 0x10(%r14), %rdi
callq 0x10b0
cmpl $0x2, %eax
jb 0x227f
leaq 0x257e(%rip), %rdi      # 0x462e
jmp 0x1a39
movb $0x0, 0xf(%rsp)
cmpl $0x3, %ebx
jne 0x213a
pushq $0x30
popq %rdi
leaq 0xf(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
pushq $0x1b
popq %rsi
movl %eax, %edi
callq 0x2604
andl $0xf0, %eax
cmpl $0x10, %eax
jbe 0x1f0f
pushq $0x2e
popq %rsi
movl %ebp, %edi
callq 0x2604
cmpl $0x2, %eax
jle 0x1f0f
movq 0x10(%r14), %rdi
callq 0x10b0
cmpl $0x2, %eax
jb 0x228a
leaq 0x24b0(%rip), %rdi      # 0x45cd
jmp 0x1a39
leaq 0x2464(%rip), %rdi      # 0x458d
jmp 0x176a
leaq 0x254d(%rip), %rdi      # 0x4682
jmp 0x176a
leaq 0x24ba(%rip), %rdi      # 0x45fb
jmp 0x176a
pushq $0xc
popq %rsi
movl %ebp, %edi
callq 0x265e
movl %eax, %ebx
cmpl $-0x1, %ebx
je 0x1a0a
cmpl $-0x2, %ebx
je 0x1a08
leaq 0x14ab(%rip), %rdi      # 0x3616
movl %ebx, %esi
xorl %eax, %eax
callq 0x1060
jmp 0x1a08
movb $0x0, 0x10(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0x10(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
movq 0x10(%r14), %rdi
callq 0x10b0
leal -0x1f5(%rax), %ecx
cmpl $0xdab, %ecx            # imm = 0xDAB
ja 0x22a3
pushq $0x36
jmp 0x1b06
pushq $0x1a
popq %rsi
movl %ebp, %edi
callq 0x2604
jmp 0x2150
movb $0x0, 0xf(%rsp)
cmpl $0x3, %ebx
jne 0x2236
pushq $0x30
popq %rdi
leaq 0xf(%rsp), %rsi
callq 0x25d3
pushq $-0x1
popq %rbx
testl %eax, %eax
jle 0x1a0a
movl %eax, %ebp
pushq $0x32
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movl %eax, %edi
callq 0x285d
testl %eax, %eax
jne 0x1a0a
cmpb $0x0, 0x10(%rsp)
je 0x22d3
movq 0x10(%r14), %rdi
callq 0x10b0
cmpl $0x7, %eax
ja 0x22df
pushq $0x33
popq %rsi
movl %ebp, %edi
movl %eax, %edx
jmp 0x1a7a
leaq 0x2506(%rip), %rdi      # 0x4743
jmp 0x176a
movl %r13d, %r10d
movl %r15d, %r11d
addb $0x30, %cl
leaq 0x10(%rsp), %rdx
movb %cl, (%rdx)
movb %r8b, 0x1(%rdx)
movb %r9b, 0x2(%rdx)
movb %r10b, 0x3(%rdx)
movb %r11b, 0x4(%rdx)
movb %al, 0x5(%rdx)
movb $-0x56, 0x6(%rdx)
pushq $0x25
popq %rsi
pushq $0x7
jmp 0x2296
pushq $0x12
popq %rsi
movl %ebp, %edi
callq 0x26b8
jmp 0x2150
leaq 0x10(%rsp), %rdx
movb %al, (%rdx)
pushq $0x31
jmp 0x2293
leaq 0x10(%rsp), %rdx
movb %al, (%rdx)
pushq $0x30
popq %rsi
pushq $0x1
popq %rcx
movl %ebp, %edi
callq 0x28d4
jmp 0x1b10
leaq 0x2409(%rip), %rdi      # 0x46b3
jmp 0x1a39
cmpb $0x0, 0xf(%rsp)
je 0x2385
pushq $0x18
jmp 0x2148
cmpb $0x0, 0xf(%rsp)
je 0x2385
pushq $0x16
jmp 0x2148
leaq 0x2441(%rip), %rdi      # 0x471b
jmp 0x1a39
leaq 0x2406(%rip), %rdi      # 0x46ec
jmp 0x1a39
cmpb $0x0, 0xf(%rsp)
je 0x2385
pushq $0x1b
popq %rsi
movl %ebp, %edi
callq 0x2604
movl %eax, %ebx
andl $0xf, %ebx
jmp 0x2152
cmpb $0x0, 0xf(%rsp)
je 0x2385
pushq $0x1b
popq %rsi
movl %ebp, %edi
callq 0x2604
testb $-0x10, %al
je 0x2379
pushq $0x1c
popq %rsi
movl %ebp, %edi
callq 0x2604
movl %eax, %ebx
notl %ebx
jmp 0x2356
cmpb $0x0, 0xf(%rsp)
je 0x2385
pushq $0x1b
popq %rsi
movl %ebp, %edi
callq 0x2604
andl $0xf0, %eax
cmpl $0x10, %eax
jbe 0x2379
pushq $0x1d
popq %rsi
movl %ebp, %edi
callq 0x2604
movl %eax, %ebx
andl $0x1, %ebx
jmp 0x2152
cmpb $0x0, 0xf(%rsp)
je 0x2385
pushq $0x1b
popq %rsi
movl %ebp, %edi
callq 0x2604
andl $0xf0, %eax
cmpl $0x10, %eax
ja 0x2391
leaq 0x22da(%rip), %rdi      # 0x465a
jmp 0x176a
leaq 0x21a8(%rip), %rdi      # 0x4534
jmp 0x176a
pushq $0x1e
popq %r14
movl %ebp, %edi
movl %r14d, %esi
callq 0x2604
movl %eax, %ebx
andl $0x1, %ebx
leaq 0x10(%rsp), %rdx
movb $0x0, (%rdx)
pushq $0x1
popq %rcx
movl %ebp, %edi
movl %r14d, %esi
callq 0x28d4
jmp 0x2152
pushq $0x1f
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x6
popq %rcx
movl %ebp, %edi
callq 0x285d
testl %eax, %eax
jne 0x2150
movzbl 0x10(%rsp), %ecx
cmpl $0xa, %ecx
setb %sil
movb 0x11(%rsp), %al
movb 0x12(%rsp), %dl
leal -0xd(%rax), %edi
cmpb $-0xc, %dil
setb %dil
orb %sil, %dil
leal -0x20(%rdx), %esi
cmpb $-0x1f, %sil
setb %sil
orb %dil, %sil
cmpb $0x1, %sil
jne 0x24c3
leaq 0x20f1(%rip), %rdi      # 0x450a
jmp 0x176a
pushq $0x2e
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movl %ebp, %edi
callq 0x285d
testl %eax, %eax
jne 0x2150
cmpb $0x3, 0x10(%rsp)
jb 0x2517
pushq $0x30
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movl %ebp, %edi
callq 0x285d
testl %eax, %eax
jne 0x2150
movzbl 0x10(%rsp), %ebx
jmp 0x2152
pushq $0x2e
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x2
popq %rcx
movl %ebp, %edi
callq 0x285d
testl %eax, %eax
jne 0x2150
movzbl 0x10(%rsp), %esi
cmpl $0x3, %esi
jae 0x252a
leaq 0x2022(%rip), %rdi      # 0x44b8
jmp 0x251e
pushq $0x2e
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movl %ebp, %edi
callq 0x285d
testl %eax, %eax
jne 0x2150
cmpb $0x5, 0x10(%rsp)
jb 0x2517
pushq $0x34
jmp 0x2544
movzbl %al, %esi
movzbl %dl, %edx
addl $0x7d0, %ecx            # imm = 0x7D0
movzbl 0x13(%rsp), %r8d
movzbl 0x14(%rsp), %r9d
movzbl 0x15(%rsp), %eax
movl %eax, (%rsp)
leaq 0x117a(%rip), %rdi      # 0x3664
xorl %eax, %eax
callq 0x1060
jmp 0x1a08
pushq $0x2e
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x1
popq %rcx
movl %ebp, %edi
callq 0x285d
testl %eax, %eax
jne 0x2150
cmpb $0x5, 0x10(%rsp)
jae 0x2542
leaq 0x1fc3(%rip), %rdi      # 0x44e1
callq 0x1040
xorl %ebx, %ebx
jmp 0x2164
leaq 0x1155(%rip), %rdi      # 0x3686
xorl %eax, %eax
callq 0x1060
movzbl 0x11(%rsp), %ebx
jmp 0x2152
pushq $0x36
popq %rsi
leaq 0x10(%rsp), %rdx
pushq $0x2
popq %rcx
movl %ebp, %edi
callq 0x285d
testl %eax, %eax
jne 0x2150
movzwl 0x10(%rsp), %ebx
jmp 0x2152
nop