// File: /workspace/github_c_makefile_star2_O0/open-mesh-mirror[P]batmand/linux/route.c
// Function: add_del_route
void add_del_route(uint32_t dest, uint8_t netmask, uint32_t router, uint32_t src_ip, int32_t ifi, const char *dev, uint8_t rt_table, int8_t route_type, int8_t route_action)
{
	int netlink_sock;
	size_t len;
	uint32_t my_router;
	char buf[4096], str1[16], str2[16], str3[16];
	struct rtattr *rta;
	struct sockaddr_nl nladdr;
	struct iovec iov;
	struct msghdr msg;
	struct nlmsghdr *nh;
	struct req_s {
		struct rtmsg rtm;
		char buff[4 * (sizeof(struct rtattr) + 4)];
	} *req;
	char req_buf[NLMSG_LENGTH(sizeof(struct req_s))] ALIGN_WORD;

	iov.iov_base = buf;
	iov.iov_len  = sizeof(buf);

	inet_ntop(AF_INET, &dest, str1, sizeof(str1));
	inet_ntop(AF_INET, &router, str2, sizeof(str2));
	inet_ntop(AF_INET, &src_ip, str3, sizeof(str3));

	if (policy_routing_script != NULL) {
		dprintf(policy_routing_pipe, "ROUTE %s %s %s %i %s %s %i %s %i\n", (route_action == ROUTE_DEL ? "del" : "add"), route_type_to_string_script[route_type], str1, netmask, str2, str3, ifi, dev, rt_table);
		return;
	}

	/* adding default route */
	if ((router == dest) && (dest == 0)) {

		if (route_type != ROUTE_TYPE_UNREACHABLE) {
			debug_output(3, "%s default route via %s (table %i)\n", (route_action == ROUTE_DEL ? "Deleting" : "Adding"), dev, rt_table);
			debug_output(4, "%s default route via %s (table %i)\n", (route_action == ROUTE_DEL ? "Deleting" : "Adding"), dev, rt_table);
		}

		my_router = router;

	/* single hop neigbor */
	} else if ((router == dest) && (dest != 0)) {

		debug_output(3, "%s route to %s via 0.0.0.0 (table %i - %s)\n", (route_action == ROUTE_DEL ? "Deleting" : "Adding"), str1, rt_table, dev);
		debug_output(4, "%s route to %s via 0.0.0.0 (table %i - %s)\n", (route_action == ROUTE_DEL ? "Deleting" : "Adding"), str1, rt_table, dev);
		my_router = 0;

	/* multihop neighbor */
	} else {

		debug_output(3, "%s %s to %s/%i via %s (table %i - %s)\n", (route_action == ROUTE_DEL ? "Deleting" : "Adding"), route_type_to_string[route_type], str1, netmask, str2, rt_table, dev);
		debug_output(4, "%s %s to %s/%i via %s (table %i - %s)\n", (route_action == ROUTE_DEL ? "Deleting" : "Adding"), route_type_to_string[route_type], str1, netmask, str2, rt_table, dev);
		my_router = router;

	}


	nh = (struct nlmsghdr *)req_buf;
	req = (struct req_s*)NLMSG_DATA(req_buf);
	memset(&nladdr, 0, sizeof(struct sockaddr_nl));
	memset(req_buf, 0, NLMSG_LENGTH(sizeof(struct req_s)));
	memset(&msg, 0, sizeof(struct msghdr));

	nladdr.nl_family = AF_NETLINK;

	len = sizeof(struct rtmsg) + sizeof(struct rtattr) + 4;

	/* additional information for the outgoing interface and the gateway */
	if (route_type == ROUTE_TYPE_UNICAST)
		len += 2 * (sizeof(struct rtattr) + 4);

	if (src_ip != 0)
		len += sizeof(struct rtattr) + 4;

	nh->nlmsg_len = NLMSG_LENGTH(len);
	nh->nlmsg_pid = getpid();
	req->rtm.rtm_family = AF_INET;
	req->rtm.rtm_table = rt_table;
	req->rtm.rtm_dst_len = netmask;

	if (route_action == ROUTE_DEL) {

		nh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
		nh->nlmsg_type = RTM_DELROUTE;
		req->rtm.rtm_scope = RT_SCOPE_NOWHERE;

	} else {

		nh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_CREATE | NLM_F_APPEND;
		nh->nlmsg_type = RTM_NEWROUTE;

		if (route_type == ROUTE_TYPE_UNICAST && my_router == 0 && src_ip != 0)
			req->rtm.rtm_scope = RT_SCOPE_LINK;
		else
			req->rtm.rtm_scope = RT_SCOPE_UNIVERSE;

		req->rtm.rtm_protocol = RTPROT_STATIC; /* may be changed to some batman specific value - see <linux/rtnetlink.h> */

		switch(route_type) {
		case ROUTE_TYPE_UNICAST:
			req->rtm.rtm_type = RTN_UNICAST;
			break;
		case ROUTE_TYPE_THROW:
			req->rtm.rtm_type = RTN_THROW;
			break;
		case ROUTE_TYPE_UNREACHABLE:
			req->rtm.rtm_type = RTN_UNREACHABLE;
			break;
		default:
			debug_output(0, "Error - unknown route type (add_del_route): %i\n", route_type);
			return;
		}
	}

	rta = (struct rtattr *)req->buff;
	rta->rta_type = RTA_DST;
	rta->rta_len = sizeof(struct rtattr) + 4;
	memcpy(((char *)req->buff) + sizeof(struct rtattr), (char *)&dest, 4);

	if (route_type == ROUTE_TYPE_UNICAST) {

		rta = (struct rtattr *)(req->buff + sizeof(struct rtattr) + 4);
		rta->rta_type = RTA_GATEWAY;
		rta->rta_len = sizeof(struct rtattr) + 4;
		memcpy(((char *)req->buff) + 2 * sizeof(struct rtattr) + 4, (char *)&my_router, 4);

		rta = (struct rtattr *)(req->buff + 2 * sizeof(struct rtattr) + 8);
		rta->rta_type = RTA_OIF;
		rta->rta_len = sizeof(struct rtattr) + 4;
		memcpy(((char *)req->buff) + 3 * sizeof(struct rtattr) + 8, (char *)&ifi, 4);

		if (src_ip != 0) {
			rta = (struct rtattr *)(req->buff + 3 * sizeof(struct rtattr) + 12);
			rta->rta_type = RTA_PREFSRC;
			rta->rta_len = sizeof(struct rtattr) + 4;
			memcpy(((char *)req->buff) + 4 * sizeof(struct rtattr) + 12, (char *)&src_ip, 4);
		}

	}

	if ((netlink_sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE)) < 0) {

		debug_output(0, "Error - can't create netlink socket for routing table manipulation: %s\n", strerror(errno));
		return;

	}

	if (sendto(netlink_sock, req_buf, nh->nlmsg_len, 0, (struct sockaddr *)&nladdr, sizeof(struct sockaddr_nl)) < 0) {

		debug_output(0, "Error - can't send message to kernel via netlink socket for routing table manipulation: %s\n", strerror(errno));
		close(netlink_sock);
		return;

	}


	msg.msg_name = (void *)&nladdr;
	msg.msg_namelen = sizeof(nladdr);
	msg.msg_iov = &iov;
	msg.msg_iovlen = 1;
	msg.msg_control = NULL;

	len = recvmsg(netlink_sock, &msg, 0);
	nh = (struct nlmsghdr *)buf;

	while (NLMSG_OK(nh, len)) {

		if (nh->nlmsg_type == NLMSG_DONE)
			break;

		if (( nh->nlmsg_type == NLMSG_ERROR) && (((struct nlmsgerr*)NLMSG_DATA(nh))->error != 0))
			debug_output(0, "Error - can't %s %s to %s/%i via %s (table %i): %s\n", (route_action == ROUTE_DEL ? "delete" : "add"), route_type_to_string[route_type], str1, netmask, str2, rt_table, strerror(-((struct nlmsgerr*)NLMSG_DATA(nh))->error));

		nh = NLMSG_NEXT(nh, len);

	}

	close(netlink_sock);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1190, %rsp           # imm = 0x1190
