// File: /workspace/github_c_makefile_star2_O0/erikdubbelboer[P]discnt/src/cluster.c
// Function: clusterProcessPacket
int clusterProcessPacket(clusterLink *link) {
    clusterMsg *hdr = (clusterMsg*) link->rcvbuf;
    uint32_t totlen = ntohl(hdr->totlen);
    uint16_t type = ntohs(hdr->type);
    clusterNode *sender;

    server.cluster->stats_bus_messages_received++;
    /*serverLog(LL_DEBUG,"--- Processing packet of type %d, %lu bytes",
        type, (unsigned long) totlen);*/

    /* Perform sanity checks */
    if (totlen < 16) return 1; /* At least signature, version, totlen, count. */
    if (ntohs(hdr->ver) != CLUSTER_PROTO_VER)
        return 1; /* Can't handle versions other than the current one.*/
    if (totlen > sdslen(link->rcvbuf)) return 1;
    if (type == CLUSTERMSG_TYPE_PING || type == CLUSTERMSG_TYPE_PONG ||
        type == CLUSTERMSG_TYPE_MEET)
    {
        uint16_t count = ntohs(hdr->count);
        uint32_t explen; /* expected length of this packet */

        explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
        explen += (sizeof(clusterMsgDataGossip)*count);
        if (totlen != explen) return 1;
    } else if (type == CLUSTERMSG_TYPE_FAIL) {
        uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);

        explen += sizeof(clusterMsgDataFail);
        if (totlen != explen) return 1;
    } else if (type == CLUSTERMSG_TYPE_COUNTER) {
        uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);

        explen += sizeof(clusterMsgDataCounter) -
                  sizeof(hdr->data.counter.shard.name);
        explen += intrev16ifbe(hdr->data.counter.shard.name_length);
        if (totlen != explen) return 1;
    } else if (type == CLUSTERMSG_TYPE_ACK) {
        uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);

        explen += sizeof(clusterMsgDataAck) -
                  sizeof(hdr->data.ack.about.name);
        explen += intrev16ifbe(hdr->data.ack.about.name_length);
        if (totlen != explen) return 1;
    } else if (type == CLUSTERMSG_TYPE_RESET) {
        uint32_t explen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
        explen += sizeof(clusterMsgDataReset);
        if (totlen != explen) return 1;
    }

    /* Check if the sender is a known node. */
    sender = clusterLookupNode(hdr->sender);

    /* Initial processing of PING and MEET requests replying with a PONG. */
    if (type == CLUSTERMSG_TYPE_PING || type == CLUSTERMSG_TYPE_MEET) {
        /*serverLog(LL_DEBUG,"Ping packet received: %p", (void*)link->node);*/

        /* We use incoming MEET messages in order to set the address
         * for 'myself', since only other cluster nodes will send us
         * MEET messages on handshakes, when the cluster joins, or
         * later if we changed address, and those nodes will use our
         * official address to connect to us. So by obtaining this address
         * from the socket is a simple way to discover / update our own
         * address in the cluster without it being hardcoded in the config.
         *
         * However if we don't have an address at all, we update the address
         * even with a normal PING packet. If it's wrong it will be fixed
         * by MEET later. */
        if (type == CLUSTERMSG_TYPE_MEET || myself->ip[0] == '\0') {
            char ip[NET_IP_STR_LEN];

            if (anetSockName(link->fd,ip,sizeof(ip),NULL) != -1 &&
                strcmp(ip,myself->ip))
            {
                memcpy(myself->ip,ip,NET_IP_STR_LEN);
                serverLog(LL_WARNING,"IP address for this node updated to %s",
                    myself->ip);
                clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG);
            }
        }

        /* Add this node if it is new for us and the msg type is MEET.
         * In this stage we don't try to add the node with the right
         * flags, slaveof pointer, and so forth, as this details will be
         * resolved when we'll receive PONGs from the node. */
        if (!sender && type == CLUSTERMSG_TYPE_MEET) {
            clusterNode *node;

            node = createClusterNode(NULL,CLUSTER_NODE_HANDSHAKE);
            nodeIp2String(node->ip,link);
            node->port = ntohs(hdr->port);
            clusterAddNode(node);
            clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG);
        }

        /* If this is a MEET packet from an unknown node, we still process
         * the gossip section here since we have to trust the sender because
         * of the message type. */
        if (!sender && type == CLUSTERMSG_TYPE_MEET)
            clusterProcessGossipSection(hdr,link);

        /* Anyway reply with a PONG */
        clusterSendPing(link,CLUSTERMSG_TYPE_PONG);
    }

    /* PING, PONG, MEET: process config information. */
    if (type == CLUSTERMSG_TYPE_PING || type == CLUSTERMSG_TYPE_PONG ||
        type == CLUSTERMSG_TYPE_MEET)
    {
        /*serverLog(LL_DEBUG,"%s packet received: %p",
            type == CLUSTERMSG_TYPE_PING ? "ping" : "pong",
            (void*)link->node);*/
        if (link->node) {
            if (nodeInHandshake(link->node)) {
                /* If we already have this node, try to change the
                 * IP/port of the node with the new one. */
                if (sender) {
                    serverLog(LL_VERBOSE,
                        "Handshake: we already know node %.40s, "
                        "updating the address if needed.", sender->name);
                    if (nodeUpdateAddressIfNeeded(sender,link,ntohs(hdr->port)))
                    {
                        clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|
                                             CLUSTER_TODO_UPDATE_STATE);
                    }
                    /* Free this node as we already have it. This will
                     * cause the link to be freed as well. */
                    clusterDelNode(link->node);
                    return 0;
                }

                /* First thing to do is replacing the random name with the
                 * right node name if this was a handshake stage. */
                clusterRenameNode(link->node, hdr->sender);
                serverLog(LL_DEBUG,"Handshake with node %.40s completed.",
                    link->node->name);
                link->node->flags &= ~CLUSTER_NODE_HANDSHAKE;
                clusterDoBeforeSleep(CLUSTER_TODO_UPDATE_STATE|
                                     CLUSTER_TODO_SAVE_CONFIG);

                /* When the handshaking is done we can sync all counters. */
                countersSync(link->node);
            } else if (memcmp(link->node->name,hdr->sender,
                        CLUSTER_NAMELEN) != 0)
            {
                /* If the reply has a non matching node ID we
                 * disconnect this node and set it as not having an associated
                 * address. */
                serverLog(LL_DEBUG,"PONG contains mismatching sender ID");
                link->node->flags |= CLUSTER_NODE_NOADDR;
                link->node->ip[0] = '\0';
                link->node->port = 0;
                freeClusterLink(link);
                clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG);
                return 0;
            }
        }

        /* Update the node address if it changed. */
        if (sender && type == CLUSTERMSG_TYPE_PING &&
            !nodeInHandshake(sender) &&
            nodeUpdateAddressIfNeeded(sender,link,ntohs(hdr->port)))
        {
            clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|
                                 CLUSTER_TODO_UPDATE_STATE);
        }

        /* Update our info about the node */
        if (link->node && type == CLUSTERMSG_TYPE_PONG) {
            link->node->pong_received = mstime();
            link->node->ping_sent = 0;

            /* The PFAIL condition can be reversed without external
             * help if it is momentary (that is, if it does not
             * turn into a FAIL state).
             *
             * The FAIL condition is also reversible under specific
             * conditions detected by clearNodeFailureIfNeeded(). */
            if (nodeTimedOut(link->node)) {
                link->node->flags &= ~CLUSTER_NODE_PFAIL;
                clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|
                                     CLUSTER_TODO_UPDATE_STATE);
            } else if (nodeFailed(link->node)) {
                clearNodeFailureIfNeeded(link->node);
            }
        }

        /* Get info from the gossip section */
        if (sender) clusterProcessGossipSection(hdr,link);
    } else if (type == CLUSTERMSG_TYPE_FAIL) {
        clusterNode *failing;

        if (!sender) return 1;
        failing = clusterLookupNode(hdr->data.fail.about.nodename);
        if (failing &&
            !(failing->flags & (CLUSTER_NODE_FAIL|CLUSTER_NODE_MYSELF)))
        {
            serverLog(LL_VERBOSE,
                "FAIL message received from %.40s about %.40s",
                hdr->sender, hdr->data.fail.about.nodename);

            failing->flags |= CLUSTER_NODE_FAIL;
            failing->fail_time = mstime();
            failing->flags &= ~CLUSTER_NODE_PFAIL;

            clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|
                                 CLUSTER_TODO_UPDATE_STATE);
        }
    } else if (type == CLUSTERMSG_TYPE_COUNTER) {
        if (!sender) return 1;

        cluserReadShard(&hdr->data.counter.shard, sender);
    } else if (type == CLUSTERMSG_TYPE_ACK) {
        if (!sender) return 1;

        cluserReadAck(&hdr->data.ack.about, sender);
    } else if (type == CLUSTERMSG_TYPE_RESET) {
        serverLog(LL_WARNING,"Received RESET from %.40s",sender->name);
        flushServerData();
    } else {
        serverLog(LL_WARNING,"Received unknown packet type: %d", type);
    }
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x128e0
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xc(%rax), %edi
callq 0x12660
movw %ax, -0x1e(%rbp)
leaq 0x8b5c6(%rip), %rax     # 0xbf0e8
movq 0x668(%rax), %rax
movq 0x48(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x48(%rax)
cmpl $0x10, -0x1c(%rbp)
jae 0x33b47
movl $0x1, -0x4(%rbp)
jmp 0x3421a
movq -0x18(%rbp), %rax
movzwl 0x8(%rax), %edi
callq 0x12660
movzwl %ax, %eax
cmpl $0x0, %eax
je 0x33b68
movl $0x1, -0x4(%rbp)
jmp 0x3421a
movl -0x1c(%rbp), %eax
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x32160
movq %rax, %rcx
movq -0x88(%rbp), %rax
cmpq %rcx, %rax
jbe 0x33b9a
movl $0x1, -0x4(%rbp)
jmp 0x3421a
movzwl -0x1e(%rbp), %eax
cmpl $0x0, %eax
je 0x33bb5
movzwl -0x1e(%rbp), %eax
cmpl $0x1, %eax
je 0x33bb5
movzwl -0x1e(%rbp), %eax
cmpl $0x2, %eax
jne 0x33bf7
movq -0x18(%rbp), %rax
movzwl 0xe(%rax), %edi
callq 0x12660
movw %ax, -0x2a(%rbp)
movl $0x60, -0x30(%rbp)
movzwl -0x2a(%rbp), %eax
imulq $0x68, %rax, %rcx
movl -0x30(%rbp), %eax
addq %rcx, %rax
movl %eax, -0x30(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x30(%rbp), %eax
je 0x33bf2
movl $0x1, -0x4(%rbp)
jmp 0x3421a
jmp 0x33cde
movzwl -0x1e(%rbp), %eax
cmpl $0x3, %eax
jne 0x33c2a
movl $0x60, -0x34(%rbp)
movl -0x34(%rbp), %eax
addq $0x28, %rax
movl %eax, -0x34(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x34(%rbp), %eax
je 0x33c25
movl $0x1, -0x4(%rbp)
jmp 0x3421a
jmp 0x33cdc
movzwl -0x1e(%rbp), %eax
cmpl $0x4, %eax
jne 0x33c68
movl $0x60, -0x38(%rbp)
movl -0x38(%rbp), %eax
addq $0x1e, %rax
movl %eax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x7c(%rax), %eax
addl -0x38(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x38(%rbp), %eax
je 0x33c66
movl $0x1, -0x4(%rbp)
jmp 0x3421a
jmp 0x33cda
movzwl -0x1e(%rbp), %eax
cmpl $0x5, %eax
jne 0x33ca6
movl $0x60, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x6, %rax
movl %eax, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x64(%rax), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x3c(%rbp), %eax
je 0x33ca4
movl $0x1, -0x4(%rbp)
jmp 0x3421a
jmp 0x33cd8
movzwl -0x1e(%rbp), %eax
cmpl $0x6, %eax
jne 0x33cd6
movl $0x60, -0x40(%rbp)
movl -0x40(%rbp), %eax
addq $0x4, %rax
movl %eax, -0x40(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x40(%rbp), %eax
je 0x33cd4
movl $0x1, -0x4(%rbp)
jmp 0x3421a
jmp 0x33cd6
jmp 0x33cd8
jmp 0x33cda
jmp 0x33cdc
jmp 0x33cde
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
callq 0x31d30
movq %rax, -0x28(%rbp)
movzwl -0x1e(%rbp), %eax
cmpl $0x0, %eax
je 0x33d05
movzwl -0x1e(%rbp), %eax
cmpl $0x2, %eax
jne 0x33e23
movzwl -0x1e(%rbp), %eax
cmpl $0x2, %eax
je 0x33d1e
movq 0x9f8eb(%rip), %rax     # 0xd3600
movsbl 0x50(%rax), %eax
cmpl $0x0, %eax
jne 0x33d98
movq -0x10(%rbp), %rax
movl 0x8(%rax), %edi
leaq -0x70(%rbp), %rsi
movl $0x2e, %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x15cd0
cmpl $-0x1, %eax
je 0x33d96
leaq -0x70(%rbp), %rdi
movq 0x9f8b9(%rip), %rsi     # 0xd3600
addq $0x50, %rsi
callq 0x12480
cmpl $0x0, %eax
je 0x33d96
movq 0x9f8a4(%rip), %rdi     # 0xd3600
addq $0x50, %rdi
leaq -0x70(%rbp), %rsi
movl $0x2e, %edx
callq 0x12500
movq 0x9f88b(%rip), %rdx     # 0xd3600
addq $0x50, %rdx
movl $0x3, %edi
leaq 0x739a4(%rip), %rsi     # 0xa7729
movb $0x0, %al
callq 0x18b10
movl $0x2, %edi
callq 0x32aa0
jmp 0x33d98
cmpq $0x0, -0x28(%rbp)
jne 0x33df8
movzwl -0x1e(%rbp), %eax
cmpl $0x2, %eax
jne 0x33df8
xorl %eax, %eax
movl %eax, %edi
movl $0x8, %esi
callq 0x31d90
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
addq $0x50, %rdi
movq -0x10(%rbp), %rsi
callq 0x339a0
movq -0x18(%rbp), %rax
movzwl 0x58(%rax), %edi
callq 0x12660
movzwl %ax, %ecx
movq -0x78(%rbp), %rax
movl %ecx, 0x80(%rax)
movq -0x78(%rbp), %rdi
callq 0x31e80
movl $0x2, %edi
callq 0x32aa0
cmpq $0x0, -0x28(%rbp)
jne 0x33e15
movzwl -0x1e(%rbp), %eax
cmpl $0x2, %eax
jne 0x33e15
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x33790
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x34230
movzwl -0x1e(%rbp), %eax
cmpl $0x0, %eax
je 0x33e42
movzwl -0x1e(%rbp), %eax
cmpl $0x1, %eax
je 0x33e42
movzwl -0x1e(%rbp), %eax
cmpl $0x2, %eax
jne 0x340cf
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x33fbf
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x33f3e
cmpq $0x0, -0x28(%rbp)
je 0x33ee7
movq -0x28(%rbp), %rdx
movl $0x1, %edi
leaq 0x738d1(%rip), %rsi     # 0xa7750
movb $0x0, %al
callq 0x18b10
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x58(%rax), %edi
callq 0x12660
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
movzwl %ax, %edx
callq 0x339d0
cmpl $0x0, %eax
je 0x33ece
movl $0x3, %edi
callq 0x32aa0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x32a20
movl $0x0, -0x4(%rbp)
jmp 0x3421a
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x18(%rbp), %rsi
addq $0x10, %rsi
callq 0x33140
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdx
xorl %edi, %edi
leaq 0x7388a(%rip), %rsi     # 0xa7797
movb $0x0, %al
callq 0x18b10
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %ecx
andl $-0x9, %ecx
movl %ecx, 0x30(%rax)
movl $0x3, %edi
callq 0x32aa0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x3a880
jmp 0x33fbd
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x18(%rbp), %rsi
addq $0x10, %rsi
movl $0x28, %edx
callq 0x12420
cmpl $0x0, %eax
je 0x33fbb
xorl %edi, %edi
leaq 0x73856(%rip), %rsi     # 0xa77bc
movb $0x0, %al
callq 0x18b10
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %ecx
orl $0x10, %ecx
movl %ecx, 0x30(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movb $0x0, 0x50(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl $0x0, 0x80(%rax)
movq -0x10(%rbp), %rdi
callq 0x32b30
movl $0x2, %edi
callq 0x32aa0
movl $0x0, -0x4(%rbp)
jmp 0x3421a
jmp 0x33fbd
jmp 0x33fbf
cmpq $0x0, -0x28(%rbp)
je 0x34026
movzwl -0x1e(%rbp), %eax
cmpl $0x0, %eax
jne 0x34026
movq -0x28(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x34026
movq -0x28(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rax
movzwl 0x58(%rax), %edi
callq 0x12660
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
movzwl %ax, %edx
callq 0x339d0
cmpl $0x0, %eax
je 0x34026
movl $0x3, %edi
callq 0x32aa0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x340b6
movzwl -0x1e(%rbp), %eax
cmpl $0x1, %eax
jne 0x340b6
callq 0x18e20
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq $0x0, 0x38(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x34092
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %ecx
andl $-0x2, %ecx
movl %ecx, 0x30(%rax)
movl $0x3, %edi
callq 0x32aa0
jmp 0x340b4
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x30(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x340b2
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x334f0
jmp 0x340b4
jmp 0x340b6
cmpq $0x0, -0x28(%rbp)
je 0x340ca
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x33790
jmp 0x34213
movzwl -0x1e(%rbp), %eax
cmpl $0x3, %eax
jne 0x34172
cmpq $0x0, -0x28(%rbp)
jne 0x340ef
movl $0x1, -0x4(%rbp)
jmp 0x3421a
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
callq 0x31d30
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
je 0x3416d
movq -0x80(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x3416d
movq -0x18(%rbp), %rdx
addq $0x10, %rdx
movq -0x18(%rbp), %rcx
addq $0x60, %rcx
movl $0x1, %edi
leaq 0x736ae(%rip), %rsi     # 0xa77e0
movb $0x0, %al
callq 0x18b10
movq -0x80(%rbp), %rax
movl 0x30(%rax), %ecx
orl $0x2, %ecx
movl %ecx, 0x30(%rax)
callq 0x18e20
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x80(%rbp), %rax
movl 0x30(%rax), %ecx
andl $-0x2, %ecx
movl %ecx, 0x30(%rax)
movl $0x3, %edi
callq 0x32aa0
jmp 0x34211
movzwl -0x1e(%rbp), %eax
cmpl $0x4, %eax
jne 0x341a1
cmpq $0x0, -0x28(%rbp)
jne 0x3418e
movl $0x1, -0x4(%rbp)
jmp 0x3421a
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movq -0x28(%rbp), %rsi
callq 0x34580
jmp 0x3420f
movzwl -0x1e(%rbp), %eax
cmpl $0x5, %eax
jne 0x341cd
cmpq $0x0, -0x28(%rbp)
jne 0x341ba
movl $0x1, -0x4(%rbp)
jmp 0x3421a
movq -0x18(%rbp), %rdi
addq $0x60, %rdi
movq -0x28(%rbp), %rsi
callq 0x34730
jmp 0x3420d
movzwl -0x1e(%rbp), %eax
cmpl $0x6, %eax
jne 0x341f4
movq -0x28(%rbp), %rdx
movl $0x3, %edi
leaq 0x73627(%rip), %rsi     # 0xa780d
movb $0x0, %al
callq 0x18b10
callq 0x19480
jmp 0x3420b
movzwl -0x1e(%rbp), %edx
movl $0x3, %edi
leaq 0x73623(%rip), %rsi     # 0xa7827
movb $0x0, %al
callq 0x18b10
jmp 0x3420d
jmp 0x3420f
jmp 0x34211
jmp 0x34213
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)