def convert_to_signed_int_32_bit(hex_str):
    """
    Utility function to convert a hex string into a 32 bit signed hex integer value
    :param hex_str: hex String
    :return: signed 32 bit integer
    """
    val = int(hex_str, 16)
    if val > 0x7FFFFFFF:
        val = ((val+0x80000000) & 0xFFFFFFFF) - 0x80000000
    return val