LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: yuang-chen[P]paraGCN/src/module.cpp
// Function: Matmul::forward(bool)
void Matmul::forward(bool training) {
    z->zero();
#pragma omp parallel for schedule(static)
    for(int i = 0; i < m; i++) {
        for(int j = 0; j < n; j++) {
#ifdef SIMD
#pragma omp simd
#endif
            for(int k = 0; k < l; k++) {
                z->data[i * l + k] += x->data[i * n + j] * y->data[j * l + k];
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x18(%rax), %rdi
callq 0xcf90
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl 0x20(%rcx), %eax
jge 0xb852
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x24(%rcx), %eax
jge 0xb842
movl $0x0, -0x18(%rbp)
movq -0x20(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0x28(%rcx), %eax
jge 0xb832
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rdi
movl -0x10(%rbp), %eax
imull 0x24(%rcx), %eax
addl -0x14(%rbp), %eax
movslq %eax, %rsi
callq 0x5520
movq -0x20(%rbp), %rcx
movss (%rax), %xmm0
movss %xmm0, -0x28(%rbp)
movq 0x10(%rcx), %rdi
movl -0x14(%rbp), %eax
imull 0x28(%rcx), %eax
addl -0x18(%rbp), %eax
movslq %eax, %rsi
callq 0x5520
movq -0x20(%rbp), %rcx
movss (%rax), %xmm0
movss %xmm0, -0x24(%rbp)
movq 0x18(%rcx), %rdi
movl -0x10(%rbp), %eax
imull 0x28(%rcx), %eax
addl -0x18(%rbp), %eax
movslq %eax, %rsi
callq 0x5520
movss -0x28(%rbp), %xmm0
movss -0x24(%rbp), %xmm2
movss (%rax), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xb79a
jmp 0xb834
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xb783
jmp 0xb844
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xb76c
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: yuang-chen[P]paraGCN/src/module.cpp
// Function: SparseMatmul::forward(bool)
void SparseMatmul::forward(bool training) {
    z->zero();
    
    for(int i = 0; i < sp->indptr.size() - 1; i++) {
        for(int jj = sp->indptr[i]; jj < sp->indptr[i + 1]; jj++) {
            int j = sp->indices[jj];  // get the dst vertex 
            for(int k = 0; k < l; k++) {
                z->data[i * l + k] += x->data[jj] * y->data[j * l + k];
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x18(%rax), %rdi
callq 0xcf90
movl $0x0, -0x10(%rbp)
movq -0x28(%rbp), %rax
movslq -0x10(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movq 0x30(%rax), %rdi
addq $0x18, %rdi
callq 0x4ea0
movq %rax, %rcx
movq -0x30(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0xbc09
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rdi
addq $0x18, %rdi
movslq -0x10(%rbp), %rsi
callq 0x5540
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movq -0x28(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, -0x34(%rbp)
movq 0x30(%rax), %rdi
addq $0x18, %rdi
movl -0x10(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x5540
movq %rax, %rcx
movl -0x34(%rbp), %eax
cmpl (%rcx), %eax
jge 0xbbf9
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rdi
movslq -0x14(%rbp), %rsi
callq 0x5540
movl (%rax), %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x28(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x28(%rcx), %eax
jge 0xbbe9
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x14(%rbp), %rsi
callq 0x5520
movq -0x28(%rbp), %rcx
movss (%rax), %xmm0
movss %xmm0, -0x3c(%rbp)
movq 0x10(%rcx), %rdi
movl -0x18(%rbp), %eax
imull 0x28(%rcx), %eax
addl -0x1c(%rbp), %eax
movslq %eax, %rsi
callq 0x5520
movq -0x28(%rbp), %rcx
movss (%rax), %xmm0
movss %xmm0, -0x38(%rbp)
movq 0x18(%rcx), %rdi
movl -0x10(%rbp), %eax
imull 0x28(%rcx), %eax
addl -0x1c(%rbp), %eax
movslq %eax, %rsi
callq 0x5520
movss -0x3c(%rbp), %xmm0
movss -0x38(%rbp), %xmm2
movss (%rax), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xbb5e
jmp 0xbbeb
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xbb13
jmp 0xbbfb
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xbacc
addq $0x40, %rsp
popq %rbp
retq
nop
// File: yuang-chen[P]paraGCN/src/module.cpp
// Function: SparseMatmul::backward()
void SparseMatmul::backward() {
    y->zero_grad();

    for(int i = 0; i < sp->indptr.size() - 1; i++) {
        for(int jj = sp->indptr[i]; jj < sp->indptr[i + 1]; jj++) {
            int j = sp->indices[jj];
            for(int k = 0; k < l; k++) {
                y->grad[j * l + k] += z->grad[i * l + k] * x->data[jj];
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x10(%rax), %rdi
callq 0xcff0
movl $0x0, -0xc(%rbp)
movq -0x20(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq 0x30(%rax), %rdi
addq $0x18, %rdi
callq 0x4ea0
movq %rax, %rcx
movq -0x28(%rbp), %rax
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0xbd80
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rdi
addq $0x18, %rdi
movslq -0xc(%rbp), %rsi
callq 0x5540
movl (%rax), %eax
movl %eax, -0x10(%rbp)
movq -0x20(%rbp), %rax
movl -0x10(%rbp), %ecx
movl %ecx, -0x2c(%rbp)
movq 0x30(%rax), %rdi
addq $0x18, %rdi
movl -0xc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rsi
callq 0x5540
movq %rax, %rcx
movl -0x2c(%rbp), %eax
cmpl (%rcx), %eax
jge 0xbd70
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rdi
movslq -0x10(%rbp), %rsi
callq 0x5540
movl (%rax), %eax
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x20(%rbp), %rcx
movl -0x18(%rbp), %eax
cmpl 0x28(%rcx), %eax
jge 0xbd60
movq -0x20(%rbp), %rcx
movq 0x18(%rcx), %rdi
addq $0x18, %rdi
movl -0xc(%rbp), %eax
imull 0x28(%rcx), %eax
addl -0x18(%rbp), %eax
movslq %eax, %rsi
callq 0x5520
movq %rax, %rcx
movq -0x20(%rbp), %rax
movss (%rcx), %xmm0
movss %xmm0, -0x34(%rbp)
movq 0x8(%rax), %rdi
movslq -0x10(%rbp), %rsi
callq 0x5520
movq -0x20(%rbp), %rcx
movss (%rax), %xmm0
movss %xmm0, -0x30(%rbp)
movq 0x10(%rcx), %rdi
addq $0x18, %rdi
movl -0x14(%rbp), %eax
imull 0x28(%rcx), %eax
addl -0x18(%rbp), %eax
movslq %eax, %rsi
callq 0x5520
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm2
movss (%rax), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, (%rax)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xbcc6
jmp 0xbd62
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xbc7b
jmp 0xbd72
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xbc34
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: yuang-chen[P]paraGCN/src/module.cpp
// Function: ReLU::forward(bool)
void ReLU::forward(bool training) {
    for(int i = 0; i < in->data.size(); i++) {
        bool keep = in->data[i] > 0;
        if(training) {
            mask[i] = keep;
        }
        if(!keep) {
            in->data[i] = 0;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rax
movslq -0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq 0x8(%rax), %rdi
callq 0x5500
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
jae 0xc710
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x10(%rbp), %rsi
callq 0x5520
movss (%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
seta %al
andb $0x1, %al
movb %al, -0x11(%rbp)
testb $0x1, -0x9(%rbp)
je 0xc6e2
movq -0x20(%rbp), %rax
movb -0x11(%rbp), %dl
movq 0x10(%rax), %rax
movslq -0x10(%rbp), %rcx
andb $0x1, %dl
movb %dl, (%rax,%rcx)
testb $0x1, -0x11(%rbp)
jne 0xc700
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x10(%rbp), %rsi
callq 0x5520
xorps %xmm0, %xmm0
movss %xmm0, (%rax)
jmp 0xc702
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xc683
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: yuang-chen[P]paraGCN/src/module.cpp
// Function: Dropout::Dropout(Variable*, float)
Dropout::Dropout(Variable *in, float p): in(in), p(p) {
    if(!in->grad.empty()) {
        mask = new int[in->data.size()];
    } else {
        mask = nullptr;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
callq 0xcae0
movq -0x30(%rbp), %rax
leaq 0xb4cb(%rip), %rcx      # 0x17c98
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movss -0x14(%rbp), %xmm0
movss %xmm0, 0x18(%rax)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
callq 0xcb40
testb $0x1, %al
jne 0xc846
movq -0x10(%rbp), %rdi
callq 0x5500
movl $0x4, %ecx
mulq %rcx
movq %rax, %rdi
movq $-0x1, %rax
cmovoq %rax, %rdi
callq 0x3030
movq %rax, -0x38(%rbp)
jmp 0xc821
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, 0x10(%rax)
jmp 0xc852
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0xccc0
jmp 0xc858
movq -0x30(%rbp), %rax
movq $0x0, 0x10(%rax)
addq $0x40, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x3420
nopw %cs:(%rax,%rax)
// File: yuang-chen[P]paraGCN/src/module.cpp
// Function: Dropout::forward(bool)
void Dropout::forward(bool training) {
    if(!training) return;
    const int threshold = int(p * GCN_RAND_MAX);
    float scale = 1 / (1 - p);

    for(int i = 0; i < in->data.size(); i++) {
        bool keep = int(RAND()) >= threshold;
        in->data[i] *= keep ? scale : 0;
        if(mask) {
            mask[i] = keep;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
testb $0x1, -0x9(%rbp)
jne 0xc917
jmp 0xca03
movq -0x28(%rbp), %rax
movss 0x38ad(%rip), %xmm0     # 0x101d0
mulss 0x18(%rax), %xmm0
cvttss2si %xmm0, %ecx
movl %ecx, -0x10(%rbp)
movss 0x3895(%rip), %xmm1     # 0x101cc
subss 0x18(%rax), %xmm1
movss 0x3888(%rip), %xmm0     # 0x101cc
divss %xmm1, %xmm0
movss %xmm0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x28(%rbp), %rax
movslq -0x18(%rbp), %rcx
movq %rcx, -0x30(%rbp)
movq 0x8(%rax), %rdi
callq 0x5500
movq %rax, %rcx
movq -0x30(%rbp), %rax
cmpq %rcx, %rax
jae 0xca03
callq 0xd720
cmpl -0x10(%rbp), %eax
setge %al
andb $0x1, %al
movb %al, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
je 0xc99b
movss -0x14(%rbp), %xmm0
movss %xmm0, -0x34(%rbp)
jmp 0xc9a5
xorps %xmm0, %xmm0
movss %xmm0, -0x34(%rbp)
jmp 0xc9a5
movq -0x28(%rbp), %rax
movss -0x34(%rbp), %xmm0
movss %xmm0, -0x38(%rbp)
movq 0x8(%rax), %rdi
movslq -0x18(%rbp), %rsi
callq 0x5520
movss -0x38(%rbp), %xmm0
movq %rax, %rcx
movq -0x28(%rbp), %rax
mulss (%rcx), %xmm0
movss %xmm0, (%rcx)
cmpq $0x0, 0x10(%rax)
je 0xc9f3
movq -0x28(%rbp), %rax
movb -0x19(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %edx
movq 0x10(%rax), %rax
movslq -0x18(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0xc9f5
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xc954
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: yuang-chen[P]paraGCN/src/module.cpp
// Function: Dropout::backward()
void Dropout::backward() {
    if(!mask) return;

    float scale = 1 / (1 - p);
    for(int i = 0; i < in->data.size(); i++) {
        in->grad[i] *= mask[i] ? scale : 0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, 0x10(%rax)
jne 0xca30
jmp 0xcad9
movq -0x18(%rbp), %rax
movss 0x3790(%rip), %xmm1     # 0x101cc
subss 0x18(%rax), %xmm1
movss 0x3783(%rip), %xmm0     # 0x101cc
divss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x18(%rbp), %rax
movslq -0x10(%rbp), %rcx
movq %rcx, -0x20(%rbp)
movq 0x8(%rax), %rdi
callq 0x5500
movq %rax, %rcx
movq -0x20(%rbp), %rax
cmpq %rcx, %rax
jae 0xcad9
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x10(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xca98
movss -0xc(%rbp), %xmm0
movss %xmm0, -0x24(%rbp)
jmp 0xcaa2
xorps %xmm0, %xmm0
movss %xmm0, -0x24(%rbp)
jmp 0xcaa2
movq -0x18(%rbp), %rax
movss -0x24(%rbp), %xmm0
movss %xmm0, -0x28(%rbp)
movq 0x8(%rax), %rdi
addq $0x18, %rdi
movslq -0x10(%rbp), %rsi
callq 0x5520
movss -0x28(%rbp), %xmm0
mulss (%rax), %xmm0
movss %xmm0, (%rax)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xca59
addq $0x30, %rsp
popq %rbp
retq
nop
// File: yuang-chen[P]paraGCN/src/variable.cpp
// Function: Variable::print(int)
void Variable::print(int col) {
    int count = 0;
    for(float x: data) {
        printf("%.4f", x);
        count++;
        if(count % col ==0) printf("\n");
    }
    printf("\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, -0x10(%rbp)
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x9770
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x95b0
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xd250
testb $0x1, %al
jne 0xd14b
jmp 0xd1a4
leaq -0x20(%rbp), %rdi
callq 0x9b20
movss (%rax), %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x30cb(%rip), %rdi      # 0x10238
movb $0x1, %al
callq 0x3050
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
cltd
idivl -0xc(%rbp)
cmpl $0x0, %edx
jne 0xd197
leaq 0x2ee7(%rip), %rdi      # 0x10077
movb $0x0, %al
callq 0x3050
jmp 0xd199
leaq -0x20(%rbp), %rdi
callq 0xd290
jmp 0xd138
leaq 0x2ecc(%rip), %rdi      # 0x10077
movb $0x0, %al
callq 0x3050
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: yuang-chen[P]paraGCN/src/rand.cpp
// Function: xorshift128plus()
uint32_t xorshift128plus() {
    uint64_t state[2];
    state[0] = rand();
    state[1] = rand();
    uint64_t t = state[0];
    uint64_t const s = state[1];
    assert(t && s);
    state[0] = t;
    t ^= t << 23;
    t ^= t >> 17;
    t ^= s ^ (s >> 26);
    state[1] = t;
    uint32_t res = (t + s) & 0x7fffffff;
    return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
callq 0x30c0
cltq
movq %rax, -0x10(%rbp)
callq 0x30c0
cltq
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x25(%rbp)
je 0xd765
cmpq $0x0, -0x20(%rbp)
setne %al
movb %al, -0x25(%rbp)
movb -0x25(%rbp), %al
testb $0x1, %al
jne 0xd76e
jmp 0xd770
jmp 0xd78f
leaq 0x2ac6(%rip), %rdi      # 0x1023d
leaq 0x2ac6(%rip), %rsi      # 0x10244
movl $0x11, %edx
leaq 0x2ac7(%rip), %rcx      # 0x10251
callq 0x31b0
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
shlq $0x17, %rax
xorq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
shrq $0x11, %rax
xorq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x20(%rbp), %rcx
shrq $0x1a, %rcx
xorq %rcx, %rax
xorq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x18(%rbp), %rax
addq -0x20(%rbp), %rax
andq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
// File: yuang-chen[P]paraGCN/src/optim.cpp
// Function: Adam::Adam(std::vector<std::pair<Variable*, bool>, std::allocator<std::pair<Variable*, bool>>>, AdamParams)
Adam::Adam(vector<pair<Variable*, bool>> vars, AdamParams params) {
    step_count = 0;
    this->params = params;
    for(auto v: vars) {
        this->adamVars.emplace_back(v.first, v.second);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rsi, -0x58(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x60(%rbp)
addq $0x18, %rdi
movq %rdi, -0x70(%rbp)
callq 0x5960
movq -0x68(%rbp), %rcx
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rsi
movl $0x0, 0x14(%rax)
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movl 0x10(%rcx), %ecx
movl %ecx, 0x10(%rax)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0xddf0
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xde20
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xde50
testb $0x1, %al
jne 0xda09
jmp 0xda54
leaq -0x20(%rbp), %rdi
callq 0xde90
movq -0x60(%rbp), %rdi
movups (%rax), %xmm0
movaps %xmm0, -0x40(%rbp)
addq $0x18, %rdi
leaq -0x38(%rbp), %rdx
leaq -0x40(%rbp), %rsi
callq 0xdeb0
jmp 0xda30
jmp 0xda32
leaq -0x20(%rbp), %rdi
callq 0xdf30
jmp 0xd9f6
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
callq 0x5be0
jmp 0xda5a
addq $0x70, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x3420
nopw %cs:(%rax,%rax)
// File: roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::readString(char*, unsigned long)
int MemoryBuffer::readString(char *buf, size_t size)
{
	long savedRptr = rptr;
	uint32_t len = 0;

	if (readUint32(len) < 0) return - 1;
	if (rptr + len > wptr) {
		// buffer is not enough for this string
		rptr = savedRptr;
		return -1;
	}

	if (len < size) size = len;
	memcpy(buf, mbuf + rptr, size);

	rptr += len;
	return len; 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x38(%rbp)
movq 0x8(%rdi), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
leaq -0x2c(%rbp), %rsi
callq 0x5760
cmpl $0x0, %eax
jge 0x5d12
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5d78
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rax
movl -0x2c(%rbp), %edx
addq %rdx, %rax
cmpq 0x10(%rcx), %rax
jle 0x5d3b
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5d78
movl -0x2c(%rbp), %eax
cmpq -0x20(%rbp), %rax
jae 0x5d4b
movl -0x2c(%rbp), %eax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rax
movq -0x18(%rbp), %rdi
movq (%rax), %rsi
addq 0x8(%rax), %rsi
movq -0x20(%rbp), %rdx
callq 0x1080
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::writeString(char const*, unsigned long)
int MemoryBuffer::writeString(const char *buf, size_t size)
{
	if (buf == NULL) size = 0;
	else if (size == 0) size = strlen(buf) + 1;

	if (ensureCapacity(bsize + 4 + size) < 0)
		return -1;

	writeUint32((uint32_t)size);
	memcpy(mbuf + wptr, buf, size); 
	wptr += size;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x5dbd
movq $0x0, -0x20(%rbp)
jmp 0x5dd7
cmpq $0x0, -0x20(%rbp)
jne 0x5dd5
movq -0x18(%rbp), %rdi
callq 0x1050
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x5dd7
movq -0x28(%rbp), %rdi
movq 0x18(%rdi), %rsi
addq $0x4, %rsi
addq -0x20(%rbp), %rsi
callq 0x5fe0
cmpl $0x0, %eax
jge 0x5dfa
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5e38
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rax
movl %eax, %esi
callq 0x56b0
movq -0x28(%rbp), %rax
movq (%rax), %rdi
addq 0x10(%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x1080
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::resize(unsigned long)
int MemoryBuffer::resize(size_t added)
{
	size_t nsize = bsize + added, n = 1;
	if (nsize < bsize) return -1;	// overflow

	if (nsize >= (((size_t)1) << (8 * sizeof(size_t) - 1))) n = nsize;
	else while (n < nsize) n = n << 1;
	
	unsigned char *nbuf = new (std::nothrow)unsigned char[n];
	if (nbuf == NULL) return -1;

	if (mbuf != NULL) {
		// copy old data, release it when need 
		memcpy(nbuf, mbuf, wptr);
		if (autoDelete) delete[] mbuf;
	}

	mbuf = nbuf;
	bsize = n;
	autoDelete = true;
	
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x38(%rbp)
movq 0x18(%rcx), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq $0x1, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq 0x18(%rcx), %rax
jae 0x5e92
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5f4f
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
cmpq %rax, -0x20(%rbp)
jb 0x5eac
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x5ec7
jmp 0x5eae
movq -0x28(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x5ec5
movq -0x28(%rbp), %rax
shlq %rax
movq %rax, -0x28(%rbp)
jmp 0x5eae
jmp 0x5ec7
movq -0x28(%rbp), %rdi
movq 0x30e6(%rip), %rsi      # 0x8fb8
callq 0x1140
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x5eeb
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5f4f
movq -0x38(%rbp), %rax
cmpq $0x0, (%rax)
je 0x5f31
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rdi
movq (%rax), %rsi
movq 0x10(%rax), %rdx
callq 0x1080
movq -0x38(%rbp), %rax
testb $0x1, 0x20(%rax)
je 0x5f2f
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x5f2d
movq -0x40(%rbp), %rdi
callq 0x10f0
jmp 0x5f2f
jmp 0x5f31
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x18(%rax)
movb $0x1, 0x20(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: roberty65[P]bServer/common/src/MemoryBuffer.cpp
// Function: MemoryBuffer::data(unsigned char*, unsigned long, bool)
unsigned char *MemoryBuffer::data(unsigned char *_buf, size_t _size, bool _autoDelete)
{
	if (mbuf != NULL && autoDelete) delete[] mbuf;

	mbuf = _buf;
	bsize = _size;
	autoDelete = _autoDelete;

	return mbuf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, (%rax)
je 0x5faf
movq -0x28(%rbp), %rax
testb $0x1, 0x20(%rax)
je 0x5faf
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x5fad
movq -0x30(%rbp), %rdi
callq 0x10f0
jmp 0x5faf
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, (%rax)
movq -0x18(%rbp), %rcx
movq %rcx, 0x18(%rax)
movb -0x19(%rbp), %cl
andb $0x1, %cl
movb %cl, 0x20(%rax)
movq (%rax), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: roberty65[P]bServer/frame/share/src/Message.cpp
// Function: beyondy::Async::Message::init()
void Message::init()
{
	memset(&ts_byte_first, 0, sizeof ts_byte_first);	
	memset(&ts_enqueue, 0, sizeof ts_enqueue);	
	memset(&ts_dequeue, 0, sizeof ts_dequeue);	
	memset(&ts_process_end, 0, sizeof ts_process_end);
	memset(extra, 0, sizeof extra);
	attached = NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
addq $0x30, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1060
movq -0x10(%rbp), %rdi
addq $0x40, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1060
movq -0x10(%rbp), %rdi
addq $0x50, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1060
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x1060
movq -0x10(%rbp), %rdi
addq $0x70, %rdi
xorl %esi, %esi
movl $0x50, %edx
callq 0x1060
movq -0x10(%rbp), %rax
movq $0x0, 0xc0(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: jc-kim[P]swaptions/RanUnif.cpp
// Function: RanUnif(long*)
FTYPE RanUnif( long *s )
{
  // uniform random number generator
  long   ix, k1;
  FTYPE dRes;
  
  ix = *s;
  *s = ix+1;
  ix *= 1513517L;
	ix %= 2147483647L;
  k1 = ix/127773L;
  ix = 16807L*( ix - k1*127773L ) - k1 * 2836L;
  if (ix < 0) ix = ix + 2147483647L;
  //*s   = ix;
  dRes = (ix * 4.656612875e-10);
  return (dRes);
  
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rcx
addq $0x1, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
imulq $0x17182d, -0x10(%rbp), %rax # imm = 0x17182D
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cqto
idivq %rcx
movq %rdx, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl $0x1f31d, %ecx          # imm = 0x1F31D
cqto
idivq %rcx
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rax
imulq $0x1f31d, -0x18(%rbp), %rcx # imm = 0x1F31D
subq %rcx, %rax
imulq $0x41a7, %rax, %rax     # imm = 0x41A7
imulq $0xb14, -0x18(%rbp), %rcx # imm = 0xB14
subq %rcx, %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jge 0x270c
movq -0x10(%rbp), %rax
addq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
movq %rax, -0x10(%rbp)
cvtsi2sdq -0x10(%rbp), %xmm0
movsd 0x2916(%rip), %xmm1     # 0x5030
mulsd %xmm1, %xmm0
movsd %xmm0, -0x20(%rbp)
movsd -0x20(%rbp), %xmm0
popq %rbp
retq
nopw (%rax,%rax)
// File: jc-kim[P]swaptions/nr_routines.c
// Function: nrerror(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void nrerror(std::string error_text )
{
  fprintf(stderr,"Numerical Recipes run-time error...\n");
  fprintf(stderr,"%s\n",error_text.c_str());
  fprintf(stderr,"...now exiting to system...\n");
  exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x18(%rbp)
movq %rdi, -0x8(%rbp)
movq 0x4891(%rip), %rax      # 0x6fd8
movq (%rax), %rdi
leaq 0x28e7(%rip), %rsi      # 0x5038
movb $0x0, %al
callq 0x21d0
movq -0x18(%rbp), %rdi
movq 0x4875(%rip), %rax      # 0x6fd8
movq (%rax), %rax
movq %rax, -0x10(%rbp)
callq 0x2070
movq -0x10(%rbp), %rdi
movq %rax, %rdx
leaq 0x28e0(%rip), %rsi      # 0x505d
movb $0x0, %al
callq 0x21d0
movq 0x484d(%rip), %rax      # 0x6fd8
movq (%rax), %rdi
leaq 0x28cc(%rip), %rsi      # 0x5061
movb $0x0, %al
callq 0x21d0
movl $0x1, %edi
callq 0x2190
nopw %cs:(%rax,%rax)
// File: jc-kim[P]swaptions/HJM_SimPath_Forward_Blocking.cpp
// Function: serialB(double*, double*, int, int, int)
void serialB(FTYPE *pdZ, FTYPE *randZ, int BLOCKSIZE, int iN, int iFactors)
{
  for(int l = 0; l < iFactors; l++){
    for(int b = 0; b < BLOCKSIZE; b++){
      for (int j = 1; j < iN; j++){
        pdZ[l * iN * BLOCKSIZE + BLOCKSIZE*j + b]= CumNormalInv(randZ[l * iN * BLOCKSIZE + BLOCKSIZE * j + b]);  /* 18% of the total executition time */
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x2d5e
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x2d4e
movl $0x1, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x2d41
movq -0x10(%rbp), %rax
movl -0x20(%rbp), %ecx
imull -0x18(%rbp), %ecx
imull -0x14(%rbp), %ecx
movl -0x14(%rbp), %edx
imull -0x28(%rbp), %edx
addl %edx, %ecx
addl -0x24(%rbp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x23c0
movq -0x8(%rbp), %rax
movl -0x20(%rbp), %ecx
imull -0x18(%rbp), %ecx
imull -0x14(%rbp), %ecx
movl -0x14(%rbp), %edx
imull -0x28(%rbp), %edx
addl %edx, %ecx
addl -0x24(%rbp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x2ce3
jmp 0x2d43
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x2cd4
jmp 0x2d50
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x2cc1
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jc-kim[P]swaptions/HJM.cpp
// Function: Discount_Factors_Blocking(double*, int, double, double*, int, double*)
int Discount_Factors_Blocking(FTYPE *pdDiscountFactors, 
    int iN, 
    FTYPE dYears, 
    FTYPE *pdRatePath,
    int BLOCKSIZE,
		FTYPE *pdexpRes) {
  int i, j, b;
  FTYPE ddelt = (FTYPE)(dYears/iN); //HJM time-step length

  //precompute the exponientials
  for (j = 0; j < (iN - 1) * BLOCKSIZE; j++) pdexpRes[j] = -pdRatePath[j] * ddelt;
  for (j = 0; j < (iN - 1) * BLOCKSIZE; j++) pdexpRes[j] = exp(pdexpRes[j]);

  //initializing the discount factor vector
  for (i = 0; i < iN * BLOCKSIZE; i++) pdDiscountFactors[i] = 1.0;

  for (i = 1; i < iN; i++){
    for (b = 0; b < BLOCKSIZE; b++){
      for (j = 0; j < i; j++){
        pdDiscountFactors[i * BLOCKSIZE + b] *= pdexpRes[j * BLOCKSIZE + b];
      }
    }
  } 

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movsd %xmm0, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq %r8, -0x30(%rbp)
movsd -0x18(%rbp), %xmm0
cvtsi2sdl -0xc(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
imull -0x24(%rbp), %ecx
cmpl %ecx, %eax
jge 0x340b
movq -0x20(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd -0x48(%rbp), %xmm0
movq -0x30(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x33b9
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
imull -0x24(%rbp), %ecx
cmpl %ecx, %eax
jge 0x344d
movq -0x30(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
callq 0x2250
movq -0x30(%rbp), %rax
movslq -0x38(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x3412
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movl -0xc(%rbp), %ecx
imull -0x24(%rbp), %ecx
cmpl %ecx, %eax
jge 0x3482
movq -0x8(%rbp), %rax
movslq -0x34(%rbp), %rcx
movsd 0x1ba6(%rip), %xmm0     # 0x5018
movsd %xmm0, (%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x3454
movl $0x1, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x3505
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x34f8
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x34(%rbp), %eax
jge 0x34eb
movq -0x30(%rbp), %rax
movl -0x38(%rbp), %ecx
imull -0x24(%rbp), %ecx
addl -0x3c(%rbp), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x8(%rbp), %rax
movl -0x34(%rbp), %ecx
imull -0x24(%rbp), %ecx
addl -0x3c(%rbp), %ecx
movslq %ecx, %rcx
mulsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x34a7
jmp 0x34ed
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x3498
jmp 0x34fa
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x3489
movl $0x1, %eax
addq $0x50, %rsp
popq %rbp
retq
// File: jc-kim[P]swaptions/HJM_Securities.cpp
// Function: parseOpt(int, char**)
void parseOpt(int argc, char** argv) {
  if(argc == 1)
  {
    fprintf(stderr," usage: \n\t-ns [number of swaptions (should be > number of threads]\n\t-sm [number of simulations]\n\t-nt [number of threads]\n"); 
    exit(1);
  }

  for (int j=1; j<argc; j++) {
    if (!strcmp("-sm", argv[j])) {NUM_TRIALS = atol(argv[++j]);}
    else if (!strcmp("-nt", argv[j])) {nThreads = atoi(argv[++j]);} 
    else if (!strcmp("-ns", argv[j])) {nSwaptions = atoi(argv[++j]);} 
    else if (!strcmp("-md", argv[j])) {MAX_DEV = atoi(argv[++j]);}
    else {
      fprintf(stderr," usage: \n\t-ns [number of swaptions (should be > number of threads]\n\t-sm [number of simulations]\n\t-nt [number of threads]\n"); 
    }
  }

  if(nSwaptions < nThreads) {
    nSwaptions = nThreads; 
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x1, -0x4(%rbp)
jne 0x40d7
movq 0x2f1c(%rip), %rax      # 0x6fd8
movq (%rax), %rdi
leaq 0x1110(%rip), %rsi      # 0x51d6
movb $0x0, %al
callq 0x21d0
movl $0x1, %edi
callq 0x2190
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x4216
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x1153(%rip), %rdi      # 0x5250
callq 0x21c0
cmpl $0x0, %eax
jne 0x412b
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2180
movl %eax, 0x30ba(%rip)      # 0x71e0
jmp 0x4206
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x1116(%rip), %rdi      # 0x5254
callq 0x21c0
cmpl $0x0, %eax
jne 0x416c
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2200
movl %eax, 0x307d(%rip)      # 0x71e4
jmp 0x4204
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x10d9(%rip), %rdi      # 0x5258
callq 0x21c0
cmpl $0x0, %eax
jne 0x41aa
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2200
movl %eax, 0x3040(%rip)      # 0x71e8
jmp 0x4202
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x109f(%rip), %rdi      # 0x525c
callq 0x21c0
cmpl $0x0, %eax
jne 0x41e8
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2200
movl %eax, 0x3016(%rip)      # 0x71fc
jmp 0x4200
movq 0x2de9(%rip), %rax      # 0x6fd8
movq (%rax), %rdi
leaq 0xfdd(%rip), %rsi       # 0x51d6
movb $0x0, %al
callq 0x21d0
jmp 0x4202
jmp 0x4204
jmp 0x4206
jmp 0x4208
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x40de
movl 0x2fcc(%rip), %eax      # 0x71e8
cmpl 0x2fc2(%rip), %eax      # 0x71e4
jge 0x4230
movl 0x2fba(%rip), %eax      # 0x71e4
movl %eax, 0x2fb8(%rip)      # 0x71e8
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: jc-kim[P]swaptions/timers.c
// Function: timer_init()
void timer_init() {
  int i;
  for (i = 0; i < NUM_TIMERS; i++) {
    t_start[i] = 0.0;
    t_elapsed[i] = 0.0;
    t_count[i] = 0;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x0, -0x4(%rbp)
cmpl $0x40, -0x4(%rbp)
jge 0x4ab4
movslq -0x4(%rbp), %rcx
leaq 0x27a4(%rip), %rax      # 0x7220
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movslq -0x4(%rbp), %rcx
leaq 0x2991(%rip), %rax      # 0x7420
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movslq -0x4(%rbp), %rcx
leaq 0x2b7e(%rip), %rax      # 0x7620
movl $0x0, (%rax,%rcx,4)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x4a6b
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: davmac314[P]dinit/src/../dasynq/include/dasynq.h
// Function: dasynq::v2::dprivate::timer<dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>>* dasynq::v2::dprivate::timer<dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>>::add_timer<do_system_shutdown(shutdown_type_t)::$_0>(dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>&, dasynq::clock_type, bool, timespec const&, timespec const&, do_system_shutdown(shutdown_type_t)::$_0)
static timer<EventLoop> *add_timer(EventLoop &eloop, clock_type clock, bool relative,
            const timespec &timeout, const timespec &interval, T watch_hndlr)
    {
        class lambda_timer : public timer_impl<event_loop_t, lambda_timer>
        {
            private:
            T watch_hndlr;

            public:
            lambda_timer(T watch_handlr_a) : watch_hndlr(watch_handlr_a)
            {
                //
            }

            rearm timer_expiry(event_loop_t &eloop, int intervals)
            {
                return watch_hndlr(eloop, intervals);
            }

            void watch_removed() noexcept override
            {
                delete this;
            }
        };

        lambda_timer * lt = new lambda_timer(watch_hndlr);
        lt->add_timer(eloop, clock);
        if (relative) {
            lt->arm_timer_rel(eloop, timeout, interval);
        }
        else {
            lt->arm_timer(eloop, timeout, interval);
        }
        return lt;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movb %dl, %al
movq %r9, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
andb $0x1, %al
movb %al, -0x15(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0x58, %edi
callq 0x3280
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rsi
callq 0x4980
jmp 0x4269
movq -0x50(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movl $0x32, %ecx
callq 0xcdd0
testb $0x1, -0x15(%rbp)
je 0x42bf
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xce20
jmp 0x42d4
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movl $0x58, %esi
callq 0x3290
jmp 0x42de
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0xce60
movq -0x30(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x3410
nopw (%rax,%rax)
// File: davmac314[P]dinit/src/shutdown.cc
// Function: swap_off(dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>&, subproc_buffer&)
static void swap_off(loop_t &loop, subproc_buffer &sub_buf)
{
    try {
#ifdef __NetBSD__
        const char * swapoff_args[] = { "/sbin/swapctl", "-U", nullptr };
#else
        const char * swapoff_args[] = { "/sbin/swapoff", "-a", nullptr };
#endif
        run_process(swapoff_args, loop, sub_buf);
    }
    catch (std::exception &e) {
        sub_buf.append("Couldn't fork for swapoff: ");
        sub_buf.append(e.what());
        sub_buf.append("\n");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x15389(%rip), %rax     # 0x19920
movq %rax, -0x20(%rbp)
movaps 0x1536e(%rip), %xmm0    # 0x19910
movaps %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x42f0
movq %rax, -0x58(%rbp)
jmp 0x45bd
movq -0x58(%rbp), %rax
movq %rax, -0x44(%rbp)
jmp 0x4638
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4653
movq -0x38(%rbp), %rdi
callq 0x30d0
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
leaq 0xd3b5(%rip), %rsi      # 0x119ac
callq 0x5370
jmp 0x45fe
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x5370
jmp 0x4621
movq -0x10(%rbp), %rdi
leaq 0xd1d4(%rip), %rsi      # 0x11800
callq 0x5370
jmp 0x4633
callq 0x33e0
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x33e0
jmp 0x4651
jmp 0x4653
movq -0x38(%rbp), %rdi
callq 0x3410
movq %rax, %rdi
callq 0x52b0
nopw %cs:(%rax,%rax)
// File: davmac314[P]dinit/src/shutdown.cc
// Function: unmount_disks(dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>&, subproc_buffer&)
static void unmount_disks(loop_t &loop, subproc_buffer &sub_buf)
{
    try {
#ifdef __NetBSD__
        const char * unmount_args[] = { "/sbin/umount", "-a", nullptr };
#else
        const char * unmount_args[] = { "/bin/umount", "-a", "-r", nullptr };
#endif
        run_process(unmount_args, loop, sub_buf);
    }
    catch (std::exception &e) {
        sub_buf.append("Couldn't fork for umount: ");
        sub_buf.append(e.what());
        sub_buf.append("\n");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movaps 0x15279(%rip), %xmm0    # 0x19900
movaps %xmm0, -0x20(%rbp)
movaps 0x1525e(%rip), %xmm0    # 0x198f0
movaps %xmm0, -0x30(%rbp)
movq -0x8(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x42f0
movq %rax, -0x58(%rbp)
jmp 0x46ad
movq -0x58(%rbp), %rax
movq %rax, -0x44(%rbp)
jmp 0x4728
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4743
movq -0x38(%rbp), %rdi
callq 0x30d0
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
leaq 0xd29c(%rip), %rsi      # 0x11983
callq 0x5370
jmp 0x46ee
movq -0x10(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x5370
jmp 0x4711
movq -0x10(%rbp), %rdi
leaq 0xd0e4(%rip), %rsi      # 0x11800
callq 0x5370
jmp 0x4723
callq 0x33e0
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x33e0
jmp 0x4741
jmp 0x4743
movq -0x38(%rbp), %rdi
callq 0x3410
movq %rax, %rdi
callq 0x52b0
nopw %cs:(%rax,%rax)
// File: davmac314[P]dinit/src/../dasynq/include/dasynq.h
// Function: dasynq::v2::dprivate::child_proc_watcher_impl<dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>, run_process(char const**, dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>&, subproc_buffer&)::sp_watcher_t>::dispatch(void*)
void dispatch(void *loop_ptr) noexcept override
    {
        EventLoop &loop = *static_cast<EventLoop *>(loop_ptr);
        loop_access::get_base_lock(loop).unlock();

        auto rearm_type = static_cast<Derived *>(this)->status_change(loop, this->watch_pid, this->child_status);

        loop_access::get_base_lock(loop).lock();

        if (rearm_type != rearm::REMOVED) {

            this->active = false;
            if (this->deleteme) {
                // We don't want a watch that is marked "deleteme" to re-arm itself.
                rearm_type = rearm::REMOVE;
            }

            loop_access::process_child_watch_rearm(loop, this, rearm_type);

            // rearm_type = loop.process??;
            post_dispatch(loop, this, rearm_type);
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5fc0
movq %rax, %rdi
callq 0x5fe0
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl 0x30(%rdi), %edx
movq 0x34(%rdi), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rcx
callq 0x4950
movl %eax, -0x2c(%rbp)
jmp 0x4852
movl -0x2c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5fc0
movq %rax, %rdi
callq 0x6030
cmpl $0x4, -0x1c(%rbp)
je 0x48b5
movq -0x38(%rbp), %rax
movb 0xc(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0xc(%rax)
movb 0xc(%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x4895
movl $0x3, -0x1c(%rbp)
movq -0x38(%rbp), %rsi
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %edx
callq 0x9cc0
movq -0x38(%rbp), %rsi
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %edx
callq 0x6070
addq $0x40, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x52b0
nopw %cs:(%rax,%rax)
// File: davmac314[P]dinit/src/../dasynq/include/dasynq.h
// Function: dasynq::v2::dprivate::timer_impl<dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>, dasynq::v2::dprivate::timer<dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>>* dasynq::v2::dprivate::timer<dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>>::add_timer<do_system_shutdown(shutdown_type_t)::$_0>(dasynq::v2::event_loop<dasynq::null_mutex, dasynq::v2::default_traits<dasynq::null_mutex>>&, dasynq::clock_type, bool, timespec const&, timespec const&, do_system_shutdown(shutdown_type_t)::$_0)::lambda_timer>::dispatch(void*)
void dispatch(void *loop_ptr) noexcept override
    {
        EventLoop &loop = *static_cast<EventLoop *>(loop_ptr);
        loop_access::get_base_lock(loop).unlock();

        auto intervals_report = this->intervals;
        this->intervals = 0;
        auto rearm_type = static_cast<Derived *>(this)->timer_expiry(loop, intervals_report);

        loop_access::get_base_lock(loop).lock();

        if (rearm_type != rearm::REMOVED) {

            this->active = false;
            if (this->deleteme) {
                // We don't want a watch that is marked "deleteme" to re-arm itself.
                rearm_type = rearm::REMOVE;
            }

            loop_access::process_timer_rearm(loop, this, rearm_type);

            post_dispatch(loop, this, rearm_type);
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5fc0
movq %rax, %rdi
callq 0x5fe0
movq -0x30(%rbp), %rdi
movl 0x48(%rdi), %eax
movl %eax, -0x1c(%rbp)
movl $0x0, 0x48(%rdi)
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq 0x4bc0
movl %eax, -0x24(%rbp)
jmp 0x4a53
movl -0x24(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5fc0
movq %rax, %rdi
callq 0x6030
cmpl $0x4, -0x20(%rbp)
je 0x4ab6
movq -0x30(%rbp), %rax
movb 0xc(%rax), %cl
andb $-0x2, %cl
orb $0x0, %cl
movb %cl, 0xc(%rax)
movb 0xc(%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x4a96
movl $0x3, -0x20(%rbp)
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdi
movl -0x20(%rbp), %edx
callq 0xd070
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdi
movl -0x20(%rbp), %edx
callq 0x6070
addq $0x30, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x52b0
nopw %cs:(%rax,%rax)
// File: davmac314[P]dinit/src/includes/dinit-util.h
// Function: base_name(char const*)
inline const char *base_name(const char *path) noexcept
{
    const char * basen = path;
    const char * s = path;
    while (*s != 0) {
        if (*s == '/') basen = s + 1;
        s++;
    }
    return basen;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x4eca
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0x4ebc
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x4e98
movq -0x10(%rbp), %rax
popq %rbp
retq
// File: davmac314[P]dinit/src/includes/dinit-client.h
// Function: get_passed_cfd()
inline int get_passed_cfd()
{
    int socknum = -1;
    char * dinit_cs_fd_env = getenv("DINIT_CS_FD");
    if (dinit_cs_fd_env != nullptr) {
        char * endptr;
        long int cfdnum = strtol(dinit_cs_fd_env, &endptr, 10);
        if (endptr != dinit_cs_fd_env) {
            socknum = (int) cfdnum;
            // Set blocking mode (and validate file descriptor):
            errno = 0;
            int sock_flags = fcntl(socknum, F_GETFL, 0);
            if (sock_flags == -1 && errno != 0) {
                socknum = 0;
            }
            else {
                fcntl(socknum, F_SETFL, sock_flags & ~O_NONBLOCK);
            }
        }
    }
    return socknum;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
leaq 0xc9b3(%rip), %rdi      # 0x118d9
callq 0x32c0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x4fb1
movq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
movl $0xa, %edx
callq 0x3360
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x10(%rbp), %rax
je 0x4faf
movq -0x20(%rbp), %rax
movl %eax, -0x4(%rbp)
callq 0x3030
movl $0x0, (%rax)
movl -0x4(%rbp), %edi
movl $0x3, %esi
xorl %edx, %edx
movb $0x0, %al
callq 0x3150
movl %eax, -0x24(%rbp)
cmpl $-0x1, -0x24(%rbp)
jne 0x4f95
callq 0x3030
cmpl $0x0, (%rax)
je 0x4f95
movl $0x0, -0x4(%rbp)
jmp 0x4fad
movl -0x4(%rbp), %edi
movl -0x24(%rbp), %edx
andl $0xfffff7ff, %edx       # imm = 0xFFFFF7FF
movl $0x4, %esi
movb $0x0, %al
callq 0x3150
jmp 0x4faf
jmp 0x4fb1
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)