def get_any_arguments_call(p, b_addr):
    """
    Retrieves the list of instructions setting arguments for a function call.
    :param p: angr project
    :param b_addr: basic block address
    :return: instructions setting arguments
    """
    set_params = []
    b = p.factory.block(b_addr)
    # fix for newer version of angr to only include argument registers
    argument_registers_offset = [x.vex_offset for x in p.arch.register_list if x.argument]
    put_stmts = [s for s in b.vex.statements if s.tag == 'Ist_Put']
    for stmt in put_stmts:
        if stmt.offset in argument_registers_offset:
            set_params.append(stmt)
    return set_params