def METHOD_NAME(request, app_dict, rescan, api):
    """Independent shared library .a analysis."""
    app_dir = Path(app_dict['app_dir'])
    app_dict['app_file'] = app_dict[
        'md5_hash'] + '.a'  # NEW FILENAME
    app_dict['app_path'] = app_dir / app_dict['app_file']
    app_dict['app_path'] = app_dict['app_path'].as_posix()
    # DB
    ipa_db = StaticAnalyzerIOS.objects.filter(
        MD5=app_dict['md5_hash'])
    if ipa_db.exists() and not rescan:
        context = get_context_from_db_entry(ipa_db)
    else:
        logger.info('Static Library Analysis Started')
        app_dict['size'] = str(
            file_size(app_dict['app_path'])) + 'MB'  # FILE SIZE
        app_dict['sha1'], app_dict['sha256'] = hash_gen(
            app_dict['app_path'])  # SHA1 & SHA256 HASHES
        app_dict['bin_dir'] = app_dict['app_dir']
        files = extract_n_get_files(
            app_dict['app_path'],
            app_dict['app_dir'],
        )
        # Get Files
        all_files = {
            'files_short': files,
            'files_long': [],
            'special_files': [],
        }
        infoplist_dict = {
            'bin_name': '',
            'bin': '',
            'id': app_dict['file_name'],
            'version': '',
            'build': '',
            'sdk': '',
            'pltfm': '',
            'min': '',
            'plist_xml': '',
            'permissions': {},
            'inseccon': {},
            'bundle_name': '',
            'build_version_name': '',
            'bundle_url_types': [],
            'bundle_supported_platforms': [],
            'bundle_version_name': '',
        }
        app_dict['appstore'] = ''
        app_dict['secrets'] = []
        bin_dict = {
            'checksec': {},
            'libraries': [],
            'bin_code_analysis': {},
            'strings': [],
            'bin_info': {
                'endian': '',
                'bit': '',
                'arch': '',
                'subarch': '',
            },
            'bin_type': 'A',
        }
        # Analyze static library
        slib = library_analysis(app_dict['bin_dir'], 'ar')
        bin_dict['bin_info']['arch'] = slib['ar_a']
        bin_dict['dylib_analysis'] = slib['ar_analysis']
        # Store Symbols in File Analysis
        all_files['special_files'] = get_symbols(
            slib['ar_symbols'])
        # Binary code analysis on symbols
        binary_rule_matcher(
            bin_dict['bin_code_analysis'],
            all_files['special_files'],
            b'')
        # Get Icon
        app_dict['icon_found'] = False
        # Extract String metadata
        code_dict = get_strings_metadata(
            app_dict,
            bin_dict,
            all_files,
            slib['ar_strings'])
        # Domain Extraction and Malware Check
        logger.info('Performing Malware Check on '
                    'extracted Domains')
        code_dict['domains'] = MalwareDomainCheck().scan(
            code_dict['urls_list'])
        logger.info('Finished URL and Email Extraction')
        # Extract Trackers from Domains
        trk = Trackers.Trackers(
            None, app_dict['tools_dir'])
        trackers = trk.get_trackers_domains_or_deps(
            code_dict['domains'], [])
        code_dict['api'] = {}
        code_dict['code_anal'] = {}
        code_dict['firebase'] = firebase_analysis(
            code_dict['urls_list'])
        code_dict['trackers'] = trackers
        context = save_get_ctx(
            app_dict,
            infoplist_dict,
            code_dict,
            bin_dict,
            all_files,
            rescan)
    context['virus_total'] = None
    if settings.VT_ENABLED:
        vt = VirusTotal.VirusTotal()
        context['virus_total'] = vt.get_result(
            app_dict['app_path'],
            app_dict['md5_hash'])
    context['appsec'] = {}
    context['average_cvss'] = None
    template = 'static_analysis/ios_binary_analysis.html'
    if api:
        return context
    else:
        return render(request, template, context)