LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/L3GD20H/L3GD20H.cpp
// Function: L3GD20H::getAngularVelocityZ()
int16_t L3GD20H::getAngularVelocityZ() {
	I2Cdev::readBytes(devAddr, L3GD20H_RA_OUT_Z_L | 0x80, 2, buffer);
	if (endianMode == L3GD20H_LITTLE_ENDIAN) {
		return (((int16_t)buffer[1]) << 8) | buffer[0];
	} else {
		return (((int16_t)buffer[0]) << 8) | buffer[1];
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %r14
movq 0x1c3bd(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0xac, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x1f630
cmpb $0x0, 0x7(%rbx)
je 0x2abb1
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
jmp 0x2abb5
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LM73/LM73.cpp
// Function: LM73::getTemp()
float LM73::getTemp() {
    uint16_t buf;
    int16_t temp;
    I2Cdev::readWord(devAddr, LM73_RA_TEMP, &buf);
    temp = buf;
    temp = (temp>>2);
    return 0.03125f * (float)temp;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movzbl (%rdi), %edi
movq 0x1bb61(%rip), %rax     # 0x46f48
movzwl (%rax), %ecx
leaq 0xe(%rsp), %rbx
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1f6a0
movswl (%rbx), %eax
sarl $0x2, %eax
cvtsi2ss %eax, %xmm0
mulss 0xac79(%rip), %xmm0     # 0x36084
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LM73/LM73.cpp
// Function: LM73::setResolution(unsigned char)
void LM73::setResolution(uint8_t resolution) {
    if(10 < resolution && resolution < 15) {
        LM73::getCtrlStat();
        devCtrlStat.bit.RES = resolution - 11;
        LM73::setCtrlStat(devCtrlStat);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
leal -0xb(%r14), %eax
cmpb $0x3, %al
ja 0x2b46d
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rdx
movq 0x1bb16(%rip), %rax     # 0x46f48
movzwl (%rax), %ecx
movl $0x4, %esi
callq 0x1f6d0
movb 0x1(%rbx), %al
shlb $0x5, %r14b
addb $0x20, %r14b
andb $0x60, %r14b
andb $-0x61, %al
orb %r14b, %al
movb %al, 0x8(%rbx)
movzbl (%rbx), %edi
movzbl %al, %edx
movl $0x4, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1f5d0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::setAccelOutputDataRate(unsigned short)
void LSM303DLHC::setAccelOutputDataRate(uint16_t rate) {
  uint8_t writeVal;
  
  if (rate == 0) {
    writeVal = LSM303DLHC_ODR_RATE_POWERDOWN;
  } else if (rate == 1) {
    writeVal = LSM303DLHC_ODR_RATE_1;
  } else if (rate == 10) {
    writeVal = LSM303DLHC_ODR_RATE_10;
  } else if (rate == 25) {
    writeVal = LSM303DLHC_ODR_RATE_25;
  } else if (rate == 50) {
    writeVal = LSM303DLHC_ODR_RATE_50;
  } else if (rate == 100) {
    writeVal = LSM303DLHC_ODR_RATE_100;
  } else if (rate == 200) {
    writeVal = LSM303DLHC_ODR_RATE_200;
  } else if (rate == 400) {
    writeVal = LSM303DLHC_ODR_RATE_400;
  } else if (rate == 1620) {
    writeVal = LSM303DLHC_ODR_RATE_1620_LP;
  } else if (rate == 1344) {
    writeVal = LSM303DLHC_ODR_RATE_1344_N_5376_LP;
  } else if (rate == 5376) {
    writeVal = LSM303DLHC_ODR_RATE_1344_N_5376_LP;
  }
  
  I2Cdev::writeBits(devAddrA, LSM303DLHC_RA_CTRL_REG1_A, LSM303DLHC_ODR_BIT,
    LSM303DLHC_ODR_LENGTH, writeVal); 
}

// Assembly:
xorl %eax, %eax
cmpl $0xc7, %esi
jg 0x2b5a2
cmpl $0x18, %esi
jle 0x2b5c6
cmpl $0x19, %esi
je 0x2b5f0
cmpl $0x32, %esi
je 0x2b5f4
cmpl $0x64, %esi
jne 0x2b5fa
movb $0x5, %al
jmp 0x2b5fa
cmpl $0x53f, %esi            # imm = 0x53F
jle 0x2b5d4
cmpl $0x540, %esi            # imm = 0x540
je 0x2b5c2
cmpl $0x654, %esi            # imm = 0x654
je 0x2b5f8
cmpl $0x1500, %esi           # imm = 0x1500
jne 0x2b5fa
movb $0x9, %al
jmp 0x2b5fa
cmpl $0x1, %esi
je 0x2b5e8
cmpl $0xa, %esi
jne 0x2b5fa
movb $0x2, %al
jmp 0x2b5fa
cmpl $0xc8, %esi
je 0x2b5ec
cmpl $0x190, %esi            # imm = 0x190
jne 0x2b5fa
movb $0x7, %al
jmp 0x2b5fa
movb $0x1, %al
jmp 0x2b5fa
movb $0x6, %al
jmp 0x2b5fa
movb $0x3, %al
jmp 0x2b5fa
movb $0x4, %al
jmp 0x2b5fa
movb $0x8, %al
movzbl (%rdi), %edi
movzbl %al, %r8d
movl $0x20, %esi
movl $0x7, %edx
movl $0x4, %ecx
jmp 0x1f6b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::getAcceleration(short*, short*, short*)
void LSM303DLHC::getAcceleration(int16_t* x, int16_t* y, int16_t* z) {
  I2Cdev::readBytes(devAddrA, LSM303DLHC_RA_OUT_X_L_A | 0x80, 6, buffer);
  if (endianMode == LSM303DLHC_LITTLE_ENDIAN) {
    *x = (((int16_t)buffer[1]) << 8) | buffer[0];
    *y = (((int16_t)buffer[3]) << 8) | buffer[2];
    *z = (((int16_t)buffer[5]) << 8) | buffer[4];
  } else {
    *x = (((int16_t)buffer[0]) << 8) | buffer[1];
    *y = (((int16_t)buffer[2]) << 8) | buffer[3];
    *z = (((int16_t)buffer[4]) << 8) | buffer[5];
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movzbl (%rdi), %edi
leaq 0x2(%r14), %rcx
movq 0x1afc2(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0xa8, %esi
movl $0x6, %edx
callq 0x1f630
cmpb $0x0, 0x8(%r14)
je 0x2bfc6
movzwl 0x2(%r14), %eax
rolw $0x8, %ax
movw %ax, (%r12)
movzwl 0x4(%r14), %eax
rolw $0x8, %ax
movw %ax, (%r15)
movzwl 0x6(%r14), %eax
rolw $0x8, %ax
jmp 0x2bfde
movzwl 0x2(%r14), %eax
movw %ax, (%r12)
movzwl 0x4(%r14), %eax
movw %ax, (%r15)
movzwl 0x6(%r14), %eax
movw %ax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::getAccelerationX()
int16_t LSM303DLHC::getAccelerationX() {
  I2Cdev::readBytes(devAddrA, LSM303DLHC_RA_OUT_X_L_A | 0x80, 2, buffer);
  if (endianMode == LSM303DLHC_LITTLE_ENDIAN) {
    return (((int16_t)buffer[1]) << 8) | buffer[0];
  } else {
    return (((int16_t)buffer[0]) << 8) | buffer[1];
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x2(%rbx), %r14
movq 0x1af45(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0xa8, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x1f630
cmpb $0x0, 0x8(%rbx)
je 0x2c029
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
jmp 0x2c02d
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::getAccelerationY()
int16_t LSM303DLHC::getAccelerationY() {
  I2Cdev::readBytes(devAddrA, LSM303DLHC_RA_OUT_Y_L_A | 0x80, 2, buffer);
  if (endianMode == LSM303DLHC_LITTLE_ENDIAN) {
    return (((int16_t)buffer[1]) << 8) | buffer[0];
  } else {
    return (((int16_t)buffer[0]) << 8) | buffer[1];
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x2(%rbx), %r14
movq 0x1aefd(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0xaa, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x1f630
cmpb $0x0, 0x8(%rbx)
je 0x2c071
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
jmp 0x2c075
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::getAccelerationZ()
int16_t LSM303DLHC::getAccelerationZ() {
  I2Cdev::readBytes(devAddrA, LSM303DLHC_RA_OUT_Z_L_A | 0x80, 2, buffer);
  if (endianMode == LSM303DLHC_LITTLE_ENDIAN) {
    return (((int16_t)buffer[1]) << 8) | buffer[0];
  } else {
    return (((int16_t)buffer[0]) << 8) | buffer[1];
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x2(%rbx), %r14
movq 0x1aeb5(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl $0xac, %esi
movl $0x2, %edx
movq %r14, %rcx
callq 0x1f630
cmpb $0x0, 0x8(%rbx)
je 0x2c0b9
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
jmp 0x2c0bd
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::setMagOutputDataRate(unsigned char)
void LSM303DLHC::setMagOutputDataRate(uint8_t rate){
  uint8_t writeBit;
  if (rate == 0){
    writeBit = LSM303DLHC_DO_RATE_0;
  } else if (rate == 1){
    writeBit = LSM303DLHC_DO_RATE_1;
  } else if (rate == 3){
    writeBit = LSM303DLHC_DO_RATE_3;
  } else if (rate == 7){
    writeBit = LSM303DLHC_DO_RATE_7;
  } else if (rate == 15){
    writeBit = LSM303DLHC_DO_RATE_15;
  } else if (rate == 30){
    writeBit = LSM303DLHC_DO_RATE_30;
  } else if (rate == 75){
    writeBit = LSM303DLHC_DO_RATE_75;
  } else if (rate == 220){
    writeBit = LSM303DLHC_DO_RATE_220;
  }

  I2Cdev::writeBits(devAddrM, LSM303DLHC_RA_CRA_REG_M, LSM303DLHC_DO_BIT,
    LSM303DLHC_DO_LENGTH, writeBit);
}

// Assembly:
xorl %eax, %eax
cmpl $0xe, %esi
jle 0x2ca86
cmpl $0x4a, %esi
jg 0x2ca99
cmpl $0xf, %esi
je 0x2caae
cmpl $0x1e, %esi
jne 0x2cab8
movb $0x5, %al
jmp 0x2cab8
cmpl $0x1, %esi
je 0x2caaa
cmpl $0x3, %esi
je 0x2cab6
cmpl $0x7, %esi
jne 0x2cab8
movb $0x3, %al
jmp 0x2cab8
cmpl $0x4b, %esi
je 0x2cab2
cmpl $0xdc, %esi
jne 0x2cab8
movb $0x7, %al
jmp 0x2cab8
movb $0x1, %al
jmp 0x2cab8
movb $0x4, %al
jmp 0x2cab8
movb $0x6, %al
jmp 0x2cab8
movb $0x2, %al
movzbl 0x1(%rdi), %edi
movzbl %al, %r8d
xorl %esi, %esi
movl $0x4, %edx
movl $0x3, %ecx
jmp 0x1f6b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::setMagGain(unsigned short)
void LSM303DLHC::setMagGain(uint16_t gain){
  uint8_t writeBit;
  if (gain == 230){
    writeBit = LSM303DLHC_GN_230;
  } else if (gain == 330){
    writeBit = LSM303DLHC_GN_330;
  } else if (gain == 400){
    writeBit = LSM303DLHC_GN_400;
  } else if (gain == 450){
    writeBit = LSM303DLHC_GN_450;
  } else if (gain == 670){
    writeBit = LSM303DLHC_GN_670;
  } else if (gain == 855){
    writeBit = LSM303DLHC_GN_855;
  } else if (gain == 1100){
    writeBit = LSM303DLHC_GN_1100;
  }

  I2Cdev::writeBits(devAddrM, LSM303DLHC_RA_CRB_REG_M, LSM303DLHC_GN_BIT, LSM303DLHC_GN_LENGTH,
    writeBit);
}

// Assembly:
movb $0x7, %al
cmpl $0x29d, %esi            # imm = 0x29D
jg 0x2cb3c
cmpl $0x14a, %esi            # imm = 0x14A
je 0x2cb58
cmpl $0x190, %esi            # imm = 0x190
je 0x2cb60
cmpl $0x1c2, %esi            # imm = 0x1C2
jne 0x2cb66
movb $0x4, %al
jmp 0x2cb66
cmpl $0x29e, %esi            # imm = 0x29E
je 0x2cb5c
cmpl $0x357, %esi            # imm = 0x357
je 0x2cb64
cmpl $0x44c, %esi            # imm = 0x44C
jne 0x2cb66
movb $0x1, %al
jmp 0x2cb66
movb $0x6, %al
jmp 0x2cb66
movb $0x3, %al
jmp 0x2cb66
movb $0x5, %al
jmp 0x2cb66
movb $0x2, %al
movzbl 0x1(%rdi), %edi
movzbl %al, %r8d
movl $0x1, %esi
movl $0x7, %edx
movl $0x3, %ecx
jmp 0x1f6b0
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::getMagGain()
uint16_t LSM303DLHC::getMagGain(){
  I2Cdev::readBits(devAddrM, LSM303DLHC_RA_CRB_REG_M, LSM303DLHC_GN_BIT, LSM303DLHC_GN_LENGTH,
    buffer);
  uint8_t gain = buffer[0];
  if (gain == LSM303DLHC_GN_230){
    return 230; 
  } else if (gain == LSM303DLHC_GN_330){
    return 330; 
  } else if (gain == LSM303DLHC_GN_400){
    return 400; 
  } else if (gain == LSM303DLHC_GN_450){
    return 450; 
  } else if (gain == LSM303DLHC_GN_670){
    return 670; 
  } else if (gain == LSM303DLHC_GN_855){
    return 855; 
  } else if (gain == LSM303DLHC_GN_1100){
    return 1100; 
  } 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl 0x1(%rdi), %edi
leaq 0x2(%rbx), %r8
movq 0x1a3b3(%rip), %rax     # 0x46f48
movzwl (%rax), %r9d
movl $0x1, %esi
movl $0x7, %edx
movl $0x3, %ecx
callq 0x1f930
movb 0x2(%rbx), %cl
addb $-0x2, %cl
movw $0x44c, %ax             # imm = 0x44C
cmpb $0x5, %cl
ja 0x2cbca
movzbl %cl, %eax
leaq 0x94d6(%rip), %rcx      # 0x3609c
movzwl (%rcx,%rax,2), %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MPR121/MPR121.cpp
// Function: MPR121::getTouchStatus()
uint16_t MPR121::getTouchStatus() {
  uint16_t statusBuf;
  uint8_t buf;
  I2Cdev::readByte(m_devAddr, ELE0_ELE7_TOUCH_STATUS, &buf);
  statusBuf = buf;
  I2Cdev::readByte(m_devAddr, ELE8_ELE11_ELEPROX_TOUCH_STATUS, &buf);
  statusBuf += (buf << 8);
  return statusBuf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
movq 0x19e98(%rip), %r15     # 0x46f48
movzwl (%r15), %ecx
leaq 0x7(%rsp), %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x1f6d0
movzbl (%r14), %ebp
movzbl (%rbx), %edi
movzwl (%r15), %ecx
movl $0x1, %esi
movq %r14, %rdx
callq 0x1f6d0
movzbl (%r14), %eax
shll $0x8, %eax
orl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MPR121/MPR121.cpp
// Function: MPR121::serviceCallbacks()
void MPR121::serviceCallbacks() {
  for (uint8_t channel = 0; channel < NUM_CHANNELS; channel++) { 
    bool touchStatus = getTouchStatus(channel);
    if (touchStatus != m_prevTouchStatus[channel]) {
      for (uint8_t type = 0; type < NUM_EVENTS; type++) { 
        const CallbackPtrType cb = touchStatus ? m_callbackMap[channel][TOUCHED] : m_callbackMap[channel][RELEASED]; 
        if (cb != 0) {
          cb();           
        }
      }
      m_prevTouchStatus[channel] = touchStatus; 
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
xorl %r15d, %r15d
movzbl %r15b, %esi
movq %rbx, %rdi
callq 0x1f370
cmpb %al, 0xc8(%rbx,%r15)
je 0x2d167
movl %eax, %ebp
movq %r15, %rax
shlq $0x4, %rax
leaq (%r14,%rax), %rcx
leaq (%r14,%rax), %r12
addq $0x8, %r12
testb %bpl, %bpl
cmovneq %rcx, %r12
movb $0x1, %r13b
movq (%r12), %rax
testq %rax, %rax
je 0x2d153
callq *%rax
testb $0x1, %r13b
movl $0x0, %r13d
jne 0x2d148
movb %bpl, 0xc8(%rbx,%r15)
incq %r15
cmpq $0xc, %r15
jne 0x2d113
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::getFIFOBytes(unsigned char*, unsigned char)
void MPU6050::getFIFOBytes(uint8_t *data, uint8_t length) {
    if(length > 0){
        I2Cdev::readBytes(devAddr, MPU6050_RA_FIFO_R_W, length, data);
    } else {
    	*data = 0;
    }
}

// Assembly:
movq %rsi, %rcx
testl %edx, %edx
je 0x2f05a
movzbl (%rdi), %edi
movq 0x17eff(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movzbl %dl, %edx
movl $0x74, %esi
jmp 0x1f630
movb $0x0, (%rcx)
retq
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::readMemoryBlock(unsigned char*, unsigned short, unsigned char, unsigned char)
void MPU6050::readMemoryBlock(uint8_t *data, uint16_t dataSize, uint8_t bank, uint8_t address) {
    setMemoryBank(bank);
    setMemoryStartAddress(address);
    uint8_t chunkSize;
    for (uint16_t i = 0; i < dataSize;) {
        // determine correct chunk size according to bank position and data size
        chunkSize = MPU6050_DMP_MEMORY_CHUNK_SIZE;

        // make sure we don't go past the data size
        if (i + chunkSize > dataSize) chunkSize = dataSize - i;

        // make sure this chunk doesn't go past the bank boundary (256 bytes)
        if (chunkSize > 256 - address) chunkSize = 256 - address;

        // read the chunk of data as specified
        I2Cdev::readBytes(devAddr, MPU6050_RA_MEM_R_W, chunkSize, data + i);
        
        // increase byte index by [chunkSize]
        i += chunkSize;

        // uint8_t automatically wraps to 0 at 256
        address += chunkSize;

        // if we aren't done, update bank (if necessary) and address
        if (i < dataSize) {
            if (address == 0) bank++;
            setMemoryBank(bank);
            setMemoryStartAddress(address);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r12d
movl %edx, %ebx
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
movzbl (%rdi), %edi
movl %ecx, 0xc(%rsp)
movl %ecx, %edx
andl $0x1f, %edx
movl $0x6d, %esi
callq 0x1f5d0
movzbl (%r15), %edi
movl $0x6e, %esi
movl %r12d, %edx
callq 0x1f5d0
testl %ebx, %ebx
je 0x2fa8d
xorl %r14d, %r14d
xorl %ebp, %ebp
leal 0x10(%r14), %eax
cmpl %ebx, %eax
ja 0x2f9fa
movl $0x10, %eax
jmp 0x2f9fe
movl %ebx, %eax
subl %ebp, %eax
movl %eax, %ecx
movl $0xff, %esi
andl %esi, %ecx
movzbl %r12b, %edx
movl $0x100, %r13d           # imm = 0x100
subl %edx, %r13d
cmpl %ecx, %r13d
cmovael %eax, %r13d
movzbl (%r15), %edi
movl %r14d, %ecx
addq 0x10(%rsp), %rcx
movq 0x1751a(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl %r13d, %ebp
andl %esi, %ebp
movl $0x6f, %esi
movl %ebp, %edx
callq 0x1f630
addl %r14d, %ebp
movzwl %bp, %r14d
cmpl %ebx, %r14d
jae 0x2fa8d
addb %r12b, %r13b
cmpb $0x1, %r13b
movl 0xc(%rsp), %eax
adcb $0x0, %al
movl %eax, 0xc(%rsp)
andb $0x1f, %al
movzbl (%r15), %edi
movzbl %al, %edx
movl $0x6d, %esi
callq 0x1f5d0
movzbl (%r15), %edi
movzbl %r13b, %edx
movl $0x6e, %esi
callq 0x1f5d0
movl %r13d, %r12d
jmp 0x2f9eb
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::CalibrateGyro(unsigned char)
void MPU6050::CalibrateGyro(uint8_t Loops ) {
  double kP = 0.3;
  double kI = 90;
  float x;
  x = (100 - map(Loops, 1, 5, 20, 0)) * .01;
  kP *= x;
  kI *= x;
  
  PID( 0x43,  kP, kI,  Loops);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %edi
movl $0x1, %esi
movl $0x5, %edx
movl $0x14, %ecx
xorl %r8d, %r8d
callq 0x1f2a0
movl $0x64, %ecx
subq %rax, %rcx
cvtsi2sd %rcx, %xmm0
mulsd 0x61bf(%rip), %xmm0     # 0x360a8
cvtsd2ss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
mulsd 0x61b4(%rip), %xmm0     # 0x360b0
cvtsd2ss %xmm0, %xmm0
mulss 0x61c0(%rip), %xmm1     # 0x360c8
movq %r14, %rdi
movl $0x43, %esi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1f950
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::CalibrateAccel(unsigned char)
void MPU6050::CalibrateAccel(uint8_t Loops ) {

	float kP = 0.3;
	float kI = 20;
	float x;
	x = (100 - map(Loops, 1, 5, 20, 0)) * .01;
	kP *= x;
	kI *= x;
	PID( 0x3B, kP, kI,  Loops);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %edi
movl $0x1, %esi
movl $0x5, %edx
movl $0x14, %ecx
xorl %r8d, %r8d
callq 0x1f2a0
movl $0x64, %ecx
subq %rax, %rcx
cvtsi2sd %rcx, %xmm0
mulsd 0x5cf3(%rip), %xmm0     # 0x360a8
cvtsd2ss %xmm0, %xmm1
movss 0x5d27(%rip), %xmm0     # 0x360e8
mulss %xmm1, %xmm0
mulss 0x5d1f(%rip), %xmm1     # 0x360ec
movq %r14, %rdi
movl $0x3b, %esi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1f950
nop
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MPU9150/MPU9150.cpp
// Function: MPU9150::readMemoryBlock(unsigned char*, unsigned short, unsigned char, unsigned char)
void MPU9150::readMemoryBlock(uint8_t *data, uint16_t dataSize, uint8_t bank, uint8_t address) {
    setMemoryBank(bank);
    setMemoryStartAddress(address);
    uint8_t chunkSize;
    for (uint16_t i = 0; i < dataSize;) {
        // determine correct chunk size according to bank position and data size
        chunkSize = MPU9150_DMP_MEMORY_CHUNK_SIZE;

        // make sure we don't go past the data size
        if (i + chunkSize > dataSize) chunkSize = dataSize - i;

        // make sure this chunk doesn't go past the bank boundary (256 bytes)
        if (chunkSize > 256 - address) chunkSize = 256 - address;

        // read the chunk of data as specified
        I2Cdev::readBytes(devAddr, MPU9150_RA_MEM_R_W, chunkSize, data + i);
        
        // increase byte index by [chunkSize]
        i += chunkSize;

        // uint8_t automatically wraps to 0 at 256
        address += chunkSize;

        // if we aren't done, update bank (if necessary) and address
        if (i < dataSize) {
            if (address == 0) bank++;
            setMemoryBank(bank);
            setMemoryStartAddress(address);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r12d
movl %edx, %ebx
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
movzbl (%rdi), %edi
movl %ecx, 0xc(%rsp)
movl %ecx, %edx
andl $0x1f, %edx
movl $0x6d, %esi
callq 0x1f5d0
movzbl (%r15), %edi
movl $0x6e, %esi
movl %r12d, %edx
callq 0x1f5d0
testl %ebx, %ebx
je 0x32c81
xorl %r14d, %r14d
xorl %ebp, %ebp
leal 0x10(%r14), %eax
cmpl %ebx, %eax
ja 0x32bee
movl $0x10, %eax
jmp 0x32bf2
movl %ebx, %eax
subl %ebp, %eax
movl %eax, %ecx
movl $0xff, %esi
andl %esi, %ecx
movzbl %r12b, %edx
movl $0x100, %r13d           # imm = 0x100
subl %edx, %r13d
cmpl %ecx, %r13d
cmovael %eax, %r13d
movzbl (%r15), %edi
movl %r14d, %ecx
addq 0x10(%rsp), %rcx
movq 0x14326(%rip), %rax     # 0x46f48
movzwl (%rax), %r8d
movl %r13d, %ebp
andl %esi, %ebp
movl $0x6f, %esi
movl %ebp, %edx
callq 0x1f630
addl %r14d, %ebp
movzwl %bp, %r14d
cmpl %ebx, %r14d
jae 0x32c81
addb %r12b, %r13b
cmpb $0x1, %r13b
movl 0xc(%rsp), %eax
adcb $0x0, %al
movl %eax, 0xc(%rsp)
andb $0x1f, %al
movzbl (%r15), %edi
movzbl %al, %edx
movl $0x6d, %esi
callq 0x1f5d0
movzbl (%r15), %edi
movzbl %r13b, %edx
movl $0x6e, %esi
callq 0x1f5d0
movl %r13d, %r12d
jmp 0x32bdf
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/MS5803/MS5803.cpp
// Function: MS5803::_getCalConstant(unsigned char)
int32_t MS5803::_getCalConstant(uint8_t constant_no){
	switch ( constant_no ) {
		case 1: return _c1_SENSt1;
		case 2: return _c2_OFFt1;
		case 3: return _c3_TCS;
		case 4: return _c4_TCO;
		case 5: return _c5_Tref;
		case 6: return _c6_TEMPSENS;
		default: return 0;
	}
}

// Assembly:
decl %esi
cmpl $0x5, %esi
ja 0x3340b
leaq 0x2dbe(%rip), %rax      # 0x361a8
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl 0x18(%rdi), %eax
retq
movl 0x28(%rdi), %eax
retq
movl 0x20(%rdi), %eax
retq
movl 0x24(%rdi), %eax
retq
movl 0x1c(%rdi), %eax
retq
movl 0x2c(%rdi), %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/SSD1308/SSD1308.cpp
// Function: SSD1308::clearDisplay()
void SSD1308::clearDisplay()
{
  setDisplayOff();
  setPageAddress(0, 7);     // all pages
  setColumnAddress(0, 127); // all columns
  for (uint8_t page = 0; page < 8; page++)
  {
    for (uint8_t col = 0; col < 128; col++)
    {
      sendData(0x0);
    }
  }
  setDisplayOn();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movzbl (%rdi), %edi
movl $0x80, %esi
movl $0xae, %edx
callq 0x1f5d0
leaq 0xa(%rsp), %rcx
movw $0x22, (%rcx)
movb $0x7, 0x2(%rcx)
movzbl (%rbx), %edi
movl $0x80, %esi
movl $0x3, %edx
callq 0x1f150
leaq 0xd(%rsp), %rcx
movw $0x21, (%rcx)
movb $0x7f, 0x2(%rcx)
movzbl (%rbx), %edi
movl $0x80, %esi
movl $0x3, %edx
callq 0x1f150
xorl %ebp, %ebp
movb $-0x80, %r14b
movzbl (%rbx), %edi
movl $0x40, %esi
xorl %edx, %edx
callq 0x1f5d0
decb %r14b
jne 0x33f74
incb %bpl
cmpb $0x8, %bpl
jne 0x33f71
movzbl (%rbx), %edi
movl $0x80, %esi
movl $0xaf, %edx
callq 0x1f5d0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/SSD1308/SSD1308.cpp
// Function: SSD1308::fillDisplay()
void SSD1308::fillDisplay()
{
  setPageAddress(0, MAX_PAGE);      // all pages
  setColumnAddress(0, MAX_COL); // all columns

  uint8_t b = 0;
  for (uint8_t page = 0; page < PAGES; page++)
  {
    for (uint8_t col = 0; col < COLUMNS; col++)
    {
      sendData(b++);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2(%rsp), %rcx
movw $0x22, (%rcx)
movb $0x7, 0x2(%rcx)
movzbl (%rdi), %edi
movl $0x80, %esi
movl $0x3, %edx
callq 0x1f150
leaq 0x5(%rsp), %rcx
movw $0x21, (%rcx)
movb $0x7f, 0x2(%rcx)
movzbl (%rbx), %edi
movl $0x80, %esi
movl $0x3, %edx
callq 0x1f150
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r12d, %r12d
leal (%r14,%r12), %eax
movzbl (%rbx), %edi
movzbl %al, %edx
movl $0x40, %esi
callq 0x1f5d0
incb %r12b
cmpb $-0x80, %r12b
jne 0x3407c
incb %r15b
addb $-0x80, %r14b
cmpb $0x8, %r15b
jne 0x34079
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/mrlordkaj[P]i2cdevlib-pi/SSD1308/SSD1308.cpp
// Function: SSD1308::writeChar(char)
void SSD1308::writeChar(char chr)
{
//#ifdef SSD1308_USE_FONT
  const uint8_t char_index = chr - 0x20;
  for (uint8_t i = 0; i < 8; i++) {
     const uint8_t b = pgm_read_byte( &fontData[char_index][i] );
     sendData( b ); 
  }
//#endif
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addb $-0x20, %sil
movzbl %sil, %r14d
shll $0x3, %r14d
xorl %r15d, %r15d
leaq 0x231d(%rip), %r12      # 0x363f0
leaq (%r14,%r15), %rax
movzbl (%r12,%rax), %edx
movzbl (%rbx), %edi
movl $0x40, %esi
callq 0x1f5d0
incq %r15
cmpq $0x8, %r15
jne 0x340d3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./network_ip.h
// Function: NetworkIP::send_msg(Message*)
void send_msg(Message* msg) {
        size_t target_node = msg->target();
        //std::cout << "send msg target: " << target_node << "\n";
        NodeInfo &target = nodes_[target_node];
        int server_port = ntohs(target.address.sin_port);
        char server_ip[INET_ADDRSTRLEN];
        inet_ntop(AF_INET, &target.address.sin_addr, server_ip, INET_ADDRSTRLEN);
        //std::cout << "attempting to send msg to: " << server_ip << ":" << server_port << "\n";
        int connection = socket(AF_INET, SOCK_STREAM, 0);
        assert(connection >= 0);
        if (connect(connection, (sockaddr*)&target.address, sizeof(target.address)) < 0) {
            perror("connection failed. Error");
            return;
        }
        msg->id_ = msg_id;
        msg_id++;
        //assert(connect(connection, (sockaddr*)&target.address, sizeof(target.address)) >= 0);
        char* serialized = msg->serialize();
        //std::cout << "sending msg: " << serialized << "\n";
        size_t length = strlen(serialized);
        send(connection, &length, sizeof(size_t), 0);
        send(connection, serialized, length, 0);
        close(connection);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq 0x20(%rsi), %rax
movq 0x10(%rdi), %r12
leaq (%rax,%rax,4), %r13
leaq 0x1c(%r12,%r13,8), %rsi
leaq -0x40(%rbp), %rdx
movl $0x2, %edi
movl $0x10, %ecx
callq 0x7260
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x7090
testl %eax, %eax
js 0x7d94
movl %eax, %ebx
leaq (%r12,%r13,8), %rsi
addq $0x18, %rsi
movl %eax, %edi
movl $0x10, %edx
callq 0x71b0
testl %eax, %eax
js 0x7d86
movq 0x40(%r15), %rax
movq %rax, 0x28(%r14)
incq %rax
movq %rax, 0x40(%r15)
movq (%r14), %rax
movq %r14, %rdi
callq *0x38(%rax)
movq %rax, %r14
movq %rax, %rdi
callq 0x7100
leaq -0x30(%rbp), %r15
movq %rax, (%r15)
movl $0x8, %edx
movl %ebx, %edi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x7130
movq (%r15), %rdx
movl %ebx, %edi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x7130
movl %ebx, %edi
callq 0x7400
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x153c2(%rip), %rdi     # 0x1d14f
callq 0x71c0
jmp 0x7d77
leaq 0x15369(%rip), %rdi     # 0x1d104
leaq 0x15372(%rip), %rsi     # 0x1d114
leaq 0x1537a(%rip), %rcx     # 0x1d123
movl $0x89, %edx
callq 0x7150
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./network_ip.h
// Function: NetworkIP::recv_msg()
Message* recv_msg() {
        sockaddr_in sender;
        socklen_t addrlen = sizeof(sender);
        int req = accept(sock_, (sockaddr*)&sender, &addrlen);
        size_t size = 0;
        read(req, &size, sizeof(size_t));
        char* buf = new char[size];
        int rd = 0;
        while (rd != size) {
            rd+= read(req, buf + rd, size - rd);
        }
        //std::cout << "received msg: " << buf << "\n";
        Deserializable ds;
        Message* msg = dynamic_cast<Message*>(ds.deserialize(buf));
        close(req);
        return msg;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
leaq -0x28(%rbp), %rdx
movl $0x10, (%rdx)
movl 0x28(%rdi), %edi
leaq -0x40(%rbp), %rsi
callq 0x70d0
movl %eax, %ebx
leaq -0x30(%rbp), %r14
movq $0x0, (%r14)
movl $0x8, %edx
movl %eax, %edi
movq %r14, %rsi
callq 0x7300
movq (%r14), %r14
movq %r14, %rdi
callq 0x7030
movq %rax, %r15
testq %r14, %r14
je 0x7e27
xorl %r12d, %r12d
leaq (%r15,%r12), %rsi
movq %r14, %rdx
subq %r12, %rdx
movl %ebx, %edi
callq 0x7300
addl %eax, %r12d
movslq %r12d, %r12
cmpq %r14, %r12
jne 0x7e0b
leaq -0x21(%rbp), %rdi
movq %r15, %rsi
callq 0x146f0
testq %rax, %rax
je 0x7e55
leaq 0x1f491(%rip), %rsi     # 0x272d0
leaq 0x1f4d2(%rip), %rdx     # 0x27318
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x7280
movq %rax, %r14
jmp 0x7e58
xorl %r14d, %r14d
movl %ebx, %edi
callq 0x7400
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./network_ip.h
// Function: NetworkIP::init_sock_(char*, unsigned long)
void init_sock_(char* ip, size_t port) {
        assert((sock_ = socket(AF_INET, SOCK_STREAM, 0)) >= 0);
        int opt =1;
        assert(setsockopt(sock_, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt) == 0));
        ip_.sin_family = AF_INET;
        //ip_.sin_addr.s_addr = inet_addr(ip);
        inet_pton(AF_INET, ip, &ip_.sin_addr);
        ip_.sin_port = htons(port);
        //int res = bind(sock_, (sockaddr*) &ip_, sizeof(ip_));
        if( bind(sock_, (sockaddr*) &ip_, sizeof(ip_)) < 0){
            perror("bind failed. Error");
            return;
        }
        if( (listen(sock_, 100)) < 0){
            perror("listen failed. Error");
            return;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x7090
movl %eax, 0x28(%rbx)
testl %eax, %eax
js 0x7f38
leaq -0x24(%rbp), %rcx
movl $0x1, (%rcx)
movl %eax, %edi
movl $0x1, %esi
movl $0x2, %edx
xorl %r8d, %r8d
callq 0x73c0
testl %eax, %eax
je 0x7f57
leaq 0x2c(%rbx), %r12
movw $0x2, 0x2c(%rbx)
leaq 0x30(%rbx), %rdx
movl $0x2, %edi
movq %r15, %rsi
callq 0x73e0
rolw $0x8, %r14w
movw %r14w, 0x2e(%rbx)
movl 0x28(%rbx), %edi
movq %r12, %rsi
movl $0x10, %edx
callq 0x7060
testl %eax, %eax
js 0x7f21
movl 0x28(%rbx), %edi
movl $0x64, %esi
callq 0x7270
testl %eax, %eax
js 0x7f2a
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15326(%rip), %rdi     # 0x1d24e
jmp 0x7f31
leaq 0x15330(%rip), %rdi     # 0x1d261
callq 0x71c0
jmp 0x7f14
leaq 0x15271(%rip), %rdi     # 0x1d1b0
leaq 0x151ce(%rip), %rsi     # 0x1d114
leaq 0x15292(%rip), %rcx     # 0x1d1df
movl $0x6e, %edx
callq 0x7150
leaq 0x152ac(%rip), %rdi     # 0x1d20a
leaq 0x151af(%rip), %rsi     # 0x1d114
leaq 0x15273(%rip), %rcx     # 0x1d1df
movl $0x70, %edx
callq 0x7150
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./network.h
// Function: Register::serialize()
char* serialize() {
        Serializable* sb = new Serializable();
        sb->initSerialize("Register");
        sb->write("kind_", (int)kind_);
        sb->write("sender_", sender_);
        sb->write("target_", target_);
        sb->write("id_", id_);
        sb->write("port", port_);
        sb->write("client", client);
        sb->endSerialize();
        char* value = sb->get();
        delete sb;
        return value;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x8, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0x8094
leaq 0x15386(%rip), %rsi     # 0x1d336
movq %rbx, %rdi
callq 0x80f6
movl 0x10(%r14), %edx
leaq 0x152b3(%rip), %rsi     # 0x1d276
movq %rbx, %rdi
callq 0x8162
movq 0x18(%r14), %rdx
leaq 0x152a6(%rip), %rsi     # 0x1d27c
movq %rbx, %rdi
callq 0x81d0
movq 0x20(%r14), %rdx
leaq 0x1529b(%rip), %rsi     # 0x1d284
movq %rbx, %rdi
callq 0x81d0
movq 0x28(%r14), %rdx
leaq 0x155c6(%rip), %rsi     # 0x1d5c2
movq %rbx, %rdi
callq 0x81d0
movq 0x38(%r14), %rdx
leaq 0x15330(%rip), %rsi     # 0x1d33f
movq %rbx, %rdi
callq 0x81d0
movq 0x30(%r14), %rdx
leaq 0x15322(%rip), %rsi     # 0x1d344
movq %rbx, %rdi
callq 0x8556
movq (%rbx), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x824a
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movl $0x7d207d20, (%rax,%rcx) # imm = 0x7D207D20
addq $0x4, 0x20(%r14)
movq (%rbx), %rdi
callq 0x82ba
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8070
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x7200
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../utils/string.h
// Function: StrBuff::grow_by_(unsigned long)
void grow_by_(size_t step) {
        if (step + size_ < capacity_) return;
        capacity_ *= 2;
        if (step + size_ >= capacity_) capacity_ += step;        
        char* oldV = val_;
        val_ = new char[capacity_];
        memcpy(val_, oldV, size_);
        delete[] oldV;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rax
movq 0x20(%rdi), %rbx
leaq (%rbx,%rsi), %rcx
cmpq %rax, %rcx
jb 0x82af
movq %rdi, %r14
leaq (%rax,%rax), %rdx
xorl %edi, %edi
cmpq %rdx, %rcx
cmovbq %rdi, %rsi
leaq (%rsi,%rax,2), %rdi
movq %rdi, 0x18(%r14)
movq 0x10(%r14), %r15
callq 0x7030
movq %rax, 0x10(%r14)
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x71a0
testq %r15, %r15
je 0x82af
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x72b0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../utils/string.h
// Function: StrBuff::get()
String* get() {
        assert(val_ != nullptr); // can be called only once
        grow_by_(1);     // ensure space for terminator
        val_[size_] = '\0'; // terminate
        String *res = new String(true, val_, size_);
        val_ = new char[capacity_ = 10]; // val_ was consumed above
        size_ = 0;
        return res;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpq $0x0, 0x10(%rdi)
je 0x833c
movq %rdi, %rbx
movl $0x1, %esi
callq 0x824a
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
movb $0x0, (%rax,%rcx)
movl $0x20, %edi
callq 0x7230
movq %rax, %r14
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
movq $0x0, 0x8(%r14)
leaq 0x1f18b(%rip), %rdx     # 0x27490
movq %rdx, (%r14)
cmpb $0x0, (%rax,%rcx)
jne 0x835b
movq %rcx, 0x10(%r14)
movq %rax, 0x18(%r14)
movq $0xa, 0x18(%rbx)
movl $0xa, %edi
callq 0x7030
movq %rax, 0x10(%rbx)
movq $0x0, 0x20(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x14f72(%rip), %rdi     # 0x1d2b5
leaq 0x14f7b(%rip), %rsi     # 0x1d2c5
leaq 0x14f88(%rip), %rcx     # 0x1d2d9
movl $0x8e, %edx
callq 0x7150
leaq 0x14f8e(%rip), %rdi     # 0x1d2f0
leaq 0x14f5c(%rip), %rsi     # 0x1d2c5
leaq 0x14f96(%rip), %rcx     # 0x1d306
movl $0x1d, %edx
callq 0x7150
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../utils/string.h
// Function: String::equals(Object*)
bool equals(Object* other) {
        if (other == this) return true;
        String* x = dynamic_cast<String *>(other);
        if (x == nullptr) return false;
        if (size_ != x->size_) return false;
        return strncmp(cstr_, x->cstr_, size_) == 0;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpq %rdi, %rsi
je 0x8498
testq %rsi, %rsi
je 0x849c
movq %rdi, %r14
leaq 0x1ee71(%rip), %rax     # 0x272d0
leaq 0x1f06a(%rip), %rdx     # 0x274d0
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x7280
testq %rax, %rax
je 0x849e
movq 0x10(%r14), %rdx
cmpq 0x10(%rax), %rdx
jne 0x849c
movq 0x18(%r14), %rdi
movq 0x18(%rax), %rsi
callq 0x7120
testl %eax, %eax
sete %bl
jmp 0x849e
movb $0x1, %bl
jmp 0x849e
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../utils/string.h
// Function: String::hash_me()
size_t hash_me() {
        size_t hash = 0;
        for (size_t i = 0; i < size_; ++i)
            hash = cstr_[i] + (hash << 6) + (hash << 16) - hash;
        return hash;
    }

// Assembly:
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x8548
pushq %rbp
movq %rsp, %rbp
movq 0x18(%rdi), %rdx
xorl %esi, %esi
xorl %eax, %eax
movsbq (%rdx,%rsi), %rdi
imulq $0x1003f, %rax, %rax    # imm = 0x1003F
addq %rdi, %rax
incq %rsi
cmpq %rsi, %rcx
jne 0x852f
popq %rbp
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/application.h
// Function: Demo::run_()
void run_() override {
    switch(this_node()) {
    case 0:   producer();     break;
    case 1:   counter();      break;
    case 2:   summarizer();
   }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0x18(%rdi), %rax
cmpq $0x2, %rax
je 0x8731
cmpq $0x1, %rax
je 0x872b
testq %rax, %rax
jne 0x8737
popq %rbp
jmp 0x91f8
popq %rbp
jmp 0x9278
popq %rbp
jmp 0x9360
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/kvstore.h
// Function: KVStore::KVStore(unsigned long, unsigned long, NetworkIP*)
KVStore(size_t num_nodes, size_t this_node, NetworkIP* network) {
        this->num_nodes_ = num_nodes;
        this->this_node_ = this_node;
        network_ = network;
        wait_for_key_ = nullptr;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, 0x8(%rdi)
leaq 0x1ee77(%rip), %rcx     # 0x275d8
movq %rcx, (%rdi)
leaq 0x28(%rdi), %rcx
movl $0x0, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movq %rcx, 0x38(%rdi)
movq %rcx, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movq %rax, 0x60(%rdi)
leaq 0x1eeb6(%rip), %rcx     # 0x27640
movq %rcx, 0x58(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
movq %rax, 0x88(%rdi)
leaq 0x90(%rdi), %r13
movq %r13, %rdi
callq 0x89ec
movq $0x0, 0xe0(%rbx)
leaq 0x1ef5f(%rip), %rax     # 0x27720
movq %rax, 0xd8(%rbx)
movl $0x28, %edi
callq 0x7030
movq %rax, 0xe8(%rbx)
movq $0x5, 0xf8(%rbx)
movq $0x0, 0xf0(%rbx)
movb $0x0, 0x110(%rbx)
movq %r12, 0x10(%rbx)
movq %r15, 0x18(%rbx)
movq %r14, 0x50(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x100(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x1ee1b(%rip), %rax     # 0x27640
movq %rax, 0x58(%rbx)
movq %r13, %rdi
callq 0x8f1a
jmp 0x8836
movq %rax, %r14
addq $0x20, %rbx
movq %rbx, %rdi
callq 0x8fac
movq %r14, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/kvstore.h
// Function: KVStore::serialize()
char* serialize() {
        Serializable* sb = new Serializable();
        sb->initSerialize("KVStore");
        sb->write("num_nodes_", num_nodes_);
        sb->write("this_node_", this_node_);
        sb->endSerialize();
        char* value = sb->get();
        return value;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x8, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0x8094
leaq 0x14a15(%rip), %rsi     # 0x1d387
movq %rbx, %rdi
callq 0x80f6
movq 0x10(%r14), %rdx
leaq 0x14a0a(%rip), %rsi     # 0x1d38f
movq %rbx, %rdi
callq 0x81d0
movq 0x18(%r14), %rdx
leaq 0x14a02(%rip), %rsi     # 0x1d39a
movq %rbx, %rdi
callq 0x81d0
movq (%rbx), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x824a
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movl $0x7d207d20, (%rax,%rcx) # imm = 0x7D207D20
addq $0x4, 0x20(%r14)
movq (%rbx), %rdi
callq 0x82ba
movq (%rax), %rcx
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmpq *0x30(%rcx)
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: Array::hash()
size_t hash() {
       size_t res = 0;
        for(int i = 0; i < listLength_; i++) {
            //specific code to deal with the union data-type
            res+=objs_[i]->hash();
        }
        return res;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, 0x18(%rdi)
je 0x8b72
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
addq %rax, %r14
incq %r15
cmpq %r15, 0x18(%rbx)
ja 0x8b56
jmp 0x8b75
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: Array::serialize()
char* serialize() {
        Serializable* sb = new Serializable();
        sb->initSerialize("Array");
        sb->write("listLength_", listLength_);
        sb->write("arraySize_", arraySize_);
        sb->write("objs_", objs_, listLength_);
        sb->endSerialize();
        char* value = sb->get();
        delete sb;
        return value;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x8, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0x8094
leaq 0x149f5(%rip), %rsi     # 0x1d5bb
movq %rbx, %rdi
callq 0x80f6
movq 0x18(%r14), %rdx
leaq 0x1488d(%rip), %rsi     # 0x1d466
movq %rbx, %rdi
callq 0x81d0
movq 0x20(%r14), %rdx
leaq 0x14778(%rip), %rsi     # 0x1d364
movq %rbx, %rdi
callq 0x81d0
movq 0x10(%r14), %rdx
movl 0x18(%r14), %ecx
leaq 0x1476c(%rip), %rsi     # 0x1d36f
movq %rbx, %rdi
callq 0x8d74
movq (%rbx), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x824a
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movl $0x7d207d20, (%rax,%rcx) # imm = 0x7D207D20
addq $0x4, 0x20(%r14)
movq (%rbx), %rdi
callq 0x82ba
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8c51
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x7200
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: Array::set(unsigned long, Object*)
virtual Object* set(size_t index, Object* o) {
      if(index > listLength_-1) {
            return nullptr;
        }
        Object* temp = get(index);
        objs_[index] = o;
        if(temp == nullptr) {
            listLength_++;
            return nullptr;
        }
        hash_ = 0; //since list has changed in composition, reset stored hash
        return temp;
  }

// Assembly:
movq 0x18(%rdi), %rax
decq %rax
cmpq %rsi, %rax
jae 0x8ca9
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x40(%rax)
movq 0x10(%rbx), %rcx
movq %r14, (%rcx,%r15,8)
testq %rax, %rax
je 0x8cd9
movq $0x0, 0x8(%rbx)
jmp 0x8cdf
incq 0x18(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: Array::remove(unsigned long)
virtual Object* remove(size_t index) {
      if(index > listLength_-1) {
            return nullptr;
        }
        Object* temp = get(index);
        for(int i = index; i<listLength_; i++) {
            if(i < listLength_-1) {
                objs_[i] = objs_[i+1];
            }
        }
        listLength_--;
        hash_ = 0; //since list has changed in composition, reset stored hash
        return temp;
  }

// Assembly:
movq 0x18(%rdi), %rax
decq %rax
cmpq %rsi, %rax
jae 0x8cf9
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x40(%rax)
movq 0x18(%rbx), %rcx
movslq %r14d, %rsi
leaq -0x1(%rcx), %rdx
cmpq %rsi, %rcx
jbe 0x8d33
cmpq %rsi, %rdx
jbe 0x8d2e
movq 0x10(%rbx), %rdi
movq 0x8(%rdi,%rsi,8), %r8
movq %r8, (%rdi,%rsi,8)
incq %rsi
jmp 0x8d17
movq %rdx, 0x18(%rbx)
movq $0x0, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: Array::pushBack(Object*)
virtual void pushBack(Object* o) {
        int newSize = 1+listLength_;
        extend_array(newSize);
        objs_[listLength_] = o;
        listLength_++;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x18(%rdi), %esi
incl %esi
callq 0x8e88
movq 0x10(%r14), %rax
movq 0x18(%r14), %rcx
movq %rbx, (%rax,%rcx,8)
incq %rcx
movq %rcx, 0x18(%r14)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: Array::extend_array(int)
void extend_array(int newLength) {
        if(arraySize_ <= newLength) {
            int oldSize = arraySize_;
            arraySize_ = newLength*2;
            Object** newObjs = new Object*[arraySize_];
            for (size_t i = 0; i < oldSize ; i++) {
                newObjs[i] = objs_[i];
            }
            delete [] objs_;
            objs_ = newObjs;
        }
        hash_ = 0; //every time the array is
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movslq %esi, %rax
cmpq %rax, %r15
ja 0x8f06
leal (%rsi,%rsi), %eax
cltq
movq %rax, 0x20(%rbx)
shlq $0x3, %rax
testl %esi, %esi
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x7030
movq %rax, %r14
shlq $0x20, %r15
je 0x8ef1
sarq $0x20, %r15
movq 0x10(%rbx), %rdi
cmpq $0x1, %r15
adcq $0x0, %r15
xorl %eax, %eax
movq (%rdi,%rax,8), %rcx
movq %rcx, (%r14,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x8edb
leaq 0x10(%rbx), %r15
jmp 0x8efe
leaq 0x10(%rbx), %r15
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x8f03
callq 0x72b0
movq %r14, (%r15)
movq $0x0, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/./../store/key.h
// Function: Key::equals(Object*)
bool equals(Object* other) {
        if (other == this) return true;
        Key* x = dynamic_cast<Key *>(other);
        if (x == nullptr) return false;
        //std::cout << "in key equals: name: " << name_->c_str() << " " << x->name_->c_str() <<"\n";
        //std::cout << res << "\n";
        return this->name_->equals(x->name_) && (this->node_ == x->node_);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq %rdi, %rsi
je 0x906b
testq %rsi, %rsi
je 0x9070
movq %rdi, %rbx
leaq 0x1e2a4(%rip), %rax     # 0x272d0
leaq 0x1e7b5(%rip), %rdx     # 0x277e8
xorl %r14d, %r14d
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x7280
testq %rax, %rax
je 0x9073
movq %rax, %r15
movq 0x10(%rbx), %rdi
movq 0x10(%rax), %rsi
movq (%rdi), %rax
callq *0x18(%rax)
testb %al, %al
je 0x9070
movq 0x18(%rbx), %rax
cmpq 0x18(%r15), %rax
sete %r14b
jmp 0x9073
movb $0x1, %r14b
jmp 0x9073
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop