LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::testConnection()
bool LSM303DLHC::testConnection() {
    I2Cdev::readByte(devAddrA, LSM303DLHC_RA_CTRL_REG1_A, buffer);
    uint8_t origValA = buffer[0];
    I2Cdev::readByte(devAddrM, LSM303DLHC_RA_CRA_REG_M, buffer);
    uint8_t origValM = buffer[0];

    uint8_t zeros = 0b00000000;
    I2Cdev::writeByte(devAddrA, LSM303DLHC_RA_CTRL_REG1_A, zeros);
    I2Cdev::writeByte(devAddrM, LSM303DLHC_RA_CRA_REG_M, zeros);
    
    I2Cdev::readByte(devAddrA, LSM303DLHC_RA_CTRL_REG1_A, buffer);
    uint8_t newValA = buffer[0];
    I2Cdev::readByte(devAddrM, LSM303DLHC_RA_CRA_REG_M, buffer);
    uint8_t newValM = buffer[0];
    
    I2Cdev::writeByte(devAddrA, LSM303DLHC_RA_CTRL_REG1_A, origValA);
    I2Cdev::writeByte(devAddrM, LSM303DLHC_RA_CRA_REG_M, origValM);

    if ((newValM == zeros) and (newValA == zeros)) {
      return true;
    }
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x2(%rbx), %r14
movq 0x1ec84(%rip), %r13     # 0x48f48
movzwl (%r13), %ecx
pushq $0x20
popq %rbp
movl %ebp, %esi
movq %r14, %rdx
callq 0x1f9b0
movzbl 0x2(%rbx), %eax
movl %eax, 0x4(%rsp)
movzbl 0x1(%rbx), %edi
movzwl (%r13), %ecx
xorl %esi, %esi
movq %r14, %rdx
callq 0x1f9b0
movzbl 0x2(%rbx), %r12d
movzbl (%rbx), %edi
movl %ebp, %esi
xorl %edx, %edx
callq 0x1f7f0
movzbl 0x1(%rbx), %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1f7f0
movzbl (%rbx), %edi
movzwl (%r13), %ecx
movl %ebp, %esi
movq %r14, %rdx
callq 0x1f9b0
movb 0x2(%rbx), %r15b
movzbl 0x1(%rbx), %edi
movzwl (%r13), %ecx
xorl %esi, %esi
movq %r14, %rdx
callq 0x1f9b0
movzbl (%rbx), %edi
orb 0x2(%rbx), %r15b
sete %r14b
movl %ebp, %esi
movl 0x4(%rsp), %edx
callq 0x1f7f0
movzbl 0x1(%rbx), %edi
xorl %esi, %esi
movl %r12d, %edx
callq 0x1f7f0
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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:
cmpl $0x1500, %esi           # imm = 0x1500
je 0x2a3b3
cmpl $0xa, %esi
je 0x2a3bb
cmpl $0x19, %esi
je 0x2a3d3
cmpl $0x32, %esi
je 0x2a3c3
cmpl $0x64, %esi
je 0x2a3cf
cmpl $0xc8, %esi
je 0x2a3cb
cmpl $0x190, %esi            # imm = 0x190
je 0x2a3b7
cmpl $0x540, %esi            # imm = 0x540
je 0x2a3b3
cmpl $0x654, %esi            # imm = 0x654
je 0x2a3bf
cmpl $0x1, %esi
jne 0x2a3c7
movb $0x1, %al
jmp 0x2a3d5
movb $0x9, %al
jmp 0x2a3d5
movb $0x7, %al
jmp 0x2a3d5
movb $0x2, %al
jmp 0x2a3d5
movb $0x8, %al
jmp 0x2a3d5
movb $0x4, %al
jmp 0x2a3d5
xorl %eax, %eax
jmp 0x2a3d5
movb $0x6, %al
jmp 0x2a3d5
movb $0x5, %al
jmp 0x2a3d5
movb $0x3, %al
movzbl (%rdi), %edi
movzbl %al, %r8d
pushq $0x20
popq %rsi
pushq $0x7
popq %rdx
pushq $0x4
popq %rcx
jmp 0x1f980
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::getAccelFullScale()
uint8_t LSM303DLHC::getAccelFullScale() {
  I2Cdev::readBits(devAddrA, LSM303DLHC_RA_CTRL_REG4_A, 
    LSM303DLHC_FS_BIT, LSM303DLHC_FS_LENGTH, buffer);
  uint8_t readBits = buffer[0];
  
  if (readBits == LSM303DLHC_FS_2) {
    return 2;
  } else if (readBits == LSM303DLHC_FS_4) {
    return 4;
  } else if (readBits == LSM303DLHC_FS_8) {
    return 8;
  } else {
    return 16;
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x2(%rbx), %r8
movq 0x1e794(%rip), %rax     # 0x48f48
movzwl (%rax), %r9d
pushq $0x23
popq %rsi
pushq $0x5
popq %rdx
pushq $0x2
popq %rcx
callq 0x1fd50
movzbl 0x2(%rbx), %eax
movl %eax, %ecx
shll $0x3, %ecx
movl $0x80402, %edx          # imm = 0x80402
shrl %cl, %edx
cmpb $0x3, %al
pushq $0x10
popq %rax
cmovbl %edx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1e2fc(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x6
popq %rdx
movl $0xa8, %esi
callq 0x1f870
cmpb $0x0, 0x8(%r14)
je 0x2ac8a
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 0x2aca2
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_O2/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 0x1e281(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x2
popq %rdx
movl $0xa8, %esi
movq %r14, %rcx
callq 0x1f870
cmpb $0x0, 0x8(%rbx)
je 0x2aceb
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
jmp 0x2acef
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1e23b(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x2
popq %rdx
movl $0xaa, %esi
movq %r14, %rcx
callq 0x1f870
cmpb $0x0, 0x8(%rbx)
je 0x2ad31
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
jmp 0x2ad35
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1e1f5(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x2
popq %rdx
movl $0xac, %esi
movq %r14, %rcx
callq 0x1f870
cmpb $0x0, 0x8(%rbx)
je 0x2ad77
movzwl 0x2(%rbx), %eax
rolw $0x8, %ax
jmp 0x2ad7b
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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:
cmpl $0xdc, %esi
je 0x2b650
cmpl $0x3, %esi
je 0x2b65c
cmpl $0x7, %esi
je 0x2b658
cmpl $0xf, %esi
je 0x2b644
cmpl $0x1e, %esi
je 0x2b64c
cmpl $0x4b, %esi
je 0x2b648
cmpl $0x1, %esi
jne 0x2b654
movb $0x1, %al
jmp 0x2b65e
movb $0x4, %al
jmp 0x2b65e
movb $0x6, %al
jmp 0x2b65e
movb $0x5, %al
jmp 0x2b65e
movb $0x7, %al
jmp 0x2b65e
xorl %eax, %eax
jmp 0x2b65e
movb $0x3, %al
jmp 0x2b65e
movb $0x2, %al
movzbl 0x1(%rdi), %edi
movzbl %al, %r8d
pushq $0x4
popq %rdx
pushq $0x3
popq %rcx
xorl %esi, %esi
jmp 0x1f980
nop
// File: /workspace/github_cpp_makefile_star2_O2/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:
cmpl $0x44c, %esi            # imm = 0x44C
je 0x2b6fa
cmpl $0x190, %esi            # imm = 0x190
je 0x2b6f6
cmpl $0x1c2, %esi            # imm = 0x1C2
je 0x2b6ea
cmpl $0x29e, %esi            # imm = 0x29E
je 0x2b6f2
cmpl $0x357, %esi            # imm = 0x357
je 0x2b6ee
movb $0x7, %al
cmpl $0x14a, %esi            # imm = 0x14A
jne 0x2b6fc
movb $0x6, %al
jmp 0x2b6fc
movb $0x4, %al
jmp 0x2b6fc
movb $0x2, %al
jmp 0x2b6fc
movb $0x3, %al
jmp 0x2b6fc
movb $0x5, %al
jmp 0x2b6fc
movb $0x1, %al
movzbl 0x1(%rdi), %edi
movzbl %al, %r8d
pushq $0x1
popq %rsi
pushq $0x7
popq %rdx
pushq $0x3
popq %rcx
jmp 0x1f980
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1d823(%rip), %rax     # 0x48f48
movzwl (%rax), %r9d
pushq $0x1
popq %rsi
pushq $0x7
popq %rdx
pushq $0x3
popq %rcx
callq 0x1fd50
movb 0x2(%rbx), %cl
addb $-0x2, %cl
movw $0x44c, %ax             # imm = 0x44C
cmpb $0x5, %cl
ja 0x2b754
movzbl %cl, %eax
leaq 0x894c(%rip), %rcx      # 0x3409c
movzwl (%rcx,%rax,2), %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/LSM303DLHC/LSM303DLHC.cpp
// Function: LSM303DLHC::getMag(short*, short*, short*)
void LSM303DLHC::getMag(int16_t* x, int16_t* y, int16_t* z){
  I2Cdev::readBytes(devAddrM, LSM303DLHC_RA_OUT_X_H_M, 6, buffer);
  *x = ((((int16_t)buffer[0]) << 8) | buffer[1]);
  *z = ((((int16_t)buffer[2]) << 8) | buffer[3]);
  *y = ((((int16_t)buffer[4]) << 8) | buffer[5]);

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movzbl 0x1(%rdi), %edi
leaq 0x2(%r12), %rcx
movq 0x1d790(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
movzwl 0x2(%r12), %eax
rolw $0x8, %ax
movw %ax, (%r15)
movzwl 0x4(%r12), %eax
rolw $0x8, %ax
movw %ax, (%rbx)
movzwl 0x6(%r12), %eax
rolw $0x8, %ax
movw %ax, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPR121/MPR121.cpp
// Function: MPR121::getTouchStatus(unsigned char)
bool MPR121::getTouchStatus(uint8_t channel) {
  const uint8_t statusReg = (channel < 8) ? ELE0_ELE7_TOUCH_STATUS : ELE8_ELE11_ELEPROX_TOUCH_STATUS;
  uint8_t buf = 0;
  I2Cdev::readByte(m_devAddr, statusReg, &buf);
  const bool touchActive = (channel < 8) ? (buf & (1 << channel)) > 0 : (buf & (1 << (channel - 8))) > 0;
  return touchActive;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
leaq 0x7(%rsp), %rbx
movb $0x0, (%rbx)
movzbl (%rdi), %edi
movq 0x1d3f3(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
leal -0x8(%rsi), %edx
xorl %eax, %eax
cmpb $0x8, %sil
setae %al
movzbl %dl, %ebp
cmovbl %esi, %ebp
movl %eax, %esi
movq %rbx, %rdx
callq 0x1f9b0
movzbl (%rbx), %eax
btl %ebp, %eax
setb %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1d3b0(%rip), %r15     # 0x48f48
movzwl (%r15), %ecx
leaq 0x7(%rsp), %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x1f9b0
movzbl (%r14), %ebp
movzbl (%rbx), %edi
movzwl (%r15), %ecx
pushq $0x1
popq %rsi
movq %r14, %rdx
callq 0x1f9b0
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_O2/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
cmpq $0xc, %r15
je 0x2bc54
movzbl %r15b, %esi
movq %rbx, %rdi
callq 0x1f4f0
cmpb %al, 0xc8(%rbx,%r15)
je 0x2bc4f
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 $0x2, %r13b
subb $0x1, %r13b
jb 0x2bc47
movq (%r12), %rax
testq %rax, %rax
je 0x2bc34
callq *%rax
jmp 0x2bc34
movb %bpl, 0xc8(%rbx,%r15)
incq %r15
jmp 0x2bbf9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::initialize()
void MPU6050::initialize() {
    setClockSource(MPU6050_CLOCK_PLL_XGYRO);
    setFullScaleGyroRange(MPU6050_GYRO_FS_250);
    setFullScaleAccelRange(MPU6050_ACCEL_FS_2);
    setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x1fb00
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1f460
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1f2d0
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x1f130
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::getMotion6(short*, short*, short*, short*, short*, short*)
void MPU6050::getMotion6(int16_t* ax, int16_t* ay, int16_t* az, int16_t* gx, int16_t* gy, int16_t* gz) {
    I2Cdev::readBytes(devAddr, MPU6050_RA_ACCEL_XOUT_H, 14, buffer);
    *ax = (((int16_t)buffer[0]) << 8) | buffer[1];
    *ay = (((int16_t)buffer[2]) << 8) | buffer[3];
    *az = (((int16_t)buffer[4]) << 8) | buffer[5];
    *gx = (((int16_t)buffer[8]) << 8) | buffer[9];
    *gy = (((int16_t)buffer[10]) << 8) | buffer[11];
    *gz = (((int16_t)buffer[12]) << 8) | buffer[13];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
movzbl (%rdi), %edi
leaq 0x1(%r14), %rcx
movq 0x1c0d1(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3b
popq %rsi
pushq $0xe
popq %rdx
callq 0x1f870
movzwl 0x1(%r14), %eax
rolw $0x8, %ax
movw %ax, (%rbp)
movzwl 0x3(%r14), %eax
rolw $0x8, %ax
movw %ax, (%r13)
movzwl 0x5(%r14), %eax
rolw $0x8, %ax
movw %ax, (%r12)
movzwl 0x9(%r14), %eax
rolw $0x8, %ax
movw %ax, (%r15)
movzwl 0xb(%r14), %eax
rolw $0x8, %ax
movw %ax, (%rbx)
movzwl 0xd(%r14), %eax
rolw $0x8, %ax
movq 0x40(%rsp), %rcx
movw %ax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::getRotation(short*, short*, short*)
void MPU6050::getRotation(int16_t* x, int16_t* y, int16_t* z) {
    I2Cdev::readBytes(devAddr, MPU6050_RA_GYRO_XOUT_H, 6, buffer);
    *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, %r14
movq %rsi, %r15
movq %rdi, %r12
movzbl (%rdi), %edi
leaq 0x1(%r12), %rcx
movq 0x1bf25(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x43
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
movzwl 0x1(%r12), %eax
rolw $0x8, %ax
movw %ax, (%r15)
movzwl 0x3(%r12), %eax
rolw $0x8, %ax
movw %ax, (%r14)
movzwl 0x5(%r12), %eax
rolw $0x8, %ax
movw %ax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2d7dc
movzbl (%rdi), %edi
movq 0x1b77b(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
movzbl %dl, %edx
pushq $0x74
popq %rsi
jmp 0x1f870
movb $0x0, (%rcx)
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPU6050/MPU6050.cpp
// Function: MPU6050::setMemoryBank(unsigned char, bool, bool)
void MPU6050::setMemoryBank(uint8_t bank, bool prefetchEnabled, bool userBank) {
    bank &= 0x1F;
    if (userBank) bank |= 0x20;
    if (prefetchEnabled) bank |= 0x40;
    I2Cdev::writeByte(devAddr, MPU6050_RA_BANK_SEL, bank);
}

// Assembly:
andb $0x1f, %sil
movzbl %sil, %eax
orb $0x20, %sil
movzbl %sil, %esi
testl %ecx, %ecx
cmovel %eax, %esi
leal 0x40(%rsi), %eax
movzbl %al, %eax
testl %edx, %edx
cmovel %esi, %eax
movzbl (%rdi), %edi
movzbl %al, %edx
pushq $0x6d
popq %rsi
jmp 0x1f7f0
// File: /workspace/github_cpp_makefile_star2_O2/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, %ebx
movl %edx, %r14d
movq %rsi, 0x10(%rsp)
movq %rdi, %r12
xorl %ebp, %ebp
movl %ecx, 0xc(%rsp)
movl %ecx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1fb40
movq %r12, %rdi
movl %ebx, %esi
callq 0x1fdd0
movzwl %bp, %r15d
cmpl %r14d, %r15d
jae 0x2df99
leal 0x10(%r15), %eax
cmpl %r14d, %eax
ja 0x2df1c
pushq $0x10
popq %rax
jmp 0x2df21
movl %r14d, %eax
subl %ebp, %eax
movl %eax, %ecx
movl $0xff, %edx
andl %edx, %ecx
movzbl %bl, %ebx
movl $0x100, %r13d           # imm = 0x100
subl %ebx, %r13d
cmpl %ecx, %r13d
cmovael %eax, %r13d
movzbl (%r12), %edi
movl %r15d, %ecx
addq 0x10(%rsp), %rcx
movq 0x1aff7(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
movl %r13d, %ebp
andl %edx, %ebp
pushq $0x6f
popq %rsi
movl %ebp, %edx
callq 0x1f870
addl %r15d, %ebp
addb %r13b, %bl
movzwl %bp, %eax
cmpl %r14d, %eax
jae 0x2df01
cmpb $0x1, %bl
movl 0xc(%rsp), %eax
adcb $0x0, %al
movl %eax, 0xc(%rsp)
movzbl %al, %esi
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1fb40
movzbl %bl, %esi
movq %r12, %rdi
jmp 0x2defc
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x1
popq %rsi
pushq $0x5
popq %rdx
pushq $0x14
popq %rcx
xorl %r8d, %r8d
callq 0x1f3d0
pushq $0x64
popq %rcx
subq %rax, %rcx
cvtsi2sd %rcx, %xmm0
mulsd 0x5d21(%rip), %xmm0     # 0x340a8
cvtsd2ss %xmm0, %xmm1
cvtss2sd %xmm1, %xmm0
mulsd 0x5d19(%rip), %xmm0     # 0x340b0
cvtsd2ss %xmm0, %xmm0
mulss 0x5d25(%rip), %xmm1     # 0x340c8
pushq $0x43
popq %rsi
movq %r14, %rdi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1fd70
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x1
popq %rsi
pushq $0x5
popq %rdx
pushq $0x14
popq %rcx
xorl %r8d, %r8d
callq 0x1f3d0
pushq $0x64
popq %rcx
subq %rax, %rcx
cvtsi2sd %rcx, %xmm0
mulsd 0x58bb(%rip), %xmm0     # 0x340a8
cvtsd2ss %xmm0, %xmm1
movss 0x58ef(%rip), %xmm0     # 0x340e8
mulss %xmm1, %xmm0
mulss 0x58e7(%rip), %xmm1     # 0x340ec
pushq $0x3b
popq %rsi
movq %r14, %rdi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1fd70
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPU9150/MPU9150.cpp
// Function: MPU9150::initialize()
void MPU9150::initialize() {
    setClockSource(MPU9150_CLOCK_PLL_XGYRO);
    setFullScaleGyroRange(MPU9150_GYRO_FS_250);
    setFullScaleAccelRange(MPU9150_ACCEL_FS_2);
    setSleepEnabled(false); // thanks to Jack Elston for pointing this one out!
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x1fca0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1fdf0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1f700
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x1f730
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MPU9150/MPU9150.cpp
// Function: MPU9150::getMotion9(short*, short*, short*, short*, short*, short*, short*, short*, short*)
void MPU9150::getMotion9(int16_t* ax, int16_t* ay, int16_t* az, int16_t* gx, int16_t* gy, int16_t* gz, int16_t* mx, int16_t* my, int16_t* mz) {

    //get accel and gyro
    getMotion6(ax, ay, az, gx, gy, gz);

    //read mag
    I2Cdev::writeByte(devAddr, MPU9150_RA_INT_PIN_CFG, 0x02); //set i2c bypass enable pin to true to access magnetometer
    delay(10);
    I2Cdev::writeByte(MPU9150_RA_MAG_ADDRESS, 0x0A, 0x01); //enable the magnetometer
    delay(10);
    I2Cdev::readBytes(MPU9150_RA_MAG_ADDRESS, MPU9150_RA_MAG_XOUT_L, 6, buffer);
    *mx = (((int16_t)buffer[0]) << 8) | buffer[1];
    *my = (((int16_t)buffer[2]) << 8) | buffer[3];
    *mz = (((int16_t)buffer[4]) << 8) | buffer[5];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x58(%rsp), %r15
movq 0x50(%rsp), %r12
movq 0x48(%rsp), %r13
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
callq 0x1f410
movzbl (%rbx), %edi
pushq $0x37
popq %rsi
pushq $0x2
popq %rdx
callq 0x1f7f0
pushq $0xa
popq %rbp
movl %ebp, %edi
callq 0x1f630
pushq $0xc
popq %r14
pushq $0x1
popq %rdx
movl %r14d, %edi
movl %ebp, %esi
callq 0x1f7f0
movl %ebp, %edi
callq 0x1f630
leaq 0x1(%rbx), %rcx
movq 0x19390(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
movl %r14d, %edi
callq 0x1f870
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movw %ax, (%r13)
movzwl 0x3(%rbx), %eax
rolw $0x8, %ax
movw %ax, (%r12)
movzwl 0x5(%rbx), %eax
rolw $0x8, %ax
movw %ax, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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, %ebx
movl %edx, %r14d
movq %rsi, 0x10(%rsp)
movq %rdi, %r12
xorl %ebp, %ebp
movl %ecx, 0xc(%rsp)
movl %ecx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1f890
movq %r12, %rdi
movl %ebx, %esi
callq 0x1fc10
movzwl %bp, %r15d
cmpl %r14d, %r15d
jae 0x30bad
leal 0x10(%r15), %eax
cmpl %r14d, %eax
ja 0x30b30
pushq $0x10
popq %rax
jmp 0x30b35
movl %r14d, %eax
subl %ebp, %eax
movl %eax, %ecx
movl $0xff, %edx
andl %edx, %ecx
movzbl %bl, %ebx
movl $0x100, %r13d           # imm = 0x100
subl %ebx, %r13d
cmpl %ecx, %r13d
cmovael %eax, %r13d
movzbl (%r12), %edi
movl %r15d, %ecx
addq 0x10(%rsp), %rcx
movq 0x183e3(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
movl %r13d, %ebp
andl %edx, %ebp
pushq $0x6f
popq %rsi
movl %ebp, %edx
callq 0x1f870
addl %r15d, %ebp
addb %r13b, %bl
movzwl %bp, %eax
cmpl %r14d, %eax
jae 0x30b15
cmpb $0x1, %bl
movl 0xc(%rsp), %eax
adcb $0x0, %al
movl %eax, 0xc(%rsp)
movzbl %al, %esi
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x1f890
movzbl %bl, %esi
movq %r12, %rdi
jmp 0x30b10
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MS5803/MS5803.cpp
// Function: MS5803::initialize(unsigned char)
bool MS5803::initialize(uint8_t model) {
	_initialized = false;
	// Make sure model is valid.
	switch (model) {
		case ( 1): _model = BA01; break;
		case ( 2): _model = BA02; break;
		case ( 5): _model = BA05; break;
		case (14): _model = BA14; break;
		case (30): _model = BA30; break;
		default:
			Serial.print(F("MS5803 Model entered (")); Serial.print(model); Serial.println(F(") is not valid/supported."));
			_model = INVALID; 
			return 0;
	}
	if (_debug) Serial.println(reset());
	uint8_t tries = 0;
	do {
		_getCalConstants(); // Seems to partially fail the first try sometimes.
		if (_c1_SENSt1 && _c2_OFFt1 && _c3_TCS && _c4_TCO && _c5_Tref && _c6_TEMPSENS ) _initialized = true; // They must all be non-0
		tries++;
	} while (!_initialized && ( tries < INIT_TRIES) );
	if (_debug) {
		for ( uint8_t i = 1 ; i <= 6; i++){
			Serial.print(i);
			Serial.print(": ");
			Serial.print(CALIBRATION_CONSTANTS[i-1]);
			Serial.print(" = ");
			Serial.println(_getCalConstant(i));
		}
	}
	return _initialized;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movb $0x0, 0x14(%rdi)
cmpl $0x1, %esi
je 0x30fda
cmpl $0x1e, %ebp
je 0x30fcf
cmpl $0x5, %ebp
je 0x30fd7
cmpl $0xe, %ebp
je 0x30fd3
cmpl $0x2, %ebp
jne 0x310c5
pushq $0x2
jmp 0x30fd9
pushq $0x1e
jmp 0x30fd9
pushq $0xe
jmp 0x30fd9
pushq $0x5
popq %rbp
movl %ebp, 0x10(%rbx)
cmpb $0x1, 0x15(%rbx)
jne 0x30ffa
movq %rbx, %rdi
callq 0x1ffc0
movzwl %ax, %esi
movq 0x17f8b(%rip), %rdi     # 0x48f80
callq 0x1fbe0
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x1f600
movdqu 0x18(%rbx), %xmm0
pcmpeqd 0x316e(%rip), %xmm0     # 0x34180
movmskps %xmm0, %eax
testl %eax, %eax
jne 0x31025
cmpl $0x0, 0x28(%rbx)
je 0x31025
cmpl $0x0, 0x2c(%rbx)
jne 0x3103b
movb 0x14(%rbx), %al
testb $0x1, %al
jne 0x31041
leal 0x1(%r14), %ecx
cmpb $0x2, %r14b
movl %ecx, %r14d
jb 0x30ffd
jmp 0x31041
movb $0x1, 0x14(%rbx)
movb $0x1, %al
cmpb $0x1, 0x15(%rbx)
jne 0x31100
xorl %r15d, %r15d
movq 0x17f3b(%rip), %r14     # 0x48f90
movq 0x17f24(%rip), %r13     # 0x48f80
cmpq $0x6, %r15
je 0x310c0
leaq 0x1(%r15), %r12
movsbl %r12b, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x1f970
movq %r14, %rdi
leaq 0x2101(%rip), %rsi      # 0x3317f
callq 0x1f7c0
movq 0x17efe(%rip), %rax     # 0x48f88
movq (%rax,%r15,8), %rsi
movq %r14, %rdi
callq 0x1f7c0
movq %r14, %rdi
leaq 0x32a3(%rip), %rsi      # 0x34343
callq 0x1f7c0
movzbl %bpl, %esi
movq %rbx, %rdi
callq 0x1ff60
movq %r13, %rdi
movl %eax, %esi
callq 0x1fcd0
movq %r12, %r15
jmp 0x3105c
movb 0x14(%rbx), %al
jmp 0x31100
movq 0x17ec4(%rip), %r14     # 0x48f90
leaq 0x31a8(%rip), %rsi      # 0x3427b
movq %r14, %rdi
callq 0x1f7c0
movsbl %bpl, %esi
movq %r14, %rdi
callq 0x1f970
movq 0x17e92(%rip), %rdi     # 0x48f80
leaq 0x319d(%rip), %rsi      # 0x34292
callq 0x1fa60
andl $0x0, 0x10(%rbx)
xorl %eax, %eax
andb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MS5803/MS5803.cpp
// Function: MS5803::_getCalConstants()
void MS5803::_getCalConstants(){
	/* Query and parse calibration constants */
	I2Cdev::readBytes(_dev_address,MS5803_PROM_C1,2,_buffer);
	_c1_SENSt1 =   (((uint16_t)_buffer[0] << 8) + _buffer[1]);
	I2Cdev::readBytes(_dev_address,MS5803_PROM_C2,2,_buffer);
	_c2_OFFt1 =    (((uint16_t)_buffer[0] << 8) + _buffer[1]);
	I2Cdev::readBytes(_dev_address,MS5803_PROM_C3,2,_buffer);
	_c3_TCS =      (((uint16_t)_buffer[0] << 8) + _buffer[1]);
	I2Cdev::readBytes(_dev_address,MS5803_PROM_C4,2,_buffer);
	_c4_TCO =      (((uint16_t)_buffer[0] << 8) + _buffer[1]);
	I2Cdev::readBytes(_dev_address,MS5803_PROM_C5,2,_buffer);
	_c5_Tref =     (((uint16_t)_buffer[0] << 8) + _buffer[1]);
	I2Cdev::readBytes(_dev_address,MS5803_PROM_C6,2,_buffer);
	_c6_TEMPSENS = (((uint16_t)_buffer[0] << 8) + _buffer[1]);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movzbl 0xe(%rdi), %edi
movq 0x17e0c(%rip), %r14     # 0x48f48
movzwl (%r14), %r8d
pushq $0x2
popq %rbp
movl $0xa2, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x1f870
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x18(%rbx)
movzbl 0xe(%rbx), %edi
movzwl (%r14), %r8d
movl $0xa4, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x1f870
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x1c(%rbx)
movzbl 0xe(%rbx), %edi
movzwl (%r14), %r8d
movl $0xa6, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x1f870
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x20(%rbx)
movzbl 0xe(%rbx), %edi
movzwl (%r14), %r8d
movl $0xa8, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x1f870
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x24(%rbx)
movzbl 0xe(%rbx), %edi
movzwl (%r14), %r8d
movl $0xaa, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x1f870
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x28(%rbx)
movzbl 0xe(%rbx), %edi
movzwl (%r14), %r8d
movl $0xac, %esi
movl %ebp, %edx
movq %rbx, %rcx
callq 0x1f870
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movl %eax, 0x2c(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x31247
leaq 0x2f6a(%rip), %rax      # 0x34190
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_O2/mrlordkaj[P]i2cdevlib-pi/MS5803/MS5803.cpp
// Function: MS5803::_getADCconversion(measurement, precision)
int32_t MS5803::_getADCconversion(measurement _measurement, precision _precision){
	// Retrieve ADC measurement from the device.
	// Select measurement type and precision
	uint32_t result;
	uint8_t reg_address = CMD_ADC_CONV + _measurement + _precision;
	uint8_t write_length = 0;
	uint8_t read_length = 3;
	uint16_t read_timeout = 2000;
	//sendCommand(CMD_ADC_CONV + _measurement + _precision);
	I2Cdev::writeBytes(_dev_address,reg_address,write_length,_buffer); // buffer is ignored when write_length is 0
		
	// Wait for conversion to complete
	delay(1); //general delay
	switch( _precision )
	{
		case ADC_256 : delay(1); break;
		case ADC_512 : delay(3 >> CLKPR); break;
		case ADC_1024: delay(4 >> CLKPR); break;
		case ADC_2048: delay(6 >> CLKPR); break;
		case ADC_4096: delay(10 >> CLKPR); break;
	}
	I2Cdev::readBytes(_dev_address,MS5803_ADC_READ,read_length,_buffer,read_timeout);
	result = ((uint32_t)_buffer[0] << 16) + ((uint32_t)_buffer[1] << 8) + _buffer[2];
	if (_debug) {
		Serial.print("Reading MS5803 ADC");
		switch (_measurement) {
			case PRESSURE:    Serial.println(" Pressure: "   ); break;
			case TEMPERATURE: Serial.println(" Temperature: "); break;
		}
		Serial.print("    buffer[0] = "); Serial.println(_buffer[0]);
		Serial.print("    buffer[1] = "); Serial.println(_buffer[1]);
		Serial.print("    buffer[2] = "); Serial.println(_buffer[2]);
	}
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r15d
movl %esi, %r14d
movq %rdi, %rbx
leal (%r14,%r15), %eax
addl $0x40, %eax
movzbl 0xe(%rdi), %edi
movzbl %al, %esi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x1f1f0
pushq $0x1
popq %rdi
callq 0x1f630
cmpl $0x8, %r15d
ja 0x31967
movl $0x155, %eax            # imm = 0x155
btl %r15d, %eax
jae 0x31967
movl %r15d, %eax
leaq 0x2849(%rip), %rcx      # 0x341a8
movl (%rcx,%rax,4), %edi
callq 0x1f630
movzbl 0xe(%rbx), %edi
pushq $0x3
popq %rdx
xorl %esi, %esi
movq %rbx, %rcx
movl $0x7d0, %r8d            # imm = 0x7D0
callq 0x1f870
movzbl (%rbx), %r13d
movzbl 0x1(%rbx), %ebp
movzbl 0x2(%rbx), %r12d
cmpb $0x1, 0x15(%rbx)
jne 0x31a2d
movq 0x175f4(%rip), %rdi     # 0x48f90
leaq 0x29d1(%rip), %rsi      # 0x34374
callq 0x1f7c0
testl %r14d, %r14d
je 0x319bc
cmpl $0x10, %r14d
jne 0x319cf
leaq 0x29d9(%rip), %rsi      # 0x34393
jmp 0x319c3
leaq 0x29c4(%rip), %rsi      # 0x34387
movq 0x175b6(%rip), %rdi     # 0x48f80
callq 0x1fa60
movq 0x175ba(%rip), %r14     # 0x48f90
leaq 0x29c5(%rip), %rsi      # 0x343a2
movq %r14, %rdi
callq 0x1f7c0
movzbl (%rbx), %esi
movq 0x17591(%rip), %r15     # 0x48f80
movq %r15, %rdi
callq 0x1fa70
leaq 0x29b5(%rip), %rsi      # 0x343b3
movq %r14, %rdi
callq 0x1f7c0
movzbl 0x1(%rbx), %esi
movq %r15, %rdi
callq 0x1fa70
leaq 0x29ab(%rip), %rsi      # 0x343c4
movq %r14, %rdi
callq 0x1f7c0
movzbl 0x2(%rbx), %esi
movq %r15, %rdi
callq 0x1fa70
shll $0x10, %r13d
shll $0x8, %ebp
orl %r13d, %ebp
orl %r12d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/MS5803/MS5803.cpp
// Function: serialPrint64(long)
void serialPrint64(int64_t val64){
	int32_t result_high = val64 / 10000000L;
	int32_t result_low = val64 - (10000000LL * result_high);
	Serial.print(result_high);
	Serial.print(result_low);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x989680, %ecx         # imm = 0x989680
movq %rdi, %rax
cqto
idivq %rcx
imull $0xff676980, %eax, %ebx # imm = 0xFF676980
addl %edi, %ebx
movq 0x17512(%rip), %r14     # 0x48f90
movq %r14, %rdi
movl %eax, %esi
callq 0x1fe70
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1fe70
nop
// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rdi, %rbx
callq 0x1fb60
xorl %ebp, %ebp
pushq $0x7
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1fe10
pushq $0x7f
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x20020
cmpb $0x8, %bpl
je 0x31b9e
movb $-0x80, %r14b
subb $0x1, %r14b
jb 0x31b99
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1fb10
jmp 0x31b87
incb %bpl
jmp 0x31b7e
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1f1b0
// File: /workspace/github_cpp_makefile_star2_O2/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
xorl %r14d, %r14d
pushq $0x7
popq %rdx
xorl %esi, %esi
callq 0x1fe10
pushq $0x7f
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x20020
xorl %r15d, %r15d
cmpb $0x8, %r15b
je 0x31c5c
xorl %r12d, %r12d
cmpb $-0x80, %r12b
je 0x31c53
leal (%r14,%r12), %eax
movzbl %al, %esi
movq %rbx, %rdi
callq 0x1fb10
incb %r12b
jmp 0x31c39
incb %r15b
addb $-0x80, %r14b
jmp 0x31c30
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2757(%rip), %r12      # 0x343e0
cmpq $0x8, %r15
je 0x31ca5
leaq (%r14,%r15), %rax
movzbl (%r12,%rax), %esi
movq %rbx, %rdi
callq 0x1fb10
incq %r15
jmp 0x31c89
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/SSD1308/SSD1308.cpp
// Function: SSD1308::writeString(unsigned char, unsigned char, unsigned short, char const*)
void SSD1308::writeString(uint8_t row, uint8_t col, uint16_t len, const char * text)
{
  uint16_t index = 0;
  setPageAddress(row, MAX_PAGE);
  const uint8_t col_addr = FONT_WIDTH*col;
  setColumnAddress(col_addr, MAX_COL);

  while ((col+index) < CHARS && (index < len)) {
     // write first line, starting at given position
     writeChar(text[index++]);
  }

  // write remaining lines
  // write until the end of memory
  // then wrap around again from the top.
  if (index + 1 < len) {
    setPageAddress(row + 1, MAX_PAGE);
    setColumnAddress(0, MAX_COL);
    bool wrapEntireScreen = false;
    while (index + 1 < len) {
       writeChar(text[index++]);
       // if we've written the last character space on the screen, 
       // reset the page and column address so that it wraps around from the top again
       if (!wrapEntireScreen && (row*CHARS + col + index) > 127) {
         setPageAddress(0, MAX_PAGE);
         setColumnAddress(0, MAX_COL);
         wrapEntireScreen = true;
       }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movl %ecx, %r12d
movl %edx, %r15d
movq %rdi, %r14
pushq $0x7
popq %rdx
movl %esi, 0x14(%rsp)
callq 0x1fe10
leal (,%r15,8), %eax
movzbl %al, %esi
pushq $0x7f
popq %rdx
movq %r14, %rdi
callq 0x20020
movl %r12d, %r13d
movq %r15, 0x8(%rsp)
movl %r15d, %r15d
xorl %ebp, %ebp
cmpq %r13, %rbp
jae 0x31d1a
leal (%r15,%rbp), %eax
cmpl $0xf, %eax
ja 0x31d1a
movsbl (%rbx,%rbp), %esi
incq %rbp
movq %r14, %rdi
callq 0x1f1e0
jmp 0x31cfb
movzwl %r12w, %r13d
leaq 0x1(%rbp), %r12
cmpl %r13d, %r12d
jae 0x31db5
addq %rbp, %rbx
movzbl 0x14(%rsp), %r15d
leal 0x1(%r15), %eax
movzbl %al, %esi
pushq $0x7
popq %rdx
movq %r14, %rdi
callq 0x1fe10
xorl %ebp, %ebp
pushq $0x7f
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20020
shll $0x4, %r15d
addl 0x8(%rsp), %r15d
movq %r15, 0x8(%rsp)
cmpl %r13d, %r12d
jae 0x31db5
movsbl (%rbx), %esi
movq %r14, %rdi
callq 0x1f1e0
movb $0x1, %r15b
testb $0x1, %bpl
jne 0x31daa
movzwl %r12w, %eax
addl 0x8(%rsp), %eax
cmpl $0x80, %eax
jb 0x31da7
movq %r14, %rdi
xorl %esi, %esi
pushq $0x7
popq %rdx
callq 0x1fe10
movq %r14, %rdi
xorl %esi, %esi
pushq $0x7f
popq %rdx
callq 0x20020
jmp 0x31daa
xorl %r15d, %r15d
incq %rbx
incl %r12d
movl %r15d, %ebp
jmp 0x31d63
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/TCA6424A/TCA6424A.cpp
// Function: TCA6424A::readAll(unsigned char*, unsigned char*, unsigned char*)
void TCA6424A::readAll(uint8_t *bank0, uint8_t *bank1, uint8_t *bank2) {
    I2Cdev::readBytes(devAddr, TCA6424A_RA_INPUT0, 3, buffer);
    *bank0 = buffer[0];
    *bank1 = buffer[1];
    *bank2 = buffer[2];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movzbl (%rdi), %edi
leaq 0x1(%r12), %rcx
movq 0x1705b(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rdx
xorl %esi, %esi
callq 0x1f870
movb 0x1(%r12), %al
movb %al, (%r15)
movb 0x2(%r12), %al
movb %al, (%r14)
movb 0x3(%r12), %al
movb %al, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/TCA6424A/TCA6424A.cpp
// Function: TCA6424A::writeAll(unsigned char, unsigned char, unsigned char)
void TCA6424A::writeAll(uint8_t bank0, uint8_t bank1, uint8_t bank2) {
    buffer[0] = bank0;
    buffer[1] = bank1;
    buffer[2] = bank2;
    I2Cdev::writeBytes(devAddr, TCA6424A_RA_OUTPUT0 | TCA6424A_AUTO_INCREMENT, 3, buffer);
}

// Assembly:
leaq 0x1(%rdi), %rax
movb %sil, 0x1(%rdi)
movb %dl, 0x2(%rdi)
movb %cl, 0x3(%rdi)
movzbl (%rdi), %edi
pushq $0x3
popq %rdx
movl $0x84, %esi
movq %rax, %rcx
jmp 0x1f1f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/TCA6424A/TCA6424A.cpp
// Function: TCA6424A::setAllPolarity(unsigned char, unsigned char, unsigned char)
void TCA6424A::setAllPolarity(uint8_t bank0, uint8_t bank1, uint8_t bank2) {
    buffer[0] = bank0;
    buffer[1] = bank1;
    buffer[2] = bank2;
    I2Cdev::writeBytes(devAddr, TCA6424A_RA_POLARITY0 | TCA6424A_AUTO_INCREMENT, 3, buffer);
}

// Assembly:
leaq 0x1(%rdi), %rax
movb %sil, 0x1(%rdi)
movb %dl, 0x2(%rdi)
movb %cl, 0x3(%rdi)
movzbl (%rdi), %edi
pushq $0x3
popq %rdx
movl $0x88, %esi
movq %rax, %rcx
jmp 0x1f1f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/TCA6424A/TCA6424A.cpp
// Function: TCA6424A::getAllDirection(unsigned char*, unsigned char*, unsigned char*)
void TCA6424A::getAllDirection(uint8_t *bank0, uint8_t *bank1, uint8_t *bank2) {
    I2Cdev::readBytes(devAddr, TCA6424A_RA_CONFIG0, 3, buffer);
    *bank0 = buffer[0];
    *bank1 = buffer[1];
    *bank2 = buffer[2];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movzbl (%rdi), %edi
leaq 0x1(%r12), %rcx
movq 0x16d33(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0xc
popq %rsi
pushq $0x3
popq %rdx
callq 0x1f870
movb 0x1(%r12), %al
movb %al, (%r15)
movb 0x2(%r12), %al
movb %al, (%r14)
movb 0x3(%r12), %al
movb %al, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/TCA6424A/TCA6424A.cpp
// Function: TCA6424A::setAllDirection(unsigned char, unsigned char, unsigned char)
void TCA6424A::setAllDirection(uint8_t bank0, uint8_t bank1, uint8_t bank2) {
    buffer[0] = bank0;
    buffer[1] = bank1;
    buffer[2] = bank2;
    I2Cdev::writeBytes(devAddr, TCA6424A_RA_CONFIG0 | TCA6424A_AUTO_INCREMENT, 3, buffer);
}

// Assembly:
leaq 0x1(%rdi), %rax
movb %sil, 0x1(%rdi)
movb %dl, 0x2(%rdi)
movb %cl, 0x3(%rdi)
movzbl (%rdi), %edi
pushq $0x3
popq %rdx
movl $0x8c, %esi
movq %rax, %rcx
jmp 0x1f1f0