movb %sil, %al
movb 0x20(%rbp), %sil
movb 0x18(%rbp), %sil
movb 0x10(%rbp), %sil
movl %edi, -0x14(%rbp)
movb %al, -0x15(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
leaq -0x1050(%rbp), %rax
movq %rax, -0x10a8(%rbp)
movq $0x1000, -0x10a0(%rbp) # imm = 0x1000
leaq -0x1060(%rbp), %rdx
movl $0x2, %edi
leaq -0x14(%rbp), %rsi
movl $0x10, %ecx
callq 0x2030
leaq -0x1070(%rbp), %rdx
movl $0x2, %edi
leaq -0x1c(%rbp), %rsi
movl $0x10, %ecx
callq 0x2030
leaq -0x1080(%rbp), %rdx
movl $0x2, %edi
leaq -0x20(%rbp), %rsi
movl $0x10, %ecx
callq 0x2030
leaq 0x10eb9(%rip), %rax     # 0x1b378
cmpq $0x0, (%rax)
je 0xa54b
leaq 0x10eb0(%rip), %rax     # 0x1b380
movl (%rax), %edi
movsbl 0x20(%rbp), %ecx
leaq 0xb9a2(%rip), %rdx      # 0x15e7f
leaq 0xb997(%rip), %rax      # 0x15e7b
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movsbq 0x18(%rbp), %rcx
leaq 0x10dc9(%rip), %rax     # 0x1b2c0
movq (%rax,%rcx,8), %rcx
leaq -0x1060(%rbp), %r8
movzbl -0x15(%rbp), %r9d
leaq -0x1070(%rbp), %r14
leaq -0x1080(%rbp), %rbx
movl -0x24(%rbp), %r11d
movq -0x30(%rbp), %r10
movzbl 0x10(%rbp), %eax
leaq 0xb931(%rip), %rsi      # 0x15e59
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movb $0x0, %al
callq 0x2220
jmp 0xacbf
movl -0x1c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jne 0xa5db
cmpl $0x0, -0x14(%rbp)
jne 0xa5db
movsbl 0x18(%rbp), %eax
cmpl $0x2, %eax
je 0xa5d0
movsbl 0x20(%rbp), %ecx
leaq 0xb93f(%rip), %rdx      # 0x15eb0
leaq 0xb92f(%rip), %rax      # 0x15ea7
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movq -0x30(%rbp), %rcx
movzbl 0x10(%rbp), %r8d
movl $0x3, %edi
leaq 0xb8ef(%rip), %rsi      # 0x15e83
movb $0x0, %al
callq 0x123f0
movsbl 0x20(%rbp), %ecx
leaq 0xb90a(%rip), %rdx      # 0x15eb0
leaq 0xb8fa(%rip), %rax      # 0x15ea7
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movq -0x30(%rbp), %rcx
movzbl 0x10(%rbp), %r8d
movl $0x4, %edi
leaq 0xb8ba(%rip), %rsi      # 0x15e83
movb $0x0, %al
callq 0x123f0
movl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0xa749
movl -0x1c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jne 0xa675
cmpl $0x0, -0x14(%rbp)
je 0xa675
movsbl 0x20(%rbp), %ecx
leaq 0xb8b4(%rip), %rdx      # 0x15eb0
leaq 0xb8a4(%rip), %rax      # 0x15ea7
cmpl $0x1, %ecx
cmoveq %rax, %rdx
leaq -0x1060(%rbp), %rcx
movzbl 0x10(%rbp), %r8d
movq -0x30(%rbp), %r9
movl $0x3, %edi
leaq 0xb891(%rip), %rsi      # 0x15eb7
movb $0x0, %al
callq 0x123f0
movsbl 0x20(%rbp), %ecx
leaq 0xb878(%rip), %rdx      # 0x15eb0
leaq 0xb868(%rip), %rax      # 0x15ea7
cmpl $0x1, %ecx
cmoveq %rax, %rdx
leaq -0x1060(%rbp), %rcx
movzbl 0x10(%rbp), %r8d
movq -0x30(%rbp), %r9
movl $0x4, %edi
leaq 0xb855(%rip), %rsi      # 0x15eb7
movb $0x0, %al
callq 0x123f0
movl $0x0, -0x44(%rbp)
jmp 0xa747
movsbl 0x20(%rbp), %ecx
leaq 0xb830(%rip), %rdx      # 0x15eb0
leaq 0xb820(%rip), %rax      # 0x15ea7
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movsbq 0x18(%rbp), %rcx
leaq 0x10c46(%rip), %rax     # 0x1b2e0
movq (%rax,%rcx,8), %rcx
leaq -0x1060(%rbp), %r8
movzbl -0x15(%rbp), %r9d
leaq -0x1070(%rbp), %r11
movzbl 0x10(%rbp), %r10d
movq -0x30(%rbp), %rax
movl $0x3, %edi
leaq 0xb81d(%rip), %rsi      # 0x15ee3
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x123f0
movsbl 0x20(%rbp), %ecx
leaq 0xb7ca(%rip), %rdx      # 0x15eb0
leaq 0xb7ba(%rip), %rax      # 0x15ea7
cmpl $0x1, %ecx
cmoveq %rax, %rdx
movsbq 0x18(%rbp), %rcx
leaq 0x10be0(%rip), %rax     # 0x1b2e0
movq (%rax,%rcx,8), %rcx
leaq -0x1060(%rbp), %r8
movzbl -0x15(%rbp), %r9d
leaq -0x1070(%rbp), %r11
movzbl 0x10(%rbp), %r10d
movq -0x30(%rbp), %rax
movl $0x4, %edi
leaq 0xb7b7(%rip), %rsi      # 0x15ee3
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x123f0
movl -0x1c(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0xa749
leaq -0x1130(%rbp), %rax
movq %rax, -0x10e8(%rbp)
leaq -0x1130(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x10f0(%rbp)
leaq -0x1094(%rbp), %rdi
xorl %esi, %esi
movl $0xc, %edx
callq 0x21e0
leaq -0x1130(%rbp), %rdi
xorl %esi, %esi
movl $0x3c, %edx
callq 0x21e0
leaq -0x10e0(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x21e0
movw $0x10, -0x1094(%rbp)
movq $0x14, -0x40(%rbp)
movsbl 0x18(%rbp), %eax
cmpl $0x0, %eax
jne 0xa7c8
movq -0x40(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0xa7da
movq -0x40(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
addq $0x10, %rax
movl %eax, %ecx
movq -0x10e8(%rbp), %rax
movl %ecx, (%rax)
callq 0x2100
movl %eax, %ecx
movq -0x10e8(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x10f0(%rbp), %rax
movb $0x2, (%rax)
movb 0x10(%rbp), %cl
movq -0x10f0(%rbp), %rax
movb %cl, 0x4(%rax)
movb -0x15(%rbp), %cl
movq -0x10f0(%rbp), %rax
movb %cl, 0x1(%rax)
movsbl 0x20(%rbp), %eax
cmpl $0x1, %eax
jne 0xa855
movq -0x10e8(%rbp), %rax
movw $0x5, 0x6(%rax)
movq -0x10e8(%rbp), %rax
movw $0x19, 0x4(%rax)
movq -0x10f0(%rbp), %rax
movb $-0x1, 0x6(%rax)
jmp 0xa913
movq -0x10e8(%rbp), %rax
movw $0xc05, 0x6(%rax)       # imm = 0xC05
movq -0x10e8(%rbp), %rax
movw $0x18, 0x4(%rax)
movsbl 0x18(%rbp), %eax
cmpl $0x0, %eax
jne 0xa891
cmpl $0x0, -0x44(%rbp)
jne 0xa891
cmpl $0x0, -0x20(%rbp)
je 0xa891
movq -0x10f0(%rbp), %rax
movb $-0x3, 0x6(%rax)
jmp 0xa89c
movq -0x10f0(%rbp), %rax
movb $0x0, 0x6(%rax)
movq -0x10f0(%rbp), %rax
movb $0x4, 0x5(%rax)
movsbl 0x18(%rbp), %eax
movl %eax, -0x113c(%rbp)
testl %eax, %eax
je 0xa8d1
jmp 0xa8b7
movl -0x113c(%rbp), %eax
subl $0x1, %eax
je 0xa8de
jmp 0xa8c4
movl -0x113c(%rbp), %eax
subl $0x2, %eax
je 0xa8eb
jmp 0xa8f8
movq -0x10f0(%rbp), %rax
movb $0x1, 0x7(%rax)
jmp 0xa911
movq -0x10f0(%rbp), %rax
movb $0x9, 0x7(%rax)
jmp 0xa911
movq -0x10f0(%rbp), %rax
movb $0x7, 0x7(%rax)
jmp 0xa911
movsbl 0x18(%rbp), %edx
xorl %edi, %edi
leaq 0xb605(%rip), %rsi      # 0x15f0a
movb $0x0, %al
callq 0x123f0
jmp 0xacbf
jmp 0xa913
movq -0x10f0(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x1088(%rbp)
movq -0x1088(%rbp), %rax
movw $0x1, 0x2(%rax)
movq -0x1088(%rbp), %rax
movw $0x8, (%rax)
movq -0x10f0(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, 0x10(%rax)
movsbl 0x18(%rbp), %eax
cmpl $0x0, %eax
jne 0xaa20
movq -0x10f0(%rbp), %rax
addq $0xc, %rax
addq $0x4, %rax
addq $0x4, %rax
movq %rax, -0x1088(%rbp)
movq -0x1088(%rbp), %rax
movw $0x5, 0x2(%rax)
movq -0x1088(%rbp), %rax
movw $0x8, (%rax)
movq -0x10f0(%rbp), %rax
movl -0x44(%rbp), %ecx
movl %ecx, 0x18(%rax)
movq -0x10f0(%rbp), %rax
addq $0xc, %rax
addq $0x8, %rax
addq $0x8, %rax
movq %rax, -0x1088(%rbp)
movq -0x1088(%rbp), %rax
movw $0x4, 0x2(%rax)
movq -0x1088(%rbp), %rax
movw $0x8, (%rax)
movq -0x10f0(%rbp), %rax
movl -0x24(%rbp), %ecx
movl %ecx, 0x20(%rax)
cmpl $0x0, -0x20(%rbp)
je 0xaa1e
movq -0x10f0(%rbp), %rax
addq $0xc, %rax
addq $0xc, %rax
addq $0xc, %rax
movq %rax, -0x1088(%rbp)
movq -0x1088(%rbp), %rax
movw $0x7, 0x2(%rax)
movq -0x1088(%rbp), %rax
movw $0x8, (%rax)
movq -0x10f0(%rbp), %rax
movl -0x20(%rbp), %ecx
movl %ecx, 0x28(%rax)
jmp 0xaa20
movl $0x10, %edi
movl $0x2, %esi
xorl %edx, %edx
callq 0x2500
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jge 0xaa5d
callq 0x2070
movl (%rax), %edi
callq 0x24a0
movq %rax, %rdx
xorl %edi, %edi
leaq 0xb4e9(%rip), %rsi      # 0x15f3a
movb $0x0, %al
callq 0x123f0
jmp 0xacbf
movl -0x34(%rbp), %edi
leaq -0x1130(%rbp), %rsi
movq -0x10e8(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
leaq -0x1094(%rbp), %rax
movq %rax, -0x1138(%rbp)
movq -0x1138(%rbp), %r8
xorl %ecx, %ecx
movl $0xc, %r9d
callq 0x2200
cmpq $0x0, %rax
jge 0xaac6
callq 0x2070
movl (%rax), %edi
callq 0x24a0
movq %rax, %rdx
xorl %edi, %edi
leaq 0xb4d0(%rip), %rsi      # 0x15f82
movb $0x0, %al
callq 0x123f0
movl -0x34(%rbp), %edi
callq 0x2210
jmp 0xacbf
leaq -0x1094(%rbp), %rax
movq %rax, -0x10e0(%rbp)
movl $0xc, -0x10d8(%rbp)
leaq -0x10a8(%rbp), %rax
movq %rax, -0x10d0(%rbp)
movq $0x1, -0x10c8(%rbp)
movq $0x0, -0x10c0(%rbp)
movl -0x34(%rbp), %edi
leaq -0x10e0(%rbp), %rsi
xorl %edx, %edx
callq 0x2380
movq %rax, -0x40(%rbp)
leaq -0x1050(%rbp), %rax
movq %rax, -0x10e8(%rbp)
xorl %eax, %eax
cmpq $0x10, -0x40(%rbp)
movb %al, -0x113d(%rbp)
jb 0xab63
movq -0x10e8(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq $0x10, %rcx
movb %al, -0x113d(%rbp)
jb 0xab63
movq -0x10e8(%rbp), %rax
movl (%rax), %eax
cmpq -0x40(%rbp), %rax
setbe %al
movb %al, -0x113d(%rbp)
movb -0x113d(%rbp), %al
testb $0x1, %al
jne 0xab72
jmp 0xacb7
movq -0x10e8(%rbp), %rax
movzwl 0x4(%rax), %eax
cmpl $0x3, %eax
jne 0xab87
jmp 0xacb7
movq -0x10e8(%rbp), %rax
movzwl 0x4(%rax), %eax
cmpl $0x2, %eax
jne 0xac6c
movq -0x10e8(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0xac6c
movsbl 0x20(%rbp), %edx
leaq 0xb2c8(%rip), %rax      # 0x15e7f
leaq 0xb454(%rip), %rcx      # 0x16012
cmpl $0x1, %edx
cmoveq %rcx, %rax
movq %rax, -0x1170(%rbp)
movsbq 0x18(%rbp), %rcx
leaq 0x10708(%rip), %rax     # 0x1b2e0
movq (%rax,%rcx,8), %rax
movq %rax, -0x1168(%rbp)
leaq -0x1060(%rbp), %rax
movq %rax, -0x1160(%rbp)
movzbl -0x15(%rbp), %eax
movl %eax, -0x1154(%rbp)
leaq -0x1070(%rbp), %rax
movq %rax, -0x1150(%rbp)
movzbl 0x10(%rbp), %eax
movl %eax, -0x1144(%rbp)
movq -0x10e8(%rbp), %rax
xorl %edi, %edi
subl 0x10(%rax), %edi
callq 0x24a0
movq -0x1170(%rbp), %rdx
movq -0x1168(%rbp), %rcx
movq -0x1160(%rbp), %r8
movl -0x1154(%rbp), %r9d
movq -0x1150(%rbp), %r11
movl -0x1144(%rbp), %r10d
xorl %edi, %edi
leaq 0xb387(%rip), %rsi      # 0x15fde
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x123f0
movq -0x10e8(%rbp), %rax
movl (%rax), %eax
addl $0x4, %eax
subl $0x1, %eax
andl $-0x4, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x40(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10e8(%rbp), %rax
movq -0x10e8(%rbp), %rcx
movl (%rcx), %ecx
addl $0x4, %ecx
subl $0x1, %ecx
andl $-0x4, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10e8(%rbp)
jmp 0xab25
movl -0x34(%rbp), %edi
callq 0x2210
addq $0x1190, %rsp           # imm = 0x1190
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax,%rax)