def METHOD_NAME(buf, crc=0xFFFFFFFF):
    CRC32_POLY = 0x104C11DB7
    for val in buf:
        crc ^= val << 24
        for _ in range(8):
            crc = crc << 1 if (crc & 0x80000000) == 0 else (crc << 1) ^ CRC32_POLY
    return crc