LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/DS1307/DS1307.cpp
// Function: DateTime::DateTime(unsigned int)
DateTime::DateTime (uint32_t t) {
      t -= SECONDS_FROM_1970_TO_2000;    // bring to 2000 timestamp from 1970
    
        ss = t % 60;
        t /= 60;
        mm = t % 60;
        t /= 60;
        hh = t % 24;
        uint16_t days = t / 24;
        uint8_t leap;
        for (yOff = 0; ; ++yOff) {
            leap = yOff % 4 == 0;
            if (days < 365 + leap)
                break;
            days -= 365 + leap;
        }
        for (m = 1; ; ++m) {
            uint8_t daysPerMonth = pgm_read_byte(daysInMonth + m - 1);
            if (leap && m == 2)
                ++daysPerMonth;
            if (days < daysPerMonth)
                break;
            days -= daysPerMonth;
        }
        d = days + 1;
    }

// Assembly:
leal -0x386d4380(%rsi), %ecx
pushq $0x3c
popq %r8
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
xorl %esi, %esi
movb %dl, 0x5(%rdi)
xorl %edx, %edx
divl %r8d
movb %dl, 0x4(%rdi)
movl $0xe10, %r8d            # imm = 0xE10
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
pushq $0x18
popq %r8
xorl %edx, %edx
divl %r8d
movb %dl, 0x3(%rdi)
movl $0x15180, %r8d          # imm = 0x15180
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
movl %esi, %ecx
andb $0x3, %cl
movzwl %ax, %edx
cmpb $0x1, %cl
movl $0x0, %r8d
adcl $0x16d, %r8d            # imm = 0x16D
subl %r8d, %edx
jb 0x268f8
incb %sil
movl %edx, %eax
jmp 0x268d4
movb %sil, (%rdi)
movb $0x1, %dl
leaq 0xd708(%rip), %rsi      # 0x3400c
movzbl %dl, %r8d
movl %r8d, %r9d
xorb $0x2, %r9b
orb %cl, %r9b
sete %r9b
addb -0x1(%r8,%rsi), %r9b
movzbl %r9b, %r8d
cmpw %r8w, %ax
jb 0x26930
movzwl %r8w, %r8d
subl %r8d, %eax
incb %dl
jmp 0x26904
movb %dl, 0x1(%rdi)
incb %al
movb %al, 0x2(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/DS1307/DS1307.cpp
// Function: DateTime::DateTime(unsigned short, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)
DateTime::DateTime (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t min, uint8_t sec) {
        if (year >= 2000)
            year -= 2000;
        yOff = year;
        m = month;
        d = day;
        hh = hour;
        mm = min;
        ss = sec;
    }

// Assembly:
movb 0x8(%rsp), %al
leal 0x30(%rsi), %r10d
cmpw $0x7d0, %si             # imm = 0x7D0
movzbl %r10b, %r10d
cmovbl %esi, %r10d
movb %r10b, (%rdi)
movb %dl, 0x1(%rdi)
movb %cl, 0x2(%rdi)
movb %r8b, 0x3(%rdi)
movb %r9b, 0x4(%rdi)
movb %al, 0x5(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/DS1307/DS1307.cpp
// Function: DateTime::DateTime(char const*, char const*)
DateTime::DateTime (const char* date, const char* time) {
        // sample input: date = "Dec 26 2009", time = "12:34:56"
        yOff = conv2d(date + 9);
        // Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 
        switch (date[0]) {
            case 'J': m = (date[1] == 'a' ? 1 : (date[2] == 'n' ? 6 : 7)); break;
            case 'F': m = 2; break;
            case 'A': m = date[2] == 'r' ? 4 : 8; break;
            case 'M': m = date[2] == 'r' ? 3 : 5; break;
            case 'S': m = 9; break;
            case 'O': m = 10; break;
            case 'N': m = 11; break;
            case 'D': m = 12; break;
        }
        d = conv2d(date + 4);
        hh = conv2d(time);
        mm = conv2d(time + 3);
        ss = conv2d(time + 6);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x9(%rsi), %rdi
callq 0x26a1b
movb %al, (%rbx)
movzbl (%r15), %eax
addl $-0x41, %eax
cmpl $0x12, %eax
ja 0x269e0
leaq 0xd630(%rip), %rcx      # 0x33fc0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpb $0x72, 0x2(%r15)
setne %al
shlb $0x2, %al
addb $0x4, %al
jmp 0x269dd
movb $0xb, %al
jmp 0x269dd
movb $0xc, %al
jmp 0x269dd
movb $0xa, %al
jmp 0x269dd
movb $0x9, %al
jmp 0x269dd
movb $0x2, %al
jmp 0x269dd
movb $0x1, %al
cmpb $0x61, 0x1(%r15)
je 0x269dd
cmpb $0x6e, 0x2(%r15)
sete %al
xorb $0x7, %al
jmp 0x269dd
cmpb $0x72, 0x2(%r15)
setne %al
addb %al, %al
addb $0x3, %al
movb %al, 0x1(%rbx)
addq $0x4, %r15
movq %r15, %rdi
callq 0x26a1b
movb %al, 0x2(%rbx)
movq %r14, %rdi
callq 0x26a1b
movb %al, 0x3(%rbx)
leaq 0x3(%r14), %rdi
callq 0x26a1b
movb %al, 0x4(%rbx)
addq $0x6, %r14
movq %r14, %rdi
callq 0x26a1b
movb %al, 0x5(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/DS1307/DS1307.cpp
// Function: DateTime::secondstime() const
long DateTime::secondstime(void) const {
        uint32_t t;
        uint16_t days = date2days(yOff, m, d);
        t = time2long(days, hh, mm, ss);    
        return t;
    }

// Assembly:
movzbl (%rdi), %ecx
movzbl 0x1(%rdi), %edx
movzbl 0x2(%rdi), %eax
xorl %r8d, %r8d
leaq 0xd59f(%rip), %rsi      # 0x3400c
leaq 0x1(%r8), %r9
cmpq %rdx, %r9
jae 0x26a83
movzbl (%r8,%rsi), %r8d
addl %r8d, %eax
movq %r9, %r8
jmp 0x26a6d
cmpb $0x3, %dl
setae %dl
movzwl %cx, %ecx
testb $0x3, %cl
sete %sil
andb %dl, %sil
movzbl %sil, %edx
imull $0x16d, %ecx, %esi      # imm = 0x16D
addl $0x3, %ecx
shrl $0x2, %ecx
addl %esi, %ecx
addl %edx, %ecx
addl %ecx, %eax
decl %eax
movzbl 0x3(%rdi), %ecx
movzbl 0x4(%rdi), %edx
movzbl 0x5(%rdi), %esi
movzwl %ax, %eax
imull $0x18, %eax, %eax
addl %ecx, %eax
imull $0x3c, %eax, %eax
addl %edx, %eax
imull $0x3c, %eax, %eax
addl %esi, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5843/HMC5843.cpp
// Function: HMC5843::initialize()
void HMC5843::initialize() {
    // write CONFIG_A register
    I2Cdev::writeByte(devAddr, HMC5843_RA_CONFIG_A,
        (HMC5843_RATE_10     << (HMC5843_CRA_RATE_BIT - HMC5843_CRA_RATE_LENGTH + 1)) |
        (HMC5843_BIAS_NORMAL << (HMC5843_CRA_BIAS_BIT - HMC5843_CRA_BIAS_LENGTH + 1)));

    // write CONFIG_B register
    setGain(HMC5843_GAIN_1300);
    
    // write MODE register
    setMode(HMC5843_MODE_SINGLE);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
pushq $0x10
popq %rdx
xorl %esi, %esi
callq 0x1f7f0
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1ff10
movq %rbx, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1f550
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5843/HMC5843.cpp
// Function: HMC5843::getHeading(short*, short*, short*)
void HMC5843::getHeading(int16_t *x, int16_t *y, int16_t *z) {
    I2Cdev::readBytes(devAddr, HMC5843_RA_DATAX_H, 6, buffer);
    if (mode == HMC5843_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5843_RA_MODE, HMC5843_MODE_SINGLE << (HMC5843_MODEREG_BIT - HMC5843_MODEREG_LENGTH + 1));
    *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, %r12
movq %rdi, %r15
movzbl (%rdi), %edi
leaq 0x1(%r15), %rcx
movq 0x222d2(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%r15)
jne 0x26c9b
movzbl (%r15), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x1(%r15), %eax
rolw $0x8, %ax
movw %ax, (%r12)
movzwl 0x3(%r15), %eax
rolw $0x8, %ax
movw %ax, (%r14)
movzwl 0x5(%r15), %eax
rolw $0x8, %ax
movw %ax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5843/HMC5843.cpp
// Function: HMC5843::getHeadingX()
int16_t HMC5843::getHeadingX() {
    // each axis read requires that ALL axis registers be read, even if only
    // one is used; this was not done ineffiently in the code by accident
    I2Cdev::readBytes(devAddr, HMC5843_RA_DATAX_H, 6, buffer);
    if (mode == HMC5843_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5843_RA_MODE, HMC5843_MODE_SINGLE << (HMC5843_MODEREG_BIT - HMC5843_MODEREG_LENGTH + 1));
    return (((int16_t)buffer[0]) << 8) | buffer[1];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rcx
movq 0x22268(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%rbx)
jne 0x26d03
movzbl (%rbx), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5843/HMC5843.cpp
// Function: HMC5843::getHeadingY()
int16_t HMC5843::getHeadingY() {
    // each axis read requires that ALL axis registers be read, even if only
    // one is used; this was not done ineffiently in the code by accident
    I2Cdev::readBytes(devAddr, HMC5843_RA_DATAX_H, 6, buffer);
    if (mode == HMC5843_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5843_RA_MODE, HMC5843_MODE_SINGLE << (HMC5843_MODEREG_BIT - HMC5843_MODEREG_LENGTH + 1));
    return (((int16_t)buffer[2]) << 8) | buffer[3];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rcx
movq 0x22228(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%rbx)
jne 0x26d43
movzbl (%rbx), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x3(%rbx), %eax
rolw $0x8, %ax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5843/HMC5843.cpp
// Function: HMC5843::getHeadingZ()
int16_t HMC5843::getHeadingZ() {
    // each axis read requires that ALL axis registers be read, even if only
    // one is used; this was not done ineffiently in the code by accident
    I2Cdev::readBytes(devAddr, HMC5843_RA_DATAX_H, 6, buffer);
    if (mode == HMC5843_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5843_RA_MODE, HMC5843_MODE_SINGLE << (HMC5843_MODEREG_BIT - HMC5843_MODEREG_LENGTH + 1));
    return (((int16_t)buffer[4]) << 8) | buffer[5];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rcx
movq 0x221e8(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%rbx)
jne 0x26d83
movzbl (%rbx), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x5(%rbx), %eax
rolw $0x8, %ax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5883L/HMC5883L.cpp
// Function: HMC5883L::initialize()
void HMC5883L::initialize() {
    // write CONFIG_A register
    I2Cdev::writeByte(devAddr, HMC5883L_RA_CONFIG_A,
        (HMC5883L_AVERAGING_8 << (HMC5883L_CRA_AVERAGE_BIT - HMC5883L_CRA_AVERAGE_LENGTH + 1)) |
        (HMC5883L_RATE_15     << (HMC5883L_CRA_RATE_BIT - HMC5883L_CRA_RATE_LENGTH + 1)) |
        (HMC5883L_BIAS_NORMAL << (HMC5883L_CRA_BIAS_BIT - HMC5883L_CRA_BIAS_LENGTH + 1)));

    // write CONFIG_B register
    setGain(HMC5883L_GAIN_1090);
    
    // write MODE register
    setMode(HMC5883L_MODE_SINGLE);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %edi
pushq $0x70
popq %rdx
xorl %esi, %esi
callq 0x1f7f0
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x200a0
movq %rbx, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1ff30
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5883L/HMC5883L.cpp
// Function: HMC5883L::getHeading(short*, short*, short*)
void HMC5883L::getHeading(int16_t *x, int16_t *y, int16_t *z) {
    I2Cdev::readBytes(devAddr, HMC5883L_RA_DATAX_H, 6, buffer);
    if (mode == HMC5883L_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5883L_RA_MODE, HMC5883L_MODE_SINGLE << (HMC5883L_MODEREG_BIT - HMC5883L_MODEREG_LENGTH + 1));
    *x = (((int16_t)buffer[0]) << 8) | buffer[1];
    *y = (((int16_t)buffer[4]) << 8) | buffer[5];
    *z = (((int16_t)buffer[2]) << 8) | buffer[3];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movzbl (%rdi), %edi
leaq 0x1(%r15), %rcx
movq 0x21efe(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%r15)
jne 0x2706f
movzbl (%r15), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x1(%r15), %eax
rolw $0x8, %ax
movw %ax, (%r12)
movzwl 0x5(%r15), %eax
rolw $0x8, %ax
movw %ax, (%r14)
movzwl 0x3(%r15), %eax
rolw $0x8, %ax
movw %ax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5883L/HMC5883L.cpp
// Function: HMC5883L::getHeadingX()
int16_t HMC5883L::getHeadingX() {
    // each axis read requires that ALL axis registers be read, even if only
    // one is used; this was not done ineffiently in the code by accident
    I2Cdev::readBytes(devAddr, HMC5883L_RA_DATAX_H, 6, buffer);
    if (mode == HMC5883L_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5883L_RA_MODE, HMC5883L_MODE_SINGLE << (HMC5883L_MODEREG_BIT - HMC5883L_MODEREG_LENGTH + 1));
    return (((int16_t)buffer[0]) << 8) | buffer[1];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rcx
movq 0x21e94(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%rbx)
jne 0x270d7
movzbl (%rbx), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5883L/HMC5883L.cpp
// Function: HMC5883L::getHeadingY()
int16_t HMC5883L::getHeadingY() {
    // each axis read requires that ALL axis registers be read, even if only
    // one is used; this was not done ineffiently in the code by accident
    I2Cdev::readBytes(devAddr, HMC5883L_RA_DATAX_H, 6, buffer);
    if (mode == HMC5883L_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5883L_RA_MODE, HMC5883L_MODE_SINGLE << (HMC5883L_MODEREG_BIT - HMC5883L_MODEREG_LENGTH + 1));
    return (((int16_t)buffer[4]) << 8) | buffer[5];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rcx
movq 0x21e54(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%rbx)
jne 0x27117
movzbl (%rbx), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x5(%rbx), %eax
rolw $0x8, %ax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HMC5883L/HMC5883L.cpp
// Function: HMC5883L::getHeadingZ()
int16_t HMC5883L::getHeadingZ() {
    // each axis read requires that ALL axis registers be read, even if only
    // one is used; this was not done ineffiently in the code by accident
    I2Cdev::readBytes(devAddr, HMC5883L_RA_DATAX_H, 6, buffer);
    if (mode == HMC5883L_MODE_SINGLE) I2Cdev::writeByte(devAddr, HMC5883L_RA_MODE, HMC5883L_MODE_SINGLE << (HMC5883L_MODEREG_BIT - HMC5883L_MODEREG_LENGTH + 1));
    return (((int16_t)buffer[2]) << 8) | buffer[3];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %rcx
movq 0x21e14(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x3
popq %rsi
pushq $0x6
popq %rdx
callq 0x1f870
cmpb $0x1, 0x7(%rbx)
jne 0x27157
movzbl (%rbx), %edi
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x1f7f0
movzwl 0x3(%rbx), %eax
rolw $0x8, %ax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HTU21D/HTU21D.cpp
// Function: HTU21D::testConnection()
bool HTU21D::testConnection() {
    reset();
    buffer[0] = 0;
    I2Cdev::readByte(devAddr, HTU21D_READ_USER_REGISTER, buffer);
    return buffer[0] == 0x2;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x1fa90
leaq 0x1(%rbx), %rdx
movb $0x0, 0x1(%rbx)
movzbl (%rbx), %edi
movq 0x21ced(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
movl $0xe7, %esi
callq 0x1f9b0
cmpb $0x2, 0x1(%rbx)
sete %al
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HTU21D/HTU21D.cpp
// Function: HTU21D::getTemperature()
float HTU21D::getTemperature() {
    // Ignore the CRC byte
    uint16_t t = 0;
    if (1!=I2Cdev::readWord(devAddr, HTU21D_RA_TEMPERATURE, &t)){
        return NAN;
    }
    // clear the status bits (bit0 & bit1) and calculate the temperature 
    // as per the formula in the datasheet
    return ((float)(t&0xFFFC))*175.72/65536.0-46.85;
}

// Assembly:
pushq %rax
leaq 0x6(%rsp), %rdx
andw $0x0, (%rdx)
movzbl (%rdi), %edi
movq 0x21cc2(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
movl $0xe3, %esi
callq 0x1f930
cmpb $0x1, %al
jne 0x272c1
movzwl 0x6(%rsp), %eax
andl $-0x4, %eax
cvtsi2sd %eax, %xmm0
mulsd 0xcd6d(%rip), %xmm0     # 0x34018
mulsd 0xcd6d(%rip), %xmm0     # 0x34020
addsd 0xcd6d(%rip), %xmm0     # 0x34028
cvtsd2ss %xmm0, %xmm0
jmp 0x272c9
movss 0xcccb(%rip), %xmm0     # 0x33f94
popq %rax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/HTU21D/HTU21D.cpp
// Function: HTU21D::getHumidity()
float HTU21D::getHumidity() {
    // Ignore the CRC byte
    uint16_t t = 0;
    if (1!=I2Cdev::readWord(devAddr, HTU21D_RA_HUMIDITY, &t)){
        return NAN;
    }
    // clear the status bits (bit0 & bit1) and calculate the humidity 
    // as per the formula in the datasheet
    return ((float)(t&0xFFFC))*125.0/65536.0-6.0;
}

// Assembly:
pushq %rax
leaq 0x6(%rsp), %rdx
andw $0x0, (%rdx)
movzbl (%rdi), %edi
movq 0x21c68(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
movl $0xe5, %esi
callq 0x1f930
cmpb $0x1, %al
jne 0x2731b
movzwl 0x6(%rsp), %eax
andl $-0x4, %eax
cvtsi2sd %eax, %xmm0
mulsd 0xcd2b(%rip), %xmm0     # 0x34030
mulsd 0xcd13(%rip), %xmm0     # 0x34020
addsd 0xcd23(%rip), %xmm0     # 0x34038
cvtsd2ss %xmm0, %xmm0
jmp 0x27323
movss 0xcc71(%rip), %xmm0     # 0x33f94
popq %rax
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::readBit(unsigned char, unsigned char, unsigned char, unsigned char*, unsigned short)
int8_t I2Cdev::readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data, uint16_t timeout) {
    uint8_t b;
    uint8_t count = readByte(devAddr, regAddr, &b, timeout);
    *data = b & (1 << bitNum);
    return count;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movl %edx, %ebp
leaq 0xf(%rsp), %r14
movq %r14, %rdx
movl %r8d, %ecx
callq 0x1f9b0
pushq $0x1
popq %rdx
movl %ebp, %ecx
shll %cl, %edx
andb (%r14), %dl
movb %dl, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::readBitW(unsigned char, unsigned char, unsigned char, unsigned short*, unsigned short)
int8_t I2Cdev::readBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t *data, uint16_t timeout) {
    uint16_t b;
    uint8_t count = readWord(devAddr, regAddr, &b, timeout);
    *data = b & (1 << bitNum);
    return count;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movl %edx, %ebp
leaq 0xe(%rsp), %r14
movq %r14, %rdx
movl %r8d, %ecx
callq 0x1f930
pushq $0x1
popq %rdx
movl %ebp, %ecx
shll %cl, %edx
andw (%r14), %dx
movw %dx, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::readBits(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*, unsigned short)
int8_t I2Cdev::readBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t *data, uint16_t timeout) {
    // 01101001 read byte
    // 76543210 bit numbers
    //    xxx   args: bitStart=4, length=3
    //    010   masked
    //   -> 010 shifted
    uint8_t count, b;
    if ((count = readByte(devAddr, regAddr, &b, timeout)) != 0) {
        uint8_t mask = ((1 << length) - 1) << (bitStart - length + 1);
        b &= mask;
        b >>= (bitStart - length + 1);
        *data = b;
    }
    return count;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movl %ecx, %r14d
movl %edx, %ebp
leaq 0xf(%rsp), %rdx
movl %r9d, %ecx
callq 0x1f9b0
testb %al, %al
je 0x273f2
movzbl %r14b, %ecx
pushq $-0x1
popq %rsi
shll %cl, %esi
notl %esi
movzbl %bpl, %edx
subl %ecx, %edx
incb %dl
movl %edx, %ecx
shll %cl, %esi
andb 0xf(%rsp), %sil
movzbl %sil, %esi
shrl %cl, %esi
movb %sil, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::readBitsW(unsigned char, unsigned char, unsigned char, unsigned char, unsigned short*, unsigned short)
int8_t I2Cdev::readBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t *data, uint16_t timeout) {
    // 1101011001101001 read byte
    // fedcba9876543210 bit numbers
    //    xxx           args: bitStart=12, length=3
    //    010           masked
    //           -> 010 shifted
    uint8_t count;
    uint16_t w;
    if ((count = readWord(devAddr, regAddr, &w, timeout)) != 0) {
        uint16_t mask = ((1 << length) - 1) << (bitStart - length + 1);
        w &= mask;
        w >>= (bitStart - length + 1);
        *data = w;
    }
    return count;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movl %ecx, %r14d
movl %edx, %ebp
leaq 0xe(%rsp), %rdx
movl %r9d, %ecx
callq 0x1f930
testb %al, %al
je 0x27441
movzbl %r14b, %ecx
pushq $-0x1
popq %rsi
shll %cl, %esi
notl %esi
movzbl %bpl, %edx
subl %ecx, %edx
incb %dl
movl %edx, %ecx
shll %cl, %esi
andw 0xe(%rsp), %si
movzwl %si, %esi
shrl %cl, %esi
movw %si, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::writeBit(unsigned char, unsigned char, unsigned char, unsigned char)
bool I2Cdev::writeBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t data) {
    uint8_t b;
    readByte(devAddr, regAddr, &b);
    b = (data != 0) ? (b | (1 << bitNum)) : (b & ~(1 << bitNum));
    return writeByte(devAddr, regAddr, b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r14d
movl %edi, %r15d
movq 0x21871(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
leaq 0xf(%rsp), %r12
movq %r12, %rdx
callq 0x1f9b0
movzbl (%r12), %eax
movl %eax, %ecx
btsl %ebp, %ecx
btrl %ebp, %eax
testl %ebx, %ebx
cmovnel %ecx, %eax
movzbl %al, %edx
movl %r15d, %edi
movl %r14d, %esi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1f7f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::writeBitW(unsigned char, unsigned char, unsigned char, unsigned short)
bool I2Cdev::writeBitW(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t data) {
    uint16_t w;
    readWord(devAddr, regAddr, &w);
    w = (data != 0) ? (w | (1 << bitNum)) : (w & ~(1 << bitNum));
    return writeWord(devAddr, regAddr, w);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r14d
movl %edi, %r15d
movq 0x21805(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
leaq 0xe(%rsp), %r12
movq %r12, %rdx
callq 0x1f930
movzwl (%r12), %eax
movl %eax, %ecx
btsl %ebp, %ecx
btrl %ebp, %eax
testl %ebx, %ebx
cmovnel %ecx, %eax
movzwl %ax, %edx
movl %r15d, %edi
movl %r14d, %esi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1ffa0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::writeBits(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)
bool I2Cdev::writeBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t data) {
    //      010 value to write
    // 76543210 bit numbers
    //    xxx   args: bitStart=4, length=3
    // 00011100 mask byte
    // 10101111 original value (sample)
    // 10100011 original & ~mask
    // 10101011 masked | value
    uint8_t b;
    if (readByte(devAddr, regAddr, &b) != 0) {
        uint8_t mask = ((1 << length) - 1) << (bitStart - length + 1);
        data <<= (bitStart - length + 1); // shift data into correct position
        data &= mask; // zero all non-important bits in data
        b &= ~(mask); // zero all important bits in existing byte
        b |= data; // combine data with existing byte
        return writeByte(devAddr, regAddr, b);
    } else {
        return false;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %r14d
movl %ecx, %r12d
movl %edx, %r15d
movl %esi, %ebx
movl %edi, %ebp
movq 0x21794(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
leaq 0xf(%rsp), %rdx
callq 0x1f9b0
testb %al, %al
je 0x27809
movzbl %r12b, %ecx
pushq $-0x1
popq %rdx
shll %cl, %edx
notl %edx
movzbl %r15b, %eax
subl %ecx, %eax
incb %al
movzbl %r14b, %esi
andl %edx, %esi
movl %eax, %ecx
shll %cl, %edx
shll %cl, %esi
notb %dl
andb 0xf(%rsp), %dl
orb %dl, %sil
movzbl %sil, %edx
movzbl %bpl, %edi
movzbl %bl, %esi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1f7f0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/I2Cdev/I2Cdev.cpp
// Function: I2Cdev::writeBitsW(unsigned char, unsigned char, unsigned char, unsigned char, unsigned short)
bool I2Cdev::writeBitsW(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t data) {
    //              010 value to write
    // fedcba9876543210 bit numbers
    //    xxx           args: bitStart=12, length=3
    // 0001110000000000 mask word
    // 1010111110010110 original value (sample)
    // 1010001110010110 original & ~mask
    // 1010101110010110 masked | value
    uint16_t w;
    if (readWord(devAddr, regAddr, &w) != 0) {
        uint16_t mask = ((1 << length) - 1) << (bitStart - length + 1);
        data <<= (bitStart - length + 1); // shift data into correct position
        data &= mask; // zero all non-important bits in data
        w &= ~(mask); // zero all important bits in existing word
        w |= data; // combine data with existing word
        return writeWord(devAddr, regAddr, w);
    } else {
        return false;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %ebp
movl %ecx, %r12d
movl %edx, %r15d
movl %esi, %ebx
movl %edi, %r14d
movq 0x2170f(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
leaq 0xe(%rsp), %rdx
callq 0x1f930
testb %al, %al
je 0x27889
movzbl %r12b, %ecx
pushq $-0x1
popq %rdx
shll %cl, %edx
notl %edx
movzbl %r15b, %eax
subl %ecx, %eax
incb %al
andl %edx, %ebp
movl %eax, %ecx
shll %cl, %edx
shll %cl, %ebp
notl %edx
andw 0xe(%rsp), %dx
orl %ebp, %edx
movzwl %dx, %edx
movzbl %r14b, %edi
movzbl %bl, %esi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1ffa0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/IAQ2000/IAQ2000.cpp
// Function: IAQ2000::readAllBytes(unsigned char, unsigned char, unsigned char*, unsigned short)
int8_t IAQ2000::readAllBytes(uint8_t devAddr, uint8_t length, uint8_t *data, uint16_t timeout) {
#ifdef I2CDEV_SERIAL_DEBUG
    Serial.print("I2C (0x");
    Serial.print(devAddr, HEX);
    Serial.print(") reading ");
    Serial.print(length, DEC);
    Serial.print(" bytes...");
#endif
    
    int8_t count = 0;

    Wire.requestFrom(devAddr, length);
    
    uint32_t t1 = millis();
    for (; Wire.available() && (timeout == 0 || millis() - t1 < timeout); count++) {
#if ((I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO < 100) || I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_NBWIRE)
        data[count] = Wire.receive();
#elif (I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE && ARDUINO >= 100)
        data[count] = Wire.read();
#endif
#ifdef I2CDEV_SERIAL_DEBUG
        Serial.print(data[count], HEX);
        if (count + 1 < length) Serial.print(" ");
#endif
    }
    if (timeout > 0 && millis() - t1 >= timeout && count < length) count = -1; // timeout
    
#ifdef I2CDEV_SERIAL_DEBUG
    Serial.print(". Done (");
    Serial.print(count, DEC);
    Serial.println(" read).");
#endif
    
    return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rcx, %r15
movl %edx, %ebx
movq 0x215ac(%rip), %r13     # 0x48f78
movq %r13, %rdi
callq 0x1fc90
callq 0x1f830
movl %eax, %r12d
xorl %r14d, %r14d
movq %r13, %rdi
callq 0x1f680
testl %eax, %eax
je 0x27a11
testw %bp, %bp
je 0x279fc
callq 0x1f830
subl %r12d, %eax
cmpl %ebp, %eax
jae 0x27a16
movq %r13, %rdi
callq 0x1fde0
movsbq %r14b, %r14
movb %al, (%r15,%r14)
incb %r14b
jmp 0x279df
testw %bp, %bp
je 0x27a39
callq 0x1f830
subl %r12d, %eax
cmpl %ebp, %eax
jb 0x27a39
movsbl %r14b, %eax
movzbl %bl, %ecx
cmpl %ecx, %eax
movzbl %r14b, %eax
movl $0xff, %r14d
cmovgel %eax, %r14d
movl %r14d, %eax
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/ITG3200/ITG3200.cpp
// Function: ITG3200::getRotation(short*, short*, short*)
void ITG3200::getRotation(int16_t* x, int16_t* y, int16_t* z) {
    I2Cdev::readBytes(devAddr, ITG3200_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 0x21189(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x1d
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/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::initialize()
void L3G4200D::initialize() {
	I2Cdev::writeByte(devAddr, L3G4200D_RA_CTRL_REG1, 0b00001111);
    I2Cdev::writeByte(devAddr, L3G4200D_RA_CTRL_REG2, 0b00000000);
    I2Cdev::writeByte(devAddr, L3G4200D_RA_CTRL_REG3, 0b00000000);
    I2Cdev::writeByte(devAddr, L3G4200D_RA_CTRL_REG4, 0b00000000);
    I2Cdev::writeByte(devAddr, L3G4200D_RA_CTRL_REG5, 0b00000000);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
pushq $0x20
popq %rsi
pushq $0xf
popq %rdx
callq 0x1f7f0
movzbl (%rbx), %edi
pushq $0x21
popq %rsi
xorl %edx, %edx
callq 0x1f7f0
movzbl (%rbx), %edi
pushq $0x22
popq %rsi
xorl %edx, %edx
callq 0x1f7f0
movzbl (%rbx), %edi
pushq $0x23
popq %rsi
xorl %edx, %edx
callq 0x1f7f0
movzbl (%rbx), %edi
pushq $0x24
popq %rsi
xorl %edx, %edx
popq %rbx
jmp 0x1f7f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::setOutputDataRate(unsigned short)
void L3G4200D::setOutputDataRate(uint16_t rate) {
	uint8_t writeVal;
	
	if (rate == 100) {
		writeVal = L3G4200D_RATE_100;
	} else if (rate == 200) {
		writeVal = L3G4200D_RATE_200;
	} else if (rate == 400) {
		writeVal = L3G4200D_RATE_400;
	} else {
		writeVal = L3G4200D_RATE_800;
	}
	
	I2Cdev::writeBits(devAddr, L3G4200D_RA_CTRL_REG1, L3G4200D_ODR_BIT,
		L3G4200D_ODR_LENGTH, writeVal); 
}

// Assembly:
cmpl $0x64, %esi
je 0x28049
cmpl $0x190, %esi            # imm = 0x190
je 0x28045
cmpl $0xc8, %esi
jne 0x2804d
movb $0x1, %al
jmp 0x2804f
movb $0x2, %al
jmp 0x2804f
xorl %eax, %eax
jmp 0x2804f
movb $0x3, %al
movzbl (%rdi), %edi
movzbl %al, %r8d
pushq $0x20
popq %rsi
pushq $0x7
popq %rdx
pushq $0x2
popq %rcx
jmp 0x1f980
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::getOutputDataRate()
uint16_t L3G4200D::getOutputDataRate() {
	I2Cdev::readBits(devAddr, L3G4200D_RA_CTRL_REG1, L3G4200D_ODR_BIT, 
		L3G4200D_ODR_LENGTH, buffer);
	uint8_t rate = buffer[0];

	if (rate == L3G4200D_RATE_100) {
		return 100;
	} else if (rate == L3G4200D_RATE_200) {
		return 200;
	} else if (rate == L3G4200D_RATE_400) {
		return 400;
	}
	return 800;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %r8
movq 0x20ed2(%rip), %rax     # 0x48f48
movzwl (%rax), %r9d
pushq $0x20
popq %rsi
pushq $0x7
popq %rdx
pushq $0x2
popq %rcx
callq 0x1fd50
movzbl 0x1(%rbx), %eax
movl %eax, %ecx
shll $0x4, %ecx
movabsq $0x19000c80064, %rdx    # imm = 0x19000C80064
shrq %cl, %rdx
cmpb $0x3, %al
movl $0x320, %eax            # imm = 0x320
cmovbl %edx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::getBandwidthCutOff()
float L3G4200D::getBandwidthCutOff() {
	uint16_t dataRate = getOutputDataRate();
	uint8_t bandwidthMode = getBandwidthCutOffMode();

	if (dataRate == 100) {
		if (bandwidthMode == L3G4200D_BW_LOW) {
			return 12.5;
		} else {
			return 25.0;
		}
	} else if (dataRate == 200) {
		if (bandwidthMode == L3G4200D_BW_LOW) {
			return 12.5;
		} else if (bandwidthMode == L3G4200D_BW_MED_LOW) {
			return 25.0;
		} else if (bandwidthMode == L3G4200D_BW_MED_HIGH) {
			return 50.0;
		} else {
			return 70.0;
		}
	} else if (dataRate == 400) {
		if (bandwidthMode == L3G4200D_BW_LOW) {
			return 20.0;
		} else if (bandwidthMode == L3G4200D_BW_MED_LOW) {
			return 25.0;
		} else if (bandwidthMode == L3G4200D_BW_MED_HIGH) {
			return 50.0;
		} else {
			return 110.0;
		}
	} else {
		if (bandwidthMode == L3G4200D_BW_LOW) {
			return 30.0;
		} else if (bandwidthMode == L3G4200D_BW_MED_LOW) {
			return 35.0;
		} else if (bandwidthMode == L3G4200D_BW_MED_HIGH) {
			return 50.0;
		} else {
			return 110.0;
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x1faa0
movl %eax, %ebx
movq %r14, %rdi
callq 0x1fc00
cmpw $0x190, %bx             # imm = 0x190
je 0x2813a
movzwl %bx, %ecx
cmpl $0xc8, %ecx
je 0x2812a
cmpl $0x64, %ecx
jne 0x2814a
xorl %ecx, %ecx
testb %al, %al
sete %cl
leaq 0xbf25(%rip), %rax      # 0x34048
movss (%rax,%rcx,4), %xmm0
jmp 0x28171
cmpb $0x3, %al
jae 0x28169
movzbl %al, %eax
leaq 0xbf18(%rip), %rcx      # 0x34050
jmp 0x28158
cmpb $0x3, %al
jae 0x2815f
movzbl %al, %eax
leaq 0xbf14(%rip), %rcx      # 0x3405c
jmp 0x28158
cmpb $0x3, %al
jae 0x2815f
movzbl %al, %eax
leaq 0xbf10(%rip), %rcx      # 0x34068
movss (%rcx,%rax,4), %xmm0
jmp 0x28171
movss 0xbed9(%rip), %xmm0     # 0x34040
jmp 0x28171
movss 0xbed3(%rip), %xmm0     # 0x34044
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::getFullScale()
uint16_t L3G4200D::getFullScale() {
	I2Cdev::readBits(devAddr, L3G4200D_RA_CTRL_REG4, 
		L3G4200D_FS_BIT, L3G4200D_FS_LENGTH, buffer);
	uint8_t readBits = buffer[0];
	
	if (readBits == L3G4200D_FS_250) {
		return 250;
	} else if (readBits == L3G4200D_FS_500) {
		return 500;
	} else {
		return 2000;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %r8
movq 0x20a0c(%rip), %rax     # 0x48f48
movzwl (%rax), %r9d
pushq $0x23
popq %rsi
pushq $0x5
popq %rdx
pushq $0x2
popq %rcx
callq 0x1fd50
movb 0x1(%rbx), %al
cmpb $0x1, %al
movl $0x1f4, %ecx            # imm = 0x1F4
movl $0x7d0, %edx            # imm = 0x7D0
cmovel %ecx, %edx
testb %al, %al
movl $0xfa, %eax
cmovnel %edx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::setDataFilter(unsigned char)
void L3G4200D::setDataFilter(uint8_t filter) {
	if (filter == L3G4200D_HIGH_PASS || filter == L3G4200D_LOW_HIGH_PASS) {
		setHighPassFilterEnabled(true);
	} else {
		setHighPassFilterEnabled(false);
	}
	
	I2Cdev::writeBits(devAddr, L3G4200D_RA_CTRL_REG5, L3G4200D_OUT_SEL_BIT, 
		L3G4200D_OUT_SEL_LENGTH, filter);
	I2Cdev::writeBits(devAddr, L3G4200D_RA_CTRL_REG5, L3G4200D_INT1_SEL_BIT, 
		L3G4200D_INT1_SEL_LENGTH, filter);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl %ebx, %eax
andb $-0x3, %al
xorl %esi, %esi
cmpb $0x1, %al
sete %sil
callq 0x1f840
movzbl (%r14), %edi
pushq $0x24
popq %rbp
pushq $0x1
popq %rdx
pushq $0x2
popq %r15
movl %ebp, %esi
movl %r15d, %ecx
movl %ebx, %r8d
callq 0x1f980
movzbl (%r14), %edi
pushq $0x3
popq %rdx
movl %ebp, %esi
movl %r15d, %ecx
movl %ebx, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1f980
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::getDataFilter()
uint8_t L3G4200D::getDataFilter() {
	I2Cdev::readBits(devAddr, L3G4200D_RA_CTRL_REG5, L3G4200D_OUT_SEL_BIT, 
		L3G4200D_OUT_SEL_LENGTH, buffer);
	uint8_t outBits = buffer[0];

	if (outBits == L3G4200D_NON_HIGH_PASS || outBits == L3G4200D_HIGH_PASS) {
		return outBits;
	}

	if (getHighPassFilterEnabled()) {
		return L3G4200D_LOW_HIGH_PASS;
	} else {
		return L3G4200D_LOW_PASS;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %r8
movq 0x20878(%rip), %rax     # 0x48f48
movzwl (%rax), %r9d
pushq $0x24
popq %rsi
pushq $0x1
popq %rdx
pushq $0x2
popq %rcx
callq 0x1fd50
movb 0x1(%rbx), %al
cmpb $0x2, %al
jb 0x286f3
movq %rbx, %rdi
callq 0x1f510
orb $0x2, %al
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::getAngularVelocityX()
int16_t L3G4200D::getAngularVelocityX() {
	uint8_t bufferL[6];
	uint8_t bufferH[6];
	I2Cdev::readBytes(devAddr, L3G4200D_RA_OUT_X_L, 1, bufferL);
	I2Cdev::readBytes(devAddr, L3G4200D_RA_OUT_X_H, 1, bufferH);
	if (getEndianMode() == L3G4200D_BIG_ENDIAN) {
		return (((int16_t) bufferL[0]) << 8) | bufferH[0];
	} else {
		return (((int16_t) bufferH[0]) << 8) | bufferL[0];
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movzbl (%rdi), %edi
movq 0x20659(%rip), %r15     # 0x48f48
movzwl (%r15), %r8d
pushq $0x28
popq %rsi
pushq $0x1
popq %rbp
leaq 0x12(%rsp), %r14
movl %ebp, %edx
movq %r14, %rcx
callq 0x1f870
movzbl (%rbx), %edi
movzwl (%r15), %r8d
pushq $0x29
popq %rsi
leaq 0xc(%rsp), %r15
movl %ebp, %edx
movq %r15, %rcx
callq 0x1f870
movq %rbx, %rdi
callq 0x1f290
movzbl (%r14), %ecx
movzbl (%r15), %edx
testb %al, %al
movl %edx, %esi
cmovnel %ecx, %esi
cmovnel %edx, %ecx
shll $0x8, %esi
movzbl %cl, %eax
orl %esi, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3GD20H/L3GD20H.cpp
// Function: L3GD20H::setOutputDataRate(unsigned short)
void L3GD20H::setOutputDataRate(uint16_t rate) {
	uint8_t writeVal;
	bool lowODRwriteVal;

	if (rate ==12) {
		writeVal = L3GD20H_RATE_100_12;
		setLowODREnabled(true);
	} else if (rate == 25) {
		writeVal = L3GD20H_RATE_200_25;
		setLowODREnabled(true);
	} else if (rate == 50) {
		writeVal = L3GD20H_RATE_400_50;
		setLowODREnabled(true);
	} else if (rate == 100) {
		writeVal = L3GD20H_RATE_100_12;
		setLowODREnabled(false);
	} else if (rate == 200) {
		writeVal = L3GD20H_RATE_200_25;
		setLowODREnabled(false);
	} else if (rate == 400) {
		writeVal = L3GD20H_RATE_400_50;
		setLowODREnabled(false);
	} else {
		writeVal = L3GD20H_RATE_800_50;
		setLowODREnabled(false);
	}
	
	I2Cdev::writeBits(devAddr, L3GD20H_RA_CTRL1, L3GD20H_ODR_BIT,
		L3GD20H_ODR_LENGTH, writeVal); 
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb $0x1, %al
cmpl $0xc, %esi
je 0x290b3
cmpl $0x190, %esi            # imm = 0x190
je 0x290bc
cmpl $0x32, %esi
je 0x290a7
cmpl $0x64, %esi
je 0x290b1
cmpl $0xc8, %esi
je 0x290ac
cmpl $0x19, %esi
jne 0x290b7
movb $0x1, %al
movb $0x1, %bpl
jmp 0x290c1
movb $0x2, %bpl
jmp 0x290c1
movb $0x1, %bpl
jmp 0x290bf
xorl %eax, %eax
xorl %ebp, %ebp
jmp 0x290c1
movb $0x3, %bpl
jmp 0x290bf
movb $0x2, %bpl
xorl %eax, %eax
movzbl %al, %esi
movq %rbx, %rdi
callq 0x1f5d0
movzbl (%rbx), %edi
movzbl %bpl, %r8d
pushq $0x20
popq %rsi
pushq $0x7
popq %rdx
pushq $0x2
popq %rcx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1f980
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3GD20H/L3GD20H.cpp
// Function: L3GD20H::getOutputDataRate()
uint16_t L3GD20H::getOutputDataRate() {
	I2Cdev::readBits(devAddr, L3GD20H_RA_CTRL1, L3GD20H_ODR_BIT, 
		L3GD20H_ODR_LENGTH, buffer);
	uint8_t rate = buffer[0];

	if (rate == L3GD20H_RATE_100_12) {
		if (getLowODREnabled() == true) {
			return 12;
		} else {
			return 100;	
		}
	} else if (rate == L3GD20H_RATE_200_25) {
		if (getLowODREnabled() == true) {
			return 25;
		} else {
			return 200;
		}
	} else if (rate == L3GD20H_RATE_400_50) {
		if (getLowODREnabled() == true) {
			return 50;
		} else {
			return 400;
		}
	} else if (rate == L3GD20H_RATE_800_50) {
		if (getLowODREnabled() == true) {
			return 50;
		} else {
			return 800;
		}
	}
	return 800;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %r8
movq 0x1fe3e(%rip), %rax     # 0x48f48
movzwl (%rax), %r9d
pushq $0x20
popq %rsi
pushq $0x7
popq %rdx
pushq $0x2
popq %rcx
callq 0x1fd50
movzbl 0x1(%rbx), %eax
cmpq $0x3, %rax
ja 0x29187
leaq 0xaf47(%rip), %rcx      # 0x34074
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
callq 0x1f950
testb %al, %al
pushq $0xc
popq %rcx
pushq $0x64
popq %rax
jmp 0x29182
movq %rbx, %rdi
callq 0x1f950
testb %al, %al
pushq $0x32
popq %rcx
movl $0x190, %eax            # imm = 0x190
jmp 0x29182
movq %rbx, %rdi
callq 0x1f950
testb %al, %al
pushq $0x32
popq %rcx
movl $0x320, %eax            # imm = 0x320
jmp 0x29182
movq %rbx, %rdi
callq 0x1f950
testb %al, %al
pushq $0x19
popq %rcx
movl $0xc8, %eax
cmovnel %ecx, %eax
popq %rbx
retq
movw $0x320, %ax             # imm = 0x320
jmp 0x29185
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3GD20H/L3GD20H.cpp
// Function: L3GD20H::getDataFilter()
uint8_t L3GD20H::getDataFilter() {
	I2Cdev::readBits(devAddr, L3GD20H_RA_CTRL5, L3GD20H_OUT_SEL_BIT, 
		L3GD20H_OUT_SEL_LENGTH, buffer);
	uint8_t outBits = buffer[0];

	if (outBits == L3GD20H_NON_HIGH_PASS || outBits == L3GD20H_HIGH_PASS) {
		return outBits;
	}

	if (getHighPassFilterEnabled()) {
		return L3GD20H_LOW_HIGH_PASS;
	} else {
		return L3GD20H_LOW_PASS;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rdi), %edi
leaq 0x1(%rbx), %r8
movq 0x1f7b0(%rip), %rax     # 0x48f48
movzwl (%rax), %r9d
pushq $0x24
popq %rsi
pushq $0x1
popq %rdx
pushq $0x2
popq %rcx
callq 0x1fd50
movb 0x1(%rbx), %al
cmpb $0x2, %al
jb 0x297bb
movq %rbx, %rdi
callq 0x1f490
orb $0x2, %al
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3GD20H/L3GD20H.cpp
// Function: L3GD20H::getAngularVelocity(short*, short*, short*)
void L3GD20H::getAngularVelocity(int16_t* x, int16_t* y, int16_t* z) {
	I2Cdev::readBytes(devAddr, L3GD20H_RA_OUT_X_L | 0x80, 6, buffer);
	if (endianMode == L3GD20H_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 0x1(%r14), %rcx
movq 0x1f5c6(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x6
popq %rdx
movl $0xa8, %esi
callq 0x1f870
cmpb $0x0, 0x7(%r14)
je 0x299c0
movzwl 0x1(%r14), %eax
rolw $0x8, %ax
movw %ax, (%r12)
movzwl 0x3(%r14), %eax
rolw $0x8, %ax
movw %ax, (%r15)
movzwl 0x5(%r14), %eax
rolw $0x8, %ax
jmp 0x299d8
movzwl 0x1(%r14), %eax
movw %ax, (%r12)
movzwl 0x3(%r14), %eax
movw %ax, (%r15)
movzwl 0x5(%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/L3GD20H/L3GD20H.cpp
// Function: L3GD20H::getAngularVelocityX()
int16_t L3GD20H::getAngularVelocityX() {
	I2Cdev::readBytes(devAddr, L3GD20H_RA_OUT_X_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 0x1f54b(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x2
popq %rdx
movl $0xa8, %esi
movq %r14, %rcx
callq 0x1f870
cmpb $0x0, 0x7(%rbx)
je 0x29a21
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
jmp 0x29a25
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/mrlordkaj[P]i2cdevlib-pi/L3GD20H/L3GD20H.cpp
// Function: L3GD20H::getAngularVelocityY()
int16_t L3GD20H::getAngularVelocityY() {
	I2Cdev::readBytes(devAddr, L3GD20H_RA_OUT_Y_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 0x1f505(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x2
popq %rdx
movl $0xaa, %esi
movq %r14, %rcx
callq 0x1f870
cmpb $0x0, 0x7(%rbx)
je 0x29a67
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
jmp 0x29a6b
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1f4bf(%rip), %rax     # 0x48f48
movzwl (%rax), %r8d
pushq $0x2
popq %rdx
movl $0xac, %esi
movq %r14, %rcx
callq 0x1f870
cmpb $0x0, 0x7(%rbx)
je 0x29aad
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
jmp 0x29ab1
movzwl (%r14), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1ed4d(%rip), %rax     # 0x48f48
movzwl (%rax), %ecx
leaq 0xe(%rsp), %rbx
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1f930
movswl (%rbx), %eax
sarl $0x2, %eax
cvtsi2ss %eax, %xmm0
mulss 0x9e65(%rip), %xmm0     # 0x34084
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2a266
movq %rdi, %rbx
callq 0x1fc80
movb 0x8(%rbx), %al
shlb $0x5, %r14b
addb $0x20, %r14b
andb $0x60, %r14b
andb $-0x61, %al
orb %r14b, %al
movb %al, 0x8(%rbx)
movl 0x8(%rbx), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1f3b0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop