You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: elf_sym.go
    path of file: ./repos/pyroscope/ebpf/symtab/elf
    
    the code of the file until where you have to start completion: // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/*
Package elf implements access to ELF object files.

# Security

This package is not designed to be hardened against adversarial inputs, and is
outside the scope of https://go.dev/
    
func (f *MMapedElfFile) getSymbols32(typ elf.SectionType, opt *SymbolsOptions) ([]SymbolIndex, uint32, error) {
	symtabSection := f.sectionByType(typ)
	if symtabSection == nil {
		return nil, 0, ErrNoSymbols
	}
	var linkIndex SectionLinkIndex
	if typ == elf.SHT_DYNSYM {
		linkIndex = sectionTypeDynSym
	} else {
		linkIndex = sectionTypeSym
	}

	data, err := f.SectionData(symtabSection)
	if err != nil {
		return nil, 0, fmt.Errorf("cannot load symbol section: %w", err)
	}

	if len(data)%elf.Sym32Size != 0 {
		return nil, 0, errors.New("length of symbol section is not a multiple of Sym64Size")
	}

	// The first entry is all zeros.
	data = data[elf.Sym32Size:]

	symbols := make([]SymbolIndex, len(data)/elf.Sym32Size)

	i := 0
	var sym elf.Sym32
	for len(data) > 0 {
		rawSym := data[:elf.Sym32Size]
		data = data[elf.Sym32Size:]
		sym = elf.Sym32{
			Name:  f.ByteOrder.Uint32(rawSym[:4]),
			Value: f.ByteOrder.Uint32(rawSym[4:8]),
			//Size: f.ByteOrder.Uint32(rawSym[8:12]),
			Info: rawSym[12],
			//Other: rawSym[13],
			//Shndx: f.ByteOrder.Uint16(rawSym[14:16]),
		}

		if sym.Value != 0 && sym.Info&0xf == byte(elf.STT_FUNC) {
			if sym.Name >= 0x7fffffff {
				return nil, 0, fmt.Errorf("wrong sym name")
			}
			pc := uint64(sym.Value)
			if pc >= opt.FilterFrom && pc < opt.FilterTo {
				continue
			}
			symbols[i].Name = NewName(sym.Name, linkIndex)
			i++
		}
	}

	return symbols[:i], symtabSection.Link, nil
}