def METHOD_NAME():
    with ImplicitBuilder(func.FuncOp("impl", ((), ())).body):
        v1 = riscv.LiOp(2)
        v2 = riscv.MulOp(v1, indices[0], rd=riscv.IntRegisterType.unallocated())
        v3 = riscv.AddOp(v2, indices[1], rd=riscv.IntRegisterType.unallocated())
        v4 = riscv.LiOp(4).rd
        v5 = riscv.MulOp(
            v3,
            v4,
            rd=riscv.IntRegisterType.unallocated(),
            comment="multiply by element size",
        ).rd
        _ = riscv.AddOp(mem, v5, rd=riscv.IntRegisterType.unallocated())
        riscv.CustomAssemblyInstructionOp("some_memref_op", (), ())