// File: /workspace/github_c_makefile_star2_O3/hiperiondev[P]hpsdrsim/src/hpsdr_newprotocol.c
// Function: rx_thread
void* rx_thread(void *data) {
    int sock;
    struct sockaddr_in addr;
    // One instance of this thread is started for each DDC
    unsigned long seqnum;
    unsigned char buffer[1444];
    int yes = 1;
    int i;
    long wait;
    double i0sample, q0sample;
    double i1sample, q1sample;
    double irsample, qrsample;
    double fac;
    int sample;
    unsigned char *p;
    int noisept, tonept;
    int myddc;
    int sync, size;
    int myadc, syncadc;
    int rxptr;
    int divptr;
    int decimation;
    unsigned int seed;

    struct timespec delay;

    syncadc = 0;

    myddc = (int) (uintptr_t) data;
    if (myddc < 0 || myddc >= NUMRECEIVERS)
        return NULL;

    dbg_printf(1, "-- Start rx_thread %d port: %d\n", myddc, ddc0_port + myddc);

    seqnum = 0;
    // unique seed value for random number generator
    seed = ((uintptr_t) &seed) & 0xffffff;

    sock = socket(AF_INET, SOCK_DGRAM, 0);
    if (sock < 0) {
        dbg_printf(1, "***** ERROR: RXthread: socket\n");
        return NULL;
    }

    setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &yes, sizeof(yes));
    setsockopt(sock, SOL_SOCKET, SO_REUSEPORT, (void*) &yes, sizeof(yes));

    memset(&addr, 0, sizeof(addr));
    addr.sin_family = AF_INET;
    addr.sin_addr.s_addr = htonl(INADDR_ANY);
    addr.sin_port = htons(ddc0_port + myddc);

    if (bind(sock, (struct sockaddr*) &addr, sizeof(addr)) < 0) {
        dbg_printf(1, "***** ERROR: RXthread: bind\n");
        close(sock);
        return NULL;
    }

    tonept = noisept = 0;
    clock_gettime(CLOCK_MONOTONIC, &delay);
    dbg_printf(1, "RX thread %d, enabled=%d\n", myddc, ddcenable[myddc]);
    rxptr = txptr - 4096;
    if (rxptr < 0)
        rxptr += NEWRTXLEN;
    divptr = 0;

    while (run) {
        if (ddcenable[myddc] <= 0 || rxrate[myddc] == 0 || rxfreq[myddc] == 0) {
            usleep(5000);
            clock_gettime(CLOCK_MONOTONIC, &delay);
            rxptr = txptr - 4096;
            if (rxptr < 0)
                rxptr += NEWRTXLEN;
            continue;
        }
        decimation = 1536 / rxrate[myddc];
        myadc = adcmap[myddc];
        // for simplicity, we only allow for a single "synchronized" DDC,
        // this well covers the PURESIGNAL and DIVERSITY cases
        sync = 0;
        i = syncddc[myddc];
        while (i) {
            sync++;
            i = i >> 1;
        }
        // sync == 0 means no synchronizatsion
        // sync == 1,2,3  means synchronization with DDC0,1,2
        // Usually we send 238 samples per buffer, but with synchronization
        // we send 119 sample *pairs*.
        if (sync) {
            size = 119;
            wait = 119000000L / rxrate[myddc]; // time for these samples in nano-secs
            syncadc = adcmap[sync - 1];
        } else {
            size = 238;
            wait = 238000000L / rxrate[myddc]; // time for these samples in nano-secs
        }

        // ADC0 RX: noise + 800Hz signal at -73 dBm
        // ADC0 TX: noise + distorted TX signal
        // ADC1 RX: noise
        // ADC1 TX: HERMES only: original TX signal
        // ADC2   : original TX signal
        p = buffer;
        *p++ = (seqnum >> 24) & 0xFF;
        *p++ = (seqnum >> 16) & 0xFF;
        *p++ = (seqnum >> 8) & 0xFF;
        *p++ = (seqnum >> 0) & 0xFF;
        seqnum += 1;
        // do not use time stamps
        *p++ = 0;
        *p++ = 0;
        *p++ = 0;
        *p++ = 0;
        *p++ = 0;
        *p++ = 0;
        *p++ = 0;
        *p++ = 0;
        // 24 bits per sample *ALWAYS*
        *p++ = 0;
        *p++ = 24;
        *p++ = 0;
        *p++ = sync ? 2 * size : size;  // should be 238 in either case
        for (i = 0; i < size; i++) {
            // produce noise depending on the ADC
            i1sample = i0sample = noiseItab[noisept];
            q1sample = q0sample = noiseQtab[noisept++];
            if (noisept == LENNOISE)
                noisept = rand_r(&seed) / NOISEDIV;
            // PS: produce sample PAIRS,
            // a) distorted TX data (with Drive and Attenuation)
            // b) original TX data (normalized)
            //
            // DIV: produce sample PAIRS,
            // a) add man-made-noise on I-sample of RX channel
            // b) add man-made-noise on Q-sample of "synced" channel
            if (sync && (rxrate[myadc] == 192) && ptt && (syncadc == adc)) {
                irsample = isample[rxptr];
                qrsample = qsample[rxptr++];
                if (rxptr >= NEWRTXLEN)
                    rxptr = 0;
                fac = txatt_dbl * txdrv_dbl * (IM3a + IM3b * (irsample * irsample + qrsample * qrsample) * txdrv_dbl * txdrv_dbl);
                if (myadc == 0) {
                    i0sample += irsample * fac;
                    q0sample += qrsample * fac;
                }
                i1sample = irsample * 0.2899;
                q1sample = qrsample * 0.2899;
            } else if (myadc == 0) {
                i0sample += toneItab[tonept] * 0.0002239 * rxatt0_dbl;
                q0sample += toneQtab[tonept] * 0.0002239 * rxatt0_dbl;
                tonept += decimation;
                if (tonept >= LENTONE)
                    tonept = 0;
            }
            if (diversity && !sync && myadc == 0) {
                i0sample += 0.0001 * rxatt0_dbl * divtab[divptr];
                divptr += decimation;
                if (divptr >= LENDIV)
                    divptr = 0;
            }
            if (diversity && !sync && myadc == 1) {
                q0sample += 0.0002 * rxatt1_dbl * divtab[divptr];
                divptr += decimation;
                if (divptr >= LENDIV)
                    divptr = 0;
            }
            if (diversity && sync && !ptt) {
                if (myadc == 0)
                    i0sample += 0.0001 * rxatt0_dbl * divtab[divptr];
                if (syncadc == 1)
                    q1sample += 0.0002 * rxatt1_dbl * divtab[divptr];
                divptr += decimation;
                if (divptr >= LENDIV)
                    divptr = 0;
            }
            if (sync) {
                sample = i0sample * 8388607.0;
                *p++ = (sample >> 16) & 0xFF;
                *p++ = (sample >> 8) & 0xFF;
                *p++ = (sample >> 0) & 0xFF;
                sample = q0sample * 8388607.0;
                *p++ = (sample >> 16) & 0xFF;
                *p++ = (sample >> 8) & 0xFF;
                *p++ = (sample >> 0) & 0xFF;
                sample = i1sample * 8388607.0;
                *p++ = (sample >> 16) & 0xFF;
                *p++ = (sample >> 8) & 0xFF;
                *p++ = (sample >> 0) & 0xFF;
                sample = q1sample * 8388607.0;
                *p++ = (sample >> 16) & 0xFF;
                *p++ = (sample >> 8) & 0xFF;
                *p++ = (sample >> 0) & 0xFF;
            } else {
                sample = i0sample * 8388607.0;
                *p++ = (sample >> 16) & 0xFF;
                *p++ = (sample >> 8) & 0xFF;
                *p++ = (sample >> 0) & 0xFF;
                sample = q0sample * 8388607.0;
                *p++ = (sample >> 16) & 0xFF;
                *p++ = (sample >> 8) & 0xFF;
                *p++ = (sample >> 0) & 0xFF;
            }
        }
        delay.tv_nsec += wait;
        while (delay.tv_nsec >= 1000000000) {
            delay.tv_nsec -= 1000000000;
            delay.tv_sec++;
        }

        clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &delay, NULL);

        if (sendto(sock, buffer, 1444, 0, (struct sockaddr*) &addr_new, sizeof(addr_new)) < 0) {
            dbg_printf(1, "***** ERROR: RX thread sendto\n");
            break;
        }
    }
    close(sock);
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x618, %rsp            # imm = 0x618
movq %rdi, %r15
movl $0x1, 0x24(%rsp)
cmpl $0x3, %r15d
ja 0x3e80
movl 0x8c37(%rip), %ecx      # 0xc308
addl %r15d, %ecx
leaq 0x54f9(%rip), %rsi      # 0x8bd4
movl $0x1, %edi
movl %r15d, %edx
xorl %eax, %eax
callq 0x13ba
leaq 0x20(%rsp), %rax
movl %eax, %ecx
andl $0xfffffc, %ecx         # imm = 0xFFFFFC
movl %ecx, (%rax)
movl $0x2, %edi
movl $0x2, %esi
xorl %edx, %edx
callq 0x1200
testl %eax, %eax
js 0x3e51
movl %eax, %ebx
leaq 0x24(%rsp), %r14
movl %eax, %edi
movl $0x1, %esi
movl $0x2, %edx
movq %r14, %rcx
movl $0x4, %r8d
callq 0x1070
movl %ebx, %edi
movl $0x1, %esi
movl $0xf, %edx
movq %r14, %rcx
movl $0x4, %r8d
callq 0x1070
leaq 0x60(%rsp), %rsi
movq $0x0, 0x8(%rsi)
movw $0x2, (%rsi)
movl $0x0, 0x4(%rsi)
movl 0x8b9c(%rip), %eax      # 0xc308
addl %r15d, %eax
rolw $0x8, %ax
movw %ax, 0x2(%rsi)
movl %ebx, %edi
movl $0x10, %edx
callq 0x1150
testl %eax, %eax
js 0x3e66
leaq 0x28(%rsp), %r12
movl $0x1, %edi
movq %r12, %rsi
callq 0x1090
movl %r15d, %r13d
andl $0x3, %r13d
movl %r13d, %eax
leaq 0x8bf2(%rip), %rbp      # 0xc3a0
movl (%rbp,%rax,4), %ecx
leaq 0x5477(%rip), %rsi      # 0x8c30
movl $0x1, %edi
movl %r15d, %edx
xorl %eax, %eax
callq 0x13ba
movl 0x8972(%rip), %eax      # 0xc140
leal -0x1000(%rax), %ecx
leal 0xeb40(%rax), %r14d
cmpl $0x1000, %eax           # imm = 0x1000
cmovgel %ecx, %r14d
leal (,%r13,4), %eax
movq %rax, 0x40(%rsp)
xorl %r15d, %r15d
movq $0x0, 0x48(%rsp)
movq $0x0, 0x38(%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, (%rsp)
cmpl $0x0, 0x8ac4(%rip)      # 0xc2e0
je 0x3e79
cmpl $0x0, (%rbp,%r13,4)
jle 0x3847
leaq 0x8ccf(%rip), %rax      # 0xc500
movl (%rax,%r13,4), %esi
testl %esi, %esi
je 0x3847
leaq 0x8b90(%rip), %rax      # 0xc3d0
cmpq $0x0, (%rax,%r13,8)
jne 0x387c
movl $0x1388, %edi           # imm = 0x1388
callq 0x11f0
movl $0x1, %edi
movq %r12, %rsi
callq 0x1090
movl 0x88dc(%rip), %eax      # 0xc140
leal -0x1000(%rax), %ecx
leal 0xeb40(%rax), %r14d
cmpl $0x1000, %eax           # imm = 0x1000
cmovgel %ecx, %r14d
jmp 0x3815
movl $0x600, %eax            # imm = 0x600
xorl %edx, %edx
idivl %esi
movl %eax, 0x4(%rsp)
movq 0x40(%rsp), %rax
leaq 0x8b2b(%rip), %rcx      # 0xc3c0
movl (%rax,%rcx), %edx
testl %edx, %edx
movl %edx, 0xc(%rsp)
movl %ebx, 0x1c(%rsp)
je 0x38d8
leaq 0x8b01(%rip), %rax      # 0xc3ac
movl %edx, %ecx
xorl %r11d, %r11d
movsd 0x4808(%rip), %xmm4     # 0x80c0
sarl %ecx
addq $0x4, %rax
cmpl $0x1, %edx
movl %ecx, %edx
ja 0x38b8
movl (%rax), %eax
movl %eax, 0x8(%rsp)
movl $0x77, %r12d
movl $0x717cbc0, %eax        # imm = 0x717CBC0
jmp 0x38ee
movl $0xee, %r12d
movl $0xe2f9780, %eax        # imm = 0xE2F9780
xorl %r11d, %r11d
movsd 0x47d2(%rip), %xmm4     # 0x80c0
movq 0x40(%rsp), %rcx
leaq 0x8ab6(%rip), %rdx      # 0xc3b0
movslq (%rcx,%rdx), %rcx
movq %rcx, 0x10(%rsp)
movl 0xc(%rsp), %ebx
testl %ebx, %ebx
setne %cl
xorl %edx, %edx
idivl %esi
movl %eax, 0x18(%rsp)
movq 0x38(%rsp), %rax
bswapl %eax
movl %eax, 0x70(%rsp)
leaq 0x74(%rsp), %rax
movb $0x0, 0x8(%rax)
movq $0x0, (%rax)
movl %r12d, %eax
shll %cl, %eax
movw $0x18, 0x7d(%rsp)
movb %al, 0x7f(%rsp)
leaq 0x80(%rsp), %rbp
movslq %r15d, %rax
leaq 0x8cdf(%rip), %rcx      # 0xc630
movsd (%rcx,%rax,8), %xmm6
leal 0x1(%rax), %r15d
leaq 0xbc0ccf(%rip), %rcx    # 0xbc4630
movsd (%rcx,%rax,8), %xmm7
cmpl $0x177000, %r15d        # imm = 0x177000
jne 0x39ba
leaq 0x20(%rsp), %rdi
movsd %xmm6, 0x58(%rsp)
movsd %xmm7, 0x50(%rsp)
callq 0x10b0
movsd 0x50(%rsp), %xmm7
movsd 0x58(%rsp), %xmm6
movsd 0x4727(%rip), %xmm4     # 0x80c0
xorl %r11d, %r11d
movslq %eax, %r15
imulq $-0x447c854f, %r15, %rax # imm = 0xBB837AB1
shrq $0x20, %rax
addl %eax, %r15d
movl %r15d, %eax
shrl $0x1f, %eax
sarl $0xb, %r15d
addl %eax, %r15d
testl %ebx, %ebx
je 0x3aae
leaq 0x8b37(%rip), %rax      # 0xc500
movq 0x10(%rsp), %rcx
cmpl $0xc0, (%rax,%rcx,4)
jne 0x3aae
cmpl $0x0, 0x8be6(%rip)      # 0xc5c8
je 0x3aae
movl 0x8(%rsp), %eax
cmpl 0x8afe(%rip), %eax      # 0xc4f0
jne 0x3aae
leal 0x1(%r14), %ecx
cmpl $0xfb3f, %r14d          # imm = 0xFB3F
cmovgel %r11d, %ecx
movslq %r14d, %rax
leaq 0x17d401f(%rip), %rdx   # 0x17d7a30
movsd (%rdx,%rax,8), %xmm2
leaq 0x1852013(%rip), %rdx   # 0x1855a30
movsd (%rdx,%rax,8), %xmm3
cmpl $0x0, 0x10(%rsp)
jne 0x3a89
movsd 0x8bb7(%rip), %xmm0     # 0xc5e8
movsd 0x86ef(%rip), %xmm1     # 0xc128
mulsd %xmm0, %xmm1
movapd %xmm3, %xmm4
mulsd %xmm3, %xmm4
movapd %xmm2, %xmm5
mulsd %xmm2, %xmm5
addsd %xmm4, %xmm5
movsd 0x4667(%rip), %xmm4     # 0x80c0
mulsd 0x4647(%rip), %xmm5     # 0x80a8
mulsd %xmm0, %xmm5
mulsd %xmm0, %xmm5
addsd 0x463f(%rip), %xmm5     # 0x80b0
mulsd %xmm1, %xmm5
movapd %xmm2, %xmm0
mulsd %xmm5, %xmm0
addsd %xmm0, %xmm6
mulsd %xmm3, %xmm5
addsd %xmm5, %xmm7
movapd %xmm7, %xmm0
movsd 0x4623(%rip), %xmm1     # 0x80b8
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm3
movapd %xmm6, %xmm1
movapd %xmm3, %xmm7
movapd %xmm2, %xmm6
jmp 0x3cba
cmpl $0x0, 0x10(%rsp)
je 0x3b34
leaq 0x8b54(%rip), %rax      # 0xc610
movl (%rax), %eax
testl %ebx, %ebx
jne 0x3bf1
testl %eax, %eax
je 0x3bf1
cmpl $0x1, 0x10(%rsp)
jne 0x3bf1
movsd 0x864f(%rip), %xmm0     # 0xc130
mulsd 0x45a7(%rip), %xmm0     # 0x8090
movl (%rsp), %edx
movslq %edx, %rax
leaq 0x17b4b3a(%rip), %rcx   # 0x17b8630
mulsd (%rcx,%rax,8), %xmm0
addl 0x4(%rsp), %edx
cmpl $0x3e80, %edx           # imm = 0x3E80
cmovgel %r11d, %edx
movl %edx, (%rsp)
addsd %xmm7, %xmm0
movl $0x6, %eax
movl $0x5, %edx
movl $0x4, %esi
movl $0x3, %edi
movl $0x2, %r8d
movl $0x1, %ebx
jmp 0x3d35
testl %ebx, %ebx
setne %cl
movq 0x48(%rsp), %rdx
movslq %edx, %rdx
leaq 0x1796ae8(%rip), %rax   # 0x179a630
movsd (%rax,%rdx,8), %xmm1
movsd 0x4543(%rip), %xmm3     # 0x8098
mulsd %xmm3, %xmm1
movsd 0x85d7(%rip), %xmm2     # 0xc138
mulsd %xmm2, %xmm1
addsd %xmm6, %xmm1
leaq 0x1778ac0(%rip), %rax   # 0x177c630
movsd (%rax,%rdx,8), %xmm0
mulsd %xmm3, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm7, %xmm0
movl 0x4(%rsp), %esi
addl %esi, %edx
cmpl $0x3c00, %edx           # imm = 0x3C00
cmovgel %r11d, %edx
movq %rdx, 0x48(%rsp)
leaq 0x8a73(%rip), %rax      # 0xc610
movl (%rax), %eax
testl %eax, %eax
sete %dl
orb %cl, %dl
je 0x3c56
testl %ebx, %ebx
movl (%rsp), %edx
je 0x3cb3
testl %eax, %eax
je 0x3cb3
cmpl $0x0, 0x8a02(%rip)      # 0xc5c8
jne 0x3cb3
movsd 0x8564(%rip), %xmm2     # 0xc138
mulsd 0x44c4(%rip), %xmm2     # 0x80a0
movslq %edx, %rax
leaq 0x17b4a4a(%rip), %rcx   # 0x17b8630
mulsd (%rcx,%rax,8), %xmm2
addsd %xmm2, %xmm1
jmp 0x3c19
testl %ebx, %ebx
movl (%rsp), %edx
je 0x3cab
testl %eax, %eax
je 0x3cab
cmpl $0x0, 0x89bd(%rip)      # 0xc5c8
movapd %xmm7, %xmm0
movapd %xmm6, %xmm1
jne 0x3cb3
cmpl $0x1, 0x8(%rsp)
jne 0x3c43
movsd 0x8508(%rip), %xmm2     # 0xc130
mulsd 0x4460(%rip), %xmm2     # 0x8090
movslq %edx, %rax
leaq 0x17b49f6(%rip), %rcx   # 0x17b8630
mulsd (%rcx,%rax,8), %xmm2
addsd %xmm2, %xmm7
addl 0x4(%rsp), %edx
cmpl $0x3e80, %edx           # imm = 0x3E80
cmovgel %r11d, %edx
movl %edx, (%rsp)
jmp 0x3cb7
mulsd 0x4442(%rip), %xmm2     # 0x80a0
movl (%rsp), %edx
movslq %edx, %rax
leaq 0x17b49c5(%rip), %rcx   # 0x17b8630
mulsd (%rcx,%rax,8), %xmm2
addsd %xmm1, %xmm2
addl %esi, %edx
cmpl $0x3e80, %edx           # imm = 0x3E80
cmovgel %r11d, %edx
movl %edx, (%rsp)
movl $0x6, %eax
movl $0x5, %edx
movl $0x4, %esi
movl $0x3, %edi
movl $0x2, %r8d
movl $0x1, %ebx
movapd %xmm2, %xmm6
jmp 0x3d35
movapd %xmm7, %xmm0
movapd %xmm6, %xmm1
testl %ebx, %ebx
je 0x3d12
movl %r14d, %ecx
mulsd %xmm4, %xmm1
cvttsd2si %xmm1, %eax
movl %eax, %edx
shrl $0x10, %edx
movb %dl, (%rbp)
movb %ah, 0x1(%rbp)
movb %al, 0x2(%rbp)
mulsd %xmm4, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, %edx
shrl $0x10, %edx
movb %dl, 0x3(%rbp)
movb %ah, 0x4(%rbp)
leaq 0x6(%rbp), %r9
movb %al, 0x5(%rbp)
movl $0xc, %eax
movl $0xb, %edx
movl $0xa, %esi
movl $0x9, %edi
movl $0x8, %r8d
movl $0x7, %ebx
movapd %xmm7, %xmm0
movl %ecx, %r14d
jmp 0x3d38
movl $0x6, %eax
movl $0x5, %edx
movl $0x4, %esi
movl $0x3, %edi
movl $0x2, %r8d
movl $0x1, %ebx
movapd %xmm1, %xmm6
movq %rbp, %r9
mulsd %xmm4, %xmm6
cvttsd2si %xmm6, %ecx
movl %ecx, %r10d
shrl $0x10, %r10d
movb %r10b, (%r9)
movb %ch, (%rbp,%rbx)
movb %cl, (%rbp,%r8)
mulsd %xmm4, %xmm0
cvttsd2si %xmm0, %ecx
movl %ecx, %r8d
shrl $0x10, %r8d
movb %r8b, (%rbp,%rdi)
movb %ch, (%rbp,%rsi)
addq %rbp, %rax
movb %cl, (%rbp,%rdx)
movq %rax, %rbp
decl %r12d
movl 0xc(%rsp), %ebx
jne 0x3947
movslq 0x18(%rsp), %rcx
addq 0x30(%rsp), %rcx
movq %rcx, 0x30(%rsp)
cmpq $0x3b9aca00, %rcx       # imm = 0x3B9ACA00
jl 0x3df6
movl $0x773593ff, %eax       # imm = 0x773593FF
cmpq %rax, %rcx
movl $0x773593ff, %edx       # imm = 0x773593FF
cmovbq %rcx, %rdx
movq 0x28(%rsp), %rsi
movq %rcx, %rax
subq %rdx, %rax
addq $0x3b9ac9ff, %rax       # imm = 0x3B9AC9FF
shrq $0x9, %rax
movabsq $0x44b82fa09b5a53, %rdx # imm = 0x44B82FA09B5A53
mulq %rdx
shrq $0xb, %rdx
imulq $-0x3b9aca00, %rdx, %rax # imm = 0xC4653600
movq $-0x3b9aca00, %rdi      # imm = 0xC4653600
addq %rdi, %rcx
addq %rax, %rcx
leaq (%rsi,%rdx), %rax
incq %rax
movq %rcx, 0x30(%rsp)
movq %rax, 0x28(%rsp)
incq 0x38(%rsp)
movl $0x1, %edi
movl $0x1, %esi
leaq 0x28(%rsp), %r12
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x11b0
movl $0x5a4, %edx            # imm = 0x5A4
movl 0x1c(%rsp), %ebx
movl %ebx, %edi
leaq 0x70(%rsp), %rsi
xorl %ecx, %ecx
leaq 0x18cfc4b(%rip), %r8    # 0x18d3a78
movl $0x10, %r9d
callq 0x10e0
testq %rax, %rax
leaq 0x855e(%rip), %rbp      # 0xc3a0
jns 0x3815
leaq 0x4dfb(%rip), %rsi      # 0x8c4a
jmp 0x3e6d
leaq 0x4d9c(%rip), %rsi      # 0x8bf4
movl $0x1, %edi
xorl %eax, %eax
callq 0x13ba
jmp 0x3e80
leaq 0x4da6(%rip), %rsi      # 0x8c13
movl $0x1, %edi
xorl %eax, %eax
callq 0x13ba
movl %ebx, %edi
callq 0x10f0
xorl %eax, %eax
addq $0x618, %rsp            # imm = 0x618
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq