def dump_disassembly(tx_in, tx_out, lock_time, signature_for_hash_type_f):
    out_script = b''
    if tx_out:
        out_script = tx_out.script
    for (pre_annotations, pc, opcode, instruction, post_annotations) in disassemble_scripts(tx_in.script, out_script, lock_time, signature_for_hash_type_f):
        for l in pre_annotations:
            print(('           %s' % l))
        if 1:
            print(('    %4x: %02x  %s' % (pc, opcode, instruction)))
        for l in post_annotations:
            print(('           %s' % l))
def dump_disassembly(tx_in, tx_out, lock_time, signature_for_hash_type_f):
    out_script = b
    if tx_out:
        out_script = tx_out.script
    for (pre_annotations, pc, opcode, instruction, post_annotations) in disassemble_scripts(tx_in.script, out_script, lock_time, signature_for_hash_type_f):
        for l in pre_annotations:
            print(('           %s' % l))
        if 1:
            print(('    %4x: %02x  %s' % (pc, opcode, instruction)))
        for l in post_annotations:
            print(('           %s' % l))