LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: 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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
addq $0x9, %rdi
callq 0x311e0
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, (%rax)
movq 0x28(%rsp), %rax
movsbl (%rax), %eax
addl $-0x41, %eax
movl %eax, %ecx
movq %rcx, 0x18(%rsp)
subl $0x12, %eax
ja 0x31173
movq 0x18(%rsp), %rax
leaq 0x1abd5(%rip), %rcx     # 0x4bc80
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x28(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x61, %eax
jne 0x310cd
movl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x310ea
movq 0x28(%rsp), %rax
movsbl 0x2(%rax), %edx
movl $0x7, %eax
movl $0x6, %ecx
cmpl $0x6e, %edx
cmovel %ecx, %eax
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rax
movl 0xc(%rsp), %ecx
movb %cl, 0x1(%rax)
jmp 0x31173
movq 0x10(%rsp), %rax
movb $0x2, 0x1(%rax)
jmp 0x31173
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %rcx
movsbl 0x2(%rcx), %esi
movl $0x8, %ecx
movl $0x4, %edx
cmpl $0x72, %esi
cmovel %edx, %ecx
movb %cl, 0x1(%rax)
jmp 0x31173
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %rcx
movsbl 0x2(%rcx), %esi
movl $0x5, %ecx
movl $0x3, %edx
cmpl $0x72, %esi
cmovel %edx, %ecx
movb %cl, 0x1(%rax)
jmp 0x31173
movq 0x10(%rsp), %rax
movb $0x9, 0x1(%rax)
jmp 0x31173
movq 0x10(%rsp), %rax
movb $0xa, 0x1(%rax)
jmp 0x31173
movq 0x10(%rsp), %rax
movb $0xb, 0x1(%rax)
jmp 0x31173
movq 0x10(%rsp), %rax
movb $0xc, 0x1(%rax)
movq 0x28(%rsp), %rdi
addq $0x4, %rdi
callq 0x311e0
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0x2(%rax)
movq 0x20(%rsp), %rdi
callq 0x311e0
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0x3(%rax)
movq 0x20(%rsp), %rdi
addq $0x3, %rdi
callq 0x311e0
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0x4(%rax)
movq 0x20(%rsp), %rdi
addq $0x6, %rdi
callq 0x311e0
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0x5(%rax)
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: mrlordkaj[P]i2cdevlib-pi/DS1307/DS1307.cpp
// Function: conv2d(char const*)
static uint8_t conv2d(const char* p) {
        uint8_t v = 0;
        if ('0' <= *p && *p <= '9')
            v = *p - '0';
        return 10 * v + *++p - '0';
    }

// Assembly:
movq %rdi, -0x8(%rsp)
movb $0x0, -0x9(%rsp)
movq -0x8(%rsp), %rax
movsbl (%rax), %ecx
movl $0x30, %eax
cmpl %ecx, %eax
jg 0x31217
movq -0x8(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jg 0x31217
movq -0x8(%rsp), %rax
movsbl (%rax), %eax
subl $0x30, %eax
movb %al, -0x9(%rsp)
movzbl -0x9(%rsp), %eax
imull $0xa, %eax, %eax
movq -0x8(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rsp)
movsbl 0x1(%rcx), %ecx
addl %ecx, %eax
subl $0x30, %eax
retq
nopw (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movzbl (%rax), %ecx
movw %cx, %dx
movb 0x1(%rax), %cl
movzwl %dx, %edi
movzbl %cl, %esi
movzbl 0x2(%rax), %edx
callq 0x31300
movw %ax, %cx
movq (%rsp), %rax
movw %cx, 0xa(%rsp)
movw 0xa(%rsp), %si
movb 0x3(%rax), %dl
movb 0x4(%rax), %cl
movzwl %si, %edi
movzbl %dl, %esi
movzbl %cl, %edx
movzbl 0x5(%rax), %ecx
callq 0x313e0
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
addq $0x18, %rsp
retq
// File: mrlordkaj[P]i2cdevlib-pi/DS1307/DS1307.cpp
// Function: date2days(unsigned short, unsigned char, unsigned char)
static uint16_t date2days(uint16_t y, uint8_t m, uint8_t d) {
        if (y >= 2000)
            y -= 2000;
        uint16_t days = d;
        for (uint8_t i = 1; i < m; ++i)
            days += pgm_read_byte(daysInMonth + i - 1);
        if (m > 2 && y % 4 == 0)
            ++days;
        return days + 365 * y + (y + 3) / 4 - 1;
    }

// Assembly:
movb %dl, %al
movb %sil, %cl
movw %di, %dx
movw %dx, -0x2(%rsp)
movb %cl, -0x3(%rsp)
movb %al, -0x4(%rsp)
movzwl -0x2(%rsp), %eax
cmpl $0x7d0, %eax            # imm = 0x7D0
jl 0x31330
movzwl -0x2(%rsp), %eax
subl $0x7d0, %eax            # imm = 0x7D0
movw %ax, -0x2(%rsp)
movzbl -0x4(%rsp), %eax
movw %ax, -0x6(%rsp)
movb $0x1, -0x7(%rsp)
movzbl -0x7(%rsp), %eax
movzbl -0x3(%rsp), %ecx
cmpl %ecx, %eax
jge 0x31379
movzbl -0x7(%rsp), %eax
movslq %eax, %rcx
leaq 0x1a970(%rip), %rax     # 0x4bccc
movzbl -0x1(%rax,%rcx), %ecx
movzwl -0x6(%rsp), %eax
addl %ecx, %eax
movw %ax, -0x6(%rsp)
movb -0x7(%rsp), %al
addb $0x1, %al
movb %al, -0x7(%rsp)
jmp 0x3133f
movzbl -0x3(%rsp), %eax
cmpl $0x2, %eax
jle 0x313a3
movzwl -0x2(%rsp), %eax
movl $0x4, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x313a3
movw -0x6(%rsp), %ax
addw $0x1, %ax
movw %ax, -0x6(%rsp)
movzwl -0x6(%rsp), %eax
movzwl -0x2(%rsp), %ecx
imull $0x16d, %ecx, %ecx      # imm = 0x16D
addl %ecx, %eax
movl %eax, -0xc(%rsp)
movzwl -0x2(%rsp), %eax
addl $0x3, %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0xc(%rsp), %eax
addl %ecx, %eax
subl $0x1, %eax
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
xorl %esi, %esi
movl $0x10, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x23360
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x227c0
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq 0x20(%rsp), %rcx
movq %rcx, (%rsp)
movb (%rcx), %dil
addq $0x1, %rcx
movl $0x3, %esi
movl $0x6, %edx
movq 0x2a6cf(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rax
movzbl 0x7(%rax), %eax
cmpl $0x1, %eax
jne 0x31879
movq (%rsp), %rax
movl $0x2, %esi
movl $0x1, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq (%rsp), %rcx
movzbl 0x1(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x2(%rcx), %edx
orl %edx, %eax
movw %ax, %dx
movq 0x18(%rsp), %rax
movw %dx, (%rax)
movzbl 0x3(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x4(%rcx), %edx
orl %edx, %eax
movw %ax, %dx
movq 0x10(%rsp), %rax
movw %dx, (%rax)
movzbl 0x5(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x6(%rcx), %ecx
orl %ecx, %eax
movw %ax, %cx
movq 0x8(%rsp), %rax
movw %cx, (%rax)
addq $0x28, %rsp
retq
nopl (%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movb (%rcx), %dil
addq $0x1, %rcx
movl $0x3, %esi
movl $0x6, %edx
movq 0x2a61d(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq 0x8(%rsp), %rax
movzbl 0x7(%rax), %eax
cmpl $0x1, %eax
jne 0x3192d
movq 0x8(%rsp), %rax
movl $0x2, %esi
movl $0x1, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rcx
movzbl 0x1(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x2(%rcx), %ecx
orl %ecx, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movb (%rcx), %dil
addq $0x1, %rcx
movl $0x3, %esi
movl $0x6, %edx
movq 0x2a59d(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq 0x8(%rsp), %rax
movzbl 0x7(%rax), %eax
cmpl $0x1, %eax
jne 0x319ad
movq 0x8(%rsp), %rax
movl $0x2, %esi
movl $0x1, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rcx
movzbl 0x3(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x4(%rcx), %ecx
orl %ecx, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movb (%rcx), %dil
addq $0x1, %rcx
movl $0x3, %esi
movl $0x6, %edx
movq 0x2a51d(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq 0x8(%rsp), %rax
movzbl 0x7(%rax), %eax
cmpl $0x1, %eax
jne 0x31a2d
movq 0x8(%rsp), %rax
movl $0x2, %esi
movl $0x1, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rcx
movzbl 0x5(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x6(%rcx), %ecx
orl %ecx, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
xorl %esi, %esi
movl $0x70, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x235d0
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0x23390
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movb (%rcx), %dil
addq $0x1, %rcx
movl $0x3, %esi
movl $0x6, %edx
movq 0x29dad(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq 0x8(%rsp), %rax
movzbl 0x7(%rax), %eax
cmpl $0x1, %eax
jne 0x3219d
movq 0x8(%rsp), %rax
movl $0x2, %esi
movl $0x1, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rcx
movzbl 0x5(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x6(%rcx), %ecx
orl %ecx, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movb (%rcx), %dil
addq $0x1, %rcx
movl $0x3, %esi
movl $0x6, %edx
movq 0x29d2d(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq 0x8(%rsp), %rax
movzbl 0x7(%rax), %eax
cmpl $0x1, %eax
jne 0x3221d
movq 0x8(%rsp), %rax
movl $0x2, %esi
movl $0x1, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rcx
movzbl 0x3(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x4(%rcx), %ecx
orl %ecx, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x22e20
movq 0x8(%rsp), %rdx
movb $0x0, 0x1(%rdx)
movb (%rdx), %cl
addq $0x1, %rdx
movl $0xe7, %esi
movq 0x29af5(%rip), %rax     # 0x5bf18
movzbl %cl, %edi
movzwl (%rax), %ecx
callq 0x22ce0
movq 0x8(%rsp), %rax
movzbl 0x1(%rax), %eax
cmpl $0x2, %eax
sete %al
andb $0x1, %al
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movw $0x0, 0x6(%rsp)
movb (%rax), %cl
movl $0xe3, %esi
leaq 0x6(%rsp), %rdx
movq 0x29aa0(%rip), %rax     # 0x5bf18
movzbl %cl, %edi
movzwl (%rax), %ecx
callq 0x22c40
movsbl %al, %ecx
movl $0x1, %eax
cmpl %ecx, %eax
je 0x3249f
movss 0x197bd(%rip), %xmm0    # 0x4bc54
movss %xmm0, 0x14(%rsp)
jmp 0x324df
movzwl 0x6(%rsp), %eax
andl $0xfffc, %eax           # imm = 0xFFFC
cvtsi2ss %eax, %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1982f(%rip), %xmm1    # 0x4bce8
mulsd %xmm1, %xmm0
movsd 0x1981b(%rip), %xmm1    # 0x4bce0
divsd %xmm1, %xmm0
movsd 0x19807(%rip), %xmm1    # 0x4bcd8
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x14(%rsp)
movss 0x14(%rsp), %xmm0
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movw $0x0, 0x6(%rsp)
movb (%rax), %cl
movl $0xe5, %esi
leaq 0x6(%rsp), %rdx
movq 0x29a00(%rip), %rax     # 0x5bf18
movzbl %cl, %edi
movzwl (%rax), %ecx
callq 0x22c40
movsbl %al, %ecx
movl $0x1, %eax
cmpl %ecx, %eax
je 0x3253f
movss 0x1971d(%rip), %xmm0    # 0x4bc54
movss %xmm0, 0x14(%rsp)
jmp 0x3257f
movzwl 0x6(%rsp), %eax
andl $0xfffc, %eax           # imm = 0xFFFC
cvtsi2ss %eax, %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1979f(%rip), %xmm1    # 0x4bcf8
mulsd %xmm1, %xmm0
movsd 0x1977b(%rip), %xmm1    # 0x4bce0
divsd %xmm1, %xmm0
movsd 0x1977f(%rip), %xmm1    # 0x4bcf0
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x14(%rsp)
movss 0x14(%rsp), %xmm0
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movw %r8w, %ax
movb %dil, 0x17(%rsp)
movb %sil, 0x16(%rsp)
movb %dl, 0x15(%rsp)
movq %rcx, 0x8(%rsp)
movw %ax, 0x6(%rsp)
movb 0x17(%rsp), %cl
movb 0x16(%rsp), %al
leaq 0x5(%rsp), %rdx
movzbl %cl, %edi
movzbl %al, %esi
movzwl 0x6(%rsp), %ecx
callq 0x22ce0
movb %al, 0x4(%rsp)
movzbl 0x5(%rsp), %eax
movzbl 0x15(%rsp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
movb %al, %cl
movq 0x8(%rsp), %rax
movb %cl, (%rax)
movb 0x4(%rsp), %al
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movw %r8w, %ax
movb %dil, 0x17(%rsp)
movb %sil, 0x16(%rsp)
movb %dl, 0x15(%rsp)
movq %rcx, 0x8(%rsp)
movw %ax, 0x6(%rsp)
movb 0x17(%rsp), %cl
movb 0x16(%rsp), %al
leaq 0x4(%rsp), %rdx
movzbl %cl, %edi
movzbl %al, %esi
movzwl 0x6(%rsp), %ecx
callq 0x22c40
movb %al, 0x3(%rsp)
movzwl 0x4(%rsp), %eax
movzbl 0x15(%rsp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
movw %ax, %cx
movq 0x8(%rsp), %rax
movw %cx, (%rax)
movb 0x3(%rsp), %al
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movw %r9w, %ax
movb %dil, 0x17(%rsp)
movb %sil, 0x16(%rsp)
movb %dl, 0x15(%rsp)
movb %cl, 0x14(%rsp)
movq %r8, 0x8(%rsp)
movw %ax, 0x6(%rsp)
movb 0x17(%rsp), %cl
movb 0x16(%rsp), %al
leaq 0x4(%rsp), %rdx
movzbl %cl, %edi
movzbl %al, %esi
movzwl 0x6(%rsp), %ecx
callq 0x22ce0
movb %al, 0x5(%rsp)
movzbl %al, %eax
cmpl $0x0, %eax
je 0x327c6
movzbl 0x14(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movzbl 0x15(%rsp), %ecx
movzbl 0x14(%rsp), %edx
subl %edx, %ecx
addl $0x1, %ecx
shll %cl, %eax
movb %al, 0x3(%rsp)
movzbl 0x3(%rsp), %ecx
movzbl 0x4(%rsp), %eax
andl %ecx, %eax
movb %al, 0x4(%rsp)
movzbl 0x15(%rsp), %ecx
movzbl 0x14(%rsp), %eax
subl %eax, %ecx
addl $0x1, %ecx
movzbl 0x4(%rsp), %eax
sarl %cl, %eax
movb %al, 0x4(%rsp)
movb 0x4(%rsp), %cl
movq 0x8(%rsp), %rax
movb %cl, (%rax)
movb 0x5(%rsp), %al
addq $0x18, %rsp
retq
nop
// File: 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:
subq $0x18, %rsp
movw %r9w, %ax
movb %dil, 0x17(%rsp)
movb %sil, 0x16(%rsp)
movb %dl, 0x15(%rsp)
movb %cl, 0x14(%rsp)
movq %r8, 0x8(%rsp)
movw %ax, 0x6(%rsp)
movb 0x17(%rsp), %cl
movb 0x16(%rsp), %al
leaq 0x2(%rsp), %rdx
movzbl %cl, %edi
movzbl %al, %esi
movzwl 0x6(%rsp), %ecx
callq 0x22c40
movb %al, 0x5(%rsp)
movzbl %al, %eax
cmpl $0x0, %eax
je 0x32879
movzbl 0x14(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movzbl 0x15(%rsp), %ecx
movzbl 0x14(%rsp), %edx
subl %edx, %ecx
addl $0x1, %ecx
shll %cl, %eax
movw %ax, (%rsp)
movzwl (%rsp), %ecx
movzwl 0x2(%rsp), %eax
andl %ecx, %eax
movw %ax, 0x2(%rsp)
movzbl 0x15(%rsp), %ecx
movzbl 0x14(%rsp), %eax
subl %eax, %ecx
addl $0x1, %ecx
movzwl 0x2(%rsp), %eax
sarl %cl, %eax
movw %ax, 0x2(%rsp)
movw 0x2(%rsp), %cx
movq 0x8(%rsp), %rax
movw %cx, (%rax)
movb 0x5(%rsp), %al
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movb %cl, %al
movb %dl, %cl
movb %sil, %dl
movb %dil, %sil
movb %sil, 0x17(%rsp)
movb %dl, 0x16(%rsp)
movb %cl, 0x15(%rsp)
movb %al, 0x14(%rsp)
movb 0x17(%rsp), %sil
movb 0x16(%rsp), %cl
leaq 0x13(%rsp), %rdx
movq 0x29294(%rip), %rax     # 0x5bf18
movzbl %sil, %edi
movzbl %cl, %esi
movzwl (%rax), %ecx
callq 0x22ce0
movzbl 0x14(%rsp), %eax
cmpl $0x0, %eax
je 0x32cb8
movzbl 0x13(%rsp), %eax
movzbl 0x15(%rsp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
orl %ecx, %eax
movl %eax, 0xc(%rsp)
jmp 0x32cd4
movzbl 0x13(%rsp), %eax
movzbl 0x15(%rsp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movb %al, 0x13(%rsp)
movb 0x17(%rsp), %cl
movb 0x16(%rsp), %al
movzbl %cl, %edi
movzbl %al, %esi
movzbl 0x13(%rsp), %edx
callq 0x22ad0
andb $0x1, %al
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movw %cx, %ax
movb %dl, %cl
movb %sil, %dl
movb %dil, %sil
movb %sil, 0x17(%rsp)
movb %dl, 0x16(%rsp)
movb %cl, 0x15(%rsp)
movw %ax, 0x12(%rsp)
movb 0x17(%rsp), %sil
movb 0x16(%rsp), %cl
leaq 0x10(%rsp), %rdx
movq 0x291a2(%rip), %rax     # 0x5bf18
movzbl %sil, %edi
movzbl %cl, %esi
movzwl (%rax), %ecx
callq 0x22c40
movzwl 0x12(%rsp), %eax
cmpl $0x0, %eax
je 0x32daa
movzwl 0x10(%rsp), %eax
movzbl 0x15(%rsp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
orl %ecx, %eax
movl %eax, 0xc(%rsp)
jmp 0x32dc6
movzwl 0x10(%rsp), %eax
movzbl 0x15(%rsp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
xorl $-0x1, %ecx
andl %ecx, %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movw %ax, 0x10(%rsp)
movb 0x17(%rsp), %cl
movb 0x16(%rsp), %al
movzbl %cl, %edi
movzbl %al, %esi
movzwl 0x10(%rsp), %edx
callq 0x23480
andb $0x1, %al
addq $0x18, %rsp
retq
nop
// File: 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 %rax
movb %r8b, %al
movb %dil, 0x6(%rsp)
movb %sil, 0x5(%rsp)
movb %dl, 0x4(%rsp)
movb %cl, 0x3(%rsp)
movb %al, 0x2(%rsp)
movb 0x6(%rsp), %sil
movb 0x5(%rsp), %cl
leaq 0x1(%rsp), %rdx
movq 0x290b9(%rip), %rax     # 0x5bf18
movzbl %sil, %edi
movzbl %cl, %esi
movzwl (%rax), %ecx
callq 0x22ce0
movsbl %al, %eax
cmpl $0x0, %eax
je 0x32f08
movzbl 0x3(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movzbl 0x4(%rsp), %ecx
movzbl 0x3(%rsp), %edx
subl %edx, %ecx
addl $0x1, %ecx
shll %cl, %eax
movb %al, (%rsp)
movzbl 0x4(%rsp), %ecx
movzbl 0x3(%rsp), %eax
subl %eax, %ecx
addl $0x1, %ecx
movzbl 0x2(%rsp), %eax
shll %cl, %eax
movb %al, 0x2(%rsp)
movzbl (%rsp), %ecx
movzbl 0x2(%rsp), %eax
andl %ecx, %eax
movb %al, 0x2(%rsp)
movzbl (%rsp), %ecx
xorl $-0x1, %ecx
movzbl 0x1(%rsp), %eax
andl %ecx, %eax
movb %al, 0x1(%rsp)
movzbl 0x2(%rsp), %ecx
movzbl 0x1(%rsp), %eax
orl %ecx, %eax
movb %al, 0x1(%rsp)
movb 0x6(%rsp), %cl
movb 0x5(%rsp), %al
movzbl %cl, %edi
movzbl %al, %esi
movzbl 0x1(%rsp), %edx
callq 0x22ad0
andb $0x1, %al
movb %al, 0x7(%rsp)
jmp 0x32f0d
movb $0x0, 0x7(%rsp)
movb 0x7(%rsp), %al
andb $0x1, %al
popq %rcx
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x18, %rsp
movw %r8w, %ax
movb %dil, 0x16(%rsp)
movb %sil, 0x15(%rsp)
movb %dl, 0x14(%rsp)
movb %cl, 0x13(%rsp)
movw %ax, 0x10(%rsp)
movb 0x16(%rsp), %sil
movb 0x15(%rsp), %cl
leaq 0xe(%rsp), %rdx
movq 0x28fc4(%rip), %rax     # 0x5bf18
movzbl %sil, %edi
movzbl %cl, %esi
movzwl (%rax), %ecx
callq 0x22c40
movsbl %al, %eax
cmpl $0x0, %eax
je 0x33005
movzbl 0x13(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movzbl 0x14(%rsp), %ecx
movzbl 0x13(%rsp), %edx
subl %edx, %ecx
addl $0x1, %ecx
shll %cl, %eax
movw %ax, 0xc(%rsp)
movzbl 0x14(%rsp), %ecx
movzbl 0x13(%rsp), %eax
subl %eax, %ecx
addl $0x1, %ecx
movzwl 0x10(%rsp), %eax
shll %cl, %eax
movw %ax, 0x10(%rsp)
movzwl 0xc(%rsp), %ecx
movzwl 0x10(%rsp), %eax
andl %ecx, %eax
movw %ax, 0x10(%rsp)
movzwl 0xc(%rsp), %ecx
xorl $-0x1, %ecx
movzwl 0xe(%rsp), %eax
andl %ecx, %eax
movw %ax, 0xe(%rsp)
movzwl 0x10(%rsp), %ecx
movzwl 0xe(%rsp), %eax
orl %ecx, %eax
movw %ax, 0xe(%rsp)
movb 0x16(%rsp), %cl
movb 0x15(%rsp), %al
movzbl %cl, %edi
movzbl %al, %esi
movzwl 0xe(%rsp), %edx
callq 0x23480
andb $0x1, %al
movb %al, 0x17(%rsp)
jmp 0x3300a
movb $0x0, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: mrlordkaj[P]i2cdevlib-pi/IAQ2000/IAQ2000.cpp
// Function: IAQ2000::testConnection()
bool IAQ2000::testConnection() {
    if (getIaqpred() >= 450) {
        return true;
    }
    else {
    return false;
    }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x22b90
movzwl %ax, %eax
cmpl $0x1c2, %eax            # imm = 0x1C2
jl 0x331f4
movb $0x1, 0x17(%rsp)
jmp 0x331f9
movb $0x0, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movw %r8w, %ax
movq %rdi, 0x20(%rsp)
movb %sil, 0x1f(%rsp)
movb %dl, 0x1e(%rsp)
movq %rcx, 0x10(%rsp)
movw %ax, 0xe(%rsp)
movb $0x0, 0xd(%rsp)
movb 0x1f(%rsp), %al
movq 0x28cc8(%rip), %rdi     # 0x5bf58
movzbl %al, %esi
movzbl 0x1e(%rsp), %edx
callq 0x23060
callq 0x22b10
movl %eax, 0x8(%rsp)
movq 0x28cab(%rip), %rdi     # 0x5bf58
callq 0x22920
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x7(%rsp)
je 0x332ee
movzwl 0xe(%rsp), %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, 0x6(%rsp)
je 0x332e6
callq 0x22b10
subl 0x8(%rsp), %eax
movzwl 0xe(%rsp), %ecx
cmpl %ecx, %eax
setb %al
movb %al, 0x6(%rsp)
movb 0x6(%rsp), %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x332f8
jmp 0x33320
movq 0x28c59(%rip), %rdi     # 0x5bf58
callq 0x23210
movb %al, %dl
movq 0x10(%rsp), %rax
movsbq 0xd(%rsp), %rcx
movb %dl, (%rax,%rcx)
movb 0xd(%rsp), %al
addb $0x1, %al
movb %al, 0xd(%rsp)
jmp 0x332a6
movzwl 0xe(%rsp), %eax
cmpl $0x0, %eax
jle 0x3334f
callq 0x22b10
subl 0x8(%rsp), %eax
movzwl 0xe(%rsp), %ecx
cmpl %ecx, %eax
jb 0x3334f
movsbl 0xd(%rsp), %eax
movzbl 0x1e(%rsp), %ecx
cmpl %ecx, %eax
jge 0x3334f
movb $-0x1, 0xd(%rsp)
movb 0xd(%rsp), %al
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq 0x20(%rsp), %rcx
movq %rcx, (%rsp)
movb (%rcx), %dil
addq $0x1, %rcx
movl $0x1d, %esi
movl $0x6, %edx
movq 0x2839f(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rcx
movzbl 0x1(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x2(%rcx), %edx
orl %edx, %eax
movw %ax, %dx
movq 0x18(%rsp), %rax
movw %dx, (%rax)
movzbl 0x3(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x4(%rcx), %edx
orl %edx, %eax
movw %ax, %dx
movq 0x10(%rsp), %rax
movw %dx, (%rax)
movzbl 0x5(%rcx), %eax
cwtl
shll $0x8, %eax
movzbl 0x6(%rcx), %ecx
orl %ecx, %eax
movw %ax, %cx
movq 0x8(%rsp), %rax
movw %cx, (%rax)
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0x20, %esi
movl $0xf, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rax
movl $0x21, %esi
xorl %edx, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rax
movl $0x22, %esi
xorl %edx, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rax
movl $0x23, %esi
xorl %edx, %edx
movzbl (%rax), %edi
callq 0x22ad0
movq 0x8(%rsp), %rax
movl $0x24, %esi
xorl %edx, %edx
movzbl (%rax), %edi
callq 0x22ad0
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: 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:
subq $0x18, %rsp
movw %si, %ax
movq %rdi, 0x10(%rsp)
movw %ax, 0xe(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movzwl 0xe(%rsp), %eax
cmpl $0x64, %eax
jne 0x340cb
movb $0x0, 0xd(%rsp)
jmp 0x340fa
movzwl 0xe(%rsp), %eax
cmpl $0xc8, %eax
jne 0x340de
movb $0x1, 0xd(%rsp)
jmp 0x340f8
movzwl 0xe(%rsp), %eax
cmpl $0x190, %eax            # imm = 0x190
jne 0x340f1
movb $0x2, 0xd(%rsp)
jmp 0x340f6
movb $0x3, 0xd(%rsp)
jmp 0x340f8
jmp 0x340fa
movq (%rsp), %rax
movb (%rax), %al
movl $0x20, %esi
movl $0x7, %edx
movl $0x2, %ecx
movzbl %al, %edi
movzbl 0xd(%rsp), %r8d
callq 0x22ca0
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %r8
movq %r8, 0x8(%rsp)
movb (%r8), %dil
addq $0x1, %r8
movl $0x20, %esi
movl $0x7, %edx
movl $0x2, %ecx
movq 0x27db8(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r9d
callq 0x23150
movq 0x8(%rsp), %rax
movb 0x1(%rax), %al
movb %al, 0x17(%rsp)
movzbl 0x17(%rsp), %eax
cmpl $0x0, %eax
jne 0x3418c
movw $0x64, 0x26(%rsp)
jmp 0x341bd
movzbl 0x17(%rsp), %eax
cmpl $0x1, %eax
jne 0x3419f
movw $0xc8, 0x26(%rsp)
jmp 0x341bd
movzbl 0x17(%rsp), %eax
cmpl $0x2, %eax
jne 0x341b2
movw $0x190, 0x26(%rsp)      # imm = 0x190
jmp 0x341bd
jmp 0x341b4
jmp 0x341b6
movw $0x320, 0x26(%rsp)      # imm = 0x320
movw 0x26(%rsp), %ax
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x22e30
movq 0x8(%rsp), %rdi
movw %ax, 0x16(%rsp)
callq 0x22fc0
movb %al, 0x15(%rsp)
movzwl 0x16(%rsp), %eax
cmpl $0x64, %eax
jne 0x342c5
movzbl 0x15(%rsp), %eax
cmpl $0x0, %eax
jne 0x342b2
movss 0x17a75(%rip), %xmm0    # 0x4bd1c
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movss 0x17a56(%rip), %xmm0    # 0x4bd10
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzwl 0x16(%rsp), %eax
cmpl $0xc8, %eax
jne 0x3433b
movzbl 0x15(%rsp), %eax
cmpl $0x0, %eax
jne 0x342ee
movss 0x17a39(%rip), %xmm0    # 0x4bd1c
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzbl 0x15(%rsp), %eax
cmpl $0x1, %eax
jne 0x3430b
movss 0x17a10(%rip), %xmm0    # 0x4bd10
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzbl 0x15(%rsp), %eax
cmpl $0x2, %eax
jne 0x34328
movss 0x179e7(%rip), %xmm0    # 0x4bd04
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movss 0x179e8(%rip), %xmm0    # 0x4bd18
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzwl 0x16(%rsp), %eax
cmpl $0x190, %eax            # imm = 0x190
jne 0x343ab
movzbl 0x15(%rsp), %eax
cmpl $0x0, %eax
jne 0x34364
movss 0x179bb(%rip), %xmm0    # 0x4bd14
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzbl 0x15(%rsp), %eax
cmpl $0x1, %eax
jne 0x34381
movss 0x1799a(%rip), %xmm0    # 0x4bd10
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzbl 0x15(%rsp), %eax
cmpl $0x2, %eax
jne 0x3439b
movss 0x17971(%rip), %xmm0    # 0x4bd04
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movss 0x1795d(%rip), %xmm0    # 0x4bd00
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzbl 0x15(%rsp), %eax
cmpl $0x0, %eax
jne 0x343c5
movss 0x1794f(%rip), %xmm0    # 0x4bd0c
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzbl 0x15(%rsp), %eax
cmpl $0x1, %eax
jne 0x343df
movss 0x17931(%rip), %xmm0    # 0x4bd08
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movzbl 0x15(%rsp), %eax
cmpl $0x2, %eax
jne 0x343f9
movss 0x17913(%rip), %xmm0    # 0x4bd04
movss %xmm0, 0x24(%rsp)
jmp 0x34407
movss 0x178ff(%rip), %xmm0    # 0x4bd00
movss %xmm0, 0x24(%rsp)
movss 0x24(%rsp), %xmm0
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::setFullScale(unsigned short)
void L3G4200D::setFullScale(uint16_t scale) {
	uint8_t writeBits;
	
	if (scale == 250) {
		writeBits = L3G4200D_FS_250;
	} else if (scale == 500) {
		writeBits = L3G4200D_FS_500;
	} else {
		writeBits = L3G4200D_FS_2000;
	}

	I2Cdev::writeBits(devAddr, L3G4200D_RA_CTRL_REG4, L3G4200D_FS_BIT, 
		L3G4200D_FS_LENGTH, writeBits);
}

// Assembly:
subq $0x18, %rsp
movw %si, %ax
movq %rdi, 0x10(%rsp)
movw %ax, 0xe(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movzwl 0xe(%rsp), %eax
cmpl $0xfa, %eax
jne 0x34ced
movb $0x0, 0xd(%rsp)
jmp 0x34d07
movzwl 0xe(%rsp), %eax
cmpl $0x1f4, %eax            # imm = 0x1F4
jne 0x34d00
movb $0x1, 0xd(%rsp)
jmp 0x34d05
movb $0x2, 0xd(%rsp)
jmp 0x34d07
movq (%rsp), %rax
movb (%rax), %al
movl $0x23, %esi
movl $0x5, %edx
movl $0x2, %ecx
movzbl %al, %edi
movzbl 0xd(%rsp), %r8d
callq 0x22ca0
addq $0x18, %rsp
retq
nop
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %r8
movq %r8, 0x8(%rsp)
movb (%r8), %dil
addq $0x1, %r8
movl $0x23, %esi
movl $0x5, %edx
movl $0x2, %ecx
movq 0x271b8(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r9d
callq 0x23150
movq 0x8(%rsp), %rax
movb 0x1(%rax), %al
movb %al, 0x17(%rsp)
movzbl 0x17(%rsp), %eax
cmpl $0x0, %eax
jne 0x34d8c
movw $0xfa, 0x26(%rsp)
jmp 0x34da6
movzbl 0x17(%rsp), %eax
cmpl $0x1, %eax
jne 0x34d9f
movw $0x1f4, 0x26(%rsp)      # imm = 0x1F4
jmp 0x34da6
movw $0x7d0, 0x26(%rsp)      # imm = 0x7D0
movw 0x26(%rsp), %ax
addq $0x28, %rsp
retq
// File: 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:
subq $0x18, %rsp
movb %sil, %al
movq %rdi, 0x10(%rsp)
movb %al, 0xf(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movzbl 0xf(%rsp), %eax
cmpl $0x1, %eax
je 0x3504d
movzbl 0xf(%rsp), %eax
cmpl $0x3, %eax
jne 0x3505d
movq (%rsp), %rdi
movl $0x1, %esi
callq 0x22b20
jmp 0x35068
movq (%rsp), %rdi
xorl %esi, %esi
callq 0x22b20
movq (%rsp), %rax
movb (%rax), %al
movl $0x24, %esi
movl $0x1, %edx
movl $0x2, %ecx
movzbl %al, %edi
movzbl 0xf(%rsp), %r8d
callq 0x22ca0
movq (%rsp), %rax
movb (%rax), %al
movl $0x24, %esi
movl $0x3, %edx
movl $0x2, %ecx
movzbl %al, %edi
movzbl 0xf(%rsp), %r8d
callq 0x22ca0
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %r8
movq %r8, 0x8(%rsp)
movb (%r8), %dil
addq $0x1, %r8
movl $0x24, %esi
movl $0x1, %edx
movl $0x2, %ecx
movq 0x26e28(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r9d
callq 0x23150
movq 0x8(%rsp), %rax
movb 0x1(%rax), %al
movb %al, 0x17(%rsp)
movzbl 0x17(%rsp), %eax
cmpl $0x0, %eax
je 0x3511d
movzbl 0x17(%rsp), %eax
cmpl $0x1, %eax
jne 0x35127
movb 0x17(%rsp), %al
movb %al, 0x27(%rsp)
jmp 0x35143
movq 0x8(%rsp), %rdi
callq 0x22770
testb $0x1, %al
jne 0x35137
jmp 0x3513e
movb $0x3, 0x27(%rsp)
jmp 0x35143
movb $0x2, 0x27(%rsp)
movb 0x27(%rsp), %al
addq $0x28, %rsp
retq
nopl (%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movb (%rax), %dil
leaq 0x12(%rsp), %rcx
movl $0x28, %esi
movl $0x1, %edx
movq 0x26a0d(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rax
movb (%rax), %dil
leaq 0xc(%rsp), %rcx
movl $0x29, %esi
movl $0x1, %edx
movq 0x269e3(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rdi
callq 0x22390
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x3556c
movzbl 0x12(%rsp), %eax
cwtl
shll $0x8, %eax
movzbl 0xc(%rsp), %ecx
orl %ecx, %eax
movw %ax, 0x26(%rsp)
jmp 0x35581
movzbl 0xc(%rsp), %eax
cwtl
shll $0x8, %eax
movzbl 0x12(%rsp), %ecx
orl %ecx, %eax
movw %ax, 0x26(%rsp)
movw 0x26(%rsp), %ax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::getAngularVelocityY()
int16_t L3G4200D::getAngularVelocityY() {
	uint8_t bufferL[6];
	uint8_t bufferH[6];
	I2Cdev::readBytes(devAddr, L3G4200D_RA_OUT_Y_L, 1, bufferL);
	I2Cdev::readBytes(devAddr, L3G4200D_RA_OUT_Y_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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movb (%rax), %dil
leaq 0x12(%rsp), %rcx
movl $0x2a, %esi
movl $0x1, %edx
movq 0x2695d(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rax
movb (%rax), %dil
leaq 0xc(%rsp), %rcx
movl $0x2b, %esi
movl $0x1, %edx
movq 0x26933(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rdi
callq 0x22390
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x3561c
movzbl 0x12(%rsp), %eax
cwtl
shll $0x8, %eax
movzbl 0xc(%rsp), %ecx
orl %ecx, %eax
movw %ax, 0x26(%rsp)
jmp 0x35631
movzbl 0xc(%rsp), %eax
cwtl
shll $0x8, %eax
movzbl 0x12(%rsp), %ecx
orl %ecx, %eax
movw %ax, 0x26(%rsp)
movw 0x26(%rsp), %ax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: mrlordkaj[P]i2cdevlib-pi/L3G4200D/L3G4200D.cpp
// Function: L3G4200D::getAngularVelocityZ()
int16_t L3G4200D::getAngularVelocityZ() {
	uint8_t bufferL[6];
	uint8_t bufferH[6];
	I2Cdev::readBytes(devAddr, L3G4200D_RA_OUT_Z_L, 1, bufferL);
	I2Cdev::readBytes(devAddr, L3G4200D_RA_OUT_Z_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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movb (%rax), %dil
leaq 0x12(%rsp), %rcx
movl $0x2c, %esi
movl $0x1, %edx
movq 0x268ad(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rax
movb (%rax), %dil
leaq 0xc(%rsp), %rcx
movl $0x2d, %esi
movl $0x1, %edx
movq 0x26883(%rip), %rax     # 0x5bf18
movzbl %dil, %edi
movzwl (%rax), %r8d
callq 0x22b50
movq (%rsp), %rdi
callq 0x22390
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x356cc
movzbl 0x12(%rsp), %eax
cwtl
shll $0x8, %eax
movzbl 0xc(%rsp), %ecx
orl %ecx, %eax
movw %ax, 0x26(%rsp)
jmp 0x356e1
movzbl 0xc(%rsp), %eax
cwtl
shll $0x8, %eax
movzbl 0x12(%rsp), %ecx
orl %ecx, %eax
movw %ax, 0x26(%rsp)
movw 0x26(%rsp), %ax
addq $0x28, %rsp
retq
nopl (%rax,%rax)