def print_instructions(insns, prefix, flat, f):
    f.write('\n')
    code_units = CodeUnits(insns)
    dex_inst = DexInstruction()
    while code_units.index_is_valid():
        dex_inst.decode(code_units)
        if prefix:
            f.write(prefix)
        f.write('    ')
        dex_inst.dump()
def print_instructions(insns, prefix, flat, f):
    f.write('\n')
    code_units = CodeUnits(insns)
    dex_inst = DexInstruction()
    while code_units.index_is_valid():
        dex_inst.decode(code_units)
        if prefix:
            f.write(prefix)
        f.write('    ')
        dex_inst.dump()