// File: /workspace/github_c_makefile_star2_O0/SequentMicrosystems[P]wdt-rpi/src/wdt.c
// Function: doGet
static int doGet(int argc, char *argv[])
{
	int dev = 0;
	int val = 0;
	u8 bType = 0;
	uint8_t buff[8];

	if (argc != 3)
	{
		printf("Invalid number of arguments\n");
		return FAIL;
	}

	dev = doBoardInit(WDT_HW_ADD, &bType);
	if (dev <= 0)
	{
		return FAIL;
	}

	if (strcasecmp(argv[2], "d") == 0 || strcasecmp(argv[2], "default") == 0)
	{
		val = readReg16(dev, I2C_WDT_INIT_INTERVAL_GET_ADD);
	}
	else if (strcasecmp(argv[2], "p") == 0 || strcasecmp(argv[2], "period") == 0)
	{
		val = readReg16(dev, I2C_WDT_INTERVAL_GET_ADD);
	}
	else if (strcasecmp(argv[2], "r") == 0 || strcasecmp(argv[2], "resets") == 0)
	{
		val = readReg16(dev, I2C_WDT_RESET_COUNT_ADD);
	}
	else if (strcasecmp(argv[2], "v") == 0 || strcasecmp(argv[2], "vin") == 0)
	{
		val = readReg16(dev, I2C_5V_IN_ADD);
	}
	else if (strcasecmp(argv[2], "t") == 0 || strcasecmp(argv[2], "temp") == 0)
	{
		val = readReg8(dev, I2C_TEMP_ADD);
	}
	else if (strcasecmp(argv[2], "off") == 0
		|| strcasecmp(argv[2], "offinterval") == 0)
	{
		val = readReg32(dev, I2C_POWER_OFF_INTERVAL_GET_ADD);
	}
	else if (strcasecmp(argv[2], "vr") == 0 || strcasecmp(argv[2], "vrasp") == 0)
	{
		if (BOARD_TYPE_WDT == bType)
		{
			printf("Available for super-watchdog only!\n");
			return FAIL;
		}
		val = readReg16(dev, I2C_5V_OUT_ADD);
	}
	else if (strcasecmp(argv[2], "vb") == 0 || strcasecmp(argv[2], "vbat") == 0)
	{
		if (BOARD_TYPE_WDT == bType)
		{
			printf("Available for super-watchdog only!\n");
			return FAIL;
		}
		val = readReg16(dev, I2C_VBAT_ADD);
	}
	else if (strcasecmp(argv[2], "t") == 0 || strcasecmp(argv[2], "temp") == 0)
	{
		if (BOARD_TYPE_WDT == bType)
		{
			printf("Available for super-watchdog only!\n");
			return FAIL;
		}
		val = readReg8(dev, I2C_TEMP_ADD);
	}
	else if (strcasecmp(argv[2], "c") == 0 || strcasecmp(argv[2], "charge") == 0)
	{
		if (BOARD_TYPE_WDT == bType)
		{
			printf("Available for super-watchdog only!\n");
			return FAIL;
		}
		val = 0x0f & readReg8(dev, I2C_CHARGE_STAT_ADD);
	}
	else if (strcasecmp(argv[2], "rob") == 0
		|| strcasecmp(argv[2], "repoweronbattery") == 0)
	{
		if (BOARD_TYPE_WDT == bType)
		{
			printf("Available for super-watchdog only!\n");
			return FAIL;
		}
		val = readReg8(dev, I2C_CHARGE_STAT_ADD);
		if ( (val & 0xf0) == 0)
		{
			printf("Not available on this firmware version!\n");
			return FAIL;
		}
		val = 0x01 & (~readReg8(dev, I2C_POWER_OFF_ON_BATTERY_ADD));
		return val;
	}
	else if (strcasecmp(argv[2], "pbe") == 0
		|| strcasecmp(argv[2], "powerbuttonenable") == 0)
	{
		if (BOARD_TYPE_WDT == bType)
		{
			printf("Available for super-watchdog only!\n");
			return FAIL;
		}
		val = readReg8(dev, I2C_CHARGE_STAT_ADD);
		if ( (val & 0xf0) <= 0x10)
		{
			printf("Not available on this firmware version!\n");
			return FAIL;
		}
		val = 0x01 & (readReg8(dev, I2C_POWER_SW_USAGE_ADD));
		return val;
	}
	else if (strcasecmp(argv[2], "pbs") == 0
		|| strcasecmp(argv[2], "powerbuttonstatus") == 0)
	{
		if (BOARD_TYPE_WDT == bType)
		{
			printf("Available for super-watchdog only!\n");
			return FAIL;
		}
		val = readReg8(dev, I2C_CHARGE_STAT_ADD);
		if ( (val & 0xf0) <= 0x10)
		{
			printf("Not available on this firmware version!\n");
			return FAIL;
		}
		val = 0x01 & (readReg8(dev, I2C_POWER_SW_STATUS_ADD));
		buff[0] = 0;
		writeBuff(dev, I2C_POWER_SW_STATUS_ADD, buff, 1);
		return val;
	}
	else if (strcasecmp(argv[2], "rtc") == 0)
	{
		val = readBuff(dev, I2C_RTC_YEAR_ADD, buff, 6);
		if (OK == val)
		{
			if(buff[0] < 10 || buff[1] > 12 || buff[1] == 0|| buff[2] > 31 || buff[2] == 0)
			{
				printf("RTC not present for this hardware version\n");
				return FAIL;
			}
			else
			{
			printf("%02d/%02d/%02d %02d:%02d:%02d\n", buff[1], buff[2],
				buff[0] + 2000, buff[3], buff[4], buff[5]);
			}
			return NO_PRINT;
		}
	}
	else if (strcasecmp(argv[2], "bint") == 0)
	{
		val = readBuff(dev, I2C_MEM_REVISION_MAJOR_ADD, buff, 1);
		if (OK == val)
		{
			if (buff[0] < 3)
			{
				printf("Not available for this firmware version!\n");

			}
			else
			{
				val = readBuff(dev, I2C_POWER_SW_INT_OUT, buff, 1);
				if (OK == val)
				{
					val = buff[0];
				}
			}
		}
	}
	else if (strcasecmp(argv[2], "fv") == 0)
	{
		val = readBuff(dev, I2C_MEM_REVISION_MAJOR_ADD, buff, 2);
		if (OK == val)
		{
			if (buff[0] < 3)
			{
				printf("Not available for this hardware version!\n");

			}
			else
			{
				printf ("%d.",(int)buff[0]);
				val = buff[1];
			}
		}
	}
	else if (strcasecmp(argv[2], "ecv") == 0)
	{
		val = readBuff(dev, I2C_MEM_REVISION_MAJOR_ADD, buff, 1);
		if (OK == val)
		{
			if (buff[0] < 5)
			{
				printf("Not available for this firmware version!\n");

			}
			else
			{
				val = readBuff(dev, I2C_CHARGE_END_MV, buff, 2);
				if (OK == val)
				{
					memcpy(&val, buff, 2);
				}
			}
		}
	}
	else if (strcasecmp(argv[2], "buv") == 0)
	{
		val = readBuff(dev, I2C_MEM_REVISION_MAJOR_ADD, buff, 1);
		if (OK == val)
		{
			if (buff[0] < 5)
			{
				printf("Not available for this firmware version!\n");

			}
			else
			{
				val = readBuff(dev, I2C_BATTERY_UVLO, buff, 2);
				if (OK == val)
				{
					memcpy(&val, buff, 2);
				}
			}
		}
	}
	else
	{
		printf("Invalid  option for -get command\n");
		return FAIL;
	}
	return val;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
cmpl $0x3, -0x8(%rbp)
je 0x2101
leaq 0x339c(%rip), %rdi      # 0x548a
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl $0x30, %edi
leaq -0x19(%rbp), %rsi
callq 0x31b0
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x14(%rbp)
jg 0x2124
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x24fb(%rip), %rsi      # 0x462e
callq 0x1030
cmpl $0x0, %eax
je 0x2156
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x24e5(%rip), %rsi      # 0x4631
callq 0x1030
cmpl $0x0, %eax
jne 0x216b
movl -0x14(%rbp), %edi
movl $0x7, %esi
callq 0x32b0
movl %eax, -0x18(%rbp)
jmp 0x2999
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x25b0(%rip), %rsi      # 0x472a
callq 0x1030
cmpl $0x0, %eax
je 0x219d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x259a(%rip), %rsi      # 0x472d
callq 0x1030
cmpl $0x0, %eax
jne 0x21b2
movl -0x14(%rbp), %edi
movl $0x3, %esi
callq 0x32b0
movl %eax, -0x18(%rbp)
jmp 0x2997
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x23f0(%rip), %rsi      # 0x45b1
callq 0x1030
cmpl $0x0, %eax
je 0x21e4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x32cd(%rip), %rsi      # 0x54a7
callq 0x1030
cmpl $0x0, %eax
jne 0x21f9
movl -0x14(%rbp), %edi
movl $0x9, %esi
callq 0x32b0
movl %eax, -0x18(%rbp)
jmp 0x2995
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x31fc(%rip), %rsi      # 0x5404
callq 0x1030
cmpl $0x0, %eax
je 0x222b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x328d(%rip), %rsi      # 0x54ae
callq 0x1030
cmpl $0x0, %eax
jne 0x2240
movl -0x14(%rbp), %edi
movl $0xc, %esi
callq 0x32b0
movl %eax, -0x18(%rbp)
jmp 0x2993
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x329b(%rip), %rsi      # 0x54ea
callq 0x1030
cmpl $0x0, %eax
je 0x2272
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x324a(%rip), %rsi      # 0x54b2
callq 0x1030
cmpl $0x0, %eax
jne 0x2287
movl -0x14(%rbp), %edi
movl $0x1a, %esi
callq 0x3220
movl %eax, -0x18(%rbp)
jmp 0x2991
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x25ef(%rip), %rsi      # 0x4885
callq 0x1030
cmpl $0x0, %eax
je 0x22b9
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x25db(%rip), %rsi      # 0x488a
callq 0x1030
cmpl $0x0, %eax
jne 0x22ce
movl -0x14(%rbp), %edi
movl $0x12, %esi
callq 0x3350
movl %eax, -0x18(%rbp)
jmp 0x298f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x31da(%rip), %rsi      # 0x54b7
callq 0x1030
cmpl $0x0, %eax
je 0x2300
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x31c4(%rip), %rsi      # 0x54ba
callq 0x1030
cmpl $0x0, %eax
jne 0x2339
movzbl -0x19(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x2324
leaq 0x31af(%rip), %rdi      # 0x54c0
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x18, %esi
callq 0x32b0
movl %eax, -0x18(%rbp)
jmp 0x298d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x319c(%rip), %rsi      # 0x54e4
callq 0x1030
cmpl $0x0, %eax
je 0x236b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x3186(%rip), %rsi      # 0x54e7
callq 0x1030
cmpl $0x0, %eax
jne 0x23a4
movzbl -0x19(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x238f
leaq 0x3144(%rip), %rdi      # 0x54c0
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x16, %esi
callq 0x32b0
movl %eax, -0x18(%rbp)
jmp 0x298b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x3137(%rip), %rsi      # 0x54ea
callq 0x1030
cmpl $0x0, %eax
je 0x23d6
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x30e6(%rip), %rsi      # 0x54b2
callq 0x1030
cmpl $0x0, %eax
jne 0x240f
movzbl -0x19(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x23fa
leaq 0x30d9(%rip), %rdi      # 0x54c0
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1a, %esi
callq 0x3220
movl %eax, -0x18(%rbp)
jmp 0x2989
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2408(%rip), %rsi      # 0x4826
callq 0x1030
cmpl $0x0, %eax
je 0x2441
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x30b5(%rip), %rsi      # 0x54ec
callq 0x1030
cmpl $0x0, %eax
jne 0x247d
movzbl -0x19(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x2465
leaq 0x306e(%rip), %rdi      # 0x54c0
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1b, %esi
callq 0x3220
andl $0xf, %eax
movl %eax, -0x18(%rbp)
jmp 0x2987
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x29a7(%rip), %rsi      # 0x4e33
callq 0x1030
cmpl $0x0, %eax
je 0x24af
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2993(%rip), %rsi      # 0x4e38
callq 0x1030
cmpl $0x0, %eax
jne 0x252b
movzbl -0x19(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x24d3
leaq 0x3000(%rip), %rdi      # 0x54c0
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1b, %esi
callq 0x3220
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0xf0, %eax
cmpl $0x0, %eax
jne 0x250a
leaq 0x2ffc(%rip), %rdi      # 0x54f3
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1c, %esi
callq 0x3220
xorl $-0x1, %eax
andl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x299f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2a15(%rip), %rsi      # 0x4f4f
callq 0x1030
cmpl $0x0, %eax
je 0x255d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2a01(%rip), %rsi      # 0x4f54
callq 0x1030
cmpl $0x0, %eax
jne 0x25d6
movzbl -0x19(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x2581
leaq 0x2f52(%rip), %rdi      # 0x54c0
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1b, %esi
callq 0x3220
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0xf0, %eax
cmpl $0x10, %eax
jg 0x25b8
leaq 0x2f4e(%rip), %rdi      # 0x54f3
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1d, %esi
callq 0x3220
andl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x299f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2f37(%rip), %rsi      # 0x551c
callq 0x1030
cmpl $0x0, %eax
je 0x260c
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2f22(%rip), %rsi      # 0x5520
callq 0x1030
cmpl $0x0, %eax
jne 0x269f
movzbl -0x19(%rbp), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x2630
leaq 0x2ea3(%rip), %rdi      # 0x54c0
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1b, %esi
callq 0x3220
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0xf0, %eax
cmpl $0x10, %eax
jg 0x2667
leaq 0x2e9f(%rip), %rdi      # 0x54f3
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movl -0x14(%rbp), %edi
movl $0x1e, %esi
callq 0x3220
andl $0x1, %eax
movl %eax, -0x18(%rbp)
movb $0x0, -0x21(%rbp)
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x1e, %esi
movl $0x1, %ecx
callq 0x36f0
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x299f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x299f(%rip), %rsi      # 0x504d
callq 0x1030
cmpl $0x0, %eax
jne 0x2769
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x1f, %esi
movl $0x6, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x2764
movzbl -0x21(%rbp), %eax
cmpl $0xa, %eax
jl 0x270d
movzbl -0x20(%rbp), %eax
cmpl $0xc, %eax
jg 0x270d
movzbl -0x20(%rbp), %eax
cmpl $0x0, %eax
je 0x270d
movzbl -0x1f(%rbp), %eax
cmpl $0x1f, %eax
jg 0x270d
movzbl -0x1f(%rbp), %eax
cmpl $0x0, %eax
jne 0x2727
leaq 0x2e1e(%rip), %rdi      # 0x5532
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
movzbl -0x20(%rbp), %esi
movzbl -0x1f(%rbp), %edx
movzbl -0x21(%rbp), %ecx
addl $0x7d0, %ecx            # imm = 0x7D0
movzbl -0x1e(%rbp), %r8d
movzbl -0x1d(%rbp), %r9d
movzbl -0x1c(%rbp), %eax
leaq 0x2e0f(%rip), %rdi      # 0x555d
movl %eax, (%rsp)
movb $0x0, %al
callq 0x1050
movl $0xfffffffe, -0x4(%rbp) # imm = 0xFFFFFFFE
jmp 0x299f
jmp 0x297f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x29a0(%rip), %rsi      # 0x5118
callq 0x1030
cmpl $0x0, %eax
jne 0x27eb
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x2e, %esi
movl $0x1, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x27e6
movzbl -0x21(%rbp), %eax
cmpl $0x3, %eax
jge 0x27bb
leaq 0x2dca(%rip), %rdi      # 0x557c
movb $0x0, %al
callq 0x1050
jmp 0x27e4
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x30, %esi
movl $0x1, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x27e2
movzbl -0x21(%rbp), %eax
movl %eax, -0x18(%rbp)
jmp 0x27e4
jmp 0x27e6
jmp 0x297d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2dac(%rip), %rsi      # 0x55a6
callq 0x1030
cmpl $0x0, %eax
jne 0x285d
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x2e, %esi
movl $0x2, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x2858
movzbl -0x21(%rbp), %eax
cmpl $0x3, %eax
jge 0x283d
leaq 0x2d75(%rip), %rdi      # 0x55a9
movb $0x0, %al
callq 0x1050
jmp 0x2856
movzbl -0x21(%rbp), %esi
leaq 0x2d8b(%rip), %rdi      # 0x55d3
movb $0x0, %al
callq 0x1050
movzbl -0x20(%rbp), %eax
movl %eax, -0x18(%rbp)
jmp 0x2858
jmp 0x297b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2d6b(%rip), %rsi      # 0x55d7
callq 0x1030
cmpl $0x0, %eax
jne 0x28e0
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x2e, %esi
movl $0x1, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x28db
movzbl -0x21(%rbp), %eax
cmpl $0x5, %eax
jge 0x28af
leaq 0x2cd6(%rip), %rdi      # 0x557c
movb $0x0, %al
callq 0x1050
jmp 0x28d9
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x34, %esi
movl $0x2, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x28d7
movw -0x21(%rbp), %ax
movw %ax, -0x18(%rbp)
jmp 0x28d9
jmp 0x28db
jmp 0x2979
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x2950(%rip), %rsi      # 0x523f
callq 0x1030
cmpl $0x0, %eax
jne 0x2960
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x2e, %esi
movl $0x1, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x295e
movzbl -0x21(%rbp), %eax
cmpl $0x5, %eax
jge 0x2932
leaq 0x2c53(%rip), %rdi      # 0x557c
movb $0x0, %al
callq 0x1050
jmp 0x295c
movl -0x14(%rbp), %edi
leaq -0x21(%rbp), %rdx
movl $0x36, %esi
movl $0x2, %ecx
callq 0x3640
movl %eax, -0x18(%rbp)
xorl %eax, %eax
cmpl -0x18(%rbp), %eax
jne 0x295a
movw -0x21(%rbp), %ax
movw %ax, -0x18(%rbp)
jmp 0x295c
jmp 0x295e
jmp 0x2977
leaq 0x2c74(%rip), %rdi      # 0x55db
movb $0x0, %al
callq 0x1050
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x299f
jmp 0x2979
jmp 0x297b
jmp 0x297d
jmp 0x297f
jmp 0x2981
jmp 0x2983
jmp 0x2985
jmp 0x2987
jmp 0x2989
jmp 0x298b
jmp 0x298d
jmp 0x298f
jmp 0x2991
jmp 0x2993
jmp 0x2995
jmp 0x2997
jmp 0x2999
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)